zudoku 0.0.0-monetization-standalone.zd1543a39 → 0.0.0-monetization-standalone.zada7f04c

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 (93) 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 +1 -1
  4. package/dist/config/create-plugin.js +7 -5
  5. package/dist/config/create-plugin.js.map +1 -1
  6. package/dist/config/loader.js +2 -2
  7. package/dist/config/loader.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/components/Slot.test.js +1 -1
  11. package/dist/lib/components/Slot.test.js.map +1 -1
  12. package/dist/lib/components/Zudoku.d.ts +4 -1
  13. package/dist/lib/components/Zudoku.js +2 -2
  14. package/dist/lib/components/Zudoku.js.map +1 -1
  15. package/dist/lib/components/index.d.ts +3 -1
  16. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  17. package/dist/lib/core/ZudokuContext.js +3 -1
  18. package/dist/lib/core/ZudokuContext.js.map +1 -1
  19. package/dist/lib/core/__internal.d.ts +1 -0
  20. package/dist/lib/core/__internal.js +2 -0
  21. package/dist/lib/core/__internal.js.map +1 -1
  22. package/dist/lib/core/plugins.d.ts +5 -1
  23. package/dist/lib/core/plugins.js.map +1 -1
  24. package/dist/lib/core/transform-config.d.ts +3 -1
  25. package/dist/lib/core/transform-config.js +33 -13
  26. package/dist/lib/core/transform-config.js.map +1 -1
  27. package/dist/lib/core/transform-config.test.d.ts +1 -0
  28. package/dist/lib/core/transform-config.test.js +83 -0
  29. package/dist/lib/core/transform-config.test.js.map +1 -0
  30. package/dist/lib/hooks/useEvent.test.js +1 -1
  31. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  32. package/dist/vite/config.js +5 -2
  33. package/dist/vite/config.js.map +1 -1
  34. package/dist/vite/plugin-config.js +16 -4
  35. package/dist/vite/plugin-config.js.map +1 -1
  36. package/lib/{ClaudeLogo-CUaQXKLK.js → ClaudeLogo-K64Qm6gS.js} +2 -2
  37. package/lib/{ClaudeLogo-CUaQXKLK.js.map → ClaudeLogo-K64Qm6gS.js.map} +1 -1
  38. package/lib/{MdxPage-BiAVpP8K.js → MdxPage-Cr99RARi.js} +5 -5
  39. package/lib/{MdxPage-BiAVpP8K.js.map → MdxPage-Cr99RARi.js.map} +1 -1
  40. package/lib/{OAuthErrorPage-DhJo-O2B.js → OAuthErrorPage-BRXS5AMu.js} +3 -3
  41. package/lib/{OAuthErrorPage-DhJo-O2B.js.map → OAuthErrorPage-BRXS5AMu.js.map} +1 -1
  42. package/lib/{OasProvider-DFMZwyNn.js → OasProvider-sP_SqSM7.js} +2 -2
  43. package/lib/{OasProvider-DFMZwyNn.js.map → OasProvider-sP_SqSM7.js.map} +1 -1
  44. package/lib/{OperationList-CnmLfOuu.js → OperationList-DR0APPhk.js} +5 -5
  45. package/lib/{OperationList-CnmLfOuu.js.map → OperationList-DR0APPhk.js.map} +1 -1
  46. package/lib/{SchemaList-B5ikunUd.js → SchemaList-DgqAAHSI.js} +6 -6
  47. package/lib/{SchemaList-B5ikunUd.js.map → SchemaList-DgqAAHSI.js.map} +1 -1
  48. package/lib/{SchemaView-rjji7zMf.js → SchemaView-7IyQYEqk.js} +3 -3
  49. package/lib/{SchemaView-rjji7zMf.js.map → SchemaView-7IyQYEqk.js.map} +1 -1
  50. package/lib/{SignUp-DHWDXat-.js → SignUp-D3zhMk7q.js} +2 -2
  51. package/lib/{SignUp-DHWDXat-.js.map → SignUp-D3zhMk7q.js.map} +1 -1
  52. package/lib/{Toc-vMbSQCkj.js → Toc-GluXkcIk.js} +2 -2
  53. package/lib/{Toc-vMbSQCkj.js.map → Toc-GluXkcIk.js.map} +1 -1
  54. package/lib/{circular-CLhJAE3S.js → circular-Bunzbpsy.js} +2 -2
  55. package/lib/{circular-CLhJAE3S.js.map → circular-Bunzbpsy.js.map} +1 -1
  56. package/lib/{createServer-BYtu5Pcr.js → createServer-Dl4Xwsm4.js} +4 -4
  57. package/lib/{createServer-BYtu5Pcr.js.map → createServer-Dl4Xwsm4.js.map} +1 -1
  58. package/lib/{errors-DkJIl45d.js → errors-D2NINcVk.js} +2 -2
  59. package/lib/{errors-DkJIl45d.js.map → errors-D2NINcVk.js.map} +1 -1
  60. package/lib/{firebase-CmsW0j7-.js → firebase-BVAmGV_v.js} +10 -10
  61. package/lib/{firebase-CmsW0j7-.js.map → firebase-BVAmGV_v.js.map} +1 -1
  62. package/lib/{index-k0PVZBYl.js → index-BfTLawvZ.js} +7 -7
  63. package/lib/{index-k0PVZBYl.js.map → index-BfTLawvZ.js.map} +1 -1
  64. package/lib/{index-D35F-SCL.js → index-DTjrb36R.js} +2 -2
  65. package/lib/{index-D35F-SCL.js.map → index-DTjrb36R.js.map} +1 -1
  66. package/lib/{index-ofqkdEjL.js → index-DYfX9H7i.js} +34 -29
  67. package/lib/{index-ofqkdEjL.js.map → index-DYfX9H7i.js.map} +1 -1
  68. package/lib/{index.esm-DFzsB75P.js → index.esm-GMDd_9gw.js} +2 -2
  69. package/lib/index.esm-GMDd_9gw.js.map +1 -0
  70. package/lib/zudoku.__internal.js +494 -471
  71. package/lib/zudoku.__internal.js.map +1 -1
  72. package/lib/zudoku.auth-azureb2c.js +3 -3
  73. package/lib/zudoku.auth-clerk.js +1 -1
  74. package/lib/zudoku.auth-firebase.js +3 -3
  75. package/lib/zudoku.auth-openid.js +3 -3
  76. package/lib/zudoku.auth-supabase.js +3 -3
  77. package/lib/zudoku.components.js +1 -1
  78. package/lib/zudoku.plugin-api-catalog.js +2 -2
  79. package/lib/zudoku.plugin-api-keys.js +1 -1
  80. package/lib/zudoku.plugin-markdown.js +1 -1
  81. package/lib/zudoku.plugin-openapi.js +1 -1
  82. package/lib/zudoku.plugins.js.map +1 -1
  83. package/package.json +1 -2
  84. package/src/app/main.tsx +1 -1
  85. package/src/lib/components/Slot.test.tsx +1 -1
  86. package/src/lib/components/Zudoku.tsx +13 -3
  87. package/src/lib/core/ZudokuContext.ts +7 -1
  88. package/src/lib/core/__internal.tsx +2 -0
  89. package/src/lib/core/plugins.ts +7 -3
  90. package/src/lib/core/transform-config.test.tsx +99 -0
  91. package/src/lib/core/transform-config.ts +52 -14
  92. package/src/lib/hooks/useEvent.test.tsx +1 -1
  93. package/lib/index.esm-DFzsB75P.js.map +0 -1
@@ -1,21 +1,22 @@
1
- import { a as Ae, H as Oe } from "./index.esm-B_0dvNjB.js";
1
+ import { a as Ie, H as Se } from "./index.esm-B_0dvNjB.js";
2
2
  import { j as a } from "./jsx-runtime-BzflLqGi.js";
3
- import { b as mt, H as gt } from "./HydrationBoundary-CNF2ZV3E.js";
4
- import { M as Se, e as _t } from "./useSuspenseQuery-CSB_rVek.js";
3
+ import { b as _t, H as vt } from "./HydrationBoundary-CNF2ZV3E.js";
4
+ import { M as Ne, e as wt } from "./useSuspenseQuery-CSB_rVek.js";
5
5
  import * as F from "react";
6
- import { StrictMode as Ne, useEffect as K, useRef as De, useState as vt, Suspense as wt } from "react";
7
- import { n as zt, S as bt, a as Re, b3 as yt, O as kt, d as xt, L as Zt, h as $t, w as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
- import * as Et from "react-dom";
9
- import { B as Ce, R as Pt } from "./RouteGuard-CZuPjknT.js";
10
- import { CircleFadingArrowUpIcon as Tt, LoaderCircleIcon as It, ExternalLink as At, PanelLeftIcon as Ot, UnlinkIcon as St } from "lucide-react";
11
- import { Button as Nt } from "./ui/Button.js";
12
- import { a as Dt, c as P, A as Rt, s as Ct, P as Ut, N as pe, d as Ft, f as Lt, g as Bt, T as Ue, H as Fe, D as Mt, h as Le } from "./index-ofqkdEjL.js";
6
+ import { StrictMode as De, useEffect as K, useRef as Re, useState as zt, Suspense as bt, isValidElement as yt } from "react";
7
+ import { n as kt, S as xt, a as Ce, b3 as Zt, O as $t, d as jt, L as Pt, h as Et, w as Tt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
8
+ import * as At from "react-dom";
9
+ import { B as Ue, R as Ot } from "./RouteGuard-CZuPjknT.js";
10
+ import { CircleFadingArrowUpIcon as It, LoaderCircleIcon as St, ExternalLink as Nt, PanelLeftIcon as Dt, UnlinkIcon as Rt } from "lucide-react";
11
+ import { Button as Ct } from "./ui/Button.js";
12
+ import { a as Ut, c as E, A as Ft, s as Lt, P as Bt, N as pe, d as Mt, f as Wt, g as Vt, T as Fe, H as Le, D as qt, h as Be } from "./index-DYfX9H7i.js";
13
13
  import { c as x } from "./cn-5-Gd1Dss.js";
14
- import { a as G, e as Wt, j as qt } from "./ZudokuContext-CnEI8jPU.js";
15
- import { D as $, a as Vt, b as Ht } from "./Drawer-Ch7927PF.js";
16
- import { VisuallyHidden as Jt } from "@radix-ui/react-visually-hidden";
17
- import { S as Kt } from "./Spinner-CI6bRyZw.js";
18
- import { C as Be } from "./CategoryHeading-DhmodDcq.js";
14
+ import { a as G, e as Ht, j as Jt } from "./ZudokuContext-CnEI8jPU.js";
15
+ import { D as $, a as Kt, b as Gt } from "./Drawer-Ch7927PF.js";
16
+ import { VisuallyHidden as Yt } from "@radix-ui/react-visually-hidden";
17
+ import { S as Qt } from "./Spinner-CI6bRyZw.js";
18
+ import { C as Me } from "./CategoryHeading-DhmodDcq.js";
19
+ import { isTransformConfigPlugin as Xt } from "./zudoku.plugins.js";
19
20
  /**
20
21
  * react-router v7.12.0
21
22
  *
@@ -26,25 +27,25 @@ import { C as Be } from "./CategoryHeading-DhmodDcq.js";
26
27
  *
27
28
  * @license MIT
28
29
  */
29
- function Gt(e) {
30
- return /* @__PURE__ */ F.createElement(zt, { flushSync: Et.flushSync, ...e });
30
+ function en(e) {
31
+ return /* @__PURE__ */ F.createElement(kt, { flushSync: At.flushSync, ...e });
31
32
  }
32
- const Yt = new mt({
33
+ const tn = new _t({
33
34
  defaultOptions: {
34
35
  queries: {
35
36
  staleTime: 1e3 * 60 * 5
36
37
  }
37
38
  }
38
- }), Qt = ({
39
+ }), nn = ({
39
40
  router: e,
40
41
  hydrate: t = !1
41
- }) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: Yt, children: /* @__PURE__ */ a.jsx(gt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Ce, { value: !1, children: /* @__PURE__ */ a.jsx(Ae, { children: /* @__PURE__ */ a.jsx(Gt, { router: e }) }) }) }) }) }), Xt = ({
42
+ }) => /* @__PURE__ */ a.jsx(De, { children: /* @__PURE__ */ a.jsx(Ne, { client: tn, children: /* @__PURE__ */ a.jsx(vt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Ue, { value: !1, children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(en, { router: e }) }) }) }) }) }), rn = ({
42
43
  router: e,
43
44
  context: t,
44
45
  queryClient: n,
45
46
  helmetContext: r,
46
47
  bypassProtection: o = !1
47
- }) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: n, children: /* @__PURE__ */ a.jsx(Ae, { context: r, children: /* @__PURE__ */ a.jsx(Ce, { value: o, children: /* @__PURE__ */ a.jsx(bt, { router: e, context: t }) }) }) }) });
48
+ }) => /* @__PURE__ */ a.jsx(De, { children: /* @__PURE__ */ a.jsx(Ne, { client: n, children: /* @__PURE__ */ a.jsx(Ie, { context: r, children: /* @__PURE__ */ a.jsx(Ue, { value: o, children: /* @__PURE__ */ a.jsx(xt, { router: e, context: t }) }) }) }) });
48
49
  function c(e, t, n) {
49
50
  function r(u, l) {
50
51
  var d;
@@ -77,16 +78,16 @@ class D extends Error {
77
78
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
78
79
  }
79
80
  }
80
- class Me extends Error {
81
+ class We extends Error {
81
82
  constructor(t) {
82
83
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
83
84
  }
84
85
  }
85
- const We = {};
86
- function I(e) {
87
- return We;
86
+ const Ve = {};
87
+ function A(e) {
88
+ return Ve;
88
89
  }
89
- function en(e) {
90
+ function on(e) {
90
91
  const t = Object.values(e).filter((r) => typeof r == "number");
91
92
  return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
92
93
  }
@@ -127,7 +128,7 @@ function h(e, t, n) {
127
128
  configurable: !0
128
129
  });
129
130
  }
130
- function O(e, t, n) {
131
+ function I(e, t, n) {
131
132
  Object.defineProperty(e, t, {
132
133
  value: n,
133
134
  writable: !0,
@@ -148,10 +149,10 @@ function me(e) {
148
149
  }
149
150
  const qe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
150
151
  };
151
- function V(e) {
152
+ function q(e) {
152
153
  return typeof e == "object" && e !== null && !Array.isArray(e);
153
154
  }
154
- const tn = se(() => {
155
+ const sn = se(() => {
155
156
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
156
157
  return !1;
157
158
  try {
@@ -162,18 +163,18 @@ const tn = se(() => {
162
163
  }
163
164
  });
164
165
  function C(e) {
165
- if (V(e) === !1)
166
+ if (q(e) === !1)
166
167
  return !1;
167
168
  const t = e.constructor;
168
169
  if (t === void 0)
169
170
  return !0;
170
171
  const n = t.prototype;
171
- return !(V(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
172
+ return !(q(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
172
173
  }
173
- function Ve(e) {
174
+ function He(e) {
174
175
  return C(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
175
176
  }
176
- const nn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
177
+ const an = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
177
178
  function Y(e) {
178
179
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
179
180
  }
@@ -194,10 +195,10 @@ function f(e) {
194
195
  }
195
196
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
196
197
  }
197
- function rn(e) {
198
+ function cn(e) {
198
199
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
199
200
  }
200
- function on(e, t) {
201
+ function un(e, t) {
201
202
  const n = e._zod.def, r = S(e._zod.def, {
202
203
  get shape() {
203
204
  const o = {};
@@ -206,13 +207,13 @@ function on(e, t) {
206
207
  throw new Error(`Unrecognized key: "${s}"`);
207
208
  t[s] && (o[s] = n.shape[s]);
208
209
  }
209
- return O(this, "shape", o), o;
210
+ return I(this, "shape", o), o;
210
211
  },
211
212
  checks: []
212
213
  });
213
214
  return T(e, r);
214
215
  }
215
- function sn(e, t) {
216
+ function ln(e, t) {
216
217
  const n = e._zod.def, r = S(e._zod.def, {
217
218
  get shape() {
218
219
  const o = { ...e._zod.def.shape };
@@ -221,13 +222,13 @@ function sn(e, t) {
221
222
  throw new Error(`Unrecognized key: "${s}"`);
222
223
  t[s] && delete o[s];
223
224
  }
224
- return O(this, "shape", o), o;
225
+ return I(this, "shape", o), o;
225
226
  },
226
227
  checks: []
227
228
  });
228
229
  return T(e, r);
229
230
  }
230
- function an(e, t) {
231
+ function dn(e, t) {
231
232
  if (!C(t))
232
233
  throw new Error("Invalid input to extend: expected a plain object");
233
234
  const n = e._zod.def.checks;
@@ -236,30 +237,30 @@ function an(e, t) {
236
237
  const o = S(e._zod.def, {
237
238
  get shape() {
238
239
  const s = { ...e._zod.def.shape, ...t };
239
- return O(this, "shape", s), s;
240
+ return I(this, "shape", s), s;
240
241
  },
241
242
  checks: []
242
243
  });
243
244
  return T(e, o);
244
245
  }
245
- function cn(e, t) {
246
+ function fn(e, t) {
246
247
  if (!C(t))
247
248
  throw new Error("Invalid input to safeExtend: expected a plain object");
248
249
  const n = {
249
250
  ...e._zod.def,
250
251
  get shape() {
251
252
  const r = { ...e._zod.def.shape, ...t };
252
- return O(this, "shape", r), r;
253
+ return I(this, "shape", r), r;
253
254
  },
254
255
  checks: e._zod.def.checks
255
256
  };
256
257
  return T(e, n);
257
258
  }
258
- function un(e, t) {
259
+ function pn(e, t) {
259
260
  const n = S(e._zod.def, {
260
261
  get shape() {
261
262
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
262
- return O(this, "shape", r), r;
263
+ return I(this, "shape", r), r;
263
264
  },
264
265
  get catchall() {
265
266
  return t._zod.def.catchall;
@@ -269,7 +270,7 @@ function un(e, t) {
269
270
  });
270
271
  return T(e, n);
271
272
  }
272
- function ln(e, t, n) {
273
+ function hn(e, t, n) {
273
274
  const r = S(t._zod.def, {
274
275
  get shape() {
275
276
  const o = t._zod.def.shape, s = { ...o };
@@ -288,13 +289,13 @@ function ln(e, t, n) {
288
289
  type: "optional",
289
290
  innerType: o[i]
290
291
  }) : o[i];
291
- return O(this, "shape", s), s;
292
+ return I(this, "shape", s), s;
292
293
  },
293
294
  checks: []
294
295
  });
295
296
  return T(t, r);
296
297
  }
297
- function dn(e, t, n) {
298
+ function mn(e, t, n) {
298
299
  const r = S(t._zod.def, {
299
300
  get shape() {
300
301
  const o = t._zod.def.shape, s = { ...o };
@@ -313,7 +314,7 @@ function dn(e, t, n) {
313
314
  type: "nonoptional",
314
315
  innerType: o[i]
315
316
  });
316
- return O(this, "shape", s), s;
317
+ return I(this, "shape", s), s;
317
318
  },
318
319
  checks: []
319
320
  });
@@ -327,7 +328,7 @@ function N(e, t = 0) {
327
328
  return !0;
328
329
  return !1;
329
330
  }
330
- function He(e, t) {
331
+ function Je(e, t) {
331
332
  return t.map((n) => {
332
333
  var r;
333
334
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -336,7 +337,7 @@ function He(e, t) {
336
337
  function B(e) {
337
338
  return typeof e == "string" ? e : e?.message;
338
339
  }
339
- function A(e, t, n) {
340
+ function O(e, t, n) {
340
341
  const r = { ...e, path: e.path ?? [] };
341
342
  if (!e.message) {
342
343
  const o = B(e.inst?._zod.def?.error?.(e)) ?? B(t?.error?.(e)) ?? B(n.customError?.(e)) ?? B(n.localeError?.(e)) ?? "Invalid input";
@@ -356,7 +357,7 @@ function U(...e) {
356
357
  inst: r
357
358
  } : { ...t };
358
359
  }
359
- const Je = (e, t) => {
360
+ const Ke = (e, t) => {
360
361
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
361
362
  value: e._zod,
362
363
  enumerable: !1
@@ -367,14 +368,14 @@ const Je = (e, t) => {
367
368
  value: () => e.message,
368
369
  enumerable: !1
369
370
  });
370
- }, Ke = c("$ZodError", Je), Ge = c("$ZodError", Je, { Parent: Error });
371
- function fn(e, t = (n) => n.message) {
371
+ }, Ge = c("$ZodError", Ke), Ye = c("$ZodError", Ke, { Parent: Error });
372
+ function gn(e, t = (n) => n.message) {
372
373
  const n = {}, r = [];
373
374
  for (const o of e.issues)
374
375
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
375
376
  return { formErrors: r, fieldErrors: n };
376
377
  }
377
- function pn(e, t = (n) => n.message) {
378
+ function _n(e, t = (n) => n.message) {
378
379
  const n = { _errors: [] }, r = (o) => {
379
380
  for (const s of o.issues)
380
381
  if (s.code === "invalid_union" && s.errors.length)
@@ -400,7 +401,7 @@ const ue = (e) => (t, n, r, o) => {
400
401
  if (i instanceof Promise)
401
402
  throw new D();
402
403
  if (i.issues.length) {
403
- const u = new (o?.Err ?? e)(i.issues.map((l) => A(l, s, I())));
404
+ const u = new (o?.Err ?? e)(i.issues.map((l) => O(l, s, A())));
404
405
  throw qe(u, o?.callee), u;
405
406
  }
406
407
  return i.value;
@@ -408,7 +409,7 @@ const ue = (e) => (t, n, r, o) => {
408
409
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
409
410
  let i = t._zod.run({ value: n, issues: [] }, s);
410
411
  if (i instanceof Promise && (i = await i), i.issues.length) {
411
- const u = new (o?.Err ?? e)(i.issues.map((l) => A(l, s, I())));
412
+ const u = new (o?.Err ?? e)(i.issues.map((l) => O(l, s, A())));
412
413
  throw qe(u, o?.callee), u;
413
414
  }
414
415
  return i.value;
@@ -418,52 +419,52 @@ const ue = (e) => (t, n, r, o) => {
418
419
  throw new D();
419
420
  return s.issues.length ? {
420
421
  success: !1,
421
- error: new (e ?? Ke)(s.issues.map((i) => A(i, o, I())))
422
+ error: new (e ?? Ge)(s.issues.map((i) => O(i, o, A())))
422
423
  } : { success: !0, data: s.value };
423
- }, hn = /* @__PURE__ */ Q(Ge), X = (e) => async (t, n, r) => {
424
+ }, vn = /* @__PURE__ */ Q(Ye), X = (e) => async (t, n, r) => {
424
425
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
425
426
  let s = t._zod.run({ value: n, issues: [] }, o);
426
427
  return s instanceof Promise && (s = await s), s.issues.length ? {
427
428
  success: !1,
428
- error: new e(s.issues.map((i) => A(i, o, I())))
429
+ error: new e(s.issues.map((i) => O(i, o, A())))
429
430
  } : { success: !0, data: s.value };
430
- }, mn = /* @__PURE__ */ X(Ge), gn = (e) => (t, n, r) => {
431
+ }, wn = /* @__PURE__ */ X(Ye), zn = (e) => (t, n, r) => {
431
432
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
432
433
  return ue(e)(t, n, o);
433
- }, _n = (e) => (t, n, r) => ue(e)(t, n, r), vn = (e) => async (t, n, r) => {
434
+ }, bn = (e) => (t, n, r) => ue(e)(t, n, r), yn = (e) => async (t, n, r) => {
434
435
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
435
436
  return le(e)(t, n, o);
436
- }, wn = (e) => async (t, n, r) => le(e)(t, n, r), zn = (e) => (t, n, r) => {
437
+ }, kn = (e) => async (t, n, r) => le(e)(t, n, r), xn = (e) => (t, n, r) => {
437
438
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
438
439
  return Q(e)(t, n, o);
439
- }, bn = (e) => (t, n, r) => Q(e)(t, n, r), yn = (e) => async (t, n, r) => {
440
+ }, Zn = (e) => (t, n, r) => Q(e)(t, n, r), $n = (e) => async (t, n, r) => {
440
441
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
441
442
  return X(e)(t, n, o);
442
- }, kn = (e) => async (t, n, r) => X(e)(t, n, r), xn = /^[cC][^\s-]{8,}$/, Zn = /^[0-9a-z]+$/, $n = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, jn = /^[0-9a-vA-V]{20}$/, En = /^[A-Za-z0-9]{27}$/, Pn = /^[a-zA-Z0-9_-]{21}$/, Tn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, In = /^([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})$/, ge = (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)$/, An = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, On = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
443
- function Sn() {
444
- return new RegExp(On, "u");
443
+ }, jn = (e) => async (t, n, r) => X(e)(t, n, r), Pn = /^[cC][^\s-]{8,}$/, En = /^[0-9a-z]+$/, Tn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, An = /^[0-9a-vA-V]{20}$/, On = /^[A-Za-z0-9]{27}$/, In = /^[a-zA-Z0-9_-]{21}$/, Sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Nn = /^([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})$/, ge = (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)$/, Dn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Rn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
444
+ function Cn() {
445
+ return new RegExp(Rn, "u");
445
446
  }
446
- const Nn = /^(?:(?: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])$/, Dn = /^(([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}|:))$/, Rn = /^((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])$/, Cn = /^(([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])$/, Un = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Fn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ln = /^\+(?:[0-9]){6,14}[0-9]$/, Qe = "(?:(?:\\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])))", Bn = /* @__PURE__ */ new RegExp(`^${Qe}$`);
447
- function Xe(e) {
447
+ const Un = /^(?:(?: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])$/, Fn = /^(([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}|:))$/, Ln = /^((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])$/, Bn = /^(([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])$/, Mn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Qe = /^[A-Za-z0-9_-]*$/, Wn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Vn = /^\+(?:[0-9]){6,14}[0-9]$/, Xe = "(?:(?:\\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])))", qn = /* @__PURE__ */ new RegExp(`^${Xe}$`);
448
+ function et(e) {
448
449
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
449
450
  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+)?)?`;
450
451
  }
451
- function Mn(e) {
452
- return new RegExp(`^${Xe(e)}$`);
452
+ function Hn(e) {
453
+ return new RegExp(`^${et(e)}$`);
453
454
  }
454
- function Wn(e) {
455
- const t = Xe({ precision: e.precision }), n = ["Z"];
455
+ function Jn(e) {
456
+ const t = et({ precision: e.precision }), n = ["Z"];
456
457
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
457
458
  const r = `${t}(?:${n.join("|")})`;
458
- return new RegExp(`^${Qe}T(?:${r})$`);
459
+ return new RegExp(`^${Xe}T(?:${r})$`);
459
460
  }
460
- const qn = (e) => {
461
+ const Kn = (e) => {
461
462
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
462
463
  return new RegExp(`^${t}$`);
463
- }, Vn = /^[^A-Z]*$/, Hn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
464
+ }, Gn = /^[^A-Z]*$/, Yn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
464
465
  var n;
465
466
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
466
- }), Jn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
467
+ }), Qn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
467
468
  var n;
468
469
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
469
470
  const o = r.value;
@@ -486,7 +487,7 @@ const qn = (e) => {
486
487
  continue: !t.abort
487
488
  });
488
489
  };
489
- }), Kn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
490
+ }), Xn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
490
491
  var n;
491
492
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
492
493
  const o = r.value;
@@ -509,7 +510,7 @@ const qn = (e) => {
509
510
  continue: !t.abort
510
511
  });
511
512
  };
512
- }), Gn = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
513
+ }), er = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
513
514
  var n;
514
515
  j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
515
516
  const o = r.value;
@@ -549,7 +550,7 @@ const qn = (e) => {
549
550
  });
550
551
  }) : (r = e._zod).check ?? (r.check = () => {
551
552
  });
552
- }), Yn = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
553
+ }), tr = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
553
554
  ee.init(e, t), e._zod.check = (n) => {
554
555
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
555
556
  origin: "string",
@@ -561,11 +562,11 @@ const qn = (e) => {
561
562
  continue: !t.abort
562
563
  });
563
564
  };
564
- }), Qn = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
565
- t.pattern ?? (t.pattern = Vn), ee.init(e, t);
566
- }), Xn = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
567
- t.pattern ?? (t.pattern = Hn), ee.init(e, t);
568
- }), er = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
565
+ }), nr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
566
+ t.pattern ?? (t.pattern = Gn), ee.init(e, t);
567
+ }), rr = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
568
+ t.pattern ?? (t.pattern = Yn), ee.init(e, t);
569
+ }), or = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
569
570
  j.init(e, t);
570
571
  const n = Y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
571
572
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -582,7 +583,7 @@ const qn = (e) => {
582
583
  continue: !t.abort
583
584
  });
584
585
  };
585
- }), tr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
586
+ }), sr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
586
587
  j.init(e, t);
587
588
  const n = new RegExp(`^${Y(t.prefix)}.*`);
588
589
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -599,7 +600,7 @@ const qn = (e) => {
599
600
  continue: !t.abort
600
601
  });
601
602
  };
602
- }), nr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
603
+ }), ir = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
603
604
  j.init(e, t);
604
605
  const n = new RegExp(`.*${Y(t.suffix)}$`);
605
606
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -616,12 +617,12 @@ const qn = (e) => {
616
617
  continue: !t.abort
617
618
  });
618
619
  };
619
- }), rr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
620
+ }), ar = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
620
621
  j.init(e, t), e._zod.check = (n) => {
621
622
  n.value = t.tx(n.value);
622
623
  };
623
624
  });
624
- class or {
625
+ class cr {
625
626
  constructor(t = []) {
626
627
  this.content = [], this.indent = 0, this && (this.args = t);
627
628
  }
@@ -644,13 +645,13 @@ class or {
644
645
  `));
645
646
  }
646
647
  }
647
- const sr = {
648
+ const ur = {
648
649
  major: 4,
649
650
  minor: 1,
650
651
  patch: 12
651
652
  }, v = /* @__PURE__ */ c("$ZodType", (e, t) => {
652
653
  var n;
653
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = sr;
654
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ur;
654
655
  const r = [...e._zod.def.checks ?? []];
655
656
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
656
657
  for (const o of r)
@@ -713,17 +714,17 @@ const sr = {
713
714
  e["~standard"] = {
714
715
  validate: (o) => {
715
716
  try {
716
- const s = hn(e, o);
717
+ const s = vn(e, o);
717
718
  return s.success ? { value: s.data } : { issues: s.error?.issues };
718
719
  } catch {
719
- return mn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
720
+ return wn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
720
721
  }
721
722
  },
722
723
  vendor: "zod",
723
724
  version: 1
724
725
  };
725
726
  }), de = /* @__PURE__ */ c("$ZodString", (e, t) => {
726
- v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? qn(e._zod.bag), e._zod.parse = (n, r) => {
727
+ v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Kn(e._zod.bag), e._zod.parse = (n, r) => {
727
728
  if (t.coerce)
728
729
  try {
729
730
  n.value = String(n.value);
@@ -738,9 +739,9 @@ const sr = {
738
739
  };
739
740
  }), m = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
740
741
  ee.init(e, t), de.init(e, t);
741
- }), ir = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
742
- t.pattern ?? (t.pattern = In), m.init(e, t);
743
- }), ar = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
742
+ }), lr = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
743
+ t.pattern ?? (t.pattern = Nn), m.init(e, t);
744
+ }), dr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
744
745
  if (t.version) {
745
746
  const r = {
746
747
  v1: 1,
@@ -758,9 +759,9 @@ const sr = {
758
759
  } else
759
760
  t.pattern ?? (t.pattern = ge());
760
761
  m.init(e, t);
761
- }), cr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
762
- t.pattern ?? (t.pattern = An), m.init(e, t);
763
- }), ur = /* @__PURE__ */ c("$ZodURL", (e, t) => {
762
+ }), fr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
763
+ t.pattern ?? (t.pattern = Dn), m.init(e, t);
764
+ }), pr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
764
765
  m.init(e, t), e._zod.check = (n) => {
765
766
  try {
766
767
  const r = n.value.trim(), o = new URL(r);
@@ -768,7 +769,7 @@ const sr = {
768
769
  code: "invalid_format",
769
770
  format: "url",
770
771
  note: "Invalid hostname",
771
- pattern: Fn.source,
772
+ pattern: Wn.source,
772
773
  input: n.value,
773
774
  inst: e,
774
775
  continue: !t.abort
@@ -792,35 +793,35 @@ const sr = {
792
793
  });
793
794
  }
794
795
  };
795
- }), lr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
796
- t.pattern ?? (t.pattern = Sn()), m.init(e, t);
797
- }), dr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
796
+ }), hr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
797
+ t.pattern ?? (t.pattern = Cn()), m.init(e, t);
798
+ }), mr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
799
+ t.pattern ?? (t.pattern = In), m.init(e, t);
800
+ }), gr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
798
801
  t.pattern ?? (t.pattern = Pn), m.init(e, t);
799
- }), fr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
800
- t.pattern ?? (t.pattern = xn), m.init(e, t);
801
- }), pr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
802
- t.pattern ?? (t.pattern = Zn), m.init(e, t);
803
- }), hr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
804
- t.pattern ?? (t.pattern = $n), m.init(e, t);
805
- }), mr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
806
- t.pattern ?? (t.pattern = jn), m.init(e, t);
807
- }), gr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
802
+ }), _r = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
808
803
  t.pattern ?? (t.pattern = En), m.init(e, t);
809
- }), _r = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
810
- t.pattern ?? (t.pattern = Wn(t)), m.init(e, t);
811
- }), vr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
812
- t.pattern ?? (t.pattern = Bn), m.init(e, t);
813
- }), wr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
814
- t.pattern ?? (t.pattern = Mn(t)), m.init(e, t);
815
- }), zr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
804
+ }), vr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
816
805
  t.pattern ?? (t.pattern = Tn), m.init(e, t);
817
- }), br = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
818
- t.pattern ?? (t.pattern = Nn), m.init(e, t), e._zod.onattach.push((n) => {
806
+ }), wr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
807
+ t.pattern ?? (t.pattern = An), m.init(e, t);
808
+ }), zr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
809
+ t.pattern ?? (t.pattern = On), m.init(e, t);
810
+ }), br = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
811
+ t.pattern ?? (t.pattern = Jn(t)), m.init(e, t);
812
+ }), yr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
813
+ t.pattern ?? (t.pattern = qn), m.init(e, t);
814
+ }), kr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
815
+ t.pattern ?? (t.pattern = Hn(t)), m.init(e, t);
816
+ }), xr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
817
+ t.pattern ?? (t.pattern = Sn), m.init(e, t);
818
+ }), Zr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
819
+ t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.onattach.push((n) => {
819
820
  const r = n._zod.bag;
820
821
  r.format = "ipv4";
821
822
  });
822
- }), yr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
823
- t.pattern ?? (t.pattern = Dn), m.init(e, t), e._zod.onattach.push((n) => {
823
+ }), $r = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
824
+ t.pattern ?? (t.pattern = Fn), m.init(e, t), e._zod.onattach.push((n) => {
824
825
  const r = n._zod.bag;
825
826
  r.format = "ipv6";
826
827
  }), e._zod.check = (n) => {
@@ -836,10 +837,10 @@ const sr = {
836
837
  });
837
838
  }
838
839
  };
839
- }), kr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
840
- t.pattern ?? (t.pattern = Rn), m.init(e, t);
841
- }), xr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
842
- t.pattern ?? (t.pattern = Cn), m.init(e, t), e._zod.check = (n) => {
840
+ }), jr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
841
+ t.pattern ?? (t.pattern = Ln), m.init(e, t);
842
+ }), Pr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
843
+ t.pattern ?? (t.pattern = Bn), m.init(e, t), e._zod.check = (n) => {
843
844
  const r = n.value.split("/");
844
845
  try {
845
846
  if (r.length !== 2)
@@ -864,7 +865,7 @@ const sr = {
864
865
  }
865
866
  };
866
867
  });
867
- function et(e) {
868
+ function tt(e) {
868
869
  if (e === "")
869
870
  return !0;
870
871
  if (e.length % 4 !== 0)
@@ -875,11 +876,11 @@ function et(e) {
875
876
  return !1;
876
877
  }
877
878
  }
878
- const Zr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
879
- t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.onattach.push((n) => {
879
+ const Er = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
880
+ t.pattern ?? (t.pattern = Mn), m.init(e, t), e._zod.onattach.push((n) => {
880
881
  n._zod.bag.contentEncoding = "base64";
881
882
  }), e._zod.check = (n) => {
882
- et(n.value) || n.issues.push({
883
+ tt(n.value) || n.issues.push({
883
884
  code: "invalid_format",
884
885
  format: "base64",
885
886
  input: n.value,
@@ -888,17 +889,17 @@ const Zr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
888
889
  });
889
890
  };
890
891
  });
891
- function $r(e) {
892
- if (!Ye.test(e))
892
+ function Tr(e) {
893
+ if (!Qe.test(e))
893
894
  return !1;
894
895
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
895
- return et(n);
896
+ return tt(n);
896
897
  }
897
- const jr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
898
- t.pattern ?? (t.pattern = Ye), m.init(e, t), e._zod.onattach.push((n) => {
898
+ const Ar = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
899
+ t.pattern ?? (t.pattern = Qe), m.init(e, t), e._zod.onattach.push((n) => {
899
900
  n._zod.bag.contentEncoding = "base64url";
900
901
  }), e._zod.check = (n) => {
901
- $r(n.value) || n.issues.push({
902
+ Tr(n.value) || n.issues.push({
902
903
  code: "invalid_format",
903
904
  format: "base64url",
904
905
  input: n.value,
@@ -906,10 +907,10 @@ const jr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
906
907
  continue: !t.abort
907
908
  });
908
909
  };
909
- }), Er = /* @__PURE__ */ c("$ZodE164", (e, t) => {
910
- t.pattern ?? (t.pattern = Ln), m.init(e, t);
910
+ }), Or = /* @__PURE__ */ c("$ZodE164", (e, t) => {
911
+ t.pattern ?? (t.pattern = Vn), m.init(e, t);
911
912
  });
912
- function Pr(e, t = null) {
913
+ function Ir(e, t = null) {
913
914
  try {
914
915
  const n = e.split(".");
915
916
  if (n.length !== 3)
@@ -923,9 +924,9 @@ function Pr(e, t = null) {
923
924
  return !1;
924
925
  }
925
926
  }
926
- const Tr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
927
+ const Sr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
927
928
  m.init(e, t), e._zod.check = (n) => {
928
- Pr(n.value, t.alg) || n.issues.push({
929
+ Ir(n.value, t.alg) || n.issues.push({
929
930
  code: "invalid_format",
930
931
  format: "jwt",
931
932
  input: n.value,
@@ -933,9 +934,9 @@ const Tr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
933
934
  continue: !t.abort
934
935
  });
935
936
  };
936
- }), Ir = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
937
+ }), Nr = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
937
938
  v.init(e, t), e._zod.parse = (n) => n;
938
- }), Ar = /* @__PURE__ */ c("$ZodNever", (e, t) => {
939
+ }), Dr = /* @__PURE__ */ c("$ZodNever", (e, t) => {
939
940
  v.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
940
941
  expected: "never",
941
942
  code: "invalid_type",
@@ -944,9 +945,9 @@ const Tr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
944
945
  }), n);
945
946
  });
946
947
  function _e(e, t, n) {
947
- e.issues.length && t.issues.push(...He(n, e.issues)), t.value[n] = e.value;
948
+ e.issues.length && t.issues.push(...Je(n, e.issues)), t.value[n] = e.value;
948
949
  }
949
- const Or = /* @__PURE__ */ c("$ZodArray", (e, t) => {
950
+ const Rr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
950
951
  v.init(e, t), e._zod.parse = (n, r) => {
951
952
  const o = n.value;
952
953
  if (!Array.isArray(o))
@@ -969,14 +970,14 @@ const Or = /* @__PURE__ */ c("$ZodArray", (e, t) => {
969
970
  };
970
971
  });
971
972
  function H(e, t, n, r) {
972
- e.issues.length && t.issues.push(...He(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
973
+ e.issues.length && t.issues.push(...Je(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
973
974
  }
974
- function tt(e) {
975
+ function nt(e) {
975
976
  const t = Object.keys(e.shape);
976
977
  for (const r of t)
977
978
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
978
979
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
979
- const n = rn(e.shape);
980
+ const n = cn(e.shape);
980
981
  return {
981
982
  ...e,
982
983
  keys: t,
@@ -985,7 +986,7 @@ function tt(e) {
985
986
  optionalKeys: new Set(n)
986
987
  };
987
988
  }
988
- function nt(e, t, n, r, o, s) {
989
+ function rt(e, t, n, r, o, s) {
989
990
  const i = [], u = o.keySet, l = o.catchall._zod, d = l.def.type;
990
991
  for (const p of Object.keys(t)) {
991
992
  if (u.has(p))
@@ -1004,7 +1005,7 @@ function nt(e, t, n, r, o, s) {
1004
1005
  inst: s
1005
1006
  }), e.length ? Promise.all(e).then(() => n) : n;
1006
1007
  }
1007
- const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1008
+ const Cr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1008
1009
  if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1009
1010
  const u = t.shape;
1010
1011
  Object.defineProperty(t, "shape", {
@@ -1016,7 +1017,7 @@ const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1016
1017
  }
1017
1018
  });
1018
1019
  }
1019
- const r = se(() => tt(t));
1020
+ const r = se(() => nt(t));
1020
1021
  h(e._zod, "propValues", () => {
1021
1022
  const u = t.shape, l = {};
1022
1023
  for (const d in u) {
@@ -1029,7 +1030,7 @@ const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1029
1030
  }
1030
1031
  return l;
1031
1032
  });
1032
- const o = V, s = t.catchall;
1033
+ const o = q, s = t.catchall;
1033
1034
  let i;
1034
1035
  e._zod.parse = (u, l) => {
1035
1036
  i ?? (i = r.value);
@@ -1047,24 +1048,24 @@ const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1047
1048
  const y = b[_]._zod.run({ value: d[_], issues: [] }, l);
1048
1049
  y instanceof Promise ? p.push(y.then((te) => H(te, u, _, d))) : H(y, u, _, d);
1049
1050
  }
1050
- return s ? nt(p, d, u, l, r.value, e) : p.length ? Promise.all(p).then(() => u) : u;
1051
+ return s ? rt(p, d, u, l, r.value, e) : p.length ? Promise.all(p).then(() => u) : u;
1051
1052
  };
1052
- }), Nr = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1053
- Sr.init(e, t);
1054
- const n = e._zod.parse, r = se(() => tt(t)), o = (_) => {
1055
- const w = new or(["shape", "payload", "ctx"]), y = r.value, te = (E) => {
1056
- const Z = me(E);
1053
+ }), Ur = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1054
+ Cr.init(e, t);
1055
+ const n = e._zod.parse, r = se(() => nt(t)), o = (_) => {
1056
+ const w = new cr(["shape", "payload", "ctx"]), y = r.value, te = (P) => {
1057
+ const Z = me(P);
1057
1058
  return `shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`;
1058
1059
  };
1059
1060
  w.write("const input = payload.value;");
1060
1061
  const fe = /* @__PURE__ */ Object.create(null);
1061
- let pt = 0;
1062
- for (const E of y.keys)
1063
- fe[E] = `key_${pt++}`;
1062
+ let mt = 0;
1063
+ for (const P of y.keys)
1064
+ fe[P] = `key_${mt++}`;
1064
1065
  w.write("const newResult = {};");
1065
- for (const E of y.keys) {
1066
- const Z = fe[E], R = me(E);
1067
- w.write(`const ${Z} = ${te(E)};`), w.write(`
1066
+ for (const P of y.keys) {
1067
+ const Z = fe[P], R = me(P);
1068
+ w.write(`const ${Z} = ${te(P)};`), w.write(`
1068
1069
  if (${Z}.issues.length) {
1069
1070
  payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({
1070
1071
  ...iss,
@@ -1084,16 +1085,16 @@ const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1084
1085
  `);
1085
1086
  }
1086
1087
  w.write("payload.value = newResult;"), w.write("return payload;");
1087
- const ht = w.compile();
1088
- return (E, Z) => ht(_, E, Z);
1088
+ const gt = w.compile();
1089
+ return (P, Z) => gt(_, P, Z);
1089
1090
  };
1090
1091
  let s;
1091
- const i = V, u = !We.jitless, d = u && tn.value, p = t.catchall;
1092
+ const i = q, u = !Ve.jitless, d = u && sn.value, p = t.catchall;
1092
1093
  let b;
1093
1094
  e._zod.parse = (_, w) => {
1094
1095
  b ?? (b = r.value);
1095
1096
  const y = _.value;
1096
- return i(y) ? u && d && w?.async === !1 && w.jitless !== !0 ? (s || (s = o(t.shape)), _ = s(_, w), p ? nt([], y, _, w, b, e) : _) : n(_, w) : (_.issues.push({
1097
+ return i(y) ? u && d && w?.async === !1 && w.jitless !== !0 ? (s || (s = o(t.shape)), _ = s(_, w), p ? rt([], y, _, w, b, e) : _) : n(_, w) : (_.issues.push({
1097
1098
  expected: "object",
1098
1099
  code: "invalid_type",
1099
1100
  input: y,
@@ -1110,10 +1111,10 @@ function ve(e, t, n, r) {
1110
1111
  code: "invalid_union",
1111
1112
  input: t.value,
1112
1113
  inst: n,
1113
- errors: e.map((s) => s.issues.map((i) => A(i, r, I())))
1114
+ errors: e.map((s) => s.issues.map((i) => O(i, r, A())))
1114
1115
  }), t);
1115
1116
  }
1116
- const Dr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1117
+ const Fr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1117
1118
  v.init(e, t), h(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), h(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), h(e._zod, "values", () => {
1118
1119
  if (t.options.every((o) => o._zod.values))
1119
1120
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -1144,7 +1145,7 @@ const Dr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1144
1145
  }
1145
1146
  return i ? Promise.all(u).then((l) => ve(l, o, e, s)) : ve(u, o, e, s);
1146
1147
  };
1147
- }), Rr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1148
+ }), Lr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1148
1149
  v.init(e, t), e._zod.parse = (n, r) => {
1149
1150
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1150
1151
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([l, d]) => we(n, l, d)) : we(n, s, i);
@@ -1193,10 +1194,10 @@ function we(e, t, n) {
1193
1194
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1194
1195
  return e.value = r.data, e;
1195
1196
  }
1196
- const Cr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1197
+ const Br = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1197
1198
  v.init(e, t);
1198
- const n = en(t.entries), r = new Set(n);
1199
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => nn.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1199
+ const n = on(t.entries), r = new Set(n);
1200
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => an.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1200
1201
  const i = o.value;
1201
1202
  return r.has(i) || o.issues.push({
1202
1203
  code: "invalid_value",
@@ -1205,10 +1206,10 @@ const Cr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1205
1206
  inst: e
1206
1207
  }), o;
1207
1208
  };
1208
- }), Ur = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1209
+ }), Mr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1209
1210
  v.init(e, t), e._zod.parse = (n, r) => {
1210
1211
  if (r.direction === "backward")
1211
- throw new Me(e.constructor.name);
1212
+ throw new We(e.constructor.name);
1212
1213
  const o = t.transform(n.value, n);
1213
1214
  if (r.async)
1214
1215
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
@@ -1220,7 +1221,7 @@ const Cr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1220
1221
  function ze(e, t) {
1221
1222
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1222
1223
  }
1223
- const Fr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1224
+ const Wr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1224
1225
  v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), h(e._zod, "pattern", () => {
1225
1226
  const n = t.innerType._zod.pattern;
1226
1227
  return n ? new RegExp(`^(${ae(n.source)})?$`) : void 0;
@@ -1231,12 +1232,12 @@ const Fr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1231
1232
  }
1232
1233
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1233
1234
  };
1234
- }), Lr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1235
+ }), Vr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1235
1236
  v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "pattern", () => {
1236
1237
  const n = t.innerType._zod.pattern;
1237
1238
  return n ? new RegExp(`^(${ae(n.source)}|null)$`) : void 0;
1238
1239
  }), h(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);
1239
- }), Br = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1240
+ }), qr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1240
1241
  v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1241
1242
  if (r.direction === "backward")
1242
1243
  return t.innerType._zod.run(n, r);
@@ -1249,9 +1250,9 @@ const Fr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1249
1250
  function be(e, t) {
1250
1251
  return e.value === void 0 && (e.value = t.defaultValue), e;
1251
1252
  }
1252
- const Mr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1253
+ const Hr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1253
1254
  v.init(e, t), e._zod.optin = "optional", h(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));
1254
- }), Wr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1255
+ }), Jr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1255
1256
  v.init(e, t), h(e._zod, "values", () => {
1256
1257
  const n = t.innerType._zod.values;
1257
1258
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -1268,7 +1269,7 @@ function ye(e, t) {
1268
1269
  inst: t
1269
1270
  }), e;
1270
1271
  }
1271
- const qr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1272
+ const Kr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1272
1273
  v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1273
1274
  if (r.direction === "backward")
1274
1275
  return t.innerType._zod.run(n, r);
@@ -1276,18 +1277,18 @@ const qr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1276
1277
  return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
1277
1278
  ...n,
1278
1279
  error: {
1279
- issues: s.issues.map((i) => A(i, r, I()))
1280
+ issues: s.issues.map((i) => O(i, r, A()))
1280
1281
  },
1281
1282
  input: n.value
1282
1283
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1283
1284
  ...n,
1284
1285
  error: {
1285
- issues: o.issues.map((s) => A(s, r, I()))
1286
+ issues: o.issues.map((s) => O(s, r, A()))
1286
1287
  },
1287
1288
  input: n.value
1288
1289
  }), n.issues = []), n);
1289
1290
  };
1290
- }), Vr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1291
+ }), Gr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1291
1292
  v.init(e, t), h(e._zod, "values", () => t.in._zod.values), h(e._zod, "optin", () => t.in._zod.optin), h(e._zod, "optout", () => t.out._zod.optout), h(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1292
1293
  if (r.direction === "backward") {
1293
1294
  const s = t.out._zod.run(n, r);
@@ -1300,7 +1301,7 @@ const qr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1300
1301
  function M(e, t, n) {
1301
1302
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1302
1303
  }
1303
- const Hr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1304
+ const Yr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1304
1305
  v.init(e, t), h(e._zod, "propValues", () => t.innerType._zod.propValues), h(e._zod, "values", () => t.innerType._zod.values), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1305
1306
  if (r.direction === "backward")
1306
1307
  return t.innerType._zod.run(n, r);
@@ -1311,7 +1312,7 @@ const Hr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1311
1312
  function ke(e) {
1312
1313
  return e.value = Object.freeze(e.value), e;
1313
1314
  }
1314
- const Jr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1315
+ const Qr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1315
1316
  j.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1316
1317
  const r = n.value, o = t.fn(r);
1317
1318
  if (o instanceof Promise)
@@ -1334,7 +1335,7 @@ function xe(e, t, n, r) {
1334
1335
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(U(o));
1335
1336
  }
1336
1337
  }
1337
- class Kr {
1338
+ class Xr {
1338
1339
  constructor() {
1339
1340
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1340
1341
  }
@@ -1368,17 +1369,17 @@ class Kr {
1368
1369
  return this._map.has(t);
1369
1370
  }
1370
1371
  }
1371
- function Gr() {
1372
- return new Kr();
1372
+ function eo() {
1373
+ return new Xr();
1373
1374
  }
1374
- const W = /* @__PURE__ */ Gr();
1375
- function Yr(e, t) {
1375
+ const W = /* @__PURE__ */ eo();
1376
+ function to(e, t) {
1376
1377
  return new e({
1377
1378
  type: "string",
1378
1379
  ...f(t)
1379
1380
  });
1380
1381
  }
1381
- function Qr(e, t) {
1382
+ function no(e, t) {
1382
1383
  return new e({
1383
1384
  type: "string",
1384
1385
  format: "email",
@@ -1396,7 +1397,7 @@ function Ze(e, t) {
1396
1397
  ...f(t)
1397
1398
  });
1398
1399
  }
1399
- function Xr(e, t) {
1400
+ function ro(e, t) {
1400
1401
  return new e({
1401
1402
  type: "string",
1402
1403
  format: "uuid",
@@ -1405,7 +1406,7 @@ function Xr(e, t) {
1405
1406
  ...f(t)
1406
1407
  });
1407
1408
  }
1408
- function eo(e, t) {
1409
+ function oo(e, t) {
1409
1410
  return new e({
1410
1411
  type: "string",
1411
1412
  format: "uuid",
@@ -1415,7 +1416,7 @@ function eo(e, t) {
1415
1416
  ...f(t)
1416
1417
  });
1417
1418
  }
1418
- function to(e, t) {
1419
+ function so(e, t) {
1419
1420
  return new e({
1420
1421
  type: "string",
1421
1422
  format: "uuid",
@@ -1425,7 +1426,7 @@ function to(e, t) {
1425
1426
  ...f(t)
1426
1427
  });
1427
1428
  }
1428
- function no(e, t) {
1429
+ function io(e, t) {
1429
1430
  return new e({
1430
1431
  type: "string",
1431
1432
  format: "uuid",
@@ -1435,7 +1436,7 @@ function no(e, t) {
1435
1436
  ...f(t)
1436
1437
  });
1437
1438
  }
1438
- function ro(e, t) {
1439
+ function ao(e, t) {
1439
1440
  return new e({
1440
1441
  type: "string",
1441
1442
  format: "url",
@@ -1444,7 +1445,7 @@ function ro(e, t) {
1444
1445
  ...f(t)
1445
1446
  });
1446
1447
  }
1447
- function oo(e, t) {
1448
+ function co(e, t) {
1448
1449
  return new e({
1449
1450
  type: "string",
1450
1451
  format: "emoji",
@@ -1453,7 +1454,7 @@ function oo(e, t) {
1453
1454
  ...f(t)
1454
1455
  });
1455
1456
  }
1456
- function so(e, t) {
1457
+ function uo(e, t) {
1457
1458
  return new e({
1458
1459
  type: "string",
1459
1460
  format: "nanoid",
@@ -1462,7 +1463,7 @@ function so(e, t) {
1462
1463
  ...f(t)
1463
1464
  });
1464
1465
  }
1465
- function io(e, t) {
1466
+ function lo(e, t) {
1466
1467
  return new e({
1467
1468
  type: "string",
1468
1469
  format: "cuid",
@@ -1471,7 +1472,7 @@ function io(e, t) {
1471
1472
  ...f(t)
1472
1473
  });
1473
1474
  }
1474
- function ao(e, t) {
1475
+ function fo(e, t) {
1475
1476
  return new e({
1476
1477
  type: "string",
1477
1478
  format: "cuid2",
@@ -1480,7 +1481,7 @@ function ao(e, t) {
1480
1481
  ...f(t)
1481
1482
  });
1482
1483
  }
1483
- function co(e, t) {
1484
+ function po(e, t) {
1484
1485
  return new e({
1485
1486
  type: "string",
1486
1487
  format: "ulid",
@@ -1489,7 +1490,7 @@ function co(e, t) {
1489
1490
  ...f(t)
1490
1491
  });
1491
1492
  }
1492
- function uo(e, t) {
1493
+ function ho(e, t) {
1493
1494
  return new e({
1494
1495
  type: "string",
1495
1496
  format: "xid",
@@ -1498,7 +1499,7 @@ function uo(e, t) {
1498
1499
  ...f(t)
1499
1500
  });
1500
1501
  }
1501
- function lo(e, t) {
1502
+ function mo(e, t) {
1502
1503
  return new e({
1503
1504
  type: "string",
1504
1505
  format: "ksuid",
@@ -1507,7 +1508,7 @@ function lo(e, t) {
1507
1508
  ...f(t)
1508
1509
  });
1509
1510
  }
1510
- function fo(e, t) {
1511
+ function go(e, t) {
1511
1512
  return new e({
1512
1513
  type: "string",
1513
1514
  format: "ipv4",
@@ -1516,7 +1517,7 @@ function fo(e, t) {
1516
1517
  ...f(t)
1517
1518
  });
1518
1519
  }
1519
- function po(e, t) {
1520
+ function _o(e, t) {
1520
1521
  return new e({
1521
1522
  type: "string",
1522
1523
  format: "ipv6",
@@ -1525,7 +1526,7 @@ function po(e, t) {
1525
1526
  ...f(t)
1526
1527
  });
1527
1528
  }
1528
- function ho(e, t) {
1529
+ function vo(e, t) {
1529
1530
  return new e({
1530
1531
  type: "string",
1531
1532
  format: "cidrv4",
@@ -1534,7 +1535,7 @@ function ho(e, t) {
1534
1535
  ...f(t)
1535
1536
  });
1536
1537
  }
1537
- function mo(e, t) {
1538
+ function wo(e, t) {
1538
1539
  return new e({
1539
1540
  type: "string",
1540
1541
  format: "cidrv6",
@@ -1543,7 +1544,7 @@ function mo(e, t) {
1543
1544
  ...f(t)
1544
1545
  });
1545
1546
  }
1546
- function go(e, t) {
1547
+ function zo(e, t) {
1547
1548
  return new e({
1548
1549
  type: "string",
1549
1550
  format: "base64",
@@ -1552,7 +1553,7 @@ function go(e, t) {
1552
1553
  ...f(t)
1553
1554
  });
1554
1555
  }
1555
- function _o(e, t) {
1556
+ function bo(e, t) {
1556
1557
  return new e({
1557
1558
  type: "string",
1558
1559
  format: "base64url",
@@ -1561,7 +1562,7 @@ function _o(e, t) {
1561
1562
  ...f(t)
1562
1563
  });
1563
1564
  }
1564
- function vo(e, t) {
1565
+ function yo(e, t) {
1565
1566
  return new e({
1566
1567
  type: "string",
1567
1568
  format: "e164",
@@ -1570,7 +1571,7 @@ function vo(e, t) {
1570
1571
  ...f(t)
1571
1572
  });
1572
1573
  }
1573
- function wo(e, t) {
1574
+ function ko(e, t) {
1574
1575
  return new e({
1575
1576
  type: "string",
1576
1577
  format: "jwt",
@@ -1579,7 +1580,7 @@ function wo(e, t) {
1579
1580
  ...f(t)
1580
1581
  });
1581
1582
  }
1582
- function zo(e, t) {
1583
+ function xo(e, t) {
1583
1584
  return new e({
1584
1585
  type: "string",
1585
1586
  format: "datetime",
@@ -1590,7 +1591,7 @@ function zo(e, t) {
1590
1591
  ...f(t)
1591
1592
  });
1592
1593
  }
1593
- function bo(e, t) {
1594
+ function Zo(e, t) {
1594
1595
  return new e({
1595
1596
  type: "string",
1596
1597
  format: "date",
@@ -1598,7 +1599,7 @@ function bo(e, t) {
1598
1599
  ...f(t)
1599
1600
  });
1600
1601
  }
1601
- function yo(e, t) {
1602
+ function $o(e, t) {
1602
1603
  return new e({
1603
1604
  type: "string",
1604
1605
  format: "time",
@@ -1607,7 +1608,7 @@ function yo(e, t) {
1607
1608
  ...f(t)
1608
1609
  });
1609
1610
  }
1610
- function ko(e, t) {
1611
+ function jo(e, t) {
1611
1612
  return new e({
1612
1613
  type: "string",
1613
1614
  format: "duration",
@@ -1615,78 +1616,78 @@ function ko(e, t) {
1615
1616
  ...f(t)
1616
1617
  });
1617
1618
  }
1618
- function xo(e) {
1619
+ function Po(e) {
1619
1620
  return new e({
1620
1621
  type: "unknown"
1621
1622
  });
1622
1623
  }
1623
- function Zo(e, t) {
1624
+ function Eo(e, t) {
1624
1625
  return new e({
1625
1626
  type: "never",
1626
1627
  ...f(t)
1627
1628
  });
1628
1629
  }
1629
- function rt(e, t) {
1630
- return new Jn({
1630
+ function ot(e, t) {
1631
+ return new Qn({
1631
1632
  check: "max_length",
1632
1633
  ...f(t),
1633
1634
  maximum: e
1634
1635
  });
1635
1636
  }
1636
1637
  function J(e, t) {
1637
- return new Kn({
1638
+ return new Xn({
1638
1639
  check: "min_length",
1639
1640
  ...f(t),
1640
1641
  minimum: e
1641
1642
  });
1642
1643
  }
1643
- function ot(e, t) {
1644
- return new Gn({
1644
+ function st(e, t) {
1645
+ return new er({
1645
1646
  check: "length_equals",
1646
1647
  ...f(t),
1647
1648
  length: e
1648
1649
  });
1649
1650
  }
1650
- function $o(e, t) {
1651
- return new Yn({
1651
+ function To(e, t) {
1652
+ return new tr({
1652
1653
  check: "string_format",
1653
1654
  format: "regex",
1654
1655
  ...f(t),
1655
1656
  pattern: e
1656
1657
  });
1657
1658
  }
1658
- function jo(e) {
1659
- return new Qn({
1659
+ function Ao(e) {
1660
+ return new nr({
1660
1661
  check: "string_format",
1661
1662
  format: "lowercase",
1662
1663
  ...f(e)
1663
1664
  });
1664
1665
  }
1665
- function Eo(e) {
1666
- return new Xn({
1666
+ function Oo(e) {
1667
+ return new rr({
1667
1668
  check: "string_format",
1668
1669
  format: "uppercase",
1669
1670
  ...f(e)
1670
1671
  });
1671
1672
  }
1672
- function Po(e, t) {
1673
- return new er({
1673
+ function Io(e, t) {
1674
+ return new or({
1674
1675
  check: "string_format",
1675
1676
  format: "includes",
1676
1677
  ...f(t),
1677
1678
  includes: e
1678
1679
  });
1679
1680
  }
1680
- function To(e, t) {
1681
- return new tr({
1681
+ function So(e, t) {
1682
+ return new sr({
1682
1683
  check: "string_format",
1683
1684
  format: "starts_with",
1684
1685
  ...f(t),
1685
1686
  prefix: e
1686
1687
  });
1687
1688
  }
1688
- function Io(e, t) {
1689
- return new nr({
1689
+ function No(e, t) {
1690
+ return new ir({
1690
1691
  check: "string_format",
1691
1692
  format: "ends_with",
1692
1693
  ...f(t),
@@ -1694,24 +1695,24 @@ function Io(e, t) {
1694
1695
  });
1695
1696
  }
1696
1697
  function L(e) {
1697
- return new rr({
1698
+ return new ar({
1698
1699
  check: "overwrite",
1699
1700
  tx: e
1700
1701
  });
1701
1702
  }
1702
- function Ao(e) {
1703
+ function Do(e) {
1703
1704
  return L((t) => t.normalize(e));
1704
1705
  }
1705
- function Oo() {
1706
+ function Ro() {
1706
1707
  return L((e) => e.trim());
1707
1708
  }
1708
- function So() {
1709
+ function Co() {
1709
1710
  return L((e) => e.toLowerCase());
1710
1711
  }
1711
- function No() {
1712
+ function Uo() {
1712
1713
  return L((e) => e.toUpperCase());
1713
1714
  }
1714
- function Do(e, t, n) {
1715
+ function Fo(e, t, n) {
1715
1716
  return new e({
1716
1717
  type: "array",
1717
1718
  element: t,
@@ -1721,7 +1722,7 @@ function Do(e, t, n) {
1721
1722
  ...f(n)
1722
1723
  });
1723
1724
  }
1724
- function Ro(e, t, n) {
1725
+ function Lo(e, t, n) {
1725
1726
  return new e({
1726
1727
  type: "custom",
1727
1728
  check: "custom",
@@ -1729,8 +1730,8 @@ function Ro(e, t, n) {
1729
1730
  ...f(n)
1730
1731
  });
1731
1732
  }
1732
- function Co(e) {
1733
- const t = Uo((n) => (n.addIssue = (r) => {
1733
+ function Bo(e) {
1734
+ const t = Mo((n) => (n.addIssue = (r) => {
1734
1735
  if (typeof r == "string")
1735
1736
  n.issues.push(U(r, n.value, t._zod.def));
1736
1737
  else {
@@ -1740,45 +1741,45 @@ function Co(e) {
1740
1741
  }, e(n.value, n)));
1741
1742
  return t;
1742
1743
  }
1743
- function Uo(e, t) {
1744
+ function Mo(e, t) {
1744
1745
  const n = new j({
1745
1746
  check: "custom",
1746
1747
  ...f(t)
1747
1748
  });
1748
1749
  return n._zod.check = e, n;
1749
1750
  }
1750
- const Fo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
1751
- _r.init(e, t), g.init(e, t);
1751
+ const Wo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
1752
+ br.init(e, t), g.init(e, t);
1752
1753
  });
1753
- function Lo(e) {
1754
- return zo(Fo, e);
1754
+ function Vo(e) {
1755
+ return xo(Wo, e);
1755
1756
  }
1756
- const Bo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
1757
- vr.init(e, t), g.init(e, t);
1757
+ const qo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
1758
+ yr.init(e, t), g.init(e, t);
1758
1759
  });
1759
- function Mo(e) {
1760
- return bo(Bo, e);
1760
+ function Ho(e) {
1761
+ return Zo(qo, e);
1761
1762
  }
1762
- const Wo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
1763
- wr.init(e, t), g.init(e, t);
1763
+ const Jo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
1764
+ kr.init(e, t), g.init(e, t);
1764
1765
  });
1765
- function qo(e) {
1766
- return yo(Wo, e);
1766
+ function Ko(e) {
1767
+ return $o(Jo, e);
1767
1768
  }
1768
- const Vo = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
1769
- zr.init(e, t), g.init(e, t);
1769
+ const Go = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
1770
+ xr.init(e, t), g.init(e, t);
1770
1771
  });
1771
- function Ho(e) {
1772
- return ko(Vo, e);
1772
+ function Yo(e) {
1773
+ return jo(Go, e);
1773
1774
  }
1774
- const Jo = (e, t) => {
1775
- Ke.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1775
+ const Qo = (e, t) => {
1776
+ Ge.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1776
1777
  format: {
1777
- value: (n) => pn(e, n)
1778
+ value: (n) => _n(e, n)
1778
1779
  // enumerable: false,
1779
1780
  },
1780
1781
  flatten: {
1781
- value: (n) => fn(e, n)
1782
+ value: (n) => gn(e, n)
1782
1783
  // enumerable: false,
1783
1784
  },
1784
1785
  addIssue: {
@@ -1800,14 +1801,14 @@ const Jo = (e, t) => {
1800
1801
  // enumerable: false,
1801
1802
  }
1802
1803
  });
1803
- }, k = c("ZodError", Jo, {
1804
+ }, k = c("ZodError", Qo, {
1804
1805
  Parent: Error
1805
- }), Ko = /* @__PURE__ */ ue(k), Go = /* @__PURE__ */ le(k), Yo = /* @__PURE__ */ Q(k), Qo = /* @__PURE__ */ X(k), Xo = /* @__PURE__ */ gn(k), es = /* @__PURE__ */ _n(k), ts = /* @__PURE__ */ vn(k), ns = /* @__PURE__ */ wn(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
1806
+ }), Xo = /* @__PURE__ */ ue(k), es = /* @__PURE__ */ le(k), ts = /* @__PURE__ */ Q(k), ns = /* @__PURE__ */ X(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), as = /* @__PURE__ */ xn(k), cs = /* @__PURE__ */ Zn(k), us = /* @__PURE__ */ $n(k), ls = /* @__PURE__ */ jn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
1806
1807
  checks: [
1807
1808
  ...t.checks ?? [],
1808
1809
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1809
1810
  ]
1810
- })), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Ko(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Yo(e, n, r), e.parseAsync = async (n, r) => Go(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Qo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Xo(e, n, r), e.decode = (n, r) => es(e, n, r), e.encodeAsync = async (n, r) => ts(e, n, r), e.decodeAsync = async (n, r) => ns(e, n, r), e.safeEncode = (n, r) => rs(e, n, r), e.safeDecode = (n, r) => os(e, n, r), e.safeEncodeAsync = async (n, r) => ss(e, n, r), e.safeDecodeAsync = async (n, r) => is(e, n, r), e.refine = (n, r) => e.check(Gs(n, r)), e.superRefine = (n) => e.check(Ys(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Pe(e), e.nullable = () => Te(e), e.nullish = () => Pe(Te(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Ps(e), e.or = (n) => Os([e, n]), e.and = (n) => Ns(e, n), e.transform = (n) => Ie(e, Rs(n)), e.default = (n) => Fs(e, n), e.prefault = (n) => Bs(e, n), e.catch = (n) => qs(e, n), e.pipe = (n) => Ie(e, n), e.readonly = () => Js(e), e.describe = (n) => {
1811
+ })), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Xo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ts(e, n, r), e.parseAsync = async (n, r) => es(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ns(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => rs(e, n, r), e.decode = (n, r) => os(e, n, r), e.encodeAsync = async (n, r) => ss(e, n, r), e.decodeAsync = async (n, r) => is(e, n, r), e.safeEncode = (n, r) => as(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) => ls(e, n, r), e.refine = (n, r) => e.check(ei(n, r)), e.superRefine = (n) => e.check(ti(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Ee(e), e.nullable = () => Te(e), e.nullish = () => Ee(Te(e)), e.nonoptional = (n) => Hs(e, n), e.array = () => Is(e), e.or = (n) => Rs([e, n]), e.and = (n) => Us(e, n), e.transform = (n) => Ae(e, Ls(n)), e.default = (n) => Ws(e, n), e.prefault = (n) => qs(e, n), e.catch = (n) => Ks(e, n), e.pipe = (n) => Ae(e, n), e.readonly = () => Qs(e), e.describe = (n) => {
1811
1812
  const r = e.clone();
1812
1813
  return W.add(r, { description: n }), r;
1813
1814
  }, Object.defineProperty(e, "description", {
@@ -1820,107 +1821,107 @@ const Jo = (e, t) => {
1820
1821
  return W.get(e);
1821
1822
  const r = e.clone();
1822
1823
  return W.add(r, n[0]), r;
1823
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), st = /* @__PURE__ */ c("_ZodString", (e, t) => {
1824
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), it = /* @__PURE__ */ c("_ZodString", (e, t) => {
1824
1825
  de.init(e, t), z.init(e, t);
1825
1826
  const n = e._zod.bag;
1826
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check($o(...r)), e.includes = (...r) => e.check(Po(...r)), e.startsWith = (...r) => e.check(To(...r)), e.endsWith = (...r) => e.check(Io(...r)), e.min = (...r) => e.check(J(...r)), e.max = (...r) => e.check(rt(...r)), e.length = (...r) => e.check(ot(...r)), e.nonempty = (...r) => e.check(J(1, ...r)), e.lowercase = (r) => e.check(jo(r)), e.uppercase = (r) => e.check(Eo(r)), e.trim = () => e.check(Oo()), e.normalize = (...r) => e.check(Ao(...r)), e.toLowerCase = () => e.check(So()), e.toUpperCase = () => e.check(No());
1827
- }), as = /* @__PURE__ */ c("ZodString", (e, t) => {
1828
- de.init(e, t), st.init(e, t), e.email = (n) => e.check(Qr(cs, n)), e.url = (n) => e.check(ro(us, n)), e.jwt = (n) => e.check(wo(xs, n)), e.emoji = (n) => e.check(oo(ls, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(Xr(q, n)), e.uuidv4 = (n) => e.check(eo(q, n)), e.uuidv6 = (n) => e.check(to(q, n)), e.uuidv7 = (n) => e.check(no(q, n)), e.nanoid = (n) => e.check(so(ds, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(io(fs, n)), e.cuid2 = (n) => e.check(ao(ps, n)), e.ulid = (n) => e.check(co(hs, n)), e.base64 = (n) => e.check(go(bs, n)), e.base64url = (n) => e.check(_o(ys, n)), e.xid = (n) => e.check(uo(ms, n)), e.ksuid = (n) => e.check(lo(gs, n)), e.ipv4 = (n) => e.check(fo(_s, n)), e.ipv6 = (n) => e.check(po(vs, n)), e.cidrv4 = (n) => e.check(ho(ws, n)), e.cidrv6 = (n) => e.check(mo(zs, n)), e.e164 = (n) => e.check(vo(ks, n)), e.datetime = (n) => e.check(Lo(n)), e.date = (n) => e.check(Mo(n)), e.time = (n) => e.check(qo(n)), e.duration = (n) => e.check(Ho(n));
1827
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(To(...r)), e.includes = (...r) => e.check(Io(...r)), e.startsWith = (...r) => e.check(So(...r)), e.endsWith = (...r) => e.check(No(...r)), e.min = (...r) => e.check(J(...r)), e.max = (...r) => e.check(ot(...r)), e.length = (...r) => e.check(st(...r)), e.nonempty = (...r) => e.check(J(1, ...r)), e.lowercase = (r) => e.check(Ao(r)), e.uppercase = (r) => e.check(Oo(r)), e.trim = () => e.check(Ro()), e.normalize = (...r) => e.check(Do(...r)), e.toLowerCase = () => e.check(Co()), e.toUpperCase = () => e.check(Uo());
1828
+ }), ds = /* @__PURE__ */ c("ZodString", (e, t) => {
1829
+ de.init(e, t), it.init(e, t), e.email = (n) => e.check(no(fs, n)), e.url = (n) => e.check(ao(ps, n)), e.jwt = (n) => e.check(ko(Ps, n)), e.emoji = (n) => e.check(co(hs, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(ro(V, n)), e.uuidv4 = (n) => e.check(oo(V, n)), e.uuidv6 = (n) => e.check(so(V, n)), e.uuidv7 = (n) => e.check(io(V, n)), e.nanoid = (n) => e.check(uo(ms, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(lo(gs, n)), e.cuid2 = (n) => e.check(fo(_s, n)), e.ulid = (n) => e.check(po(vs, n)), e.base64 = (n) => e.check(zo(Zs, n)), e.base64url = (n) => e.check(bo($s, n)), e.xid = (n) => e.check(ho(ws, n)), e.ksuid = (n) => e.check(mo(zs, n)), e.ipv4 = (n) => e.check(go(bs, n)), e.ipv6 = (n) => e.check(_o(ys, n)), e.cidrv4 = (n) => e.check(vo(ks, n)), e.cidrv6 = (n) => e.check(wo(xs, n)), e.e164 = (n) => e.check(yo(js, n)), e.datetime = (n) => e.check(Vo(n)), e.date = (n) => e.check(Ho(n)), e.time = (n) => e.check(Ko(n)), e.duration = (n) => e.check(Yo(n));
1829
1830
  });
1830
1831
  function $e(e) {
1831
- return Yr(as, e);
1832
+ return to(ds, e);
1832
1833
  }
1833
1834
  const g = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
1834
- m.init(e, t), st.init(e, t);
1835
- }), cs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
1836
- cr.init(e, t), g.init(e, t);
1835
+ m.init(e, t), it.init(e, t);
1836
+ }), fs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
1837
+ fr.init(e, t), g.init(e, t);
1837
1838
  }), je = /* @__PURE__ */ c("ZodGUID", (e, t) => {
1838
- ir.init(e, t), g.init(e, t);
1839
- }), q = /* @__PURE__ */ c("ZodUUID", (e, t) => {
1840
- ar.init(e, t), g.init(e, t);
1841
- }), us = /* @__PURE__ */ c("ZodURL", (e, t) => {
1842
- ur.init(e, t), g.init(e, t);
1843
- }), ls = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
1844
1839
  lr.init(e, t), g.init(e, t);
1845
- }), ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
1840
+ }), V = /* @__PURE__ */ c("ZodUUID", (e, t) => {
1846
1841
  dr.init(e, t), g.init(e, t);
1847
- }), fs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
1848
- fr.init(e, t), g.init(e, t);
1849
- }), ps = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
1842
+ }), ps = /* @__PURE__ */ c("ZodURL", (e, t) => {
1850
1843
  pr.init(e, t), g.init(e, t);
1851
- }), hs = /* @__PURE__ */ c("ZodULID", (e, t) => {
1844
+ }), hs = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
1852
1845
  hr.init(e, t), g.init(e, t);
1853
- }), ms = /* @__PURE__ */ c("ZodXID", (e, t) => {
1846
+ }), ms = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
1854
1847
  mr.init(e, t), g.init(e, t);
1855
- }), gs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
1848
+ }), gs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
1856
1849
  gr.init(e, t), g.init(e, t);
1857
- }), _s = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
1858
- br.init(e, t), g.init(e, t);
1859
- }), vs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
1860
- yr.init(e, t), g.init(e, t);
1861
- }), ws = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
1862
- kr.init(e, t), g.init(e, t);
1863
- }), zs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
1864
- xr.init(e, t), g.init(e, t);
1865
- }), bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
1850
+ }), _s = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
1851
+ _r.init(e, t), g.init(e, t);
1852
+ }), vs = /* @__PURE__ */ c("ZodULID", (e, t) => {
1853
+ vr.init(e, t), g.init(e, t);
1854
+ }), ws = /* @__PURE__ */ c("ZodXID", (e, t) => {
1855
+ wr.init(e, t), g.init(e, t);
1856
+ }), zs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
1857
+ zr.init(e, t), g.init(e, t);
1858
+ }), bs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
1866
1859
  Zr.init(e, t), g.init(e, t);
1867
- }), ys = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
1860
+ }), ys = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
1861
+ $r.init(e, t), g.init(e, t);
1862
+ }), ks = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
1868
1863
  jr.init(e, t), g.init(e, t);
1869
- }), ks = /* @__PURE__ */ c("ZodE164", (e, t) => {
1864
+ }), xs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
1865
+ Pr.init(e, t), g.init(e, t);
1866
+ }), Zs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
1870
1867
  Er.init(e, t), g.init(e, t);
1871
- }), xs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
1872
- Tr.init(e, t), g.init(e, t);
1873
- }), Zs = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
1874
- Ir.init(e, t), z.init(e, t);
1868
+ }), $s = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
1869
+ Ar.init(e, t), g.init(e, t);
1870
+ }), js = /* @__PURE__ */ c("ZodE164", (e, t) => {
1871
+ Or.init(e, t), g.init(e, t);
1872
+ }), Ps = /* @__PURE__ */ c("ZodJWT", (e, t) => {
1873
+ Sr.init(e, t), g.init(e, t);
1874
+ }), Es = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
1875
+ Nr.init(e, t), z.init(e, t);
1875
1876
  });
1876
- function Ee() {
1877
- return xo(Zs);
1877
+ function Pe() {
1878
+ return Po(Es);
1878
1879
  }
1879
- const $s = /* @__PURE__ */ c("ZodNever", (e, t) => {
1880
- Ar.init(e, t), z.init(e, t);
1880
+ const Ts = /* @__PURE__ */ c("ZodNever", (e, t) => {
1881
+ Dr.init(e, t), z.init(e, t);
1881
1882
  });
1882
- function js(e) {
1883
- return Zo($s, e);
1883
+ function As(e) {
1884
+ return Eo(Ts, e);
1884
1885
  }
1885
- const Es = /* @__PURE__ */ c("ZodArray", (e, t) => {
1886
- Or.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(J(n, r)), e.nonempty = (n) => e.check(J(1, n)), e.max = (n, r) => e.check(rt(n, r)), e.length = (n, r) => e.check(ot(n, r)), e.unwrap = () => e.element;
1886
+ const Os = /* @__PURE__ */ c("ZodArray", (e, t) => {
1887
+ Rr.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(J(n, r)), e.nonempty = (n) => e.check(J(1, n)), e.max = (n, r) => e.check(ot(n, r)), e.length = (n, r) => e.check(st(n, r)), e.unwrap = () => e.element;
1887
1888
  });
1888
- function Ps(e, t) {
1889
- return Do(Es, e, t);
1889
+ function Is(e, t) {
1890
+ return Fo(Os, e, t);
1890
1891
  }
1891
- const Ts = /* @__PURE__ */ c("ZodObject", (e, t) => {
1892
- Nr.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => it(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: js() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => an(e, n), e.safeExtend = (n) => cn(e, n), e.merge = (n) => un(e, n), e.pick = (n) => on(e, n), e.omit = (n) => sn(e, n), e.partial = (...n) => ln(at, e, n[0]), e.required = (...n) => dn(ct, e, n[0]);
1892
+ const Ss = /* @__PURE__ */ c("ZodObject", (e, t) => {
1893
+ Ur.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => at(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Pe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Pe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: As() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => dn(e, n), e.safeExtend = (n) => fn(e, n), e.merge = (n) => pn(e, n), e.pick = (n) => un(e, n), e.omit = (n) => ln(e, n), e.partial = (...n) => hn(ct, e, n[0]), e.required = (...n) => mn(ut, e, n[0]);
1893
1894
  });
1894
- function Is(e, t) {
1895
+ function Ns(e, t) {
1895
1896
  const n = {
1896
1897
  type: "object",
1897
1898
  shape: e ?? {},
1898
1899
  ...f(t)
1899
1900
  };
1900
- return new Ts(n);
1901
+ return new Ss(n);
1901
1902
  }
1902
- const As = /* @__PURE__ */ c("ZodUnion", (e, t) => {
1903
- Dr.init(e, t), z.init(e, t), e.options = t.options;
1903
+ const Ds = /* @__PURE__ */ c("ZodUnion", (e, t) => {
1904
+ Fr.init(e, t), z.init(e, t), e.options = t.options;
1904
1905
  });
1905
- function Os(e, t) {
1906
- return new As({
1906
+ function Rs(e, t) {
1907
+ return new Ds({
1907
1908
  type: "union",
1908
1909
  options: e,
1909
1910
  ...f(t)
1910
1911
  });
1911
1912
  }
1912
- const Ss = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
1913
- Rr.init(e, t), z.init(e, t);
1913
+ const Cs = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
1914
+ Lr.init(e, t), z.init(e, t);
1914
1915
  });
1915
- function Ns(e, t) {
1916
- return new Ss({
1916
+ function Us(e, t) {
1917
+ return new Cs({
1917
1918
  type: "intersection",
1918
1919
  left: e,
1919
1920
  right: t
1920
1921
  });
1921
1922
  }
1922
1923
  const oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
1923
- Cr.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1924
+ Br.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1924
1925
  const n = new Set(Object.keys(t.entries));
1925
1926
  e.extract = (r, o) => {
1926
1927
  const s = {};
@@ -1950,7 +1951,7 @@ const oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
1950
1951
  });
1951
1952
  };
1952
1953
  });
1953
- function it(e, t) {
1954
+ function at(e, t) {
1954
1955
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
1955
1956
  return new oe({
1956
1957
  type: "enum",
@@ -1958,10 +1959,10 @@ function it(e, t) {
1958
1959
  ...f(t)
1959
1960
  });
1960
1961
  }
1961
- const Ds = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1962
- Ur.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
1962
+ const Fs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1963
+ Mr.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
1963
1964
  if (r.direction === "backward")
1964
- throw new Me(e.constructor.name);
1965
+ throw new We(e.constructor.name);
1965
1966
  n.addIssue = (s) => {
1966
1967
  if (typeof s == "string")
1967
1968
  n.issues.push(U(s, n.value, t));
@@ -1974,113 +1975,113 @@ const Ds = /* @__PURE__ */ c("ZodTransform", (e, t) => {
1974
1975
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
1975
1976
  };
1976
1977
  });
1977
- function Rs(e) {
1978
- return new Ds({
1978
+ function Ls(e) {
1979
+ return new Fs({
1979
1980
  type: "transform",
1980
1981
  transform: e
1981
1982
  });
1982
1983
  }
1983
- const at = /* @__PURE__ */ c("ZodOptional", (e, t) => {
1984
- Fr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1984
+ const ct = /* @__PURE__ */ c("ZodOptional", (e, t) => {
1985
+ Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1985
1986
  });
1986
- function Pe(e) {
1987
- return new at({
1987
+ function Ee(e) {
1988
+ return new ct({
1988
1989
  type: "optional",
1989
1990
  innerType: e
1990
1991
  });
1991
1992
  }
1992
- const Cs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
1993
- Lr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1993
+ const Bs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
1994
+ Vr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
1994
1995
  });
1995
1996
  function Te(e) {
1996
- return new Cs({
1997
+ return new Bs({
1997
1998
  type: "nullable",
1998
1999
  innerType: e
1999
2000
  });
2000
2001
  }
2001
- const Us = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2002
- Br.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2002
+ const Ms = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2003
+ qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2003
2004
  });
2004
- function Fs(e, t) {
2005
- return new Us({
2005
+ function Ws(e, t) {
2006
+ return new Ms({
2006
2007
  type: "default",
2007
2008
  innerType: e,
2008
2009
  get defaultValue() {
2009
- return typeof t == "function" ? t() : Ve(t);
2010
+ return typeof t == "function" ? t() : He(t);
2010
2011
  }
2011
2012
  });
2012
2013
  }
2013
- const Ls = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2014
- Mr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2014
+ const Vs = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2015
+ Hr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2015
2016
  });
2016
- function Bs(e, t) {
2017
- return new Ls({
2017
+ function qs(e, t) {
2018
+ return new Vs({
2018
2019
  type: "prefault",
2019
2020
  innerType: e,
2020
2021
  get defaultValue() {
2021
- return typeof t == "function" ? t() : Ve(t);
2022
+ return typeof t == "function" ? t() : He(t);
2022
2023
  }
2023
2024
  });
2024
2025
  }
2025
- const ct = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2026
- Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2026
+ const ut = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2027
+ Jr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2027
2028
  });
2028
- function Ms(e, t) {
2029
- return new ct({
2029
+ function Hs(e, t) {
2030
+ return new ut({
2030
2031
  type: "nonoptional",
2031
2032
  innerType: e,
2032
2033
  ...f(t)
2033
2034
  });
2034
2035
  }
2035
- const Ws = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2036
- qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2036
+ const Js = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2037
+ Kr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2037
2038
  });
2038
- function qs(e, t) {
2039
- return new Ws({
2039
+ function Ks(e, t) {
2040
+ return new Js({
2040
2041
  type: "catch",
2041
2042
  innerType: e,
2042
2043
  catchValue: typeof t == "function" ? t : () => t
2043
2044
  });
2044
2045
  }
2045
- const Vs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2046
- Vr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2046
+ const Gs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2047
+ Gr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2047
2048
  });
2048
- function Ie(e, t) {
2049
- return new Vs({
2049
+ function Ae(e, t) {
2050
+ return new Gs({
2050
2051
  type: "pipe",
2051
2052
  in: e,
2052
2053
  out: t
2053
2054
  // ...util.normalizeParams(params),
2054
2055
  });
2055
2056
  }
2056
- const Hs = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2057
- Hr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2057
+ const Ys = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2058
+ Yr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2058
2059
  });
2059
- function Js(e) {
2060
- return new Hs({
2060
+ function Qs(e) {
2061
+ return new Ys({
2061
2062
  type: "readonly",
2062
2063
  innerType: e
2063
2064
  });
2064
2065
  }
2065
- const Ks = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2066
- Jr.init(e, t), z.init(e, t);
2066
+ const Xs = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2067
+ Qr.init(e, t), z.init(e, t);
2067
2068
  });
2068
- function Gs(e, t = {}) {
2069
- return Ro(Ks, e, t);
2069
+ function ei(e, t = {}) {
2070
+ return Lo(Xs, e, t);
2070
2071
  }
2071
- function Ys(e) {
2072
- return Co(e);
2072
+ function ti(e) {
2073
+ return Bo(e);
2073
2074
  }
2074
- const Qs = Is({
2075
+ const ni = Ns({
2075
2076
  buildId: $e(),
2076
2077
  timestamp: $e(),
2077
- status: it(["in-progress", "success", "failed"])
2078
- }), Xs = ({
2078
+ status: at(["in-progress", "success", "failed"])
2079
+ }), ri = ({
2079
2080
  buildId: e,
2080
2081
  environmentType: t,
2081
2082
  endpoint: n = "/__zuplo/docs"
2082
2083
  }) => {
2083
- const r = _t({
2084
+ const r = wt({
2084
2085
  queryKey: ["zuplo-build-check", e, n],
2085
2086
  refetchInterval: 3e3,
2086
2087
  enabled: e !== void 0 && t === "WORKING_COPY",
@@ -2088,7 +2089,7 @@ const Qs = Is({
2088
2089
  queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2089
2090
  if (!s.ok) throw new Error("Failed to fetch build status");
2090
2091
  return s.json();
2091
- }).then((s) => Qs.parse(s))
2092
+ }).then((s) => ni.parse(s))
2092
2093
  });
2093
2094
  if (K(() => {
2094
2095
  r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
@@ -2097,15 +2098,15 @@ const Qs = Is({
2097
2098
  const o = r.data.status === "success";
2098
2099
  return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
2099
2100
  o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2100
- /* @__PURE__ */ a.jsx(Tt, { size: 16 }),
2101
+ /* @__PURE__ */ a.jsx(It, { size: 16 }),
2101
2102
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
2102
2103
  ] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2103
- /* @__PURE__ */ a.jsx(It, { size: 16, className: "animate-spin" }),
2104
+ /* @__PURE__ */ a.jsx(St, { size: 16, className: "animate-spin" }),
2104
2105
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
2105
2106
  ] }),
2106
2107
  /* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2107
2108
  o && /* @__PURE__ */ a.jsx(
2108
- Nt,
2109
+ Ct,
2109
2110
  {
2110
2111
  variant: "outline",
2111
2112
  size: "sm",
@@ -2117,13 +2118,13 @@ const Qs = Is({
2117
2118
  }
2118
2119
  )
2119
2120
  ] });
2120
- }, ei = () => {
2121
- const e = Re(), t = De(e.pathname);
2121
+ }, oi = () => {
2122
+ const e = Ce(), t = Re(e.pathname);
2122
2123
  K(() => {
2123
2124
  const n = t.current !== e.pathname, r = e.hash !== "";
2124
2125
  n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2125
2126
  }, [e.pathname, e.hash]);
2126
- }, ti = ({
2127
+ }, si = ({
2127
2128
  icon: e
2128
2129
  }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
2129
2130
  "img",
@@ -2132,8 +2133,8 @@ const Qs = Is({
2132
2133
  className: "size-5",
2133
2134
  alt: e
2134
2135
  }
2135
- ) : e, ni = (e) => /^https?:/.test(e), ri = () => {
2136
- const { site: e } = Dt(), t = e?.footer;
2136
+ ) : e, ii = (e) => /^https?:/.test(e), ai = () => {
2137
+ const { site: e } = Ut(), t = e?.footer;
2137
2138
  return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2138
2139
  /* @__PURE__ */ a.jsxs(
2139
2140
  "div",
@@ -2144,7 +2145,7 @@ const Qs = Is({
2144
2145
  "justify-end": t.position === "end"
2145
2146
  }),
2146
2147
  children: [
2147
- /* @__PURE__ */ a.jsx(P.Target, { name: "footer-before" }),
2148
+ /* @__PURE__ */ a.jsx(E.Target, { name: "footer-before" }),
2148
2149
  t.columns && /* @__PURE__ */ a.jsx(
2149
2150
  "div",
2150
2151
  {
@@ -2162,7 +2163,7 @@ const Qs = Is({
2162
2163
  /* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2163
2164
  /* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2164
2165
  const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2165
- return /* @__PURE__ */ a.jsx("li", { children: ni(r.href) ? /* @__PURE__ */ a.jsxs(
2166
+ return /* @__PURE__ */ a.jsx("li", { children: ii(r.href) ? /* @__PURE__ */ a.jsxs(
2166
2167
  "a",
2167
2168
  {
2168
2169
  href: r.href,
@@ -2171,10 +2172,10 @@ const Qs = Is({
2171
2172
  className: o,
2172
2173
  children: [
2173
2174
  /* @__PURE__ */ a.jsx("span", { children: r.label }),
2174
- /* @__PURE__ */ a.jsx(At, { size: 12 })
2175
+ /* @__PURE__ */ a.jsx(Nt, { size: 12 })
2175
2176
  ]
2176
2177
  }
2177
- ) : /* @__PURE__ */ a.jsx(Rt, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2178
+ ) : /* @__PURE__ */ a.jsx(Ft, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2178
2179
  }) })
2179
2180
  ]
2180
2181
  },
@@ -2182,7 +2183,7 @@ const Qs = Is({
2182
2183
  ))
2183
2184
  }
2184
2185
  ),
2185
- /* @__PURE__ */ a.jsx(P.Target, { name: "footer-after" })
2186
+ /* @__PURE__ */ a.jsx(E.Target, { name: "footer-after" })
2186
2187
  ]
2187
2188
  }
2188
2189
  ),
@@ -2223,7 +2224,7 @@ const Qs = Is({
2223
2224
  rel: "noopener noreferrer",
2224
2225
  className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2225
2226
  children: [
2226
- /* @__PURE__ */ a.jsx(ti, { icon: n.icon }),
2227
+ /* @__PURE__ */ a.jsx(si, { icon: n.icon }),
2227
2228
  n.label
2228
2229
  ]
2229
2230
  },
@@ -2233,7 +2234,7 @@ const Qs = Is({
2233
2234
  }
2234
2235
  )
2235
2236
  ] }) }) : null;
2236
- }, ut = ({
2237
+ }, lt = ({
2237
2238
  shouldScaleBackground: e = !0,
2238
2239
  ...t
2239
2240
  }) => /* @__PURE__ */ a.jsx(
@@ -2243,8 +2244,8 @@ const Qs = Is({
2243
2244
  ...t
2244
2245
  }
2245
2246
  );
2246
- ut.displayName = "Drawer";
2247
- const oi = $.Trigger, si = $.Portal, lt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2247
+ lt.displayName = "Drawer";
2248
+ const ci = $.Trigger, ui = $.Portal, dt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2248
2249
  $.Overlay,
2249
2250
  {
2250
2251
  ref: n,
@@ -2252,10 +2253,10 @@ const oi = $.Trigger, si = $.Portal, lt = F.forwardRef(({ className: e, ...t },
2252
2253
  ...t
2253
2254
  }
2254
2255
  ));
2255
- lt.displayName = $.Overlay.displayName;
2256
- const ii = F.forwardRef(
2257
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(si, { children: [
2258
- /* @__PURE__ */ a.jsx(lt, {}),
2256
+ dt.displayName = $.Overlay.displayName;
2257
+ const li = F.forwardRef(
2258
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(ui, { children: [
2259
+ /* @__PURE__ */ a.jsx(dt, {}),
2259
2260
  /* @__PURE__ */ a.jsxs(
2260
2261
  $.Content,
2261
2262
  {
@@ -2273,8 +2274,8 @@ const ii = F.forwardRef(
2273
2274
  )
2274
2275
  ] })
2275
2276
  );
2276
- ii.displayName = "DrawerContent";
2277
- const ai = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2277
+ li.displayName = "DrawerContent";
2278
+ const di = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2278
2279
  $.Title,
2279
2280
  {
2280
2281
  ref: n,
@@ -2285,8 +2286,8 @@ const ai = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2285
2286
  ...t
2286
2287
  }
2287
2288
  ));
2288
- ai.displayName = $.Title.displayName;
2289
- const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2289
+ di.displayName = $.Title.displayName;
2290
+ const fi = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2290
2291
  $.Description,
2291
2292
  {
2292
2293
  ref: n,
@@ -2294,15 +2295,15 @@ const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2294
2295
  ...t
2295
2296
  }
2296
2297
  ));
2297
- ci.displayName = $.Description.displayName;
2298
- const dt = ({
2298
+ fi.displayName = $.Description.displayName;
2299
+ const ft = ({
2299
2300
  children: e,
2300
2301
  className: t
2301
2302
  }) => {
2302
- const { options: n } = G(), r = De(null);
2303
+ const { options: n } = G(), r = Re(null);
2303
2304
  return K(() => {
2304
2305
  const o = r.current?.querySelector('[aria-current="page"]');
2305
- Ct(o ?? null);
2306
+ Lt(o ?? null);
2306
2307
  }, []), /* @__PURE__ */ a.jsxs(
2307
2308
  "div",
2308
2309
  {
@@ -2326,18 +2327,18 @@ const dt = ({
2326
2327
  children: e
2327
2328
  }
2328
2329
  ),
2329
- /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Ut, {}) })
2330
+ /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Bt, {}) })
2330
2331
  ]
2331
2332
  }
2332
2333
  );
2333
2334
  };
2334
- dt.displayName = "NavigationWrapper";
2335
- const ui = ({
2335
+ ft.displayName = "NavigationWrapper";
2336
+ const pi = ({
2336
2337
  onRequestClose: e,
2337
2338
  navigation: t
2338
2339
  }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2339
- /* @__PURE__ */ a.jsxs(dt, { children: [
2340
- /* @__PURE__ */ a.jsx(P.Target, { name: "navigation-before" }),
2340
+ /* @__PURE__ */ a.jsxs(ft, { children: [
2341
+ /* @__PURE__ */ a.jsx(E.Target, { name: "navigation-before" }),
2341
2342
  t.map((n) => /* @__PURE__ */ a.jsx(
2342
2343
  pe,
2343
2344
  {
@@ -2345,15 +2346,15 @@ const ui = ({
2345
2346
  },
2346
2347
  n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
2347
2348
  )),
2348
- /* @__PURE__ */ a.jsx(P.Target, { name: "navigation-after" })
2349
+ /* @__PURE__ */ a.jsx(E.Target, { name: "navigation-after" })
2349
2350
  ] }),
2350
2351
  /* @__PURE__ */ a.jsx(
2351
- Vt,
2352
+ Kt,
2352
2353
  {
2353
2354
  className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2354
2355
  "aria-describedby": void 0,
2355
2356
  children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2356
- /* @__PURE__ */ a.jsx(Jt, { children: /* @__PURE__ */ a.jsx(Ht, { children: "Navigation" }) }),
2357
+ /* @__PURE__ */ a.jsx(Yt, { children: /* @__PURE__ */ a.jsx(Gt, { children: "Navigation" }) }),
2357
2358
  t.map((n) => /* @__PURE__ */ a.jsx(
2358
2359
  pe,
2359
2360
  {
@@ -2365,24 +2366,24 @@ const ui = ({
2365
2366
  ] })
2366
2367
  }
2367
2368
  )
2368
- ] }), li = ({ children: e }) => {
2369
- const [t, n] = vt(!1), { navigation: r } = Wt(), o = r.length > 0, s = yt().state === "loading", { options: i } = G();
2369
+ ] }), hi = ({ children: e }) => {
2370
+ const [t, n] = zt(!1), { navigation: r } = Ht(), o = r.length > 0, s = Zt().state === "loading", { options: i } = G();
2370
2371
  return /* @__PURE__ */ a.jsxs(
2371
- ut,
2372
+ lt,
2372
2373
  {
2373
2374
  direction: i.site?.dir === "rtl" ? "right" : "left",
2374
2375
  open: t,
2375
2376
  onOpenChange: (u) => n(u),
2376
2377
  children: [
2377
2378
  o && /* @__PURE__ */ a.jsx(
2378
- ui,
2379
+ pi,
2379
2380
  {
2380
2381
  onRequestClose: () => n(!1),
2381
2382
  navigation: r
2382
2383
  }
2383
2384
  ),
2384
- o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(oi, { className: "flex items-center gap-2 px-4", children: [
2385
- /* @__PURE__ */ a.jsx(Ot, { size: 16, strokeWidth: 1.5 }),
2385
+ o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(ci, { className: "flex items-center gap-2 px-4", children: [
2386
+ /* @__PURE__ */ a.jsx(Dt, { size: 16, strokeWidth: 1.5 }),
2386
2387
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
2387
2388
  ] }) }),
2388
2389
  /* @__PURE__ */ a.jsxs(
@@ -2395,23 +2396,23 @@ const ui = ({
2395
2396
  s && "animate-pulse"
2396
2397
  ),
2397
2398
  children: [
2398
- /* @__PURE__ */ a.jsx(P.Target, { name: "content-before" }),
2399
+ /* @__PURE__ */ a.jsx(E.Target, { name: "content-before" }),
2399
2400
  e,
2400
- /* @__PURE__ */ a.jsx(P.Target, { name: "content-after" })
2401
+ /* @__PURE__ */ a.jsx(E.Target, { name: "content-after" })
2401
2402
  ]
2402
2403
  }
2403
2404
  )
2404
2405
  ]
2405
2406
  }
2406
2407
  );
2407
- }, di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Kt, {}) }), fi = ({ children: e }) => {
2408
+ }, mi = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Qt, {}) }), gi = ({ children: e }) => {
2408
2409
  const { authentication: t } = G();
2409
- return Ft(), ei(), K(() => {
2410
+ return Mt(), oi(), K(() => {
2410
2411
  t?.onPageLoad?.();
2411
- }, [t]), /* @__PURE__ */ a.jsxs(Lt, { children: [
2412
- /* @__PURE__ */ a.jsx(P.Target, { name: "layout-before-head" }),
2413
- /* @__PURE__ */ a.jsx(Bt, {}),
2414
- /* @__PURE__ */ a.jsx(P.Target, { name: "layout-after-head" }),
2412
+ }, [t]), /* @__PURE__ */ a.jsxs(Wt, { children: [
2413
+ /* @__PURE__ */ a.jsx(E.Target, { name: "layout-before-head" }),
2414
+ /* @__PURE__ */ a.jsx(Vt, {}),
2415
+ /* @__PURE__ */ a.jsx(E.Target, { name: "layout-after-head" }),
2415
2416
  /* @__PURE__ */ a.jsx(
2416
2417
  "div",
2417
2418
  {
@@ -2420,20 +2421,20 @@ const ui = ({
2420
2421
  "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2421
2422
  "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2422
2423
  ),
2423
- children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(di, {}), children: /* @__PURE__ */ a.jsx(li, { children: e ?? /* @__PURE__ */ a.jsx(kt, {}) }) })
2424
+ children: /* @__PURE__ */ a.jsx(bt, { fallback: /* @__PURE__ */ a.jsx(mi, {}), children: /* @__PURE__ */ a.jsx(hi, { children: e ?? /* @__PURE__ */ a.jsx($t, {}) }) })
2424
2425
  }
2425
2426
  ),
2426
- /* @__PURE__ */ a.jsx(ri, {})
2427
+ /* @__PURE__ */ a.jsx(ai, {})
2427
2428
  ] });
2428
- }, pi = ({ children: e }) => {
2429
- const { meta: t, options: n } = G(), r = Re();
2429
+ }, _i = ({ children: e }) => {
2430
+ const { meta: t, options: n } = G(), r = Ce();
2430
2431
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2431
- /* @__PURE__ */ a.jsxs(Oe, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2432
+ /* @__PURE__ */ a.jsxs(Se, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2432
2433
  n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
2433
2434
  "link",
2434
2435
  {
2435
2436
  rel: "canonical",
2436
- href: qt(
2437
+ href: Jt(
2437
2438
  n.canonicalUrlOrigin,
2438
2439
  n.basePath,
2439
2440
  r.pathname
@@ -2452,23 +2453,23 @@ const ui = ({
2452
2453
  ] }),
2453
2454
  e
2454
2455
  ] });
2455
- }, hi = ({
2456
+ }, vi = ({
2456
2457
  title: e = "An error occurred",
2457
2458
  message: t,
2458
2459
  category: n
2459
- }) => /* @__PURE__ */ a.jsxs(Ue, { className: "h-full pt-(--padding-content-top)", children: [
2460
- n && /* @__PURE__ */ a.jsx(Be, { children: n }),
2461
- e && /* @__PURE__ */ a.jsx(Fe, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2460
+ }) => /* @__PURE__ */ a.jsxs(Fe, { className: "h-full pt-(--padding-content-top)", children: [
2461
+ n && /* @__PURE__ */ a.jsx(Me, { children: n }),
2462
+ e && /* @__PURE__ */ a.jsx(Le, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2462
2463
  /* @__PURE__ */ a.jsx("p", { children: t })
2463
- ] }), ft = () => {
2464
- const e = xt();
2465
- return /* @__PURE__ */ a.jsxs(Ue, { className: "h-full pt-(--padding-content-top)", children: [
2466
- /* @__PURE__ */ a.jsx(Be, { children: "404" }),
2467
- /* @__PURE__ */ a.jsxs(Fe, { level: 1, className: "flex gap-3.5 items-center", children: [
2464
+ ] }), pt = () => {
2465
+ const e = jt();
2466
+ return /* @__PURE__ */ a.jsxs(Fe, { className: "h-full pt-(--padding-content-top)", children: [
2467
+ /* @__PURE__ */ a.jsx(Me, { children: "404" }),
2468
+ /* @__PURE__ */ a.jsxs(Le, { level: 1, className: "flex gap-3.5 items-center", children: [
2468
2469
  "Page not found",
2469
- /* @__PURE__ */ a.jsx(St, { size: 24 })
2470
+ /* @__PURE__ */ a.jsx(Rt, { size: 24 })
2470
2471
  ] }),
2471
- /* @__PURE__ */ a.jsxs(Mt, { children: [
2472
+ /* @__PURE__ */ a.jsxs(qt, { children: [
2472
2473
  "Start by adding a file at",
2473
2474
  " ",
2474
2475
  /* @__PURE__ */ a.jsxs("code", { children: [
@@ -2484,9 +2485,9 @@ const ui = ({
2484
2485
  " is the `pages` directory."
2485
2486
  ] }),
2486
2487
  /* @__PURE__ */ a.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
2487
- /* @__PURE__ */ a.jsx(Zt, { to: "/", children: "Go back home" })
2488
+ /* @__PURE__ */ a.jsx(Pt, { to: "/", children: "Go back home" })
2488
2489
  ] });
2489
- }, mi = (e) => {
2490
+ }, wi = (e) => {
2490
2491
  switch (e) {
2491
2492
  case 400:
2492
2493
  return {
@@ -2549,12 +2550,12 @@ const ui = ({
2549
2550
  message: "Something went wrong while processing your request."
2550
2551
  };
2551
2552
  }
2552
- }, gi = ({ statusCode: e, message: t }) => {
2553
+ }, zi = ({ statusCode: e, message: t }) => {
2553
2554
  if (e === 404)
2554
- return /* @__PURE__ */ a.jsx(ft, {});
2555
- const n = mi(e);
2555
+ return /* @__PURE__ */ a.jsx(pt, {});
2556
+ const n = wi(e);
2556
2557
  return /* @__PURE__ */ a.jsx(
2557
- hi,
2558
+ vi,
2558
2559
  {
2559
2560
  title: n.title,
2560
2561
  message: t ?? n.message,
@@ -2562,24 +2563,46 @@ const ui = ({
2562
2563
  }
2563
2564
  );
2564
2565
  };
2565
- function _i({ className: e }) {
2566
- const t = $t();
2567
- return jt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(ft, {}) : /* @__PURE__ */ a.jsx("div", { className: x("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(Le, { error: t }) });
2568
- }
2569
- function vi({ error: e }) {
2570
- return /* @__PURE__ */ a.jsx(Le, { error: e });
2571
- }
2572
- const Ni = fi, Di = _i, Ri = vi, Ci = Qt, Ui = Xt, Fi = Pt, Li = Oe, Bi = gi, Mi = Xs, Wi = pi;
2566
+ function bi({ className: e }) {
2567
+ const t = Et();
2568
+ return Tt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(pt, {}) : /* @__PURE__ */ a.jsx("div", { className: x("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(Be, { error: t }) });
2569
+ }
2570
+ function yi({ error: e }) {
2571
+ return /* @__PURE__ */ a.jsx(Be, { error: e });
2572
+ }
2573
+ const Oe = (e) => typeof e == "object" && e !== null && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype, ht = (e, t) => {
2574
+ const n = { ...e };
2575
+ for (const r of Object.keys(t)) {
2576
+ const o = t[r], s = e[r];
2577
+ yt(o) || Array.isArray(o) || !Oe(o) ? n[r] = o : Oe(s) ? n[r] = ht(
2578
+ s,
2579
+ o
2580
+ ) : n[r] = o;
2581
+ }
2582
+ return n;
2583
+ }, ki = async (e) => {
2584
+ const t = e.plugins ?? [];
2585
+ let n = e;
2586
+ for (const r of t.filter(Xt)) {
2587
+ const o = (i) => ht(n, i), s = await r.transformConfig?.({
2588
+ config: n,
2589
+ merge: o
2590
+ });
2591
+ s && (n = s);
2592
+ }
2593
+ return n;
2594
+ }, Li = gi, Bi = bi, Mi = yi, Wi = nn, Vi = rn, qi = Ot, Hi = Se, Ji = zi, Ki = ri, Gi = _i, Yi = ki;
2573
2595
  export {
2574
- Ci as Bootstrap,
2575
- Ui as BootstrapStatic,
2576
- Mi as BuildCheck,
2577
- Li as Head,
2578
- Ni as Layout,
2579
- Wi as Meta,
2580
- Fi as RouteGuard,
2581
- Di as RouterError,
2582
- Ri as ServerError,
2583
- Bi as StatusPage
2596
+ Wi as Bootstrap,
2597
+ Vi as BootstrapStatic,
2598
+ Ki as BuildCheck,
2599
+ Hi as Head,
2600
+ Li as Layout,
2601
+ Gi as Meta,
2602
+ qi as RouteGuard,
2603
+ Bi as RouterError,
2604
+ Mi as ServerError,
2605
+ Ji as StatusPage,
2606
+ Yi as runPluginTransformConfig
2584
2607
  };
2585
2608
  //# sourceMappingURL=zudoku.__internal.js.map