@golemui/gui-lit 0.13.0 → 0.13.2

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,47 +1,14 @@
1
+ import { filterTap as Pt, standardValidate as qe, isStandardValidateSuccess as Xe } from "@golemui/core";
1
2
  import "@golemui/gui-shared";
2
3
  import "@golemui/lit";
3
- import { filterTap as Pt, standardValidate as qe, isStandardValidateSuccess as Xe } from "@golemui/core";
4
4
  import { LitElement as Zt, html as Ct } from "lit";
5
5
  import { property as He, query as It, customElement as Nt } from "lit/decorators.js";
6
- const Mt = {
7
- // ACTION
8
- button: async () => (await import("./button.element-ATNRRDN3.js")).ButtonElement,
9
- // INPUTS
10
- calendar: async () => (await import("./calendar.element-O2of7VBr.js")).CalendarElement,
11
- rangeCalendar: async () => (await import("./range-calendar.element-C-4qqRGK.js")).RangeCalendarElement,
12
- rangeDateInput: async () => (await import("./range-date-input.element-Iq5Y7uLQ.js")).RangeDateInputElement,
13
- rangeDatePicker: async () => (await import("./range-date-picker.element-4bg4Uraq.js")).RangeDatePickerElement,
14
- currency: async () => (await import("./currency.element-C7SZkoPP.js")).CurrencyElement,
15
- dateInput: async () => (await import("./date.element-DfXmcgZi.js")).DateElement,
16
- datePicker: async () => (await import("./date-picker.element-Bcyhc0fb.js")).DatePickerElement,
17
- dropdown: async () => (await import("./dropdown.element-DCUI5Y7I.js")).DropdownElement,
18
- list: async () => (await import("./list.element-G8RNRZXU.js")).ListElement,
19
- markdown: async () => (await import("./markdown.element-CT1JOOM3.js")).MarkdownElement,
20
- password: async () => (await import("./password.element-B4-0SCe4.js")).PasswordElement,
21
- textinput: async () => (await import("./textinput.element-DKuplF1A.js")).TextinputElement,
22
- textarea: async () => (await import("./textarea.element-C8yx2u0o.js")).TextareaElement,
23
- toggle: async () => (await import("./toggle.element-NXRrhALB.js")).ToggleElement,
24
- checkbox: async () => (await import("./checkbox.element-DMmer4Jw.js")).CheckboxElement,
25
- number: async () => (await import("./number.element-HaXEg_7U.js")).NumberElement,
26
- radiogroup: async () => (await import("./radiogroup.element-DzHLgRh1.js")).RadiogroupElement,
27
- select: async () => (await import("./select.element-DuGZjlZY.js")).SelectElement,
28
- // REPEATER
29
- repeater: async () => (await import("./repeater.element-Ry8HyMfW.js")).RepeaterElement,
30
- // LAYOUTS
31
- flex: async () => (await import("./flex.element-B0sG0YT1.js")).FlexElement,
32
- grid: async () => (await import("./grid.element-Bf5aEjkj.js")).GridElement,
33
- tabs: async () => (await import("./tabs.element-VLrtF1j5.js")).TabsElement,
34
- accordion: async () => (await import("./accordion.element-ChLmV6QT.js")).AccordionElement,
35
- // DISPLAY
36
- alert: async () => (await import("./alert.element-9QFlqjj9.js")).AlertElement,
37
- markdownText: async () => (await import("./markdown-text.element-C_1OqrGa.js")).MarkdownTextElement,
38
- renderer: async () => (await import("./renderer.element-DMsheQGi.js")).RendererElement
39
- }, Q = {
6
+ const Q = {
40
7
  ACTIONS: "ACTIONS",
41
8
  LAYOUTS: "LAYOUTS",
42
9
  DISPLAYS: "DISPLAYS"
43
10
  };
44
- function Lt(e) {
11
+ function Mt(e) {
45
12
  return function(t, n = () => !0) {
46
13
  return {
47
14
  kind: "leaf",
@@ -104,25 +71,25 @@ function y(e) {
104
71
  ...e.getChildren ? { getChildren: e.getChildren } : {}
105
72
  };
106
73
  Qe(e.itemType, o);
107
- const s = Lt(e.itemType);
74
+ const s = Mt(e.itemType);
108
75
  return { gsl: s, gslByUid: (a, u) => s(u, ((c) => c.uid === a)) };
109
76
  }
110
- function Dt(e) {
77
+ function Lt(e) {
111
78
  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()) : "";
112
79
  }
113
80
  function w(e, t) {
114
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Dt(e.path) };
81
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Lt(e.path) };
115
82
  }
116
83
  function N(e, t) {
117
84
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
118
85
  }
119
- const Rt = (e, t) => ({
86
+ const Dt = (e, t) => ({
120
87
  type: "ITEMS",
121
88
  itemType: Q.DISPLAYS,
122
89
  items: [{ render: e }],
123
90
  tags: []
124
91
  });
125
- class Ft {
92
+ class Rt {
126
93
  /**
127
94
  * Deep merges two objects, with right taking precedence over left when properties conflict.
128
95
  * Arrays are replaced, not merged.
@@ -141,8 +108,8 @@ class Ft {
141
108
  return r;
142
109
  }
143
110
  }
144
- const jt = new Ft();
145
- function Wt(e, t) {
111
+ const Ft = new Rt();
112
+ function jt(e, t) {
146
113
  return {
147
114
  items: [e],
148
115
  type: "ITEMS",
@@ -150,7 +117,7 @@ function Wt(e, t) {
150
117
  tags: t ?? []
151
118
  };
152
119
  }
153
- const xt = (e) => Wt({
120
+ const Wt = (e) => jt({
154
121
  uid: "#submit",
155
122
  label: "Submit"
156
123
  }), tt = {
@@ -178,11 +145,11 @@ const xt = (e) => Wt({
178
145
  DISPLAYS: /* @__PURE__ */ new Set(["DISPLAYS", "ALERTS", "CUSTOM_DISPLAY"]),
179
146
  LAYOUTS: /* @__PURE__ */ new Set(["LAYOUTS", "TABS", "ACCORDION", "CUSTOM_LAYOUT"])
180
147
  };
181
- function Ut(e, t) {
148
+ function xt(e, t) {
182
149
  const n = tt[e];
183
150
  return n ? n.has(t) : e === t;
184
151
  }
185
- class Vt {
152
+ class Ut {
186
153
  resolve(t, n) {
187
154
  const r = [];
188
155
  for (const s of n)
@@ -199,7 +166,7 @@ class Vt {
199
166
  this.collectFromLeaf(o, n, r);
200
167
  }
201
168
  collectFromLeaf(t, n, r) {
202
- Ut(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
169
+ xt(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
203
170
  }
204
171
  rollUpSensibleDefaults(t) {
205
172
  const n = /* @__PURE__ */ new Map(), r = (s, i) => {
@@ -219,8 +186,8 @@ class Vt {
219
186
  return o;
220
187
  }
221
188
  }
222
- const Jt = new Vt();
223
- class Bt {
189
+ const Vt = new Ut();
190
+ class Jt {
224
191
  constructor(t) {
225
192
  this.objectUtils = t;
226
193
  }
@@ -301,8 +268,8 @@ class Bt {
301
268
  };
302
269
  }
303
270
  }
304
- const Yt = new Bt(jt);
305
- class Gt {
271
+ const Bt = new Jt(Ft);
272
+ class Yt {
306
273
  mapToWidget(t, n) {
307
274
  if (t.kind === "dynamic") {
308
275
  const r = t.fn;
@@ -325,8 +292,8 @@ class Gt {
325
292
  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;
326
293
  }
327
294
  }
328
- const Kt = new Gt();
329
- class qt {
295
+ const Gt = new Yt();
296
+ class Kt {
330
297
  /**
331
298
  * Ensures the output is always a uniform GslSelector[] of aggregated selectors.
332
299
  *
@@ -353,13 +320,13 @@ class qt {
353
320
  };
354
321
  }
355
322
  }
356
- const Xt = new qt(), nt = {
323
+ const qt = new Kt(), nt = {
357
324
  onLoad: "load",
358
325
  onChange: "change",
359
326
  onFilter: "filter",
360
327
  onBlur: "blur"
361
- }, Ht = Object.keys(nt);
362
- class Qt {
328
+ }, Xt = Object.keys(nt);
329
+ class Ht {
363
330
  // ── Action-specific: onClick + submit ─────────────────────────
364
331
  extractOnClickFromMergeResult(t, n, r, o) {
365
332
  if (t.kind === "dynamic") {
@@ -420,7 +387,7 @@ class Qt {
420
387
  const o = { ...t.on || {} };
421
388
  let s = !1;
422
389
  const i = { ...t };
423
- for (const a of Ht) {
390
+ for (const a of Xt) {
424
391
  const u = t[a];
425
392
  if (u == null) continue;
426
393
  const c = nt[a];
@@ -433,7 +400,7 @@ class Qt {
433
400
  return s && (i.on = o), i;
434
401
  }
435
402
  }
436
- const ee = new Qt(), en = {
403
+ const ee = new Ht(), Qt = {
437
404
  input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
438
405
  action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
439
406
  layout: /* @__PURE__ */ new Set(["size"]),
@@ -444,7 +411,7 @@ const ee = new Qt(), en = {
444
411
  onFilter: "filter",
445
412
  onClick: "click"
446
413
  };
447
- class tn {
414
+ class en {
448
415
  /**
449
416
  * Extracts `states` from a merge result, combining with state-targeted
450
417
  * GSL leaf selectors from `_gslStates`.
@@ -494,7 +461,7 @@ class tn {
494
461
  const { stateOverrides: s } = n;
495
462
  if (Object.keys(s).length === 0)
496
463
  return t;
497
- const i = { ...t }, a = t.kind, u = en[a] || /* @__PURE__ */ new Set();
464
+ const i = { ...t }, a = t.kind, u = Qt[a] || /* @__PURE__ */ new Set();
498
465
  t.props && (i.props = { ...t.props }), t.on && (i.on = { ...t.on });
499
466
  for (const [c, p] of Object.entries(s))
500
467
  for (const [d, m] of Object.entries(p))
@@ -523,17 +490,17 @@ class tn {
523
490
  } else typeof o == "string" && (t.on[`${a}.${n}`] = o);
524
491
  }
525
492
  }
526
- const nn = new tn();
527
- function rn() {
493
+ const tn = new en();
494
+ function nn() {
528
495
  let e = 0;
529
496
  return { next: () => `event_${e++}` };
530
497
  }
531
- class on {
498
+ class rn {
532
499
  constructor(t, n, r, o, s) {
533
500
  this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = s;
534
501
  }
535
502
  walkAndMap(t, n, r) {
536
- const o = /* @__PURE__ */ new Map(), s = rn(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
503
+ const o = /* @__PURE__ */ new Map(), s = nn(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
537
504
  return { widgets: this.walkItems(
538
505
  t,
539
506
  n,
@@ -681,19 +648,19 @@ function v(e) {
681
648
  function O(e, t) {
682
649
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
683
650
  }
684
- function sn(e) {
651
+ function on(e) {
685
652
  switch (e.type) {
686
653
  case "text":
687
- return un(e);
654
+ return an(e);
688
655
  case "number":
689
- return cn(e);
656
+ return un(e);
690
657
  case "boolean":
691
- return an(e);
658
+ return sn(e);
692
659
  default:
693
660
  throw new Error(`Unsupported field type "${e.type}"`);
694
661
  }
695
662
  }
696
- function an(e) {
663
+ function sn(e) {
697
664
  const t = v(e);
698
665
  return {
699
666
  uid: e.uid ?? "",
@@ -707,7 +674,7 @@ function an(e) {
707
674
  props: t
708
675
  };
709
676
  }
710
- function un(e) {
677
+ function an(e) {
711
678
  const t = v(e);
712
679
  return {
713
680
  uid: e.uid ?? "",
@@ -724,7 +691,7 @@ function un(e) {
724
691
  validator: O(e.validator, "string")
725
692
  };
726
693
  }
727
- function cn(e) {
694
+ function un(e) {
728
695
  const t = v(e);
729
696
  return {
730
697
  uid: e.uid ?? "",
@@ -755,9 +722,9 @@ y({
755
722
  return n = N(n, t), n;
756
723
  }
757
724
  },
758
- mapToWidget: sn
725
+ mapToWidget: on
759
726
  });
760
- function ln(e) {
727
+ function cn(e) {
761
728
  const {
762
729
  uid: t,
763
730
  label: n,
@@ -786,7 +753,7 @@ function ln(e) {
786
753
  y({
787
754
  itemType: "ACTIONS",
788
755
  entryShape: "bare",
789
- mapToWidget: ln,
756
+ mapToWidget: cn,
790
757
  afterMerge: (e, t) => ee.extractOnClickFromMergeResult(
791
758
  e,
792
759
  t.eventRegistry,
@@ -794,7 +761,7 @@ y({
794
761
  t.eventIdGenerator
795
762
  )
796
763
  });
797
- function pn(e) {
764
+ function ln(e) {
798
765
  const {
799
766
  uid: t,
800
767
  widgetName: n,
@@ -816,7 +783,7 @@ function pn(e) {
816
783
  children: []
817
784
  };
818
785
  }
819
- function dn(e, t) {
786
+ function pn(e, t) {
820
787
  const n = t.walkChildren(t.children ?? []);
821
788
  if (e.kind === "static")
822
789
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
@@ -826,17 +793,17 @@ function dn(e, t) {
826
793
  return { ...t.mapStaticDef(s, "LAYOUTS"), children: n };
827
794
  });
828
795
  }
829
- function mn(e) {
796
+ function dn(e) {
830
797
  return e.children;
831
798
  }
832
799
  y({
833
800
  itemType: "LAYOUTS",
834
801
  entryShape: "compound",
835
- mapToWidget: pn,
836
- buildCustomWidget: dn,
837
- getChildren: mn
802
+ mapToWidget: ln,
803
+ buildCustomWidget: pn,
804
+ getChildren: dn
838
805
  });
839
- function fn(e) {
806
+ function mn(e) {
840
807
  return {
841
808
  uid: "",
842
809
  kind: "display",
@@ -844,7 +811,7 @@ function fn(e) {
844
811
  props: { render: e.render }
845
812
  };
846
813
  }
847
- function hn(e, t) {
814
+ function fn(e, t) {
848
815
  if (e.kind === "static") {
849
816
  const r = e.def;
850
817
  return ((o) => ({
@@ -872,8 +839,8 @@ function hn(e, t) {
872
839
  y({
873
840
  itemType: "DISPLAYS",
874
841
  entryShape: "bare",
875
- mapToWidget: fn,
876
- buildCustomWidget: hn
842
+ mapToWidget: mn,
843
+ buildCustomWidget: fn
877
844
  });
878
845
  y({
879
846
  itemType: "CALENDAR",
@@ -1055,7 +1022,7 @@ y({
1055
1022
  props: v(e)
1056
1023
  })
1057
1024
  });
1058
- function gn(e) {
1025
+ function hn(e) {
1059
1026
  return {
1060
1027
  uid: e.uid ?? "",
1061
1028
  kind: "layout",
@@ -1068,7 +1035,7 @@ function gn(e) {
1068
1035
  children: []
1069
1036
  };
1070
1037
  }
1071
- function yn(e, t) {
1038
+ function gn(e, t) {
1072
1039
  const n = t.walkChildren(t.children ?? []);
1073
1040
  if (e.kind === "static")
1074
1041
  return { ...t.mapStaticDef(e.def, "TABS"), children: n };
@@ -1078,15 +1045,15 @@ function yn(e, t) {
1078
1045
  return { ...t.mapStaticDef(s, "TABS"), children: n };
1079
1046
  });
1080
1047
  }
1081
- function bn(e) {
1048
+ function yn(e) {
1082
1049
  return e.children;
1083
1050
  }
1084
1051
  y({
1085
1052
  itemType: "TABS",
1086
1053
  entryShape: "compound",
1087
- mapToWidget: gn,
1088
- buildCustomWidget: yn,
1089
- getChildren: bn
1054
+ mapToWidget: hn,
1055
+ buildCustomWidget: gn,
1056
+ getChildren: yn
1090
1057
  });
1091
1058
  y({
1092
1059
  itemType: "LIST",
@@ -1167,7 +1134,7 @@ y({
1167
1134
  props: v(e)
1168
1135
  })
1169
1136
  });
1170
- function _n(e) {
1137
+ function bn(e) {
1171
1138
  return {
1172
1139
  uid: e.uid ?? "",
1173
1140
  kind: "layout",
@@ -1181,7 +1148,7 @@ function _n(e) {
1181
1148
  children: []
1182
1149
  };
1183
1150
  }
1184
- function vn(e, t) {
1151
+ function _n(e, t) {
1185
1152
  const n = t.walkChildren(t.children ?? []);
1186
1153
  if (e.kind === "static")
1187
1154
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
@@ -1191,21 +1158,21 @@ function vn(e, t) {
1191
1158
  return { ...t.mapStaticDef(s, "ACCORDION"), children: n };
1192
1159
  });
1193
1160
  }
1194
- function Sn(e) {
1161
+ function vn(e) {
1195
1162
  return e.children;
1196
1163
  }
1197
1164
  y({
1198
1165
  itemType: "ACCORDION",
1199
1166
  entryShape: "compound",
1200
- mapToWidget: _n,
1201
- buildCustomWidget: vn,
1202
- getChildren: Sn
1167
+ mapToWidget: bn,
1168
+ buildCustomWidget: _n,
1169
+ getChildren: vn
1203
1170
  });
1204
- function wn(e) {
1171
+ function Sn(e) {
1205
1172
  const t = {};
1206
1173
  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;
1207
1174
  }
1208
- function kn(e) {
1175
+ function wn(e) {
1209
1176
  return {
1210
1177
  uid: e.uid ?? "",
1211
1178
  kind: "input",
@@ -1216,7 +1183,7 @@ function kn(e) {
1216
1183
  ...e.readonly != null ? { readonly: e.readonly } : {},
1217
1184
  ...e.validator != null ? { validator: O(e.validator, "array") } : {},
1218
1185
  props: {
1219
- ...wn(e),
1186
+ ...Sn(e),
1220
1187
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
1221
1188
  }
1222
1189
  };
@@ -1230,7 +1197,7 @@ function de(e, t) {
1230
1197
  o?.template?.children && Array.isArray(o.template.children) && de(o.template.children, t);
1231
1198
  }
1232
1199
  }
1233
- function Tn(e, t) {
1200
+ function kn(e, t) {
1234
1201
  const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
1235
1202
  r && de(n, r + ".items.");
1236
1203
  const o = {
@@ -1256,25 +1223,25 @@ function Tn(e, t) {
1256
1223
  };
1257
1224
  });
1258
1225
  }
1259
- function zn(e) {
1226
+ function Tn(e) {
1260
1227
  return {
1261
1228
  baseDef: e.def,
1262
1229
  path: e.key,
1263
1230
  children: e.children
1264
1231
  };
1265
1232
  }
1266
- function An(e) {
1233
+ function zn(e) {
1267
1234
  return e.children;
1268
1235
  }
1269
- const On = {
1270
- parseEntry: zn,
1236
+ const An = {
1237
+ parseEntry: Tn,
1271
1238
  rollUpSensibleDefaults: () => ({}),
1272
1239
  applySensibleDefaults: (e) => e,
1273
- mapToWidget: kn,
1274
- buildCustomWidget: Tn,
1275
- getChildren: An
1240
+ mapToWidget: wn,
1241
+ buildCustomWidget: kn,
1242
+ getChildren: zn
1276
1243
  };
1277
- Qe("REPEATER", On);
1244
+ Qe("REPEATER", An);
1278
1245
  y({
1279
1246
  itemType: "MARKDOWN",
1280
1247
  entryShape: "keyed",
@@ -1408,7 +1375,7 @@ y({
1408
1375
  t.eventIdGenerator
1409
1376
  )
1410
1377
  });
1411
- function En(e) {
1378
+ function On(e) {
1412
1379
  return {
1413
1380
  uid: e.uid ?? "",
1414
1381
  kind: "layout",
@@ -1417,7 +1384,7 @@ function En(e) {
1417
1384
  children: []
1418
1385
  };
1419
1386
  }
1420
- function $n(e, t) {
1387
+ function En(e, t) {
1421
1388
  const n = t.walkChildren(t.children ?? []);
1422
1389
  if (e.kind === "static")
1423
1390
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
@@ -1427,17 +1394,17 @@ function $n(e, t) {
1427
1394
  return { ...t.mapStaticDef(s, "CUSTOM_LAYOUT"), children: n };
1428
1395
  });
1429
1396
  }
1430
- function Pn(e) {
1397
+ function $n(e) {
1431
1398
  return e.children;
1432
1399
  }
1433
1400
  y({
1434
1401
  itemType: "CUSTOM_LAYOUT",
1435
1402
  entryShape: "compound",
1436
- mapToWidget: En,
1437
- buildCustomWidget: $n,
1438
- getChildren: Pn
1403
+ mapToWidget: On,
1404
+ buildCustomWidget: En,
1405
+ getChildren: $n
1439
1406
  });
1440
- class Zn {
1407
+ class Pn {
1441
1408
  constructor(t, n, r) {
1442
1409
  this.selectorNormalizer = t, this.eventWiring = n, this.walker = r;
1443
1410
  }
@@ -1467,7 +1434,7 @@ class Zn {
1467
1434
  */
1468
1435
  prepareForm(t, n, r) {
1469
1436
  const s = (Array.isArray(t) ? [...t] : [t]).map(
1470
- (c) => typeof c == "function" ? Rt(c) : c
1437
+ (c) => typeof c == "function" ? Dt(c) : c
1471
1438
  ), i = this.selectorNormalizer.normalizeSelectors(n), a = {
1472
1439
  ...this.selectorNormalizer.extractFormConfig(),
1473
1440
  ...r
@@ -1476,7 +1443,7 @@ class Zn {
1476
1443
  throw new Error(
1477
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'.`
1478
1445
  );
1479
- if (!a.suppressAutomaticSubmit && u === 0 && s.push(xt()), !a.suppressAutomaticStack) {
1446
+ if (!a.suppressAutomaticSubmit && u === 0 && s.push(Wt()), !a.suppressAutomaticStack) {
1480
1447
  const c = {
1481
1448
  def: { uid: "#root", direction: "column", widgetName: "flex" },
1482
1449
  children: s
@@ -1528,14 +1495,14 @@ class Zn {
1528
1495
  }), 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;
1529
1496
  }
1530
1497
  }
1531
- const Cn = new on(
1532
- Jt,
1533
- Yt,
1534
- Kt,
1498
+ const Zn = new rn(
1499
+ Vt,
1500
+ Bt,
1501
+ Gt,
1535
1502
  ee,
1536
- nn
1537
- ), In = new Zn(Xt, ee, Cn);
1538
- function Nn(e) {
1503
+ tn
1504
+ ), Cn = new Pn(qt, ee, Zn);
1505
+ function In(e) {
1539
1506
  return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Ee) : Ee(e);
1540
1507
  }
1541
1508
  function Ee(e) {
@@ -1544,21 +1511,21 @@ function Ee(e) {
1544
1511
  const t = e;
1545
1512
  return t.type === "ITEMS" && typeof t.itemType == "string";
1546
1513
  }
1547
- const $e = Object.freeze({}), Mn = Object.freeze({}), Pe = /* @__PURE__ */ new WeakMap();
1514
+ const $e = Object.freeze({}), Nn = Object.freeze({}), Pe = /* @__PURE__ */ new WeakMap();
1548
1515
  function pe(e, t) {
1549
1516
  return e == null ? t : typeof e == "object" ? e : {};
1550
1517
  }
1551
- function Ln(e, t, n) {
1552
- if (!Nn(e))
1518
+ function Mn(e, t, n) {
1519
+ if (!In(e))
1553
1520
  return { formDef: e };
1554
- const r = pe(e, $e), o = pe(t, $e), s = pe(n, Mn);
1521
+ const r = pe(e, $e), o = pe(t, $e), s = pe(n, Nn);
1555
1522
  let i = Pe.get(r);
1556
1523
  i || (i = /* @__PURE__ */ new WeakMap(), Pe.set(r, i));
1557
1524
  let a = i.get(o);
1558
1525
  a || (a = /* @__PURE__ */ new WeakMap(), i.set(o, a));
1559
1526
  const u = a.get(s);
1560
1527
  if (u) return u;
1561
- const c = In.processDxFacade(
1528
+ const c = Cn.processDxFacade(
1562
1529
  e,
1563
1530
  t,
1564
1531
  n
@@ -1616,9 +1583,9 @@ class rt extends Error {
1616
1583
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
1617
1584
  }
1618
1585
  }
1619
- const Dn = {};
1586
+ const Ln = {};
1620
1587
  function L(e) {
1621
- return Dn;
1588
+ return Ln;
1622
1589
  }
1623
1590
  function me(e, t) {
1624
1591
  return typeof t == "bigint" ? t.toString() : t;
@@ -1647,7 +1614,7 @@ function g(e, t, n) {
1647
1614
  configurable: !0
1648
1615
  });
1649
1616
  }
1650
- function Rn(...e) {
1617
+ function Dn(...e) {
1651
1618
  const t = {};
1652
1619
  for (const n of e) {
1653
1620
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1655,7 +1622,7 @@ function Rn(...e) {
1655
1622
  }
1656
1623
  return Object.defineProperties({}, t);
1657
1624
  }
1658
- function Fn(e) {
1625
+ function Rn(e) {
1659
1626
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
1660
1627
  }
1661
1628
  const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
@@ -1695,7 +1662,7 @@ function h(e) {
1695
1662
  }
1696
1663
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
1697
1664
  }
1698
- const jn = {
1665
+ const Fn = {
1699
1666
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
1700
1667
  int32: [-2147483648, 2147483647],
1701
1668
  uint32: [0, 4294967295],
@@ -1710,7 +1677,7 @@ function F(e, t = 0) {
1710
1677
  return !0;
1711
1678
  return !1;
1712
1679
  }
1713
- function Wn(e, t) {
1680
+ function jn(e, t) {
1714
1681
  return t.map((n) => {
1715
1682
  var r;
1716
1683
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -1751,13 +1718,13 @@ const at = (e, t) => {
1751
1718
  enumerable: !1
1752
1719
  });
1753
1720
  }, ut = l("$ZodError", at), te = l("$ZodError", at, { Parent: Error });
1754
- function xn(e, t = (n) => n.message) {
1721
+ function Wn(e, t = (n) => n.message) {
1755
1722
  const n = {}, r = [];
1756
1723
  for (const o of e.issues)
1757
1724
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
1758
1725
  return { formErrors: r, fieldErrors: n };
1759
1726
  }
1760
- function Un(e, t = (n) => n.message) {
1727
+ function xn(e, t = (n) => n.message) {
1761
1728
  const n = { _errors: [] }, r = (o) => {
1762
1729
  for (const s of o.issues)
1763
1730
  if (s.code === "invalid_union" && s.errors.length)
@@ -1787,7 +1754,7 @@ const ne = (e) => (t, n, r, o) => {
1787
1754
  throw ot(a, o?.callee), a;
1788
1755
  }
1789
1756
  return i.value;
1790
- }, Vn = /* @__PURE__ */ ne(te), re = (e) => async (t, n, r, o) => {
1757
+ }, Un = /* @__PURE__ */ ne(te), re = (e) => async (t, n, r, o) => {
1791
1758
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1792
1759
  let i = t._zod.run({ value: n, issues: [] }, s);
1793
1760
  if (i instanceof Promise && (i = await i), i.issues.length) {
@@ -1795,7 +1762,7 @@ const ne = (e) => (t, n, r, o) => {
1795
1762
  throw ot(a, o?.callee), a;
1796
1763
  }
1797
1764
  return i.value;
1798
- }, Jn = /* @__PURE__ */ re(te), oe = (e) => (t, n, r) => {
1765
+ }, Vn = /* @__PURE__ */ re(te), oe = (e) => (t, n, r) => {
1799
1766
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
1800
1767
  if (s instanceof Promise)
1801
1768
  throw new j();
@@ -1810,43 +1777,43 @@ const ne = (e) => (t, n, r, o) => {
1810
1777
  success: !1,
1811
1778
  error: new e(s.issues.map((i) => D(i, o, L())))
1812
1779
  } : { success: !0, data: s.value };
1813
- }, lt = /* @__PURE__ */ se(te), Bn = (e) => (t, n, r) => {
1780
+ }, lt = /* @__PURE__ */ se(te), Jn = (e) => (t, n, r) => {
1814
1781
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1815
1782
  return ne(e)(t, n, o);
1816
- }, Yn = (e) => (t, n, r) => ne(e)(t, n, r), Gn = (e) => async (t, n, r) => {
1783
+ }, Bn = (e) => (t, n, r) => ne(e)(t, n, r), Yn = (e) => async (t, n, r) => {
1817
1784
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1818
1785
  return re(e)(t, n, o);
1819
- }, Kn = (e) => async (t, n, r) => re(e)(t, n, r), qn = (e) => (t, n, r) => {
1786
+ }, Gn = (e) => async (t, n, r) => re(e)(t, n, r), Kn = (e) => (t, n, r) => {
1820
1787
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1821
1788
  return oe(e)(t, n, o);
1822
- }, Xn = (e) => (t, n, r) => oe(e)(t, n, r), Hn = (e) => async (t, n, r) => {
1789
+ }, qn = (e) => (t, n, r) => oe(e)(t, n, r), Xn = (e) => async (t, n, r) => {
1823
1790
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1824
1791
  return se(e)(t, n, o);
1825
- }, Qn = (e) => async (t, n, r) => se(e)(t, n, r), er = /^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)$/, tr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, nr = /^(?:(?: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])$/, rr = /^(([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}|:))$/, or = /^(?=.{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])))", sr = /* @__PURE__ */ new RegExp(`^${pt}$`);
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}$`);
1826
1793
  function dt(e) {
1827
1794
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1828
1795
  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+)?)?`;
1829
1796
  }
1830
- function ir(e) {
1797
+ function sr(e) {
1831
1798
  return new RegExp(`^${dt(e)}$`);
1832
1799
  }
1833
- function ar(e) {
1800
+ function ir(e) {
1834
1801
  const t = dt({ precision: e.precision }), n = ["Z"];
1835
1802
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
1836
1803
  const r = `${t}(?:${n.join("|")})`;
1837
1804
  return new RegExp(`^${pt}T(?:${r})$`);
1838
1805
  }
1839
- const ur = (e) => {
1806
+ const ar = (e) => {
1840
1807
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1841
1808
  return new RegExp(`^${t}$`);
1842
- }, cr = /^-?\d+$/, lr = /^-?\d+(?:\.\d+)?$/, pr = /^(?:true|false)$/i, dr = /^[^A-Z]*$/, mr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1809
+ }, ur = /^-?\d+$/, cr = /^-?\d+(?:\.\d+)?$/, lr = /^(?:true|false)$/i, pr = /^[^A-Z]*$/, dr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1843
1810
  var n;
1844
1811
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
1845
1812
  }), mt = {
1846
1813
  number: "number",
1847
1814
  bigint: "bigint",
1848
1815
  object: "date"
1849
- }, fr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1816
+ }, mr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1850
1817
  $.init(e, t);
1851
1818
  const n = mt[typeof t.value];
1852
1819
  e._zod.onattach.push((r) => {
@@ -1863,7 +1830,7 @@ const ur = (e) => {
1863
1830
  continue: !t.abort
1864
1831
  });
1865
1832
  };
1866
- }), hr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1833
+ }), fr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1867
1834
  $.init(e, t);
1868
1835
  const n = mt[typeof t.value];
1869
1836
  e._zod.onattach.push((r) => {
@@ -1880,12 +1847,12 @@ const ur = (e) => {
1880
1847
  continue: !t.abort
1881
1848
  });
1882
1849
  };
1883
- }), gr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1850
+ }), hr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1884
1851
  $.init(e, t), t.format = t.format || "float64";
1885
- const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = jn[t.format];
1852
+ const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Fn[t.format];
1886
1853
  e._zod.onattach.push((i) => {
1887
1854
  const a = i._zod.bag;
1888
- a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = cr);
1855
+ a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = ur);
1889
1856
  }), e._zod.check = (i) => {
1890
1857
  const a = i.value;
1891
1858
  if (n) {
@@ -1941,7 +1908,7 @@ const ur = (e) => {
1941
1908
  continue: !t.abort
1942
1909
  });
1943
1910
  };
1944
- }), yr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1911
+ }), gr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1945
1912
  var n;
1946
1913
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1947
1914
  const o = r.value;
@@ -1964,7 +1931,7 @@ const ur = (e) => {
1964
1931
  continue: !t.abort
1965
1932
  });
1966
1933
  };
1967
- }), br = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1934
+ }), yr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1968
1935
  var n;
1969
1936
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1970
1937
  const o = r.value;
@@ -1987,7 +1954,7 @@ const ur = (e) => {
1987
1954
  continue: !t.abort
1988
1955
  });
1989
1956
  };
1990
- }), _r = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1957
+ }), br = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1991
1958
  var n;
1992
1959
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1993
1960
  const o = r.value;
@@ -2027,7 +1994,7 @@ const ur = (e) => {
2027
1994
  });
2028
1995
  }) : (r = e._zod).check ?? (r.check = () => {
2029
1996
  });
2030
- }), vr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1997
+ }), _r = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
2031
1998
  ie.init(e, t), e._zod.check = (n) => {
2032
1999
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
2033
2000
  origin: "string",
@@ -2039,11 +2006,11 @@ const ur = (e) => {
2039
2006
  continue: !t.abort
2040
2007
  });
2041
2008
  };
2042
- }), Sr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2009
+ }), vr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2010
+ t.pattern ?? (t.pattern = pr), ie.init(e, t);
2011
+ }), Sr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2043
2012
  t.pattern ?? (t.pattern = dr), ie.init(e, t);
2044
- }), wr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2045
- t.pattern ?? (t.pattern = mr), ie.init(e, t);
2046
- }), kr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2013
+ }), wr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2047
2014
  $.init(e, t);
2048
2015
  const n = ve(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2049
2016
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -2060,7 +2027,7 @@ const ur = (e) => {
2060
2027
  continue: !t.abort
2061
2028
  });
2062
2029
  };
2063
- }), Tr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2030
+ }), kr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2064
2031
  $.init(e, t);
2065
2032
  const n = new RegExp(`^${ve(t.prefix)}.*`);
2066
2033
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -2077,7 +2044,7 @@ const ur = (e) => {
2077
2044
  continue: !t.abort
2078
2045
  });
2079
2046
  };
2080
- }), zr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2047
+ }), Tr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2081
2048
  $.init(e, t);
2082
2049
  const n = new RegExp(`.*${ve(t.suffix)}$`);
2083
2050
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -2094,17 +2061,17 @@ const ur = (e) => {
2094
2061
  continue: !t.abort
2095
2062
  });
2096
2063
  };
2097
- }), Ar = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2064
+ }), zr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2098
2065
  $.init(e, t), e._zod.check = (n) => {
2099
2066
  n.value = t.tx(n.value);
2100
2067
  };
2101
- }), Or = {
2068
+ }), Ar = {
2102
2069
  major: 4,
2103
2070
  minor: 3,
2104
2071
  patch: 6
2105
2072
  }, _ = /* @__PURE__ */ l("$ZodType", (e, t) => {
2106
2073
  var n;
2107
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Or;
2074
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ar;
2108
2075
  const r = [...e._zod.def.checks ?? []];
2109
2076
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
2110
2077
  for (const o of r)
@@ -2177,7 +2144,7 @@ const ur = (e) => {
2177
2144
  version: 1
2178
2145
  }));
2179
2146
  }), we = /* @__PURE__ */ l("$ZodString", (e, t) => {
2180
- _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ur(e._zod.bag), e._zod.parse = (n, r) => {
2147
+ _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ar(e._zod.bag), e._zod.parse = (n, r) => {
2181
2148
  if (t.coerce)
2182
2149
  try {
2183
2150
  n.value = String(n.value);
@@ -2192,7 +2159,7 @@ const ur = (e) => {
2192
2159
  };
2193
2160
  }), P = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
2194
2161
  ie.init(e, t), we.init(e, t);
2195
- }), Er = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2162
+ }), Or = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2196
2163
  if (t.version) {
2197
2164
  const r = {
2198
2165
  v1: 1,
@@ -2210,9 +2177,9 @@ const ur = (e) => {
2210
2177
  } else
2211
2178
  t.pattern ?? (t.pattern = Ie());
2212
2179
  P.init(e, t);
2213
- }), $r = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2214
- t.pattern ?? (t.pattern = tr), P.init(e, t);
2215
- }), Pr = /* @__PURE__ */ l("$ZodURL", (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) => {
2216
2183
  P.init(e, t), e._zod.check = (n) => {
2217
2184
  try {
2218
2185
  const r = n.value.trim(), o = new URL(r);
@@ -2244,18 +2211,18 @@ const ur = (e) => {
2244
2211
  });
2245
2212
  }
2246
2213
  };
2247
- }), Zr = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2248
- t.pattern ?? (t.pattern = ar(t)), P.init(e, t);
2249
- }), Cr = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2250
- t.pattern ?? (t.pattern = sr), P.init(e, t);
2251
- }), Ir = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2214
+ }), Pr = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2252
2215
  t.pattern ?? (t.pattern = ir(t)), P.init(e, t);
2253
- }), Nr = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2254
- t.pattern ?? (t.pattern = er), P.init(e, t);
2255
- }), Mr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2256
- t.pattern ?? (t.pattern = nr), P.init(e, t), e._zod.bag.format = "ipv4";
2257
- }), Lr = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2258
- t.pattern ?? (t.pattern = rr), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
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) => {
2259
2226
  try {
2260
2227
  new URL(`http://[${n.value}]`);
2261
2228
  } catch {
@@ -2268,7 +2235,7 @@ const ur = (e) => {
2268
2235
  });
2269
2236
  }
2270
2237
  };
2271
- }), Dr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2238
+ }), Lr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2272
2239
  P.init(e, t), e._zod.check = (n) => {
2273
2240
  t.fn(n.value) || n.issues.push({
2274
2241
  code: "invalid_format",
@@ -2279,7 +2246,7 @@ const ur = (e) => {
2279
2246
  });
2280
2247
  };
2281
2248
  }), ft = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
2282
- _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? lr, e._zod.parse = (n, r) => {
2249
+ _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? cr, e._zod.parse = (n, r) => {
2283
2250
  if (t.coerce)
2284
2251
  try {
2285
2252
  n.value = Number(n.value);
@@ -2297,10 +2264,10 @@ const ur = (e) => {
2297
2264
  ...s ? { received: s } : {}
2298
2265
  }), n;
2299
2266
  };
2300
- }), Rr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2301
- gr.init(e, t), ft.init(e, t);
2302
- }), Fr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2303
- _.init(e, t), e._zod.pattern = pr, e._zod.parse = (n, r) => {
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) => {
2304
2271
  if (t.coerce)
2305
2272
  try {
2306
2273
  n.value = !!n.value;
@@ -2314,11 +2281,11 @@ const ur = (e) => {
2314
2281
  inst: e
2315
2282
  }), n;
2316
2283
  };
2317
- }), jr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2284
+ }), Fr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2318
2285
  _.init(e, t), e._zod.parse = (n) => n;
2319
2286
  });
2320
2287
  function Ne(e, t, n) {
2321
- e.issues.length && t.issues.push(...Wn(n, e.issues)), t.value[n] = e.value;
2288
+ e.issues.length && t.issues.push(...jn(n, e.issues)), t.value[n] = e.value;
2322
2289
  }
2323
2290
  const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2324
2291
  _.init(e, t), e._zod.parse = (n, r) => {
@@ -2354,7 +2321,7 @@ function Me(e, t, n, r) {
2354
2321
  errors: e.map((s) => s.issues.map((i) => D(i, r, L())))
2355
2322
  }), t);
2356
2323
  }
2357
- const Wr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2324
+ const jr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2358
2325
  _.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", () => {
2359
2326
  if (t.options.every((o) => o._zod.values))
2360
2327
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -2385,7 +2352,7 @@ const Wr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2385
2352
  }
2386
2353
  return i ? Promise.all(a).then((u) => Me(u, o, e, s)) : Me(a, o, e, s);
2387
2354
  };
2388
- }), xr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2355
+ }), Wr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2389
2356
  _.init(e, t), e._zod.parse = (n, r) => {
2390
2357
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2391
2358
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Le(n, u, c)) : Le(n, s, i);
@@ -2450,7 +2417,7 @@ function Le(e, t, n) {
2450
2417
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
2451
2418
  return e.value = i.data, e;
2452
2419
  }
2453
- const Ur = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2420
+ const xr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2454
2421
  _.init(e, t), e._zod.parse = (n, r) => {
2455
2422
  if (r.direction === "backward")
2456
2423
  throw new rt(e.constructor.name);
@@ -2476,14 +2443,14 @@ const ke = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2476
2443
  }
2477
2444
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
2478
2445
  };
2479
- }), Vr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2446
+ }), Ur = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2480
2447
  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);
2481
- }), Jr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2448
+ }), Vr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2482
2449
  _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "pattern", () => {
2483
2450
  const n = t.innerType._zod.pattern;
2484
2451
  return n ? new RegExp(`^(${_e(n.source)}|null)$`) : void 0;
2485
2452
  }), 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);
2486
- }), Br = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2453
+ }), Jr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2487
2454
  _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2488
2455
  if (r.direction === "backward")
2489
2456
  return t.innerType._zod.run(n, r);
@@ -2496,9 +2463,9 @@ const ke = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2496
2463
  function Re(e, t) {
2497
2464
  return e.value === void 0 && (e.value = t.defaultValue), e;
2498
2465
  }
2499
- const Yr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2466
+ const Br = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2500
2467
  _.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));
2501
- }), Gr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2468
+ }), Yr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2502
2469
  _.init(e, t), g(e._zod, "values", () => {
2503
2470
  const n = t.innerType._zod.values;
2504
2471
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -2515,7 +2482,7 @@ function Fe(e, t) {
2515
2482
  inst: t
2516
2483
  }), e;
2517
2484
  }
2518
- const Kr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2485
+ const Gr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2519
2486
  _.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) => {
2520
2487
  if (r.direction === "backward")
2521
2488
  return t.innerType._zod.run(n, r);
@@ -2534,7 +2501,7 @@ const Kr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2534
2501
  input: n.value
2535
2502
  }), n.issues = []), n);
2536
2503
  };
2537
- }), qr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2504
+ }), Kr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2538
2505
  _.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) => {
2539
2506
  if (r.direction === "backward") {
2540
2507
  const s = t.out._zod.run(n, r);
@@ -2547,7 +2514,7 @@ const Kr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2547
2514
  function q(e, t, n) {
2548
2515
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
2549
2516
  }
2550
- const Xr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2517
+ const qr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2551
2518
  _.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) => {
2552
2519
  if (r.direction === "backward")
2553
2520
  return t.innerType._zod.run(n, r);
@@ -2582,7 +2549,7 @@ function We(e, t, n, r) {
2582
2549
  }
2583
2550
  }
2584
2551
  var xe;
2585
- class Hr {
2552
+ class Xr {
2586
2553
  constructor() {
2587
2554
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2588
2555
  }
@@ -2611,20 +2578,20 @@ class Hr {
2611
2578
  return this._map.has(t);
2612
2579
  }
2613
2580
  }
2614
- function Qr() {
2615
- return new Hr();
2581
+ function Hr() {
2582
+ return new Xr();
2616
2583
  }
2617
- (xe = globalThis).__zod_globalRegistry ?? (xe.__zod_globalRegistry = Qr());
2584
+ (xe = globalThis).__zod_globalRegistry ?? (xe.__zod_globalRegistry = Hr());
2618
2585
  const V = globalThis.__zod_globalRegistry;
2619
2586
  // @__NO_SIDE_EFFECTS__
2620
- function eo(e, t) {
2587
+ function Qr(e, t) {
2621
2588
  return new e({
2622
2589
  type: "string",
2623
2590
  ...h(t)
2624
2591
  });
2625
2592
  }
2626
2593
  // @__NO_SIDE_EFFECTS__
2627
- function to(e, t) {
2594
+ function eo(e, t) {
2628
2595
  return new e({
2629
2596
  type: "string",
2630
2597
  format: "email",
@@ -2634,7 +2601,7 @@ function to(e, t) {
2634
2601
  });
2635
2602
  }
2636
2603
  // @__NO_SIDE_EFFECTS__
2637
- function no(e, t) {
2604
+ function to(e, t) {
2638
2605
  return new e({
2639
2606
  type: "string",
2640
2607
  format: "uuid",
@@ -2644,7 +2611,7 @@ function no(e, t) {
2644
2611
  });
2645
2612
  }
2646
2613
  // @__NO_SIDE_EFFECTS__
2647
- function ro(e, t) {
2614
+ function no(e, t) {
2648
2615
  return new e({
2649
2616
  type: "string",
2650
2617
  format: "url",
@@ -2654,7 +2621,7 @@ function ro(e, t) {
2654
2621
  });
2655
2622
  }
2656
2623
  // @__NO_SIDE_EFFECTS__
2657
- function oo(e, t) {
2624
+ function ro(e, t) {
2658
2625
  return new e({
2659
2626
  type: "string",
2660
2627
  format: "ipv4",
@@ -2664,7 +2631,7 @@ function oo(e, t) {
2664
2631
  });
2665
2632
  }
2666
2633
  // @__NO_SIDE_EFFECTS__
2667
- function so(e, t) {
2634
+ function oo(e, t) {
2668
2635
  return new e({
2669
2636
  type: "string",
2670
2637
  format: "ipv6",
@@ -2674,7 +2641,7 @@ function so(e, t) {
2674
2641
  });
2675
2642
  }
2676
2643
  // @__NO_SIDE_EFFECTS__
2677
- function io(e, t) {
2644
+ function so(e, t) {
2678
2645
  return new e({
2679
2646
  type: "string",
2680
2647
  format: "datetime",
@@ -2686,7 +2653,7 @@ function io(e, t) {
2686
2653
  });
2687
2654
  }
2688
2655
  // @__NO_SIDE_EFFECTS__
2689
- function ao(e, t) {
2656
+ function io(e, t) {
2690
2657
  return new e({
2691
2658
  type: "string",
2692
2659
  format: "date",
@@ -2695,7 +2662,7 @@ function ao(e, t) {
2695
2662
  });
2696
2663
  }
2697
2664
  // @__NO_SIDE_EFFECTS__
2698
- function uo(e, t) {
2665
+ function ao(e, t) {
2699
2666
  return new e({
2700
2667
  type: "string",
2701
2668
  format: "time",
@@ -2705,7 +2672,7 @@ function uo(e, t) {
2705
2672
  });
2706
2673
  }
2707
2674
  // @__NO_SIDE_EFFECTS__
2708
- function co(e, t) {
2675
+ function uo(e, t) {
2709
2676
  return new e({
2710
2677
  type: "string",
2711
2678
  format: "duration",
@@ -2714,7 +2681,7 @@ function co(e, t) {
2714
2681
  });
2715
2682
  }
2716
2683
  // @__NO_SIDE_EFFECTS__
2717
- function lo(e, t) {
2684
+ function co(e, t) {
2718
2685
  return new e({
2719
2686
  type: "number",
2720
2687
  checks: [],
@@ -2722,7 +2689,7 @@ function lo(e, t) {
2722
2689
  });
2723
2690
  }
2724
2691
  // @__NO_SIDE_EFFECTS__
2725
- function po(e, t) {
2692
+ function lo(e, t) {
2726
2693
  return new e({
2727
2694
  type: "number",
2728
2695
  check: "number_format",
@@ -2732,21 +2699,21 @@ function po(e, t) {
2732
2699
  });
2733
2700
  }
2734
2701
  // @__NO_SIDE_EFFECTS__
2735
- function mo(e, t) {
2702
+ function po(e, t) {
2736
2703
  return new e({
2737
2704
  type: "boolean",
2738
2705
  ...h(t)
2739
2706
  });
2740
2707
  }
2741
2708
  // @__NO_SIDE_EFFECTS__
2742
- function fo(e) {
2709
+ function mo(e) {
2743
2710
  return new e({
2744
2711
  type: "any"
2745
2712
  });
2746
2713
  }
2747
2714
  // @__NO_SIDE_EFFECTS__
2748
- function ho(e, t) {
2749
- return new fr({
2715
+ function fo(e, t) {
2716
+ return new mr({
2750
2717
  check: "less_than",
2751
2718
  ...h(t),
2752
2719
  value: e,
@@ -2754,8 +2721,8 @@ function ho(e, t) {
2754
2721
  });
2755
2722
  }
2756
2723
  // @__NO_SIDE_EFFECTS__
2757
- function go(e, t) {
2758
- return new hr({
2724
+ function ho(e, t) {
2725
+ return new fr({
2759
2726
  check: "greater_than",
2760
2727
  ...h(t),
2761
2728
  value: e,
@@ -2764,7 +2731,7 @@ function go(e, t) {
2764
2731
  }
2765
2732
  // @__NO_SIDE_EFFECTS__
2766
2733
  function ae(e, t) {
2767
- return new yr({
2734
+ return new gr({
2768
2735
  check: "max_length",
2769
2736
  ...h(t),
2770
2737
  maximum: e
@@ -2772,7 +2739,7 @@ function ae(e, t) {
2772
2739
  }
2773
2740
  // @__NO_SIDE_EFFECTS__
2774
2741
  function W(e, t) {
2775
- return new br({
2742
+ return new yr({
2776
2743
  check: "min_length",
2777
2744
  ...h(t),
2778
2745
  minimum: e
@@ -2780,7 +2747,7 @@ function W(e, t) {
2780
2747
  }
2781
2748
  // @__NO_SIDE_EFFECTS__
2782
2749
  function yt(e, t) {
2783
- return new _r({
2750
+ return new br({
2784
2751
  check: "length_equals",
2785
2752
  ...h(t),
2786
2753
  length: e
@@ -2788,7 +2755,7 @@ function yt(e, t) {
2788
2755
  }
2789
2756
  // @__NO_SIDE_EFFECTS__
2790
2757
  function bt(e, t) {
2791
- return new vr({
2758
+ return new _r({
2792
2759
  check: "string_format",
2793
2760
  format: "regex",
2794
2761
  ...h(t),
@@ -2796,24 +2763,24 @@ function bt(e, t) {
2796
2763
  });
2797
2764
  }
2798
2765
  // @__NO_SIDE_EFFECTS__
2799
- function yo(e) {
2800
- return new Sr({
2766
+ function go(e) {
2767
+ return new vr({
2801
2768
  check: "string_format",
2802
2769
  format: "lowercase",
2803
2770
  ...h(e)
2804
2771
  });
2805
2772
  }
2806
2773
  // @__NO_SIDE_EFFECTS__
2807
- function bo(e) {
2808
- return new wr({
2774
+ function yo(e) {
2775
+ return new Sr({
2809
2776
  check: "string_format",
2810
2777
  format: "uppercase",
2811
2778
  ...h(e)
2812
2779
  });
2813
2780
  }
2814
2781
  // @__NO_SIDE_EFFECTS__
2815
- function _o(e, t) {
2816
- return new kr({
2782
+ function bo(e, t) {
2783
+ return new wr({
2817
2784
  check: "string_format",
2818
2785
  format: "includes",
2819
2786
  ...h(t),
@@ -2821,8 +2788,8 @@ function _o(e, t) {
2821
2788
  });
2822
2789
  }
2823
2790
  // @__NO_SIDE_EFFECTS__
2824
- function vo(e, t) {
2825
- return new Tr({
2791
+ function _o(e, t) {
2792
+ return new kr({
2826
2793
  check: "string_format",
2827
2794
  format: "starts_with",
2828
2795
  ...h(t),
@@ -2830,8 +2797,8 @@ function vo(e, t) {
2830
2797
  });
2831
2798
  }
2832
2799
  // @__NO_SIDE_EFFECTS__
2833
- function So(e, t) {
2834
- return new zr({
2800
+ function vo(e, t) {
2801
+ return new Tr({
2835
2802
  check: "string_format",
2836
2803
  format: "ends_with",
2837
2804
  ...h(t),
@@ -2840,33 +2807,33 @@ function So(e, t) {
2840
2807
  }
2841
2808
  // @__NO_SIDE_EFFECTS__
2842
2809
  function x(e) {
2843
- return new Ar({
2810
+ return new zr({
2844
2811
  check: "overwrite",
2845
2812
  tx: e
2846
2813
  });
2847
2814
  }
2848
2815
  // @__NO_SIDE_EFFECTS__
2849
- function wo(e) {
2816
+ function So(e) {
2850
2817
  return /* @__PURE__ */ x((t) => t.normalize(e));
2851
2818
  }
2852
2819
  // @__NO_SIDE_EFFECTS__
2853
- function ko() {
2820
+ function wo() {
2854
2821
  return /* @__PURE__ */ x((e) => e.trim());
2855
2822
  }
2856
2823
  // @__NO_SIDE_EFFECTS__
2857
- function To() {
2824
+ function ko() {
2858
2825
  return /* @__PURE__ */ x((e) => e.toLowerCase());
2859
2826
  }
2860
2827
  // @__NO_SIDE_EFFECTS__
2861
- function zo() {
2828
+ function To() {
2862
2829
  return /* @__PURE__ */ x((e) => e.toUpperCase());
2863
2830
  }
2864
2831
  // @__NO_SIDE_EFFECTS__
2865
- function Ao() {
2866
- return /* @__PURE__ */ x((e) => Fn(e));
2832
+ function zo() {
2833
+ return /* @__PURE__ */ x((e) => Rn(e));
2867
2834
  }
2868
2835
  // @__NO_SIDE_EFFECTS__
2869
- function Oo(e, t, n) {
2836
+ function Ao(e, t, n) {
2870
2837
  return new e({
2871
2838
  type: "array",
2872
2839
  element: t,
@@ -2887,7 +2854,7 @@ function _t(e, t, n) {
2887
2854
  }
2888
2855
  // @__NO_SIDE_EFFECTS__
2889
2856
  function vt(e) {
2890
- const t = /* @__PURE__ */ Eo((n) => (n.addIssue = (r) => {
2857
+ const t = /* @__PURE__ */ Oo((n) => (n.addIssue = (r) => {
2891
2858
  if (typeof r == "string")
2892
2859
  n.issues.push(J(r, n.value, t._zod.def));
2893
2860
  else {
@@ -2898,7 +2865,7 @@ function vt(e) {
2898
2865
  return t;
2899
2866
  }
2900
2867
  // @__NO_SIDE_EFFECTS__
2901
- function Eo(e, t) {
2868
+ function Oo(e, t) {
2902
2869
  const n = new $({
2903
2870
  check: "custom",
2904
2871
  ...h(t)
@@ -2906,7 +2873,7 @@ function Eo(e, t) {
2906
2873
  return n._zod.check = e, n;
2907
2874
  }
2908
2875
  // @__NO_SIDE_EFFECTS__
2909
- function $o(e, t, n, r = {}) {
2876
+ function Eo(e, t, n, r = {}) {
2910
2877
  const o = h(r), s = {
2911
2878
  ...h(r),
2912
2879
  check: "string_format",
@@ -3144,24 +3111,24 @@ function z(e, t) {
3144
3111
  }
3145
3112
  return !1;
3146
3113
  }
3147
- const Po = (e, t = {}) => (n) => {
3114
+ const $o = (e, t = {}) => (n) => {
3148
3115
  const r = St({ ...n, processors: t });
3149
3116
  return A(e, r), wt(r, e), kt(r, e);
3150
3117
  }, H = (e, t, n = {}) => (r) => {
3151
3118
  const { libraryOptions: o, target: s } = r ?? {}, i = St({ ...o ?? {}, target: s, io: t, processors: n });
3152
3119
  return A(e, i), wt(i, e), kt(i, e);
3153
- }, Zo = {
3120
+ }, Po = {
3154
3121
  guid: "uuid",
3155
3122
  url: "uri",
3156
3123
  datetime: "date-time",
3157
3124
  json_string: "json-string",
3158
3125
  regex: ""
3159
3126
  // do not set
3160
- }, Co = (e, t, n, r) => {
3127
+ }, Zo = (e, t, n, r) => {
3161
3128
  const o = n;
3162
3129
  o.type = "string";
3163
3130
  const { minimum: s, maximum: i, format: a, patterns: u, contentEncoding: c } = e._zod.bag;
3164
- if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Zo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
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) {
3165
3132
  const p = [...u];
3166
3133
  p.length === 1 ? o.pattern = p[0].source : p.length > 1 && (o.allOf = [
3167
3134
  ...p.map((d) => ({
@@ -3170,22 +3137,22 @@ const Po = (e, t = {}) => (n) => {
3170
3137
  }))
3171
3138
  ]);
3172
3139
  }
3173
- }, Io = (e, t, n, r) => {
3140
+ }, Co = (e, t, n, r) => {
3174
3141
  if (t.unrepresentable === "throw")
3175
3142
  throw new Error("Custom types cannot be represented in JSON Schema");
3176
- }, No = (e, t, n, r) => {
3143
+ }, Io = (e, t, n, r) => {
3177
3144
  if (t.unrepresentable === "throw")
3178
3145
  throw new Error("Transforms cannot be represented in JSON Schema");
3179
- }, Mo = (e, t, n, r) => {
3146
+ }, No = (e, t, n, r) => {
3180
3147
  const o = n, s = e._zod.def, { minimum: i, maximum: a } = e._zod.bag;
3181
3148
  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"] });
3182
- }, Lo = (e, t, n, r) => {
3149
+ }, Mo = (e, t, n, r) => {
3183
3150
  const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((a, u) => A(a, t, {
3184
3151
  ...r,
3185
3152
  path: [...r.path, s ? "oneOf" : "anyOf", u]
3186
3153
  }));
3187
3154
  s ? n.oneOf = i : n.anyOf = i;
3188
- }, Do = (e, t, n, r) => {
3155
+ }, Lo = (e, t, n, r) => {
3189
3156
  const o = e._zod.def, s = A(o.left, t, {
3190
3157
  ...r,
3191
3158
  path: [...r.path, "allOf", 0]
@@ -3197,25 +3164,25 @@ const Po = (e, t = {}) => (n) => {
3197
3164
  ...a(i) ? i.allOf : [i]
3198
3165
  ];
3199
3166
  n.allOf = u;
3200
- }, Ro = (e, t, n, r) => {
3167
+ }, Do = (e, t, n, r) => {
3201
3168
  const o = e._zod.def, s = A(o.innerType, t, r), i = t.seen.get(e);
3202
3169
  t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
3203
- }, Fo = (e, t, n, r) => {
3170
+ }, Ro = (e, t, n, r) => {
3204
3171
  const o = e._zod.def;
3205
3172
  A(o.innerType, t, r);
3206
3173
  const s = t.seen.get(e);
3207
3174
  s.ref = o.innerType;
3208
- }, jo = (e, t, n, r) => {
3175
+ }, Fo = (e, t, n, r) => {
3209
3176
  const o = e._zod.def;
3210
3177
  A(o.innerType, t, r);
3211
3178
  const s = t.seen.get(e);
3212
3179
  s.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
3213
- }, Wo = (e, t, n, r) => {
3180
+ }, jo = (e, t, n, r) => {
3214
3181
  const o = e._zod.def;
3215
3182
  A(o.innerType, t, r);
3216
3183
  const s = t.seen.get(e);
3217
3184
  s.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3218
- }, xo = (e, t, n, r) => {
3185
+ }, Wo = (e, t, n, r) => {
3219
3186
  const o = e._zod.def;
3220
3187
  A(o.innerType, t, r);
3221
3188
  const s = t.seen.get(e);
@@ -3227,12 +3194,12 @@ const Po = (e, t = {}) => (n) => {
3227
3194
  throw new Error("Dynamic catch values are not supported in JSON Schema");
3228
3195
  }
3229
3196
  n.default = i;
3230
- }, Uo = (e, t, n, r) => {
3197
+ }, xo = (e, t, n, r) => {
3231
3198
  const o = e._zod.def, s = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
3232
3199
  A(s, t, r);
3233
3200
  const i = t.seen.get(e);
3234
3201
  i.ref = s;
3235
- }, Vo = (e, t, n, r) => {
3202
+ }, Uo = (e, t, n, r) => {
3236
3203
  const o = e._zod.def;
3237
3204
  A(o.innerType, t, r);
3238
3205
  const s = t.seen.get(e);
@@ -3242,38 +3209,38 @@ const Po = (e, t = {}) => (n) => {
3242
3209
  A(o.innerType, t, r);
3243
3210
  const s = t.seen.get(e);
3244
3211
  s.ref = o.innerType;
3245
- }, Jo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3212
+ }, Vo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3213
+ Pr.init(e, t), ue.init(e, t);
3214
+ });
3215
+ function Jo(e) {
3216
+ return /* @__PURE__ */ so(Vo, e);
3217
+ }
3218
+ const Bo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3246
3219
  Zr.init(e, t), ue.init(e, t);
3247
3220
  });
3248
- function Bo(e) {
3249
- return /* @__PURE__ */ io(Jo, e);
3221
+ function Yo(e) {
3222
+ return /* @__PURE__ */ io(Bo, e);
3250
3223
  }
3251
- const Yo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3224
+ const Go = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3252
3225
  Cr.init(e, t), ue.init(e, t);
3253
3226
  });
3254
- function Go(e) {
3255
- return /* @__PURE__ */ ao(Yo, e);
3227
+ function Ko(e) {
3228
+ return /* @__PURE__ */ ao(Go, e);
3256
3229
  }
3257
- const Ko = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3230
+ const qo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3258
3231
  Ir.init(e, t), ue.init(e, t);
3259
3232
  });
3260
- function qo(e) {
3261
- return /* @__PURE__ */ uo(Ko, e);
3233
+ function Xo(e) {
3234
+ return /* @__PURE__ */ uo(qo, e);
3262
3235
  }
3263
- const Xo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3264
- Nr.init(e, t), ue.init(e, t);
3265
- });
3266
- function Ho(e) {
3267
- return /* @__PURE__ */ co(Xo, e);
3268
- }
3269
- const Qo = (e, t) => {
3236
+ const Ho = (e, t) => {
3270
3237
  ut.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3271
3238
  format: {
3272
- value: (n) => Un(e, n)
3239
+ value: (n) => xn(e, n)
3273
3240
  // enumerable: false,
3274
3241
  },
3275
3242
  flatten: {
3276
- value: (n) => xn(e, n)
3243
+ value: (n) => Wn(e, n)
3277
3244
  // enumerable: false,
3278
3245
  },
3279
3246
  addIssue: {
@@ -3295,21 +3262,21 @@ const Qo = (e, t) => {
3295
3262
  // enumerable: false,
3296
3263
  }
3297
3264
  });
3298
- }, Z = l("ZodError", Qo, {
3265
+ }, Z = l("ZodError", Ho, {
3299
3266
  Parent: Error
3300
- }), es = /* @__PURE__ */ ne(Z), ts = /* @__PURE__ */ re(Z), ns = /* @__PURE__ */ oe(Z), rs = /* @__PURE__ */ se(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), ps = /* @__PURE__ */ Qn(Z), E = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
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"], {
3301
3268
  jsonSchema: {
3302
3269
  input: H(e, "input"),
3303
3270
  output: H(e, "output")
3304
3271
  }
3305
- }), e.toJSONSchema = Po(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Rn(t, {
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, {
3306
3273
  checks: [
3307
3274
  ...t.checks ?? [],
3308
3275
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
3309
3276
  ]
3310
3277
  }), {
3311
3278
  parent: !0
3312
- }), 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) => es(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ns(e, n, r), e.parseAsync = async (n, r) => ts(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => rs(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => os(e, n, r), e.decode = (n, r) => ss(e, n, r), e.encodeAsync = async (n, r) => is(e, n, r), e.decodeAsync = async (n, r) => as(e, n, r), e.safeEncode = (n, r) => us(e, n, r), e.safeDecode = (n, r) => cs(e, n, r), e.safeEncodeAsync = async (n, r) => ls(e, n, r), e.safeDecodeAsync = async (n, r) => ps(e, n, r), e.refine = (n, r) => e.check(Ds(n, r)), e.superRefine = (n) => e.check(Rs(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => Ue(e), e.exactOptional = () => ks(e), e.nullable = () => Ve(e), e.nullish = () => Ue(Ve(e)), e.nonoptional = (n) => Ps(e, n), e.array = () => fs(e), e.or = (n) => gs([e, n]), e.and = (n) => bs(e, n), e.transform = (n) => Je(e, vs(n)), e.default = (n) => As(e, n), e.prefault = (n) => Es(e, n), e.catch = (n) => Cs(e, n), e.pipe = (n) => Je(e, n), e.readonly = () => Ms(e), e.describe = (n) => {
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) => {
3313
3280
  const r = e.clone();
3314
3281
  return V.add(r, { description: n }), r;
3315
3282
  }, Object.defineProperty(e, "description", {
@@ -3322,40 +3289,40 @@ const Qo = (e, t) => {
3322
3289
  return V.get(e);
3323
3290
  const r = e.clone();
3324
3291
  return V.add(r, n[0]), r;
3325
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), ds = /* @__PURE__ */ l("_ZodString", (e, t) => {
3326
- we.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, o, s) => Co(e, r, o);
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);
3327
3294
  const n = e._zod.bag;
3328
- 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__ */ _o(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ vo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ So(...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__ */ yo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ bo(r)), e.trim = () => e.check(/* @__PURE__ */ ko()), e.normalize = (...r) => e.check(/* @__PURE__ */ wo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ To()), e.toUpperCase = () => e.check(/* @__PURE__ */ zo()), e.slugify = () => e.check(/* @__PURE__ */ Ao());
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());
3329
3296
  }), ue = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3330
- P.init(e, t), ds.init(e, t);
3331
- }), ms = /* @__PURE__ */ l("ZodArray", (e, t) => {
3332
- ht.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(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;
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;
3333
3300
  });
3334
- function fs(e, t) {
3335
- return /* @__PURE__ */ Oo(ms, e, t);
3301
+ function ms(e, t) {
3302
+ return /* @__PURE__ */ Ao(ds, e, t);
3336
3303
  }
3337
- const hs = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3338
- Wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.options = t.options;
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;
3339
3306
  });
3340
- function gs(e, t) {
3341
- return new hs({
3307
+ function hs(e, t) {
3308
+ return new fs({
3342
3309
  type: "union",
3343
3310
  options: e,
3344
3311
  ...h(t)
3345
3312
  });
3346
3313
  }
3347
- const ys = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3348
- xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o);
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);
3349
3316
  });
3350
- function bs(e, t) {
3351
- return new ys({
3317
+ function ys(e, t) {
3318
+ return new gs({
3352
3319
  type: "intersection",
3353
3320
  left: e,
3354
3321
  right: t
3355
3322
  });
3356
3323
  }
3357
- const _s = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3358
- Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n), e._zod.parse = (n, r) => {
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) => {
3359
3326
  if (r.direction === "backward")
3360
3327
  throw new rt(e.constructor.name);
3361
3328
  n.addIssue = (s) => {
@@ -3370,44 +3337,44 @@ const _s = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3370
3337
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
3371
3338
  };
3372
3339
  });
3373
- function vs(e) {
3374
- return new _s({
3340
+ function _s(e) {
3341
+ return new bs({
3375
3342
  type: "transform",
3376
3343
  transform: e
3377
3344
  });
3378
3345
  }
3379
- const Ss = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3346
+ const vs = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3380
3347
  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;
3381
3348
  });
3382
3349
  function Ue(e) {
3383
- return new Ss({
3350
+ return new vs({
3384
3351
  type: "optional",
3385
3352
  innerType: e
3386
3353
  });
3387
3354
  }
3388
- const ws = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3389
- Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
3390
3357
  });
3391
- function ks(e) {
3392
- return new ws({
3358
+ function ws(e) {
3359
+ return new Ss({
3393
3360
  type: "optional",
3394
3361
  innerType: e
3395
3362
  });
3396
3363
  }
3397
- const Ts = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3398
- Jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
3399
3366
  });
3400
3367
  function Ve(e) {
3401
- return new Ts({
3368
+ return new ks({
3402
3369
  type: "nullable",
3403
3370
  innerType: e
3404
3371
  });
3405
3372
  }
3406
- const zs = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3407
- 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, e.removeDefault = e.unwrap;
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;
3408
3375
  });
3409
- function As(e, t) {
3410
- return new zs({
3376
+ function zs(e, t) {
3377
+ return new Ts({
3411
3378
  type: "default",
3412
3379
  innerType: e,
3413
3380
  get defaultValue() {
@@ -3415,11 +3382,11 @@ function As(e, t) {
3415
3382
  }
3416
3383
  });
3417
3384
  }
3418
- const Os = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3419
- Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
3420
3387
  });
3421
- function Es(e, t) {
3422
- return new Os({
3388
+ function Os(e, t) {
3389
+ return new As({
3423
3390
  type: "prefault",
3424
3391
  innerType: e,
3425
3392
  get defaultValue() {
@@ -3427,59 +3394,59 @@ function Es(e, t) {
3427
3394
  }
3428
3395
  });
3429
3396
  }
3430
- const $s = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3431
- Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
3432
3399
  });
3433
- function Ps(e, t) {
3434
- return new $s({
3400
+ function $s(e, t) {
3401
+ return new Es({
3435
3402
  type: "nonoptional",
3436
3403
  innerType: e,
3437
3404
  ...h(t)
3438
3405
  });
3439
3406
  }
3440
- const Zs = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3441
- Kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => xo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
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;
3442
3409
  });
3443
- function Cs(e, t) {
3444
- return new Zs({
3410
+ function Zs(e, t) {
3411
+ return new Ps({
3445
3412
  type: "catch",
3446
3413
  innerType: e,
3447
3414
  catchValue: typeof t == "function" ? t : () => t
3448
3415
  });
3449
3416
  }
3450
- const Is = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3451
- qr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Uo(e, n, r, o), e.in = t.in, e.out = t.out;
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;
3452
3419
  });
3453
3420
  function Je(e, t) {
3454
- return new Is({
3421
+ return new Cs({
3455
3422
  type: "pipe",
3456
3423
  in: e,
3457
3424
  out: t
3458
3425
  // ...util.normalizeParams(params),
3459
3426
  });
3460
3427
  }
3461
- const Ns = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3462
- Xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Vo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
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;
3463
3430
  });
3464
- function Ms(e) {
3465
- return new Ns({
3431
+ function Ns(e) {
3432
+ return new Is({
3466
3433
  type: "readonly",
3467
3434
  innerType: e
3468
3435
  });
3469
3436
  }
3470
- const Ls = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3471
- gt.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n);
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);
3472
3439
  });
3473
- function Ds(e, t = {}) {
3474
- return /* @__PURE__ */ _t(Ls, e, t);
3440
+ function Ls(e, t = {}) {
3441
+ return /* @__PURE__ */ _t(Ms, e, t);
3475
3442
  }
3476
- function Rs(e) {
3443
+ function Ds(e) {
3477
3444
  return /* @__PURE__ */ vt(e);
3478
3445
  }
3479
3446
  const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3480
3447
  if (!e._zod)
3481
3448
  throw new Error("Uninitialized schema in ZodMiniType.");
3482
- _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Vn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ct(e, n, r), e.parseAsync = async (n, r) => Jn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone({
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({
3483
3450
  ...t,
3484
3451
  checks: [
3485
3452
  ...t.checks ?? [],
@@ -3491,140 +3458,140 @@ const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3491
3458
  });
3492
3459
  // @__NO_SIDE_EFFECTS__
3493
3460
  function Be(e) {
3494
- return /* @__PURE__ */ eo(zt, e);
3461
+ return /* @__PURE__ */ Qr(zt, e);
3495
3462
  }
3496
3463
  const U = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
3497
3464
  P.init(e, t), zt.init(e, t);
3498
- }), Fs = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3499
- $r.init(e, t), U.init(e, t);
3465
+ }), Rs = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3466
+ Er.init(e, t), U.init(e, t);
3500
3467
  });
3501
3468
  // @__NO_SIDE_EFFECTS__
3502
- function js(e) {
3503
- return /* @__PURE__ */ to(Fs, e);
3469
+ function Fs(e) {
3470
+ return /* @__PURE__ */ eo(Rs, e);
3504
3471
  }
3505
- const Ws = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3506
- Er.init(e, t), U.init(e, t);
3472
+ const js = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3473
+ Or.init(e, t), U.init(e, t);
3507
3474
  });
3508
3475
  // @__NO_SIDE_EFFECTS__
3509
- function xs(e) {
3510
- return /* @__PURE__ */ no(Ws, e);
3476
+ function Ws(e) {
3477
+ return /* @__PURE__ */ to(js, e);
3511
3478
  }
3512
- const Us = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3513
- Pr.init(e, t), U.init(e, t);
3479
+ const xs = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3480
+ $r.init(e, t), U.init(e, t);
3514
3481
  });
3515
3482
  // @__NO_SIDE_EFFECTS__
3516
- function Vs(e) {
3517
- return /* @__PURE__ */ ro(Us, e);
3483
+ function Us(e) {
3484
+ return /* @__PURE__ */ no(xs, e);
3518
3485
  }
3519
- const Js = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3520
- Mr.init(e, t), U.init(e, t);
3486
+ const Vs = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3487
+ Nr.init(e, t), U.init(e, t);
3521
3488
  });
3522
3489
  // @__NO_SIDE_EFFECTS__
3523
- function Bs(e) {
3524
- return /* @__PURE__ */ oo(Js, e);
3490
+ function Js(e) {
3491
+ return /* @__PURE__ */ ro(Vs, e);
3525
3492
  }
3526
- const Ys = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3527
- Lr.init(e, t), U.init(e, t);
3493
+ const Bs = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3494
+ Mr.init(e, t), U.init(e, t);
3528
3495
  });
3529
3496
  // @__NO_SIDE_EFFECTS__
3530
- function Gs(e) {
3531
- return /* @__PURE__ */ so(Ys, e);
3497
+ function Ys(e) {
3498
+ return /* @__PURE__ */ oo(Bs, e);
3532
3499
  }
3533
- const Ks = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3534
- Dr.init(e, t), U.init(e, t);
3500
+ const Gs = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3501
+ Lr.init(e, t), U.init(e, t);
3535
3502
  });
3536
3503
  // @__NO_SIDE_EFFECTS__
3537
- function qs(e) {
3538
- return /* @__PURE__ */ $o(Ks, "hostname", or, e);
3504
+ function Ks(e) {
3505
+ return /* @__PURE__ */ Eo(Gs, "hostname", rr, e);
3539
3506
  }
3540
3507
  const At = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
3541
3508
  ft.init(e, t), R.init(e, t);
3542
3509
  });
3543
3510
  // @__NO_SIDE_EFFECTS__
3544
3511
  function Ye(e) {
3545
- return /* @__PURE__ */ lo(At, e);
3512
+ return /* @__PURE__ */ co(At, e);
3546
3513
  }
3547
- const Xs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3548
- Rr.init(e, t), At.init(e, t);
3514
+ const qs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3515
+ Dr.init(e, t), At.init(e, t);
3549
3516
  });
3550
3517
  // @__NO_SIDE_EFFECTS__
3551
- function Hs(e) {
3552
- return /* @__PURE__ */ po(Xs, e);
3518
+ function Xs(e) {
3519
+ return /* @__PURE__ */ lo(qs, e);
3553
3520
  }
3554
- const Qs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3555
- Fr.init(e, t), R.init(e, t);
3521
+ const Hs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3522
+ Rr.init(e, t), R.init(e, t);
3556
3523
  });
3557
3524
  // @__NO_SIDE_EFFECTS__
3558
3525
  function Ge(e) {
3559
- return /* @__PURE__ */ mo(Qs, e);
3526
+ return /* @__PURE__ */ po(Hs, e);
3560
3527
  }
3561
- const ei = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3562
- jr.init(e, t), R.init(e, t);
3528
+ const Qs = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3529
+ Fr.init(e, t), R.init(e, t);
3563
3530
  });
3564
3531
  // @__NO_SIDE_EFFECTS__
3565
3532
  function ge() {
3566
- return /* @__PURE__ */ fo(ei);
3533
+ return /* @__PURE__ */ mo(Qs);
3567
3534
  }
3568
- const ti = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3535
+ const ei = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3569
3536
  ht.init(e, t), R.init(e, t);
3570
3537
  });
3571
3538
  // @__NO_SIDE_EFFECTS__
3572
3539
  function Ke(e, t) {
3573
- return new ti({
3540
+ return new ei({
3574
3541
  type: "array",
3575
3542
  element: e,
3576
3543
  ...h(t)
3577
3544
  });
3578
3545
  }
3579
- const ni = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3546
+ const ti = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3580
3547
  ke.init(e, t), R.init(e, t);
3581
3548
  });
3582
3549
  // @__NO_SIDE_EFFECTS__
3583
- function ri(e) {
3584
- return new ni({
3550
+ function ni(e) {
3551
+ return new ti({
3585
3552
  type: "optional",
3586
3553
  innerType: e
3587
3554
  });
3588
3555
  }
3589
- const oi = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3556
+ const ri = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3590
3557
  gt.init(e, t), R.init(e, t);
3591
3558
  });
3592
3559
  // @__NO_SIDE_EFFECTS__
3593
3560
  function S(e, t = {}) {
3594
- return /* @__PURE__ */ _t(oi, e, t);
3561
+ return /* @__PURE__ */ _t(ri, e, t);
3595
3562
  }
3596
3563
  // @__NO_SIDE_EFFECTS__
3597
3564
  function Ot(e) {
3598
3565
  return /* @__PURE__ */ vt(e);
3599
3566
  }
3600
3567
  const ye = {
3601
- email: { schema: /* @__PURE__ */ js() },
3602
- hostname: { schema: /* @__PURE__ */ qs() },
3603
- ipv4: { schema: /* @__PURE__ */ Bs() },
3604
- ipv6: { schema: /* @__PURE__ */ Gs() },
3605
- url: { schema: /* @__PURE__ */ Vs() },
3606
- uuid: { schema: /* @__PURE__ */ xs() },
3607
- date: { schema: Go() },
3608
- time: { schema: qo() },
3609
- "date-time": { schema: Bo() },
3610
- duration: { schema: Ho() }
3611
- }, si = Object.keys(ye), ii = (e) => (t, n) => {
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) => {
3612
3579
  switch (t.type) {
3613
3580
  case "string":
3614
- return ai(t, n);
3581
+ return ii(t, n);
3615
3582
  case "integer":
3616
3583
  case "number":
3617
- return ci(t, n);
3584
+ return ui(t, n);
3618
3585
  case "boolean":
3619
- return li(t, n);
3586
+ return ci(t, n);
3620
3587
  case "array":
3621
- return pi(t, n);
3588
+ return li(t, n);
3622
3589
  case "custom": {
3623
3590
  if (!e)
3624
3591
  throw new Error(
3625
3592
  'Validator type "custom" requires a customValidators object, but it was not supplied.'
3626
3593
  );
3627
- return di(t, e);
3594
+ return pi(t, e);
3628
3595
  }
3629
3596
  }
3630
3597
  };
@@ -3632,7 +3599,7 @@ function b(e, t) {
3632
3599
  if (e !== void 0)
3633
3600
  return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
3634
3601
  }
3635
- function ai(e, t) {
3602
+ function ii(e, t) {
3636
3603
  return G(e, (n) => {
3637
3604
  const r = b(n.messages?.invalid, t);
3638
3605
  let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
@@ -3667,7 +3634,7 @@ function ai(e, t) {
3667
3634
  o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3668
3635
  }
3669
3636
  if (n.format !== void 0)
3670
- if (si.includes(n.format)) {
3637
+ if (oi.includes(n.format)) {
3671
3638
  const s = b(n.messages?.format, t);
3672
3639
  o = o.check(
3673
3640
  s ? /* @__PURE__ */ Ot((i, a) => {
@@ -3683,23 +3650,23 @@ function ai(e, t) {
3683
3650
  return o;
3684
3651
  });
3685
3652
  }
3686
- const ui = (e, t) => {
3653
+ const ai = (e, t) => {
3687
3654
  if (t === 0)
3688
3655
  return !1;
3689
3656
  const n = e / t;
3690
3657
  return Math.abs(n - Math.round(n)) < 1e-10;
3691
3658
  };
3692
- function ci(e, t) {
3659
+ function ui(e, t) {
3693
3660
  return G(e, (n) => {
3694
3661
  const r = b(n.messages?.invalid, t);
3695
3662
  let o = r ? /* @__PURE__ */ Ye(r) : /* @__PURE__ */ Ye();
3696
- if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Hs())), n.minimum !== void 0) {
3663
+ if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Xs())), n.minimum !== void 0) {
3697
3664
  const s = b(n.messages?.minimum, t), i = n.minimum;
3698
- o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ go(i));
3665
+ o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ ho(i));
3699
3666
  }
3700
3667
  if (n.maximum !== void 0) {
3701
3668
  const s = b(n.messages?.maximum, t), i = n.maximum;
3702
- o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ ho(i));
3669
+ o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ fo(i));
3703
3670
  }
3704
3671
  if (n.exclusiveMinimum !== void 0) {
3705
3672
  const s = b(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
@@ -3712,7 +3679,7 @@ function ci(e, t) {
3712
3679
  if (n.multipleOf !== void 0) {
3713
3680
  const s = b(n.messages?.multipleOf, t), i = n.multipleOf;
3714
3681
  o = o.check(
3715
- /* @__PURE__ */ S((a) => ui(a, i), s ? { error: s } : void 0)
3682
+ /* @__PURE__ */ S((a) => ai(a, i), s ? { error: s } : void 0)
3716
3683
  );
3717
3684
  }
3718
3685
  if (n.enum) {
@@ -3726,7 +3693,7 @@ function ci(e, t) {
3726
3693
  return o;
3727
3694
  });
3728
3695
  }
3729
- function li(e, t) {
3696
+ function ci(e, t) {
3730
3697
  return G(e, (n) => {
3731
3698
  const r = b(n.messages?.invalid, t);
3732
3699
  let o = r ? /* @__PURE__ */ Ge(r) : /* @__PURE__ */ Ge();
@@ -3737,7 +3704,7 @@ function li(e, t) {
3737
3704
  return o;
3738
3705
  });
3739
3706
  }
3740
- function pi(e, t) {
3707
+ function li(e, t) {
3741
3708
  return G(e, (n) => {
3742
3709
  const r = b(n.messages?.invalid, t);
3743
3710
  let o = r ? /* @__PURE__ */ Ke(/* @__PURE__ */ ge(), r) : /* @__PURE__ */ Ke(/* @__PURE__ */ ge());
@@ -3760,7 +3727,7 @@ function pi(e, t) {
3760
3727
  return o;
3761
3728
  });
3762
3729
  }
3763
- function di(e, t) {
3730
+ function pi(e, t) {
3764
3731
  return G(e, (n) => {
3765
3732
  let r = /* @__PURE__ */ ge();
3766
3733
  return Pt(
@@ -3791,8 +3758,42 @@ function di(e, t) {
3791
3758
  }
3792
3759
  function G(e, t) {
3793
3760
  const n = t(e);
3794
- return e.required ? n : /* @__PURE__ */ ri(n);
3761
+ return e.required ? n : /* @__PURE__ */ ni(n);
3795
3762
  }
3763
+ const di = {
3764
+ // ACTION
3765
+ button: async () => (await import("./button.element-ATNRRDN3.js")).ButtonElement,
3766
+ // INPUTS
3767
+ calendar: async () => (await import("./calendar.element-O2of7VBr.js")).CalendarElement,
3768
+ rangeCalendar: async () => (await import("./range-calendar.element-C-4qqRGK.js")).RangeCalendarElement,
3769
+ rangeDateInput: async () => (await import("./range-date-input.element-D3xRMAaY.js")).RangeDateInputElement,
3770
+ rangeDatePicker: async () => (await import("./range-date-picker.element-Vgj3tFlQ.js")).RangeDatePickerElement,
3771
+ currency: async () => (await import("./currency.element-C7SZkoPP.js")).CurrencyElement,
3772
+ dateInput: async () => (await import("./date.element-COU_mEUt.js")).DateElement,
3773
+ datePicker: async () => (await import("./date-picker.element-D6v6aHR5.js")).DatePickerElement,
3774
+ dropdown: async () => (await import("./dropdown.element-DCUI5Y7I.js")).DropdownElement,
3775
+ list: async () => (await import("./list.element-G8RNRZXU.js")).ListElement,
3776
+ markdown: async () => (await import("./markdown.element-CT1JOOM3.js")).MarkdownElement,
3777
+ password: async () => (await import("./password.element-B4-0SCe4.js")).PasswordElement,
3778
+ textinput: async () => (await import("./textinput.element-DKuplF1A.js")).TextinputElement,
3779
+ textarea: async () => (await import("./textarea.element-C8yx2u0o.js")).TextareaElement,
3780
+ toggle: async () => (await import("./toggle.element-NXRrhALB.js")).ToggleElement,
3781
+ checkbox: async () => (await import("./checkbox.element-DMmer4Jw.js")).CheckboxElement,
3782
+ number: async () => (await import("./number.element-HaXEg_7U.js")).NumberElement,
3783
+ radiogroup: async () => (await import("./radiogroup.element-DzHLgRh1.js")).RadiogroupElement,
3784
+ select: async () => (await import("./select.element-DuGZjlZY.js")).SelectElement,
3785
+ // REPEATER
3786
+ repeater: async () => (await import("./repeater.element-Ry8HyMfW.js")).RepeaterElement,
3787
+ // LAYOUTS
3788
+ flex: async () => (await import("./flex.element-B0sG0YT1.js")).FlexElement,
3789
+ grid: async () => (await import("./grid.element-Bf5aEjkj.js")).GridElement,
3790
+ tabs: async () => (await import("./tabs.element-VLrtF1j5.js")).TabsElement,
3791
+ accordion: async () => (await import("./accordion.element-ChLmV6QT.js")).AccordionElement,
3792
+ // DISPLAY
3793
+ alert: async () => (await import("./alert.element-9QFlqjj9.js")).AlertElement,
3794
+ markdownText: async () => (await import("./markdown-text.element-C_1OqrGa.js")).MarkdownTextElement,
3795
+ renderer: async () => (await import("./renderer.element-DMsheQGi.js")).RendererElement
3796
+ };
3796
3797
  var mi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ce = (e, t, n, r) => {
3797
3798
  for (var o = r > 1 ? void 0 : r ? fi(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3798
3799
  (i = e[s]) && (o = (r ? i(t, n, o) : i(o)) || o);
@@ -3812,10 +3813,10 @@ let B = class extends Zt {
3812
3813
  return this;
3813
3814
  }
3814
3815
  render() {
3815
- const e = this.config, t = Ln(e.formDef, e.formSelectors, e.formConfig), n = {
3816
+ const e = this.config, t = Mn(e.formDef, e.formSelectors, e.formConfig), n = {
3816
3817
  formDef: t.formDef,
3817
3818
  widgetLoaders: {
3818
- ...Mt,
3819
+ ...di,
3819
3820
  ...t.widgetLoaders,
3820
3821
  ...e.customWidgetLoaders ?? {}
3821
3822
  },
@@ -3830,7 +3831,7 @@ let B = class extends Zt {
3830
3831
  data: e.data,
3831
3832
  meta: e.meta,
3832
3833
  formName: e.formName
3833
- }, r = ii({
3834
+ }, r = si({
3834
3835
  ...e.customValidators ?? {}
3835
3836
  }), o = t.formEvent, s = o ? (i) => o(i.detail) : void 0;
3836
3837
  return Ct`
@@ -3857,5 +3858,5 @@ B = ce([
3857
3858
  ], B);
3858
3859
  export {
3859
3860
  B as FormElement,
3860
- Mt as widgetLoaders
3861
+ di as widgetLoaders
3861
3862
  };