@opencloud-eu/web-client 8.0.0 → 8.1.0

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.
@@ -1,22 +1,25 @@
1
- import { t as e } from "./urlJoin-_pUL1TUx.js";
2
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/util.js
3
- function t(e) {
1
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
2
+ function e(e) {
4
3
  let t = Object.values(e).filter((e) => typeof e == "number");
5
4
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
6
5
  }
7
- function n(e, t = "|") {
8
- return e.map((e) => ne(e)).join(t);
6
+ function t(e, t = "|") {
7
+ return e.map((e) => oe(e)).join(t);
9
8
  }
10
- function r(e, t) {
9
+ function n(e, t) {
11
10
  return typeof t == "bigint" ? t.toString() : t;
12
11
  }
12
+ var r = class {
13
+ constructor(e) {
14
+ this._getter = e, this._value = void 0;
15
+ }
16
+ get value() {
17
+ let e = this._getter;
18
+ return e !== void 0 && (this._value = e(), this._getter = void 0), this._value;
19
+ }
20
+ };
13
21
  function i(e) {
14
- return { get value() {
15
- {
16
- let t = e();
17
- return Object.defineProperty(this, "value", { value: t }), t;
18
- }
19
- } };
22
+ return new r(e);
20
23
  }
21
24
  function a(e) {
22
25
  return e == null;
@@ -37,7 +40,43 @@ function c(e, t, n) {
37
40
  configurable: !0
38
41
  });
39
42
  }
40
- function l(...e) {
43
+ function l(e) {
44
+ let t = Object.getOwnPropertyDescriptor(e, "shape");
45
+ return t?.get ? t.get.raw : t?.value;
46
+ }
47
+ function u(e) {
48
+ return l(e._zod.def) ?? e._zod.def.shape;
49
+ }
50
+ function d(e, t, n) {
51
+ Object.defineProperty(e, t, {
52
+ get() {
53
+ let e = n();
54
+ return c(this, t, e), e;
55
+ },
56
+ enumerable: !0,
57
+ configurable: !0
58
+ });
59
+ }
60
+ function f(e, t, n) {
61
+ t in e ? c(e, t, n) : e[t] = n;
62
+ }
63
+ function p(e, t, n, r) {
64
+ let i = u(t);
65
+ for (let a of n) {
66
+ let n = Object.getOwnPropertyDescriptor(i, a);
67
+ n.enumerable && (n.get ? d(e, a, () => {
68
+ let e = t._zod.def.shape[a];
69
+ return r ? r(e, a) : e;
70
+ }) : f(e, a, r ? r(n.value, a) : n.value));
71
+ }
72
+ }
73
+ function m(e, t) {
74
+ for (let n of Reflect.ownKeys(t)) {
75
+ let r = Object.getOwnPropertyDescriptor(t, n);
76
+ r.enumerable && (r.get ? d(e, n, () => t[n]) : f(e, n, r.value));
77
+ }
78
+ }
79
+ function h(...e) {
41
80
  let t = {};
42
81
  for (let n of e) {
43
82
  let e = Object.getOwnPropertyDescriptors(n);
@@ -45,47 +84,47 @@ function l(...e) {
45
84
  }
46
85
  return Object.defineProperties({}, t);
47
86
  }
48
- function u(e) {
87
+ function ee(e) {
49
88
  return JSON.stringify(e);
50
89
  }
51
- function d(e) {
90
+ function te(e) {
52
91
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
53
92
  }
54
- var f = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
55
- function p(e) {
93
+ var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
94
+ function g(e) {
56
95
  return typeof e == "object" && !!e && !Array.isArray(e);
57
96
  }
58
- var m = /* @__PURE__*/ i(() => {
59
- if (O.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
97
+ var re = /* @__PURE__*/ i(() => {
98
+ if (A.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
60
99
  try {
61
100
  return Function(""), !0;
62
101
  } catch {
63
102
  return !1;
64
103
  }
65
104
  });
66
- function h(e) {
67
- if (p(e) === !1) return !1;
105
+ function _(e) {
106
+ if (g(e) === !1) return !1;
68
107
  let t = e.constructor;
69
108
  if (t === void 0 || typeof t != "function") return !0;
70
109
  let n = t.prototype;
71
- return p(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
110
+ return g(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
72
111
  }
73
- function ee(e) {
74
- return h(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
112
+ function ie(e) {
113
+ return _(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
75
114
  }
76
- var te = /* @__PURE__*/ new Set([
115
+ var ae = /* @__PURE__*/ new Set([
77
116
  "string",
78
117
  "number",
79
118
  "symbol"
80
119
  ]);
81
- function g(e) {
120
+ function v(e) {
82
121
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
83
122
  }
84
- function _(e, t, n) {
123
+ function y(e, t, n) {
85
124
  let r = new e._zod.constr(t ?? e._zod.def);
86
125
  return (!t || n?.parent) && (r._zod.parent = e), r;
87
126
  }
88
- function v(e) {
127
+ function b(e) {
89
128
  let t = e;
90
129
  if (!t) return {};
91
130
  if (typeof t == "string") return { error: () => t };
@@ -98,172 +137,139 @@ function v(e) {
98
137
  error: () => t.error
99
138
  } : t;
100
139
  }
101
- function ne(e) {
140
+ function oe(e) {
102
141
  return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
103
142
  }
104
- function re(e) {
143
+ function se(e) {
105
144
  return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
106
145
  }
107
- var ie = {
146
+ var ce = {
108
147
  safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
109
148
  int32: [-2147483648, 2147483647],
110
149
  uint32: [0, 4294967295],
111
150
  float32: [-34028234663852886e22, 34028234663852886e22],
112
151
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
152
+ }, le = {
153
+ int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
154
+ uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")]
113
155
  };
114
- function ae(e, t) {
156
+ function ue(e, t) {
115
157
  let n = e._zod.def, r = n.checks;
116
158
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
117
- return _(e, l(e._zod.def, {
118
- get shape() {
119
- let e = {};
120
- for (let r of Reflect.ownKeys(t)) {
121
- if (!Object.prototype.hasOwnProperty.call(n.shape, r)) throw Error(`Unrecognized key: "${String(r)}"`);
122
- t[r] && c(e, r, n.shape[r]);
123
- }
124
- return c(this, "shape", e), e;
125
- },
159
+ let i = {};
160
+ return p(i, e, de(e, t)), y(e, h(n, {
161
+ shape: i,
126
162
  checks: []
127
163
  }));
128
164
  }
129
- function oe(e, t) {
165
+ function de(e, t) {
166
+ let n = u(e), r = [];
167
+ for (let e of Reflect.ownKeys(t)) {
168
+ if (!Object.getOwnPropertyDescriptor(n, e)?.enumerable) throw Error(`Unrecognized key: "${String(e)}"`);
169
+ t[e] && r.push(e);
170
+ }
171
+ return r;
172
+ }
173
+ function fe(e, t) {
130
174
  let n = e._zod.def, r = n.checks;
131
175
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
132
- return _(e, l(e._zod.def, {
133
- get shape() {
134
- let r = { ...e._zod.def.shape };
135
- for (let e of Reflect.ownKeys(t)) {
136
- if (!Object.prototype.hasOwnProperty.call(n.shape, e)) throw Error(`Unrecognized key: "${String(e)}"`);
137
- t[e] && delete r[e];
138
- }
139
- return c(this, "shape", r), r;
140
- },
176
+ let i = new Set(de(e, t)), a = {};
177
+ return p(a, e, Reflect.ownKeys(u(e)).filter((e) => !i.has(e))), y(e, h(n, {
178
+ shape: a,
141
179
  checks: []
142
180
  }));
143
181
  }
144
- function se(e, t) {
145
- if (!h(t)) throw Error("Invalid input to extend: expected a plain object");
182
+ function pe(e, t) {
183
+ if (!_(t)) throw Error("Invalid input to extend: expected a plain object");
146
184
  let n = e._zod.def.checks;
147
185
  if (n && n.length > 0) {
148
- let n = e._zod.def.shape;
186
+ let n = u(e);
149
187
  for (let e of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
150
188
  }
151
- return _(e, l(e._zod.def, { get shape() {
152
- let n = {
153
- ...e._zod.def.shape,
154
- ...t
155
- };
156
- return c(this, "shape", n), n;
157
- } }));
158
- }
159
- function ce(e, t) {
160
- if (!h(t)) throw Error("Invalid input to safeExtend: expected a plain object");
161
- return _(e, l(e._zod.def, { get shape() {
162
- let n = {
163
- ...e._zod.def.shape,
164
- ...t
165
- };
166
- return c(this, "shape", n), n;
167
- } }));
189
+ return y(e, h(e._zod.def, { shape: me(e, t) }));
190
+ }
191
+ function me(e, t) {
192
+ let n = {};
193
+ return p(n, e, Reflect.ownKeys(u(e))), m(n, t), n;
168
194
  }
169
- function le(e, t) {
195
+ function he(e, t) {
196
+ if (!_(t)) throw Error("Invalid input to safeExtend: expected a plain object");
197
+ return y(e, h(e._zod.def, { shape: me(e, t) }));
198
+ }
199
+ function ge(e, t) {
170
200
  if (!t?._zod?.def) throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
171
201
  if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
172
- return _(e, l(e._zod.def, {
173
- get shape() {
174
- let n = {
175
- ...e._zod.def.shape,
176
- ...t._zod.def.shape
177
- };
178
- return c(this, "shape", n), n;
179
- },
202
+ let n = {};
203
+ return p(n, e, Reflect.ownKeys(u(e))), p(n, t, Reflect.ownKeys(u(t))), y(e, h(e._zod.def, {
204
+ shape: n,
180
205
  get catchall() {
181
206
  return t._zod.def.catchall;
182
207
  },
183
208
  checks: t._zod.def.checks ?? []
184
209
  }));
185
210
  }
186
- function ue(e, t, n, r = "partial") {
211
+ function _e(e, t, n, r = "partial") {
187
212
  let i = t._zod.def.checks;
188
213
  if (i && i.length > 0) throw Error(`.${r}() cannot be used on object schemas containing refinements`);
189
- return _(t, l(t._zod.def, {
190
- get shape() {
191
- let r = t._zod.def.shape, i = { ...r };
192
- if (n) for (let t of Reflect.ownKeys(n)) {
193
- if (!Object.prototype.hasOwnProperty.call(r, t)) throw Error(`Unrecognized key: "${String(t)}"`);
194
- n[t] && (i[t] = e ? new e({
195
- type: "optional",
196
- innerType: r[t]
197
- }) : r[t]);
198
- }
199
- else for (let t of Reflect.ownKeys(r)) i[t] = e ? new e({
200
- type: "optional",
201
- innerType: r[t]
202
- }) : r[t];
203
- return c(this, "shape", i), i;
204
- },
214
+ let a = n ? new Set(de(t, n)) : void 0, o = {};
215
+ return p(o, t, Reflect.ownKeys(u(t)), e && ((t, n) => a && !a.has(n) ? t : new e({
216
+ type: "optional",
217
+ innerType: t
218
+ }))), y(t, h(t._zod.def, {
219
+ shape: o,
205
220
  checks: []
206
221
  }));
207
222
  }
208
- function de(e, t, n) {
209
- return _(t, l(t._zod.def, { get shape() {
210
- let r = t._zod.def.shape, i = { ...r };
211
- if (n) for (let t of Reflect.ownKeys(n)) {
212
- if (!Object.prototype.hasOwnProperty.call(i, t)) throw Error(`Unrecognized key: "${String(t)}"`);
213
- n[t] && (i[t] = new e({
214
- type: "nonoptional",
215
- innerType: r[t]
216
- }));
217
- }
218
- else for (let t of Reflect.ownKeys(r)) i[t] = new e({
219
- type: "nonoptional",
220
- innerType: r[t]
221
- });
222
- return c(this, "shape", i), i;
223
- } }));
223
+ function ve(e, t, n) {
224
+ let r = n ? new Set(de(t, n)) : void 0, i = {};
225
+ return p(i, t, Reflect.ownKeys(u(t)), (t, n) => r && !r.has(n) ? t : new e({
226
+ type: "nonoptional",
227
+ innerType: t
228
+ })), y(t, h(t._zod.def, { shape: i }));
224
229
  }
225
- function y(e, t = 0) {
230
+ function x(e, t = 0) {
226
231
  if (e.aborted === !0) return !0;
227
232
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
228
233
  return !1;
229
234
  }
230
- function fe(e, t = 0) {
235
+ function ye(e, t = 0) {
231
236
  if (e.aborted === !0) return !0;
232
237
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
233
238
  return !1;
234
239
  }
235
- function pe(e, t) {
240
+ function be(e, t) {
236
241
  return t.map((t) => {
237
242
  var n;
238
243
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
239
244
  });
240
245
  }
241
- function b(e) {
246
+ function S(e) {
242
247
  return typeof e == "string" ? e : e?.message;
243
248
  }
244
- function me(e, t, n) {
249
+ function xe(e, t, n) {
245
250
  var r;
246
251
  for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
247
252
  }
248
- function x(e, t, n) {
253
+ function C(e, t, n) {
249
254
  var r;
250
255
  let i = e.inst?._zod?.traits;
251
256
  i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
252
- let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : b(e.inst?._zod.def?.error?.(e)) ?? b(a?.(e)) ?? b(t?.error?.(e)) ?? b(n.customError?.(e)) ?? b(n.localeError?.(e)) ?? "Invalid input", { inst: s, schema: c, continue: l, input: u, ...d } = e;
253
- return d.path ??= [], d.message = o, t?.reportInput && (d.input = u), d;
257
+ let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : S(e.inst?._zod.def?.error?.(e)) ?? S(a?.(e)) ?? S(t?.error?.(e)) ?? S(n.customError?.(e)) ?? S(n.localeError?.(e)) ?? "Invalid input", s = {};
258
+ for (let t of Object.keys(e)) t !== "inst" && t !== "schema" && t !== "continue" && t !== "input" && t !== "__proto__" && (s[t] = e[t]);
259
+ return s.path ??= [], s.message = o, t?.reportInput && (s.input = e.input), s;
254
260
  }
255
- var he = /[\uD800-\uDBFF]/;
256
- function ge(e) {
261
+ var Se = /[\uD800-\uDBFF]/;
262
+ function Ce(e) {
257
263
  let t = e.length;
258
- if (!he.test(e)) return t;
264
+ if (!Se.test(e)) return t;
259
265
  let n = t;
260
266
  for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
261
267
  return n;
262
268
  }
263
- function _e(e) {
269
+ function we(e) {
264
270
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
265
271
  }
266
- function ve(e) {
272
+ function Te(e) {
267
273
  let t = typeof e;
268
274
  switch (t) {
269
275
  case "number": return Number.isNaN(e) ? "nan" : "number";
@@ -276,7 +282,7 @@ function ve(e) {
276
282
  }
277
283
  return t;
278
284
  }
279
- function S(...e) {
285
+ function w(...e) {
280
286
  let [t, n, r] = e;
281
287
  return typeof t == "string" ? {
282
288
  message: t,
@@ -285,16 +291,16 @@ function S(...e) {
285
291
  inst: r
286
292
  } : { ...t };
287
293
  }
288
- function ye(e, t) {
294
+ function Ee(e, t) {
289
295
  for (let n in t) {
290
296
  let r = Object.getOwnPropertyDescriptor(t, n);
291
297
  r.get ? Object.defineProperty(e, n, {
292
298
  ...r,
293
299
  enumerable: !1
294
- }) : xe(e, n, r.value);
300
+ }) : ke(e, n, r.value);
295
301
  }
296
302
  }
297
- function C(e, t, n, r = !0) {
303
+ function T(e, t, n, r = !0) {
298
304
  return Object.defineProperty(e, t, {
299
305
  configurable: !0,
300
306
  writable: !0,
@@ -302,51 +308,67 @@ function C(e, t, n, r = !0) {
302
308
  value: n
303
309
  }), n;
304
310
  }
305
- function be(e, t, n) {
306
- return C(e, t, n, !1);
311
+ function De(e, t, n) {
312
+ return T(e, t, n, !1);
313
+ }
314
+ function Oe(e, t) {
315
+ for (let n in e) {
316
+ let r = e[n];
317
+ Object.defineProperty(t, n, {
318
+ configurable: !0,
319
+ enumerable: !0,
320
+ get() {
321
+ return T(this, n, r(this));
322
+ },
323
+ set(e) {
324
+ T(this, n, e);
325
+ }
326
+ });
327
+ }
328
+ return t;
307
329
  }
308
- function xe(e, t, n) {
330
+ function ke(e, t, n) {
309
331
  Object.defineProperty(e, t, {
310
332
  configurable: !0,
311
333
  get() {
312
- return this == null ? n : C(this, t, n.bind(this));
334
+ return this == null ? n : T(this, t, n.bind(this));
313
335
  },
314
336
  set(e) {
315
- C(this, t, e);
337
+ T(this, t, e);
316
338
  }
317
339
  });
318
340
  }
319
- function Se(e, t) {
341
+ function Ae(e, t) {
320
342
  let n = Object.getPrototypeOf(e);
321
343
  return t in n ? void 0 : n;
322
344
  }
323
- var Ce, w = !1, we = {
345
+ var je, E = !1, Me = {
324
346
  configurable: !0,
325
347
  get() {
326
- w = !0;
348
+ E = !0;
327
349
  }
328
350
  };
329
- function T(e, t, n) {
351
+ function D(e, t, n) {
330
352
  let r = Object.getPrototypeOf(e._zod);
331
- if (t in r && Ce !== e._zod) {
332
- Ce = void 0;
353
+ if (t in r && je !== e._zod) {
354
+ je = void 0;
333
355
  return;
334
356
  }
335
- Ce = e._zod, Object.defineProperty(r, t, {
357
+ je = e._zod, Object.defineProperty(r, t, {
336
358
  configurable: !0,
337
359
  get() {
338
- Object.defineProperty(this, t, we);
339
- let e = w;
340
- w = !1;
360
+ Object.defineProperty(this, t, Me);
361
+ let e = E;
362
+ E = !1;
341
363
  try {
342
364
  let r = n(this);
343
- return w ? delete this[t] : Object.defineProperty(this, t, {
365
+ return E ? delete this[t] : Object.defineProperty(this, t, {
344
366
  configurable: !0,
345
367
  writable: !0,
346
368
  value: r
347
- }), w ||= e, r;
369
+ }), E ||= e, r;
348
370
  } catch (n) {
349
- throw delete this[t], w ||= e, n;
371
+ throw delete this[t], E ||= e, n;
350
372
  }
351
373
  },
352
374
  set(e) {
@@ -358,8 +380,8 @@ function T(e, t, n) {
358
380
  }
359
381
  });
360
382
  }
361
- function Te(e, t, n, r) {
362
- let i = Se(e, t);
383
+ function Ne(e, t, n, r) {
384
+ let i = Ae(e, t);
363
385
  i && Object.defineProperty(i, t, {
364
386
  configurable: !0,
365
387
  get() {
@@ -381,26 +403,26 @@ function Te(e, t, n, r) {
381
403
  }
382
404
  });
383
405
  }
384
- var Ee = "~constantCatch";
385
- function De(e) {
406
+ var Pe = "~constantCatch";
407
+ function Fe(e) {
386
408
  let t = () => e;
387
- return t[Ee] = !0, t;
409
+ return t[Pe] = !0, t;
388
410
  }
389
411
  //#endregion
390
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/core.js
391
- var Oe, ke = {
412
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
413
+ var Ie, Le = {
392
414
  value: void 0,
393
415
  enumerable: !1
394
- }, Ae = "captureStackTrace" in Error ? Error : null;
395
- function je(e) {
396
- let t = Ae;
416
+ }, Re = "captureStackTrace" in Error ? Error : null;
417
+ function ze(e) {
418
+ let t = Re;
397
419
  if (t) {
398
420
  let n = t.stackTraceLimit;
399
421
  if (typeof n == "number") {
400
422
  try {
401
423
  t.stackTraceLimit = 0;
402
424
  } catch {
403
- return Ae = null, new e();
425
+ return Re = null, new e();
404
426
  }
405
427
  try {
406
428
  return new e();
@@ -411,7 +433,7 @@ function je(e) {
411
433
  }
412
434
  return new e();
413
435
  }
414
- function E(e, t, n, r) {
436
+ function O(e, t, n, r) {
415
437
  let i = {};
416
438
  function a(e) {
417
439
  this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
@@ -420,19 +442,18 @@ function E(e, t, n, r) {
420
442
  let o = n, s = o && /* @__PURE__ */ new WeakSet();
421
443
  function c(n, r) {
422
444
  if (!n._zod) {
423
- ke.value = new a(r);
445
+ Le.value = new a(r);
424
446
  try {
425
- Object.defineProperty(n, "_zod", ke);
447
+ Object.defineProperty(n, "_zod", Le);
426
448
  } finally {
427
- ke.value = void 0;
449
+ Le.value = void 0;
428
450
  }
429
- }
430
- if (n._zod.traits.has(e)) return;
451
+ } else if (n._zod.traits.has(e)) return;
431
452
  if (n._zod.traits.add(e), t(n, r), s) {
432
453
  let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
433
454
  for (; r && r !== t;) r = Object.getPrototypeOf(r);
434
455
  let i = r ?? e;
435
- s.has(i) || (s.add(i), ye(i, o));
456
+ s.has(i) || (s.add(i), Ee(i, o));
436
457
  }
437
458
  let i = d.prototype;
438
459
  for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
@@ -441,7 +462,7 @@ function E(e, t, n, r) {
441
462
  class u extends l {}
442
463
  Object.defineProperty(u, "name", { value: e });
443
464
  function d(e) {
444
- let t = r?.Parent ? je(u) : this;
465
+ let t = r?.Parent ? ze(u) : this;
445
466
  c(t, e);
446
467
  let n = t._zod.deferred;
447
468
  if (n) {
@@ -453,44 +474,41 @@ function E(e, t, n, r) {
453
474
  }
454
475
  return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
455
476
  }
456
- var D = class extends Error {
477
+ var k = class extends Error {
457
478
  constructor() {
458
479
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
459
480
  }
460
- }, Me = class extends Error {
481
+ }, Be = class extends Error {
461
482
  constructor(e) {
462
483
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
463
484
  }
464
485
  };
465
- (Oe = globalThis).__zod_globalConfig ?? (Oe.__zod_globalConfig = {});
466
- var O = globalThis.__zod_globalConfig;
467
- function k(e) {
468
- return e && Object.assign(O, e), O;
486
+ (Ie = globalThis).__zod_globalConfig ?? (Ie.__zod_globalConfig = {});
487
+ var A = globalThis.__zod_globalConfig;
488
+ function j(e) {
489
+ return e && Object.assign(A, e), A;
469
490
  }
470
491
  //#endregion
471
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/errors.js
472
- function Ne() {
492
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
493
+ function Ve() {
473
494
  let e = this._zod;
474
- return e.message ??= JSON.stringify(e.def, r, 2), e.message;
495
+ return e.message ??= JSON.stringify(e.def, n, 2), e.message;
475
496
  }
476
- function Pe(e) {
497
+ function He(e) {
477
498
  this._zod.message = e;
478
499
  }
479
- var Fe = {
480
- get: Ne,
481
- set: Pe,
500
+ var Ue = {
501
+ get: Ve,
502
+ set: He,
482
503
  enumerable: !0,
483
504
  configurable: !0
484
- }, Ie = {
485
- value: void 0,
486
- enumerable: !1
487
- }, Le = {
505
+ }, We = {
488
506
  value: void 0,
489
507
  enumerable: !1
490
- }, Re = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), ze = (e, t) => {
491
- e.name = "$ZodError", Ie.value = e._zod, Object.defineProperty(e, "_zod", Ie), Le.value = t, Object.defineProperty(e, "issues", Le), Ie.value = void 0, Le.value = void 0, Object.defineProperty(e, "message", Fe);
508
+ }, Ge = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Ke = (e, t) => {
509
+ e.name = "$ZodError", We.value = t, Object.defineProperty(e, "issues", We), We.value = void 0, Object.defineProperty(e, "message", Ue);
492
510
  let n = Object.getPrototypeOf(e);
493
- Re.has(n) || (Re.add(n), Object.defineProperty(n, "toString", {
511
+ Ge.has(n) || (Ge.add(n), Object.defineProperty(n, "toString", {
494
512
  configurable: !0,
495
513
  enumerable: !1,
496
514
  get() {
@@ -509,8 +527,9 @@ var Fe = {
509
527
  });
510
528
  }
511
529
  }));
512
- }, Be = E("$ZodError", ze), Ve = E("$ZodError", ze, void 0, { Parent: Error });
513
- function He(e, t, n) {
530
+ }, qe = O("$ZodError", Ke);
531
+ O("$ZodError", Ke, void 0, { Parent: Error });
532
+ function Je(e, t, n) {
514
533
  return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
515
534
  value: n(),
516
535
  writable: !0,
@@ -518,15 +537,15 @@ function He(e, t, n) {
518
537
  configurable: !0
519
538
  }) : e[t] = n()), e[t];
520
539
  }
521
- function Ue(e, t = (e) => e.message) {
540
+ function Ye(e, t = (e) => e.message) {
522
541
  let n = {}, r = [];
523
- for (let i of e.issues) i.path.length > 0 ? He(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
542
+ for (let i of e.issues) i.path.length > 0 ? Je(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
524
543
  return {
525
544
  formErrors: r,
526
545
  fieldErrors: n
527
546
  };
528
547
  }
529
- function We(e, t = (e) => e.message) {
548
+ function Xe(e, t = (e) => e.message) {
530
549
  let n = { _errors: [] }, r = (e, i = []) => {
531
550
  for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
532
551
  else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
@@ -557,14 +576,14 @@ function We(e, t = (e) => e.message) {
557
576
  return r(e), n;
558
577
  }
559
578
  //#endregion
560
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/parse.js
561
- function A(e, t) {
579
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
580
+ function M(e, t) {
562
581
  return {
563
582
  callee: t?.callee ?? e,
564
583
  Err: t?.Err
565
584
  };
566
585
  }
567
- var Ge = (e) => {
586
+ var Ze = (e) => {
568
587
  let t = (n, r, i, a) => {
569
588
  let o = i ? {
570
589
  ...i,
@@ -573,15 +592,15 @@ var Ge = (e) => {
573
592
  value: r,
574
593
  issues: []
575
594
  }, o);
576
- if (s instanceof Promise) throw new D();
595
+ if (s instanceof Promise) throw new k();
577
596
  if (s.issues.length) {
578
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => x(e, o, k())));
579
- throw f(n, a?.callee ?? t), n;
597
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => C(e, o, j())));
598
+ throw ne(n, a?.callee ?? t), n;
580
599
  }
581
600
  return s.value;
582
601
  };
583
602
  return t;
584
- }, Ke = (e) => {
603
+ }, Qe = (e) => {
585
604
  let t = async (n, r, i, a) => {
586
605
  let o = i ? {
587
606
  ...i,
@@ -591,13 +610,13 @@ var Ge = (e) => {
591
610
  issues: []
592
611
  }, o);
593
612
  if (s instanceof Promise && (s = await s), s.issues.length) {
594
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => x(e, o, k())));
595
- throw f(n, a?.callee ?? t), n;
613
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => C(e, o, j())));
614
+ throw ne(n, a?.callee ?? t), n;
596
615
  }
597
616
  return s.value;
598
617
  };
599
618
  return t;
600
- }, j = (e) => (t, n, r) => {
619
+ }, $e = (e) => (t, n, r) => {
601
620
  let i = r ? {
602
621
  ...r,
603
622
  async: !1
@@ -605,15 +624,25 @@ var Ge = (e) => {
605
624
  value: n,
606
625
  issues: []
607
626
  }, i);
608
- if (a instanceof Promise) throw new D();
609
- return a.issues.length ? {
610
- success: !1,
611
- error: new (e ?? Be)(a.issues.map((e) => x(e, i, k())))
612
- } : {
627
+ if (a instanceof Promise) throw new k();
628
+ return a.issues.length ? et(e, a.issues, i) : {
613
629
  success: !0,
614
630
  data: a.value
615
631
  };
616
- }, qe = /* @__PURE__*/ j(Ve), Je = (e) => async (t, n, r) => {
632
+ };
633
+ function et(e, t, n) {
634
+ let r;
635
+ return {
636
+ success: !1,
637
+ get error() {
638
+ return r || (r = new e(t.map((e) => C(e, n, j()))), t = void 0, n = void 0), r;
639
+ },
640
+ set error(e) {
641
+ r = e, t = void 0, n = void 0;
642
+ }
643
+ };
644
+ }
645
+ var tt = (e) => async (t, n, r) => {
617
646
  let i = r ? {
618
647
  ...r,
619
648
  async: !0
@@ -621,100 +650,130 @@ var Ge = (e) => {
621
650
  value: n,
622
651
  issues: []
623
652
  }, i);
624
- return a instanceof Promise && (a = await a), a.issues.length ? {
625
- success: !1,
626
- error: new e(a.issues.map((e) => x(e, i, k())))
627
- } : {
653
+ return a instanceof Promise && (a = await a), a.issues.length ? et(e, a.issues, i) : {
628
654
  success: !0,
629
655
  data: a.value
630
656
  };
631
- }, Ye = /* @__PURE__*/ Je(Ve), Xe = (e) => {
632
- let t = Ge(e), n = (e, r, i, a) => {
657
+ }, nt = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), rt = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), it = ((e, t, n) => {
658
+ let r = e._zod.bag.validator;
659
+ if (r !== void 0) {
660
+ if (r(t) !== nt) return !0;
661
+ if (r.definite === !0 && n === void 0) return !1;
662
+ }
663
+ return at(e, t, n);
664
+ });
665
+ function at(e, t, n) {
666
+ let r = n ? {
667
+ ...n,
668
+ async: !1,
669
+ abortEarly: !0
670
+ } : {
671
+ async: !1,
672
+ abortEarly: !0
673
+ }, i = e._zod.bag.fallbackRun, a;
674
+ if (i ? (r[rt] = !0, a = i({
675
+ value: t,
676
+ issues: []
677
+ }, r)) : a = e._zod.run({
678
+ value: t,
679
+ issues: []
680
+ }, r), a instanceof Promise) throw new k();
681
+ return a.issues.length === 0;
682
+ }
683
+ var ot = async (e, t, n) => {
684
+ let r = n ? {
685
+ ...n,
686
+ async: !0,
687
+ abortEarly: !0
688
+ } : {
689
+ async: !0,
690
+ abortEarly: !0
691
+ }, i = e._zod.run({
692
+ value: t,
693
+ issues: []
694
+ }, r);
695
+ return i instanceof Promise && (i = await i), i.issues.length === 0;
696
+ }, st = (e) => {
697
+ let t = Ze(e), n = (e, r, i, a) => {
633
698
  let o = i ? {
634
699
  ...i,
635
700
  direction: "backward"
636
701
  } : { direction: "backward" };
637
- return t(e, r, o, A(n, a));
702
+ return t(e, r, o, M(n, a));
638
703
  };
639
704
  return n;
640
- }, Ze = (e) => {
641
- let t = Ge(e), n = (e, r, i, a) => t(e, r, i, A(n, a));
705
+ }, ct = (e) => {
706
+ let t = Ze(e), n = (e, r, i, a) => t(e, r, i, M(n, a));
642
707
  return n;
643
- }, Qe = (e) => {
644
- let t = Ke(e), n = async (e, r, i, a) => {
708
+ }, lt = (e) => {
709
+ let t = Qe(e), n = async (e, r, i, a) => {
645
710
  let o = i ? {
646
711
  ...i,
647
712
  direction: "backward"
648
713
  } : { direction: "backward" };
649
- return await t(e, r, o, A(n, a));
714
+ return await t(e, r, o, M(n, a));
650
715
  };
651
716
  return n;
652
- }, $e = (e) => {
653
- let t = Ke(e), n = async (e, r, i, a) => await t(e, r, i, A(n, a));
717
+ }, ut = (e) => {
718
+ let t = Qe(e), n = async (e, r, i, a) => await t(e, r, i, M(n, a));
654
719
  return n;
655
- }, et = (e) => (t, n, r) => {
720
+ }, dt = (e) => (t, n, r) => {
656
721
  let i = r ? {
657
722
  ...r,
658
723
  direction: "backward"
659
724
  } : { direction: "backward" };
660
- return j(e)(t, n, i);
661
- }, tt = (e) => (t, n, r) => j(e)(t, n, r), nt = (e) => async (t, n, r) => {
725
+ return $e(e)(t, n, i);
726
+ }, ft = (e) => (t, n, r) => $e(e)(t, n, r), pt = (e) => async (t, n, r) => {
662
727
  let i = r ? {
663
728
  ...r,
664
729
  direction: "backward"
665
730
  } : { direction: "backward" };
666
- return Je(e)(t, n, i);
667
- }, rt = (e) => async (t, n, r) => Je(e)(t, n, r), it = /^[cC][0-9a-z]{6,}$/, at = /^[0-9a-z]+$/, ot = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, st = /^[0-9a-vA-V]{20}$/, ct = /^[A-Za-z0-9]{27}$/, lt = /^[a-zA-Z0-9_-]{21}$/;
668
- function ut(e) {
731
+ return tt(e)(t, n, i);
732
+ }, mt = (e) => async (t, n, r) => tt(e)(t, n, r), ht = /^[cC][0-9a-z]{6,}$/, gt = /^[0-9a-z]+$/, _t = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, vt = /^[0-9a-vA-V]{20}$/, yt = /^[A-Za-z0-9]{27}$/, bt = /^[a-zA-Z0-9_-]{21}$/;
733
+ function xt(e) {
669
734
  return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
670
735
  }
671
- var dt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ft = /^([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})$/, pt = (e) => e ? 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)$/, mt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ht = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
672
- function gt() {
673
- return new RegExp(ht, "u");
736
+ var St = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ct = /^([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})$/, wt = (e) => e ? 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)$/, Tt = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Et = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
737
+ function Dt() {
738
+ return new RegExp(Et, "u");
674
739
  }
675
- var _t = /^(?:(?: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])$/, vt = /^(([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}|:))$/, yt = /^((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])$/, bt = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, xt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, St = /^[A-Za-z0-9_-]*$/, Ct = /^https?$/, wt = /^\+[1-9]\d{6,14}$/, Tt = "(?:(?:\\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])))";
676
- function Et(e) {
740
+ var Ot = /^(?:(?: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])$/, kt = /^(([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}|:))$/, At = /^((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])$/, jt = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Mt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Nt = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, Pt = /^https?$/, Ft = /^\+[1-9]\d{6,14}$/, It = "(?:(?:\\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])))";
741
+ function Lt(e) {
677
742
  return RegExp(`^${e}$`);
678
743
  }
679
- var Dt = /*@__PURE__*/ Et(Tt);
680
- function Ot(e) {
744
+ var Rt = /*@__PURE__*/ Lt(It);
745
+ function zt(e) {
681
746
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
682
747
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
683
748
  }
684
- function kt(e) {
685
- return RegExp(`^${Ot(e)}$`);
749
+ function Bt(e) {
750
+ return RegExp(`^${zt(e)}$`);
686
751
  }
687
- function At(e) {
752
+ function Vt(e) {
688
753
  let t = ["Z"];
689
754
  e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
690
- let n = `${Ot({
755
+ let n = `${zt({
691
756
  precision: e.precision,
692
757
  seconds: !0
693
- })}(?:${t.join("|")})`, r = e.local ? `${n}|${Ot({ precision: e.precision })}` : n;
694
- return RegExp(`^${Tt}T(?:${r})$`);
758
+ })}(?:${t.join("|")})`, r = e.local ? `${n}|${zt({ precision: e.precision })}` : n;
759
+ return RegExp(`^${It}T(?:${r})$`);
695
760
  }
696
- var jt = (e) => {
697
- let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
698
- return RegExp(`^${t}$`);
699
- }, Mt = /^-?\d+$/, Nt = /^-?\d+(?:\.\d+)?$/, Pt = /^null$/i, Ft = /^[^A-Z]*$/, It = /^[^a-z]*$/, M = /*@__PURE__*/ E("$ZodCheck", (e, t) => {
761
+ var Ht = /^[\s\S]{0,}$/, Ut = /^-?\d+(?:\.\d+)?$/, Wt = /^null$/i, Gt = /^[^A-Z]*$/, Kt = /^[^a-z]*$/, N = /*@__PURE__*/ O("$ZodCheck", (e, t) => {
700
762
  var n;
701
763
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
702
- }), Lt = (e) => {
764
+ }), qt = (e) => {
703
765
  let t = e.value;
704
766
  return !a(t) && t.length !== void 0;
705
- }, N = {
767
+ }, P = {
706
768
  number: "number",
707
769
  bigint: "bigint",
708
770
  object: "date"
709
- }, Rt = /*@__PURE__*/ E("$ZodCheckLessThan", (e, t) => {
710
- M.init(e, t);
711
- let n = N[typeof t.value];
712
- e._zod.onattach.push((e) => {
713
- let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
714
- t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
715
- }), e._zod.check = (r) => {
771
+ }, Jt = /*@__PURE__*/ O("$ZodCheckLessThan", (e, t) => {
772
+ N.init(e, t);
773
+ let n = P[typeof t.value];
774
+ e._zod.check = (r) => {
716
775
  (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
717
- origin: N[typeof r.value] ?? n,
776
+ origin: P[typeof r.value] ?? n,
718
777
  code: "too_big",
719
778
  maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
720
779
  input: r.value,
@@ -723,15 +782,12 @@ var jt = (e) => {
723
782
  continue: !t.abort
724
783
  });
725
784
  };
726
- }), zt = /*@__PURE__*/ E("$ZodCheckGreaterThan", (e, t) => {
727
- M.init(e, t);
728
- let n = N[typeof t.value];
729
- e._zod.onattach.push((e) => {
730
- let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
731
- t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
732
- }), e._zod.check = (r) => {
785
+ }), Yt = /*@__PURE__*/ O("$ZodCheckGreaterThan", (e, t) => {
786
+ N.init(e, t);
787
+ let n = P[typeof t.value];
788
+ e._zod.check = (r) => {
733
789
  (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
734
- origin: N[typeof r.value] ?? n,
790
+ origin: P[typeof r.value] ?? n,
735
791
  code: "too_small",
736
792
  minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
737
793
  input: r.value,
@@ -740,11 +796,8 @@ var jt = (e) => {
740
796
  continue: !t.abort
741
797
  });
742
798
  };
743
- }), Bt = /*@__PURE__*/ E("$ZodCheckMultipleOf", (e, t) => {
744
- M.init(e, t), e._zod.onattach.push((e) => {
745
- var n;
746
- (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
747
- }), e._zod.check = (n) => {
799
+ }), Xt = /*@__PURE__*/ O("$ZodCheckMultipleOf", (e, t) => {
800
+ N.init(e, t), e._zod.check = (n) => {
748
801
  if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
749
802
  (typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) : s(n.value, t.value) === 0) || n.issues.push({
750
803
  origin: typeof n.value,
@@ -755,13 +808,10 @@ var jt = (e) => {
755
808
  continue: !t.abort
756
809
  });
757
810
  };
758
- }), Vt = /*@__PURE__*/ E("$ZodCheckNumberFormat", (e, t) => {
759
- M.init(e, t), t.format = t.format || "float64";
760
- let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = ie[t.format];
761
- e._zod.onattach.push((e) => {
762
- let r = e._zod.bag;
763
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Mt);
764
- }), e._zod.check = (o) => {
811
+ }), Zt = /*@__PURE__*/ O("$ZodCheckNumberFormat", (e, t) => {
812
+ N.init(e, t), t.format = t.format || "float64";
813
+ let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = ce[t.format];
814
+ e._zod.check = (o) => {
765
815
  let s = o.value;
766
816
  if (n) {
767
817
  if (!Number.isInteger(s)) {
@@ -816,15 +866,12 @@ var jt = (e) => {
816
866
  continue: !t.abort
817
867
  });
818
868
  };
819
- }), Ht = /*@__PURE__*/ E("$ZodCheckMaxLength", (e, t) => {
869
+ }), Qt = /*@__PURE__*/ O("$ZodCheckMaxLength", (e, t) => {
820
870
  var n;
821
- M.init(e, t), (n = e._zod.def).when ?? (n.when = Lt), e._zod.onattach.push((e) => {
822
- let n = e._zod.bag.maximum ?? Infinity;
823
- t.maximum < n && (e._zod.bag.maximum = t.maximum);
824
- }), e._zod.check = (n) => {
871
+ N.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.check = (n) => {
825
872
  let r = n.value, i = r.length;
826
- if ((typeof r == "string" && i > t.maximum ? ge(r) : i) <= t.maximum) return;
827
- let a = _e(r);
873
+ if ((typeof r == "string" && i > t.maximum ? Ce(r) : i) <= t.maximum) return;
874
+ let a = we(r);
828
875
  n.issues.push({
829
876
  origin: a,
830
877
  code: "too_big",
@@ -835,15 +882,12 @@ var jt = (e) => {
835
882
  continue: !t.abort
836
883
  });
837
884
  };
838
- }), Ut = /*@__PURE__*/ E("$ZodCheckMinLength", (e, t) => {
885
+ }), $t = /*@__PURE__*/ O("$ZodCheckMinLength", (e, t) => {
839
886
  var n;
840
- M.init(e, t), (n = e._zod.def).when ?? (n.when = Lt), e._zod.onattach.push((e) => {
841
- let n = e._zod.bag.minimum ?? -Infinity;
842
- t.minimum > n && (e._zod.bag.minimum = t.minimum);
843
- }), e._zod.check = (n) => {
887
+ N.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.check = (n) => {
844
888
  let r = n.value, i = r.length;
845
- if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? ge(r) : i) >= t.minimum) return;
846
- let a = _e(r);
889
+ if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? Ce(r) : i) >= t.minimum) return;
890
+ let a = we(r);
847
891
  n.issues.push({
848
892
  origin: a,
849
893
  code: "too_small",
@@ -854,15 +898,12 @@ var jt = (e) => {
854
898
  continue: !t.abort
855
899
  });
856
900
  };
857
- }), Wt = /*@__PURE__*/ E("$ZodCheckLengthEquals", (e, t) => {
901
+ }), en = /*@__PURE__*/ O("$ZodCheckLengthEquals", (e, t) => {
858
902
  var n;
859
- M.init(e, t), (n = e._zod.def).when ?? (n.when = Lt), e._zod.onattach.push((e) => {
860
- let n = e._zod.bag;
861
- n.minimum = t.length, n.maximum = t.length, n.length = t.length;
862
- }), e._zod.check = (n) => {
863
- let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? ge(r) : i;
903
+ N.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.check = (n) => {
904
+ let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? Ce(r) : i;
864
905
  if (a === t.length) return;
865
- let o = _e(r), s = a > t.length;
906
+ let o = we(r), s = a > t.length;
866
907
  n.issues.push({
867
908
  origin: o,
868
909
  ...s ? {
@@ -879,12 +920,9 @@ var jt = (e) => {
879
920
  continue: !t.abort
880
921
  });
881
922
  };
882
- }), P = /*@__PURE__*/ E("$ZodCheckStringFormat", (e, t) => {
923
+ }), F = /*@__PURE__*/ O("$ZodCheckStringFormat", (e, t) => {
883
924
  var n, r;
884
- M.init(e, t), e._zod.onattach.push((e) => {
885
- let n = e._zod.bag;
886
- n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
887
- }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
925
+ N.init(e, t), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
888
926
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
889
927
  origin: "string",
890
928
  code: "invalid_format",
@@ -895,8 +933,8 @@ var jt = (e) => {
895
933
  continue: !t.abort
896
934
  });
897
935
  }) : (r = e._zod).check ?? (r.check = () => {});
898
- }), Gt = /*@__PURE__*/ E("$ZodCheckRegex", (e, t) => {
899
- P.init(e, t), e._zod.check = (n) => {
936
+ }), tn = /*@__PURE__*/ O("$ZodCheckRegex", (e, t) => {
937
+ F.init(e, t), e._zod.check = (n) => {
900
938
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
901
939
  origin: "string",
902
940
  code: "invalid_format",
@@ -907,17 +945,14 @@ var jt = (e) => {
907
945
  continue: !t.abort
908
946
  });
909
947
  };
910
- }), Kt = /*@__PURE__*/ E("$ZodCheckLowerCase", (e, t) => {
911
- t.pattern ??= Ft, P.init(e, t);
912
- }), qt = /*@__PURE__*/ E("$ZodCheckUpperCase", (e, t) => {
913
- t.pattern ??= It, P.init(e, t);
914
- }), Jt = /*@__PURE__*/ E("$ZodCheckIncludes", (e, t) => {
915
- M.init(e, t);
916
- let n = g(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
917
- t.pattern = r, e._zod.onattach.push((e) => {
918
- let t = e._zod.bag;
919
- t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
920
- }), e._zod.check = (n) => {
948
+ }), nn = /*@__PURE__*/ O("$ZodCheckLowerCase", (e, t) => {
949
+ t.pattern ??= Gt, F.init(e, t);
950
+ }), rn = /*@__PURE__*/ O("$ZodCheckUpperCase", (e, t) => {
951
+ t.pattern ??= Kt, F.init(e, t);
952
+ }), an = /*@__PURE__*/ O("$ZodCheckIncludes", (e, t) => {
953
+ N.init(e, t);
954
+ let n = v(t.includes);
955
+ t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n), e._zod.check = (n) => {
921
956
  n.value.includes(t.includes, t.position) || n.issues.push({
922
957
  origin: "string",
923
958
  code: "invalid_format",
@@ -928,13 +963,10 @@ var jt = (e) => {
928
963
  continue: !t.abort
929
964
  });
930
965
  };
931
- }), Yt = /*@__PURE__*/ E("$ZodCheckStartsWith", (e, t) => {
932
- M.init(e, t);
933
- let n = RegExp(`^${g(t.prefix)}.*`);
934
- t.pattern ??= n, e._zod.onattach.push((e) => {
935
- let t = e._zod.bag;
936
- t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
937
- }), e._zod.check = (n) => {
966
+ }), on = /*@__PURE__*/ O("$ZodCheckStartsWith", (e, t) => {
967
+ N.init(e, t);
968
+ let n = RegExp(`^${v(t.prefix)}.*`);
969
+ t.pattern ??= n, e._zod.check = (n) => {
938
970
  n.value.startsWith(t.prefix) || n.issues.push({
939
971
  origin: "string",
940
972
  code: "invalid_format",
@@ -945,13 +977,10 @@ var jt = (e) => {
945
977
  continue: !t.abort
946
978
  });
947
979
  };
948
- }), Xt = /*@__PURE__*/ E("$ZodCheckEndsWith", (e, t) => {
949
- M.init(e, t);
950
- let n = RegExp(`.*${g(t.suffix)}$`);
951
- t.pattern ??= n, e._zod.onattach.push((e) => {
952
- let t = e._zod.bag;
953
- t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
954
- }), e._zod.check = (n) => {
980
+ }), sn = /*@__PURE__*/ O("$ZodCheckEndsWith", (e, t) => {
981
+ N.init(e, t);
982
+ let n = RegExp(`.*${v(t.suffix)}$`);
983
+ t.pattern ??= n, e._zod.check = (n) => {
955
984
  n.value.endsWith(t.suffix) || n.issues.push({
956
985
  origin: "string",
957
986
  code: "invalid_format",
@@ -962,16 +991,21 @@ var jt = (e) => {
962
991
  continue: !t.abort
963
992
  });
964
993
  };
965
- }), Zt = /*@__PURE__*/ E("$ZodCheckOverwrite", (e, t) => {
966
- M.init(e, t), e._zod.check = (e) => {
994
+ }), cn = /*@__PURE__*/ O("$ZodCheckOverwrite", (e, t) => {
995
+ N.init(e, t), e._zod.check = (e) => {
967
996
  e.value = t.tx(e.value);
968
997
  };
969
- }), Qt = class {
998
+ }), ln = class {
970
999
  constructor(e = [], t = {}) {
971
1000
  this.content = [], this.indent = 0, this.args = e, this.closed = t;
972
1001
  }
973
1002
  indented(e) {
974
- this.indent += 1, e(this), --this.indent;
1003
+ this.indent += 1;
1004
+ try {
1005
+ e(this);
1006
+ } finally {
1007
+ --this.indent;
1008
+ }
975
1009
  }
976
1010
  write(e) {
977
1011
  if (typeof e == "function") {
@@ -985,13 +1019,13 @@ var jt = (e) => {
985
1019
  let e = Function, t = this?.content ?? [""];
986
1020
  return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
987
1021
  }
988
- }, $t = {
1022
+ }, un = {
989
1023
  major: 4,
990
- minor: 5,
991
- patch: 4
992
- }, F = /*@__PURE__*/ E("$ZodType", (e, t) => {
1024
+ minor: 6,
1025
+ patch: 5
1026
+ }, I = /*@__PURE__*/ O("$ZodType", (e, t) => {
993
1027
  var n;
994
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = $t;
1028
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = un;
995
1029
  let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
996
1030
  for (let t of i) for (let n of t._zod.onattach) n(e);
997
1031
  if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
@@ -1000,27 +1034,27 @@ var jt = (e) => {
1000
1034
  else {
1001
1035
  let t = (t, n, r) => {
1002
1036
  if (t.memo) return t;
1003
- let i = y(t), a;
1037
+ let i = x(t), a;
1004
1038
  for (let o of n) {
1005
1039
  if (o._zod.def.when) {
1006
- if (fe(t) || !o._zod.def.when(t)) continue;
1040
+ if (ye(t) || !o._zod.def.when(t)) continue;
1007
1041
  } else if (i) continue;
1008
1042
  let n = t.issues.length, s = o._zod.check(t);
1009
- if (s instanceof Promise && r?.async === !1) throw new D();
1043
+ if (s instanceof Promise && r?.async === !1) throw new k();
1010
1044
  if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
1011
- await s, t.issues.length !== n && (me(t.issues, n, e), i ||= y(t, n));
1045
+ await s, t.issues.length !== n && (xe(t.issues, n, e), i ||= x(t, n));
1012
1046
  });
1013
1047
  else {
1014
1048
  if (t.issues.length === n) continue;
1015
- me(t.issues, n, e), i ||= y(t, n);
1049
+ xe(t.issues, n, e), i ||= x(t, n);
1016
1050
  }
1017
1051
  }
1018
1052
  return a ? a.then(() => t) : t;
1019
1053
  }, n = (n, r, a) => {
1020
- if (y(n)) return n.aborted = !0, n;
1054
+ if (x(n)) return n.aborted = !0, n;
1021
1055
  let o = t(r, i, a);
1022
1056
  if (o instanceof Promise) {
1023
- if (a.async === !1) throw new D();
1057
+ if (a.async === !1) throw new k();
1024
1058
  return o.then((t) => e._zod.parse(t, a));
1025
1059
  }
1026
1060
  return e._zod.parse(o, a);
@@ -1039,7 +1073,7 @@ var jt = (e) => {
1039
1073
  }
1040
1074
  let o = e._zod.parse(r, a);
1041
1075
  if (o instanceof Promise) {
1042
- if (a.async === !1) throw new D();
1076
+ if (a.async === !1) throw new k();
1043
1077
  return o.then((e) => t(e, i, a));
1044
1078
  }
1045
1079
  return t(o, i, a);
@@ -1047,27 +1081,38 @@ var jt = (e) => {
1047
1081
  }
1048
1082
  }, {
1049
1083
  get "~standard"() {
1050
- return be(this, "~standard", tn(this));
1084
+ return De(this, "~standard", pn(this));
1051
1085
  },
1052
1086
  set "~standard"(e) {
1053
- C(this, "~standard", e);
1087
+ T(this, "~standard", e);
1054
1088
  }
1055
- }), en = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
1056
- function tn(e) {
1089
+ }), dn = (e, t) => e.issues.length ? { issues: e.issues.map((e) => C(e, t, j())) } : { value: e.value };
1090
+ async function fn(e, t) {
1091
+ let n = { async: !0 };
1092
+ return dn(await e._zod.run({
1093
+ value: t,
1094
+ issues: []
1095
+ }, n), n);
1096
+ }
1097
+ function pn(e) {
1057
1098
  return {
1058
1099
  validate: (t) => {
1100
+ let n = { async: !1 };
1059
1101
  try {
1060
- return en(qe(e, t));
1061
- } catch {
1062
- return Ye(e, t).then(en);
1063
- }
1102
+ let r = e._zod.run({
1103
+ value: t,
1104
+ issues: []
1105
+ }, n);
1106
+ if (!(r instanceof Promise)) return dn(r, n);
1107
+ } catch {}
1108
+ return fn(e, t);
1064
1109
  },
1065
1110
  vendor: "zod",
1066
1111
  version: 1
1067
1112
  };
1068
1113
  }
1069
- var nn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1070
- F.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? jt(e._zod.bag), e._zod.parse = (n, r) => {
1114
+ var mn = /*@__PURE__*/ O("$ZodString", (e, t) => {
1115
+ I.init(e, t), e._zod.pattern = t.pattern ?? Ht, e._zod.parse = (n, r) => {
1071
1116
  if (t.coerce) try {
1072
1117
  n.value = String(n.value);
1073
1118
  } catch {}
@@ -1078,11 +1123,11 @@ var nn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1078
1123
  inst: e
1079
1124
  }), n;
1080
1125
  };
1081
- }), I = /*@__PURE__*/ E("$ZodStringFormat", (e, t) => {
1082
- P.init(e, t), nn.init(e, t);
1083
- }), rn = /*@__PURE__*/ E("$ZodGUID", (e, t) => {
1084
- t.pattern ??= ft, I.init(e, t);
1085
- }), an = /*@__PURE__*/ E("$ZodUUID", (e, t) => {
1126
+ }), L = /*@__PURE__*/ O("$ZodStringFormat", (e, t) => {
1127
+ F.init(e, t), mn.init(e, t);
1128
+ }), hn = /*@__PURE__*/ O("$ZodGUID", (e, t) => {
1129
+ t.pattern ??= Ct, L.init(e, t);
1130
+ }), gn = /*@__PURE__*/ O("$ZodUUID", (e, t) => {
1086
1131
  if (t.version) {
1087
1132
  let e = {
1088
1133
  v1: 1,
@@ -1095,34 +1140,48 @@ var nn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1095
1140
  v8: 8
1096
1141
  }[t.version];
1097
1142
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
1098
- t.pattern ??= pt(e);
1099
- } else t.pattern ??= pt();
1100
- I.init(e, t);
1101
- }), on = /*@__PURE__*/ E("$ZodEmail", (e, t) => {
1102
- t.pattern ??= mt, I.init(e, t);
1143
+ t.pattern ??= wt(e);
1144
+ } else t.pattern ??= wt();
1145
+ L.init(e, t);
1146
+ }), _n = /*@__PURE__*/ O("$ZodEmail", (e, t) => {
1147
+ t.pattern ??= Tt, L.init(e, t);
1103
1148
  });
1104
- function sn(e, t) {
1105
- if (!t.normalize && t.protocol?.source === Ct.source && !/^https?:\/\//i.test(e)) return 1;
1149
+ function vn(e) {
1106
1150
  try {
1151
+ return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
1152
+ } catch {
1153
+ return !1;
1154
+ }
1155
+ }
1156
+ function yn(e, t) {
1157
+ return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? vn(e) || 2 : bn(e, t);
1158
+ }
1159
+ function bn(e, t) {
1160
+ if (!t.normalize && t.protocol?.source === Pt.source && !/^https?:\/\//i.test(e)) return 1;
1161
+ try {
1162
+ if (typeof URL < "u") {
1163
+ let t = URL;
1164
+ if (typeof t.parse == "function") return t.parse(e) ?? 2;
1165
+ }
1107
1166
  return new URL(e);
1108
1167
  } catch {
1109
1168
  return 2;
1110
1169
  }
1111
1170
  }
1112
- var cn = /[\t\n\r]/g;
1113
- function ln(e) {
1114
- return e.replace(cn, "");
1171
+ var xn = /[\t\n\r]/g;
1172
+ function Sn(e) {
1173
+ return e.replace(xn, "");
1115
1174
  }
1116
- function un(e, t) {
1175
+ function Cn(e, t) {
1117
1176
  return t.lastIndex = 0, t.test(e.hostname);
1118
1177
  }
1119
- function dn(e, t) {
1178
+ function wn(e, t) {
1120
1179
  return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
1121
1180
  }
1122
- var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1123
- I.init(e, t), e._zod.check = (n) => {
1181
+ var Tn = /*@__PURE__*/ O("$ZodURL", (e, t) => {
1182
+ L.init(e, t), e._zod.check = (n) => {
1124
1183
  try {
1125
- let r = n.value.trim(), i = sn(r, t);
1184
+ let r = n.value.trim(), i = yn(r, t);
1126
1185
  if (i === 1) {
1127
1186
  n.issues.push({
1128
1187
  code: "invalid_format",
@@ -1144,7 +1203,11 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1144
1203
  });
1145
1204
  return;
1146
1205
  }
1147
- t.hostname && !un(i, t.hostname) && n.issues.push({
1206
+ if (i === !0) {
1207
+ n.value = Sn(r);
1208
+ return;
1209
+ }
1210
+ t.hostname && !Cn(i, t.hostname) && n.issues.push({
1148
1211
  code: "invalid_format",
1149
1212
  format: "url",
1150
1213
  note: "Invalid hostname",
@@ -1152,7 +1215,7 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1152
1215
  input: n.value,
1153
1216
  inst: e,
1154
1217
  continue: !t.abort
1155
- }), t.protocol && !dn(i, t.protocol) && n.issues.push({
1218
+ }), t.protocol && !wn(i, t.protocol) && n.issues.push({
1156
1219
  code: "invalid_format",
1157
1220
  format: "url",
1158
1221
  note: "Invalid protocol",
@@ -1160,7 +1223,7 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1160
1223
  input: n.value,
1161
1224
  inst: e,
1162
1225
  continue: !t.abort
1163
- }), n.value = t.normalize ? i.href : ln(r);
1226
+ }), n.value = t.normalize ? i.href : Sn(r);
1164
1227
  return;
1165
1228
  } catch {
1166
1229
  n.issues.push({
@@ -1172,45 +1235,38 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1172
1235
  });
1173
1236
  }
1174
1237
  };
1175
- }), pn = /*@__PURE__*/ E("$ZodEmoji", (e, t) => {
1176
- t.pattern ??= gt(), I.init(e, t);
1177
- }), mn = /*@__PURE__*/ E("$ZodNanoID", (e, t) => {
1238
+ }), En = /*@__PURE__*/ O("$ZodEmoji", (e, t) => {
1239
+ t.pattern ??= Dt(), L.init(e, t);
1240
+ }), Dn = /*@__PURE__*/ O("$ZodNanoID", (e, t) => {
1178
1241
  if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
1179
- t.pattern ??= t.length === void 0 ? lt : ut(t.length), I.init(e, t);
1180
- }), hn = /*@__PURE__*/ E("$ZodCUID", (e, t) => {
1181
- t.pattern ??= it, I.init(e, t);
1182
- }), gn = /*@__PURE__*/ E("$ZodCUID2", (e, t) => {
1183
- t.pattern ??= at, I.init(e, t);
1184
- }), _n = /*@__PURE__*/ E("$ZodULID", (e, t) => {
1185
- t.pattern ??= ot, I.init(e, t);
1186
- }), vn = /*@__PURE__*/ E("$ZodXID", (e, t) => {
1187
- t.pattern ??= st, I.init(e, t);
1188
- }), yn = /*@__PURE__*/ E("$ZodKSUID", (e, t) => {
1189
- t.pattern ??= ct, I.init(e, t);
1190
- }), bn = /*@__PURE__*/ E("$ZodISODateTime", (e, t) => {
1191
- t.pattern ??= At(t), I.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
1192
- e._zod.bag.laxFormat = !0;
1193
- }));
1194
- }), xn = /*@__PURE__*/ E("$ZodISODate", (e, t) => {
1195
- t.pattern ??= Dt, I.init(e, t);
1196
- }), Sn = /*@__PURE__*/ E("$ZodISOTime", (e, t) => {
1197
- t.pattern ??= kt(t), I.init(e, t);
1198
- }), Cn = /*@__PURE__*/ E("$ZodISODuration", (e, t) => {
1199
- t.pattern ??= dt, I.init(e, t);
1200
- }), wn = /*@__PURE__*/ E("$ZodIPv4", (e, t) => {
1201
- t.pattern ??= _t, I.init(e, t), e._zod.bag.format = "ipv4";
1202
- }), Tn = /^[0-9a-fA-F:.]+$/;
1203
- function En(e) {
1204
- if (!Tn.test(e)) return !1;
1205
- try {
1206
- return new URL(`http://[${e}]`), !0;
1207
- } catch {
1208
- return !1;
1209
- }
1210
- }
1211
- var Dn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
1212
- t.pattern ??= vt, I.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1213
- En(n.value) || n.issues.push({
1242
+ t.pattern ??= t.length === void 0 ? bt : xt(t.length), L.init(e, t);
1243
+ }), On = /*@__PURE__*/ O("$ZodCUID", (e, t) => {
1244
+ t.pattern ??= ht, L.init(e, t);
1245
+ }), kn = /*@__PURE__*/ O("$ZodCUID2", (e, t) => {
1246
+ t.pattern ??= gt, L.init(e, t);
1247
+ }), An = /*@__PURE__*/ O("$ZodULID", (e, t) => {
1248
+ t.pattern ??= _t, L.init(e, t);
1249
+ }), jn = /*@__PURE__*/ O("$ZodXID", (e, t) => {
1250
+ t.pattern ??= vt, L.init(e, t);
1251
+ }), Mn = /*@__PURE__*/ O("$ZodKSUID", (e, t) => {
1252
+ t.pattern ??= yt, L.init(e, t);
1253
+ }), Nn = /*@__PURE__*/ O("$ZodISODateTime", (e, t) => {
1254
+ t.pattern ??= Vt(t), L.init(e, t);
1255
+ }), Pn = /*@__PURE__*/ O("$ZodISODate", (e, t) => {
1256
+ t.pattern ??= Rt, L.init(e, t);
1257
+ }), Fn = /*@__PURE__*/ O("$ZodISOTime", (e, t) => {
1258
+ t.pattern ??= Bt(t), L.init(e, t);
1259
+ }), In = /*@__PURE__*/ O("$ZodISODuration", (e, t) => {
1260
+ t.pattern ??= St, L.init(e, t);
1261
+ }), Ln = /*@__PURE__*/ O("$ZodIPv4", (e, t) => {
1262
+ t.pattern ??= Ot, L.init(e, t);
1263
+ }), Rn = /^[0-9a-fA-F:.]+$/;
1264
+ function zn(e) {
1265
+ return Rn.test(e) ? vn(`http://[${e}]`) : !1;
1266
+ }
1267
+ var Bn = /*@__PURE__*/ O("$ZodIPv6", (e, t) => {
1268
+ t.pattern ??= kt, L.init(e, t), e._zod.check = (n) => {
1269
+ zn(n.value) || n.issues.push({
1214
1270
  code: "invalid_format",
1215
1271
  format: "ipv6",
1216
1272
  input: n.value,
@@ -1218,20 +1274,20 @@ var Dn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
1218
1274
  continue: !t.abort
1219
1275
  });
1220
1276
  };
1221
- }), On = /*@__PURE__*/ E("$ZodCIDRv4", (e, t) => {
1222
- t.pattern ??= yt, I.init(e, t);
1277
+ }), Vn = /*@__PURE__*/ O("$ZodCIDRv4", (e, t) => {
1278
+ t.pattern ??= At, L.init(e, t);
1223
1279
  });
1224
- function kn(e) {
1280
+ function Hn(e) {
1225
1281
  let t = e.split("/");
1226
1282
  if (t.length !== 2) return !1;
1227
1283
  let [n, r] = t;
1228
1284
  if (!r) return !1;
1229
1285
  let i = Number(r);
1230
- return `${i}` !== r || i < 0 || i > 128 ? !1 : En(n);
1286
+ return `${i}` !== r || i < 0 || i > 128 ? !1 : zn(n);
1231
1287
  }
1232
- var An = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
1233
- t.pattern ??= bt, I.init(e, t), e._zod.check = (n) => {
1234
- kn(n.value) || n.issues.push({
1288
+ var Un = /*@__PURE__*/ O("$ZodCIDRv6", (e, t) => {
1289
+ t.pattern ??= jt, L.init(e, t), e._zod.check = (n) => {
1290
+ Hn(n.value) || n.issues.push({
1235
1291
  code: "invalid_format",
1236
1292
  format: "cidrv6",
1237
1293
  input: n.value,
@@ -1240,7 +1296,7 @@ var An = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
1240
1296
  });
1241
1297
  };
1242
1298
  });
1243
- function jn(e) {
1299
+ function Wn(e) {
1244
1300
  if (e === "") return !0;
1245
1301
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
1246
1302
  try {
@@ -1249,9 +1305,9 @@ function jn(e) {
1249
1305
  return !1;
1250
1306
  }
1251
1307
  }
1252
- var Mn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
1253
- t.pattern ??= xt, I.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1254
- jn(n.value) || n.issues.push({
1308
+ var Gn = /^[0-9a-zA-Z+/]*={0,2}$/, Kn = /*@__PURE__*/ O("$ZodBase64", (e, t) => {
1309
+ t.pattern ??= Gn, L.init(e, t), e._zod.check = (n) => {
1310
+ Wn(n.value) || n.issues.push({
1255
1311
  code: "invalid_format",
1256
1312
  format: "base64",
1257
1313
  input: n.value,
@@ -1259,15 +1315,15 @@ var Mn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
1259
1315
  continue: !t.abort
1260
1316
  });
1261
1317
  };
1262
- });
1263
- function Nn(e) {
1264
- if (!St.test(e)) return !1;
1318
+ }), qn = /^[A-Za-z0-9_-]*$/;
1319
+ function Jn(e) {
1320
+ if (!qn.test(e)) return !1;
1265
1321
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
1266
- return jn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1322
+ return Wn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1267
1323
  }
1268
- var Pn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
1269
- t.pattern ??= St, I.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1270
- Nn(n.value) || n.issues.push({
1324
+ var Yn = /*@__PURE__*/ O("$ZodBase64URL", (e, t) => {
1325
+ t.pattern ??= qn, L.init(e, t), e._zod.check = (n) => {
1326
+ Jn(n.value) || n.issues.push({
1271
1327
  code: "invalid_format",
1272
1328
  format: "base64url",
1273
1329
  input: n.value,
@@ -1275,10 +1331,10 @@ var Pn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
1275
1331
  continue: !t.abort
1276
1332
  });
1277
1333
  };
1278
- }), Fn = /*@__PURE__*/ E("$ZodE164", (e, t) => {
1279
- t.pattern ??= wt, I.init(e, t);
1334
+ }), Xn = /*@__PURE__*/ O("$ZodE164", (e, t) => {
1335
+ t.pattern ??= Ft, L.init(e, t);
1280
1336
  });
1281
- function In(e, t = null) {
1337
+ function Zn(e, t = null) {
1282
1338
  try {
1283
1339
  let n = e.split(".");
1284
1340
  if (n.length !== 3) return !1;
@@ -1290,9 +1346,9 @@ function In(e, t = null) {
1290
1346
  return !1;
1291
1347
  }
1292
1348
  }
1293
- var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1294
- I.init(e, t), e._zod.check = (n) => {
1295
- In(n.value, t.alg) || n.issues.push({
1349
+ var Qn = /*@__PURE__*/ O("$ZodJWT", (e, t) => {
1350
+ L.init(e, t), e._zod.check = (n) => {
1351
+ Zn(n.value, t.alg) || n.issues.push({
1296
1352
  code: "invalid_format",
1297
1353
  format: "jwt",
1298
1354
  input: n.value,
@@ -1300,8 +1356,8 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1300
1356
  continue: !t.abort
1301
1357
  });
1302
1358
  };
1303
- }), Rn = /*@__PURE__*/ E("$ZodNumber", (e, t) => {
1304
- F.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Nt, e._zod.parse = (n, r) => {
1359
+ }), $n = /*@__PURE__*/ O("$ZodNumber", (e, t) => {
1360
+ I.init(e, t), e._zod.pattern = Ut, e._zod.parse = (n, r) => {
1305
1361
  if (t.coerce) try {
1306
1362
  n.value = Number(n.value);
1307
1363
  } catch {}
@@ -1316,10 +1372,10 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1316
1372
  ...a ? { received: a } : {}
1317
1373
  }), n;
1318
1374
  };
1319
- }), zn = /*@__PURE__*/ E("$ZodNumberFormat", (e, t) => {
1320
- Vt.init(e, t), Rn.init(e, t);
1321
- }), Bn = /*@__PURE__*/ E("$ZodNull", (e, t) => {
1322
- F.init(e, t), e._zod.pattern = Pt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1375
+ }), er = /*@__PURE__*/ O("$ZodNumberFormat", (e, t) => {
1376
+ Zt.init(e, t), $n.init(e, t);
1377
+ }), tr = /*@__PURE__*/ O("$ZodNull", (e, t) => {
1378
+ I.init(e, t), e._zod.pattern = Wt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1323
1379
  let r = t.value;
1324
1380
  return r === null || t.issues.push({
1325
1381
  expected: "null",
@@ -1328,22 +1384,22 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1328
1384
  inst: e
1329
1385
  }), t;
1330
1386
  };
1331
- }), Vn = /*@__PURE__*/ E("$ZodUnknown", (e, t) => {
1332
- F.init(e, t), e._zod.parse = (e) => e;
1333
- }), Hn = /*@__PURE__*/ E("$ZodNever", (e, t) => {
1334
- F.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1387
+ }), nr = /*@__PURE__*/ O("$ZodUnknown", (e, t) => {
1388
+ I.init(e, t), e._zod.parse = (e) => e;
1389
+ }), rr = /*@__PURE__*/ O("$ZodNever", (e, t) => {
1390
+ I.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1335
1391
  expected: "never",
1336
1392
  code: "invalid_type",
1337
1393
  input: t.value,
1338
1394
  inst: e
1339
1395
  }), t);
1340
1396
  });
1341
- function Un(e, t, n) {
1342
- e.issues.length && t.issues.push(...pe(n, e.issues)), t.value[n] = e.value;
1397
+ function ir(e, t, n) {
1398
+ e.issues.length && t.issues.push(...be(n, e.issues)), t.value[n] = e.value;
1343
1399
  }
1344
- var Wn = /*@__PURE__*/ E("$ZodArray", (e, t) => {
1345
- F.init(e, t);
1346
- let n = O.memoizer;
1400
+ var ar = /*@__PURE__*/ O("$ZodArray", (e, t) => {
1401
+ I.init(e, t);
1402
+ let n = A.memoizer;
1347
1403
  n?.attach(e), e._zod.parse = (r, i) => {
1348
1404
  let a = r.value;
1349
1405
  if (!Array.isArray(a)) return r.issues.push({
@@ -1353,23 +1409,24 @@ var Wn = /*@__PURE__*/ E("$ZodArray", (e, t) => {
1353
1409
  inst: e
1354
1410
  }), r;
1355
1411
  r.value = n ? n.alloc(e, r, Array(a.length), i) : Array(a.length);
1356
- let o = [];
1412
+ let o = [], s = i?.abortEarly;
1357
1413
  for (let e = 0; e < a.length; e++) {
1358
- let n = a[e], s = t.element._zod.run({
1414
+ let n = a[e], c = t.element._zod.run({
1359
1415
  value: n,
1360
1416
  issues: []
1361
1417
  }, i);
1362
- s instanceof Promise ? o.push(s.then((t) => Un(t, r, e))) : Un(s, r, e);
1418
+ if (c instanceof Promise) o.push(c.then((t) => ir(t, r, e)));
1419
+ else if (ir(c, r, e), s && c.issues.length !== 0 && x(c)) break;
1363
1420
  }
1364
1421
  return o.length ? Promise.all(o).then(() => r) : r;
1365
1422
  };
1366
1423
  });
1367
- function L(e, t, n, r, i, a) {
1424
+ function R(e, t, n, r, i, a) {
1368
1425
  let o = n in r, s = a === "optional";
1369
1426
  if (o || !s || i !== "optional") {
1370
1427
  if (e.issues.length) {
1371
1428
  if (i !== void 0 && s && !o) return;
1372
- t.issues.push(...pe(n, e.issues));
1429
+ t.issues.push(...be(n, e.issues));
1373
1430
  }
1374
1431
  if (!o && i === void 0) {
1375
1432
  e.issues.length || t.issues.push({
@@ -1380,14 +1437,14 @@ function L(e, t, n, r, i, a) {
1380
1437
  });
1381
1438
  return;
1382
1439
  }
1383
- e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1440
+ e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
1384
1441
  }
1385
1442
  }
1386
- var Gn = [];
1387
- function Kn(e) {
1388
- let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : Gn, i = r.length ? [...t, ...r] : t;
1443
+ var or = [];
1444
+ function sr(e) {
1445
+ let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : or, i = r.length ? [...t, ...r] : t;
1389
1446
  for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
1390
- let a = re(e.shape);
1447
+ let a = se(e.shape);
1391
1448
  return {
1392
1449
  ...e,
1393
1450
  allKeys: i,
@@ -1397,42 +1454,48 @@ function Kn(e) {
1397
1454
  optionalKeys: new Set(a)
1398
1455
  };
1399
1456
  }
1400
- function qn(e, t, n, r, i, a) {
1401
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin, d = c.optout;
1457
+ function cr(e, t, n, r, i, a, o) {
1458
+ let s = [], c = i.keySet, l = i.catchall._zod, u = l.def.type, d = l.optin, f = l.optout, p = 0;
1402
1459
  for (let i in t) {
1403
- if (s.has(i)) continue;
1460
+ if (o && n.issues.length !== p) {
1461
+ if (x(n, p)) break;
1462
+ p = n.issues.length;
1463
+ }
1464
+ if (c.has(i)) continue;
1404
1465
  if (i === "__proto__") {
1405
- l === "never" && o.push(i);
1466
+ u === "never" && s.push(i);
1406
1467
  continue;
1407
1468
  }
1408
- if (l === "never") {
1409
- o.push(i);
1469
+ if (u === "never") {
1470
+ s.push(i);
1410
1471
  continue;
1411
1472
  }
1412
- let a = c.run({
1473
+ let a = l.run({
1413
1474
  value: t[i],
1414
1475
  issues: []
1415
1476
  }, r);
1416
- a instanceof Promise ? e.push(a.then((e) => L(e, n, i, t, u, d))) : L(a, n, i, t, u, d);
1477
+ a instanceof Promise ? e.push(a.then((e) => R(e, n, i, t, d, f))) : R(a, n, i, t, d, f);
1417
1478
  }
1418
- return o.length && n.issues.push({
1479
+ return s.length && n.issues.push({
1419
1480
  code: "unrecognized_keys",
1420
- keys: o,
1481
+ keys: s,
1421
1482
  input: t,
1422
1483
  inst: a,
1423
1484
  continue: !0
1424
1485
  }), e.length ? Promise.all(e).then(() => n) : n;
1425
1486
  }
1426
- var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t) => {
1427
- if (F.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1428
- let e = t.shape;
1429
- Jn.set(t, e), Object.defineProperty(t, "shape", { get: () => {
1430
- let n = { ...e };
1431
- return Object.defineProperty(t, "shape", { value: n }), Jn.set(t, n), n;
1432
- } });
1487
+ var lr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
1488
+ I.init(e, t);
1489
+ let n = Object.getOwnPropertyDescriptor(t, "shape"), r = n?.get ? n.get.raw : t.shape ?? {};
1490
+ if (r) {
1491
+ let e = () => {
1492
+ let n = { ...r };
1493
+ return Object.defineProperty(t, "shape", { value: n }), e.raw = n, n;
1494
+ };
1495
+ e.raw = r, Object.defineProperty(t, "shape", { get: e });
1433
1496
  }
1434
- let n = i(() => Kn(t));
1435
- T(e, "propValues", (e) => {
1497
+ let a = i(() => sr(t));
1498
+ D(e, "propValues", (e) => {
1436
1499
  let t = e.def.shape, n = {};
1437
1500
  for (let e in t) {
1438
1501
  let r = t[e]._zod;
@@ -1444,51 +1507,61 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
1444
1507
  }
1445
1508
  return n;
1446
1509
  });
1447
- let r = p, a = t.catchall, o, s = O.memoizer;
1448
- s?.attach(e), e._zod.parse = (t, i) => {
1449
- o ??= n.value;
1450
- let c = t.value;
1451
- if (!r(c)) return t.issues.push({
1510
+ let o = g, s = t.catchall, l, u = A.memoizer;
1511
+ u?.attach(e), e._zod.parse = (t, n) => {
1512
+ l ??= a.value;
1513
+ let r = t.value;
1514
+ if (!o(r)) return t.issues.push({
1452
1515
  expected: "object",
1453
1516
  code: "invalid_type",
1454
- input: c,
1517
+ input: r,
1455
1518
  inst: e
1456
1519
  }), t;
1457
- t.value = s ? s.alloc(e, t, {}, i) : {};
1458
- let l = [], u = o.shape;
1459
- for (let e of o.allKeys) {
1520
+ t.value = u ? u.alloc(e, t, {}, n) : {};
1521
+ let i = [], c = l.shape, d = n?.abortEarly, f = t.issues.length;
1522
+ for (let e of l.allKeys) {
1523
+ if (d && t.issues.length !== f) {
1524
+ if (x(t, f)) break;
1525
+ f = t.issues.length;
1526
+ }
1460
1527
  if (e === "__proto__") continue;
1461
- let n = u[e], r = n._zod.optin, a = n._zod.optout, o = n._zod.run({
1462
- value: c[e],
1528
+ let a = c[e], o = a._zod.optin, s = a._zod.optout, l = a._zod.run({
1529
+ value: r[e],
1463
1530
  issues: []
1464
- }, i);
1465
- o instanceof Promise ? l.push(o.then((n) => L(n, t, e, c, r, a))) : L(o, t, e, c, r, a);
1531
+ }, n);
1532
+ l instanceof Promise ? i.push(l.then((n) => R(n, t, e, r, o, s))) : R(l, t, e, r, o, s);
1466
1533
  }
1467
- return a ? qn(l, c, t, i, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
1534
+ return s ? cr(i, r, t, n, a.value, e, d === !0) : i.length ? Promise.all(i).then(() => t) : t;
1468
1535
  };
1469
- }), Xn = /*@__PURE__*/ E("$ZodObjectJIT", (e, t) => {
1470
- Yn.init(e, t);
1471
- let n = e._zod.parse, r = i(() => Kn(t)), a = O.memoizer, o = (t) => {
1472
- let n = r.value, i = n.symbolKeys, o = new Qt(["payload", "ctx"], {
1536
+ }), ur = /*@__PURE__*/ O("$ZodObjectJIT", (e, t) => {
1537
+ lr.init(e, t);
1538
+ let n = e._zod.parse, r = i(() => sr(t)), a = A.memoizer, o = (t) => {
1539
+ let n = r.value, i = n.symbolKeys, o = new ln(["payload", "ctx"], {
1473
1540
  shape: t,
1474
1541
  inst: e,
1475
1542
  memo: a,
1476
1543
  syms: i
1477
1544
  }), s = (e) => `shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`, c = (e, t) => `
1545
+ let ${e}_ab = false;
1478
1546
  for (let i = 0; i < ${e}.issues.length; i++) {
1479
1547
  const iss = ${e}.issues[i];
1480
1548
  iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
1481
1549
  payload.issues.push(iss);
1550
+ if (iss.continue !== true) ${e}_ab = true;
1551
+ }
1552
+ if (${e}_ab && ctx && ctx.abortEarly) {
1553
+ payload.value = newResult;
1554
+ return payload;
1482
1555
  }`;
1483
1556
  o.write("const input = payload.value;");
1484
- let l = Object.create(null), d = 0;
1485
- for (let e of n.allKeys) l[e] = `key_${d++}`;
1557
+ let l = Object.create(null), u = 0;
1558
+ for (let e of n.allKeys) l[e] = `key_${u++}`;
1486
1559
  o.write(a ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
1487
1560
  for (let e of n.allKeys) {
1488
1561
  if (e === "__proto__") continue;
1489
- let n = l[e], r = typeof e == "symbol" ? `syms[${i.indexOf(e)}]` : u(e), a = `${r} in input`, d = t[e], f = d?._zod?.optin, p = f !== void 0, m = d?._zod?.optout === "optional";
1490
- if (o.write(`const ${n} = ${s(r)};`), p && m) {
1491
- let e = f === "optional" ? `${n}_present` : `${n}.value !== undefined || ${n}_present`;
1562
+ let n = l[e], r = typeof e == "symbol" ? `syms[${i.indexOf(e)}]` : ee(e), a = `${r} in input`, u = t[e], d = u?._zod?.optin, f = d !== void 0, p = u?._zod?.optout === "optional";
1563
+ if (o.write(`const ${n} = ${s(r)};`), f && p) {
1564
+ let e = d === "optional" ? `${n}_present` : `${n}.value !== undefined || ${n}_present`;
1492
1565
  o.write(`
1493
1566
  const ${n}_present = ${a};
1494
1567
  if (!${n}.issues.length || ${n}_present) {
@@ -1501,19 +1574,14 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
1501
1574
  }
1502
1575
 
1503
1576
  `);
1504
- } else p ? o.write(`
1577
+ } else f ? (o.write(`
1505
1578
  if (${n}.issues.length) {${c(n, r)}
1506
1579
  }
1507
-
1508
- if (${n}.value === undefined) {
1509
- if (${a}) {
1510
- newResult[${r}] = undefined;
1511
- }
1512
- } else {
1580
+ `), d === "defaulted" ? o.write(`newResult[${r}] = ${n}.value;`) : o.write(`
1581
+ if (${n}.value !== undefined || ${a}) {
1513
1582
  newResult[${r}] = ${n}.value;
1514
1583
  }
1515
-
1516
- `) : o.write(`
1584
+ `)) : o.write(`
1517
1585
  const ${n}_present = ${a};
1518
1586
  if (${n}.issues.length) {${c(n, r)}
1519
1587
  }
@@ -1524,6 +1592,10 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
1524
1592
  input: undefined,
1525
1593
  path: [${r}]
1526
1594
  });
1595
+ if (ctx && ctx.abortEarly) {
1596
+ payload.value = newResult;
1597
+ return payload;
1598
+ }
1527
1599
  }
1528
1600
 
1529
1601
  if (${n}_present) {
@@ -1533,32 +1605,32 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
1533
1605
  `);
1534
1606
  }
1535
1607
  return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
1536
- }, s, c = p, l = !O.jitless, d = l && m.value, f = t.catchall, h;
1608
+ }, s, c = g, l = !A.jitless, u = l && re.value, d = t.catchall, f;
1537
1609
  e._zod.parse = (i, a) => {
1538
- h ??= r.value;
1539
- let u = i.value;
1540
- return c(u) ? l && d && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), i = s(i, a), f ? qn([], u, i, a, h, e) : i) : n(i, a) : (i.issues.push({
1610
+ f ??= r.value;
1611
+ let p = i.value;
1612
+ return c(p) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), i = s(i, a), d ? cr([], p, i, a, f, e, a?.abortEarly === !0) : i) : n(i, a) : (i.issues.push({
1541
1613
  expected: "object",
1542
1614
  code: "invalid_type",
1543
- input: u,
1615
+ input: p,
1544
1616
  inst: e
1545
1617
  }), i);
1546
1618
  };
1547
1619
  });
1548
- function Zn(e, t, n, r) {
1620
+ function dr(e, t, n, r) {
1549
1621
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1550
- let i = e.filter((e) => !y(e));
1622
+ let i = e.filter((e) => !x(e));
1551
1623
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1552
1624
  code: "invalid_union",
1553
1625
  input: t.value,
1554
1626
  inst: n,
1555
- errors: e.map((e) => e.issues.map((e) => x(e, r, k())))
1627
+ errors: e.map((e) => e.issues.map((e) => C(e, r, j())))
1556
1628
  }), t);
1557
1629
  }
1558
- var Qn = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1559
- F.init(e, t), T(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), T(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), T(e, "values", (e) => {
1630
+ var fr = /*@__PURE__*/ O("$ZodUnion", (e, t) => {
1631
+ I.init(e, t), D(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), D(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), D(e, "values", (e) => {
1560
1632
  if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
1561
- }), T(e, "pattern", (e) => {
1633
+ }), D(e, "pattern", (e) => {
1562
1634
  if (e.def.options.every((e) => e._zod.pattern)) {
1563
1635
  let t = e.def.options.map((e) => e._zod.pattern);
1564
1636
  return RegExp(`^(${t.map((e) => o(e.source)).join("|")})$`);
@@ -1579,10 +1651,10 @@ var Qn = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1579
1651
  o.push(t);
1580
1652
  }
1581
1653
  }
1582
- return a ? Promise.all(o).then((t) => Zn(t, r, e, i)) : Zn(o, r, e, i);
1654
+ return a ? Promise.all(o).then((t) => dr(t, r, e, i)) : dr(o, r, e, i);
1583
1655
  };
1584
- }), $n = /*@__PURE__*/ E("$ZodIntersection", (e, t) => {
1585
- F.init(e, t), e._zod.parse = (e, n) => {
1656
+ }), pr = /*@__PURE__*/ O("$ZodIntersection", (e, t) => {
1657
+ I.init(e, t), e._zod.parse = (e, n) => {
1586
1658
  let r = e.value, i = t.left._zod.run({
1587
1659
  value: r,
1588
1660
  issues: []
@@ -1590,15 +1662,15 @@ var Qn = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1590
1662
  value: r,
1591
1663
  issues: []
1592
1664
  }, n);
1593
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => tr(e, t, n)) : tr(e, i, a);
1665
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => hr(e, t, n)) : hr(e, i, a);
1594
1666
  };
1595
1667
  });
1596
- function er(e, t) {
1668
+ function mr(e, t) {
1597
1669
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1598
1670
  valid: !0,
1599
1671
  data: e
1600
1672
  };
1601
- if (h(e) && h(t)) {
1673
+ if (_(e) && _(t)) {
1602
1674
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1603
1675
  ...e,
1604
1676
  ...t
@@ -1606,7 +1678,7 @@ function er(e, t) {
1606
1678
  Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
1607
1679
  for (let n of r) {
1608
1680
  if (n === "__proto__") continue;
1609
- let r = er(e[n], t[n]);
1681
+ let r = mr(e[n], t[n]);
1610
1682
  if (!r.valid) return {
1611
1683
  valid: !1,
1612
1684
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1625,7 +1697,7 @@ function er(e, t) {
1625
1697
  };
1626
1698
  let n = [];
1627
1699
  for (let r = 0; r < e.length; r++) {
1628
- let i = e[r], a = t[r], o = er(i, a);
1700
+ let i = e[r], a = t[r], o = mr(i, a);
1629
1701
  if (!o.valid) return {
1630
1702
  valid: !1,
1631
1703
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1642,7 +1714,7 @@ function er(e, t) {
1642
1714
  mergeErrorPath: []
1643
1715
  };
1644
1716
  }
1645
- function tr(e, t, n) {
1717
+ function hr(e, t, n) {
1646
1718
  let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
1647
1719
  let n;
1648
1720
  if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
@@ -1664,44 +1736,45 @@ function tr(e, t, n) {
1664
1736
  });
1665
1737
  for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
1666
1738
  }
1667
- let c = er(t.value, n.value);
1739
+ let c = mr(t.value, n.value);
1668
1740
  if (!c.valid) {
1669
- if (y(e)) return e;
1741
+ if (x(e)) return e;
1670
1742
  throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
1671
1743
  }
1672
1744
  return e.value = c.data, e;
1673
1745
  }
1674
- var nr = /*@__PURE__*/ E("$ZodEnum", (e, n) => {
1675
- F.init(e, n);
1676
- let r = t(n.entries), i = new Set(r);
1677
- e._zod.values = i;
1678
- let a = r.filter((e) => te.has(typeof e));
1679
- e._zod.pattern = RegExp(a.length ? `^(${a.map((e) => g(e.toString())).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (t, n) => {
1680
- let a = t.value;
1681
- return i.has(a) || t.issues.push({
1746
+ var gr = /*@__PURE__*/ O("$ZodEnum", (t, n) => {
1747
+ I.init(t, n);
1748
+ let r = e(n.entries), i = new Set(r);
1749
+ t._zod.values = i, D(t, "pattern", (t) => {
1750
+ let n = e(t.def.entries).filter((e) => ae.has(typeof e));
1751
+ return RegExp(n.length ? `^(${n.map((e) => v(e.toString())).join("|")})$` : "^[^\\s\\S]$");
1752
+ }), t._zod.parse = (e, n) => {
1753
+ let a = e.value;
1754
+ return i.has(a) || e.issues.push({
1682
1755
  code: "invalid_value",
1683
1756
  values: r,
1684
1757
  input: a,
1685
- inst: e
1686
- }), t;
1758
+ inst: t
1759
+ }), e;
1687
1760
  };
1688
- }), rr = /*@__PURE__*/ E("$ZodTransform", (e, t) => {
1689
- F.init(e, t), e._zod.optin = "optional", O.memoizer?.guard(e), e._zod.parse = (n, r) => {
1690
- if (r.direction === "backward") throw new Me(e.constructor.name);
1761
+ }), _r = /*@__PURE__*/ O("$ZodTransform", (e, t) => {
1762
+ I.init(e, t), e._zod.optin = "optional", A.memoizer?.guard(e), e._zod.parse = (n, r) => {
1763
+ if (r.direction === "backward") throw new Be(e.constructor.name);
1691
1764
  let i = t.transform(n.value, n);
1692
1765
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
1693
- if (i instanceof Promise) throw new D();
1766
+ if (i instanceof Promise) throw new k();
1694
1767
  return n.value = i, n;
1695
1768
  };
1696
1769
  });
1697
- function ir(e, t) {
1770
+ function vr(e, t) {
1698
1771
  return e.value = t.issues.length ? void 0 : t.value, e;
1699
1772
  }
1700
- var ar = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
1701
- F.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", T(e, "values", (e) => {
1773
+ var yr = /*@__PURE__*/ O("$ZodOptional", (e, t) => {
1774
+ I.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", D(e, "values", (e) => {
1702
1775
  let t = e.def.innerType._zod.values;
1703
1776
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
1704
- }), T(e, "pattern", (e) => {
1777
+ }), D(e, "pattern", (e) => {
1705
1778
  let t = e.def.innerType._zod.pattern;
1706
1779
  return t ? RegExp(`^(${o(t.source)})?$`) : void 0;
1707
1780
  }), e._zod.parse = (e, n) => {
@@ -1711,40 +1784,40 @@ var ar = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
1711
1784
  value: e.value,
1712
1785
  issues: []
1713
1786
  }, n);
1714
- return r instanceof Promise ? r.then((t) => ir(e, t)) : ir(e, r);
1787
+ return r instanceof Promise ? r.then((t) => vr(e, t)) : vr(e, r);
1715
1788
  }
1716
1789
  return t.innerType._zod.run(e, n);
1717
1790
  };
1718
- }), or = /*@__PURE__*/ E("$ZodExactOptional", (e, t) => {
1719
- ar.init(e, t), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1720
- }), sr = /*@__PURE__*/ E("$ZodNullable", (e, t) => {
1721
- F.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "pattern", (e) => {
1791
+ }), br = /*@__PURE__*/ O("$ZodExactOptional", (e, t) => {
1792
+ yr.init(e, t), D(e, "values", (e) => e.def.innerType._zod.values), D(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1793
+ }), xr = /*@__PURE__*/ O("$ZodNullable", (e, t) => {
1794
+ I.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin), D(e, "optout", (e) => e.def.innerType._zod.optout), D(e, "pattern", (e) => {
1722
1795
  let t = e.def.innerType._zod.pattern;
1723
1796
  return t ? RegExp(`^(${o(t.source)}|null)$`) : void 0;
1724
- }), T(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1725
- }), cr = /*@__PURE__*/ E("$ZodDefault", (e, t) => {
1726
- F.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1797
+ }), D(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1798
+ }), Sr = /*@__PURE__*/ O("$ZodDefault", (e, t) => {
1799
+ I.init(e, t), e._zod.optin = "defaulted", D(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1727
1800
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1728
1801
  if (e.value === void 0) return e.value = t.defaultValue, e;
1729
1802
  let r = t.innerType._zod.run(e, n);
1730
- return r instanceof Promise ? r.then((e) => lr(e, t)) : lr(r, t);
1803
+ return r instanceof Promise ? r.then((e) => Cr(e, t)) : Cr(r, t);
1731
1804
  };
1732
1805
  });
1733
- function lr(e, t) {
1806
+ function Cr(e, t) {
1734
1807
  return e.value === void 0 && (e.value = t.defaultValue), e;
1735
1808
  }
1736
- var ur = /*@__PURE__*/ E("$ZodPrefault", (e, t) => {
1737
- F.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1738
- }), dr = /*@__PURE__*/ E("$ZodNonOptional", (e, t) => {
1739
- F.init(e, t), T(e, "values", (e) => {
1809
+ var wr = /*@__PURE__*/ O("$ZodPrefault", (e, t) => {
1810
+ I.init(e, t), e._zod.optin = "defaulted", D(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1811
+ }), Tr = /*@__PURE__*/ O("$ZodNonOptional", (e, t) => {
1812
+ I.init(e, t), D(e, "values", (e) => {
1740
1813
  let t = e.def.innerType._zod.values;
1741
1814
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
1742
1815
  }), e._zod.parse = (n, r) => {
1743
1816
  let i = t.innerType._zod.run(n, r);
1744
- return i instanceof Promise ? i.then((t) => fr(t, e)) : fr(i, e);
1817
+ return i instanceof Promise ? i.then((t) => Er(t, e)) : Er(i, e);
1745
1818
  };
1746
1819
  });
1747
- function fr(e, t) {
1820
+ function Er(e, t) {
1748
1821
  return !e.issues.length && e.value === void 0 && e.issues.push({
1749
1822
  code: "invalid_type",
1750
1823
  expected: "nonoptional",
@@ -1752,57 +1825,57 @@ function fr(e, t) {
1752
1825
  inst: t
1753
1826
  }), e;
1754
1827
  }
1755
- function pr(e, t, n, r) {
1828
+ function Dr(e, t, n, r) {
1756
1829
  return t.issues.length ? (e.value = n.catchValue({
1757
1830
  ...t,
1758
1831
  value: e.value,
1759
- error: { issues: t.issues.map((e) => x(e, r, k())) },
1832
+ error: { issues: t.issues.map((e) => C(e, r, j())) },
1760
1833
  input: e.value
1761
1834
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
1762
1835
  }
1763
- var mr = /*@__PURE__*/ E("$ZodCatch", (e, t) => {
1764
- F.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1836
+ var Or = /*@__PURE__*/ O("$ZodCatch", (e, t) => {
1837
+ I.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), D(e, "optout", (e) => e.def.innerType._zod.optout), D(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1765
1838
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1766
1839
  let r = t.innerType._zod.run({
1767
1840
  value: e.value,
1768
1841
  issues: []
1769
1842
  }, n);
1770
- return r instanceof Promise ? r.then((r) => pr(e, r, t, n)) : pr(e, r, t, n);
1843
+ return r instanceof Promise ? r.then((r) => Dr(e, r, t, n)) : Dr(e, r, t, n);
1771
1844
  };
1772
- }), hr = /*@__PURE__*/ E("$ZodPipe", (e, t) => {
1773
- F.init(e, t), T(e, "values", (e) => e.def.in._zod.values), T(e, "optin", (e) => e.def.in._zod.optin), T(e, "optout", (e) => e.def.out._zod.optout), T(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
1845
+ }), kr = /*@__PURE__*/ O("$ZodPipe", (e, t) => {
1846
+ I.init(e, t), D(e, "values", (e) => e.def.in._zod.values), D(e, "optin", (e) => e.def.in._zod.optin), D(e, "optout", (e) => e.def.out._zod.optout), D(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
1774
1847
  if (n.direction === "backward") {
1775
1848
  let r = t.out._zod.run(e, n);
1776
- return r instanceof Promise ? r.then((e) => R(e, t.in, n)) : R(r, t.in, n);
1849
+ return r instanceof Promise ? r.then((e) => Ar(e, t.in, n)) : Ar(r, t.in, n);
1777
1850
  }
1778
1851
  let r = t.in._zod.run(e, n);
1779
- return r instanceof Promise ? r.then((e) => R(e, t.out, n)) : R(r, t.out, n);
1852
+ return r instanceof Promise ? r.then((e) => Ar(e, t.out, n)) : Ar(r, t.out, n);
1780
1853
  };
1781
1854
  });
1782
- function R(e, t, n) {
1855
+ function Ar(e, t, n) {
1783
1856
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
1784
1857
  value: e.value,
1785
1858
  issues: e.issues
1786
1859
  }, n);
1787
1860
  }
1788
- var gr = /*@__PURE__*/ E("$ZodReadonly", (e, t) => {
1789
- F.init(e, t), T(e, "propValues", (e) => e.def.innerType._zod.propValues), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "optin", (e) => e.def.innerType?._zod?.optin), T(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1861
+ var jr = /*@__PURE__*/ O("$ZodReadonly", (e, t) => {
1862
+ I.init(e, t), D(e, "propValues", (e) => e.def.innerType._zod.propValues), D(e, "values", (e) => e.def.innerType._zod.values), D(e, "optin", (e) => e.def.innerType?._zod?.optin), D(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1790
1863
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1791
1864
  let r = t.innerType._zod.run(e, n);
1792
- return r instanceof Promise ? r.then(_r) : _r(r);
1865
+ return r instanceof Promise ? r.then(Mr) : Mr(r);
1793
1866
  };
1794
1867
  });
1795
- function _r(e) {
1868
+ function Mr(e) {
1796
1869
  return e.memo || (e.value = Object.freeze(e.value)), e;
1797
1870
  }
1798
- var vr = /*@__PURE__*/ E("$ZodCustom", (e, t) => {
1799
- M.init(e, t), F.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1871
+ var Nr = /*@__PURE__*/ O("$ZodCustom", (e, t) => {
1872
+ N.init(e, t), I.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1800
1873
  let r = n.value, i = t.fn(r);
1801
- if (i instanceof Promise) return i.then((t) => yr(t, n, r, e));
1802
- yr(i, n, r, e);
1874
+ if (i instanceof Promise) return i.then((t) => Pr(t, n, r, e));
1875
+ Pr(i, n, r, e);
1803
1876
  };
1804
1877
  });
1805
- function yr(e, t, n, r) {
1878
+ function Pr(e, t, n, r) {
1806
1879
  if (!e) {
1807
1880
  let e = {
1808
1881
  code: "custom",
@@ -1811,55 +1884,73 @@ function yr(e, t, n, r) {
1811
1884
  path: [...r._zod.def.path ?? []],
1812
1885
  continue: !r._zod.def.abort
1813
1886
  };
1814
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(S(e));
1887
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(w(e));
1815
1888
  }
1816
1889
  }
1817
1890
  //#endregion
1818
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
1819
- var br = class extends Error {
1891
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
1892
+ var Fr = class extends Error {
1820
1893
  constructor() {
1821
1894
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
1822
1895
  }
1823
- }, xr = "~memo", Sr = [];
1824
- function Cr(e) {
1896
+ }, Ir = "~memo", Lr = [];
1897
+ function Rr(e) {
1898
+ return typeof e == "object" && !!e;
1899
+ }
1900
+ function zr(e) {
1825
1901
  return e.map((e) => e.path ? {
1826
1902
  ...e,
1827
1903
  path: e.path.slice()
1828
1904
  } : { ...e });
1829
1905
  }
1830
- var wr = /*@__PURE__*/ new WeakMap();
1831
- function Tr(e, t) {
1832
- let n = wr.get(e);
1833
- if (n !== void 0) return n;
1834
- if (t.has(e)) return !0;
1906
+ var Br = /*@__PURE__*/ new WeakMap(), z = 0, Vr = 1, B = 2;
1907
+ function Hr(e, t, n) {
1908
+ let r = Br.get(e);
1909
+ if (r !== void 0) return r ? B : z;
1910
+ if (t.has(e)) return B;
1835
1911
  t.add(e);
1836
- let r = !1, i = (e) => {
1837
- !r && e?._zod && Tr(e, t) && (r = !0);
1838
- }, a = e._zod.def;
1839
- switch (a.type) {
1840
- case "object":
1841
- for (let e of Reflect.ownKeys(a.shape)) i(a.shape[e]);
1842
- i(a.catchall);
1912
+ let i = z, a = (e) => {
1913
+ if (i !== B && e?._zod) {
1914
+ let r = Hr(e, t, n);
1915
+ r > i && (i = r);
1916
+ }
1917
+ }, o = (e, r) => {
1918
+ let i = z;
1919
+ for (let a of Reflect.ownKeys(e)) {
1920
+ let o = Object.getOwnPropertyDescriptor(e, a);
1921
+ if (r && !o.enumerable) continue;
1922
+ let s = o.get ? Vr : o.value?._zod ? Hr(o.value, t, n) : z;
1923
+ s > i && (i = s);
1924
+ }
1925
+ return i;
1926
+ }, s = (e) => {
1927
+ e > i && (i = e);
1928
+ }, c = e._zod.def;
1929
+ switch (c.type) {
1930
+ case "object": {
1931
+ let e = l(c);
1932
+ s(e ? o(e, !0) : Vr), a(c.catchall);
1843
1933
  break;
1934
+ }
1844
1935
  case "array":
1845
- i(a.element);
1936
+ a(c.element);
1846
1937
  break;
1847
1938
  case "tuple":
1848
- for (let e of a.items) i(e);
1849
- i(a.rest);
1939
+ for (let e of c.items) a(e);
1940
+ a(c.rest);
1850
1941
  break;
1851
1942
  case "record":
1852
1943
  case "map":
1853
- i(a.keyType), i(a.valueType);
1944
+ a(c.keyType), a(c.valueType);
1854
1945
  break;
1855
1946
  case "set":
1856
- i(a.valueType);
1947
+ a(c.valueType);
1857
1948
  break;
1858
1949
  case "union":
1859
- for (let e of a.options) i(e);
1950
+ for (let e of c.options) a(e);
1860
1951
  break;
1861
1952
  case "intersection":
1862
- i(a.left), i(a.right);
1953
+ a(c.left), a(c.right);
1863
1954
  break;
1864
1955
  case "optional":
1865
1956
  case "nullable":
@@ -1870,17 +1961,19 @@ function Tr(e, t) {
1870
1961
  case "nonoptional":
1871
1962
  case "promise":
1872
1963
  case "success":
1873
- i(a.innerType);
1964
+ a(c.innerType);
1874
1965
  break;
1875
1966
  case "pipe":
1876
- i(a.in), i(a.out);
1967
+ a(c.in), a(c.out);
1877
1968
  break;
1878
1969
  case "function":
1879
- i(a.input), i(a.output);
1970
+ a(c.input), a(c.output);
1880
1971
  break;
1881
- case "lazy":
1882
- i(e._zod.innerType);
1972
+ case "lazy": {
1973
+ let r = c._cachedInner ?? (n ? e._zod.innerType : void 0);
1974
+ s(r ? Hr(r, t, !1) : Vr);
1883
1975
  break;
1976
+ }
1884
1977
  case "template_literal":
1885
1978
  case "string":
1886
1979
  case "number":
@@ -1901,38 +1994,41 @@ function Tr(e, t) {
1901
1994
  case "file":
1902
1995
  case "transform":
1903
1996
  case "custom": break;
1904
- default: for (let e in a) {
1905
- let t = Object.getOwnPropertyDescriptor(a, e);
1997
+ default: for (let e in c) {
1998
+ let t = Object.getOwnPropertyDescriptor(c, e);
1906
1999
  if (!t || t.get) continue;
1907
2000
  let n = t.value;
1908
2001
  if (n && typeof n == "object") {
1909
- if (n._zod) i(n);
1910
- else if (Array.isArray(n)) for (let e of n) i(e);
2002
+ if (n._zod) a(n);
2003
+ else if (Array.isArray(n)) for (let e of n) a(e);
1911
2004
  }
1912
2005
  }
1913
2006
  }
1914
- return t.delete(e), wr.set(e, r), r;
2007
+ return t.delete(e), Ur(e, i);
1915
2008
  }
1916
- function Er(e, t) {
2009
+ function Ur(e, t) {
2010
+ return t !== Vr && Br.set(e, t === B), t;
2011
+ }
2012
+ function Wr(e, t) {
1917
2013
  let n = e.buckets.get(t);
1918
- return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2014
+ return n || (n = /* @__PURE__ */ new WeakMap(), e.buckets.set(t, n)), n;
1919
2015
  }
1920
- var z, B = [], Dr = {
2016
+ var Gr, Kr = [], qr = {
1921
2017
  alloc(e, t, n) {
1922
- let r = z;
2018
+ let r = Gr;
1923
2019
  if (!r) return n;
1924
- z = void 0;
2020
+ Gr = void 0;
1925
2021
  let i = {
1926
2022
  value: n,
1927
2023
  issues: null
1928
2024
  };
1929
- return r.set(t.value, i), B.push(i), n;
2025
+ return r.set(t.value, i), Kr.push(i), n;
1930
2026
  },
1931
2027
  guard(e) {
1932
2028
  var t;
1933
2029
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
1934
2030
  let t = e._zod.parse, n = (e, n) => {
1935
- if (n.direction !== "backward" && kr(n, e.value)) throw new br();
2031
+ if (n.direction !== "backward" && Yr(n, e.value)) throw new Fr();
1936
2032
  return t(e, n);
1937
2033
  };
1938
2034
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -1940,41 +2036,45 @@ var z, B = [], Dr = {
1940
2036
  },
1941
2037
  attach(e) {
1942
2038
  var t;
1943
- let n, r, i;
2039
+ let n, r = !1, i, a;
1944
2040
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
1945
- let t = e._zod.parse, a = (o, s) => {
1946
- if (n === void 0 && (n = Tr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
1947
- let c = o.value;
1948
- if (typeof c != "object" || !c) return t(o, s);
1949
- let l = s[xr];
1950
- l || (l = {
1951
- buckets: /* @__PURE__ */ new Map(),
2041
+ let t = e._zod.parse, o = (s, c) => {
2042
+ if (n === void 0) {
2043
+ let i = Hr(e, /* @__PURE__ */ new Set(), !1);
2044
+ if (i === z) return e._zod.parse = t, e._zod.run === o && (e._zod.run = t), t(s, c);
2045
+ i === B || r ? n = !0 : r = !0;
2046
+ }
2047
+ let l = s.value;
2048
+ if (!Rr(l)) return t(s, c);
2049
+ let u = c[Ir];
2050
+ u || (u = {
2051
+ buckets: /* @__PURE__ */ new WeakMap(),
1952
2052
  backEdges: void 0
1953
- }, s[xr] = l);
1954
- let u;
1955
- r === s ? u = i : (u = Er(l, e), r = s, i = u);
1956
- let d = u.get(c);
1957
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Cr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
1958
- z = u;
1959
- let f = B.length, p = t(o, s);
1960
- z = void 0;
1961
- let m = B.length > f ? B.pop() : void 0;
1962
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Cr(e.issues) : Sr), e)) : (m && (m.issues = p.issues.length ? Cr(p.issues) : Sr), p);
2053
+ }, c[Ir] = u);
2054
+ let d;
2055
+ i === c ? d = a : (d = Wr(u, e), i = c, a = d);
2056
+ let f = d.get(l);
2057
+ if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...zr(f.issues)) : (s.memo = !0, u.backEdges ?? (u.backEdges = /* @__PURE__ */ new WeakSet()), u.backEdges.add(f.value)), s;
2058
+ Gr = d;
2059
+ let p = Kr.length, m = t(s, c);
2060
+ Gr = void 0;
2061
+ let h = Kr.length > p ? Kr.pop() : void 0;
2062
+ return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ? zr(e.issues) : Lr), e)) : (h && (h.issues = m.issues.length ? zr(m.issues) : Lr), m);
1963
2063
  };
1964
- e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2064
+ e._zod.parse = o, e._zod.run === t && (e._zod.run = o);
1965
2065
  });
1966
2066
  }
1967
2067
  };
1968
- function Or() {
1969
- return Dr;
2068
+ function Jr() {
2069
+ return qr;
1970
2070
  }
1971
- function kr(e, t) {
1972
- let n = e[xr]?.backEdges;
1973
- return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2071
+ function Yr(e, t) {
2072
+ let n = e[Ir]?.backEdges;
2073
+ return n !== void 0 && Rr(t) && n.has(t);
1974
2074
  }
1975
2075
  //#endregion
1976
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/locales/en.js
1977
- var Ar = () => {
2076
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
2077
+ var Xr = () => {
1978
2078
  let e = {
1979
2079
  string: {
1980
2080
  unit: "characters",
@@ -1997,7 +2097,7 @@ var Ar = () => {
1997
2097
  verb: "to have"
1998
2098
  }
1999
2099
  };
2000
- function t(t) {
2100
+ function n(t) {
2001
2101
  return e[t] ?? null;
2002
2102
  }
2003
2103
  let r = {
@@ -2028,7 +2128,9 @@ var Ar = () => {
2028
2128
  base64url: "base64url-encoded string",
2029
2129
  json_string: "JSON string",
2030
2130
  e164: "E.164 number",
2131
+ currency_code: "currency code",
2031
2132
  credit_card: "credit card number",
2133
+ iban: "IBAN",
2032
2134
  jwt: "JWT",
2033
2135
  template_literal: "input"
2034
2136
  }, i = { nan: "NaN" };
@@ -2037,22 +2139,22 @@ var Ar = () => {
2037
2139
  }
2038
2140
  return (e) => {
2039
2141
  switch (e.code) {
2040
- case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(ve(e.input), e.input)}`;
2041
- case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ne(e.values[0])}` : `Invalid option: expected one of ${n(e.values, "|")}`;
2142
+ case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(Te(e.input), e.input)}`;
2143
+ case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${oe(e.values[0])}` : `Invalid option: expected one of ${t(e.values, "|")}`;
2042
2144
  case "too_big": {
2043
- let n = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = t(e.origin);
2044
- return r ? `Too big: expected ${e.origin ?? "value"} to have ${n}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${n}${e.maximum.toString()}`;
2145
+ let t = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = n(e.origin);
2146
+ return r ? `Too big: expected ${e.origin ?? "value"} to have ${t}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${t}${e.maximum.toString()}`;
2045
2147
  }
2046
2148
  case "too_small": {
2047
- let n = e.exact ? "exactly " : e.inclusive ? ">=" : ">", r = t(e.origin);
2048
- return r ? `Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}` : `Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`;
2149
+ let t = e.exact ? "exactly " : e.inclusive ? ">=" : ">", r = n(e.origin);
2150
+ return r ? `Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${r.unit}` : `Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`;
2049
2151
  }
2050
2152
  case "invalid_format": {
2051
2153
  let t = e;
2052
2154
  return t.format === "starts_with" ? `Invalid string: must start with "${t.prefix}"` : t.format === "ends_with" ? `Invalid string: must end with "${t.suffix}"` : t.format === "includes" ? `Invalid string: must include "${t.includes}"` : t.format === "regex" ? `Invalid string: must match pattern ${t.pattern}` : `Invalid ${r[t.format] ?? e.format}`;
2053
2155
  }
2054
2156
  case "not_multiple_of": return `Invalid number: must be a multiple of ${e.divisor}`;
2055
- case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${n(e.keys, ", ")}`;
2157
+ case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${t(e.keys, ", ")}`;
2056
2158
  case "invalid_key": return `Invalid key in ${e.origin}`;
2057
2159
  case "invalid_union": return e.options && Array.isArray(e.options) && e.options.length > 0 ? `Invalid discriminator value. Expected ${e.options.map((e) => `'${e}'`).join(" | ")}` : e.inclusive === !1 ? "Invalid input: more than one option matched" : "Invalid input";
2058
2160
  case "invalid_element": return `Invalid value in ${e.origin}`;
@@ -2060,12 +2162,12 @@ var Ar = () => {
2060
2162
  }
2061
2163
  };
2062
2164
  };
2063
- function jr() {
2064
- return { localeError: Ar() };
2165
+ function Zr() {
2166
+ return { localeError: Xr() };
2065
2167
  }
2066
2168
  //#endregion
2067
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/registries.js
2068
- var Mr, Nr = class {
2169
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
2170
+ var Qr, $r = class {
2069
2171
  constructor() {
2070
2172
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2071
2173
  }
@@ -2097,245 +2199,248 @@ var Mr, Nr = class {
2097
2199
  return this._map.has(e);
2098
2200
  }
2099
2201
  };
2100
- function Pr() {
2101
- return new Nr();
2202
+ function ei() {
2203
+ return new $r();
2102
2204
  }
2103
- (Mr = globalThis).__zod_globalRegistry ?? (Mr.__zod_globalRegistry = Pr());
2205
+ (Qr = globalThis).__zod_globalRegistry ?? (Qr.__zod_globalRegistry = ei());
2104
2206
  var V = globalThis.__zod_globalRegistry;
2105
2207
  //#endregion
2106
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/api.js
2208
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
2209
+ function ti(e) {
2210
+ return e.checks &&= [...e.checks], e;
2211
+ }
2107
2212
  // @__NO_SIDE_EFFECTS__
2108
- function Fr(e, t) {
2109
- return new e({
2213
+ function ni(e, t) {
2214
+ return new e(ti({
2110
2215
  type: "string",
2111
- ...v(t)
2112
- });
2216
+ ...b(t)
2217
+ }));
2113
2218
  }
2114
2219
  // @__NO_SIDE_EFFECTS__
2115
- function Ir(e, t) {
2220
+ function ri(e, t) {
2116
2221
  return new e({
2117
2222
  type: "string",
2118
2223
  format: "email",
2119
2224
  check: "string_format",
2120
2225
  abort: !1,
2121
- ...v(t)
2226
+ ...b(t)
2122
2227
  });
2123
2228
  }
2124
2229
  // @__NO_SIDE_EFFECTS__
2125
- function Lr(e, t) {
2230
+ function ii(e, t) {
2126
2231
  return new e({
2127
2232
  type: "string",
2128
2233
  format: "guid",
2129
2234
  check: "string_format",
2130
2235
  abort: !1,
2131
- ...v(t)
2236
+ ...b(t)
2132
2237
  });
2133
2238
  }
2134
2239
  // @__NO_SIDE_EFFECTS__
2135
- function Rr(e, t) {
2240
+ function ai(e, t) {
2136
2241
  return new e({
2137
2242
  type: "string",
2138
2243
  format: "uuid",
2139
2244
  check: "string_format",
2140
2245
  abort: !1,
2141
- ...v(t)
2246
+ ...b(t)
2142
2247
  });
2143
2248
  }
2144
2249
  // @__NO_SIDE_EFFECTS__
2145
- function zr(e, t) {
2250
+ function oi(e, t) {
2146
2251
  return new e({
2147
2252
  type: "string",
2148
2253
  format: "uuid",
2149
2254
  check: "string_format",
2150
2255
  abort: !1,
2151
2256
  version: "v4",
2152
- ...v(t)
2257
+ ...b(t)
2153
2258
  });
2154
2259
  }
2155
2260
  // @__NO_SIDE_EFFECTS__
2156
- function Br(e, t) {
2261
+ function si(e, t) {
2157
2262
  return new e({
2158
2263
  type: "string",
2159
2264
  format: "uuid",
2160
2265
  check: "string_format",
2161
2266
  abort: !1,
2162
2267
  version: "v6",
2163
- ...v(t)
2268
+ ...b(t)
2164
2269
  });
2165
2270
  }
2166
2271
  // @__NO_SIDE_EFFECTS__
2167
- function Vr(e, t) {
2272
+ function ci(e, t) {
2168
2273
  return new e({
2169
2274
  type: "string",
2170
2275
  format: "uuid",
2171
2276
  check: "string_format",
2172
2277
  abort: !1,
2173
2278
  version: "v7",
2174
- ...v(t)
2279
+ ...b(t)
2175
2280
  });
2176
2281
  }
2177
2282
  // @__NO_SIDE_EFFECTS__
2178
- function Hr(e, t) {
2283
+ function li(e, t) {
2179
2284
  return new e({
2180
2285
  type: "string",
2181
2286
  format: "url",
2182
2287
  check: "string_format",
2183
2288
  abort: !1,
2184
- ...v(t)
2289
+ ...b(t)
2185
2290
  });
2186
2291
  }
2187
2292
  // @__NO_SIDE_EFFECTS__
2188
- function Ur(e, t) {
2293
+ function ui(e, t) {
2189
2294
  return new e({
2190
2295
  type: "string",
2191
2296
  format: "emoji",
2192
2297
  check: "string_format",
2193
2298
  abort: !1,
2194
- ...v(t)
2299
+ ...b(t)
2195
2300
  });
2196
2301
  }
2197
2302
  // @__NO_SIDE_EFFECTS__
2198
- function Wr(e, t) {
2303
+ function di(e, t) {
2199
2304
  return new e({
2200
2305
  type: "string",
2201
2306
  format: "nanoid",
2202
2307
  check: "string_format",
2203
2308
  abort: !1,
2204
- ...v(t)
2309
+ ...b(t)
2205
2310
  });
2206
2311
  }
2207
2312
  // @__NO_SIDE_EFFECTS__
2208
- function Gr(e, t) {
2313
+ function fi(e, t) {
2209
2314
  return new e({
2210
2315
  type: "string",
2211
2316
  format: "cuid",
2212
2317
  check: "string_format",
2213
2318
  abort: !1,
2214
- ...v(t)
2319
+ ...b(t)
2215
2320
  });
2216
2321
  }
2217
2322
  // @__NO_SIDE_EFFECTS__
2218
- function Kr(e, t) {
2323
+ function pi(e, t) {
2219
2324
  return new e({
2220
2325
  type: "string",
2221
2326
  format: "cuid2",
2222
2327
  check: "string_format",
2223
2328
  abort: !1,
2224
- ...v(t)
2329
+ ...b(t)
2225
2330
  });
2226
2331
  }
2227
2332
  // @__NO_SIDE_EFFECTS__
2228
- function qr(e, t) {
2333
+ function mi(e, t) {
2229
2334
  return new e({
2230
2335
  type: "string",
2231
2336
  format: "ulid",
2232
2337
  check: "string_format",
2233
2338
  abort: !1,
2234
- ...v(t)
2339
+ ...b(t)
2235
2340
  });
2236
2341
  }
2237
2342
  // @__NO_SIDE_EFFECTS__
2238
- function Jr(e, t) {
2343
+ function hi(e, t) {
2239
2344
  return new e({
2240
2345
  type: "string",
2241
2346
  format: "xid",
2242
2347
  check: "string_format",
2243
2348
  abort: !1,
2244
- ...v(t)
2349
+ ...b(t)
2245
2350
  });
2246
2351
  }
2247
2352
  // @__NO_SIDE_EFFECTS__
2248
- function Yr(e, t) {
2353
+ function gi(e, t) {
2249
2354
  return new e({
2250
2355
  type: "string",
2251
2356
  format: "ksuid",
2252
2357
  check: "string_format",
2253
2358
  abort: !1,
2254
- ...v(t)
2359
+ ...b(t)
2255
2360
  });
2256
2361
  }
2257
2362
  // @__NO_SIDE_EFFECTS__
2258
- function Xr(e, t) {
2363
+ function _i(e, t) {
2259
2364
  return new e({
2260
2365
  type: "string",
2261
2366
  format: "ipv4",
2262
2367
  check: "string_format",
2263
2368
  abort: !1,
2264
- ...v(t)
2369
+ ...b(t)
2265
2370
  });
2266
2371
  }
2267
2372
  // @__NO_SIDE_EFFECTS__
2268
- function Zr(e, t) {
2373
+ function vi(e, t) {
2269
2374
  return new e({
2270
2375
  type: "string",
2271
2376
  format: "ipv6",
2272
2377
  check: "string_format",
2273
2378
  abort: !1,
2274
- ...v(t)
2379
+ ...b(t)
2275
2380
  });
2276
2381
  }
2277
2382
  // @__NO_SIDE_EFFECTS__
2278
- function Qr(e, t) {
2383
+ function yi(e, t) {
2279
2384
  return new e({
2280
2385
  type: "string",
2281
2386
  format: "cidrv4",
2282
2387
  check: "string_format",
2283
2388
  abort: !1,
2284
- ...v(t)
2389
+ ...b(t)
2285
2390
  });
2286
2391
  }
2287
2392
  // @__NO_SIDE_EFFECTS__
2288
- function $r(e, t) {
2393
+ function bi(e, t) {
2289
2394
  return new e({
2290
2395
  type: "string",
2291
2396
  format: "cidrv6",
2292
2397
  check: "string_format",
2293
2398
  abort: !1,
2294
- ...v(t)
2399
+ ...b(t)
2295
2400
  });
2296
2401
  }
2297
2402
  // @__NO_SIDE_EFFECTS__
2298
- function ei(e, t) {
2403
+ function xi(e, t) {
2299
2404
  return new e({
2300
2405
  type: "string",
2301
2406
  format: "base64",
2302
2407
  check: "string_format",
2303
2408
  abort: !1,
2304
- ...v(t)
2409
+ ...b(t)
2305
2410
  });
2306
2411
  }
2307
2412
  // @__NO_SIDE_EFFECTS__
2308
- function ti(e, t) {
2413
+ function Si(e, t) {
2309
2414
  return new e({
2310
2415
  type: "string",
2311
2416
  format: "base64url",
2312
2417
  check: "string_format",
2313
2418
  abort: !1,
2314
- ...v(t)
2419
+ ...b(t)
2315
2420
  });
2316
2421
  }
2317
2422
  // @__NO_SIDE_EFFECTS__
2318
- function ni(e, t) {
2423
+ function Ci(e, t) {
2319
2424
  return new e({
2320
2425
  type: "string",
2321
2426
  format: "e164",
2322
2427
  check: "string_format",
2323
2428
  abort: !1,
2324
- ...v(t)
2429
+ ...b(t)
2325
2430
  });
2326
2431
  }
2327
2432
  // @__NO_SIDE_EFFECTS__
2328
- function ri(e, t) {
2433
+ function wi(e, t) {
2329
2434
  return new e({
2330
2435
  type: "string",
2331
2436
  format: "jwt",
2332
2437
  check: "string_format",
2333
2438
  abort: !1,
2334
- ...v(t)
2439
+ ...b(t)
2335
2440
  });
2336
2441
  }
2337
2442
  // @__NO_SIDE_EFFECTS__
2338
- function ii(e, t) {
2443
+ function Ti(e, t) {
2339
2444
  return new e({
2340
2445
  type: "string",
2341
2446
  format: "datetime",
@@ -2343,263 +2448,263 @@ function ii(e, t) {
2343
2448
  offset: !1,
2344
2449
  local: !1,
2345
2450
  precision: null,
2346
- ...v(t)
2451
+ ...b(t)
2347
2452
  });
2348
2453
  }
2349
2454
  // @__NO_SIDE_EFFECTS__
2350
- function ai(e, t) {
2455
+ function Ei(e, t) {
2351
2456
  return new e({
2352
2457
  type: "string",
2353
2458
  format: "date",
2354
2459
  check: "string_format",
2355
- ...v(t)
2460
+ ...b(t)
2356
2461
  });
2357
2462
  }
2358
2463
  // @__NO_SIDE_EFFECTS__
2359
- function oi(e, t) {
2464
+ function Di(e, t) {
2360
2465
  return new e({
2361
2466
  type: "string",
2362
2467
  format: "time",
2363
2468
  check: "string_format",
2364
2469
  precision: null,
2365
- ...v(t)
2470
+ ...b(t)
2366
2471
  });
2367
2472
  }
2368
2473
  // @__NO_SIDE_EFFECTS__
2369
- function si(e, t) {
2474
+ function Oi(e, t) {
2370
2475
  return new e({
2371
2476
  type: "string",
2372
2477
  format: "duration",
2373
2478
  check: "string_format",
2374
- ...v(t)
2479
+ ...b(t)
2375
2480
  });
2376
2481
  }
2377
2482
  // @__NO_SIDE_EFFECTS__
2378
- function ci(e, t) {
2379
- return new e({
2483
+ function ki(e, t) {
2484
+ return new e(ti({
2380
2485
  type: "number",
2381
2486
  checks: [],
2382
- ...v(t)
2383
- });
2487
+ ...b(t)
2488
+ }));
2384
2489
  }
2385
2490
  // @__NO_SIDE_EFFECTS__
2386
- function li(e, t) {
2491
+ function Ai(e, t) {
2387
2492
  return new e({
2388
2493
  type: "number",
2389
2494
  check: "number_format",
2390
2495
  abort: !1,
2391
2496
  format: "safeint",
2392
- ...v(t)
2497
+ ...b(t)
2393
2498
  });
2394
2499
  }
2395
2500
  // @__NO_SIDE_EFFECTS__
2396
- function ui(e, t) {
2501
+ function ji(e, t) {
2397
2502
  return new e({
2398
2503
  type: "null",
2399
- ...v(t)
2504
+ ...b(t)
2400
2505
  });
2401
2506
  }
2402
2507
  // @__NO_SIDE_EFFECTS__
2403
- function di(e) {
2508
+ function Mi(e) {
2404
2509
  return new e({ type: "unknown" });
2405
2510
  }
2406
2511
  // @__NO_SIDE_EFFECTS__
2407
- function fi(e, t) {
2512
+ function Ni(e, t) {
2408
2513
  return new e({
2409
2514
  type: "never",
2410
- ...v(t)
2515
+ ...b(t)
2411
2516
  });
2412
2517
  }
2413
2518
  // @__NO_SIDE_EFFECTS__
2414
- function pi(e, t) {
2415
- return new Rt({
2519
+ function Pi(e, t) {
2520
+ return new Jt({
2416
2521
  check: "less_than",
2417
- ...v(t),
2522
+ ...b(t),
2418
2523
  value: e,
2419
2524
  inclusive: !1
2420
2525
  });
2421
2526
  }
2422
2527
  // @__NO_SIDE_EFFECTS__
2423
- function mi(e, t) {
2424
- return new Rt({
2528
+ function Fi(e, t) {
2529
+ return new Jt({
2425
2530
  check: "less_than",
2426
- ...v(t),
2531
+ ...b(t),
2427
2532
  value: e,
2428
2533
  inclusive: !0
2429
2534
  });
2430
2535
  }
2431
2536
  // @__NO_SIDE_EFFECTS__
2432
- function hi(e, t) {
2433
- return new zt({
2537
+ function Ii(e, t) {
2538
+ return new Yt({
2434
2539
  check: "greater_than",
2435
- ...v(t),
2540
+ ...b(t),
2436
2541
  value: e,
2437
2542
  inclusive: !1
2438
2543
  });
2439
2544
  }
2440
2545
  // @__NO_SIDE_EFFECTS__
2441
- function gi(e, t) {
2442
- return new zt({
2546
+ function Li(e, t) {
2547
+ return new Yt({
2443
2548
  check: "greater_than",
2444
- ...v(t),
2549
+ ...b(t),
2445
2550
  value: e,
2446
2551
  inclusive: !0
2447
2552
  });
2448
2553
  }
2449
2554
  // @__NO_SIDE_EFFECTS__
2450
- function _i(e, t) {
2451
- return new Bt({
2555
+ function Ri(e, t) {
2556
+ return new Xt({
2452
2557
  check: "multiple_of",
2453
- ...v(t),
2558
+ ...b(t),
2454
2559
  value: e
2455
2560
  });
2456
2561
  }
2457
2562
  // @__NO_SIDE_EFFECTS__
2458
- function vi(e, t) {
2459
- return new Ht({
2563
+ function zi(e, t) {
2564
+ return new Qt({
2460
2565
  check: "max_length",
2461
- ...v(t),
2566
+ ...b(t),
2462
2567
  maximum: e
2463
2568
  });
2464
2569
  }
2465
2570
  // @__NO_SIDE_EFFECTS__
2466
- function H(e, t) {
2467
- return new Ut({
2571
+ function Bi(e, t) {
2572
+ return new $t({
2468
2573
  check: "min_length",
2469
- ...v(t),
2574
+ ...b(t),
2470
2575
  minimum: e
2471
2576
  });
2472
2577
  }
2473
2578
  // @__NO_SIDE_EFFECTS__
2474
- function yi(e, t) {
2475
- return new Wt({
2579
+ function Vi(e, t) {
2580
+ return new en({
2476
2581
  check: "length_equals",
2477
- ...v(t),
2582
+ ...b(t),
2478
2583
  length: e
2479
2584
  });
2480
2585
  }
2481
2586
  // @__NO_SIDE_EFFECTS__
2482
- function bi(e, t) {
2483
- return new Gt({
2587
+ function Hi(e, t) {
2588
+ return new tn({
2484
2589
  check: "string_format",
2485
2590
  format: "regex",
2486
- ...v(t),
2591
+ ...b(t),
2487
2592
  pattern: e
2488
2593
  });
2489
2594
  }
2490
2595
  // @__NO_SIDE_EFFECTS__
2491
- function xi(e) {
2492
- return new Kt({
2596
+ function Ui(e) {
2597
+ return new nn({
2493
2598
  check: "string_format",
2494
2599
  format: "lowercase",
2495
- ...v(e)
2600
+ ...b(e)
2496
2601
  });
2497
2602
  }
2498
2603
  // @__NO_SIDE_EFFECTS__
2499
- function Si(e) {
2500
- return new qt({
2604
+ function Wi(e) {
2605
+ return new rn({
2501
2606
  check: "string_format",
2502
2607
  format: "uppercase",
2503
- ...v(e)
2608
+ ...b(e)
2504
2609
  });
2505
2610
  }
2506
2611
  // @__NO_SIDE_EFFECTS__
2507
- function Ci(e, t) {
2508
- return new Jt({
2612
+ function Gi(e, t) {
2613
+ return new an({
2509
2614
  check: "string_format",
2510
2615
  format: "includes",
2511
- ...v(t),
2616
+ ...b(t),
2512
2617
  includes: e
2513
2618
  });
2514
2619
  }
2515
2620
  // @__NO_SIDE_EFFECTS__
2516
- function wi(e, t) {
2517
- return new Yt({
2621
+ function Ki(e, t) {
2622
+ return new on({
2518
2623
  check: "string_format",
2519
2624
  format: "starts_with",
2520
- ...v(t),
2625
+ ...b(t),
2521
2626
  prefix: e
2522
2627
  });
2523
2628
  }
2524
2629
  // @__NO_SIDE_EFFECTS__
2525
- function Ti(e, t) {
2526
- return new Xt({
2630
+ function qi(e, t) {
2631
+ return new sn({
2527
2632
  check: "string_format",
2528
2633
  format: "ends_with",
2529
- ...v(t),
2634
+ ...b(t),
2530
2635
  suffix: e
2531
2636
  });
2532
2637
  }
2533
2638
  // @__NO_SIDE_EFFECTS__
2534
- function U(e) {
2535
- return new Zt({
2639
+ function H(e) {
2640
+ return new cn({
2536
2641
  check: "overwrite",
2537
2642
  tx: e
2538
2643
  });
2539
2644
  }
2540
2645
  // @__NO_SIDE_EFFECTS__
2541
- function Ei(e) {
2542
- return /* @__PURE__ */ U((t) => t.normalize(e));
2646
+ function Ji(e) {
2647
+ return /* @__PURE__ */ H((t) => t.normalize(e));
2543
2648
  }
2544
2649
  // @__NO_SIDE_EFFECTS__
2545
- function Di() {
2546
- return /* @__PURE__ */ U((e) => e.trim());
2650
+ function Yi() {
2651
+ return /* @__PURE__ */ H((e) => e.trim());
2547
2652
  }
2548
2653
  // @__NO_SIDE_EFFECTS__
2549
- function Oi() {
2550
- return /* @__PURE__ */ U((e) => e.toLowerCase());
2654
+ function Xi() {
2655
+ return /* @__PURE__ */ H((e) => e.toLowerCase());
2551
2656
  }
2552
2657
  // @__NO_SIDE_EFFECTS__
2553
- function ki() {
2554
- return /* @__PURE__ */ U((e) => e.toUpperCase());
2658
+ function Zi() {
2659
+ return /* @__PURE__ */ H((e) => e.toUpperCase());
2555
2660
  }
2556
2661
  // @__NO_SIDE_EFFECTS__
2557
- function Ai() {
2558
- return /* @__PURE__ */ U((e) => d(e));
2662
+ function Qi() {
2663
+ return /* @__PURE__ */ H((e) => te(e));
2559
2664
  }
2560
2665
  // @__NO_SIDE_EFFECTS__
2561
- function ji(e, t, n) {
2666
+ function $i(e, t, n) {
2562
2667
  return new e({
2563
2668
  type: "array",
2564
2669
  element: t,
2565
- ...v(n)
2670
+ ...b(n)
2566
2671
  });
2567
2672
  }
2568
2673
  // @__NO_SIDE_EFFECTS__
2569
- function Mi(e, t, n) {
2674
+ function ea(e, t, n) {
2570
2675
  return new e({
2571
2676
  type: "custom",
2572
2677
  check: "custom",
2573
2678
  fn: t,
2574
- ...v(n)
2679
+ ...b(n)
2575
2680
  });
2576
2681
  }
2577
2682
  // @__NO_SIDE_EFFECTS__
2578
- function Ni(e, t) {
2579
- let n = /* @__PURE__ */ Pi((t) => (t.addIssue = (e) => {
2580
- if (typeof e == "string") t.issues.push(S(e, t.value, n._zod.def));
2683
+ function ta(e, t) {
2684
+ let n = /* @__PURE__ */ na((t) => (t.addIssue = (e) => {
2685
+ if (typeof e == "string") t.issues.push(w(e, t.value, n._zod.def));
2581
2686
  else {
2582
2687
  let r = e;
2583
- r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(S(r));
2688
+ r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(w(r));
2584
2689
  }
2585
2690
  }, e(t.value, t)), t);
2586
2691
  return n;
2587
2692
  }
2588
2693
  // @__NO_SIDE_EFFECTS__
2589
- function Pi(e, t) {
2590
- let n = new M({
2694
+ function na(e, t) {
2695
+ let n = new N({
2591
2696
  check: "custom",
2592
- ...v(t)
2697
+ ...b(t)
2593
2698
  });
2594
2699
  return n._zod.check = e, n;
2595
2700
  }
2596
2701
  //#endregion
2597
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2598
- function W(e, ...t) {
2702
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
2703
+ function U(e, ...t) {
2599
2704
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && c(e, t, n[t]);
2600
2705
  return e;
2601
2706
  }
2602
- function Fi(e) {
2707
+ function ra(e) {
2603
2708
  let t = e?.target ?? "draft-2020-12";
2604
2709
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2605
2710
  processors: e.processors ?? {},
@@ -2619,7 +2724,7 @@ function Fi(e) {
2619
2724
  external: e?.external ?? void 0
2620
2725
  };
2621
2726
  }
2622
- function G(e, t, n, r, i) {
2727
+ function W(e, t, n, r, i) {
2623
2728
  let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
2624
2729
  zodSchema: e,
2625
2730
  path: r.path,
@@ -2629,7 +2734,7 @@ function G(e, t, n, r, i) {
2629
2734
  if (a === void 0 || a === "throw") throw Error(i);
2630
2735
  return Object.assign(n, a), !0;
2631
2736
  }
2632
- function K(e, t, n = {
2737
+ function G(e, t, n = {
2633
2738
  path: [],
2634
2739
  schemaPath: []
2635
2740
  }) {
@@ -2658,15 +2763,15 @@ function K(e, t, n = {
2658
2763
  a(e, t, n, r);
2659
2764
  }
2660
2765
  let a = e._zod.parent;
2661
- a && (o.ref ||= a, K(a, t, r), t.seen.get(a).isParent = !0);
2766
+ a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
2662
2767
  }
2663
2768
  let c = t.metadataRegistry.get(e);
2664
- return c && W(o.schema, c), t.io === "input" && q(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2769
+ return c && U(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2665
2770
  }
2666
- function Ii(e) {
2771
+ function ia(e) {
2667
2772
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
2668
2773
  }
2669
- function Li(e, t) {
2774
+ function aa(e, t) {
2670
2775
  let n = e.seen.get(t);
2671
2776
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2672
2777
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -2687,7 +2792,7 @@ function Li(e, t) {
2687
2792
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
2688
2793
  return t[1].defId = a, {
2689
2794
  defId: a,
2690
- ref: `${i("__shared")}#/${r}/${Ii(a)}`
2795
+ ref: `${i("__shared")}#/${r}/${ia(a)}`
2691
2796
  };
2692
2797
  }
2693
2798
  let i = `#/${r}/`;
@@ -2695,7 +2800,7 @@ function Li(e, t) {
2695
2800
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
2696
2801
  return {
2697
2802
  defId: a,
2698
- ref: i + Ii(a)
2803
+ ref: i + ia(a)
2699
2804
  };
2700
2805
  }, a = (e) => {
2701
2806
  if (e[1].schema.$ref) return;
@@ -2732,20 +2837,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2732
2837
  a(n);
2733
2838
  continue;
2734
2839
  }
2735
- if (r.count > 1 && e.reused === "ref") {
2736
- a(n);
2737
- continue;
2738
- }
2840
+ r.count > 1 && e.reused === "ref" && a(n);
2739
2841
  }
2740
2842
  e.external && (e.sharedDefsExtractedFor = e.external);
2741
2843
  }
2742
- function Ri(e) {
2844
+ function oa(e) {
2743
2845
  let t = e.anyOf;
2744
2846
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
2745
2847
  let n = [];
2746
2848
  for (let e of t) {
2747
2849
  if (!e || typeof e != "object") return;
2748
- Ri(e);
2850
+ oa(e);
2749
2851
  let t = Object.keys(e);
2750
2852
  if (t.length !== 1 || t[0] !== "type") return;
2751
2853
  let r = e.type;
@@ -2756,21 +2858,21 @@ function Ri(e) {
2756
2858
  }
2757
2859
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
2758
2860
  }
2759
- var zi = /* @__PURE__ */ new Set([
2861
+ var sa = /* @__PURE__ */ new Set([
2760
2862
  "type",
2761
2863
  "properties",
2762
2864
  "required",
2763
2865
  "additionalProperties"
2764
- ]), Bi = ["oneOf", "anyOf"];
2765
- function Vi(e) {
2866
+ ]), ca = ["oneOf", "anyOf"];
2867
+ function la(e) {
2766
2868
  let t = e.additionalProperties;
2767
2869
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
2768
2870
  }
2769
- function Hi(e) {
2871
+ function ua(e) {
2770
2872
  let t = [];
2771
2873
  for (let n of e) {
2772
2874
  if (typeof n != "object" || n.type !== "object") return null;
2773
- for (let e in n) if (!zi.has(e)) return null;
2875
+ for (let e in n) if (!sa.has(e)) return null;
2774
2876
  t.push(n);
2775
2877
  }
2776
2878
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -2779,10 +2881,10 @@ function Hi(e) {
2779
2881
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
2780
2882
  let e = [];
2781
2883
  for (let n of t) {
2782
- let t = n.properties?.[r] ?? Vi(n);
2884
+ let t = n.properties?.[r] ?? la(n);
2783
2885
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
2784
2886
  }
2785
- c(n, r, e.length === 1 ? e[0] : Hi(e) ?? { allOf: e });
2887
+ c(n, r, e.length === 1 ? e[0] : ua(e) ?? { allOf: e });
2786
2888
  }
2787
2889
  for (let t of e.required ?? []) r.add(t);
2788
2890
  }
@@ -2794,29 +2896,29 @@ function Hi(e) {
2794
2896
  else {
2795
2897
  let e = [];
2796
2898
  for (let n of t) {
2797
- let t = Vi(n);
2899
+ let t = la(n);
2798
2900
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
2799
2901
  }
2800
2902
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
2801
2903
  }
2802
2904
  return i;
2803
2905
  }
2804
- function Ui(e) {
2906
+ function da(e) {
2805
2907
  let t = e.allOf;
2806
2908
  if (!Array.isArray(t) || t.length < 2) return;
2807
- for (let t of zi) if (t in e) return;
2808
- let n = t.filter((e) => Bi.some((t) => Array.isArray(e[t]))), r = null;
2809
- if (!n.length) r = Hi(t);
2909
+ for (let t of sa) if (t in e) return;
2910
+ let n = t.filter((e) => ca.some((t) => Array.isArray(e[t]))), r = null;
2911
+ if (!n.length) r = ua(t);
2810
2912
  else {
2811
- let e = n[0], i = Bi.find((t) => Array.isArray(e[t]));
2913
+ let e = n[0], i = ca.find((t) => Array.isArray(e[t]));
2812
2914
  if (Object.keys(e).length !== 1) return;
2813
- let a = t.filter((t) => t !== e), o = e[i].map((e) => Hi([...a, e]));
2915
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => ua([...a, e]));
2814
2916
  if (o.some((e) => !e)) return;
2815
2917
  r = { [i]: o };
2816
2918
  }
2817
- r && (delete e.allOf, W(e, r));
2919
+ r && (delete e.allOf, U(e, r));
2818
2920
  }
2819
- function Wi(e, t) {
2921
+ function fa(e, t) {
2820
2922
  let n = e.seen.get(t);
2821
2923
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2822
2924
  let r = (t) => {
@@ -2826,7 +2928,7 @@ function Wi(e, t) {
2826
2928
  if (n.ref = null, o) {
2827
2929
  r(o);
2828
2930
  let n = e.seen.get(o), s = n.schema;
2829
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : W(i, s), W(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2931
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : U(i, s), U(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2830
2932
  if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
2831
2933
  }
2832
2934
  let s = t._zod.parent;
@@ -2843,7 +2945,7 @@ function Wi(e, t) {
2843
2945
  };
2844
2946
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
2845
2947
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
2846
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) Ri(t[1].def ?? t[1].schema);
2948
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) oa(t[1].def ?? t[1].schema);
2847
2949
  for (let t of e.deferred) t();
2848
2950
  if (e.intersections.length) {
2849
2951
  let t = /* @__PURE__ */ new Map();
@@ -2853,7 +2955,7 @@ function Wi(e, t) {
2853
2955
  let r = t.get(n);
2854
2956
  r ? r.push(e) : t.set(n, [e]);
2855
2957
  }
2856
- for (let n of e.intersections) for (let e of t.get(n) ?? []) Ui(e);
2958
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) da(e);
2857
2959
  }
2858
2960
  }
2859
2961
  let i = {};
@@ -2862,7 +2964,7 @@ function Wi(e, t) {
2862
2964
  if (!n) throw Error("Schema is missing an `id` property");
2863
2965
  i.$id = e.external.uri(n);
2864
2966
  }
2865
- W(i, n.defId ? n.schema : n.def ?? n.schema);
2967
+ U(i, n.defId ? n.schema : n.def ?? n.schema);
2866
2968
  let a = e.metadataRegistry.get(t)?.id;
2867
2969
  a !== void 0 && i.id === a && delete i.id;
2868
2970
  let o = e.external?.defs ?? {};
@@ -2877,8 +2979,8 @@ function Wi(e, t) {
2877
2979
  value: {
2878
2980
  ...t["~standard"],
2879
2981
  jsonSchema: {
2880
- input: J(t, "input", e.processors),
2881
- output: J(t, "output", e.processors)
2982
+ input: ma(t, "input", e.processors),
2983
+ output: ma(t, "output", e.processors)
2882
2984
  }
2883
2985
  },
2884
2986
  enumerable: !1,
@@ -2888,100 +2990,148 @@ function Wi(e, t) {
2888
2990
  throw Error("Error converting schema to JSON.");
2889
2991
  }
2890
2992
  }
2891
- function q(e, t) {
2993
+ function K(e, t) {
2892
2994
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
2893
2995
  if (n.seen.has(e)) return !1;
2894
2996
  n.seen.add(e);
2895
2997
  let r = e._zod.def;
2896
2998
  if (r.type === "transform") return !0;
2897
- if (r.type === "array") return q(r.element, n);
2898
- if (r.type === "set") return q(r.valueType, n);
2899
- if (r.type === "lazy") return q(r.getter(), n);
2900
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return q(r.innerType, n);
2901
- if (r.type === "intersection") return q(r.left, n) || q(r.right, n);
2902
- if (r.type === "record" || r.type === "map") return q(r.keyType, n) || q(r.valueType, n);
2903
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : q(r.in, n) || q(r.out, n);
2999
+ if (r.type === "array") return K(r.element, n);
3000
+ if (r.type === "set") return K(r.valueType, n);
3001
+ if (r.type === "lazy") return K(r.getter(), n);
3002
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return K(r.innerType, n);
3003
+ if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
3004
+ if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
3005
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : K(r.in, n) || K(r.out, n);
2904
3006
  if (r.type === "object") {
2905
- for (let e in r.shape) if (q(r.shape[e], n)) return !0;
3007
+ for (let e in r.shape) if (K(r.shape[e], n)) return !0;
2906
3008
  return !1;
2907
3009
  }
2908
3010
  if (r.type === "union") {
2909
- for (let e of r.options) if (q(e, n)) return !0;
3011
+ for (let e of r.options) if (K(e, n)) return !0;
2910
3012
  return !1;
2911
3013
  }
2912
3014
  if (r.type === "tuple") {
2913
- for (let e of r.items) if (q(e, n)) return !0;
2914
- return !!(r.rest && q(r.rest, n));
3015
+ for (let e of r.items) if (K(e, n)) return !0;
3016
+ return !!(r.rest && K(r.rest, n));
2915
3017
  }
2916
3018
  return !1;
2917
3019
  }
2918
- var Gi = (e, t = {}) => (n) => {
2919
- let r = Fi({
3020
+ var pa = (e, t = {}) => (n) => {
3021
+ let r = ra({
2920
3022
  ...n,
2921
3023
  processors: t
2922
3024
  });
2923
- return K(e, r), Li(r, e), Wi(r, e);
2924
- }, J = (e, t, n = {}) => (r) => {
2925
- let { libraryOptions: i, target: a } = r ?? {}, o = Fi({
3025
+ return G(e, r), aa(r, e), fa(r, e);
3026
+ }, ma = (e, t, n = {}) => (r) => {
3027
+ let { libraryOptions: i, target: a } = r ?? {}, o = ra({
2926
3028
  ...i ?? {},
2927
3029
  target: a,
2928
3030
  io: t,
2929
3031
  processors: n
2930
3032
  });
2931
- return K(e, o), Li(o, e), Wi(o, e);
2932
- }, Ki = {
3033
+ return G(e, o), aa(o, e), fa(o, e);
3034
+ }, q = (e, t, n) => {
3035
+ (e[t] === void 0 || n > e[t]) && (e[t] = n);
3036
+ }, J = (e, t, n) => {
3037
+ (e[t] === void 0 || n < e[t]) && (e[t] = n);
3038
+ }, ha = (e, t) => {
3039
+ q(e, "minimum", t), J(e, "maximum", t);
3040
+ }, ga = (e, t) => {
3041
+ e.multipleOf ??= [], e.multipleOf.includes(t) || e.multipleOf.push(t);
3042
+ }, _a = (e, t) => {
3043
+ e.patterns ??= /* @__PURE__ */ new Set(), e.patterns.add(t);
3044
+ }, va = (e, t) => {
3045
+ e.mime = e.mime ? e.mime.filter((e) => t.includes(e)) : [...t];
3046
+ }, ya = (e, t) => {
3047
+ e.format = t, t.includes("int") && (e.isInt = !0);
3048
+ }, ba = (e, t) => q(e, "minimum", t.minimum), xa = (e, t) => J(e, "maximum", t.maximum), Sa = (e) => (t, n) => {
3049
+ ya(t, n.format);
3050
+ let [r, i] = e[n.format];
3051
+ q(t, "minimum", r), J(t, "maximum", i);
3052
+ }, Ca = {
3053
+ greater_than: (e, t) => q(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
3054
+ less_than: (e, t) => J(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
3055
+ multiple_of: (e, t) => ga(e, t.value),
3056
+ number_format: Sa(ce),
3057
+ bigint_format: Sa(le),
3058
+ min_length: ba,
3059
+ max_length: xa,
3060
+ length_equals: (e, t) => ha(e, t.length),
3061
+ min_size: ba,
3062
+ max_size: xa,
3063
+ size_equals: (e, t) => ha(e, t.size),
3064
+ string_format: (e, t) => {
3065
+ ya(e, t.format), t.pattern && _a(e, t.pattern), (t.format === "base64" || t.format === "base64url") && (e.contentEncoding = t.format), (t.local || t.precision === -1) && (e.laxFormat = !0);
3066
+ },
3067
+ mime_type: (e, t) => va(e, t.mime)
3068
+ };
3069
+ function Y(e) {
3070
+ let t = {}, n = e._zod.def, r = e._zod.traits.has("$ZodCheck") ? [e, ...n.checks ?? []] : n.checks ?? [];
3071
+ for (let e of r) Ca[e._zod.def.check]?.(t, e._zod.def);
3072
+ let i = e._zod.bag;
3073
+ i.minimum !== void 0 && q(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && q(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && J(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && J(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && ga(t, i.multipleOf), i.format !== void 0 && (t.format ??= i.format, i.format.includes("int") && (t.isInt = !0)), i.mime && va(t, i.mime);
3074
+ for (let e of i.patterns ?? []) _a(t, e);
3075
+ return t;
3076
+ }
3077
+ var wa = {
2933
3078
  guid: "uuid",
2934
3079
  url: "uri",
2935
3080
  datetime: "date-time",
2936
3081
  json_string: "json-string",
2937
3082
  regex: ""
2938
- }, qi = (e, t, n, r) => {
3083
+ }, Ta = /* @__PURE__ */ new Map([[Gn, Mt], [qn, Nt]]), Ea = (e) => Ta.get(e) ?? e, Da = (e, t, n, r) => {
2939
3084
  let i = n;
2940
3085
  i.type = "string";
2941
- let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
2942
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Ki[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2943
- let e = [...c];
3086
+ let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = Y(e);
3087
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = wa[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3088
+ let e = [...c].map(Ea);
2944
3089
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2945
3090
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2946
3091
  pattern: e.source
2947
3092
  }))]);
2948
3093
  }
2949
- }, Ji = (e, t, n, r) => {
2950
- let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
2951
- i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
2952
- let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
2953
- d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : G(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
2954
- }, Yi = (e, t, n, r) => {
3094
+ }, Oa = (e, t, n, r) => {
3095
+ let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } = Y(e);
3096
+ i.type = u ? "integer" : "number";
3097
+ let d = typeof l == "number" && l >= (a ?? -Infinity), f = typeof c == "number" && c <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
3098
+ if (d ? p ? (i.minimum = l, i.exclusiveMinimum = !0) : i.exclusiveMinimum = l : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = c, i.exclusiveMaximum = !0) : i.exclusiveMaximum = c : typeof o == "number" && (i.maximum = o), s) {
3099
+ let n = /* @__PURE__ */ new Set();
3100
+ for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) : W(e, t, i, r, `A multipleOf divisor of ${a} cannot be represented in JSON Schema`);
3101
+ let [a, ...o] = n;
3102
+ a !== void 0 && (i.multipleOf = a), o.length && (i.allOf = [...i.allOf ?? [], ...o.map((e) => ({ multipleOf: e }))]);
3103
+ }
3104
+ }, ka = (e, t, n, r) => {
2955
3105
  t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
2956
- }, Xi = (e, t, n, r) => {
3106
+ }, Aa = (e, t, n, r) => {
2957
3107
  n.not = {};
2958
- }, Zi = (e, n, r, i) => {
2959
- let a = e._zod.def, o = t(a.entries);
3108
+ }, ja = (t, n, r, i) => {
3109
+ let a = t._zod.def, o = e(a.entries);
2960
3110
  if (o.length === 0) {
2961
3111
  r.not = {};
2962
3112
  return;
2963
3113
  }
2964
3114
  o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
2965
- }, Qi = (e, t, n, r) => {
2966
- G(e, t, n, r, "Custom types cannot be represented in JSON Schema");
2967
- }, $i = (e, t, n, r) => {
2968
- G(e, t, n, r, "Transforms cannot be represented in JSON Schema");
2969
- }, ea = (e, t, n, r) => {
2970
- let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2971
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = K(a.element, t, {
3115
+ }, Ma = (e, t, n, r) => {
3116
+ W(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3117
+ }, Na = (e, t, n, r) => {
3118
+ W(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3119
+ }, Pa = (e, t, n, r) => {
3120
+ let i = n, a = e._zod.def, { minimum: o, maximum: s } = Y(e);
3121
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
2972
3122
  ...r,
2973
3123
  path: [...r.path, "items"]
2974
3124
  });
2975
3125
  };
2976
- function ta(e) {
3126
+ function Fa(e) {
2977
3127
  let t = e._zod.def;
2978
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? ta(t.out) : t.type === "catch" ? ta(t.innerType) : e._zod.optin;
3128
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Fa(t.out) : t.type === "catch" ? Fa(t.innerType) : e._zod.optin;
2979
3129
  }
2980
- var na = (e, t, n, r) => {
3130
+ var Ia = (e, t, n, r) => {
2981
3131
  let i = n, a = e._zod.def, o = a.shape;
2982
- if (Object.getOwnPropertySymbols(o).length && G(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3132
+ if (Object.getOwnPropertySymbols(o).length && W(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
2983
3133
  i.type = "object", i.properties = {};
2984
- for (let e in o) c(i.properties, e, K(o[e], t, {
3134
+ for (let e in o) c(i.properties, e, G(o[e], t, {
2985
3135
  ...r,
2986
3136
  path: [
2987
3137
  ...r.path,
@@ -2989,16 +3139,17 @@ var na = (e, t, n, r) => {
2989
3139
  e
2990
3140
  ]
2991
3141
  }));
2992
- let s = new Set(Object.keys(o)), l = new Set([...s].filter((e) => {
3142
+ let s = [];
3143
+ for (let e of Object.keys(o)) {
2993
3144
  let n = a.shape[e];
2994
- return t.io === "input" ? ta(n) === void 0 : n._zod.optout === void 0;
2995
- }));
2996
- l.size > 0 && (i.required = Array.from(l)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = K(a.catchall, t, {
3145
+ (t.io === "input" ? Fa(n) === void 0 : n._zod.optout === void 0) && s.push(e);
3146
+ }
3147
+ s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = G(a.catchall, t, {
2997
3148
  ...r,
2998
3149
  path: [...r.path, "additionalProperties"]
2999
3150
  })) : t.io === "output" && (i.additionalProperties = !1);
3000
- }, ra = (e, t, n, r) => {
3001
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => K(e, t, {
3151
+ }, La = (e, t, n, r) => {
3152
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
3002
3153
  ...r,
3003
3154
  path: [
3004
3155
  ...r.path,
@@ -3007,15 +3158,15 @@ var na = (e, t, n, r) => {
3007
3158
  ]
3008
3159
  }));
3009
3160
  a ? n.oneOf = o : n.anyOf = o;
3010
- }, ia = (e, t, n, r) => {
3011
- let i = e._zod.def, a = K(i.left, t, {
3161
+ }, Ra = (e, t, n, r) => {
3162
+ let i = e._zod.def, a = G(i.left, t, {
3012
3163
  ...r,
3013
3164
  path: [
3014
3165
  ...r.path,
3015
3166
  "allOf",
3016
3167
  0
3017
3168
  ]
3018
- }), o = K(i.right, t, {
3169
+ }), o = G(i.right, t, {
3019
3170
  ...r,
3020
3171
  path: [
3021
3172
  ...r.path,
@@ -3024,63 +3175,63 @@ var na = (e, t, n, r) => {
3024
3175
  ]
3025
3176
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3026
3177
  n.allOf = c, t.intersections.push(c);
3027
- }, aa = (e, t, n, r) => {
3028
- let i = e._zod.def, a = K(i.innerType, t, r), o = t.seen.get(e);
3178
+ }, za = (e, t, n, r) => {
3179
+ let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
3029
3180
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3030
- }, oa = (e, t, n, r) => {
3181
+ }, Ba = (e, t, n, r) => {
3031
3182
  let i = e._zod.def;
3032
- K(i.innerType, t, r);
3183
+ G(i.innerType, t, r);
3033
3184
  let a = t.seen.get(e);
3034
3185
  a.ref = i.innerType;
3035
- }, sa = Symbol();
3036
- function ca(e, t, n, r, i) {
3186
+ }, Va = Symbol();
3187
+ function Ha(e, t, n, r, i) {
3037
3188
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3038
- return a ? (G(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), sa) : JSON.parse(o);
3189
+ return a ? (W(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Va) : JSON.parse(o);
3039
3190
  }
3040
- var la = (e, t, n, r) => {
3191
+ var Ua = (e, t, n, r) => {
3041
3192
  let i = e._zod.def;
3042
- K(i.innerType, t, r);
3193
+ G(i.innerType, t, r);
3043
3194
  let a = t.seen.get(e);
3044
3195
  a.ref = i.innerType;
3045
- let o = ca(i.defaultValue, e, t, n, r);
3046
- o !== sa && (n.default = o);
3047
- }, ua = (e, t, n, r) => {
3196
+ let o = Ha(i.defaultValue, e, t, n, r);
3197
+ o !== Va && (n.default = o);
3198
+ }, Wa = (e, t, n, r) => {
3048
3199
  let i = e._zod.def;
3049
- K(i.innerType, t, r);
3200
+ G(i.innerType, t, r);
3050
3201
  let a = t.seen.get(e);
3051
3202
  if (a.ref = i.innerType, t.io !== "input") return;
3052
- let o = ca(i.defaultValue, e, t, n, r);
3053
- o !== sa && (n._prefault = o);
3054
- }, da = (e, t, n, r) => {
3203
+ let o = Ha(i.defaultValue, e, t, n, r);
3204
+ o !== Va && (n._prefault = o);
3205
+ }, Ga = (e, t, n, r) => {
3055
3206
  let i = e._zod.def;
3056
- K(i.innerType, t, r);
3207
+ G(i.innerType, t, r);
3057
3208
  let a = t.seen.get(e);
3058
3209
  a.ref = i.innerType;
3059
3210
  let o;
3060
3211
  try {
3061
3212
  o = i.catchValue(void 0);
3062
3213
  } catch {
3063
- G(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3214
+ W(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3064
3215
  return;
3065
3216
  }
3066
3217
  n.default = o;
3067
- }, fa = (e, t, n, r) => {
3218
+ }, Ka = (e, t, n, r) => {
3068
3219
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3069
- K(o, t, r);
3220
+ G(o, t, r);
3070
3221
  let s = t.seen.get(e);
3071
3222
  s.ref = o;
3072
- }, pa = (e, t, n, r) => {
3223
+ }, qa = (e, t, n, r) => {
3073
3224
  let i = e._zod.def;
3074
- K(i.innerType, t, r);
3225
+ G(i.innerType, t, r);
3075
3226
  let a = t.seen.get(e);
3076
3227
  a.ref = i.innerType, n.readOnly = !0;
3077
- }, ma = (e, t, n, r) => {
3228
+ }, Ja = (e, t, n, r) => {
3078
3229
  let i = e._zod.def;
3079
- K(i.innerType, t, r);
3230
+ G(i.innerType, t, r);
3080
3231
  let a = t.seen.get(e);
3081
3232
  a.ref = i.innerType;
3082
- }, ha = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3083
- function Y(e, t, n) {
3233
+ }, Ya = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3234
+ function X(e, t, n) {
3084
3235
  Object.defineProperty(e, t, {
3085
3236
  configurable: !0,
3086
3237
  enumerable: !1,
@@ -3101,33 +3252,33 @@ function Y(e, t, n) {
3101
3252
  }
3102
3253
  });
3103
3254
  }
3104
- var X = /*@__PURE__*/ E("ZodError", (e, t) => {
3105
- Be.init(e, t), e.name = "ZodError";
3106
- let n = Object.getPrototypeOf(e);
3107
- ha.has(n) || (ha.add(n), Y(n, "format", (e) => (t) => We(e, t)), Y(n, "flatten", (e) => (t) => Ue(e, t)), Y(n, "addIssue", (e) => (t) => {
3108
- e.issues.push(t), e.message = JSON.stringify(e.issues, r, 2);
3109
- }), Y(n, "addIssues", (e) => (t) => {
3110
- e.issues.push(...t), e.message = JSON.stringify(e.issues, r, 2);
3111
- }), Object.defineProperty(n, "isEmpty", {
3255
+ var Z = /*@__PURE__*/ O("ZodError", (e, t) => {
3256
+ qe.init(e, t), e.name = "ZodError";
3257
+ let r = Object.getPrototypeOf(e);
3258
+ Ya.has(r) || (Ya.add(r), X(r, "format", (e) => (t) => Xe(e, t)), X(r, "flatten", (e) => (t) => Ye(e, t)), X(r, "addIssue", (e) => (t) => {
3259
+ e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
3260
+ }), X(r, "addIssues", (e) => (t) => {
3261
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
3262
+ }), Object.defineProperty(r, "isEmpty", {
3112
3263
  configurable: !0,
3113
3264
  enumerable: !1,
3114
3265
  get() {
3115
3266
  return this.issues.length === 0;
3116
3267
  }
3117
3268
  }));
3118
- }, void 0, { Parent: Error }), ga = /* @__PURE__ */ Ge(X), _a = /* @__PURE__ */ Ke(X), va = /* @__PURE__ */ j(X), ya = /* @__PURE__ */ Je(X), ba = /* @__PURE__ */ Xe(X), xa = /* @__PURE__ */ Ze(X), Sa = /* @__PURE__ */ Qe(X), Ca = /* @__PURE__ */ $e(X), wa = /* @__PURE__ */ et(X), Ta = /* @__PURE__ */ tt(X), Ea = /* @__PURE__ */ nt(X), Da = /* @__PURE__ */ rt(X);
3269
+ }, void 0, { Parent: Error }), Xa = /* @__PURE__ */ Ze(Z), Za = /* @__PURE__ */ Qe(Z), Qa = /* @__PURE__ */ $e(Z), $a = /* @__PURE__ */ tt(Z), eo = /* @__PURE__ */ st(Z), to = /* @__PURE__ */ ct(Z), no = /* @__PURE__ */ lt(Z), ro = /* @__PURE__ */ ut(Z), io = /* @__PURE__ */ dt(Z), ao = /* @__PURE__ */ ft(Z), oo = /* @__PURE__ */ pt(Z), so = /* @__PURE__ */ mt(Z);
3119
3270
  //#endregion
3120
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3121
- function Oa() {
3122
- O.localeError || k(jr());
3271
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
3272
+ function co() {
3273
+ A.localeError || j(Zr());
3123
3274
  }
3124
- function ka() {
3125
- O.memoizer || k({ memoizer: Or() });
3275
+ function lo() {
3276
+ A.memoizer || j({ memoizer: Jr() });
3126
3277
  }
3127
- var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.type = t.type, e), {
3278
+ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (co(), I.init(e, t), e.def = t, e.type = t.type, e), {
3128
3279
  check(...e) {
3129
3280
  let t = this.def;
3130
- return this.clone(l(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
3281
+ return this.clone(h(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
3131
3282
  check: e,
3132
3283
  def: { check: "custom" },
3133
3284
  onattach: []
@@ -3137,7 +3288,7 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
3137
3288
  return this.check(...e);
3138
3289
  },
3139
3290
  clone(e, t) {
3140
- return _(this, e, t);
3291
+ return y(this, e, t);
3141
3292
  },
3142
3293
  brand() {
3143
3294
  return this;
@@ -3146,55 +3297,55 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
3146
3297
  return e.add(this, t), this;
3147
3298
  },
3148
3299
  refine(e, t) {
3149
- return this.check(Uo(e, t));
3300
+ return this.check(ws(e, t));
3150
3301
  },
3151
3302
  superRefine(e, t) {
3152
- return this.check(Wo(e, t));
3303
+ return this.check(Ts(e, t));
3153
3304
  },
3154
3305
  overwrite(e) {
3155
- return this.check(/* @__PURE__ */ U(e));
3306
+ return this.check(/* @__PURE__ */ H(e));
3156
3307
  },
3157
3308
  optional() {
3158
- return To(this);
3309
+ return os(this);
3159
3310
  },
3160
3311
  exactOptional() {
3161
- return Do(this);
3312
+ return cs(this);
3162
3313
  },
3163
3314
  nullable() {
3164
- return ko(this);
3315
+ return us(this);
3165
3316
  },
3166
3317
  nullish() {
3167
- return To(ko(this));
3318
+ return os(us(this));
3168
3319
  },
3169
3320
  nonoptional(e) {
3170
- return Fo(this, e);
3321
+ return gs(this, e);
3171
3322
  },
3172
3323
  array() {
3173
- return po(this);
3324
+ return Jo(this);
3174
3325
  },
3175
3326
  or(e) {
3176
- return _o([this, e]);
3327
+ return Qo([this, e]);
3177
3328
  },
3178
3329
  and(e) {
3179
- return yo(this, e);
3330
+ return es(this, e);
3180
3331
  },
3181
3332
  transform(e) {
3182
- return zo(this, Co(e));
3333
+ return bs(this, is(e));
3183
3334
  },
3184
3335
  default(e) {
3185
- return jo(this, e);
3336
+ return fs(this, e);
3186
3337
  },
3187
3338
  prefault(e) {
3188
- return No(this, e);
3339
+ return ms(this, e);
3189
3340
  },
3190
3341
  catch(e) {
3191
- return Lo(this, e);
3342
+ return vs(this, e);
3192
3343
  },
3193
3344
  pipe(e) {
3194
- return zo(this, e);
3345
+ return bs(this, e);
3195
3346
  },
3196
3347
  readonly() {
3197
- return Vo(this);
3348
+ return Ss(this);
3198
3349
  },
3199
3350
  describe(e) {
3200
3351
  let t = this.clone();
@@ -3215,61 +3366,67 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
3215
3366
  return t.length === 0 ? e(this) : e(this, ...t);
3216
3367
  },
3217
3368
  get "~standard"() {
3218
- return be(this, "~standard", {
3219
- ...tn(this),
3369
+ return De(this, "~standard", {
3370
+ ...pn(this),
3220
3371
  jsonSchema: {
3221
- input: J(this, "input"),
3222
- output: J(this, "output")
3372
+ input: ma(this, "input"),
3373
+ output: ma(this, "output")
3223
3374
  }
3224
3375
  });
3225
3376
  },
3226
3377
  set "~standard"(e) {
3227
- C(this, "~standard", e);
3378
+ T(this, "~standard", e);
3228
3379
  },
3229
3380
  parse: function e(t, n) {
3230
- return ga(this, t, n, { callee: e });
3381
+ return Xa(this, t, n, { callee: e });
3231
3382
  },
3232
3383
  parseAsync: async function e(t, n) {
3233
- return await _a(this, t, n, { callee: e });
3384
+ return await Za(this, t, n, { callee: e });
3234
3385
  },
3235
3386
  safeParse(e, t) {
3236
- return va(this, e, t);
3387
+ return Qa(this, e, t);
3237
3388
  },
3238
3389
  async safeParseAsync(e, t) {
3239
- return ya(this, e, t);
3390
+ return $a(this, e, t);
3240
3391
  },
3241
3392
  get spa() {
3242
3393
  return this?.safeParseAsync;
3243
3394
  },
3244
3395
  set spa(e) {
3245
- C(this, "spa", e);
3396
+ T(this, "spa", e);
3397
+ },
3398
+ validate(e, t) {
3399
+ return it(this, e, t);
3400
+ },
3401
+ validateAsync(e, t) {
3402
+ return ot(this, e, t);
3246
3403
  },
3247
3404
  encode: function e(t, n) {
3248
- return ba(this, t, n, { callee: e });
3405
+ return eo(this, t, n, { callee: e });
3249
3406
  },
3250
3407
  decode: function e(t, n) {
3251
- return xa(this, t, n, { callee: e });
3408
+ return to(this, t, n, { callee: e });
3252
3409
  },
3253
3410
  encodeAsync: async function e(t, n) {
3254
- return await Sa(this, t, n, { callee: e });
3411
+ return await no(this, t, n, { callee: e });
3255
3412
  },
3256
3413
  decodeAsync: async function e(t, n) {
3257
- return await Ca(this, t, n, { callee: e });
3414
+ return await ro(this, t, n, { callee: e });
3258
3415
  },
3259
3416
  safeEncode(e, t) {
3260
- return wa(this, e, t);
3417
+ return io(this, e, t);
3261
3418
  },
3262
3419
  safeDecode(e, t) {
3263
- return Ta(this, e, t);
3420
+ return ao(this, e, t);
3264
3421
  },
3265
3422
  async safeEncodeAsync(e, t) {
3266
- return Ea(this, e, t);
3423
+ return oo(this, e, t);
3267
3424
  },
3268
3425
  async safeDecodeAsync(e, t) {
3269
- return Da(this, e, t);
3426
+ return so(this, e, t);
3270
3427
  },
3271
3428
  toJSONSchema(e) {
3272
- return Gi(this, {})(e);
3429
+ return pa(this, {})(e);
3273
3430
  },
3274
3431
  get description() {
3275
3432
  return V.get(this)?.description;
@@ -3277,573 +3434,526 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
3277
3434
  get _def() {
3278
3435
  return this._zod.def;
3279
3436
  }
3280
- }), Aa = /*@__PURE__*/ E("_ZodString", (e, t) => {
3281
- nn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => qi(e, t, n, r);
3282
- let n = e._zod.bag;
3283
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3437
+ }), uo = /*@__PURE__*/ O("_ZodString", (e, t) => {
3438
+ mn.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Da(e, t, n, r);
3439
+ }, /*@__PURE__*/ Oe({
3440
+ format: (e) => Y(e).format ?? null,
3441
+ minLength: (e) => Y(e).minimum ?? null,
3442
+ maxLength: (e) => Y(e).maximum ?? null
3284
3443
  }, {
3285
3444
  regex(...e) {
3286
- return this.check(/* @__PURE__ */ bi(...e));
3445
+ return this.check(/* @__PURE__ */ Hi(...e));
3287
3446
  },
3288
3447
  includes(...e) {
3289
- return this.check(/* @__PURE__ */ Ci(...e));
3448
+ return this.check(/* @__PURE__ */ Gi(...e));
3290
3449
  },
3291
3450
  startsWith(...e) {
3292
- return this.check(/* @__PURE__ */ wi(...e));
3451
+ return this.check(/* @__PURE__ */ Ki(...e));
3293
3452
  },
3294
3453
  endsWith(...e) {
3295
- return this.check(/* @__PURE__ */ Ti(...e));
3454
+ return this.check(/* @__PURE__ */ qi(...e));
3296
3455
  },
3297
3456
  min(...e) {
3298
- return this.check(/* @__PURE__ */ H(...e));
3457
+ return this.check(/* @__PURE__ */ Bi(...e));
3299
3458
  },
3300
3459
  max(...e) {
3301
- return this.check(/* @__PURE__ */ vi(...e));
3460
+ return this.check(/* @__PURE__ */ zi(...e));
3302
3461
  },
3303
3462
  length(...e) {
3304
- return this.check(/* @__PURE__ */ yi(...e));
3463
+ return this.check(/* @__PURE__ */ Vi(...e));
3305
3464
  },
3306
3465
  nonempty(...e) {
3307
- return this.check(/* @__PURE__ */ H(1, ...e));
3466
+ return this.check(/* @__PURE__ */ Bi(1, ...e));
3308
3467
  },
3309
3468
  lowercase(e) {
3310
- return this.check(/* @__PURE__ */ xi(e));
3469
+ return this.check(/* @__PURE__ */ Ui(e));
3311
3470
  },
3312
3471
  uppercase(e) {
3313
- return this.check(/* @__PURE__ */ Si(e));
3472
+ return this.check(/* @__PURE__ */ Wi(e));
3314
3473
  },
3315
3474
  trim() {
3316
- return this.check(/* @__PURE__ */ Di());
3475
+ return this.check(/* @__PURE__ */ Yi());
3317
3476
  },
3318
3477
  normalize(...e) {
3319
- return this.check(/* @__PURE__ */ Ei(...e));
3478
+ return this.check(/* @__PURE__ */ Ji(...e));
3320
3479
  },
3321
3480
  toLowerCase() {
3322
- return this.check(/* @__PURE__ */ Oi());
3481
+ return this.check(/* @__PURE__ */ Xi());
3323
3482
  },
3324
3483
  toUpperCase() {
3325
- return this.check(/* @__PURE__ */ ki());
3484
+ return this.check(/* @__PURE__ */ Zi());
3326
3485
  },
3327
3486
  slugify() {
3328
- return this.check(/* @__PURE__ */ Ai());
3487
+ return this.check(/* @__PURE__ */ Qi());
3329
3488
  }
3330
- }), ja = /*@__PURE__*/ E("ZodString", (e, t) => {
3331
- nn.init(e, t), Aa.init(e, t);
3489
+ })), fo = /*@__PURE__*/ O("ZodString", (e, t) => {
3490
+ mn.init(e, t), uo.init(e, t);
3332
3491
  }, {
3333
3492
  email(e) {
3334
- return this.check(/* @__PURE__ */ Ir(Ia, e));
3493
+ return this.check(/* @__PURE__ */ ri(vo, e));
3335
3494
  },
3336
3495
  url(e) {
3337
- return this.check(/* @__PURE__ */ Hr(za, e));
3496
+ return this.check(/* @__PURE__ */ li(xo, e));
3338
3497
  },
3339
3498
  jwt(e) {
3340
- return this.check(/* @__PURE__ */ ri(eo, e));
3499
+ return this.check(/* @__PURE__ */ wi(Io, e));
3341
3500
  },
3342
3501
  emoji(e) {
3343
- return this.check(/* @__PURE__ */ Ur(Ba, e));
3502
+ return this.check(/* @__PURE__ */ ui(So, e));
3344
3503
  },
3345
3504
  guid(e) {
3346
- return this.check(/* @__PURE__ */ Lr(La, e));
3505
+ return this.check(/* @__PURE__ */ ii(yo, e));
3347
3506
  },
3348
3507
  uuid(e) {
3349
- return this.check(/* @__PURE__ */ Rr(Ra, e));
3508
+ return this.check(/* @__PURE__ */ ai(bo, e));
3350
3509
  },
3351
3510
  uuidv4(e) {
3352
- return this.check(/* @__PURE__ */ zr(Ra, e));
3511
+ return this.check(/* @__PURE__ */ oi(bo, e));
3353
3512
  },
3354
3513
  uuidv6(e) {
3355
- return this.check(/* @__PURE__ */ Br(Ra, e));
3514
+ return this.check(/* @__PURE__ */ si(bo, e));
3356
3515
  },
3357
3516
  uuidv7(e) {
3358
- return this.check(/* @__PURE__ */ Vr(Ra, e));
3517
+ return this.check(/* @__PURE__ */ ci(bo, e));
3359
3518
  },
3360
3519
  nanoid(e) {
3361
- return this.check(/* @__PURE__ */ Wr(Va, e));
3520
+ return this.check(/* @__PURE__ */ di(Co, e));
3362
3521
  },
3363
3522
  cuid(e) {
3364
- return this.check(/* @__PURE__ */ Gr(Ha, e));
3523
+ return this.check(/* @__PURE__ */ fi(wo, e));
3365
3524
  },
3366
3525
  cuid2(e) {
3367
- return this.check(/* @__PURE__ */ Kr(Ua, e));
3526
+ return this.check(/* @__PURE__ */ pi(To, e));
3368
3527
  },
3369
3528
  ulid(e) {
3370
- return this.check(/* @__PURE__ */ qr(Wa, e));
3529
+ return this.check(/* @__PURE__ */ mi(Eo, e));
3371
3530
  },
3372
3531
  base64(e) {
3373
- return this.check(/* @__PURE__ */ ei(Za, e));
3532
+ return this.check(/* @__PURE__ */ xi(No, e));
3374
3533
  },
3375
3534
  base64url(e) {
3376
- return this.check(/* @__PURE__ */ ti(Qa, e));
3535
+ return this.check(/* @__PURE__ */ Si(Po, e));
3377
3536
  },
3378
3537
  xid(e) {
3379
- return this.check(/* @__PURE__ */ Jr(Ga, e));
3538
+ return this.check(/* @__PURE__ */ hi(Do, e));
3380
3539
  },
3381
3540
  ksuid(e) {
3382
- return this.check(/* @__PURE__ */ Yr(Ka, e));
3541
+ return this.check(/* @__PURE__ */ gi(Oo, e));
3383
3542
  },
3384
3543
  ipv4(e) {
3385
- return this.check(/* @__PURE__ */ Xr(qa, e));
3544
+ return this.check(/* @__PURE__ */ _i(ko, e));
3386
3545
  },
3387
3546
  ipv6(e) {
3388
- return this.check(/* @__PURE__ */ Zr(Ja, e));
3547
+ return this.check(/* @__PURE__ */ vi(Ao, e));
3389
3548
  },
3390
3549
  cidrv4(e) {
3391
- return this.check(/* @__PURE__ */ Qr(Ya, e));
3550
+ return this.check(/* @__PURE__ */ yi(jo, e));
3392
3551
  },
3393
3552
  cidrv6(e) {
3394
- return this.check(/* @__PURE__ */ $r(Xa, e));
3553
+ return this.check(/* @__PURE__ */ bi(Mo, e));
3395
3554
  },
3396
3555
  e164(e) {
3397
- return this.check(/* @__PURE__ */ ni($a, e));
3556
+ return this.check(/* @__PURE__ */ Ci(Fo, e));
3398
3557
  },
3399
3558
  datetime(e) {
3400
- return this.check(/* @__PURE__ */ ii(Ma, e));
3559
+ return this.check(/* @__PURE__ */ Ti(mo, e));
3401
3560
  },
3402
3561
  date(e) {
3403
- return this.check(/* @__PURE__ */ ai(Na, e));
3562
+ return this.check(/* @__PURE__ */ Ei(ho, e));
3404
3563
  },
3405
3564
  time(e) {
3406
- return this.check(/* @__PURE__ */ oi(Pa, e));
3565
+ return this.check(/* @__PURE__ */ Di(go, e));
3407
3566
  },
3408
3567
  duration(e) {
3409
- return this.check(/* @__PURE__ */ si(Fa, e));
3568
+ return this.check(/* @__PURE__ */ Oi(_o, e));
3410
3569
  }
3411
3570
  });
3412
- function Q(e) {
3413
- return /* @__PURE__ */ Fr(ja, e);
3414
- }
3415
- var $ = /*@__PURE__*/ E("ZodStringFormat", (e, t) => {
3416
- I.init(e, t), Aa.init(e, t);
3417
- }), Ma = /*@__PURE__*/ E("ZodISODateTime", (e, t) => {
3418
- bn.init(e, t), $.init(e, t);
3419
- }), Na = /*@__PURE__*/ E("ZodISODate", (e, t) => {
3420
- xn.init(e, t), $.init(e, t);
3421
- }), Pa = /*@__PURE__*/ E("ZodISOTime", (e, t) => {
3422
- Sn.init(e, t), $.init(e, t);
3423
- }), Fa = /*@__PURE__*/ E("ZodISODuration", (e, t) => {
3424
- Cn.init(e, t), $.init(e, t);
3425
- }), Ia = /*@__PURE__*/ E("ZodEmail", (e, t) => {
3426
- on.init(e, t), $.init(e, t);
3427
- }), La = /*@__PURE__*/ E("ZodGUID", (e, t) => {
3428
- rn.init(e, t), $.init(e, t);
3429
- }), Ra = /*@__PURE__*/ E("ZodUUID", (e, t) => {
3430
- an.init(e, t), $.init(e, t);
3431
- }), za = /*@__PURE__*/ E("ZodURL", (e, t) => {
3432
- fn.init(e, t), $.init(e, t);
3433
- }), Ba = /*@__PURE__*/ E("ZodEmoji", (e, t) => {
3434
- pn.init(e, t), $.init(e, t);
3435
- }), Va = /*@__PURE__*/ E("ZodNanoID", (e, t) => {
3436
- mn.init(e, t), $.init(e, t);
3437
- }), Ha = /*@__PURE__*/ E("ZodCUID", (e, t) => {
3571
+ function po(e) {
3572
+ return /* @__PURE__ */ ni(fo, e);
3573
+ }
3574
+ var $ = /*@__PURE__*/ O("ZodStringFormat", (e, t) => {
3575
+ L.init(e, t), uo.init(e, t);
3576
+ }), mo = /*@__PURE__*/ O("ZodISODateTime", (e, t) => {
3577
+ Nn.init(e, t), $.init(e, t);
3578
+ }), ho = /*@__PURE__*/ O("ZodISODate", (e, t) => {
3579
+ Pn.init(e, t), $.init(e, t);
3580
+ }), go = /*@__PURE__*/ O("ZodISOTime", (e, t) => {
3581
+ Fn.init(e, t), $.init(e, t);
3582
+ }), _o = /*@__PURE__*/ O("ZodISODuration", (e, t) => {
3583
+ In.init(e, t), $.init(e, t);
3584
+ }), vo = /*@__PURE__*/ O("ZodEmail", (e, t) => {
3585
+ _n.init(e, t), $.init(e, t);
3586
+ }), yo = /*@__PURE__*/ O("ZodGUID", (e, t) => {
3438
3587
  hn.init(e, t), $.init(e, t);
3439
- }), Ua = /*@__PURE__*/ E("ZodCUID2", (e, t) => {
3588
+ }), bo = /*@__PURE__*/ O("ZodUUID", (e, t) => {
3440
3589
  gn.init(e, t), $.init(e, t);
3441
- }), Wa = /*@__PURE__*/ E("ZodULID", (e, t) => {
3442
- _n.init(e, t), $.init(e, t);
3443
- }), Ga = /*@__PURE__*/ E("ZodXID", (e, t) => {
3444
- vn.init(e, t), $.init(e, t);
3445
- }), Ka = /*@__PURE__*/ E("ZodKSUID", (e, t) => {
3446
- yn.init(e, t), $.init(e, t);
3447
- }), qa = /*@__PURE__*/ E("ZodIPv4", (e, t) => {
3448
- wn.init(e, t), $.init(e, t);
3449
- }), Ja = /*@__PURE__*/ E("ZodIPv6", (e, t) => {
3590
+ }), xo = /*@__PURE__*/ O("ZodURL", (e, t) => {
3591
+ Tn.init(e, t), $.init(e, t);
3592
+ }), So = /*@__PURE__*/ O("ZodEmoji", (e, t) => {
3593
+ En.init(e, t), $.init(e, t);
3594
+ }), Co = /*@__PURE__*/ O("ZodNanoID", (e, t) => {
3450
3595
  Dn.init(e, t), $.init(e, t);
3451
- }), Ya = /*@__PURE__*/ E("ZodCIDRv4", (e, t) => {
3596
+ }), wo = /*@__PURE__*/ O("ZodCUID", (e, t) => {
3452
3597
  On.init(e, t), $.init(e, t);
3453
- }), Xa = /*@__PURE__*/ E("ZodCIDRv6", (e, t) => {
3598
+ }), To = /*@__PURE__*/ O("ZodCUID2", (e, t) => {
3599
+ kn.init(e, t), $.init(e, t);
3600
+ }), Eo = /*@__PURE__*/ O("ZodULID", (e, t) => {
3454
3601
  An.init(e, t), $.init(e, t);
3455
- }), Za = /*@__PURE__*/ E("ZodBase64", (e, t) => {
3602
+ }), Do = /*@__PURE__*/ O("ZodXID", (e, t) => {
3603
+ jn.init(e, t), $.init(e, t);
3604
+ }), Oo = /*@__PURE__*/ O("ZodKSUID", (e, t) => {
3456
3605
  Mn.init(e, t), $.init(e, t);
3457
- }), Qa = /*@__PURE__*/ E("ZodBase64URL", (e, t) => {
3458
- Pn.init(e, t), $.init(e, t);
3459
- }), $a = /*@__PURE__*/ E("ZodE164", (e, t) => {
3460
- Fn.init(e, t), $.init(e, t);
3461
- }), eo = /*@__PURE__*/ E("ZodJWT", (e, t) => {
3606
+ }), ko = /*@__PURE__*/ O("ZodIPv4", (e, t) => {
3462
3607
  Ln.init(e, t), $.init(e, t);
3463
- }), to = /*@__PURE__*/ E("ZodNumber", (e, t) => {
3464
- Rn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ji(e, t, n, r);
3465
- let n = e._zod.bag;
3466
- e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3608
+ }), Ao = /*@__PURE__*/ O("ZodIPv6", (e, t) => {
3609
+ Bn.init(e, t), $.init(e, t);
3610
+ }), jo = /*@__PURE__*/ O("ZodCIDRv4", (e, t) => {
3611
+ Vn.init(e, t), $.init(e, t);
3612
+ }), Mo = /*@__PURE__*/ O("ZodCIDRv6", (e, t) => {
3613
+ Un.init(e, t), $.init(e, t);
3614
+ }), No = /*@__PURE__*/ O("ZodBase64", (e, t) => {
3615
+ Kn.init(e, t), $.init(e, t);
3616
+ }), Po = /*@__PURE__*/ O("ZodBase64URL", (e, t) => {
3617
+ Yn.init(e, t), $.init(e, t);
3618
+ }), Fo = /*@__PURE__*/ O("ZodE164", (e, t) => {
3619
+ Xn.init(e, t), $.init(e, t);
3620
+ }), Io = /*@__PURE__*/ O("ZodJWT", (e, t) => {
3621
+ Qn.init(e, t), $.init(e, t);
3622
+ }), Lo = /*@__PURE__*/ O("ZodNumber", (e, t) => {
3623
+ $n.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oa(e, t, n, r), e.isFinite = !0;
3624
+ }, /*@__PURE__*/ Oe({
3625
+ minValue: (e) => {
3626
+ let { minimum: t, exclusiveMinimum: n } = Y(e);
3627
+ return Math.max(t ?? -Infinity, n ?? -Infinity);
3628
+ },
3629
+ maxValue: (e) => {
3630
+ let { maximum: t, exclusiveMaximum: n } = Y(e);
3631
+ return Math.min(t ?? Infinity, n ?? Infinity);
3632
+ },
3633
+ isInt: (e) => {
3634
+ let { isInt: t, multipleOf: n } = Y(e);
3635
+ return !!t || !!n?.some(Number.isSafeInteger);
3636
+ },
3637
+ format: (e) => Y(e).format ?? null
3467
3638
  }, {
3468
3639
  gt(e, t) {
3469
- return this.check(/* @__PURE__ */ hi(e, t));
3640
+ return this.check(/* @__PURE__ */ Ii(e, t));
3470
3641
  },
3471
3642
  gte(e, t) {
3472
- return this.check(/* @__PURE__ */ gi(e, t));
3643
+ return this.check(/* @__PURE__ */ Li(e, t));
3473
3644
  },
3474
3645
  min(e, t) {
3475
- return this.check(/* @__PURE__ */ gi(e, t));
3646
+ return this.check(/* @__PURE__ */ Li(e, t));
3476
3647
  },
3477
3648
  lt(e, t) {
3478
- return this.check(/* @__PURE__ */ pi(e, t));
3649
+ return this.check(/* @__PURE__ */ Pi(e, t));
3479
3650
  },
3480
3651
  lte(e, t) {
3481
- return this.check(/* @__PURE__ */ mi(e, t));
3652
+ return this.check(/* @__PURE__ */ Fi(e, t));
3482
3653
  },
3483
3654
  max(e, t) {
3484
- return this.check(/* @__PURE__ */ mi(e, t));
3655
+ return this.check(/* @__PURE__ */ Fi(e, t));
3485
3656
  },
3486
3657
  int(e) {
3487
- return this.check(io(e));
3658
+ return this.check(Bo(e));
3488
3659
  },
3489
3660
  safe(e) {
3490
- return this.check(io(e));
3661
+ return this.check(Bo(e));
3491
3662
  },
3492
3663
  positive(e) {
3493
- return this.check(/* @__PURE__ */ hi(0, e));
3664
+ return this.check(/* @__PURE__ */ Ii(0, e));
3494
3665
  },
3495
3666
  nonnegative(e) {
3496
- return this.check(/* @__PURE__ */ gi(0, e));
3667
+ return this.check(/* @__PURE__ */ Li(0, e));
3497
3668
  },
3498
3669
  negative(e) {
3499
- return this.check(/* @__PURE__ */ pi(0, e));
3670
+ return this.check(/* @__PURE__ */ Pi(0, e));
3500
3671
  },
3501
3672
  nonpositive(e) {
3502
- return this.check(/* @__PURE__ */ mi(0, e));
3673
+ return this.check(/* @__PURE__ */ Fi(0, e));
3503
3674
  },
3504
3675
  multipleOf(e, t) {
3505
- return this.check(/* @__PURE__ */ _i(e, t));
3676
+ return this.check(/* @__PURE__ */ Ri(e, t));
3506
3677
  },
3507
3678
  step(e, t) {
3508
- return this.check(/* @__PURE__ */ _i(e, t));
3679
+ return this.check(/* @__PURE__ */ Ri(e, t));
3509
3680
  },
3510
3681
  finite() {
3511
3682
  return this;
3512
3683
  }
3513
- });
3514
- function no(e) {
3515
- return /* @__PURE__ */ ci(to, e);
3684
+ }));
3685
+ function Ro(e) {
3686
+ return /* @__PURE__ */ ki(Lo, e);
3516
3687
  }
3517
- var ro = /*@__PURE__*/ E("ZodNumberFormat", (e, t) => {
3518
- zn.init(e, t), to.init(e, t);
3688
+ var zo = /*@__PURE__*/ O("ZodNumberFormat", (e, t) => {
3689
+ er.init(e, t), Lo.init(e, t);
3519
3690
  });
3520
- function io(e) {
3521
- return /* @__PURE__ */ li(ro, e);
3691
+ function Bo(e) {
3692
+ return /* @__PURE__ */ Ai(zo, e);
3522
3693
  }
3523
- var ao = /*@__PURE__*/ E("ZodNull", (e, t) => {
3524
- Bn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yi(e, t, n, r);
3694
+ var Vo = /*@__PURE__*/ O("ZodNull", (e, t) => {
3695
+ tr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
3525
3696
  });
3526
- function oo(e) {
3527
- return /* @__PURE__ */ ui(ao, e);
3697
+ function Ho(e) {
3698
+ return /* @__PURE__ */ ji(Vo, e);
3528
3699
  }
3529
- var so = /*@__PURE__*/ E("ZodUnknown", (e, t) => {
3530
- Vn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3700
+ var Uo = /*@__PURE__*/ O("ZodUnknown", (e, t) => {
3701
+ nr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3531
3702
  });
3532
- function co() {
3533
- return /* @__PURE__ */ di(so);
3703
+ function Wo() {
3704
+ return /* @__PURE__ */ Mi(Uo);
3534
3705
  }
3535
- var lo = /*@__PURE__*/ E("ZodNever", (e, t) => {
3536
- Hn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xi(e, t, n, r);
3706
+ var Go = /*@__PURE__*/ O("ZodNever", (e, t) => {
3707
+ rr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r);
3537
3708
  });
3538
- function uo(e) {
3539
- return /* @__PURE__ */ fi(lo, e);
3709
+ function Ko(e) {
3710
+ return /* @__PURE__ */ Ni(Go, e);
3540
3711
  }
3541
- var fo = /*@__PURE__*/ E("ZodArray", (e, t) => {
3542
- ka(), Wn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ea(e, t, n, r), e.element = t.element;
3712
+ var qo = /*@__PURE__*/ O("ZodArray", (e, t) => {
3713
+ lo(), ar.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r), e.element = t.element;
3543
3714
  }, {
3544
3715
  min(e, t) {
3545
- return this.check(/* @__PURE__ */ H(e, t));
3716
+ return this.check(/* @__PURE__ */ Bi(e, t));
3546
3717
  },
3547
3718
  nonempty(e) {
3548
- return this.check(/* @__PURE__ */ H(1, e));
3719
+ return this.check(/* @__PURE__ */ Bi(1, e));
3549
3720
  },
3550
3721
  max(e, t) {
3551
- return this.check(/* @__PURE__ */ vi(e, t));
3722
+ return this.check(/* @__PURE__ */ zi(e, t));
3552
3723
  },
3553
3724
  length(e, t) {
3554
- return this.check(/* @__PURE__ */ yi(e, t));
3725
+ return this.check(/* @__PURE__ */ Vi(e, t));
3555
3726
  },
3556
3727
  unwrap() {
3557
3728
  return this.element;
3558
3729
  }
3559
3730
  });
3560
- function po(e, t) {
3561
- return /* @__PURE__ */ ji(fo, e, t);
3731
+ function Jo(e, t) {
3732
+ return /* @__PURE__ */ $i(qo, e, t);
3562
3733
  }
3563
- var mo = /*@__PURE__*/ E("ZodObject", (e, t) => {
3564
- ka(), Xn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => na(e, t, n, r), Te(e, "shape", (e) => e._zod.def.shape, !1);
3734
+ var Yo = /*@__PURE__*/ O("ZodObject", (e, t) => {
3735
+ lo(), ur.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r), Ne(e, "shape", (e) => e._zod.def.shape, !1);
3565
3736
  }, {
3566
3737
  keyof() {
3567
- return xo(Object.keys(this._zod.def.shape));
3738
+ return ns(Object.keys(this._zod.def.shape));
3568
3739
  },
3569
3740
  catchall(e) {
3570
- return this.clone({
3571
- ...this._zod.def,
3572
- catchall: e
3573
- });
3741
+ return this.clone(h(this._zod.def, { catchall: e }));
3574
3742
  },
3575
3743
  passthrough() {
3576
- return this.clone({
3577
- ...this._zod.def,
3578
- catchall: co()
3579
- });
3744
+ return this.clone(h(this._zod.def, { catchall: Wo() }));
3580
3745
  },
3581
3746
  loose() {
3582
- return this.clone({
3583
- ...this._zod.def,
3584
- catchall: co()
3585
- });
3747
+ return this.clone(h(this._zod.def, { catchall: Wo() }));
3586
3748
  },
3587
3749
  strict() {
3588
- return this.clone({
3589
- ...this._zod.def,
3590
- catchall: uo()
3591
- });
3750
+ return this.clone(h(this._zod.def, { catchall: Ko() }));
3592
3751
  },
3593
3752
  strip() {
3594
- return this.clone({
3595
- ...this._zod.def,
3596
- catchall: void 0
3597
- });
3753
+ return this.clone(h(this._zod.def, { catchall: void 0 }));
3598
3754
  },
3599
3755
  extend(e) {
3600
- return se(this, e);
3756
+ return pe(this, e);
3601
3757
  },
3602
3758
  safeExtend(e) {
3603
- return ce(this, e);
3759
+ return he(this, e);
3604
3760
  },
3605
3761
  merge(e) {
3606
- return le(this, e);
3762
+ return ge(this, e);
3607
3763
  },
3608
3764
  pick(e) {
3609
- return ae(this, e);
3765
+ return ue(this, e);
3610
3766
  },
3611
3767
  omit(e) {
3612
- return oe(this, e);
3768
+ return fe(this, e);
3613
3769
  },
3614
3770
  partial(...e) {
3615
- return ue(wo, this, e[0]);
3771
+ return _e(as, this, e[0]);
3616
3772
  },
3617
3773
  exactPartial(...e) {
3618
- return ue(Eo, this, e[0], "exactPartial");
3774
+ return _e(ss, this, e[0], "exactPartial");
3619
3775
  },
3620
3776
  required(...e) {
3621
- return de(Po, this, e[0]);
3777
+ return ve(hs, this, e[0]);
3622
3778
  }
3623
3779
  });
3624
- function ho(e, t) {
3625
- return new mo({
3780
+ function Xo(e, t) {
3781
+ return new Yo({
3626
3782
  type: "object",
3627
3783
  shape: e ?? {},
3628
- ...v(t)
3784
+ ...b(t)
3629
3785
  });
3630
3786
  }
3631
- var go = /*@__PURE__*/ E("ZodUnion", (e, t) => {
3632
- Qn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ra(e, t, n, r), e.options = t.options;
3787
+ var Zo = /*@__PURE__*/ O("ZodUnion", (e, t) => {
3788
+ fr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r), e.options = t.options;
3633
3789
  });
3634
- function _o(e, t) {
3635
- return new go({
3790
+ function Qo(e, t) {
3791
+ return new Zo({
3636
3792
  type: "union",
3637
3793
  options: e,
3638
- ...v(t)
3794
+ ...b(t)
3639
3795
  });
3640
3796
  }
3641
- var vo = /*@__PURE__*/ E("ZodIntersection", (e, t) => {
3642
- $n.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ia(e, t, n, r);
3797
+ var $o = /*@__PURE__*/ O("ZodIntersection", (e, t) => {
3798
+ pr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r);
3643
3799
  });
3644
- function yo(e, t) {
3645
- return new vo({
3800
+ function es(e, t) {
3801
+ return new $o({
3646
3802
  type: "intersection",
3647
3803
  left: e,
3648
3804
  right: t
3649
3805
  });
3650
3806
  }
3651
- var bo = /*@__PURE__*/ E("ZodEnum", (e, t) => {
3652
- nr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zi(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3807
+ var ts = /*@__PURE__*/ O("ZodEnum", (e, t) => {
3808
+ gr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r), e.enum = t.entries, e.options = [...e._zod.values];
3653
3809
  let n = new Set(Object.keys(t.entries));
3654
3810
  e.extract = (e, r) => {
3655
3811
  let i = {};
3656
3812
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3657
3813
  else throw Error(`Key ${r} not found in enum`);
3658
- return new bo({
3814
+ return new ts({
3659
3815
  ...t,
3660
3816
  checks: [],
3661
- ...v(r),
3817
+ ...b(r),
3662
3818
  entries: i
3663
3819
  });
3664
3820
  }, e.exclude = (e, r) => {
3665
3821
  let i = { ...t.entries };
3666
3822
  for (let t of e) if (n.has(t)) delete i[t];
3667
3823
  else throw Error(`Key ${t} not found in enum`);
3668
- return new bo({
3824
+ return new ts({
3669
3825
  ...t,
3670
3826
  checks: [],
3671
- ...v(r),
3827
+ ...b(r),
3672
3828
  entries: i
3673
3829
  });
3674
3830
  };
3675
3831
  });
3676
- function xo(e, t) {
3677
- return new bo({
3832
+ function ns(e, t) {
3833
+ return new ts({
3678
3834
  type: "enum",
3679
3835
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3680
- ...v(t)
3836
+ ...b(t)
3681
3837
  });
3682
3838
  }
3683
- var So = /*@__PURE__*/ E("ZodTransform", (e, t) => {
3684
- ka(), rr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => $i(e, t, n, r), e._zod.parse = (n, r) => {
3685
- if (r.direction === "backward") throw new Me(e.constructor.name);
3839
+ var rs = /*@__PURE__*/ O("ZodTransform", (e, t) => {
3840
+ lo(), _r.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e._zod.parse = (n, r) => {
3841
+ if (r.direction === "backward") throw new Be(e.constructor.name);
3686
3842
  n.addIssue = (r) => {
3687
- if (typeof r == "string") n.issues.push(S(r, n.value, t));
3843
+ if (typeof r == "string") n.issues.push(w(r, n.value, t));
3688
3844
  else {
3689
3845
  let t = r;
3690
- t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(S(t));
3846
+ t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(w(t));
3691
3847
  }
3692
3848
  };
3693
3849
  let i = t.transform(n.value, n);
3694
3850
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
3695
3851
  };
3696
3852
  });
3697
- function Co(e) {
3698
- return new So({
3853
+ function is(e) {
3854
+ return new rs({
3699
3855
  type: "transform",
3700
3856
  transform: e
3701
3857
  });
3702
3858
  }
3703
- var wo = /*@__PURE__*/ E("ZodOptional", (e, t) => {
3704
- ar.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ma(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3859
+ var as = /*@__PURE__*/ O("ZodOptional", (e, t) => {
3860
+ yr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3705
3861
  });
3706
- function To(e) {
3707
- return new wo({
3862
+ function os(e) {
3863
+ return new as({
3708
3864
  type: "optional",
3709
3865
  innerType: e
3710
3866
  });
3711
3867
  }
3712
- var Eo = /*@__PURE__*/ E("ZodExactOptional", (e, t) => {
3713
- or.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ma(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3868
+ var ss = /*@__PURE__*/ O("ZodExactOptional", (e, t) => {
3869
+ br.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3714
3870
  });
3715
- function Do(e) {
3716
- return new Eo({
3871
+ function cs(e) {
3872
+ return new ss({
3717
3873
  type: "optional",
3718
3874
  innerType: e
3719
3875
  });
3720
3876
  }
3721
- var Oo = /*@__PURE__*/ E("ZodNullable", (e, t) => {
3722
- sr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => aa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3877
+ var ls = /*@__PURE__*/ O("ZodNullable", (e, t) => {
3878
+ xr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3723
3879
  });
3724
- function ko(e) {
3725
- return new Oo({
3880
+ function us(e) {
3881
+ return new ls({
3726
3882
  type: "nullable",
3727
3883
  innerType: e
3728
3884
  });
3729
3885
  }
3730
- var Ao = /*@__PURE__*/ E("ZodDefault", (e, t) => {
3731
- cr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => la(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3886
+ var ds = /*@__PURE__*/ O("ZodDefault", (e, t) => {
3887
+ Sr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3732
3888
  });
3733
- function jo(e, t) {
3734
- return new Ao({
3889
+ function fs(e, t) {
3890
+ return new ds({
3735
3891
  type: "default",
3736
3892
  innerType: e,
3737
3893
  get defaultValue() {
3738
- return typeof t == "function" ? t() : ee(t);
3894
+ return typeof t == "function" ? t() : ie(t);
3739
3895
  }
3740
3896
  });
3741
3897
  }
3742
- var Mo = /*@__PURE__*/ E("ZodPrefault", (e, t) => {
3743
- ur.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ua(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3898
+ var ps = /*@__PURE__*/ O("ZodPrefault", (e, t) => {
3899
+ wr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3744
3900
  });
3745
- function No(e, t) {
3746
- return new Mo({
3901
+ function ms(e, t) {
3902
+ return new ps({
3747
3903
  type: "prefault",
3748
3904
  innerType: e,
3749
3905
  get defaultValue() {
3750
- return typeof t == "function" ? t() : ee(t);
3906
+ return typeof t == "function" ? t() : ie(t);
3751
3907
  }
3752
3908
  });
3753
3909
  }
3754
- var Po = /*@__PURE__*/ E("ZodNonOptional", (e, t) => {
3755
- dr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => oa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3910
+ var hs = /*@__PURE__*/ O("ZodNonOptional", (e, t) => {
3911
+ Tr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3756
3912
  });
3757
- function Fo(e, t) {
3758
- return new Po({
3913
+ function gs(e, t) {
3914
+ return new hs({
3759
3915
  type: "nonoptional",
3760
3916
  innerType: e,
3761
- ...v(t)
3917
+ ...b(t)
3762
3918
  });
3763
3919
  }
3764
- var Io = /*@__PURE__*/ E("ZodCatch", (e, t) => {
3765
- mr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => da(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3920
+ var _s = /*@__PURE__*/ O("ZodCatch", (e, t) => {
3921
+ Or.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3766
3922
  });
3767
- function Lo(e, t) {
3768
- return new Io({
3923
+ function vs(e, t) {
3924
+ return new _s({
3769
3925
  type: "catch",
3770
3926
  innerType: e,
3771
- catchValue: typeof t == "function" ? t : De(t)
3927
+ catchValue: typeof t == "function" ? t : Fe(t)
3772
3928
  });
3773
3929
  }
3774
- var Ro = /*@__PURE__*/ E("ZodPipe", (e, t) => {
3775
- hr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => fa(e, t, n, r), e.in = t.in, e.out = t.out;
3930
+ var ys = /*@__PURE__*/ O("ZodPipe", (e, t) => {
3931
+ kr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.in = t.in, e.out = t.out;
3776
3932
  });
3777
- function zo(e, t) {
3778
- return new Ro({
3933
+ function bs(e, t) {
3934
+ return new ys({
3779
3935
  type: "pipe",
3780
3936
  in: e,
3781
3937
  out: t
3782
3938
  });
3783
3939
  }
3784
- var Bo = /*@__PURE__*/ E("ZodReadonly", (e, t) => {
3785
- gr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => pa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3940
+ var xs = /*@__PURE__*/ O("ZodReadonly", (e, t) => {
3941
+ jr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3786
3942
  });
3787
- function Vo(e) {
3788
- return new Bo({
3943
+ function Ss(e) {
3944
+ return new xs({
3789
3945
  type: "readonly",
3790
3946
  innerType: e
3791
3947
  });
3792
3948
  }
3793
- var Ho = /*@__PURE__*/ E("ZodCustom", (e, t) => {
3794
- vr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qi(e, t, n, r);
3949
+ var Cs = /*@__PURE__*/ O("ZodCustom", (e, t) => {
3950
+ Nr.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r);
3795
3951
  });
3796
- function Uo(e, t = {}) {
3797
- return /* @__PURE__ */ Mi(Ho, e, t);
3952
+ function ws(e, t = {}) {
3953
+ return /* @__PURE__ */ ea(Cs, e, t);
3798
3954
  }
3799
- function Wo(e, t) {
3800
- return /* @__PURE__ */ Ni(e, t);
3955
+ function Ts(e, t) {
3956
+ return /* @__PURE__ */ ta(e, t);
3801
3957
  }
3802
3958
  //#endregion
3803
- //#region src/ox/types.ts
3804
- var Go = ho({
3805
- id: Q(),
3806
- displayName: Q(),
3807
- email: Q()
3808
- }), Ko = ho({ data: po(po(_o([
3809
- Q(),
3810
- no(),
3811
- oo()
3812
- ]))) }), qo = ho({ data: ho({ id: Q() }) }), Jo = "1,500,555,556,557", Yo = (t, n) => ({
3813
- async autocompleteContacts({ query: r, signal: i }) {
3814
- let a = n();
3815
- if (!a) return [];
3816
- let { data: o } = await t.get(e(a, "addressbooks"), {
3817
- params: {
3818
- action: "autocomplete",
3819
- query: r,
3820
- columns: Jo,
3821
- email: !0
3822
- },
3823
- signal: i
3824
- }), { data: s } = Ko.parse(o), c = s.map(([e, t, n, r, i]) => ({
3825
- id: String(e ?? ""),
3826
- displayName: String(t ?? ""),
3827
- email: String(n || r || i || "")
3828
- })).filter((e) => !!e.email);
3829
- return po(Go).parse(c);
3830
- },
3831
- async sendMail({ from: r, to: i, subject: a, htmlContent: o, signal: s }) {
3832
- let c = n();
3833
- if (!c) throw Error("Open-Xchange API url is not configured");
3834
- let { data: l } = await t.post(e(c, "mail", "compose"), [], {
3835
- params: { type: "new" },
3836
- signal: s
3837
- }), { data: u } = qo.parse(l), d = [r.name ?? "", r.email], f = new FormData();
3838
- f.append("JSON", JSON.stringify({
3839
- from: d,
3840
- sender: d,
3841
- to: [[i.name ?? "", i.email]],
3842
- subject: a,
3843
- content: o,
3844
- contentType: "text/html"
3845
- })), await t.post(e(c, "mail", "compose", u.id, "send"), f, { signal: s });
3846
- }
3847
- });
3848
- //#endregion
3849
- export { qo as i, Go as n, Ko as r, Yo as t };
3959
+ export { po as a, Xo as i, Jo as n, Qo as o, Ro as r, Ho as t };