zudoku 0.0.0-ec30b50 → 0.0.0-ec4a6db

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 (1651) hide show
  1. package/README.md +3 -3
  2. package/cli.js +9 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +21 -5
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +5 -2
  9. package/dist/app/entry.client.js +37 -2
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +8 -8
  12. package/dist/app/entry.server.js +12 -10
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +1 -0
  18. package/dist/app/main.js +36 -46
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +7 -6
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.d.ts +1 -3
  23. package/dist/cli/build/handler.js +18 -2
  24. package/dist/cli/build/handler.js.map +1 -1
  25. package/dist/cli/cli.js +17 -1
  26. package/dist/cli/cli.js.map +1 -1
  27. package/dist/cli/cmds/build.d.ts +11 -3
  28. package/dist/cli/cmds/build.js +20 -13
  29. package/dist/cli/cmds/build.js.map +1 -1
  30. package/dist/cli/cmds/dev.d.ts +1 -1
  31. package/dist/cli/cmds/dev.js.map +1 -1
  32. package/dist/cli/cmds/preview.d.ts +16 -0
  33. package/dist/cli/cmds/preview.js +25 -0
  34. package/dist/cli/cmds/preview.js.map +1 -0
  35. package/dist/cli/common/machine-id/lib.js +1 -0
  36. package/dist/cli/common/machine-id/lib.js.map +1 -1
  37. package/dist/cli/common/utils/ports.d.ts +1 -1
  38. package/dist/cli/common/utils/ports.js +16 -15
  39. package/dist/cli/common/utils/ports.js.map +1 -1
  40. package/dist/cli/dev/handler.js +10 -12
  41. package/dist/cli/dev/handler.js.map +1 -1
  42. package/dist/cli/preview/handler.d.ts +3 -0
  43. package/dist/cli/preview/handler.js +35 -0
  44. package/dist/cli/preview/handler.js.map +1 -0
  45. package/dist/config/config.d.ts +27 -14
  46. package/dist/config/file-exists.d.ts +1 -0
  47. package/dist/config/file-exists.js +5 -0
  48. package/dist/config/file-exists.js.map +1 -0
  49. package/dist/config/loader.d.ts +19 -18
  50. package/dist/config/loader.js +104 -117
  51. package/dist/config/loader.js.map +1 -1
  52. package/dist/config/validators/BuildSchema.d.ts +36 -0
  53. package/dist/config/validators/BuildSchema.js +25 -0
  54. package/dist/config/validators/BuildSchema.js.map +1 -0
  55. package/dist/config/validators/InputNavigationSchema.d.ts +7369 -0
  56. package/dist/config/validators/InputNavigationSchema.js +74 -0
  57. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  58. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  59. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  60. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  61. package/dist/config/validators/NavigationSchema.js +95 -0
  62. package/dist/config/validators/NavigationSchema.js.map +1 -0
  63. package/dist/config/validators/icon-types.d.ts +2 -1
  64. package/dist/config/validators/icon-types.js +1813 -1
  65. package/dist/config/validators/icon-types.js.map +1 -1
  66. package/dist/config/validators/validate.d.ts +643 -1918
  67. package/dist/config/validators/validate.js +433 -16
  68. package/dist/config/validators/validate.js.map +1 -1
  69. package/dist/config/validators/validate.test.js +141 -0
  70. package/dist/config/validators/validate.test.js.map +1 -0
  71. package/dist/flat-config.d.ts +325 -0
  72. package/dist/index.d.ts +8 -4
  73. package/dist/index.js +4 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/lib/MissingIcon.d.ts +2 -0
  76. package/dist/lib/MissingIcon.js +7 -0
  77. package/dist/lib/MissingIcon.js.map +1 -0
  78. package/dist/lib/auth/issuer.d.ts +2 -0
  79. package/dist/lib/auth/issuer.js +37 -0
  80. package/dist/lib/auth/issuer.js.map +1 -0
  81. package/dist/lib/auth/issuer.test.js +94 -0
  82. package/dist/lib/auth/issuer.test.js.map +1 -0
  83. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  84. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  85. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  86. package/dist/lib/authentication/authentication.d.ts +5 -4
  87. package/dist/lib/authentication/components/CallbackHandler.js +6 -2
  88. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  89. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  90. package/dist/lib/authentication/components/SignIn.js +5 -1
  91. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  92. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  93. package/dist/lib/authentication/components/SignUp.js +4 -1
  94. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  95. package/dist/lib/authentication/hook.d.ts +7 -0
  96. package/dist/lib/authentication/hook.js +11 -1
  97. package/dist/lib/authentication/hook.js.map +1 -1
  98. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  99. package/dist/lib/authentication/providers/auth0.js +3 -2
  100. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  101. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  102. package/dist/lib/authentication/providers/azureb2c.js +145 -0
  103. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  104. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  105. package/dist/lib/authentication/providers/clerk.js +92 -55
  106. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  107. package/dist/lib/authentication/providers/openid.d.ts +20 -21
  108. package/dist/lib/authentication/providers/openid.js +88 -47
  109. package/dist/lib/authentication/providers/openid.js.map +1 -1
  110. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  111. package/dist/lib/authentication/providers/supabase.js +108 -0
  112. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  113. package/dist/lib/authentication/state.d.ts +6 -31
  114. package/dist/lib/authentication/state.js +28 -24
  115. package/dist/lib/authentication/state.js.map +1 -1
  116. package/dist/lib/components/AnchorLink.d.ts +2 -2
  117. package/dist/lib/components/AnchorLink.js +5 -4
  118. package/dist/lib/components/AnchorLink.js.map +1 -1
  119. package/dist/lib/components/Autocomplete.js +3 -3
  120. package/dist/lib/components/Autocomplete.js.map +1 -1
  121. package/dist/lib/components/Banner.js +2 -2
  122. package/dist/lib/components/Banner.js.map +1 -1
  123. package/dist/lib/components/Bootstrap.d.ts +2 -1
  124. package/dist/lib/components/Bootstrap.js +3 -2
  125. package/dist/lib/components/Bootstrap.js.map +1 -1
  126. package/dist/lib/components/BuildCheck.d.ts +4 -0
  127. package/dist/lib/components/BuildCheck.js +38 -0
  128. package/dist/lib/components/BuildCheck.js.map +1 -0
  129. package/dist/lib/components/CategoryHeading.js +1 -1
  130. package/dist/lib/components/CategoryHeading.js.map +1 -1
  131. package/dist/lib/components/ErrorPage.js +2 -2
  132. package/dist/lib/components/ErrorPage.js.map +1 -1
  133. package/dist/lib/components/Footer.d.ts +1 -0
  134. package/dist/lib/components/Footer.js +32 -0
  135. package/dist/lib/components/Footer.js.map +1 -0
  136. package/dist/lib/components/Framed.d.ts +7 -0
  137. package/dist/lib/components/Framed.js +26 -0
  138. package/dist/lib/components/Framed.js.map +1 -0
  139. package/dist/lib/components/Header.js +25 -16
  140. package/dist/lib/components/Header.js.map +1 -1
  141. package/dist/lib/components/Heading.d.ts +9 -5
  142. package/dist/lib/components/Heading.js +7 -2
  143. package/dist/lib/components/Heading.js.map +1 -1
  144. package/dist/lib/components/InlineCode.d.ts +2 -1
  145. package/dist/lib/components/InlineCode.js +2 -9
  146. package/dist/lib/components/InlineCode.js.map +1 -1
  147. package/dist/lib/components/Layout.js +9 -29
  148. package/dist/lib/components/Layout.js.map +1 -1
  149. package/dist/lib/components/Main.d.ts +2 -0
  150. package/dist/lib/components/Main.js +18 -0
  151. package/dist/lib/components/Main.js.map +1 -0
  152. package/dist/lib/components/Markdown.d.ts +3 -2
  153. package/dist/lib/components/Markdown.js +14 -16
  154. package/dist/lib/components/Markdown.js.map +1 -1
  155. package/dist/lib/components/MobileTopNavigation.js +13 -5
  156. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  157. package/dist/lib/components/NotFoundPage.js +2 -2
  158. package/dist/lib/components/NotFoundPage.js.map +1 -1
  159. package/dist/lib/components/PageProgress.d.ts +1 -0
  160. package/dist/lib/components/PageProgress.js +20 -0
  161. package/dist/lib/components/PageProgress.js.map +1 -0
  162. package/dist/lib/components/Pagination.d.ts +11 -0
  163. package/dist/lib/components/Pagination.js +10 -0
  164. package/dist/lib/components/Pagination.js.map +1 -0
  165. package/dist/lib/components/Search.js +7 -1
  166. package/dist/lib/components/Search.js.map +1 -1
  167. package/dist/lib/components/Slot.d.ts +17 -0
  168. package/dist/lib/components/Slot.js +24 -0
  169. package/dist/lib/components/Slot.js.map +1 -0
  170. package/dist/lib/components/Slot.test.js +168 -0
  171. package/dist/lib/components/Slot.test.js.map +1 -0
  172. package/dist/lib/components/StatusPage.js +4 -0
  173. package/dist/lib/components/StatusPage.js.map +1 -1
  174. package/dist/lib/components/ThemeSwitch.js +8 -5
  175. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  176. package/dist/lib/components/TopNavigation.d.ts +7 -5
  177. package/dist/lib/components/TopNavigation.js +52 -41
  178. package/dist/lib/components/TopNavigation.js.map +1 -1
  179. package/dist/lib/components/Typography.d.ts +5 -0
  180. package/dist/lib/components/Typography.js +8 -0
  181. package/dist/lib/components/Typography.js.map +1 -0
  182. package/dist/lib/components/Zudoku.d.ts +1 -1
  183. package/dist/lib/components/Zudoku.js +14 -9
  184. package/dist/lib/components/Zudoku.js.map +1 -1
  185. package/dist/lib/components/cache.d.ts +7 -0
  186. package/dist/lib/components/cache.js +7 -0
  187. package/dist/lib/components/cache.js.map +1 -1
  188. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  189. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  190. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  191. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  192. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  193. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  194. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  195. package/dist/lib/components/context/SlotProvider.js +83 -0
  196. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  197. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  198. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  199. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  200. package/dist/lib/components/context/ZudokuContext.d.ts +4 -8
  201. package/dist/lib/components/context/ZudokuContext.js +50 -21
  202. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  203. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  204. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  205. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  206. package/dist/lib/components/index.d.ts +50 -25
  207. package/dist/lib/components/index.js +18 -6
  208. package/dist/lib/components/index.js.map +1 -1
  209. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  210. package/dist/lib/components/navigation/Navigation.js +12 -0
  211. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  212. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  213. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  214. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  215. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  216. package/dist/lib/components/navigation/NavigationCategory.js +61 -0
  217. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  218. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  219. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  220. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  221. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  222. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  223. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  224. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  225. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  226. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  227. package/dist/lib/components/navigation/Toc.js +46 -0
  228. package/dist/lib/components/navigation/Toc.js.map +1 -0
  229. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  230. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  231. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  232. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  233. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  234. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  235. package/dist/lib/components/navigation/utils.d.ts +12 -6
  236. package/dist/lib/components/navigation/utils.js +46 -18
  237. package/dist/lib/components/navigation/utils.js.map +1 -1
  238. package/dist/lib/core/RouteGuard.d.ts +2 -1
  239. package/dist/lib/core/RouteGuard.js +35 -11
  240. package/dist/lib/core/RouteGuard.js.map +1 -1
  241. package/dist/lib/core/ZudokuContext.d.ts +60 -22
  242. package/dist/lib/core/ZudokuContext.js +52 -17
  243. package/dist/lib/core/ZudokuContext.js.map +1 -1
  244. package/dist/lib/core/plugins.d.ts +22 -9
  245. package/dist/lib/core/plugins.js +4 -0
  246. package/dist/lib/core/plugins.js.map +1 -1
  247. package/dist/lib/errors/ErrorAlert.js +5 -1
  248. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  249. package/dist/lib/hooks/index.d.ts +28 -0
  250. package/dist/lib/hooks/index.js +16 -0
  251. package/dist/lib/hooks/index.js.map +1 -0
  252. package/dist/lib/hooks/useEvent.d.ts +11 -0
  253. package/dist/lib/hooks/useEvent.js +19 -0
  254. package/dist/lib/hooks/useEvent.js.map +1 -0
  255. package/dist/lib/hooks/useEvent.test.js +102 -0
  256. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  257. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  258. package/dist/lib/hooks/useHotkey.js +58 -0
  259. package/dist/lib/hooks/useHotkey.js.map +1 -0
  260. package/dist/lib/icons.d.ts +1 -0
  261. package/dist/lib/icons.js +1 -0
  262. package/dist/lib/icons.js.map +1 -1
  263. package/dist/lib/oas/graphql/circular.js +23 -18
  264. package/dist/lib/oas/graphql/circular.js.map +1 -1
  265. package/dist/lib/oas/graphql/index.d.ts +17 -4
  266. package/dist/lib/oas/graphql/index.js +151 -38
  267. package/dist/lib/oas/graphql/index.js.map +1 -1
  268. package/dist/lib/oas/parser/dereference/index.js +2 -0
  269. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  270. package/dist/lib/oas/parser/index.d.ts +8 -3
  271. package/dist/lib/oas/parser/index.js +7 -23
  272. package/dist/lib/oas/parser/index.js.map +1 -1
  273. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  274. package/dist/lib/oas/parser/upgrade/index.js +76 -23
  275. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  276. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  277. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  278. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  279. package/dist/lib/plugins/api-catalog/index.d.ts +7 -6
  280. package/dist/lib/plugins/api-catalog/index.js +39 -8
  281. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  282. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  283. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  284. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  285. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  286. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +150 -27
  287. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  288. package/dist/lib/plugins/api-keys/index.d.ts +21 -11
  289. package/dist/lib/plugins/api-keys/index.js +67 -32
  290. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  291. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  292. package/dist/lib/plugins/custom-pages/index.js +15 -10
  293. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  294. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  295. package/dist/lib/plugins/markdown/MdxPage.js +32 -18
  296. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  297. package/dist/lib/plugins/markdown/index.d.ts +11 -3
  298. package/dist/lib/plugins/markdown/index.js +9 -26
  299. package/dist/lib/plugins/markdown/index.js.map +1 -1
  300. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  301. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  302. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  303. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  304. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  305. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  306. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  307. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  308. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  309. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  310. package/dist/lib/plugins/openapi/OperationList.js +68 -22
  311. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  312. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  313. package/dist/lib/plugins/openapi/OperationListItem.js +10 -14
  314. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  315. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  316. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  317. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  318. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  319. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  320. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  321. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  322. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  323. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -2
  324. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -2
  325. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  326. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  327. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  328. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  329. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  330. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  331. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  332. package/dist/lib/plugins/openapi/Sidecar.js +47 -68
  333. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  334. package/dist/lib/plugins/openapi/SidecarExamples.js +10 -2
  335. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  336. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  337. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  338. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  339. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  340. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  341. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  342. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  343. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  344. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  345. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  346. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  347. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  348. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  349. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  350. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  351. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  352. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  353. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  354. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  355. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  356. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  357. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  358. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  359. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  360. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  361. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  362. package/dist/lib/plugins/openapi/index.d.ts +10 -8
  363. package/dist/lib/plugins/openapi/index.js +59 -143
  364. package/dist/lib/plugins/openapi/index.js.map +1 -1
  365. package/dist/lib/plugins/openapi/interfaces.d.ts +38 -11
  366. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  367. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  368. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  369. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  370. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  371. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  372. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  373. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -5
  374. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  375. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  376. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  377. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  378. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  379. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  380. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  381. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  382. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  383. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  384. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  385. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  386. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  387. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  388. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  389. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -3
  390. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  391. package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -3
  392. package/dist/lib/plugins/openapi/playground/Playground.js +150 -76
  393. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  394. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  395. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  396. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  397. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  398. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  399. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  400. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  401. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  402. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  403. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  404. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  405. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  406. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  407. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  408. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  409. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  410. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  411. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  412. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  413. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  414. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  415. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  416. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  417. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  418. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  419. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  420. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  421. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  422. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  423. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  424. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +41 -33
  425. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  426. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -5
  427. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +9 -10
  428. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  430. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  431. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  432. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  433. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  434. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  435. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  436. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  437. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  438. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  439. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  440. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  441. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  442. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  443. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  444. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  445. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  446. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  447. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  448. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  449. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  450. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  451. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  452. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  453. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  454. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  455. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  456. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  457. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  458. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  459. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  460. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  461. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  462. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  463. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  464. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +25 -18
  465. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  466. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  467. package/dist/lib/plugins/openapi/schema/SchemaView.js +39 -51
  468. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  469. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  470. package/dist/lib/plugins/openapi/schema/utils.js +15 -5
  471. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  472. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  473. package/dist/lib/plugins/openapi/state.js +18 -0
  474. package/dist/lib/plugins/openapi/state.js.map +1 -0
  475. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  476. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  477. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  478. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  479. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
  480. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  481. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  482. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  483. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  484. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  485. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  486. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  487. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  488. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  489. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  490. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  491. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  492. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  493. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  494. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  495. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  496. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  497. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  498. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  499. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  500. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  501. package/dist/lib/plugins/search-pagefind/ResultList.js +39 -0
  502. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  503. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  504. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  505. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  506. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  507. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  508. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  509. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  510. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  511. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  512. package/dist/lib/shiki.d.ts +31 -0
  513. package/dist/lib/shiki.js +101 -0
  514. package/dist/lib/shiki.js.map +1 -0
  515. package/dist/lib/ui/Alert.d.ts +6 -5
  516. package/dist/lib/ui/Alert.js +12 -10
  517. package/dist/lib/ui/Alert.js.map +1 -1
  518. package/dist/lib/ui/Badge.d.ts +2 -2
  519. package/dist/lib/ui/Badge.js +1 -1
  520. package/dist/lib/ui/Badge.js.map +1 -1
  521. package/dist/lib/ui/Button.d.ts +3 -3
  522. package/dist/lib/ui/Button.js +9 -6
  523. package/dist/lib/ui/Button.js.map +1 -1
  524. package/dist/lib/ui/Callout.d.ts +2 -1
  525. package/dist/lib/ui/Callout.js +3 -2
  526. package/dist/lib/ui/Callout.js.map +1 -1
  527. package/dist/lib/ui/Card.js +1 -1
  528. package/dist/lib/ui/Checkbox.d.ts +2 -8
  529. package/dist/lib/ui/Checkbox.js +1 -13
  530. package/dist/lib/ui/Checkbox.js.map +1 -1
  531. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  532. package/dist/lib/ui/CodeBlock.js +17 -0
  533. package/dist/lib/ui/CodeBlock.js.map +1 -0
  534. package/dist/lib/ui/Command.d.ts +8 -2
  535. package/dist/lib/ui/Command.js +5 -5
  536. package/dist/lib/ui/Command.js.map +1 -1
  537. package/dist/lib/ui/Dialog.d.ts +3 -1
  538. package/dist/lib/ui/Dialog.js +2 -2
  539. package/dist/lib/ui/Dialog.js.map +1 -1
  540. package/dist/lib/ui/DropdownMenu.js +4 -4
  541. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  542. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  543. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  544. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  545. package/dist/lib/ui/Form.d.ts +1 -1
  546. package/dist/lib/ui/HoverCard.js +1 -1
  547. package/dist/lib/ui/HoverCard.js.map +1 -1
  548. package/dist/lib/ui/Input.js +1 -1
  549. package/dist/lib/ui/Input.js.map +1 -1
  550. package/dist/lib/ui/Popover.js +1 -1
  551. package/dist/lib/ui/Popover.js.map +1 -1
  552. package/dist/lib/ui/RadioGroup.js +1 -1
  553. package/dist/lib/ui/RadioGroup.js.map +1 -1
  554. package/dist/lib/ui/Select.js +2 -2
  555. package/dist/lib/ui/Select.js.map +1 -1
  556. package/dist/lib/ui/Slider.js +1 -1
  557. package/dist/lib/ui/Slider.js.map +1 -1
  558. package/dist/lib/ui/Stepper.d.ts +3 -0
  559. package/dist/lib/ui/Stepper.js +7 -0
  560. package/dist/lib/ui/Stepper.js.map +1 -0
  561. package/dist/lib/ui/Switch.js +1 -1
  562. package/dist/lib/ui/Switch.js.map +1 -1
  563. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  564. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  565. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  566. package/dist/lib/ui/Tabs.js +2 -2
  567. package/dist/lib/ui/Tabs.js.map +1 -1
  568. package/dist/lib/ui/Textarea.js +1 -1
  569. package/dist/lib/ui/Textarea.js.map +1 -1
  570. package/dist/lib/ui/Toggle.js +1 -1
  571. package/dist/lib/ui/Toggle.js.map +1 -1
  572. package/dist/lib/ui/Tooltip.d.ts +2 -1
  573. package/dist/lib/ui/Tooltip.js +2 -1
  574. package/dist/lib/ui/Tooltip.js.map +1 -1
  575. package/dist/lib/ui/util.d.ts +2 -0
  576. package/dist/lib/ui/util.js +3 -0
  577. package/dist/lib/ui/util.js.map +1 -0
  578. package/dist/lib/util/MdxComponents.d.ts +22 -4
  579. package/dist/lib/util/MdxComponents.js +21 -15
  580. package/dist/lib/util/MdxComponents.js.map +1 -1
  581. package/dist/lib/util/detectOS.d.ts +1 -0
  582. package/dist/lib/util/detectOS.js +11 -0
  583. package/dist/lib/util/detectOS.js.map +1 -0
  584. package/dist/lib/util/ensureArray.d.ts +1 -0
  585. package/dist/lib/util/ensureArray.js +2 -0
  586. package/dist/lib/util/ensureArray.js.map +1 -0
  587. package/dist/lib/util/humanFileSize.d.ts +6 -0
  588. package/dist/lib/util/humanFileSize.js +14 -0
  589. package/dist/lib/util/humanFileSize.js.map +1 -0
  590. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  591. package/dist/lib/util/humanFileSize.test.js +22 -0
  592. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  593. package/dist/lib/util/joinPath.d.ts +3 -0
  594. package/dist/lib/util/joinPath.js +3 -0
  595. package/dist/lib/util/joinPath.js.map +1 -1
  596. package/dist/lib/util/os.d.ts +2 -0
  597. package/dist/lib/util/os.js +21 -0
  598. package/dist/lib/util/os.js.map +1 -0
  599. package/dist/lib/util/traverse.d.ts +3 -9
  600. package/dist/lib/util/traverse.js +7 -6
  601. package/dist/lib/util/traverse.js.map +1 -1
  602. package/dist/lib/util/types.d.ts +7 -0
  603. package/dist/lib/util/types.js +2 -0
  604. package/dist/lib/util/types.js.map +1 -0
  605. package/dist/lib/util/url.d.ts +4 -0
  606. package/dist/lib/util/url.js +13 -0
  607. package/dist/lib/util/url.js.map +1 -0
  608. package/dist/lib/util/url.test.d.ts +1 -0
  609. package/dist/lib/util/url.test.js +26 -0
  610. package/dist/lib/util/url.test.js.map +1 -0
  611. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  612. package/dist/lib/util/useCopyToClipboard.js +11 -0
  613. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  614. package/dist/lib/util/useExposedProps.d.ts +8 -1
  615. package/dist/lib/util/useExposedProps.js.map +1 -1
  616. package/dist/lib/util/useLatest.d.ts +1 -0
  617. package/dist/lib/util/useLatest.js +15 -0
  618. package/dist/lib/util/useLatest.js.map +1 -0
  619. package/dist/lib/util/useOnScreen.d.ts +3 -2
  620. package/dist/lib/util/useOnScreen.js +3 -3
  621. package/dist/lib/util/useOnScreen.js.map +1 -1
  622. package/dist/lib/util/useScrollToAnchor.js +27 -21
  623. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  624. package/dist/vite/api/SchemaManager.d.ts +36 -0
  625. package/dist/vite/api/SchemaManager.js +141 -0
  626. package/dist/vite/api/SchemaManager.js.map +1 -0
  627. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  628. package/dist/vite/api/SchemaManager.test.js +106 -0
  629. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  630. package/dist/vite/api/schema-codegen.d.ts +1 -1
  631. package/dist/vite/api/schema-codegen.js +73 -19
  632. package/dist/vite/api/schema-codegen.js.map +1 -1
  633. package/dist/vite/api/schema-codegen.test.js +148 -0
  634. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  635. package/dist/vite/build.js +48 -22
  636. package/dist/vite/build.js.map +1 -1
  637. package/dist/vite/config.d.ts +2 -12
  638. package/dist/vite/config.js +101 -150
  639. package/dist/vite/config.js.map +1 -1
  640. package/dist/vite/config.test.js +2 -2
  641. package/dist/vite/config.test.js.map +1 -1
  642. package/dist/vite/create-pagefind-index.d.ts +4 -0
  643. package/dist/vite/create-pagefind-index.js +12 -0
  644. package/dist/vite/create-pagefind-index.js.map +1 -0
  645. package/dist/vite/css/plugin.d.ts +1 -2
  646. package/dist/vite/css/plugin.js +14 -2
  647. package/dist/vite/css/plugin.js.map +1 -1
  648. package/dist/vite/dev-server.d.ts +4 -3
  649. package/dist/vite/dev-server.js +53 -22
  650. package/dist/vite/dev-server.js.map +1 -1
  651. package/dist/vite/error-handler.d.ts +1 -1
  652. package/dist/vite/error-handler.js +1 -1
  653. package/dist/vite/error-handler.js.map +1 -1
  654. package/dist/vite/html.d.ts +7 -3
  655. package/dist/vite/html.js +15 -9
  656. package/dist/vite/html.js.map +1 -1
  657. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  658. package/dist/vite/mdx/remark-last-modified.js +29 -0
  659. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  660. package/dist/vite/mdx/utils.d.ts +2 -0
  661. package/dist/vite/mdx/utils.js +31 -0
  662. package/dist/vite/mdx/utils.js.map +1 -0
  663. package/dist/vite/output.d.ts +14 -2
  664. package/dist/vite/output.js +12 -14
  665. package/dist/vite/output.js.map +1 -1
  666. package/dist/vite/plugin-api-keys.d.ts +1 -2
  667. package/dist/vite/plugin-api-keys.js +13 -7
  668. package/dist/vite/plugin-api-keys.js.map +1 -1
  669. package/dist/vite/plugin-api.d.ts +1 -2
  670. package/dist/vite/plugin-api.js +79 -112
  671. package/dist/vite/plugin-api.js.map +1 -1
  672. package/dist/vite/plugin-auth.d.ts +1 -2
  673. package/dist/vite/plugin-auth.js +6 -5
  674. package/dist/vite/plugin-auth.js.map +1 -1
  675. package/dist/vite/plugin-component.d.ts +1 -2
  676. package/dist/vite/plugin-component.js +10 -4
  677. package/dist/vite/plugin-component.js.map +1 -1
  678. package/dist/vite/plugin-config-reload.d.ts +3 -3
  679. package/dist/vite/plugin-config-reload.js +31 -23
  680. package/dist/vite/plugin-config-reload.js.map +1 -1
  681. package/dist/vite/plugin-config.d.ts +1 -2
  682. package/dist/vite/plugin-config.js +11 -6
  683. package/dist/vite/plugin-config.js.map +1 -1
  684. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  685. package/dist/vite/plugin-custom-pages.js +7 -6
  686. package/dist/vite/plugin-custom-pages.js.map +1 -1
  687. package/dist/vite/plugin-docs.d.ts +2 -3
  688. package/dist/vite/plugin-docs.js +66 -46
  689. package/dist/vite/plugin-docs.js.map +1 -1
  690. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  691. package/dist/vite/plugin-frontmatter.js +13 -7
  692. package/dist/vite/plugin-frontmatter.js.map +1 -1
  693. package/dist/vite/plugin-mdx.d.ts +1 -2
  694. package/dist/vite/plugin-mdx.js +49 -71
  695. package/dist/vite/plugin-mdx.js.map +1 -1
  696. package/dist/vite/plugin-navigation.d.ts +4 -0
  697. package/dist/vite/plugin-navigation.js +64 -0
  698. package/dist/vite/plugin-navigation.js.map +1 -0
  699. package/dist/vite/plugin-redirect.d.ts +1 -2
  700. package/dist/vite/plugin-redirect.js +6 -5
  701. package/dist/vite/plugin-redirect.js.map +1 -1
  702. package/dist/vite/plugin-search.d.ts +1 -2
  703. package/dist/vite/plugin-search.js +8 -3
  704. package/dist/vite/plugin-search.js.map +1 -1
  705. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  706. package/dist/vite/plugin-shiki-register.js +39 -0
  707. package/dist/vite/plugin-shiki-register.js.map +1 -0
  708. package/dist/vite/plugin-theme.d.ts +8 -0
  709. package/dist/vite/plugin-theme.js +235 -0
  710. package/dist/vite/plugin-theme.js.map +1 -0
  711. package/dist/vite/plugin-theme.test.d.ts +1 -0
  712. package/dist/vite/plugin-theme.test.js +291 -0
  713. package/dist/vite/plugin-theme.test.js.map +1 -0
  714. package/dist/vite/plugin.d.ts +1 -2
  715. package/dist/vite/plugin.js +23 -22
  716. package/dist/vite/plugin.js.map +1 -1
  717. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  718. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  719. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  720. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  721. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  722. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  723. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  724. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  725. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  726. package/dist/vite/prerender/prerender.d.ts +15 -0
  727. package/dist/vite/prerender/prerender.js +109 -0
  728. package/dist/vite/prerender/prerender.js.map +1 -0
  729. package/dist/vite/prerender/worker.d.ts +13 -0
  730. package/dist/vite/prerender/worker.js +59 -0
  731. package/dist/vite/prerender/worker.js.map +1 -0
  732. package/dist/vite/reporter.d.ts +3 -0
  733. package/dist/vite/reporter.js +33 -0
  734. package/dist/vite/reporter.js.map +1 -0
  735. package/dist/vite/shadcn-registry.d.ts +45 -0
  736. package/dist/vite/shadcn-registry.js +29 -0
  737. package/dist/vite/shadcn-registry.js.map +1 -0
  738. package/dist/vite/sitemap.d.ts +1 -1
  739. package/dist/vite/sitemap.js +2 -1
  740. package/dist/vite/sitemap.js.map +1 -1
  741. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  742. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  743. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  744. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  745. package/dist/zuplo/with-zuplo-processors.js +7 -7
  746. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  747. package/dist/zuplo/with-zuplo.d.ts +5 -2
  748. package/dist/zuplo/with-zuplo.js +6 -5
  749. package/dist/zuplo/with-zuplo.js.map +1 -1
  750. package/lib/Alert-FYKbqjIt.js +161 -0
  751. package/lib/Alert-FYKbqjIt.js.map +1 -0
  752. package/lib/Button-BE9IVkWV.js +51 -0
  753. package/lib/Button-BE9IVkWV.js.map +1 -0
  754. package/lib/Card-DPhGbYUM.js +61 -0
  755. package/lib/Card-DPhGbYUM.js.map +1 -0
  756. package/lib/CodeBlock-DAKxs_Tu.js +85 -0
  757. package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
  758. package/lib/Command-xsbs2uhf.js +140 -0
  759. package/lib/Command-xsbs2uhf.js.map +1 -0
  760. package/lib/Dialog-CiIdyz6a.js +99 -0
  761. package/lib/Dialog-CiIdyz6a.js.map +1 -0
  762. package/lib/Drawer-BzkOKwgC.js +1133 -0
  763. package/lib/Drawer-BzkOKwgC.js.map +1 -0
  764. package/lib/MdxPage-DyRuoE_F.js +110 -0
  765. package/lib/MdxPage-DyRuoE_F.js.map +1 -0
  766. package/lib/OasProvider-CUA-DFGE.js +35 -0
  767. package/lib/OasProvider-CUA-DFGE.js.map +1 -0
  768. package/lib/OperationList-CRMvWoTv.js +5166 -0
  769. package/lib/OperationList-CRMvWoTv.js.map +1 -0
  770. package/lib/Pagination-HZKe5ncg.js +37 -0
  771. package/lib/Pagination-HZKe5ncg.js.map +1 -0
  772. package/lib/RouteGuard-CbKd7_9h.js +737 -0
  773. package/lib/RouteGuard-CbKd7_9h.js.map +1 -0
  774. package/lib/SchemaList-B792ORza.js +149 -0
  775. package/lib/SchemaList-B792ORza.js.map +1 -0
  776. package/lib/SchemaView-Bo53TeMb.js +366 -0
  777. package/lib/SchemaView-Bo53TeMb.js.map +1 -0
  778. package/lib/SignUp-DfVvOCYB.js +56 -0
  779. package/lib/SignUp-DfVvOCYB.js.map +1 -0
  780. package/lib/Slot-BpO_AGKJ.js +15743 -0
  781. package/lib/Slot-BpO_AGKJ.js.map +1 -0
  782. package/lib/Spinner-mNLZ6awP.js +7 -0
  783. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  784. package/lib/SyntaxHighlight-CZgjJ7-f.js +10306 -0
  785. package/lib/SyntaxHighlight-CZgjJ7-f.js.map +1 -0
  786. package/lib/Toc-DYMzDvOa.js +92 -0
  787. package/lib/Toc-DYMzDvOa.js.map +1 -0
  788. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js +1839 -0
  789. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -0
  790. package/lib/circular-CLdQ0oUd.js +14934 -0
  791. package/lib/circular-CLdQ0oUd.js.map +1 -0
  792. package/lib/clerk-BDZ31hjU.js +25190 -0
  793. package/lib/clerk-BDZ31hjU.js.map +1 -0
  794. package/lib/clsx-OuTLNxxd.js +17 -0
  795. package/lib/clsx-OuTLNxxd.js.map +1 -0
  796. package/lib/cn-wvCW-ho6.js +2731 -0
  797. package/lib/cn-wvCW-ho6.js.map +1 -0
  798. package/lib/createServer-Co4BBP-i.js +12659 -0
  799. package/lib/createServer-Co4BBP-i.js.map +1 -0
  800. package/lib/errors-DE1gK7ms.js +78 -0
  801. package/lib/errors-DE1gK7ms.js.map +1 -0
  802. package/lib/hook-Bd0yS8M0.js +1503 -0
  803. package/lib/hook-Bd0yS8M0.js.map +1 -0
  804. package/lib/index-ClhS5TxS.js +107 -0
  805. package/lib/index-ClhS5TxS.js.map +1 -0
  806. package/lib/index-CrcNWbel.js +316 -0
  807. package/lib/index-CrcNWbel.js.map +1 -0
  808. package/lib/index-DI5SPFK9.js +36 -0
  809. package/lib/index-DI5SPFK9.js.map +1 -0
  810. package/lib/index-DLshv89l.js +3979 -0
  811. package/lib/index-DLshv89l.js.map +1 -0
  812. package/lib/index-DLzZDv8_.js +2094 -0
  813. package/lib/index-DLzZDv8_.js.map +1 -0
  814. package/lib/index-DYP-V0jG.js +3469 -0
  815. package/lib/index-DYP-V0jG.js.map +1 -0
  816. package/lib/index-DmNq2fbN.js +4827 -0
  817. package/lib/index-DmNq2fbN.js.map +1 -0
  818. package/lib/index.esm-Cp4wkyud.js +1236 -0
  819. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  820. package/lib/invariant-DAFpPywt.js +48 -0
  821. package/lib/invariant-DAFpPywt.js.map +1 -0
  822. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  823. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  824. package/lib/processors/removeExtensions.js +11 -0
  825. package/lib/processors/removeExtensions.js.map +1 -0
  826. package/lib/processors/removeParameters.js +47 -0
  827. package/lib/processors/removeParameters.js.map +1 -0
  828. package/lib/processors/removePaths.js +28 -0
  829. package/lib/processors/removePaths.js.map +1 -0
  830. package/lib/processors/traverse.js +17 -0
  831. package/lib/processors/traverse.js.map +1 -0
  832. package/lib/ui/Accordion.js +2 -2
  833. package/lib/ui/ActionButton.js +11 -10
  834. package/lib/ui/ActionButton.js.map +1 -1
  835. package/lib/ui/Alert.js +55 -39
  836. package/lib/ui/Alert.js.map +1 -1
  837. package/lib/ui/AlertDialog.js +2 -2
  838. package/lib/ui/Badge.js +4 -4
  839. package/lib/ui/Badge.js.map +1 -1
  840. package/lib/ui/Breadcrumb.js +5 -5
  841. package/lib/ui/Button.js +22 -19
  842. package/lib/ui/Button.js.map +1 -1
  843. package/lib/ui/Callout.js +40 -20
  844. package/lib/ui/Callout.js.map +1 -1
  845. package/lib/ui/Card.js +9 -9
  846. package/lib/ui/Card.js.map +1 -1
  847. package/lib/ui/Carousel.js +348 -348
  848. package/lib/ui/Carousel.js.map +1 -1
  849. package/lib/ui/Checkbox.js +16 -26
  850. package/lib/ui/Checkbox.js.map +1 -1
  851. package/lib/ui/CodeBlock.js +9 -0
  852. package/lib/ui/CodeBlock.js.map +1 -0
  853. package/lib/ui/Command.js +102 -75
  854. package/lib/ui/Command.js.map +1 -1
  855. package/lib/ui/Dialog.js +41 -41
  856. package/lib/ui/Dialog.js.map +1 -1
  857. package/lib/ui/Drawer.js +14 -1151
  858. package/lib/ui/Drawer.js.map +1 -1
  859. package/lib/ui/DropdownMenu.js +35 -35
  860. package/lib/ui/DropdownMenu.js.map +1 -1
  861. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  862. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  863. package/lib/ui/Form.js +6 -6
  864. package/lib/ui/HoverCard.js +6 -6
  865. package/lib/ui/HoverCard.js.map +1 -1
  866. package/lib/ui/Input.js +3 -3
  867. package/lib/ui/Input.js.map +1 -1
  868. package/lib/ui/Label.js +3 -3
  869. package/lib/ui/Pagination.js +11 -11
  870. package/lib/ui/Popover.js +3 -3
  871. package/lib/ui/Popover.js.map +1 -1
  872. package/lib/ui/Progress.js +2 -2
  873. package/lib/ui/RadioGroup.js +11 -11
  874. package/lib/ui/RadioGroup.js.map +1 -1
  875. package/lib/ui/ScrollArea.js +2 -2
  876. package/lib/ui/Select.js +32 -32
  877. package/lib/ui/Select.js.map +1 -1
  878. package/lib/ui/Skeleton.js +2 -2
  879. package/lib/ui/Slider.js +6 -6
  880. package/lib/ui/Slider.js.map +1 -1
  881. package/lib/ui/Stepper.js +6 -0
  882. package/lib/ui/Stepper.js.map +1 -0
  883. package/lib/ui/Switch.js +6 -6
  884. package/lib/ui/Switch.js.map +1 -1
  885. package/lib/ui/SyntaxHighlight.js +11 -0
  886. package/lib/ui/SyntaxHighlight.js.map +1 -0
  887. package/lib/ui/Tabs.js +17 -17
  888. package/lib/ui/Tabs.js.map +1 -1
  889. package/lib/ui/Textarea.js +6 -6
  890. package/lib/ui/Textarea.js.map +1 -1
  891. package/lib/ui/Toggle.js +8 -8
  892. package/lib/ui/Toggle.js.map +1 -1
  893. package/lib/ui/ToggleGroup.js +2 -2
  894. package/lib/ui/Tooltip.js +15 -8
  895. package/lib/ui/Tooltip.js.map +1 -1
  896. package/lib/ui/util.js +6 -0
  897. package/lib/ui/util.js.map +1 -0
  898. package/lib/useExposedProps-BIYjecPD.js +9 -0
  899. package/lib/useExposedProps-BIYjecPD.js.map +1 -0
  900. package/lib/zudoku.auth-auth0.js +34 -36
  901. package/lib/zudoku.auth-auth0.js.map +1 -1
  902. package/lib/zudoku.auth-azureb2c.js +9971 -0
  903. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  904. package/lib/zudoku.auth-clerk.js +104 -84
  905. package/lib/zudoku.auth-clerk.js.map +1 -1
  906. package/lib/zudoku.auth-openid.js +535 -566
  907. package/lib/zudoku.auth-openid.js.map +1 -1
  908. package/lib/zudoku.components.js +33 -1303
  909. package/lib/zudoku.components.js.map +1 -1
  910. package/lib/zudoku.hooks.js +27 -0
  911. package/lib/zudoku.hooks.js.map +1 -0
  912. package/lib/zudoku.icons.js +10 -0
  913. package/lib/zudoku.icons.js.map +1 -1
  914. package/lib/zudoku.plugin-api-catalog.js +108 -114
  915. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  916. package/lib/zudoku.plugin-api-keys.js +556 -205
  917. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  918. package/lib/zudoku.plugin-custom-pages.js +12 -18
  919. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  920. package/lib/zudoku.plugin-markdown.js +20 -94
  921. package/lib/zudoku.plugin-markdown.js.map +1 -1
  922. package/lib/zudoku.plugin-openapi.js +7 -7
  923. package/lib/zudoku.plugin-openapi.js.map +1 -1
  924. package/lib/zudoku.plugin-redirect.js +1 -1
  925. package/lib/zudoku.plugin-redirect.js.map +1 -1
  926. package/lib/zudoku.plugin-search-inkeep.js +54 -58
  927. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  928. package/lib/zudoku.plugin-search-pagefind.js +324 -0
  929. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  930. package/lib/zudoku.plugins.js +15 -0
  931. package/lib/zudoku.plugins.js.map +1 -0
  932. package/package.json +149 -91
  933. package/src/app/ZuploBuildConfig.ts +33 -0
  934. package/src/app/defaultTheme.css +73 -0
  935. package/src/app/demo.html +1 -1
  936. package/src/app/demo.tsx +24 -6
  937. package/src/app/entry.client.tsx +51 -2
  938. package/src/app/entry.server.tsx +23 -15
  939. package/src/app/env.ts +43 -0
  940. package/src/app/font.geist.css +73 -0
  941. package/src/app/main.css +156 -143
  942. package/src/app/main.tsx +47 -52
  943. package/src/app/standalone.tsx +7 -6
  944. package/src/lib/MissingIcon.tsx +22 -0
  945. package/src/lib/auth/issuer.test.ts +120 -0
  946. package/src/lib/auth/issuer.ts +41 -0
  947. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  948. package/src/lib/authentication/authentication.ts +6 -7
  949. package/src/lib/authentication/components/CallbackHandler.tsx +12 -2
  950. package/src/lib/authentication/components/SignIn.tsx +27 -1
  951. package/src/lib/authentication/components/SignUp.tsx +35 -1
  952. package/src/lib/authentication/hook.ts +12 -1
  953. package/src/lib/authentication/providers/auth0.tsx +12 -5
  954. package/src/lib/authentication/providers/azureb2c.tsx +196 -0
  955. package/src/lib/authentication/providers/clerk.tsx +105 -62
  956. package/src/lib/authentication/providers/openid.tsx +135 -61
  957. package/src/lib/authentication/providers/supabase.tsx +150 -0
  958. package/src/lib/authentication/state.ts +46 -44
  959. package/src/lib/components/AnchorLink.tsx +9 -7
  960. package/src/lib/components/Autocomplete.tsx +3 -2
  961. package/src/lib/components/Banner.tsx +3 -3
  962. package/src/lib/components/Bootstrap.tsx +13 -6
  963. package/src/lib/components/BuildCheck.tsx +75 -0
  964. package/src/lib/components/CategoryHeading.tsx +4 -1
  965. package/src/lib/components/ErrorPage.tsx +3 -3
  966. package/src/lib/components/Footer.tsx +136 -0
  967. package/src/lib/components/Framed.tsx +51 -0
  968. package/src/lib/components/Header.tsx +51 -44
  969. package/src/lib/components/Heading.tsx +18 -10
  970. package/src/lib/components/InlineCode.tsx +13 -16
  971. package/src/lib/components/Layout.tsx +30 -71
  972. package/src/lib/components/Main.tsx +51 -0
  973. package/src/lib/components/Markdown.tsx +40 -27
  974. package/src/lib/components/MobileTopNavigation.tsx +86 -22
  975. package/src/lib/components/NotFoundPage.tsx +3 -3
  976. package/src/lib/components/PageProgress.tsx +28 -0
  977. package/src/lib/components/Pagination.tsx +45 -0
  978. package/src/lib/components/Search.tsx +15 -4
  979. package/src/lib/components/Slot.test.tsx +465 -0
  980. package/src/lib/components/Slot.tsx +64 -0
  981. package/src/lib/components/StatusPage.tsx +5 -0
  982. package/src/lib/components/ThemeSwitch.tsx +28 -8
  983. package/src/lib/components/TopNavigation.tsx +88 -66
  984. package/src/lib/components/Typography.tsx +14 -0
  985. package/src/lib/components/Zudoku.tsx +27 -16
  986. package/src/lib/components/cache.ts +8 -0
  987. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  988. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  989. package/src/lib/components/context/SlotProvider.tsx +149 -0
  990. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  991. package/src/lib/components/context/ZudokuContext.ts +62 -25
  992. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  993. package/src/lib/components/index.ts +19 -9
  994. package/src/lib/components/navigation/Navigation.tsx +50 -0
  995. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  996. package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
  997. package/src/lib/components/navigation/NavigationItem.tsx +151 -0
  998. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  999. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1000. package/src/lib/components/navigation/Toc.tsx +126 -0
  1001. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1002. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1003. package/src/lib/components/navigation/utils.ts +63 -28
  1004. package/src/lib/core/RouteGuard.tsx +73 -12
  1005. package/src/lib/core/ZudokuContext.ts +114 -30
  1006. package/src/lib/core/plugins.ts +39 -9
  1007. package/src/lib/errors/ErrorAlert.tsx +19 -18
  1008. package/src/lib/hooks/index.ts +16 -0
  1009. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1010. package/src/lib/hooks/useEvent.ts +41 -0
  1011. package/src/lib/hooks/useHotkey.ts +70 -0
  1012. package/src/lib/icons.ts +1 -0
  1013. package/src/lib/oas/graphql/circular.ts +27 -19
  1014. package/src/lib/oas/graphql/index.ts +206 -54
  1015. package/src/lib/oas/parser/dereference/index.ts +2 -0
  1016. package/src/lib/oas/parser/index.ts +14 -30
  1017. package/src/lib/oas/parser/upgrade/index.ts +97 -26
  1018. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  1019. package/src/lib/plugins/api-catalog/index.tsx +72 -21
  1020. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  1021. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +463 -115
  1022. package/src/lib/plugins/api-keys/index.tsx +134 -58
  1023. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  1024. package/src/lib/plugins/markdown/MdxPage.tsx +88 -65
  1025. package/src/lib/plugins/markdown/index.tsx +29 -42
  1026. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  1027. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  1028. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  1029. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1030. package/src/lib/plugins/openapi/OperationList.tsx +179 -87
  1031. package/src/lib/plugins/openapi/OperationListItem.tsx +105 -110
  1032. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1033. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1034. package/src/lib/plugins/openapi/ParameterListItem.tsx +71 -23
  1035. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +16 -3
  1036. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1037. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1038. package/src/lib/plugins/openapi/Sidecar.tsx +62 -78
  1039. package/src/lib/plugins/openapi/SidecarExamples.tsx +10 -4
  1040. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1041. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  1042. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  1043. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1044. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1045. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1046. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1047. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  1048. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  1049. package/src/lib/plugins/openapi/index.tsx +85 -179
  1050. package/src/lib/plugins/openapi/interfaces.ts +46 -16
  1051. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1052. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1053. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +37 -32
  1054. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -116
  1055. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1056. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1057. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1058. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  1059. package/src/lib/plugins/openapi/playground/PathParams.tsx +12 -7
  1060. package/src/lib/plugins/openapi/playground/Playground.tsx +340 -280
  1061. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  1062. package/src/lib/plugins/openapi/playground/QueryParams.tsx +105 -60
  1063. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1064. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1065. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1066. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1067. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1068. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1069. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1070. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  1071. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +150 -89
  1072. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +79 -78
  1073. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1074. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1075. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1076. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1077. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1078. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1079. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1080. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1081. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1082. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1083. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1084. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +71 -63
  1085. package/src/lib/plugins/openapi/schema/SchemaView.tsx +99 -143
  1086. package/src/lib/plugins/openapi/schema/utils.ts +30 -6
  1087. package/src/lib/plugins/openapi/state.ts +36 -0
  1088. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1089. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
  1090. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  1091. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1092. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1093. package/src/lib/plugins/redirect/index.tsx +1 -1
  1094. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1095. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1096. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +165 -0
  1097. package/src/lib/plugins/search-pagefind/ResultList.tsx +114 -0
  1098. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1099. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1100. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1101. package/src/lib/shiki.ts +132 -0
  1102. package/src/lib/ui/Alert.tsx +45 -39
  1103. package/src/lib/ui/Badge.tsx +2 -2
  1104. package/src/lib/ui/Button.tsx +12 -7
  1105. package/src/lib/ui/Callout.tsx +30 -10
  1106. package/src/lib/ui/Card.tsx +1 -1
  1107. package/src/lib/ui/Checkbox.tsx +8 -24
  1108. package/src/lib/ui/CodeBlock.tsx +88 -0
  1109. package/src/lib/ui/Command.tsx +29 -7
  1110. package/src/lib/ui/Dialog.tsx +11 -7
  1111. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1112. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1113. package/src/lib/ui/HoverCard.tsx +1 -1
  1114. package/src/lib/ui/Input.tsx +1 -1
  1115. package/src/lib/ui/Popover.tsx +1 -1
  1116. package/src/lib/ui/RadioGroup.tsx +1 -1
  1117. package/src/lib/ui/Select.tsx +3 -3
  1118. package/src/lib/ui/Slider.tsx +1 -1
  1119. package/src/lib/ui/Stepper.tsx +8 -0
  1120. package/src/lib/ui/Switch.tsx +1 -1
  1121. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1122. package/src/lib/ui/Tabs.tsx +2 -2
  1123. package/src/lib/ui/Textarea.tsx +1 -1
  1124. package/src/lib/ui/Toggle.tsx +1 -1
  1125. package/src/lib/ui/Tooltip.tsx +16 -1
  1126. package/src/lib/ui/util.tsx +3 -0
  1127. package/src/lib/util/MdxComponents.tsx +49 -20
  1128. package/src/lib/util/detectOS.ts +9 -0
  1129. package/src/lib/util/ensureArray.ts +3 -0
  1130. package/src/lib/util/humanFileSize.test.ts +24 -0
  1131. package/src/lib/util/humanFileSize.ts +16 -0
  1132. package/src/lib/util/joinPath.tsx +3 -0
  1133. package/src/lib/util/os.ts +18 -0
  1134. package/src/lib/util/traverse.ts +12 -13
  1135. package/src/lib/util/types.ts +7 -0
  1136. package/src/lib/util/url.test.ts +51 -0
  1137. package/src/lib/util/url.ts +18 -0
  1138. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1139. package/src/lib/util/useExposedProps.tsx +12 -1
  1140. package/src/lib/util/useLatest.ts +18 -0
  1141. package/src/lib/util/useOnScreen.ts +6 -4
  1142. package/src/lib/util/useScrollToAnchor.ts +31 -21
  1143. package/src/shiki/langs/abap.js +1 -0
  1144. package/src/shiki/langs/actionscript-3.js +1 -0
  1145. package/src/shiki/langs/ada.js +1 -0
  1146. package/src/shiki/langs/angular-expression.js +1 -0
  1147. package/src/shiki/langs/angular-html.js +1 -0
  1148. package/src/shiki/langs/angular-inline-style.js +1 -0
  1149. package/src/shiki/langs/angular-inline-template.js +1 -0
  1150. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1151. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1152. package/src/shiki/langs/angular-template.js +1 -0
  1153. package/src/shiki/langs/angular-ts.js +1 -0
  1154. package/src/shiki/langs/apache.js +1 -0
  1155. package/src/shiki/langs/apex.js +1 -0
  1156. package/src/shiki/langs/apl.js +1 -0
  1157. package/src/shiki/langs/applescript.js +1 -0
  1158. package/src/shiki/langs/ara.js +1 -0
  1159. package/src/shiki/langs/asciidoc.js +1 -0
  1160. package/src/shiki/langs/asm.js +1 -0
  1161. package/src/shiki/langs/astro.js +1 -0
  1162. package/src/shiki/langs/awk.js +1 -0
  1163. package/src/shiki/langs/ballerina.js +1 -0
  1164. package/src/shiki/langs/bat.js +1 -0
  1165. package/src/shiki/langs/beancount.js +1 -0
  1166. package/src/shiki/langs/berry.js +1 -0
  1167. package/src/shiki/langs/bibtex.js +1 -0
  1168. package/src/shiki/langs/bicep.js +1 -0
  1169. package/src/shiki/langs/blade.js +1 -0
  1170. package/src/shiki/langs/bsl.js +1 -0
  1171. package/src/shiki/langs/c.js +1 -0
  1172. package/src/shiki/langs/cadence.js +1 -0
  1173. package/src/shiki/langs/cairo.js +1 -0
  1174. package/src/shiki/langs/clarity.js +1 -0
  1175. package/src/shiki/langs/clojure.js +1 -0
  1176. package/src/shiki/langs/cmake.js +1 -0
  1177. package/src/shiki/langs/cobol.js +1 -0
  1178. package/src/shiki/langs/codeowners.js +1 -0
  1179. package/src/shiki/langs/codeql.js +1 -0
  1180. package/src/shiki/langs/coffee.js +1 -0
  1181. package/src/shiki/langs/common-lisp.js +1 -0
  1182. package/src/shiki/langs/coq.js +1 -0
  1183. package/src/shiki/langs/cpp-macro.js +1 -0
  1184. package/src/shiki/langs/cpp.js +1 -0
  1185. package/src/shiki/langs/crystal.js +1 -0
  1186. package/src/shiki/langs/csharp.js +1 -0
  1187. package/src/shiki/langs/css.js +1 -0
  1188. package/src/shiki/langs/csv.js +1 -0
  1189. package/src/shiki/langs/cue.js +1 -0
  1190. package/src/shiki/langs/cypher.js +1 -0
  1191. package/src/shiki/langs/d.js +1 -0
  1192. package/src/shiki/langs/dart.js +1 -0
  1193. package/src/shiki/langs/dax.js +1 -0
  1194. package/src/shiki/langs/desktop.js +1 -0
  1195. package/src/shiki/langs/diff.js +1 -0
  1196. package/src/shiki/langs/docker.js +1 -0
  1197. package/src/shiki/langs/dotenv.js +1 -0
  1198. package/src/shiki/langs/dream-maker.js +1 -0
  1199. package/src/shiki/langs/edge.js +1 -0
  1200. package/src/shiki/langs/elixir.js +1 -0
  1201. package/src/shiki/langs/elm.js +1 -0
  1202. package/src/shiki/langs/emacs-lisp.js +1 -0
  1203. package/src/shiki/langs/erb.js +1 -0
  1204. package/src/shiki/langs/erlang.js +1 -0
  1205. package/src/shiki/langs/es-tag-css.js +1 -0
  1206. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1207. package/src/shiki/langs/es-tag-html.js +1 -0
  1208. package/src/shiki/langs/es-tag-sql.js +1 -0
  1209. package/src/shiki/langs/es-tag-xml.js +1 -0
  1210. package/src/shiki/langs/fennel.js +1 -0
  1211. package/src/shiki/langs/fish.js +1 -0
  1212. package/src/shiki/langs/fluent.js +1 -0
  1213. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1214. package/src/shiki/langs/fortran-free-form.js +1 -0
  1215. package/src/shiki/langs/fsharp.js +1 -0
  1216. package/src/shiki/langs/gdresource.js +1 -0
  1217. package/src/shiki/langs/gdscript.js +1 -0
  1218. package/src/shiki/langs/gdshader.js +1 -0
  1219. package/src/shiki/langs/genie.js +1 -0
  1220. package/src/shiki/langs/gherkin.js +1 -0
  1221. package/src/shiki/langs/git-commit.js +1 -0
  1222. package/src/shiki/langs/git-rebase.js +1 -0
  1223. package/src/shiki/langs/gleam.js +1 -0
  1224. package/src/shiki/langs/glimmer-js.js +1 -0
  1225. package/src/shiki/langs/glimmer-ts.js +1 -0
  1226. package/src/shiki/langs/glsl.js +1 -0
  1227. package/src/shiki/langs/gnuplot.js +1 -0
  1228. package/src/shiki/langs/go.js +1 -0
  1229. package/src/shiki/langs/graphql.js +1 -0
  1230. package/src/shiki/langs/groovy.js +1 -0
  1231. package/src/shiki/langs/hack.js +1 -0
  1232. package/src/shiki/langs/haml.js +1 -0
  1233. package/src/shiki/langs/handlebars.js +1 -0
  1234. package/src/shiki/langs/haskell.js +1 -0
  1235. package/src/shiki/langs/haxe.js +1 -0
  1236. package/src/shiki/langs/hcl.js +1 -0
  1237. package/src/shiki/langs/hjson.js +1 -0
  1238. package/src/shiki/langs/hlsl.js +1 -0
  1239. package/src/shiki/langs/html-derivative.js +1 -0
  1240. package/src/shiki/langs/html.js +1 -0
  1241. package/src/shiki/langs/http.js +1 -0
  1242. package/src/shiki/langs/hxml.js +1 -0
  1243. package/src/shiki/langs/hy.js +1 -0
  1244. package/src/shiki/langs/imba.js +1 -0
  1245. package/src/shiki/langs/ini.js +1 -0
  1246. package/src/shiki/langs/java.js +1 -0
  1247. package/src/shiki/langs/javascript.js +1 -0
  1248. package/src/shiki/langs/jinja-html.js +1 -0
  1249. package/src/shiki/langs/jinja.js +1 -0
  1250. package/src/shiki/langs/jison.js +1 -0
  1251. package/src/shiki/langs/json.js +1 -0
  1252. package/src/shiki/langs/json5.js +1 -0
  1253. package/src/shiki/langs/jsonc.js +1 -0
  1254. package/src/shiki/langs/jsonl.js +1 -0
  1255. package/src/shiki/langs/jsonnet.js +1 -0
  1256. package/src/shiki/langs/jssm.js +1 -0
  1257. package/src/shiki/langs/jsx.js +1 -0
  1258. package/src/shiki/langs/julia.js +1 -0
  1259. package/src/shiki/langs/kotlin.js +1 -0
  1260. package/src/shiki/langs/kusto.js +1 -0
  1261. package/src/shiki/langs/latex.js +1 -0
  1262. package/src/shiki/langs/lean.js +1 -0
  1263. package/src/shiki/langs/less.js +1 -0
  1264. package/src/shiki/langs/liquid.js +1 -0
  1265. package/src/shiki/langs/llvm.js +1 -0
  1266. package/src/shiki/langs/log.js +1 -0
  1267. package/src/shiki/langs/logo.js +1 -0
  1268. package/src/shiki/langs/lua.js +1 -0
  1269. package/src/shiki/langs/luau.js +1 -0
  1270. package/src/shiki/langs/make.js +1 -0
  1271. package/src/shiki/langs/markdown-vue.js +1 -0
  1272. package/src/shiki/langs/markdown.js +1 -0
  1273. package/src/shiki/langs/marko.js +1 -0
  1274. package/src/shiki/langs/matlab.js +1 -0
  1275. package/src/shiki/langs/mdc.js +1 -0
  1276. package/src/shiki/langs/mdx.js +1 -0
  1277. package/src/shiki/langs/mermaid.js +1 -0
  1278. package/src/shiki/langs/mipsasm.js +1 -0
  1279. package/src/shiki/langs/mojo.js +1 -0
  1280. package/src/shiki/langs/move.js +1 -0
  1281. package/src/shiki/langs/narrat.js +1 -0
  1282. package/src/shiki/langs/nextflow.js +1 -0
  1283. package/src/shiki/langs/nginx.js +1 -0
  1284. package/src/shiki/langs/nim.js +1 -0
  1285. package/src/shiki/langs/nix.js +1 -0
  1286. package/src/shiki/langs/nushell.js +1 -0
  1287. package/src/shiki/langs/objective-c.js +1 -0
  1288. package/src/shiki/langs/objective-cpp.js +1 -0
  1289. package/src/shiki/langs/ocaml.js +1 -0
  1290. package/src/shiki/langs/pascal.js +1 -0
  1291. package/src/shiki/langs/perl.js +1 -0
  1292. package/src/shiki/langs/php.js +1 -0
  1293. package/src/shiki/langs/plsql.js +1 -0
  1294. package/src/shiki/langs/po.js +1 -0
  1295. package/src/shiki/langs/polar.js +1 -0
  1296. package/src/shiki/langs/postcss.js +1 -0
  1297. package/src/shiki/langs/powerquery.js +1 -0
  1298. package/src/shiki/langs/powershell.js +1 -0
  1299. package/src/shiki/langs/prisma.js +1 -0
  1300. package/src/shiki/langs/prolog.js +1 -0
  1301. package/src/shiki/langs/proto.js +1 -0
  1302. package/src/shiki/langs/pug.js +1 -0
  1303. package/src/shiki/langs/puppet.js +1 -0
  1304. package/src/shiki/langs/purescript.js +1 -0
  1305. package/src/shiki/langs/python.js +1 -0
  1306. package/src/shiki/langs/qml.js +1 -0
  1307. package/src/shiki/langs/qmldir.js +1 -0
  1308. package/src/shiki/langs/qss.js +1 -0
  1309. package/src/shiki/langs/r.js +1 -0
  1310. package/src/shiki/langs/racket.js +1 -0
  1311. package/src/shiki/langs/raku.js +1 -0
  1312. package/src/shiki/langs/razor.js +1 -0
  1313. package/src/shiki/langs/reg.js +1 -0
  1314. package/src/shiki/langs/regexp.js +1 -0
  1315. package/src/shiki/langs/rel.js +1 -0
  1316. package/src/shiki/langs/riscv.js +1 -0
  1317. package/src/shiki/langs/rst.js +1 -0
  1318. package/src/shiki/langs/ruby.js +1 -0
  1319. package/src/shiki/langs/rust.js +1 -0
  1320. package/src/shiki/langs/sas.js +1 -0
  1321. package/src/shiki/langs/sass.js +1 -0
  1322. package/src/shiki/langs/scala.js +1 -0
  1323. package/src/shiki/langs/scheme.js +1 -0
  1324. package/src/shiki/langs/scss.js +1 -0
  1325. package/src/shiki/langs/sdbl.js +1 -0
  1326. package/src/shiki/langs/shaderlab.js +1 -0
  1327. package/src/shiki/langs/shellscript.js +1 -0
  1328. package/src/shiki/langs/shellsession.js +1 -0
  1329. package/src/shiki/langs/smalltalk.js +1 -0
  1330. package/src/shiki/langs/solidity.js +1 -0
  1331. package/src/shiki/langs/soy.js +1 -0
  1332. package/src/shiki/langs/sparql.js +1 -0
  1333. package/src/shiki/langs/splunk.js +1 -0
  1334. package/src/shiki/langs/sql.js +1 -0
  1335. package/src/shiki/langs/ssh-config.js +1 -0
  1336. package/src/shiki/langs/stata.js +1 -0
  1337. package/src/shiki/langs/stylus.js +1 -0
  1338. package/src/shiki/langs/svelte.js +1 -0
  1339. package/src/shiki/langs/swift.js +1 -0
  1340. package/src/shiki/langs/system-verilog.js +1 -0
  1341. package/src/shiki/langs/systemd.js +1 -0
  1342. package/src/shiki/langs/talonscript.js +1 -0
  1343. package/src/shiki/langs/tasl.js +1 -0
  1344. package/src/shiki/langs/tcl.js +1 -0
  1345. package/src/shiki/langs/templ.js +1 -0
  1346. package/src/shiki/langs/terraform.js +1 -0
  1347. package/src/shiki/langs/tex.js +1 -0
  1348. package/src/shiki/langs/toml.js +1 -0
  1349. package/src/shiki/langs/ts-tags.js +1 -0
  1350. package/src/shiki/langs/tsv.js +1 -0
  1351. package/src/shiki/langs/tsx.js +1 -0
  1352. package/src/shiki/langs/turtle.js +1 -0
  1353. package/src/shiki/langs/twig.js +1 -0
  1354. package/src/shiki/langs/typescript.js +1 -0
  1355. package/src/shiki/langs/typespec.js +1 -0
  1356. package/src/shiki/langs/typst.js +1 -0
  1357. package/src/shiki/langs/v.js +1 -0
  1358. package/src/shiki/langs/vala.js +1 -0
  1359. package/src/shiki/langs/vb.js +1 -0
  1360. package/src/shiki/langs/verilog.js +1 -0
  1361. package/src/shiki/langs/vhdl.js +1 -0
  1362. package/src/shiki/langs/viml.js +1 -0
  1363. package/src/shiki/langs/vue-directives.js +1 -0
  1364. package/src/shiki/langs/vue-html.js +1 -0
  1365. package/src/shiki/langs/vue-interpolations.js +1 -0
  1366. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1367. package/src/shiki/langs/vue.js +1 -0
  1368. package/src/shiki/langs/vyper.js +1 -0
  1369. package/src/shiki/langs/wasm.js +1 -0
  1370. package/src/shiki/langs/wenyan.js +1 -0
  1371. package/src/shiki/langs/wgsl.js +1 -0
  1372. package/src/shiki/langs/wikitext.js +1 -0
  1373. package/src/shiki/langs/wit.js +1 -0
  1374. package/src/shiki/langs/wolfram.js +1 -0
  1375. package/src/shiki/langs/xml.js +1 -0
  1376. package/src/shiki/langs/xsl.js +1 -0
  1377. package/src/shiki/langs/yaml.js +1 -0
  1378. package/src/shiki/langs/zenscript.js +1 -0
  1379. package/src/shiki/langs/zig.js +1 -0
  1380. package/src/shiki/themes/andromeeda.js +1 -0
  1381. package/src/shiki/themes/aurora-x.js +1 -0
  1382. package/src/shiki/themes/ayu-dark.js +1 -0
  1383. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1384. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1385. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1386. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1387. package/src/shiki/themes/dark-plus.js +1 -0
  1388. package/src/shiki/themes/dracula-soft.js +1 -0
  1389. package/src/shiki/themes/dracula.js +1 -0
  1390. package/src/shiki/themes/everforest-dark.js +1 -0
  1391. package/src/shiki/themes/everforest-light.js +1 -0
  1392. package/src/shiki/themes/github-dark-default.js +1 -0
  1393. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1394. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1395. package/src/shiki/themes/github-dark.js +1 -0
  1396. package/src/shiki/themes/github-light-default.js +1 -0
  1397. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1398. package/src/shiki/themes/github-light.js +1 -0
  1399. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1400. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1401. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1402. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1403. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1404. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1405. package/src/shiki/themes/houston.js +1 -0
  1406. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1407. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1408. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1409. package/src/shiki/themes/laserwave.js +1 -0
  1410. package/src/shiki/themes/light-plus.js +1 -0
  1411. package/src/shiki/themes/material-theme-darker.js +1 -0
  1412. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1413. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1414. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1415. package/src/shiki/themes/material-theme.js +1 -0
  1416. package/src/shiki/themes/min-dark.js +1 -0
  1417. package/src/shiki/themes/min-light.js +1 -0
  1418. package/src/shiki/themes/monokai.js +1 -0
  1419. package/src/shiki/themes/night-owl.js +1 -0
  1420. package/src/shiki/themes/nord.js +1 -0
  1421. package/src/shiki/themes/one-dark-pro.js +1 -0
  1422. package/src/shiki/themes/one-light.js +1 -0
  1423. package/src/shiki/themes/plastic.js +1 -0
  1424. package/src/shiki/themes/poimandres.js +1 -0
  1425. package/src/shiki/themes/red.js +1 -0
  1426. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1427. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1428. package/src/shiki/themes/rose-pine.js +1 -0
  1429. package/src/shiki/themes/slack-dark.js +1 -0
  1430. package/src/shiki/themes/slack-ochin.js +1 -0
  1431. package/src/shiki/themes/snazzy-light.js +1 -0
  1432. package/src/shiki/themes/solarized-dark.js +1 -0
  1433. package/src/shiki/themes/solarized-light.js +1 -0
  1434. package/src/shiki/themes/synthwave-84.js +1 -0
  1435. package/src/shiki/themes/tokyo-night.js +1 -0
  1436. package/src/shiki/themes/vesper.js +1 -0
  1437. package/src/shiki/themes/vitesse-black.js +1 -0
  1438. package/src/shiki/themes/vitesse-dark.js +1 -0
  1439. package/src/shiki/themes/vitesse-light.js +1 -0
  1440. package/client.d.ts +0 -8
  1441. package/dist/app/tailwind.d.ts +0 -4
  1442. package/dist/app/tailwind.js +0 -77
  1443. package/dist/app/tailwind.js.map +0 -1
  1444. package/dist/config/common.d.ts +0 -8
  1445. package/dist/config/common.js +0 -2
  1446. package/dist/config/common.js.map +0 -1
  1447. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1448. package/dist/config/validators/InputSidebarSchema.js +0 -53
  1449. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1450. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1451. package/dist/config/validators/SidebarSchema.js +0 -118
  1452. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1453. package/dist/config/validators/common.d.ts +0 -5145
  1454. package/dist/config/validators/common.js +0 -290
  1455. package/dist/config/validators/common.js.map +0 -1
  1456. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1457. package/dist/lib/components/SlotletProvider.js +0 -18
  1458. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1459. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  1460. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1461. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1462. package/dist/lib/components/context/PluginSystem.js +0 -2
  1463. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1464. package/dist/lib/components/navigation/Sidebar.d.ts +0 -3
  1465. package/dist/lib/components/navigation/Sidebar.js +0 -19
  1466. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1467. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -24
  1468. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1469. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1470. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1471. package/dist/lib/components/navigation/SidebarCategory.js +0 -51
  1472. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1473. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -10
  1474. package/dist/lib/components/navigation/SidebarItem.js +0 -44
  1475. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1476. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1477. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1478. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1479. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1480. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1481. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1482. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1483. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1484. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1485. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1486. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1487. package/dist/lib/plugins/openapi/OpenApiRoute.d.ts +0 -9
  1488. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  1489. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  1490. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1491. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1492. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1493. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1494. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1495. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1496. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1497. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1498. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1499. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1500. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +0 -16
  1501. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1502. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +0 -174
  1503. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1504. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +0 -10
  1505. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +0 -66
  1506. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1507. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +0 -131
  1508. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1509. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +0 -11
  1510. package/dist/lib/plugins/openapi/post-processors/removePaths.js +0 -33
  1511. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1512. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1513. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1514. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1515. package/dist/vite/plugin-docs.test.js +0 -22
  1516. package/dist/vite/plugin-docs.test.js.map +0 -1
  1517. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1518. package/dist/vite/plugin-sidebar.js +0 -47
  1519. package/dist/vite/plugin-sidebar.js.map +0 -1
  1520. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1521. package/dist/vite/plugin-theme-css.js +0 -117
  1522. package/dist/vite/plugin-theme-css.js.map +0 -1
  1523. package/dist/vite/prerender.d.ts +0 -22
  1524. package/dist/vite/prerender.js +0 -89
  1525. package/dist/vite/prerender.js.map +0 -1
  1526. package/dist/zuplo/env.d.ts +0 -7
  1527. package/dist/zuplo/env.js +0 -12
  1528. package/dist/zuplo/env.js.map +0 -1
  1529. package/lib/AuthenticationPlugin-DeEA69mE.js +0 -58
  1530. package/lib/AuthenticationPlugin-DeEA69mE.js.map +0 -1
  1531. package/lib/CategoryHeading-MYL1u_6K.js +0 -10
  1532. package/lib/CategoryHeading-MYL1u_6K.js.map +0 -1
  1533. package/lib/Markdown-8mv9nhGd.js +0 -15190
  1534. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  1535. package/lib/MdxPage-BalfwlsD.js +0 -193
  1536. package/lib/MdxPage-BalfwlsD.js.map +0 -1
  1537. package/lib/OpenApiRoute-ULLXjfro.js +0 -36
  1538. package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
  1539. package/lib/OperationList-B3VX94x4.js +0 -5179
  1540. package/lib/OperationList-B3VX94x4.js.map +0 -1
  1541. package/lib/Select-BcAbBUmk.js +0 -223
  1542. package/lib/Select-BcAbBUmk.js.map +0 -1
  1543. package/lib/SlotletProvider-D0mFmGJu.js +0 -221
  1544. package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
  1545. package/lib/Spinner-BlzrEEk1.js +0 -51
  1546. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  1547. package/lib/SyntaxHighlight-B0L4SC_N.js +0 -2986
  1548. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  1549. package/lib/ZudokuContext-dUyBGMap.js +0 -1229
  1550. package/lib/ZudokuContext-dUyBGMap.js.map +0 -1
  1551. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1552. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1553. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1554. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1555. package/lib/chunk-SYFQ2XB5-QijJrSf0.js +0 -1821
  1556. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  1557. package/lib/circular-DxaIIlWD.js +0 -15409
  1558. package/lib/circular-DxaIIlWD.js.map +0 -1
  1559. package/lib/cn-qaFjX9_3.js +0 -2279
  1560. package/lib/cn-qaFjX9_3.js.map +0 -1
  1561. package/lib/context-rwLGh-6_.js +0 -22
  1562. package/lib/context-rwLGh-6_.js.map +0 -1
  1563. package/lib/createServer-E3cXjB0P.js +0 -12604
  1564. package/lib/createServer-E3cXjB0P.js.map +0 -1
  1565. package/lib/hook-NIpDSpau.js +0 -227
  1566. package/lib/hook-NIpDSpau.js.map +0 -1
  1567. package/lib/index-B7mqiOei.js +0 -509
  1568. package/lib/index-B7mqiOei.js.map +0 -1
  1569. package/lib/index-CjJS0l4l.js +0 -2094
  1570. package/lib/index-CjJS0l4l.js.map +0 -1
  1571. package/lib/index-Djenk2Hj.js +0 -36
  1572. package/lib/index-Djenk2Hj.js.map +0 -1
  1573. package/lib/index-Dl3Yl0yb.js +0 -4837
  1574. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1575. package/lib/index-P0YUtHIb.js +0 -2065
  1576. package/lib/index-P0YUtHIb.js.map +0 -1
  1577. package/lib/index.esm-9-TF9KQB.js +0 -692
  1578. package/lib/index.esm-9-TF9KQB.js.map +0 -1
  1579. package/lib/index.esm-CrSoEshU.js +0 -1207
  1580. package/lib/index.esm-CrSoEshU.js.map +0 -1
  1581. package/lib/invariant-Caa8-XvF.js +0 -26
  1582. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1583. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  1584. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  1585. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  1586. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  1587. package/lib/post-processors/removeExtensions.js +0 -11
  1588. package/lib/post-processors/removeExtensions.js.map +0 -1
  1589. package/lib/post-processors/removeParameters.js +0 -48
  1590. package/lib/post-processors/removeParameters.js.map +0 -1
  1591. package/lib/post-processors/removePaths.js +0 -28
  1592. package/lib/post-processors/removePaths.js.map +0 -1
  1593. package/lib/post-processors/traverse.js +0 -15
  1594. package/lib/post-processors/traverse.js.map +0 -1
  1595. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1596. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1597. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1598. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1599. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1600. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1601. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1602. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1603. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1604. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1605. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1606. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1607. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1608. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1609. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1610. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1611. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1612. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1613. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1614. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1615. package/lib/state-bfQxaDxU.js +0 -211
  1616. package/lib/state-bfQxaDxU.js.map +0 -1
  1617. package/lib/useExposedProps-Bbf99zic.js +0 -9
  1618. package/lib/useExposedProps-Bbf99zic.js.map +0 -1
  1619. package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
  1620. package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
  1621. package/src/app/tailwind.ts +0 -83
  1622. package/src/lib/components/SlotletProvider.tsx +0 -55
  1623. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  1624. package/src/lib/components/context/PluginSystem.ts +0 -0
  1625. package/src/lib/components/navigation/Sidebar.tsx +0 -55
  1626. package/src/lib/components/navigation/SidebarBadge.tsx +0 -45
  1627. package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
  1628. package/src/lib/components/navigation/SidebarItem.tsx +0 -125
  1629. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -27
  1630. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1631. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1632. package/src/lib/plugins/markdown/resolver.ts +0 -90
  1633. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  1634. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1635. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1636. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1637. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +0 -202
  1638. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +0 -27
  1639. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +0 -148
  1640. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +0 -101
  1641. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1642. package/src/lib/plugins/openapi/post-processors/removePaths.ts +0 -55
  1643. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1644. /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/validate.test.d.ts} +0 -0
  1645. /package/dist/lib/{plugins/openapi/post-processors/removeParameters.test.d.ts → auth/issuer.test.d.ts} +0 -0
  1646. /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → components/Slot.test.d.ts} +0 -0
  1647. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1648. /package/dist/{vite/plugin-docs.test.d.ts → lib/hooks/useEvent.test.d.ts} +0 -0
  1649. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1650. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1651. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -0,0 +1,3979 @@
1
+ import { B as It, a as Rt, H as Ie, R as en } from "./RouteGuard-CbKd7_9h.js";
2
+ import { z as Dt, M as tn, J as rn, u as nn } from "./index-ClhS5TxS.js";
3
+ import { R as on, S as sn, u as xe, e as Re, f as an, L as De, O as Mt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
+ import { S as Ft, v as qt, Q as cn, n as R, w as Ye, x as Ge, y as L, z as un, A as ln, B as dn, D as fn, E as Je, F as Xe, G as hn, h as et, H as tt, I as pn, g as Ut, J as Lt, l as mn, d as M, e as oe, K as Qt, L as Bt, j as ee, M as gn, u as vn, c as yn, N as xn, Z as _n, f as bn, C as wn } from "./hook-Bd0yS8M0.js";
5
+ import { h as jn, E as Ht, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Tn, m as Cn, V as On, R as Nn, M as An } from "./Slot-BpO_AGKJ.js";
6
+ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
7
+ import { Button as Wt } from "./ui/Button.js";
8
+ import { Callout as In } from "./ui/Callout.js";
9
+ import * as Q from "react";
10
+ import { createContext as Me, StrictMode as Vt, useRef as K, useEffect as F, useState as G, useCallback as H, Suspense as Fe, Fragment as Rn, memo as Yt, Component as Dn, createElement as nt, useMemo as $e, useContext as Mn } from "react";
11
+ import * as Fn from "react-dom";
12
+ import { CircleFadingArrowUpIcon as qn, LoaderCircleIcon as Un, ExternalLink as Ln, CircleXIcon as Qn, ChevronRightIcon as Bn, SearchIcon as Hn, SunIcon as Kn, MoonIcon as Wn, MenuIcon as Vn, PanelLeftIcon as Yn } from "lucide-react";
13
+ import { C as te } from "./ClientOnly-E7hGysn1.js";
14
+ import { c as N } from "./cn-wvCW-ho6.js";
15
+ import { S as Gt } from "./Spinner-mNLZ6awP.js";
16
+ import { isSearchPlugin as Gn, isProfileMenuPlugin as Jt, isNavigationPlugin as ot, isAuthenticationPlugin as Jn, isEventConsumerPlugin as Xn, needsInitialization as eo, isApiIdentityPlugin as to, isMdxProviderPlugin as ro, hasHead as no } from "./zudoku.plugins.js";
17
+ import { B as Se } from "./Button-BE9IVkWV.js";
18
+ import { DropdownMenu as oo, DropdownMenuTrigger as so, DropdownMenuContent as ao, DropdownMenuLabel as io, DropdownMenuSeparator as ze, DropdownMenuSub as co, DropdownMenuSubTrigger as uo, DropdownMenuPortal as lo, DropdownMenuSubContent as fo, DropdownMenuItem as ho } from "./ui/DropdownMenu.js";
19
+ import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
20
+ import { D as po, a as mo, b as er, c as tr, d as q } from "./Drawer-BzkOKwgC.js";
21
+ import { a as go } from "./index-DI5SPFK9.js";
22
+ var vo = class extends Ft {
23
+ constructor(e = {}) {
24
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
25
+ }
26
+ #e;
27
+ build(e, t, r) {
28
+ const n = t.queryKey, o = t.queryHash ?? qt(n, t);
29
+ let a = this.get(o);
30
+ return a || (a = new cn({
31
+ client: e,
32
+ queryKey: n,
33
+ queryHash: o,
34
+ options: e.defaultQueryOptions(t),
35
+ state: r,
36
+ defaultOptions: e.getQueryDefaults(n)
37
+ }), this.add(a)), a;
38
+ }
39
+ add(e) {
40
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
41
+ type: "added",
42
+ query: e
43
+ }));
44
+ }
45
+ remove(e) {
46
+ const t = this.#e.get(e.queryHash);
47
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
+ }
49
+ clear() {
50
+ R.batch(() => {
51
+ this.getAll().forEach((e) => {
52
+ this.remove(e);
53
+ });
54
+ });
55
+ }
56
+ get(e) {
57
+ return this.#e.get(e);
58
+ }
59
+ getAll() {
60
+ return [...this.#e.values()];
61
+ }
62
+ find(e) {
63
+ const t = { exact: !0, ...e };
64
+ return this.getAll().find(
65
+ (r) => Ye(t, r)
66
+ );
67
+ }
68
+ findAll(e = {}) {
69
+ const t = this.getAll();
70
+ return Object.keys(e).length > 0 ? t.filter((r) => Ye(e, r)) : t;
71
+ }
72
+ notify(e) {
73
+ R.batch(() => {
74
+ this.listeners.forEach((t) => {
75
+ t(e);
76
+ });
77
+ });
78
+ }
79
+ onFocus() {
80
+ R.batch(() => {
81
+ this.getAll().forEach((e) => {
82
+ e.onFocus();
83
+ });
84
+ });
85
+ }
86
+ onOnline() {
87
+ R.batch(() => {
88
+ this.getAll().forEach((e) => {
89
+ e.onOnline();
90
+ });
91
+ });
92
+ }
93
+ }, yo = class extends Ft {
94
+ constructor(e = {}) {
95
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
96
+ }
97
+ #e;
98
+ #t;
99
+ #r;
100
+ build(e, t, r) {
101
+ const n = new jn({
102
+ mutationCache: this,
103
+ mutationId: ++this.#r,
104
+ options: e.defaultMutationOptions(t),
105
+ state: r
106
+ });
107
+ return this.add(n), n;
108
+ }
109
+ add(e) {
110
+ this.#e.add(e);
111
+ const t = ue(e);
112
+ if (typeof t == "string") {
113
+ const r = this.#t.get(t);
114
+ r ? r.push(e) : this.#t.set(t, [e]);
115
+ }
116
+ this.notify({ type: "added", mutation: e });
117
+ }
118
+ remove(e) {
119
+ if (this.#e.delete(e)) {
120
+ const t = ue(e);
121
+ if (typeof t == "string") {
122
+ const r = this.#t.get(t);
123
+ if (r)
124
+ if (r.length > 1) {
125
+ const n = r.indexOf(e);
126
+ n !== -1 && r.splice(n, 1);
127
+ } else r[0] === e && this.#t.delete(t);
128
+ }
129
+ }
130
+ this.notify({ type: "removed", mutation: e });
131
+ }
132
+ canRun(e) {
133
+ const t = ue(e);
134
+ if (typeof t == "string") {
135
+ const n = this.#t.get(t)?.find(
136
+ (o) => o.state.status === "pending"
137
+ );
138
+ return !n || n === e;
139
+ } else
140
+ return !0;
141
+ }
142
+ runNext(e) {
143
+ const t = ue(e);
144
+ return typeof t == "string" ? this.#t.get(t)?.find((n) => n !== e && n.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
145
+ }
146
+ clear() {
147
+ R.batch(() => {
148
+ this.#e.forEach((e) => {
149
+ this.notify({ type: "removed", mutation: e });
150
+ }), this.#e.clear(), this.#t.clear();
151
+ });
152
+ }
153
+ getAll() {
154
+ return Array.from(this.#e);
155
+ }
156
+ find(e) {
157
+ const t = { exact: !0, ...e };
158
+ return this.getAll().find(
159
+ (r) => Ge(t, r)
160
+ );
161
+ }
162
+ findAll(e = {}) {
163
+ return this.getAll().filter((t) => Ge(e, t));
164
+ }
165
+ notify(e) {
166
+ R.batch(() => {
167
+ this.listeners.forEach((t) => {
168
+ t(e);
169
+ });
170
+ });
171
+ }
172
+ resumePausedMutations() {
173
+ const e = this.getAll().filter((t) => t.state.isPaused);
174
+ return R.batch(
175
+ () => Promise.all(
176
+ e.map((t) => t.continue().catch(L))
177
+ )
178
+ );
179
+ }
180
+ };
181
+ function ue(e) {
182
+ return e.options.scope?.id;
183
+ }
184
+ function st(e) {
185
+ return {
186
+ onFetch: (t, r) => {
187
+ const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
188
+ let u = { pages: [], pageParams: [] }, h = 0;
189
+ const f = async () => {
190
+ let y = !1;
191
+ const p = (g) => {
192
+ Object.defineProperty(g, "signal", {
193
+ enumerable: !0,
194
+ get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => {
195
+ y = !0;
196
+ }), t.signal)
197
+ });
198
+ }, m = un(t.options, t.fetchOptions), l = async (g, w, P) => {
199
+ if (y)
200
+ return Promise.reject();
201
+ if (w == null && g.pages.length)
202
+ return Promise.resolve(g);
203
+ const T = {
204
+ client: t.client,
205
+ queryKey: t.queryKey,
206
+ pageParam: w,
207
+ direction: P ? "backward" : "forward",
208
+ meta: t.options.meta
209
+ };
210
+ p(T);
211
+ const j = await m(
212
+ T
213
+ ), { maxPages: x } = t.options, b = P ? ln : dn;
214
+ return {
215
+ pages: b(g.pages, j, x),
216
+ pageParams: b(g.pageParams, w, x)
217
+ };
218
+ };
219
+ if (o && a.length) {
220
+ const g = o === "backward", w = g ? xo : at, P = {
221
+ pages: a,
222
+ pageParams: i
223
+ }, T = w(n, P);
224
+ u = await l(P, T, g);
225
+ } else {
226
+ const g = e ?? a.length;
227
+ do {
228
+ const w = h === 0 ? i[0] ?? n.initialPageParam : at(n, u);
229
+ if (h > 0 && w == null)
230
+ break;
231
+ u = await l(u, w), h++;
232
+ } while (h < g);
233
+ }
234
+ return u;
235
+ };
236
+ t.options.persister ? t.fetchFn = () => t.options.persister?.(
237
+ f,
238
+ {
239
+ client: t.client,
240
+ queryKey: t.queryKey,
241
+ meta: t.options.meta,
242
+ signal: t.signal
243
+ },
244
+ r
245
+ ) : t.fetchFn = f;
246
+ }
247
+ };
248
+ }
249
+ function at(e, { pages: t, pageParams: r }) {
250
+ const n = t.length - 1;
251
+ return t.length > 0 ? e.getNextPageParam(
252
+ t[n],
253
+ t,
254
+ r[n],
255
+ r
256
+ ) : void 0;
257
+ }
258
+ function xo(e, { pages: t, pageParams: r }) {
259
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
260
+ }
261
+ var _o = class {
262
+ #e;
263
+ #t;
264
+ #r;
265
+ #o;
266
+ #s;
267
+ #n;
268
+ #a;
269
+ #i;
270
+ constructor(e = {}) {
271
+ this.#e = e.queryCache || new vo(), this.#t = e.mutationCache || new yo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
272
+ }
273
+ mount() {
274
+ this.#n++, this.#n === 1 && (this.#a = fn.subscribe(async (e) => {
275
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
276
+ }), this.#i = Je.subscribe(async (e) => {
277
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
278
+ }));
279
+ }
280
+ unmount() {
281
+ this.#n--, this.#n === 0 && (this.#a?.(), this.#a = void 0, this.#i?.(), this.#i = void 0);
282
+ }
283
+ isFetching(e) {
284
+ return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
285
+ }
286
+ isMutating(e) {
287
+ return this.#t.findAll({ ...e, status: "pending" }).length;
288
+ }
289
+ /**
290
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
291
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
292
+ *
293
+ * Hint: Do not use this function inside a component, because it won't receive updates.
294
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
295
+ */
296
+ getQueryData(e) {
297
+ const t = this.defaultQueryOptions({ queryKey: e });
298
+ return this.#e.get(t.queryHash)?.state.data;
299
+ }
300
+ ensureQueryData(e) {
301
+ const t = this.defaultQueryOptions(e), r = this.#e.build(this, t), n = r.state.data;
302
+ return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Xe(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
303
+ }
304
+ getQueriesData(e) {
305
+ return this.#e.findAll(e).map(({ queryKey: t, state: r }) => {
306
+ const n = r.data;
307
+ return [t, n];
308
+ });
309
+ }
310
+ setQueryData(e, t, r) {
311
+ const n = this.defaultQueryOptions({ queryKey: e }), a = this.#e.get(
312
+ n.queryHash
313
+ )?.state.data, i = hn(t, a);
314
+ if (i !== void 0)
315
+ return this.#e.build(this, n).setData(i, { ...r, manual: !0 });
316
+ }
317
+ setQueriesData(e, t, r) {
318
+ return R.batch(
319
+ () => this.#e.findAll(e).map(({ queryKey: n }) => [
320
+ n,
321
+ this.setQueryData(n, t, r)
322
+ ])
323
+ );
324
+ }
325
+ getQueryState(e) {
326
+ const t = this.defaultQueryOptions({ queryKey: e });
327
+ return this.#e.get(
328
+ t.queryHash
329
+ )?.state;
330
+ }
331
+ removeQueries(e) {
332
+ const t = this.#e;
333
+ R.batch(() => {
334
+ t.findAll(e).forEach((r) => {
335
+ t.remove(r);
336
+ });
337
+ });
338
+ }
339
+ resetQueries(e, t) {
340
+ const r = this.#e;
341
+ return R.batch(() => (r.findAll(e).forEach((n) => {
342
+ n.reset();
343
+ }), this.refetchQueries(
344
+ {
345
+ type: "active",
346
+ ...e
347
+ },
348
+ t
349
+ )));
350
+ }
351
+ cancelQueries(e, t = {}) {
352
+ const r = { revert: !0, ...t }, n = R.batch(
353
+ () => this.#e.findAll(e).map((o) => o.cancel(r))
354
+ );
355
+ return Promise.all(n).then(L).catch(L);
356
+ }
357
+ invalidateQueries(e, t = {}) {
358
+ return R.batch(() => (this.#e.findAll(e).forEach((r) => {
359
+ r.invalidate();
360
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
361
+ {
362
+ ...e,
363
+ type: e?.refetchType ?? e?.type ?? "active"
364
+ },
365
+ t
366
+ )));
367
+ }
368
+ refetchQueries(e, t = {}) {
369
+ const r = {
370
+ ...t,
371
+ cancelRefetch: t.cancelRefetch ?? !0
372
+ }, n = R.batch(
373
+ () => this.#e.findAll(e).filter((o) => !o.isDisabled()).map((o) => {
374
+ let a = o.fetch(void 0, r);
375
+ return r.throwOnError || (a = a.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : a;
376
+ })
377
+ );
378
+ return Promise.all(n).then(L);
379
+ }
380
+ fetchQuery(e) {
381
+ const t = this.defaultQueryOptions(e);
382
+ t.retry === void 0 && (t.retry = !1);
383
+ const r = this.#e.build(this, t);
384
+ return r.isStaleByTime(
385
+ Xe(t.staleTime, r)
386
+ ) ? r.fetch(t) : Promise.resolve(r.state.data);
387
+ }
388
+ prefetchQuery(e) {
389
+ return this.fetchQuery(e).then(L).catch(L);
390
+ }
391
+ fetchInfiniteQuery(e) {
392
+ return e.behavior = st(e.pages), this.fetchQuery(e);
393
+ }
394
+ prefetchInfiniteQuery(e) {
395
+ return this.fetchInfiniteQuery(e).then(L).catch(L);
396
+ }
397
+ ensureInfiniteQueryData(e) {
398
+ return e.behavior = st(e.pages), this.ensureQueryData(e);
399
+ }
400
+ resumePausedMutations() {
401
+ return Je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
402
+ }
403
+ getQueryCache() {
404
+ return this.#e;
405
+ }
406
+ getMutationCache() {
407
+ return this.#t;
408
+ }
409
+ getDefaultOptions() {
410
+ return this.#r;
411
+ }
412
+ setDefaultOptions(e) {
413
+ this.#r = e;
414
+ }
415
+ setQueryDefaults(e, t) {
416
+ this.#o.set(et(e), {
417
+ queryKey: e,
418
+ defaultOptions: t
419
+ });
420
+ }
421
+ getQueryDefaults(e) {
422
+ const t = [...this.#o.values()], r = {};
423
+ return t.forEach((n) => {
424
+ tt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
425
+ }), r;
426
+ }
427
+ setMutationDefaults(e, t) {
428
+ this.#s.set(et(e), {
429
+ mutationKey: e,
430
+ defaultOptions: t
431
+ });
432
+ }
433
+ getMutationDefaults(e) {
434
+ const t = [...this.#s.values()], r = {};
435
+ return t.forEach((n) => {
436
+ tt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
437
+ }), r;
438
+ }
439
+ defaultQueryOptions(e) {
440
+ if (e._defaulted)
441
+ return e;
442
+ const t = {
443
+ ...this.#r.queries,
444
+ ...this.getQueryDefaults(e.queryKey),
445
+ ...e,
446
+ _defaulted: !0
447
+ };
448
+ return t.queryHash || (t.queryHash = qt(
449
+ t.queryKey,
450
+ t
451
+ )), 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 === pn && (t.enabled = !1), t;
452
+ }
453
+ defaultMutationOptions(e) {
454
+ return e?._defaulted ? e : {
455
+ ...this.#r.mutations,
456
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
457
+ ...e,
458
+ _defaulted: !0
459
+ };
460
+ }
461
+ clear() {
462
+ this.#e.clear(), this.#t.clear();
463
+ }
464
+ };
465
+ function bo(e) {
466
+ return e;
467
+ }
468
+ function it(e, t, r) {
469
+ if (typeof t != "object" || t === null)
470
+ return;
471
+ const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bo, i = t.mutations || [], u = t.queries || [];
472
+ i.forEach(({ state: h, ...f }) => {
473
+ n.build(
474
+ e,
475
+ {
476
+ ...e.getDefaultOptions().hydrate?.mutations,
477
+ ...r?.defaultOptions?.mutations,
478
+ ...f
479
+ },
480
+ h
481
+ );
482
+ }), u.forEach(({ queryKey: h, state: f, queryHash: y, meta: p, promise: m }) => {
483
+ let l = o.get(y);
484
+ const g = f.data === void 0 ? f.data : a(f.data);
485
+ if (l) {
486
+ if (l.state.dataUpdatedAt < f.dataUpdatedAt) {
487
+ const { fetchStatus: w, ...P } = f;
488
+ l.setState({
489
+ ...P,
490
+ data: g
491
+ });
492
+ }
493
+ } else
494
+ l = o.build(
495
+ e,
496
+ {
497
+ ...e.getDefaultOptions().hydrate?.queries,
498
+ ...r?.defaultOptions?.queries,
499
+ queryKey: h,
500
+ queryHash: y,
501
+ meta: p
502
+ },
503
+ // Reset fetch status to idle to avoid
504
+ // query being stuck in fetching state upon hydration
505
+ {
506
+ ...f,
507
+ data: g,
508
+ fetchStatus: "idle"
509
+ }
510
+ );
511
+ if (m) {
512
+ const w = Promise.resolve(m).then(a);
513
+ l.fetch(void 0, { initialPromise: w });
514
+ }
515
+ });
516
+ }
517
+ var ct = (e, t) => typeof e == "object" && e !== null && t in e, wo = ({
518
+ children: e,
519
+ options: t = {},
520
+ state: r,
521
+ queryClient: n
522
+ }) => {
523
+ const o = Ut(n), [a, i] = Q.useState(), u = Q.useRef(t);
524
+ return u.current = t, Q.useMemo(() => {
525
+ if (r) {
526
+ if (typeof r != "object")
527
+ return;
528
+ const h = o.getQueryCache(), f = r.queries || [], y = [], p = [];
529
+ for (const m of f) {
530
+ const l = h.get(m.queryHash);
531
+ if (!l)
532
+ y.push(m);
533
+ else {
534
+ const g = m.state.dataUpdatedAt > l.state.dataUpdatedAt || // RSC special serialized then-able chunks
535
+ ct(m.promise, "status") && ct(l.promise, "status") && m.promise.status !== l.promise.status, w = a?.find(
536
+ (P) => P.queryHash === m.queryHash
537
+ );
538
+ g && (!w || m.state.dataUpdatedAt > w.state.dataUpdatedAt) && p.push(m);
539
+ }
540
+ }
541
+ y.length > 0 && it(o, { queries: y }, u.current), p.length > 0 && i(
542
+ (m) => m ? [...m, ...p] : p
543
+ );
544
+ }
545
+ }, [o, a, r]), Q.useEffect(() => {
546
+ a && (it(o, { queries: a }, u.current), i(void 0));
547
+ }, [o, a]), e;
548
+ };
549
+ function jo({ error: e }) {
550
+ return /* @__PURE__ */ s.jsx(Ht, { error: e });
551
+ }
552
+ /**
553
+ * react-router v7.6.1
554
+ *
555
+ * Copyright (c) Remix Software Inc.
556
+ *
557
+ * This source code is licensed under the MIT license found in the
558
+ * LICENSE.md file in the root directory of this source tree.
559
+ *
560
+ * @license MIT
561
+ */
562
+ function ko(e) {
563
+ return /* @__PURE__ */ Q.createElement(on, { flushSync: Fn.flushSync, ...e });
564
+ }
565
+ const Ze = Me({ stagger: !1 }), $o = new _o({
566
+ defaultOptions: {
567
+ queries: {
568
+ staleTime: 1e3 * 60 * 5
569
+ }
570
+ }
571
+ }), zo = ({
572
+ router: e,
573
+ hydrate: t = !1
574
+ }) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: $o, children: /* @__PURE__ */ s.jsx(wo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(It, { value: !1, children: /* @__PURE__ */ s.jsx(Rt, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(ko, { router: e }) }) }) }) }) }) }), Po = ({
575
+ router: e,
576
+ context: t,
577
+ queryClient: r,
578
+ helmetContext: n,
579
+ bypassProtection: o = !1
580
+ }) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: r, children: /* @__PURE__ */ s.jsx(Rt, { context: n, children: /* @__PURE__ */ s.jsx(It, { value: o, children: /* @__PURE__ */ s.jsx(sn, { router: e, context: t }) }) }) }) });
581
+ function c(e, t, r) {
582
+ function n(u, h) {
583
+ var f;
584
+ Object.defineProperty(u, "_zod", {
585
+ value: u._zod ?? {},
586
+ enumerable: !1
587
+ }), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, h);
588
+ for (const y in i.prototype)
589
+ y in u || Object.defineProperty(u, y, { value: i.prototype[y].bind(u) });
590
+ u._zod.constr = i, u._zod.def = h;
591
+ }
592
+ const o = r?.Parent ?? Object;
593
+ class a extends o {
594
+ }
595
+ Object.defineProperty(a, "name", { value: e });
596
+ function i(u) {
597
+ var h;
598
+ const f = r?.Parent ? new a() : this;
599
+ n(f, u), (h = f._zod).deferred ?? (h.deferred = []);
600
+ for (const y of f._zod.deferred)
601
+ y();
602
+ return f;
603
+ }
604
+ return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
605
+ value: (u) => r?.Parent && u instanceof r.Parent ? !0 : u?._zod?.traits?.has(e)
606
+ }), Object.defineProperty(i, "name", { value: e }), i;
607
+ }
608
+ class se extends Error {
609
+ constructor() {
610
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
611
+ }
612
+ }
613
+ const rr = {};
614
+ function V(e) {
615
+ return rr;
616
+ }
617
+ function Eo(e) {
618
+ const t = Object.values(e).filter((n) => typeof n == "number");
619
+ return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
620
+ }
621
+ function So(e, t) {
622
+ return typeof t == "bigint" ? t.toString() : t;
623
+ }
624
+ function nr(e) {
625
+ return {
626
+ get value() {
627
+ {
628
+ const t = e();
629
+ return Object.defineProperty(this, "value", { value: t }), t;
630
+ }
631
+ }
632
+ };
633
+ }
634
+ function qe(e) {
635
+ return e == null;
636
+ }
637
+ function Ue(e) {
638
+ const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
639
+ return e.slice(t, r);
640
+ }
641
+ function S(e, t, r) {
642
+ Object.defineProperty(e, t, {
643
+ get() {
644
+ {
645
+ const n = r();
646
+ return e[t] = n, n;
647
+ }
648
+ },
649
+ set(n) {
650
+ Object.defineProperty(e, t, {
651
+ value: n
652
+ // configurable: true,
653
+ });
654
+ },
655
+ configurable: !0
656
+ });
657
+ }
658
+ function Le(e, t, r) {
659
+ Object.defineProperty(e, t, {
660
+ value: r,
661
+ writable: !0,
662
+ enumerable: !0,
663
+ configurable: !0
664
+ });
665
+ }
666
+ function or(e = 10) {
667
+ const t = "abcdefghijklmnopqrstuvwxyz";
668
+ let r = "";
669
+ for (let n = 0; n < e; n++)
670
+ r += t[Math.floor(Math.random() * t.length)];
671
+ return r;
672
+ }
673
+ function re(e) {
674
+ return JSON.stringify(e);
675
+ }
676
+ const sr = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
677
+ };
678
+ function Te(e) {
679
+ return typeof e == "object" && e !== null && !Array.isArray(e);
680
+ }
681
+ const Zo = nr(() => {
682
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
683
+ return !1;
684
+ try {
685
+ const e = Function;
686
+ return new e(""), !0;
687
+ } catch {
688
+ return !1;
689
+ }
690
+ });
691
+ function ut(e) {
692
+ if (Te(e) === !1)
693
+ return !1;
694
+ const t = e.constructor;
695
+ if (t === void 0)
696
+ return !0;
697
+ const r = t.prototype;
698
+ return !(Te(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
699
+ }
700
+ const To = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
701
+ function _e(e) {
702
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
703
+ }
704
+ function J(e, t, r) {
705
+ const n = new e._zod.constr(t ?? e._zod.def);
706
+ return (!t || r?.parent) && (n._zod.parent = e), n;
707
+ }
708
+ function _(e) {
709
+ const t = e;
710
+ if (!t)
711
+ return {};
712
+ if (typeof t == "string")
713
+ return { error: () => t };
714
+ if (t?.message !== void 0) {
715
+ if (t?.error !== void 0)
716
+ throw new Error("Cannot specify both `message` and `error` params");
717
+ t.error = t.message;
718
+ }
719
+ return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
720
+ }
721
+ function Co(e) {
722
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
723
+ }
724
+ function Oo(e, t) {
725
+ const r = {}, n = e._zod.def;
726
+ for (const o in t) {
727
+ if (!(o in n.shape))
728
+ throw new Error(`Unrecognized key: "${o}"`);
729
+ t[o] && (r[o] = n.shape[o]);
730
+ }
731
+ return J(e, {
732
+ ...e._zod.def,
733
+ shape: r,
734
+ checks: []
735
+ });
736
+ }
737
+ function No(e, t) {
738
+ const r = { ...e._zod.def.shape }, n = e._zod.def;
739
+ for (const o in t) {
740
+ if (!(o in n.shape))
741
+ throw new Error(`Unrecognized key: "${o}"`);
742
+ t[o] && delete r[o];
743
+ }
744
+ return J(e, {
745
+ ...e._zod.def,
746
+ shape: r,
747
+ checks: []
748
+ });
749
+ }
750
+ function Ao(e, t) {
751
+ const r = {
752
+ ...e._zod.def,
753
+ get shape() {
754
+ const n = { ...e._zod.def.shape, ...t };
755
+ return Le(this, "shape", n), n;
756
+ },
757
+ checks: []
758
+ // delete existing checks
759
+ };
760
+ return J(e, r);
761
+ }
762
+ function Io(e, t) {
763
+ return J(e, {
764
+ ...e._zod.def,
765
+ get shape() {
766
+ const r = { ...e._zod.def.shape, ...t._zod.def.shape };
767
+ return Le(this, "shape", r), r;
768
+ },
769
+ catchall: t._zod.def.catchall,
770
+ checks: []
771
+ // delete existing checks
772
+ });
773
+ }
774
+ function Ro(e, t, r) {
775
+ const n = t._zod.def.shape, o = { ...n };
776
+ if (r)
777
+ for (const a in r) {
778
+ if (!(a in n))
779
+ throw new Error(`Unrecognized key: "${a}"`);
780
+ r[a] && (o[a] = e ? new e({
781
+ type: "optional",
782
+ innerType: n[a]
783
+ }) : n[a]);
784
+ }
785
+ else
786
+ for (const a in n)
787
+ o[a] = e ? new e({
788
+ type: "optional",
789
+ innerType: n[a]
790
+ }) : n[a];
791
+ return J(t, {
792
+ ...t._zod.def,
793
+ shape: o,
794
+ checks: []
795
+ });
796
+ }
797
+ function Do(e, t, r) {
798
+ const n = t._zod.def.shape, o = { ...n };
799
+ if (r)
800
+ for (const a in r) {
801
+ if (!(a in o))
802
+ throw new Error(`Unrecognized key: "${a}"`);
803
+ r[a] && (o[a] = new e({
804
+ type: "nonoptional",
805
+ innerType: n[a]
806
+ }));
807
+ }
808
+ else
809
+ for (const a in n)
810
+ o[a] = new e({
811
+ type: "nonoptional",
812
+ innerType: n[a]
813
+ });
814
+ return J(t, {
815
+ ...t._zod.def,
816
+ shape: o,
817
+ // optional: [],
818
+ checks: []
819
+ });
820
+ }
821
+ function ne(e, t = 0) {
822
+ for (let r = t; r < e.issues.length; r++)
823
+ if (e.issues[r].continue !== !0)
824
+ return !0;
825
+ return !1;
826
+ }
827
+ function Qe(e, t) {
828
+ return t.map((r) => {
829
+ var n;
830
+ return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
831
+ });
832
+ }
833
+ function le(e) {
834
+ return typeof e == "string" ? e : e?.message;
835
+ }
836
+ function Y(e, t, r) {
837
+ const n = { ...e, path: e.path ?? [] };
838
+ if (!e.message) {
839
+ const o = le(e.inst?._zod.def?.error?.(e)) ?? le(t?.error?.(e)) ?? le(r.customError?.(e)) ?? le(r.localeError?.(e)) ?? "Invalid input";
840
+ n.message = o;
841
+ }
842
+ return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
843
+ }
844
+ function Be(e) {
845
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
846
+ }
847
+ function ae(...e) {
848
+ const [t, r, n] = e;
849
+ return typeof t == "string" ? {
850
+ message: t,
851
+ code: "custom",
852
+ input: r,
853
+ inst: n
854
+ } : { ...t };
855
+ }
856
+ const ar = (e, t) => {
857
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
858
+ value: e._zod,
859
+ enumerable: !1
860
+ }), Object.defineProperty(e, "issues", {
861
+ value: t,
862
+ enumerable: !1
863
+ }), Object.defineProperty(e, "message", {
864
+ get() {
865
+ return JSON.stringify(t, So, 2);
866
+ },
867
+ enumerable: !0
868
+ // configurable: false,
869
+ });
870
+ }, ir = c("$ZodError", ar), cr = c("$ZodError", ar, { Parent: Error });
871
+ function Mo(e, t = (r) => r.message) {
872
+ const r = {}, n = [];
873
+ for (const o of e.issues)
874
+ o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
875
+ return { formErrors: n, fieldErrors: r };
876
+ }
877
+ function Fo(e, t) {
878
+ const r = t || function(a) {
879
+ return a.message;
880
+ }, n = { _errors: [] }, o = (a) => {
881
+ for (const i of a.issues)
882
+ if (i.code === "invalid_union" && i.errors.length)
883
+ i.errors.map((u) => o({ issues: u }));
884
+ else if (i.code === "invalid_key")
885
+ o({ issues: i.issues });
886
+ else if (i.code === "invalid_element")
887
+ o({ issues: i.issues });
888
+ else if (i.path.length === 0)
889
+ n._errors.push(r(i));
890
+ else {
891
+ let u = n, h = 0;
892
+ for (; h < i.path.length; ) {
893
+ const f = i.path[h];
894
+ h === i.path.length - 1 ? (u[f] = u[f] || { _errors: [] }, u[f]._errors.push(r(i))) : u[f] = u[f] || { _errors: [] }, u = u[f], h++;
895
+ }
896
+ }
897
+ };
898
+ return o(e), n;
899
+ }
900
+ const qo = (e) => (t, r, n, o) => {
901
+ const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, a);
902
+ if (i instanceof Promise)
903
+ throw new se();
904
+ if (i.issues.length) {
905
+ const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
906
+ throw sr(u, o?.callee), u;
907
+ }
908
+ return i.value;
909
+ }, Uo = (e) => async (t, r, n, o) => {
910
+ const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
911
+ let i = t._zod.run({ value: r, issues: [] }, a);
912
+ if (i instanceof Promise && (i = await i), i.issues.length) {
913
+ const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
914
+ throw sr(u, o?.callee), u;
915
+ }
916
+ return i.value;
917
+ }, ur = (e) => (t, r, n) => {
918
+ const o = n ? { ...n, async: !1 } : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
919
+ if (a instanceof Promise)
920
+ throw new se();
921
+ return a.issues.length ? {
922
+ success: !1,
923
+ error: new (e ?? ir)(a.issues.map((i) => Y(i, o, V())))
924
+ } : { success: !0, data: a.value };
925
+ }, Lo = /* @__PURE__ */ ur(cr), lr = (e) => async (t, r, n) => {
926
+ const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
927
+ let a = t._zod.run({ value: r, issues: [] }, o);
928
+ return a instanceof Promise && (a = await a), a.issues.length ? {
929
+ success: !1,
930
+ error: new e(a.issues.map((i) => Y(i, o, V())))
931
+ } : { success: !0, data: a.value };
932
+ }, Qo = /* @__PURE__ */ lr(cr), Bo = /^[cC][^\s-]{8,}$/, Ho = /^[0-9a-z]+$/, Ko = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Wo = /^[0-9a-vA-V]{20}$/, Vo = /^[A-Za-z0-9]{27}$/, Yo = /^[a-zA-Z0-9_-]{21}$/, Go = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Jo = /^([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})$/, lt = (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)$/, Xo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, es = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
933
+ function ts() {
934
+ return new RegExp(es, "u");
935
+ }
936
+ const rs = /^(?:(?: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])$/, ns = /^(([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})$/, os = /^((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])$/, ss = /^(([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])$/, as = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, dr = /^[A-Za-z0-9_-]*$/, is = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, cs = /^\+(?:[0-9]){6,14}[0-9]$/, fr = "(?:(?:\\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])))", us = /* @__PURE__ */ new RegExp(`^${fr}$`);
937
+ function hr(e) {
938
+ const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
939
+ 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+)?)?`;
940
+ }
941
+ function ls(e) {
942
+ return new RegExp(`^${hr(e)}$`);
943
+ }
944
+ function ds(e) {
945
+ const t = hr({ precision: e.precision }), r = ["Z"];
946
+ e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
947
+ const n = `${t}(?:${r.join("|")})`;
948
+ return new RegExp(`^${fr}T(?:${n})$`);
949
+ }
950
+ const fs = (e) => {
951
+ const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
952
+ return new RegExp(`^${t}$`);
953
+ }, hs = /^[^A-Z]*$/, ps = /^[^a-z]*$/, U = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
954
+ var r;
955
+ e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
956
+ }), ms = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
957
+ U.init(e, t), e._zod.when = (r) => {
958
+ const n = r.value;
959
+ return !qe(n) && n.length !== void 0;
960
+ }, e._zod.onattach.push((r) => {
961
+ const n = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
962
+ t.maximum < n && (r._zod.bag.maximum = t.maximum);
963
+ }), e._zod.check = (r) => {
964
+ const n = r.value;
965
+ if (n.length <= t.maximum)
966
+ return;
967
+ const a = Be(n);
968
+ r.issues.push({
969
+ origin: a,
970
+ code: "too_big",
971
+ maximum: t.maximum,
972
+ inclusive: !0,
973
+ input: n,
974
+ inst: e,
975
+ continue: !t.abort
976
+ });
977
+ };
978
+ }), gs = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
979
+ U.init(e, t), e._zod.when = (r) => {
980
+ const n = r.value;
981
+ return !qe(n) && n.length !== void 0;
982
+ }, e._zod.onattach.push((r) => {
983
+ const n = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
984
+ t.minimum > n && (r._zod.bag.minimum = t.minimum);
985
+ }), e._zod.check = (r) => {
986
+ const n = r.value;
987
+ if (n.length >= t.minimum)
988
+ return;
989
+ const a = Be(n);
990
+ r.issues.push({
991
+ origin: a,
992
+ code: "too_small",
993
+ minimum: t.minimum,
994
+ inclusive: !0,
995
+ input: n,
996
+ inst: e,
997
+ continue: !t.abort
998
+ });
999
+ };
1000
+ }), vs = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1001
+ U.init(e, t), e._zod.when = (r) => {
1002
+ const n = r.value;
1003
+ return !qe(n) && n.length !== void 0;
1004
+ }, e._zod.onattach.push((r) => {
1005
+ const n = r._zod.bag;
1006
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
1007
+ }), e._zod.check = (r) => {
1008
+ const n = r.value, o = n.length;
1009
+ if (o === t.length)
1010
+ return;
1011
+ const a = Be(n), i = o > t.length;
1012
+ r.issues.push({
1013
+ origin: a,
1014
+ ...i ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1015
+ input: r.value,
1016
+ inst: e,
1017
+ continue: !t.abort
1018
+ });
1019
+ };
1020
+ }), be = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1021
+ var r;
1022
+ U.init(e, t), e._zod.onattach.push((n) => {
1023
+ const o = n._zod.bag;
1024
+ o.format = t.format, t.pattern && (o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(t.pattern));
1025
+ }), (r = e._zod).check ?? (r.check = (n) => {
1026
+ if (!t.pattern)
1027
+ throw new Error("Not implemented.");
1028
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1029
+ origin: "string",
1030
+ code: "invalid_format",
1031
+ format: t.format,
1032
+ input: n.value,
1033
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
1034
+ inst: e,
1035
+ continue: !t.abort
1036
+ });
1037
+ });
1038
+ }), ys = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1039
+ be.init(e, t), e._zod.check = (r) => {
1040
+ t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1041
+ origin: "string",
1042
+ code: "invalid_format",
1043
+ format: "regex",
1044
+ input: r.value,
1045
+ pattern: t.pattern.toString(),
1046
+ inst: e,
1047
+ continue: !t.abort
1048
+ });
1049
+ };
1050
+ }), xs = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1051
+ t.pattern ?? (t.pattern = hs), be.init(e, t);
1052
+ }), _s = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1053
+ t.pattern ?? (t.pattern = ps), be.init(e, t);
1054
+ }), bs = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1055
+ U.init(e, t);
1056
+ const r = _e(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1057
+ t.pattern = n, e._zod.onattach.push((o) => {
1058
+ const a = o._zod.bag;
1059
+ a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
1060
+ }), e._zod.check = (o) => {
1061
+ o.value.includes(t.includes, t.position) || o.issues.push({
1062
+ origin: "string",
1063
+ code: "invalid_format",
1064
+ format: "includes",
1065
+ includes: t.includes,
1066
+ input: o.value,
1067
+ inst: e,
1068
+ continue: !t.abort
1069
+ });
1070
+ };
1071
+ }), ws = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1072
+ U.init(e, t);
1073
+ const r = new RegExp(`^${_e(t.prefix)}.*`);
1074
+ t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1075
+ const o = n._zod.bag;
1076
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
1077
+ }), e._zod.check = (n) => {
1078
+ n.value.startsWith(t.prefix) || n.issues.push({
1079
+ origin: "string",
1080
+ code: "invalid_format",
1081
+ format: "starts_with",
1082
+ prefix: t.prefix,
1083
+ input: n.value,
1084
+ inst: e,
1085
+ continue: !t.abort
1086
+ });
1087
+ };
1088
+ }), js = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1089
+ U.init(e, t);
1090
+ const r = new RegExp(`.*${_e(t.suffix)}$`);
1091
+ t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1092
+ const o = n._zod.bag;
1093
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
1094
+ }), e._zod.check = (n) => {
1095
+ n.value.endsWith(t.suffix) || n.issues.push({
1096
+ origin: "string",
1097
+ code: "invalid_format",
1098
+ format: "ends_with",
1099
+ suffix: t.suffix,
1100
+ input: n.value,
1101
+ inst: e,
1102
+ continue: !t.abort
1103
+ });
1104
+ };
1105
+ }), ks = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1106
+ U.init(e, t), e._zod.check = (r) => {
1107
+ r.value = t.tx(r.value);
1108
+ };
1109
+ });
1110
+ class $s {
1111
+ constructor(t = []) {
1112
+ this.content = [], this.indent = 0, this && (this.args = t);
1113
+ }
1114
+ indented(t) {
1115
+ this.indent += 1, t(this), this.indent -= 1;
1116
+ }
1117
+ write(t) {
1118
+ if (typeof t == "function") {
1119
+ t(this, { execution: "sync" }), t(this, { execution: "async" });
1120
+ return;
1121
+ }
1122
+ const n = t.split(`
1123
+ `).filter((i) => i), o = Math.min(...n.map((i) => i.length - i.trimStart().length)), a = n.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
1124
+ for (const i of a)
1125
+ this.content.push(i);
1126
+ }
1127
+ compile() {
1128
+ const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((a) => ` ${a}`)];
1129
+ return new t(...r, o.join(`
1130
+ `));
1131
+ }
1132
+ }
1133
+ const zs = {
1134
+ major: 4,
1135
+ minor: 0,
1136
+ patch: 0
1137
+ }, C = /* @__PURE__ */ c("$ZodType", (e, t) => {
1138
+ var r;
1139
+ e ?? (e = {}), S(e._zod, "id", () => t.type + "_" + or(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = zs;
1140
+ const n = [...e._zod.def.checks ?? []];
1141
+ e._zod.traits.has("$ZodCheck") && n.unshift(e);
1142
+ for (const o of n)
1143
+ for (const a of o._zod.onattach)
1144
+ a(e);
1145
+ if (n.length === 0)
1146
+ (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
1147
+ e._zod.run = e._zod.parse;
1148
+ });
1149
+ else {
1150
+ const o = (a, i, u) => {
1151
+ let h = ne(a), f;
1152
+ for (const y of i) {
1153
+ if (y._zod.when) {
1154
+ if (!y._zod.when(a))
1155
+ continue;
1156
+ } else if (h)
1157
+ continue;
1158
+ const p = a.issues.length, m = y._zod.check(a);
1159
+ if (m instanceof Promise && u?.async === !1)
1160
+ throw new se();
1161
+ if (f || m instanceof Promise)
1162
+ f = (f ?? Promise.resolve()).then(async () => {
1163
+ await m, a.issues.length !== p && (h || (h = ne(a, p)));
1164
+ });
1165
+ else {
1166
+ if (a.issues.length === p)
1167
+ continue;
1168
+ h || (h = ne(a, p));
1169
+ }
1170
+ }
1171
+ return f ? f.then(() => a) : a;
1172
+ };
1173
+ e._zod.run = (a, i) => {
1174
+ const u = e._zod.parse(a, i);
1175
+ if (u instanceof Promise) {
1176
+ if (i.async === !1)
1177
+ throw new se();
1178
+ return u.then((h) => o(h, n, i));
1179
+ }
1180
+ return o(u, n, i);
1181
+ };
1182
+ }
1183
+ e["~standard"] = {
1184
+ validate: (o) => {
1185
+ try {
1186
+ const a = Lo(e, o);
1187
+ return a.success ? { value: a.data } : { issues: a.error?.issues };
1188
+ } catch {
1189
+ return Qo(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1190
+ }
1191
+ },
1192
+ vendor: "zod",
1193
+ version: 1
1194
+ };
1195
+ }), He = /* @__PURE__ */ c("$ZodString", (e, t) => {
1196
+ C.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fs(e._zod.bag), e._zod.parse = (r, n) => {
1197
+ if (t.coerce)
1198
+ try {
1199
+ r.value = String(r.value);
1200
+ } catch {
1201
+ }
1202
+ return typeof r.value == "string" || r.issues.push({
1203
+ expected: "string",
1204
+ code: "invalid_type",
1205
+ input: r.value,
1206
+ inst: e
1207
+ }), r;
1208
+ };
1209
+ }), E = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1210
+ be.init(e, t), He.init(e, t);
1211
+ }), Ps = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1212
+ t.pattern ?? (t.pattern = Jo), E.init(e, t);
1213
+ }), Es = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1214
+ if (t.version) {
1215
+ const n = {
1216
+ v1: 1,
1217
+ v2: 2,
1218
+ v3: 3,
1219
+ v4: 4,
1220
+ v5: 5,
1221
+ v6: 6,
1222
+ v7: 7,
1223
+ v8: 8
1224
+ }[t.version];
1225
+ if (n === void 0)
1226
+ throw new Error(`Invalid UUID version: "${t.version}"`);
1227
+ t.pattern ?? (t.pattern = lt(n));
1228
+ } else
1229
+ t.pattern ?? (t.pattern = lt());
1230
+ E.init(e, t);
1231
+ }), Ss = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1232
+ t.pattern ?? (t.pattern = Xo), E.init(e, t);
1233
+ }), Zs = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1234
+ E.init(e, t), e._zod.check = (r) => {
1235
+ try {
1236
+ const n = new URL(r.value);
1237
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(n.hostname) || r.issues.push({
1238
+ code: "invalid_format",
1239
+ format: "url",
1240
+ note: "Invalid hostname",
1241
+ pattern: is.source,
1242
+ input: r.value,
1243
+ inst: e,
1244
+ continue: !t.abort
1245
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(n.protocol.endsWith(":") ? n.protocol.slice(0, -1) : n.protocol) || r.issues.push({
1246
+ code: "invalid_format",
1247
+ format: "url",
1248
+ note: "Invalid protocol",
1249
+ pattern: t.protocol.source,
1250
+ input: r.value,
1251
+ inst: e,
1252
+ continue: !t.abort
1253
+ }));
1254
+ return;
1255
+ } catch {
1256
+ r.issues.push({
1257
+ code: "invalid_format",
1258
+ format: "url",
1259
+ input: r.value,
1260
+ inst: e,
1261
+ continue: !t.abort
1262
+ });
1263
+ }
1264
+ };
1265
+ }), Ts = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1266
+ t.pattern ?? (t.pattern = ts()), E.init(e, t);
1267
+ }), Cs = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1268
+ t.pattern ?? (t.pattern = Yo), E.init(e, t);
1269
+ }), Os = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1270
+ t.pattern ?? (t.pattern = Bo), E.init(e, t);
1271
+ }), Ns = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1272
+ t.pattern ?? (t.pattern = Ho), E.init(e, t);
1273
+ }), As = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1274
+ t.pattern ?? (t.pattern = Ko), E.init(e, t);
1275
+ }), Is = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1276
+ t.pattern ?? (t.pattern = Wo), E.init(e, t);
1277
+ }), Rs = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1278
+ t.pattern ?? (t.pattern = Vo), E.init(e, t);
1279
+ }), Ds = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1280
+ t.pattern ?? (t.pattern = ds(t)), E.init(e, t), e._zod.check;
1281
+ }), Ms = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1282
+ t.pattern ?? (t.pattern = us), E.init(e, t);
1283
+ }), Fs = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1284
+ t.pattern ?? (t.pattern = ls(t)), E.init(e, t), e._zod.check;
1285
+ }), qs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1286
+ t.pattern ?? (t.pattern = Go), E.init(e, t);
1287
+ }), Us = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1288
+ t.pattern ?? (t.pattern = rs), E.init(e, t), e._zod.onattach.push((r) => {
1289
+ const n = r._zod.bag;
1290
+ n.format = "ipv4";
1291
+ });
1292
+ }), Ls = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1293
+ t.pattern ?? (t.pattern = ns), E.init(e, t), e._zod.onattach.push((r) => {
1294
+ const n = r._zod.bag;
1295
+ n.format = "ipv6";
1296
+ }), e._zod.check = (r) => {
1297
+ try {
1298
+ new URL(`http://[${r.value}]`);
1299
+ } catch {
1300
+ r.issues.push({
1301
+ code: "invalid_format",
1302
+ format: "ipv6",
1303
+ input: r.value,
1304
+ inst: e,
1305
+ continue: !t.abort
1306
+ });
1307
+ }
1308
+ };
1309
+ }), Qs = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1310
+ t.pattern ?? (t.pattern = os), E.init(e, t);
1311
+ }), Bs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1312
+ t.pattern ?? (t.pattern = ss), E.init(e, t), e._zod.check = (r) => {
1313
+ const [n, o] = r.value.split("/");
1314
+ try {
1315
+ if (!o)
1316
+ throw new Error();
1317
+ const a = Number(o);
1318
+ if (`${a}` !== o)
1319
+ throw new Error();
1320
+ if (a < 0 || a > 128)
1321
+ throw new Error();
1322
+ new URL(`http://[${n}]`);
1323
+ } catch {
1324
+ r.issues.push({
1325
+ code: "invalid_format",
1326
+ format: "cidrv6",
1327
+ input: r.value,
1328
+ inst: e,
1329
+ continue: !t.abort
1330
+ });
1331
+ }
1332
+ };
1333
+ });
1334
+ function pr(e) {
1335
+ if (e === "")
1336
+ return !0;
1337
+ if (e.length % 4 !== 0)
1338
+ return !1;
1339
+ try {
1340
+ return atob(e), !0;
1341
+ } catch {
1342
+ return !1;
1343
+ }
1344
+ }
1345
+ const Hs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1346
+ t.pattern ?? (t.pattern = as), E.init(e, t), e._zod.onattach.push((r) => {
1347
+ r._zod.bag.contentEncoding = "base64";
1348
+ }), e._zod.check = (r) => {
1349
+ pr(r.value) || r.issues.push({
1350
+ code: "invalid_format",
1351
+ format: "base64",
1352
+ input: r.value,
1353
+ inst: e,
1354
+ continue: !t.abort
1355
+ });
1356
+ };
1357
+ });
1358
+ function Ks(e) {
1359
+ if (!dr.test(e))
1360
+ return !1;
1361
+ const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1362
+ return pr(r);
1363
+ }
1364
+ const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1365
+ t.pattern ?? (t.pattern = dr), E.init(e, t), e._zod.onattach.push((r) => {
1366
+ r._zod.bag.contentEncoding = "base64url";
1367
+ }), e._zod.check = (r) => {
1368
+ Ks(r.value) || r.issues.push({
1369
+ code: "invalid_format",
1370
+ format: "base64url",
1371
+ input: r.value,
1372
+ inst: e,
1373
+ continue: !t.abort
1374
+ });
1375
+ };
1376
+ }), Vs = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1377
+ t.pattern ?? (t.pattern = cs), E.init(e, t);
1378
+ });
1379
+ function Ys(e, t = null) {
1380
+ try {
1381
+ const r = e.split(".");
1382
+ if (r.length !== 3)
1383
+ return !1;
1384
+ const [n] = r, o = JSON.parse(atob(n));
1385
+ return !("typ" in o && o?.typ !== "JWT" || !o.alg || t && (!("alg" in o) || o.alg !== t));
1386
+ } catch {
1387
+ return !1;
1388
+ }
1389
+ }
1390
+ const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1391
+ E.init(e, t), e._zod.check = (r) => {
1392
+ Ys(r.value, t.alg) || r.issues.push({
1393
+ code: "invalid_format",
1394
+ format: "jwt",
1395
+ input: r.value,
1396
+ inst: e,
1397
+ continue: !t.abort
1398
+ });
1399
+ };
1400
+ }), Js = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1401
+ C.init(e, t), e._zod.parse = (r) => r;
1402
+ }), Xs = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1403
+ C.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1404
+ expected: "never",
1405
+ code: "invalid_type",
1406
+ input: r.value,
1407
+ inst: e
1408
+ }), r);
1409
+ });
1410
+ function dt(e, t, r) {
1411
+ e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
1412
+ }
1413
+ const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1414
+ C.init(e, t), e._zod.parse = (r, n) => {
1415
+ const o = r.value;
1416
+ if (!Array.isArray(o))
1417
+ return r.issues.push({
1418
+ expected: "array",
1419
+ code: "invalid_type",
1420
+ input: o,
1421
+ inst: e
1422
+ }), r;
1423
+ r.value = Array(o.length);
1424
+ const a = [];
1425
+ for (let i = 0; i < o.length; i++) {
1426
+ const u = o[i], h = t.element._zod.run({
1427
+ value: u,
1428
+ issues: []
1429
+ }, n);
1430
+ h instanceof Promise ? a.push(h.then((f) => dt(f, r, i))) : dt(h, r, i);
1431
+ }
1432
+ return a.length ? Promise.all(a).then(() => r) : r;
1433
+ };
1434
+ });
1435
+ function de(e, t, r) {
1436
+ e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
1437
+ }
1438
+ function ft(e, t, r, n) {
1439
+ e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1440
+ }
1441
+ const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1442
+ C.init(e, t);
1443
+ const r = nr(() => {
1444
+ const p = Object.keys(t.shape);
1445
+ for (const l of p)
1446
+ if (!(t.shape[l] instanceof C))
1447
+ throw new Error(`Invalid element at key "${l}": expected a Zod schema`);
1448
+ const m = Co(t.shape);
1449
+ return {
1450
+ shape: t.shape,
1451
+ keys: p,
1452
+ keySet: new Set(p),
1453
+ numKeys: p.length,
1454
+ optionalKeys: new Set(m)
1455
+ };
1456
+ });
1457
+ S(e._zod, "propValues", () => {
1458
+ const p = t.shape, m = {};
1459
+ for (const l in p) {
1460
+ const g = p[l]._zod;
1461
+ if (g.values) {
1462
+ m[l] ?? (m[l] = /* @__PURE__ */ new Set());
1463
+ for (const w of g.values)
1464
+ m[l].add(w);
1465
+ }
1466
+ }
1467
+ return m;
1468
+ });
1469
+ const n = (p) => {
1470
+ const m = new $s(["shape", "payload", "ctx"]), { keys: l, optionalKeys: g } = r.value, w = (j) => {
1471
+ const x = re(j);
1472
+ return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1473
+ };
1474
+ m.write("const input = payload.value;");
1475
+ const P = /* @__PURE__ */ Object.create(null);
1476
+ for (const j of l)
1477
+ P[j] = or(15);
1478
+ m.write("const newResult = {}");
1479
+ for (const j of l)
1480
+ if (g.has(j)) {
1481
+ const x = P[j];
1482
+ m.write(`const ${x} = ${w(j)};`);
1483
+ const b = re(j);
1484
+ m.write(`
1485
+ if (${x}.issues.length) {
1486
+ if (input[${b}] === undefined) {
1487
+ if (${b} in input) {
1488
+ newResult[${b}] = undefined;
1489
+ }
1490
+ } else {
1491
+ payload.issues = payload.issues.concat(
1492
+ ${x}.issues.map((iss) => ({
1493
+ ...iss,
1494
+ path: iss.path ? [${b}, ...iss.path] : [${b}],
1495
+ }))
1496
+ );
1497
+ }
1498
+ } else if (${x}.value === undefined) {
1499
+ if (${b} in input) newResult[${b}] = undefined;
1500
+ } else {
1501
+ newResult[${b}] = ${x}.value;
1502
+ }
1503
+ `);
1504
+ } else {
1505
+ const x = P[j];
1506
+ m.write(`const ${x} = ${w(j)};`), m.write(`
1507
+ if (${x}.issues.length) payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1508
+ ...iss,
1509
+ path: iss.path ? [${re(j)}, ...iss.path] : [${re(j)}]
1510
+ })));`), m.write(`newResult[${re(j)}] = ${x}.value`);
1511
+ }
1512
+ m.write("payload.value = newResult;"), m.write("return payload;");
1513
+ const T = m.compile();
1514
+ return (j, x) => T(p, j, x);
1515
+ };
1516
+ let o;
1517
+ const a = Te, i = !rr.jitless, h = i && Zo.value, { catchall: f } = t;
1518
+ let y;
1519
+ e._zod.parse = (p, m) => {
1520
+ y ?? (y = r.value);
1521
+ const l = p.value;
1522
+ if (!a(l))
1523
+ return p.issues.push({
1524
+ expected: "object",
1525
+ code: "invalid_type",
1526
+ input: l,
1527
+ inst: e
1528
+ }), p;
1529
+ const g = [];
1530
+ if (i && h && m?.async === !1 && m.jitless !== !0)
1531
+ o || (o = n(t.shape)), p = o(p, m);
1532
+ else {
1533
+ p.value = {};
1534
+ const x = y.shape;
1535
+ for (const b of y.keys) {
1536
+ const d = x[b], z = d._zod.run({ value: l[b], issues: [] }, m), I = d._zod.optin === "optional" && d._zod.optout === "optional";
1537
+ z instanceof Promise ? g.push(z.then((D) => I ? ft(D, p, b, l) : de(D, p, b))) : I ? ft(z, p, b, l) : de(z, p, b);
1538
+ }
1539
+ }
1540
+ if (!f)
1541
+ return g.length ? Promise.all(g).then(() => p) : p;
1542
+ const w = [], P = y.keySet, T = f._zod, j = T.def.type;
1543
+ for (const x of Object.keys(l)) {
1544
+ if (P.has(x))
1545
+ continue;
1546
+ if (j === "never") {
1547
+ w.push(x);
1548
+ continue;
1549
+ }
1550
+ const b = T.run({ value: l[x], issues: [] }, m);
1551
+ b instanceof Promise ? g.push(b.then((d) => de(d, p, x))) : de(b, p, x);
1552
+ }
1553
+ return w.length && p.issues.push({
1554
+ code: "unrecognized_keys",
1555
+ keys: w,
1556
+ input: l,
1557
+ inst: e
1558
+ }), g.length ? Promise.all(g).then(() => p) : p;
1559
+ };
1560
+ });
1561
+ function ht(e, t, r, n) {
1562
+ for (const o of e)
1563
+ if (o.issues.length === 0)
1564
+ return t.value = o.value, t;
1565
+ return t.issues.push({
1566
+ code: "invalid_union",
1567
+ input: t.value,
1568
+ inst: r,
1569
+ errors: e.map((o) => o.issues.map((a) => Y(a, n, V())))
1570
+ }), t;
1571
+ }
1572
+ const ra = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1573
+ C.init(e, t), S(e._zod, "values", () => {
1574
+ if (t.options.every((r) => r._zod.values))
1575
+ return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1576
+ }), S(e._zod, "pattern", () => {
1577
+ if (t.options.every((r) => r._zod.pattern)) {
1578
+ const r = t.options.map((n) => n._zod.pattern);
1579
+ return new RegExp(`^(${r.map((n) => Ue(n.source)).join("|")})$`);
1580
+ }
1581
+ }), e._zod.parse = (r, n) => {
1582
+ let o = !1;
1583
+ const a = [];
1584
+ for (const i of t.options) {
1585
+ const u = i._zod.run({
1586
+ value: r.value,
1587
+ issues: []
1588
+ }, n);
1589
+ if (u instanceof Promise)
1590
+ a.push(u), o = !0;
1591
+ else {
1592
+ if (u.issues.length === 0)
1593
+ return u;
1594
+ a.push(u);
1595
+ }
1596
+ }
1597
+ return o ? Promise.all(a).then((i) => ht(i, r, e, n)) : ht(a, r, e, n);
1598
+ };
1599
+ }), na = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1600
+ C.init(e, t), e._zod.parse = (r, n) => {
1601
+ const { value: o } = r, a = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1602
+ return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([h, f]) => pt(r, h, f)) : pt(r, a, i);
1603
+ };
1604
+ });
1605
+ function Ce(e, t) {
1606
+ if (e === t)
1607
+ return { valid: !0, data: e };
1608
+ if (e instanceof Date && t instanceof Date && +e == +t)
1609
+ return { valid: !0, data: e };
1610
+ if (ut(e) && ut(t)) {
1611
+ const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
1612
+ for (const a of n) {
1613
+ const i = Ce(e[a], t[a]);
1614
+ if (!i.valid)
1615
+ return {
1616
+ valid: !1,
1617
+ mergeErrorPath: [a, ...i.mergeErrorPath]
1618
+ };
1619
+ o[a] = i.data;
1620
+ }
1621
+ return { valid: !0, data: o };
1622
+ }
1623
+ if (Array.isArray(e) && Array.isArray(t)) {
1624
+ if (e.length !== t.length)
1625
+ return { valid: !1, mergeErrorPath: [] };
1626
+ const r = [];
1627
+ for (let n = 0; n < e.length; n++) {
1628
+ const o = e[n], a = t[n], i = Ce(o, a);
1629
+ if (!i.valid)
1630
+ return {
1631
+ valid: !1,
1632
+ mergeErrorPath: [n, ...i.mergeErrorPath]
1633
+ };
1634
+ r.push(i.data);
1635
+ }
1636
+ return { valid: !0, data: r };
1637
+ }
1638
+ return { valid: !1, mergeErrorPath: [] };
1639
+ }
1640
+ function pt(e, t, r) {
1641
+ if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ne(e))
1642
+ return e;
1643
+ const n = Ce(t.value, r.value);
1644
+ if (!n.valid)
1645
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1646
+ return e.value = n.data, e;
1647
+ }
1648
+ const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1649
+ C.init(e, t);
1650
+ const r = Eo(t.entries);
1651
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => To.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1652
+ const a = n.value;
1653
+ return e._zod.values.has(a) || n.issues.push({
1654
+ code: "invalid_value",
1655
+ values: r,
1656
+ input: a,
1657
+ inst: e
1658
+ }), n;
1659
+ };
1660
+ }), sa = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1661
+ C.init(e, t), e._zod.parse = (r, n) => {
1662
+ const o = t.transform(r.value, r);
1663
+ if (n.async)
1664
+ return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1665
+ if (o instanceof Promise)
1666
+ throw new se();
1667
+ return r.value = o, r;
1668
+ };
1669
+ }), aa = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1670
+ C.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1671
+ const r = t.innerType._zod.pattern;
1672
+ return r ? new RegExp(`^(${Ue(r.source)})?$`) : void 0;
1673
+ }), e._zod.parse = (r, n) => r.value === void 0 ? r : t.innerType._zod.run(r, n);
1674
+ }), ia = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1675
+ C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1676
+ const r = t.innerType._zod.pattern;
1677
+ return r ? new RegExp(`^(${Ue(r.source)}|null)$`) : void 0;
1678
+ }), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1679
+ }), ca = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1680
+ C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1681
+ if (r.value === void 0)
1682
+ return r.value = t.defaultValue, r;
1683
+ const o = t.innerType._zod.run(r, n);
1684
+ return o instanceof Promise ? o.then((a) => mt(a, t)) : mt(o, t);
1685
+ };
1686
+ });
1687
+ function mt(e, t) {
1688
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1689
+ }
1690
+ const ua = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1691
+ C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1692
+ }), la = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1693
+ C.init(e, t), S(e._zod, "values", () => {
1694
+ const r = t.innerType._zod.values;
1695
+ return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1696
+ }), e._zod.parse = (r, n) => {
1697
+ const o = t.innerType._zod.run(r, n);
1698
+ return o instanceof Promise ? o.then((a) => gt(a, e)) : gt(o, e);
1699
+ };
1700
+ });
1701
+ function gt(e, t) {
1702
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1703
+ code: "invalid_type",
1704
+ expected: "nonoptional",
1705
+ input: e.value,
1706
+ inst: t
1707
+ }), e;
1708
+ }
1709
+ const da = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1710
+ C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1711
+ const o = t.innerType._zod.run(r, n);
1712
+ return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
1713
+ ...r,
1714
+ error: {
1715
+ issues: a.issues.map((i) => Y(i, n, V()))
1716
+ },
1717
+ input: r.value
1718
+ }), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
1719
+ ...r,
1720
+ error: {
1721
+ issues: o.issues.map((a) => Y(a, n, V()))
1722
+ },
1723
+ input: r.value
1724
+ }), r.issues = []), r);
1725
+ };
1726
+ }), fa = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1727
+ C.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1728
+ const o = t.in._zod.run(r, n);
1729
+ return o instanceof Promise ? o.then((a) => vt(a, t, n)) : vt(o, t, n);
1730
+ };
1731
+ });
1732
+ function vt(e, t, r) {
1733
+ return ne(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1734
+ }
1735
+ const ha = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1736
+ C.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1737
+ const o = t.innerType._zod.run(r, n);
1738
+ return o instanceof Promise ? o.then(yt) : yt(o);
1739
+ };
1740
+ });
1741
+ function yt(e) {
1742
+ return e.value = Object.freeze(e.value), e;
1743
+ }
1744
+ const pa = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1745
+ U.init(e, t), C.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1746
+ const n = r.value, o = t.fn(n);
1747
+ if (o instanceof Promise)
1748
+ return o.then((a) => xt(a, r, n, e));
1749
+ xt(o, r, n, e);
1750
+ };
1751
+ });
1752
+ function xt(e, t, r, n) {
1753
+ if (!e) {
1754
+ const o = {
1755
+ code: "custom",
1756
+ input: r,
1757
+ inst: n,
1758
+ // incorporates params.error into issue reporting
1759
+ path: [...n._zod.def.path ?? []],
1760
+ // incorporates params.error into issue reporting
1761
+ continue: !n._zod.def.abort
1762
+ // params: inst._zod.def.params,
1763
+ };
1764
+ n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ae(o));
1765
+ }
1766
+ }
1767
+ class ma {
1768
+ constructor() {
1769
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1770
+ }
1771
+ add(t, ...r) {
1772
+ const n = r[0];
1773
+ if (this._map.set(t, n), n && typeof n == "object" && "id" in n) {
1774
+ if (this._idmap.has(n.id))
1775
+ throw new Error(`ID ${n.id} already exists in the registry`);
1776
+ this._idmap.set(n.id, t);
1777
+ }
1778
+ return this;
1779
+ }
1780
+ remove(t) {
1781
+ return this._map.delete(t), this;
1782
+ }
1783
+ get(t) {
1784
+ const r = t._zod.parent;
1785
+ if (r) {
1786
+ const n = { ...this.get(r) ?? {} };
1787
+ return delete n.id, { ...n, ...this._map.get(t) };
1788
+ }
1789
+ return this._map.get(t);
1790
+ }
1791
+ has(t) {
1792
+ return this._map.has(t);
1793
+ }
1794
+ }
1795
+ function ga() {
1796
+ return new ma();
1797
+ }
1798
+ const fe = /* @__PURE__ */ ga();
1799
+ function va(e, t) {
1800
+ return new e({
1801
+ type: "string",
1802
+ ..._(t)
1803
+ });
1804
+ }
1805
+ function ya(e, t) {
1806
+ return new e({
1807
+ type: "string",
1808
+ format: "email",
1809
+ check: "string_format",
1810
+ abort: !1,
1811
+ ..._(t)
1812
+ });
1813
+ }
1814
+ function _t(e, t) {
1815
+ return new e({
1816
+ type: "string",
1817
+ format: "guid",
1818
+ check: "string_format",
1819
+ abort: !1,
1820
+ ..._(t)
1821
+ });
1822
+ }
1823
+ function xa(e, t) {
1824
+ return new e({
1825
+ type: "string",
1826
+ format: "uuid",
1827
+ check: "string_format",
1828
+ abort: !1,
1829
+ ..._(t)
1830
+ });
1831
+ }
1832
+ function _a(e, t) {
1833
+ return new e({
1834
+ type: "string",
1835
+ format: "uuid",
1836
+ check: "string_format",
1837
+ abort: !1,
1838
+ version: "v4",
1839
+ ..._(t)
1840
+ });
1841
+ }
1842
+ function ba(e, t) {
1843
+ return new e({
1844
+ type: "string",
1845
+ format: "uuid",
1846
+ check: "string_format",
1847
+ abort: !1,
1848
+ version: "v6",
1849
+ ..._(t)
1850
+ });
1851
+ }
1852
+ function wa(e, t) {
1853
+ return new e({
1854
+ type: "string",
1855
+ format: "uuid",
1856
+ check: "string_format",
1857
+ abort: !1,
1858
+ version: "v7",
1859
+ ..._(t)
1860
+ });
1861
+ }
1862
+ function ja(e, t) {
1863
+ return new e({
1864
+ type: "string",
1865
+ format: "url",
1866
+ check: "string_format",
1867
+ abort: !1,
1868
+ ..._(t)
1869
+ });
1870
+ }
1871
+ function ka(e, t) {
1872
+ return new e({
1873
+ type: "string",
1874
+ format: "emoji",
1875
+ check: "string_format",
1876
+ abort: !1,
1877
+ ..._(t)
1878
+ });
1879
+ }
1880
+ function $a(e, t) {
1881
+ return new e({
1882
+ type: "string",
1883
+ format: "nanoid",
1884
+ check: "string_format",
1885
+ abort: !1,
1886
+ ..._(t)
1887
+ });
1888
+ }
1889
+ function za(e, t) {
1890
+ return new e({
1891
+ type: "string",
1892
+ format: "cuid",
1893
+ check: "string_format",
1894
+ abort: !1,
1895
+ ..._(t)
1896
+ });
1897
+ }
1898
+ function Pa(e, t) {
1899
+ return new e({
1900
+ type: "string",
1901
+ format: "cuid2",
1902
+ check: "string_format",
1903
+ abort: !1,
1904
+ ..._(t)
1905
+ });
1906
+ }
1907
+ function Ea(e, t) {
1908
+ return new e({
1909
+ type: "string",
1910
+ format: "ulid",
1911
+ check: "string_format",
1912
+ abort: !1,
1913
+ ..._(t)
1914
+ });
1915
+ }
1916
+ function Sa(e, t) {
1917
+ return new e({
1918
+ type: "string",
1919
+ format: "xid",
1920
+ check: "string_format",
1921
+ abort: !1,
1922
+ ..._(t)
1923
+ });
1924
+ }
1925
+ function Za(e, t) {
1926
+ return new e({
1927
+ type: "string",
1928
+ format: "ksuid",
1929
+ check: "string_format",
1930
+ abort: !1,
1931
+ ..._(t)
1932
+ });
1933
+ }
1934
+ function Ta(e, t) {
1935
+ return new e({
1936
+ type: "string",
1937
+ format: "ipv4",
1938
+ check: "string_format",
1939
+ abort: !1,
1940
+ ..._(t)
1941
+ });
1942
+ }
1943
+ function Ca(e, t) {
1944
+ return new e({
1945
+ type: "string",
1946
+ format: "ipv6",
1947
+ check: "string_format",
1948
+ abort: !1,
1949
+ ..._(t)
1950
+ });
1951
+ }
1952
+ function Oa(e, t) {
1953
+ return new e({
1954
+ type: "string",
1955
+ format: "cidrv4",
1956
+ check: "string_format",
1957
+ abort: !1,
1958
+ ..._(t)
1959
+ });
1960
+ }
1961
+ function Na(e, t) {
1962
+ return new e({
1963
+ type: "string",
1964
+ format: "cidrv6",
1965
+ check: "string_format",
1966
+ abort: !1,
1967
+ ..._(t)
1968
+ });
1969
+ }
1970
+ function Aa(e, t) {
1971
+ return new e({
1972
+ type: "string",
1973
+ format: "base64",
1974
+ check: "string_format",
1975
+ abort: !1,
1976
+ ..._(t)
1977
+ });
1978
+ }
1979
+ function Ia(e, t) {
1980
+ return new e({
1981
+ type: "string",
1982
+ format: "base64url",
1983
+ check: "string_format",
1984
+ abort: !1,
1985
+ ..._(t)
1986
+ });
1987
+ }
1988
+ function Ra(e, t) {
1989
+ return new e({
1990
+ type: "string",
1991
+ format: "e164",
1992
+ check: "string_format",
1993
+ abort: !1,
1994
+ ..._(t)
1995
+ });
1996
+ }
1997
+ function Da(e, t) {
1998
+ return new e({
1999
+ type: "string",
2000
+ format: "jwt",
2001
+ check: "string_format",
2002
+ abort: !1,
2003
+ ..._(t)
2004
+ });
2005
+ }
2006
+ function Ma(e, t) {
2007
+ return new e({
2008
+ type: "string",
2009
+ format: "datetime",
2010
+ check: "string_format",
2011
+ offset: !1,
2012
+ local: !1,
2013
+ precision: null,
2014
+ ..._(t)
2015
+ });
2016
+ }
2017
+ function Fa(e, t) {
2018
+ return new e({
2019
+ type: "string",
2020
+ format: "date",
2021
+ check: "string_format",
2022
+ ..._(t)
2023
+ });
2024
+ }
2025
+ function qa(e, t) {
2026
+ return new e({
2027
+ type: "string",
2028
+ format: "time",
2029
+ check: "string_format",
2030
+ precision: null,
2031
+ ..._(t)
2032
+ });
2033
+ }
2034
+ function Ua(e, t) {
2035
+ return new e({
2036
+ type: "string",
2037
+ format: "duration",
2038
+ check: "string_format",
2039
+ ..._(t)
2040
+ });
2041
+ }
2042
+ function La(e) {
2043
+ return new e({
2044
+ type: "unknown"
2045
+ });
2046
+ }
2047
+ function Qa(e, t) {
2048
+ return new e({
2049
+ type: "never",
2050
+ ..._(t)
2051
+ });
2052
+ }
2053
+ function mr(e, t) {
2054
+ return new ms({
2055
+ check: "max_length",
2056
+ ..._(t),
2057
+ maximum: e
2058
+ });
2059
+ }
2060
+ function ve(e, t) {
2061
+ return new gs({
2062
+ check: "min_length",
2063
+ ..._(t),
2064
+ minimum: e
2065
+ });
2066
+ }
2067
+ function gr(e, t) {
2068
+ return new vs({
2069
+ check: "length_equals",
2070
+ ..._(t),
2071
+ length: e
2072
+ });
2073
+ }
2074
+ function Ba(e, t) {
2075
+ return new ys({
2076
+ check: "string_format",
2077
+ format: "regex",
2078
+ ..._(t),
2079
+ pattern: e
2080
+ });
2081
+ }
2082
+ function Ha(e) {
2083
+ return new xs({
2084
+ check: "string_format",
2085
+ format: "lowercase",
2086
+ ..._(e)
2087
+ });
2088
+ }
2089
+ function Ka(e) {
2090
+ return new _s({
2091
+ check: "string_format",
2092
+ format: "uppercase",
2093
+ ..._(e)
2094
+ });
2095
+ }
2096
+ function Wa(e, t) {
2097
+ return new bs({
2098
+ check: "string_format",
2099
+ format: "includes",
2100
+ ..._(t),
2101
+ includes: e
2102
+ });
2103
+ }
2104
+ function Va(e, t) {
2105
+ return new ws({
2106
+ check: "string_format",
2107
+ format: "starts_with",
2108
+ ..._(t),
2109
+ prefix: e
2110
+ });
2111
+ }
2112
+ function Ya(e, t) {
2113
+ return new js({
2114
+ check: "string_format",
2115
+ format: "ends_with",
2116
+ ..._(t),
2117
+ suffix: e
2118
+ });
2119
+ }
2120
+ function ie(e) {
2121
+ return new ks({
2122
+ check: "overwrite",
2123
+ tx: e
2124
+ });
2125
+ }
2126
+ function Ga(e) {
2127
+ return ie((t) => t.normalize(e));
2128
+ }
2129
+ function Ja() {
2130
+ return ie((e) => e.trim());
2131
+ }
2132
+ function Xa() {
2133
+ return ie((e) => e.toLowerCase());
2134
+ }
2135
+ function ei() {
2136
+ return ie((e) => e.toUpperCase());
2137
+ }
2138
+ function ti(e, t, r) {
2139
+ return new e({
2140
+ type: "array",
2141
+ element: t,
2142
+ // get element() {
2143
+ // return element;
2144
+ // },
2145
+ ..._(r)
2146
+ });
2147
+ }
2148
+ function ri(e, t, r) {
2149
+ return new e({
2150
+ type: "custom",
2151
+ check: "custom",
2152
+ fn: t,
2153
+ ..._(r)
2154
+ });
2155
+ }
2156
+ const ni = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2157
+ Ds.init(e, t), Z.init(e, t);
2158
+ });
2159
+ function oi(e) {
2160
+ return Ma(ni, e);
2161
+ }
2162
+ const si = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2163
+ Ms.init(e, t), Z.init(e, t);
2164
+ });
2165
+ function ai(e) {
2166
+ return Fa(si, e);
2167
+ }
2168
+ const ii = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2169
+ Fs.init(e, t), Z.init(e, t);
2170
+ });
2171
+ function ci(e) {
2172
+ return qa(ii, e);
2173
+ }
2174
+ const ui = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2175
+ qs.init(e, t), Z.init(e, t);
2176
+ });
2177
+ function li(e) {
2178
+ return Ua(ui, e);
2179
+ }
2180
+ const di = (e, t) => {
2181
+ ir.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2182
+ format: {
2183
+ value: (r) => Fo(e, r)
2184
+ // enumerable: false,
2185
+ },
2186
+ flatten: {
2187
+ value: (r) => Mo(e, r)
2188
+ // enumerable: false,
2189
+ },
2190
+ addIssue: {
2191
+ value: (r) => e.issues.push(r)
2192
+ // enumerable: false,
2193
+ },
2194
+ addIssues: {
2195
+ value: (r) => e.issues.push(...r)
2196
+ // enumerable: false,
2197
+ },
2198
+ isEmpty: {
2199
+ get() {
2200
+ return e.issues.length === 0;
2201
+ }
2202
+ // enumerable: false,
2203
+ }
2204
+ });
2205
+ }, we = c("ZodError", di, {
2206
+ Parent: Error
2207
+ }), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ Uo(we), pi = /* @__PURE__ */ ur(we), mi = /* @__PURE__ */ lr(we), O = /* @__PURE__ */ c("ZodType", (e, t) => (C.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2208
+ {
2209
+ ...t,
2210
+ checks: [
2211
+ ...t.checks ?? [],
2212
+ ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2213
+ ]
2214
+ }
2215
+ // { parent: true }
2216
+ ), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => fi(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => pi(e, r, n), e.parseAsync = async (r, n) => hi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => mi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(ac(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () => kt(e), e.nullable = () => $t(e), e.nullish = () => kt($t(e)), e.nonoptional = (r) => Ji(e, r), e.array = () => Di(e), e.or = (r) => Ui([e, r]), e.and = (r) => Qi(e, r), e.transform = (r) => zt(e, Hi(r)), e.default = (r) => Vi(e, r), e.prefault = (r) => Gi(e, r), e.catch = (r) => ec(e, r), e.pipe = (r) => zt(e, r), e.readonly = () => nc(e), e.describe = (r) => {
2217
+ const n = e.clone();
2218
+ return fe.add(n, { description: r }), n;
2219
+ }, Object.defineProperty(e, "description", {
2220
+ get() {
2221
+ return fe.get(e)?.description;
2222
+ },
2223
+ configurable: !0
2224
+ }), e.meta = (...r) => {
2225
+ if (r.length === 0)
2226
+ return fe.get(e);
2227
+ const n = e.clone();
2228
+ return fe.add(n, r[0]), n;
2229
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vr = /* @__PURE__ */ c("_ZodString", (e, t) => {
2230
+ He.init(e, t), O.init(e, t);
2231
+ const r = e._zod.bag;
2232
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ba(...n)), e.includes = (...n) => e.check(Wa(...n)), e.startsWith = (...n) => e.check(Va(...n)), e.endsWith = (...n) => e.check(Ya(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(mr(...n)), e.length = (...n) => e.check(gr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Ha(n)), e.uppercase = (n) => e.check(Ka(n)), e.trim = () => e.check(Ja()), e.normalize = (...n) => e.check(Ga(...n)), e.toLowerCase = () => e.check(Xa()), e.toUpperCase = () => e.check(ei());
2233
+ }), gi = /* @__PURE__ */ c("ZodString", (e, t) => {
2234
+ He.init(e, t), vr.init(e, t), e.email = (r) => e.check(ya(vi, r)), e.url = (r) => e.check(ja(yi, r)), e.jwt = (r) => e.check(Da(Oi, r)), e.emoji = (r) => e.check(ka(xi, r)), e.guid = (r) => e.check(_t(wt, r)), e.uuid = (r) => e.check(xa(he, r)), e.uuidv4 = (r) => e.check(_a(he, r)), e.uuidv6 = (r) => e.check(ba(he, r)), e.uuidv7 = (r) => e.check(wa(he, r)), e.nanoid = (r) => e.check($a(_i, r)), e.guid = (r) => e.check(_t(wt, r)), e.cuid = (r) => e.check(za(bi, r)), e.cuid2 = (r) => e.check(Pa(wi, r)), e.ulid = (r) => e.check(Ea(ji, r)), e.base64 = (r) => e.check(Aa(Zi, r)), e.base64url = (r) => e.check(Ia(Ti, r)), e.xid = (r) => e.check(Sa(ki, r)), e.ksuid = (r) => e.check(Za($i, r)), e.ipv4 = (r) => e.check(Ta(zi, r)), e.ipv6 = (r) => e.check(Ca(Pi, r)), e.cidrv4 = (r) => e.check(Oa(Ei, r)), e.cidrv6 = (r) => e.check(Na(Si, r)), e.e164 = (r) => e.check(Ra(Ci, r)), e.datetime = (r) => e.check(oi(r)), e.date = (r) => e.check(ai(r)), e.time = (r) => e.check(ci(r)), e.duration = (r) => e.check(li(r));
2235
+ });
2236
+ function bt(e) {
2237
+ return va(gi, e);
2238
+ }
2239
+ const Z = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2240
+ E.init(e, t), vr.init(e, t);
2241
+ }), vi = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2242
+ Ss.init(e, t), Z.init(e, t);
2243
+ }), wt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2244
+ Ps.init(e, t), Z.init(e, t);
2245
+ }), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2246
+ Es.init(e, t), Z.init(e, t);
2247
+ }), yi = /* @__PURE__ */ c("ZodURL", (e, t) => {
2248
+ Zs.init(e, t), Z.init(e, t);
2249
+ }), xi = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2250
+ Ts.init(e, t), Z.init(e, t);
2251
+ }), _i = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2252
+ Cs.init(e, t), Z.init(e, t);
2253
+ }), bi = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2254
+ Os.init(e, t), Z.init(e, t);
2255
+ }), wi = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2256
+ Ns.init(e, t), Z.init(e, t);
2257
+ }), ji = /* @__PURE__ */ c("ZodULID", (e, t) => {
2258
+ As.init(e, t), Z.init(e, t);
2259
+ }), ki = /* @__PURE__ */ c("ZodXID", (e, t) => {
2260
+ Is.init(e, t), Z.init(e, t);
2261
+ }), $i = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2262
+ Rs.init(e, t), Z.init(e, t);
2263
+ }), zi = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2264
+ Us.init(e, t), Z.init(e, t);
2265
+ }), Pi = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2266
+ Ls.init(e, t), Z.init(e, t);
2267
+ }), Ei = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2268
+ Qs.init(e, t), Z.init(e, t);
2269
+ }), Si = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2270
+ Bs.init(e, t), Z.init(e, t);
2271
+ }), Zi = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2272
+ Hs.init(e, t), Z.init(e, t);
2273
+ }), Ti = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2274
+ Ws.init(e, t), Z.init(e, t);
2275
+ }), Ci = /* @__PURE__ */ c("ZodE164", (e, t) => {
2276
+ Vs.init(e, t), Z.init(e, t);
2277
+ }), Oi = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2278
+ Gs.init(e, t), Z.init(e, t);
2279
+ }), Ni = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2280
+ Js.init(e, t), O.init(e, t);
2281
+ });
2282
+ function jt() {
2283
+ return La(Ni);
2284
+ }
2285
+ const Ai = /* @__PURE__ */ c("ZodNever", (e, t) => {
2286
+ Xs.init(e, t), O.init(e, t);
2287
+ });
2288
+ function Ii(e) {
2289
+ return Qa(Ai, e);
2290
+ }
2291
+ const Ri = /* @__PURE__ */ c("ZodArray", (e, t) => {
2292
+ ea.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(mr(r, n)), e.length = (r, n) => e.check(gr(r, n)), e.unwrap = () => e.element;
2293
+ });
2294
+ function Di(e, t) {
2295
+ return ti(Ri, e, t);
2296
+ }
2297
+ const Mi = /* @__PURE__ */ c("ZodObject", (e, t) => {
2298
+ ta.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: jt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: jt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ii() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ao(e, r), e.merge = (r) => Io(e, r), e.pick = (r) => Oo(e, r), e.omit = (r) => No(e, r), e.partial = (...r) => Ro(xr, e, r[0]), e.required = (...r) => Do(_r, e, r[0]);
2299
+ });
2300
+ function Fi(e, t) {
2301
+ const r = {
2302
+ type: "object",
2303
+ get shape() {
2304
+ return Le(this, "shape", { ...e }), this.shape;
2305
+ },
2306
+ ..._(t)
2307
+ };
2308
+ return new Mi(r);
2309
+ }
2310
+ const qi = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2311
+ ra.init(e, t), O.init(e, t), e.options = t.options;
2312
+ });
2313
+ function Ui(e, t) {
2314
+ return new qi({
2315
+ type: "union",
2316
+ options: e,
2317
+ ..._(t)
2318
+ });
2319
+ }
2320
+ const Li = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2321
+ na.init(e, t), O.init(e, t);
2322
+ });
2323
+ function Qi(e, t) {
2324
+ return new Li({
2325
+ type: "intersection",
2326
+ left: e,
2327
+ right: t
2328
+ });
2329
+ }
2330
+ const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2331
+ oa.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2332
+ const r = new Set(Object.keys(t.entries));
2333
+ e.extract = (n, o) => {
2334
+ const a = {};
2335
+ for (const i of n)
2336
+ if (r.has(i))
2337
+ a[i] = t.entries[i];
2338
+ else
2339
+ throw new Error(`Key ${i} not found in enum`);
2340
+ return new Oe({
2341
+ ...t,
2342
+ checks: [],
2343
+ ..._(o),
2344
+ entries: a
2345
+ });
2346
+ }, e.exclude = (n, o) => {
2347
+ const a = { ...t.entries };
2348
+ for (const i of n)
2349
+ if (r.has(i))
2350
+ delete a[i];
2351
+ else
2352
+ throw new Error(`Key ${i} not found in enum`);
2353
+ return new Oe({
2354
+ ...t,
2355
+ checks: [],
2356
+ ..._(o),
2357
+ entries: a
2358
+ });
2359
+ };
2360
+ });
2361
+ function yr(e, t) {
2362
+ const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2363
+ return new Oe({
2364
+ type: "enum",
2365
+ entries: r,
2366
+ ..._(t)
2367
+ });
2368
+ }
2369
+ const Bi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2370
+ sa.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
2371
+ r.addIssue = (a) => {
2372
+ if (typeof a == "string")
2373
+ r.issues.push(ae(a, r.value, t));
2374
+ else {
2375
+ const i = a;
2376
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(ae(i));
2377
+ }
2378
+ };
2379
+ const o = t.transform(r.value, r);
2380
+ return o instanceof Promise ? o.then((a) => (r.value = a, r)) : (r.value = o, r);
2381
+ };
2382
+ });
2383
+ function Hi(e) {
2384
+ return new Bi({
2385
+ type: "transform",
2386
+ transform: e
2387
+ });
2388
+ }
2389
+ const xr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2390
+ aa.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2391
+ });
2392
+ function kt(e) {
2393
+ return new xr({
2394
+ type: "optional",
2395
+ innerType: e
2396
+ });
2397
+ }
2398
+ const Ki = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2399
+ ia.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2400
+ });
2401
+ function $t(e) {
2402
+ return new Ki({
2403
+ type: "nullable",
2404
+ innerType: e
2405
+ });
2406
+ }
2407
+ const Wi = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2408
+ ca.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2409
+ });
2410
+ function Vi(e, t) {
2411
+ return new Wi({
2412
+ type: "default",
2413
+ innerType: e,
2414
+ get defaultValue() {
2415
+ return typeof t == "function" ? t() : t;
2416
+ }
2417
+ });
2418
+ }
2419
+ const Yi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2420
+ ua.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2421
+ });
2422
+ function Gi(e, t) {
2423
+ return new Yi({
2424
+ type: "prefault",
2425
+ innerType: e,
2426
+ get defaultValue() {
2427
+ return typeof t == "function" ? t() : t;
2428
+ }
2429
+ });
2430
+ }
2431
+ const _r = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2432
+ la.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2433
+ });
2434
+ function Ji(e, t) {
2435
+ return new _r({
2436
+ type: "nonoptional",
2437
+ innerType: e,
2438
+ ..._(t)
2439
+ });
2440
+ }
2441
+ const Xi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2442
+ da.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2443
+ });
2444
+ function ec(e, t) {
2445
+ return new Xi({
2446
+ type: "catch",
2447
+ innerType: e,
2448
+ catchValue: typeof t == "function" ? t : () => t
2449
+ });
2450
+ }
2451
+ const tc = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2452
+ fa.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
2453
+ });
2454
+ function zt(e, t) {
2455
+ return new tc({
2456
+ type: "pipe",
2457
+ in: e,
2458
+ out: t
2459
+ // ...util.normalizeParams(params),
2460
+ });
2461
+ }
2462
+ const rc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2463
+ ha.init(e, t), O.init(e, t);
2464
+ });
2465
+ function nc(e) {
2466
+ return new rc({
2467
+ type: "readonly",
2468
+ innerType: e
2469
+ });
2470
+ }
2471
+ const oc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2472
+ pa.init(e, t), O.init(e, t);
2473
+ });
2474
+ function sc(e, t) {
2475
+ const r = new U({
2476
+ check: "custom",
2477
+ ..._(t)
2478
+ });
2479
+ return r._zod.check = e, r;
2480
+ }
2481
+ function ac(e, t = {}) {
2482
+ return ri(oc, e, t);
2483
+ }
2484
+ function ic(e, t) {
2485
+ const r = sc((n) => (n.addIssue = (o) => {
2486
+ if (typeof o == "string")
2487
+ n.issues.push(ae(o, n.value, r._zod.def));
2488
+ else {
2489
+ const a = o;
2490
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(ae(a));
2491
+ }
2492
+ }, e(n.value, n)), t);
2493
+ return r;
2494
+ }
2495
+ const cc = Fi({
2496
+ buildId: bt(),
2497
+ timestamp: bt(),
2498
+ status: yr(["in-progress", "success", "failed"])
2499
+ }), uc = ({
2500
+ buildId: e,
2501
+ endpoint: t = "/__zuplo/docs"
2502
+ }) => {
2503
+ const r = mn({
2504
+ queryKey: ["zuplo-build-check", e, t],
2505
+ refetchInterval: 3e3,
2506
+ enabled: typeof e < "u" && !1,
2507
+ retry: !1,
2508
+ queryFn: () => fetch(t, { signal: AbortSignal.timeout(2e3) }).then((o) => {
2509
+ if (!o.ok) throw new Error("Failed to fetch build status");
2510
+ return o.json();
2511
+ }).then((o) => cc.parse(o))
2512
+ });
2513
+ if (r.isError || !r.data || r.data.buildId === e)
2514
+ return null;
2515
+ const n = r.data.status === "success";
2516
+ return /* @__PURE__ */ s.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: [
2517
+ n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2518
+ /* @__PURE__ */ s.jsx(qn, { size: 16 }),
2519
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
2520
+ ] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2521
+ /* @__PURE__ */ s.jsx(Un, { size: 16, className: "animate-spin" }),
2522
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
2523
+ ] }),
2524
+ /* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2525
+ /* @__PURE__ */ s.jsx(
2526
+ Wt,
2527
+ {
2528
+ variant: "outline",
2529
+ size: "sm",
2530
+ className: "w-full",
2531
+ onClick: () => {
2532
+ window.location.reload();
2533
+ },
2534
+ children: "Reload"
2535
+ }
2536
+ )
2537
+ ] });
2538
+ }, lc = () => {
2539
+ const e = xe(), t = K(e.pathname);
2540
+ F(() => {
2541
+ const r = t.current !== e.pathname, n = e.hash !== "";
2542
+ r && !n && window.scrollTo(0, 0), t.current = e.pathname;
2543
+ }, [e.pathname, e.hash]);
2544
+ }, dc = ({
2545
+ icon: e
2546
+ }) => typeof e == "string" ? /* @__PURE__ */ s.jsx(
2547
+ "img",
2548
+ {
2549
+ src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
2550
+ className: "size-5",
2551
+ alt: e
2552
+ }
2553
+ ) : e, fc = (e) => /^https?:/.test(e), hc = () => {
2554
+ const { site: e } = tu(), t = e?.footer;
2555
+ return t ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2556
+ /* @__PURE__ */ s.jsxs(
2557
+ "div",
2558
+ {
2559
+ className: N("flex flex-row gap-8", {
2560
+ "justify-center": !t.position || t.position === "center",
2561
+ "justify-start": t.position === "start",
2562
+ "justify-end": t.position === "end"
2563
+ }),
2564
+ children: [
2565
+ /* @__PURE__ */ s.jsx(A.Target, { name: "footer-before" }),
2566
+ t.columns && /* @__PURE__ */ s.jsx(
2567
+ "div",
2568
+ {
2569
+ className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
2570
+ style: { "--columns": t.columns.length },
2571
+ children: t.columns.map((r) => /* @__PURE__ */ s.jsxs(
2572
+ "div",
2573
+ {
2574
+ className: N({
2575
+ "justify-self-center": !r.position || r.position === "center",
2576
+ "justify-self-start": r.position === "start",
2577
+ "justify-self-end": r.position === "end"
2578
+ }),
2579
+ children: [
2580
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: r.title }),
2581
+ /* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: r.links.map((n) => {
2582
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2583
+ return /* @__PURE__ */ s.jsx("li", { children: fc(n.href) ? /* @__PURE__ */ s.jsxs(
2584
+ "a",
2585
+ {
2586
+ href: n.href,
2587
+ target: "_blank",
2588
+ rel: "noopener noreferrer",
2589
+ className: o,
2590
+ children: [
2591
+ /* @__PURE__ */ s.jsx("span", { children: n.label }),
2592
+ /* @__PURE__ */ s.jsx(Ln, { size: 12 })
2593
+ ]
2594
+ }
2595
+ ) : /* @__PURE__ */ s.jsx(kn, { to: n.href, className: o, children: /* @__PURE__ */ s.jsx("span", { children: n.label }) }) }, n.href + n.label);
2596
+ }) })
2597
+ ]
2598
+ },
2599
+ r.title
2600
+ ))
2601
+ }
2602
+ ),
2603
+ /* @__PURE__ */ s.jsx(A.Target, { name: "footer-after" })
2604
+ ]
2605
+ }
2606
+ ),
2607
+ /* @__PURE__ */ s.jsxs(
2608
+ "div",
2609
+ {
2610
+ className: N(
2611
+ "flex items-center justify-between",
2612
+ t.columns && "border-t mt-8 pt-8"
2613
+ ),
2614
+ children: [
2615
+ t.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2616
+ /* @__PURE__ */ s.jsx(
2617
+ "img",
2618
+ {
2619
+ src: t.logo.src.light,
2620
+ alt: t.logo.alt,
2621
+ className: "w-8 dark:hidden",
2622
+ style: { width: t.logo.width }
2623
+ }
2624
+ ),
2625
+ /* @__PURE__ */ s.jsx(
2626
+ "img",
2627
+ {
2628
+ src: t.logo.src.dark,
2629
+ alt: t.logo.alt,
2630
+ className: "w-8 hidden dark:block",
2631
+ style: { width: t.logo.width }
2632
+ }
2633
+ )
2634
+ ] }),
2635
+ t.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
2636
+ /* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((r) => /* @__PURE__ */ s.jsxs(
2637
+ "a",
2638
+ {
2639
+ href: r.href,
2640
+ target: "_blank",
2641
+ rel: "noopener noreferrer",
2642
+ className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2643
+ children: [
2644
+ /* @__PURE__ */ s.jsx(dc, { icon: r.icon }),
2645
+ r.label
2646
+ ]
2647
+ },
2648
+ r.href
2649
+ )) })
2650
+ ]
2651
+ }
2652
+ )
2653
+ ] }) }) : null;
2654
+ };
2655
+ function Ne({
2656
+ className: e,
2657
+ ...t
2658
+ }) {
2659
+ return /* @__PURE__ */ s.jsx(
2660
+ "div",
2661
+ {
2662
+ className: N("animate-pulse rounded-md bg-muted", e),
2663
+ ...t
2664
+ }
2665
+ );
2666
+ }
2667
+ const Pt = {
2668
+ info: "bg-blue-500",
2669
+ note: "bg-gray-500",
2670
+ tip: "bg-green-600",
2671
+ caution: "bg-orange-500",
2672
+ danger: "bg-rose-500"
2673
+ }, pc = () => {
2674
+ const { site: e } = M(), [t, r] = G(!0);
2675
+ if (!e?.banner || !t)
2676
+ return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
2677
+ const n = e.banner.color && e.banner.color in Pt ? Pt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
2678
+ return /* @__PURE__ */ s.jsxs(
2679
+ "div",
2680
+ {
2681
+ className: N(
2682
+ "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
2683
+ n
2684
+ ),
2685
+ style: o,
2686
+ children: [
2687
+ /* @__PURE__ */ s.jsx("div", { className: "w-full", children: e.banner.message }),
2688
+ e.banner.dismissible && /* @__PURE__ */ s.jsx(
2689
+ "button",
2690
+ {
2691
+ type: "button",
2692
+ className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
2693
+ onClick: () => r(!1),
2694
+ children: /* @__PURE__ */ s.jsx(Qn, { size: 16 })
2695
+ }
2696
+ )
2697
+ ]
2698
+ }
2699
+ );
2700
+ }, br = (e) => /* @__PURE__ */ s.jsxs(
2701
+ "svg",
2702
+ {
2703
+ xmlns: "http://www.w3.org/2000/svg",
2704
+ viewBox: "0 0 132 100",
2705
+ fill: "none",
2706
+ ...e,
2707
+ children: [
2708
+ /* @__PURE__ */ s.jsx(
2709
+ "path",
2710
+ {
2711
+ fill: "currentColor",
2712
+ fillRule: "evenodd",
2713
+ d: "M80.092 2.963A4.66 4.66 0 0 1 84.449 0h34.049c6.325 0 10.835 6.135 8.948 12.172L116.653 46.71a4.688 4.688 0 0 1-4.474 3.29H75c-5.178 0-7.813 4.687-9.375 9.374-1.288 3.864-11.07 28.963-14.467 37.662A4.66 4.66 0 0 1 46.801 100H12.75c-6.324 0-10.834-6.134-8.947-12.171l10.793-34.54A4.688 4.688 0 0 1 19.071 50H56.25c5.178 0 7.813-4.687 9.375-9.375 1.288-3.864 11.07-28.962 14.467-37.662Z",
2714
+ clipRule: "evenodd"
2715
+ }
2716
+ ),
2717
+ /* @__PURE__ */ s.jsx(
2718
+ "path",
2719
+ {
2720
+ fill: "currentColor",
2721
+ d: "M83.54 57.813a7.813 7.813 0 0 0-7.316 5.07L63.888 95.777c-.766 2.043.744 4.222 2.926 4.222h36.828c5.211 0 9.875-3.232 11.704-8.11l8.821-23.522c1.915-5.107-1.861-10.555-7.315-10.555H83.539ZM29.17 0a12.5 12.5 0 0 0-11.704 8.111l-8.82 23.521c-1.915 5.107 1.86 10.556 7.315 10.556h33.312a7.813 7.813 0 0 0 7.316-5.07L68.924 4.223C69.691 2.18 68.18 0 65.998 0H29.17Z"
2722
+ }
2723
+ )
2724
+ ]
2725
+ }
2726
+ );
2727
+ br.displayName = "ZudokuLogo";
2728
+ const wr = ({ className: e }) => /* @__PURE__ */ s.jsxs(
2729
+ "a",
2730
+ {
2731
+ href: "https://zudoku.dev",
2732
+ target: "_blank",
2733
+ rel: "noopener noreferrer",
2734
+ className: N(
2735
+ "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
2736
+ e
2737
+ ),
2738
+ children: [
2739
+ /* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
2740
+ /* @__PURE__ */ s.jsx(br, { className: "w-3.5 h-3.5 dark:fill-white" }),
2741
+ "powered by ",
2742
+ "Zudoku"
2743
+ ] }),
2744
+ /* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(
2745
+ Bn,
2746
+ {
2747
+ size: 12,
2748
+ absoluteStrokeWidth: !0,
2749
+ strokeWidth: 1.5,
2750
+ className: "rtl:rotate-180"
2751
+ }
2752
+ ) })
2753
+ ]
2754
+ }
2755
+ );
2756
+ function ye() {
2757
+ return ye = Object.assign ? Object.assign.bind() : function(e) {
2758
+ for (var t = 1; t < arguments.length; t++) {
2759
+ var r = arguments[t];
2760
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
2761
+ }
2762
+ return e;
2763
+ }, ye.apply(null, arguments);
2764
+ }
2765
+ var pe = { exports: {} }, k = {};
2766
+ /** @license React v16.13.1
2767
+ * react-is.production.min.js
2768
+ *
2769
+ * Copyright (c) Facebook, Inc. and its affiliates.
2770
+ *
2771
+ * This source code is licensed under the MIT license found in the
2772
+ * LICENSE file in the root directory of this source tree.
2773
+ */
2774
+ var Et;
2775
+ function mc() {
2776
+ if (Et) return k;
2777
+ Et = 1;
2778
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2779
+ function x(d) {
2780
+ if (typeof d == "object" && d !== null) {
2781
+ var z = d.$$typeof;
2782
+ switch (z) {
2783
+ case t:
2784
+ switch (d = d.type, d) {
2785
+ case h:
2786
+ case f:
2787
+ case n:
2788
+ case a:
2789
+ case o:
2790
+ case p:
2791
+ return d;
2792
+ default:
2793
+ switch (d = d && d.$$typeof, d) {
2794
+ case u:
2795
+ case y:
2796
+ case g:
2797
+ case l:
2798
+ case i:
2799
+ return d;
2800
+ default:
2801
+ return z;
2802
+ }
2803
+ }
2804
+ case r:
2805
+ return z;
2806
+ }
2807
+ }
2808
+ }
2809
+ function b(d) {
2810
+ return x(d) === f;
2811
+ }
2812
+ return k.AsyncMode = h, k.ConcurrentMode = f, k.ContextConsumer = u, k.ContextProvider = i, k.Element = t, k.ForwardRef = y, k.Fragment = n, k.Lazy = g, k.Memo = l, k.Portal = r, k.Profiler = a, k.StrictMode = o, k.Suspense = p, k.isAsyncMode = function(d) {
2813
+ return b(d) || x(d) === h;
2814
+ }, k.isConcurrentMode = b, k.isContextConsumer = function(d) {
2815
+ return x(d) === u;
2816
+ }, k.isContextProvider = function(d) {
2817
+ return x(d) === i;
2818
+ }, k.isElement = function(d) {
2819
+ return typeof d == "object" && d !== null && d.$$typeof === t;
2820
+ }, k.isForwardRef = function(d) {
2821
+ return x(d) === y;
2822
+ }, k.isFragment = function(d) {
2823
+ return x(d) === n;
2824
+ }, k.isLazy = function(d) {
2825
+ return x(d) === g;
2826
+ }, k.isMemo = function(d) {
2827
+ return x(d) === l;
2828
+ }, k.isPortal = function(d) {
2829
+ return x(d) === r;
2830
+ }, k.isProfiler = function(d) {
2831
+ return x(d) === a;
2832
+ }, k.isStrictMode = function(d) {
2833
+ return x(d) === o;
2834
+ }, k.isSuspense = function(d) {
2835
+ return x(d) === p;
2836
+ }, k.isValidElementType = function(d) {
2837
+ return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === p || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === y || d.$$typeof === P || d.$$typeof === T || d.$$typeof === j || d.$$typeof === w);
2838
+ }, k.typeOf = x, k;
2839
+ }
2840
+ var $ = {};
2841
+ /** @license React v16.13.1
2842
+ * react-is.development.js
2843
+ *
2844
+ * Copyright (c) Facebook, Inc. and its affiliates.
2845
+ *
2846
+ * This source code is licensed under the MIT license found in the
2847
+ * LICENSE file in the root directory of this source tree.
2848
+ */
2849
+ var St;
2850
+ function gc() {
2851
+ return St || (St = 1, process.env.NODE_ENV !== "production" && function() {
2852
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2853
+ function x(v) {
2854
+ return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2855
+ v === n || v === f || v === a || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === y || v.$$typeof === P || v.$$typeof === T || v.$$typeof === j || v.$$typeof === w);
2856
+ }
2857
+ function b(v) {
2858
+ if (typeof v == "object" && v !== null) {
2859
+ var ke = v.$$typeof;
2860
+ switch (ke) {
2861
+ case t:
2862
+ var ce = v.type;
2863
+ switch (ce) {
2864
+ case h:
2865
+ case f:
2866
+ case n:
2867
+ case a:
2868
+ case o:
2869
+ case p:
2870
+ return ce;
2871
+ default:
2872
+ var Ve = ce && ce.$$typeof;
2873
+ switch (Ve) {
2874
+ case u:
2875
+ case y:
2876
+ case g:
2877
+ case l:
2878
+ case i:
2879
+ return Ve;
2880
+ default:
2881
+ return ke;
2882
+ }
2883
+ }
2884
+ case r:
2885
+ return ke;
2886
+ }
2887
+ }
2888
+ }
2889
+ var d = h, z = f, I = u, D = i, X = t, B = y, je = n, W = g, Rr = l, Dr = r, Mr = a, Fr = o, qr = p, Ke = !1;
2890
+ function Ur(v) {
2891
+ return Ke || (Ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), We(v) || b(v) === h;
2892
+ }
2893
+ function We(v) {
2894
+ return b(v) === f;
2895
+ }
2896
+ function Lr(v) {
2897
+ return b(v) === u;
2898
+ }
2899
+ function Qr(v) {
2900
+ return b(v) === i;
2901
+ }
2902
+ function Br(v) {
2903
+ return typeof v == "object" && v !== null && v.$$typeof === t;
2904
+ }
2905
+ function Hr(v) {
2906
+ return b(v) === y;
2907
+ }
2908
+ function Kr(v) {
2909
+ return b(v) === n;
2910
+ }
2911
+ function Wr(v) {
2912
+ return b(v) === g;
2913
+ }
2914
+ function Vr(v) {
2915
+ return b(v) === l;
2916
+ }
2917
+ function Yr(v) {
2918
+ return b(v) === r;
2919
+ }
2920
+ function Gr(v) {
2921
+ return b(v) === a;
2922
+ }
2923
+ function Jr(v) {
2924
+ return b(v) === o;
2925
+ }
2926
+ function Xr(v) {
2927
+ return b(v) === p;
2928
+ }
2929
+ $.AsyncMode = d, $.ConcurrentMode = z, $.ContextConsumer = I, $.ContextProvider = D, $.Element = X, $.ForwardRef = B, $.Fragment = je, $.Lazy = W, $.Memo = Rr, $.Portal = Dr, $.Profiler = Mr, $.StrictMode = Fr, $.Suspense = qr, $.isAsyncMode = Ur, $.isConcurrentMode = We, $.isContextConsumer = Lr, $.isContextProvider = Qr, $.isElement = Br, $.isForwardRef = Hr, $.isFragment = Kr, $.isLazy = Wr, $.isMemo = Vr, $.isPortal = Yr, $.isProfiler = Gr, $.isStrictMode = Jr, $.isSuspense = Xr, $.isValidElementType = x, $.typeOf = b;
2930
+ }()), $;
2931
+ }
2932
+ var Zt;
2933
+ function vc() {
2934
+ return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? pe.exports = mc() : pe.exports = gc()), pe.exports;
2935
+ }
2936
+ var Pe, Tt;
2937
+ function yc() {
2938
+ if (Tt) return Pe;
2939
+ Tt = 1;
2940
+ var e = vc(), t = {
2941
+ childContextTypes: !0,
2942
+ contextType: !0,
2943
+ contextTypes: !0,
2944
+ defaultProps: !0,
2945
+ displayName: !0,
2946
+ getDefaultProps: !0,
2947
+ getDerivedStateFromError: !0,
2948
+ getDerivedStateFromProps: !0,
2949
+ mixins: !0,
2950
+ propTypes: !0,
2951
+ type: !0
2952
+ }, r = {
2953
+ name: !0,
2954
+ length: !0,
2955
+ prototype: !0,
2956
+ caller: !0,
2957
+ callee: !0,
2958
+ arguments: !0,
2959
+ arity: !0
2960
+ }, n = {
2961
+ $$typeof: !0,
2962
+ render: !0,
2963
+ defaultProps: !0,
2964
+ displayName: !0,
2965
+ propTypes: !0
2966
+ }, o = {
2967
+ $$typeof: !0,
2968
+ compare: !0,
2969
+ defaultProps: !0,
2970
+ displayName: !0,
2971
+ propTypes: !0,
2972
+ type: !0
2973
+ }, a = {};
2974
+ a[e.ForwardRef] = n, a[e.Memo] = o;
2975
+ function i(g) {
2976
+ return e.isMemo(g) ? o : a[g.$$typeof] || t;
2977
+ }
2978
+ var u = Object.defineProperty, h = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, y = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype;
2979
+ function l(g, w, P) {
2980
+ if (typeof w != "string") {
2981
+ if (m) {
2982
+ var T = p(w);
2983
+ T && T !== m && l(g, T, P);
2984
+ }
2985
+ var j = h(w);
2986
+ f && (j = j.concat(f(w)));
2987
+ for (var x = i(g), b = i(w), d = 0; d < j.length; ++d) {
2988
+ var z = j[d];
2989
+ if (!r[z] && !(P && P[z]) && !(b && b[z]) && !(x && x[z])) {
2990
+ var I = y(w, z);
2991
+ try {
2992
+ u(g, z, I);
2993
+ } catch {
2994
+ }
2995
+ }
2996
+ }
2997
+ }
2998
+ return g;
2999
+ }
3000
+ return Pe = l, Pe;
3001
+ }
3002
+ yc();
3003
+ var jr = function(t, r, n) {
3004
+ return t = t <= n ? t : n, t = t >= r ? t : r, t;
3005
+ }, xc = function() {
3006
+ var t = !1, r = [], n = function() {
3007
+ t = !0;
3008
+ var u = r.shift();
3009
+ if (u)
3010
+ return u(n);
3011
+ t = !1;
3012
+ }, o = function() {
3013
+ t = !1, r = [];
3014
+ }, a = function(u) {
3015
+ r.push(u), !t && r.length === 1 && n();
3016
+ };
3017
+ return {
3018
+ clear: o,
3019
+ enqueue: a
3020
+ };
3021
+ }, _c = function() {
3022
+ var t, r = function() {
3023
+ t && window.cancelAnimationFrame(t);
3024
+ }, n = function(a, i) {
3025
+ var u, h, f = function(p) {
3026
+ if (h = h || p, u = p - h, u > i) {
3027
+ a();
3028
+ return;
3029
+ }
3030
+ t = window.requestAnimationFrame(f);
3031
+ };
3032
+ t = window.requestAnimationFrame(f);
3033
+ };
3034
+ return {
3035
+ cancel: r,
3036
+ schedule: n
3037
+ };
3038
+ }, bc = function(t) {
3039
+ var r = 0;
3040
+ return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), jr(t + r, 0, 0.994);
3041
+ }, Ct = function(t) {
3042
+ F(t, []);
3043
+ }, wc = function(t) {
3044
+ return ++t % 1e6;
3045
+ }, jc = function() {
3046
+ var t = G(0), r = t[1];
3047
+ return H(function() {
3048
+ return r(wc);
3049
+ }, []);
3050
+ }, kc = function(t) {
3051
+ t === void 0 && (t = {});
3052
+ var r = jc(), n = K(ye({}, t)), o = H(function() {
3053
+ return n.current;
3054
+ }, []), a = H(function(i) {
3055
+ i && (Object.assign(n.current, i), r());
3056
+ }, []);
3057
+ return [o, a];
3058
+ }, $c = function() {
3059
+ var t = K(!0);
3060
+ return t.current ? (t.current = !1, !0) : t.current;
3061
+ }, Ot = function(t, r) {
3062
+ var n = $c();
3063
+ F(function() {
3064
+ if (!n)
3065
+ return t();
3066
+ }, r);
3067
+ }, kr = function() {
3068
+ }, Nt = {
3069
+ isFinished: !0,
3070
+ progress: 0,
3071
+ sideEffect: kr
3072
+ }, zc = function(t) {
3073
+ var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, h = u === void 0 ? !1 : u, f = r.minimum, y = f === void 0 ? 0.08 : f, p = kc(Nt), m = p[0], l = p[1], g = K(null), w = K(null);
3074
+ Ct(function() {
3075
+ g.current = xc(), w.current = _c();
3076
+ });
3077
+ var P = H(function() {
3078
+ var z, I;
3079
+ (z = w.current) == null || z.cancel(), (I = g.current) == null || I.clear();
3080
+ }, []), T = H(function(z) {
3081
+ var I;
3082
+ if (z = jr(z, y, 1), z === 1) {
3083
+ var D, X;
3084
+ P(), (D = g.current) == null || D.enqueue(function(B) {
3085
+ l({
3086
+ progress: z,
3087
+ sideEffect: function() {
3088
+ var W;
3089
+ return (W = w.current) == null ? void 0 : W.schedule(B, o);
3090
+ }
3091
+ });
3092
+ }), (X = g.current) == null || X.enqueue(function() {
3093
+ l({
3094
+ isFinished: !0,
3095
+ sideEffect: P
3096
+ });
3097
+ });
3098
+ return;
3099
+ }
3100
+ (I = g.current) == null || I.enqueue(function(B) {
3101
+ l({
3102
+ isFinished: !1,
3103
+ progress: z,
3104
+ sideEffect: function() {
3105
+ var W;
3106
+ return (W = w.current) == null ? void 0 : W.schedule(B, o);
3107
+ }
3108
+ });
3109
+ });
3110
+ }, [o, P, y, g, l, w]), j = H(function() {
3111
+ T(bc(m().progress));
3112
+ }, [m, T]), x = H(function() {
3113
+ var z = function() {
3114
+ var D;
3115
+ j(), (D = g.current) == null || D.enqueue(function(X) {
3116
+ var B;
3117
+ (B = w.current) == null || B.schedule(function() {
3118
+ z(), X();
3119
+ }, i);
3120
+ });
3121
+ };
3122
+ z();
3123
+ }, [i, g, w, j]), b = K(kr), d = m().sideEffect;
3124
+ return F(function() {
3125
+ b.current = j;
3126
+ }), Ct(function() {
3127
+ return h && x(), P;
3128
+ }), Ot(function() {
3129
+ m().sideEffect();
3130
+ }, [m, d]), Ot(function() {
3131
+ h ? l(ye({}, Nt, {
3132
+ sideEffect: x
3133
+ })) : T(1);
3134
+ }, [h, T, l, x]), {
3135
+ animationDuration: o,
3136
+ isFinished: m().isFinished,
3137
+ progress: m().progress
3138
+ };
3139
+ };
3140
+ const $r = () => {
3141
+ const t = Re().state === "loading", [r, n] = G(!1);
3142
+ F(() => {
3143
+ const i = setTimeout(() => n(t), 200);
3144
+ return () => clearTimeout(i);
3145
+ }, [t]);
3146
+ const { isFinished: o, progress: a } = zc({ isAnimating: r });
3147
+ return /* @__PURE__ */ s.jsx(
3148
+ "div",
3149
+ {
3150
+ className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
3151
+ style: {
3152
+ opacity: o ? 0 : 1,
3153
+ width: o ? 0 : `${a * 100}%`
3154
+ }
3155
+ }
3156
+ );
3157
+ };
3158
+ function Pc() {
3159
+ const e = navigator.userAgent.toLowerCase();
3160
+ if (e.includes("win")) return "Windows";
3161
+ if (e.includes("mac")) return "macOS";
3162
+ if (e.includes("linux")) return "Linux";
3163
+ }
3164
+ const zr = ({ className: e }) => {
3165
+ const t = M(), [r, n] = G(!1), o = H(() => n(!1), []);
3166
+ F(() => {
3167
+ if (r)
3168
+ return;
3169
+ function i(u) {
3170
+ u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
3171
+ }
3172
+ return window.addEventListener("keydown", i), () => {
3173
+ window.removeEventListener("keydown", i);
3174
+ };
3175
+ }, [r, n]);
3176
+ const a = t.plugins.find(Gn);
3177
+ return a ? /* @__PURE__ */ s.jsxs("div", { className: e, children: [
3178
+ /* @__PURE__ */ s.jsxs(
3179
+ "button",
3180
+ {
3181
+ type: "button",
3182
+ onClick: () => n(!0),
3183
+ className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
3184
+ children: [
3185
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 grow", children: [
3186
+ /* @__PURE__ */ s.jsx(Hn, { size: 14 }),
3187
+ "Search"
3188
+ ] }),
3189
+ /* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Ec, {}) })
3190
+ ]
3191
+ }
3192
+ ),
3193
+ /* @__PURE__ */ s.jsx(Fe, { fallback: null, children: a.renderSearch({
3194
+ isOpen: r,
3195
+ onClose: o
3196
+ }) })
3197
+ ] }) : null;
3198
+ }, Ec = () => {
3199
+ const e = Pc();
3200
+ return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
3201
+ e === "macOS" ? "⌘" : "Ctrl",
3202
+ "+K"
3203
+ ] });
3204
+ }, Pr = () => {
3205
+ const { resolvedTheme: e, setTheme: t } = Dt();
3206
+ return /* @__PURE__ */ s.jsx(te, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
3207
+ "button",
3208
+ {
3209
+ type: "button",
3210
+ className: "flex rounded-full border p-0.5 gap-0.5 group",
3211
+ onClick: () => t(e === "dark" ? "light" : "dark"),
3212
+ "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
3213
+ children: [
3214
+ /* @__PURE__ */ s.jsx(
3215
+ "div",
3216
+ {
3217
+ className: N(
3218
+ "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
3219
+ e === "light" && "border-border bg-muted",
3220
+ e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
3221
+ ),
3222
+ children: /* @__PURE__ */ s.jsx(Kn, { size: 16 })
3223
+ }
3224
+ ),
3225
+ /* @__PURE__ */ s.jsx(
3226
+ "div",
3227
+ {
3228
+ className: N(
3229
+ "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
3230
+ e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
3231
+ e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
3232
+ ),
3233
+ children: /* @__PURE__ */ s.jsx(Wn, { size: 16 })
3234
+ }
3235
+ )
3236
+ ]
3237
+ }
3238
+ ) });
3239
+ }, Sc = () => {
3240
+ const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Qt(t));
3241
+ return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
3242
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Sr, { ...n }) }, n.label + n.type)) }) }),
3243
+ /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" })
3244
+ ] }) });
3245
+ }, Er = (e) => {
3246
+ switch (e.type) {
3247
+ case "doc":
3248
+ return ee(e.path);
3249
+ case "link":
3250
+ return e.to;
3251
+ case "category":
3252
+ return e.link?.path ? ee(e.link.path) : gn(e, (t) => {
3253
+ if (t.type !== "category")
3254
+ return Er(t);
3255
+ }) ?? "";
3256
+ case "custom-page":
3257
+ return e.path;
3258
+ }
3259
+ }, Ae = ({
3260
+ isActive: e,
3261
+ children: t,
3262
+ ...r
3263
+ }) => /* @__PURE__ */ s.jsx(
3264
+ an,
3265
+ {
3266
+ viewTransition: !0,
3267
+ className: ({ isActive: n, isPending: o }) => {
3268
+ const a = n || e;
3269
+ return go(
3270
+ "flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
3271
+ a || o ? [
3272
+ "text-foreground",
3273
+ // underline with view transition animation
3274
+ "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
3275
+ "after:h-0.5 after:bg-primary",
3276
+ a && "after:[view-transition-name:top-nav-underline]",
3277
+ o && "after:bg-primary/25"
3278
+ ] : "text-foreground/75 hover:text-foreground"
3279
+ );
3280
+ },
3281
+ ...r,
3282
+ children: t
3283
+ }
3284
+ ), Sr = (e) => {
3285
+ const t = Bt(), r = $n(t.topNavItem, e), n = Er(e);
3286
+ return (
3287
+ // We don't use isActive here because it has to be inside the navigation,
3288
+ // the top nav id doesn't necessarily start with the navigation id
3289
+ /* @__PURE__ */ s.jsxs(Ae, { to: n, isActive: r, children: [
3290
+ e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3291
+ e.label
3292
+ ] })
3293
+ );
3294
+ }, Zc = () => {
3295
+ const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u, h] = G(!1), f = r(), y = e.filter(Qt(n));
3296
+ return /* @__PURE__ */ s.jsxs(
3297
+ po,
3298
+ {
3299
+ direction: t.site?.dir === "rtl" ? "left" : "right",
3300
+ open: u,
3301
+ onOpenChange: (p) => h(p),
3302
+ children: [
3303
+ /* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
3304
+ /* @__PURE__ */ s.jsx(mo, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Vn, { size: 22 }) }),
3305
+ /* @__PURE__ */ s.jsx($r, {})
3306
+ ] }),
3307
+ /* @__PURE__ */ s.jsx(
3308
+ er,
3309
+ {
3310
+ className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
3311
+ "aria-describedby": void 0,
3312
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
3313
+ /* @__PURE__ */ s.jsxs("div", { children: [
3314
+ /* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
3315
+ /* @__PURE__ */ s.jsx(zr, { className: "flex p-4" }),
3316
+ /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
3317
+ /* @__PURE__ */ s.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" }) }),
3318
+ a && /* @__PURE__ */ s.jsx(
3319
+ te,
3320
+ {
3321
+ fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3322
+ children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(Rn, { children: /* @__PURE__ */ s.jsxs("li", { children: [
3323
+ o?.name ? `${o.name}` : "My Account",
3324
+ o?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
3325
+ ] }) }) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
3326
+ Ae,
3327
+ {
3328
+ to: "/signin",
3329
+ onClick: () => h(!1),
3330
+ children: "Login"
3331
+ }
3332
+ ) })
3333
+ }
3334
+ ),
3335
+ y.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => h(!1), children: /* @__PURE__ */ s.jsx(Sr, { ...p }) }) }, p.label)),
3336
+ a && n && f.length > 0 && /* @__PURE__ */ s.jsx(
3337
+ te,
3338
+ {
3339
+ fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3340
+ children: f.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
3341
+ Ae,
3342
+ {
3343
+ to: p.path ?? "",
3344
+ onClick: () => h(!1),
3345
+ children: p.label
3346
+ }
3347
+ ) }, p.label))
3348
+ }
3349
+ ),
3350
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Pr, {}) })
3351
+ ] })
3352
+ ] }),
3353
+ t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, { className: "grow-0 justify-center gap-1" })
3354
+ ] })
3355
+ }
3356
+ )
3357
+ ]
3358
+ }
3359
+ );
3360
+ }, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(co, { children: [
3361
+ /* @__PURE__ */ s.jsx(uo, { children: e.label }),
3362
+ /* @__PURE__ */ s.jsx(lo, { children: /* @__PURE__ */ s.jsx(fo, { children: e.children.map((t, r) => (
3363
+ // eslint-disable-next-line react/no-array-index-key
3364
+ /* @__PURE__ */ s.jsx(ge, { item: t }, r)
3365
+ )) }) })
3366
+ ] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(ho, { className: "flex gap-2", children: [
3367
+ e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
3368
+ e.label
3369
+ ] }, e.label) }), Zr = Yt(function() {
3370
+ const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options: h } = a, f = u.filter((l) => Jt(l)).flatMap((l) => l.getProfileMenuItems(a)).sort((l) => l.weight ?? 0), y = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(h.basePath, i.logo.src.light) : void 0, p = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(h.basePath, i.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
3371
+ return /* @__PURE__ */ s.jsxs(
3372
+ "header",
3373
+ {
3374
+ className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full",
3375
+ "data-pagefind-ignore": "all",
3376
+ children: [
3377
+ /* @__PURE__ */ s.jsx(pc, {}),
3378
+ /* @__PURE__ */ s.jsxs("div", { className: N(m, "relative"), children: [
3379
+ /* @__PURE__ */ s.jsx($r, {}),
3380
+ /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
3381
+ /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(De, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
3382
+ i?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3383
+ /* @__PURE__ */ s.jsx(
3384
+ "img",
3385
+ {
3386
+ src: y,
3387
+ alt: i.logo.alt ?? i.title,
3388
+ style: { width: i.logo.width },
3389
+ className: "max-h-(--top-header-height) dark:hidden",
3390
+ loading: "lazy"
3391
+ }
3392
+ ),
3393
+ /* @__PURE__ */ s.jsx(
3394
+ "img",
3395
+ {
3396
+ src: p,
3397
+ alt: i.logo.alt ?? i.title,
3398
+ style: { width: i.logo.width },
3399
+ className: "max-h-(--top-header-height) hidden dark:block",
3400
+ loading: "lazy"
3401
+ }
3402
+ )
3403
+ ] }),
3404
+ /* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
3405
+ ] }) }) }),
3406
+ /* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(zr, { className: "pointer-events-auto" }) }),
3407
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
3408
+ /* @__PURE__ */ s.jsx(Zc, {}),
3409
+ /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3410
+ /* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-start" }),
3411
+ o && /* @__PURE__ */ s.jsx(
3412
+ te,
3413
+ {
3414
+ fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
3415
+ children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(oo, { modal: !1, children: [
3416
+ /* @__PURE__ */ s.jsx(so, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
3417
+ /* @__PURE__ */ s.jsxs(ao, { className: "w-56", children: [
3418
+ /* @__PURE__ */ s.jsxs(io, { children: [
3419
+ n?.name ? `${n.name}` : "My Account",
3420
+ n?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
3421
+ ] }),
3422
+ f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
3423
+ f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
3424
+ f.filter(
3425
+ (l) => !l.category || l.category === "middle"
3426
+ ).length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
3427
+ f.filter(
3428
+ (l) => !l.category || l.category === "middle"
3429
+ ).map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
3430
+ f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
3431
+ f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label))
3432
+ ] })
3433
+ ] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => t.login(), children: "Login" })
3434
+ }
3435
+ ),
3436
+ /* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-end" }),
3437
+ /* @__PURE__ */ s.jsx(Pr, {})
3438
+ ] })
3439
+ ] })
3440
+ ] })
3441
+ ] }),
3442
+ /* @__PURE__ */ s.jsx("div", { className: N("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
3443
+ /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-before" }),
3444
+ /* @__PURE__ */ s.jsx(Sc, {}),
3445
+ /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-after" })
3446
+ ] }) })
3447
+ ]
3448
+ }
3449
+ );
3450
+ }), Tr = ({
3451
+ shouldScaleBackground: e = !0,
3452
+ ...t
3453
+ }) => /* @__PURE__ */ s.jsx(
3454
+ q.Root,
3455
+ {
3456
+ shouldScaleBackground: e,
3457
+ ...t
3458
+ }
3459
+ );
3460
+ Tr.displayName = "Drawer";
3461
+ const Tc = q.Trigger, Cc = q.Portal, Cr = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3462
+ q.Overlay,
3463
+ {
3464
+ ref: r,
3465
+ className: N("fixed inset-0 z-50 bg-black/80", e),
3466
+ ...t
3467
+ }
3468
+ ));
3469
+ Cr.displayName = q.Overlay.displayName;
3470
+ const Oc = Q.forwardRef(
3471
+ ({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(Cc, { children: [
3472
+ /* @__PURE__ */ s.jsx(Cr, {}),
3473
+ /* @__PURE__ */ s.jsxs(
3474
+ q.Content,
3475
+ {
3476
+ ref: o,
3477
+ className: N(
3478
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
3479
+ e
3480
+ ),
3481
+ ...n,
3482
+ children: [
3483
+ !r && /* @__PURE__ */ s.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
3484
+ t
3485
+ ]
3486
+ }
3487
+ )
3488
+ ] })
3489
+ );
3490
+ Oc.displayName = "DrawerContent";
3491
+ const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3492
+ q.Title,
3493
+ {
3494
+ ref: r,
3495
+ className: N(
3496
+ "text-lg font-semibold leading-none tracking-tight",
3497
+ e
3498
+ ),
3499
+ ...t
3500
+ }
3501
+ ));
3502
+ Nc.displayName = q.Title.displayName;
3503
+ const Ac = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
3504
+ q.Description,
3505
+ {
3506
+ ref: r,
3507
+ className: N("text-sm text-muted-foreground", e),
3508
+ ...t
3509
+ }
3510
+ ));
3511
+ Ac.displayName = q.Description.displayName;
3512
+ const Or = ({
3513
+ children: e,
3514
+ className: t
3515
+ }) => {
3516
+ const { options: r } = M(), n = K(null);
3517
+ return F(() => {
3518
+ const o = n.current?.querySelector('[aria-current="page"]');
3519
+ zn(o ?? null);
3520
+ }, []), /* @__PURE__ */ s.jsxs(
3521
+ "div",
3522
+ {
3523
+ className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
3524
+ "data-pagefind-ignore": "all",
3525
+ children: [
3526
+ /* @__PURE__ */ s.jsx(
3527
+ "nav",
3528
+ {
3529
+ ref: n,
3530
+ className: N(
3531
+ "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",
3532
+ "-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
3533
+ // Revert the padding/margin on the first child
3534
+ "-mt-2.5",
3535
+ t
3536
+ ),
3537
+ style: {
3538
+ maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
3539
+ },
3540
+ children: e
3541
+ }
3542
+ ),
3543
+ /* @__PURE__ */ s.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: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, {}) })
3544
+ ]
3545
+ }
3546
+ );
3547
+ };
3548
+ Or.displayName = "NavigationWrapper";
3549
+ const Ic = ({
3550
+ onRequestClose: e,
3551
+ navigation: t
3552
+ }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3553
+ /* @__PURE__ */ s.jsxs(Or, { children: [
3554
+ /* @__PURE__ */ s.jsx(A.Target, { name: "navigation-before" }),
3555
+ t.map((r) => /* @__PURE__ */ s.jsx(
3556
+ rt,
3557
+ {
3558
+ item: r
3559
+ },
3560
+ r.type + (r.label ?? "") + ("path" in r ? r.path : "") + ("file" in r ? r.file : "") + ("to" in r ? r.to : "")
3561
+ )),
3562
+ /* @__PURE__ */ s.jsx(A.Target, { name: "navigation-after" })
3563
+ ] }),
3564
+ /* @__PURE__ */ s.jsx(
3565
+ er,
3566
+ {
3567
+ className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
3568
+ "aria-describedby": void 0,
3569
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
3570
+ /* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
3571
+ t.map((r) => /* @__PURE__ */ s.jsx(
3572
+ rt,
3573
+ {
3574
+ item: r,
3575
+ onRequestClose: e
3576
+ },
3577
+ r.label
3578
+ ))
3579
+ ] })
3580
+ }
3581
+ )
3582
+ ] }), Rc = ({ children: e }) => {
3583
+ const [t, r] = G(!1), { navigation: n } = Bt(), o = n.length > 0, a = Re().state === "loading", { options: i } = M();
3584
+ return /* @__PURE__ */ s.jsxs(
3585
+ Tr,
3586
+ {
3587
+ direction: i.site?.dir === "rtl" ? "right" : "left",
3588
+ open: t,
3589
+ onOpenChange: (u) => r(u),
3590
+ children: [
3591
+ o && /* @__PURE__ */ s.jsx(
3592
+ Ic,
3593
+ {
3594
+ onRequestClose: () => r(!1),
3595
+ navigation: n
3596
+ }
3597
+ ),
3598
+ o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Tc, { className: "flex items-center gap-2 px-4", children: [
3599
+ /* @__PURE__ */ s.jsx(Yn, { size: 16, strokeWidth: 1.5 }),
3600
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
3601
+ ] }) }),
3602
+ /* @__PURE__ */ s.jsxs(
3603
+ "main",
3604
+ {
3605
+ "data-pagefind-body": !0,
3606
+ className: N(
3607
+ "px-4 lg:pe-8 lg:px-8",
3608
+ !o && "col-span-full",
3609
+ a && "animate-pulse"
3610
+ ),
3611
+ children: [
3612
+ /* @__PURE__ */ s.jsx(A.Target, { name: "content-before" }),
3613
+ e,
3614
+ /* @__PURE__ */ s.jsx(A.Target, { name: "content-after" })
3615
+ ]
3616
+ }
3617
+ )
3618
+ ]
3619
+ }
3620
+ );
3621
+ }, Dc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Gt, {}) }), Mc = ({ children: e }) => {
3622
+ const { meta: t, authentication: r, options: n } = M(), o = xe();
3623
+ return Pn(), lc(), F(() => {
3624
+ r?.onPageLoad?.();
3625
+ }, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3626
+ /* @__PURE__ */ s.jsxs(Ie, { titleTemplate: t?.title, children: [
3627
+ n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
3628
+ "link",
3629
+ {
3630
+ rel: "canonical",
3631
+ href: ee(
3632
+ n.canonicalUrlOrigin,
3633
+ n.basePath,
3634
+ o.pathname
3635
+ )
3636
+ }
3637
+ ),
3638
+ t?.description && /* @__PURE__ */ s.jsx("meta", { name: "description", content: t.description }),
3639
+ t?.favicon && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: t.favicon })
3640
+ ] }),
3641
+ /* @__PURE__ */ s.jsx(A.Target, { name: "layout-before-head" }),
3642
+ /* @__PURE__ */ s.jsx(Zr, {}),
3643
+ /* @__PURE__ */ s.jsx(A.Target, { name: "layout-after-head" }),
3644
+ /* @__PURE__ */ s.jsx(
3645
+ "div",
3646
+ {
3647
+ className: N(
3648
+ "grid max-w-screen-2xl w-full lg:mx-auto",
3649
+ "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
3650
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
3651
+ ),
3652
+ children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Dc, {}), children: /* @__PURE__ */ s.jsx(Rc, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) })
3653
+ }
3654
+ ),
3655
+ /* @__PURE__ */ s.jsx(hc, {})
3656
+ ] });
3657
+ }, Fc = ({
3658
+ title: e = "An error occurred",
3659
+ message: t,
3660
+ category: r
3661
+ }) => /* @__PURE__ */ s.jsxs(Kt, { className: "h-full pt-(--padding-content-top)", children: [
3662
+ r && /* @__PURE__ */ s.jsx(En, { children: r }),
3663
+ e && /* @__PURE__ */ s.jsx(Sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
3664
+ /* @__PURE__ */ s.jsx("p", { children: t })
3665
+ ] }), qc = (e) => {
3666
+ switch (e) {
3667
+ case 400:
3668
+ return {
3669
+ title: "Bad Request",
3670
+ message: "The request could not be understood by the server due to malformed syntax."
3671
+ };
3672
+ case 403:
3673
+ return {
3674
+ title: "Forbidden",
3675
+ message: "You don't have permission to access this resource."
3676
+ };
3677
+ case 404:
3678
+ return {
3679
+ title: "Not Found",
3680
+ message: "The requested resource could not be found."
3681
+ };
3682
+ case 405:
3683
+ return {
3684
+ title: "Method Not Allowed",
3685
+ message: "The request method is not supported for the requested resource."
3686
+ };
3687
+ case 414:
3688
+ return {
3689
+ title: "Request URI Too Large",
3690
+ message: "The request URI is too large."
3691
+ };
3692
+ case 416:
3693
+ return {
3694
+ title: "Range Not Satisfiable",
3695
+ message: "The server cannot satisfy the request range."
3696
+ };
3697
+ case 500:
3698
+ return {
3699
+ title: "Internal Server Error",
3700
+ message: "An unexpected error occurred while processing your request."
3701
+ };
3702
+ case 501:
3703
+ return {
3704
+ title: "Not Implemented",
3705
+ message: "The server does not support the functionality required to fulfill the request."
3706
+ };
3707
+ case 502:
3708
+ return {
3709
+ title: "Bad Gateway",
3710
+ message: "The server received an invalid response from the upstream server."
3711
+ };
3712
+ case 503:
3713
+ return {
3714
+ title: "Service Unavailable",
3715
+ message: "The server is temporarily unable to handle the request."
3716
+ };
3717
+ case 504:
3718
+ return {
3719
+ title: "Gateway Timeout",
3720
+ message: "The server did not receive a timely response from the upstream server."
3721
+ };
3722
+ default:
3723
+ return {
3724
+ title: "An error occurred",
3725
+ message: "Something went wrong while processing your request."
3726
+ };
3727
+ }
3728
+ }, Uc = ({ statusCode: e, message: t }) => {
3729
+ if (e === 404)
3730
+ return /* @__PURE__ */ s.jsx(Zn, {});
3731
+ const r = qc(e);
3732
+ return /* @__PURE__ */ s.jsx(
3733
+ Fc,
3734
+ {
3735
+ title: r.title,
3736
+ message: t ?? r.message,
3737
+ category: e
3738
+ }
3739
+ );
3740
+ }, Lc = Me(null), Ee = {
3741
+ didCatch: !1,
3742
+ error: null
3743
+ };
3744
+ class Qc extends Dn {
3745
+ constructor(t) {
3746
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ee;
3747
+ }
3748
+ static getDerivedStateFromError(t) {
3749
+ return {
3750
+ didCatch: !0,
3751
+ error: t
3752
+ };
3753
+ }
3754
+ resetErrorBoundary() {
3755
+ const {
3756
+ error: t
3757
+ } = this.state;
3758
+ if (t !== null) {
3759
+ for (var r, n, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
3760
+ a[i] = arguments[i];
3761
+ (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
3762
+ args: a,
3763
+ reason: "imperative-api"
3764
+ }), this.setState(Ee);
3765
+ }
3766
+ }
3767
+ componentDidCatch(t, r) {
3768
+ var n, o;
3769
+ (n = (o = this.props).onError) === null || n === void 0 || n.call(o, t, r);
3770
+ }
3771
+ componentDidUpdate(t, r) {
3772
+ const {
3773
+ didCatch: n
3774
+ } = this.state, {
3775
+ resetKeys: o
3776
+ } = this.props;
3777
+ if (n && r.error !== null && Bc(t.resetKeys, o)) {
3778
+ var a, i;
3779
+ (a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
3780
+ next: o,
3781
+ prev: t.resetKeys,
3782
+ reason: "keys"
3783
+ }), this.setState(Ee);
3784
+ }
3785
+ }
3786
+ render() {
3787
+ const {
3788
+ children: t,
3789
+ fallbackRender: r,
3790
+ FallbackComponent: n,
3791
+ fallback: o
3792
+ } = this.props, {
3793
+ didCatch: a,
3794
+ error: i
3795
+ } = this.state;
3796
+ let u = t;
3797
+ if (a) {
3798
+ const h = {
3799
+ error: i,
3800
+ resetErrorBoundary: this.resetErrorBoundary
3801
+ };
3802
+ if (typeof r == "function")
3803
+ u = r(h);
3804
+ else if (n)
3805
+ u = nt(n, h);
3806
+ else if (o !== void 0)
3807
+ u = o;
3808
+ else
3809
+ throw i;
3810
+ }
3811
+ return nt(Lc.Provider, {
3812
+ value: {
3813
+ didCatch: a,
3814
+ error: i,
3815
+ resetErrorBoundary: this.resetErrorBoundary
3816
+ }
3817
+ }, u);
3818
+ }
3819
+ }
3820
+ function Bc() {
3821
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3822
+ return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
3823
+ }
3824
+ let Hc = () => ({
3825
+ emit(e, ...t) {
3826
+ for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
3827
+ r[n](...t);
3828
+ },
3829
+ events: {},
3830
+ on(e, t) {
3831
+ return (this.events[e] ||= []).push(t), () => {
3832
+ this.events[e] = this.events[e]?.filter((r) => t !== r);
3833
+ };
3834
+ }
3835
+ });
3836
+ const Kc = (e) => Object.entries(e);
3837
+ class Wc {
3838
+ plugins;
3839
+ navigation;
3840
+ meta;
3841
+ site;
3842
+ authentication;
3843
+ queryClient;
3844
+ options;
3845
+ navigationPlugins;
3846
+ emitter = Hc();
3847
+ constructor(t, r) {
3848
+ const n = (t.protectedRoutes ?? []).concat(
3849
+ t.plugins?.flatMap(
3850
+ (o) => ot(o) ? o.getProtectedRoutes?.() ?? [] : []
3851
+ ) ?? []
3852
+ );
3853
+ this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(Jn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
3854
+ Xn(o) && Kc(o.events).forEach(([a, i]) => {
3855
+ this.emitter.on(a, i);
3856
+ });
3857
+ }), vn.subscribe((o, a) => {
3858
+ this.emitEvent("auth", {
3859
+ prev: a,
3860
+ next: o
3861
+ });
3862
+ });
3863
+ }
3864
+ initialize = async () => {
3865
+ await Promise.all(
3866
+ this.plugins.filter(eo).map((t) => t.initialize?.(this))
3867
+ );
3868
+ };
3869
+ getApiIdentities = async () => (await Promise.all(
3870
+ this.plugins.filter(to).map((r) => r.getIdentities(this))
3871
+ )).flat();
3872
+ addEventListener(t, r) {
3873
+ return this.emitter.on(t, r);
3874
+ }
3875
+ emitEvent = (t, ...r) => this.emitter.emit(t, ...r);
3876
+ getPluginNavigation = async (t) => (await Promise.all(
3877
+ this.navigationPlugins.map(
3878
+ (n) => n.getNavigation?.(ee(t), this)
3879
+ )
3880
+ )).flatMap((n) => n ?? []);
3881
+ getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Vc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
3882
+ signRequest = async (t) => {
3883
+ if (!this.authentication)
3884
+ throw new Error("No authentication provider configured");
3885
+ return await this.authentication.signRequest(t);
3886
+ };
3887
+ }
3888
+ const Vc = (e) => (t, r) => {
3889
+ const n = e.indexOf(t.category ?? "middle"), o = e.indexOf(r.category ?? "middle");
3890
+ return n - o;
3891
+ };
3892
+ function Yc({ error: e, resetErrorBoundary: t }) {
3893
+ return /* @__PURE__ */ s.jsx(Ht, { error: e });
3894
+ }
3895
+ const me = globalThis;
3896
+ (!me.requestIdleCallback || !me.cancelIdleCallback) && (me.requestIdleCallback = (e) => setTimeout(e, 1), me.cancelIdleCallback = clearTimeout);
3897
+ const Nr = {
3898
+ Header: Zr
3899
+ }, Gc = Me(Nr), Jc = Gc.Provider, Xc = () => {
3900
+ const e = xe(), t = M(), r = K(void 0);
3901
+ return F(() => {
3902
+ t.emitEvent("location", {
3903
+ from: r.current,
3904
+ to: e
3905
+ }), r.current = e;
3906
+ }, [t, e]), null;
3907
+ }, eu = ({
3908
+ children: e,
3909
+ context: t
3910
+ }) => (yn({
3911
+ queryFn: async () => (await t.initialize(), !0),
3912
+ queryKey: ["zudoku-initialize", xn]
3913
+ }), /* @__PURE__ */ s.jsx(_n.Provider, { value: t, children: e }));
3914
+ let At;
3915
+ const Ar = Yt(
3916
+ ({ children: e, ...t }) => {
3917
+ const r = $e(
3918
+ () => ({ ...Nr, ...t.overrides }),
3919
+ [t.overrides]
3920
+ ), n = xe(), o = $e(() => ({
3921
+ ...(t.plugins ?? []).filter(ro).flatMap(
3922
+ (l) => l.getMdxComponents ? [l.getMdxComponents()] : []
3923
+ ).reduce(
3924
+ (l, g) => ({ ...l, ...g }),
3925
+ {}
3926
+ ),
3927
+ ...Tn,
3928
+ ...t.mdx?.components
3929
+ }), [t.mdx?.components, t.plugins]), { stagger: a } = Mn(Ze), [i, u] = G(!1), h = $e(
3930
+ () => i ? { stagger: !0 } : { stagger: a },
3931
+ [a, i]
3932
+ ), f = Re(), y = Ut();
3933
+ F(() => {
3934
+ i || u(!0);
3935
+ }, [i, f.location]), At ??= new Wc(t, y);
3936
+ const p = t.plugins?.flatMap(
3937
+ (m) => no(m) ? m.getHead?.({ location: n }) ?? [] : []
3938
+ ).map((m, l) => /* @__PURE__ */ s.jsx(Ie, { children: m }, l));
3939
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3940
+ p,
3941
+ /* @__PURE__ */ s.jsx(Ze.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(eu, { context: At, children: [
3942
+ /* @__PURE__ */ s.jsx(Xc, {}),
3943
+ /* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(tn, { components: o, children: /* @__PURE__ */ s.jsx(rn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Jc, { value: r, children: /* @__PURE__ */ s.jsx(On, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) }) }) }) })
3944
+ ] }) })
3945
+ ] });
3946
+ }
3947
+ );
3948
+ Ar.displayName = "ZudokoInner";
3949
+ const Ir = (e) => /* @__PURE__ */ s.jsx(Qc, { FallbackComponent: Yc, children: /* @__PURE__ */ s.jsx(Ar, { ...e }) });
3950
+ Ir.displayName = "Zudoku";
3951
+ const bu = Mc, wu = Nn, ju = jo, ku = zo, $u = Po, zu = en, Pu = Ie, Eu = Uc, Su = In, Zu = An, Tu = Gt, Cu = te, Ou = Wt, Nu = De, Au = uc, Iu = Ir, Ru = Kt, Du = nn, tu = M, Mu = oe, Fu = bn, qu = wn, Uu = Dt;
3952
+ export {
3953
+ Ou as B,
3954
+ Su as C,
3955
+ Pu as H,
3956
+ Nu as L,
3957
+ Zu as M,
3958
+ wu as R,
3959
+ Tu as S,
3960
+ Ru as T,
3961
+ Iu as Z,
3962
+ zc as a,
3963
+ Mu as b,
3964
+ bu as c,
3965
+ ju as d,
3966
+ ku as e,
3967
+ $u as f,
3968
+ zu as g,
3969
+ Eu as h,
3970
+ Cu as i,
3971
+ Au as j,
3972
+ Du as k,
3973
+ Fu as l,
3974
+ qu as m,
3975
+ Uu as n,
3976
+ Kc as o,
3977
+ tu as u
3978
+ };
3979
+ //# sourceMappingURL=index-DLshv89l.js.map