zudoku 0.0.0-f36627bd → 0.0.0-f370c714

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