@golemui/gui-lit 0.13.2 → 0.14.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.
package/index.js CHANGED
@@ -1,14 +1,13 @@
1
- import { filterTap as Pt, standardValidate as qe, isStandardValidateSuccess as Xe } from "@golemui/core";
1
+ import { filterTap as Pt, standardValidate as Ke, isStandardValidateSuccess as qe } from "@golemui/core";
2
2
  import "@golemui/gui-shared";
3
3
  import "@golemui/lit";
4
4
  import { LitElement as Zt, html as Ct } from "lit";
5
- import { property as He, query as It, customElement as Nt } from "lit/decorators.js";
6
- const Q = {
7
- ACTIONS: "ACTIONS",
5
+ import { property as Xe, query as It, customElement as Nt } from "lit/decorators.js";
6
+ const He = {
8
7
  LAYOUTS: "LAYOUTS",
9
8
  DISPLAYS: "DISPLAYS"
10
9
  };
11
- function Mt(e) {
10
+ function Lt(e) {
12
11
  return function(t, n = () => !0) {
13
12
  return {
14
13
  kind: "leaf",
@@ -18,14 +17,14 @@ function Mt(e) {
18
17
  };
19
18
  };
20
19
  }
21
- const X = /* @__PURE__ */ new Map();
20
+ const q = /* @__PURE__ */ new Map();
22
21
  function Qe(e, t) {
23
- if (X.has(e))
22
+ if (q.has(e))
24
23
  throw new Error(`Item type "${e}" is already registered.`);
25
- X.set(e, t);
24
+ q.set(e, t);
26
25
  }
27
- function Y(e) {
28
- const t = X.get(e);
26
+ function H(e) {
27
+ const t = q.get(e);
29
28
  if (!t)
30
29
  throw new Error(
31
30
  `No handler registered for item type "${e}". Did you forget to import the registration module?`
@@ -33,7 +32,7 @@ function Y(e) {
33
32
  return t;
34
33
  }
35
34
  function et(e) {
36
- return X.has(e);
35
+ return q.has(e);
37
36
  }
38
37
  function y(e) {
39
38
  const t = (a) => {
@@ -71,55 +70,23 @@ function y(e) {
71
70
  ...e.getChildren ? { getChildren: e.getChildren } : {}
72
71
  };
73
72
  Qe(e.itemType, o);
74
- const s = Mt(e.itemType);
73
+ const s = Lt(e.itemType);
75
74
  return { gsl: s, gslByUid: (a, u) => s(u, ((c) => c.uid === a)) };
76
75
  }
77
- function Lt(e) {
76
+ function Mt(e) {
78
77
  return e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()) : "";
79
78
  }
80
- function w(e, t) {
81
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Lt(e.path) };
79
+ function k(e, t) {
80
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Mt(e.path) };
82
81
  }
83
82
  function N(e, t) {
84
83
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
85
84
  }
86
85
  const Dt = (e, t) => ({
87
86
  type: "ITEMS",
88
- itemType: Q.DISPLAYS,
87
+ itemType: He.DISPLAYS,
89
88
  items: [{ render: e }],
90
89
  tags: []
91
- });
92
- class Rt {
93
- /**
94
- * Deep merges two objects, with right taking precedence over left when properties conflict.
95
- * Arrays are replaced, not merged.
96
- * @param left - The base object
97
- * @param right - The object whose properties take precedence
98
- * @returns A new merged object
99
- */
100
- deepMerge(t, n) {
101
- if (n == null)
102
- return t;
103
- if (t == null || typeof t != "object" || typeof n != "object" || Array.isArray(t) || Array.isArray(n))
104
- return n;
105
- const r = { ...t };
106
- for (const o in n)
107
- Object.prototype.hasOwnProperty.call(n, o) && (typeof n[o] == "object" && !Array.isArray(n[o]) && n[o] !== null && typeof t[o] == "object" && !Array.isArray(t[o]) && t[o] !== null ? r[o] = this.deepMerge(t[o], n[o]) : r[o] = n[o]);
108
- return r;
109
- }
110
- }
111
- const Ft = new Rt();
112
- function jt(e, t) {
113
- return {
114
- items: [e],
115
- type: "ITEMS",
116
- itemType: Q.ACTIONS,
117
- tags: t ?? []
118
- };
119
- }
120
- const Wt = (e) => jt({
121
- uid: "#submit",
122
- label: "Submit"
123
90
  }), tt = {
124
91
  INPUTS: /* @__PURE__ */ new Set([
125
92
  "INPUTS",
@@ -145,11 +112,11 @@ const Wt = (e) => jt({
145
112
  DISPLAYS: /* @__PURE__ */ new Set(["DISPLAYS", "ALERTS", "CUSTOM_DISPLAY"]),
146
113
  LAYOUTS: /* @__PURE__ */ new Set(["LAYOUTS", "TABS", "ACCORDION", "CUSTOM_LAYOUT"])
147
114
  };
148
- function xt(e, t) {
115
+ function Rt(e, t) {
149
116
  const n = tt[e];
150
117
  return n ? n.has(t) : e === t;
151
118
  }
152
- class Ut {
119
+ class Ft {
153
120
  resolve(t, n) {
154
121
  const r = [];
155
122
  for (const s of n)
@@ -166,7 +133,7 @@ class Ut {
166
133
  this.collectFromLeaf(o, n, r);
167
134
  }
168
135
  collectFromLeaf(t, n, r) {
169
- xt(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
136
+ Rt(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
170
137
  }
171
138
  rollUpSensibleDefaults(t) {
172
139
  const n = /* @__PURE__ */ new Map(), r = (s, i) => {
@@ -182,12 +149,32 @@ class Ut {
182
149
  }
183
150
  const o = {};
184
151
  for (const [s, i] of n)
185
- et(s) && (o[s] = Y(s).rollUpSensibleDefaults(i));
152
+ et(s) && (o[s] = H(s).rollUpSensibleDefaults(i));
186
153
  return o;
187
154
  }
188
155
  }
189
- const Vt = new Ut();
190
- class Jt {
156
+ const jt = new Ft();
157
+ class Wt {
158
+ /**
159
+ * Deep merges two objects, with right taking precedence over left when properties conflict.
160
+ * Arrays are replaced, not merged.
161
+ * @param left - The base object
162
+ * @param right - The object whose properties take precedence
163
+ * @returns A new merged object
164
+ */
165
+ deepMerge(t, n) {
166
+ if (n == null)
167
+ return t;
168
+ if (t == null || typeof t != "object" || typeof n != "object" || Array.isArray(t) || Array.isArray(n))
169
+ return n;
170
+ const r = { ...t };
171
+ for (const o in n)
172
+ Object.prototype.hasOwnProperty.call(n, o) && (typeof n[o] == "object" && !Array.isArray(n[o]) && n[o] !== null && typeof t[o] == "object" && !Array.isArray(t[o]) && t[o] !== null ? r[o] = this.deepMerge(t[o], n[o]) : r[o] = n[o]);
173
+ return r;
174
+ }
175
+ }
176
+ const xt = new Wt();
177
+ class Ut {
191
178
  constructor(t) {
192
179
  this.objectUtils = t;
193
180
  }
@@ -240,7 +227,7 @@ class Jt {
240
227
  applySensibleDefaults(t, n, r) {
241
228
  if (!et(n)) return t;
242
229
  const o = r.sensibleDefaults[n] ?? {};
243
- return Y(n).applySensibleDefaults(t, o);
230
+ return H(n).applySensibleDefaults(t, o);
244
231
  }
245
232
  // ── Create promoted FunctionWidget ──
246
233
  createPromotedFunction(t, n, r, o, s) {
@@ -268,8 +255,8 @@ class Jt {
268
255
  };
269
256
  }
270
257
  }
271
- const Bt = new Jt(Ft);
272
- class Yt {
258
+ const Vt = new Ut(xt);
259
+ class Jt {
273
260
  mapToWidget(t, n) {
274
261
  if (t.kind === "dynamic") {
275
262
  const r = t.fn;
@@ -281,7 +268,7 @@ class Yt {
281
268
  return this.mapStaticDef(t.def, n);
282
269
  }
283
270
  mapStaticDef(t, n) {
284
- const r = Y(n).mapToWidget(t);
271
+ const r = H(n).mapToWidget(t);
285
272
  return this.applyBaseWidgetFields(r, t);
286
273
  }
287
274
  /**
@@ -292,8 +279,8 @@ class Yt {
292
279
  return n.size != null && (t.size = n.size), n.defaultValue != null && t.kind === "input" && (t.defaultValue = n.defaultValue), n.on != null && (t.on = n.on), n.include != null && (t.include = n.include), n.exclude != null && (t.exclude = n.exclude), t;
293
280
  }
294
281
  }
295
- const Gt = new Yt();
296
- class Kt {
282
+ const Bt = new Jt();
283
+ class Yt {
297
284
  /**
298
285
  * Ensures the output is always a uniform GslSelector[] of aggregated selectors.
299
286
  *
@@ -315,18 +302,17 @@ class Kt {
315
302
  extractFormConfig() {
316
303
  return {
317
304
  suppressAutomaticStack: !1,
318
- suppressAutomaticSubmit: !1,
319
305
  onSubmit: (t) => console.log("Form submitted:", t)
320
306
  };
321
307
  }
322
308
  }
323
- const qt = new Kt(), nt = {
309
+ const Gt = new Yt(), nt = {
324
310
  onLoad: "load",
325
311
  onChange: "change",
326
312
  onFilter: "filter",
327
313
  onBlur: "blur"
328
- }, Xt = Object.keys(nt);
329
- class Ht {
314
+ }, Kt = Object.keys(nt);
315
+ class qt {
330
316
  // ── Action-specific: onClick + submit ─────────────────────────
331
317
  extractOnClickFromMergeResult(t, n, r, o) {
332
318
  if (t.kind === "dynamic") {
@@ -339,22 +325,6 @@ class Ht {
339
325
  const s = t.def;
340
326
  return { kind: "static", def: this.wireOnClick(s, n, r, o) };
341
327
  }
342
- countSubmitButtons(t) {
343
- let n = 0;
344
- for (const r of t) {
345
- if (r.type !== "ITEMS") continue;
346
- const o = Y(r.itemType);
347
- for (const s of r.items) {
348
- const i = o.getChildren?.(s);
349
- if (i && (n += this.countSubmitButtons(i)), r.itemType === Q.ACTIONS) {
350
- if (typeof s == "function") continue;
351
- const a = s;
352
- (a.uid === "#submit" || a.onClick === "submit") && n++;
353
- }
354
- }
355
- }
356
- return n;
357
- }
358
328
  wireOnClick(t, n, r, o) {
359
329
  const s = t.uid === "#submit" || t.onClick === "submit", i = s ? "#submit" : o.next(), a = s ? "submit" : i, u = t.onClick, p = (typeof u == "function" ? u : void 0) ?? (s ? r.onSubmit : void 0);
360
330
  if (p) {
@@ -387,7 +357,7 @@ class Ht {
387
357
  const o = { ...t.on || {} };
388
358
  let s = !1;
389
359
  const i = { ...t };
390
- for (const a of Xt) {
360
+ for (const a of Kt) {
391
361
  const u = t[a];
392
362
  if (u == null) continue;
393
363
  const c = nt[a];
@@ -400,18 +370,18 @@ class Ht {
400
370
  return s && (i.on = o), i;
401
371
  }
402
372
  }
403
- const ee = new Ht(), Qt = {
373
+ const ge = new qt(), Xt = {
404
374
  input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
405
375
  action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
406
376
  layout: /* @__PURE__ */ new Set(["size"]),
407
377
  display: /* @__PURE__ */ new Set([])
408
- }, Oe = {
378
+ }, Ae = {
409
379
  onChange: "change",
410
380
  onLoad: "load",
411
381
  onFilter: "filter",
412
382
  onClick: "click"
413
383
  };
414
- class en {
384
+ class Ht {
415
385
  /**
416
386
  * Extracts `states` from a merge result, combining with state-targeted
417
387
  * GSL leaf selectors from `_gslStates`.
@@ -461,11 +431,11 @@ class en {
461
431
  const { stateOverrides: s } = n;
462
432
  if (Object.keys(s).length === 0)
463
433
  return t;
464
- const i = { ...t }, a = t.kind, u = Qt[a] || /* @__PURE__ */ new Set();
434
+ const i = { ...t }, a = t.kind, u = Xt[a] || /* @__PURE__ */ new Set();
465
435
  t.props && (i.props = { ...t.props }), t.on && (i.on = { ...t.on });
466
436
  for (const [c, p] of Object.entries(s))
467
437
  for (const [d, m] of Object.entries(p))
468
- d === "visible" ? this.applyVisibility(i, c, m) : Oe[d] ? this.applyStateEvent(i, c, d, m, r, o) : u.has(d) ? i[`${d}.${c}`] = m : (i.props || (i.props = {}), i.props[`${d}.${c}`] = m);
438
+ d === "visible" ? this.applyVisibility(i, c, m) : Ae[d] ? this.applyStateEvent(i, c, d, m, r, o) : u.has(d) ? i[`${d}.${c}`] = m : (i.props || (i.props = {}), i.props[`${d}.${c}`] = m);
469
439
  return i;
470
440
  }
471
441
  hasStateData(t) {
@@ -483,24 +453,24 @@ class en {
483
453
  }
484
454
  // ── State-suffixed event helpers ──
485
455
  applyStateEvent(t, n, r, o, s, i) {
486
- const a = Oe[r];
456
+ const a = Ae[r];
487
457
  if (t.on || (t.on = {}), typeof o == "function") {
488
458
  const u = i.next();
489
459
  s.set(u, o), t.on[`${a}.${n}`] = u;
490
460
  } else typeof o == "string" && (t.on[`${a}.${n}`] = o);
491
461
  }
492
462
  }
493
- const tn = new en();
494
- function nn() {
463
+ const Qt = new Ht();
464
+ function en() {
495
465
  let e = 0;
496
466
  return { next: () => `event_${e++}` };
497
467
  }
498
- class rn {
468
+ class tn {
499
469
  constructor(t, n, r, o, s) {
500
470
  this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = s;
501
471
  }
502
472
  walkAndMap(t, n, r) {
503
- const o = /* @__PURE__ */ new Map(), s = nn(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
473
+ const o = /* @__PURE__ */ new Map(), s = en(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
504
474
  return { widgets: this.walkItems(
505
475
  t,
506
476
  n,
@@ -529,23 +499,23 @@ class rn {
529
499
  });
530
500
  }
531
501
  processItem(t, n, r, o, s, i, a, u, c) {
532
- const p = n, d = Y(n), m = d.parseEntry(t), f = this.buildBaseDef(m), C = this.buildDecoratorForMatching(f, p, r), k = this.resolver.resolve(C, o), Te = k.leafSelectors.filter((T) => T.targetState != null), ze = {
533
- leafSelectors: k.leafSelectors.filter((T) => T.targetState == null),
534
- sensibleDefaults: k.sensibleDefaults
502
+ const p = n, d = H(n), m = d.parseEntry(t), f = this.buildBaseDef(m), C = this.buildDecoratorForMatching(f, p, r), S = this.resolver.resolve(C, o), Se = S.leafSelectors.filter((T) => T.targetState != null), Te = {
503
+ leafSelectors: S.leafSelectors.filter((T) => T.targetState == null),
504
+ sensibleDefaults: S.sensibleDefaults
535
505
  };
536
- let M = this.merger.merge(f, p, ze);
537
- d.afterMerge && (M = d.afterMerge(M, {
506
+ let L = this.merger.merge(f, p, Te);
507
+ d.afterMerge && (L = d.afterMerge(L, {
538
508
  eventRegistry: s,
539
509
  formConfig: i,
540
510
  eventIdGenerator: a
541
- })), M = this.eventWiring.wireInputLayoutEvents(
542
- M,
511
+ })), L = this.eventWiring.wireInputLayoutEvents(
512
+ L,
543
513
  s,
544
514
  a
545
515
  );
546
- const { cleanedResult: Ae, stateData: le } = this.stateExpansion.extractFromMergeResult(
547
- M,
548
- Te
516
+ const { cleanedResult: ze, stateData: ue } = this.stateExpansion.extractFromMergeResult(
517
+ L,
518
+ Se
549
519
  );
550
520
  let I;
551
521
  if (d.buildCustomWidget) {
@@ -558,21 +528,21 @@ class rn {
558
528
  u,
559
529
  c
560
530
  );
561
- I = this.buildCustomWidget(d, Ae, T);
531
+ I = this.buildCustomWidget(d, ze, T);
562
532
  } else
563
- I = this.mapper.mapToWidget(Ae, p);
533
+ I = this.mapper.mapToWidget(ze, p);
564
534
  if (typeof I != "function") {
565
535
  const T = I;
566
536
  T.uid || (T.path && !c.has(T.path) ? (T.uid = T.path, c.add(T.path)) : T.uid = `dx_${u.value++}`);
567
537
  }
568
- if (this.stateExpansion.hasStateData(le))
538
+ if (this.stateExpansion.hasStateData(ue))
569
539
  if (typeof I == "function") {
570
540
  const T = I;
571
541
  I = ((Et) => {
572
542
  const $t = T(Et);
573
543
  return this.stateExpansion.applyToWidget(
574
544
  $t,
575
- le,
545
+ ue,
576
546
  s,
577
547
  a
578
548
  );
@@ -580,7 +550,7 @@ class rn {
580
550
  } else
581
551
  I = this.stateExpansion.applyToWidget(
582
552
  I,
583
- le,
553
+ ue,
584
554
  s,
585
555
  a
586
556
  );
@@ -638,29 +608,29 @@ function v(e) {
638
608
  onFilter: m,
639
609
  on: f,
640
610
  states: C,
641
- include: k,
642
- exclude: Te,
643
- validator: ze,
644
- ...M
611
+ include: S,
612
+ exclude: Se,
613
+ validator: Te,
614
+ ...L
645
615
  } = e;
646
- return M;
616
+ return L;
647
617
  }
648
618
  function O(e, t) {
649
619
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
650
620
  }
651
- function on(e) {
621
+ function nn(e) {
652
622
  switch (e.type) {
653
623
  case "text":
654
- return an(e);
624
+ return on(e);
655
625
  case "number":
656
- return un(e);
657
- case "boolean":
658
626
  return sn(e);
627
+ case "boolean":
628
+ return rn(e);
659
629
  default:
660
630
  throw new Error(`Unsupported field type "${e.type}"`);
661
631
  }
662
632
  }
663
- function sn(e) {
633
+ function rn(e) {
664
634
  const t = v(e);
665
635
  return {
666
636
  uid: e.uid ?? "",
@@ -674,7 +644,7 @@ function sn(e) {
674
644
  props: t
675
645
  };
676
646
  }
677
- function an(e) {
647
+ function on(e) {
678
648
  const t = v(e);
679
649
  return {
680
650
  uid: e.uid ?? "",
@@ -691,7 +661,7 @@ function an(e) {
691
661
  validator: O(e.validator, "string")
692
662
  };
693
663
  }
694
- function un(e) {
664
+ function sn(e) {
695
665
  const t = v(e);
696
666
  return {
697
667
  uid: e.uid ?? "",
@@ -718,13 +688,13 @@ y({
718
688
  },
719
689
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
720
690
  apply: (e, t) => {
721
- let n = w(e, t);
691
+ let n = k(e, t);
722
692
  return n = N(n, t), n;
723
693
  }
724
694
  },
725
- mapToWidget: on
695
+ mapToWidget: nn
726
696
  });
727
- function cn(e) {
697
+ function an(e) {
728
698
  const {
729
699
  uid: t,
730
700
  label: n,
@@ -753,15 +723,15 @@ function cn(e) {
753
723
  y({
754
724
  itemType: "ACTIONS",
755
725
  entryShape: "bare",
756
- mapToWidget: cn,
757
- afterMerge: (e, t) => ee.extractOnClickFromMergeResult(
726
+ mapToWidget: an,
727
+ afterMerge: (e, t) => ge.extractOnClickFromMergeResult(
758
728
  e,
759
729
  t.eventRegistry,
760
730
  t.formConfig,
761
731
  t.eventIdGenerator
762
732
  )
763
733
  });
764
- function ln(e) {
734
+ function un(e) {
765
735
  const {
766
736
  uid: t,
767
737
  widgetName: n,
@@ -783,7 +753,7 @@ function ln(e) {
783
753
  children: []
784
754
  };
785
755
  }
786
- function pn(e, t) {
756
+ function cn(e, t) {
787
757
  const n = t.walkChildren(t.children ?? []);
788
758
  if (e.kind === "static")
789
759
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
@@ -793,17 +763,17 @@ function pn(e, t) {
793
763
  return { ...t.mapStaticDef(s, "LAYOUTS"), children: n };
794
764
  });
795
765
  }
796
- function dn(e) {
766
+ function ln(e) {
797
767
  return e.children;
798
768
  }
799
769
  y({
800
770
  itemType: "LAYOUTS",
801
771
  entryShape: "compound",
802
- mapToWidget: ln,
803
- buildCustomWidget: pn,
804
- getChildren: dn
772
+ mapToWidget: un,
773
+ buildCustomWidget: cn,
774
+ getChildren: ln
805
775
  });
806
- function mn(e) {
776
+ function pn(e) {
807
777
  return {
808
778
  uid: "",
809
779
  kind: "display",
@@ -811,7 +781,7 @@ function mn(e) {
811
781
  props: { render: e.render }
812
782
  };
813
783
  }
814
- function fn(e, t) {
784
+ function dn(e, t) {
815
785
  if (e.kind === "static") {
816
786
  const r = e.def;
817
787
  return ((o) => ({
@@ -839,8 +809,8 @@ function fn(e, t) {
839
809
  y({
840
810
  itemType: "DISPLAYS",
841
811
  entryShape: "bare",
842
- mapToWidget: mn,
843
- buildCustomWidget: fn
812
+ mapToWidget: pn,
813
+ buildCustomWidget: dn
844
814
  });
845
815
  y({
846
816
  itemType: "CALENDAR",
@@ -848,7 +818,7 @@ y({
848
818
  sensibleDefaults: {
849
819
  base: { suppressAutomaticLabels: !1 },
850
820
  fields: ["suppressAutomaticLabels"],
851
- apply: (e, t) => w(e, t)
821
+ apply: (e, t) => k(e, t)
852
822
  },
853
823
  mapToWidget: (e) => ({
854
824
  uid: e.uid ?? "",
@@ -868,7 +838,7 @@ y({
868
838
  sensibleDefaults: {
869
839
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
870
840
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
871
- apply: (e, t) => N(w(e, t), t)
841
+ apply: (e, t) => N(k(e, t), t)
872
842
  },
873
843
  mapToWidget: (e) => ({
874
844
  uid: e.uid ?? "",
@@ -888,7 +858,7 @@ y({
888
858
  sensibleDefaults: {
889
859
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
890
860
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
891
- apply: (e, t) => N(w(e, t), t)
861
+ apply: (e, t) => N(k(e, t), t)
892
862
  },
893
863
  mapToWidget: (e) => ({
894
864
  uid: e.uid ?? "",
@@ -908,7 +878,7 @@ y({
908
878
  sensibleDefaults: {
909
879
  base: { suppressAutomaticLabels: !1 },
910
880
  fields: ["suppressAutomaticLabels"],
911
- apply: (e, t) => w(e, t)
881
+ apply: (e, t) => k(e, t)
912
882
  },
913
883
  mapToWidget: (e) => ({
914
884
  uid: e.uid ?? "",
@@ -928,7 +898,7 @@ y({
928
898
  sensibleDefaults: {
929
899
  base: { suppressAutomaticLabels: !1 },
930
900
  fields: ["suppressAutomaticLabels"],
931
- apply: (e, t) => w(e, t)
901
+ apply: (e, t) => k(e, t)
932
902
  },
933
903
  mapToWidget: (e) => ({
934
904
  uid: e.uid ?? "",
@@ -948,7 +918,7 @@ y({
948
918
  sensibleDefaults: {
949
919
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
950
920
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
951
- apply: (e, t) => N(w(e, t), t)
921
+ apply: (e, t) => N(k(e, t), t)
952
922
  },
953
923
  mapToWidget: (e) => ({
954
924
  uid: e.uid ?? "",
@@ -968,7 +938,7 @@ y({
968
938
  sensibleDefaults: {
969
939
  base: { suppressAutomaticLabels: !1 },
970
940
  fields: ["suppressAutomaticLabels"],
971
- apply: (e, t) => w(e, t)
941
+ apply: (e, t) => k(e, t)
972
942
  },
973
943
  mapToWidget: (e) => ({
974
944
  uid: e.uid ?? "",
@@ -988,7 +958,7 @@ y({
988
958
  sensibleDefaults: {
989
959
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
990
960
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
991
- apply: (e, t) => N(w(e, t), t)
961
+ apply: (e, t) => N(k(e, t), t)
992
962
  },
993
963
  mapToWidget: (e) => ({
994
964
  uid: e.uid ?? "",
@@ -1008,7 +978,7 @@ y({
1008
978
  sensibleDefaults: {
1009
979
  base: { suppressAutomaticLabels: !1 },
1010
980
  fields: ["suppressAutomaticLabels"],
1011
- apply: (e, t) => w(e, t)
981
+ apply: (e, t) => k(e, t)
1012
982
  },
1013
983
  mapToWidget: (e) => ({
1014
984
  uid: e.uid ?? "",
@@ -1022,7 +992,7 @@ y({
1022
992
  props: v(e)
1023
993
  })
1024
994
  });
1025
- function hn(e) {
995
+ function mn(e) {
1026
996
  return {
1027
997
  uid: e.uid ?? "",
1028
998
  kind: "layout",
@@ -1035,7 +1005,7 @@ function hn(e) {
1035
1005
  children: []
1036
1006
  };
1037
1007
  }
1038
- function gn(e, t) {
1008
+ function fn(e, t) {
1039
1009
  const n = t.walkChildren(t.children ?? []);
1040
1010
  if (e.kind === "static")
1041
1011
  return { ...t.mapStaticDef(e.def, "TABS"), children: n };
@@ -1045,15 +1015,15 @@ function gn(e, t) {
1045
1015
  return { ...t.mapStaticDef(s, "TABS"), children: n };
1046
1016
  });
1047
1017
  }
1048
- function yn(e) {
1018
+ function hn(e) {
1049
1019
  return e.children;
1050
1020
  }
1051
1021
  y({
1052
1022
  itemType: "TABS",
1053
1023
  entryShape: "compound",
1054
- mapToWidget: hn,
1055
- buildCustomWidget: gn,
1056
- getChildren: yn
1024
+ mapToWidget: mn,
1025
+ buildCustomWidget: fn,
1026
+ getChildren: hn
1057
1027
  });
1058
1028
  y({
1059
1029
  itemType: "LIST",
@@ -1061,7 +1031,7 @@ y({
1061
1031
  sensibleDefaults: {
1062
1032
  base: { suppressAutomaticLabels: !1 },
1063
1033
  fields: ["suppressAutomaticLabels"],
1064
- apply: (e, t) => w(e, t)
1034
+ apply: (e, t) => k(e, t)
1065
1035
  },
1066
1036
  mapToWidget: (e) => ({
1067
1037
  uid: e.uid ?? "",
@@ -1097,7 +1067,7 @@ y({
1097
1067
  suppressAutomaticPlaceholders: !1
1098
1068
  },
1099
1069
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1100
- apply: (e, t) => N(w(e, t), t)
1070
+ apply: (e, t) => N(k(e, t), t)
1101
1071
  },
1102
1072
  mapToWidget: (e) => ({
1103
1073
  uid: e.uid ?? "",
@@ -1120,7 +1090,7 @@ y({
1120
1090
  suppressAutomaticPlaceholders: !1
1121
1091
  },
1122
1092
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1123
- apply: (e, t) => N(w(e, t), t)
1093
+ apply: (e, t) => N(k(e, t), t)
1124
1094
  },
1125
1095
  mapToWidget: (e) => ({
1126
1096
  uid: e.uid ?? "",
@@ -1134,7 +1104,7 @@ y({
1134
1104
  props: v(e)
1135
1105
  })
1136
1106
  });
1137
- function bn(e) {
1107
+ function gn(e) {
1138
1108
  return {
1139
1109
  uid: e.uid ?? "",
1140
1110
  kind: "layout",
@@ -1148,7 +1118,7 @@ function bn(e) {
1148
1118
  children: []
1149
1119
  };
1150
1120
  }
1151
- function _n(e, t) {
1121
+ function yn(e, t) {
1152
1122
  const n = t.walkChildren(t.children ?? []);
1153
1123
  if (e.kind === "static")
1154
1124
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
@@ -1158,21 +1128,21 @@ function _n(e, t) {
1158
1128
  return { ...t.mapStaticDef(s, "ACCORDION"), children: n };
1159
1129
  });
1160
1130
  }
1161
- function vn(e) {
1131
+ function bn(e) {
1162
1132
  return e.children;
1163
1133
  }
1164
1134
  y({
1165
1135
  itemType: "ACCORDION",
1166
1136
  entryShape: "compound",
1167
- mapToWidget: bn,
1168
- buildCustomWidget: _n,
1169
- getChildren: vn
1137
+ mapToWidget: gn,
1138
+ buildCustomWidget: yn,
1139
+ getChildren: bn
1170
1140
  });
1171
- function Sn(e) {
1141
+ function _n(e) {
1172
1142
  const t = {};
1173
1143
  return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
1174
1144
  }
1175
- function wn(e) {
1145
+ function vn(e) {
1176
1146
  return {
1177
1147
  uid: e.uid ?? "",
1178
1148
  kind: "input",
@@ -1183,23 +1153,23 @@ function wn(e) {
1183
1153
  ...e.readonly != null ? { readonly: e.readonly } : {},
1184
1154
  ...e.validator != null ? { validator: O(e.validator, "array") } : {},
1185
1155
  props: {
1186
- ...Sn(e),
1156
+ ..._n(e),
1187
1157
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
1188
1158
  }
1189
1159
  };
1190
1160
  }
1191
- function de(e, t) {
1161
+ function le(e, t) {
1192
1162
  for (const n of e) {
1193
1163
  if (typeof n == "function") continue;
1194
1164
  const r = n;
1195
- typeof r.path == "string" && r.path && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && de(r.children, t);
1165
+ typeof r.path == "string" && r.path && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && le(r.children, t);
1196
1166
  const o = r.props;
1197
- o?.template?.children && Array.isArray(o.template.children) && de(o.template.children, t);
1167
+ o?.template?.children && Array.isArray(o.template.children) && le(o.template.children, t);
1198
1168
  }
1199
1169
  }
1200
- function kn(e, t) {
1170
+ function wn(e, t) {
1201
1171
  const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
1202
- r && de(n, r + ".items.");
1172
+ r && le(n, r + ".items.");
1203
1173
  const o = {
1204
1174
  kind: "layout",
1205
1175
  type: "flex",
@@ -1223,32 +1193,32 @@ function kn(e, t) {
1223
1193
  };
1224
1194
  });
1225
1195
  }
1226
- function Tn(e) {
1196
+ function kn(e) {
1227
1197
  return {
1228
1198
  baseDef: e.def,
1229
1199
  path: e.key,
1230
1200
  children: e.children
1231
1201
  };
1232
1202
  }
1233
- function zn(e) {
1203
+ function Sn(e) {
1234
1204
  return e.children;
1235
1205
  }
1236
- const An = {
1237
- parseEntry: Tn,
1206
+ const Tn = {
1207
+ parseEntry: kn,
1238
1208
  rollUpSensibleDefaults: () => ({}),
1239
1209
  applySensibleDefaults: (e) => e,
1240
- mapToWidget: wn,
1241
- buildCustomWidget: kn,
1242
- getChildren: zn
1210
+ mapToWidget: vn,
1211
+ buildCustomWidget: wn,
1212
+ getChildren: Sn
1243
1213
  };
1244
- Qe("REPEATER", An);
1214
+ Qe("REPEATER", Tn);
1245
1215
  y({
1246
1216
  itemType: "MARKDOWN",
1247
1217
  entryShape: "keyed",
1248
1218
  sensibleDefaults: {
1249
1219
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
1250
1220
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1251
- apply: (e, t) => N(w(e, t), t)
1221
+ apply: (e, t) => N(k(e, t), t)
1252
1222
  },
1253
1223
  mapToWidget: (e) => ({
1254
1224
  uid: e.uid ?? "",
@@ -1268,7 +1238,7 @@ y({
1268
1238
  sensibleDefaults: {
1269
1239
  base: { suppressAutomaticLabels: !1 },
1270
1240
  fields: ["suppressAutomaticLabels"],
1271
- apply: (e, t) => w(e, t)
1241
+ apply: (e, t) => k(e, t)
1272
1242
  },
1273
1243
  mapToWidget: (e) => ({
1274
1244
  uid: e.uid ?? "",
@@ -1291,7 +1261,7 @@ y({
1291
1261
  suppressAutomaticPlaceholders: !1
1292
1262
  },
1293
1263
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1294
- apply: (e, t) => N(w(e, t), t)
1264
+ apply: (e, t) => N(k(e, t), t)
1295
1265
  },
1296
1266
  mapToWidget: (e) => ({
1297
1267
  uid: e.uid ?? "",
@@ -1323,7 +1293,7 @@ y({
1323
1293
  suppressAutomaticLabels: !1
1324
1294
  },
1325
1295
  fields: ["suppressAutomaticLabels"],
1326
- apply: (e, t) => w(e, t)
1296
+ apply: (e, t) => k(e, t)
1327
1297
  },
1328
1298
  mapToWidget: (e) => ({
1329
1299
  uid: e.uid ?? "",
@@ -1368,14 +1338,14 @@ y({
1368
1338
  props: { ...f, ...C }
1369
1339
  };
1370
1340
  },
1371
- afterMerge: (e, t) => ee.extractOnClickFromMergeResult(
1341
+ afterMerge: (e, t) => ge.extractOnClickFromMergeResult(
1372
1342
  e,
1373
1343
  t.eventRegistry,
1374
1344
  t.formConfig,
1375
1345
  t.eventIdGenerator
1376
1346
  )
1377
1347
  });
1378
- function On(e) {
1348
+ function zn(e) {
1379
1349
  return {
1380
1350
  uid: e.uid ?? "",
1381
1351
  kind: "layout",
@@ -1384,7 +1354,7 @@ function On(e) {
1384
1354
  children: []
1385
1355
  };
1386
1356
  }
1387
- function En(e, t) {
1357
+ function An(e, t) {
1388
1358
  const n = t.walkChildren(t.children ?? []);
1389
1359
  if (e.kind === "static")
1390
1360
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
@@ -1394,19 +1364,19 @@ function En(e, t) {
1394
1364
  return { ...t.mapStaticDef(s, "CUSTOM_LAYOUT"), children: n };
1395
1365
  });
1396
1366
  }
1397
- function $n(e) {
1367
+ function On(e) {
1398
1368
  return e.children;
1399
1369
  }
1400
1370
  y({
1401
1371
  itemType: "CUSTOM_LAYOUT",
1402
1372
  entryShape: "compound",
1403
- mapToWidget: On,
1404
- buildCustomWidget: En,
1405
- getChildren: $n
1373
+ mapToWidget: zn,
1374
+ buildCustomWidget: An,
1375
+ getChildren: On
1406
1376
  });
1407
- class Pn {
1408
- constructor(t, n, r) {
1409
- this.selectorNormalizer = t, this.eventWiring = n, this.walker = r;
1377
+ class En {
1378
+ constructor(t, n) {
1379
+ this.selectorNormalizer = t, this.walker = n;
1410
1380
  }
1411
1381
  processDxFacade(t, n = [], r) {
1412
1382
  const { defs: o, gslSelectors: s, formConfig: i } = this.prepareForm(
@@ -1427,29 +1397,23 @@ class Pn {
1427
1397
  * 1. Normalize definitions — ensure a flat array; convert bare functions to display widgets.
1428
1398
  * 2. Normalize selectors — convert mixed leaf/aggregated selectors into a uniform
1429
1399
  * aggregated shape, and extract form-level config (see {@link FormConfig}).
1430
- * 3. Auto-submit — unless suppressed, append a submit button if none was declared.
1431
- * Throws if more than one submit button is found.
1432
- * 4. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
1400
+ * 3. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
1433
1401
  * flex column layout so the form renders as a single vertical container.
1434
1402
  */
1435
1403
  prepareForm(t, n, r) {
1436
1404
  const s = (Array.isArray(t) ? [...t] : [t]).map(
1437
- (c) => typeof c == "function" ? Dt(c) : c
1405
+ (u) => typeof u == "function" ? Dt(u) : u
1438
1406
  ), i = this.selectorNormalizer.normalizeSelectors(n), a = {
1439
1407
  ...this.selectorNormalizer.extractFormConfig(),
1440
1408
  ...r
1441
- }, u = this.eventWiring.countSubmitButtons(s);
1442
- if (u > 1)
1443
- throw new Error(
1444
- `Only one submit button is allowed per form, but ${u} were found. A button is a submit button if it has uid: '#submit' or onClick: 'submit'.`
1445
- );
1446
- if (!a.suppressAutomaticSubmit && u === 0 && s.push(Wt()), !a.suppressAutomaticStack) {
1447
- const c = {
1409
+ };
1410
+ if (!a.suppressAutomaticStack) {
1411
+ const u = {
1448
1412
  def: { uid: "#root", direction: "column", widgetName: "flex" },
1449
1413
  children: s
1450
1414
  };
1451
1415
  return {
1452
- defs: [{ type: "ITEMS", itemType: Q.LAYOUTS, items: [c], tags: [] }],
1416
+ defs: [{ type: "ITEMS", itemType: He.LAYOUTS, items: [u], tags: [] }],
1453
1417
  gslSelectors: i,
1454
1418
  formConfig: a
1455
1419
  };
@@ -1495,37 +1459,37 @@ class Pn {
1495
1459
  }), r.dependencies && (o.dependencies = r.dependencies), r.widgetLoaders && (o.widgetLoaders = r.widgetLoaders), r.validateOn && (o.validateOn = r.validateOn), r.itemRenderers && (o.itemRenderers = r.itemRenderers), o;
1496
1460
  }
1497
1461
  }
1498
- const Zn = new rn(
1462
+ const $n = new tn(
1463
+ jt,
1499
1464
  Vt,
1500
1465
  Bt,
1501
- Gt,
1502
- ee,
1503
- tn
1504
- ), Cn = new Pn(qt, ee, Zn);
1505
- function In(e) {
1506
- return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Ee) : Ee(e);
1507
- }
1508
- function Ee(e) {
1466
+ ge,
1467
+ Qt
1468
+ ), Pn = new En(Gt, $n);
1469
+ function Zn(e) {
1470
+ return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Oe) : Oe(e);
1471
+ }
1472
+ function Oe(e) {
1509
1473
  if (typeof e == "function") return !0;
1510
1474
  if (e === null || typeof e != "object") return !1;
1511
1475
  const t = e;
1512
1476
  return t.type === "ITEMS" && typeof t.itemType == "string";
1513
1477
  }
1514
- const $e = Object.freeze({}), Nn = Object.freeze({}), Pe = /* @__PURE__ */ new WeakMap();
1515
- function pe(e, t) {
1478
+ const Ee = Object.freeze({}), Cn = Object.freeze({}), $e = /* @__PURE__ */ new WeakMap();
1479
+ function ce(e, t) {
1516
1480
  return e == null ? t : typeof e == "object" ? e : {};
1517
1481
  }
1518
- function Mn(e, t, n) {
1519
- if (!In(e))
1482
+ function In(e, t, n) {
1483
+ if (!Zn(e))
1520
1484
  return { formDef: e };
1521
- const r = pe(e, $e), o = pe(t, $e), s = pe(n, Nn);
1522
- let i = Pe.get(r);
1523
- i || (i = /* @__PURE__ */ new WeakMap(), Pe.set(r, i));
1485
+ const r = ce(e, Ee), o = ce(t, Ee), s = ce(n, Cn);
1486
+ let i = $e.get(r);
1487
+ i || (i = /* @__PURE__ */ new WeakMap(), $e.set(r, i));
1524
1488
  let a = i.get(o);
1525
1489
  a || (a = /* @__PURE__ */ new WeakMap(), i.set(o, a));
1526
1490
  const u = a.get(s);
1527
1491
  if (u) return u;
1528
- const c = Cn.processDxFacade(
1492
+ const c = Pn.processDxFacade(
1529
1493
  e,
1530
1494
  t,
1531
1495
  n
@@ -1583,27 +1547,27 @@ class rt extends Error {
1583
1547
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
1584
1548
  }
1585
1549
  }
1586
- const Ln = {};
1587
- function L(e) {
1588
- return Ln;
1550
+ const Nn = {};
1551
+ function M(e) {
1552
+ return Nn;
1589
1553
  }
1590
- function me(e, t) {
1554
+ function pe(e, t) {
1591
1555
  return typeof t == "bigint" ? t.toString() : t;
1592
1556
  }
1593
- function be(e) {
1557
+ function ye(e) {
1594
1558
  return e == null;
1595
1559
  }
1596
- function _e(e) {
1560
+ function be(e) {
1597
1561
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
1598
1562
  return e.slice(t, n);
1599
1563
  }
1600
- const Ze = Symbol("evaluating");
1564
+ const Pe = Symbol("evaluating");
1601
1565
  function g(e, t, n) {
1602
1566
  let r;
1603
1567
  Object.defineProperty(e, t, {
1604
1568
  get() {
1605
- if (r !== Ze)
1606
- return r === void 0 && (r = Ze, r = n()), r;
1569
+ if (r !== Pe)
1570
+ return r === void 0 && (r = Pe, r = n()), r;
1607
1571
  },
1608
1572
  set(o) {
1609
1573
  Object.defineProperty(e, t, {
@@ -1614,7 +1578,7 @@ function g(e, t, n) {
1614
1578
  configurable: !0
1615
1579
  });
1616
1580
  }
1617
- function Dn(...e) {
1581
+ function Ln(...e) {
1618
1582
  const t = {};
1619
1583
  for (const n of e) {
1620
1584
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1622,27 +1586,27 @@ function Dn(...e) {
1622
1586
  }
1623
1587
  return Object.defineProperties({}, t);
1624
1588
  }
1625
- function Rn(e) {
1589
+ function Mn(e) {
1626
1590
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
1627
1591
  }
1628
1592
  const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1629
1593
  };
1630
- function Ce(e) {
1594
+ function Ze(e) {
1631
1595
  return typeof e == "object" && e !== null && !Array.isArray(e);
1632
1596
  }
1633
- function fe(e) {
1634
- if (Ce(e) === !1)
1597
+ function de(e) {
1598
+ if (Ze(e) === !1)
1635
1599
  return !1;
1636
1600
  const t = e.constructor;
1637
1601
  if (t === void 0 || typeof t != "function")
1638
1602
  return !0;
1639
1603
  const n = t.prototype;
1640
- return !(Ce(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1604
+ return !(Ze(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1641
1605
  }
1642
1606
  function st(e) {
1643
- return fe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1607
+ return de(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1644
1608
  }
1645
- function ve(e) {
1609
+ function _e(e) {
1646
1610
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1647
1611
  }
1648
1612
  function it(e, t, n) {
@@ -1662,7 +1626,7 @@ function h(e) {
1662
1626
  }
1663
1627
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
1664
1628
  }
1665
- const Fn = {
1629
+ const Dn = {
1666
1630
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
1667
1631
  int32: [-2147483648, 2147483647],
1668
1632
  uint32: [0, 4294967295],
@@ -1677,24 +1641,24 @@ function F(e, t = 0) {
1677
1641
  return !0;
1678
1642
  return !1;
1679
1643
  }
1680
- function jn(e, t) {
1644
+ function Rn(e, t) {
1681
1645
  return t.map((n) => {
1682
1646
  var r;
1683
1647
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
1684
1648
  });
1685
1649
  }
1686
- function K(e) {
1650
+ function G(e) {
1687
1651
  return typeof e == "string" ? e : e?.message;
1688
1652
  }
1689
1653
  function D(e, t, n) {
1690
1654
  const r = { ...e, path: e.path ?? [] };
1691
1655
  if (!e.message) {
1692
- const o = K(e.inst?._zod.def?.error?.(e)) ?? K(t?.error?.(e)) ?? K(n.customError?.(e)) ?? K(n.localeError?.(e)) ?? "Invalid input";
1656
+ const o = G(e.inst?._zod.def?.error?.(e)) ?? G(t?.error?.(e)) ?? G(n.customError?.(e)) ?? G(n.localeError?.(e)) ?? "Invalid input";
1693
1657
  r.message = o;
1694
1658
  }
1695
1659
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
1696
1660
  }
1697
- function Se(e) {
1661
+ function ve(e) {
1698
1662
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
1699
1663
  }
1700
1664
  function J(...e) {
@@ -1713,18 +1677,18 @@ const at = (e, t) => {
1713
1677
  }), Object.defineProperty(e, "issues", {
1714
1678
  value: t,
1715
1679
  enumerable: !1
1716
- }), e.message = JSON.stringify(t, me, 2), Object.defineProperty(e, "toString", {
1680
+ }), e.message = JSON.stringify(t, pe, 2), Object.defineProperty(e, "toString", {
1717
1681
  value: () => e.message,
1718
1682
  enumerable: !1
1719
1683
  });
1720
- }, ut = l("$ZodError", at), te = l("$ZodError", at, { Parent: Error });
1721
- function Wn(e, t = (n) => n.message) {
1684
+ }, ut = l("$ZodError", at), Q = l("$ZodError", at, { Parent: Error });
1685
+ function Fn(e, t = (n) => n.message) {
1722
1686
  const n = {}, r = [];
1723
1687
  for (const o of e.issues)
1724
1688
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
1725
1689
  return { formErrors: r, fieldErrors: n };
1726
1690
  }
1727
- function xn(e, t = (n) => n.message) {
1691
+ function jn(e, t = (n) => n.message) {
1728
1692
  const n = { _errors: [] }, r = (o) => {
1729
1693
  for (const s of o.issues)
1730
1694
  if (s.code === "invalid_union" && s.errors.length)
@@ -1745,75 +1709,75 @@ function xn(e, t = (n) => n.message) {
1745
1709
  };
1746
1710
  return r(e), n;
1747
1711
  }
1748
- const ne = (e) => (t, n, r, o) => {
1712
+ const ee = (e) => (t, n, r, o) => {
1749
1713
  const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
1750
1714
  if (i instanceof Promise)
1751
1715
  throw new j();
1752
1716
  if (i.issues.length) {
1753
- const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, L())));
1717
+ const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, M())));
1754
1718
  throw ot(a, o?.callee), a;
1755
1719
  }
1756
1720
  return i.value;
1757
- }, Un = /* @__PURE__ */ ne(te), re = (e) => async (t, n, r, o) => {
1721
+ }, Wn = /* @__PURE__ */ ee(Q), te = (e) => async (t, n, r, o) => {
1758
1722
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1759
1723
  let i = t._zod.run({ value: n, issues: [] }, s);
1760
1724
  if (i instanceof Promise && (i = await i), i.issues.length) {
1761
- const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, L())));
1725
+ const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, M())));
1762
1726
  throw ot(a, o?.callee), a;
1763
1727
  }
1764
1728
  return i.value;
1765
- }, Vn = /* @__PURE__ */ re(te), oe = (e) => (t, n, r) => {
1729
+ }, xn = /* @__PURE__ */ te(Q), ne = (e) => (t, n, r) => {
1766
1730
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
1767
1731
  if (s instanceof Promise)
1768
1732
  throw new j();
1769
1733
  return s.issues.length ? {
1770
1734
  success: !1,
1771
- error: new (e ?? ut)(s.issues.map((i) => D(i, o, L())))
1735
+ error: new (e ?? ut)(s.issues.map((i) => D(i, o, M())))
1772
1736
  } : { success: !0, data: s.value };
1773
- }, ct = /* @__PURE__ */ oe(te), se = (e) => async (t, n, r) => {
1737
+ }, ct = /* @__PURE__ */ ne(Q), re = (e) => async (t, n, r) => {
1774
1738
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1775
1739
  let s = t._zod.run({ value: n, issues: [] }, o);
1776
1740
  return s instanceof Promise && (s = await s), s.issues.length ? {
1777
1741
  success: !1,
1778
- error: new e(s.issues.map((i) => D(i, o, L())))
1742
+ error: new e(s.issues.map((i) => D(i, o, M())))
1779
1743
  } : { success: !0, data: s.value };
1780
- }, lt = /* @__PURE__ */ se(te), Jn = (e) => (t, n, r) => {
1744
+ }, lt = /* @__PURE__ */ re(Q), Un = (e) => (t, n, r) => {
1781
1745
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1782
- return ne(e)(t, n, o);
1783
- }, Bn = (e) => (t, n, r) => ne(e)(t, n, r), Yn = (e) => async (t, n, r) => {
1746
+ return ee(e)(t, n, o);
1747
+ }, Vn = (e) => (t, n, r) => ee(e)(t, n, r), Jn = (e) => async (t, n, r) => {
1784
1748
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1785
- return re(e)(t, n, o);
1786
- }, Gn = (e) => async (t, n, r) => re(e)(t, n, r), Kn = (e) => (t, n, r) => {
1749
+ return te(e)(t, n, o);
1750
+ }, Bn = (e) => async (t, n, r) => te(e)(t, n, r), Yn = (e) => (t, n, r) => {
1787
1751
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1788
- return oe(e)(t, n, o);
1789
- }, qn = (e) => (t, n, r) => oe(e)(t, n, r), Xn = (e) => async (t, n, r) => {
1752
+ return ne(e)(t, n, o);
1753
+ }, Gn = (e) => (t, n, r) => ne(e)(t, n, r), Kn = (e) => async (t, n, r) => {
1790
1754
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1791
- return se(e)(t, n, o);
1792
- }, Hn = (e) => async (t, n, r) => se(e)(t, n, r), Qn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ie = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, er = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, tr = /^(?:(?: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])$/, nr = /^(([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}|:))$/, rr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, pt = "(?:(?:\\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])))", or = /* @__PURE__ */ new RegExp(`^${pt}$`);
1755
+ return re(e)(t, n, o);
1756
+ }, qn = (e) => async (t, n, r) => re(e)(t, n, r), Xn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ce = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Hn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Qn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, er = /^(([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}|:))$/, tr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, pt = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", nr = /* @__PURE__ */ new RegExp(`^${pt}$`);
1793
1757
  function dt(e) {
1794
1758
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1795
1759
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1796
1760
  }
1797
- function sr(e) {
1761
+ function rr(e) {
1798
1762
  return new RegExp(`^${dt(e)}$`);
1799
1763
  }
1800
- function ir(e) {
1764
+ function or(e) {
1801
1765
  const t = dt({ precision: e.precision }), n = ["Z"];
1802
1766
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
1803
1767
  const r = `${t}(?:${n.join("|")})`;
1804
1768
  return new RegExp(`^${pt}T(?:${r})$`);
1805
1769
  }
1806
- const ar = (e) => {
1770
+ const sr = (e) => {
1807
1771
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1808
1772
  return new RegExp(`^${t}$`);
1809
- }, ur = /^-?\d+$/, cr = /^-?\d+(?:\.\d+)?$/, lr = /^(?:true|false)$/i, pr = /^[^A-Z]*$/, dr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1773
+ }, ir = /^-?\d+$/, ar = /^-?\d+(?:\.\d+)?$/, ur = /^(?:true|false)$/i, cr = /^[^A-Z]*$/, lr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1810
1774
  var n;
1811
1775
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
1812
1776
  }), mt = {
1813
1777
  number: "number",
1814
1778
  bigint: "bigint",
1815
1779
  object: "date"
1816
- }, mr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1780
+ }, pr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1817
1781
  $.init(e, t);
1818
1782
  const n = mt[typeof t.value];
1819
1783
  e._zod.onattach.push((r) => {
@@ -1830,7 +1794,7 @@ const ar = (e) => {
1830
1794
  continue: !t.abort
1831
1795
  });
1832
1796
  };
1833
- }), fr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1797
+ }), dr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1834
1798
  $.init(e, t);
1835
1799
  const n = mt[typeof t.value];
1836
1800
  e._zod.onattach.push((r) => {
@@ -1847,12 +1811,12 @@ const ar = (e) => {
1847
1811
  continue: !t.abort
1848
1812
  });
1849
1813
  };
1850
- }), hr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1814
+ }), mr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1851
1815
  $.init(e, t), t.format = t.format || "float64";
1852
- const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Fn[t.format];
1816
+ const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Dn[t.format];
1853
1817
  e._zod.onattach.push((i) => {
1854
1818
  const a = i._zod.bag;
1855
- a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = ur);
1819
+ a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = ir);
1856
1820
  }), e._zod.check = (i) => {
1857
1821
  const a = i.value;
1858
1822
  if (n) {
@@ -1908,11 +1872,11 @@ const ar = (e) => {
1908
1872
  continue: !t.abort
1909
1873
  });
1910
1874
  };
1911
- }), gr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1875
+ }), fr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1912
1876
  var n;
1913
1877
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1914
1878
  const o = r.value;
1915
- return !be(o) && o.length !== void 0;
1879
+ return !ye(o) && o.length !== void 0;
1916
1880
  }), e._zod.onattach.push((r) => {
1917
1881
  const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1918
1882
  t.maximum < o && (r._zod.bag.maximum = t.maximum);
@@ -1920,7 +1884,7 @@ const ar = (e) => {
1920
1884
  const o = r.value;
1921
1885
  if (o.length <= t.maximum)
1922
1886
  return;
1923
- const i = Se(o);
1887
+ const i = ve(o);
1924
1888
  r.issues.push({
1925
1889
  origin: i,
1926
1890
  code: "too_big",
@@ -1931,11 +1895,11 @@ const ar = (e) => {
1931
1895
  continue: !t.abort
1932
1896
  });
1933
1897
  };
1934
- }), yr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1898
+ }), hr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1935
1899
  var n;
1936
1900
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1937
1901
  const o = r.value;
1938
- return !be(o) && o.length !== void 0;
1902
+ return !ye(o) && o.length !== void 0;
1939
1903
  }), e._zod.onattach.push((r) => {
1940
1904
  const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1941
1905
  t.minimum > o && (r._zod.bag.minimum = t.minimum);
@@ -1943,7 +1907,7 @@ const ar = (e) => {
1943
1907
  const o = r.value;
1944
1908
  if (o.length >= t.minimum)
1945
1909
  return;
1946
- const i = Se(o);
1910
+ const i = ve(o);
1947
1911
  r.issues.push({
1948
1912
  origin: i,
1949
1913
  code: "too_small",
@@ -1954,11 +1918,11 @@ const ar = (e) => {
1954
1918
  continue: !t.abort
1955
1919
  });
1956
1920
  };
1957
- }), br = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1921
+ }), gr = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1958
1922
  var n;
1959
1923
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1960
1924
  const o = r.value;
1961
- return !be(o) && o.length !== void 0;
1925
+ return !ye(o) && o.length !== void 0;
1962
1926
  }), e._zod.onattach.push((r) => {
1963
1927
  const o = r._zod.bag;
1964
1928
  o.minimum = t.length, o.maximum = t.length, o.length = t.length;
@@ -1966,7 +1930,7 @@ const ar = (e) => {
1966
1930
  const o = r.value, s = o.length;
1967
1931
  if (s === t.length)
1968
1932
  return;
1969
- const i = Se(o), a = s > t.length;
1933
+ const i = ve(o), a = s > t.length;
1970
1934
  r.issues.push({
1971
1935
  origin: i,
1972
1936
  ...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
@@ -1977,7 +1941,7 @@ const ar = (e) => {
1977
1941
  continue: !t.abort
1978
1942
  });
1979
1943
  };
1980
- }), ie = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
1944
+ }), oe = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
1981
1945
  var n, r;
1982
1946
  $.init(e, t), e._zod.onattach.push((o) => {
1983
1947
  const s = o._zod.bag;
@@ -1994,8 +1958,8 @@ const ar = (e) => {
1994
1958
  });
1995
1959
  }) : (r = e._zod).check ?? (r.check = () => {
1996
1960
  });
1997
- }), _r = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1998
- ie.init(e, t), e._zod.check = (n) => {
1961
+ }), yr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1962
+ oe.init(e, t), e._zod.check = (n) => {
1999
1963
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
2000
1964
  origin: "string",
2001
1965
  code: "invalid_format",
@@ -2006,13 +1970,13 @@ const ar = (e) => {
2006
1970
  continue: !t.abort
2007
1971
  });
2008
1972
  };
2009
- }), vr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2010
- t.pattern ?? (t.pattern = pr), ie.init(e, t);
2011
- }), Sr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2012
- t.pattern ?? (t.pattern = dr), ie.init(e, t);
2013
- }), wr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
1973
+ }), br = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
1974
+ t.pattern ?? (t.pattern = cr), oe.init(e, t);
1975
+ }), _r = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
1976
+ t.pattern ?? (t.pattern = lr), oe.init(e, t);
1977
+ }), vr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2014
1978
  $.init(e, t);
2015
- const n = ve(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1979
+ const n = _e(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2016
1980
  t.pattern = r, e._zod.onattach.push((o) => {
2017
1981
  const s = o._zod.bag;
2018
1982
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
@@ -2027,9 +1991,9 @@ const ar = (e) => {
2027
1991
  continue: !t.abort
2028
1992
  });
2029
1993
  };
2030
- }), kr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
1994
+ }), wr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2031
1995
  $.init(e, t);
2032
- const n = new RegExp(`^${ve(t.prefix)}.*`);
1996
+ const n = new RegExp(`^${_e(t.prefix)}.*`);
2033
1997
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2034
1998
  const o = r._zod.bag;
2035
1999
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2044,9 +2008,9 @@ const ar = (e) => {
2044
2008
  continue: !t.abort
2045
2009
  });
2046
2010
  };
2047
- }), Tr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2011
+ }), kr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2048
2012
  $.init(e, t);
2049
- const n = new RegExp(`.*${ve(t.suffix)}$`);
2013
+ const n = new RegExp(`.*${_e(t.suffix)}$`);
2050
2014
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2051
2015
  const o = r._zod.bag;
2052
2016
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2061,17 +2025,17 @@ const ar = (e) => {
2061
2025
  continue: !t.abort
2062
2026
  });
2063
2027
  };
2064
- }), zr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2028
+ }), Sr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2065
2029
  $.init(e, t), e._zod.check = (n) => {
2066
2030
  n.value = t.tx(n.value);
2067
2031
  };
2068
- }), Ar = {
2032
+ }), Tr = {
2069
2033
  major: 4,
2070
2034
  minor: 3,
2071
2035
  patch: 6
2072
2036
  }, _ = /* @__PURE__ */ l("$ZodType", (e, t) => {
2073
2037
  var n;
2074
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ar;
2038
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Tr;
2075
2039
  const r = [...e._zod.def.checks ?? []];
2076
2040
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
2077
2041
  for (const o of r)
@@ -2144,7 +2108,7 @@ const ar = (e) => {
2144
2108
  version: 1
2145
2109
  }));
2146
2110
  }), we = /* @__PURE__ */ l("$ZodString", (e, t) => {
2147
- _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ar(e._zod.bag), e._zod.parse = (n, r) => {
2111
+ _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? sr(e._zod.bag), e._zod.parse = (n, r) => {
2148
2112
  if (t.coerce)
2149
2113
  try {
2150
2114
  n.value = String(n.value);
@@ -2158,8 +2122,8 @@ const ar = (e) => {
2158
2122
  }), n;
2159
2123
  };
2160
2124
  }), P = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
2161
- ie.init(e, t), we.init(e, t);
2162
- }), Or = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2125
+ oe.init(e, t), we.init(e, t);
2126
+ }), zr = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2163
2127
  if (t.version) {
2164
2128
  const r = {
2165
2129
  v1: 1,
@@ -2173,13 +2137,13 @@ const ar = (e) => {
2173
2137
  }[t.version];
2174
2138
  if (r === void 0)
2175
2139
  throw new Error(`Invalid UUID version: "${t.version}"`);
2176
- t.pattern ?? (t.pattern = Ie(r));
2140
+ t.pattern ?? (t.pattern = Ce(r));
2177
2141
  } else
2178
- t.pattern ?? (t.pattern = Ie());
2142
+ t.pattern ?? (t.pattern = Ce());
2179
2143
  P.init(e, t);
2180
- }), Er = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2181
- t.pattern ?? (t.pattern = er), P.init(e, t);
2182
- }), $r = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2144
+ }), Ar = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2145
+ t.pattern ?? (t.pattern = Hn), P.init(e, t);
2146
+ }), Or = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2183
2147
  P.init(e, t), e._zod.check = (n) => {
2184
2148
  try {
2185
2149
  const r = n.value.trim(), o = new URL(r);
@@ -2211,18 +2175,18 @@ const ar = (e) => {
2211
2175
  });
2212
2176
  }
2213
2177
  };
2214
- }), Pr = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2215
- t.pattern ?? (t.pattern = ir(t)), P.init(e, t);
2216
- }), Zr = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2217
- t.pattern ?? (t.pattern = or), P.init(e, t);
2218
- }), Cr = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2219
- t.pattern ?? (t.pattern = sr(t)), P.init(e, t);
2220
- }), Ir = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2221
- t.pattern ?? (t.pattern = Qn), P.init(e, t);
2222
- }), Nr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2223
- t.pattern ?? (t.pattern = tr), P.init(e, t), e._zod.bag.format = "ipv4";
2224
- }), Mr = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2225
- t.pattern ?? (t.pattern = nr), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2178
+ }), Er = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2179
+ t.pattern ?? (t.pattern = or(t)), P.init(e, t);
2180
+ }), $r = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2181
+ t.pattern ?? (t.pattern = nr), P.init(e, t);
2182
+ }), Pr = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2183
+ t.pattern ?? (t.pattern = rr(t)), P.init(e, t);
2184
+ }), Zr = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2185
+ t.pattern ?? (t.pattern = Xn), P.init(e, t);
2186
+ }), Cr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2187
+ t.pattern ?? (t.pattern = Qn), P.init(e, t), e._zod.bag.format = "ipv4";
2188
+ }), Ir = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2189
+ t.pattern ?? (t.pattern = er), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2226
2190
  try {
2227
2191
  new URL(`http://[${n.value}]`);
2228
2192
  } catch {
@@ -2235,7 +2199,7 @@ const ar = (e) => {
2235
2199
  });
2236
2200
  }
2237
2201
  };
2238
- }), Lr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2202
+ }), Nr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2239
2203
  P.init(e, t), e._zod.check = (n) => {
2240
2204
  t.fn(n.value) || n.issues.push({
2241
2205
  code: "invalid_format",
@@ -2246,7 +2210,7 @@ const ar = (e) => {
2246
2210
  });
2247
2211
  };
2248
2212
  }), ft = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
2249
- _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? cr, e._zod.parse = (n, r) => {
2213
+ _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ar, e._zod.parse = (n, r) => {
2250
2214
  if (t.coerce)
2251
2215
  try {
2252
2216
  n.value = Number(n.value);
@@ -2264,10 +2228,10 @@ const ar = (e) => {
2264
2228
  ...s ? { received: s } : {}
2265
2229
  }), n;
2266
2230
  };
2267
- }), Dr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2268
- hr.init(e, t), ft.init(e, t);
2269
- }), Rr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2270
- _.init(e, t), e._zod.pattern = lr, e._zod.parse = (n, r) => {
2231
+ }), Lr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2232
+ mr.init(e, t), ft.init(e, t);
2233
+ }), Mr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2234
+ _.init(e, t), e._zod.pattern = ur, e._zod.parse = (n, r) => {
2271
2235
  if (t.coerce)
2272
2236
  try {
2273
2237
  n.value = !!n.value;
@@ -2281,11 +2245,11 @@ const ar = (e) => {
2281
2245
  inst: e
2282
2246
  }), n;
2283
2247
  };
2284
- }), Fr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2248
+ }), Dr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2285
2249
  _.init(e, t), e._zod.parse = (n) => n;
2286
2250
  });
2287
- function Ne(e, t, n) {
2288
- e.issues.length && t.issues.push(...jn(n, e.issues)), t.value[n] = e.value;
2251
+ function Ie(e, t, n) {
2252
+ e.issues.length && t.issues.push(...Rn(n, e.issues)), t.value[n] = e.value;
2289
2253
  }
2290
2254
  const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2291
2255
  _.init(e, t), e._zod.parse = (n, r) => {
@@ -2304,12 +2268,12 @@ const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2304
2268
  value: a,
2305
2269
  issues: []
2306
2270
  }, r);
2307
- u instanceof Promise ? s.push(u.then((c) => Ne(c, n, i))) : Ne(u, n, i);
2271
+ u instanceof Promise ? s.push(u.then((c) => Ie(c, n, i))) : Ie(u, n, i);
2308
2272
  }
2309
2273
  return s.length ? Promise.all(s).then(() => n) : n;
2310
2274
  };
2311
2275
  });
2312
- function Me(e, t, n, r) {
2276
+ function Ne(e, t, n, r) {
2313
2277
  for (const s of e)
2314
2278
  if (s.issues.length === 0)
2315
2279
  return t.value = s.value, t;
@@ -2318,17 +2282,17 @@ function Me(e, t, n, r) {
2318
2282
  code: "invalid_union",
2319
2283
  input: t.value,
2320
2284
  inst: n,
2321
- errors: e.map((s) => s.issues.map((i) => D(i, r, L())))
2285
+ errors: e.map((s) => s.issues.map((i) => D(i, r, M())))
2322
2286
  }), t);
2323
2287
  }
2324
- const jr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2288
+ const Rr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2325
2289
  _.init(e, t), g(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), g(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), g(e._zod, "values", () => {
2326
2290
  if (t.options.every((o) => o._zod.values))
2327
2291
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
2328
2292
  }), g(e._zod, "pattern", () => {
2329
2293
  if (t.options.every((o) => o._zod.pattern)) {
2330
2294
  const o = t.options.map((s) => s._zod.pattern);
2331
- return new RegExp(`^(${o.map((s) => _e(s.source)).join("|")})$`);
2295
+ return new RegExp(`^(${o.map((s) => be(s.source)).join("|")})$`);
2332
2296
  }
2333
2297
  });
2334
2298
  const n = t.options.length === 1, r = t.options[0]._zod.run;
@@ -2350,23 +2314,23 @@ const jr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2350
2314
  a.push(c);
2351
2315
  }
2352
2316
  }
2353
- return i ? Promise.all(a).then((u) => Me(u, o, e, s)) : Me(a, o, e, s);
2317
+ return i ? Promise.all(a).then((u) => Ne(u, o, e, s)) : Ne(a, o, e, s);
2354
2318
  };
2355
- }), Wr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2319
+ }), Fr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2356
2320
  _.init(e, t), e._zod.parse = (n, r) => {
2357
2321
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2358
2322
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Le(n, u, c)) : Le(n, s, i);
2359
2323
  };
2360
2324
  });
2361
- function he(e, t) {
2325
+ function me(e, t) {
2362
2326
  if (e === t)
2363
2327
  return { valid: !0, data: e };
2364
2328
  if (e instanceof Date && t instanceof Date && +e == +t)
2365
2329
  return { valid: !0, data: e };
2366
- if (fe(e) && fe(t)) {
2330
+ if (de(e) && de(t)) {
2367
2331
  const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
2368
2332
  for (const s of r) {
2369
- const i = he(e[s], t[s]);
2333
+ const i = me(e[s], t[s]);
2370
2334
  if (!i.valid)
2371
2335
  return {
2372
2336
  valid: !1,
@@ -2381,7 +2345,7 @@ function he(e, t) {
2381
2345
  return { valid: !1, mergeErrorPath: [] };
2382
2346
  const n = [];
2383
2347
  for (let r = 0; r < e.length; r++) {
2384
- const o = e[r], s = t[r], i = he(o, s);
2348
+ const o = e[r], s = t[r], i = me(o, s);
2385
2349
  if (!i.valid)
2386
2350
  return {
2387
2351
  valid: !1,
@@ -2412,12 +2376,12 @@ function Le(e, t, n) {
2412
2376
  const s = [...r].filter(([, a]) => a.l && a.r).map(([a]) => a);
2413
2377
  if (s.length && o && e.issues.push({ ...o, keys: s }), F(e))
2414
2378
  return e;
2415
- const i = he(t.value, n.value);
2379
+ const i = me(t.value, n.value);
2416
2380
  if (!i.valid)
2417
2381
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
2418
2382
  return e.value = i.data, e;
2419
2383
  }
2420
- const xr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2384
+ const jr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2421
2385
  _.init(e, t), e._zod.parse = (n, r) => {
2422
2386
  if (r.direction === "backward")
2423
2387
  throw new rt(e.constructor.name);
@@ -2429,52 +2393,52 @@ const xr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2429
2393
  return n.value = o, n;
2430
2394
  };
2431
2395
  });
2432
- function De(e, t) {
2396
+ function Me(e, t) {
2433
2397
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
2434
2398
  }
2435
2399
  const ke = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2436
2400
  _.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", g(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), g(e._zod, "pattern", () => {
2437
2401
  const n = t.innerType._zod.pattern;
2438
- return n ? new RegExp(`^(${_e(n.source)})?$`) : void 0;
2402
+ return n ? new RegExp(`^(${be(n.source)})?$`) : void 0;
2439
2403
  }), e._zod.parse = (n, r) => {
2440
2404
  if (t.innerType._zod.optin === "optional") {
2441
2405
  const o = t.innerType._zod.run(n, r);
2442
- return o instanceof Promise ? o.then((s) => De(s, n.value)) : De(o, n.value);
2406
+ return o instanceof Promise ? o.then((s) => Me(s, n.value)) : Me(o, n.value);
2443
2407
  }
2444
2408
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
2445
2409
  };
2446
- }), Ur = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2410
+ }), Wr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2447
2411
  ke.init(e, t), g(e._zod, "values", () => t.innerType._zod.values), g(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
2448
- }), Vr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2412
+ }), xr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2449
2413
  _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "pattern", () => {
2450
2414
  const n = t.innerType._zod.pattern;
2451
- return n ? new RegExp(`^(${_e(n.source)}|null)$`) : void 0;
2415
+ return n ? new RegExp(`^(${be(n.source)}|null)$`) : void 0;
2452
2416
  }), g(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
2453
- }), Jr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2417
+ }), Ur = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2454
2418
  _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2455
2419
  if (r.direction === "backward")
2456
2420
  return t.innerType._zod.run(n, r);
2457
2421
  if (n.value === void 0)
2458
2422
  return n.value = t.defaultValue, n;
2459
2423
  const o = t.innerType._zod.run(n, r);
2460
- return o instanceof Promise ? o.then((s) => Re(s, t)) : Re(o, t);
2424
+ return o instanceof Promise ? o.then((s) => De(s, t)) : De(o, t);
2461
2425
  };
2462
2426
  });
2463
- function Re(e, t) {
2427
+ function De(e, t) {
2464
2428
  return e.value === void 0 && (e.value = t.defaultValue), e;
2465
2429
  }
2466
- const Br = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2430
+ const Vr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2467
2431
  _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
2468
- }), Yr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2432
+ }), Jr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2469
2433
  _.init(e, t), g(e._zod, "values", () => {
2470
2434
  const n = t.innerType._zod.values;
2471
2435
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
2472
2436
  }), e._zod.parse = (n, r) => {
2473
2437
  const o = t.innerType._zod.run(n, r);
2474
- return o instanceof Promise ? o.then((s) => Fe(s, e)) : Fe(o, e);
2438
+ return o instanceof Promise ? o.then((s) => Re(s, e)) : Re(o, e);
2475
2439
  };
2476
2440
  });
2477
- function Fe(e, t) {
2441
+ function Re(e, t) {
2478
2442
  return !e.issues.length && e.value === void 0 && e.issues.push({
2479
2443
  code: "invalid_type",
2480
2444
  expected: "nonoptional",
@@ -2482,7 +2446,7 @@ function Fe(e, t) {
2482
2446
  inst: t
2483
2447
  }), e;
2484
2448
  }
2485
- const Gr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2449
+ const Br = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2486
2450
  _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2487
2451
  if (r.direction === "backward")
2488
2452
  return t.innerType._zod.run(n, r);
@@ -2490,50 +2454,50 @@ const Gr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2490
2454
  return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
2491
2455
  ...n,
2492
2456
  error: {
2493
- issues: s.issues.map((i) => D(i, r, L()))
2457
+ issues: s.issues.map((i) => D(i, r, M()))
2494
2458
  },
2495
2459
  input: n.value
2496
2460
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
2497
2461
  ...n,
2498
2462
  error: {
2499
- issues: o.issues.map((s) => D(s, r, L()))
2463
+ issues: o.issues.map((s) => D(s, r, M()))
2500
2464
  },
2501
2465
  input: n.value
2502
2466
  }), n.issues = []), n);
2503
2467
  };
2504
- }), Kr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2468
+ }), Yr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2505
2469
  _.init(e, t), g(e._zod, "values", () => t.in._zod.values), g(e._zod, "optin", () => t.in._zod.optin), g(e._zod, "optout", () => t.out._zod.optout), g(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
2506
2470
  if (r.direction === "backward") {
2507
2471
  const s = t.out._zod.run(n, r);
2508
- return s instanceof Promise ? s.then((i) => q(i, t.in, r)) : q(s, t.in, r);
2472
+ return s instanceof Promise ? s.then((i) => K(i, t.in, r)) : K(s, t.in, r);
2509
2473
  }
2510
2474
  const o = t.in._zod.run(n, r);
2511
- return o instanceof Promise ? o.then((s) => q(s, t.out, r)) : q(o, t.out, r);
2475
+ return o instanceof Promise ? o.then((s) => K(s, t.out, r)) : K(o, t.out, r);
2512
2476
  };
2513
2477
  });
2514
- function q(e, t, n) {
2478
+ function K(e, t, n) {
2515
2479
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
2516
2480
  }
2517
- const qr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2481
+ const Gr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2518
2482
  _.init(e, t), g(e._zod, "propValues", () => t.innerType._zod.propValues), g(e._zod, "values", () => t.innerType._zod.values), g(e._zod, "optin", () => t.innerType?._zod?.optin), g(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
2519
2483
  if (r.direction === "backward")
2520
2484
  return t.innerType._zod.run(n, r);
2521
2485
  const o = t.innerType._zod.run(n, r);
2522
- return o instanceof Promise ? o.then(je) : je(o);
2486
+ return o instanceof Promise ? o.then(Fe) : Fe(o);
2523
2487
  };
2524
2488
  });
2525
- function je(e) {
2489
+ function Fe(e) {
2526
2490
  return e.value = Object.freeze(e.value), e;
2527
2491
  }
2528
2492
  const gt = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
2529
2493
  $.init(e, t), _.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
2530
2494
  const r = n.value, o = t.fn(r);
2531
2495
  if (o instanceof Promise)
2532
- return o.then((s) => We(s, n, r, e));
2533
- We(o, n, r, e);
2496
+ return o.then((s) => je(s, n, r, e));
2497
+ je(o, n, r, e);
2534
2498
  };
2535
2499
  });
2536
- function We(e, t, n, r) {
2500
+ function je(e, t, n, r) {
2537
2501
  if (!e) {
2538
2502
  const o = {
2539
2503
  code: "custom",
@@ -2548,8 +2512,8 @@ function We(e, t, n, r) {
2548
2512
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(J(o));
2549
2513
  }
2550
2514
  }
2551
- var xe;
2552
- class Xr {
2515
+ var We;
2516
+ class Kr {
2553
2517
  constructor() {
2554
2518
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2555
2519
  }
@@ -2578,20 +2542,20 @@ class Xr {
2578
2542
  return this._map.has(t);
2579
2543
  }
2580
2544
  }
2581
- function Hr() {
2582
- return new Xr();
2545
+ function qr() {
2546
+ return new Kr();
2583
2547
  }
2584
- (xe = globalThis).__zod_globalRegistry ?? (xe.__zod_globalRegistry = Hr());
2548
+ (We = globalThis).__zod_globalRegistry ?? (We.__zod_globalRegistry = qr());
2585
2549
  const V = globalThis.__zod_globalRegistry;
2586
2550
  // @__NO_SIDE_EFFECTS__
2587
- function Qr(e, t) {
2551
+ function Xr(e, t) {
2588
2552
  return new e({
2589
2553
  type: "string",
2590
2554
  ...h(t)
2591
2555
  });
2592
2556
  }
2593
2557
  // @__NO_SIDE_EFFECTS__
2594
- function eo(e, t) {
2558
+ function Hr(e, t) {
2595
2559
  return new e({
2596
2560
  type: "string",
2597
2561
  format: "email",
@@ -2601,7 +2565,7 @@ function eo(e, t) {
2601
2565
  });
2602
2566
  }
2603
2567
  // @__NO_SIDE_EFFECTS__
2604
- function to(e, t) {
2568
+ function Qr(e, t) {
2605
2569
  return new e({
2606
2570
  type: "string",
2607
2571
  format: "uuid",
@@ -2611,7 +2575,7 @@ function to(e, t) {
2611
2575
  });
2612
2576
  }
2613
2577
  // @__NO_SIDE_EFFECTS__
2614
- function no(e, t) {
2578
+ function eo(e, t) {
2615
2579
  return new e({
2616
2580
  type: "string",
2617
2581
  format: "url",
@@ -2621,7 +2585,7 @@ function no(e, t) {
2621
2585
  });
2622
2586
  }
2623
2587
  // @__NO_SIDE_EFFECTS__
2624
- function ro(e, t) {
2588
+ function to(e, t) {
2625
2589
  return new e({
2626
2590
  type: "string",
2627
2591
  format: "ipv4",
@@ -2631,7 +2595,7 @@ function ro(e, t) {
2631
2595
  });
2632
2596
  }
2633
2597
  // @__NO_SIDE_EFFECTS__
2634
- function oo(e, t) {
2598
+ function no(e, t) {
2635
2599
  return new e({
2636
2600
  type: "string",
2637
2601
  format: "ipv6",
@@ -2641,7 +2605,7 @@ function oo(e, t) {
2641
2605
  });
2642
2606
  }
2643
2607
  // @__NO_SIDE_EFFECTS__
2644
- function so(e, t) {
2608
+ function ro(e, t) {
2645
2609
  return new e({
2646
2610
  type: "string",
2647
2611
  format: "datetime",
@@ -2653,7 +2617,7 @@ function so(e, t) {
2653
2617
  });
2654
2618
  }
2655
2619
  // @__NO_SIDE_EFFECTS__
2656
- function io(e, t) {
2620
+ function oo(e, t) {
2657
2621
  return new e({
2658
2622
  type: "string",
2659
2623
  format: "date",
@@ -2662,7 +2626,7 @@ function io(e, t) {
2662
2626
  });
2663
2627
  }
2664
2628
  // @__NO_SIDE_EFFECTS__
2665
- function ao(e, t) {
2629
+ function so(e, t) {
2666
2630
  return new e({
2667
2631
  type: "string",
2668
2632
  format: "time",
@@ -2672,7 +2636,7 @@ function ao(e, t) {
2672
2636
  });
2673
2637
  }
2674
2638
  // @__NO_SIDE_EFFECTS__
2675
- function uo(e, t) {
2639
+ function io(e, t) {
2676
2640
  return new e({
2677
2641
  type: "string",
2678
2642
  format: "duration",
@@ -2681,7 +2645,7 @@ function uo(e, t) {
2681
2645
  });
2682
2646
  }
2683
2647
  // @__NO_SIDE_EFFECTS__
2684
- function co(e, t) {
2648
+ function ao(e, t) {
2685
2649
  return new e({
2686
2650
  type: "number",
2687
2651
  checks: [],
@@ -2689,7 +2653,7 @@ function co(e, t) {
2689
2653
  });
2690
2654
  }
2691
2655
  // @__NO_SIDE_EFFECTS__
2692
- function lo(e, t) {
2656
+ function uo(e, t) {
2693
2657
  return new e({
2694
2658
  type: "number",
2695
2659
  check: "number_format",
@@ -2699,21 +2663,21 @@ function lo(e, t) {
2699
2663
  });
2700
2664
  }
2701
2665
  // @__NO_SIDE_EFFECTS__
2702
- function po(e, t) {
2666
+ function co(e, t) {
2703
2667
  return new e({
2704
2668
  type: "boolean",
2705
2669
  ...h(t)
2706
2670
  });
2707
2671
  }
2708
2672
  // @__NO_SIDE_EFFECTS__
2709
- function mo(e) {
2673
+ function lo(e) {
2710
2674
  return new e({
2711
2675
  type: "any"
2712
2676
  });
2713
2677
  }
2714
2678
  // @__NO_SIDE_EFFECTS__
2715
- function fo(e, t) {
2716
- return new mr({
2679
+ function po(e, t) {
2680
+ return new pr({
2717
2681
  check: "less_than",
2718
2682
  ...h(t),
2719
2683
  value: e,
@@ -2721,8 +2685,8 @@ function fo(e, t) {
2721
2685
  });
2722
2686
  }
2723
2687
  // @__NO_SIDE_EFFECTS__
2724
- function ho(e, t) {
2725
- return new fr({
2688
+ function mo(e, t) {
2689
+ return new dr({
2726
2690
  check: "greater_than",
2727
2691
  ...h(t),
2728
2692
  value: e,
@@ -2730,8 +2694,8 @@ function ho(e, t) {
2730
2694
  });
2731
2695
  }
2732
2696
  // @__NO_SIDE_EFFECTS__
2733
- function ae(e, t) {
2734
- return new gr({
2697
+ function se(e, t) {
2698
+ return new fr({
2735
2699
  check: "max_length",
2736
2700
  ...h(t),
2737
2701
  maximum: e
@@ -2739,7 +2703,7 @@ function ae(e, t) {
2739
2703
  }
2740
2704
  // @__NO_SIDE_EFFECTS__
2741
2705
  function W(e, t) {
2742
- return new yr({
2706
+ return new hr({
2743
2707
  check: "min_length",
2744
2708
  ...h(t),
2745
2709
  minimum: e
@@ -2747,7 +2711,7 @@ function W(e, t) {
2747
2711
  }
2748
2712
  // @__NO_SIDE_EFFECTS__
2749
2713
  function yt(e, t) {
2750
- return new br({
2714
+ return new gr({
2751
2715
  check: "length_equals",
2752
2716
  ...h(t),
2753
2717
  length: e
@@ -2755,7 +2719,7 @@ function yt(e, t) {
2755
2719
  }
2756
2720
  // @__NO_SIDE_EFFECTS__
2757
2721
  function bt(e, t) {
2758
- return new _r({
2722
+ return new yr({
2759
2723
  check: "string_format",
2760
2724
  format: "regex",
2761
2725
  ...h(t),
@@ -2763,24 +2727,24 @@ function bt(e, t) {
2763
2727
  });
2764
2728
  }
2765
2729
  // @__NO_SIDE_EFFECTS__
2766
- function go(e) {
2767
- return new vr({
2730
+ function fo(e) {
2731
+ return new br({
2768
2732
  check: "string_format",
2769
2733
  format: "lowercase",
2770
2734
  ...h(e)
2771
2735
  });
2772
2736
  }
2773
2737
  // @__NO_SIDE_EFFECTS__
2774
- function yo(e) {
2775
- return new Sr({
2738
+ function ho(e) {
2739
+ return new _r({
2776
2740
  check: "string_format",
2777
2741
  format: "uppercase",
2778
2742
  ...h(e)
2779
2743
  });
2780
2744
  }
2781
2745
  // @__NO_SIDE_EFFECTS__
2782
- function bo(e, t) {
2783
- return new wr({
2746
+ function go(e, t) {
2747
+ return new vr({
2784
2748
  check: "string_format",
2785
2749
  format: "includes",
2786
2750
  ...h(t),
@@ -2788,8 +2752,8 @@ function bo(e, t) {
2788
2752
  });
2789
2753
  }
2790
2754
  // @__NO_SIDE_EFFECTS__
2791
- function _o(e, t) {
2792
- return new kr({
2755
+ function yo(e, t) {
2756
+ return new wr({
2793
2757
  check: "string_format",
2794
2758
  format: "starts_with",
2795
2759
  ...h(t),
@@ -2797,8 +2761,8 @@ function _o(e, t) {
2797
2761
  });
2798
2762
  }
2799
2763
  // @__NO_SIDE_EFFECTS__
2800
- function vo(e, t) {
2801
- return new Tr({
2764
+ function bo(e, t) {
2765
+ return new kr({
2802
2766
  check: "string_format",
2803
2767
  format: "ends_with",
2804
2768
  ...h(t),
@@ -2807,33 +2771,33 @@ function vo(e, t) {
2807
2771
  }
2808
2772
  // @__NO_SIDE_EFFECTS__
2809
2773
  function x(e) {
2810
- return new zr({
2774
+ return new Sr({
2811
2775
  check: "overwrite",
2812
2776
  tx: e
2813
2777
  });
2814
2778
  }
2815
2779
  // @__NO_SIDE_EFFECTS__
2816
- function So(e) {
2780
+ function _o(e) {
2817
2781
  return /* @__PURE__ */ x((t) => t.normalize(e));
2818
2782
  }
2819
2783
  // @__NO_SIDE_EFFECTS__
2820
- function wo() {
2784
+ function vo() {
2821
2785
  return /* @__PURE__ */ x((e) => e.trim());
2822
2786
  }
2823
2787
  // @__NO_SIDE_EFFECTS__
2824
- function ko() {
2788
+ function wo() {
2825
2789
  return /* @__PURE__ */ x((e) => e.toLowerCase());
2826
2790
  }
2827
2791
  // @__NO_SIDE_EFFECTS__
2828
- function To() {
2792
+ function ko() {
2829
2793
  return /* @__PURE__ */ x((e) => e.toUpperCase());
2830
2794
  }
2831
2795
  // @__NO_SIDE_EFFECTS__
2832
- function zo() {
2833
- return /* @__PURE__ */ x((e) => Rn(e));
2796
+ function So() {
2797
+ return /* @__PURE__ */ x((e) => Mn(e));
2834
2798
  }
2835
2799
  // @__NO_SIDE_EFFECTS__
2836
- function Ao(e, t, n) {
2800
+ function To(e, t, n) {
2837
2801
  return new e({
2838
2802
  type: "array",
2839
2803
  element: t,
@@ -2854,7 +2818,7 @@ function _t(e, t, n) {
2854
2818
  }
2855
2819
  // @__NO_SIDE_EFFECTS__
2856
2820
  function vt(e) {
2857
- const t = /* @__PURE__ */ Oo((n) => (n.addIssue = (r) => {
2821
+ const t = /* @__PURE__ */ zo((n) => (n.addIssue = (r) => {
2858
2822
  if (typeof r == "string")
2859
2823
  n.issues.push(J(r, n.value, t._zod.def));
2860
2824
  else {
@@ -2865,7 +2829,7 @@ function vt(e) {
2865
2829
  return t;
2866
2830
  }
2867
2831
  // @__NO_SIDE_EFFECTS__
2868
- function Oo(e, t) {
2832
+ function zo(e, t) {
2869
2833
  const n = new $({
2870
2834
  check: "custom",
2871
2835
  ...h(t)
@@ -2873,7 +2837,7 @@ function Oo(e, t) {
2873
2837
  return n._zod.check = e, n;
2874
2838
  }
2875
2839
  // @__NO_SIDE_EFFECTS__
2876
- function Eo(e, t, n, r = {}) {
2840
+ function Ao(e, t, n, r = {}) {
2877
2841
  const o = h(r), s = {
2878
2842
  ...h(r),
2879
2843
  check: "string_format",
@@ -2884,7 +2848,7 @@ function Eo(e, t, n, r = {}) {
2884
2848
  };
2885
2849
  return n instanceof RegExp && (s.pattern = n), new e(s);
2886
2850
  }
2887
- function St(e) {
2851
+ function wt(e) {
2888
2852
  let t = e?.target ?? "draft-2020-12";
2889
2853
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2890
2854
  processors: e.processors ?? {},
@@ -2931,7 +2895,7 @@ function A(e, t, n = { path: [], schemaPath: [] }) {
2931
2895
  const u = t.metadataRegistry.get(e);
2932
2896
  return u && Object.assign(i.schema, u), t.io === "input" && z(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((r = i.schema).default ?? (r.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
2933
2897
  }
2934
- function wt(e, t) {
2898
+ function kt(e, t) {
2935
2899
  const n = e.seen.get(t);
2936
2900
  if (!n)
2937
2901
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -3003,7 +2967,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3003
2967
  }
3004
2968
  }
3005
2969
  }
3006
- function kt(e, t) {
2970
+ function St(e, t) {
3007
2971
  const n = e.seen.get(t);
3008
2972
  if (!n)
3009
2973
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -3016,11 +2980,11 @@ function kt(e, t) {
3016
2980
  r(p);
3017
2981
  const m = e.seen.get(p), f = m.schema;
3018
2982
  if (f.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (u.allOf = u.allOf ?? [], u.allOf.push(f)) : Object.assign(u, f), Object.assign(u, c), i._zod.parent === p)
3019
- for (const k in u)
3020
- k === "$ref" || k === "allOf" || k in c || delete u[k];
2983
+ for (const S in u)
2984
+ S === "$ref" || S === "allOf" || S in c || delete u[S];
3021
2985
  if (f.$ref && m.def)
3022
- for (const k in u)
3023
- k === "$ref" || k === "allOf" || k in m.def && JSON.stringify(u[k]) === JSON.stringify(m.def[k]) && delete u[k];
2986
+ for (const S in u)
2987
+ S === "$ref" || S === "allOf" || S in m.def && JSON.stringify(u[S]) === JSON.stringify(m.def[S]) && delete u[S];
3024
2988
  }
3025
2989
  const d = i._zod.parent;
3026
2990
  if (d && d !== p) {
@@ -3058,8 +3022,8 @@ function kt(e, t) {
3058
3022
  value: {
3059
3023
  ...t["~standard"],
3060
3024
  jsonSchema: {
3061
- input: H(t, "input", e.processors),
3062
- output: H(t, "output", e.processors)
3025
+ input: X(t, "input", e.processors),
3026
+ output: X(t, "output", e.processors)
3063
3027
  }
3064
3028
  },
3065
3029
  enumerable: !1,
@@ -3111,24 +3075,24 @@ function z(e, t) {
3111
3075
  }
3112
3076
  return !1;
3113
3077
  }
3114
- const $o = (e, t = {}) => (n) => {
3115
- const r = St({ ...n, processors: t });
3116
- return A(e, r), wt(r, e), kt(r, e);
3117
- }, H = (e, t, n = {}) => (r) => {
3118
- const { libraryOptions: o, target: s } = r ?? {}, i = St({ ...o ?? {}, target: s, io: t, processors: n });
3119
- return A(e, i), wt(i, e), kt(i, e);
3120
- }, Po = {
3078
+ const Oo = (e, t = {}) => (n) => {
3079
+ const r = wt({ ...n, processors: t });
3080
+ return A(e, r), kt(r, e), St(r, e);
3081
+ }, X = (e, t, n = {}) => (r) => {
3082
+ const { libraryOptions: o, target: s } = r ?? {}, i = wt({ ...o ?? {}, target: s, io: t, processors: n });
3083
+ return A(e, i), kt(i, e), St(i, e);
3084
+ }, Eo = {
3121
3085
  guid: "uuid",
3122
3086
  url: "uri",
3123
3087
  datetime: "date-time",
3124
3088
  json_string: "json-string",
3125
3089
  regex: ""
3126
3090
  // do not set
3127
- }, Zo = (e, t, n, r) => {
3091
+ }, $o = (e, t, n, r) => {
3128
3092
  const o = n;
3129
3093
  o.type = "string";
3130
3094
  const { minimum: s, maximum: i, format: a, patterns: u, contentEncoding: c } = e._zod.bag;
3131
- if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Po[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3095
+ if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Eo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3132
3096
  const p = [...u];
3133
3097
  p.length === 1 ? o.pattern = p[0].source : p.length > 1 && (o.allOf = [
3134
3098
  ...p.map((d) => ({
@@ -3137,22 +3101,22 @@ const $o = (e, t = {}) => (n) => {
3137
3101
  }))
3138
3102
  ]);
3139
3103
  }
3140
- }, Co = (e, t, n, r) => {
3104
+ }, Po = (e, t, n, r) => {
3141
3105
  if (t.unrepresentable === "throw")
3142
3106
  throw new Error("Custom types cannot be represented in JSON Schema");
3143
- }, Io = (e, t, n, r) => {
3107
+ }, Zo = (e, t, n, r) => {
3144
3108
  if (t.unrepresentable === "throw")
3145
3109
  throw new Error("Transforms cannot be represented in JSON Schema");
3146
- }, No = (e, t, n, r) => {
3110
+ }, Co = (e, t, n, r) => {
3147
3111
  const o = n, s = e._zod.def, { minimum: i, maximum: a } = e._zod.bag;
3148
3112
  typeof i == "number" && (o.minItems = i), typeof a == "number" && (o.maxItems = a), o.type = "array", o.items = A(s.element, t, { ...r, path: [...r.path, "items"] });
3149
- }, Mo = (e, t, n, r) => {
3113
+ }, Io = (e, t, n, r) => {
3150
3114
  const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((a, u) => A(a, t, {
3151
3115
  ...r,
3152
3116
  path: [...r.path, s ? "oneOf" : "anyOf", u]
3153
3117
  }));
3154
3118
  s ? n.oneOf = i : n.anyOf = i;
3155
- }, Lo = (e, t, n, r) => {
3119
+ }, No = (e, t, n, r) => {
3156
3120
  const o = e._zod.def, s = A(o.left, t, {
3157
3121
  ...r,
3158
3122
  path: [...r.path, "allOf", 0]
@@ -3164,25 +3128,25 @@ const $o = (e, t = {}) => (n) => {
3164
3128
  ...a(i) ? i.allOf : [i]
3165
3129
  ];
3166
3130
  n.allOf = u;
3167
- }, Do = (e, t, n, r) => {
3131
+ }, Lo = (e, t, n, r) => {
3168
3132
  const o = e._zod.def, s = A(o.innerType, t, r), i = t.seen.get(e);
3169
3133
  t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
3170
- }, Ro = (e, t, n, r) => {
3134
+ }, Mo = (e, t, n, r) => {
3171
3135
  const o = e._zod.def;
3172
3136
  A(o.innerType, t, r);
3173
3137
  const s = t.seen.get(e);
3174
3138
  s.ref = o.innerType;
3175
- }, Fo = (e, t, n, r) => {
3139
+ }, Do = (e, t, n, r) => {
3176
3140
  const o = e._zod.def;
3177
3141
  A(o.innerType, t, r);
3178
3142
  const s = t.seen.get(e);
3179
3143
  s.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
3180
- }, jo = (e, t, n, r) => {
3144
+ }, Ro = (e, t, n, r) => {
3181
3145
  const o = e._zod.def;
3182
3146
  A(o.innerType, t, r);
3183
3147
  const s = t.seen.get(e);
3184
3148
  s.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3185
- }, Wo = (e, t, n, r) => {
3149
+ }, Fo = (e, t, n, r) => {
3186
3150
  const o = e._zod.def;
3187
3151
  A(o.innerType, t, r);
3188
3152
  const s = t.seen.get(e);
@@ -3194,12 +3158,12 @@ const $o = (e, t = {}) => (n) => {
3194
3158
  throw new Error("Dynamic catch values are not supported in JSON Schema");
3195
3159
  }
3196
3160
  n.default = i;
3197
- }, xo = (e, t, n, r) => {
3161
+ }, jo = (e, t, n, r) => {
3198
3162
  const o = e._zod.def, s = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
3199
3163
  A(s, t, r);
3200
3164
  const i = t.seen.get(e);
3201
3165
  i.ref = s;
3202
- }, Uo = (e, t, n, r) => {
3166
+ }, Wo = (e, t, n, r) => {
3203
3167
  const o = e._zod.def;
3204
3168
  A(o.innerType, t, r);
3205
3169
  const s = t.seen.get(e);
@@ -3209,49 +3173,49 @@ const $o = (e, t = {}) => (n) => {
3209
3173
  A(o.innerType, t, r);
3210
3174
  const s = t.seen.get(e);
3211
3175
  s.ref = o.innerType;
3212
- }, Vo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3213
- Pr.init(e, t), ue.init(e, t);
3176
+ }, xo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3177
+ Er.init(e, t), ie.init(e, t);
3178
+ });
3179
+ function Uo(e) {
3180
+ return /* @__PURE__ */ ro(xo, e);
3181
+ }
3182
+ const Vo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3183
+ $r.init(e, t), ie.init(e, t);
3214
3184
  });
3215
3185
  function Jo(e) {
3216
- return /* @__PURE__ */ so(Vo, e);
3186
+ return /* @__PURE__ */ oo(Vo, e);
3217
3187
  }
3218
- const Bo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3219
- Zr.init(e, t), ue.init(e, t);
3188
+ const Bo = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3189
+ Pr.init(e, t), ie.init(e, t);
3220
3190
  });
3221
3191
  function Yo(e) {
3222
- return /* @__PURE__ */ io(Bo, e);
3192
+ return /* @__PURE__ */ so(Bo, e);
3223
3193
  }
3224
- const Go = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3225
- Cr.init(e, t), ue.init(e, t);
3194
+ const Go = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3195
+ Zr.init(e, t), ie.init(e, t);
3226
3196
  });
3227
3197
  function Ko(e) {
3228
- return /* @__PURE__ */ ao(Go, e);
3198
+ return /* @__PURE__ */ io(Go, e);
3229
3199
  }
3230
- const qo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3231
- Ir.init(e, t), ue.init(e, t);
3232
- });
3233
- function Xo(e) {
3234
- return /* @__PURE__ */ uo(qo, e);
3235
- }
3236
- const Ho = (e, t) => {
3200
+ const qo = (e, t) => {
3237
3201
  ut.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3238
3202
  format: {
3239
- value: (n) => xn(e, n)
3203
+ value: (n) => jn(e, n)
3240
3204
  // enumerable: false,
3241
3205
  },
3242
3206
  flatten: {
3243
- value: (n) => Wn(e, n)
3207
+ value: (n) => Fn(e, n)
3244
3208
  // enumerable: false,
3245
3209
  },
3246
3210
  addIssue: {
3247
3211
  value: (n) => {
3248
- e.issues.push(n), e.message = JSON.stringify(e.issues, me, 2);
3212
+ e.issues.push(n), e.message = JSON.stringify(e.issues, pe, 2);
3249
3213
  }
3250
3214
  // enumerable: false,
3251
3215
  },
3252
3216
  addIssues: {
3253
3217
  value: (n) => {
3254
- e.issues.push(...n), e.message = JSON.stringify(e.issues, me, 2);
3218
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, pe, 2);
3255
3219
  }
3256
3220
  // enumerable: false,
3257
3221
  },
@@ -3262,21 +3226,21 @@ const Ho = (e, t) => {
3262
3226
  // enumerable: false,
3263
3227
  }
3264
3228
  });
3265
- }, Z = l("ZodError", Ho, {
3229
+ }, Z = l("ZodError", qo, {
3266
3230
  Parent: Error
3267
- }), Qo = /* @__PURE__ */ ne(Z), es = /* @__PURE__ */ re(Z), ts = /* @__PURE__ */ oe(Z), ns = /* @__PURE__ */ se(Z), rs = /* @__PURE__ */ Jn(Z), os = /* @__PURE__ */ Bn(Z), ss = /* @__PURE__ */ Yn(Z), is = /* @__PURE__ */ Gn(Z), as = /* @__PURE__ */ Kn(Z), us = /* @__PURE__ */ qn(Z), cs = /* @__PURE__ */ Xn(Z), ls = /* @__PURE__ */ Hn(Z), E = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3231
+ }), Xo = /* @__PURE__ */ ee(Z), Ho = /* @__PURE__ */ te(Z), Qo = /* @__PURE__ */ ne(Z), es = /* @__PURE__ */ re(Z), ts = /* @__PURE__ */ Un(Z), ns = /* @__PURE__ */ Vn(Z), rs = /* @__PURE__ */ Jn(Z), os = /* @__PURE__ */ Bn(Z), ss = /* @__PURE__ */ Yn(Z), is = /* @__PURE__ */ Gn(Z), as = /* @__PURE__ */ Kn(Z), us = /* @__PURE__ */ qn(Z), E = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3268
3232
  jsonSchema: {
3269
- input: H(e, "input"),
3270
- output: H(e, "output")
3233
+ input: X(e, "input"),
3234
+ output: X(e, "output")
3271
3235
  }
3272
- }), e.toJSONSchema = $o(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Dn(t, {
3236
+ }), e.toJSONSchema = Oo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Ln(t, {
3273
3237
  checks: [
3274
3238
  ...t.checks ?? [],
3275
3239
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
3276
3240
  ]
3277
3241
  }), {
3278
3242
  parent: !0
3279
- }), e.with = e.check, e.clone = (n, r) => it(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Qo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ts(e, n, r), e.parseAsync = async (n, r) => es(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ns(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => rs(e, n, r), e.decode = (n, r) => os(e, n, r), e.encodeAsync = async (n, r) => ss(e, n, r), e.decodeAsync = async (n, r) => is(e, n, r), e.safeEncode = (n, r) => as(e, n, r), e.safeDecode = (n, r) => us(e, n, r), e.safeEncodeAsync = async (n, r) => cs(e, n, r), e.safeDecodeAsync = async (n, r) => ls(e, n, r), e.refine = (n, r) => e.check(Ls(n, r)), e.superRefine = (n) => e.check(Ds(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => Ue(e), e.exactOptional = () => ws(e), e.nullable = () => Ve(e), e.nullish = () => Ue(Ve(e)), e.nonoptional = (n) => $s(e, n), e.array = () => ms(e), e.or = (n) => hs([e, n]), e.and = (n) => ys(e, n), e.transform = (n) => Je(e, _s(n)), e.default = (n) => zs(e, n), e.prefault = (n) => Os(e, n), e.catch = (n) => Zs(e, n), e.pipe = (n) => Je(e, n), e.readonly = () => Ns(e), e.describe = (n) => {
3243
+ }), e.with = e.check, e.clone = (n, r) => it(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Xo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Qo(e, n, r), e.parseAsync = async (n, r) => Ho(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => es(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ts(e, n, r), e.decode = (n, r) => ns(e, n, r), e.encodeAsync = async (n, r) => rs(e, n, r), e.decodeAsync = async (n, r) => os(e, n, r), e.safeEncode = (n, r) => ss(e, n, r), e.safeDecode = (n, r) => is(e, n, r), e.safeEncodeAsync = async (n, r) => as(e, n, r), e.safeDecodeAsync = async (n, r) => us(e, n, r), e.refine = (n, r) => e.check(Ns(n, r)), e.superRefine = (n) => e.check(Ls(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => xe(e), e.exactOptional = () => vs(e), e.nullable = () => Ue(e), e.nullish = () => xe(Ue(e)), e.nonoptional = (n) => Os(e, n), e.array = () => ps(e), e.or = (n) => ms([e, n]), e.and = (n) => hs(e, n), e.transform = (n) => Ve(e, ys(n)), e.default = (n) => Ss(e, n), e.prefault = (n) => zs(e, n), e.catch = (n) => $s(e, n), e.pipe = (n) => Ve(e, n), e.readonly = () => Cs(e), e.describe = (n) => {
3280
3244
  const r = e.clone();
3281
3245
  return V.add(r, { description: n }), r;
3282
3246
  }, Object.defineProperty(e, "description", {
@@ -3289,40 +3253,40 @@ const Ho = (e, t) => {
3289
3253
  return V.get(e);
3290
3254
  const r = e.clone();
3291
3255
  return V.add(r, n[0]), r;
3292
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), ps = /* @__PURE__ */ l("_ZodString", (e, t) => {
3293
- we.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, o, s) => Zo(e, r, o);
3256
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), cs = /* @__PURE__ */ l("_ZodString", (e, t) => {
3257
+ we.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, o, s) => $o(e, r, o);
3294
3258
  const n = e._zod.bag;
3295
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ bt(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ bo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ _o(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ vo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ae(...r)), e.length = (...r) => e.check(/* @__PURE__ */ yt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ go(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ yo(r)), e.trim = () => e.check(/* @__PURE__ */ wo()), e.normalize = (...r) => e.check(/* @__PURE__ */ So(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ ko()), e.toUpperCase = () => e.check(/* @__PURE__ */ To()), e.slugify = () => e.check(/* @__PURE__ */ zo());
3296
- }), ue = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3297
- P.init(e, t), ps.init(e, t);
3298
- }), ds = /* @__PURE__ */ l("ZodArray", (e, t) => {
3299
- ht.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ W(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ W(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ ae(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ yt(n, r)), e.unwrap = () => e.element;
3259
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ bt(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ go(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ yo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ bo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ se(...r)), e.length = (...r) => e.check(/* @__PURE__ */ yt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ fo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ ho(r)), e.trim = () => e.check(/* @__PURE__ */ vo()), e.normalize = (...r) => e.check(/* @__PURE__ */ _o(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ wo()), e.toUpperCase = () => e.check(/* @__PURE__ */ ko()), e.slugify = () => e.check(/* @__PURE__ */ So());
3260
+ }), ie = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3261
+ P.init(e, t), cs.init(e, t);
3262
+ }), ls = /* @__PURE__ */ l("ZodArray", (e, t) => {
3263
+ ht.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ W(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ W(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ se(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ yt(n, r)), e.unwrap = () => e.element;
3300
3264
  });
3301
- function ms(e, t) {
3302
- return /* @__PURE__ */ Ao(ds, e, t);
3265
+ function ps(e, t) {
3266
+ return /* @__PURE__ */ To(ls, e, t);
3303
3267
  }
3304
- const fs = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3305
- jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.options = t.options;
3268
+ const ds = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3269
+ Rr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n, r, o), e.options = t.options;
3306
3270
  });
3307
- function hs(e, t) {
3308
- return new fs({
3271
+ function ms(e, t) {
3272
+ return new ds({
3309
3273
  type: "union",
3310
3274
  options: e,
3311
3275
  ...h(t)
3312
3276
  });
3313
3277
  }
3314
- const gs = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3315
- Wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o);
3278
+ const fs = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3279
+ Fr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r, o);
3316
3280
  });
3317
- function ys(e, t) {
3318
- return new gs({
3281
+ function hs(e, t) {
3282
+ return new fs({
3319
3283
  type: "intersection",
3320
3284
  left: e,
3321
3285
  right: t
3322
3286
  });
3323
3287
  }
3324
- const bs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3325
- xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n), e._zod.parse = (n, r) => {
3288
+ const gs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3289
+ jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zo(e, n), e._zod.parse = (n, r) => {
3326
3290
  if (r.direction === "backward")
3327
3291
  throw new rt(e.constructor.name);
3328
3292
  n.addIssue = (s) => {
@@ -3337,44 +3301,44 @@ const bs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3337
3301
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
3338
3302
  };
3339
3303
  });
3340
- function _s(e) {
3341
- return new bs({
3304
+ function ys(e) {
3305
+ return new gs({
3342
3306
  type: "transform",
3343
3307
  transform: e
3344
3308
  });
3345
3309
  }
3346
- const vs = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3310
+ const bs = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3347
3311
  ke.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3348
3312
  });
3349
- function Ue(e) {
3350
- return new vs({
3313
+ function xe(e) {
3314
+ return new bs({
3351
3315
  type: "optional",
3352
3316
  innerType: e
3353
3317
  });
3354
3318
  }
3355
- const Ss = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3356
- Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3319
+ const _s = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3320
+ Wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3357
3321
  });
3358
- function ws(e) {
3359
- return new Ss({
3322
+ function vs(e) {
3323
+ return new _s({
3360
3324
  type: "optional",
3361
3325
  innerType: e
3362
3326
  });
3363
3327
  }
3364
- const ks = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3365
- Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3328
+ const ws = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3329
+ xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3366
3330
  });
3367
- function Ve(e) {
3368
- return new ks({
3331
+ function Ue(e) {
3332
+ return new ws({
3369
3333
  type: "nullable",
3370
3334
  innerType: e
3371
3335
  });
3372
3336
  }
3373
- const Ts = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3374
- Jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3337
+ const ks = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3338
+ Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3375
3339
  });
3376
- function zs(e, t) {
3377
- return new Ts({
3340
+ function Ss(e, t) {
3341
+ return new ks({
3378
3342
  type: "default",
3379
3343
  innerType: e,
3380
3344
  get defaultValue() {
@@ -3382,11 +3346,11 @@ function zs(e, t) {
3382
3346
  }
3383
3347
  });
3384
3348
  }
3385
- const As = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3386
- Br.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => jo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3349
+ const Ts = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3350
+ Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3387
3351
  });
3388
- function Os(e, t) {
3389
- return new As({
3352
+ function zs(e, t) {
3353
+ return new Ts({
3390
3354
  type: "prefault",
3391
3355
  innerType: e,
3392
3356
  get defaultValue() {
@@ -3394,59 +3358,59 @@ function Os(e, t) {
3394
3358
  }
3395
3359
  });
3396
3360
  }
3397
- const Es = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3398
- Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3361
+ const As = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3362
+ Jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3399
3363
  });
3400
- function $s(e, t) {
3401
- return new Es({
3364
+ function Os(e, t) {
3365
+ return new As({
3402
3366
  type: "nonoptional",
3403
3367
  innerType: e,
3404
3368
  ...h(t)
3405
3369
  });
3406
3370
  }
3407
- const Ps = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3408
- Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3371
+ const Es = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3372
+ Br.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3409
3373
  });
3410
- function Zs(e, t) {
3411
- return new Ps({
3374
+ function $s(e, t) {
3375
+ return new Es({
3412
3376
  type: "catch",
3413
3377
  innerType: e,
3414
3378
  catchValue: typeof t == "function" ? t : () => t
3415
3379
  });
3416
3380
  }
3417
- const Cs = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3418
- Kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => xo(e, n, r, o), e.in = t.in, e.out = t.out;
3381
+ const Ps = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3382
+ Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => jo(e, n, r, o), e.in = t.in, e.out = t.out;
3419
3383
  });
3420
- function Je(e, t) {
3421
- return new Cs({
3384
+ function Ve(e, t) {
3385
+ return new Ps({
3422
3386
  type: "pipe",
3423
3387
  in: e,
3424
3388
  out: t
3425
3389
  // ...util.normalizeParams(params),
3426
3390
  });
3427
3391
  }
3428
- const Is = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3429
- qr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Uo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3392
+ const Zs = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3393
+ Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3430
3394
  });
3431
- function Ns(e) {
3432
- return new Is({
3395
+ function Cs(e) {
3396
+ return new Zs({
3433
3397
  type: "readonly",
3434
3398
  innerType: e
3435
3399
  });
3436
3400
  }
3437
- const Ms = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3438
- gt.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n);
3401
+ const Is = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3402
+ gt.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Po(e, n);
3439
3403
  });
3440
- function Ls(e, t = {}) {
3441
- return /* @__PURE__ */ _t(Ms, e, t);
3404
+ function Ns(e, t = {}) {
3405
+ return /* @__PURE__ */ _t(Is, e, t);
3442
3406
  }
3443
- function Ds(e) {
3407
+ function Ls(e) {
3444
3408
  return /* @__PURE__ */ vt(e);
3445
3409
  }
3446
3410
  const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3447
3411
  if (!e._zod)
3448
3412
  throw new Error("Uninitialized schema in ZodMiniType.");
3449
- _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Un(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ct(e, n, r), e.parseAsync = async (n, r) => Vn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone({
3413
+ _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Wn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ct(e, n, r), e.parseAsync = async (n, r) => xn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone({
3450
3414
  ...t,
3451
3415
  checks: [
3452
3416
  ...t.checks ?? [],
@@ -3457,141 +3421,141 @@ const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3457
3421
  we.init(e, t), R.init(e, t);
3458
3422
  });
3459
3423
  // @__NO_SIDE_EFFECTS__
3460
- function Be(e) {
3461
- return /* @__PURE__ */ Qr(zt, e);
3424
+ function Je(e) {
3425
+ return /* @__PURE__ */ Xr(zt, e);
3462
3426
  }
3463
3427
  const U = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
3464
3428
  P.init(e, t), zt.init(e, t);
3465
- }), Rs = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3466
- Er.init(e, t), U.init(e, t);
3429
+ }), Ms = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3430
+ Ar.init(e, t), U.init(e, t);
3431
+ });
3432
+ // @__NO_SIDE_EFFECTS__
3433
+ function Ds(e) {
3434
+ return /* @__PURE__ */ Hr(Ms, e);
3435
+ }
3436
+ const Rs = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3437
+ zr.init(e, t), U.init(e, t);
3467
3438
  });
3468
3439
  // @__NO_SIDE_EFFECTS__
3469
3440
  function Fs(e) {
3470
- return /* @__PURE__ */ eo(Rs, e);
3441
+ return /* @__PURE__ */ Qr(Rs, e);
3471
3442
  }
3472
- const js = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3443
+ const js = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3473
3444
  Or.init(e, t), U.init(e, t);
3474
3445
  });
3475
3446
  // @__NO_SIDE_EFFECTS__
3476
3447
  function Ws(e) {
3477
- return /* @__PURE__ */ to(js, e);
3448
+ return /* @__PURE__ */ eo(js, e);
3478
3449
  }
3479
- const xs = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3480
- $r.init(e, t), U.init(e, t);
3450
+ const xs = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3451
+ Cr.init(e, t), U.init(e, t);
3481
3452
  });
3482
3453
  // @__NO_SIDE_EFFECTS__
3483
3454
  function Us(e) {
3484
- return /* @__PURE__ */ no(xs, e);
3455
+ return /* @__PURE__ */ to(xs, e);
3485
3456
  }
3486
- const Vs = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3487
- Nr.init(e, t), U.init(e, t);
3457
+ const Vs = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3458
+ Ir.init(e, t), U.init(e, t);
3488
3459
  });
3489
3460
  // @__NO_SIDE_EFFECTS__
3490
3461
  function Js(e) {
3491
- return /* @__PURE__ */ ro(Vs, e);
3462
+ return /* @__PURE__ */ no(Vs, e);
3492
3463
  }
3493
- const Bs = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3494
- Mr.init(e, t), U.init(e, t);
3464
+ const Bs = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3465
+ Nr.init(e, t), U.init(e, t);
3495
3466
  });
3496
3467
  // @__NO_SIDE_EFFECTS__
3497
3468
  function Ys(e) {
3498
- return /* @__PURE__ */ oo(Bs, e);
3499
- }
3500
- const Gs = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3501
- Lr.init(e, t), U.init(e, t);
3502
- });
3503
- // @__NO_SIDE_EFFECTS__
3504
- function Ks(e) {
3505
- return /* @__PURE__ */ Eo(Gs, "hostname", rr, e);
3469
+ return /* @__PURE__ */ Ao(Bs, "hostname", tr, e);
3506
3470
  }
3507
3471
  const At = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
3508
3472
  ft.init(e, t), R.init(e, t);
3509
3473
  });
3510
3474
  // @__NO_SIDE_EFFECTS__
3511
- function Ye(e) {
3512
- return /* @__PURE__ */ co(At, e);
3475
+ function Be(e) {
3476
+ return /* @__PURE__ */ ao(At, e);
3513
3477
  }
3514
- const qs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3515
- Dr.init(e, t), At.init(e, t);
3478
+ const Gs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3479
+ Lr.init(e, t), At.init(e, t);
3516
3480
  });
3517
3481
  // @__NO_SIDE_EFFECTS__
3518
- function Xs(e) {
3519
- return /* @__PURE__ */ lo(qs, e);
3482
+ function Ks(e) {
3483
+ return /* @__PURE__ */ uo(Gs, e);
3520
3484
  }
3521
- const Hs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3522
- Rr.init(e, t), R.init(e, t);
3485
+ const qs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3486
+ Mr.init(e, t), R.init(e, t);
3523
3487
  });
3524
3488
  // @__NO_SIDE_EFFECTS__
3525
- function Ge(e) {
3526
- return /* @__PURE__ */ po(Hs, e);
3489
+ function Ye(e) {
3490
+ return /* @__PURE__ */ co(qs, e);
3527
3491
  }
3528
- const Qs = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3529
- Fr.init(e, t), R.init(e, t);
3492
+ const Xs = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3493
+ Dr.init(e, t), R.init(e, t);
3530
3494
  });
3531
3495
  // @__NO_SIDE_EFFECTS__
3532
- function ge() {
3533
- return /* @__PURE__ */ mo(Qs);
3496
+ function fe() {
3497
+ return /* @__PURE__ */ lo(Xs);
3534
3498
  }
3535
- const ei = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3499
+ const Hs = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3536
3500
  ht.init(e, t), R.init(e, t);
3537
3501
  });
3538
3502
  // @__NO_SIDE_EFFECTS__
3539
- function Ke(e, t) {
3540
- return new ei({
3503
+ function Ge(e, t) {
3504
+ return new Hs({
3541
3505
  type: "array",
3542
3506
  element: e,
3543
3507
  ...h(t)
3544
3508
  });
3545
3509
  }
3546
- const ti = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3510
+ const Qs = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3547
3511
  ke.init(e, t), R.init(e, t);
3548
3512
  });
3549
3513
  // @__NO_SIDE_EFFECTS__
3550
- function ni(e) {
3551
- return new ti({
3514
+ function ei(e) {
3515
+ return new Qs({
3552
3516
  type: "optional",
3553
3517
  innerType: e
3554
3518
  });
3555
3519
  }
3556
- const ri = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3520
+ const ti = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3557
3521
  gt.init(e, t), R.init(e, t);
3558
3522
  });
3559
3523
  // @__NO_SIDE_EFFECTS__
3560
- function S(e, t = {}) {
3561
- return /* @__PURE__ */ _t(ri, e, t);
3524
+ function w(e, t = {}) {
3525
+ return /* @__PURE__ */ _t(ti, e, t);
3562
3526
  }
3563
3527
  // @__NO_SIDE_EFFECTS__
3564
3528
  function Ot(e) {
3565
3529
  return /* @__PURE__ */ vt(e);
3566
3530
  }
3567
- const ye = {
3568
- email: { schema: /* @__PURE__ */ Fs() },
3569
- hostname: { schema: /* @__PURE__ */ Ks() },
3570
- ipv4: { schema: /* @__PURE__ */ Js() },
3571
- ipv6: { schema: /* @__PURE__ */ Ys() },
3572
- url: { schema: /* @__PURE__ */ Us() },
3573
- uuid: { schema: /* @__PURE__ */ Ws() },
3574
- date: { schema: Yo() },
3575
- time: { schema: Ko() },
3576
- "date-time": { schema: Jo() },
3577
- duration: { schema: Xo() }
3578
- }, oi = Object.keys(ye), si = (e) => (t, n) => {
3531
+ const he = {
3532
+ email: { schema: /* @__PURE__ */ Ds() },
3533
+ hostname: { schema: /* @__PURE__ */ Ys() },
3534
+ ipv4: { schema: /* @__PURE__ */ Us() },
3535
+ ipv6: { schema: /* @__PURE__ */ Js() },
3536
+ url: { schema: /* @__PURE__ */ Ws() },
3537
+ uuid: { schema: /* @__PURE__ */ Fs() },
3538
+ date: { schema: Jo() },
3539
+ time: { schema: Yo() },
3540
+ "date-time": { schema: Uo() },
3541
+ duration: { schema: Ko() }
3542
+ }, ni = Object.keys(he), ri = (e) => (t, n) => {
3579
3543
  switch (t.type) {
3580
3544
  case "string":
3581
- return ii(t, n);
3545
+ return oi(t, n);
3582
3546
  case "integer":
3583
3547
  case "number":
3584
- return ui(t, n);
3548
+ return ii(t, n);
3585
3549
  case "boolean":
3586
- return ci(t, n);
3550
+ return ai(t, n);
3587
3551
  case "array":
3588
- return li(t, n);
3552
+ return ui(t, n);
3589
3553
  case "custom": {
3590
3554
  if (!e)
3591
3555
  throw new Error(
3592
3556
  'Validator type "custom" requires a customValidators object, but it was not supplied.'
3593
3557
  );
3594
- return pi(t, e);
3558
+ return ci(t, e);
3595
3559
  }
3596
3560
  }
3597
3561
  };
@@ -3599,137 +3563,137 @@ function b(e, t) {
3599
3563
  if (e !== void 0)
3600
3564
  return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
3601
3565
  }
3602
- function ii(e, t) {
3603
- return G(e, (n) => {
3566
+ function oi(e, t) {
3567
+ return Y(e, (n) => {
3604
3568
  const r = b(n.messages?.invalid, t);
3605
- let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
3569
+ let o = r ? /* @__PURE__ */ Je(r) : /* @__PURE__ */ Je();
3606
3570
  if (n.required === !0) {
3607
3571
  const s = b(n.messages?.required, t) ?? "This field is required";
3608
- o = o.check(/* @__PURE__ */ S((i) => i.length > 0, { error: s }));
3572
+ o = o.check(/* @__PURE__ */ w((i) => i.length > 0, { error: s }));
3609
3573
  }
3610
3574
  if (typeof n.minLength == "number") {
3611
3575
  const s = b(n.messages?.minLength, t), i = n.minLength;
3612
3576
  o = o.check(
3613
- s ? /* @__PURE__ */ S((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3577
+ s ? /* @__PURE__ */ w((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3614
3578
  );
3615
3579
  }
3616
3580
  if (typeof n.maxLength == "number") {
3617
3581
  const s = b(n.messages?.maxLength, t), i = n.maxLength;
3618
3582
  o = o.check(
3619
- s ? /* @__PURE__ */ S((a) => a.length <= i, { error: s }) : /* @__PURE__ */ ae(i)
3583
+ s ? /* @__PURE__ */ w((a) => a.length <= i, { error: s }) : /* @__PURE__ */ se(i)
3620
3584
  );
3621
3585
  }
3622
3586
  if (typeof n.pattern == "string") {
3623
3587
  const s = b(n.messages?.pattern, t), i = new RegExp(n.pattern);
3624
3588
  o = o.check(
3625
- s ? /* @__PURE__ */ S((a) => i.test(a), { error: s }) : /* @__PURE__ */ bt(i)
3589
+ s ? /* @__PURE__ */ w((a) => i.test(a), { error: s }) : /* @__PURE__ */ bt(i)
3626
3590
  );
3627
3591
  }
3628
3592
  if (n.enum) {
3629
3593
  const s = n.enum, i = b(n.messages?.enum, t);
3630
- o = o.check(/* @__PURE__ */ S((a) => s.includes(a), i ? { error: i } : void 0));
3594
+ o = o.check(/* @__PURE__ */ w((a) => s.includes(a), i ? { error: i } : void 0));
3631
3595
  }
3632
3596
  if (n.const !== void 0) {
3633
3597
  const s = b(n.messages?.const, t);
3634
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3598
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3635
3599
  }
3636
3600
  if (n.format !== void 0)
3637
- if (oi.includes(n.format)) {
3601
+ if (ni.includes(n.format)) {
3638
3602
  const s = b(n.messages?.format, t);
3639
3603
  o = o.check(
3640
3604
  s ? /* @__PURE__ */ Ot((i, a) => {
3641
- const u = qe(
3642
- ye[n.format].schema,
3605
+ const u = Ke(
3606
+ he[n.format].schema,
3643
3607
  i
3644
3608
  );
3645
- Xe(u) || a.addIssue({ code: "custom", path: [], message: s });
3646
- }) : ye[n.format].schema
3609
+ qe(u) || a.addIssue({ code: "custom", path: [], message: s });
3610
+ }) : he[n.format].schema
3647
3611
  );
3648
3612
  } else
3649
3613
  console.error(`The string validation format "${n.format}" is not supported`);
3650
3614
  return o;
3651
3615
  });
3652
3616
  }
3653
- const ai = (e, t) => {
3617
+ const si = (e, t) => {
3654
3618
  if (t === 0)
3655
3619
  return !1;
3656
3620
  const n = e / t;
3657
3621
  return Math.abs(n - Math.round(n)) < 1e-10;
3658
3622
  };
3659
- function ui(e, t) {
3660
- return G(e, (n) => {
3623
+ function ii(e, t) {
3624
+ return Y(e, (n) => {
3661
3625
  const r = b(n.messages?.invalid, t);
3662
- let o = r ? /* @__PURE__ */ Ye(r) : /* @__PURE__ */ Ye();
3663
- if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Xs())), n.minimum !== void 0) {
3626
+ let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
3627
+ if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Ks())), n.minimum !== void 0) {
3664
3628
  const s = b(n.messages?.minimum, t), i = n.minimum;
3665
- o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ ho(i));
3629
+ o = o.check(s ? /* @__PURE__ */ w((a) => a >= i, { error: s }) : /* @__PURE__ */ mo(i));
3666
3630
  }
3667
3631
  if (n.maximum !== void 0) {
3668
3632
  const s = b(n.messages?.maximum, t), i = n.maximum;
3669
- o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ fo(i));
3633
+ o = o.check(s ? /* @__PURE__ */ w((a) => a <= i, { error: s }) : /* @__PURE__ */ po(i));
3670
3634
  }
3671
3635
  if (n.exclusiveMinimum !== void 0) {
3672
3636
  const s = b(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
3673
- o = o.check(/* @__PURE__ */ S((a) => a > i, s ? { error: s } : void 0));
3637
+ o = o.check(/* @__PURE__ */ w((a) => a > i, s ? { error: s } : void 0));
3674
3638
  }
3675
3639
  if (n.exclusiveMaximum !== void 0) {
3676
3640
  const s = b(n.messages?.exclusiveMaximum, t), i = n.exclusiveMaximum;
3677
- o = o.check(/* @__PURE__ */ S((a) => a < i, s ? { error: s } : void 0));
3641
+ o = o.check(/* @__PURE__ */ w((a) => a < i, s ? { error: s } : void 0));
3678
3642
  }
3679
3643
  if (n.multipleOf !== void 0) {
3680
3644
  const s = b(n.messages?.multipleOf, t), i = n.multipleOf;
3681
3645
  o = o.check(
3682
- /* @__PURE__ */ S((a) => ai(a, i), s ? { error: s } : void 0)
3646
+ /* @__PURE__ */ w((a) => si(a, i), s ? { error: s } : void 0)
3683
3647
  );
3684
3648
  }
3685
3649
  if (n.enum) {
3686
3650
  const s = n.enum, i = b(n.messages?.enum, t);
3687
- o = o.check(/* @__PURE__ */ S((a) => s.includes(a), i ? { error: i } : void 0));
3651
+ o = o.check(/* @__PURE__ */ w((a) => s.includes(a), i ? { error: i } : void 0));
3688
3652
  }
3689
3653
  if (n.const !== void 0) {
3690
3654
  const s = b(n.messages?.const, t);
3691
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3655
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3692
3656
  }
3693
3657
  return o;
3694
3658
  });
3695
3659
  }
3696
- function ci(e, t) {
3697
- return G(e, (n) => {
3660
+ function ai(e, t) {
3661
+ return Y(e, (n) => {
3698
3662
  const r = b(n.messages?.invalid, t);
3699
- let o = r ? /* @__PURE__ */ Ge(r) : /* @__PURE__ */ Ge();
3663
+ let o = r ? /* @__PURE__ */ Ye(r) : /* @__PURE__ */ Ye();
3700
3664
  if (n.const !== void 0) {
3701
3665
  const s = b(n.messages?.const, t);
3702
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3666
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3703
3667
  }
3704
3668
  return o;
3705
3669
  });
3706
3670
  }
3707
- function li(e, t) {
3708
- return G(e, (n) => {
3671
+ function ui(e, t) {
3672
+ return Y(e, (n) => {
3709
3673
  const r = b(n.messages?.invalid, t);
3710
- let o = r ? /* @__PURE__ */ Ke(/* @__PURE__ */ ge(), r) : /* @__PURE__ */ Ke(/* @__PURE__ */ ge());
3674
+ let o = r ? /* @__PURE__ */ Ge(/* @__PURE__ */ fe(), r) : /* @__PURE__ */ Ge(/* @__PURE__ */ fe());
3711
3675
  if (n.required === !0) {
3712
3676
  const s = b(n.messages?.required, t) ?? "This field is required";
3713
- o = o.check(/* @__PURE__ */ S((i) => i.length > 0, { error: s }));
3677
+ o = o.check(/* @__PURE__ */ w((i) => i.length > 0, { error: s }));
3714
3678
  }
3715
3679
  if (typeof n.minItems == "number") {
3716
3680
  const s = b(n.messages?.minItems, t), i = n.minItems;
3717
3681
  o = o.check(
3718
- s ? /* @__PURE__ */ S((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3682
+ s ? /* @__PURE__ */ w((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3719
3683
  );
3720
3684
  }
3721
3685
  if (typeof n.maxItems == "number") {
3722
3686
  const s = b(n.messages?.maxItems, t), i = n.maxItems;
3723
3687
  o = o.check(
3724
- s ? /* @__PURE__ */ S((a) => a.length <= i, { error: s }) : /* @__PURE__ */ ae(i)
3688
+ s ? /* @__PURE__ */ w((a) => a.length <= i, { error: s }) : /* @__PURE__ */ se(i)
3725
3689
  );
3726
3690
  }
3727
3691
  return o;
3728
3692
  });
3729
3693
  }
3730
- function pi(e, t) {
3731
- return G(e, (n) => {
3732
- let r = /* @__PURE__ */ ge();
3694
+ function ci(e, t) {
3695
+ return Y(e, (n) => {
3696
+ let r = /* @__PURE__ */ fe();
3733
3697
  return Pt(
3734
3698
  Object.keys(n),
3735
3699
  // filter non-custom validator keys
@@ -3738,11 +3702,11 @@ function pi(e, t) {
3738
3702
  const s = n[o], i = t[o], a = i(s);
3739
3703
  r = r.check(
3740
3704
  /* @__PURE__ */ Ot((u, c) => {
3741
- const p = qe(
3705
+ const p = Ke(
3742
3706
  a,
3743
3707
  u
3744
3708
  );
3745
- if (!Xe(p)) {
3709
+ if (!qe(p)) {
3746
3710
  const d = p.issues[0];
3747
3711
  c.addIssue({
3748
3712
  code: "custom",
@@ -3756,11 +3720,11 @@ function pi(e, t) {
3756
3720
  ), r;
3757
3721
  });
3758
3722
  }
3759
- function G(e, t) {
3723
+ function Y(e, t) {
3760
3724
  const n = t(e);
3761
- return e.required ? n : /* @__PURE__ */ ni(n);
3725
+ return e.required ? n : /* @__PURE__ */ ei(n);
3762
3726
  }
3763
- const di = {
3727
+ const li = {
3764
3728
  // ACTION
3765
3729
  button: async () => (await import("./button.element-ATNRRDN3.js")).ButtonElement,
3766
3730
  // INPUTS
@@ -3794,10 +3758,10 @@ const di = {
3794
3758
  markdownText: async () => (await import("./markdown-text.element-C_1OqrGa.js")).MarkdownTextElement,
3795
3759
  renderer: async () => (await import("./renderer.element-DMsheQGi.js")).RendererElement
3796
3760
  };
3797
- var mi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ce = (e, t, n, r) => {
3798
- for (var o = r > 1 ? void 0 : r ? fi(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3761
+ var pi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, ae = (e, t, n, r) => {
3762
+ for (var o = r > 1 ? void 0 : r ? di(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3799
3763
  (i = e[s]) && (o = (r ? i(t, n, o) : i(o)) || o);
3800
- return r && o && mi(t, n, o), o;
3764
+ return r && o && pi(t, n, o), o;
3801
3765
  };
3802
3766
  let B = class extends Zt {
3803
3767
  constructor() {
@@ -3813,10 +3777,10 @@ let B = class extends Zt {
3813
3777
  return this;
3814
3778
  }
3815
3779
  render() {
3816
- const e = this.config, t = Mn(e.formDef, e.formSelectors, e.formConfig), n = {
3780
+ const e = this.config, t = In(e.formDef, e.formSelectors, e.formConfig), n = {
3817
3781
  formDef: t.formDef,
3818
3782
  widgetLoaders: {
3819
- ...di,
3783
+ ...li,
3820
3784
  ...t.widgetLoaders,
3821
3785
  ...e.customWidgetLoaders ?? {}
3822
3786
  },
@@ -3831,7 +3795,7 @@ let B = class extends Zt {
3831
3795
  data: e.data,
3832
3796
  meta: e.meta,
3833
3797
  formName: e.formName
3834
- }, r = si({
3798
+ }, r = ri({
3835
3799
  ...e.customValidators ?? {}
3836
3800
  }), o = t.formEvent, s = o ? (i) => o(i.detail) : void 0;
3837
3801
  return Ct`
@@ -3844,19 +3808,19 @@ let B = class extends Zt {
3844
3808
  `;
3845
3809
  }
3846
3810
  };
3847
- ce([
3848
- He({ attribute: !1 })
3811
+ ae([
3812
+ Xe({ attribute: !1 })
3849
3813
  ], B.prototype, "config", 2);
3850
- ce([
3851
- He({ type: String })
3814
+ ae([
3815
+ Xe({ type: String })
3852
3816
  ], B.prototype, "autocomplete", 2);
3853
- ce([
3817
+ ae([
3854
3818
  It("gui-core-form")
3855
3819
  ], B.prototype, "coreForm", 2);
3856
- B = ce([
3820
+ B = ae([
3857
3821
  Nt("gui-form")
3858
3822
  ], B);
3859
3823
  export {
3860
3824
  B as FormElement,
3861
- di as widgetLoaders
3825
+ li as widgetLoaders
3862
3826
  };