@golemui/gui-lit 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/calendar-BuJgwvZx.js +254 -0
  3. package/{calendar.element-DcnTyvfg.js → calendar.element-M5MPJmap.js} +1 -1
  4. package/{currency.element-5GSakkxF.js → currency.element-CfFrAtrr.js} +4 -1
  5. package/{date-CDUlLuYy.js → date-Bj9mI3GU.js} +80 -29
  6. package/date-input-cJDkNnVw.js +184 -0
  7. package/date-picker.element-va_-LGZD.js +312 -0
  8. package/date-time-calendar-BzRfkLKU.js +361 -0
  9. package/date-time-calendar.element-DC4NK0y1.js +93 -0
  10. package/date-time-input-BXxsfuyZ.js +214 -0
  11. package/date-time-picker.element-Dy-8cb-_.js +380 -0
  12. package/date-time.element-Bv4XdzMi.js +87 -0
  13. package/{date.element-BZO0UQez.js → date.element-Consgsbb.js} +32 -27
  14. package/day-status-0-hJHrI7.js +530 -0
  15. package/{dropdown.element-CyJbVAA5.js → dropdown.element-WsD61Qel.js} +46 -36
  16. package/focus-leave.controller-2gV0pQd5.js +73 -0
  17. package/index.js +1199 -971
  18. package/index.umd.cjs +1582 -530
  19. package/lib/components/date-picker.element.d.ts +0 -11
  20. package/lib/components/date-time-calendar.element.d.ts +18 -0
  21. package/lib/components/date-time-picker.element.d.ts +18 -0
  22. package/lib/components/date-time.element.d.ts +18 -0
  23. package/lib/components/dropdown.element.d.ts +2 -0
  24. package/lib/components/range-calendar.element.d.ts +2 -1
  25. package/lib/components/range-date-picker.element.d.ts +0 -15
  26. package/lib/components/range-date-time-calendar.element.d.ts +18 -0
  27. package/lib/components/range-date-time-input.element.d.ts +18 -0
  28. package/lib/components/range-date-time-picker.element.d.ts +18 -0
  29. package/lib/components/range-time-input.element.d.ts +18 -0
  30. package/lib/components/range-time-picker.element.d.ts +18 -0
  31. package/lib/components/time-picker.element.d.ts +18 -0
  32. package/lib/components/time.element.d.ts +18 -0
  33. package/{list-D1oKnH89.js → list-CrLIL4by.js} +76 -61
  34. package/{list.element-Co3V3Cn5.js → list.element-DV82YxnJ.js} +22 -22
  35. package/package.json +6 -6
  36. package/part-templates-Db871PS3.js +677 -0
  37. package/pill-ranges-DCqDmpkk.js +48 -0
  38. package/{pills-B66qz_KX.js → pills-Be1UrLgq.js} +4 -1
  39. package/popup.controller-eUDxE6jD.js +71 -0
  40. package/range-calendar-CKPYeSGt.js +452 -0
  41. package/{range-calendar.element-_1bHW_c1.js → range-calendar.element-D6KYq18B.js} +24 -20
  42. package/range-commit-8-MmYUyo.js +14 -0
  43. package/range-date-input-D--AqBMv.js +292 -0
  44. package/{range-date-input.element-BqzAF0O3.js → range-date-input.element-D4nIXJbw.js} +8 -7
  45. package/range-date-picker.element-dhxPAAE6.js +386 -0
  46. package/range-date-time-calendar-yksWrR7b.js +720 -0
  47. package/range-date-time-calendar.element-C00aDefZ.js +95 -0
  48. package/range-date-time-input-B37TUoM3.js +322 -0
  49. package/range-date-time-input.element-DUnbv4ed.js +81 -0
  50. package/range-date-time-picker.element-Cbps6s_G.js +412 -0
  51. package/range-selection-CU3hxLJE.js +25 -0
  52. package/range-time-input-3lhqR1Ku.js +329 -0
  53. package/range-time-input.element-dU2iBdmJ.js +81 -0
  54. package/range-time-picker.element-v6nQsIPw.js +429 -0
  55. package/{select.element-jcDF1h-g.js → select.element-C0V-Bv3L.js} +94 -90
  56. package/{tags.element-CX3vQL8L.js → tags.element-DvwEpxpK.js} +1 -1
  57. package/time-input-BOhlBGJZ.js +181 -0
  58. package/time-list-Czo48bZm.js +217 -0
  59. package/time-picker-bFJ63ky8.js +261 -0
  60. package/time-picker.element-CYZVXgRS.js +85 -0
  61. package/time.element-fK3oLi49.js +82 -0
  62. package/abstract-calendar-D0-077XJ.js +0 -545
  63. package/calendar-BclCC9VJ.js +0 -96
  64. package/date-input-DCdGWRio.js +0 -268
  65. package/date-picker.element-k7AJFQ5W.js +0 -168
  66. package/range-calendar-CBINu84w.js +0 -255
  67. package/range-date-input-BYXzqnr1.js +0 -395
  68. package/range-date-picker.element-BCBefgvY.js +0 -182
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { filterTap as zt, standardValidate as Ge, isStandardValidateSuccess as Ke } from "@golemui/core";
1
+ import { filterTap as St, standardValidate as Ye, isStandardValidateSuccess as Ke } from "@golemui/core";
2
2
  import "@golemui/gui-shared";
3
3
  import "@golemui/lit";
4
- import { LitElement as Et, html as $t } from "lit";
5
- import { property as he, query as Ot, customElement as Zt } from "lit/decorators.js";
4
+ import { LitElement as zt, html as Pt } from "lit";
5
+ import { property as he, query as It, customElement as $t } from "lit/decorators.js";
6
6
  const qe = {
7
7
  LAYOUTS: "LAYOUTS",
8
8
  DISPLAYS: "DISPLAYS"
9
9
  };
10
- function Pt(e) {
10
+ function Ct(e) {
11
11
  return function(t, n = () => !0) {
12
12
  return {
13
13
  kind: "leaf",
@@ -17,10 +17,10 @@ function Pt(e) {
17
17
  };
18
18
  };
19
19
  }
20
- function w(e, t) {
20
+ function g(e, t) {
21
21
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
22
22
  }
23
- const Ct = (e, t) => ({
23
+ const Ot = (e, t) => ({
24
24
  type: "ITEMS",
25
25
  itemType: qe.DISPLAYS,
26
26
  items: [{ render: e }],
@@ -42,29 +42,29 @@ function X(e) {
42
42
  function He(e) {
43
43
  return q.has(e);
44
44
  }
45
- function h(e) {
46
- const t = (a) => {
45
+ function d(e) {
46
+ const t = (s) => {
47
47
  if (!e.sensibleDefaults)
48
48
  return {};
49
49
  let u = { ...e.sensibleDefaults.base };
50
- for (const c of a) {
51
- const p = c.config;
52
- for (const d of e.sensibleDefaults.fields) {
53
- const f = d;
54
- p[f] != null && (u = { ...u, [f]: p[f] });
50
+ for (const l of s) {
51
+ const p = l.config;
52
+ for (const m of e.sensibleDefaults.fields) {
53
+ const y = m;
54
+ p[y] != null && (u = { ...u, [y]: p[y] });
55
55
  }
56
56
  }
57
57
  return u;
58
- }, n = (a, u) => e.sensibleDefaults ? e.sensibleDefaults.apply(a, u) : a, r = (a) => {
58
+ }, n = (s, u) => e.sensibleDefaults ? e.sensibleDefaults.apply(s, u) : s, r = (s) => {
59
59
  switch (e.entryShape) {
60
60
  case "bare":
61
- return { baseDef: a };
61
+ return { baseDef: s };
62
62
  case "keyed": {
63
- const u = a;
63
+ const u = s;
64
64
  return { baseDef: u.def, path: u.key };
65
65
  }
66
66
  case "compound": {
67
- const u = a;
67
+ const u = s;
68
68
  return { baseDef: u.def, children: u.children };
69
69
  }
70
70
  }
@@ -78,55 +78,55 @@ function h(e) {
78
78
  ...e.getChildren ? { getChildren: e.getChildren } : {}
79
79
  };
80
80
  Xe(e.itemType, o);
81
- const s = Pt(e.itemType);
82
- return { gsl: s, gslByUid: (a, u) => s(u, ((c) => c.uid === a)) };
81
+ const a = Ct(e.itemType);
82
+ return { gsl: a, gslByUid: (s, u) => a(u, ((l) => l.uid === s)) };
83
83
  }
84
- function y(e) {
84
+ function b(e) {
85
85
  const {
86
86
  uid: t,
87
87
  path: n,
88
88
  label: r,
89
89
  disabled: o,
90
- readonly: s,
90
+ readonly: a,
91
91
  defaultValue: i,
92
- tags: a,
92
+ tags: s,
93
93
  type: u,
94
- size: c,
94
+ size: l,
95
95
  onLoad: p,
96
- onChange: d,
97
- onFilter: f,
98
- on: z,
99
- states: P,
96
+ onChange: m,
97
+ onFilter: y,
98
+ on: S,
99
+ states: C,
100
100
  include: B,
101
- exclude: ke,
102
- validator: we,
103
- ...C
101
+ exclude: Te,
102
+ validator: ke,
103
+ ...O
104
104
  } = e;
105
- return C;
105
+ return O;
106
106
  }
107
- function It(e) {
107
+ function Zt(e) {
108
108
  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()) : "";
109
109
  }
110
- function v(e, t) {
111
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: It(e.path) };
110
+ function f(e, t) {
111
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Zt(e.path) };
112
112
  }
113
- function Z(e, t) {
113
+ function z(e, t) {
114
114
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
115
115
  }
116
- function Lt(e) {
116
+ function Dt(e) {
117
117
  switch (e.type) {
118
118
  case "text":
119
119
  return Mt(e);
120
120
  case "number":
121
121
  return Nt(e);
122
122
  case "boolean":
123
- return Dt(e);
123
+ return Lt(e);
124
124
  default:
125
125
  throw new Error(`Unsupported field type "${e.type}"`);
126
126
  }
127
127
  }
128
- function Dt(e) {
129
- const t = y(e);
128
+ function Lt(e) {
129
+ const t = b(e);
130
130
  return {
131
131
  uid: e.uid ?? "",
132
132
  kind: "input",
@@ -135,12 +135,12 @@ function Dt(e) {
135
135
  ...e.label != null ? { label: e.label } : {},
136
136
  ...e.disabled != null ? { disabled: e.disabled } : {},
137
137
  ...e.readonly != null ? { readonly: e.readonly } : {},
138
- ...e.validator != null ? { validator: w(e.validator, "boolean") } : {},
138
+ ...e.validator != null ? { validator: g(e.validator, "boolean") } : {},
139
139
  props: t
140
140
  };
141
141
  }
142
142
  function Mt(e) {
143
- const t = y(e);
143
+ const t = b(e);
144
144
  return {
145
145
  uid: e.uid ?? "",
146
146
  kind: "input",
@@ -153,11 +153,11 @@ function Mt(e) {
153
153
  placeholder: t.placeholder ?? "",
154
154
  ...t
155
155
  },
156
- validator: w(e.validator, "string")
156
+ validator: g(e.validator, "string")
157
157
  };
158
158
  }
159
159
  function Nt(e) {
160
- const t = y(e);
160
+ const t = b(e);
161
161
  return {
162
162
  uid: e.uid ?? "",
163
163
  kind: "input",
@@ -170,10 +170,10 @@ function Nt(e) {
170
170
  placeholder: t.placeholder ?? "",
171
171
  ...t
172
172
  },
173
- validator: w(e.validator, "number")
173
+ validator: g(e.validator, "number")
174
174
  };
175
175
  }
176
- h({
176
+ d({
177
177
  itemType: "INPUTS",
178
178
  entryShape: "keyed",
179
179
  sensibleDefaults: {
@@ -183,19 +183,19 @@ h({
183
183
  },
184
184
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
185
185
  apply: (e, t) => {
186
- let n = v(e, t);
187
- return n = Z(n, t), n;
186
+ let n = f(e, t);
187
+ return n = z(n, t), n;
188
188
  }
189
189
  },
190
- mapToWidget: Lt
190
+ mapToWidget: Dt
191
191
  });
192
- h({
192
+ d({
193
193
  itemType: "SELECT",
194
194
  entryShape: "keyed",
195
195
  sensibleDefaults: {
196
196
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
197
197
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
198
- apply: (e, t) => Z(v(e, t), t)
198
+ apply: (e, t) => z(f(e, t), t)
199
199
  },
200
200
  mapToWidget: (e) => ({
201
201
  uid: e.uid ?? "",
@@ -206,10 +206,10 @@ h({
206
206
  ...e.disabled != null ? { disabled: e.disabled } : {},
207
207
  ...e.readonly != null ? { readonly: e.readonly } : {},
208
208
  ...e.validator != null ? { validator: e.validator } : {},
209
- props: y(e)
209
+ props: b(e)
210
210
  })
211
211
  });
212
- h({
212
+ d({
213
213
  itemType: "DROPDOWN",
214
214
  entryShape: "keyed",
215
215
  sensibleDefaults: {
@@ -218,7 +218,7 @@ h({
218
218
  suppressAutomaticPlaceholders: !1
219
219
  },
220
220
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
221
- apply: (e, t) => Z(v(e, t), t)
221
+ apply: (e, t) => z(f(e, t), t)
222
222
  },
223
223
  mapToWidget: (e) => ({
224
224
  uid: e.uid ?? "",
@@ -229,16 +229,16 @@ h({
229
229
  ...e.disabled != null ? { disabled: e.disabled } : {},
230
230
  ...e.readonly != null ? { readonly: e.readonly } : {},
231
231
  ...e.validator != null ? { validator: e.validator } : {},
232
- props: y(e)
232
+ props: b(e)
233
233
  })
234
234
  });
235
- h({
235
+ d({
236
236
  itemType: "RADIOGROUP",
237
237
  entryShape: "keyed",
238
238
  sensibleDefaults: {
239
239
  base: { suppressAutomaticLabels: !1 },
240
240
  fields: ["suppressAutomaticLabels"],
241
- apply: (e, t) => v(e, t)
241
+ apply: (e, t) => f(e, t)
242
242
  },
243
243
  mapToWidget: (e) => ({
244
244
  uid: e.uid ?? "",
@@ -249,16 +249,16 @@ h({
249
249
  ...e.disabled != null ? { disabled: e.disabled } : {},
250
250
  ...e.readonly != null ? { readonly: e.readonly } : {},
251
251
  ...e.validator != null ? { validator: e.validator } : {},
252
- props: y(e)
252
+ props: b(e)
253
253
  })
254
254
  });
255
- h({
255
+ d({
256
256
  itemType: "CHECKBOX",
257
257
  entryShape: "keyed",
258
258
  sensibleDefaults: {
259
259
  base: { suppressAutomaticLabels: !1 },
260
260
  fields: ["suppressAutomaticLabels"],
261
- apply: (e, t) => v(e, t)
261
+ apply: (e, t) => f(e, t)
262
262
  },
263
263
  mapToWidget: (e) => ({
264
264
  uid: e.uid ?? "",
@@ -268,17 +268,17 @@ h({
268
268
  ...e.label != null ? { label: e.label } : {},
269
269
  ...e.disabled != null ? { disabled: e.disabled } : {},
270
270
  ...e.readonly != null ? { readonly: e.readonly } : {},
271
- ...e.validator != null ? { validator: w(e.validator, "boolean") } : {},
272
- props: y(e)
271
+ ...e.validator != null ? { validator: g(e.validator, "boolean") } : {},
272
+ props: b(e)
273
273
  })
274
274
  });
275
- h({
275
+ d({
276
276
  itemType: "TEXTAREA",
277
277
  entryShape: "keyed",
278
278
  sensibleDefaults: {
279
279
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
280
280
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
281
- apply: (e, t) => Z(v(e, t), t)
281
+ apply: (e, t) => z(f(e, t), t)
282
282
  },
283
283
  mapToWidget: (e) => ({
284
284
  uid: e.uid ?? "",
@@ -288,17 +288,17 @@ h({
288
288
  ...e.label != null ? { label: e.label } : {},
289
289
  ...e.disabled != null ? { disabled: e.disabled } : {},
290
290
  ...e.readonly != null ? { readonly: e.readonly } : {},
291
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
292
- props: y(e)
291
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
292
+ props: b(e)
293
293
  })
294
294
  });
295
- h({
295
+ d({
296
296
  itemType: "PASSWORD",
297
297
  entryShape: "keyed",
298
298
  sensibleDefaults: {
299
299
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
300
300
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
301
- apply: (e, t) => Z(v(e, t), t)
301
+ apply: (e, t) => z(f(e, t), t)
302
302
  },
303
303
  mapToWidget: (e) => ({
304
304
  uid: e.uid ?? "",
@@ -308,17 +308,17 @@ h({
308
308
  ...e.label != null ? { label: e.label } : {},
309
309
  ...e.disabled != null ? { disabled: e.disabled } : {},
310
310
  ...e.readonly != null ? { readonly: e.readonly } : {},
311
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
312
- props: y(e)
311
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
312
+ props: b(e)
313
313
  })
314
314
  });
315
- h({
315
+ d({
316
316
  itemType: "CURRENCY",
317
317
  entryShape: "keyed",
318
318
  sensibleDefaults: {
319
319
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
320
320
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
321
- apply: (e, t) => Z(v(e, t), t)
321
+ apply: (e, t) => z(f(e, t), t)
322
322
  },
323
323
  mapToWidget: (e) => ({
324
324
  uid: e.uid ?? "",
@@ -328,17 +328,17 @@ h({
328
328
  ...e.label != null ? { label: e.label } : {},
329
329
  ...e.disabled != null ? { disabled: e.disabled } : {},
330
330
  ...e.readonly != null ? { readonly: e.readonly } : {},
331
- ...e.validator != null ? { validator: w(e.validator, "number") } : {},
332
- props: y(e)
331
+ ...e.validator != null ? { validator: g(e.validator, "number") } : {},
332
+ props: b(e)
333
333
  })
334
334
  });
335
- h({
335
+ d({
336
336
  itemType: "MARKDOWN",
337
337
  entryShape: "keyed",
338
338
  sensibleDefaults: {
339
339
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
340
340
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
341
- apply: (e, t) => Z(v(e, t), t)
341
+ apply: (e, t) => z(f(e, t), t)
342
342
  },
343
343
  mapToWidget: (e) => ({
344
344
  uid: e.uid ?? "",
@@ -348,17 +348,17 @@ h({
348
348
  ...e.label != null ? { label: e.label } : {},
349
349
  ...e.disabled != null ? { disabled: e.disabled } : {},
350
350
  ...e.readonly != null ? { readonly: e.readonly } : {},
351
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
352
- props: y(e)
351
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
352
+ props: b(e)
353
353
  })
354
354
  });
355
- h({
355
+ d({
356
356
  itemType: "LIST",
357
357
  entryShape: "keyed",
358
358
  sensibleDefaults: {
359
359
  base: { suppressAutomaticLabels: !1 },
360
360
  fields: ["suppressAutomaticLabels"],
361
- apply: (e, t) => v(e, t)
361
+ apply: (e, t) => f(e, t)
362
362
  },
363
363
  mapToWidget: (e) => ({
364
364
  uid: e.uid ?? "",
@@ -369,16 +369,16 @@ h({
369
369
  ...e.disabled != null ? { disabled: e.disabled } : {},
370
370
  ...e.readonly != null ? { readonly: e.readonly } : {},
371
371
  ...e.validator != null ? { validator: e.validator } : {},
372
- props: y(e)
372
+ props: b(e)
373
373
  })
374
374
  });
375
- h({
375
+ d({
376
376
  itemType: "CALENDAR",
377
377
  entryShape: "bare",
378
378
  sensibleDefaults: {
379
379
  base: { suppressAutomaticLabels: !1 },
380
380
  fields: ["suppressAutomaticLabels"],
381
- apply: (e, t) => v(e, t)
381
+ apply: (e, t) => f(e, t)
382
382
  },
383
383
  mapToWidget: (e) => ({
384
384
  uid: e.uid ?? "",
@@ -388,17 +388,37 @@ h({
388
388
  ...e.label != null ? { label: e.label } : {},
389
389
  ...e.disabled != null ? { disabled: e.disabled } : {},
390
390
  ...e.readonly != null ? { readonly: e.readonly } : {},
391
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
392
- props: y(e)
391
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
392
+ props: b(e)
393
+ })
394
+ });
395
+ d({
396
+ itemType: "DATE_TIME_CALENDAR",
397
+ entryShape: "bare",
398
+ sensibleDefaults: {
399
+ base: { suppressAutomaticLabels: !1 },
400
+ fields: ["suppressAutomaticLabels"],
401
+ apply: (e, t) => f(e, t)
402
+ },
403
+ mapToWidget: (e) => ({
404
+ uid: e.uid ?? "",
405
+ kind: "input",
406
+ type: "dateTimeCalendar",
407
+ path: e.path ?? "",
408
+ ...e.label != null ? { label: e.label } : {},
409
+ ...e.disabled != null ? { disabled: e.disabled } : {},
410
+ ...e.readonly != null ? { readonly: e.readonly } : {},
411
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
412
+ props: b(e)
393
413
  })
394
414
  });
395
- h({
415
+ d({
396
416
  itemType: "DATE_INPUT",
397
417
  entryShape: "keyed",
398
418
  sensibleDefaults: {
399
419
  base: { suppressAutomaticLabels: !1 },
400
420
  fields: ["suppressAutomaticLabels"],
401
- apply: (e, t) => v(e, t)
421
+ apply: (e, t) => f(e, t)
402
422
  },
403
423
  mapToWidget: (e) => ({
404
424
  uid: e.uid ?? "",
@@ -408,11 +428,11 @@ h({
408
428
  ...e.label != null ? { label: e.label } : {},
409
429
  ...e.disabled != null ? { disabled: e.disabled } : {},
410
430
  ...e.readonly != null ? { readonly: e.readonly } : {},
411
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
412
- props: y(e)
431
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
432
+ props: b(e)
413
433
  })
414
434
  });
415
- h({
435
+ d({
416
436
  itemType: "DATE_PICKER",
417
437
  entryShape: "keyed",
418
438
  sensibleDefaults: {
@@ -421,7 +441,7 @@ h({
421
441
  suppressAutomaticPlaceholders: !1
422
442
  },
423
443
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
424
- apply: (e, t) => Z(v(e, t), t)
444
+ apply: (e, t) => z(f(e, t), t)
425
445
  },
426
446
  mapToWidget: (e) => ({
427
447
  uid: e.uid ?? "",
@@ -431,17 +451,40 @@ h({
431
451
  ...e.label != null ? { label: e.label } : {},
432
452
  ...e.disabled != null ? { disabled: e.disabled } : {},
433
453
  ...e.readonly != null ? { readonly: e.readonly } : {},
434
- ...e.validator != null ? { validator: w(e.validator, "string") } : {},
435
- props: y(e)
454
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
455
+ props: b(e)
456
+ })
457
+ });
458
+ d({
459
+ itemType: "DATE_TIME_PICKER",
460
+ entryShape: "keyed",
461
+ sensibleDefaults: {
462
+ base: {
463
+ suppressAutomaticLabels: !1,
464
+ suppressAutomaticPlaceholders: !1
465
+ },
466
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
467
+ apply: (e, t) => z(f(e, t), t)
468
+ },
469
+ mapToWidget: (e) => ({
470
+ uid: e.uid ?? "",
471
+ kind: "input",
472
+ type: "dateTimePicker",
473
+ path: e.path ?? "",
474
+ ...e.label != null ? { label: e.label } : {},
475
+ ...e.disabled != null ? { disabled: e.disabled } : {},
476
+ ...e.readonly != null ? { readonly: e.readonly } : {},
477
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
478
+ props: b(e)
436
479
  })
437
480
  });
438
- h({
481
+ d({
439
482
  itemType: "RANGE_CALENDAR",
440
483
  entryShape: "keyed",
441
484
  sensibleDefaults: {
442
485
  base: { suppressAutomaticLabels: !1 },
443
486
  fields: ["suppressAutomaticLabels"],
444
- apply: (e, t) => v(e, t)
487
+ apply: (e, t) => f(e, t)
445
488
  },
446
489
  mapToWidget: (e) => ({
447
490
  uid: e.uid ?? "",
@@ -451,17 +494,17 @@ h({
451
494
  ...e.label != null ? { label: e.label } : {},
452
495
  ...e.disabled != null ? { disabled: e.disabled } : {},
453
496
  ...e.readonly != null ? { readonly: e.readonly } : {},
454
- ...e.validator != null ? { validator: w(e.validator, "array") } : {},
455
- props: y(e)
497
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
498
+ props: b(e)
456
499
  })
457
500
  });
458
- h({
501
+ d({
459
502
  itemType: "RANGE_DATE_INPUT",
460
503
  entryShape: "keyed",
461
504
  sensibleDefaults: {
462
505
  base: { suppressAutomaticLabels: !1 },
463
506
  fields: ["suppressAutomaticLabels"],
464
- apply: (e, t) => v(e, t)
507
+ apply: (e, t) => f(e, t)
465
508
  },
466
509
  mapToWidget: (e) => ({
467
510
  uid: e.uid ?? "",
@@ -471,11 +514,154 @@ h({
471
514
  ...e.label != null ? { label: e.label } : {},
472
515
  ...e.disabled != null ? { disabled: e.disabled } : {},
473
516
  ...e.readonly != null ? { readonly: e.readonly } : {},
474
- ...e.validator != null ? { validator: w(e.validator, "array") } : {},
475
- props: y(e)
517
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
518
+ props: b(e)
519
+ })
520
+ });
521
+ d({
522
+ itemType: "RANGE_DATE_TIME_INPUT",
523
+ entryShape: "keyed",
524
+ sensibleDefaults: {
525
+ base: { suppressAutomaticLabels: !1 },
526
+ fields: ["suppressAutomaticLabels"],
527
+ apply: (e, t) => f(e, t)
528
+ },
529
+ mapToWidget: (e) => ({
530
+ uid: e.uid ?? "",
531
+ kind: "input",
532
+ type: "rangeDateTimeInput",
533
+ path: e.path ?? "",
534
+ ...e.label != null ? { label: e.label } : {},
535
+ ...e.disabled != null ? { disabled: e.disabled } : {},
536
+ ...e.readonly != null ? { readonly: e.readonly } : {},
537
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
538
+ props: b(e)
539
+ })
540
+ });
541
+ d({
542
+ itemType: "RANGE_DATE_TIME_CALENDAR",
543
+ entryShape: "keyed",
544
+ sensibleDefaults: {
545
+ base: { suppressAutomaticLabels: !1 },
546
+ fields: ["suppressAutomaticLabels"],
547
+ apply: (e, t) => f(e, t)
548
+ },
549
+ mapToWidget: (e) => ({
550
+ uid: e.uid ?? "",
551
+ kind: "input",
552
+ type: "rangeDateTimeCalendar",
553
+ path: e.path ?? "",
554
+ ...e.label != null ? { label: e.label } : {},
555
+ ...e.disabled != null ? { disabled: e.disabled } : {},
556
+ ...e.readonly != null ? { readonly: e.readonly } : {},
557
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
558
+ props: b(e)
559
+ })
560
+ });
561
+ d({
562
+ itemType: "RANGE_DATE_TIME_PICKER",
563
+ entryShape: "keyed",
564
+ sensibleDefaults: {
565
+ base: { suppressAutomaticLabels: !1 },
566
+ fields: ["suppressAutomaticLabels"],
567
+ apply: (e, t) => f(e, t)
568
+ },
569
+ mapToWidget: (e) => ({
570
+ uid: e.uid ?? "",
571
+ kind: "input",
572
+ type: "rangeDateTimePicker",
573
+ path: e.path ?? "",
574
+ ...e.label != null ? { label: e.label } : {},
575
+ ...e.disabled != null ? { disabled: e.disabled } : {},
576
+ ...e.readonly != null ? { readonly: e.readonly } : {},
577
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
578
+ props: b(e)
579
+ })
580
+ });
581
+ d({
582
+ itemType: "RANGE_TIME_INPUT",
583
+ entryShape: "keyed",
584
+ sensibleDefaults: {
585
+ base: { suppressAutomaticLabels: !1 },
586
+ fields: ["suppressAutomaticLabels"],
587
+ apply: (e, t) => f(e, t)
588
+ },
589
+ mapToWidget: (e) => ({
590
+ uid: e.uid ?? "",
591
+ kind: "input",
592
+ type: "rangeTimeInput",
593
+ path: e.path ?? "",
594
+ ...e.label != null ? { label: e.label } : {},
595
+ ...e.disabled != null ? { disabled: e.disabled } : {},
596
+ ...e.readonly != null ? { readonly: e.readonly } : {},
597
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
598
+ props: b(e)
599
+ })
600
+ });
601
+ d({
602
+ itemType: "TIME_INPUT",
603
+ entryShape: "keyed",
604
+ sensibleDefaults: {
605
+ base: { suppressAutomaticLabels: !1 },
606
+ fields: ["suppressAutomaticLabels"],
607
+ apply: (e, t) => f(e, t)
608
+ },
609
+ mapToWidget: (e) => ({
610
+ uid: e.uid ?? "",
611
+ kind: "input",
612
+ type: "timeInput",
613
+ path: e.path ?? "",
614
+ ...e.label != null ? { label: e.label } : {},
615
+ ...e.disabled != null ? { disabled: e.disabled } : {},
616
+ ...e.readonly != null ? { readonly: e.readonly } : {},
617
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
618
+ props: b(e)
476
619
  })
477
620
  });
478
- h({
621
+ d({
622
+ itemType: "TIME_PICKER",
623
+ entryShape: "keyed",
624
+ sensibleDefaults: {
625
+ base: {
626
+ suppressAutomaticLabels: !1,
627
+ suppressAutomaticPlaceholders: !1
628
+ },
629
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
630
+ apply: (e, t) => z(f(e, t), t)
631
+ },
632
+ mapToWidget: (e) => ({
633
+ uid: e.uid ?? "",
634
+ kind: "input",
635
+ type: "timePicker",
636
+ path: e.path ?? "",
637
+ ...e.label != null ? { label: e.label } : {},
638
+ ...e.disabled != null ? { disabled: e.disabled } : {},
639
+ ...e.readonly != null ? { readonly: e.readonly } : {},
640
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
641
+ props: b(e)
642
+ })
643
+ });
644
+ d({
645
+ itemType: "DATE_TIME_INPUT",
646
+ entryShape: "keyed",
647
+ sensibleDefaults: {
648
+ base: { suppressAutomaticLabels: !1 },
649
+ fields: ["suppressAutomaticLabels"],
650
+ apply: (e, t) => f(e, t)
651
+ },
652
+ mapToWidget: (e) => ({
653
+ uid: e.uid ?? "",
654
+ kind: "input",
655
+ type: "dateTimeInput",
656
+ path: e.path ?? "",
657
+ ...e.label != null ? { label: e.label } : {},
658
+ ...e.disabled != null ? { disabled: e.disabled } : {},
659
+ ...e.readonly != null ? { readonly: e.readonly } : {},
660
+ ...e.validator != null ? { validator: g(e.validator, "string") } : {},
661
+ props: b(e)
662
+ })
663
+ });
664
+ d({
479
665
  itemType: "RANGE_DATE_PICKER",
480
666
  entryShape: "keyed",
481
667
  sensibleDefaults: {
@@ -484,7 +670,7 @@ h({
484
670
  suppressAutomaticPlaceholders: !1
485
671
  },
486
672
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
487
- apply: (e, t) => Z(v(e, t), t)
673
+ apply: (e, t) => z(f(e, t), t)
488
674
  },
489
675
  mapToWidget: (e) => ({
490
676
  uid: e.uid ?? "",
@@ -494,15 +680,35 @@ h({
494
680
  ...e.label != null ? { label: e.label } : {},
495
681
  ...e.disabled != null ? { disabled: e.disabled } : {},
496
682
  ...e.readonly != null ? { readonly: e.readonly } : {},
497
- ...e.validator != null ? { validator: w(e.validator, "array") } : {},
498
- props: y(e)
683
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
684
+ props: b(e)
499
685
  })
500
686
  });
501
- function xt(e) {
687
+ d({
688
+ itemType: "RANGE_TIME_PICKER",
689
+ entryShape: "keyed",
690
+ sensibleDefaults: {
691
+ base: { suppressAutomaticLabels: !1 },
692
+ fields: ["suppressAutomaticLabels"],
693
+ apply: (e, t) => f(e, t)
694
+ },
695
+ mapToWidget: (e) => ({
696
+ uid: e.uid ?? "",
697
+ kind: "input",
698
+ type: "rangeTimePicker",
699
+ path: e.path ?? "",
700
+ ...e.label != null ? { label: e.label } : {},
701
+ ...e.disabled != null ? { disabled: e.disabled } : {},
702
+ ...e.readonly != null ? { readonly: e.readonly } : {},
703
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
704
+ props: b(e)
705
+ })
706
+ });
707
+ function Rt(e) {
502
708
  const t = {};
503
709
  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;
504
710
  }
505
- function Rt(e) {
711
+ function xt(e) {
506
712
  return {
507
713
  uid: e.uid ?? "",
508
714
  kind: "input",
@@ -511,25 +717,25 @@ function Rt(e) {
511
717
  ...e.label != null ? { label: e.label } : {},
512
718
  ...e.disabled != null ? { disabled: e.disabled } : {},
513
719
  ...e.readonly != null ? { readonly: e.readonly } : {},
514
- ...e.validator != null ? { validator: w(e.validator, "array") } : {},
720
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
515
721
  props: {
516
- ...xt(e),
722
+ ...Rt(e),
517
723
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
518
724
  }
519
725
  };
520
726
  }
521
- function ae(e, t) {
727
+ function se(e, t) {
522
728
  for (const n of e) {
523
729
  if (typeof n == "function") continue;
524
730
  const r = n;
525
- typeof r.path == "string" && r.path && !r.path.startsWith(t) && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && ae(r.children, t);
731
+ typeof r.path == "string" && r.path && !r.path.startsWith(t) && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && se(r.children, t);
526
732
  const o = r.props;
527
- o?.template?.children && Array.isArray(o.template.children) && ae(o.template.children, t);
733
+ o?.template?.children && Array.isArray(o.template.children) && se(o.template.children, t);
528
734
  }
529
735
  }
530
- function Ft(e, t) {
736
+ function Wt(e, t) {
531
737
  const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
532
- r && ae(n, r + ".items.");
738
+ r && se(n, r + ".items.");
533
739
  const o = {
534
740
  kind: "layout",
535
741
  type: "flex",
@@ -544,16 +750,16 @@ function Ft(e, t) {
544
750
  props: { ...i.props, template: o }
545
751
  };
546
752
  }
547
- const s = e.fn;
753
+ const a = e.fn;
548
754
  return ((i) => {
549
- const a = s(i), u = t.mapStaticDef(a, "REPEATER");
755
+ const s = a(i), u = t.mapStaticDef(s, "REPEATER");
550
756
  return {
551
757
  ...u,
552
758
  props: { ...u.props, template: o }
553
759
  };
554
760
  });
555
761
  }
556
- function Wt(e) {
762
+ function Ft(e) {
557
763
  return {
558
764
  baseDef: e.def,
559
765
  path: e.key,
@@ -564,11 +770,11 @@ function Ut(e) {
564
770
  return e.children;
565
771
  }
566
772
  const jt = {
567
- parseEntry: Wt,
773
+ parseEntry: Ft,
568
774
  rollUpSensibleDefaults: () => ({}),
569
775
  applySensibleDefaults: (e) => e,
570
- mapToWidget: Rt,
571
- buildCustomWidget: Ft,
776
+ mapToWidget: xt,
777
+ buildCustomWidget: Wt,
572
778
  getChildren: Ut
573
779
  };
574
780
  Xe("REPEATER", jt);
@@ -594,27 +800,27 @@ class Bt {
594
800
  if (t.kind === "dynamic") {
595
801
  const i = t.fn;
596
802
  return { kind: "dynamic", fn: (u) => {
597
- const c = i(u);
598
- return this.wireOnClick(c, n, r);
803
+ const l = i(u);
804
+ return this.wireOnClick(l, n, r);
599
805
  } };
600
806
  }
601
807
  const o = t.def;
602
808
  return { kind: "static", def: this.wireOnClick(o, n, r) };
603
809
  }
604
810
  wireOnClick(t, n, r) {
605
- const o = r.next(), s = t.onClick;
606
- if (typeof s == "function") {
607
- const { onClick: i, ...a } = t, u = s(void 0);
608
- return typeof u == "string" ? { ...a, uid: o, on: { click: u } } : (n.set(o, (c) => s(c.data)), { ...a, uid: o, on: { click: o } });
811
+ const o = r.next(), a = t.onClick;
812
+ if (typeof a == "function") {
813
+ const { onClick: i, ...s } = t, u = a(void 0);
814
+ return typeof u == "string" ? { ...s, uid: o, on: { click: u } } : (n.set(o, (l) => a(l.data)), { ...s, uid: o, on: { click: o } });
609
815
  }
610
816
  return { ...t, uid: o };
611
817
  }
612
818
  // ── Universal: onLoad, onChange, onFilter ──────────────────────
613
819
  wireInputLayoutEvents(t, n, r) {
614
820
  if (t.kind === "dynamic") {
615
- const s = t.fn;
616
- return { kind: "dynamic", fn: (a) => {
617
- const u = s(a);
821
+ const a = t.fn;
822
+ return { kind: "dynamic", fn: (s) => {
823
+ const u = a(s);
618
824
  return this.wireEventProperties(u, n, r);
619
825
  } };
620
826
  }
@@ -622,44 +828,44 @@ class Bt {
622
828
  }
623
829
  wireEventProperties(t, n, r) {
624
830
  const o = { ...t.on || {} };
625
- let s = !1;
831
+ let a = !1;
626
832
  const i = { ...t };
627
- for (const a of Vt) {
628
- const u = t[a];
833
+ for (const s of Vt) {
834
+ const u = t[s];
629
835
  if (u == null) continue;
630
- const c = Je[a];
836
+ const l = Je[s];
631
837
  if (typeof u == "function") {
632
838
  const p = Qe(u);
633
839
  if (p != null)
634
- o[c] = p;
840
+ o[l] = p;
635
841
  else {
636
- const d = r.next();
637
- n.set(d, u), o[c] = d;
842
+ const m = r.next();
843
+ n.set(m, u), o[l] = m;
638
844
  }
639
- s = !0;
640
- } else typeof u == "string" && (o[c] = u, s = !0);
641
- delete i[a];
845
+ a = !0;
846
+ } else typeof u == "string" && (o[l] = u, a = !0);
847
+ delete i[s];
642
848
  }
643
- return s && (i.on = o), i;
849
+ return a && (i.on = o), i;
644
850
  }
645
851
  }
646
- const fe = new Bt();
647
- function Yt(e) {
852
+ const be = new Bt();
853
+ function Gt(e) {
648
854
  const {
649
855
  uid: t,
650
856
  label: n,
651
857
  actionType: r,
652
858
  disabled: o,
653
- on: s,
859
+ on: a,
654
860
  onClick: i,
655
- data: a,
861
+ data: s,
656
862
  type: u,
657
- tags: c,
863
+ tags: l,
658
864
  size: p,
659
- include: d,
660
- exclude: f,
661
- states: z,
662
- ...P
865
+ include: m,
866
+ exclude: y,
867
+ states: S,
868
+ ...C
663
869
  } = e;
664
870
  return {
665
871
  uid: t ?? "",
@@ -668,31 +874,31 @@ function Yt(e) {
668
874
  disabled: o,
669
875
  actionType: r,
670
876
  label: n,
671
- ...s != null ? { on: s } : {},
672
- props: P
877
+ ...a != null ? { on: a } : {},
878
+ props: C
673
879
  };
674
880
  }
675
- h({
881
+ d({
676
882
  itemType: "ACTIONS",
677
883
  entryShape: "bare",
678
- mapToWidget: Yt,
679
- afterMerge: (e, t) => fe.extractOnClickFromMergeResult(
884
+ mapToWidget: Gt,
885
+ afterMerge: (e, t) => be.extractOnClickFromMergeResult(
680
886
  e,
681
887
  t.eventRegistry,
682
888
  t.eventIdGenerator
683
889
  )
684
890
  });
685
- function Gt(e) {
891
+ function Yt(e) {
686
892
  const {
687
893
  uid: t,
688
894
  widgetName: n,
689
895
  tags: r,
690
896
  size: o,
691
- onChange: s,
897
+ onChange: a,
692
898
  include: i,
693
- exclude: a,
899
+ exclude: s,
694
900
  ...u
695
- } = e, { on: c, ...p } = u;
901
+ } = e, { on: l, ...p } = u;
696
902
  return {
697
903
  uid: t ?? "",
698
904
  kind: "layout",
@@ -710,17 +916,17 @@ function Kt(e, t) {
710
916
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
711
917
  const r = e.fn;
712
918
  return ((o) => {
713
- const s = r(o);
714
- return { ...t.mapStaticDef(s, "LAYOUTS"), children: n };
919
+ const a = r(o);
920
+ return { ...t.mapStaticDef(a, "LAYOUTS"), children: n };
715
921
  });
716
922
  }
717
923
  function qt(e) {
718
924
  return e.children;
719
925
  }
720
- h({
926
+ d({
721
927
  itemType: "LAYOUTS",
722
928
  entryShape: "compound",
723
- mapToWidget: Gt,
929
+ mapToWidget: Yt,
724
930
  buildCustomWidget: Kt,
725
931
  getChildren: qt
726
932
  });
@@ -766,13 +972,13 @@ function Ht(e, t) {
766
972
  };
767
973
  });
768
974
  }
769
- h({
975
+ d({
770
976
  itemType: "DISPLAYS",
771
977
  entryShape: "bare",
772
978
  mapToWidget: Xt,
773
979
  buildCustomWidget: Ht
774
980
  });
775
- h({
981
+ d({
776
982
  itemType: "ALERTS",
777
983
  entryShape: "bare",
778
984
  mapToWidget: (e) => ({
@@ -785,7 +991,7 @@ h({
785
991
  }
786
992
  })
787
993
  });
788
- h({
994
+ d({
789
995
  itemType: "MARKDOWN_TEXTS",
790
996
  entryShape: "bare",
791
997
  mapToWidget: (e) => ({
@@ -816,14 +1022,14 @@ function Qt(e, t) {
816
1022
  return { ...t.mapStaticDef(e.def, "TABS"), children: n };
817
1023
  const r = e.fn;
818
1024
  return ((o) => {
819
- const s = r(o);
820
- return { ...t.mapStaticDef(s, "TABS"), children: n };
1025
+ const a = r(o);
1026
+ return { ...t.mapStaticDef(a, "TABS"), children: n };
821
1027
  });
822
1028
  }
823
1029
  function en(e) {
824
1030
  return e.children;
825
1031
  }
826
- h({
1032
+ d({
827
1033
  itemType: "TABS",
828
1034
  entryShape: "compound",
829
1035
  mapToWidget: Jt,
@@ -850,21 +1056,21 @@ function nn(e, t) {
850
1056
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
851
1057
  const r = e.fn;
852
1058
  return ((o) => {
853
- const s = r(o);
854
- return { ...t.mapStaticDef(s, "ACCORDION"), children: n };
1059
+ const a = r(o);
1060
+ return { ...t.mapStaticDef(a, "ACCORDION"), children: n };
855
1061
  });
856
1062
  }
857
1063
  function rn(e) {
858
1064
  return e.children;
859
1065
  }
860
- h({
1066
+ d({
861
1067
  itemType: "ACCORDION",
862
1068
  entryShape: "compound",
863
1069
  mapToWidget: tn,
864
1070
  buildCustomWidget: nn,
865
1071
  getChildren: rn
866
1072
  });
867
- h({
1073
+ d({
868
1074
  itemType: "CUSTOM_INPUT",
869
1075
  entryShape: "keyed",
870
1076
  sensibleDefaults: {
@@ -872,7 +1078,7 @@ h({
872
1078
  suppressAutomaticLabels: !1
873
1079
  },
874
1080
  fields: ["suppressAutomaticLabels"],
875
- apply: (e, t) => v(e, t)
1081
+ apply: (e, t) => f(e, t)
876
1082
  },
877
1083
  mapToWidget: (e) => ({
878
1084
  uid: e.uid ?? "",
@@ -887,7 +1093,7 @@ h({
887
1093
  props: e.props ?? {}
888
1094
  })
889
1095
  });
890
- h({
1096
+ d({
891
1097
  itemType: "CUSTOM_ACTION",
892
1098
  entryShape: "bare",
893
1099
  mapToWidget: (e) => {
@@ -896,16 +1102,16 @@ h({
896
1102
  label: n,
897
1103
  disabled: r,
898
1104
  on: o,
899
- onClick: s,
1105
+ onClick: a,
900
1106
  data: i,
901
- customType: a,
1107
+ customType: s,
902
1108
  tags: u,
903
- size: c,
1109
+ size: l,
904
1110
  include: p,
905
- exclude: d,
906
- states: f,
907
- props: z,
908
- ...P
1111
+ exclude: m,
1112
+ states: y,
1113
+ props: S,
1114
+ ...C
909
1115
  } = e;
910
1116
  return {
911
1117
  uid: t ?? "",
@@ -914,16 +1120,16 @@ h({
914
1120
  label: n,
915
1121
  disabled: r,
916
1122
  ...o != null ? { on: o } : {},
917
- props: { ...z, ...P }
1123
+ props: { ...S, ...C }
918
1124
  };
919
1125
  },
920
- afterMerge: (e, t) => fe.extractOnClickFromMergeResult(
1126
+ afterMerge: (e, t) => be.extractOnClickFromMergeResult(
921
1127
  e,
922
1128
  t.eventRegistry,
923
1129
  t.eventIdGenerator
924
1130
  )
925
1131
  });
926
- h({
1132
+ d({
927
1133
  itemType: "CUSTOM_DISPLAY",
928
1134
  entryShape: "bare",
929
1135
  mapToWidget: (e) => ({
@@ -942,33 +1148,33 @@ function on(e) {
942
1148
  children: []
943
1149
  };
944
1150
  }
945
- function sn(e, t) {
1151
+ function an(e, t) {
946
1152
  const n = t.walkChildren(t.children ?? []);
947
1153
  if (e.kind === "static")
948
1154
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
949
1155
  const r = e.fn;
950
1156
  return ((o) => {
951
- const s = r(o);
952
- return { ...t.mapStaticDef(s, "CUSTOM_LAYOUT"), children: n };
1157
+ const a = r(o);
1158
+ return { ...t.mapStaticDef(a, "CUSTOM_LAYOUT"), children: n };
953
1159
  });
954
1160
  }
955
- function an(e) {
1161
+ function sn(e) {
956
1162
  return e.children;
957
1163
  }
958
- h({
1164
+ d({
959
1165
  itemType: "CUSTOM_LAYOUT",
960
1166
  entryShape: "compound",
961
1167
  mapToWidget: on,
962
- buildCustomWidget: sn,
963
- getChildren: an
1168
+ buildCustomWidget: an,
1169
+ getChildren: sn
964
1170
  });
965
- h({
1171
+ d({
966
1172
  itemType: "TAGS",
967
1173
  entryShape: "keyed",
968
1174
  sensibleDefaults: {
969
1175
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
970
1176
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
971
- apply: (e, t) => Z(v(e, t), t)
1177
+ apply: (e, t) => z(f(e, t), t)
972
1178
  },
973
1179
  mapToWidget: (e) => ({
974
1180
  uid: e.uid ?? "",
@@ -978,8 +1184,8 @@ h({
978
1184
  ...e.label != null ? { label: e.label } : {},
979
1185
  ...e.disabled != null ? { disabled: e.disabled } : {},
980
1186
  ...e.readonly != null ? { readonly: e.readonly } : {},
981
- ...e.validator != null ? { validator: w(e.validator, "array") } : {},
982
- props: y(e)
1187
+ ...e.validator != null ? { validator: g(e.validator, "array") } : {},
1188
+ props: b(e)
983
1189
  })
984
1190
  });
985
1191
  const et = {
@@ -992,11 +1198,21 @@ const et = {
992
1198
  "RADIOGROUP",
993
1199
  "CHECKBOX",
994
1200
  "CALENDAR",
1201
+ "DATE_TIME_CALENDAR",
1202
+ "DATE_TIME_PICKER",
995
1203
  "DATE_INPUT",
996
1204
  "DATE_PICKER",
997
1205
  "RANGE_CALENDAR",
998
1206
  "RANGE_DATE_INPUT",
1207
+ "RANGE_DATE_TIME_INPUT",
1208
+ "RANGE_DATE_TIME_CALENDAR",
1209
+ "RANGE_DATE_TIME_PICKER",
1210
+ "RANGE_TIME_INPUT",
999
1211
  "RANGE_DATE_PICKER",
1212
+ "RANGE_TIME_PICKER",
1213
+ "TIME_INPUT",
1214
+ "TIME_PICKER",
1215
+ "DATE_TIME_INPUT",
1000
1216
  "CURRENCY",
1001
1217
  "MARKDOWN",
1002
1218
  "LIST",
@@ -1012,11 +1228,11 @@ function un(e, t) {
1012
1228
  const n = et[e];
1013
1229
  return n ? n.has(t) : e === t;
1014
1230
  }
1015
- class cn {
1231
+ class ln {
1016
1232
  resolve(t, n) {
1017
1233
  const r = [];
1018
- for (const s of n)
1019
- s.kind === "aggregated" ? this.collectFromAggregated(s, t, r) : this.collectFromLeaf(s, t, r);
1234
+ for (const a of n)
1235
+ a.kind === "aggregated" ? this.collectFromAggregated(a, t, r) : this.collectFromLeaf(a, t, r);
1020
1236
  const o = this.rollUpSensibleDefaults(r);
1021
1237
  return {
1022
1238
  leafSelectors: r,
@@ -1032,24 +1248,24 @@ class cn {
1032
1248
  un(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
1033
1249
  }
1034
1250
  rollUpSensibleDefaults(t) {
1035
- const n = /* @__PURE__ */ new Map(), r = (s, i) => {
1036
- const a = n.get(s) ?? [];
1037
- a.push(i), n.set(s, a);
1251
+ const n = /* @__PURE__ */ new Map(), r = (a, i) => {
1252
+ const s = n.get(a) ?? [];
1253
+ s.push(i), n.set(a, s);
1038
1254
  };
1039
- for (const s of t) {
1040
- const i = et[s.selectorType];
1255
+ for (const a of t) {
1256
+ const i = et[a.selectorType];
1041
1257
  if (i)
1042
- for (const a of i) r(a, s);
1258
+ for (const s of i) r(s, a);
1043
1259
  else
1044
- r(s.selectorType, s);
1260
+ r(a.selectorType, a);
1045
1261
  }
1046
1262
  const o = {};
1047
- for (const [s, i] of n)
1048
- He(s) && (o[s] = X(s).rollUpSensibleDefaults(i));
1263
+ for (const [a, i] of n)
1264
+ He(a) && (o[a] = X(a).rollUpSensibleDefaults(i));
1049
1265
  return o;
1050
1266
  }
1051
1267
  }
1052
- const ln = new cn();
1268
+ const cn = new ln();
1053
1269
  class pn {
1054
1270
  /**
1055
1271
  * Deep merges two objects, with right taking precedence over left when properties conflict.
@@ -1075,21 +1291,21 @@ class mn {
1075
1291
  this.objectUtils = t;
1076
1292
  }
1077
1293
  merge(t, n, r) {
1078
- let o = {}, s = null;
1079
- typeof t == "function" && (s = t);
1294
+ let o = {}, a = null;
1295
+ typeof t == "function" && (a = t);
1080
1296
  const i = this.collectDecorators(r);
1081
- for (const c of i) {
1082
- if (s != null) {
1083
- s = this.composeRuntimeFunctions(s, c);
1297
+ for (const l of i) {
1298
+ if (a != null) {
1299
+ a = this.composeRuntimeFunctions(a, l);
1084
1300
  continue;
1085
1301
  }
1086
- if (typeof c == "function") {
1087
- const p = c({
1302
+ if (typeof l == "function") {
1303
+ const p = l({
1088
1304
  ...o,
1089
1305
  ...typeof t == "function" ? {} : t
1090
1306
  });
1091
1307
  if (typeof p == "function") {
1092
- s = this.createPromotedFunction(
1308
+ a = this.createPromotedFunction(
1093
1309
  o,
1094
1310
  t,
1095
1311
  p,
@@ -1100,15 +1316,15 @@ class mn {
1100
1316
  }
1101
1317
  o = this.objectUtils.deepMerge(o, p);
1102
1318
  } else
1103
- o = this.objectUtils.deepMerge(o, c);
1319
+ o = this.objectUtils.deepMerge(o, l);
1104
1320
  }
1105
- if (s != null)
1321
+ if (a != null)
1106
1322
  return {
1107
1323
  kind: "dynamic",
1108
- fn: this.wrapWithSensibleDefaults(s, o, n, r)
1324
+ fn: this.wrapWithSensibleDefaults(a, o, n, r)
1109
1325
  };
1110
- const a = this.objectUtils.deepMerge(t, o);
1111
- return { kind: "static", def: this.applySensibleDefaults({ ...a }, n, r) };
1326
+ const s = this.objectUtils.deepMerge(t, o);
1327
+ return { kind: "static", def: this.applySensibleDefaults({ ...s }, n, r) };
1112
1328
  }
1113
1329
  // ── Collect all decorators in priority order ──
1114
1330
  collectDecorators(t) {
@@ -1126,25 +1342,25 @@ class mn {
1126
1342
  return X(n).applySensibleDefaults(t, o);
1127
1343
  }
1128
1344
  // ── Create promoted FunctionWidget ──
1129
- createPromotedFunction(t, n, r, o, s) {
1345
+ createPromotedFunction(t, n, r, o, a) {
1130
1346
  return (i) => {
1131
- const a = r(i);
1132
- let u = this.objectUtils.deepMerge(t, a);
1133
- return u = this.objectUtils.deepMerge(u, n), this.applySensibleDefaults(u, o, s);
1347
+ const s = r(i);
1348
+ let u = this.objectUtils.deepMerge(t, s);
1349
+ return u = this.objectUtils.deepMerge(u, n), this.applySensibleDefaults(u, o, a);
1134
1350
  };
1135
1351
  }
1136
1352
  // ── Wrap runtime function with accumulated static decorators and sensible defaults ──
1137
1353
  wrapWithSensibleDefaults(t, n, r, o) {
1138
- return (s) => {
1139
- let i = t(s);
1354
+ return (a) => {
1355
+ let i = t(a);
1140
1356
  return Object.keys(n).length > 0 && (i = this.objectUtils.deepMerge(n, i)), this.applySensibleDefaults(i, r, o);
1141
1357
  };
1142
1358
  }
1143
1359
  // ── Compose two runtime functions ──
1144
1360
  composeRuntimeFunctions(t, n) {
1145
1361
  return typeof n == "function" ? (r) => {
1146
- const o = t(r), s = n(o);
1147
- return typeof s == "function" ? s(r) : this.objectUtils.deepMerge(s, o);
1362
+ const o = t(r), a = n(o);
1363
+ return typeof a == "function" ? a(r) : this.objectUtils.deepMerge(a, o);
1148
1364
  } : (r) => {
1149
1365
  const o = t(r);
1150
1366
  return this.objectUtils.deepMerge(o, n);
@@ -1152,13 +1368,13 @@ class mn {
1152
1368
  }
1153
1369
  }
1154
1370
  const hn = new mn(dn);
1155
- class fn {
1371
+ class bn {
1156
1372
  mapToWidget(t, n) {
1157
1373
  if (t.kind === "dynamic") {
1158
1374
  const r = t.fn;
1159
1375
  return ((o) => {
1160
- const s = r(o);
1161
- return this.mapStaticDef(s, n);
1376
+ const a = r(o);
1377
+ return this.mapStaticDef(a, n);
1162
1378
  });
1163
1379
  }
1164
1380
  return this.mapStaticDef(t.def, n);
@@ -1175,8 +1391,8 @@ class fn {
1175
1391
  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;
1176
1392
  }
1177
1393
  }
1178
- const gn = new fn();
1179
- class bn {
1394
+ const fn = new bn();
1395
+ class yn {
1180
1396
  /**
1181
1397
  * Ensures the output is always a uniform GslSelector[] of aggregated selectors.
1182
1398
  *
@@ -1187,8 +1403,8 @@ class bn {
1187
1403
  */
1188
1404
  normalizeSelectors(t) {
1189
1405
  const n = Array.isArray(t) ? t : [t], r = [], o = [];
1190
- for (const s of n)
1191
- s.kind === "leaf" ? o.push(s) : r.push(s);
1406
+ for (const a of n)
1407
+ a.kind === "leaf" ? o.push(a) : r.push(a);
1192
1408
  return o.length > 0 && r.unshift({
1193
1409
  kind: "aggregated",
1194
1410
  matcher: () => !0,
@@ -1201,12 +1417,12 @@ class bn {
1201
1417
  };
1202
1418
  }
1203
1419
  }
1204
- const yn = new bn(), _n = {
1420
+ const gn = new yn(), _n = {
1205
1421
  input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
1206
1422
  action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
1207
1423
  layout: /* @__PURE__ */ new Set(["size"]),
1208
1424
  display: /* @__PURE__ */ new Set([])
1209
- }, Ae = {
1425
+ }, we = {
1210
1426
  onChange: "change",
1211
1427
  onLoad: "load",
1212
1428
  onFilter: "filter",
@@ -1221,33 +1437,33 @@ class vn {
1221
1437
  */
1222
1438
  extractFromMergeResult(t, n) {
1223
1439
  const r = {};
1224
- for (const a of n) {
1225
- const u = a.targetState, c = a.config, p = c.override && typeof c.override != "function" ? c.override : c;
1440
+ for (const s of n) {
1441
+ const u = s.targetState, l = s.config, p = l.override && typeof l.override != "function" ? l.override : l;
1226
1442
  r[u] = {
1227
1443
  ...r[u] || {},
1228
1444
  ...p
1229
1445
  };
1230
1446
  }
1231
1447
  if (t.kind === "dynamic") {
1232
- const a = t.fn;
1448
+ const s = t.fn;
1233
1449
  return {
1234
- cleanedResult: { kind: "dynamic", fn: (c) => {
1235
- const p = a(c), { states: d, ...f } = p;
1236
- return f;
1450
+ cleanedResult: { kind: "dynamic", fn: (l) => {
1451
+ const p = s(l), { states: m, ...y } = p;
1452
+ return y;
1237
1453
  } },
1238
1454
  stateData: { stateOverrides: r }
1239
1455
  };
1240
1456
  }
1241
- const { states: o, ...s } = t.def, i = {};
1242
- for (const [a, u] of Object.entries(r))
1243
- i[a] = { ...u };
1457
+ const { states: o, ...a } = t.def, i = {};
1458
+ for (const [s, u] of Object.entries(r))
1459
+ i[s] = { ...u };
1244
1460
  if (o)
1245
- for (const [a, u] of Object.entries(
1461
+ for (const [s, u] of Object.entries(
1246
1462
  o
1247
1463
  ))
1248
- i[a] = { ...i[a] || {}, ...u };
1464
+ i[s] = { ...i[s] || {}, ...u };
1249
1465
  return {
1250
- cleanedResult: { kind: "static", def: s },
1466
+ cleanedResult: { kind: "static", def: a },
1251
1467
  stateData: { stateOverrides: i }
1252
1468
  };
1253
1469
  }
@@ -1259,14 +1475,14 @@ class vn {
1259
1475
  * - Custom props → `props: { 'prop.stateName': value }`
1260
1476
  */
1261
1477
  applyToWidget(t, n, r, o) {
1262
- const { stateOverrides: s } = n;
1263
- if (Object.keys(s).length === 0)
1478
+ const { stateOverrides: a } = n;
1479
+ if (Object.keys(a).length === 0)
1264
1480
  return t;
1265
- const i = { ...t }, a = t.kind, u = _n[a] || /* @__PURE__ */ new Set();
1481
+ const i = { ...t }, s = t.kind, u = _n[s] || /* @__PURE__ */ new Set();
1266
1482
  t.props && (i.props = { ...t.props }), t.on && (i.on = { ...t.on });
1267
- for (const [c, p] of Object.entries(s))
1268
- for (const [d, f] of Object.entries(p))
1269
- d === "visible" ? this.applyVisibility(i, c, f) : Ae[d] ? this.applyStateEvent(i, c, d, f, r, o) : u.has(d) ? i[`${d}.${c}`] = f : (i.props || (i.props = {}), i.props[`${d}.${c}`] = f);
1483
+ for (const [l, p] of Object.entries(a))
1484
+ for (const [m, y] of Object.entries(p))
1485
+ m === "visible" ? this.applyVisibility(i, l, y) : we[m] ? this.applyStateEvent(i, l, m, y, r, o) : u.has(m) ? i[`${m}.${l}`] = y : (i.props || (i.props = {}), i.props[`${m}.${l}`] = y);
1270
1486
  return i;
1271
1487
  }
1272
1488
  hasStateData(t) {
@@ -1283,127 +1499,127 @@ class vn {
1283
1499
  }
1284
1500
  }
1285
1501
  // ── State-suffixed event helpers ──
1286
- applyStateEvent(t, n, r, o, s, i) {
1287
- const a = Ae[r];
1502
+ applyStateEvent(t, n, r, o, a, i) {
1503
+ const s = we[r];
1288
1504
  if (t.on || (t.on = {}), typeof o == "function") {
1289
1505
  const u = Qe(o);
1290
1506
  if (u != null)
1291
- t.on[`${a}.${n}`] = u;
1507
+ t.on[`${s}.${n}`] = u;
1292
1508
  else {
1293
- const c = i.next();
1294
- s.set(c, o), t.on[`${a}.${n}`] = c;
1509
+ const l = i.next();
1510
+ a.set(l, o), t.on[`${s}.${n}`] = l;
1295
1511
  }
1296
- } else typeof o == "string" && (t.on[`${a}.${n}`] = o);
1512
+ } else typeof o == "string" && (t.on[`${s}.${n}`] = o);
1297
1513
  }
1298
1514
  }
1299
- const kn = new vn();
1300
- function wn() {
1515
+ const Tn = new vn();
1516
+ function kn() {
1301
1517
  let e = 0;
1302
1518
  return { next: () => `event_${e++}` };
1303
1519
  }
1304
- class Tn {
1305
- constructor(t, n, r, o, s) {
1306
- this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = s;
1520
+ class An {
1521
+ constructor(t, n, r, o, a) {
1522
+ this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = a;
1307
1523
  }
1308
1524
  walkAndMap(t, n, r) {
1309
- const o = /* @__PURE__ */ new Map(), s = wn(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
1525
+ const o = /* @__PURE__ */ new Map(), a = kn(), i = { value: 0 }, s = /* @__PURE__ */ new Set();
1310
1526
  return { widgets: this.walkItems(
1311
1527
  t,
1312
1528
  n,
1313
1529
  o,
1314
1530
  r,
1315
- s,
1531
+ a,
1316
1532
  i,
1317
- a
1533
+ s
1318
1534
  ), eventRegistry: o };
1319
1535
  }
1320
- walkItems(t, n, r, o, s, i, a) {
1536
+ walkItems(t, n, r, o, a, i, s) {
1321
1537
  return t.flatMap((u) => {
1322
1538
  if (u.type !== "ITEMS")
1323
1539
  throw new Error("Unexpected gui shortcut type");
1324
- return u.items.map((c) => this.processItem(
1325
- c,
1540
+ return u.items.map((l) => this.processItem(
1541
+ l,
1326
1542
  u.itemType,
1327
1543
  u.tags,
1328
1544
  n,
1329
1545
  r,
1330
1546
  o,
1331
- s,
1547
+ a,
1332
1548
  i,
1333
- a
1549
+ s
1334
1550
  ));
1335
1551
  });
1336
1552
  }
1337
- processItem(t, n, r, o, s, i, a, u, c) {
1338
- const p = n, d = X(n), f = d.parseEntry(t), z = this.buildBaseDef(f), P = this.buildDecoratorForMatching(z, p, r), B = this.resolver.resolve(P, o), ke = B.leafSelectors.filter((T) => T.targetState != null), we = {
1339
- leafSelectors: B.leafSelectors.filter((T) => T.targetState == null),
1553
+ processItem(t, n, r, o, a, i, s, u, l) {
1554
+ const p = n, m = X(n), y = m.parseEntry(t), S = this.buildBaseDef(y), C = this.buildDecoratorForMatching(S, p, r), B = this.resolver.resolve(C, o), Te = B.leafSelectors.filter((A) => A.targetState != null), ke = {
1555
+ leafSelectors: B.leafSelectors.filter((A) => A.targetState == null),
1340
1556
  sensibleDefaults: B.sensibleDefaults
1341
1557
  };
1342
- let C = this.merger.merge(z, p, we);
1343
- d.afterMerge && (C = d.afterMerge(C, {
1344
- eventRegistry: s,
1558
+ let O = this.merger.merge(S, p, ke);
1559
+ m.afterMerge && (O = m.afterMerge(O, {
1560
+ eventRegistry: a,
1345
1561
  formConfig: i,
1346
- eventIdGenerator: a
1347
- })), C = this.eventWiring.wireInputLayoutEvents(
1348
- C,
1349
- s,
1350
- a
1562
+ eventIdGenerator: s
1563
+ })), O = this.eventWiring.wireInputLayoutEvents(
1564
+ O,
1565
+ a,
1566
+ s
1351
1567
  );
1352
- const { cleanedResult: Te, stateData: se } = this.stateExpansion.extractFromMergeResult(
1353
- C,
1354
- ke
1568
+ const { cleanedResult: Ae, stateData: ae } = this.stateExpansion.extractFromMergeResult(
1569
+ O,
1570
+ Te
1355
1571
  );
1356
- let O;
1357
- if (d.buildCustomWidget) {
1358
- const T = this.buildCustomWidgetContext(
1359
- f.children,
1572
+ let $;
1573
+ if (m.buildCustomWidget) {
1574
+ const A = this.buildCustomWidgetContext(
1575
+ y.children,
1360
1576
  o,
1361
- s,
1362
- i,
1363
1577
  a,
1578
+ i,
1579
+ s,
1364
1580
  u,
1365
- c
1581
+ l
1366
1582
  );
1367
- O = this.buildCustomWidget(d, Te, T);
1583
+ $ = this.buildCustomWidget(m, Ae, A);
1368
1584
  } else
1369
- O = this.mapper.mapToWidget(Te, p);
1370
- if (typeof O != "function") {
1371
- const T = O;
1372
- T.uid || (T.path && !c.has(T.path) ? (T.uid = T.path, c.add(T.path)) : T.uid = `dx_${u.value++}`);
1585
+ $ = this.mapper.mapToWidget(Ae, p);
1586
+ if (typeof $ != "function") {
1587
+ const A = $;
1588
+ A.uid || (A.path && !l.has(A.path) ? (A.uid = A.path, l.add(A.path)) : A.uid = `dx_${u.value++}`);
1373
1589
  }
1374
- if (this.stateExpansion.hasStateData(se))
1375
- if (typeof O == "function") {
1376
- const T = O;
1377
- O = ((At) => {
1378
- const St = T(At);
1590
+ if (this.stateExpansion.hasStateData(ae))
1591
+ if (typeof $ == "function") {
1592
+ const A = $;
1593
+ $ = ((wt) => {
1594
+ const Et = A(wt);
1379
1595
  return this.stateExpansion.applyToWidget(
1380
- St,
1381
- se,
1382
- s,
1383
- a
1596
+ Et,
1597
+ ae,
1598
+ a,
1599
+ s
1384
1600
  );
1385
1601
  });
1386
1602
  } else
1387
- O = this.stateExpansion.applyToWidget(
1388
- O,
1389
- se,
1390
- s,
1391
- a
1603
+ $ = this.stateExpansion.applyToWidget(
1604
+ $,
1605
+ ae,
1606
+ a,
1607
+ s
1392
1608
  );
1393
- return O;
1609
+ return $;
1394
1610
  }
1395
- buildCustomWidgetContext(t, n, r, o, s, i, a) {
1611
+ buildCustomWidgetContext(t, n, r, o, a, i, s) {
1396
1612
  return {
1397
1613
  children: t,
1398
- mapStaticDef: (u, c) => this.mapper.mapStaticDef(u, c),
1614
+ mapStaticDef: (u, l) => this.mapper.mapStaticDef(u, l),
1399
1615
  walkChildren: (u) => this.walkItems(
1400
1616
  u,
1401
1617
  n,
1402
1618
  r,
1403
1619
  o,
1404
- s,
1620
+ a,
1405
1621
  i,
1406
- a
1622
+ s
1407
1623
  )
1408
1624
  };
1409
1625
  }
@@ -1417,32 +1633,32 @@ class Tn {
1417
1633
  buildBaseDef(t) {
1418
1634
  const n = t.baseDef;
1419
1635
  return typeof n == "function" ? (r) => {
1420
- const o = ue(r), s = n(o);
1421
- return t.path != null ? { ...s, path: t.path } : s;
1636
+ const o = ue(r), a = n(o);
1637
+ return t.path != null ? { ...a, path: t.path } : a;
1422
1638
  } : t.path != null ? { ...n, path: t.path } : n;
1423
1639
  }
1424
1640
  buildDecoratorForMatching(t, n, r) {
1425
1641
  if (typeof t == "function")
1426
1642
  return { itemType: n, tags: [...r] };
1427
- const o = [...r, ..."tags" in t && t.tags ? t.tags : []], s = "uid" in t ? t.uid : void 0, i = "type" in t ? t.type : void 0;
1428
- return { itemType: n, tags: o, uid: s, type: i };
1643
+ const o = [...r, ..."tags" in t && t.tags ? t.tags : []], a = "uid" in t ? t.uid : void 0, i = "type" in t ? t.type : void 0;
1644
+ return { itemType: n, tags: o, uid: a, type: i };
1429
1645
  }
1430
1646
  }
1431
- class An {
1647
+ class wn {
1432
1648
  constructor(t, n) {
1433
1649
  this.selectorNormalizer = t, this.walker = n;
1434
1650
  }
1435
1651
  processDxFacade(t, n = [], r) {
1436
- const { defs: o, gslSelectors: s, formConfig: i } = this.prepareForm(
1652
+ const { defs: o, gslSelectors: a, formConfig: i } = this.prepareForm(
1437
1653
  t,
1438
1654
  n,
1439
1655
  r
1440
- ), { widgets: a, eventRegistry: u } = this.walker.walkAndMap(
1656
+ ), { widgets: s, eventRegistry: u } = this.walker.walkAndMap(
1441
1657
  o,
1442
- s,
1658
+ a,
1443
1659
  i
1444
- ), c = a[0];
1445
- return this.buildResult({ form: c }, u, i);
1660
+ ), l = s[0];
1661
+ return this.buildResult({ form: l }, u, i);
1446
1662
  }
1447
1663
  /**
1448
1664
  * Normalizes raw form definitions and applies form-level defaults.
@@ -1455,24 +1671,24 @@ class An {
1455
1671
  * flex column layout so the form renders as a single vertical container.
1456
1672
  */
1457
1673
  prepareForm(t, n, r) {
1458
- const s = (Array.isArray(t) ? [...t] : [t]).map(
1459
- (u) => typeof u == "function" ? Ct(u) : u
1460
- ), i = this.selectorNormalizer.normalizeSelectors(n), a = {
1674
+ const a = (Array.isArray(t) ? [...t] : [t]).map(
1675
+ (u) => typeof u == "function" ? Ot(u) : u
1676
+ ), i = this.selectorNormalizer.normalizeSelectors(n), s = {
1461
1677
  ...this.selectorNormalizer.extractFormConfig(),
1462
1678
  ...r
1463
1679
  };
1464
- if (!a.suppressAutomaticStack) {
1680
+ if (!s.suppressAutomaticStack) {
1465
1681
  const u = {
1466
1682
  def: { uid: "#root", direction: "column", widgetName: "flex" },
1467
- children: s
1683
+ children: a
1468
1684
  };
1469
1685
  return {
1470
1686
  defs: [{ type: "ITEMS", itemType: qe.LAYOUTS, items: [u], tags: [] }],
1471
1687
  gslSelectors: i,
1472
- formConfig: a
1688
+ formConfig: s
1473
1689
  };
1474
1690
  }
1475
- return { defs: s, gslSelectors: i, formConfig: a };
1691
+ return { defs: a, gslSelectors: i, formConfig: s };
1476
1692
  }
1477
1693
  /**
1478
1694
  * Converts DX `$`-separated state names to core's `:`-separated names.
@@ -1490,46 +1706,46 @@ class An {
1490
1706
  states: this.convertStateNames(r.states)
1491
1707
  });
1492
1708
  const o = { form: t };
1493
- return n.size > 0 && (o.events = (s) => {
1494
- const i = n.get(s.name);
1709
+ return n.size > 0 && (o.events = (a) => {
1710
+ const i = n.get(a.name);
1495
1711
  if (i) {
1496
- const a = (c) => {
1497
- if (c && typeof c == "object" && "path" in c && !("type" in c)) {
1498
- const { path: p, ...d } = c;
1499
- for (const [f, z] of Object.entries(d))
1500
- s.callback({
1712
+ const s = (l) => {
1713
+ if (l && typeof l == "object" && "path" in l && !("type" in l)) {
1714
+ const { path: p, ...m } = l;
1715
+ for (const [y, S] of Object.entries(m))
1716
+ a.callback({
1501
1717
  type: "OVERRIDE_WIDGET_PROP",
1502
- payload: { path: p, prop: f, value: z }
1718
+ payload: { path: p, prop: y, value: S }
1503
1719
  });
1504
1720
  } else
1505
- s.callback(c);
1721
+ a.callback(l);
1506
1722
  }, u = {
1507
- ...s,
1508
- callback: a,
1509
- update: a
1723
+ ...a,
1724
+ callback: s,
1725
+ update: s
1510
1726
  };
1511
1727
  i(u);
1512
1728
  }
1513
- }), 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;
1729
+ }), r.dependencies && (o.dependencies = r.dependencies), r.functions && (o.functions = r.functions), r.widgetLoaders && (o.widgetLoaders = r.widgetLoaders), r.validateOn && (o.validateOn = r.validateOn), r.itemRenderers && (o.itemRenderers = r.itemRenderers), o;
1514
1730
  }
1515
1731
  }
1516
- const Sn = new Tn(
1517
- ln,
1732
+ const En = new An(
1733
+ cn,
1518
1734
  hn,
1519
- gn,
1520
- fe,
1521
- kn
1522
- ), zn = new An(yn, Sn);
1735
+ fn,
1736
+ be,
1737
+ Tn
1738
+ ), Sn = new wn(gn, En);
1523
1739
  function tt(e) {
1524
- return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Se) : Se(e);
1740
+ return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Ee) : Ee(e);
1525
1741
  }
1526
- function Se(e) {
1742
+ function Ee(e) {
1527
1743
  if (typeof e == "function") return !0;
1528
1744
  if (e === null || typeof e != "object") return !1;
1529
1745
  const t = e;
1530
1746
  return t.type === "ITEMS" && typeof t.itemType == "string";
1531
1747
  }
1532
- function En(e) {
1748
+ function zn(e) {
1533
1749
  if (!e || typeof e != "object" || Array.isArray(e))
1534
1750
  return;
1535
1751
  const t = e.form;
@@ -1538,66 +1754,67 @@ function En(e) {
1538
1754
  "[GolemUI] The gui.* form definition was wrapped in an extra `{ form: ... }` object, so its fields were never resolved. Pass the gui.* array DIRECTLY as formDef (`config={{ formDef: form }}`) and put any named `states` in `formConfig`: `config={{ formDef: form, formConfig: { states } }}`. Do NOT wrap them as a `{ form: [...] }` object."
1539
1755
  );
1540
1756
  }
1541
- const ze = Object.freeze({}), $n = Object.freeze({}), Ee = /* @__PURE__ */ new WeakMap();
1757
+ const Se = Object.freeze({}), Pn = Object.freeze({}), ze = /* @__PURE__ */ new WeakMap();
1542
1758
  function ie(e, t) {
1543
1759
  return e == null ? t : typeof e == "object" ? e : {};
1544
1760
  }
1545
- function On(e, t, n) {
1761
+ function In(e, t, n) {
1546
1762
  if (!tt(e))
1547
- return En(e), { formDef: e };
1548
- const r = ie(e, ze), o = ie(t, ze), s = ie(n, $n);
1549
- let i = Ee.get(r);
1550
- i || (i = /* @__PURE__ */ new WeakMap(), Ee.set(r, i));
1551
- let a = i.get(o);
1552
- a || (a = /* @__PURE__ */ new WeakMap(), i.set(o, a));
1553
- const u = a.get(s);
1763
+ return zn(e), { formDef: e };
1764
+ const r = ie(e, Se), o = ie(t, Se), a = ie(n, Pn);
1765
+ let i = ze.get(r);
1766
+ i || (i = /* @__PURE__ */ new WeakMap(), ze.set(r, i));
1767
+ let s = i.get(o);
1768
+ s || (s = /* @__PURE__ */ new WeakMap(), i.set(o, s));
1769
+ const u = s.get(a);
1554
1770
  if (u) return u;
1555
- const c = zn.processDxFacade(
1771
+ const l = Sn.processDxFacade(
1556
1772
  e,
1557
1773
  t,
1558
1774
  n
1559
1775
  ), p = {
1560
- formDef: c.form,
1561
- formEvent: c.events,
1562
- dependencies: c.dependencies,
1563
- widgetLoaders: c.widgetLoaders,
1564
- validateOn: c.validateOn,
1565
- itemRenderers: c.itemRenderers
1776
+ formDef: l.form,
1777
+ formEvent: l.events,
1778
+ dependencies: l.dependencies,
1779
+ functions: l.functions,
1780
+ widgetLoaders: l.widgetLoaders,
1781
+ validateOn: l.validateOn,
1782
+ itemRenderers: l.itemRenderers
1566
1783
  };
1567
- return a.set(s, p), p;
1784
+ return s.set(a, p), p;
1568
1785
  }
1569
- function l(e, t, n) {
1570
- function r(a, u) {
1571
- if (a._zod || Object.defineProperty(a, "_zod", {
1786
+ function c(e, t, n) {
1787
+ function r(s, u) {
1788
+ if (s._zod || Object.defineProperty(s, "_zod", {
1572
1789
  value: {
1573
1790
  def: u,
1574
1791
  constr: i,
1575
1792
  traits: /* @__PURE__ */ new Set()
1576
1793
  },
1577
1794
  enumerable: !1
1578
- }), a._zod.traits.has(e))
1795
+ }), s._zod.traits.has(e))
1579
1796
  return;
1580
- a._zod.traits.add(e), t(a, u);
1581
- const c = i.prototype, p = Object.keys(c);
1582
- for (let d = 0; d < p.length; d++) {
1583
- const f = p[d];
1584
- f in a || (a[f] = c[f].bind(a));
1797
+ s._zod.traits.add(e), t(s, u);
1798
+ const l = i.prototype, p = Object.keys(l);
1799
+ for (let m = 0; m < p.length; m++) {
1800
+ const y = p[m];
1801
+ y in s || (s[y] = l[y].bind(s));
1585
1802
  }
1586
1803
  }
1587
1804
  const o = n?.Parent ?? Object;
1588
- class s extends o {
1805
+ class a extends o {
1589
1806
  }
1590
- Object.defineProperty(s, "name", { value: e });
1591
- function i(a) {
1807
+ Object.defineProperty(a, "name", { value: e });
1808
+ function i(s) {
1592
1809
  var u;
1593
- const c = n?.Parent ? new s() : this;
1594
- r(c, a), (u = c._zod).deferred ?? (u.deferred = []);
1595
- for (const p of c._zod.deferred)
1810
+ const l = n?.Parent ? new a() : this;
1811
+ r(l, s), (u = l._zod).deferred ?? (u.deferred = []);
1812
+ for (const p of l._zod.deferred)
1596
1813
  p();
1597
- return c;
1814
+ return l;
1598
1815
  }
1599
1816
  return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
1600
- value: (a) => n?.Parent && a instanceof n.Parent ? !0 : a?._zod?.traits?.has(e)
1817
+ value: (s) => n?.Parent && s instanceof n.Parent ? !0 : s?._zod?.traits?.has(e)
1601
1818
  }), Object.defineProperty(i, "name", { value: e }), i;
1602
1819
  }
1603
1820
  class N extends Error {
@@ -1610,27 +1827,27 @@ class nt extends Error {
1610
1827
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
1611
1828
  }
1612
1829
  }
1613
- const Zn = {};
1614
- function I(e) {
1615
- return Zn;
1830
+ const $n = {};
1831
+ function Z(e) {
1832
+ return $n;
1616
1833
  }
1617
- function ce(e, t) {
1834
+ function le(e, t) {
1618
1835
  return typeof t == "bigint" ? t.toString() : t;
1619
1836
  }
1620
- function ge(e) {
1837
+ function fe(e) {
1621
1838
  return e == null;
1622
1839
  }
1623
- function be(e) {
1840
+ function ye(e) {
1624
1841
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
1625
1842
  return e.slice(t, n);
1626
1843
  }
1627
- const $e = /* @__PURE__ */ Symbol("evaluating");
1628
- function g(e, t, n) {
1844
+ const Pe = /* @__PURE__ */ Symbol("evaluating");
1845
+ function _(e, t, n) {
1629
1846
  let r;
1630
1847
  Object.defineProperty(e, t, {
1631
1848
  get() {
1632
- if (r !== $e)
1633
- return r === void 0 && (r = $e, r = n()), r;
1849
+ if (r !== Pe)
1850
+ return r === void 0 && (r = Pe, r = n()), r;
1634
1851
  },
1635
1852
  set(o) {
1636
1853
  Object.defineProperty(e, t, {
@@ -1641,7 +1858,7 @@ function g(e, t, n) {
1641
1858
  configurable: !0
1642
1859
  });
1643
1860
  }
1644
- function Pn(...e) {
1861
+ function Cn(...e) {
1645
1862
  const t = {};
1646
1863
  for (const n of e) {
1647
1864
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1649,34 +1866,34 @@ function Pn(...e) {
1649
1866
  }
1650
1867
  return Object.defineProperties({}, t);
1651
1868
  }
1652
- function Cn(e) {
1869
+ function On(e) {
1653
1870
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
1654
1871
  }
1655
1872
  const rt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1656
1873
  };
1657
- function Oe(e) {
1874
+ function Ie(e) {
1658
1875
  return typeof e == "object" && e !== null && !Array.isArray(e);
1659
1876
  }
1660
- function le(e) {
1661
- if (Oe(e) === !1)
1877
+ function ce(e) {
1878
+ if (Ie(e) === !1)
1662
1879
  return !1;
1663
1880
  const t = e.constructor;
1664
1881
  if (t === void 0 || typeof t != "function")
1665
1882
  return !0;
1666
1883
  const n = t.prototype;
1667
- return !(Oe(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1884
+ return !(Ie(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1668
1885
  }
1669
1886
  function ot(e) {
1670
- return le(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1887
+ return ce(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1671
1888
  }
1672
- function ye(e) {
1889
+ function ge(e) {
1673
1890
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1674
1891
  }
1675
- function st(e, t, n) {
1892
+ function at(e, t, n) {
1676
1893
  const r = new e._zod.constr(t ?? e._zod.def);
1677
1894
  return (!t || n?.parent) && (r._zod.parent = e), r;
1678
1895
  }
1679
- function m(e) {
1896
+ function h(e) {
1680
1897
  const t = e;
1681
1898
  if (!t)
1682
1899
  return {};
@@ -1689,7 +1906,7 @@ function m(e) {
1689
1906
  }
1690
1907
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
1691
1908
  }
1692
- const In = {
1909
+ const Zn = {
1693
1910
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
1694
1911
  int32: [-2147483648, 2147483647],
1695
1912
  uint32: [0, 4294967295],
@@ -1704,19 +1921,19 @@ function M(e, t = 0) {
1704
1921
  return !0;
1705
1922
  return !1;
1706
1923
  }
1707
- function Ln(e, t) {
1924
+ function Dn(e, t) {
1708
1925
  return t.map((n) => {
1709
1926
  var r;
1710
1927
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
1711
1928
  });
1712
1929
  }
1713
- function Y(e) {
1930
+ function G(e) {
1714
1931
  return typeof e == "string" ? e : e?.message;
1715
1932
  }
1716
- function L(e, t, n) {
1933
+ function D(e, t, n) {
1717
1934
  const r = { ...e, path: e.path ?? [] };
1718
1935
  if (!e.message) {
1719
- const o = Y(e.inst?._zod.def?.error?.(e)) ?? Y(t?.error?.(e)) ?? Y(n.customError?.(e)) ?? Y(n.localeError?.(e)) ?? "Invalid input";
1936
+ const o = G(e.inst?._zod.def?.error?.(e)) ?? G(t?.error?.(e)) ?? G(n.customError?.(e)) ?? G(n.localeError?.(e)) ?? "Invalid input";
1720
1937
  r.message = o;
1721
1938
  }
1722
1939
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
@@ -1740,12 +1957,12 @@ const it = (e, t) => {
1740
1957
  }), Object.defineProperty(e, "issues", {
1741
1958
  value: t,
1742
1959
  enumerable: !1
1743
- }), e.message = JSON.stringify(t, ce, 2), Object.defineProperty(e, "toString", {
1960
+ }), e.message = JSON.stringify(t, le, 2), Object.defineProperty(e, "toString", {
1744
1961
  value: () => e.message,
1745
1962
  enumerable: !1
1746
1963
  });
1747
- }, at = l("$ZodError", it), H = l("$ZodError", it, { Parent: Error });
1748
- function Dn(e, t = (n) => n.message) {
1964
+ }, st = c("$ZodError", it), H = c("$ZodError", it, { Parent: Error });
1965
+ function Ln(e, t = (n) => n.message) {
1749
1966
  const n = {}, r = [];
1750
1967
  for (const o of e.issues)
1751
1968
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
@@ -1753,61 +1970,61 @@ function Dn(e, t = (n) => n.message) {
1753
1970
  }
1754
1971
  function Mn(e, t = (n) => n.message) {
1755
1972
  const n = { _errors: [] }, r = (o) => {
1756
- for (const s of o.issues)
1757
- if (s.code === "invalid_union" && s.errors.length)
1758
- s.errors.map((i) => r({ issues: i }));
1759
- else if (s.code === "invalid_key")
1760
- r({ issues: s.issues });
1761
- else if (s.code === "invalid_element")
1762
- r({ issues: s.issues });
1763
- else if (s.path.length === 0)
1764
- n._errors.push(t(s));
1973
+ for (const a of o.issues)
1974
+ if (a.code === "invalid_union" && a.errors.length)
1975
+ a.errors.map((i) => r({ issues: i }));
1976
+ else if (a.code === "invalid_key")
1977
+ r({ issues: a.issues });
1978
+ else if (a.code === "invalid_element")
1979
+ r({ issues: a.issues });
1980
+ else if (a.path.length === 0)
1981
+ n._errors.push(t(a));
1765
1982
  else {
1766
- let i = n, a = 0;
1767
- for (; a < s.path.length; ) {
1768
- const u = s.path[a];
1769
- a === s.path.length - 1 ? (i[u] = i[u] || { _errors: [] }, i[u]._errors.push(t(s))) : i[u] = i[u] || { _errors: [] }, i = i[u], a++;
1983
+ let i = n, s = 0;
1984
+ for (; s < a.path.length; ) {
1985
+ const u = a.path[s];
1986
+ s === a.path.length - 1 ? (i[u] = i[u] || { _errors: [] }, i[u]._errors.push(t(a))) : i[u] = i[u] || { _errors: [] }, i = i[u], s++;
1770
1987
  }
1771
1988
  }
1772
1989
  };
1773
1990
  return r(e), n;
1774
1991
  }
1775
1992
  const J = (e) => (t, n, r, o) => {
1776
- const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
1993
+ const a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, a);
1777
1994
  if (i instanceof Promise)
1778
1995
  throw new N();
1779
1996
  if (i.issues.length) {
1780
- const a = new (o?.Err ?? e)(i.issues.map((u) => L(u, s, I())));
1781
- throw rt(a, o?.callee), a;
1997
+ const s = new (o?.Err ?? e)(i.issues.map((u) => D(u, a, Z())));
1998
+ throw rt(s, o?.callee), s;
1782
1999
  }
1783
2000
  return i.value;
1784
2001
  }, Nn = /* @__PURE__ */ J(H), Q = (e) => async (t, n, r, o) => {
1785
- const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1786
- let i = t._zod.run({ value: n, issues: [] }, s);
2002
+ const a = r ? Object.assign(r, { async: !0 }) : { async: !0 };
2003
+ let i = t._zod.run({ value: n, issues: [] }, a);
1787
2004
  if (i instanceof Promise && (i = await i), i.issues.length) {
1788
- const a = new (o?.Err ?? e)(i.issues.map((u) => L(u, s, I())));
1789
- throw rt(a, o?.callee), a;
2005
+ const s = new (o?.Err ?? e)(i.issues.map((u) => D(u, a, Z())));
2006
+ throw rt(s, o?.callee), s;
1790
2007
  }
1791
2008
  return i.value;
1792
- }, xn = /* @__PURE__ */ Q(H), ee = (e) => (t, n, r) => {
1793
- const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
1794
- if (s instanceof Promise)
2009
+ }, Rn = /* @__PURE__ */ Q(H), ee = (e) => (t, n, r) => {
2010
+ const o = r ? { ...r, async: !1 } : { async: !1 }, a = t._zod.run({ value: n, issues: [] }, o);
2011
+ if (a instanceof Promise)
1795
2012
  throw new N();
1796
- return s.issues.length ? {
2013
+ return a.issues.length ? {
1797
2014
  success: !1,
1798
- error: new (e ?? at)(s.issues.map((i) => L(i, o, I())))
1799
- } : { success: !0, data: s.value };
2015
+ error: new (e ?? st)(a.issues.map((i) => D(i, o, Z())))
2016
+ } : { success: !0, data: a.value };
1800
2017
  }, ut = /* @__PURE__ */ ee(H), te = (e) => async (t, n, r) => {
1801
2018
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1802
- let s = t._zod.run({ value: n, issues: [] }, o);
1803
- return s instanceof Promise && (s = await s), s.issues.length ? {
2019
+ let a = t._zod.run({ value: n, issues: [] }, o);
2020
+ return a instanceof Promise && (a = await a), a.issues.length ? {
1804
2021
  success: !1,
1805
- error: new e(s.issues.map((i) => L(i, o, I())))
1806
- } : { success: !0, data: s.value };
1807
- }, ct = /* @__PURE__ */ te(H), Rn = (e) => (t, n, r) => {
2022
+ error: new e(a.issues.map((i) => D(i, o, Z())))
2023
+ } : { success: !0, data: a.value };
2024
+ }, lt = /* @__PURE__ */ te(H), xn = (e) => (t, n, r) => {
1808
2025
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1809
2026
  return J(e)(t, n, o);
1810
- }, Fn = (e) => (t, n, r) => J(e)(t, n, r), Wn = (e) => async (t, n, r) => {
2027
+ }, Wn = (e) => (t, n, r) => J(e)(t, n, r), Fn = (e) => async (t, n, r) => {
1811
2028
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1812
2029
  return Q(e)(t, n, o);
1813
2030
  }, Un = (e) => async (t, n, r) => Q(e)(t, n, r), jn = (e) => (t, n, r) => {
@@ -1816,7 +2033,7 @@ const J = (e) => (t, n, r, o) => {
1816
2033
  }, Vn = (e) => (t, n, r) => ee(e)(t, n, r), Bn = (e) => async (t, n, r) => {
1817
2034
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1818
2035
  return te(e)(t, n, o);
1819
- }, Yn = (e) => async (t, n, r) => te(e)(t, n, r), Gn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ze = (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)$/, Kn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, qn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Xn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Hn = /^(?=.{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])?)*\.?$/, lt = "(?:(?:\\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])))", Jn = /* @__PURE__ */ new RegExp(`^${lt}$`);
2036
+ }, Gn = (e) => async (t, n, r) => te(e)(t, n, r), Yn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, $e = (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)$/, Kn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, qn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Xn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Hn = /^(?=.{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])?)*\.?$/, ct = "(?:(?:\\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])))", Jn = /* @__PURE__ */ new RegExp(`^${ct}$`);
1820
2037
  function pt(e) {
1821
2038
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1822
2039
  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+)?)?`;
@@ -1828,24 +2045,24 @@ function er(e) {
1828
2045
  const t = pt({ precision: e.precision }), n = ["Z"];
1829
2046
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
1830
2047
  const r = `${t}(?:${n.join("|")})`;
1831
- return new RegExp(`^${lt}T(?:${r})$`);
2048
+ return new RegExp(`^${ct}T(?:${r})$`);
1832
2049
  }
1833
2050
  const tr = (e) => {
1834
2051
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1835
2052
  return new RegExp(`^${t}$`);
1836
- }, nr = /^-?\d+$/, rr = /^-?\d+(?:\.\d+)?/, or = /^(?:true|false)$/i, sr = /^[^A-Z]*$/, ir = /^[^a-z]*$/, S = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
2053
+ }, nr = /^-?\d+$/, rr = /^-?\d+(?:\.\d+)?/, or = /^(?:true|false)$/i, ar = /^[^A-Z]*$/, ir = /^[^a-z]*$/, E = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
1837
2054
  var n;
1838
2055
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
1839
2056
  }), dt = {
1840
2057
  number: "number",
1841
2058
  bigint: "bigint",
1842
2059
  object: "date"
1843
- }, ar = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1844
- S.init(e, t);
2060
+ }, sr = /* @__PURE__ */ c("$ZodCheckLessThan", (e, t) => {
2061
+ E.init(e, t);
1845
2062
  const n = dt[typeof t.value];
1846
2063
  e._zod.onattach.push((r) => {
1847
- const o = r._zod.bag, s = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
1848
- t.value < s && (t.inclusive ? o.maximum = t.value : o.exclusiveMaximum = t.value);
2064
+ const o = r._zod.bag, a = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
2065
+ t.value < a && (t.inclusive ? o.maximum = t.value : o.exclusiveMaximum = t.value);
1849
2066
  }), e._zod.check = (r) => {
1850
2067
  (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
1851
2068
  origin: n,
@@ -1857,12 +2074,12 @@ const tr = (e) => {
1857
2074
  continue: !t.abort
1858
2075
  });
1859
2076
  };
1860
- }), ur = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1861
- S.init(e, t);
2077
+ }), ur = /* @__PURE__ */ c("$ZodCheckGreaterThan", (e, t) => {
2078
+ E.init(e, t);
1862
2079
  const n = dt[typeof t.value];
1863
2080
  e._zod.onattach.push((r) => {
1864
- const o = r._zod.bag, s = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
1865
- t.value > s && (t.inclusive ? o.minimum = t.value : o.exclusiveMinimum = t.value);
2081
+ const o = r._zod.bag, a = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
2082
+ t.value > a && (t.inclusive ? o.minimum = t.value : o.exclusiveMinimum = t.value);
1866
2083
  }), e._zod.check = (r) => {
1867
2084
  (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
1868
2085
  origin: n,
@@ -1874,29 +2091,29 @@ const tr = (e) => {
1874
2091
  continue: !t.abort
1875
2092
  });
1876
2093
  };
1877
- }), cr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1878
- S.init(e, t), t.format = t.format || "float64";
1879
- const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = In[t.format];
2094
+ }), lr = /* @__PURE__ */ c("$ZodCheckNumberFormat", (e, t) => {
2095
+ E.init(e, t), t.format = t.format || "float64";
2096
+ const n = t.format?.includes("int"), r = n ? "int" : "number", [o, a] = Zn[t.format];
1880
2097
  e._zod.onattach.push((i) => {
1881
- const a = i._zod.bag;
1882
- a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = nr);
2098
+ const s = i._zod.bag;
2099
+ s.format = t.format, s.minimum = o, s.maximum = a, n && (s.pattern = nr);
1883
2100
  }), e._zod.check = (i) => {
1884
- const a = i.value;
2101
+ const s = i.value;
1885
2102
  if (n) {
1886
- if (!Number.isInteger(a)) {
2103
+ if (!Number.isInteger(s)) {
1887
2104
  i.issues.push({
1888
2105
  expected: r,
1889
2106
  format: t.format,
1890
2107
  code: "invalid_type",
1891
2108
  continue: !1,
1892
- input: a,
2109
+ input: s,
1893
2110
  inst: e
1894
2111
  });
1895
2112
  return;
1896
2113
  }
1897
- if (!Number.isSafeInteger(a)) {
1898
- a > 0 ? i.issues.push({
1899
- input: a,
2114
+ if (!Number.isSafeInteger(s)) {
2115
+ s > 0 ? i.issues.push({
2116
+ input: s,
1900
2117
  code: "too_big",
1901
2118
  maximum: Number.MAX_SAFE_INTEGER,
1902
2119
  note: "Integers must be within the safe integer range.",
@@ -1904,7 +2121,7 @@ const tr = (e) => {
1904
2121
  origin: r,
1905
2122
  continue: !t.abort
1906
2123
  }) : i.issues.push({
1907
- input: a,
2124
+ input: s,
1908
2125
  code: "too_small",
1909
2126
  minimum: Number.MIN_SAFE_INTEGER,
1910
2127
  note: "Integers must be within the safe integer range.",
@@ -1915,27 +2132,27 @@ const tr = (e) => {
1915
2132
  return;
1916
2133
  }
1917
2134
  }
1918
- a < o && i.issues.push({
2135
+ s < o && i.issues.push({
1919
2136
  origin: "number",
1920
- input: a,
2137
+ input: s,
1921
2138
  code: "too_small",
1922
2139
  minimum: o,
1923
2140
  inclusive: !0,
1924
2141
  inst: e,
1925
2142
  continue: !t.abort
1926
- }), a > s && i.issues.push({
2143
+ }), s > a && i.issues.push({
1927
2144
  origin: "number",
1928
- input: a,
2145
+ input: s,
1929
2146
  code: "too_big",
1930
- maximum: s,
2147
+ maximum: a,
1931
2148
  inst: e
1932
2149
  });
1933
2150
  };
1934
- }), lr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
2151
+ }), cr = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
1935
2152
  var n;
1936
- S.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
2153
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1937
2154
  const o = r.value;
1938
- return !ge(o) && o.length !== void 0;
2155
+ return !fe(o) && o.length !== void 0;
1939
2156
  }), e._zod.onattach.push((r) => {
1940
2157
  const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1941
2158
  t.maximum < o && (r._zod.bag.maximum = t.maximum);
@@ -1954,11 +2171,11 @@ const tr = (e) => {
1954
2171
  continue: !t.abort
1955
2172
  });
1956
2173
  };
1957
- }), pr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
2174
+ }), pr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
1958
2175
  var n;
1959
- S.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
2176
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1960
2177
  const o = r.value;
1961
- return !ge(o) && o.length !== void 0;
2178
+ return !fe(o) && o.length !== void 0;
1962
2179
  }), e._zod.onattach.push((r) => {
1963
2180
  const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1964
2181
  t.minimum > o && (r._zod.bag.minimum = t.minimum);
@@ -1977,22 +2194,22 @@ const tr = (e) => {
1977
2194
  continue: !t.abort
1978
2195
  });
1979
2196
  };
1980
- }), dr = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
2197
+ }), dr = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1981
2198
  var n;
1982
- S.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
2199
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1983
2200
  const o = r.value;
1984
- return !ge(o) && o.length !== void 0;
2201
+ return !fe(o) && o.length !== void 0;
1985
2202
  }), e._zod.onattach.push((r) => {
1986
2203
  const o = r._zod.bag;
1987
2204
  o.minimum = t.length, o.maximum = t.length, o.length = t.length;
1988
2205
  }), e._zod.check = (r) => {
1989
- const o = r.value, s = o.length;
1990
- if (s === t.length)
2206
+ const o = r.value, a = o.length;
2207
+ if (a === t.length)
1991
2208
  return;
1992
- const i = _e(o), a = s > t.length;
2209
+ const i = _e(o), s = a > t.length;
1993
2210
  r.issues.push({
1994
2211
  origin: i,
1995
- ...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
2212
+ ...s ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1996
2213
  inclusive: !0,
1997
2214
  exact: !0,
1998
2215
  input: r.value,
@@ -2000,11 +2217,11 @@ const tr = (e) => {
2000
2217
  continue: !t.abort
2001
2218
  });
2002
2219
  };
2003
- }), ne = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
2220
+ }), ne = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
2004
2221
  var n, r;
2005
- S.init(e, t), e._zod.onattach.push((o) => {
2006
- const s = o._zod.bag;
2007
- s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
2222
+ E.init(e, t), e._zod.onattach.push((o) => {
2223
+ const a = o._zod.bag;
2224
+ a.format = t.format, t.pattern && (a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(t.pattern));
2008
2225
  }), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
2009
2226
  t.pattern.lastIndex = 0, !t.pattern.test(o.value) && o.issues.push({
2010
2227
  origin: "string",
@@ -2017,7 +2234,7 @@ const tr = (e) => {
2017
2234
  });
2018
2235
  }) : (r = e._zod).check ?? (r.check = () => {
2019
2236
  });
2020
- }), mr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
2237
+ }), mr = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
2021
2238
  ne.init(e, t), e._zod.check = (n) => {
2022
2239
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
2023
2240
  origin: "string",
@@ -2029,16 +2246,16 @@ const tr = (e) => {
2029
2246
  continue: !t.abort
2030
2247
  });
2031
2248
  };
2032
- }), hr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2033
- t.pattern ?? (t.pattern = sr), ne.init(e, t);
2034
- }), fr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2249
+ }), hr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
2250
+ t.pattern ?? (t.pattern = ar), ne.init(e, t);
2251
+ }), br = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
2035
2252
  t.pattern ?? (t.pattern = ir), ne.init(e, t);
2036
- }), gr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2037
- S.init(e, t);
2038
- const n = ye(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2253
+ }), fr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
2254
+ E.init(e, t);
2255
+ const n = ge(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2039
2256
  t.pattern = r, e._zod.onattach.push((o) => {
2040
- const s = o._zod.bag;
2041
- s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
2257
+ const a = o._zod.bag;
2258
+ a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(r);
2042
2259
  }), e._zod.check = (o) => {
2043
2260
  o.value.includes(t.includes, t.position) || o.issues.push({
2044
2261
  origin: "string",
@@ -2050,9 +2267,9 @@ const tr = (e) => {
2050
2267
  continue: !t.abort
2051
2268
  });
2052
2269
  };
2053
- }), br = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2054
- S.init(e, t);
2055
- const n = new RegExp(`^${ye(t.prefix)}.*`);
2270
+ }), yr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
2271
+ E.init(e, t);
2272
+ const n = new RegExp(`^${ge(t.prefix)}.*`);
2056
2273
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2057
2274
  const o = r._zod.bag;
2058
2275
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2067,9 +2284,9 @@ const tr = (e) => {
2067
2284
  continue: !t.abort
2068
2285
  });
2069
2286
  };
2070
- }), yr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2071
- S.init(e, t);
2072
- const n = new RegExp(`.*${ye(t.suffix)}$`);
2287
+ }), gr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
2288
+ E.init(e, t);
2289
+ const n = new RegExp(`.*${ge(t.suffix)}$`);
2073
2290
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2074
2291
  const o = r._zod.bag;
2075
2292
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2084,90 +2301,90 @@ const tr = (e) => {
2084
2301
  continue: !t.abort
2085
2302
  });
2086
2303
  };
2087
- }), _r = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2088
- S.init(e, t), e._zod.check = (n) => {
2304
+ }), _r = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
2305
+ E.init(e, t), e._zod.check = (n) => {
2089
2306
  n.value = t.tx(n.value);
2090
2307
  };
2091
2308
  }), vr = {
2092
2309
  major: 4,
2093
2310
  minor: 1,
2094
2311
  patch: 13
2095
- }, _ = /* @__PURE__ */ l("$ZodType", (e, t) => {
2312
+ }, T = /* @__PURE__ */ c("$ZodType", (e, t) => {
2096
2313
  var n;
2097
2314
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vr;
2098
2315
  const r = [...e._zod.def.checks ?? []];
2099
2316
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
2100
2317
  for (const o of r)
2101
- for (const s of o._zod.onattach)
2102
- s(e);
2318
+ for (const a of o._zod.onattach)
2319
+ a(e);
2103
2320
  if (r.length === 0)
2104
2321
  (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
2105
2322
  e._zod.run = e._zod.parse;
2106
2323
  });
2107
2324
  else {
2108
- const o = (i, a, u) => {
2109
- let c = M(i), p;
2110
- for (const d of a) {
2111
- if (d._zod.def.when) {
2112
- if (!d._zod.def.when(i))
2325
+ const o = (i, s, u) => {
2326
+ let l = M(i), p;
2327
+ for (const m of s) {
2328
+ if (m._zod.def.when) {
2329
+ if (!m._zod.def.when(i))
2113
2330
  continue;
2114
- } else if (c)
2331
+ } else if (l)
2115
2332
  continue;
2116
- const f = i.issues.length, z = d._zod.check(i);
2117
- if (z instanceof Promise && u?.async === !1)
2333
+ const y = i.issues.length, S = m._zod.check(i);
2334
+ if (S instanceof Promise && u?.async === !1)
2118
2335
  throw new N();
2119
- if (p || z instanceof Promise)
2336
+ if (p || S instanceof Promise)
2120
2337
  p = (p ?? Promise.resolve()).then(async () => {
2121
- await z, i.issues.length !== f && (c || (c = M(i, f)));
2338
+ await S, i.issues.length !== y && (l || (l = M(i, y)));
2122
2339
  });
2123
2340
  else {
2124
- if (i.issues.length === f)
2341
+ if (i.issues.length === y)
2125
2342
  continue;
2126
- c || (c = M(i, f));
2343
+ l || (l = M(i, y));
2127
2344
  }
2128
2345
  }
2129
2346
  return p ? p.then(() => i) : i;
2130
- }, s = (i, a, u) => {
2347
+ }, a = (i, s, u) => {
2131
2348
  if (M(i))
2132
2349
  return i.aborted = !0, i;
2133
- const c = o(a, r, u);
2134
- if (c instanceof Promise) {
2350
+ const l = o(s, r, u);
2351
+ if (l instanceof Promise) {
2135
2352
  if (u.async === !1)
2136
2353
  throw new N();
2137
- return c.then((p) => e._zod.parse(p, u));
2354
+ return l.then((p) => e._zod.parse(p, u));
2138
2355
  }
2139
- return e._zod.parse(c, u);
2356
+ return e._zod.parse(l, u);
2140
2357
  };
2141
- e._zod.run = (i, a) => {
2142
- if (a.skipChecks)
2143
- return e._zod.parse(i, a);
2144
- if (a.direction === "backward") {
2145
- const c = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
2146
- return c instanceof Promise ? c.then((p) => s(p, i, a)) : s(c, i, a);
2358
+ e._zod.run = (i, s) => {
2359
+ if (s.skipChecks)
2360
+ return e._zod.parse(i, s);
2361
+ if (s.direction === "backward") {
2362
+ const l = e._zod.parse({ value: i.value, issues: [] }, { ...s, skipChecks: !0 });
2363
+ return l instanceof Promise ? l.then((p) => a(p, i, s)) : a(l, i, s);
2147
2364
  }
2148
- const u = e._zod.parse(i, a);
2365
+ const u = e._zod.parse(i, s);
2149
2366
  if (u instanceof Promise) {
2150
- if (a.async === !1)
2367
+ if (s.async === !1)
2151
2368
  throw new N();
2152
- return u.then((c) => o(c, r, a));
2369
+ return u.then((l) => o(l, r, s));
2153
2370
  }
2154
- return o(u, r, a);
2371
+ return o(u, r, s);
2155
2372
  };
2156
2373
  }
2157
2374
  e["~standard"] = {
2158
2375
  validate: (o) => {
2159
2376
  try {
2160
- const s = ut(e, o);
2161
- return s.success ? { value: s.data } : { issues: s.error?.issues };
2377
+ const a = ut(e, o);
2378
+ return a.success ? { value: a.data } : { issues: a.error?.issues };
2162
2379
  } catch {
2163
- return ct(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
2380
+ return lt(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
2164
2381
  }
2165
2382
  },
2166
2383
  vendor: "zod",
2167
2384
  version: 1
2168
2385
  };
2169
- }), ve = /* @__PURE__ */ l("$ZodString", (e, t) => {
2170
- _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tr(e._zod.bag), e._zod.parse = (n, r) => {
2386
+ }), ve = /* @__PURE__ */ c("$ZodString", (e, t) => {
2387
+ T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tr(e._zod.bag), e._zod.parse = (n, r) => {
2171
2388
  if (t.coerce)
2172
2389
  try {
2173
2390
  n.value = String(n.value);
@@ -2180,9 +2397,9 @@ const tr = (e) => {
2180
2397
  inst: e
2181
2398
  }), n;
2182
2399
  };
2183
- }), E = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
2400
+ }), P = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
2184
2401
  ne.init(e, t), ve.init(e, t);
2185
- }), kr = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2402
+ }), Tr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
2186
2403
  if (t.version) {
2187
2404
  const r = {
2188
2405
  v1: 1,
@@ -2196,14 +2413,14 @@ const tr = (e) => {
2196
2413
  }[t.version];
2197
2414
  if (r === void 0)
2198
2415
  throw new Error(`Invalid UUID version: "${t.version}"`);
2199
- t.pattern ?? (t.pattern = Ze(r));
2416
+ t.pattern ?? (t.pattern = $e(r));
2200
2417
  } else
2201
- t.pattern ?? (t.pattern = Ze());
2202
- E.init(e, t);
2203
- }), wr = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2204
- t.pattern ?? (t.pattern = Kn), E.init(e, t);
2205
- }), Tr = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2206
- E.init(e, t), e._zod.check = (n) => {
2418
+ t.pattern ?? (t.pattern = $e());
2419
+ P.init(e, t);
2420
+ }), kr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
2421
+ t.pattern ?? (t.pattern = Kn), P.init(e, t);
2422
+ }), Ar = /* @__PURE__ */ c("$ZodURL", (e, t) => {
2423
+ P.init(e, t), e._zod.check = (n) => {
2207
2424
  try {
2208
2425
  const r = n.value.trim(), o = new URL(r);
2209
2426
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || n.issues.push({
@@ -2234,18 +2451,18 @@ const tr = (e) => {
2234
2451
  });
2235
2452
  }
2236
2453
  };
2237
- }), Ar = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2238
- t.pattern ?? (t.pattern = er(t)), E.init(e, t);
2239
- }), Sr = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2240
- t.pattern ?? (t.pattern = Jn), E.init(e, t);
2241
- }), zr = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2242
- t.pattern ?? (t.pattern = Qn(t)), E.init(e, t);
2243
- }), Er = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2244
- t.pattern ?? (t.pattern = Gn), E.init(e, t);
2245
- }), $r = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2246
- t.pattern ?? (t.pattern = qn), E.init(e, t), e._zod.bag.format = "ipv4";
2247
- }), Or = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2248
- t.pattern ?? (t.pattern = Xn), E.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2454
+ }), wr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
2455
+ t.pattern ?? (t.pattern = er(t)), P.init(e, t);
2456
+ }), Er = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
2457
+ t.pattern ?? (t.pattern = Jn), P.init(e, t);
2458
+ }), Sr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
2459
+ t.pattern ?? (t.pattern = Qn(t)), P.init(e, t);
2460
+ }), zr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
2461
+ t.pattern ?? (t.pattern = Yn), P.init(e, t);
2462
+ }), Pr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
2463
+ t.pattern ?? (t.pattern = qn), P.init(e, t), e._zod.bag.format = "ipv4";
2464
+ }), Ir = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
2465
+ t.pattern ?? (t.pattern = Xn), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2249
2466
  try {
2250
2467
  new URL(`http://[${n.value}]`);
2251
2468
  } catch {
@@ -2258,8 +2475,8 @@ const tr = (e) => {
2258
2475
  });
2259
2476
  }
2260
2477
  };
2261
- }), Zr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2262
- E.init(e, t), e._zod.check = (n) => {
2478
+ }), $r = /* @__PURE__ */ c("$ZodCustomStringFormat", (e, t) => {
2479
+ P.init(e, t), e._zod.check = (n) => {
2263
2480
  t.fn(n.value) || n.issues.push({
2264
2481
  code: "invalid_format",
2265
2482
  format: t.format,
@@ -2268,8 +2485,8 @@ const tr = (e) => {
2268
2485
  continue: !t.abort
2269
2486
  });
2270
2487
  };
2271
- }), mt = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
2272
- _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? rr, e._zod.parse = (n, r) => {
2488
+ }), mt = /* @__PURE__ */ c("$ZodNumber", (e, t) => {
2489
+ T.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? rr, e._zod.parse = (n, r) => {
2273
2490
  if (t.coerce)
2274
2491
  try {
2275
2492
  n.value = Number(n.value);
@@ -2278,19 +2495,19 @@ const tr = (e) => {
2278
2495
  const o = n.value;
2279
2496
  if (typeof o == "number" && !Number.isNaN(o) && Number.isFinite(o))
2280
2497
  return n;
2281
- const s = typeof o == "number" ? Number.isNaN(o) ? "NaN" : Number.isFinite(o) ? void 0 : "Infinity" : void 0;
2498
+ const a = typeof o == "number" ? Number.isNaN(o) ? "NaN" : Number.isFinite(o) ? void 0 : "Infinity" : void 0;
2282
2499
  return n.issues.push({
2283
2500
  expected: "number",
2284
2501
  code: "invalid_type",
2285
2502
  input: o,
2286
2503
  inst: e,
2287
- ...s ? { received: s } : {}
2504
+ ...a ? { received: a } : {}
2288
2505
  }), n;
2289
2506
  };
2290
- }), Pr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2291
- cr.init(e, t), mt.init(e, t);
2292
- }), Cr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2293
- _.init(e, t), e._zod.pattern = or, e._zod.parse = (n, r) => {
2507
+ }), Cr = /* @__PURE__ */ c("$ZodNumberFormat", (e, t) => {
2508
+ lr.init(e, t), mt.init(e, t);
2509
+ }), Or = /* @__PURE__ */ c("$ZodBoolean", (e, t) => {
2510
+ T.init(e, t), e._zod.pattern = or, e._zod.parse = (n, r) => {
2294
2511
  if (t.coerce)
2295
2512
  try {
2296
2513
  n.value = !!n.value;
@@ -2304,14 +2521,14 @@ const tr = (e) => {
2304
2521
  inst: e
2305
2522
  }), n;
2306
2523
  };
2307
- }), Ir = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2308
- _.init(e, t), e._zod.parse = (n) => n;
2524
+ }), Zr = /* @__PURE__ */ c("$ZodAny", (e, t) => {
2525
+ T.init(e, t), e._zod.parse = (n) => n;
2309
2526
  });
2310
- function Pe(e, t, n) {
2311
- e.issues.length && t.issues.push(...Ln(n, e.issues)), t.value[n] = e.value;
2527
+ function Ce(e, t, n) {
2528
+ e.issues.length && t.issues.push(...Dn(n, e.issues)), t.value[n] = e.value;
2312
2529
  }
2313
- const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2314
- _.init(e, t), e._zod.parse = (n, r) => {
2530
+ const ht = /* @__PURE__ */ c("$ZodArray", (e, t) => {
2531
+ T.init(e, t), e._zod.parse = (n, r) => {
2315
2532
  const o = n.value;
2316
2533
  if (!Array.isArray(o))
2317
2534
  return n.issues.push({
@@ -2321,64 +2538,64 @@ const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2321
2538
  inst: e
2322
2539
  }), n;
2323
2540
  n.value = Array(o.length);
2324
- const s = [];
2541
+ const a = [];
2325
2542
  for (let i = 0; i < o.length; i++) {
2326
- const a = o[i], u = t.element._zod.run({
2327
- value: a,
2543
+ const s = o[i], u = t.element._zod.run({
2544
+ value: s,
2328
2545
  issues: []
2329
2546
  }, r);
2330
- u instanceof Promise ? s.push(u.then((c) => Pe(c, n, i))) : Pe(u, n, i);
2547
+ u instanceof Promise ? a.push(u.then((l) => Ce(l, n, i))) : Ce(u, n, i);
2331
2548
  }
2332
- return s.length ? Promise.all(s).then(() => n) : n;
2549
+ return a.length ? Promise.all(a).then(() => n) : n;
2333
2550
  };
2334
2551
  });
2335
- function Ce(e, t, n, r) {
2336
- for (const s of e)
2337
- if (s.issues.length === 0)
2338
- return t.value = s.value, t;
2339
- const o = e.filter((s) => !M(s));
2552
+ function Oe(e, t, n, r) {
2553
+ for (const a of e)
2554
+ if (a.issues.length === 0)
2555
+ return t.value = a.value, t;
2556
+ const o = e.filter((a) => !M(a));
2340
2557
  return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
2341
2558
  code: "invalid_union",
2342
2559
  input: t.value,
2343
2560
  inst: n,
2344
- errors: e.map((s) => s.issues.map((i) => L(i, r, I())))
2561
+ errors: e.map((a) => a.issues.map((i) => D(i, r, Z())))
2345
2562
  }), t);
2346
2563
  }
2347
- const Lr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2348
- _.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", () => {
2564
+ const Dr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
2565
+ T.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
2349
2566
  if (t.options.every((o) => o._zod.values))
2350
2567
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
2351
- }), g(e._zod, "pattern", () => {
2568
+ }), _(e._zod, "pattern", () => {
2352
2569
  if (t.options.every((o) => o._zod.pattern)) {
2353
- const o = t.options.map((s) => s._zod.pattern);
2354
- return new RegExp(`^(${o.map((s) => be(s.source)).join("|")})$`);
2570
+ const o = t.options.map((a) => a._zod.pattern);
2571
+ return new RegExp(`^(${o.map((a) => ye(a.source)).join("|")})$`);
2355
2572
  }
2356
2573
  });
2357
2574
  const n = t.options.length === 1, r = t.options[0]._zod.run;
2358
- e._zod.parse = (o, s) => {
2575
+ e._zod.parse = (o, a) => {
2359
2576
  if (n)
2360
- return r(o, s);
2577
+ return r(o, a);
2361
2578
  let i = !1;
2362
- const a = [];
2579
+ const s = [];
2363
2580
  for (const u of t.options) {
2364
- const c = u._zod.run({
2581
+ const l = u._zod.run({
2365
2582
  value: o.value,
2366
2583
  issues: []
2367
- }, s);
2368
- if (c instanceof Promise)
2369
- a.push(c), i = !0;
2584
+ }, a);
2585
+ if (l instanceof Promise)
2586
+ s.push(l), i = !0;
2370
2587
  else {
2371
- if (c.issues.length === 0)
2372
- return c;
2373
- a.push(c);
2588
+ if (l.issues.length === 0)
2589
+ return l;
2590
+ s.push(l);
2374
2591
  }
2375
2592
  }
2376
- return i ? Promise.all(a).then((u) => Ce(u, o, e, s)) : Ce(a, o, e, s);
2593
+ return i ? Promise.all(s).then((u) => Oe(u, o, e, a)) : Oe(s, o, e, a);
2377
2594
  };
2378
- }), Dr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2379
- _.init(e, t), e._zod.parse = (n, r) => {
2380
- const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2381
- return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Ie(n, u, c)) : Ie(n, s, i);
2595
+ }), Lr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
2596
+ T.init(e, t), e._zod.parse = (n, r) => {
2597
+ const o = n.value, a = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2598
+ return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([u, l]) => Ze(n, u, l)) : Ze(n, a, i);
2382
2599
  };
2383
2600
  });
2384
2601
  function pe(e, t) {
@@ -2386,16 +2603,16 @@ function pe(e, t) {
2386
2603
  return { valid: !0, data: e };
2387
2604
  if (e instanceof Date && t instanceof Date && +e == +t)
2388
2605
  return { valid: !0, data: e };
2389
- if (le(e) && le(t)) {
2390
- const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
2391
- for (const s of r) {
2392
- const i = pe(e[s], t[s]);
2606
+ if (ce(e) && ce(t)) {
2607
+ const n = Object.keys(t), r = Object.keys(e).filter((a) => n.indexOf(a) !== -1), o = { ...e, ...t };
2608
+ for (const a of r) {
2609
+ const i = pe(e[a], t[a]);
2393
2610
  if (!i.valid)
2394
2611
  return {
2395
2612
  valid: !1,
2396
- mergeErrorPath: [s, ...i.mergeErrorPath]
2613
+ mergeErrorPath: [a, ...i.mergeErrorPath]
2397
2614
  };
2398
- o[s] = i.data;
2615
+ o[a] = i.data;
2399
2616
  }
2400
2617
  return { valid: !0, data: o };
2401
2618
  }
@@ -2404,7 +2621,7 @@ function pe(e, t) {
2404
2621
  return { valid: !1, mergeErrorPath: [] };
2405
2622
  const n = [];
2406
2623
  for (let r = 0; r < e.length; r++) {
2407
- const o = e[r], s = t[r], i = pe(o, s);
2624
+ const o = e[r], a = t[r], i = pe(o, a);
2408
2625
  if (!i.valid)
2409
2626
  return {
2410
2627
  valid: !1,
@@ -2416,7 +2633,7 @@ function pe(e, t) {
2416
2633
  }
2417
2634
  return { valid: !1, mergeErrorPath: [] };
2418
2635
  }
2419
- function Ie(e, t, n) {
2636
+ function Ze(e, t, n) {
2420
2637
  if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), M(e))
2421
2638
  return e;
2422
2639
  const r = pe(t.value, n.value);
@@ -2424,8 +2641,8 @@ function Ie(e, t, n) {
2424
2641
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
2425
2642
  return e.value = r.data, e;
2426
2643
  }
2427
- const Mr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2428
- _.init(e, t), e._zod.parse = (n, r) => {
2644
+ const Mr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
2645
+ T.init(e, t), e._zod.parse = (n, r) => {
2429
2646
  if (r.direction === "backward")
2430
2647
  throw new nt(e.constructor.name);
2431
2648
  const o = t.transform(n.value, n);
@@ -2436,47 +2653,47 @@ const Mr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2436
2653
  return n.value = o, n;
2437
2654
  };
2438
2655
  });
2439
- function Le(e, t) {
2656
+ function De(e, t) {
2440
2657
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
2441
2658
  }
2442
- const ft = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2443
- _.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", g(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), g(e._zod, "pattern", () => {
2659
+ const bt = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
2660
+ T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
2444
2661
  const n = t.innerType._zod.pattern;
2445
- return n ? new RegExp(`^(${be(n.source)})?$`) : void 0;
2662
+ return n ? new RegExp(`^(${ye(n.source)})?$`) : void 0;
2446
2663
  }), e._zod.parse = (n, r) => {
2447
2664
  if (t.innerType._zod.optin === "optional") {
2448
2665
  const o = t.innerType._zod.run(n, r);
2449
- return o instanceof Promise ? o.then((s) => Le(s, n.value)) : Le(o, n.value);
2666
+ return o instanceof Promise ? o.then((a) => De(a, n.value)) : De(o, n.value);
2450
2667
  }
2451
2668
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
2452
2669
  };
2453
- }), Nr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2454
- _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "pattern", () => {
2670
+ }), Nr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
2671
+ T.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
2455
2672
  const n = t.innerType._zod.pattern;
2456
- return n ? new RegExp(`^(${be(n.source)}|null)$`) : void 0;
2457
- }), 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);
2458
- }), xr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2459
- _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2673
+ return n ? new RegExp(`^(${ye(n.source)}|null)$`) : void 0;
2674
+ }), _(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);
2675
+ }), Rr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
2676
+ T.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2460
2677
  if (r.direction === "backward")
2461
2678
  return t.innerType._zod.run(n, r);
2462
2679
  if (n.value === void 0)
2463
2680
  return n.value = t.defaultValue, n;
2464
2681
  const o = t.innerType._zod.run(n, r);
2465
- return o instanceof Promise ? o.then((s) => De(s, t)) : De(o, t);
2682
+ return o instanceof Promise ? o.then((a) => Le(a, t)) : Le(o, t);
2466
2683
  };
2467
2684
  });
2468
- function De(e, t) {
2685
+ function Le(e, t) {
2469
2686
  return e.value === void 0 && (e.value = t.defaultValue), e;
2470
2687
  }
2471
- const Rr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2472
- _.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));
2473
- }), Fr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2474
- _.init(e, t), g(e._zod, "values", () => {
2688
+ const xr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
2689
+ T.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
2690
+ }), Wr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
2691
+ T.init(e, t), _(e._zod, "values", () => {
2475
2692
  const n = t.innerType._zod.values;
2476
2693
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
2477
2694
  }), e._zod.parse = (n, r) => {
2478
2695
  const o = t.innerType._zod.run(n, r);
2479
- return o instanceof Promise ? o.then((s) => Me(s, e)) : Me(o, e);
2696
+ return o instanceof Promise ? o.then((a) => Me(a, e)) : Me(o, e);
2480
2697
  };
2481
2698
  });
2482
2699
  function Me(e, t) {
@@ -2487,40 +2704,40 @@ function Me(e, t) {
2487
2704
  inst: t
2488
2705
  }), e;
2489
2706
  }
2490
- const Wr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2491
- _.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) => {
2707
+ const Fr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
2708
+ T.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2492
2709
  if (r.direction === "backward")
2493
2710
  return t.innerType._zod.run(n, r);
2494
2711
  const o = t.innerType._zod.run(n, r);
2495
- return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
2712
+ return o instanceof Promise ? o.then((a) => (n.value = a.value, a.issues.length && (n.value = t.catchValue({
2496
2713
  ...n,
2497
2714
  error: {
2498
- issues: s.issues.map((i) => L(i, r, I()))
2715
+ issues: a.issues.map((i) => D(i, r, Z()))
2499
2716
  },
2500
2717
  input: n.value
2501
2718
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
2502
2719
  ...n,
2503
2720
  error: {
2504
- issues: o.issues.map((s) => L(s, r, I()))
2721
+ issues: o.issues.map((a) => D(a, r, Z()))
2505
2722
  },
2506
2723
  input: n.value
2507
2724
  }), n.issues = []), n);
2508
2725
  };
2509
- }), Ur = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2510
- _.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) => {
2726
+ }), Ur = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
2727
+ T.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
2511
2728
  if (r.direction === "backward") {
2512
- const s = t.out._zod.run(n, r);
2513
- return s instanceof Promise ? s.then((i) => G(i, t.in, r)) : G(s, t.in, r);
2729
+ const a = t.out._zod.run(n, r);
2730
+ return a instanceof Promise ? a.then((i) => Y(i, t.in, r)) : Y(a, t.in, r);
2514
2731
  }
2515
2732
  const o = t.in._zod.run(n, r);
2516
- return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
2733
+ return o instanceof Promise ? o.then((a) => Y(a, t.out, r)) : Y(o, t.out, r);
2517
2734
  };
2518
2735
  });
2519
- function G(e, t, n) {
2736
+ function Y(e, t, n) {
2520
2737
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
2521
2738
  }
2522
- const jr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2523
- _.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) => {
2739
+ const jr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
2740
+ T.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType?._zod?.optin), _(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
2524
2741
  if (r.direction === "backward")
2525
2742
  return t.innerType._zod.run(n, r);
2526
2743
  const o = t.innerType._zod.run(n, r);
@@ -2530,15 +2747,15 @@ const jr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2530
2747
  function Ne(e) {
2531
2748
  return e.value = Object.freeze(e.value), e;
2532
2749
  }
2533
- const gt = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
2534
- S.init(e, t), _.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
2750
+ const ft = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
2751
+ E.init(e, t), T.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
2535
2752
  const r = n.value, o = t.fn(r);
2536
2753
  if (o instanceof Promise)
2537
- return o.then((s) => xe(s, n, r, e));
2538
- xe(o, n, r, e);
2754
+ return o.then((a) => Re(a, n, r, e));
2755
+ Re(o, n, r, e);
2539
2756
  };
2540
2757
  });
2541
- function xe(e, t, n, r) {
2758
+ function Re(e, t, n, r) {
2542
2759
  if (!e) {
2543
2760
  const o = {
2544
2761
  code: "custom",
@@ -2553,7 +2770,7 @@ function xe(e, t, n, r) {
2553
2770
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(U(o));
2554
2771
  }
2555
2772
  }
2556
- var Re;
2773
+ var xe;
2557
2774
  class Vr {
2558
2775
  constructor() {
2559
2776
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
@@ -2591,21 +2808,21 @@ class Vr {
2591
2808
  function Br() {
2592
2809
  return new Vr();
2593
2810
  }
2594
- (Re = globalThis).__zod_globalRegistry ?? (Re.__zod_globalRegistry = Br());
2811
+ (xe = globalThis).__zod_globalRegistry ?? (xe.__zod_globalRegistry = Br());
2595
2812
  const K = globalThis.__zod_globalRegistry;
2596
- function Yr(e, t) {
2813
+ function Gr(e, t) {
2597
2814
  return new e({
2598
2815
  type: "string",
2599
- ...m(t)
2816
+ ...h(t)
2600
2817
  });
2601
2818
  }
2602
- function Gr(e, t) {
2819
+ function Yr(e, t) {
2603
2820
  return new e({
2604
2821
  type: "string",
2605
2822
  format: "email",
2606
2823
  check: "string_format",
2607
2824
  abort: !1,
2608
- ...m(t)
2825
+ ...h(t)
2609
2826
  });
2610
2827
  }
2611
2828
  function Kr(e, t) {
@@ -2614,7 +2831,7 @@ function Kr(e, t) {
2614
2831
  format: "uuid",
2615
2832
  check: "string_format",
2616
2833
  abort: !1,
2617
- ...m(t)
2834
+ ...h(t)
2618
2835
  });
2619
2836
  }
2620
2837
  function qr(e, t) {
@@ -2623,7 +2840,7 @@ function qr(e, t) {
2623
2840
  format: "url",
2624
2841
  check: "string_format",
2625
2842
  abort: !1,
2626
- ...m(t)
2843
+ ...h(t)
2627
2844
  });
2628
2845
  }
2629
2846
  function Xr(e, t) {
@@ -2632,7 +2849,7 @@ function Xr(e, t) {
2632
2849
  format: "ipv4",
2633
2850
  check: "string_format",
2634
2851
  abort: !1,
2635
- ...m(t)
2852
+ ...h(t)
2636
2853
  });
2637
2854
  }
2638
2855
  function Hr(e, t) {
@@ -2641,7 +2858,7 @@ function Hr(e, t) {
2641
2858
  format: "ipv6",
2642
2859
  check: "string_format",
2643
2860
  abort: !1,
2644
- ...m(t)
2861
+ ...h(t)
2645
2862
  });
2646
2863
  }
2647
2864
  function Jr(e, t) {
@@ -2652,7 +2869,7 @@ function Jr(e, t) {
2652
2869
  offset: !1,
2653
2870
  local: !1,
2654
2871
  precision: null,
2655
- ...m(t)
2872
+ ...h(t)
2656
2873
  });
2657
2874
  }
2658
2875
  function Qr(e, t) {
@@ -2660,7 +2877,7 @@ function Qr(e, t) {
2660
2877
  type: "string",
2661
2878
  format: "date",
2662
2879
  check: "string_format",
2663
- ...m(t)
2880
+ ...h(t)
2664
2881
  });
2665
2882
  }
2666
2883
  function eo(e, t) {
@@ -2669,7 +2886,7 @@ function eo(e, t) {
2669
2886
  format: "time",
2670
2887
  check: "string_format",
2671
2888
  precision: null,
2672
- ...m(t)
2889
+ ...h(t)
2673
2890
  });
2674
2891
  }
2675
2892
  function to(e, t) {
@@ -2677,14 +2894,14 @@ function to(e, t) {
2677
2894
  type: "string",
2678
2895
  format: "duration",
2679
2896
  check: "string_format",
2680
- ...m(t)
2897
+ ...h(t)
2681
2898
  });
2682
2899
  }
2683
2900
  function no(e, t) {
2684
2901
  return new e({
2685
2902
  type: "number",
2686
2903
  checks: [],
2687
- ...m(t)
2904
+ ...h(t)
2688
2905
  });
2689
2906
  }
2690
2907
  function ro(e, t) {
@@ -2693,62 +2910,62 @@ function ro(e, t) {
2693
2910
  check: "number_format",
2694
2911
  abort: !1,
2695
2912
  format: "safeint",
2696
- ...m(t)
2913
+ ...h(t)
2697
2914
  });
2698
2915
  }
2699
2916
  function oo(e, t) {
2700
2917
  return new e({
2701
2918
  type: "boolean",
2702
- ...m(t)
2919
+ ...h(t)
2703
2920
  });
2704
2921
  }
2705
- function so(e) {
2922
+ function ao(e) {
2706
2923
  return new e({
2707
2924
  type: "any"
2708
2925
  });
2709
2926
  }
2710
2927
  function io(e, t) {
2711
- return new ar({
2928
+ return new sr({
2712
2929
  check: "less_than",
2713
- ...m(t),
2930
+ ...h(t),
2714
2931
  value: e,
2715
2932
  inclusive: !0
2716
2933
  });
2717
2934
  }
2718
- function ao(e, t) {
2935
+ function so(e, t) {
2719
2936
  return new ur({
2720
2937
  check: "greater_than",
2721
- ...m(t),
2938
+ ...h(t),
2722
2939
  value: e,
2723
2940
  inclusive: !0
2724
2941
  });
2725
2942
  }
2726
2943
  function re(e, t) {
2727
- return new lr({
2944
+ return new cr({
2728
2945
  check: "max_length",
2729
- ...m(t),
2946
+ ...h(t),
2730
2947
  maximum: e
2731
2948
  });
2732
2949
  }
2733
- function x(e, t) {
2950
+ function R(e, t) {
2734
2951
  return new pr({
2735
2952
  check: "min_length",
2736
- ...m(t),
2953
+ ...h(t),
2737
2954
  minimum: e
2738
2955
  });
2739
2956
  }
2740
- function bt(e, t) {
2957
+ function yt(e, t) {
2741
2958
  return new dr({
2742
2959
  check: "length_equals",
2743
- ...m(t),
2960
+ ...h(t),
2744
2961
  length: e
2745
2962
  });
2746
2963
  }
2747
- function yt(e, t) {
2964
+ function gt(e, t) {
2748
2965
  return new mr({
2749
2966
  check: "string_format",
2750
2967
  format: "regex",
2751
- ...m(t),
2968
+ ...h(t),
2752
2969
  pattern: e
2753
2970
  });
2754
2971
  }
@@ -2756,60 +2973,60 @@ function uo(e) {
2756
2973
  return new hr({
2757
2974
  check: "string_format",
2758
2975
  format: "lowercase",
2759
- ...m(e)
2976
+ ...h(e)
2760
2977
  });
2761
2978
  }
2762
- function co(e) {
2763
- return new fr({
2979
+ function lo(e) {
2980
+ return new br({
2764
2981
  check: "string_format",
2765
2982
  format: "uppercase",
2766
- ...m(e)
2983
+ ...h(e)
2767
2984
  });
2768
2985
  }
2769
- function lo(e, t) {
2770
- return new gr({
2986
+ function co(e, t) {
2987
+ return new fr({
2771
2988
  check: "string_format",
2772
2989
  format: "includes",
2773
- ...m(t),
2990
+ ...h(t),
2774
2991
  includes: e
2775
2992
  });
2776
2993
  }
2777
2994
  function po(e, t) {
2778
- return new br({
2995
+ return new yr({
2779
2996
  check: "string_format",
2780
2997
  format: "starts_with",
2781
- ...m(t),
2998
+ ...h(t),
2782
2999
  prefix: e
2783
3000
  });
2784
3001
  }
2785
3002
  function mo(e, t) {
2786
- return new yr({
3003
+ return new gr({
2787
3004
  check: "string_format",
2788
3005
  format: "ends_with",
2789
- ...m(t),
3006
+ ...h(t),
2790
3007
  suffix: e
2791
3008
  });
2792
3009
  }
2793
- function F(e) {
3010
+ function W(e) {
2794
3011
  return new _r({
2795
3012
  check: "overwrite",
2796
3013
  tx: e
2797
3014
  });
2798
3015
  }
2799
3016
  function ho(e) {
2800
- return F((t) => t.normalize(e));
2801
- }
2802
- function fo() {
2803
- return F((e) => e.trim());
2804
- }
2805
- function go() {
2806
- return F((e) => e.toLowerCase());
3017
+ return W((t) => t.normalize(e));
2807
3018
  }
2808
3019
  function bo() {
2809
- return F((e) => e.toUpperCase());
3020
+ return W((e) => e.trim());
3021
+ }
3022
+ function fo() {
3023
+ return W((e) => e.toLowerCase());
2810
3024
  }
2811
3025
  function yo() {
2812
- return F((e) => Cn(e));
3026
+ return W((e) => e.toUpperCase());
3027
+ }
3028
+ function go() {
3029
+ return W((e) => On(e));
2813
3030
  }
2814
3031
  function _o(e, t, n) {
2815
3032
  return new e({
@@ -2818,7 +3035,7 @@ function _o(e, t, n) {
2818
3035
  // get element() {
2819
3036
  // return element;
2820
3037
  // },
2821
- ...m(n)
3038
+ ...h(n)
2822
3039
  });
2823
3040
  }
2824
3041
  function _t(e, t, n) {
@@ -2826,7 +3043,7 @@ function _t(e, t, n) {
2826
3043
  type: "custom",
2827
3044
  check: "custom",
2828
3045
  fn: t,
2829
- ...m(n)
3046
+ ...h(n)
2830
3047
  });
2831
3048
  }
2832
3049
  function vt(e) {
@@ -2841,66 +3058,66 @@ function vt(e) {
2841
3058
  return t;
2842
3059
  }
2843
3060
  function vo(e, t) {
2844
- const n = new S({
3061
+ const n = new E({
2845
3062
  check: "custom",
2846
- ...m(t)
3063
+ ...h(t)
2847
3064
  });
2848
3065
  return n._zod.check = e, n;
2849
3066
  }
2850
- function ko(e, t, n, r = {}) {
2851
- const o = m(r), s = {
2852
- ...m(r),
3067
+ function To(e, t, n, r = {}) {
3068
+ const o = h(r), a = {
3069
+ ...h(r),
2853
3070
  check: "string_format",
2854
3071
  type: "string",
2855
3072
  format: t,
2856
- fn: typeof n == "function" ? n : (a) => n.test(a),
3073
+ fn: typeof n == "function" ? n : (s) => n.test(s),
2857
3074
  ...o
2858
3075
  };
2859
- return n instanceof RegExp && (s.pattern = n), new e(s);
3076
+ return n instanceof RegExp && (a.pattern = n), new e(a);
2860
3077
  }
2861
- const wo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
2862
- Ar.init(e, t), oe.init(e, t);
3078
+ const ko = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
3079
+ wr.init(e, t), oe.init(e, t);
2863
3080
  });
2864
- function To(e) {
2865
- return Jr(wo, e);
3081
+ function Ao(e) {
3082
+ return Jr(ko, e);
2866
3083
  }
2867
- const Ao = /* @__PURE__ */ l("ZodISODate", (e, t) => {
2868
- Sr.init(e, t), oe.init(e, t);
3084
+ const wo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
3085
+ Er.init(e, t), oe.init(e, t);
2869
3086
  });
2870
- function So(e) {
2871
- return Qr(Ao, e);
3087
+ function Eo(e) {
3088
+ return Qr(wo, e);
2872
3089
  }
2873
- const zo = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
2874
- zr.init(e, t), oe.init(e, t);
3090
+ const So = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
3091
+ Sr.init(e, t), oe.init(e, t);
2875
3092
  });
2876
- function Eo(e) {
2877
- return eo(zo, e);
3093
+ function zo(e) {
3094
+ return eo(So, e);
2878
3095
  }
2879
- const $o = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
2880
- Er.init(e, t), oe.init(e, t);
3096
+ const Po = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
3097
+ zr.init(e, t), oe.init(e, t);
2881
3098
  });
2882
- function Oo(e) {
2883
- return to($o, e);
3099
+ function Io(e) {
3100
+ return to(Po, e);
2884
3101
  }
2885
- const Zo = (e, t) => {
2886
- at.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3102
+ const $o = (e, t) => {
3103
+ st.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2887
3104
  format: {
2888
3105
  value: (n) => Mn(e, n)
2889
3106
  // enumerable: false,
2890
3107
  },
2891
3108
  flatten: {
2892
- value: (n) => Dn(e, n)
3109
+ value: (n) => Ln(e, n)
2893
3110
  // enumerable: false,
2894
3111
  },
2895
3112
  addIssue: {
2896
3113
  value: (n) => {
2897
- e.issues.push(n), e.message = JSON.stringify(e.issues, ce, 2);
3114
+ e.issues.push(n), e.message = JSON.stringify(e.issues, le, 2);
2898
3115
  }
2899
3116
  // enumerable: false,
2900
3117
  },
2901
3118
  addIssues: {
2902
3119
  value: (n) => {
2903
- e.issues.push(...n), e.message = JSON.stringify(e.issues, ce, 2);
3120
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, le, 2);
2904
3121
  }
2905
3122
  // enumerable: false,
2906
3123
  },
@@ -2911,14 +3128,14 @@ const Zo = (e, t) => {
2911
3128
  // enumerable: false,
2912
3129
  }
2913
3130
  });
2914
- }, $ = l("ZodError", Zo, {
3131
+ }, I = c("ZodError", $o, {
2915
3132
  Parent: Error
2916
- }), Po = /* @__PURE__ */ J($), Co = /* @__PURE__ */ Q($), Io = /* @__PURE__ */ ee($), Lo = /* @__PURE__ */ te($), Do = /* @__PURE__ */ Rn($), Mo = /* @__PURE__ */ Fn($), No = /* @__PURE__ */ Wn($), xo = /* @__PURE__ */ Un($), Ro = /* @__PURE__ */ jn($), Fo = /* @__PURE__ */ Vn($), Wo = /* @__PURE__ */ Bn($), Uo = /* @__PURE__ */ Yn($), A = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Pn(t, {
3133
+ }), Co = /* @__PURE__ */ J(I), Oo = /* @__PURE__ */ Q(I), Zo = /* @__PURE__ */ ee(I), Do = /* @__PURE__ */ te(I), Lo = /* @__PURE__ */ xn(I), Mo = /* @__PURE__ */ Wn(I), No = /* @__PURE__ */ Fn(I), Ro = /* @__PURE__ */ Un(I), xo = /* @__PURE__ */ jn(I), Wo = /* @__PURE__ */ Vn(I), Fo = /* @__PURE__ */ Bn(I), Uo = /* @__PURE__ */ Gn(I), w = /* @__PURE__ */ c("ZodType", (e, t) => (T.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Cn(t, {
2917
3134
  checks: [
2918
3135
  ...t.checks ?? [],
2919
3136
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2920
3137
  ]
2921
- })), e.clone = (n, r) => st(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Po(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Io(e, n, r), e.parseAsync = async (n, r) => Co(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Lo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Do(e, n, r), e.decode = (n, r) => Mo(e, n, r), e.encodeAsync = async (n, r) => No(e, n, r), e.decodeAsync = async (n, r) => xo(e, n, r), e.safeEncode = (n, r) => Ro(e, n, r), e.safeDecode = (n, r) => Fo(e, n, r), e.safeEncodeAsync = async (n, r) => Wo(e, n, r), e.safeDecodeAsync = async (n, r) => Uo(e, n, r), e.refine = (n, r) => e.check(ds(n, r)), e.superRefine = (n) => e.check(ms(n)), e.overwrite = (n) => e.check(F(n)), e.optional = () => Fe(e), e.nullable = () => We(e), e.nullish = () => Fe(We(e)), e.nonoptional = (n) => ss(e, n), e.array = () => Bo(e), e.or = (n) => Go([e, n]), e.and = (n) => qo(e, n), e.transform = (n) => Ue(e, Ho(n)), e.default = (n) => ts(e, n), e.prefault = (n) => rs(e, n), e.catch = (n) => as(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => ls(e), e.describe = (n) => {
3138
+ })), e.clone = (n, r) => at(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Co(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Zo(e, n, r), e.parseAsync = async (n, r) => Oo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Do(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Lo(e, n, r), e.decode = (n, r) => Mo(e, n, r), e.encodeAsync = async (n, r) => No(e, n, r), e.decodeAsync = async (n, r) => Ro(e, n, r), e.safeEncode = (n, r) => xo(e, n, r), e.safeDecode = (n, r) => Wo(e, n, r), e.safeEncodeAsync = async (n, r) => Fo(e, n, r), e.safeDecodeAsync = async (n, r) => Uo(e, n, r), e.refine = (n, r) => e.check(da(n, r)), e.superRefine = (n) => e.check(ma(n)), e.overwrite = (n) => e.check(W(n)), e.optional = () => We(e), e.nullable = () => Fe(e), e.nullish = () => We(Fe(e)), e.nonoptional = (n) => aa(e, n), e.array = () => Bo(e), e.or = (n) => Yo([e, n]), e.and = (n) => qo(e, n), e.transform = (n) => Ue(e, Ho(n)), e.default = (n) => ta(e, n), e.prefault = (n) => ra(e, n), e.catch = (n) => sa(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => ca(e), e.describe = (n) => {
2922
3139
  const r = e.clone();
2923
3140
  return K.add(r, { description: n }), r;
2924
3141
  }, Object.defineProperty(e, "description", {
@@ -2931,30 +3148,30 @@ const Zo = (e, t) => {
2931
3148
  return K.get(e);
2932
3149
  const r = e.clone();
2933
3150
  return K.add(r, n[0]), r;
2934
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), jo = /* @__PURE__ */ l("_ZodString", (e, t) => {
2935
- ve.init(e, t), A.init(e, t);
3151
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), jo = /* @__PURE__ */ c("_ZodString", (e, t) => {
3152
+ ve.init(e, t), w.init(e, t);
2936
3153
  const n = e._zod.bag;
2937
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(yt(...r)), e.includes = (...r) => e.check(lo(...r)), e.startsWith = (...r) => e.check(po(...r)), e.endsWith = (...r) => e.check(mo(...r)), e.min = (...r) => e.check(x(...r)), e.max = (...r) => e.check(re(...r)), e.length = (...r) => e.check(bt(...r)), e.nonempty = (...r) => e.check(x(1, ...r)), e.lowercase = (r) => e.check(uo(r)), e.uppercase = (r) => e.check(co(r)), e.trim = () => e.check(fo()), e.normalize = (...r) => e.check(ho(...r)), e.toLowerCase = () => e.check(go()), e.toUpperCase = () => e.check(bo()), e.slugify = () => e.check(yo());
2938
- }), oe = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
2939
- E.init(e, t), jo.init(e, t);
2940
- }), Vo = /* @__PURE__ */ l("ZodArray", (e, t) => {
2941
- ht.init(e, t), A.init(e, t), e.element = t.element, e.min = (n, r) => e.check(x(n, r)), e.nonempty = (n) => e.check(x(1, n)), e.max = (n, r) => e.check(re(n, r)), e.length = (n, r) => e.check(bt(n, r)), e.unwrap = () => e.element;
3154
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(gt(...r)), e.includes = (...r) => e.check(co(...r)), e.startsWith = (...r) => e.check(po(...r)), e.endsWith = (...r) => e.check(mo(...r)), e.min = (...r) => e.check(R(...r)), e.max = (...r) => e.check(re(...r)), e.length = (...r) => e.check(yt(...r)), e.nonempty = (...r) => e.check(R(1, ...r)), e.lowercase = (r) => e.check(uo(r)), e.uppercase = (r) => e.check(lo(r)), e.trim = () => e.check(bo()), e.normalize = (...r) => e.check(ho(...r)), e.toLowerCase = () => e.check(fo()), e.toUpperCase = () => e.check(yo()), e.slugify = () => e.check(go());
3155
+ }), oe = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
3156
+ P.init(e, t), jo.init(e, t);
3157
+ }), Vo = /* @__PURE__ */ c("ZodArray", (e, t) => {
3158
+ ht.init(e, t), w.init(e, t), e.element = t.element, e.min = (n, r) => e.check(R(n, r)), e.nonempty = (n) => e.check(R(1, n)), e.max = (n, r) => e.check(re(n, r)), e.length = (n, r) => e.check(yt(n, r)), e.unwrap = () => e.element;
2942
3159
  });
2943
3160
  function Bo(e, t) {
2944
3161
  return _o(Vo, e, t);
2945
3162
  }
2946
- const Yo = /* @__PURE__ */ l("ZodUnion", (e, t) => {
2947
- Lr.init(e, t), A.init(e, t), e.options = t.options;
3163
+ const Go = /* @__PURE__ */ c("ZodUnion", (e, t) => {
3164
+ Dr.init(e, t), w.init(e, t), e.options = t.options;
2948
3165
  });
2949
- function Go(e, t) {
2950
- return new Yo({
3166
+ function Yo(e, t) {
3167
+ return new Go({
2951
3168
  type: "union",
2952
3169
  options: e,
2953
- ...m(t)
3170
+ ...h(t)
2954
3171
  });
2955
3172
  }
2956
- const Ko = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
2957
- Dr.init(e, t), A.init(e, t);
3173
+ const Ko = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
3174
+ Lr.init(e, t), w.init(e, t);
2958
3175
  });
2959
3176
  function qo(e, t) {
2960
3177
  return new Ko({
@@ -2963,20 +3180,20 @@ function qo(e, t) {
2963
3180
  right: t
2964
3181
  });
2965
3182
  }
2966
- const Xo = /* @__PURE__ */ l("ZodTransform", (e, t) => {
2967
- Mr.init(e, t), A.init(e, t), e._zod.parse = (n, r) => {
3183
+ const Xo = /* @__PURE__ */ c("ZodTransform", (e, t) => {
3184
+ Mr.init(e, t), w.init(e, t), e._zod.parse = (n, r) => {
2968
3185
  if (r.direction === "backward")
2969
3186
  throw new nt(e.constructor.name);
2970
- n.addIssue = (s) => {
2971
- if (typeof s == "string")
2972
- n.issues.push(U(s, n.value, t));
3187
+ n.addIssue = (a) => {
3188
+ if (typeof a == "string")
3189
+ n.issues.push(U(a, n.value, t));
2973
3190
  else {
2974
- const i = s;
3191
+ const i = a;
2975
3192
  i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(U(i));
2976
3193
  }
2977
3194
  };
2978
3195
  const o = t.transform(n.value, n);
2979
- return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
3196
+ return o instanceof Promise ? o.then((a) => (n.value = a, n)) : (n.value = o, n);
2980
3197
  };
2981
3198
  });
2982
3199
  function Ho(e) {
@@ -2985,29 +3202,29 @@ function Ho(e) {
2985
3202
  transform: e
2986
3203
  });
2987
3204
  }
2988
- const Jo = /* @__PURE__ */ l("ZodOptional", (e, t) => {
2989
- ft.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType;
3205
+ const Jo = /* @__PURE__ */ c("ZodOptional", (e, t) => {
3206
+ bt.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
2990
3207
  });
2991
- function Fe(e) {
3208
+ function We(e) {
2992
3209
  return new Jo({
2993
3210
  type: "optional",
2994
3211
  innerType: e
2995
3212
  });
2996
3213
  }
2997
- const Qo = /* @__PURE__ */ l("ZodNullable", (e, t) => {
2998
- Nr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType;
3214
+ const Qo = /* @__PURE__ */ c("ZodNullable", (e, t) => {
3215
+ Nr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
2999
3216
  });
3000
- function We(e) {
3217
+ function Fe(e) {
3001
3218
  return new Qo({
3002
3219
  type: "nullable",
3003
3220
  innerType: e
3004
3221
  });
3005
3222
  }
3006
- const es = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3007
- xr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3223
+ const ea = /* @__PURE__ */ c("ZodDefault", (e, t) => {
3224
+ Rr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3008
3225
  });
3009
- function ts(e, t) {
3010
- return new es({
3226
+ function ta(e, t) {
3227
+ return new ea({
3011
3228
  type: "default",
3012
3229
  innerType: e,
3013
3230
  get defaultValue() {
@@ -3015,11 +3232,11 @@ function ts(e, t) {
3015
3232
  }
3016
3233
  });
3017
3234
  }
3018
- const ns = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3019
- Rr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType;
3235
+ const na = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
3236
+ xr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
3020
3237
  });
3021
- function rs(e, t) {
3022
- return new ns({
3238
+ function ra(e, t) {
3239
+ return new na({
3023
3240
  type: "prefault",
3024
3241
  innerType: e,
3025
3242
  get defaultValue() {
@@ -3027,59 +3244,59 @@ function rs(e, t) {
3027
3244
  }
3028
3245
  });
3029
3246
  }
3030
- const os = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3031
- Fr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType;
3247
+ const oa = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
3248
+ Wr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
3032
3249
  });
3033
- function ss(e, t) {
3034
- return new os({
3250
+ function aa(e, t) {
3251
+ return new oa({
3035
3252
  type: "nonoptional",
3036
3253
  innerType: e,
3037
- ...m(t)
3254
+ ...h(t)
3038
3255
  });
3039
3256
  }
3040
- const is = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3041
- Wr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3257
+ const ia = /* @__PURE__ */ c("ZodCatch", (e, t) => {
3258
+ Fr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3042
3259
  });
3043
- function as(e, t) {
3044
- return new is({
3260
+ function sa(e, t) {
3261
+ return new ia({
3045
3262
  type: "catch",
3046
3263
  innerType: e,
3047
3264
  catchValue: typeof t == "function" ? t : () => t
3048
3265
  });
3049
3266
  }
3050
- const us = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3051
- Ur.init(e, t), A.init(e, t), e.in = t.in, e.out = t.out;
3267
+ const ua = /* @__PURE__ */ c("ZodPipe", (e, t) => {
3268
+ Ur.init(e, t), w.init(e, t), e.in = t.in, e.out = t.out;
3052
3269
  });
3053
3270
  function Ue(e, t) {
3054
- return new us({
3271
+ return new ua({
3055
3272
  type: "pipe",
3056
3273
  in: e,
3057
3274
  out: t
3058
3275
  // ...util.normalizeParams(params),
3059
3276
  });
3060
3277
  }
3061
- const cs = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3062
- jr.init(e, t), A.init(e, t), e.unwrap = () => e._zod.def.innerType;
3278
+ const la = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
3279
+ jr.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
3063
3280
  });
3064
- function ls(e) {
3065
- return new cs({
3281
+ function ca(e) {
3282
+ return new la({
3066
3283
  type: "readonly",
3067
3284
  innerType: e
3068
3285
  });
3069
3286
  }
3070
- const ps = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3071
- gt.init(e, t), A.init(e, t);
3287
+ const pa = /* @__PURE__ */ c("ZodCustom", (e, t) => {
3288
+ ft.init(e, t), w.init(e, t);
3072
3289
  });
3073
- function ds(e, t = {}) {
3074
- return _t(ps, e, t);
3290
+ function da(e, t = {}) {
3291
+ return _t(pa, e, t);
3075
3292
  }
3076
- function ms(e) {
3293
+ function ma(e) {
3077
3294
  return vt(e);
3078
3295
  }
3079
- const D = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3296
+ const L = /* @__PURE__ */ c("ZodMiniType", (e, t) => {
3080
3297
  if (!e._zod)
3081
3298
  throw new Error("Uninitialized schema in ZodMiniType.");
3082
- _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Nn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ut(e, n, r), e.parseAsync = async (n, r) => xn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ct(e, n, r), e.check = (...n) => e.clone(
3299
+ T.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Nn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ut(e, n, r), e.parseAsync = async (n, r) => Rn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone(
3083
3300
  {
3084
3301
  ...t,
3085
3302
  checks: [
@@ -3088,182 +3305,182 @@ const D = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3088
3305
  ]
3089
3306
  }
3090
3307
  // { parent: true }
3091
- ), e.clone = (n, r) => st(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e));
3092
- }), kt = /* @__PURE__ */ l("ZodMiniString", (e, t) => {
3093
- ve.init(e, t), D.init(e, t);
3308
+ ), e.clone = (n, r) => at(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e));
3309
+ }), Tt = /* @__PURE__ */ c("ZodMiniString", (e, t) => {
3310
+ ve.init(e, t), L.init(e, t);
3094
3311
  });
3095
3312
  function je(e) {
3096
- return Yr(kt, e);
3313
+ return Gr(Tt, e);
3097
3314
  }
3098
- const W = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
3099
- E.init(e, t), kt.init(e, t);
3100
- }), hs = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3101
- wr.init(e, t), W.init(e, t);
3315
+ const F = /* @__PURE__ */ c("ZodMiniStringFormat", (e, t) => {
3316
+ P.init(e, t), Tt.init(e, t);
3317
+ }), ha = /* @__PURE__ */ c("ZodMiniEmail", (e, t) => {
3318
+ kr.init(e, t), F.init(e, t);
3102
3319
  });
3103
- function fs(e) {
3104
- return Gr(hs, e);
3320
+ function ba(e) {
3321
+ return Yr(ha, e);
3105
3322
  }
3106
- const gs = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3107
- kr.init(e, t), W.init(e, t);
3323
+ const fa = /* @__PURE__ */ c("ZodMiniUUID", (e, t) => {
3324
+ Tr.init(e, t), F.init(e, t);
3108
3325
  });
3109
- function bs(e) {
3110
- return Kr(gs, e);
3326
+ function ya(e) {
3327
+ return Kr(fa, e);
3111
3328
  }
3112
- const ys = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3113
- Tr.init(e, t), W.init(e, t);
3329
+ const ga = /* @__PURE__ */ c("ZodMiniURL", (e, t) => {
3330
+ Ar.init(e, t), F.init(e, t);
3114
3331
  });
3115
- function _s(e) {
3116
- return qr(ys, e);
3332
+ function _a(e) {
3333
+ return qr(ga, e);
3117
3334
  }
3118
- const vs = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3119
- $r.init(e, t), W.init(e, t);
3335
+ const va = /* @__PURE__ */ c("ZodMiniIPv4", (e, t) => {
3336
+ Pr.init(e, t), F.init(e, t);
3120
3337
  });
3121
- function ks(e) {
3122
- return Xr(vs, e);
3338
+ function Ta(e) {
3339
+ return Xr(va, e);
3123
3340
  }
3124
- const ws = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3125
- Or.init(e, t), W.init(e, t);
3341
+ const ka = /* @__PURE__ */ c("ZodMiniIPv6", (e, t) => {
3342
+ Ir.init(e, t), F.init(e, t);
3126
3343
  });
3127
- function Ts(e) {
3128
- return Hr(ws, e);
3344
+ function Aa(e) {
3345
+ return Hr(ka, e);
3129
3346
  }
3130
- const As = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3131
- Zr.init(e, t), W.init(e, t);
3347
+ const wa = /* @__PURE__ */ c("ZodMiniCustomStringFormat", (e, t) => {
3348
+ $r.init(e, t), F.init(e, t);
3132
3349
  });
3133
- function Ss(e) {
3134
- return ko(As, "hostname", Hn, e);
3350
+ function Ea(e) {
3351
+ return To(wa, "hostname", Hn, e);
3135
3352
  }
3136
- const wt = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
3137
- mt.init(e, t), D.init(e, t);
3353
+ const kt = /* @__PURE__ */ c("ZodMiniNumber", (e, t) => {
3354
+ mt.init(e, t), L.init(e, t);
3138
3355
  });
3139
3356
  function Ve(e) {
3140
- return no(wt, e);
3357
+ return no(kt, e);
3141
3358
  }
3142
- const zs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3143
- Pr.init(e, t), wt.init(e, t);
3359
+ const Sa = /* @__PURE__ */ c("ZodMiniNumberFormat", (e, t) => {
3360
+ Cr.init(e, t), kt.init(e, t);
3144
3361
  });
3145
- function Es(e) {
3146
- return ro(zs, e);
3362
+ function za(e) {
3363
+ return ro(Sa, e);
3147
3364
  }
3148
- const $s = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3149
- Cr.init(e, t), D.init(e, t);
3365
+ const Pa = /* @__PURE__ */ c("ZodMiniBoolean", (e, t) => {
3366
+ Or.init(e, t), L.init(e, t);
3150
3367
  });
3151
3368
  function Be(e) {
3152
- return oo($s, e);
3369
+ return oo(Pa, e);
3153
3370
  }
3154
- const Os = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3155
- Ir.init(e, t), D.init(e, t);
3371
+ const Ia = /* @__PURE__ */ c("ZodMiniAny", (e, t) => {
3372
+ Zr.init(e, t), L.init(e, t);
3156
3373
  });
3157
3374
  function de() {
3158
- return so(Os);
3375
+ return ao(Ia);
3159
3376
  }
3160
- const Zs = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3161
- ht.init(e, t), D.init(e, t);
3377
+ const $a = /* @__PURE__ */ c("ZodMiniArray", (e, t) => {
3378
+ ht.init(e, t), L.init(e, t);
3162
3379
  });
3163
- function Ye(e, t) {
3164
- return new Zs({
3380
+ function Ge(e, t) {
3381
+ return new $a({
3165
3382
  type: "array",
3166
3383
  element: e,
3167
- ...m(t)
3384
+ ...h(t)
3168
3385
  });
3169
3386
  }
3170
- const Ps = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3171
- ft.init(e, t), D.init(e, t);
3387
+ const Ca = /* @__PURE__ */ c("ZodMiniOptional", (e, t) => {
3388
+ bt.init(e, t), L.init(e, t);
3172
3389
  });
3173
- function Cs(e) {
3174
- return new Ps({
3390
+ function Oa(e) {
3391
+ return new Ca({
3175
3392
  type: "optional",
3176
3393
  innerType: e
3177
3394
  });
3178
3395
  }
3179
- const Is = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3180
- gt.init(e, t), D.init(e, t);
3396
+ const Za = /* @__PURE__ */ c("ZodMiniCustom", (e, t) => {
3397
+ ft.init(e, t), L.init(e, t);
3181
3398
  });
3182
3399
  function k(e, t = {}) {
3183
- return _t(Is, e, t);
3400
+ return _t(Za, e, t);
3184
3401
  }
3185
- function Tt(e) {
3402
+ function At(e) {
3186
3403
  return vt(e);
3187
3404
  }
3188
3405
  const me = {
3189
- email: { schema: fs() },
3190
- hostname: { schema: Ss() },
3191
- ipv4: { schema: ks() },
3192
- ipv6: { schema: Ts() },
3193
- url: { schema: _s() },
3194
- uuid: { schema: bs() },
3195
- date: { schema: So() },
3196
- time: { schema: Eo() },
3197
- "date-time": { schema: To() },
3198
- duration: { schema: Oo() }
3199
- }, Ls = Object.keys(me), Ds = (e) => (t, n) => {
3406
+ email: { schema: ba() },
3407
+ hostname: { schema: Ea() },
3408
+ ipv4: { schema: Ta() },
3409
+ ipv6: { schema: Aa() },
3410
+ url: { schema: _a() },
3411
+ uuid: { schema: ya() },
3412
+ date: { schema: Eo() },
3413
+ time: { schema: zo() },
3414
+ "date-time": { schema: Ao({ local: !0, offset: !0 }) },
3415
+ duration: { schema: Io() }
3416
+ }, Da = Object.keys(me), La = (e) => (t, n) => {
3200
3417
  switch (t.type) {
3201
3418
  case "string":
3202
- return Ms(t, n);
3419
+ return Ma(t, n);
3203
3420
  case "integer":
3204
3421
  case "number":
3205
- return xs(t, n);
3422
+ return Ra(t, n);
3206
3423
  case "boolean":
3207
- return Rs(t, n);
3424
+ return xa(t, n);
3208
3425
  case "array":
3209
- return Fs(t, n);
3426
+ return Wa(t, n);
3210
3427
  case "custom": {
3211
3428
  if (!e)
3212
3429
  throw new Error(
3213
3430
  'Validator type "custom" requires a customValidators object, but it was not supplied.'
3214
3431
  );
3215
- return Ws(t, e);
3432
+ return Fa(t, e);
3216
3433
  }
3217
3434
  }
3218
3435
  };
3219
- function b(e, t) {
3436
+ function v(e, t) {
3220
3437
  if (e !== void 0)
3221
3438
  return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
3222
3439
  }
3223
- function Ms(e, t) {
3440
+ function Ma(e, t) {
3224
3441
  return j(e, (n) => {
3225
- const r = b(n.messages?.invalid, t);
3442
+ const r = v(n.messages?.invalid, t);
3226
3443
  let o = r ? je(r) : je();
3227
3444
  if (n.required === !0) {
3228
- const s = b(n.messages?.required, t) ?? "This field is required";
3229
- o = o.check(k((i) => i.length > 0, { error: s }));
3445
+ const a = v(n.messages?.required, t) ?? "This field is required";
3446
+ o = o.check(k((i) => i.length > 0, { error: a }));
3230
3447
  }
3231
3448
  if (typeof n.minLength == "number") {
3232
- const s = b(n.messages?.minLength, t), i = n.minLength;
3449
+ const a = v(n.messages?.minLength, t), i = n.minLength;
3233
3450
  o = o.check(
3234
- s ? k((a) => a.length >= i, { error: s }) : x(i)
3451
+ a ? k((s) => s.length >= i, { error: a }) : R(i)
3235
3452
  );
3236
3453
  }
3237
3454
  if (typeof n.maxLength == "number") {
3238
- const s = b(n.messages?.maxLength, t), i = n.maxLength;
3455
+ const a = v(n.messages?.maxLength, t), i = n.maxLength;
3239
3456
  o = o.check(
3240
- s ? k((a) => a.length <= i, { error: s }) : re(i)
3457
+ a ? k((s) => s.length <= i, { error: a }) : re(i)
3241
3458
  );
3242
3459
  }
3243
3460
  if (typeof n.pattern == "string") {
3244
- const s = b(n.messages?.pattern, t), i = new RegExp(n.pattern);
3461
+ const a = v(n.messages?.pattern, t), i = new RegExp(n.pattern);
3245
3462
  o = o.check(
3246
- s ? k((a) => i.test(a), { error: s }) : yt(i)
3463
+ a ? k((s) => i.test(s), { error: a }) : gt(i)
3247
3464
  );
3248
3465
  }
3249
3466
  if (n.enum) {
3250
- const s = n.enum, i = b(n.messages?.enum, t);
3251
- o = o.check(k((a) => s.includes(a), i ? { error: i } : void 0));
3467
+ const a = n.enum, i = v(n.messages?.enum, t);
3468
+ o = o.check(k((s) => a.includes(s), i ? { error: i } : void 0));
3252
3469
  }
3253
3470
  if (n.const !== void 0) {
3254
- const s = b(n.messages?.const, t);
3255
- o = o.check(k((i) => i === n.const, s ? { error: s } : void 0));
3471
+ const a = v(n.messages?.const, t);
3472
+ o = o.check(k((i) => i === n.const, a ? { error: a } : void 0));
3256
3473
  }
3257
3474
  if (n.format !== void 0)
3258
- if (Ls.includes(n.format)) {
3259
- const s = b(n.messages?.format, t);
3475
+ if (Da.includes(n.format)) {
3476
+ const a = v(n.messages?.format, t);
3260
3477
  o = o.check(
3261
- s ? Tt((i, a) => {
3262
- const u = Ge(
3478
+ a ? At((i, s) => {
3479
+ const u = Ye(
3263
3480
  me[n.format].schema,
3264
3481
  i
3265
3482
  );
3266
- Ke(u) || a.addIssue({ code: "custom", path: [], message: s });
3483
+ Ke(u) || s.addIssue({ code: "custom", path: [], message: a });
3267
3484
  }) : me[n.format].schema
3268
3485
  );
3269
3486
  } else
@@ -3271,104 +3488,104 @@ function Ms(e, t) {
3271
3488
  return o;
3272
3489
  });
3273
3490
  }
3274
- const Ns = (e, t) => {
3491
+ const Na = (e, t) => {
3275
3492
  if (t === 0)
3276
3493
  return !1;
3277
3494
  const n = e / t;
3278
3495
  return Math.abs(n - Math.round(n)) < 1e-10;
3279
3496
  };
3280
- function xs(e, t) {
3497
+ function Ra(e, t) {
3281
3498
  return j(e, (n) => {
3282
- const r = b(n.messages?.invalid, t);
3499
+ const r = v(n.messages?.invalid, t);
3283
3500
  let o = r ? Ve(r) : Ve();
3284
- if (n.type === "integer" && (o = o.check(Es())), n.minimum !== void 0) {
3285
- const s = b(n.messages?.minimum, t), i = n.minimum;
3286
- o = o.check(s ? k((a) => a >= i, { error: s }) : ao(i));
3501
+ if (n.type === "integer" && (o = o.check(za())), n.minimum !== void 0) {
3502
+ const a = v(n.messages?.minimum, t), i = n.minimum;
3503
+ o = o.check(a ? k((s) => s >= i, { error: a }) : so(i));
3287
3504
  }
3288
3505
  if (n.maximum !== void 0) {
3289
- const s = b(n.messages?.maximum, t), i = n.maximum;
3290
- o = o.check(s ? k((a) => a <= i, { error: s }) : io(i));
3506
+ const a = v(n.messages?.maximum, t), i = n.maximum;
3507
+ o = o.check(a ? k((s) => s <= i, { error: a }) : io(i));
3291
3508
  }
3292
3509
  if (n.exclusiveMinimum !== void 0) {
3293
- const s = b(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
3294
- o = o.check(k((a) => a > i, s ? { error: s } : void 0));
3510
+ const a = v(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
3511
+ o = o.check(k((s) => s > i, a ? { error: a } : void 0));
3295
3512
  }
3296
3513
  if (n.exclusiveMaximum !== void 0) {
3297
- const s = b(n.messages?.exclusiveMaximum, t), i = n.exclusiveMaximum;
3298
- o = o.check(k((a) => a < i, s ? { error: s } : void 0));
3514
+ const a = v(n.messages?.exclusiveMaximum, t), i = n.exclusiveMaximum;
3515
+ o = o.check(k((s) => s < i, a ? { error: a } : void 0));
3299
3516
  }
3300
3517
  if (n.multipleOf !== void 0) {
3301
- const s = b(n.messages?.multipleOf, t), i = n.multipleOf;
3518
+ const a = v(n.messages?.multipleOf, t), i = n.multipleOf;
3302
3519
  o = o.check(
3303
- k((a) => Ns(a, i), s ? { error: s } : void 0)
3520
+ k((s) => Na(s, i), a ? { error: a } : void 0)
3304
3521
  );
3305
3522
  }
3306
3523
  if (n.enum) {
3307
- const s = n.enum, i = b(n.messages?.enum, t);
3308
- o = o.check(k((a) => s.includes(a), i ? { error: i } : void 0));
3524
+ const a = n.enum, i = v(n.messages?.enum, t);
3525
+ o = o.check(k((s) => a.includes(s), i ? { error: i } : void 0));
3309
3526
  }
3310
3527
  if (n.const !== void 0) {
3311
- const s = b(n.messages?.const, t);
3312
- o = o.check(k((i) => i === n.const, s ? { error: s } : void 0));
3528
+ const a = v(n.messages?.const, t);
3529
+ o = o.check(k((i) => i === n.const, a ? { error: a } : void 0));
3313
3530
  }
3314
3531
  return o;
3315
3532
  });
3316
3533
  }
3317
- function Rs(e, t) {
3534
+ function xa(e, t) {
3318
3535
  return j(e, (n) => {
3319
- const r = b(n.messages?.invalid, t);
3536
+ const r = v(n.messages?.invalid, t);
3320
3537
  let o = r ? Be(r) : Be();
3321
3538
  if (n.const !== void 0) {
3322
- const s = b(n.messages?.const, t);
3323
- o = o.check(k((i) => i === n.const, s ? { error: s } : void 0));
3539
+ const a = v(n.messages?.const, t);
3540
+ o = o.check(k((i) => i === n.const, a ? { error: a } : void 0));
3324
3541
  }
3325
3542
  return o;
3326
3543
  });
3327
3544
  }
3328
- function Fs(e, t) {
3545
+ function Wa(e, t) {
3329
3546
  return j(e, (n) => {
3330
- const r = b(n.messages?.invalid, t);
3331
- let o = r ? Ye(de(), r) : Ye(de());
3547
+ const r = v(n.messages?.invalid, t);
3548
+ let o = r ? Ge(de(), r) : Ge(de());
3332
3549
  if (n.required === !0) {
3333
- const s = b(n.messages?.required, t) ?? "This field is required";
3334
- o = o.check(k((i) => i.length > 0, { error: s }));
3550
+ const a = v(n.messages?.required, t) ?? "This field is required";
3551
+ o = o.check(k((i) => i.length > 0, { error: a }));
3335
3552
  }
3336
3553
  if (typeof n.minItems == "number") {
3337
- const s = b(n.messages?.minItems, t), i = n.minItems;
3554
+ const a = v(n.messages?.minItems, t), i = n.minItems;
3338
3555
  o = o.check(
3339
- s ? k((a) => a.length >= i, { error: s }) : x(i)
3556
+ a ? k((s) => s.length >= i, { error: a }) : R(i)
3340
3557
  );
3341
3558
  }
3342
3559
  if (typeof n.maxItems == "number") {
3343
- const s = b(n.messages?.maxItems, t), i = n.maxItems;
3560
+ const a = v(n.messages?.maxItems, t), i = n.maxItems;
3344
3561
  o = o.check(
3345
- s ? k((a) => a.length <= i, { error: s }) : re(i)
3562
+ a ? k((s) => s.length <= i, { error: a }) : re(i)
3346
3563
  );
3347
3564
  }
3348
3565
  return o;
3349
3566
  });
3350
3567
  }
3351
- function Ws(e, t) {
3568
+ function Fa(e, t) {
3352
3569
  return j(e, (n) => {
3353
3570
  let r = de();
3354
- return zt(
3571
+ return St(
3355
3572
  Object.keys(n),
3356
3573
  // filter non-custom validator keys
3357
3574
  (o) => o !== "type" && o !== "required",
3358
3575
  (o) => {
3359
- const s = n[o], i = t[o], a = i(s);
3576
+ const a = n[o], i = t[o], s = i(a);
3360
3577
  r = r.check(
3361
- Tt((u, c) => {
3362
- const p = Ge(
3363
- a,
3578
+ At((u, l) => {
3579
+ const p = Ye(
3580
+ s,
3364
3581
  u
3365
3582
  );
3366
3583
  if (!Ke(p)) {
3367
- const d = p.issues[0];
3368
- c.addIssue({
3584
+ const m = p.issues[0];
3585
+ l.addIssue({
3369
3586
  code: "custom",
3370
3587
  path: [],
3371
- message: d?.message || `Validation failed for ${o}`
3588
+ message: m?.message || `Validation failed for ${o}`
3372
3589
  });
3373
3590
  }
3374
3591
  })
@@ -3379,31 +3596,41 @@ function Ws(e, t) {
3379
3596
  }
3380
3597
  function j(e, t) {
3381
3598
  const n = t(e);
3382
- return e.required ? n : Cs(n);
3599
+ return e.required ? n : Oa(n);
3383
3600
  }
3384
- const Us = {
3601
+ const Ua = {
3385
3602
  // ACTION
3386
3603
  button: async () => (await import("./button.element-3a7rRHbA.js")).ButtonElement,
3387
3604
  // INPUTS
3388
- calendar: async () => (await import("./calendar.element-DcnTyvfg.js")).CalendarElement,
3389
- rangeCalendar: async () => (await import("./range-calendar.element-_1bHW_c1.js")).RangeCalendarElement,
3390
- rangeDateInput: async () => (await import("./range-date-input.element-BqzAF0O3.js")).RangeDateInputElement,
3391
- rangeDatePicker: async () => (await import("./range-date-picker.element-BCBefgvY.js")).RangeDatePickerElement,
3392
- currency: async () => (await import("./currency.element-5GSakkxF.js")).CurrencyElement,
3393
- dateInput: async () => (await import("./date.element-BZO0UQez.js")).DateElement,
3394
- datePicker: async () => (await import("./date-picker.element-k7AJFQ5W.js")).DatePickerElement,
3395
- dropdown: async () => (await import("./dropdown.element-CyJbVAA5.js")).DropdownElement,
3396
- list: async () => (await import("./list.element-Co3V3Cn5.js")).ListElement,
3605
+ calendar: async () => (await import("./calendar.element-M5MPJmap.js")).CalendarElement,
3606
+ dateTimeCalendar: async () => (await import("./date-time-calendar.element-DC4NK0y1.js")).DateTimeCalendarElement,
3607
+ rangeCalendar: async () => (await import("./range-calendar.element-D6KYq18B.js")).RangeCalendarElement,
3608
+ rangeDateInput: async () => (await import("./range-date-input.element-D4nIXJbw.js")).RangeDateInputElement,
3609
+ rangeTimeInput: async () => (await import("./range-time-input.element-dU2iBdmJ.js")).RangeTimeInputElement,
3610
+ rangeDateTimeInput: async () => (await import("./range-date-time-input.element-DUnbv4ed.js")).RangeDateTimeInputElement,
3611
+ rangeDateTimeCalendar: async () => (await import("./range-date-time-calendar.element-C00aDefZ.js")).RangeDateTimeCalendarElement,
3612
+ rangeDateTimePicker: async () => (await import("./range-date-time-picker.element-Cbps6s_G.js")).RangeDateTimePickerElement,
3613
+ rangeDatePicker: async () => (await import("./range-date-picker.element-dhxPAAE6.js")).RangeDatePickerElement,
3614
+ rangeTimePicker: async () => (await import("./range-time-picker.element-v6nQsIPw.js")).RangeTimePickerElement,
3615
+ currency: async () => (await import("./currency.element-CfFrAtrr.js")).CurrencyElement,
3616
+ dateInput: async () => (await import("./date.element-Consgsbb.js")).DateElement,
3617
+ datePicker: async () => (await import("./date-picker.element-va_-LGZD.js")).DatePickerElement,
3618
+ dateTimePicker: async () => (await import("./date-time-picker.element-Dy-8cb-_.js")).DateTimePickerElement,
3619
+ dropdown: async () => (await import("./dropdown.element-WsD61Qel.js")).DropdownElement,
3620
+ list: async () => (await import("./list.element-DV82YxnJ.js")).ListElement,
3397
3621
  markdown: async () => (await import("./markdown.element-p-kC47D7.js")).MarkdownElement,
3398
3622
  password: async () => (await import("./password.element-n-R9RbkB.js")).PasswordElement,
3399
3623
  textinput: async () => (await import("./textinput.element-CkXNzMUg.js")).TextinputElement,
3624
+ timeInput: async () => (await import("./time.element-fK3oLi49.js")).TimeElement,
3625
+ timePicker: async () => (await import("./time-picker.element-CYZVXgRS.js")).TimePickerElement,
3626
+ dateTimeInput: async () => (await import("./date-time.element-Bv4XdzMi.js")).DateTimeElement,
3400
3627
  textarea: async () => (await import("./textarea.element-HThYqdR_.js")).TextareaElement,
3401
3628
  toggle: async () => (await import("./toggle.element-C1kCw5H8.js")).ToggleElement,
3402
3629
  checkbox: async () => (await import("./checkbox.element-CVskoXEc.js")).CheckboxElement,
3403
3630
  number: async () => (await import("./number.element-CBr47IiY.js")).NumberElement,
3404
3631
  radiogroup: async () => (await import("./radiogroup.element-CeQn623u.js")).RadiogroupElement,
3405
- select: async () => (await import("./select.element-jcDF1h-g.js")).SelectElement,
3406
- tags: async () => (await import("./tags.element-CX3vQL8L.js")).TagsElement,
3632
+ select: async () => (await import("./select.element-C0V-Bv3L.js")).SelectElement,
3633
+ tags: async () => (await import("./tags.element-DvwEpxpK.js")).TagsElement,
3407
3634
  // REPEATER
3408
3635
  repeater: async () => (await import("./repeater.element-CtNgB4F5.js")).RepeaterElement,
3409
3636
  // LAYOUTS
@@ -3416,12 +3643,12 @@ const Us = {
3416
3643
  markdownText: async () => (await import("./markdown-text.element-B8TfVLIO.js")).MarkdownTextElement,
3417
3644
  renderer: async () => (await import("./renderer.element-CNyMn2Lu.js")).RendererElement
3418
3645
  };
3419
- var js = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, V = (e, t, n, r) => {
3420
- for (var o = r > 1 ? void 0 : r ? Vs(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3421
- (i = e[s]) && (o = (r ? i(t, n, o) : i(o)) || o);
3422
- return r && o && js(t, n, o), o;
3646
+ var ja = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, V = (e, t, n, r) => {
3647
+ for (var o = r > 1 ? void 0 : r ? Va(t, n) : t, a = e.length - 1, i; a >= 0; a--)
3648
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
3649
+ return r && o && ja(t, n, o), o;
3423
3650
  };
3424
- let R = class extends Et {
3651
+ let x = class extends zt {
3425
3652
  constructor() {
3426
3653
  super(...arguments), this.autocomplete = void 0;
3427
3654
  }
@@ -3435,14 +3662,15 @@ let R = class extends Et {
3435
3662
  return this;
3436
3663
  }
3437
3664
  render() {
3438
- const e = this.config, t = On(e.formDef, e.formSelectors, e.formConfig), n = {
3665
+ const e = this.config, t = In(e.formDef, e.formSelectors, e.formConfig), n = {
3439
3666
  formDef: t.formDef,
3440
3667
  widgetLoaders: {
3441
- ...Us,
3668
+ ...Ua,
3442
3669
  ...t.widgetLoaders,
3443
3670
  ...e.customWidgetLoaders ?? {}
3444
3671
  },
3445
3672
  dependencies: { ...t.dependencies ?? {}, ...e.dependencies ?? {} },
3673
+ functions: { ...t.functions ?? {}, ...e.functions ?? {} },
3446
3674
  validateOn: e.validateOn ?? t.validateOn ?? "eager",
3447
3675
  itemRenderers: {
3448
3676
  ...t.itemRenderers ?? {},
@@ -3453,36 +3681,36 @@ let R = class extends Et {
3453
3681
  data: e.data,
3454
3682
  meta: e.meta,
3455
3683
  formName: e.formName
3456
- }, r = Ds({
3684
+ }, r = La({
3457
3685
  ...e.customValidators ?? {}
3458
- }), o = t.formEvent, s = o ? (i) => o(i.detail) : void 0;
3459
- return $t`
3686
+ }), o = t.formEvent, a = o ? (i) => o(i.detail) : void 0;
3687
+ return Pt`
3460
3688
  <gui-core-form
3461
3689
  .config=${n}
3462
3690
  .validators=${r}
3463
3691
  .autocomplete=${this.autocomplete}
3464
3692
  .formHealthBoundary=${this.formHealthBoundary}
3465
- @formEvent=${s}
3693
+ @formEvent=${a}
3466
3694
  ></gui-core-form>
3467
3695
  `;
3468
3696
  }
3469
3697
  };
3470
3698
  V([
3471
3699
  he({ attribute: !1 })
3472
- ], R.prototype, "config", 2);
3700
+ ], x.prototype, "config", 2);
3473
3701
  V([
3474
3702
  he({ type: String })
3475
- ], R.prototype, "autocomplete", 2);
3703
+ ], x.prototype, "autocomplete", 2);
3476
3704
  V([
3477
3705
  he({ attribute: !1 })
3478
- ], R.prototype, "formHealthBoundary", 2);
3706
+ ], x.prototype, "formHealthBoundary", 2);
3479
3707
  V([
3480
- Ot("gui-core-form")
3481
- ], R.prototype, "coreForm", 2);
3482
- R = V([
3483
- Zt("gui-form")
3484
- ], R);
3708
+ It("gui-core-form")
3709
+ ], x.prototype, "coreForm", 2);
3710
+ x = V([
3711
+ $t("gui-form")
3712
+ ], x);
3485
3713
  export {
3486
- R as FormElement,
3487
- Us as widgetLoaders
3714
+ x as FormElement,
3715
+ Ua as widgetLoaders
3488
3716
  };