zudoku 0.0.0-z6e949a6d → 0.0.0-z8ac421f0

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 (209) hide show
  1. package/dist/app/main.js +1 -1
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/create-plugin.d.ts +2 -0
  4. package/dist/config/create-plugin.js +55 -0
  5. package/dist/config/create-plugin.js.map +1 -0
  6. package/dist/config/loader.js +2 -2
  7. package/dist/config/loader.js.map +1 -1
  8. package/dist/config/validators/InputNavigationSchema.d.ts +67 -67
  9. package/dist/config/validators/NavigationSchema.js +1 -0
  10. package/dist/config/validators/NavigationSchema.js.map +1 -1
  11. package/dist/config/validators/validate.d.ts +5 -4
  12. package/dist/config/validators/validate.js +2 -0
  13. package/dist/config/validators/validate.js.map +1 -1
  14. package/dist/flat-config.d.ts +1 -0
  15. package/dist/index.d.ts +2 -1
  16. package/dist/index.js +1 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/lib/components/Bootstrap.js +1 -2
  19. package/dist/lib/components/Bootstrap.js.map +1 -1
  20. package/dist/lib/components/Slot.test.js +1 -1
  21. package/dist/lib/components/Slot.test.js.map +1 -1
  22. package/dist/lib/components/Zudoku.d.ts +4 -1
  23. package/dist/lib/components/Zudoku.js +4 -7
  24. package/dist/lib/components/Zudoku.js.map +1 -1
  25. package/dist/lib/components/context/ZudokuContext.d.ts +2 -4
  26. package/dist/lib/components/context/ZudokuContext.js +2 -2
  27. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  28. package/dist/lib/components/context/ZudokuProvider.js +1 -1
  29. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  30. package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
  31. package/dist/lib/components/context/ZudokuReactContext.js +4 -0
  32. package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
  33. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  34. package/dist/lib/core/ZudokuContext.js +3 -1
  35. package/dist/lib/core/ZudokuContext.js.map +1 -1
  36. package/dist/lib/core/__internal.d.ts +1 -0
  37. package/dist/lib/core/__internal.js +2 -0
  38. package/dist/lib/core/__internal.js.map +1 -1
  39. package/dist/lib/core/plugins.d.ts +5 -1
  40. package/dist/lib/core/plugins.js.map +1 -1
  41. package/dist/lib/core/transform-config.d.ts +4 -2
  42. package/dist/lib/core/transform-config.js +33 -13
  43. package/dist/lib/core/transform-config.js.map +1 -1
  44. package/dist/lib/core/transform-config.test.d.ts +1 -0
  45. package/dist/lib/core/transform-config.test.js +83 -0
  46. package/dist/lib/core/transform-config.test.js.map +1 -0
  47. package/dist/lib/errors/ErrorAlert.js +1 -2
  48. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  49. package/dist/lib/hooks/useEvent.test.js +1 -1
  50. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  51. package/dist/lib/plugins/openapi/ParamInfos.js +8 -5
  52. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  53. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  54. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  55. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -2
  56. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  57. package/dist/lib/ui/Alert.d.ts +3 -2
  58. package/dist/lib/ui/Alert.js +9 -5
  59. package/dist/lib/ui/Alert.js.map +1 -1
  60. package/dist/lib/ui/Secret.js +2 -2
  61. package/dist/lib/ui/Secret.js.map +1 -1
  62. package/dist/lib/util/flattenAllOf.js +6 -0
  63. package/dist/lib/util/flattenAllOf.js.map +1 -1
  64. package/dist/lib/util/flattenAllOf.test.js +26 -0
  65. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  66. package/dist/vite/config.js +5 -2
  67. package/dist/vite/config.js.map +1 -1
  68. package/dist/vite/plugin-config.js +16 -4
  69. package/dist/vite/plugin-config.js.map +1 -1
  70. package/dist/vite/plugin-theme.js +2 -1
  71. package/dist/vite/plugin-theme.js.map +1 -1
  72. package/dist/vite/prerender/prerender.js +3 -1
  73. package/dist/vite/prerender/prerender.js.map +1 -1
  74. package/dist/vite/prerender/worker.js +3 -1
  75. package/dist/vite/prerender/worker.js.map +1 -1
  76. package/lib/{ClaudeLogo-OpUSMQJe.js → ClaudeLogo-Br8C_vTq.js} +3 -3
  77. package/lib/{ClaudeLogo-OpUSMQJe.js.map → ClaudeLogo-Br8C_vTq.js.map} +1 -1
  78. package/lib/Drawer-Ch7927PF.js.map +1 -1
  79. package/lib/{HydrationBoundary-CNF2ZV3E.js → HydrationBoundary-CJu4vUlG.js} +6 -6
  80. package/lib/{HydrationBoundary-CNF2ZV3E.js.map → HydrationBoundary-CJu4vUlG.js.map} +1 -1
  81. package/lib/{MdxPage-dzCPGdvD.js → MdxPage-C0QFAsgv.js} +6 -6
  82. package/lib/{MdxPage-dzCPGdvD.js.map → MdxPage-C0QFAsgv.js.map} +1 -1
  83. package/lib/Mermaid-Chx5BPHn.js +104 -0
  84. package/lib/Mermaid-Chx5BPHn.js.map +1 -0
  85. package/lib/{OAuthErrorPage-D7n-_cqN.js → OAuthErrorPage-CFz_gBFx.js} +11 -10
  86. package/lib/{OAuthErrorPage-D7n-_cqN.js.map → OAuthErrorPage-CFz_gBFx.js.map} +1 -1
  87. package/lib/{OasProvider-DPPdikt_.js → OasProvider-BwIOIlky.js} +3 -3
  88. package/lib/{OasProvider-DPPdikt_.js.map → OasProvider-BwIOIlky.js.map} +1 -1
  89. package/lib/OperationList-DYRzbPJu.js +5908 -0
  90. package/lib/OperationList-DYRzbPJu.js.map +1 -0
  91. package/lib/{RouteGuard-BMbu_Yb7.js → RouteGuard-CVs3yvEs.js} +3 -3
  92. package/lib/{RouteGuard-BMbu_Yb7.js.map → RouteGuard-CVs3yvEs.js.map} +1 -1
  93. package/lib/{SchemaList-CRC8n5co.js → SchemaList-D4FEyoDV.js} +7 -7
  94. package/lib/{SchemaList-CRC8n5co.js.map → SchemaList-D4FEyoDV.js.map} +1 -1
  95. package/lib/{SchemaView-BR6dtnPg.js → SchemaView-ScvkhsYE.js} +116 -110
  96. package/lib/SchemaView-ScvkhsYE.js.map +1 -0
  97. package/lib/{Secret-BDBqq4p3.js → Secret-DUpgv4V3.js} +92 -72
  98. package/lib/Secret-DUpgv4V3.js.map +1 -0
  99. package/lib/{SignUp-ChqXj9vd.js → SignUp-Dug1jAGC.js} +4 -4
  100. package/lib/{SignUp-ChqXj9vd.js.map → SignUp-Dug1jAGC.js.map} +1 -1
  101. package/lib/{SyntaxHighlight-O-IZOPLg.js → SyntaxHighlight-BMu0b_hF.js} +8 -8
  102. package/lib/{SyntaxHighlight-O-IZOPLg.js.map → SyntaxHighlight-BMu0b_hF.js.map} +1 -1
  103. package/lib/{Toc-DQF7trHT.js → Toc-BiJ2YL0O.js} +2 -2
  104. package/lib/{Toc-DQF7trHT.js.map → Toc-BiJ2YL0O.js.map} +1 -1
  105. package/lib/{Zudoku-DA1yA-te.js → Zudoku-iyiXgWFY.js} +2101 -2121
  106. package/lib/Zudoku-iyiXgWFY.js.map +1 -0
  107. package/lib/ZudokuContext-CYyb_PB_.js +175 -0
  108. package/lib/ZudokuContext-CYyb_PB_.js.map +1 -0
  109. package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
  110. package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
  111. package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -1
  112. package/lib/{circular-C4l1Kj1N.js → circular-BOpxmAie.js} +2 -2
  113. package/lib/{circular-C4l1Kj1N.js.map → circular-BOpxmAie.js.map} +1 -1
  114. package/lib/{createServer-DoRZ6tMa.js → createServer-BunbJzB5.js} +6 -4
  115. package/lib/{createServer-DoRZ6tMa.js.map → createServer-BunbJzB5.js.map} +1 -1
  116. package/lib/{errors-CYLN8SNc.js → errors-B77S9iOc.js} +2 -2
  117. package/lib/{errors-CYLN8SNc.js.map → errors-B77S9iOc.js.map} +1 -1
  118. package/lib/{firebase-DF-VVKB7.js → firebase-C7XKRGLf.js} +25 -24
  119. package/lib/{firebase-DF-VVKB7.js.map → firebase-C7XKRGLf.js.map} +1 -1
  120. package/lib/{hook-C35h0YhF.js → hook-Dz_n9SoE.js} +16 -15
  121. package/lib/{hook-C35h0YhF.js.map → hook-Dz_n9SoE.js.map} +1 -1
  122. package/lib/{index-DrAVvbXa.js → index-BDp2MTiq.js} +2 -2
  123. package/lib/{index-DrAVvbXa.js.map → index-BDp2MTiq.js.map} +1 -1
  124. package/lib/{index-Ck4TmzTO.js → index-Bx29qHVi.js} +52 -50
  125. package/lib/{index-Ck4TmzTO.js.map → index-Bx29qHVi.js.map} +1 -1
  126. package/lib/index-CrcNWbel.js.map +1 -1
  127. package/lib/index-DAWHN3cH.js.map +1 -1
  128. package/lib/index.esm-BYObtETB.js.map +1 -1
  129. package/lib/index.esm-Ca5zvoff.js.map +1 -1
  130. package/lib/{index.esm-B2cLXwjS.js → index.esm-Cth49JBv.js} +2 -2
  131. package/lib/index.esm-Cth49JBv.js.map +1 -0
  132. package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
  133. package/lib/{mutation-BISOc7OM.js → mutation-B7eFBLZY.js} +2 -2
  134. package/lib/{mutation-BISOc7OM.js.map → mutation-B7eFBLZY.js.map} +1 -1
  135. package/lib/ui/Alert.js +32 -20
  136. package/lib/ui/Alert.js.map +1 -1
  137. package/lib/ui/Carousel.js.map +1 -1
  138. package/lib/ui/Secret.js +2 -2
  139. package/lib/ui/Secret.js.map +1 -1
  140. package/lib/ui/SyntaxHighlight.js +2 -2
  141. package/lib/useExposedProps-CzTDfXfq.js.map +1 -1
  142. package/lib/{useMutation-CFMGlAMW.js → useMutation-CErliDZ9.js} +5 -5
  143. package/lib/{useMutation-CFMGlAMW.js.map → useMutation-CErliDZ9.js.map} +1 -1
  144. package/lib/{useSuspenseQuery-CSB_rVek.js → useQuery-ht7aWJ3S.js} +432 -446
  145. package/lib/useQuery-ht7aWJ3S.js.map +1 -0
  146. package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
  147. package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
  148. package/lib/zudoku.__internal.js +520 -496
  149. package/lib/zudoku.__internal.js.map +1 -1
  150. package/lib/zudoku.auth-auth0.js +6 -5
  151. package/lib/zudoku.auth-auth0.js.map +1 -1
  152. package/lib/zudoku.auth-azureb2c.js +14 -13
  153. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  154. package/lib/zudoku.auth-clerk.js +2 -2
  155. package/lib/zudoku.auth-firebase.js +4 -4
  156. package/lib/zudoku.auth-openid.js +7 -6
  157. package/lib/zudoku.auth-openid.js.map +1 -1
  158. package/lib/zudoku.auth-supabase.js +4 -4
  159. package/lib/zudoku.components.js +3 -3
  160. package/lib/zudoku.hooks.js +3 -3
  161. package/lib/zudoku.mermaid.js +3 -3
  162. package/lib/zudoku.plugin-api-catalog.js +28 -27
  163. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  164. package/lib/zudoku.plugin-api-keys.js +98 -96
  165. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  166. package/lib/zudoku.plugin-custom-pages.js +1 -1
  167. package/lib/zudoku.plugin-markdown.js +1 -1
  168. package/lib/zudoku.plugin-openapi.js +2 -2
  169. package/lib/zudoku.plugin-search-pagefind.js +19 -18
  170. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  171. package/lib/zudoku.plugins.js.map +1 -1
  172. package/lib/zudoku.react-query.js +26 -25
  173. package/lib/zudoku.react-query.js.map +1 -1
  174. package/lib/zudoku.router.js.map +1 -1
  175. package/package.json +13 -7
  176. package/src/app/defaultTheme.css +4 -0
  177. package/src/app/main.css +2 -0
  178. package/src/app/main.tsx +1 -1
  179. package/src/lib/components/Bootstrap.tsx +1 -4
  180. package/src/lib/components/Slot.test.tsx +1 -1
  181. package/src/lib/components/Zudoku.tsx +18 -14
  182. package/src/lib/components/context/ZudokuContext.ts +2 -6
  183. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  184. package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
  185. package/src/lib/core/ZudokuContext.ts +7 -1
  186. package/src/lib/core/__internal.tsx +2 -0
  187. package/src/lib/core/plugins.ts +7 -3
  188. package/src/lib/core/transform-config.test.tsx +99 -0
  189. package/src/lib/core/transform-config.ts +57 -19
  190. package/src/lib/errors/ErrorAlert.tsx +1 -6
  191. package/src/lib/hooks/useEvent.test.tsx +1 -1
  192. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -5
  193. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -0
  194. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -0
  195. package/src/lib/ui/Alert.tsx +17 -5
  196. package/src/lib/ui/Secret.tsx +2 -2
  197. package/src/lib/util/flattenAllOf.test.ts +32 -0
  198. package/src/lib/util/flattenAllOf.ts +7 -0
  199. package/lib/Mermaid-JEnWyK0s.js +0 -103
  200. package/lib/Mermaid-JEnWyK0s.js.map +0 -1
  201. package/lib/OperationList-cEveQ_l5.js +0 -5822
  202. package/lib/OperationList-cEveQ_l5.js.map +0 -1
  203. package/lib/SchemaView-BR6dtnPg.js.map +0 -1
  204. package/lib/Secret-BDBqq4p3.js.map +0 -1
  205. package/lib/Zudoku-DA1yA-te.js.map +0 -1
  206. package/lib/ZudokuContext-C6wlLMUH.js +0 -389
  207. package/lib/ZudokuContext-C6wlLMUH.js.map +0 -1
  208. package/lib/index.esm-B2cLXwjS.js.map +0 -1
  209. package/lib/useSuspenseQuery-CSB_rVek.js.map +0 -1
@@ -1,22 +1,24 @@
1
- import { a as Ae, H as De } from "./index.esm-Ca5zvoff.js";
1
+ import { a as De, H as Ce } from "./index.esm-Ca5zvoff.js";
2
2
  import { j as c } from "./jsx-runtime-BzflLqGi.js";
3
- import { b as xt, H as Zt } from "./HydrationBoundary-CNF2ZV3E.js";
4
- import { M as Ce, e as Ot } from "./useSuspenseQuery-CSB_rVek.js";
5
- import * as q from "react";
6
- import { StrictMode as Ue, useEffect as te, useRef as Fe, useState as St, Suspense as Pt } from "react";
7
- import { n as Tt, S as Et, a as Je, b3 as Nt, O as It, d as Rt, L as At, h as Dt, w as Ct } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
- import * as Ut from "react-dom";
9
- import { f as Ft, a as N, A as Jt, s as Lt, P as Mt, N as Bt, g as ge, h as qt, i as Vt, j as Wt, T as Le, H as Me, D as Kt, k as Be } from "./Zudoku-DA1yA-te.js";
10
- import { B as qe, R as Ht } from "./RouteGuard-BMbu_Yb7.js";
11
- import { CircleFadingArrowUpIcon as Gt, LoaderCircleIcon as Yt, ExternalLink as Qt, PanelLeftIcon as Xt, UnlinkIcon as en } from "lucide-react";
12
- import { Button as tn } from "./ui/Button.js";
3
+ import { b as Ot, H as St } from "./HydrationBoundary-CJu4vUlG.js";
4
+ import { L as Ue, g as Pt } from "./useQuery-ht7aWJ3S.js";
5
+ import * as V from "react";
6
+ import { StrictMode as Fe, useEffect as te, useRef as Je, useState as Tt, Suspense as Et, isValidElement as Nt } from "react";
7
+ import { n as It, S as At, a as Le, b3 as Rt, O as Dt, d as Ct, L as Ut, h as Ft, w as Jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
+ import * as Lt from "react-dom";
9
+ import { B as Me, R as Mt } from "./RouteGuard-CVs3yvEs.js";
10
+ import { CircleFadingArrowUpIcon as Bt, LoaderCircleIcon as Vt, ExternalLink as qt, PanelLeftIcon as Wt, UnlinkIcon as Kt } from "lucide-react";
11
+ import { Button as Ht } from "./ui/Button.js";
12
+ import { a as N, A as Gt, s as Yt, P as Qt, N as Xt, d as ge, f as en, g as tn, h as nn, T as Be, H as Ve, D as rn, i as qe } from "./Zudoku-iyiXgWFY.js";
13
13
  import { c as S } from "./cn-5-Gd1Dss.js";
14
- import { a as V, e as nn, j as rn } from "./ZudokuContext-C6wlLMUH.js";
14
+ import { a as q, d as on, j as sn } from "./ZudokuContext-CYyb_PB_.js";
15
15
  import "./index-DAWHN3cH.js";
16
- import { D as T, a as on, b as sn } from "./Drawer-Ch7927PF.js";
17
- import { VisuallyHidden as an } from "@radix-ui/react-visually-hidden";
18
- import { S as cn } from "./Spinner-CI6bRyZw.js";
19
- import { C as Ve } from "./CategoryHeading-DhmodDcq.js";
16
+ import "./ZudokuReactContext-DGJAP1sN.js";
17
+ import { D as T, a as an, b as cn } from "./Drawer-Ch7927PF.js";
18
+ import { VisuallyHidden as un } from "@radix-ui/react-visually-hidden";
19
+ import { S as ln } from "./Spinner-CI6bRyZw.js";
20
+ import { C as We } from "./CategoryHeading-DhmodDcq.js";
21
+ import { isTransformConfigPlugin as dn } from "./zudoku.plugins.js";
20
22
  /**
21
23
  * react-router v7.12.0
22
24
  *
@@ -27,25 +29,25 @@ import { C as Ve } from "./CategoryHeading-DhmodDcq.js";
27
29
  *
28
30
  * @license MIT
29
31
  */
30
- function un(e) {
31
- return /* @__PURE__ */ q.createElement(Tt, { flushSync: Ut.flushSync, ...e });
32
+ function fn(e) {
33
+ return /* @__PURE__ */ V.createElement(It, { flushSync: Lt.flushSync, ...e });
32
34
  }
33
- const ln = new xt({
35
+ const pn = new Ot({
34
36
  defaultOptions: {
35
37
  queries: {
36
38
  staleTime: 1e3 * 60 * 5
37
39
  }
38
40
  }
39
- }), dn = ({
41
+ }), hn = ({
40
42
  router: e,
41
43
  hydrate: t = !1
42
- }) => /* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(Ce, { client: ln, children: /* @__PURE__ */ c.jsx(Zt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ c.jsx(qe, { value: !1, children: /* @__PURE__ */ c.jsx(Ae, { children: /* @__PURE__ */ c.jsx(Ft.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ c.jsx(un, { router: e }) }) }) }) }) }) }), fn = ({
44
+ }) => /* @__PURE__ */ c.jsx(Fe, { children: /* @__PURE__ */ c.jsx(Ue, { client: pn, children: /* @__PURE__ */ c.jsx(St, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ c.jsx(Me, { value: !1, children: /* @__PURE__ */ c.jsx(De, { children: /* @__PURE__ */ c.jsx(fn, { router: e }) }) }) }) }) }), mn = ({
43
45
  router: e,
44
46
  context: t,
45
47
  queryClient: n,
46
48
  helmetContext: r,
47
49
  bypassProtection: o = !1
48
- }) => /* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(Ce, { client: n, children: /* @__PURE__ */ c.jsx(Ae, { context: r, children: /* @__PURE__ */ c.jsx(qe, { value: o, children: /* @__PURE__ */ c.jsx(Et, { router: e, context: t }) }) }) }) });
50
+ }) => /* @__PURE__ */ c.jsx(Fe, { children: /* @__PURE__ */ c.jsx(Ue, { client: n, children: /* @__PURE__ */ c.jsx(De, { context: r, children: /* @__PURE__ */ c.jsx(Me, { value: o, children: /* @__PURE__ */ c.jsx(At, { router: e, context: t }) }) }) }) });
49
51
  function u(e, t, n) {
50
52
  function r(a, l) {
51
53
  if (a._zod || Object.defineProperty(a, "_zod", {
@@ -85,16 +87,16 @@ class F extends Error {
85
87
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
86
88
  }
87
89
  }
88
- class We extends Error {
90
+ class Ke extends Error {
89
91
  constructor(t) {
90
92
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
91
93
  }
92
94
  }
93
- const Ke = {};
94
- function A(e) {
95
- return Ke;
95
+ const He = {};
96
+ function R(e) {
97
+ return He;
96
98
  }
97
- function He(e) {
99
+ function Ge(e) {
98
100
  const t = Object.values(e).filter((r) => typeof r == "number");
99
101
  return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
100
102
  }
@@ -154,15 +156,15 @@ function I(...e) {
154
156
  function ve(e) {
155
157
  return JSON.stringify(e);
156
158
  }
157
- function pn(e) {
159
+ function gn(e) {
158
160
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
159
161
  }
160
- const Ge = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
162
+ const Ye = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
161
163
  };
162
164
  function Y(e) {
163
165
  return typeof e == "object" && e !== null && !Array.isArray(e);
164
166
  }
165
- const hn = ue(() => {
167
+ const _n = ue(() => {
166
168
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
167
169
  return !1;
168
170
  try {
@@ -181,14 +183,14 @@ function M(e) {
181
183
  const n = t.prototype;
182
184
  return !(Y(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
183
185
  }
184
- function Ye(e) {
186
+ function Qe(e) {
185
187
  return M(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
186
188
  }
187
- const mn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
189
+ const vn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
188
190
  function ne(e) {
189
191
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
190
192
  }
191
- function R(e, t, n) {
193
+ function A(e, t, n) {
192
194
  const r = new e._zod.constr(t ?? e._zod.def);
193
195
  return (!t || n?.parent) && (r._zod.parent = e), r;
194
196
  }
@@ -205,10 +207,10 @@ function p(e) {
205
207
  }
206
208
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
207
209
  }
208
- function gn(e) {
210
+ function yn(e) {
209
211
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
210
212
  }
211
- function _n(e, t) {
213
+ function wn(e, t) {
212
214
  const n = e._zod.def, r = n.checks;
213
215
  if (r && r.length > 0)
214
216
  throw new Error(".pick() cannot be used on object schemas containing refinements");
@@ -224,9 +226,9 @@ function _n(e, t) {
224
226
  },
225
227
  checks: []
226
228
  });
227
- return R(e, i);
229
+ return A(e, i);
228
230
  }
229
- function vn(e, t) {
231
+ function zn(e, t) {
230
232
  const n = e._zod.def, r = n.checks;
231
233
  if (r && r.length > 0)
232
234
  throw new Error(".omit() cannot be used on object schemas containing refinements");
@@ -242,9 +244,9 @@ function vn(e, t) {
242
244
  },
243
245
  checks: []
244
246
  });
245
- return R(e, i);
247
+ return A(e, i);
246
248
  }
247
- function yn(e, t) {
249
+ function bn(e, t) {
248
250
  if (!M(t))
249
251
  throw new Error("Invalid input to extend: expected a plain object");
250
252
  const n = e._zod.def.checks;
@@ -260,9 +262,9 @@ function yn(e, t) {
260
262
  return C(this, "shape", i), i;
261
263
  }
262
264
  });
263
- return R(e, o);
265
+ return A(e, o);
264
266
  }
265
- function wn(e, t) {
267
+ function kn(e, t) {
266
268
  if (!M(t))
267
269
  throw new Error("Invalid input to safeExtend: expected a plain object");
268
270
  const n = I(e._zod.def, {
@@ -271,9 +273,9 @@ function wn(e, t) {
271
273
  return C(this, "shape", r), r;
272
274
  }
273
275
  });
274
- return R(e, n);
276
+ return A(e, n);
275
277
  }
276
- function zn(e, t) {
278
+ function $n(e, t) {
277
279
  const n = I(e._zod.def, {
278
280
  get shape() {
279
281
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
@@ -285,9 +287,9 @@ function zn(e, t) {
285
287
  checks: []
286
288
  // delete existing checks
287
289
  });
288
- return R(e, n);
290
+ return A(e, n);
289
291
  }
290
- function bn(e, t, n) {
292
+ function jn(e, t, n) {
291
293
  const o = t._zod.def.checks;
292
294
  if (o && o.length > 0)
293
295
  throw new Error(".partial() cannot be used on object schemas containing refinements");
@@ -313,9 +315,9 @@ function bn(e, t, n) {
313
315
  },
314
316
  checks: []
315
317
  });
316
- return R(t, s);
318
+ return A(t, s);
317
319
  }
318
- function kn(e, t, n) {
320
+ function xn(e, t, n) {
319
321
  const r = I(t._zod.def, {
320
322
  get shape() {
321
323
  const o = t._zod.def.shape, i = { ...o };
@@ -337,7 +339,7 @@ function kn(e, t, n) {
337
339
  return C(this, "shape", i), i;
338
340
  }
339
341
  });
340
- return R(t, r);
342
+ return A(t, r);
341
343
  }
342
344
  function U(e, t = 0) {
343
345
  if (e.aborted === !0)
@@ -347,7 +349,7 @@ function U(e, t = 0) {
347
349
  return !0;
348
350
  return !1;
349
351
  }
350
- function Qe(e, t) {
352
+ function Xe(e, t) {
351
353
  return t.map((n) => {
352
354
  var r;
353
355
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -376,7 +378,7 @@ function B(...e) {
376
378
  inst: r
377
379
  } : { ...t };
378
380
  }
379
- const Xe = (e, t) => {
381
+ const et = (e, t) => {
380
382
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
381
383
  value: e._zod,
382
384
  enumerable: !1
@@ -387,14 +389,14 @@ const Xe = (e, t) => {
387
389
  value: () => e.message,
388
390
  enumerable: !1
389
391
  });
390
- }, et = u("$ZodError", Xe), tt = u("$ZodError", Xe, { Parent: Error });
391
- function $n(e, t = (n) => n.message) {
392
+ }, tt = u("$ZodError", et), nt = u("$ZodError", et, { Parent: Error });
393
+ function Zn(e, t = (n) => n.message) {
392
394
  const n = {}, r = [];
393
395
  for (const o of e.issues)
394
396
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
395
397
  return { formErrors: r, fieldErrors: n };
396
398
  }
397
- function jn(e, t = (n) => n.message) {
399
+ function On(e, t = (n) => n.message) {
398
400
  const n = { _errors: [] }, r = (o) => {
399
401
  for (const i of o.issues)
400
402
  if (i.code === "invalid_union" && i.errors.length)
@@ -420,16 +422,16 @@ const pe = (e) => (t, n, r, o) => {
420
422
  if (s instanceof Promise)
421
423
  throw new F();
422
424
  if (s.issues.length) {
423
- const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, A())));
424
- throw Ge(a, o?.callee), a;
425
+ const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, R())));
426
+ throw Ye(a, o?.callee), a;
425
427
  }
426
428
  return s.value;
427
429
  }, he = (e) => async (t, n, r, o) => {
428
430
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
429
431
  let s = t._zod.run({ value: n, issues: [] }, i);
430
432
  if (s instanceof Promise && (s = await s), s.issues.length) {
431
- const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, A())));
432
- throw Ge(a, o?.callee), a;
433
+ const a = new (o?.Err ?? e)(s.issues.map((l) => D(l, i, R())));
434
+ throw Ye(a, o?.callee), a;
433
435
  }
434
436
  return s.value;
435
437
  }, re = (e) => (t, n, r) => {
@@ -438,52 +440,52 @@ const pe = (e) => (t, n, r, o) => {
438
440
  throw new F();
439
441
  return i.issues.length ? {
440
442
  success: !1,
441
- error: new (e ?? et)(i.issues.map((s) => D(s, o, A())))
443
+ error: new (e ?? tt)(i.issues.map((s) => D(s, o, R())))
442
444
  } : { success: !0, data: i.value };
443
- }, xn = /* @__PURE__ */ re(tt), oe = (e) => async (t, n, r) => {
445
+ }, Sn = /* @__PURE__ */ re(nt), oe = (e) => async (t, n, r) => {
444
446
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
445
447
  let i = t._zod.run({ value: n, issues: [] }, o);
446
448
  return i instanceof Promise && (i = await i), i.issues.length ? {
447
449
  success: !1,
448
- error: new e(i.issues.map((s) => D(s, o, A())))
450
+ error: new e(i.issues.map((s) => D(s, o, R())))
449
451
  } : { success: !0, data: i.value };
450
- }, Zn = /* @__PURE__ */ oe(tt), On = (e) => (t, n, r) => {
452
+ }, Pn = /* @__PURE__ */ oe(nt), Tn = (e) => (t, n, r) => {
451
453
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
452
454
  return pe(e)(t, n, o);
453
- }, Sn = (e) => (t, n, r) => pe(e)(t, n, r), Pn = (e) => async (t, n, r) => {
455
+ }, En = (e) => (t, n, r) => pe(e)(t, n, r), Nn = (e) => async (t, n, r) => {
454
456
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
455
457
  return he(e)(t, n, o);
456
- }, Tn = (e) => async (t, n, r) => he(e)(t, n, r), En = (e) => (t, n, r) => {
458
+ }, In = (e) => async (t, n, r) => he(e)(t, n, r), An = (e) => (t, n, r) => {
457
459
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
458
460
  return re(e)(t, n, o);
459
- }, Nn = (e) => (t, n, r) => re(e)(t, n, r), In = (e) => async (t, n, r) => {
461
+ }, Rn = (e) => (t, n, r) => re(e)(t, n, r), Dn = (e) => async (t, n, r) => {
460
462
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
461
463
  return oe(e)(t, n, o);
462
- }, Rn = (e) => async (t, n, r) => oe(e)(t, n, r), An = /^[cC][^\s-]{8,}$/, Dn = /^[0-9a-z]+$/, Cn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Un = /^[0-9a-vA-V]{20}$/, Fn = /^[A-Za-z0-9]{27}$/, Jn = /^[a-zA-Z0-9_-]{21}$/, Ln = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Mn = /^([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})$/, ye = (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)$/, Bn = /^(?!\.)(?!.*\.\.)([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})+$";
463
- function Vn() {
464
- return new RegExp(qn, "u");
464
+ }, Cn = (e) => async (t, n, r) => oe(e)(t, n, r), Un = /^[cC][^\s-]{8,}$/, Fn = /^[0-9a-z]+$/, Jn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ln = /^[0-9a-vA-V]{20}$/, Mn = /^[A-Za-z0-9]{27}$/, Bn = /^[a-zA-Z0-9_-]{21}$/, Vn = /^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})$/, ye = (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)$/, Wn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Kn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
465
+ function Hn() {
466
+ return new RegExp(Kn, "u");
465
467
  }
466
- const 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])$/, Kn = /^(([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}|:))$/, Hn = /^((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])$/, Gn = /^(([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])$/, Yn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, nt = /^[A-Za-z0-9_-]*$/, Qn = /^\+[1-9]\d{6,14}$/, rt = "(?:(?:\\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])))", Xn = /* @__PURE__ */ new RegExp(`^${rt}$`);
467
- function ot(e) {
468
+ const Gn = /^(?:(?: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])$/, Yn = /^(([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}|:))$/, Qn = /^((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])$/, Xn = /^(([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])$/, er = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, rt = /^[A-Za-z0-9_-]*$/, tr = /^\+[1-9]\d{6,14}$/, ot = "(?:(?:\\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])))", nr = /* @__PURE__ */ new RegExp(`^${ot}$`);
469
+ function st(e) {
468
470
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
469
471
  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+)?)?`;
470
472
  }
471
- function er(e) {
472
- return new RegExp(`^${ot(e)}$`);
473
+ function rr(e) {
474
+ return new RegExp(`^${st(e)}$`);
473
475
  }
474
- function tr(e) {
475
- const t = ot({ precision: e.precision }), n = ["Z"];
476
+ function or(e) {
477
+ const t = st({ precision: e.precision }), n = ["Z"];
476
478
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
477
479
  const r = `${t}(?:${n.join("|")})`;
478
- return new RegExp(`^${rt}T(?:${r})$`);
480
+ return new RegExp(`^${ot}T(?:${r})$`);
479
481
  }
480
- const nr = (e) => {
482
+ const sr = (e) => {
481
483
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
482
484
  return new RegExp(`^${t}$`);
483
- }, rr = /^[^A-Z]*$/, or = /^[^a-z]*$/, E = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
485
+ }, ir = /^[^A-Z]*$/, ar = /^[^a-z]*$/, E = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
484
486
  var n;
485
487
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
486
- }), sr = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
488
+ }), cr = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
487
489
  var n;
488
490
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
489
491
  const o = r.value;
@@ -506,7 +508,7 @@ const nr = (e) => {
506
508
  continue: !t.abort
507
509
  });
508
510
  };
509
- }), ir = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
511
+ }), ur = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
510
512
  var n;
511
513
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
512
514
  const o = r.value;
@@ -529,7 +531,7 @@ const nr = (e) => {
529
531
  continue: !t.abort
530
532
  });
531
533
  };
532
- }), ar = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
534
+ }), lr = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
533
535
  var n;
534
536
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
535
537
  const o = r.value;
@@ -569,7 +571,7 @@ const nr = (e) => {
569
571
  });
570
572
  }) : (r = e._zod).check ?? (r.check = () => {
571
573
  });
572
- }), cr = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
574
+ }), dr = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
573
575
  se.init(e, t), e._zod.check = (n) => {
574
576
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
575
577
  origin: "string",
@@ -581,11 +583,11 @@ const nr = (e) => {
581
583
  continue: !t.abort
582
584
  });
583
585
  };
584
- }), ur = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
585
- t.pattern ?? (t.pattern = rr), se.init(e, t);
586
- }), lr = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
587
- t.pattern ?? (t.pattern = or), se.init(e, t);
588
- }), dr = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
586
+ }), fr = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
587
+ t.pattern ?? (t.pattern = ir), se.init(e, t);
588
+ }), pr = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
589
+ t.pattern ?? (t.pattern = ar), se.init(e, t);
590
+ }), hr = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
589
591
  E.init(e, t);
590
592
  const n = ne(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
591
593
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -602,7 +604,7 @@ const nr = (e) => {
602
604
  continue: !t.abort
603
605
  });
604
606
  };
605
- }), fr = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
607
+ }), mr = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
606
608
  E.init(e, t);
607
609
  const n = new RegExp(`^${ne(t.prefix)}.*`);
608
610
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -619,7 +621,7 @@ const nr = (e) => {
619
621
  continue: !t.abort
620
622
  });
621
623
  };
622
- }), pr = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
624
+ }), gr = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
623
625
  E.init(e, t);
624
626
  const n = new RegExp(`.*${ne(t.suffix)}$`);
625
627
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -636,12 +638,12 @@ const nr = (e) => {
636
638
  continue: !t.abort
637
639
  });
638
640
  };
639
- }), hr = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
641
+ }), _r = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
640
642
  E.init(e, t), e._zod.check = (n) => {
641
643
  n.value = t.tx(n.value);
642
644
  };
643
645
  });
644
- class mr {
646
+ class vr {
645
647
  constructor(t = []) {
646
648
  this.content = [], this.indent = 0, this && (this.args = t);
647
649
  }
@@ -664,13 +666,13 @@ class mr {
664
666
  `));
665
667
  }
666
668
  }
667
- const gr = {
669
+ const yr = {
668
670
  major: 4,
669
671
  minor: 3,
670
672
  patch: 6
671
673
  }, w = /* @__PURE__ */ u("$ZodType", (e, t) => {
672
674
  var n;
673
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = gr;
675
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = yr;
674
676
  const r = [...e._zod.def.checks ?? []];
675
677
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
676
678
  for (const o of r)
@@ -733,17 +735,17 @@ const gr = {
733
735
  _(e, "~standard", () => ({
734
736
  validate: (o) => {
735
737
  try {
736
- const i = xn(e, o);
738
+ const i = Sn(e, o);
737
739
  return i.success ? { value: i.data } : { issues: i.error?.issues };
738
740
  } catch {
739
- return Zn(e, o).then((s) => s.success ? { value: s.data } : { issues: s.error?.issues });
741
+ return Pn(e, o).then((s) => s.success ? { value: s.data } : { issues: s.error?.issues });
740
742
  }
741
743
  },
742
744
  vendor: "zod",
743
745
  version: 1
744
746
  }));
745
747
  }), me = /* @__PURE__ */ u("$ZodString", (e, t) => {
746
- w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? nr(e._zod.bag), e._zod.parse = (n, r) => {
748
+ w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? sr(e._zod.bag), e._zod.parse = (n, r) => {
747
749
  if (t.coerce)
748
750
  try {
749
751
  n.value = String(n.value);
@@ -758,9 +760,9 @@ const gr = {
758
760
  };
759
761
  }), v = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
760
762
  se.init(e, t), me.init(e, t);
761
- }), _r = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
762
- t.pattern ?? (t.pattern = Mn), v.init(e, t);
763
- }), vr = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
763
+ }), wr = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
764
+ t.pattern ?? (t.pattern = qn), v.init(e, t);
765
+ }), zr = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
764
766
  if (t.version) {
765
767
  const r = {
766
768
  v1: 1,
@@ -778,9 +780,9 @@ const gr = {
778
780
  } else
779
781
  t.pattern ?? (t.pattern = ye());
780
782
  v.init(e, t);
781
- }), yr = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
782
- t.pattern ?? (t.pattern = Bn), v.init(e, t);
783
- }), wr = /* @__PURE__ */ u("$ZodURL", (e, t) => {
783
+ }), br = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
784
+ t.pattern ?? (t.pattern = Wn), v.init(e, t);
785
+ }), kr = /* @__PURE__ */ u("$ZodURL", (e, t) => {
784
786
  v.init(e, t), e._zod.check = (n) => {
785
787
  try {
786
788
  const r = n.value.trim(), o = new URL(r);
@@ -812,32 +814,32 @@ const gr = {
812
814
  });
813
815
  }
814
816
  };
815
- }), zr = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
816
- t.pattern ?? (t.pattern = Vn()), v.init(e, t);
817
- }), br = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
818
- t.pattern ?? (t.pattern = Jn), v.init(e, t);
819
- }), kr = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
820
- t.pattern ?? (t.pattern = An), v.init(e, t);
821
- }), $r = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
822
- t.pattern ?? (t.pattern = Dn), v.init(e, t);
823
- }), jr = /* @__PURE__ */ u("$ZodULID", (e, t) => {
824
- t.pattern ?? (t.pattern = Cn), v.init(e, t);
825
- }), xr = /* @__PURE__ */ u("$ZodXID", (e, t) => {
817
+ }), $r = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
818
+ t.pattern ?? (t.pattern = Hn()), v.init(e, t);
819
+ }), jr = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
820
+ t.pattern ?? (t.pattern = Bn), v.init(e, t);
821
+ }), xr = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
826
822
  t.pattern ?? (t.pattern = Un), v.init(e, t);
827
- }), Zr = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
823
+ }), Zr = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
828
824
  t.pattern ?? (t.pattern = Fn), v.init(e, t);
829
- }), Or = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
830
- t.pattern ?? (t.pattern = tr(t)), v.init(e, t);
831
- }), Sr = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
832
- t.pattern ?? (t.pattern = Xn), v.init(e, t);
833
- }), Pr = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
834
- t.pattern ?? (t.pattern = er(t)), v.init(e, t);
835
- }), Tr = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
825
+ }), Or = /* @__PURE__ */ u("$ZodULID", (e, t) => {
826
+ t.pattern ?? (t.pattern = Jn), v.init(e, t);
827
+ }), Sr = /* @__PURE__ */ u("$ZodXID", (e, t) => {
836
828
  t.pattern ?? (t.pattern = Ln), v.init(e, t);
837
- }), Er = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
838
- t.pattern ?? (t.pattern = Wn), v.init(e, t), e._zod.bag.format = "ipv4";
839
- }), Nr = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
840
- t.pattern ?? (t.pattern = Kn), v.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
829
+ }), Pr = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
830
+ t.pattern ?? (t.pattern = Mn), v.init(e, t);
831
+ }), Tr = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
832
+ t.pattern ?? (t.pattern = or(t)), v.init(e, t);
833
+ }), Er = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
834
+ t.pattern ?? (t.pattern = nr), v.init(e, t);
835
+ }), Nr = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
836
+ t.pattern ?? (t.pattern = rr(t)), v.init(e, t);
837
+ }), Ir = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
838
+ t.pattern ?? (t.pattern = Vn), v.init(e, t);
839
+ }), Ar = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
840
+ t.pattern ?? (t.pattern = Gn), v.init(e, t), e._zod.bag.format = "ipv4";
841
+ }), Rr = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
842
+ t.pattern ?? (t.pattern = Yn), v.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
841
843
  try {
842
844
  new URL(`http://[${n.value}]`);
843
845
  } catch {
@@ -850,10 +852,10 @@ const gr = {
850
852
  });
851
853
  }
852
854
  };
853
- }), Ir = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
854
- t.pattern ?? (t.pattern = Hn), v.init(e, t);
855
- }), Rr = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
856
- t.pattern ?? (t.pattern = Gn), v.init(e, t), e._zod.check = (n) => {
855
+ }), Dr = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
856
+ t.pattern ?? (t.pattern = Qn), v.init(e, t);
857
+ }), Cr = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
858
+ t.pattern ?? (t.pattern = Xn), v.init(e, t), e._zod.check = (n) => {
857
859
  const r = n.value.split("/");
858
860
  try {
859
861
  if (r.length !== 2)
@@ -878,7 +880,7 @@ const gr = {
878
880
  }
879
881
  };
880
882
  });
881
- function st(e) {
883
+ function it(e) {
882
884
  if (e === "")
883
885
  return !0;
884
886
  if (e.length % 4 !== 0)
@@ -889,9 +891,9 @@ function st(e) {
889
891
  return !1;
890
892
  }
891
893
  }
892
- const Ar = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
893
- t.pattern ?? (t.pattern = Yn), v.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
894
- st(n.value) || n.issues.push({
894
+ const Ur = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
895
+ t.pattern ?? (t.pattern = er), v.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
896
+ it(n.value) || n.issues.push({
895
897
  code: "invalid_format",
896
898
  format: "base64",
897
899
  input: n.value,
@@ -900,15 +902,15 @@ const Ar = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
900
902
  });
901
903
  };
902
904
  });
903
- function Dr(e) {
904
- if (!nt.test(e))
905
+ function Fr(e) {
906
+ if (!rt.test(e))
905
907
  return !1;
906
908
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
907
- return st(n);
909
+ return it(n);
908
910
  }
909
- const Cr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
910
- t.pattern ?? (t.pattern = nt), v.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
911
- Dr(n.value) || n.issues.push({
911
+ const Jr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
912
+ t.pattern ?? (t.pattern = rt), v.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
913
+ Fr(n.value) || n.issues.push({
912
914
  code: "invalid_format",
913
915
  format: "base64url",
914
916
  input: n.value,
@@ -916,10 +918,10 @@ const Cr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
916
918
  continue: !t.abort
917
919
  });
918
920
  };
919
- }), Ur = /* @__PURE__ */ u("$ZodE164", (e, t) => {
920
- t.pattern ?? (t.pattern = Qn), v.init(e, t);
921
+ }), Lr = /* @__PURE__ */ u("$ZodE164", (e, t) => {
922
+ t.pattern ?? (t.pattern = tr), v.init(e, t);
921
923
  });
922
- function Fr(e, t = null) {
924
+ function Mr(e, t = null) {
923
925
  try {
924
926
  const n = e.split(".");
925
927
  if (n.length !== 3)
@@ -933,9 +935,9 @@ function Fr(e, t = null) {
933
935
  return !1;
934
936
  }
935
937
  }
936
- const Jr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
938
+ const Br = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
937
939
  v.init(e, t), e._zod.check = (n) => {
938
- Fr(n.value, t.alg) || n.issues.push({
940
+ Mr(n.value, t.alg) || n.issues.push({
939
941
  code: "invalid_format",
940
942
  format: "jwt",
941
943
  input: n.value,
@@ -943,9 +945,9 @@ const Jr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
943
945
  continue: !t.abort
944
946
  });
945
947
  };
946
- }), Lr = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
948
+ }), Vr = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
947
949
  w.init(e, t), e._zod.parse = (n) => n;
948
- }), Mr = /* @__PURE__ */ u("$ZodNever", (e, t) => {
950
+ }), qr = /* @__PURE__ */ u("$ZodNever", (e, t) => {
949
951
  w.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
950
952
  expected: "never",
951
953
  code: "invalid_type",
@@ -954,9 +956,9 @@ const Jr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
954
956
  }), n);
955
957
  });
956
958
  function we(e, t, n) {
957
- e.issues.length && t.issues.push(...Qe(n, e.issues)), t.value[n] = e.value;
959
+ e.issues.length && t.issues.push(...Xe(n, e.issues)), t.value[n] = e.value;
958
960
  }
959
- const Br = /* @__PURE__ */ u("$ZodArray", (e, t) => {
961
+ const Wr = /* @__PURE__ */ u("$ZodArray", (e, t) => {
960
962
  w.init(e, t), e._zod.parse = (n, r) => {
961
963
  const o = n.value;
962
964
  if (!Array.isArray(o))
@@ -982,16 +984,16 @@ function Q(e, t, n, r, o) {
982
984
  if (e.issues.length) {
983
985
  if (o && !(n in r))
984
986
  return;
985
- t.issues.push(...Qe(n, e.issues));
987
+ t.issues.push(...Xe(n, e.issues));
986
988
  }
987
989
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
988
990
  }
989
- function it(e) {
991
+ function at(e) {
990
992
  const t = Object.keys(e.shape);
991
993
  for (const r of t)
992
994
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
993
995
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
994
- const n = gn(e.shape);
996
+ const n = yn(e.shape);
995
997
  return {
996
998
  ...e,
997
999
  keys: t,
@@ -1000,7 +1002,7 @@ function it(e) {
1000
1002
  optionalKeys: new Set(n)
1001
1003
  };
1002
1004
  }
1003
- function at(e, t, n, r, o, i) {
1005
+ function ct(e, t, n, r, o, i) {
1004
1006
  const s = [], a = o.keySet, l = o.catchall._zod, d = l.def.type, f = l.optout === "optional";
1005
1007
  for (const g in t) {
1006
1008
  if (a.has(g))
@@ -1019,7 +1021,7 @@ function at(e, t, n, r, o, i) {
1019
1021
  inst: i
1020
1022
  }), e.length ? Promise.all(e).then(() => n) : n;
1021
1023
  }
1022
- const qr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1024
+ const Kr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1023
1025
  if (w.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1024
1026
  const a = t.shape;
1025
1027
  Object.defineProperty(t, "shape", {
@@ -1031,7 +1033,7 @@ const qr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1031
1033
  }
1032
1034
  });
1033
1035
  }
1034
- const r = ue(() => it(t));
1036
+ const r = ue(() => at(t));
1035
1037
  _(e._zod, "propValues", () => {
1036
1038
  const a = t.shape, l = {};
1037
1039
  for (const d in a) {
@@ -1062,24 +1064,24 @@ const qr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1062
1064
  const m = g[h], $ = m._zod.optout === "optional", b = m._zod.run({ value: d[h], issues: [] }, l);
1063
1065
  b instanceof Promise ? f.push(b.then((W) => Q(W, a, h, d, $))) : Q(b, a, h, d, $);
1064
1066
  }
1065
- return i ? at(f, d, a, l, r.value, e) : f.length ? Promise.all(f).then(() => a) : a;
1067
+ return i ? ct(f, d, a, l, r.value, e) : f.length ? Promise.all(f).then(() => a) : a;
1066
1068
  };
1067
- }), Vr = /* @__PURE__ */ u("$ZodObjectJIT", (e, t) => {
1068
- qr.init(e, t);
1069
- const n = e._zod.parse, r = ue(() => it(t)), o = (h) => {
1070
- const m = new mr(["shape", "payload", "ctx"]), $ = r.value, b = (P) => {
1069
+ }), Hr = /* @__PURE__ */ u("$ZodObjectJIT", (e, t) => {
1070
+ Kr.init(e, t);
1071
+ const n = e._zod.parse, r = ue(() => at(t)), o = (h) => {
1072
+ const m = new vr(["shape", "payload", "ctx"]), $ = r.value, b = (P) => {
1071
1073
  const x = ve(P);
1072
1074
  return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1073
1075
  };
1074
1076
  m.write("const input = payload.value;");
1075
1077
  const W = /* @__PURE__ */ Object.create(null);
1076
- let kt = 0;
1078
+ let jt = 0;
1077
1079
  for (const P of $.keys)
1078
- W[P] = `key_${kt++}`;
1080
+ W[P] = `key_${jt++}`;
1079
1081
  m.write("const newResult = {};");
1080
1082
  for (const P of $.keys) {
1081
- const x = W[P], O = ve(P), jt = h[P]?._zod?.optout === "optional";
1082
- m.write(`const ${x} = ${b(P)};`), jt ? m.write(`
1083
+ const x = W[P], O = ve(P), Zt = h[P]?._zod?.optout === "optional";
1084
+ m.write(`const ${x} = ${b(P)};`), Zt ? m.write(`
1083
1085
  if (${x}.issues.length) {
1084
1086
  if (${O} in input) {
1085
1087
  payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
@@ -1116,16 +1118,16 @@ const qr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1116
1118
  `);
1117
1119
  }
1118
1120
  m.write("payload.value = newResult;"), m.write("return payload;");
1119
- const $t = m.compile();
1120
- return (P, x) => $t(h, P, x);
1121
+ const xt = m.compile();
1122
+ return (P, x) => xt(h, P, x);
1121
1123
  };
1122
1124
  let i;
1123
- const s = Y, a = !Ke.jitless, d = a && hn.value, f = t.catchall;
1125
+ const s = Y, a = !He.jitless, d = a && _n.value, f = t.catchall;
1124
1126
  let g;
1125
1127
  e._zod.parse = (h, m) => {
1126
1128
  g ?? (g = r.value);
1127
1129
  const $ = h.value;
1128
- return s($) ? a && d && m?.async === !1 && m.jitless !== !0 ? (i || (i = o(t.shape)), h = i(h, m), f ? at([], $, h, m, g, e) : h) : n(h, m) : (h.issues.push({
1130
+ return s($) ? a && d && m?.async === !1 && m.jitless !== !0 ? (i || (i = o(t.shape)), h = i(h, m), f ? ct([], $, h, m, g, e) : h) : n(h, m) : (h.issues.push({
1129
1131
  expected: "object",
1130
1132
  code: "invalid_type",
1131
1133
  input: $,
@@ -1142,10 +1144,10 @@ function ze(e, t, n, r) {
1142
1144
  code: "invalid_union",
1143
1145
  input: t.value,
1144
1146
  inst: n,
1145
- errors: e.map((i) => i.issues.map((s) => D(s, r, A())))
1147
+ errors: e.map((i) => i.issues.map((s) => D(s, r, R())))
1146
1148
  }), t);
1147
1149
  }
1148
- const Wr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1150
+ const Gr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1149
1151
  w.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", () => {
1150
1152
  if (t.options.every((o) => o._zod.values))
1151
1153
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -1176,7 +1178,7 @@ const Wr = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1176
1178
  }
1177
1179
  return s ? Promise.all(a).then((l) => ze(l, o, e, i)) : ze(a, o, e, i);
1178
1180
  };
1179
- }), Kr = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1181
+ }), Yr = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1180
1182
  w.init(e, t), e._zod.parse = (n, r) => {
1181
1183
  const o = n.value, i = t.left._zod.run({ value: o, issues: [] }, r), s = t.right._zod.run({ value: o, issues: [] }, r);
1182
1184
  return i instanceof Promise || s instanceof Promise ? Promise.all([i, s]).then(([l, d]) => be(n, l, d)) : be(n, i, s);
@@ -1241,10 +1243,10 @@ function be(e, t, n) {
1241
1243
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);
1242
1244
  return e.value = s.data, e;
1243
1245
  }
1244
- const Hr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1246
+ const Qr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1245
1247
  w.init(e, t);
1246
- const n = He(t.entries), r = new Set(n);
1247
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => mn.has(typeof o)).map((o) => typeof o == "string" ? ne(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
1248
+ const n = Ge(t.entries), r = new Set(n);
1249
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => vn.has(typeof o)).map((o) => typeof o == "string" ? ne(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
1248
1250
  const s = o.value;
1249
1251
  return r.has(s) || o.issues.push({
1250
1252
  code: "invalid_value",
@@ -1253,10 +1255,10 @@ const Hr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1253
1255
  inst: e
1254
1256
  }), o;
1255
1257
  };
1256
- }), Gr = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1258
+ }), Xr = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1257
1259
  w.init(e, t), e._zod.parse = (n, r) => {
1258
1260
  if (r.direction === "backward")
1259
- throw new We(e.constructor.name);
1261
+ throw new Ke(e.constructor.name);
1260
1262
  const o = t.transform(n.value, n);
1261
1263
  if (r.async)
1262
1264
  return (o instanceof Promise ? o : Promise.resolve(o)).then((s) => (n.value = s, n));
@@ -1268,7 +1270,7 @@ const Hr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1268
1270
  function ke(e, t) {
1269
1271
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1270
1272
  }
1271
- const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1273
+ const ut = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1272
1274
  w.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", () => {
1273
1275
  const n = t.innerType._zod.pattern;
1274
1276
  return n ? new RegExp(`^(${de(n.source)})?$`) : void 0;
@@ -1279,14 +1281,14 @@ const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1279
1281
  }
1280
1282
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1281
1283
  };
1282
- }), Yr = /* @__PURE__ */ u("$ZodExactOptional", (e, t) => {
1283
- ct.init(e, t), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
1284
- }), Qr = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
1284
+ }), eo = /* @__PURE__ */ u("$ZodExactOptional", (e, t) => {
1285
+ ut.init(e, t), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
1286
+ }), to = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
1285
1287
  w.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1286
1288
  const n = t.innerType._zod.pattern;
1287
1289
  return n ? new RegExp(`^(${de(n.source)}|null)$`) : void 0;
1288
1290
  }), _(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);
1289
- }), Xr = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1291
+ }), no = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1290
1292
  w.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1291
1293
  if (r.direction === "backward")
1292
1294
  return t.innerType._zod.run(n, r);
@@ -1299,9 +1301,9 @@ const ct = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1299
1301
  function $e(e, t) {
1300
1302
  return e.value === void 0 && (e.value = t.defaultValue), e;
1301
1303
  }
1302
- const eo = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1304
+ const ro = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1303
1305
  w.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));
1304
- }), to = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1306
+ }), oo = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1305
1307
  w.init(e, t), _(e._zod, "values", () => {
1306
1308
  const n = t.innerType._zod.values;
1307
1309
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -1318,7 +1320,7 @@ function je(e, t) {
1318
1320
  inst: t
1319
1321
  }), e;
1320
1322
  }
1321
- const no = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1323
+ const so = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1322
1324
  w.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) => {
1323
1325
  if (r.direction === "backward")
1324
1326
  return t.innerType._zod.run(n, r);
@@ -1326,18 +1328,18 @@ const no = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1326
1328
  return o instanceof Promise ? o.then((i) => (n.value = i.value, i.issues.length && (n.value = t.catchValue({
1327
1329
  ...n,
1328
1330
  error: {
1329
- issues: i.issues.map((s) => D(s, r, A()))
1331
+ issues: i.issues.map((s) => D(s, r, R()))
1330
1332
  },
1331
1333
  input: n.value
1332
1334
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1333
1335
  ...n,
1334
1336
  error: {
1335
- issues: o.issues.map((i) => D(i, r, A()))
1337
+ issues: o.issues.map((i) => D(i, r, R()))
1336
1338
  },
1337
1339
  input: n.value
1338
1340
  }), n.issues = []), n);
1339
1341
  };
1340
- }), ro = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1342
+ }), io = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1341
1343
  w.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) => {
1342
1344
  if (r.direction === "backward") {
1343
1345
  const i = t.out._zod.run(n, r);
@@ -1350,7 +1352,7 @@ const no = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1350
1352
  function H(e, t, n) {
1351
1353
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1352
1354
  }
1353
- const oo = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1355
+ const ao = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1354
1356
  w.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) => {
1355
1357
  if (r.direction === "backward")
1356
1358
  return t.innerType._zod.run(n, r);
@@ -1361,7 +1363,7 @@ const oo = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1361
1363
  function xe(e) {
1362
1364
  return e.value = Object.freeze(e.value), e;
1363
1365
  }
1364
- const so = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1366
+ const co = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1365
1367
  E.init(e, t), w.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1366
1368
  const r = n.value, o = t.fn(r);
1367
1369
  if (o instanceof Promise)
@@ -1385,7 +1387,7 @@ function Ze(e, t, n, r) {
1385
1387
  }
1386
1388
  }
1387
1389
  var Oe;
1388
- class io {
1390
+ class uo {
1389
1391
  constructor() {
1390
1392
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1391
1393
  }
@@ -1414,20 +1416,20 @@ class io {
1414
1416
  return this._map.has(t);
1415
1417
  }
1416
1418
  }
1417
- function ao() {
1418
- return new io();
1419
+ function lo() {
1420
+ return new uo();
1419
1421
  }
1420
- (Oe = globalThis).__zod_globalRegistry ?? (Oe.__zod_globalRegistry = ao());
1422
+ (Oe = globalThis).__zod_globalRegistry ?? (Oe.__zod_globalRegistry = lo());
1421
1423
  const L = globalThis.__zod_globalRegistry;
1422
1424
  // @__NO_SIDE_EFFECTS__
1423
- function co(e, t) {
1425
+ function fo(e, t) {
1424
1426
  return new e({
1425
1427
  type: "string",
1426
1428
  ...p(t)
1427
1429
  });
1428
1430
  }
1429
1431
  // @__NO_SIDE_EFFECTS__
1430
- function uo(e, t) {
1432
+ function po(e, t) {
1431
1433
  return new e({
1432
1434
  type: "string",
1433
1435
  format: "email",
@@ -1447,7 +1449,7 @@ function Se(e, t) {
1447
1449
  });
1448
1450
  }
1449
1451
  // @__NO_SIDE_EFFECTS__
1450
- function lo(e, t) {
1452
+ function ho(e, t) {
1451
1453
  return new e({
1452
1454
  type: "string",
1453
1455
  format: "uuid",
@@ -1457,7 +1459,7 @@ function lo(e, t) {
1457
1459
  });
1458
1460
  }
1459
1461
  // @__NO_SIDE_EFFECTS__
1460
- function fo(e, t) {
1462
+ function mo(e, t) {
1461
1463
  return new e({
1462
1464
  type: "string",
1463
1465
  format: "uuid",
@@ -1468,7 +1470,7 @@ function fo(e, t) {
1468
1470
  });
1469
1471
  }
1470
1472
  // @__NO_SIDE_EFFECTS__
1471
- function po(e, t) {
1473
+ function go(e, t) {
1472
1474
  return new e({
1473
1475
  type: "string",
1474
1476
  format: "uuid",
@@ -1479,7 +1481,7 @@ function po(e, t) {
1479
1481
  });
1480
1482
  }
1481
1483
  // @__NO_SIDE_EFFECTS__
1482
- function ho(e, t) {
1484
+ function _o(e, t) {
1483
1485
  return new e({
1484
1486
  type: "string",
1485
1487
  format: "uuid",
@@ -1490,7 +1492,7 @@ function ho(e, t) {
1490
1492
  });
1491
1493
  }
1492
1494
  // @__NO_SIDE_EFFECTS__
1493
- function mo(e, t) {
1495
+ function vo(e, t) {
1494
1496
  return new e({
1495
1497
  type: "string",
1496
1498
  format: "url",
@@ -1500,7 +1502,7 @@ function mo(e, t) {
1500
1502
  });
1501
1503
  }
1502
1504
  // @__NO_SIDE_EFFECTS__
1503
- function go(e, t) {
1505
+ function yo(e, t) {
1504
1506
  return new e({
1505
1507
  type: "string",
1506
1508
  format: "emoji",
@@ -1510,7 +1512,7 @@ function go(e, t) {
1510
1512
  });
1511
1513
  }
1512
1514
  // @__NO_SIDE_EFFECTS__
1513
- function _o(e, t) {
1515
+ function wo(e, t) {
1514
1516
  return new e({
1515
1517
  type: "string",
1516
1518
  format: "nanoid",
@@ -1520,7 +1522,7 @@ function _o(e, t) {
1520
1522
  });
1521
1523
  }
1522
1524
  // @__NO_SIDE_EFFECTS__
1523
- function vo(e, t) {
1525
+ function zo(e, t) {
1524
1526
  return new e({
1525
1527
  type: "string",
1526
1528
  format: "cuid",
@@ -1530,7 +1532,7 @@ function vo(e, t) {
1530
1532
  });
1531
1533
  }
1532
1534
  // @__NO_SIDE_EFFECTS__
1533
- function yo(e, t) {
1535
+ function bo(e, t) {
1534
1536
  return new e({
1535
1537
  type: "string",
1536
1538
  format: "cuid2",
@@ -1540,7 +1542,7 @@ function yo(e, t) {
1540
1542
  });
1541
1543
  }
1542
1544
  // @__NO_SIDE_EFFECTS__
1543
- function wo(e, t) {
1545
+ function ko(e, t) {
1544
1546
  return new e({
1545
1547
  type: "string",
1546
1548
  format: "ulid",
@@ -1550,7 +1552,7 @@ function wo(e, t) {
1550
1552
  });
1551
1553
  }
1552
1554
  // @__NO_SIDE_EFFECTS__
1553
- function zo(e, t) {
1555
+ function $o(e, t) {
1554
1556
  return new e({
1555
1557
  type: "string",
1556
1558
  format: "xid",
@@ -1560,7 +1562,7 @@ function zo(e, t) {
1560
1562
  });
1561
1563
  }
1562
1564
  // @__NO_SIDE_EFFECTS__
1563
- function bo(e, t) {
1565
+ function jo(e, t) {
1564
1566
  return new e({
1565
1567
  type: "string",
1566
1568
  format: "ksuid",
@@ -1570,7 +1572,7 @@ function bo(e, t) {
1570
1572
  });
1571
1573
  }
1572
1574
  // @__NO_SIDE_EFFECTS__
1573
- function ko(e, t) {
1575
+ function xo(e, t) {
1574
1576
  return new e({
1575
1577
  type: "string",
1576
1578
  format: "ipv4",
@@ -1580,7 +1582,7 @@ function ko(e, t) {
1580
1582
  });
1581
1583
  }
1582
1584
  // @__NO_SIDE_EFFECTS__
1583
- function $o(e, t) {
1585
+ function Zo(e, t) {
1584
1586
  return new e({
1585
1587
  type: "string",
1586
1588
  format: "ipv6",
@@ -1590,7 +1592,7 @@ function $o(e, t) {
1590
1592
  });
1591
1593
  }
1592
1594
  // @__NO_SIDE_EFFECTS__
1593
- function jo(e, t) {
1595
+ function Oo(e, t) {
1594
1596
  return new e({
1595
1597
  type: "string",
1596
1598
  format: "cidrv4",
@@ -1600,7 +1602,7 @@ function jo(e, t) {
1600
1602
  });
1601
1603
  }
1602
1604
  // @__NO_SIDE_EFFECTS__
1603
- function xo(e, t) {
1605
+ function So(e, t) {
1604
1606
  return new e({
1605
1607
  type: "string",
1606
1608
  format: "cidrv6",
@@ -1610,7 +1612,7 @@ function xo(e, t) {
1610
1612
  });
1611
1613
  }
1612
1614
  // @__NO_SIDE_EFFECTS__
1613
- function Zo(e, t) {
1615
+ function Po(e, t) {
1614
1616
  return new e({
1615
1617
  type: "string",
1616
1618
  format: "base64",
@@ -1620,7 +1622,7 @@ function Zo(e, t) {
1620
1622
  });
1621
1623
  }
1622
1624
  // @__NO_SIDE_EFFECTS__
1623
- function Oo(e, t) {
1625
+ function To(e, t) {
1624
1626
  return new e({
1625
1627
  type: "string",
1626
1628
  format: "base64url",
@@ -1630,7 +1632,7 @@ function Oo(e, t) {
1630
1632
  });
1631
1633
  }
1632
1634
  // @__NO_SIDE_EFFECTS__
1633
- function So(e, t) {
1635
+ function Eo(e, t) {
1634
1636
  return new e({
1635
1637
  type: "string",
1636
1638
  format: "e164",
@@ -1640,7 +1642,7 @@ function So(e, t) {
1640
1642
  });
1641
1643
  }
1642
1644
  // @__NO_SIDE_EFFECTS__
1643
- function Po(e, t) {
1645
+ function No(e, t) {
1644
1646
  return new e({
1645
1647
  type: "string",
1646
1648
  format: "jwt",
@@ -1650,7 +1652,7 @@ function Po(e, t) {
1650
1652
  });
1651
1653
  }
1652
1654
  // @__NO_SIDE_EFFECTS__
1653
- function To(e, t) {
1655
+ function Io(e, t) {
1654
1656
  return new e({
1655
1657
  type: "string",
1656
1658
  format: "datetime",
@@ -1662,7 +1664,7 @@ function To(e, t) {
1662
1664
  });
1663
1665
  }
1664
1666
  // @__NO_SIDE_EFFECTS__
1665
- function Eo(e, t) {
1667
+ function Ao(e, t) {
1666
1668
  return new e({
1667
1669
  type: "string",
1668
1670
  format: "date",
@@ -1671,7 +1673,7 @@ function Eo(e, t) {
1671
1673
  });
1672
1674
  }
1673
1675
  // @__NO_SIDE_EFFECTS__
1674
- function No(e, t) {
1676
+ function Ro(e, t) {
1675
1677
  return new e({
1676
1678
  type: "string",
1677
1679
  format: "time",
@@ -1681,7 +1683,7 @@ function No(e, t) {
1681
1683
  });
1682
1684
  }
1683
1685
  // @__NO_SIDE_EFFECTS__
1684
- function Io(e, t) {
1686
+ function Do(e, t) {
1685
1687
  return new e({
1686
1688
  type: "string",
1687
1689
  format: "duration",
@@ -1690,21 +1692,21 @@ function Io(e, t) {
1690
1692
  });
1691
1693
  }
1692
1694
  // @__NO_SIDE_EFFECTS__
1693
- function Ro(e) {
1695
+ function Co(e) {
1694
1696
  return new e({
1695
1697
  type: "unknown"
1696
1698
  });
1697
1699
  }
1698
1700
  // @__NO_SIDE_EFFECTS__
1699
- function Ao(e, t) {
1701
+ function Uo(e, t) {
1700
1702
  return new e({
1701
1703
  type: "never",
1702
1704
  ...p(t)
1703
1705
  });
1704
1706
  }
1705
1707
  // @__NO_SIDE_EFFECTS__
1706
- function ut(e, t) {
1707
- return new sr({
1708
+ function lt(e, t) {
1709
+ return new cr({
1708
1710
  check: "max_length",
1709
1711
  ...p(t),
1710
1712
  maximum: e
@@ -1712,23 +1714,23 @@ function ut(e, t) {
1712
1714
  }
1713
1715
  // @__NO_SIDE_EFFECTS__
1714
1716
  function X(e, t) {
1715
- return new ir({
1717
+ return new ur({
1716
1718
  check: "min_length",
1717
1719
  ...p(t),
1718
1720
  minimum: e
1719
1721
  });
1720
1722
  }
1721
1723
  // @__NO_SIDE_EFFECTS__
1722
- function lt(e, t) {
1723
- return new ar({
1724
+ function dt(e, t) {
1725
+ return new lr({
1724
1726
  check: "length_equals",
1725
1727
  ...p(t),
1726
1728
  length: e
1727
1729
  });
1728
1730
  }
1729
1731
  // @__NO_SIDE_EFFECTS__
1730
- function Do(e, t) {
1731
- return new cr({
1732
+ function Fo(e, t) {
1733
+ return new dr({
1732
1734
  check: "string_format",
1733
1735
  format: "regex",
1734
1736
  ...p(t),
@@ -1736,24 +1738,24 @@ function Do(e, t) {
1736
1738
  });
1737
1739
  }
1738
1740
  // @__NO_SIDE_EFFECTS__
1739
- function Co(e) {
1740
- return new ur({
1741
+ function Jo(e) {
1742
+ return new fr({
1741
1743
  check: "string_format",
1742
1744
  format: "lowercase",
1743
1745
  ...p(e)
1744
1746
  });
1745
1747
  }
1746
1748
  // @__NO_SIDE_EFFECTS__
1747
- function Uo(e) {
1748
- return new lr({
1749
+ function Lo(e) {
1750
+ return new pr({
1749
1751
  check: "string_format",
1750
1752
  format: "uppercase",
1751
1753
  ...p(e)
1752
1754
  });
1753
1755
  }
1754
1756
  // @__NO_SIDE_EFFECTS__
1755
- function Fo(e, t) {
1756
- return new dr({
1757
+ function Mo(e, t) {
1758
+ return new hr({
1757
1759
  check: "string_format",
1758
1760
  format: "includes",
1759
1761
  ...p(t),
@@ -1761,8 +1763,8 @@ function Fo(e, t) {
1761
1763
  });
1762
1764
  }
1763
1765
  // @__NO_SIDE_EFFECTS__
1764
- function Jo(e, t) {
1765
- return new fr({
1766
+ function Bo(e, t) {
1767
+ return new mr({
1766
1768
  check: "string_format",
1767
1769
  format: "starts_with",
1768
1770
  ...p(t),
@@ -1770,8 +1772,8 @@ function Jo(e, t) {
1770
1772
  });
1771
1773
  }
1772
1774
  // @__NO_SIDE_EFFECTS__
1773
- function Lo(e, t) {
1774
- return new pr({
1775
+ function Vo(e, t) {
1776
+ return new gr({
1775
1777
  check: "string_format",
1776
1778
  format: "ends_with",
1777
1779
  ...p(t),
@@ -1780,33 +1782,33 @@ function Lo(e, t) {
1780
1782
  }
1781
1783
  // @__NO_SIDE_EFFECTS__
1782
1784
  function J(e) {
1783
- return new hr({
1785
+ return new _r({
1784
1786
  check: "overwrite",
1785
1787
  tx: e
1786
1788
  });
1787
1789
  }
1788
1790
  // @__NO_SIDE_EFFECTS__
1789
- function Mo(e) {
1791
+ function qo(e) {
1790
1792
  return /* @__PURE__ */ J((t) => t.normalize(e));
1791
1793
  }
1792
1794
  // @__NO_SIDE_EFFECTS__
1793
- function Bo() {
1795
+ function Wo() {
1794
1796
  return /* @__PURE__ */ J((e) => e.trim());
1795
1797
  }
1796
1798
  // @__NO_SIDE_EFFECTS__
1797
- function qo() {
1799
+ function Ko() {
1798
1800
  return /* @__PURE__ */ J((e) => e.toLowerCase());
1799
1801
  }
1800
1802
  // @__NO_SIDE_EFFECTS__
1801
- function Vo() {
1803
+ function Ho() {
1802
1804
  return /* @__PURE__ */ J((e) => e.toUpperCase());
1803
1805
  }
1804
1806
  // @__NO_SIDE_EFFECTS__
1805
- function Wo() {
1806
- return /* @__PURE__ */ J((e) => pn(e));
1807
+ function Go() {
1808
+ return /* @__PURE__ */ J((e) => gn(e));
1807
1809
  }
1808
1810
  // @__NO_SIDE_EFFECTS__
1809
- function Ko(e, t, n) {
1811
+ function Yo(e, t, n) {
1810
1812
  return new e({
1811
1813
  type: "array",
1812
1814
  element: t,
@@ -1817,7 +1819,7 @@ function Ko(e, t, n) {
1817
1819
  });
1818
1820
  }
1819
1821
  // @__NO_SIDE_EFFECTS__
1820
- function Ho(e, t, n) {
1822
+ function Qo(e, t, n) {
1821
1823
  return new e({
1822
1824
  type: "custom",
1823
1825
  check: "custom",
@@ -1826,8 +1828,8 @@ function Ho(e, t, n) {
1826
1828
  });
1827
1829
  }
1828
1830
  // @__NO_SIDE_EFFECTS__
1829
- function Go(e) {
1830
- const t = /* @__PURE__ */ Yo((n) => (n.addIssue = (r) => {
1831
+ function Xo(e) {
1832
+ const t = /* @__PURE__ */ es((n) => (n.addIssue = (r) => {
1831
1833
  if (typeof r == "string")
1832
1834
  n.issues.push(B(r, n.value, t._zod.def));
1833
1835
  else {
@@ -1838,14 +1840,14 @@ function Go(e) {
1838
1840
  return t;
1839
1841
  }
1840
1842
  // @__NO_SIDE_EFFECTS__
1841
- function Yo(e, t) {
1843
+ function es(e, t) {
1842
1844
  const n = new E({
1843
1845
  check: "custom",
1844
1846
  ...p(t)
1845
1847
  });
1846
1848
  return n._zod.check = e, n;
1847
1849
  }
1848
- function dt(e) {
1850
+ function ft(e) {
1849
1851
  let t = e?.target ?? "draft-2020-12";
1850
1852
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
1851
1853
  processors: e.processors ?? {},
@@ -1892,7 +1894,7 @@ function k(e, t, n = { path: [], schemaPath: [] }) {
1892
1894
  const l = t.metadataRegistry.get(e);
1893
1895
  return l && Object.assign(s.schema, l), t.io === "input" && j(e) && (delete s.schema.examples, delete s.schema.default), t.io === "input" && s.schema._prefault && ((r = s.schema).default ?? (r.default = s.schema._prefault)), delete s.schema._prefault, t.seen.get(e).schema;
1894
1896
  }
1895
- function ft(e, t) {
1897
+ function pt(e, t) {
1896
1898
  const n = e.seen.get(t);
1897
1899
  if (!n)
1898
1900
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -1964,7 +1966,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1964
1966
  }
1965
1967
  }
1966
1968
  }
1967
- function pt(e, t) {
1969
+ function ht(e, t) {
1968
1970
  const n = e.seen.get(t);
1969
1971
  if (!n)
1970
1972
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -2072,24 +2074,24 @@ function j(e, t) {
2072
2074
  }
2073
2075
  return !1;
2074
2076
  }
2075
- const Qo = (e, t = {}) => (n) => {
2076
- const r = dt({ ...n, processors: t });
2077
- return k(e, r), ft(r, e), pt(r, e);
2077
+ const ts = (e, t = {}) => (n) => {
2078
+ const r = ft({ ...n, processors: t });
2079
+ return k(e, r), pt(r, e), ht(r, e);
2078
2080
  }, ee = (e, t, n = {}) => (r) => {
2079
- const { libraryOptions: o, target: i } = r ?? {}, s = dt({ ...o ?? {}, target: i, io: t, processors: n });
2080
- return k(e, s), ft(s, e), pt(s, e);
2081
- }, Xo = {
2081
+ const { libraryOptions: o, target: i } = r ?? {}, s = ft({ ...o ?? {}, target: i, io: t, processors: n });
2082
+ return k(e, s), pt(s, e), ht(s, e);
2083
+ }, ns = {
2082
2084
  guid: "uuid",
2083
2085
  url: "uri",
2084
2086
  datetime: "date-time",
2085
2087
  json_string: "json-string",
2086
2088
  regex: ""
2087
2089
  // do not set
2088
- }, es = (e, t, n, r) => {
2090
+ }, rs = (e, t, n, r) => {
2089
2091
  const o = n;
2090
2092
  o.type = "string";
2091
2093
  const { minimum: i, maximum: s, format: a, patterns: l, contentEncoding: d } = e._zod.bag;
2092
- if (typeof i == "number" && (o.minLength = i), typeof s == "number" && (o.maxLength = s), a && (o.format = Xo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), d && (o.contentEncoding = d), l && l.size > 0) {
2094
+ if (typeof i == "number" && (o.minLength = i), typeof s == "number" && (o.maxLength = s), a && (o.format = ns[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), d && (o.contentEncoding = d), l && l.size > 0) {
2093
2095
  const f = [...l];
2094
2096
  f.length === 1 ? o.pattern = f[0].source : f.length > 1 && (o.allOf = [
2095
2097
  ...f.map((g) => ({
@@ -2098,22 +2100,22 @@ const Qo = (e, t = {}) => (n) => {
2098
2100
  }))
2099
2101
  ]);
2100
2102
  }
2101
- }, ts = (e, t, n, r) => {
2103
+ }, os = (e, t, n, r) => {
2102
2104
  n.not = {};
2103
- }, ns = (e, t, n, r) => {
2104
- }, rs = (e, t, n, r) => {
2105
- const o = e._zod.def, i = He(o.entries);
2105
+ }, ss = (e, t, n, r) => {
2106
+ }, is = (e, t, n, r) => {
2107
+ const o = e._zod.def, i = Ge(o.entries);
2106
2108
  i.every((s) => typeof s == "number") && (n.type = "number"), i.every((s) => typeof s == "string") && (n.type = "string"), n.enum = i;
2107
- }, os = (e, t, n, r) => {
2109
+ }, as = (e, t, n, r) => {
2108
2110
  if (t.unrepresentable === "throw")
2109
2111
  throw new Error("Custom types cannot be represented in JSON Schema");
2110
- }, ss = (e, t, n, r) => {
2112
+ }, cs = (e, t, n, r) => {
2111
2113
  if (t.unrepresentable === "throw")
2112
2114
  throw new Error("Transforms cannot be represented in JSON Schema");
2113
- }, is = (e, t, n, r) => {
2115
+ }, us = (e, t, n, r) => {
2114
2116
  const o = n, i = e._zod.def, { minimum: s, maximum: a } = e._zod.bag;
2115
2117
  typeof s == "number" && (o.minItems = s), typeof a == "number" && (o.maxItems = a), o.type = "array", o.items = k(i.element, t, { ...r, path: [...r.path, "items"] });
2116
- }, as = (e, t, n, r) => {
2118
+ }, ls = (e, t, n, r) => {
2117
2119
  const o = n, i = e._zod.def;
2118
2120
  o.type = "object", o.properties = {};
2119
2121
  const s = i.shape;
@@ -2130,13 +2132,13 @@ const Qo = (e, t = {}) => (n) => {
2130
2132
  ...r,
2131
2133
  path: [...r.path, "additionalProperties"]
2132
2134
  })) : t.io === "output" && (o.additionalProperties = !1);
2133
- }, cs = (e, t, n, r) => {
2135
+ }, ds = (e, t, n, r) => {
2134
2136
  const o = e._zod.def, i = o.inclusive === !1, s = o.options.map((a, l) => k(a, t, {
2135
2137
  ...r,
2136
2138
  path: [...r.path, i ? "oneOf" : "anyOf", l]
2137
2139
  }));
2138
2140
  i ? n.oneOf = s : n.anyOf = s;
2139
- }, us = (e, t, n, r) => {
2141
+ }, fs = (e, t, n, r) => {
2140
2142
  const o = e._zod.def, i = k(o.left, t, {
2141
2143
  ...r,
2142
2144
  path: [...r.path, "allOf", 0]
@@ -2148,25 +2150,25 @@ const Qo = (e, t = {}) => (n) => {
2148
2150
  ...a(s) ? s.allOf : [s]
2149
2151
  ];
2150
2152
  n.allOf = l;
2151
- }, ls = (e, t, n, r) => {
2153
+ }, ps = (e, t, n, r) => {
2152
2154
  const o = e._zod.def, i = k(o.innerType, t, r), s = t.seen.get(e);
2153
2155
  t.target === "openapi-3.0" ? (s.ref = o.innerType, n.nullable = !0) : n.anyOf = [i, { type: "null" }];
2154
- }, ds = (e, t, n, r) => {
2156
+ }, hs = (e, t, n, r) => {
2155
2157
  const o = e._zod.def;
2156
2158
  k(o.innerType, t, r);
2157
2159
  const i = t.seen.get(e);
2158
2160
  i.ref = o.innerType;
2159
- }, fs = (e, t, n, r) => {
2161
+ }, ms = (e, t, n, r) => {
2160
2162
  const o = e._zod.def;
2161
2163
  k(o.innerType, t, r);
2162
2164
  const i = t.seen.get(e);
2163
2165
  i.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
2164
- }, ps = (e, t, n, r) => {
2166
+ }, gs = (e, t, n, r) => {
2165
2167
  const o = e._zod.def;
2166
2168
  k(o.innerType, t, r);
2167
2169
  const i = t.seen.get(e);
2168
2170
  i.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
2169
- }, hs = (e, t, n, r) => {
2171
+ }, _s = (e, t, n, r) => {
2170
2172
  const o = e._zod.def;
2171
2173
  k(o.innerType, t, r);
2172
2174
  const i = t.seen.get(e);
@@ -2178,53 +2180,53 @@ const Qo = (e, t = {}) => (n) => {
2178
2180
  throw new Error("Dynamic catch values are not supported in JSON Schema");
2179
2181
  }
2180
2182
  n.default = s;
2181
- }, ms = (e, t, n, r) => {
2183
+ }, vs = (e, t, n, r) => {
2182
2184
  const o = e._zod.def, i = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
2183
2185
  k(i, t, r);
2184
2186
  const s = t.seen.get(e);
2185
2187
  s.ref = i;
2186
- }, gs = (e, t, n, r) => {
2188
+ }, ys = (e, t, n, r) => {
2187
2189
  const o = e._zod.def;
2188
2190
  k(o.innerType, t, r);
2189
2191
  const i = t.seen.get(e);
2190
2192
  i.ref = o.innerType, n.readOnly = !0;
2191
- }, ht = (e, t, n, r) => {
2193
+ }, mt = (e, t, n, r) => {
2192
2194
  const o = e._zod.def;
2193
2195
  k(o.innerType, t, r);
2194
2196
  const i = t.seen.get(e);
2195
2197
  i.ref = o.innerType;
2196
- }, _s = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2197
- Or.init(e, t), y.init(e, t);
2198
+ }, ws = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2199
+ Tr.init(e, t), y.init(e, t);
2198
2200
  });
2199
- function vs(e) {
2200
- return /* @__PURE__ */ To(_s, e);
2201
+ function zs(e) {
2202
+ return /* @__PURE__ */ Io(ws, e);
2201
2203
  }
2202
- const ys = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2203
- Sr.init(e, t), y.init(e, t);
2204
+ const bs = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2205
+ Er.init(e, t), y.init(e, t);
2204
2206
  });
2205
- function ws(e) {
2206
- return /* @__PURE__ */ Eo(ys, e);
2207
+ function ks(e) {
2208
+ return /* @__PURE__ */ Ao(bs, e);
2207
2209
  }
2208
- const zs = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2209
- Pr.init(e, t), y.init(e, t);
2210
+ const $s = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2211
+ Nr.init(e, t), y.init(e, t);
2210
2212
  });
2211
- function bs(e) {
2212
- return /* @__PURE__ */ No(zs, e);
2213
+ function js(e) {
2214
+ return /* @__PURE__ */ Ro($s, e);
2213
2215
  }
2214
- const ks = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2215
- Tr.init(e, t), y.init(e, t);
2216
+ const xs = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2217
+ Ir.init(e, t), y.init(e, t);
2216
2218
  });
2217
- function $s(e) {
2218
- return /* @__PURE__ */ Io(ks, e);
2219
+ function Zs(e) {
2220
+ return /* @__PURE__ */ Do(xs, e);
2219
2221
  }
2220
- const js = (e, t) => {
2221
- et.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2222
+ const Os = (e, t) => {
2223
+ tt.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2222
2224
  format: {
2223
- value: (n) => jn(e, n)
2225
+ value: (n) => On(e, n)
2224
2226
  // enumerable: false,
2225
2227
  },
2226
2228
  flatten: {
2227
- value: (n) => $n(e, n)
2229
+ value: (n) => Zn(e, n)
2228
2230
  // enumerable: false,
2229
2231
  },
2230
2232
  addIssue: {
@@ -2246,21 +2248,21 @@ const js = (e, t) => {
2246
2248
  // enumerable: false,
2247
2249
  }
2248
2250
  });
2249
- }, Z = u("ZodError", js, {
2251
+ }, Z = u("ZodError", Os, {
2250
2252
  Parent: Error
2251
- }), xs = /* @__PURE__ */ pe(Z), Zs = /* @__PURE__ */ he(Z), Os = /* @__PURE__ */ re(Z), Ss = /* @__PURE__ */ oe(Z), Ps = /* @__PURE__ */ On(Z), Ts = /* @__PURE__ */ Sn(Z), Es = /* @__PURE__ */ Pn(Z), Ns = /* @__PURE__ */ Tn(Z), Is = /* @__PURE__ */ En(Z), Rs = /* @__PURE__ */ Nn(Z), As = /* @__PURE__ */ In(Z), Ds = /* @__PURE__ */ Rn(Z), z = /* @__PURE__ */ u("ZodType", (e, t) => (w.init(e, t), Object.assign(e["~standard"], {
2253
+ }), Ss = /* @__PURE__ */ pe(Z), Ps = /* @__PURE__ */ he(Z), Ts = /* @__PURE__ */ re(Z), Es = /* @__PURE__ */ oe(Z), Ns = /* @__PURE__ */ Tn(Z), Is = /* @__PURE__ */ En(Z), As = /* @__PURE__ */ Nn(Z), Rs = /* @__PURE__ */ In(Z), Ds = /* @__PURE__ */ An(Z), Cs = /* @__PURE__ */ Rn(Z), Us = /* @__PURE__ */ Dn(Z), Fs = /* @__PURE__ */ Cn(Z), z = /* @__PURE__ */ u("ZodType", (e, t) => (w.init(e, t), Object.assign(e["~standard"], {
2252
2254
  jsonSchema: {
2253
2255
  input: ee(e, "input"),
2254
2256
  output: ee(e, "output")
2255
2257
  }
2256
- }), e.toJSONSchema = Qo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(I(t, {
2258
+ }), e.toJSONSchema = ts(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(I(t, {
2257
2259
  checks: [
2258
2260
  ...t.checks ?? [],
2259
2261
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2260
2262
  ]
2261
2263
  }), {
2262
2264
  parent: !0
2263
- }), e.with = e.check, e.clone = (n, r) => R(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => xs(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Os(e, n, r), e.parseAsync = async (n, r) => Zs(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ss(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Ps(e, n, r), e.decode = (n, r) => Ts(e, n, r), e.encodeAsync = async (n, r) => Es(e, n, r), e.decodeAsync = async (n, r) => Ns(e, n, r), e.safeEncode = (n, r) => Is(e, n, r), e.safeDecode = (n, r) => Rs(e, n, r), e.safeEncodeAsync = async (n, r) => As(e, n, r), e.safeDecodeAsync = async (n, r) => Ds(e, n, r), e.refine = (n, r) => e.check(Si(n, r)), e.superRefine = (n) => e.check(Pi(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ J(n)), e.optional = () => Ne(e), e.exactOptional = () => gi(e), e.nullable = () => Ie(e), e.nullish = () => Ne(Ie(e)), e.nonoptional = (n) => bi(e, n), e.array = () => ii(e), e.or = (n) => li([e, n]), e.and = (n) => fi(e, n), e.transform = (n) => Re(e, hi(n)), e.default = (n) => yi(e, n), e.prefault = (n) => zi(e, n), e.catch = (n) => $i(e, n), e.pipe = (n) => Re(e, n), e.readonly = () => Zi(e), e.describe = (n) => {
2265
+ }), e.with = e.check, e.clone = (n, r) => A(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Ss(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Ts(e, n, r), e.parseAsync = async (n, r) => Ps(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Es(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Ns(e, n, r), e.decode = (n, r) => Is(e, n, r), e.encodeAsync = async (n, r) => As(e, n, r), e.decodeAsync = async (n, r) => Rs(e, n, r), e.safeEncode = (n, r) => Ds(e, n, r), e.safeDecode = (n, r) => Cs(e, n, r), e.safeEncodeAsync = async (n, r) => Us(e, n, r), e.safeDecodeAsync = async (n, r) => Fs(e, n, r), e.refine = (n, r) => e.check(Ei(n, r)), e.superRefine = (n) => e.check(Ni(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ J(n)), e.optional = () => Ne(e), e.exactOptional = () => yi(e), e.nullable = () => Ie(e), e.nullish = () => Ne(Ie(e)), e.nonoptional = (n) => ji(e, n), e.array = () => ui(e), e.or = (n) => pi([e, n]), e.and = (n) => mi(e, n), e.transform = (n) => Ae(e, _i(n)), e.default = (n) => bi(e, n), e.prefault = (n) => $i(e, n), e.catch = (n) => Zi(e, n), e.pipe = (n) => Ae(e, n), e.readonly = () => Pi(e), e.describe = (n) => {
2264
2266
  const r = e.clone();
2265
2267
  return L.add(r, { description: n }), r;
2266
2268
  }, Object.defineProperty(e, "description", {
@@ -2273,107 +2275,107 @@ const js = (e, t) => {
2273
2275
  return L.get(e);
2274
2276
  const r = e.clone();
2275
2277
  return L.add(r, n[0]), r;
2276
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), mt = /* @__PURE__ */ u("_ZodString", (e, t) => {
2277
- me.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => es(e, r, o);
2278
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), gt = /* @__PURE__ */ u("_ZodString", (e, t) => {
2279
+ me.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => rs(e, r, o);
2278
2280
  const n = e._zod.bag;
2279
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ Do(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ Fo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ Jo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ Lo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ X(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ut(...r)), e.length = (...r) => e.check(/* @__PURE__ */ lt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ X(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ Co(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ Uo(r)), e.trim = () => e.check(/* @__PURE__ */ Bo()), e.normalize = (...r) => e.check(/* @__PURE__ */ Mo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ qo()), e.toUpperCase = () => e.check(/* @__PURE__ */ Vo()), e.slugify = () => e.check(/* @__PURE__ */ Wo());
2280
- }), Cs = /* @__PURE__ */ u("ZodString", (e, t) => {
2281
- me.init(e, t), mt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ uo(Us, n)), e.url = (n) => e.check(/* @__PURE__ */ mo(Fs, n)), e.jwt = (n) => e.check(/* @__PURE__ */ Po(ti, n)), e.emoji = (n) => e.check(/* @__PURE__ */ go(Js, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.uuid = (n) => e.check(/* @__PURE__ */ lo(G, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ fo(G, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ po(G, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ ho(G, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ _o(Ls, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.cuid = (n) => e.check(/* @__PURE__ */ vo(Ms, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ yo(Bs, n)), e.ulid = (n) => e.check(/* @__PURE__ */ wo(qs, n)), e.base64 = (n) => e.check(/* @__PURE__ */ Zo(Qs, n)), e.base64url = (n) => e.check(/* @__PURE__ */ Oo(Xs, n)), e.xid = (n) => e.check(/* @__PURE__ */ zo(Vs, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ bo(Ws, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ ko(Ks, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ $o(Hs, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ jo(Gs, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ xo(Ys, n)), e.e164 = (n) => e.check(/* @__PURE__ */ So(ei, n)), e.datetime = (n) => e.check(vs(n)), e.date = (n) => e.check(ws(n)), e.time = (n) => e.check(bs(n)), e.duration = (n) => e.check($s(n));
2281
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ Fo(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ Mo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ Bo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ Vo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ X(...r)), e.max = (...r) => e.check(/* @__PURE__ */ lt(...r)), e.length = (...r) => e.check(/* @__PURE__ */ dt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ X(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ Jo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ Lo(r)), e.trim = () => e.check(/* @__PURE__ */ Wo()), e.normalize = (...r) => e.check(/* @__PURE__ */ qo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ Ko()), e.toUpperCase = () => e.check(/* @__PURE__ */ Ho()), e.slugify = () => e.check(/* @__PURE__ */ Go());
2282
+ }), Js = /* @__PURE__ */ u("ZodString", (e, t) => {
2283
+ me.init(e, t), gt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ po(Ls, n)), e.url = (n) => e.check(/* @__PURE__ */ vo(Ms, n)), e.jwt = (n) => e.check(/* @__PURE__ */ No(oi, n)), e.emoji = (n) => e.check(/* @__PURE__ */ yo(Bs, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.uuid = (n) => e.check(/* @__PURE__ */ ho(G, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ mo(G, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ go(G, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ _o(G, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ wo(Vs, n)), e.guid = (n) => e.check(/* @__PURE__ */ Se(Te, n)), e.cuid = (n) => e.check(/* @__PURE__ */ zo(qs, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ bo(Ws, n)), e.ulid = (n) => e.check(/* @__PURE__ */ ko(Ks, n)), e.base64 = (n) => e.check(/* @__PURE__ */ Po(ti, n)), e.base64url = (n) => e.check(/* @__PURE__ */ To(ni, n)), e.xid = (n) => e.check(/* @__PURE__ */ $o(Hs, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ jo(Gs, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ xo(Ys, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ Zo(Qs, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ Oo(Xs, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ So(ei, n)), e.e164 = (n) => e.check(/* @__PURE__ */ Eo(ri, n)), e.datetime = (n) => e.check(zs(n)), e.date = (n) => e.check(ks(n)), e.time = (n) => e.check(js(n)), e.duration = (n) => e.check(Zs(n));
2282
2284
  });
2283
2285
  function Pe(e) {
2284
- return /* @__PURE__ */ co(Cs, e);
2286
+ return /* @__PURE__ */ fo(Js, e);
2285
2287
  }
2286
2288
  const y = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
2287
- v.init(e, t), mt.init(e, t);
2288
- }), Us = /* @__PURE__ */ u("ZodEmail", (e, t) => {
2289
- yr.init(e, t), y.init(e, t);
2289
+ v.init(e, t), gt.init(e, t);
2290
+ }), Ls = /* @__PURE__ */ u("ZodEmail", (e, t) => {
2291
+ br.init(e, t), y.init(e, t);
2290
2292
  }), Te = /* @__PURE__ */ u("ZodGUID", (e, t) => {
2291
- _r.init(e, t), y.init(e, t);
2292
- }), G = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2293
- vr.init(e, t), y.init(e, t);
2294
- }), Fs = /* @__PURE__ */ u("ZodURL", (e, t) => {
2295
2293
  wr.init(e, t), y.init(e, t);
2296
- }), Js = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2294
+ }), G = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2297
2295
  zr.init(e, t), y.init(e, t);
2298
- }), Ls = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2299
- br.init(e, t), y.init(e, t);
2300
- }), Ms = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2296
+ }), Ms = /* @__PURE__ */ u("ZodURL", (e, t) => {
2301
2297
  kr.init(e, t), y.init(e, t);
2302
- }), Bs = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
2298
+ }), Bs = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2303
2299
  $r.init(e, t), y.init(e, t);
2304
- }), qs = /* @__PURE__ */ u("ZodULID", (e, t) => {
2300
+ }), Vs = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2305
2301
  jr.init(e, t), y.init(e, t);
2306
- }), Vs = /* @__PURE__ */ u("ZodXID", (e, t) => {
2302
+ }), qs = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2307
2303
  xr.init(e, t), y.init(e, t);
2308
- }), Ws = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
2304
+ }), Ws = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
2309
2305
  Zr.init(e, t), y.init(e, t);
2310
- }), Ks = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
2311
- Er.init(e, t), y.init(e, t);
2312
- }), Hs = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
2313
- Nr.init(e, t), y.init(e, t);
2314
- }), Gs = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2315
- Ir.init(e, t), y.init(e, t);
2316
- }), Ys = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2317
- Rr.init(e, t), y.init(e, t);
2318
- }), Qs = /* @__PURE__ */ u("ZodBase64", (e, t) => {
2306
+ }), Ks = /* @__PURE__ */ u("ZodULID", (e, t) => {
2307
+ Or.init(e, t), y.init(e, t);
2308
+ }), Hs = /* @__PURE__ */ u("ZodXID", (e, t) => {
2309
+ Sr.init(e, t), y.init(e, t);
2310
+ }), Gs = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
2311
+ Pr.init(e, t), y.init(e, t);
2312
+ }), Ys = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
2319
2313
  Ar.init(e, t), y.init(e, t);
2320
- }), Xs = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
2314
+ }), Qs = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
2315
+ Rr.init(e, t), y.init(e, t);
2316
+ }), Xs = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2317
+ Dr.init(e, t), y.init(e, t);
2318
+ }), ei = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2321
2319
  Cr.init(e, t), y.init(e, t);
2322
- }), ei = /* @__PURE__ */ u("ZodE164", (e, t) => {
2320
+ }), ti = /* @__PURE__ */ u("ZodBase64", (e, t) => {
2323
2321
  Ur.init(e, t), y.init(e, t);
2324
- }), ti = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2322
+ }), ni = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
2325
2323
  Jr.init(e, t), y.init(e, t);
2326
- }), ni = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2327
- Lr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ns();
2324
+ }), ri = /* @__PURE__ */ u("ZodE164", (e, t) => {
2325
+ Lr.init(e, t), y.init(e, t);
2326
+ }), oi = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2327
+ Br.init(e, t), y.init(e, t);
2328
+ }), si = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2329
+ Vr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ss();
2328
2330
  });
2329
2331
  function Ee() {
2330
- return /* @__PURE__ */ Ro(ni);
2332
+ return /* @__PURE__ */ Co(si);
2331
2333
  }
2332
- const ri = /* @__PURE__ */ u("ZodNever", (e, t) => {
2333
- Mr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ts(e, n, r);
2334
+ const ii = /* @__PURE__ */ u("ZodNever", (e, t) => {
2335
+ qr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => os(e, n, r);
2334
2336
  });
2335
- function oi(e) {
2336
- return /* @__PURE__ */ Ao(ri, e);
2337
+ function ai(e) {
2338
+ return /* @__PURE__ */ Uo(ii, e);
2337
2339
  }
2338
- const si = /* @__PURE__ */ u("ZodArray", (e, t) => {
2339
- Br.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => is(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ X(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ X(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ ut(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ lt(n, r)), e.unwrap = () => e.element;
2340
+ const ci = /* @__PURE__ */ u("ZodArray", (e, t) => {
2341
+ Wr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => us(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ X(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ X(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ lt(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ dt(n, r)), e.unwrap = () => e.element;
2340
2342
  });
2341
- function ii(e, t) {
2342
- return /* @__PURE__ */ Ko(si, e, t);
2343
+ function ui(e, t) {
2344
+ return /* @__PURE__ */ Yo(ci, e, t);
2343
2345
  }
2344
- const ai = /* @__PURE__ */ u("ZodObject", (e, t) => {
2345
- Vr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => as(e, n, r, o), _(e, "shape", () => t.shape), e.keyof = () => gt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: oi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => yn(e, n), e.safeExtend = (n) => wn(e, n), e.merge = (n) => zn(e, n), e.pick = (n) => _n(e, n), e.omit = (n) => vn(e, n), e.partial = (...n) => bn(_t, e, n[0]), e.required = (...n) => kn(vt, e, n[0]);
2346
+ const li = /* @__PURE__ */ u("ZodObject", (e, t) => {
2347
+ Hr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ls(e, n, r, o), _(e, "shape", () => t.shape), e.keyof = () => _t(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: ai() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => bn(e, n), e.safeExtend = (n) => kn(e, n), e.merge = (n) => $n(e, n), e.pick = (n) => wn(e, n), e.omit = (n) => zn(e, n), e.partial = (...n) => jn(vt, e, n[0]), e.required = (...n) => xn(yt, e, n[0]);
2346
2348
  });
2347
- function ci(e, t) {
2349
+ function di(e, t) {
2348
2350
  const n = {
2349
2351
  type: "object",
2350
2352
  shape: e ?? {},
2351
2353
  ...p(t)
2352
2354
  };
2353
- return new ai(n);
2355
+ return new li(n);
2354
2356
  }
2355
- const ui = /* @__PURE__ */ u("ZodUnion", (e, t) => {
2356
- Wr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => cs(e, n, r, o), e.options = t.options;
2357
+ const fi = /* @__PURE__ */ u("ZodUnion", (e, t) => {
2358
+ Gr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ds(e, n, r, o), e.options = t.options;
2357
2359
  });
2358
- function li(e, t) {
2359
- return new ui({
2360
+ function pi(e, t) {
2361
+ return new fi({
2360
2362
  type: "union",
2361
2363
  options: e,
2362
2364
  ...p(t)
2363
2365
  });
2364
2366
  }
2365
- const di = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2366
- Kr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => us(e, n, r, o);
2367
+ const hi = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2368
+ Yr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => fs(e, n, r, o);
2367
2369
  });
2368
- function fi(e, t) {
2369
- return new di({
2370
+ function mi(e, t) {
2371
+ return new hi({
2370
2372
  type: "intersection",
2371
2373
  left: e,
2372
2374
  right: t
2373
2375
  });
2374
2376
  }
2375
2377
  const ce = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2376
- Hr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => rs(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
2378
+ Qr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => is(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
2377
2379
  const n = new Set(Object.keys(t.entries));
2378
2380
  e.extract = (r, o) => {
2379
2381
  const i = {};
@@ -2403,7 +2405,7 @@ const ce = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2403
2405
  });
2404
2406
  };
2405
2407
  });
2406
- function gt(e, t) {
2408
+ function _t(e, t) {
2407
2409
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2408
2410
  return new ce({
2409
2411
  type: "enum",
@@ -2411,10 +2413,10 @@ function gt(e, t) {
2411
2413
  ...p(t)
2412
2414
  });
2413
2415
  }
2414
- const pi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2415
- Gr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ss(e, n), e._zod.parse = (n, r) => {
2416
+ const gi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2417
+ Xr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => cs(e, n), e._zod.parse = (n, r) => {
2416
2418
  if (r.direction === "backward")
2417
- throw new We(e.constructor.name);
2419
+ throw new Ke(e.constructor.name);
2418
2420
  n.addIssue = (i) => {
2419
2421
  if (typeof i == "string")
2420
2422
  n.issues.push(B(i, n.value, t));
@@ -2427,122 +2429,122 @@ const pi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2427
2429
  return o instanceof Promise ? o.then((i) => (n.value = i, n)) : (n.value = o, n);
2428
2430
  };
2429
2431
  });
2430
- function hi(e) {
2431
- return new pi({
2432
+ function _i(e) {
2433
+ return new gi({
2432
2434
  type: "transform",
2433
2435
  transform: e
2434
2436
  });
2435
2437
  }
2436
- const _t = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2437
- ct.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ht(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2438
+ const vt = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2439
+ ut.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => mt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2438
2440
  });
2439
2441
  function Ne(e) {
2440
- return new _t({
2442
+ return new vt({
2441
2443
  type: "optional",
2442
2444
  innerType: e
2443
2445
  });
2444
2446
  }
2445
- const mi = /* @__PURE__ */ u("ZodExactOptional", (e, t) => {
2446
- Yr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ht(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2447
+ const vi = /* @__PURE__ */ u("ZodExactOptional", (e, t) => {
2448
+ eo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => mt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2447
2449
  });
2448
- function gi(e) {
2449
- return new mi({
2450
+ function yi(e) {
2451
+ return new vi({
2450
2452
  type: "optional",
2451
2453
  innerType: e
2452
2454
  });
2453
2455
  }
2454
- const _i = /* @__PURE__ */ u("ZodNullable", (e, t) => {
2455
- Qr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ls(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2456
+ const wi = /* @__PURE__ */ u("ZodNullable", (e, t) => {
2457
+ to.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ps(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2456
2458
  });
2457
2459
  function Ie(e) {
2458
- return new _i({
2460
+ return new wi({
2459
2461
  type: "nullable",
2460
2462
  innerType: e
2461
2463
  });
2462
2464
  }
2463
- const vi = /* @__PURE__ */ u("ZodDefault", (e, t) => {
2464
- Xr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => fs(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2465
+ const zi = /* @__PURE__ */ u("ZodDefault", (e, t) => {
2466
+ no.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ms(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2465
2467
  });
2466
- function yi(e, t) {
2467
- return new vi({
2468
+ function bi(e, t) {
2469
+ return new zi({
2468
2470
  type: "default",
2469
2471
  innerType: e,
2470
2472
  get defaultValue() {
2471
- return typeof t == "function" ? t() : Ye(t);
2473
+ return typeof t == "function" ? t() : Qe(t);
2472
2474
  }
2473
2475
  });
2474
2476
  }
2475
- const wi = /* @__PURE__ */ u("ZodPrefault", (e, t) => {
2476
- eo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ps(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2477
+ const ki = /* @__PURE__ */ u("ZodPrefault", (e, t) => {
2478
+ ro.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => gs(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2477
2479
  });
2478
- function zi(e, t) {
2479
- return new wi({
2480
+ function $i(e, t) {
2481
+ return new ki({
2480
2482
  type: "prefault",
2481
2483
  innerType: e,
2482
2484
  get defaultValue() {
2483
- return typeof t == "function" ? t() : Ye(t);
2485
+ return typeof t == "function" ? t() : Qe(t);
2484
2486
  }
2485
2487
  });
2486
2488
  }
2487
- const vt = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2488
- to.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ds(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2489
+ const yt = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2490
+ oo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => hs(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2489
2491
  });
2490
- function bi(e, t) {
2491
- return new vt({
2492
+ function ji(e, t) {
2493
+ return new yt({
2492
2494
  type: "nonoptional",
2493
2495
  innerType: e,
2494
2496
  ...p(t)
2495
2497
  });
2496
2498
  }
2497
- const ki = /* @__PURE__ */ u("ZodCatch", (e, t) => {
2498
- no.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => hs(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2499
+ const xi = /* @__PURE__ */ u("ZodCatch", (e, t) => {
2500
+ so.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => _s(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2499
2501
  });
2500
- function $i(e, t) {
2501
- return new ki({
2502
+ function Zi(e, t) {
2503
+ return new xi({
2502
2504
  type: "catch",
2503
2505
  innerType: e,
2504
2506
  catchValue: typeof t == "function" ? t : () => t
2505
2507
  });
2506
2508
  }
2507
- const ji = /* @__PURE__ */ u("ZodPipe", (e, t) => {
2508
- ro.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ms(e, n, r, o), e.in = t.in, e.out = t.out;
2509
+ const Oi = /* @__PURE__ */ u("ZodPipe", (e, t) => {
2510
+ io.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => vs(e, n, r, o), e.in = t.in, e.out = t.out;
2509
2511
  });
2510
- function Re(e, t) {
2511
- return new ji({
2512
+ function Ae(e, t) {
2513
+ return new Oi({
2512
2514
  type: "pipe",
2513
2515
  in: e,
2514
2516
  out: t
2515
2517
  // ...util.normalizeParams(params),
2516
2518
  });
2517
2519
  }
2518
- const xi = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
2519
- oo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => gs(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2520
+ const Si = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
2521
+ ao.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ys(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
2520
2522
  });
2521
- function Zi(e) {
2522
- return new xi({
2523
+ function Pi(e) {
2524
+ return new Si({
2523
2525
  type: "readonly",
2524
2526
  innerType: e
2525
2527
  });
2526
2528
  }
2527
- const Oi = /* @__PURE__ */ u("ZodCustom", (e, t) => {
2528
- so.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => os(e, n);
2529
+ const Ti = /* @__PURE__ */ u("ZodCustom", (e, t) => {
2530
+ co.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => as(e, n);
2529
2531
  });
2530
- function Si(e, t = {}) {
2531
- return /* @__PURE__ */ Ho(Oi, e, t);
2532
+ function Ei(e, t = {}) {
2533
+ return /* @__PURE__ */ Qo(Ti, e, t);
2532
2534
  }
2533
- function Pi(e) {
2534
- return /* @__PURE__ */ Go(e);
2535
+ function Ni(e) {
2536
+ return /* @__PURE__ */ Xo(e);
2535
2537
  }
2536
- const Ti = ci({
2538
+ const Ii = di({
2537
2539
  buildId: Pe(),
2538
2540
  timestamp: Pe(),
2539
- status: gt(["in-progress", "success", "failed"])
2540
- }), Ei = ({
2541
+ status: _t(["in-progress", "success", "failed"])
2542
+ }), Ai = ({
2541
2543
  buildId: e,
2542
2544
  environmentType: t,
2543
2545
  endpoint: n = "/__zuplo/docs"
2544
2546
  }) => {
2545
- const r = Ot({
2547
+ const r = Pt({
2546
2548
  queryKey: ["zuplo-build-check", e, n],
2547
2549
  refetchInterval: 3e3,
2548
2550
  enabled: e !== void 0 && t === "WORKING_COPY",
@@ -2550,7 +2552,7 @@ const Ti = ci({
2550
2552
  queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((i) => {
2551
2553
  if (!i.ok) throw new Error("Failed to fetch build status");
2552
2554
  return i.json();
2553
- }).then((i) => Ti.parse(i))
2555
+ }).then((i) => Ii.parse(i))
2554
2556
  });
2555
2557
  if (te(() => {
2556
2558
  r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
@@ -2559,15 +2561,15 @@ const Ti = ci({
2559
2561
  const o = r.data.status === "success";
2560
2562
  return /* @__PURE__ */ c.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: [
2561
2563
  o ? /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2562
- /* @__PURE__ */ c.jsx(Gt, { size: 16 }),
2564
+ /* @__PURE__ */ c.jsx(Bt, { size: 16 }),
2563
2565
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "New version available" })
2564
2566
  ] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2565
- /* @__PURE__ */ c.jsx(Yt, { size: 16, className: "animate-spin" }),
2567
+ /* @__PURE__ */ c.jsx(Vt, { size: 16, className: "animate-spin" }),
2566
2568
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "Building new version..." })
2567
2569
  ] }),
2568
2570
  /* @__PURE__ */ c.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." }),
2569
2571
  o && /* @__PURE__ */ c.jsx(
2570
- tn,
2572
+ Ht,
2571
2573
  {
2572
2574
  variant: "outline",
2573
2575
  size: "sm",
@@ -2579,13 +2581,13 @@ const Ti = ci({
2579
2581
  }
2580
2582
  )
2581
2583
  ] });
2582
- }, Ni = () => {
2583
- const e = Je(), t = Fe(e.pathname);
2584
+ }, Ri = () => {
2585
+ const e = Le(), t = Je(e.pathname);
2584
2586
  te(() => {
2585
2587
  const n = t.current !== e.pathname, r = e.hash !== "";
2586
2588
  n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2587
2589
  }, [e.pathname, e.hash]);
2588
- }, Ii = ({
2590
+ }, Di = ({
2589
2591
  icon: e
2590
2592
  }) => typeof e == "string" ? /* @__PURE__ */ c.jsx(
2591
2593
  "img",
@@ -2594,8 +2596,8 @@ const Ti = ci({
2594
2596
  className: "size-5",
2595
2597
  alt: e
2596
2598
  }
2597
- ) : e, Ri = (e) => /^https?:/.test(e), Ai = () => {
2598
- const { site: e } = V(), t = e?.footer;
2599
+ ) : e, Ci = (e) => /^https?:/.test(e), Ui = () => {
2600
+ const { site: e } = q(), t = e?.footer;
2599
2601
  return t ? /* @__PURE__ */ c.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ c.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2600
2602
  /* @__PURE__ */ c.jsxs(
2601
2603
  "div",
@@ -2624,7 +2626,7 @@ const Ti = ci({
2624
2626
  /* @__PURE__ */ c.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2625
2627
  /* @__PURE__ */ c.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2626
2628
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2627
- return /* @__PURE__ */ c.jsx("li", { children: Ri(r.href) ? /* @__PURE__ */ c.jsxs(
2629
+ return /* @__PURE__ */ c.jsx("li", { children: Ci(r.href) ? /* @__PURE__ */ c.jsxs(
2628
2630
  "a",
2629
2631
  {
2630
2632
  href: r.href,
@@ -2633,10 +2635,10 @@ const Ti = ci({
2633
2635
  className: o,
2634
2636
  children: [
2635
2637
  /* @__PURE__ */ c.jsx("span", { children: r.label }),
2636
- /* @__PURE__ */ c.jsx(Qt, { size: 12 })
2638
+ /* @__PURE__ */ c.jsx(qt, { size: 12 })
2637
2639
  ]
2638
2640
  }
2639
- ) : /* @__PURE__ */ c.jsx(Jt, { to: r.href, className: o, children: /* @__PURE__ */ c.jsx("span", { children: r.label }) }) }, r.href + r.label);
2641
+ ) : /* @__PURE__ */ c.jsx(Gt, { to: r.href, className: o, children: /* @__PURE__ */ c.jsx("span", { children: r.label }) }) }, r.href + r.label);
2640
2642
  }) })
2641
2643
  ]
2642
2644
  },
@@ -2685,7 +2687,7 @@ const Ti = ci({
2685
2687
  rel: "noopener noreferrer",
2686
2688
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2687
2689
  children: [
2688
- /* @__PURE__ */ c.jsx(Ii, { icon: n.icon }),
2690
+ /* @__PURE__ */ c.jsx(Di, { icon: n.icon }),
2689
2691
  n.label
2690
2692
  ]
2691
2693
  },
@@ -2695,7 +2697,7 @@ const Ti = ci({
2695
2697
  }
2696
2698
  )
2697
2699
  ] }) }) : null;
2698
- }, yt = ({
2700
+ }, wt = ({
2699
2701
  shouldScaleBackground: e = !0,
2700
2702
  ...t
2701
2703
  }) => /* @__PURE__ */ c.jsx(
@@ -2705,8 +2707,8 @@ const Ti = ci({
2705
2707
  ...t
2706
2708
  }
2707
2709
  );
2708
- yt.displayName = "Drawer";
2709
- const Di = T.Trigger, Ci = T.Portal, wt = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2710
+ wt.displayName = "Drawer";
2711
+ const Fi = T.Trigger, Ji = T.Portal, zt = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2710
2712
  T.Overlay,
2711
2713
  {
2712
2714
  ref: n,
@@ -2714,10 +2716,10 @@ const Di = T.Trigger, Ci = T.Portal, wt = q.forwardRef(({ className: e, ...t },
2714
2716
  ...t
2715
2717
  }
2716
2718
  ));
2717
- wt.displayName = T.Overlay.displayName;
2718
- const Ui = q.forwardRef(
2719
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ c.jsxs(Ci, { children: [
2720
- /* @__PURE__ */ c.jsx(wt, {}),
2719
+ zt.displayName = T.Overlay.displayName;
2720
+ const Li = V.forwardRef(
2721
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ c.jsxs(Ji, { children: [
2722
+ /* @__PURE__ */ c.jsx(zt, {}),
2721
2723
  /* @__PURE__ */ c.jsxs(
2722
2724
  T.Content,
2723
2725
  {
@@ -2735,8 +2737,8 @@ const Ui = q.forwardRef(
2735
2737
  )
2736
2738
  ] })
2737
2739
  );
2738
- Ui.displayName = "DrawerContent";
2739
- const Fi = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2740
+ Li.displayName = "DrawerContent";
2741
+ const Mi = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2740
2742
  T.Title,
2741
2743
  {
2742
2744
  ref: n,
@@ -2747,8 +2749,8 @@ const Fi = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2747
2749
  ...t
2748
2750
  }
2749
2751
  ));
2750
- Fi.displayName = T.Title.displayName;
2751
- const Ji = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2752
+ Mi.displayName = T.Title.displayName;
2753
+ const Bi = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2752
2754
  T.Description,
2753
2755
  {
2754
2756
  ref: n,
@@ -2756,15 +2758,15 @@ const Ji = q.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
2756
2758
  ...t
2757
2759
  }
2758
2760
  ));
2759
- Ji.displayName = T.Description.displayName;
2760
- const zt = ({
2761
+ Bi.displayName = T.Description.displayName;
2762
+ const bt = ({
2761
2763
  children: e,
2762
2764
  className: t
2763
2765
  }) => {
2764
- const { options: n } = V(), r = Fe(null);
2766
+ const { options: n } = q(), r = Je(null);
2765
2767
  return te(() => {
2766
2768
  const o = r.current?.querySelector('[aria-current="page"]');
2767
- Lt(o ?? null);
2769
+ Yt(o ?? null);
2768
2770
  }, []), /* @__PURE__ */ c.jsxs(
2769
2771
  "div",
2770
2772
  {
@@ -2788,17 +2790,17 @@ const zt = ({
2788
2790
  children: e
2789
2791
  }
2790
2792
  ),
2791
- /* @__PURE__ */ c.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__ */ c.jsx(Mt, {}) })
2793
+ /* @__PURE__ */ c.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__ */ c.jsx(Qt, {}) })
2792
2794
  ]
2793
2795
  }
2794
2796
  );
2795
2797
  };
2796
- zt.displayName = "NavigationWrapper";
2797
- const Li = ({
2798
+ bt.displayName = "NavigationWrapper";
2799
+ const Vi = ({
2798
2800
  onRequestClose: e,
2799
2801
  navigation: t
2800
- }) => /* @__PURE__ */ c.jsxs(Bt, { children: [
2801
- /* @__PURE__ */ c.jsxs(zt, { children: [
2802
+ }) => /* @__PURE__ */ c.jsxs(Xt, { children: [
2803
+ /* @__PURE__ */ c.jsxs(bt, { children: [
2802
2804
  /* @__PURE__ */ c.jsx(N.Target, { name: "navigation-before" }),
2803
2805
  t.map((n) => /* @__PURE__ */ c.jsx(
2804
2806
  ge,
@@ -2810,12 +2812,12 @@ const Li = ({
2810
2812
  /* @__PURE__ */ c.jsx(N.Target, { name: "navigation-after" })
2811
2813
  ] }),
2812
2814
  /* @__PURE__ */ c.jsx(
2813
- on,
2815
+ an,
2814
2816
  {
2815
2817
  className: "lg:hidden h-dvh start-0 w-[320px] rounded-none",
2816
2818
  "aria-describedby": void 0,
2817
2819
  children: /* @__PURE__ */ c.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2818
- /* @__PURE__ */ c.jsx(an, { children: /* @__PURE__ */ c.jsx(sn, { children: "Navigation" }) }),
2820
+ /* @__PURE__ */ c.jsx(un, { children: /* @__PURE__ */ c.jsx(cn, { children: "Navigation" }) }),
2819
2821
  t.map((n) => /* @__PURE__ */ c.jsx(
2820
2822
  ge,
2821
2823
  {
@@ -2827,24 +2829,24 @@ const Li = ({
2827
2829
  ] })
2828
2830
  }
2829
2831
  )
2830
- ] }), Mi = ({ children: e }) => {
2831
- const [t, n] = St(!1), { navigation: r } = nn(), o = r.length > 0, i = Nt().state === "loading", { options: s } = V();
2832
+ ] }), qi = ({ children: e }) => {
2833
+ const [t, n] = Tt(!1), { navigation: r } = on(), o = r.length > 0, i = Rt().state === "loading", { options: s } = q();
2832
2834
  return /* @__PURE__ */ c.jsxs(
2833
- yt,
2835
+ wt,
2834
2836
  {
2835
2837
  direction: s.site?.dir === "rtl" ? "right" : "left",
2836
2838
  open: t,
2837
2839
  onOpenChange: (a) => n(a),
2838
2840
  children: [
2839
2841
  o && /* @__PURE__ */ c.jsx(
2840
- Li,
2842
+ Vi,
2841
2843
  {
2842
2844
  onRequestClose: () => n(!1),
2843
2845
  navigation: r
2844
2846
  }
2845
2847
  ),
2846
- o && /* @__PURE__ */ c.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__ */ c.jsxs(Di, { className: "flex items-center gap-2 px-4", children: [
2847
- /* @__PURE__ */ c.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
2848
+ o && /* @__PURE__ */ c.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__ */ c.jsxs(Fi, { className: "flex items-center gap-2 px-4", children: [
2849
+ /* @__PURE__ */ c.jsx(Wt, { size: 16, strokeWidth: 1.5 }),
2848
2850
  /* @__PURE__ */ c.jsx("span", { className: "text-sm", children: "Menu" })
2849
2851
  ] }) }),
2850
2852
  /* @__PURE__ */ c.jsxs(
@@ -2866,13 +2868,13 @@ const Li = ({
2866
2868
  ]
2867
2869
  }
2868
2870
  );
2869
- }, Bi = () => /* @__PURE__ */ c.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ c.jsx(cn, {}) }), qi = ({ children: e }) => {
2870
- const { authentication: t } = V();
2871
- return qt(), Ni(), te(() => {
2871
+ }, Wi = () => /* @__PURE__ */ c.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ c.jsx(ln, {}) }), Ki = ({ children: e }) => {
2872
+ const { authentication: t } = q();
2873
+ return en(), Ri(), te(() => {
2872
2874
  t?.onPageLoad?.();
2873
- }, [t]), /* @__PURE__ */ c.jsxs(Vt, { children: [
2875
+ }, [t]), /* @__PURE__ */ c.jsxs(tn, { children: [
2874
2876
  /* @__PURE__ */ c.jsx(N.Target, { name: "layout-before-head" }),
2875
- /* @__PURE__ */ c.jsx(Wt, {}),
2877
+ /* @__PURE__ */ c.jsx(nn, {}),
2876
2878
  /* @__PURE__ */ c.jsx(N.Target, { name: "layout-after-head" }),
2877
2879
  /* @__PURE__ */ c.jsx(
2878
2880
  "div",
@@ -2882,20 +2884,20 @@ const Li = ({
2882
2884
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2883
2885
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2884
2886
  ),
2885
- children: /* @__PURE__ */ c.jsx(Pt, { fallback: /* @__PURE__ */ c.jsx(Bi, {}), children: /* @__PURE__ */ c.jsx(Mi, { children: e ?? /* @__PURE__ */ c.jsx(It, {}) }) })
2887
+ children: /* @__PURE__ */ c.jsx(Et, { fallback: /* @__PURE__ */ c.jsx(Wi, {}), children: /* @__PURE__ */ c.jsx(qi, { children: e ?? /* @__PURE__ */ c.jsx(Dt, {}) }) })
2886
2888
  }
2887
2889
  ),
2888
- /* @__PURE__ */ c.jsx(Ai, {})
2890
+ /* @__PURE__ */ c.jsx(Ui, {})
2889
2891
  ] });
2890
- }, Vi = ({ children: e }) => {
2891
- const { meta: t, options: n } = V(), r = Je();
2892
+ }, Hi = ({ children: e }) => {
2893
+ const { meta: t, options: n } = q(), r = Le();
2892
2894
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2893
- /* @__PURE__ */ c.jsxs(De, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2895
+ /* @__PURE__ */ c.jsxs(Ce, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2894
2896
  n.canonicalUrlOrigin && /* @__PURE__ */ c.jsx(
2895
2897
  "link",
2896
2898
  {
2897
2899
  rel: "canonical",
2898
- href: rn(
2900
+ href: sn(
2899
2901
  n.canonicalUrlOrigin,
2900
2902
  n.basePath,
2901
2903
  r.pathname
@@ -2914,23 +2916,23 @@ const Li = ({
2914
2916
  ] }),
2915
2917
  e
2916
2918
  ] });
2917
- }, Wi = ({
2919
+ }, Gi = ({
2918
2920
  title: e = "An error occurred",
2919
2921
  message: t,
2920
2922
  category: n
2921
- }) => /* @__PURE__ */ c.jsxs(Le, { className: "h-full pt-(--padding-content-top)", children: [
2922
- n && /* @__PURE__ */ c.jsx(Ve, { children: n }),
2923
- e && /* @__PURE__ */ c.jsx(Me, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2923
+ }) => /* @__PURE__ */ c.jsxs(Be, { className: "h-full pt-(--padding-content-top)", children: [
2924
+ n && /* @__PURE__ */ c.jsx(We, { children: n }),
2925
+ e && /* @__PURE__ */ c.jsx(Ve, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2924
2926
  /* @__PURE__ */ c.jsx("p", { children: t })
2925
- ] }), bt = () => {
2926
- const e = Rt();
2927
- return /* @__PURE__ */ c.jsxs(Le, { className: "h-full pt-(--padding-content-top)", children: [
2928
- /* @__PURE__ */ c.jsx(Ve, { children: "404" }),
2929
- /* @__PURE__ */ c.jsxs(Me, { level: 1, className: "flex gap-3.5 items-center", children: [
2927
+ ] }), kt = () => {
2928
+ const e = Ct();
2929
+ return /* @__PURE__ */ c.jsxs(Be, { className: "h-full pt-(--padding-content-top)", children: [
2930
+ /* @__PURE__ */ c.jsx(We, { children: "404" }),
2931
+ /* @__PURE__ */ c.jsxs(Ve, { level: 1, className: "flex gap-3.5 items-center", children: [
2930
2932
  "Page not found",
2931
- /* @__PURE__ */ c.jsx(en, { size: 24 })
2933
+ /* @__PURE__ */ c.jsx(Kt, { size: 24 })
2932
2934
  ] }),
2933
- /* @__PURE__ */ c.jsxs(Kt, { children: [
2935
+ /* @__PURE__ */ c.jsxs(rn, { children: [
2934
2936
  "Start by adding a file at",
2935
2937
  " ",
2936
2938
  /* @__PURE__ */ c.jsxs("code", { children: [
@@ -2946,9 +2948,9 @@ const Li = ({
2946
2948
  " is the `pages` directory."
2947
2949
  ] }),
2948
2950
  /* @__PURE__ */ c.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." }),
2949
- /* @__PURE__ */ c.jsx(At, { to: "/", children: "Go back home" })
2951
+ /* @__PURE__ */ c.jsx(Ut, { to: "/", children: "Go back home" })
2950
2952
  ] });
2951
- }, Ki = (e) => {
2953
+ }, Yi = (e) => {
2952
2954
  switch (e) {
2953
2955
  case 400:
2954
2956
  return {
@@ -3011,12 +3013,12 @@ const Li = ({
3011
3013
  message: "Something went wrong while processing your request."
3012
3014
  };
3013
3015
  }
3014
- }, Hi = ({ statusCode: e, message: t }) => {
3016
+ }, Qi = ({ statusCode: e, message: t }) => {
3015
3017
  if (e === 404)
3016
- return /* @__PURE__ */ c.jsx(bt, {});
3017
- const n = Ki(e);
3018
+ return /* @__PURE__ */ c.jsx(kt, {});
3019
+ const n = Yi(e);
3018
3020
  return /* @__PURE__ */ c.jsx(
3019
- Wi,
3021
+ Gi,
3020
3022
  {
3021
3023
  title: n.title,
3022
3024
  message: t ?? n.message,
@@ -3024,24 +3026,46 @@ const Li = ({
3024
3026
  }
3025
3027
  );
3026
3028
  };
3027
- function Gi({ className: e }) {
3028
- const t = Dt();
3029
- return Ct(t) && t.status === 404 ? /* @__PURE__ */ c.jsx(bt, {}) : /* @__PURE__ */ c.jsx("div", { className: S("mx-4 max-w-2xl", e), children: /* @__PURE__ */ c.jsx(Be, { error: t }) });
3030
- }
3031
- function Yi({ error: e }) {
3032
- return /* @__PURE__ */ c.jsx(Be, { error: e });
3033
- }
3034
- const ga = qi, _a = Gi, va = Yi, ya = dn, wa = fn, za = Ht, ba = De, ka = Hi, $a = Ei, ja = Vi;
3029
+ function Xi({ className: e }) {
3030
+ const t = Ft();
3031
+ return Jt(t) && t.status === 404 ? /* @__PURE__ */ c.jsx(kt, {}) : /* @__PURE__ */ c.jsx("div", { className: S("mx-4 max-w-2xl", e), children: /* @__PURE__ */ c.jsx(qe, { error: t }) });
3032
+ }
3033
+ function ea({ error: e }) {
3034
+ return /* @__PURE__ */ c.jsx(qe, { error: e });
3035
+ }
3036
+ const Re = (e) => typeof e == "object" && e !== null && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype, $t = (e, t) => {
3037
+ const n = { ...e };
3038
+ for (const r of Object.keys(t)) {
3039
+ const o = t[r], i = e[r];
3040
+ Nt(o) || Array.isArray(o) || !Re(o) ? n[r] = o : Re(i) ? n[r] = $t(
3041
+ i,
3042
+ o
3043
+ ) : n[r] = o;
3044
+ }
3045
+ return n;
3046
+ }, ta = async (e) => {
3047
+ const t = e.plugins ?? [];
3048
+ let n = e;
3049
+ for (const r of t.filter(dn)) {
3050
+ const o = (s) => $t(n, s), i = await r.transformConfig?.({
3051
+ config: n,
3052
+ merge: o
3053
+ });
3054
+ i && (n = i);
3055
+ }
3056
+ return n;
3057
+ }, ba = Ki, ka = Xi, $a = ea, ja = hn, xa = mn, Za = Mt, Oa = Ce, Sa = Qi, Pa = Ai, Ta = Hi, Ea = ta;
3035
3058
  export {
3036
- ya as Bootstrap,
3037
- wa as BootstrapStatic,
3038
- $a as BuildCheck,
3039
- ba as Head,
3040
- ga as Layout,
3041
- ja as Meta,
3042
- za as RouteGuard,
3043
- _a as RouterError,
3044
- va as ServerError,
3045
- ka as StatusPage
3059
+ ja as Bootstrap,
3060
+ xa as BootstrapStatic,
3061
+ Pa as BuildCheck,
3062
+ Oa as Head,
3063
+ ba as Layout,
3064
+ Ta as Meta,
3065
+ Za as RouteGuard,
3066
+ ka as RouterError,
3067
+ $a as ServerError,
3068
+ Sa as StatusPage,
3069
+ Ea as runPluginTransformConfig
3046
3070
  };
3047
3071
  //# sourceMappingURL=zudoku.__internal.js.map