zudoku 0.0.0-f06d326 → 0.0.0-f0b4321

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