pdyform 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/packages/core/dist/chunk-TP3IHKWV.js +69 -0
  3. package/packages/core/dist/{chunk-GQASS6PM.js → chunk-WEDHXOHH.js} +22 -0
  4. package/packages/core/dist/formState.cjs +187 -0
  5. package/packages/core/dist/formState.d.cts +17 -0
  6. package/packages/core/dist/formState.d.ts +17 -0
  7. package/packages/core/dist/formState.js +15 -0
  8. package/packages/core/dist/index.cjs +92 -2
  9. package/packages/core/dist/index.d.cts +2 -1
  10. package/packages/core/dist/index.d.ts +2 -1
  11. package/packages/core/dist/index.js +21 -3
  12. package/packages/core/dist/utils.cjs +27 -2
  13. package/packages/core/dist/utils.d.cts +4 -1
  14. package/packages/core/dist/utils.d.ts +4 -1
  15. package/packages/core/dist/utils.js +9 -3
  16. package/packages/core/node_modules/.vite/vitest/results.json +1 -1
  17. package/packages/core/src/formState.ts +79 -0
  18. package/packages/core/src/index.ts +1 -0
  19. package/packages/core/src/utils.ts +24 -0
  20. package/packages/core/test/formState.test.ts +71 -0
  21. package/packages/core/test/utils.test.ts +80 -1
  22. package/packages/core/tsup.config.ts +1 -1
  23. package/packages/react/dist/index.cjs +14 -43
  24. package/packages/react/dist/index.js +20 -43
  25. package/packages/react/node_modules/.vite/vitest/results.json +1 -1
  26. package/packages/react/src/DynamicForm.tsx +20 -44
  27. package/packages/react/src/components/InputRenderer.tsx +2 -6
  28. package/packages/vue/dist/index.js +5 -5
  29. package/packages/vue/dist/index.mjs +769 -787
  30. package/packages/vue/node_modules/.vite/vitest/results.json +1 -1
  31. package/packages/vue/src/DynamicForm.vue +18 -36
  32. package/packages/vue/src/components/InputRenderer.vue +2 -6
  33. package/packages/core/dist/parser.cjs +0 -1
  34. package/packages/core/dist/parser.d.cts +0 -2
  35. package/packages/core/dist/parser.d.ts +0 -2
  36. package/packages/core/dist/parser.js +0 -0
  37. package/packages/core/src/parser.ts +0 -0
@@ -1,39 +1,39 @@
1
1
  import * as yn from "vue";
2
- import { defineComponent as P, openBlock as k, createElementBlock as D, normalizeClass as ot, unref as f, createBlock as B, computed as O, ref as R, shallowRef as zn, watch as Z, getCurrentScope as Wn, onScopeDispose as jn, shallowReadonly as je, toRefs as Ae, withCtx as S, createVNode as N, renderSlot as M, getCurrentInstance as Ne, toRef as _o, camelize as qn, mergeProps as z, withKeys as Hn, withModifiers as be, Fragment as se, createCommentVNode as Y, renderList as rt, resolveDynamicComponent as Ht, onMounted as ae, createTextVNode as Le, useSlots as To, onBeforeMount as Io, toDisplayString as fe, normalizeProps as Ut, guardReactiveProps as Gt, Teleport as Kt, h as we, onBeforeUnmount as Un, toHandlerKey as Mo, nextTick as oe, onUnmounted as Xt, withDirectives as Vo, createElementVNode as ft, isRef as No, vModelSelect as Lo, watchEffect as le, inject as Gn, provide as Kn, Comment as Do, cloneVNode as Fo, markRaw as zo, onBeforeUpdate as Wo, onUpdated as jo, customRef as qo, reactive as Xn, normalizeStyle as Yt, watchPostEffect as Ho, mergeDefaults as Uo, effectScope as Yn, readonly as Go } from "vue";
3
- import { getDefaultValues as Ko, validateField as bn } from "pdyform/core";
4
- function Jn(e) {
2
+ import { defineComponent as P, openBlock as k, createElementBlock as D, normalizeClass as ot, unref as f, createBlock as B, computed as R, ref as O, shallowRef as Fn, watch as Z, getCurrentScope as zn, onScopeDispose as Wn, shallowReadonly as je, toRefs as Ae, withCtx as E, createVNode as N, renderSlot as M, getCurrentInstance as Ne, toRef as Bo, camelize as jn, mergeProps as z, withKeys as qn, withModifiers as be, Fragment as ie, createCommentVNode as Y, renderList as rt, resolveDynamicComponent as Ht, onMounted as de, createTextVNode as Le, useSlots as _o, onBeforeMount as To, toDisplayString as fe, normalizeProps as Ut, guardReactiveProps as Gt, Teleport as Kt, h as we, onBeforeUnmount as Hn, toHandlerKey as Io, nextTick as oe, onUnmounted as Xt, withDirectives as Mo, createElementVNode as ft, isRef as Vo, vModelSelect as No, watchEffect as le, inject as Un, provide as Gn, Comment as Lo, cloneVNode as Do, markRaw as Fo, onBeforeUpdate as zo, onUpdated as Wo, customRef as jo, reactive as Kn, normalizeStyle as Yt, watchPostEffect as qo, mergeDefaults as Ho, effectScope as Xn, readonly as Uo } from "vue";
3
+ import { normalizeFieldValue as Go, createFormRuntimeState as Ko, applyFieldChange as Xo, setSubmitting as Yo, runSubmitValidation as Jo } from "pdyform/core";
4
+ function Yn(e) {
5
5
  var t, n, o = "";
6
6
  if (typeof e == "string" || typeof e == "number") o += e;
7
7
  else if (typeof e == "object") if (Array.isArray(e)) {
8
8
  var r = e.length;
9
- for (t = 0; t < r; t++) e[t] && (n = Jn(e[t])) && (o && (o += " "), o += n);
9
+ for (t = 0; t < r; t++) e[t] && (n = Yn(e[t])) && (o && (o += " "), o += n);
10
10
  } else for (n in e) e[n] && (o && (o += " "), o += n);
11
11
  return o;
12
12
  }
13
- function Xo() {
14
- for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = Jn(e)) && (o && (o += " "), o += t);
13
+ function Qo() {
14
+ for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = Yn(e)) && (o && (o += " "), o += t);
15
15
  return o;
16
16
  }
17
- const Jt = "-", Yo = (e) => {
18
- const t = Qo(e), {
17
+ const Jt = "-", Zo = (e) => {
18
+ const t = tr(e), {
19
19
  conflictingClassGroups: n,
20
20
  conflictingClassGroupModifiers: o
21
21
  } = e;
22
22
  return {
23
23
  getClassGroupId: (a) => {
24
24
  const i = a.split(Jt);
25
- return i[0] === "" && i.length !== 1 && i.shift(), Qn(i, t) || Jo(a);
25
+ return i[0] === "" && i.length !== 1 && i.shift(), Jn(i, t) || er(a);
26
26
  },
27
27
  getConflictingClassGroupIds: (a, i) => {
28
28
  const d = n[a] || [];
29
29
  return i && o[a] ? [...d, ...o[a]] : d;
30
30
  }
31
31
  };
32
- }, Qn = (e, t) => {
32
+ }, Jn = (e, t) => {
33
33
  var a;
34
34
  if (e.length === 0)
35
35
  return t.classGroupId;
36
- const n = e[0], o = t.nextPart.get(n), r = o ? Qn(e.slice(1), o) : void 0;
36
+ const n = e[0], o = t.nextPart.get(n), r = o ? Jn(e.slice(1), o) : void 0;
37
37
  if (r)
38
38
  return r;
39
39
  if (t.validators.length === 0)
@@ -42,13 +42,13 @@ const Jt = "-", Yo = (e) => {
42
42
  return (a = t.validators.find(({
43
43
  validator: i
44
44
  }) => i(l))) == null ? void 0 : a.classGroupId;
45
- }, wn = /^\[(.+)\]$/, Jo = (e) => {
46
- if (wn.test(e)) {
47
- const t = wn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
45
+ }, bn = /^\[(.+)\]$/, er = (e) => {
46
+ if (bn.test(e)) {
47
+ const t = bn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
48
48
  if (n)
49
49
  return "arbitrary.." + n;
50
50
  }
51
- }, Qo = (e) => {
51
+ }, tr = (e) => {
52
52
  const {
53
53
  theme: t,
54
54
  prefix: n
@@ -56,18 +56,18 @@ const Jt = "-", Yo = (e) => {
56
56
  nextPart: /* @__PURE__ */ new Map(),
57
57
  validators: []
58
58
  };
59
- return er(Object.entries(e.classGroups), n).forEach(([l, a]) => {
59
+ return or(Object.entries(e.classGroups), n).forEach(([l, a]) => {
60
60
  Lt(a, o, l, t);
61
61
  }), o;
62
62
  }, Lt = (e, t, n, o) => {
63
63
  e.forEach((r) => {
64
64
  if (typeof r == "string") {
65
- const l = r === "" ? t : xn(t, r);
65
+ const l = r === "" ? t : wn(t, r);
66
66
  l.classGroupId = n;
67
67
  return;
68
68
  }
69
69
  if (typeof r == "function") {
70
- if (Zo(r)) {
70
+ if (nr(r)) {
71
71
  Lt(r(o), t, n, o);
72
72
  return;
73
73
  }
@@ -78,10 +78,10 @@ const Jt = "-", Yo = (e) => {
78
78
  return;
79
79
  }
80
80
  Object.entries(r).forEach(([l, a]) => {
81
- Lt(a, xn(t, l), n, o);
81
+ Lt(a, wn(t, l), n, o);
82
82
  });
83
83
  });
84
- }, xn = (e, t) => {
84
+ }, wn = (e, t) => {
85
85
  let n = e;
86
86
  return t.split(Jt).forEach((o) => {
87
87
  n.nextPart.has(o) || n.nextPart.set(o, {
@@ -89,10 +89,10 @@ const Jt = "-", Yo = (e) => {
89
89
  validators: []
90
90
  }), n = n.nextPart.get(o);
91
91
  }), n;
92
- }, Zo = (e) => e.isThemeGetter, er = (e, t) => t ? e.map(([n, o]) => {
92
+ }, nr = (e) => e.isThemeGetter, or = (e, t) => t ? e.map(([n, o]) => {
93
93
  const r = o.map((l) => typeof l == "string" ? t + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([a, i]) => [t + a, i])) : l);
94
94
  return [n, r];
95
- }) : e, tr = (e) => {
95
+ }) : e, rr = (e) => {
96
96
  if (e < 1)
97
97
  return {
98
98
  get: () => {
@@ -116,7 +116,7 @@ const Jt = "-", Yo = (e) => {
116
116
  n.has(l) ? n.set(l, a) : r(l, a);
117
117
  }
118
118
  };
119
- }, Zn = "!", nr = (e) => {
119
+ }, Qn = "!", lr = (e) => {
120
120
  const {
121
121
  separator: t,
122
122
  experimentalParseClassName: n
@@ -137,7 +137,7 @@ const Jt = "-", Yo = (e) => {
137
137
  }
138
138
  y === "[" ? c++ : y === "]" && c--;
139
139
  }
140
- const m = d.length === 0 ? i : i.substring(s), p = m.startsWith(Zn), v = p ? m.substring(1) : m, g = u && u > s ? u - s : void 0;
140
+ const m = d.length === 0 ? i : i.substring(s), p = m.startsWith(Qn), v = p ? m.substring(1) : m, g = u && u > s ? u - s : void 0;
141
141
  return {
142
142
  modifiers: d,
143
143
  hasImportantModifier: p,
@@ -149,7 +149,7 @@ const Jt = "-", Yo = (e) => {
149
149
  className: i,
150
150
  parseClassName: a
151
151
  }) : a;
152
- }, or = (e) => {
152
+ }, ar = (e) => {
153
153
  if (e.length <= 1)
154
154
  return e;
155
155
  const t = [];
@@ -157,16 +157,16 @@ const Jt = "-", Yo = (e) => {
157
157
  return e.forEach((o) => {
158
158
  o[0] === "[" ? (t.push(...n.sort(), o), n = []) : n.push(o);
159
159
  }), t.push(...n.sort()), t;
160
- }, rr = (e) => ({
161
- cache: tr(e.cacheSize),
162
- parseClassName: nr(e),
163
- ...Yo(e)
164
- }), lr = /\s+/, ar = (e, t) => {
160
+ }, ir = (e) => ({
161
+ cache: rr(e.cacheSize),
162
+ parseClassName: lr(e),
163
+ ...Zo(e)
164
+ }), sr = /\s+/, ur = (e, t) => {
165
165
  const {
166
166
  parseClassName: n,
167
167
  getClassGroupId: o,
168
168
  getConflictingClassGroupIds: r
169
- } = t, l = [], a = e.trim().split(lr);
169
+ } = t, l = [], a = e.trim().split(sr);
170
170
  let i = "";
171
171
  for (let d = a.length - 1; d >= 0; d -= 1) {
172
172
  const c = a[d], {
@@ -187,7 +187,7 @@ const Jt = "-", Yo = (e) => {
187
187
  }
188
188
  v = !1;
189
189
  }
190
- const h = or(s).join(":"), y = u ? h + Zn : h, w = y + g;
190
+ const h = ar(s).join(":"), y = u ? h + Qn : h, w = y + g;
191
191
  if (l.includes(w))
192
192
  continue;
193
193
  l.push(w);
@@ -200,56 +200,56 @@ const Jt = "-", Yo = (e) => {
200
200
  }
201
201
  return i;
202
202
  };
203
- function ir() {
203
+ function dr() {
204
204
  let e = 0, t, n, o = "";
205
205
  for (; e < arguments.length; )
206
- (t = arguments[e++]) && (n = eo(t)) && (o && (o += " "), o += n);
206
+ (t = arguments[e++]) && (n = Zn(t)) && (o && (o += " "), o += n);
207
207
  return o;
208
208
  }
209
- const eo = (e) => {
209
+ const Zn = (e) => {
210
210
  if (typeof e == "string")
211
211
  return e;
212
212
  let t, n = "";
213
213
  for (let o = 0; o < e.length; o++)
214
- e[o] && (t = eo(e[o])) && (n && (n += " "), n += t);
214
+ e[o] && (t = Zn(e[o])) && (n && (n += " "), n += t);
215
215
  return n;
216
216
  };
217
- function sr(e, ...t) {
217
+ function cr(e, ...t) {
218
218
  let n, o, r, l = a;
219
219
  function a(d) {
220
220
  const c = t.reduce((s, u) => u(s), e());
221
- return n = rr(c), o = n.cache.get, r = n.cache.set, l = i, i(d);
221
+ return n = ir(c), o = n.cache.get, r = n.cache.set, l = i, i(d);
222
222
  }
223
223
  function i(d) {
224
224
  const c = o(d);
225
225
  if (c)
226
226
  return c;
227
- const s = ar(d, n);
227
+ const s = ur(d, n);
228
228
  return r(d, s), s;
229
229
  }
230
230
  return function() {
231
- return l(ir.apply(null, arguments));
231
+ return l(dr.apply(null, arguments));
232
232
  };
233
233
  }
234
234
  const F = (e) => {
235
235
  const t = (n) => n[e] || [];
236
236
  return t.isThemeGetter = !0, t;
237
- }, to = /^\[(?:([a-z-]+):)?(.+)\]$/i, ur = /^\d+\/\d+$/, dr = /* @__PURE__ */ new Set(["px", "full", "screen"]), cr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, pr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, mr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Ge(e) || dr.has(e) || ur.test(e), Se = (e) => Je(e, "length", Ar), Ge = (e) => !!e && !Number.isNaN(Number(e)), $t = (e) => Je(e, "number", Ge), et = (e) => !!e && Number.isInteger(Number(e)), hr = (e) => e.endsWith("%") && Ge(e.slice(0, -1)), I = (e) => to.test(e), Re = (e) => cr.test(e), gr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), yr = (e) => Je(e, gr, no), br = (e) => Je(e, "position", no), wr = /* @__PURE__ */ new Set(["image", "url"]), xr = (e) => Je(e, wr, Er), Cr = (e) => Je(e, "", kr), tt = () => !0, Je = (e, t, n) => {
238
- const o = to.exec(e);
237
+ }, eo = /^\[(?:([a-z-]+):)?(.+)\]$/i, fr = /^\d+\/\d+$/, pr = /* @__PURE__ */ new Set(["px", "full", "screen"]), mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, hr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, gr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Ge(e) || pr.has(e) || fr.test(e), Ee = (e) => Je(e, "length", Er), Ge = (e) => !!e && !Number.isNaN(Number(e)), $t = (e) => Je(e, "number", Ge), et = (e) => !!e && Number.isInteger(Number(e)), br = (e) => e.endsWith("%") && Ge(e.slice(0, -1)), I = (e) => eo.test(e), Re = (e) => mr.test(e), wr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), xr = (e) => Je(e, wr, to), Cr = (e) => Je(e, "position", to), Ar = /* @__PURE__ */ new Set(["image", "url"]), kr = (e) => Je(e, Ar, Or), Sr = (e) => Je(e, "", Rr), tt = () => !0, Je = (e, t, n) => {
238
+ const o = eo.exec(e);
239
239
  return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1;
240
- }, Ar = (e) => (
240
+ }, Er = (e) => (
241
241
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
242
242
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
243
243
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
244
- fr.test(e) && !pr.test(e)
245
- ), no = () => !1, kr = (e) => mr.test(e), Er = (e) => vr.test(e), Sr = () => {
246
- const e = F("colors"), t = F("spacing"), n = F("blur"), o = F("brightness"), r = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), i = F("borderWidth"), d = F("contrast"), c = F("grayscale"), s = F("hueRotate"), u = F("invert"), m = F("gap"), p = F("gradientColorStops"), v = F("gradientColorStopPositions"), g = F("inset"), h = F("margin"), y = F("opacity"), w = F("padding"), b = F("saturate"), C = F("scale"), x = F("sepia"), E = F("skew"), A = F("space"), T = F("translate"), V = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", I, t], _ = () => [I, t], H = () => ["", ge, Se], L = () => ["auto", Ge, I], J = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", I], We = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Q = () => [Ge, I];
244
+ vr.test(e) && !hr.test(e)
245
+ ), to = () => !1, Rr = (e) => gr.test(e), Or = (e) => yr.test(e), Pr = () => {
246
+ const e = F("colors"), t = F("spacing"), n = F("blur"), o = F("brightness"), r = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), i = F("borderWidth"), d = F("contrast"), c = F("grayscale"), s = F("hueRotate"), u = F("invert"), m = F("gap"), p = F("gradientColorStops"), v = F("gradientColorStopPositions"), g = F("inset"), h = F("margin"), y = F("opacity"), w = F("padding"), b = F("saturate"), C = F("scale"), x = F("sepia"), S = F("skew"), A = F("space"), T = F("translate"), V = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", I, t], _ = () => [I, t], H = () => ["", ge, Ee], L = () => ["auto", Ge, I], J = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", I], We = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Q = () => [Ge, I];
247
247
  return {
248
248
  cacheSize: 500,
249
249
  separator: ":",
250
250
  theme: {
251
251
  colors: [tt],
252
- spacing: [ge, Se],
252
+ spacing: [ge, Ee],
253
253
  blur: ["none", "", Re, I],
254
254
  brightness: Q(),
255
255
  borderColor: [e],
@@ -262,7 +262,7 @@ const F = (e) => {
262
262
  invert: X(),
263
263
  gap: _(),
264
264
  gradientColorStops: [e],
265
- gradientColorStopPositions: [hr, Se],
265
+ gradientColorStopPositions: [br, Ee],
266
266
  inset: W(),
267
267
  margin: W(),
268
268
  opacity: Q(),
@@ -914,7 +914,7 @@ const F = (e) => {
914
914
  * @see https://tailwindcss.com/docs/font-size
915
915
  */
916
916
  "font-size": [{
917
- text: ["base", Re, Se]
917
+ text: ["base", Re, Ee]
918
918
  }],
919
919
  /**
920
920
  * Font Smoothing
@@ -1065,7 +1065,7 @@ const F = (e) => {
1065
1065
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1066
1066
  */
1067
1067
  "text-decoration-thickness": [{
1068
- decoration: ["auto", "from-font", ge, Se]
1068
+ decoration: ["auto", "from-font", ge, Ee]
1069
1069
  }],
1070
1070
  /**
1071
1071
  * Text Underline Offset
@@ -1175,7 +1175,7 @@ const F = (e) => {
1175
1175
  * @see https://tailwindcss.com/docs/background-position
1176
1176
  */
1177
1177
  "bg-position": [{
1178
- bg: [...J(), br]
1178
+ bg: [...J(), Cr]
1179
1179
  }],
1180
1180
  /**
1181
1181
  * Background Repeat
@@ -1191,7 +1191,7 @@ const F = (e) => {
1191
1191
  * @see https://tailwindcss.com/docs/background-size
1192
1192
  */
1193
1193
  "bg-size": [{
1194
- bg: ["auto", "cover", "contain", yr]
1194
+ bg: ["auto", "cover", "contain", xr]
1195
1195
  }],
1196
1196
  /**
1197
1197
  * Background Image
@@ -1200,7 +1200,7 @@ const F = (e) => {
1200
1200
  "bg-image": [{
1201
1201
  bg: ["none", {
1202
1202
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1203
- }, xr]
1203
+ }, kr]
1204
1204
  }],
1205
1205
  /**
1206
1206
  * Background Color
@@ -1561,7 +1561,7 @@ const F = (e) => {
1561
1561
  * @see https://tailwindcss.com/docs/outline-width
1562
1562
  */
1563
1563
  "outline-w": [{
1564
- outline: [ge, Se]
1564
+ outline: [ge, Ee]
1565
1565
  }],
1566
1566
  /**
1567
1567
  * Outline Color
@@ -1601,7 +1601,7 @@ const F = (e) => {
1601
1601
  * @see https://tailwindcss.com/docs/ring-offset-width
1602
1602
  */
1603
1603
  "ring-offset-w": [{
1604
- "ring-offset": [ge, Se]
1604
+ "ring-offset": [ge, Ee]
1605
1605
  }],
1606
1606
  /**
1607
1607
  * Ring Offset Color
@@ -1616,7 +1616,7 @@ const F = (e) => {
1616
1616
  * @see https://tailwindcss.com/docs/box-shadow
1617
1617
  */
1618
1618
  shadow: [{
1619
- shadow: ["", "inner", "none", Re, Cr]
1619
+ shadow: ["", "inner", "none", Re, Sr]
1620
1620
  }],
1621
1621
  /**
1622
1622
  * Box Shadow Color
@@ -1923,14 +1923,14 @@ const F = (e) => {
1923
1923
  * @see https://tailwindcss.com/docs/skew
1924
1924
  */
1925
1925
  "skew-x": [{
1926
- "skew-x": [E]
1926
+ "skew-x": [S]
1927
1927
  }],
1928
1928
  /**
1929
1929
  * Skew Y
1930
1930
  * @see https://tailwindcss.com/docs/skew
1931
1931
  */
1932
1932
  "skew-y": [{
1933
- "skew-y": [E]
1933
+ "skew-y": [S]
1934
1934
  }],
1935
1935
  /**
1936
1936
  * Transform Origin
@@ -2196,7 +2196,7 @@ const F = (e) => {
2196
2196
  * @see https://tailwindcss.com/docs/stroke-width
2197
2197
  */
2198
2198
  "stroke-w": [{
2199
- stroke: [ge, Se, $t]
2199
+ stroke: [ge, Ee, $t]
2200
2200
  }],
2201
2201
  /**
2202
2202
  * Stroke
@@ -2271,11 +2271,11 @@ const F = (e) => {
2271
2271
  "font-size": ["leading"]
2272
2272
  }
2273
2273
  };
2274
- }, Rr = /* @__PURE__ */ sr(Sr);
2274
+ }, $r = /* @__PURE__ */ cr(Pr);
2275
2275
  function me(...e) {
2276
- return Rr(Xo(e));
2276
+ return $r(Qo(e));
2277
2277
  }
2278
- const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2278
+ const Br = ["type", "value"], _r = /* @__PURE__ */ P({
2279
2279
  __name: "Input",
2280
2280
  props: {
2281
2281
  class: {},
@@ -2291,7 +2291,7 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2291
2291
  value: e.modelValue,
2292
2292
  onInput: l[0] || (l[0] = (a) => o("update:modelValue", a.target.value)),
2293
2293
  onBlur: l[1] || (l[1] = (a) => o("blur", a))
2294
- }, null, 42, Or));
2294
+ }, null, 42, Br));
2295
2295
  }
2296
2296
  }), He = /* @__PURE__ */ P({
2297
2297
  __name: "InputRenderer",
@@ -2303,13 +2303,9 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2303
2303
  emits: ["update:modelValue"],
2304
2304
  setup(e, { emit: t }) {
2305
2305
  const n = e, o = t, r = (l) => {
2306
- if (n.field.type !== "number") {
2307
- o("update:modelValue", l);
2308
- return;
2309
- }
2310
- o("update:modelValue", l === "" ? "" : Number(l));
2306
+ o("update:modelValue", Go(n.field, l));
2311
2307
  };
2312
- return (l, a) => (k(), B(Pr, {
2308
+ return (l, a) => (k(), B(_r, {
2313
2309
  id: e.fieldId,
2314
2310
  type: e.field.type,
2315
2311
  placeholder: e.field.placeholder,
@@ -2319,7 +2315,7 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2319
2315
  "onUpdate:modelValue": r
2320
2316
  }, null, 8, ["id", "type", "placeholder", "disabled", "name", "modelValue"]));
2321
2317
  }
2322
- }), $r = ["value"], Br = /* @__PURE__ */ P({
2318
+ }), Tr = ["value"], Ir = /* @__PURE__ */ P({
2323
2319
  __name: "Textarea",
2324
2320
  props: {
2325
2321
  class: {},
@@ -2333,9 +2329,9 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2333
2329
  value: e.modelValue,
2334
2330
  onInput: l[0] || (l[0] = (a) => o("update:modelValue", a.target.value)),
2335
2331
  onBlur: l[1] || (l[1] = (a) => o("blur", a))
2336
- }, null, 42, $r));
2332
+ }, null, 42, Tr));
2337
2333
  }
2338
- }), _r = /* @__PURE__ */ P({
2334
+ }), Mr = /* @__PURE__ */ P({
2339
2335
  __name: "TextareaRenderer",
2340
2336
  props: {
2341
2337
  field: {},
@@ -2345,7 +2341,7 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2345
2341
  emits: ["update:modelValue"],
2346
2342
  setup(e, { emit: t }) {
2347
2343
  const n = t;
2348
- return (o, r) => (k(), B(Br, {
2344
+ return (o, r) => (k(), B(Ir, {
2349
2345
  id: e.fieldId,
2350
2346
  placeholder: e.field.placeholder,
2351
2347
  disabled: e.field.disabled,
@@ -2354,10 +2350,10 @@ const Or = ["type", "value"], Pr = /* @__PURE__ */ P({
2354
2350
  "onUpdate:modelValue": r[0] || (r[0] = (l) => n("update:modelValue", l))
2355
2351
  }, null, 8, ["id", "placeholder", "disabled", "name", "modelValue"]));
2356
2352
  }
2357
- }), Tr = ["top", "right", "bottom", "left"], Pe = Math.min, ee = Math.max, pt = Math.round, it = Math.floor, pe = (e) => ({
2353
+ }), Vr = ["top", "right", "bottom", "left"], Pe = Math.min, ee = Math.max, pt = Math.round, it = Math.floor, pe = (e) => ({
2358
2354
  x: e,
2359
2355
  y: e
2360
- }), Ir = {
2356
+ }), Nr = {
2361
2357
  left: "right",
2362
2358
  right: "left",
2363
2359
  bottom: "top",
@@ -2388,42 +2384,42 @@ function ce(e) {
2388
2384
  function en(e) {
2389
2385
  return Qt(ce(e));
2390
2386
  }
2391
- function Mr(e, t, n) {
2387
+ function Lr(e, t, n) {
2392
2388
  n === void 0 && (n = !1);
2393
2389
  const o = Qe(e), r = en(e), l = Zt(r);
2394
2390
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
2395
2391
  return t.reference[l] > t.floating[l] && (a = mt(a)), [a, mt(a)];
2396
2392
  }
2397
- function Vr(e) {
2393
+ function Dr(e) {
2398
2394
  const t = mt(e);
2399
2395
  return [Ft(e), t, Ft(t)];
2400
2396
  }
2401
2397
  function Ft(e) {
2402
2398
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
2403
2399
  }
2404
- const Cn = ["left", "right"], An = ["right", "left"], Nr = ["top", "bottom"], Lr = ["bottom", "top"];
2405
- function Dr(e, t, n) {
2400
+ const xn = ["left", "right"], Cn = ["right", "left"], Fr = ["top", "bottom"], zr = ["bottom", "top"];
2401
+ function Wr(e, t, n) {
2406
2402
  switch (e) {
2407
2403
  case "top":
2408
2404
  case "bottom":
2409
- return n ? t ? An : Cn : t ? Cn : An;
2405
+ return n ? t ? Cn : xn : t ? xn : Cn;
2410
2406
  case "left":
2411
2407
  case "right":
2412
- return t ? Nr : Lr;
2408
+ return t ? Fr : zr;
2413
2409
  default:
2414
2410
  return [];
2415
2411
  }
2416
2412
  }
2417
- function Fr(e, t, n, o) {
2413
+ function jr(e, t, n, o) {
2418
2414
  const r = Qe(e);
2419
- let l = Dr(Ce(e), n === "start", o);
2415
+ let l = Wr(Ce(e), n === "start", o);
2420
2416
  return r && (l = l.map((a) => a + "-" + r), t && (l = l.concat(l.map(Ft)))), l;
2421
2417
  }
2422
2418
  function mt(e) {
2423
2419
  const t = Ce(e);
2424
- return Ir[t] + e.slice(t.length);
2420
+ return Nr[t] + e.slice(t.length);
2425
2421
  }
2426
- function zr(e) {
2422
+ function qr(e) {
2427
2423
  return {
2428
2424
  top: 0,
2429
2425
  right: 0,
@@ -2432,8 +2428,8 @@ function zr(e) {
2432
2428
  ...e
2433
2429
  };
2434
2430
  }
2435
- function oo(e) {
2436
- return typeof e != "number" ? zr(e) : {
2431
+ function no(e) {
2432
+ return typeof e != "number" ? qr(e) : {
2437
2433
  top: e,
2438
2434
  right: e,
2439
2435
  bottom: e,
@@ -2458,7 +2454,7 @@ function vt(e) {
2458
2454
  y: n
2459
2455
  };
2460
2456
  }
2461
- function kn(e, t, n) {
2457
+ function An(e, t, n) {
2462
2458
  let {
2463
2459
  reference: o,
2464
2460
  floating: r
@@ -2506,7 +2502,7 @@ function kn(e, t, n) {
2506
2502
  }
2507
2503
  return p;
2508
2504
  }
2509
- async function Wr(e, t) {
2505
+ async function Hr(e, t) {
2510
2506
  var n;
2511
2507
  t === void 0 && (t = {});
2512
2508
  const {
@@ -2522,7 +2518,7 @@ async function Wr(e, t) {
2522
2518
  elementContext: u = "floating",
2523
2519
  altBoundary: m = !1,
2524
2520
  padding: p = 0
2525
- } = xe(t, e), v = oo(p), h = i[m ? u === "floating" ? "reference" : "floating" : u], y = vt(await l.getClippingRect({
2521
+ } = xe(t, e), v = no(p), h = i[m ? u === "floating" ? "reference" : "floating" : u], y = vt(await l.getClippingRect({
2526
2522
  element: (n = await (l.isElement == null ? void 0 : l.isElement(h))) == null || n ? h : h.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(i.floating)),
2527
2523
  boundary: c,
2528
2524
  rootBoundary: s,
@@ -2551,7 +2547,7 @@ async function Wr(e, t) {
2551
2547
  right: (x.right - y.right + v.right) / C.x
2552
2548
  };
2553
2549
  }
2554
- const jr = 50, qr = async (e, t, n) => {
2550
+ const Ur = 50, Gr = async (e, t, n) => {
2555
2551
  const {
2556
2552
  placement: o = "bottom",
2557
2553
  strategy: r = "absolute",
@@ -2559,7 +2555,7 @@ const jr = 50, qr = async (e, t, n) => {
2559
2555
  platform: a
2560
2556
  } = n, i = a.detectOverflow ? a : {
2561
2557
  ...a,
2562
- detectOverflow: Wr
2558
+ detectOverflow: Hr
2563
2559
  }, d = await (a.isRTL == null ? void 0 : a.isRTL(t));
2564
2560
  let c = await a.getElementRects({
2565
2561
  reference: e,
@@ -2568,7 +2564,7 @@ const jr = 50, qr = async (e, t, n) => {
2568
2564
  }), {
2569
2565
  x: s,
2570
2566
  y: u
2571
- } = kn(c, o, d), m = o, p = 0;
2567
+ } = An(c, o, d), m = o, p = 0;
2572
2568
  const v = {};
2573
2569
  for (let g = 0; g < l.length; g++) {
2574
2570
  const h = l[g];
@@ -2581,7 +2577,7 @@ const jr = 50, qr = async (e, t, n) => {
2581
2577
  x: b,
2582
2578
  y: C,
2583
2579
  data: x,
2584
- reset: E
2580
+ reset: S
2585
2581
  } = await w({
2586
2582
  x: s,
2587
2583
  y: u,
@@ -2599,14 +2595,14 @@ const jr = 50, qr = async (e, t, n) => {
2599
2595
  s = b ?? s, u = C ?? u, v[y] = {
2600
2596
  ...v[y],
2601
2597
  ...x
2602
- }, E && p < jr && (p++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (c = E.rects === !0 ? await a.getElementRects({
2598
+ }, S && p < Ur && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await a.getElementRects({
2603
2599
  reference: e,
2604
2600
  floating: t,
2605
2601
  strategy: r
2606
- }) : E.rects), {
2602
+ }) : S.rects), {
2607
2603
  x: s,
2608
2604
  y: u
2609
- } = kn(c, m, d)), g = -1);
2605
+ } = An(c, m, d)), g = -1);
2610
2606
  }
2611
2607
  return {
2612
2608
  x: s,
@@ -2615,7 +2611,7 @@ const jr = 50, qr = async (e, t, n) => {
2615
2611
  strategy: r,
2616
2612
  middlewareData: v
2617
2613
  };
2618
- }, Hr = (e) => ({
2614
+ }, Kr = (e) => ({
2619
2615
  name: "arrow",
2620
2616
  options: e,
2621
2617
  async fn(t) {
@@ -2633,12 +2629,12 @@ const jr = 50, qr = async (e, t, n) => {
2633
2629
  } = xe(e, t) || {};
2634
2630
  if (c == null)
2635
2631
  return {};
2636
- const u = oo(s), m = {
2632
+ const u = no(s), m = {
2637
2633
  x: n,
2638
2634
  y: o
2639
- }, p = en(r), v = Zt(p), g = await a.getDimensions(c), h = p === "y", y = h ? "top" : "left", w = h ? "bottom" : "right", b = h ? "clientHeight" : "clientWidth", C = l.reference[v] + l.reference[p] - m[p] - l.floating[v], x = m[p] - l.reference[p], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
2640
- let A = E ? E[b] : 0;
2641
- (!A || !await (a.isElement == null ? void 0 : a.isElement(E))) && (A = i.floating[b] || l.floating[v]);
2635
+ }, p = en(r), v = Zt(p), g = await a.getDimensions(c), h = p === "y", y = h ? "top" : "left", w = h ? "bottom" : "right", b = h ? "clientHeight" : "clientWidth", C = l.reference[v] + l.reference[p] - m[p] - l.floating[v], x = m[p] - l.reference[p], S = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
2636
+ let A = S ? S[b] : 0;
2637
+ (!A || !await (a.isElement == null ? void 0 : a.isElement(S))) && (A = i.floating[b] || l.floating[v]);
2642
2638
  const T = C / 2 - x / 2, V = A / 2 - g[v] / 2 - 1, $ = Pe(u[y], V), W = Pe(u[w], V), _ = $, H = A - g[v] - W, L = A / 2 - g[v] / 2 + T, J = Dt(_, L, H), j = !d.arrow && Qe(r) != null && L !== J && l.reference[v] / 2 - (L < _ ? $ : W) - g[v] / 2 < 0, K = j ? L < _ ? L - _ : L - H : 0;
2643
2639
  return {
2644
2640
  [p]: m[p] + K,
@@ -2652,7 +2648,7 @@ const jr = 50, qr = async (e, t, n) => {
2652
2648
  reset: j
2653
2649
  };
2654
2650
  }
2655
- }), Ur = function(e) {
2651
+ }), Xr = function(e) {
2656
2652
  return e === void 0 && (e = {}), {
2657
2653
  name: "flip",
2658
2654
  options: e,
@@ -2676,12 +2672,12 @@ const jr = 50, qr = async (e, t, n) => {
2676
2672
  } = xe(e, t);
2677
2673
  if ((n = l.arrow) != null && n.alignmentOffset)
2678
2674
  return {};
2679
- const y = Ce(r), w = ce(i), b = Ce(i) === i, C = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), x = m || (b || !g ? [mt(i)] : Vr(i)), E = v !== "none";
2680
- !m && E && x.push(...Fr(i, g, v, C));
2675
+ const y = Ce(r), w = ce(i), b = Ce(i) === i, C = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), x = m || (b || !g ? [mt(i)] : Dr(i)), S = v !== "none";
2676
+ !m && S && x.push(...jr(i, g, v, C));
2681
2677
  const A = [i, ...x], T = await d.detectOverflow(t, h), V = [];
2682
2678
  let $ = ((o = l.flip) == null ? void 0 : o.overflows) || [];
2683
2679
  if (s && V.push(T[y]), u) {
2684
- const L = Mr(r, a, C);
2680
+ const L = Lr(r, a, C);
2685
2681
  V.push(T[L[0]], T[L[1]]);
2686
2682
  }
2687
2683
  if ($ = [...$, {
@@ -2708,7 +2704,7 @@ const jr = 50, qr = async (e, t, n) => {
2708
2704
  case "bestFit": {
2709
2705
  var H;
2710
2706
  const K = (H = $.filter((U) => {
2711
- if (E) {
2707
+ if (S) {
2712
2708
  const X = ce(U.placement);
2713
2709
  return X === w || // Create a bias to the `y` side axis due to horizontal
2714
2710
  // reading directions favoring greater width.
@@ -2734,7 +2730,7 @@ const jr = 50, qr = async (e, t, n) => {
2734
2730
  }
2735
2731
  };
2736
2732
  };
2737
- function En(e, t) {
2733
+ function kn(e, t) {
2738
2734
  return {
2739
2735
  top: e.top - t.height,
2740
2736
  right: e.right - t.width,
@@ -2743,9 +2739,9 @@ function En(e, t) {
2743
2739
  };
2744
2740
  }
2745
2741
  function Sn(e) {
2746
- return Tr.some((t) => e[t] >= 0);
2742
+ return Vr.some((t) => e[t] >= 0);
2747
2743
  }
2748
- const Gr = function(e) {
2744
+ const Yr = function(e) {
2749
2745
  return e === void 0 && (e = {}), {
2750
2746
  name: "hide",
2751
2747
  options: e,
@@ -2762,7 +2758,7 @@ const Gr = function(e) {
2762
2758
  const a = await o.detectOverflow(t, {
2763
2759
  ...l,
2764
2760
  elementContext: "reference"
2765
- }), i = En(a, n.reference);
2761
+ }), i = kn(a, n.reference);
2766
2762
  return {
2767
2763
  data: {
2768
2764
  referenceHiddenOffsets: i,
@@ -2774,7 +2770,7 @@ const Gr = function(e) {
2774
2770
  const a = await o.detectOverflow(t, {
2775
2771
  ...l,
2776
2772
  altBoundary: !0
2777
- }), i = En(a, n.floating);
2773
+ }), i = kn(a, n.floating);
2778
2774
  return {
2779
2775
  data: {
2780
2776
  escapedOffsets: i,
@@ -2787,13 +2783,13 @@ const Gr = function(e) {
2787
2783
  }
2788
2784
  }
2789
2785
  };
2790
- }, ro = /* @__PURE__ */ new Set(["left", "top"]);
2791
- async function Kr(e, t) {
2786
+ }, oo = /* @__PURE__ */ new Set(["left", "top"]);
2787
+ async function Jr(e, t) {
2792
2788
  const {
2793
2789
  placement: n,
2794
2790
  platform: o,
2795
2791
  elements: r
2796
- } = e, l = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ce(n), i = Qe(n), d = ce(n) === "y", c = ro.has(a) ? -1 : 1, s = l && d ? -1 : 1, u = xe(t, e);
2792
+ } = e, l = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ce(n), i = Qe(n), d = ce(n) === "y", c = oo.has(a) ? -1 : 1, s = l && d ? -1 : 1, u = xe(t, e);
2797
2793
  let {
2798
2794
  mainAxis: m,
2799
2795
  crossAxis: p,
@@ -2815,7 +2811,7 @@ async function Kr(e, t) {
2815
2811
  y: p * s
2816
2812
  };
2817
2813
  }
2818
- const Xr = function(e) {
2814
+ const Qr = function(e) {
2819
2815
  return e === void 0 && (e = 0), {
2820
2816
  name: "offset",
2821
2817
  options: e,
@@ -2826,7 +2822,7 @@ const Xr = function(e) {
2826
2822
  y: l,
2827
2823
  placement: a,
2828
2824
  middlewareData: i
2829
- } = t, d = await Kr(t, e);
2825
+ } = t, d = await Jr(t, e);
2830
2826
  return a === ((n = i.offset) == null ? void 0 : n.placement) && (o = i.arrow) != null && o.alignmentOffset ? {} : {
2831
2827
  x: r + d.x,
2832
2828
  y: l + d.y,
@@ -2837,7 +2833,7 @@ const Xr = function(e) {
2837
2833
  };
2838
2834
  }
2839
2835
  };
2840
- }, Yr = function(e) {
2836
+ }, Zr = function(e) {
2841
2837
  return e === void 0 && (e = {}), {
2842
2838
  name: "shift",
2843
2839
  options: e,
@@ -2894,7 +2890,7 @@ const Xr = function(e) {
2894
2890
  };
2895
2891
  }
2896
2892
  };
2897
- }, Jr = function(e) {
2893
+ }, el = function(e) {
2898
2894
  return e === void 0 && (e = {}), {
2899
2895
  options: e,
2900
2896
  fn(t) {
@@ -2927,8 +2923,8 @@ const Xr = function(e) {
2927
2923
  }
2928
2924
  if (c) {
2929
2925
  var y, w;
2930
- const b = m === "y" ? "width" : "height", C = ro.has(Ce(r)), x = l.reference[u] - l.floating[b] + (C && ((y = a.offset) == null ? void 0 : y[u]) || 0) + (C ? 0 : h.crossAxis), E = l.reference[u] + l.reference[b] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[u]) || 0) - (C ? h.crossAxis : 0);
2931
- v < x ? v = x : v > E && (v = E);
2926
+ const b = m === "y" ? "width" : "height", C = oo.has(Ce(r)), x = l.reference[u] - l.floating[b] + (C && ((y = a.offset) == null ? void 0 : y[u]) || 0) + (C ? 0 : h.crossAxis), S = l.reference[u] + l.reference[b] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[u]) || 0) - (C ? h.crossAxis : 0);
2927
+ v < x ? v = x : v > S && (v = S);
2932
2928
  }
2933
2929
  return {
2934
2930
  [m]: p,
@@ -2936,7 +2932,7 @@ const Xr = function(e) {
2936
2932
  };
2937
2933
  }
2938
2934
  };
2939
- }, Qr = function(e) {
2935
+ }, tl = function(e) {
2940
2936
  return e === void 0 && (e = {}), {
2941
2937
  name: "size",
2942
2938
  options: e,
@@ -2957,9 +2953,9 @@ const Xr = function(e) {
2957
2953
  } = l.floating;
2958
2954
  let h, y;
2959
2955
  u === "top" || u === "bottom" ? (h = u, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = u, h = m === "end" ? "top" : "bottom");
2960
- const w = g - s.top - s.bottom, b = v - s.left - s.right, C = Pe(g - s[h], w), x = Pe(v - s[y], b), E = !t.middlewareData.shift;
2956
+ const w = g - s.top - s.bottom, b = v - s.left - s.right, C = Pe(g - s[h], w), x = Pe(v - s[y], b), S = !t.middlewareData.shift;
2961
2957
  let A = C, T = x;
2962
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = b), (o = t.middlewareData.shift) != null && o.enabled.y && (A = w), E && !m) {
2958
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = b), (o = t.middlewareData.shift) != null && o.enabled.y && (A = w), S && !m) {
2963
2959
  const $ = ee(s.left, 0), W = ee(s.right, 0), _ = ee(s.top, 0), H = ee(s.bottom, 0);
2964
2960
  p ? T = v - 2 * ($ !== 0 || W !== 0 ? $ + W : ee(s.left, s.right)) : A = g - 2 * (_ !== 0 || H !== 0 ? _ + H : ee(s.top, s.bottom));
2965
2961
  }
@@ -2994,13 +2990,13 @@ function ve(e) {
2994
2990
  function tn(e) {
2995
2991
  return yt() ? e instanceof Node || e instanceof te(e).Node : !1;
2996
2992
  }
2997
- function ue(e) {
2993
+ function se(e) {
2998
2994
  return yt() ? e instanceof Element || e instanceof te(e).Element : !1;
2999
2995
  }
3000
2996
  function ke(e) {
3001
2997
  return yt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3002
2998
  }
3003
- function Rn(e) {
2999
+ function En(e) {
3004
3000
  return !yt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
3005
3001
  }
3006
3002
  function lt(e) {
@@ -3009,10 +3005,10 @@ function lt(e) {
3009
3005
  overflowX: n,
3010
3006
  overflowY: o,
3011
3007
  display: r
3012
- } = de(e);
3008
+ } = ue(e);
3013
3009
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && r !== "inline" && r !== "contents";
3014
3010
  }
3015
- function Zr(e) {
3011
+ function nl(e) {
3016
3012
  return /^(table|td|th)$/.test(De(e));
3017
3013
  }
3018
3014
  function bt(e) {
@@ -3027,13 +3023,13 @@ function bt(e) {
3027
3023
  return !1;
3028
3024
  }
3029
3025
  }
3030
- const el = /transform|translate|scale|rotate|perspective|filter/, tl = /paint|layout|strict|content/, Ie = (e) => !!e && e !== "none";
3026
+ const ol = /transform|translate|scale|rotate|perspective|filter/, rl = /paint|layout|strict|content/, Ie = (e) => !!e && e !== "none";
3031
3027
  let Bt;
3032
3028
  function nn(e) {
3033
- const t = ue(e) ? de(e) : e;
3034
- return Ie(t.transform) || Ie(t.translate) || Ie(t.scale) || Ie(t.rotate) || Ie(t.perspective) || !on() && (Ie(t.backdropFilter) || Ie(t.filter)) || el.test(t.willChange || "") || tl.test(t.contain || "");
3029
+ const t = se(e) ? ue(e) : e;
3030
+ return Ie(t.transform) || Ie(t.translate) || Ie(t.scale) || Ie(t.rotate) || Ie(t.perspective) || !on() && (Ie(t.backdropFilter) || Ie(t.filter)) || ol.test(t.willChange || "") || rl.test(t.contain || "");
3035
3031
  }
3036
- function nl(e) {
3032
+ function ll(e) {
3037
3033
  let t = $e(e);
3038
3034
  for (; ke(t) && !Xe(t); ) {
3039
3035
  if (nn(t))
@@ -3050,11 +3046,11 @@ function on() {
3050
3046
  function Xe(e) {
3051
3047
  return /^(html|body|#document)$/.test(De(e));
3052
3048
  }
3053
- function de(e) {
3049
+ function ue(e) {
3054
3050
  return te(e).getComputedStyle(e);
3055
3051
  }
3056
3052
  function wt(e) {
3057
- return ue(e) ? {
3053
+ return se(e) ? {
3058
3054
  scrollLeft: e.scrollLeft,
3059
3055
  scrollTop: e.scrollTop
3060
3056
  } : {
@@ -3069,19 +3065,19 @@ function $e(e) {
3069
3065
  // Step into the shadow DOM of the parent of a slotted node.
3070
3066
  e.assignedSlot || // DOM Element detected.
3071
3067
  e.parentNode || // ShadowRoot detected.
3072
- Rn(e) && e.host || // Fallback.
3068
+ En(e) && e.host || // Fallback.
3073
3069
  ve(e)
3074
3070
  );
3075
- return Rn(t) ? t.host : t;
3071
+ return En(t) ? t.host : t;
3076
3072
  }
3077
- function lo(e) {
3073
+ function ro(e) {
3078
3074
  const t = $e(e);
3079
- return Xe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ke(t) && lt(t) ? t : lo(t);
3075
+ return Xe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ke(t) && lt(t) ? t : ro(t);
3080
3076
  }
3081
3077
  function nt(e, t, n) {
3082
3078
  var o;
3083
3079
  t === void 0 && (t = []), n === void 0 && (n = !0);
3084
- const r = lo(e), l = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = te(r);
3080
+ const r = ro(e), l = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = te(r);
3085
3081
  if (l) {
3086
3082
  const i = zt(a);
3087
3083
  return t.concat(a, a.visualViewport || [], lt(r) ? r : [], i && n ? nt(i) : []);
@@ -3091,8 +3087,8 @@ function nt(e, t, n) {
3091
3087
  function zt(e) {
3092
3088
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3093
3089
  }
3094
- function ao(e) {
3095
- const t = de(e);
3090
+ function lo(e) {
3091
+ const t = ue(e);
3096
3092
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
3097
3093
  const r = ke(e), l = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = pt(n) !== l || pt(o) !== a;
3098
3094
  return i && (n = l, o = a), {
@@ -3102,7 +3098,7 @@ function ao(e) {
3102
3098
  };
3103
3099
  }
3104
3100
  function rn(e) {
3105
- return ue(e) ? e : e.contextElement;
3101
+ return se(e) ? e : e.contextElement;
3106
3102
  }
3107
3103
  function Ke(e) {
3108
3104
  const t = rn(e);
@@ -3112,36 +3108,36 @@ function Ke(e) {
3112
3108
  width: o,
3113
3109
  height: r,
3114
3110
  $: l
3115
- } = ao(t);
3111
+ } = lo(t);
3116
3112
  let a = (l ? pt(n.width) : n.width) / o, i = (l ? pt(n.height) : n.height) / r;
3117
3113
  return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
3118
3114
  x: a,
3119
3115
  y: i
3120
3116
  };
3121
3117
  }
3122
- const ol = /* @__PURE__ */ pe(0);
3123
- function io(e) {
3118
+ const al = /* @__PURE__ */ pe(0);
3119
+ function ao(e) {
3124
3120
  const t = te(e);
3125
- return !on() || !t.visualViewport ? ol : {
3121
+ return !on() || !t.visualViewport ? al : {
3126
3122
  x: t.visualViewport.offsetLeft,
3127
3123
  y: t.visualViewport.offsetTop
3128
3124
  };
3129
3125
  }
3130
- function rl(e, t, n) {
3126
+ function il(e, t, n) {
3131
3127
  return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
3132
3128
  }
3133
3129
  function Ve(e, t, n, o) {
3134
3130
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3135
3131
  const r = e.getBoundingClientRect(), l = rn(e);
3136
3132
  let a = pe(1);
3137
- t && (o ? ue(o) && (a = Ke(o)) : a = Ke(e));
3138
- const i = rl(l, n, o) ? io(l) : pe(0);
3133
+ t && (o ? se(o) && (a = Ke(o)) : a = Ke(e));
3134
+ const i = il(l, n, o) ? ao(l) : pe(0);
3139
3135
  let d = (r.left + i.x) / a.x, c = (r.top + i.y) / a.y, s = r.width / a.x, u = r.height / a.y;
3140
3136
  if (l) {
3141
- const m = te(l), p = o && ue(o) ? te(o) : o;
3137
+ const m = te(l), p = o && se(o) ? te(o) : o;
3142
3138
  let v = m, g = zt(v);
3143
3139
  for (; g && o && p !== v; ) {
3144
- const h = Ke(g), y = g.getBoundingClientRect(), w = de(g), b = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * h.y;
3140
+ const h = Ke(g), y = g.getBoundingClientRect(), w = ue(g), b = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * h.y;
3145
3141
  d *= h.x, c *= h.y, s *= h.x, u *= h.y, d += b, c += C, v = te(g), g = zt(v);
3146
3142
  }
3147
3143
  }
@@ -3156,14 +3152,14 @@ function xt(e, t) {
3156
3152
  const n = wt(e).scrollLeft;
3157
3153
  return t ? t.left + n : Ve(ve(e)).left + n;
3158
3154
  }
3159
- function so(e, t) {
3155
+ function io(e, t) {
3160
3156
  const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - xt(e, n), r = n.top + t.scrollTop;
3161
3157
  return {
3162
3158
  x: o,
3163
3159
  y: r
3164
3160
  };
3165
3161
  }
3166
- function ll(e) {
3162
+ function sl(e) {
3167
3163
  let {
3168
3164
  elements: t,
3169
3165
  rect: n,
@@ -3182,7 +3178,7 @@ function ll(e) {
3182
3178
  const p = Ve(o);
3183
3179
  c = Ke(o), s.x = p.x + o.clientLeft, s.y = p.y + o.clientTop;
3184
3180
  }
3185
- const m = a && !u && !l ? so(a, d) : pe(0);
3181
+ const m = a && !u && !l ? io(a, d) : pe(0);
3186
3182
  return {
3187
3183
  width: n.width * c.x,
3188
3184
  height: n.height * c.y,
@@ -3190,22 +3186,22 @@ function ll(e) {
3190
3186
  y: n.y * c.y - d.scrollTop * c.y + s.y + m.y
3191
3187
  };
3192
3188
  }
3193
- function al(e) {
3189
+ function ul(e) {
3194
3190
  return Array.from(e.getClientRects());
3195
3191
  }
3196
- function il(e) {
3192
+ function dl(e) {
3197
3193
  const t = ve(e), n = wt(e), o = e.ownerDocument.body, r = ee(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), l = ee(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
3198
3194
  let a = -n.scrollLeft + xt(e);
3199
3195
  const i = -n.scrollTop;
3200
- return de(o).direction === "rtl" && (a += ee(t.clientWidth, o.clientWidth) - r), {
3196
+ return ue(o).direction === "rtl" && (a += ee(t.clientWidth, o.clientWidth) - r), {
3201
3197
  width: r,
3202
3198
  height: l,
3203
3199
  x: a,
3204
3200
  y: i
3205
3201
  };
3206
3202
  }
3207
- const On = 25;
3208
- function sl(e, t) {
3203
+ const Rn = 25;
3204
+ function cl(e, t) {
3209
3205
  const n = te(e), o = ve(e), r = n.visualViewport;
3210
3206
  let l = o.clientWidth, a = o.clientHeight, i = 0, d = 0;
3211
3207
  if (r) {
@@ -3216,8 +3212,8 @@ function sl(e, t) {
3216
3212
  const c = xt(o);
3217
3213
  if (c <= 0) {
3218
3214
  const s = o.ownerDocument, u = s.body, m = getComputedStyle(u), p = s.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(o.clientWidth - u.clientWidth - p);
3219
- v <= On && (l -= v);
3220
- } else c <= On && (l += c);
3215
+ v <= Rn && (l -= v);
3216
+ } else c <= Rn && (l += c);
3221
3217
  return {
3222
3218
  width: l,
3223
3219
  height: a,
@@ -3225,7 +3221,7 @@ function sl(e, t) {
3225
3221
  y: d
3226
3222
  };
3227
3223
  }
3228
- function ul(e, t) {
3224
+ function fl(e, t) {
3229
3225
  const n = Ve(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, l = ke(e) ? Ke(e) : pe(1), a = e.clientWidth * l.x, i = e.clientHeight * l.y, d = r * l.x, c = o * l.y;
3230
3226
  return {
3231
3227
  width: a,
@@ -3234,16 +3230,16 @@ function ul(e, t) {
3234
3230
  y: c
3235
3231
  };
3236
3232
  }
3237
- function Pn(e, t, n) {
3233
+ function On(e, t, n) {
3238
3234
  let o;
3239
3235
  if (t === "viewport")
3240
- o = sl(e, n);
3236
+ o = cl(e, n);
3241
3237
  else if (t === "document")
3242
- o = il(ve(e));
3243
- else if (ue(t))
3244
- o = ul(t, n);
3238
+ o = dl(ve(e));
3239
+ else if (se(t))
3240
+ o = fl(t, n);
3245
3241
  else {
3246
- const r = io(e);
3242
+ const r = ao(e);
3247
3243
  o = {
3248
3244
  x: t.x - r.x,
3249
3245
  y: t.y - r.y,
@@ -3253,34 +3249,34 @@ function Pn(e, t, n) {
3253
3249
  }
3254
3250
  return vt(o);
3255
3251
  }
3256
- function uo(e, t) {
3252
+ function so(e, t) {
3257
3253
  const n = $e(e);
3258
- return n === t || !ue(n) || Xe(n) ? !1 : de(n).position === "fixed" || uo(n, t);
3254
+ return n === t || !se(n) || Xe(n) ? !1 : ue(n).position === "fixed" || so(n, t);
3259
3255
  }
3260
- function dl(e, t) {
3256
+ function pl(e, t) {
3261
3257
  const n = t.get(e);
3262
3258
  if (n)
3263
3259
  return n;
3264
- let o = nt(e, [], !1).filter((i) => ue(i) && De(i) !== "body"), r = null;
3265
- const l = de(e).position === "fixed";
3260
+ let o = nt(e, [], !1).filter((i) => se(i) && De(i) !== "body"), r = null;
3261
+ const l = ue(e).position === "fixed";
3266
3262
  let a = l ? $e(e) : e;
3267
- for (; ue(a) && !Xe(a); ) {
3268
- const i = de(a), d = nn(a);
3269
- !d && i.position === "fixed" && (r = null), (l ? !d && !r : !d && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || lt(a) && !d && uo(e, a)) ? o = o.filter((s) => s !== a) : r = i, a = $e(a);
3263
+ for (; se(a) && !Xe(a); ) {
3264
+ const i = ue(a), d = nn(a);
3265
+ !d && i.position === "fixed" && (r = null), (l ? !d && !r : !d && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || lt(a) && !d && so(e, a)) ? o = o.filter((s) => s !== a) : r = i, a = $e(a);
3270
3266
  }
3271
3267
  return t.set(e, o), o;
3272
3268
  }
3273
- function cl(e) {
3269
+ function ml(e) {
3274
3270
  let {
3275
3271
  element: t,
3276
3272
  boundary: n,
3277
3273
  rootBoundary: o,
3278
3274
  strategy: r
3279
3275
  } = e;
3280
- const a = [...n === "clippingAncestors" ? bt(t) ? [] : dl(t, this._c) : [].concat(n), o], i = Pn(t, a[0], r);
3276
+ const a = [...n === "clippingAncestors" ? bt(t) ? [] : pl(t, this._c) : [].concat(n), o], i = On(t, a[0], r);
3281
3277
  let d = i.top, c = i.right, s = i.bottom, u = i.left;
3282
3278
  for (let m = 1; m < a.length; m++) {
3283
- const p = Pn(t, a[m], r);
3279
+ const p = On(t, a[m], r);
3284
3280
  d = ee(p.top, d), c = Pe(p.right, c), s = Pe(p.bottom, s), u = ee(p.left, u);
3285
3281
  }
3286
3282
  return {
@@ -3290,17 +3286,17 @@ function cl(e) {
3290
3286
  y: d
3291
3287
  };
3292
3288
  }
3293
- function fl(e) {
3289
+ function vl(e) {
3294
3290
  const {
3295
3291
  width: t,
3296
3292
  height: n
3297
- } = ao(e);
3293
+ } = lo(e);
3298
3294
  return {
3299
3295
  width: t,
3300
3296
  height: n
3301
3297
  };
3302
3298
  }
3303
- function pl(e, t, n) {
3299
+ function hl(e, t, n) {
3304
3300
  const o = ke(t), r = ve(t), l = n === "fixed", a = Ve(e, !0, l, t);
3305
3301
  let i = {
3306
3302
  scrollLeft: 0,
@@ -3316,7 +3312,7 @@ function pl(e, t, n) {
3316
3312
  d.x = p.x + t.clientLeft, d.y = p.y + t.clientTop;
3317
3313
  } else r && c();
3318
3314
  l && !o && r && c();
3319
- const s = r && !o && !l ? so(r, i) : pe(0), u = a.left + i.scrollLeft - d.x - s.x, m = a.top + i.scrollTop - d.y - s.y;
3315
+ const s = r && !o && !l ? io(r, i) : pe(0), u = a.left + i.scrollLeft - d.x - s.x, m = a.top + i.scrollTop - d.y - s.y;
3320
3316
  return {
3321
3317
  x: u,
3322
3318
  y: m,
@@ -3325,38 +3321,38 @@ function pl(e, t, n) {
3325
3321
  };
3326
3322
  }
3327
3323
  function _t(e) {
3328
- return de(e).position === "static";
3324
+ return ue(e).position === "static";
3329
3325
  }
3330
- function $n(e, t) {
3331
- if (!ke(e) || de(e).position === "fixed")
3326
+ function Pn(e, t) {
3327
+ if (!ke(e) || ue(e).position === "fixed")
3332
3328
  return null;
3333
3329
  if (t)
3334
3330
  return t(e);
3335
3331
  let n = e.offsetParent;
3336
3332
  return ve(e) === n && (n = n.ownerDocument.body), n;
3337
3333
  }
3338
- function co(e, t) {
3334
+ function uo(e, t) {
3339
3335
  const n = te(e);
3340
3336
  if (bt(e))
3341
3337
  return n;
3342
3338
  if (!ke(e)) {
3343
3339
  let r = $e(e);
3344
3340
  for (; r && !Xe(r); ) {
3345
- if (ue(r) && !_t(r))
3341
+ if (se(r) && !_t(r))
3346
3342
  return r;
3347
3343
  r = $e(r);
3348
3344
  }
3349
3345
  return n;
3350
3346
  }
3351
- let o = $n(e, t);
3352
- for (; o && Zr(o) && _t(o); )
3353
- o = $n(o, t);
3354
- return o && Xe(o) && _t(o) && !nn(o) ? n : o || nl(e) || n;
3347
+ let o = Pn(e, t);
3348
+ for (; o && nl(o) && _t(o); )
3349
+ o = Pn(o, t);
3350
+ return o && Xe(o) && _t(o) && !nn(o) ? n : o || ll(e) || n;
3355
3351
  }
3356
- const ml = async function(e) {
3357
- const t = this.getOffsetParent || co, n = this.getDimensions, o = await n(e.floating);
3352
+ const gl = async function(e) {
3353
+ const t = this.getOffsetParent || uo, n = this.getDimensions, o = await n(e.floating);
3358
3354
  return {
3359
- reference: pl(e.reference, await t(e.floating), e.strategy),
3355
+ reference: hl(e.reference, await t(e.floating), e.strategy),
3360
3356
  floating: {
3361
3357
  x: 0,
3362
3358
  y: 0,
@@ -3365,25 +3361,25 @@ const ml = async function(e) {
3365
3361
  }
3366
3362
  };
3367
3363
  };
3368
- function vl(e) {
3369
- return de(e).direction === "rtl";
3364
+ function yl(e) {
3365
+ return ue(e).direction === "rtl";
3370
3366
  }
3371
- const hl = {
3372
- convertOffsetParentRelativeRectToViewportRelativeRect: ll,
3367
+ const bl = {
3368
+ convertOffsetParentRelativeRectToViewportRelativeRect: sl,
3373
3369
  getDocumentElement: ve,
3374
- getClippingRect: cl,
3375
- getOffsetParent: co,
3376
- getElementRects: ml,
3377
- getClientRects: al,
3378
- getDimensions: fl,
3370
+ getClippingRect: ml,
3371
+ getOffsetParent: uo,
3372
+ getElementRects: gl,
3373
+ getClientRects: ul,
3374
+ getDimensions: vl,
3379
3375
  getScale: Ke,
3380
- isElement: ue,
3381
- isRTL: vl
3376
+ isElement: se,
3377
+ isRTL: yl
3382
3378
  };
3383
- function fo(e, t) {
3379
+ function co(e, t) {
3384
3380
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3385
3381
  }
3386
- function gl(e, t) {
3382
+ function wl(e, t) {
3387
3383
  let n = null, o;
3388
3384
  const r = ve(e);
3389
3385
  function l() {
@@ -3405,8 +3401,8 @@ function gl(e, t) {
3405
3401
  threshold: ee(0, Pe(1, d)) || 1
3406
3402
  };
3407
3403
  let C = !0;
3408
- function x(E) {
3409
- const A = E[0].intersectionRatio;
3404
+ function x(S) {
3405
+ const A = S[0].intersectionRatio;
3410
3406
  if (A !== d) {
3411
3407
  if (!C)
3412
3408
  return a();
@@ -3414,7 +3410,7 @@ function gl(e, t) {
3414
3410
  a(!1, 1e-7);
3415
3411
  }, 1e3);
3416
3412
  }
3417
- A === 1 && !fo(c, e.getBoundingClientRect()) && a(), C = !1;
3413
+ A === 1 && !co(c, e.getBoundingClientRect()) && a(), C = !1;
3418
3414
  }
3419
3415
  try {
3420
3416
  n = new IntersectionObserver(x, {
@@ -3429,7 +3425,7 @@ function gl(e, t) {
3429
3425
  }
3430
3426
  return a(!0), l;
3431
3427
  }
3432
- function yl(e, t, n, o) {
3428
+ function xl(e, t, n, o) {
3433
3429
  o === void 0 && (o = {});
3434
3430
  const {
3435
3431
  ancestorScroll: r = !0,
@@ -3443,7 +3439,7 @@ function yl(e, t, n, o) {
3443
3439
  passive: !0
3444
3440
  }), l && y.addEventListener("resize", n);
3445
3441
  });
3446
- const u = c && i ? gl(c, n) : null;
3442
+ const u = c && i ? wl(c, n) : null;
3447
3443
  let m = -1, p = null;
3448
3444
  a && (p = new ResizeObserver((y) => {
3449
3445
  let [w] = y;
@@ -3456,7 +3452,7 @@ function yl(e, t, n, o) {
3456
3452
  d && h();
3457
3453
  function h() {
3458
3454
  const y = Ve(e);
3459
- g && !fo(g, y) && n(), g = y, v = requestAnimationFrame(h);
3455
+ g && !co(g, y) && n(), g = y, v = requestAnimationFrame(h);
3460
3456
  }
3461
3457
  return n(), () => {
3462
3458
  var y;
@@ -3465,24 +3461,24 @@ function yl(e, t, n, o) {
3465
3461
  }), u == null || u(), (y = p) == null || y.disconnect(), p = null, d && cancelAnimationFrame(v);
3466
3462
  };
3467
3463
  }
3468
- const bl = Xr, wl = Yr, Bn = Ur, xl = Qr, Cl = Gr, Al = Hr, kl = Jr, El = (e, t, n) => {
3464
+ const Cl = Qr, Al = Zr, $n = Xr, kl = tl, Sl = Yr, El = Kr, Rl = el, Ol = (e, t, n) => {
3469
3465
  const o = /* @__PURE__ */ new Map(), r = {
3470
- platform: hl,
3466
+ platform: bl,
3471
3467
  ...n
3472
3468
  }, l = {
3473
3469
  ...r.platform,
3474
3470
  _c: o
3475
3471
  };
3476
- return qr(e, t, {
3472
+ return Gr(e, t, {
3477
3473
  ...r,
3478
3474
  platform: l
3479
3475
  });
3480
3476
  };
3481
- function Sl(e) {
3477
+ function Pl(e) {
3482
3478
  return e != null && typeof e == "object" && "$el" in e;
3483
3479
  }
3484
3480
  function Wt(e) {
3485
- if (Sl(e)) {
3481
+ if (Pl(e)) {
3486
3482
  const t = e.$el;
3487
3483
  return tn(t) && De(t) === "#comment" ? null : t;
3488
3484
  }
@@ -3491,41 +3487,41 @@ function Wt(e) {
3491
3487
  function Ue(e) {
3492
3488
  return typeof e == "function" ? e() : f(e);
3493
3489
  }
3494
- function Rl(e) {
3490
+ function $l(e) {
3495
3491
  return {
3496
3492
  name: "arrow",
3497
3493
  options: e,
3498
3494
  fn(t) {
3499
3495
  const n = Wt(Ue(e.element));
3500
- return n == null ? {} : Al({
3496
+ return n == null ? {} : El({
3501
3497
  element: n,
3502
3498
  padding: e.padding
3503
3499
  }).fn(t);
3504
3500
  }
3505
3501
  };
3506
3502
  }
3507
- function po(e) {
3503
+ function fo(e) {
3508
3504
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3509
3505
  }
3510
- function _n(e, t) {
3511
- const n = po(e);
3506
+ function Bn(e, t) {
3507
+ const n = fo(e);
3512
3508
  return Math.round(t * n) / n;
3513
3509
  }
3514
- function Ol(e, t, n) {
3510
+ function Bl(e, t, n) {
3515
3511
  n === void 0 && (n = {});
3516
- const o = n.whileElementsMounted, r = O(() => {
3512
+ const o = n.whileElementsMounted, r = R(() => {
3517
3513
  var A;
3518
3514
  return (A = Ue(n.open)) != null ? A : !0;
3519
- }), l = O(() => Ue(n.middleware)), a = O(() => {
3515
+ }), l = R(() => Ue(n.middleware)), a = R(() => {
3520
3516
  var A;
3521
3517
  return (A = Ue(n.placement)) != null ? A : "bottom";
3522
- }), i = O(() => {
3518
+ }), i = R(() => {
3523
3519
  var A;
3524
3520
  return (A = Ue(n.strategy)) != null ? A : "absolute";
3525
- }), d = O(() => {
3521
+ }), d = R(() => {
3526
3522
  var A;
3527
3523
  return (A = Ue(n.transform)) != null ? A : !0;
3528
- }), c = O(() => Wt(e.value)), s = O(() => Wt(t.value)), u = R(0), m = R(0), p = R(i.value), v = R(a.value), g = zn({}), h = R(!1), y = O(() => {
3524
+ }), c = R(() => Wt(e.value)), s = R(() => Wt(t.value)), u = O(0), m = O(0), p = O(i.value), v = O(a.value), g = Fn({}), h = O(!1), y = R(() => {
3529
3525
  const A = {
3530
3526
  position: p.value,
3531
3527
  left: "0",
@@ -3533,11 +3529,11 @@ function Ol(e, t, n) {
3533
3529
  };
3534
3530
  if (!s.value)
3535
3531
  return A;
3536
- const T = _n(s.value, u.value), V = _n(s.value, m.value);
3532
+ const T = Bn(s.value, u.value), V = Bn(s.value, m.value);
3537
3533
  return d.value ? {
3538
3534
  ...A,
3539
3535
  transform: "translate(" + T + "px, " + V + "px)",
3540
- ...po(s.value) >= 1.5 && {
3536
+ ...fo(s.value) >= 1.5 && {
3541
3537
  willChange: "transform"
3542
3538
  }
3543
3539
  } : {
@@ -3551,7 +3547,7 @@ function Ol(e, t, n) {
3551
3547
  if (c.value == null || s.value == null)
3552
3548
  return;
3553
3549
  const A = r.value;
3554
- El(c.value, s.value, {
3550
+ Ol(c.value, s.value, {
3555
3551
  middleware: l.value,
3556
3552
  placement: a.value,
3557
3553
  strategy: i.value
@@ -3572,16 +3568,16 @@ function Ol(e, t, n) {
3572
3568
  return;
3573
3569
  }
3574
3570
  }
3575
- function E() {
3571
+ function S() {
3576
3572
  r.value || (h.value = !1);
3577
3573
  }
3578
3574
  return Z([l, a, i, r], b, {
3579
3575
  flush: "sync"
3580
3576
  }), Z([c, s], x, {
3581
3577
  flush: "sync"
3582
- }), Z(r, E, {
3578
+ }), Z(r, S, {
3583
3579
  flush: "sync"
3584
- }), Wn() && jn(C), {
3580
+ }), zn() && Wn(C), {
3585
3581
  x: je(u),
3586
3582
  y: je(m),
3587
3583
  strategy: je(p),
@@ -3595,7 +3591,7 @@ function Ol(e, t, n) {
3595
3591
  function ne(e, t) {
3596
3592
  const n = typeof e == "string" && !t ? `${e}Context` : t, o = Symbol(n);
3597
3593
  return [(r) => {
3598
- const l = Gn(o, r);
3594
+ const l = Un(o, r);
3599
3595
  if (l || l === null)
3600
3596
  return l;
3601
3597
  throw new Error(
@@ -3603,9 +3599,9 @@ function ne(e, t) {
3603
3599
  ", "
3604
3600
  )}` : `\`${e}\``}`
3605
3601
  );
3606
- }, (r) => (Kn(o, r), r)];
3602
+ }, (r) => (Gn(o, r), r)];
3607
3603
  }
3608
- function mo(e, t, n) {
3604
+ function po(e, t, n) {
3609
3605
  const o = n.originalEvent.target, r = new CustomEvent(e, {
3610
3606
  bubbles: !1,
3611
3607
  cancelable: !0,
@@ -3613,53 +3609,53 @@ function mo(e, t, n) {
3613
3609
  });
3614
3610
  t && o.addEventListener(e, t, { once: !0 }), o.dispatchEvent(r);
3615
3611
  }
3616
- function Tn(e, t = Number.NEGATIVE_INFINITY, n = Number.POSITIVE_INFINITY) {
3612
+ function _n(e, t = Number.NEGATIVE_INFINITY, n = Number.POSITIVE_INFINITY) {
3617
3613
  return Math.min(n, Math.max(t, e));
3618
3614
  }
3619
- function Pl(e) {
3615
+ function _l(e) {
3620
3616
  return e == null;
3621
3617
  }
3622
- function $l(e, t) {
3618
+ function Tl(e, t) {
3623
3619
  var n;
3624
- const o = zn();
3620
+ const o = Fn();
3625
3621
  return le(() => {
3626
3622
  o.value = e();
3627
3623
  }, {
3628
3624
  ...t,
3629
3625
  flush: (n = void 0) != null ? n : "sync"
3630
- }), Go(o);
3626
+ }), Uo(o);
3631
3627
  }
3632
3628
  function ln(e) {
3633
- return Wn() ? (jn(e), !0) : !1;
3629
+ return zn() ? (Wn(e), !0) : !1;
3634
3630
  }
3635
- function Bl(e) {
3631
+ function Il(e) {
3636
3632
  let t = !1, n;
3637
- const o = Yn(!0);
3633
+ const o = Xn(!0);
3638
3634
  return (...r) => (t || (n = o.run(() => e(...r)), t = !0), n);
3639
3635
  }
3640
- function _l(e) {
3636
+ function Ml(e) {
3641
3637
  let t = 0, n, o;
3642
3638
  const r = () => {
3643
3639
  t -= 1, o && t <= 0 && (o.stop(), n = void 0, o = void 0);
3644
3640
  };
3645
- return (...l) => (t += 1, n || (o = Yn(!0), n = o.run(() => e(...l))), ln(r), n);
3641
+ return (...l) => (t += 1, n || (o = Xn(!0), n = o.run(() => e(...l))), ln(r), n);
3646
3642
  }
3647
3643
  function Me(e) {
3648
3644
  return typeof e == "function" ? e() : f(e);
3649
3645
  }
3650
3646
  const Be = typeof window < "u" && typeof document < "u";
3651
3647
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3652
- const Tl = (e) => typeof e < "u", Il = Object.prototype.toString, Ml = (e) => Il.call(e) === "[object Object]", Vl = () => {
3653
- }, In = /* @__PURE__ */ Nl();
3654
- function Nl() {
3648
+ const Vl = (e) => typeof e < "u", Nl = Object.prototype.toString, Ll = (e) => Nl.call(e) === "[object Object]", Dl = () => {
3649
+ }, Tn = /* @__PURE__ */ Fl();
3650
+ function Fl() {
3655
3651
  var e, t;
3656
3652
  return Be && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
3657
3653
  }
3658
- function Ll(e) {
3654
+ function zl(e) {
3659
3655
  return Ne();
3660
3656
  }
3661
- function Dl(e, t = 1e4) {
3662
- return qo((n, o) => {
3657
+ function Wl(e, t = 1e4) {
3658
+ return jo((n, o) => {
3663
3659
  let r = Me(e), l;
3664
3660
  const a = () => setTimeout(() => {
3665
3661
  r = Me(e), o();
@@ -3676,10 +3672,10 @@ function Dl(e, t = 1e4) {
3676
3672
  };
3677
3673
  });
3678
3674
  }
3679
- function Fl(e, t) {
3680
- Ll() && Un(e, t);
3675
+ function jl(e, t) {
3676
+ zl() && Hn(e, t);
3681
3677
  }
3682
- function Ee(e) {
3678
+ function Se(e) {
3683
3679
  var t;
3684
3680
  const n = Me(e);
3685
3681
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
@@ -3688,16 +3684,16 @@ const an = Be ? window : void 0;
3688
3684
  function ht(...e) {
3689
3685
  let t, n, o, r;
3690
3686
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = an) : [t, n, o, r] = e, !t)
3691
- return Vl;
3687
+ return Dl;
3692
3688
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3693
3689
  const l = [], a = () => {
3694
3690
  l.forEach((s) => s()), l.length = 0;
3695
3691
  }, i = (s, u, m, p) => (s.addEventListener(u, m, p), () => s.removeEventListener(u, m, p)), d = Z(
3696
- () => [Ee(t), Me(r)],
3692
+ () => [Se(t), Me(r)],
3697
3693
  ([s, u]) => {
3698
3694
  if (a(), !s)
3699
3695
  return;
3700
- const m = Ml(u) ? { ...u } : u;
3696
+ const m = Ll(u) ? { ...u } : u;
3701
3697
  l.push(
3702
3698
  ...n.flatMap((p) => o.map((v) => i(s, p, v, m)))
3703
3699
  );
@@ -3708,10 +3704,10 @@ function ht(...e) {
3708
3704
  };
3709
3705
  return ln(c), c;
3710
3706
  }
3711
- function zl(e) {
3707
+ function ql(e) {
3712
3708
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
3713
3709
  }
3714
- function Wl(...e) {
3710
+ function Hl(...e) {
3715
3711
  let t, n, o = {};
3716
3712
  e.length === 3 ? (t = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], o = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
3717
3713
  const {
@@ -3719,18 +3715,18 @@ function Wl(...e) {
3719
3715
  eventName: l = "keydown",
3720
3716
  passive: a = !1,
3721
3717
  dedupe: i = !1
3722
- } = o, d = zl(t);
3718
+ } = o, d = ql(t);
3723
3719
  return ht(r, l, (c) => {
3724
3720
  c.repeat && Me(i) || d(c) && n(c);
3725
3721
  }, a);
3726
3722
  }
3727
- function jl() {
3728
- const e = R(!1), t = Ne();
3729
- return t && ae(() => {
3723
+ function Ul() {
3724
+ const e = O(!1), t = Ne();
3725
+ return t && de(() => {
3730
3726
  e.value = !0;
3731
3727
  }, t), e;
3732
3728
  }
3733
- function ql(e) {
3729
+ function Gl(e) {
3734
3730
  return JSON.parse(JSON.stringify(e));
3735
3731
  }
3736
3732
  function Ye(e, t, n, o = {}) {
@@ -3745,26 +3741,26 @@ function Ye(e, t, n, o = {}) {
3745
3741
  } = o, p = Ne(), v = n || (p == null ? void 0 : p.emit) || ((r = p == null ? void 0 : p.$emit) == null ? void 0 : r.bind(p)) || ((a = (l = p == null ? void 0 : p.proxy) == null ? void 0 : l.$emit) == null ? void 0 : a.bind(p == null ? void 0 : p.proxy));
3746
3742
  let g = c;
3747
3743
  t || (t = "modelValue"), g = g || `update:${t.toString()}`;
3748
- const h = (b) => i ? typeof i == "function" ? i(b) : ql(b) : b, y = () => Tl(e[t]) ? h(e[t]) : u, w = (b) => {
3744
+ const h = (b) => i ? typeof i == "function" ? i(b) : Gl(b) : b, y = () => Vl(e[t]) ? h(e[t]) : u, w = (b) => {
3749
3745
  m ? m(b) && v(g, b) : v(g, b);
3750
3746
  };
3751
3747
  if (d) {
3752
- const b = y(), C = R(b);
3748
+ const b = y(), C = O(b);
3753
3749
  let x = !1;
3754
3750
  return Z(
3755
3751
  () => e[t],
3756
- (E) => {
3757
- x || (x = !0, C.value = h(E), oe(() => x = !1));
3752
+ (S) => {
3753
+ x || (x = !0, C.value = h(S), oe(() => x = !1));
3758
3754
  }
3759
3755
  ), Z(
3760
3756
  C,
3761
- (E) => {
3762
- !x && (E !== e[t] || s) && w(E);
3757
+ (S) => {
3758
+ !x && (S !== e[t] || s) && w(S);
3763
3759
  },
3764
3760
  { deep: s }
3765
3761
  ), C;
3766
3762
  } else
3767
- return O({
3763
+ return R({
3768
3764
  get() {
3769
3765
  return y();
3770
3766
  },
@@ -3774,7 +3770,7 @@ function Ye(e, t, n, o = {}) {
3774
3770
  });
3775
3771
  }
3776
3772
  function Ct(e) {
3777
- return e ? e.flatMap((t) => t.type === se ? Ct(t.children) : [t]) : [];
3773
+ return e ? e.flatMap((t) => t.type === ie ? Ct(t.children) : [t]) : [];
3778
3774
  }
3779
3775
  function re() {
3780
3776
  let e = document.activeElement;
@@ -3806,31 +3802,31 @@ function jt(e, t, n = ".", o) {
3806
3802
  }
3807
3803
  return r;
3808
3804
  }
3809
- function Hl(e) {
3805
+ function Kl(e) {
3810
3806
  return (...t) => (
3811
3807
  // eslint-disable-next-line unicorn/no-array-reduce
3812
3808
  t.reduce((n, o) => jt(n, o, ""), {})
3813
3809
  );
3814
3810
  }
3815
- const Ul = Hl(), [At] = ne("ConfigProvider");
3816
- let Gl = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Kl = (e = 21) => {
3811
+ const Xl = Kl(), [At] = ne("ConfigProvider");
3812
+ let Yl = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Jl = (e = 21) => {
3817
3813
  let t = "", n = e;
3818
3814
  for (; n--; )
3819
- t += Gl[Math.random() * 64 | 0];
3815
+ t += Yl[Math.random() * 64 | 0];
3820
3816
  return t;
3821
3817
  };
3822
- const Xl = _l(() => {
3823
- const e = R(/* @__PURE__ */ new Map()), t = R(), n = O(() => {
3818
+ const Ql = Ml(() => {
3819
+ const e = O(/* @__PURE__ */ new Map()), t = O(), n = R(() => {
3824
3820
  for (const a of e.value.values())
3825
3821
  if (a)
3826
3822
  return !0;
3827
3823
  return !1;
3828
3824
  }), o = At({
3829
- scrollBody: R(!0)
3825
+ scrollBody: O(!0)
3830
3826
  });
3831
3827
  let r = null;
3832
3828
  const l = () => {
3833
- document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", In && (r == null || r()), t.value = void 0;
3829
+ document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", Tn && (r == null || r()), t.value = void 0;
3834
3830
  };
3835
3831
  return Z(n, (a, i) => {
3836
3832
  var d;
@@ -3841,127 +3837,127 @@ const Xl = _l(() => {
3841
3837
  return;
3842
3838
  }
3843
3839
  t.value === void 0 && (t.value = document.body.style.overflow);
3844
- const c = window.innerWidth - document.documentElement.clientWidth, s = { padding: c, margin: 0 }, u = (d = o.scrollBody) != null && d.value ? typeof o.scrollBody.value == "object" ? Ul({
3840
+ const c = window.innerWidth - document.documentElement.clientWidth, s = { padding: c, margin: 0 }, u = (d = o.scrollBody) != null && d.value ? typeof o.scrollBody.value == "object" ? Xl({
3845
3841
  padding: o.scrollBody.value.padding === !0 ? c : o.scrollBody.value.padding,
3846
3842
  margin: o.scrollBody.value.margin === !0 ? c : o.scrollBody.value.margin
3847
3843
  }, s) : s : { padding: 0, margin: 0 };
3848
- c > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.body.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), In && (r = ht(
3844
+ c > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.body.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), Tn && (r = ht(
3849
3845
  document,
3850
3846
  "touchmove",
3851
- (m) => Jl(m),
3847
+ (m) => ea(m),
3852
3848
  { passive: !1 }
3853
3849
  )), oe(() => {
3854
3850
  document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
3855
3851
  });
3856
3852
  }, { immediate: !0, flush: "sync" }), e;
3857
3853
  });
3858
- function Yl(e) {
3859
- const t = Kl(6), n = Xl();
3854
+ function Zl(e) {
3855
+ const t = Jl(6), n = Ql();
3860
3856
  n.value.set(t, e ?? !1);
3861
- const o = O({
3857
+ const o = R({
3862
3858
  get: () => n.value.get(t) ?? !1,
3863
3859
  set: (r) => n.value.set(t, r)
3864
3860
  });
3865
- return Fl(() => {
3861
+ return jl(() => {
3866
3862
  n.value.delete(t);
3867
3863
  }), o;
3868
3864
  }
3869
- function vo(e) {
3865
+ function mo(e) {
3870
3866
  const t = window.getComputedStyle(e);
3871
3867
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
3872
3868
  return !0;
3873
3869
  {
3874
3870
  const n = e.parentNode;
3875
- return !(n instanceof Element) || n.tagName === "BODY" ? !1 : vo(n);
3871
+ return !(n instanceof Element) || n.tagName === "BODY" ? !1 : mo(n);
3876
3872
  }
3877
3873
  }
3878
- function Jl(e) {
3874
+ function ea(e) {
3879
3875
  const t = e || window.event, n = t.target;
3880
- return n instanceof Element && vo(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
3876
+ return n instanceof Element && mo(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
3881
3877
  }
3882
- const Ql = "data-radix-vue-collection-item";
3883
- function sn(e, t = Ql) {
3878
+ const ta = "data-radix-vue-collection-item";
3879
+ function sn(e, t = ta) {
3884
3880
  const n = Symbol();
3885
3881
  return { createCollection: (o) => {
3886
- const r = R([]);
3882
+ const r = O([]);
3887
3883
  function l() {
3888
- const a = Ee(o);
3884
+ const a = Se(o);
3889
3885
  return a ? r.value = Array.from(
3890
3886
  a.querySelectorAll(`[${t}]:not([data-disabled])`)
3891
3887
  ) : r.value = [];
3892
3888
  }
3893
- return Wo(() => {
3889
+ return zo(() => {
3894
3890
  r.value = [];
3895
- }), ae(l), jo(l), Z(() => o == null ? void 0 : o.value, l, { immediate: !0 }), Kn(n, r), r;
3896
- }, injectCollection: () => Gn(n, R([])) };
3891
+ }), de(l), Wo(l), Z(() => o == null ? void 0 : o.value, l, { immediate: !0 }), Gn(n, r), r;
3892
+ }, injectCollection: () => Un(n, O([])) };
3897
3893
  }
3898
3894
  function un(e) {
3899
3895
  const t = At({
3900
- dir: R("ltr")
3896
+ dir: O("ltr")
3901
3897
  });
3902
- return O(() => {
3898
+ return R(() => {
3903
3899
  var n;
3904
3900
  return (e == null ? void 0 : e.value) || ((n = t.dir) == null ? void 0 : n.value) || "ltr";
3905
3901
  });
3906
3902
  }
3907
- function Zl(e) {
3903
+ function na(e) {
3908
3904
  const t = Ne(), n = t == null ? void 0 : t.type.emits, o = {};
3909
3905
  return n != null && n.length || console.warn(
3910
3906
  `No emitted event found. Please check component: ${t == null ? void 0 : t.type.__name}`
3911
3907
  ), n == null || n.forEach((r) => {
3912
- o[Mo(qn(r))] = (...l) => e(r, ...l);
3908
+ o[Io(jn(r))] = (...l) => e(r, ...l);
3913
3909
  }), o;
3914
3910
  }
3915
3911
  let It = 0;
3916
- function ea() {
3912
+ function oa() {
3917
3913
  le((e) => {
3918
3914
  if (!Be)
3919
3915
  return;
3920
3916
  const t = document.querySelectorAll("[data-radix-focus-guard]");
3921
3917
  document.body.insertAdjacentElement(
3922
3918
  "afterbegin",
3923
- t[0] ?? Mn()
3919
+ t[0] ?? In()
3924
3920
  ), document.body.insertAdjacentElement(
3925
3921
  "beforeend",
3926
- t[1] ?? Mn()
3922
+ t[1] ?? In()
3927
3923
  ), It++, e(() => {
3928
3924
  It === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), It--;
3929
3925
  });
3930
3926
  });
3931
3927
  }
3932
- function Mn() {
3928
+ function In() {
3933
3929
  const e = document.createElement("span");
3934
3930
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
3935
3931
  }
3936
3932
  function dn(e) {
3937
- return O(() => {
3933
+ return R(() => {
3938
3934
  var t;
3939
- return Me(e) ? !!((t = Ee(e)) != null && t.closest("form")) : !0;
3935
+ return Me(e) ? !!((t = Se(e)) != null && t.closest("form")) : !0;
3940
3936
  });
3941
3937
  }
3942
3938
  function Fe(e) {
3943
3939
  const t = Ne(), n = Object.keys((t == null ? void 0 : t.type.props) ?? {}).reduce((r, l) => {
3944
3940
  const a = (t == null ? void 0 : t.type.props[l]).default;
3945
3941
  return a !== void 0 && (r[l] = a), r;
3946
- }, {}), o = _o(e);
3947
- return O(() => {
3942
+ }, {}), o = Bo(e);
3943
+ return R(() => {
3948
3944
  const r = {}, l = (t == null ? void 0 : t.vnode.props) ?? {};
3949
3945
  return Object.keys(l).forEach((a) => {
3950
- r[qn(a)] = l[a];
3946
+ r[jn(a)] = l[a];
3951
3947
  }), Object.keys({ ...n, ...r }).reduce((a, i) => (o.value[i] !== void 0 && (a[i] = o.value[i]), a), {});
3952
3948
  });
3953
3949
  }
3954
3950
  function kt(e, t) {
3955
- const n = Fe(e), o = t ? Zl(t) : {};
3956
- return O(() => ({
3951
+ const n = Fe(e), o = t ? na(t) : {};
3952
+ return R(() => ({
3957
3953
  ...n.value,
3958
3954
  ...o
3959
3955
  }));
3960
3956
  }
3961
3957
  function G() {
3962
- const e = Ne(), t = R(), n = O(() => {
3958
+ const e = Ne(), t = O(), n = R(() => {
3963
3959
  var a, i;
3964
- return ["#text", "#comment"].includes((a = t.value) == null ? void 0 : a.$el.nodeName) ? (i = t.value) == null ? void 0 : i.$el.nextElementSibling : Ee(t);
3960
+ return ["#text", "#comment"].includes((a = t.value) == null ? void 0 : a.$el.nodeName) ? (i = t.value) == null ? void 0 : i.$el.nextElementSibling : Se(t);
3965
3961
  }), o = Object.assign({}, e.exposed), r = {};
3966
3962
  for (const a in e.props)
3967
3963
  Object.defineProperty(r, a, {
@@ -3990,24 +3986,24 @@ function G() {
3990
3986
  }
3991
3987
  return { forwardRef: l, currentRef: t, currentElement: n };
3992
3988
  }
3993
- var ta = function(e) {
3989
+ var ra = function(e) {
3994
3990
  if (typeof document > "u")
3995
3991
  return null;
3996
3992
  var t = Array.isArray(e) ? e[0] : e;
3997
3993
  return t.ownerDocument.body;
3998
- }, qe = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), ut = {}, Mt = 0, ho = function(e) {
3999
- return e && (e.host || ho(e.parentNode));
4000
- }, na = function(e, t) {
3994
+ }, qe = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), ut = {}, Mt = 0, vo = function(e) {
3995
+ return e && (e.host || vo(e.parentNode));
3996
+ }, la = function(e, t) {
4001
3997
  return t.map(function(n) {
4002
3998
  if (e.contains(n))
4003
3999
  return n;
4004
- var o = ho(n);
4000
+ var o = vo(n);
4005
4001
  return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
4006
4002
  }).filter(function(n) {
4007
4003
  return !!n;
4008
4004
  });
4009
- }, oa = function(e, t, n, o) {
4010
- var r = na(t, Array.isArray(e) ? e : [e]);
4005
+ }, aa = function(e, t, n, o) {
4006
+ var r = la(t, Array.isArray(e) ? e : [e]);
4011
4007
  ut[n] || (ut[n] = /* @__PURE__ */ new WeakMap());
4012
4008
  var l = ut[n], a = [], i = /* @__PURE__ */ new Set(), d = new Set(r), c = function(u) {
4013
4009
  !u || i.has(u) || (i.add(u), c(u.parentNode));
@@ -4032,36 +4028,36 @@ var ta = function(e) {
4032
4028
  qe.set(u, m), l.set(u, p), m || (st.has(u) || u.removeAttribute(o), st.delete(u)), p || u.removeAttribute(n);
4033
4029
  }), Mt--, Mt || (qe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), ut = {});
4034
4030
  };
4035
- }, ra = function(e, t, n) {
4031
+ }, ia = function(e, t, n) {
4036
4032
  n === void 0 && (n = "data-aria-hidden");
4037
- var o = Array.from(Array.isArray(e) ? e : [e]), r = ta(e);
4038
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), oa(o, r, n, "aria-hidden")) : function() {
4033
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = ra(e);
4034
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), aa(o, r, n, "aria-hidden")) : function() {
4039
4035
  return null;
4040
4036
  };
4041
4037
  };
4042
- function la(e) {
4038
+ function sa(e) {
4043
4039
  let t;
4044
- Z(() => Ee(e), (n) => {
4045
- n ? t = ra(n) : t && t();
4040
+ Z(() => Se(e), (n) => {
4041
+ n ? t = ia(n) : t && t();
4046
4042
  }), Xt(() => {
4047
4043
  t && t();
4048
4044
  });
4049
4045
  }
4050
- let aa = 0;
4046
+ let ua = 0;
4051
4047
  function cn(e, t = "radix") {
4052
4048
  const n = At({ useId: void 0 });
4053
- return yn.useId ? `${t}-${yn.useId()}` : n.useId ? `${t}-${n.useId()}` : `${t}-${++aa}`;
4049
+ return yn.useId ? `${t}-${yn.useId()}` : n.useId ? `${t}-${n.useId()}` : `${t}-${++ua}`;
4054
4050
  }
4055
- function ia(e) {
4056
- const t = R(), n = O(() => {
4051
+ function da(e) {
4052
+ const t = O(), n = R(() => {
4057
4053
  var r;
4058
4054
  return ((r = t.value) == null ? void 0 : r.width) ?? 0;
4059
- }), o = O(() => {
4055
+ }), o = R(() => {
4060
4056
  var r;
4061
4057
  return ((r = t.value) == null ? void 0 : r.height) ?? 0;
4062
4058
  });
4063
- return ae(() => {
4064
- const r = Ee(e);
4059
+ return de(() => {
4060
+ const r = Se(e);
4065
4061
  if (r) {
4066
4062
  t.value = { width: r.offsetWidth, height: r.offsetHeight };
4067
4063
  const l = new ResizeObserver((a) => {
@@ -4084,8 +4080,8 @@ function ia(e) {
4084
4080
  height: o
4085
4081
  };
4086
4082
  }
4087
- function sa(e, t) {
4088
- const n = R(e);
4083
+ function ca(e, t) {
4084
+ const n = O(e);
4089
4085
  function o(r) {
4090
4086
  return t[n.value][r] ?? n.value;
4091
4087
  }
@@ -4096,9 +4092,9 @@ function sa(e, t) {
4096
4092
  }
4097
4093
  };
4098
4094
  }
4099
- const ua = "data-item-text";
4100
- function go(e) {
4101
- const t = Dl("", 1e3);
4095
+ const fa = "data-item-text";
4096
+ function ho(e) {
4097
+ const t = Wl("", 1e3);
4102
4098
  return {
4103
4099
  search: t,
4104
4100
  handleTypeaheadSearch: (n, o) => {
@@ -4109,9 +4105,9 @@ function go(e) {
4109
4105
  var m;
4110
4106
  return {
4111
4107
  ref: u,
4112
- textValue: ((m = (u.querySelector(`[${ua}]`) ?? u).textContent) == null ? void 0 : m.trim()) ?? ""
4108
+ textValue: ((m = (u.querySelector(`[${fa}]`) ?? u).textContent) == null ? void 0 : m.trim()) ?? ""
4113
4109
  };
4114
- }), i = a.find((u) => u.ref === l), d = a.map((u) => u.textValue), c = ca(d, t.value, i == null ? void 0 : i.textValue), s = a.find((u) => u.textValue === c);
4110
+ }), i = a.find((u) => u.ref === l), d = a.map((u) => u.textValue), c = ma(d, t.value, i == null ? void 0 : i.textValue), s = a.find((u) => u.textValue === c);
4115
4111
  return s && s.ref.focus(), s == null ? void 0 : s.ref;
4116
4112
  },
4117
4113
  resetTypeahead: () => {
@@ -4119,12 +4115,12 @@ function go(e) {
4119
4115
  }
4120
4116
  };
4121
4117
  }
4122
- function da(e, t) {
4118
+ function pa(e, t) {
4123
4119
  return e.map((n, o) => e[(t + o) % e.length]);
4124
4120
  }
4125
- function ca(e, t, n) {
4121
+ function ma(e, t, n) {
4126
4122
  const o = t.length > 1 && Array.from(t).every((i) => i === t[0]) ? t[0] : t, r = n ? e.indexOf(n) : -1;
4127
- let l = da(e, Math.max(r, 0));
4123
+ let l = pa(e, Math.max(r, 0));
4128
4124
  o.length === 1 && (l = l.filter((i) => i !== n));
4129
4125
  const a = l.find(
4130
4126
  (i) => i.toLowerCase().startsWith(o.toLowerCase())
@@ -4139,14 +4135,14 @@ const fn = P({
4139
4135
  var o, r;
4140
4136
  if (!n.default)
4141
4137
  return null;
4142
- const l = Ct(n.default()), a = l.findIndex((s) => s.type !== Do);
4138
+ const l = Ct(n.default()), a = l.findIndex((s) => s.type !== Lo);
4143
4139
  if (a === -1)
4144
4140
  return l;
4145
4141
  const i = l[a];
4146
4142
  (o = i.props) == null || delete o.ref;
4147
4143
  const d = i.props ? z(t, i.props) : t;
4148
4144
  t.class && (r = i.props) != null && r.class && delete i.props.class;
4149
- const c = Fo(i, d);
4145
+ const c = Do(i, d);
4150
4146
  for (const s in d)
4151
4147
  s.startsWith("on") && (c.props || (c.props = {}), c.props[s] = d[s]);
4152
4148
  return l.length === 1 ? c : (l[a] = c, l);
@@ -4170,21 +4166,21 @@ const fn = P({
4170
4166
  return typeof o == "string" && ["area", "img", "input"].includes(o) ? () => we(o, t) : o !== "template" ? () => we(e.as, t, { default: n.default }) : () => we(fn, t, { default: n.default });
4171
4167
  }
4172
4168
  });
4173
- function yo() {
4174
- const e = R(), t = O(() => {
4169
+ function go() {
4170
+ const e = O(), t = R(() => {
4175
4171
  var n, o;
4176
- return ["#text", "#comment"].includes((n = e.value) == null ? void 0 : n.$el.nodeName) ? (o = e.value) == null ? void 0 : o.$el.nextElementSibling : Ee(e);
4172
+ return ["#text", "#comment"].includes((n = e.value) == null ? void 0 : n.$el.nodeName) ? (o = e.value) == null ? void 0 : o.$el.nextElementSibling : Se(e);
4177
4173
  });
4178
4174
  return {
4179
4175
  primitiveElement: e,
4180
4176
  currentElement: t
4181
4177
  };
4182
4178
  }
4183
- function fa(e, t) {
4179
+ function va(e, t) {
4184
4180
  var n;
4185
- const o = R({}), r = R("none"), l = R(e), a = e.value ? "mounted" : "unmounted";
4181
+ const o = O({}), r = O("none"), l = O(e), a = e.value ? "mounted" : "unmounted";
4186
4182
  let i;
4187
- const d = ((n = t.value) == null ? void 0 : n.ownerDocument.defaultView) ?? an, { state: c, dispatch: s } = sa(a, {
4183
+ const d = ((n = t.value) == null ? void 0 : n.ownerDocument.defaultView) ?? an, { state: c, dispatch: s } = ca(a, {
4188
4184
  mounted: {
4189
4185
  UNMOUNT: "unmounted",
4190
4186
  ANIMATION_OUT: "unmountSuspended"
@@ -4242,7 +4238,7 @@ function fa(e, t) {
4242
4238
  return Xt(() => {
4243
4239
  v(), g();
4244
4240
  }), {
4245
- isPresent: O(
4241
+ isPresent: R(
4246
4242
  () => ["mounted", "unmountSuspended"].includes(c.value)
4247
4243
  )
4248
4244
  };
@@ -4264,7 +4260,7 @@ const pn = P({
4264
4260
  slots: {},
4265
4261
  setup(e, { slots: t, expose: n }) {
4266
4262
  var o;
4267
- const { present: r, forceMount: l } = Ae(e), a = R(), { isPresent: i } = fa(r, a);
4263
+ const { present: r, forceMount: l } = Ae(e), a = O(), { isPresent: i } = va(r, a);
4268
4264
  n({ present: i });
4269
4265
  let d = t.default({ present: i });
4270
4266
  d = Ct(d || []);
@@ -4288,12 +4284,12 @@ const pn = P({
4288
4284
  }
4289
4285
  return () => l.value || r.value || i.value ? we(t.default({ present: i })[0], {
4290
4286
  ref: (s) => {
4291
- const u = Ee(s);
4287
+ const u = Se(s);
4292
4288
  return typeof (u == null ? void 0 : u.hasAttribute) > "u" || (u != null && u.hasAttribute("data-radix-popper-content-wrapper") ? a.value = u.firstElementChild : a.value = u), u;
4293
4289
  }
4294
4290
  }) : null;
4295
4291
  }
4296
- }), pa = /* @__PURE__ */ P({
4292
+ }), ha = /* @__PURE__ */ P({
4297
4293
  __name: "Teleport",
4298
4294
  props: {
4299
4295
  to: { default: "body" },
@@ -4301,7 +4297,7 @@ const pn = P({
4301
4297
  forceMount: { type: Boolean }
4302
4298
  },
4303
4299
  setup(e) {
4304
- const t = jl();
4300
+ const t = Ul();
4305
4301
  return (n, o) => f(t) || n.forceMount ? (k(), B(Kt, {
4306
4302
  key: 0,
4307
4303
  to: n.to,
@@ -4310,8 +4306,8 @@ const pn = P({
4310
4306
  M(n.$slots, "default")
4311
4307
  ], 8, ["to", "disabled"])) : Y("", !0);
4312
4308
  }
4313
- }), ma = "dismissableLayer.pointerDownOutside", va = "dismissableLayer.focusOutside";
4314
- function bo(e, t) {
4309
+ }), ga = "dismissableLayer.pointerDownOutside", ya = "dismissableLayer.focusOutside";
4310
+ function yo(e, t) {
4315
4311
  const n = t.closest(
4316
4312
  "[data-dismissable-layer]"
4317
4313
  ), o = e.dataset.dismissableLayer === "" ? e : e.querySelector(
@@ -4321,9 +4317,9 @@ function bo(e, t) {
4321
4317
  );
4322
4318
  return !!(n && o === n || r.indexOf(o) < r.indexOf(n));
4323
4319
  }
4324
- function ha(e, t) {
4320
+ function ba(e, t) {
4325
4321
  var n;
4326
- const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = R(!1), l = R(() => {
4322
+ const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = O(!1), l = O(() => {
4327
4323
  });
4328
4324
  return le((a) => {
4329
4325
  if (!Be)
@@ -4331,14 +4327,14 @@ function ha(e, t) {
4331
4327
  const i = async (c) => {
4332
4328
  const s = c.target;
4333
4329
  if (t != null && t.value) {
4334
- if (bo(t.value, s)) {
4330
+ if (yo(t.value, s)) {
4335
4331
  r.value = !1;
4336
4332
  return;
4337
4333
  }
4338
4334
  if (c.target && !r.value) {
4339
4335
  let u = function() {
4340
- mo(
4341
- ma,
4336
+ po(
4337
+ ga,
4342
4338
  e,
4343
4339
  m
4344
4340
  );
@@ -4361,15 +4357,15 @@ function ha(e, t) {
4361
4357
  onPointerDownCapture: () => r.value = !0
4362
4358
  };
4363
4359
  }
4364
- function ga(e, t) {
4360
+ function wa(e, t) {
4365
4361
  var n;
4366
- const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = R(!1);
4362
+ const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = O(!1);
4367
4363
  return le((l) => {
4368
4364
  if (!Be)
4369
4365
  return;
4370
4366
  const a = async (i) => {
4371
- t != null && t.value && (await oe(), !(!t.value || bo(t.value, i.target)) && i.target && !r.value && mo(
4372
- va,
4367
+ t != null && t.value && (await oe(), !(!t.value || yo(t.value, i.target)) && i.target && !r.value && po(
4368
+ ya,
4373
4369
  e,
4374
4370
  { originalEvent: i }
4375
4371
  ));
@@ -4380,11 +4376,11 @@ function ga(e, t) {
4380
4376
  onBlurCapture: () => r.value = !1
4381
4377
  };
4382
4378
  }
4383
- const ye = Xn({
4379
+ const ye = Kn({
4384
4380
  layersRoot: /* @__PURE__ */ new Set(),
4385
4381
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4386
4382
  branches: /* @__PURE__ */ new Set()
4387
- }), ya = /* @__PURE__ */ P({
4383
+ }), xa = /* @__PURE__ */ P({
4388
4384
  __name: "DismissableLayer",
4389
4385
  props: {
4390
4386
  disableOutsidePointerEvents: { type: Boolean, default: !1 },
@@ -4393,25 +4389,25 @@ const ye = Xn({
4393
4389
  },
4394
4390
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "dismiss"],
4395
4391
  setup(e, { emit: t }) {
4396
- const n = e, o = t, { forwardRef: r, currentElement: l } = G(), a = O(
4392
+ const n = e, o = t, { forwardRef: r, currentElement: l } = G(), a = R(
4397
4393
  () => {
4398
4394
  var v;
4399
4395
  return ((v = l.value) == null ? void 0 : v.ownerDocument) ?? globalThis.document;
4400
4396
  }
4401
- ), i = O(() => ye.layersRoot), d = O(() => l.value ? Array.from(i.value).indexOf(l.value) : -1), c = O(() => ye.layersWithOutsidePointerEventsDisabled.size > 0), s = O(() => {
4397
+ ), i = R(() => ye.layersRoot), d = R(() => l.value ? Array.from(i.value).indexOf(l.value) : -1), c = R(() => ye.layersWithOutsidePointerEventsDisabled.size > 0), s = R(() => {
4402
4398
  const v = Array.from(i.value), [g] = [...ye.layersWithOutsidePointerEventsDisabled].slice(-1), h = v.indexOf(g);
4403
4399
  return d.value >= h;
4404
- }), u = ha(async (v) => {
4400
+ }), u = ba(async (v) => {
4405
4401
  const g = [...ye.branches].some(
4406
4402
  (h) => h == null ? void 0 : h.contains(v.target)
4407
4403
  );
4408
4404
  !s.value || g || (o("pointerDownOutside", v), o("interactOutside", v), await oe(), v.defaultPrevented || o("dismiss"));
4409
- }, l), m = ga((v) => {
4405
+ }, l), m = wa((v) => {
4410
4406
  [...ye.branches].some(
4411
4407
  (g) => g == null ? void 0 : g.contains(v.target)
4412
4408
  ) || (o("focusOutside", v), o("interactOutside", v), v.defaultPrevented || o("dismiss"));
4413
4409
  }, l);
4414
- Wl("Escape", (v) => {
4410
+ Hl("Escape", (v) => {
4415
4411
  d.value === i.value.size - 1 && (o("escapeKeyDown", v), v.defaultPrevented || o("dismiss"));
4416
4412
  });
4417
4413
  let p;
@@ -4435,24 +4431,24 @@ const ye = Xn({
4435
4431
  onBlurCapture: f(m).onBlurCapture,
4436
4432
  onPointerdownCapture: f(u).onPointerDownCapture
4437
4433
  }, {
4438
- default: S(() => [
4434
+ default: E(() => [
4439
4435
  M(v.$slots, "default")
4440
4436
  ]),
4441
4437
  _: 3
4442
4438
  }, 8, ["as-child", "as", "style", "onFocusCapture", "onBlurCapture", "onPointerdownCapture"]));
4443
4439
  }
4444
- }), Vt = "focusScope.autoFocusOnMount", Nt = "focusScope.autoFocusOnUnmount", Vn = { bubbles: !1, cancelable: !0 };
4445
- function ba(e, { select: t = !1 } = {}) {
4440
+ }), Vt = "focusScope.autoFocusOnMount", Nt = "focusScope.autoFocusOnUnmount", Mn = { bubbles: !1, cancelable: !0 };
4441
+ function Ca(e, { select: t = !1 } = {}) {
4446
4442
  const n = re();
4447
4443
  for (const o of e)
4448
4444
  if (Oe(o, { select: t }), re() !== n)
4449
4445
  return !0;
4450
4446
  }
4451
- function wa(e) {
4452
- const t = wo(e), n = Nn(t, e), o = Nn(t.reverse(), e);
4447
+ function Aa(e) {
4448
+ const t = bo(e), n = Vn(t, e), o = Vn(t.reverse(), e);
4453
4449
  return [n, o];
4454
4450
  }
4455
- function wo(e) {
4451
+ function bo(e) {
4456
4452
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
4457
4453
  acceptNode: (o) => {
4458
4454
  const r = o.tagName === "INPUT" && o.type === "hidden";
@@ -4462,12 +4458,12 @@ function wo(e) {
4462
4458
  for (; n.nextNode(); ) t.push(n.currentNode);
4463
4459
  return t;
4464
4460
  }
4465
- function Nn(e, t) {
4461
+ function Vn(e, t) {
4466
4462
  for (const n of e)
4467
- if (!xa(n, { upTo: t }))
4463
+ if (!ka(n, { upTo: t }))
4468
4464
  return n;
4469
4465
  }
4470
- function xa(e, { upTo: t }) {
4466
+ function ka(e, { upTo: t }) {
4471
4467
  if (getComputedStyle(e).visibility === "hidden")
4472
4468
  return !0;
4473
4469
  for (; e; ) {
@@ -4479,37 +4475,37 @@ function xa(e, { upTo: t }) {
4479
4475
  }
4480
4476
  return !1;
4481
4477
  }
4482
- function Ca(e) {
4478
+ function Sa(e) {
4483
4479
  return e instanceof HTMLInputElement && "select" in e;
4484
4480
  }
4485
4481
  function Oe(e, { select: t = !1 } = {}) {
4486
4482
  if (e && e.focus) {
4487
4483
  const n = re();
4488
- e.focus({ preventScroll: !0 }), e !== n && Ca(e) && t && e.select();
4484
+ e.focus({ preventScroll: !0 }), e !== n && Sa(e) && t && e.select();
4489
4485
  }
4490
4486
  }
4491
- const Aa = Bl(() => R([]));
4492
- function ka() {
4493
- const e = Aa();
4487
+ const Ea = Il(() => O([]));
4488
+ function Ra() {
4489
+ const e = Ea();
4494
4490
  return {
4495
4491
  add(t) {
4496
4492
  const n = e.value[0];
4497
- t !== n && (n == null || n.pause()), e.value = Ln(e.value, t), e.value.unshift(t);
4493
+ t !== n && (n == null || n.pause()), e.value = Nn(e.value, t), e.value.unshift(t);
4498
4494
  },
4499
4495
  remove(t) {
4500
4496
  var n;
4501
- e.value = Ln(e.value, t), (n = e.value[0]) == null || n.resume();
4497
+ e.value = Nn(e.value, t), (n = e.value[0]) == null || n.resume();
4502
4498
  }
4503
4499
  };
4504
4500
  }
4505
- function Ln(e, t) {
4501
+ function Nn(e, t) {
4506
4502
  const n = [...e], o = n.indexOf(t);
4507
4503
  return o !== -1 && n.splice(o, 1), n;
4508
4504
  }
4509
- function Ea(e) {
4505
+ function Oa(e) {
4510
4506
  return e.filter((t) => t.tagName !== "A");
4511
4507
  }
4512
- const Sa = /* @__PURE__ */ P({
4508
+ const Pa = /* @__PURE__ */ P({
4513
4509
  __name: "FocusScope",
4514
4510
  props: {
4515
4511
  loop: { type: Boolean, default: !1 },
@@ -4519,7 +4515,7 @@ const Sa = /* @__PURE__ */ P({
4519
4515
  },
4520
4516
  emits: ["mountAutoFocus", "unmountAutoFocus"],
4521
4517
  setup(e, { emit: t }) {
4522
- const n = e, o = t, { currentRef: r, currentElement: l } = G(), a = R(null), i = ka(), d = Xn({
4518
+ const n = e, o = t, { currentRef: r, currentElement: l } = G(), a = O(null), i = Ra(), d = Kn({
4523
4519
  paused: !1,
4524
4520
  pause() {
4525
4521
  this.paused = !0;
@@ -4561,14 +4557,14 @@ const Sa = /* @__PURE__ */ P({
4561
4557
  i.add(d);
4562
4558
  const m = re();
4563
4559
  if (!u.contains(m)) {
4564
- const p = new CustomEvent(Vt, Vn);
4565
- u.addEventListener(Vt, (v) => o("mountAutoFocus", v)), u.dispatchEvent(p), p.defaultPrevented || (ba(Ea(wo(u)), {
4560
+ const p = new CustomEvent(Vt, Mn);
4561
+ u.addEventListener(Vt, (v) => o("mountAutoFocus", v)), u.dispatchEvent(p), p.defaultPrevented || (Ca(Oa(bo(u)), {
4566
4562
  select: !0
4567
4563
  }), re() === m && Oe(u));
4568
4564
  }
4569
4565
  s(() => {
4570
4566
  u.removeEventListener(Vt, (g) => o("mountAutoFocus", g));
4571
- const p = new CustomEvent(Nt, Vn), v = (g) => {
4567
+ const p = new CustomEvent(Nt, Mn), v = (g) => {
4572
4568
  o("unmountAutoFocus", g);
4573
4569
  };
4574
4570
  u.addEventListener(Nt, v), u.dispatchEvent(p), setTimeout(() => {
@@ -4581,7 +4577,7 @@ const Sa = /* @__PURE__ */ P({
4581
4577
  return;
4582
4578
  const u = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, m = re();
4583
4579
  if (u && m) {
4584
- const p = s.currentTarget, [v, g] = wa(p);
4580
+ const p = s.currentTarget, [v, g] = Aa(p);
4585
4581
  v && g ? !s.shiftKey && m === g ? (s.preventDefault(), n.loop && Oe(v, { select: !0 })) : s.shiftKey && m === v && (s.preventDefault(), n.loop && Oe(g, { select: !0 })) : m === p && s.preventDefault();
4586
4582
  }
4587
4583
  }
@@ -4593,14 +4589,14 @@ const Sa = /* @__PURE__ */ P({
4593
4589
  as: s.as,
4594
4590
  onKeydown: c
4595
4591
  }, {
4596
- default: S(() => [
4592
+ default: E(() => [
4597
4593
  M(s.$slots, "default")
4598
4594
  ]),
4599
4595
  _: 3
4600
4596
  }, 8, ["as-child", "as"]));
4601
4597
  }
4602
4598
  });
4603
- function Dn(e) {
4599
+ function Ln(e) {
4604
4600
  const t = re();
4605
4601
  for (const n of e)
4606
4602
  if (n === t || (n.focus(), re() !== t))
@@ -4609,10 +4605,10 @@ function Dn(e) {
4609
4605
  function gt(e) {
4610
4606
  return e === "indeterminate";
4611
4607
  }
4612
- function xo(e) {
4608
+ function wo(e) {
4613
4609
  return gt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4614
4610
  }
4615
- const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("CheckboxRoot"), $a = /* @__PURE__ */ P({
4611
+ const $a = ["value", "checked", "name", "disabled", "required"], [Ba, _a] = ne("CheckboxRoot"), Ta = /* @__PURE__ */ P({
4616
4612
  inheritAttrs: !1,
4617
4613
  __name: "CheckboxRoot",
4618
4614
  props: {
@@ -4631,14 +4627,14 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4631
4627
  const n = e, o = t, { disabled: r } = Ae(n), l = Ye(n, "checked", o, {
4632
4628
  defaultValue: n.defaultChecked,
4633
4629
  passive: n.checked === void 0
4634
- }), { forwardRef: a, currentElement: i } = G(), d = dn(i), c = O(() => {
4630
+ }), { forwardRef: a, currentElement: i } = G(), d = dn(i), c = R(() => {
4635
4631
  var s;
4636
4632
  return n.id && i.value ? (s = document.querySelector(`[for="${n.id}"]`)) == null ? void 0 : s.innerText : void 0;
4637
4633
  });
4638
- return Pa({
4634
+ return _a({
4639
4635
  disabled: r,
4640
4636
  state: l
4641
- }), (s, u) => (k(), D(se, null, [
4637
+ }), (s, u) => (k(), D(ie, null, [
4642
4638
  N(f(q), z(s.$attrs, {
4643
4639
  id: s.id,
4644
4640
  ref: f(a),
@@ -4649,14 +4645,14 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4649
4645
  "aria-checked": f(gt)(f(l)) ? "mixed" : f(l),
4650
4646
  "aria-required": n.required,
4651
4647
  "aria-label": s.$attrs["aria-label"] || c.value,
4652
- "data-state": f(xo)(f(l)),
4648
+ "data-state": f(wo)(f(l)),
4653
4649
  "data-disabled": f(r) ? "" : void 0,
4654
4650
  disabled: f(r),
4655
- onKeydown: Hn(be(() => {
4651
+ onKeydown: qn(be(() => {
4656
4652
  }, ["prevent"]), ["enter"]),
4657
4653
  onClick: u[0] || (u[0] = (m) => l.value = f(gt)(f(l)) ? !0 : !f(l))
4658
4654
  }), {
4659
- default: S(() => [
4655
+ default: E(() => [
4660
4656
  M(s.$slots, "default", { checked: f(l) })
4661
4657
  ]),
4662
4658
  _: 3
@@ -4678,10 +4674,10 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4678
4674
  opacity: 0,
4679
4675
  margin: 0
4680
4676
  }
4681
- }, null, 8, Ra)) : Y("", !0)
4677
+ }, null, 8, $a)) : Y("", !0)
4682
4678
  ], 64));
4683
4679
  }
4684
- }), Ba = /* @__PURE__ */ P({
4680
+ }), Ia = /* @__PURE__ */ P({
4685
4681
  __name: "CheckboxIndicator",
4686
4682
  props: {
4687
4683
  forceMount: { type: Boolean },
@@ -4689,20 +4685,20 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4689
4685
  as: { default: "span" }
4690
4686
  },
4691
4687
  setup(e) {
4692
- const { forwardRef: t } = G(), n = Oa();
4688
+ const { forwardRef: t } = G(), n = Ba();
4693
4689
  return (o, r) => (k(), B(f(pn), {
4694
4690
  present: o.forceMount || f(gt)(f(n).state.value) || f(n).state.value === !0
4695
4691
  }, {
4696
- default: S(() => [
4692
+ default: E(() => [
4697
4693
  N(f(q), z({
4698
4694
  ref: f(t),
4699
- "data-state": f(xo)(f(n).state.value),
4695
+ "data-state": f(wo)(f(n).state.value),
4700
4696
  "data-disabled": f(n).disabled.value ? "" : void 0,
4701
4697
  style: { pointerEvents: "none" },
4702
4698
  "as-child": o.asChild,
4703
4699
  as: o.as
4704
4700
  }, o.$attrs), {
4705
- default: S(() => [
4701
+ default: E(() => [
4706
4702
  M(o.$slots, "default")
4707
4703
  ]),
4708
4704
  _: 3
@@ -4711,17 +4707,17 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4711
4707
  _: 3
4712
4708
  }, 8, ["present"]));
4713
4709
  }
4714
- }), [Co, _a] = ne("PopperRoot"), Ta = /* @__PURE__ */ P({
4710
+ }), [xo, Ma] = ne("PopperRoot"), Va = /* @__PURE__ */ P({
4715
4711
  inheritAttrs: !1,
4716
4712
  __name: "PopperRoot",
4717
4713
  setup(e) {
4718
- const t = R();
4719
- return _a({
4714
+ const t = O();
4715
+ return Ma({
4720
4716
  anchor: t,
4721
4717
  onAnchorChange: (n) => t.value = n
4722
4718
  }), (n, o) => M(n.$slots, "default");
4723
4719
  }
4724
- }), Ia = /* @__PURE__ */ P({
4720
+ }), Na = /* @__PURE__ */ P({
4725
4721
  __name: "PopperAnchor",
4726
4722
  props: {
4727
4723
  element: {},
@@ -4729,7 +4725,7 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4729
4725
  as: {}
4730
4726
  },
4731
4727
  setup(e) {
4732
- const t = e, { forwardRef: n, currentElement: o } = G(), r = Co();
4728
+ const t = e, { forwardRef: n, currentElement: o } = G(), r = xo();
4733
4729
  return le(() => {
4734
4730
  r.onAnchorChange(t.element ?? o.value);
4735
4731
  }), (l, a) => (k(), B(f(q), {
@@ -4737,17 +4733,17 @@ const Ra = ["value", "checked", "name", "disabled", "required"], [Oa, Pa] = ne("
4737
4733
  as: l.as,
4738
4734
  "as-child": l.asChild
4739
4735
  }, {
4740
- default: S(() => [
4736
+ default: E(() => [
4741
4737
  M(l.$slots, "default")
4742
4738
  ]),
4743
4739
  _: 3
4744
4740
  }, 8, ["as", "as-child"]));
4745
4741
  }
4746
4742
  });
4747
- function Ma(e) {
4743
+ function La(e) {
4748
4744
  return e !== null;
4749
4745
  }
4750
- function Va(e) {
4746
+ function Da(e) {
4751
4747
  return {
4752
4748
  name: "transformOrigin",
4753
4749
  options: e,
@@ -4763,7 +4759,7 @@ function qt(e) {
4763
4759
  const [t, n = "center"] = e.split("-");
4764
4760
  return [t, n];
4765
4761
  }
4766
- const Na = {
4762
+ const Fa = {
4767
4763
  side: "bottom",
4768
4764
  sideOffset: 0,
4769
4765
  align: "center",
@@ -4776,10 +4772,10 @@ const Na = {
4776
4772
  hideWhenDetached: !1,
4777
4773
  updatePositionStrategy: "optimized",
4778
4774
  prioritizePosition: !1
4779
- }, [cs, La] = ne("PopperContent"), Da = /* @__PURE__ */ P({
4775
+ }, [ms, za] = ne("PopperContent"), Wa = /* @__PURE__ */ P({
4780
4776
  inheritAttrs: !1,
4781
4777
  __name: "PopperContent",
4782
- props: /* @__PURE__ */ Uo({
4778
+ props: /* @__PURE__ */ Ho({
4783
4779
  side: {},
4784
4780
  sideOffset: {},
4785
4781
  align: {},
@@ -4795,35 +4791,35 @@ const Na = {
4795
4791
  asChild: { type: Boolean },
4796
4792
  as: {}
4797
4793
  }, {
4798
- ...Na
4794
+ ...Fa
4799
4795
  }),
4800
4796
  emits: ["placed"],
4801
4797
  setup(e, { emit: t }) {
4802
- const n = e, o = t, r = Co(), { forwardRef: l, currentElement: a } = G(), i = R(), d = R(), { width: c, height: s } = ia(d), u = O(
4798
+ const n = e, o = t, r = xo(), { forwardRef: l, currentElement: a } = G(), i = O(), d = O(), { width: c, height: s } = da(d), u = R(
4803
4799
  () => n.side + (n.align !== "center" ? `-${n.align}` : "")
4804
- ), m = O(() => typeof n.collisionPadding == "number" ? n.collisionPadding : { top: 0, right: 0, bottom: 0, left: 0, ...n.collisionPadding }), p = O(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), v = O(() => ({
4800
+ ), m = R(() => typeof n.collisionPadding == "number" ? n.collisionPadding : { top: 0, right: 0, bottom: 0, left: 0, ...n.collisionPadding }), p = R(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), v = R(() => ({
4805
4801
  padding: m.value,
4806
- boundary: p.value.filter(Ma),
4802
+ boundary: p.value.filter(La),
4807
4803
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4808
4804
  altBoundary: p.value.length > 0
4809
- })), g = $l(() => [
4810
- bl({
4805
+ })), g = Tl(() => [
4806
+ Cl({
4811
4807
  mainAxis: n.sideOffset + s.value,
4812
4808
  alignmentAxis: n.alignOffset
4813
4809
  }),
4814
- n.prioritizePosition && n.avoidCollisions && Bn({
4810
+ n.prioritizePosition && n.avoidCollisions && $n({
4815
4811
  ...v.value
4816
4812
  }),
4817
- n.avoidCollisions && wl({
4813
+ n.avoidCollisions && Al({
4818
4814
  mainAxis: !0,
4819
4815
  crossAxis: !!n.prioritizePosition,
4820
- limiter: n.sticky === "partial" ? kl() : void 0,
4816
+ limiter: n.sticky === "partial" ? Rl() : void 0,
4821
4817
  ...v.value
4822
4818
  }),
4823
- !n.prioritizePosition && n.avoidCollisions && Bn({
4819
+ !n.prioritizePosition && n.avoidCollisions && $n({
4824
4820
  ...v.value
4825
4821
  }),
4826
- xl({
4822
+ kl({
4827
4823
  ...v.value,
4828
4824
  apply: ({ elements: $, rects: W, availableWidth: _, availableHeight: H }) => {
4829
4825
  const { width: L, height: J } = W.reference, j = $.floating.style;
@@ -4842,53 +4838,53 @@ const Na = {
4842
4838
  );
4843
4839
  }
4844
4840
  }),
4845
- d.value && Rl({ element: d.value, padding: n.arrowPadding }),
4846
- Va({
4841
+ d.value && $l({ element: d.value, padding: n.arrowPadding }),
4842
+ Da({
4847
4843
  arrowWidth: c.value,
4848
4844
  arrowHeight: s.value
4849
4845
  }),
4850
- n.hideWhenDetached && Cl({ strategy: "referenceHidden", ...v.value })
4851
- ]), { floatingStyles: h, placement: y, isPositioned: w, middlewareData: b } = Ol(
4846
+ n.hideWhenDetached && Sl({ strategy: "referenceHidden", ...v.value })
4847
+ ]), { floatingStyles: h, placement: y, isPositioned: w, middlewareData: b } = Bl(
4852
4848
  r.anchor,
4853
4849
  i,
4854
4850
  {
4855
4851
  strategy: "fixed",
4856
4852
  placement: u,
4857
- whileElementsMounted: (...$) => yl(...$, {
4853
+ whileElementsMounted: (...$) => xl(...$, {
4858
4854
  animationFrame: n.updatePositionStrategy === "always"
4859
4855
  }),
4860
4856
  middleware: g
4861
4857
  }
4862
- ), C = O(
4858
+ ), C = R(
4863
4859
  () => qt(y.value)[0]
4864
- ), x = O(
4860
+ ), x = R(
4865
4861
  () => qt(y.value)[1]
4866
4862
  );
4867
- Ho(() => {
4863
+ qo(() => {
4868
4864
  w.value && o("placed");
4869
4865
  });
4870
- const E = O(
4866
+ const S = R(
4871
4867
  () => {
4872
4868
  var $;
4873
4869
  return (($ = b.value.arrow) == null ? void 0 : $.centerOffset) !== 0;
4874
4870
  }
4875
- ), A = R("");
4871
+ ), A = O("");
4876
4872
  le(() => {
4877
4873
  a.value && (A.value = window.getComputedStyle(a.value).zIndex);
4878
4874
  });
4879
- const T = O(() => {
4875
+ const T = R(() => {
4880
4876
  var $;
4881
4877
  return (($ = b.value.arrow) == null ? void 0 : $.x) ?? 0;
4882
- }), V = O(() => {
4878
+ }), V = R(() => {
4883
4879
  var $;
4884
4880
  return (($ = b.value.arrow) == null ? void 0 : $.y) ?? 0;
4885
4881
  });
4886
- return La({
4882
+ return za({
4887
4883
  placedSide: C,
4888
4884
  onArrowChange: ($) => d.value = $,
4889
4885
  arrowX: T,
4890
4886
  arrowY: V,
4891
- shouldHideArrow: E
4887
+ shouldHideArrow: S
4892
4888
  }), ($, W) => {
4893
4889
  var _, H, L;
4894
4890
  return k(), D("div", {
@@ -4925,7 +4921,7 @@ const Na = {
4925
4921
  animation: f(w) ? void 0 : "none"
4926
4922
  }
4927
4923
  }), {
4928
- default: S(() => [
4924
+ default: E(() => [
4929
4925
  M($.$slots, "default")
4930
4926
  ]),
4931
4927
  _: 3
@@ -4933,7 +4929,7 @@ const Na = {
4933
4929
  ], 4);
4934
4930
  };
4935
4931
  }
4936
- }), Fa = /* @__PURE__ */ P({
4932
+ }), ja = /* @__PURE__ */ P({
4937
4933
  __name: "VisuallyHidden",
4938
4934
  props: {
4939
4935
  asChild: { type: Boolean },
@@ -4958,30 +4954,30 @@ const Na = {
4958
4954
  wordWrap: "normal"
4959
4955
  }
4960
4956
  }, {
4961
- default: S(() => [
4957
+ default: E(() => [
4962
4958
  M(t.$slots, "default")
4963
4959
  ]),
4964
4960
  _: 3
4965
4961
  }, 8, ["as", "as-child"]));
4966
4962
  }
4967
- }), za = "data-radix-vue-collection-item", [mn, Wa] = ne("CollectionProvider");
4968
- function ja(e = za) {
4969
- const t = R(/* @__PURE__ */ new Map()), n = R(), o = Wa({
4963
+ }), qa = "data-radix-vue-collection-item", [mn, Ha] = ne("CollectionProvider");
4964
+ function Ua(e = qa) {
4965
+ const t = O(/* @__PURE__ */ new Map()), n = O(), o = Ha({
4970
4966
  collectionRef: n,
4971
4967
  itemMap: t,
4972
4968
  attrName: e
4973
- }), { getItems: r } = Ao(o), l = O(() => Array.from(o.itemMap.value.values())), a = O(() => o.itemMap.value.size);
4969
+ }), { getItems: r } = Co(o), l = R(() => Array.from(o.itemMap.value.values())), a = R(() => o.itemMap.value.size);
4974
4970
  return { getItems: r, reactiveItems: l, itemMapSize: a };
4975
4971
  }
4976
- const qa = P({
4972
+ const Ga = P({
4977
4973
  name: "CollectionSlot",
4978
4974
  setup(e, { slots: t }) {
4979
- const n = mn(), { primitiveElement: o, currentElement: r } = yo();
4975
+ const n = mn(), { primitiveElement: o, currentElement: r } = go();
4980
4976
  return Z(r, () => {
4981
4977
  n.collectionRef.value = r.value;
4982
4978
  }), () => we(fn, { ref: o }, t);
4983
4979
  }
4984
- }), Ha = P({
4980
+ }), Ka = P({
4985
4981
  name: "CollectionItem",
4986
4982
  inheritAttrs: !1,
4987
4983
  props: {
@@ -4991,16 +4987,16 @@ const qa = P({
4991
4987
  }
4992
4988
  },
4993
4989
  setup(e, { slots: t, attrs: n }) {
4994
- const o = mn(), { primitiveElement: r, currentElement: l } = yo();
4990
+ const o = mn(), { primitiveElement: r, currentElement: l } = go();
4995
4991
  return le((a) => {
4996
4992
  if (l.value) {
4997
- const i = zo(l.value);
4993
+ const i = Fo(l.value);
4998
4994
  o.itemMap.value.set(i, { ref: l.value, value: e.value }), a(() => o.itemMap.value.delete(i));
4999
4995
  }
5000
4996
  }), () => we(fn, { ...n, [o.attrName]: "", ref: r }, t);
5001
4997
  }
5002
4998
  });
5003
- function Ao(e) {
4999
+ function Co(e) {
5004
5000
  const t = e ?? mn();
5005
5001
  return { getItems: () => {
5006
5002
  const n = t.collectionRef.value;
@@ -5012,16 +5008,16 @@ function Ao(e) {
5012
5008
  );
5013
5009
  } };
5014
5010
  }
5015
- function Ua(e) {
5011
+ function Xa(e) {
5016
5012
  const t = At({
5017
- nonce: R()
5013
+ nonce: O()
5018
5014
  });
5019
- return O(() => {
5015
+ return R(() => {
5020
5016
  var n;
5021
5017
  return (e == null ? void 0 : e.value) || ((n = t.nonce) == null ? void 0 : n.value);
5022
5018
  });
5023
5019
  }
5024
- const Ga = "rovingFocusGroup.onEntryFocus", Ka = { bubbles: !1, cancelable: !0 }, Xa = {
5020
+ const Ya = "rovingFocusGroup.onEntryFocus", Ja = { bubbles: !1, cancelable: !0 }, Qa = {
5025
5021
  ArrowLeft: "prev",
5026
5022
  ArrowUp: "prev",
5027
5023
  ArrowRight: "next",
@@ -5031,24 +5027,24 @@ const Ga = "rovingFocusGroup.onEntryFocus", Ka = { bubbles: !1, cancelable: !0 }
5031
5027
  PageDown: "last",
5032
5028
  End: "last"
5033
5029
  };
5034
- function Ya(e, t) {
5030
+ function Za(e, t) {
5035
5031
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
5036
5032
  }
5037
- function Ja(e, t, n) {
5038
- const o = Ya(e.key, n);
5033
+ function ei(e, t, n) {
5034
+ const o = Za(e.key, n);
5039
5035
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
5040
- return Xa[o];
5036
+ return Qa[o];
5041
5037
  }
5042
- function ko(e, t = !1) {
5038
+ function Ao(e, t = !1) {
5043
5039
  const n = re();
5044
5040
  for (const o of e)
5045
5041
  if (o === n || (o.focus({ preventScroll: t }), re() !== n))
5046
5042
  return;
5047
5043
  }
5048
- function Qa(e, t) {
5044
+ function ti(e, t) {
5049
5045
  return e.map((n, o) => e[(t + o) % e.length]);
5050
5046
  }
5051
- const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5047
+ const [ni, oi] = ne("RovingFocusGroup"), ri = /* @__PURE__ */ P({
5052
5048
  __name: "RovingFocusGroup",
5053
5049
  props: {
5054
5050
  orientation: { default: void 0 },
@@ -5065,18 +5061,18 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5065
5061
  const o = e, r = n, { loop: l, orientation: a, dir: i } = Ae(o), d = un(i), c = Ye(o, "currentTabStopId", r, {
5066
5062
  defaultValue: o.defaultCurrentTabStopId,
5067
5063
  passive: o.currentTabStopId === void 0
5068
- }), s = R(!1), u = R(!1), m = R(0), { getItems: p } = ja();
5064
+ }), s = O(!1), u = O(!1), m = O(0), { getItems: p } = Ua();
5069
5065
  function v(h) {
5070
5066
  const y = !u.value;
5071
5067
  if (h.currentTarget && h.target === h.currentTarget && y && !s.value) {
5072
- const w = new CustomEvent(Ga, Ka);
5068
+ const w = new CustomEvent(Ya, Ja);
5073
5069
  if (h.currentTarget.dispatchEvent(w), r("entryFocus", w), !w.defaultPrevented) {
5074
5070
  const b = p().map((A) => A.ref).filter((A) => A.dataset.disabled !== ""), C = b.find((A) => A.getAttribute("data-active") === "true"), x = b.find(
5075
5071
  (A) => A.id === c.value
5076
- ), E = [C, x, ...b].filter(
5072
+ ), S = [C, x, ...b].filter(
5077
5073
  Boolean
5078
5074
  );
5079
- ko(E, o.preventScrollOnEntryFocus);
5075
+ Ao(S, o.preventScrollOnEntryFocus);
5080
5076
  }
5081
5077
  }
5082
5078
  u.value = !1;
@@ -5088,7 +5084,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5088
5084
  }
5089
5085
  return t({
5090
5086
  getItems: p
5091
- }), ei({
5087
+ }), oi({
5092
5088
  loop: l,
5093
5089
  dir: d,
5094
5090
  orientation: a,
@@ -5105,8 +5101,8 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5105
5101
  onFocusableItemRemove: () => {
5106
5102
  m.value--;
5107
5103
  }
5108
- }), (h, y) => (k(), B(f(qa), null, {
5109
- default: S(() => [
5104
+ }), (h, y) => (k(), B(f(Ga), null, {
5105
+ default: E(() => [
5110
5106
  N(f(q), {
5111
5107
  tabindex: s.value || m.value === 0 ? -1 : 0,
5112
5108
  "data-orientation": f(a),
@@ -5119,7 +5115,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5119
5115
  onFocus: v,
5120
5116
  onBlur: y[1] || (y[1] = (w) => s.value = !1)
5121
5117
  }, {
5122
- default: S(() => [
5118
+ default: E(() => [
5123
5119
  M(h.$slots, "default")
5124
5120
  ]),
5125
5121
  _: 3
@@ -5128,7 +5124,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5128
5124
  _: 3
5129
5125
  }));
5130
5126
  }
5131
- }), ni = /* @__PURE__ */ P({
5127
+ }), li = /* @__PURE__ */ P({
5132
5128
  __name: "RovingFocusItem",
5133
5129
  props: {
5134
5130
  tabStopId: {},
@@ -5139,10 +5135,10 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5139
5135
  as: { default: "span" }
5140
5136
  },
5141
5137
  setup(e) {
5142
- const t = e, n = Za(), o = O(() => t.tabStopId || cn()), r = O(
5138
+ const t = e, n = ni(), o = R(() => t.tabStopId || cn()), r = R(
5143
5139
  () => n.currentTabStopId.value === o.value
5144
- ), { getItems: l } = Ao();
5145
- ae(() => {
5140
+ ), { getItems: l } = Co();
5141
+ de(() => {
5146
5142
  t.focusable && n.onFocusableItemAdd();
5147
5143
  }), Xt(() => {
5148
5144
  t.focusable && n.onFocusableItemRemove();
@@ -5154,7 +5150,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5154
5150
  }
5155
5151
  if (i.target !== i.currentTarget)
5156
5152
  return;
5157
- const d = Ja(
5153
+ const d = ei(
5158
5154
  i,
5159
5155
  n.orientation.value,
5160
5156
  n.dir.value
@@ -5171,13 +5167,13 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5171
5167
  const s = c.indexOf(
5172
5168
  i.currentTarget
5173
5169
  );
5174
- c = n.loop.value ? Qa(c, s + 1) : c.slice(s + 1);
5170
+ c = n.loop.value ? ti(c, s + 1) : c.slice(s + 1);
5175
5171
  }
5176
- oe(() => ko(c));
5172
+ oe(() => Ao(c));
5177
5173
  }
5178
5174
  }
5179
- return (i, d) => (k(), B(f(Ha), null, {
5180
- default: S(() => [
5175
+ return (i, d) => (k(), B(f(Ka), null, {
5176
+ default: E(() => [
5181
5177
  N(f(q), {
5182
5178
  tabindex: r.value ? 0 : -1,
5183
5179
  "data-orientation": f(n).orientation.value,
@@ -5191,7 +5187,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5191
5187
  onFocus: d[1] || (d[1] = (c) => f(n).onItemFocus(o.value)),
5192
5188
  onKeydown: a
5193
5189
  }, {
5194
- default: S(() => [
5190
+ default: E(() => [
5195
5191
  M(i.$slots, "default")
5196
5192
  ]),
5197
5193
  _: 3
@@ -5200,7 +5196,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5200
5196
  _: 3
5201
5197
  }));
5202
5198
  }
5203
- }), oi = /* @__PURE__ */ P({
5199
+ }), ai = /* @__PURE__ */ P({
5204
5200
  __name: "Label",
5205
5201
  props: {
5206
5202
  for: {},
@@ -5214,13 +5210,13 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5214
5210
  !r.defaultPrevented && r.detail > 1 && r.preventDefault();
5215
5211
  })
5216
5212
  }), {
5217
- default: S(() => [
5213
+ default: E(() => [
5218
5214
  M(n.$slots, "default")
5219
5215
  ]),
5220
5216
  _: 3
5221
5217
  }, 16));
5222
5218
  }
5223
- }), [ri, li] = ne("RadioGroupRoot"), ai = /* @__PURE__ */ P({
5219
+ }), [ii, si] = ne("RadioGroupRoot"), ui = /* @__PURE__ */ P({
5224
5220
  __name: "RadioGroupRoot",
5225
5221
  props: {
5226
5222
  modelValue: {},
@@ -5240,7 +5236,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5240
5236
  defaultValue: n.defaultValue,
5241
5237
  passive: n.modelValue === void 0
5242
5238
  }), { disabled: a, loop: i, orientation: d, name: c, required: s, dir: u } = Ae(n), m = un(u);
5243
- return li({
5239
+ return si({
5244
5240
  modelValue: l,
5245
5241
  changeModelValue: (p) => {
5246
5242
  l.value = p;
@@ -5250,13 +5246,13 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5250
5246
  orientation: d,
5251
5247
  name: c == null ? void 0 : c.value,
5252
5248
  required: s
5253
- }), (p, v) => (k(), B(f(ti), {
5249
+ }), (p, v) => (k(), B(f(ri), {
5254
5250
  "as-child": "",
5255
5251
  orientation: f(d),
5256
5252
  dir: f(m),
5257
5253
  loop: f(i)
5258
5254
  }, {
5259
- default: S(() => [
5255
+ default: E(() => [
5260
5256
  N(f(q), {
5261
5257
  ref: f(r),
5262
5258
  role: "radiogroup",
@@ -5269,7 +5265,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5269
5265
  dir: f(m),
5270
5266
  name: f(c)
5271
5267
  }, {
5272
- default: S(() => [
5268
+ default: E(() => [
5273
5269
  M(p.$slots, "default", { modelValue: f(l) })
5274
5270
  ]),
5275
5271
  _: 3
@@ -5278,7 +5274,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5278
5274
  _: 3
5279
5275
  }, 8, ["orientation", "dir", "loop"]));
5280
5276
  }
5281
- }), ii = ["value", "checked", "name", "disabled", "required"], si = /* @__PURE__ */ P({
5277
+ }), di = ["value", "checked", "name", "disabled", "required"], ci = /* @__PURE__ */ P({
5282
5278
  __name: "Radio",
5283
5279
  props: {
5284
5280
  id: {},
@@ -5294,7 +5290,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5294
5290
  setup(e, { emit: t }) {
5295
5291
  const n = e, o = Ye(n, "checked", t, {
5296
5292
  passive: n.checked === void 0
5297
- }), { value: r } = Ae(n), { forwardRef: l, currentElement: a } = G(), i = dn(a), d = O(() => {
5293
+ }), { value: r } = Ae(n), { forwardRef: l, currentElement: a } = G(), i = dn(a), d = R(() => {
5298
5294
  var s;
5299
5295
  return n.id && a.value ? ((s = document.querySelector(`[for="${n.id}"]`)) == null ? void 0 : s.innerText) ?? n.value : void 0;
5300
5296
  });
@@ -5318,7 +5314,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5318
5314
  name: s.name,
5319
5315
  onClick: be(c, ["stop"])
5320
5316
  }), {
5321
- default: S(() => [
5317
+ default: E(() => [
5322
5318
  M(s.$slots, "default", { checked: f(o) }),
5323
5319
  f(i) ? (k(), D("input", {
5324
5320
  key: 0,
@@ -5337,12 +5333,12 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5337
5333
  opacity: 0,
5338
5334
  margin: 0
5339
5335
  }
5340
- }, null, 8, ii)) : Y("", !0)
5336
+ }, null, 8, di)) : Y("", !0)
5341
5337
  ]),
5342
5338
  _: 3
5343
5339
  }, 16, ["id", "type", "as", "aria-checked", "aria-label", "as-child", "disabled", "data-state", "data-disabled", "value", "required", "name"]));
5344
5340
  }
5345
- }), [ui, di] = ne("RadioGroupItem"), ci = /* @__PURE__ */ P({
5341
+ }), [fi, pi] = ne("RadioGroupItem"), mi = /* @__PURE__ */ P({
5346
5342
  inheritAttrs: !1,
5347
5343
  __name: "RadioGroupItem",
5348
5344
  props: {
@@ -5355,12 +5351,12 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5355
5351
  as: { default: "button" }
5356
5352
  },
5357
5353
  setup(e) {
5358
- const t = e, { forwardRef: n, currentElement: o } = G(), r = ri(), l = O(() => r.disabled.value || t.disabled), a = O(() => r.required.value || t.required), i = O(() => {
5354
+ const t = e, { forwardRef: n, currentElement: o } = G(), r = ii(), l = R(() => r.disabled.value || t.disabled), a = R(() => r.required.value || t.required), i = R(() => {
5359
5355
  var u;
5360
5356
  return ((u = r.modelValue) == null ? void 0 : u.value) === t.value;
5361
5357
  });
5362
- di({ disabled: l, checked: i });
5363
- const d = R(!1), c = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
5358
+ pi({ disabled: l, checked: i });
5359
+ const d = O(!1), c = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
5364
5360
  ht("keydown", (u) => {
5365
5361
  c.includes(u.key) && (d.value = !0);
5366
5362
  }), ht("keyup", () => {
@@ -5372,25 +5368,25 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5372
5368
  d.value && ((u = o.value) == null || u.click());
5373
5369
  }, 0);
5374
5370
  }
5375
- return (u, m) => (k(), B(f(ni), {
5371
+ return (u, m) => (k(), B(f(li), {
5376
5372
  checked: i.value,
5377
5373
  disabled: l.value,
5378
5374
  "as-child": "",
5379
5375
  focusable: !l.value,
5380
5376
  active: i.value
5381
5377
  }, {
5382
- default: S(() => [
5383
- N(si, z({ ...u.$attrs, ...t }, {
5378
+ default: E(() => [
5379
+ N(ci, z({ ...u.$attrs, ...t }, {
5384
5380
  ref: f(n),
5385
5381
  checked: i.value,
5386
5382
  required: a.value,
5387
5383
  disabled: l.value,
5388
5384
  "onUpdate:checked": m[0] || (m[0] = (p) => f(r).changeModelValue(u.value)),
5389
- onKeydown: m[1] || (m[1] = Hn(be(() => {
5385
+ onKeydown: m[1] || (m[1] = qn(be(() => {
5390
5386
  }, ["prevent"]), ["enter"])),
5391
5387
  onFocus: s
5392
5388
  }), {
5393
- default: S(() => [
5389
+ default: E(() => [
5394
5390
  M(u.$slots, "default")
5395
5391
  ]),
5396
5392
  _: 3
@@ -5399,7 +5395,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5399
5395
  _: 3
5400
5396
  }, 8, ["checked", "disabled", "focusable", "active"]));
5401
5397
  }
5402
- }), fi = /* @__PURE__ */ P({
5398
+ }), vi = /* @__PURE__ */ P({
5403
5399
  __name: "RadioGroupIndicator",
5404
5400
  props: {
5405
5401
  forceMount: { type: Boolean },
@@ -5407,11 +5403,11 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5407
5403
  as: { default: "span" }
5408
5404
  },
5409
5405
  setup(e) {
5410
- const { forwardRef: t } = G(), n = ui();
5406
+ const { forwardRef: t } = G(), n = fi();
5411
5407
  return (o, r) => (k(), B(f(pn), {
5412
5408
  present: o.forceMount || f(n).checked.value
5413
5409
  }, {
5414
- default: S(() => [
5410
+ default: E(() => [
5415
5411
  N(f(q), z({
5416
5412
  ref: f(t),
5417
5413
  "data-state": f(n).checked.value ? "checked" : "unchecked",
@@ -5419,7 +5415,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5419
5415
  "as-child": o.asChild,
5420
5416
  as: o.as
5421
5417
  }, o.$attrs), {
5422
- default: S(() => [
5418
+ default: E(() => [
5423
5419
  M(o.$slots, "default")
5424
5420
  ]),
5425
5421
  _: 3
@@ -5428,7 +5424,7 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5428
5424
  _: 3
5429
5425
  }, 8, ["present"]));
5430
5426
  }
5431
- }), pi = ["default-value"], mi = /* @__PURE__ */ P({
5427
+ }), hi = ["default-value"], gi = /* @__PURE__ */ P({
5432
5428
  __name: "BubbleSelect",
5433
5429
  props: {
5434
5430
  autocomplete: {},
@@ -5442,28 +5438,28 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5442
5438
  value: {}
5443
5439
  },
5444
5440
  setup(e) {
5445
- const t = e, { value: n } = Ae(t), o = R();
5446
- return (r, l) => (k(), B(f(Fa), { "as-child": "" }, {
5447
- default: S(() => [
5448
- Vo(ft("select", z({
5441
+ const t = e, { value: n } = Ae(t), o = O();
5442
+ return (r, l) => (k(), B(f(ja), { "as-child": "" }, {
5443
+ default: E(() => [
5444
+ Mo(ft("select", z({
5449
5445
  ref_key: "selectElement",
5450
5446
  ref: o
5451
5447
  }, t, {
5452
- "onUpdate:modelValue": l[0] || (l[0] = (a) => No(n) ? n.value = a : null),
5448
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => Vo(n) ? n.value = a : null),
5453
5449
  "default-value": f(n)
5454
5450
  }), [
5455
5451
  M(r.$slots, "default")
5456
- ], 16, pi), [
5457
- [Lo, f(n)]
5452
+ ], 16, hi), [
5453
+ [No, f(n)]
5458
5454
  ])
5459
5455
  ]),
5460
5456
  _: 3
5461
5457
  }));
5462
5458
  }
5463
- }), vi = {
5459
+ }), yi = {
5464
5460
  key: 0,
5465
5461
  value: ""
5466
- }, [ze, Eo] = ne("SelectRoot"), [hi, gi] = ne("SelectRoot"), yi = /* @__PURE__ */ P({
5462
+ }, [ze, ko] = ne("SelectRoot"), [bi, wi] = ne("SelectRoot"), xi = /* @__PURE__ */ P({
5467
5463
  __name: "SelectRoot",
5468
5464
  props: {
5469
5465
  open: { type: Boolean, default: void 0 },
@@ -5484,11 +5480,11 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5484
5480
  }), l = Ye(n, "open", o, {
5485
5481
  defaultValue: n.defaultOpen,
5486
5482
  passive: n.open === void 0
5487
- }), a = R(), i = R(), d = R({
5483
+ }), a = O(), i = O(), d = O({
5488
5484
  x: 0,
5489
5485
  y: 0
5490
- }), c = R(!1), { required: s, disabled: u, dir: m } = Ae(n), p = un(m);
5491
- Eo({
5486
+ }), c = O(!1), { required: s, disabled: u, dir: m } = Ae(n), p = un(m);
5487
+ ko({
5492
5488
  triggerElement: a,
5493
5489
  onTriggerChange: (y) => {
5494
5490
  a.value = y;
@@ -5515,24 +5511,24 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5515
5511
  triggerPointerDownPosRef: d,
5516
5512
  disabled: u
5517
5513
  });
5518
- const v = dn(a), g = R(/* @__PURE__ */ new Set()), h = O(() => Array.from(g.value).map((y) => {
5514
+ const v = dn(a), g = O(/* @__PURE__ */ new Set()), h = R(() => Array.from(g.value).map((y) => {
5519
5515
  var w;
5520
5516
  return (w = y.props) == null ? void 0 : w.value;
5521
5517
  }).join(";"));
5522
- return gi({
5518
+ return wi({
5523
5519
  onNativeOptionAdd: (y) => {
5524
5520
  g.value.add(y);
5525
5521
  },
5526
5522
  onNativeOptionRemove: (y) => {
5527
5523
  g.value.delete(y);
5528
5524
  }
5529
- }), (y, w) => (k(), B(f(Ta), null, {
5530
- default: S(() => [
5525
+ }), (y, w) => (k(), B(f(Va), null, {
5526
+ default: E(() => [
5531
5527
  M(y.$slots, "default", {
5532
5528
  modelValue: f(r),
5533
5529
  open: f(l)
5534
5530
  }),
5535
- f(v) ? (k(), B(mi, z({ key: h.value }, y.$attrs, {
5531
+ f(v) ? (k(), B(gi, z({ key: h.value }, y.$attrs, {
5536
5532
  "aria-hidden": "true",
5537
5533
  tabindex: "-1",
5538
5534
  required: f(s),
@@ -5542,9 +5538,9 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5542
5538
  value: f(r),
5543
5539
  onChange: w[0] || (w[0] = (b) => r.value = b.target.value)
5544
5540
  }), {
5545
- default: S(() => [
5546
- f(r) === void 0 ? (k(), D("option", vi)) : Y("", !0),
5547
- (k(!0), D(se, null, rt(Array.from(g.value), (b) => (k(), B(Ht(b), z({ ref_for: !0 }, b.props, {
5541
+ default: E(() => [
5542
+ f(r) === void 0 ? (k(), D("option", yi)) : Y("", !0),
5543
+ (k(!0), D(ie, null, rt(Array.from(g.value), (b) => (k(), B(Ht(b), z({ ref_for: !0 }, b.props, {
5548
5544
  key: b.key ?? ""
5549
5545
  }), null, 16))), 128))
5550
5546
  ]),
@@ -5554,11 +5550,11 @@ const [Za, ei] = ne("RovingFocusGroup"), ti = /* @__PURE__ */ P({
5554
5550
  _: 3
5555
5551
  }));
5556
5552
  }
5557
- }), bi = [" ", "Enter", "ArrowUp", "ArrowDown"], wi = [" ", "Enter"], ie = 10;
5553
+ }), Ci = [" ", "Enter", "ArrowUp", "ArrowDown"], Ai = [" ", "Enter"], ae = 10;
5558
5554
  function So(e) {
5559
- return e === "" || Pl(e);
5555
+ return e === "" || _l(e);
5560
5556
  }
5561
- const xi = /* @__PURE__ */ P({
5557
+ const ki = /* @__PURE__ */ P({
5562
5558
  __name: "SelectTrigger",
5563
5559
  props: {
5564
5560
  disabled: { type: Boolean },
@@ -5566,14 +5562,14 @@ const xi = /* @__PURE__ */ P({
5566
5562
  as: { default: "button" }
5567
5563
  },
5568
5564
  setup(e) {
5569
- const t = e, n = ze(), o = O(() => {
5565
+ const t = e, n = ze(), o = R(() => {
5570
5566
  var p;
5571
5567
  return ((p = n.disabled) == null ? void 0 : p.value) || t.disabled;
5572
5568
  }), { forwardRef: r, currentElement: l } = G();
5573
- n.contentId || (n.contentId = cn(void 0, "radix-vue-select-content")), ae(() => {
5569
+ n.contentId || (n.contentId = cn(void 0, "radix-vue-select-content")), de(() => {
5574
5570
  n.triggerElement = l;
5575
5571
  });
5576
- const { injectCollection: a } = sn(), i = a(), { search: d, handleTypeaheadSearch: c, resetTypeahead: s } = go(i);
5572
+ const { injectCollection: a } = sn(), i = a(), { search: d, handleTypeaheadSearch: c, resetTypeahead: s } = ho(i);
5577
5573
  function u() {
5578
5574
  o.value || (n.onOpenChange(!0), s());
5579
5575
  }
@@ -5583,8 +5579,8 @@ const xi = /* @__PURE__ */ P({
5583
5579
  y: Math.round(p.pageY)
5584
5580
  };
5585
5581
  }
5586
- return (p, v) => (k(), B(f(Ia), { "as-child": "" }, {
5587
- default: S(() => {
5582
+ return (p, v) => (k(), B(f(Na), { "as-child": "" }, {
5583
+ default: E(() => {
5588
5584
  var g, h, y, w;
5589
5585
  return [
5590
5586
  N(f(q), {
@@ -5620,10 +5616,10 @@ const xi = /* @__PURE__ */ P({
5620
5616
  )),
5621
5617
  onKeydown: v[3] || (v[3] = (b) => {
5622
5618
  const C = f(d) !== "";
5623
- !(b.ctrlKey || b.altKey || b.metaKey) && b.key.length === 1 && C && b.key === " " || (f(c)(b.key), f(bi).includes(b.key) && (u(), b.preventDefault()));
5619
+ !(b.ctrlKey || b.altKey || b.metaKey) && b.key.length === 1 && C && b.key === " " || (f(c)(b.key), f(Ci).includes(b.key) && (u(), b.preventDefault()));
5624
5620
  })
5625
5621
  }, {
5626
- default: S(() => [
5622
+ default: E(() => [
5627
5623
  M(p.$slots, "default")
5628
5624
  ]),
5629
5625
  _: 3
@@ -5633,7 +5629,7 @@ const xi = /* @__PURE__ */ P({
5633
5629
  _: 3
5634
5630
  }));
5635
5631
  }
5636
- }), Ci = /* @__PURE__ */ P({
5632
+ }), Si = /* @__PURE__ */ P({
5637
5633
  __name: "SelectPortal",
5638
5634
  props: {
5639
5635
  to: {},
@@ -5642,14 +5638,14 @@ const xi = /* @__PURE__ */ P({
5642
5638
  },
5643
5639
  setup(e) {
5644
5640
  const t = e;
5645
- return (n, o) => (k(), B(f(pa), Ut(Gt(t)), {
5646
- default: S(() => [
5641
+ return (n, o) => (k(), B(f(ha), Ut(Gt(t)), {
5642
+ default: E(() => [
5647
5643
  M(n.$slots, "default")
5648
5644
  ]),
5649
5645
  _: 3
5650
5646
  }, 16));
5651
5647
  }
5652
- }), [Ai, ki] = ne("SelectItemAlignedPosition"), Ei = /* @__PURE__ */ P({
5648
+ }), [Ei, Ri] = ne("SelectItemAlignedPosition"), Oi = /* @__PURE__ */ P({
5653
5649
  inheritAttrs: !1,
5654
5650
  __name: "SelectItemAlignedPosition",
5655
5651
  props: {
@@ -5658,22 +5654,22 @@ const xi = /* @__PURE__ */ P({
5658
5654
  },
5659
5655
  emits: ["placed"],
5660
5656
  setup(e, { emit: t }) {
5661
- const n = e, o = t, { injectCollection: r } = sn(), l = ze(), a = Et(), i = r(), d = R(!1), c = R(!0), s = R(), { forwardRef: u, currentElement: m } = G(), { viewport: p, selectedItem: v, selectedItemText: g, focusSelectedItem: h } = a;
5657
+ const n = e, o = t, { injectCollection: r } = sn(), l = ze(), a = St(), i = r(), d = O(!1), c = O(!0), s = O(), { forwardRef: u, currentElement: m } = G(), { viewport: p, selectedItem: v, selectedItemText: g, focusSelectedItem: h } = a;
5662
5658
  function y() {
5663
5659
  if (l.triggerElement.value && l.valueElement.value && s.value && m.value && p != null && p.value && v != null && v.value && g != null && g.value) {
5664
- const C = l.triggerElement.value.getBoundingClientRect(), x = m.value.getBoundingClientRect(), E = l.valueElement.value.getBoundingClientRect(), A = g.value.getBoundingClientRect();
5660
+ const C = l.triggerElement.value.getBoundingClientRect(), x = m.value.getBoundingClientRect(), S = l.valueElement.value.getBoundingClientRect(), A = g.value.getBoundingClientRect();
5665
5661
  if (l.dir.value !== "rtl") {
5666
- const _e = A.left - x.left, he = E.left - _e, Ze = C.left - he, Te = C.width + Ze, Rt = Math.max(Te, x.width), Ot = window.innerWidth - ie, Pt = Tn(he, ie, Math.max(ie, Ot - Rt));
5662
+ const _e = A.left - x.left, he = S.left - _e, Ze = C.left - he, Te = C.width + Ze, Rt = Math.max(Te, x.width), Ot = window.innerWidth - ae, Pt = _n(he, ae, Math.max(ae, Ot - Rt));
5667
5663
  s.value.style.minWidth = `${Te}px`, s.value.style.left = `${Pt}px`;
5668
5664
  } else {
5669
- const _e = x.right - A.right, he = window.innerWidth - E.right - _e, Ze = window.innerWidth - C.right - he, Te = C.width + Ze, Rt = Math.max(Te, x.width), Ot = window.innerWidth - ie, Pt = Tn(
5665
+ const _e = x.right - A.right, he = window.innerWidth - S.right - _e, Ze = window.innerWidth - C.right - he, Te = C.width + Ze, Rt = Math.max(Te, x.width), Ot = window.innerWidth - ae, Pt = _n(
5670
5666
  he,
5671
- ie,
5672
- Math.max(ie, Ot - Rt)
5667
+ ae,
5668
+ Math.max(ae, Ot - Rt)
5673
5669
  );
5674
5670
  s.value.style.minWidth = `${Te}px`, s.value.style.right = `${Pt}px`;
5675
5671
  }
5676
- const T = i.value, V = window.innerHeight - ie * 2, $ = p.value.scrollHeight, W = window.getComputedStyle(m.value), _ = Number.parseInt(
5672
+ const T = i.value, V = window.innerHeight - ae * 2, $ = p.value.scrollHeight, W = window.getComputedStyle(m.value), _ = Number.parseInt(
5677
5673
  W.borderTopWidth,
5678
5674
  10
5679
5675
  ), H = Number.parseInt(W.paddingTop, 10), L = Number.parseInt(
@@ -5688,13 +5684,13 @@ const xi = /* @__PURE__ */ P({
5688
5684
  ), U = window.getComputedStyle(p.value), X = Number.parseInt(U.paddingTop, 10), We = Number.parseInt(
5689
5685
  U.paddingBottom,
5690
5686
  10
5691
- ), Q = C.top + C.height / 2 - ie, Po = V - Q, St = v.value.offsetHeight / 2, $o = v.value.offsetTop + St, at = _ + H + $o, Bo = j - at;
5687
+ ), Q = C.top + C.height / 2 - ae, Oo = V - Q, Et = v.value.offsetHeight / 2, Po = v.value.offsetTop + Et, at = _ + H + Po, $o = j - at;
5692
5688
  if (at <= Q) {
5693
5689
  const _e = v.value === T[T.length - 1];
5694
5690
  s.value.style.bottom = "0px";
5695
5691
  const he = m.value.clientHeight - p.value.offsetTop - p.value.offsetHeight, Ze = Math.max(
5696
- Po,
5697
- St + (_e ? We : 0) + he + L
5692
+ Oo,
5693
+ Et + (_e ? We : 0) + he + L
5698
5694
  ), Te = at + Ze;
5699
5695
  s.value.style.height = `${Te}px`;
5700
5696
  } else {
@@ -5702,21 +5698,21 @@ const xi = /* @__PURE__ */ P({
5702
5698
  s.value.style.top = "0px";
5703
5699
  const he = Math.max(
5704
5700
  Q,
5705
- _ + p.value.offsetTop + (_e ? X : 0) + St
5706
- ) + Bo;
5701
+ _ + p.value.offsetTop + (_e ? X : 0) + Et
5702
+ ) + $o;
5707
5703
  s.value.style.height = `${he}px`, p.value.scrollTop = at - Q + p.value.offsetTop;
5708
5704
  }
5709
- s.value.style.margin = `${ie}px 0`, s.value.style.minHeight = `${K}px`, s.value.style.maxHeight = `${V}px`, o("placed"), requestAnimationFrame(() => d.value = !0);
5705
+ s.value.style.margin = `${ae}px 0`, s.value.style.minHeight = `${K}px`, s.value.style.maxHeight = `${V}px`, o("placed"), requestAnimationFrame(() => d.value = !0);
5710
5706
  }
5711
5707
  }
5712
- const w = R("");
5713
- ae(async () => {
5708
+ const w = O("");
5709
+ de(async () => {
5714
5710
  await oe(), y(), m.value && (w.value = window.getComputedStyle(m.value).zIndex);
5715
5711
  });
5716
5712
  function b(C) {
5717
5713
  C && c.value === !0 && (y(), h == null || h(), c.value = !1);
5718
5714
  }
5719
- return ki({
5715
+ return Ri({
5720
5716
  contentWrapper: s,
5721
5717
  shouldExpandOnScrollRef: d,
5722
5718
  onScrollButtonChange: b
@@ -5740,14 +5736,14 @@ const xi = /* @__PURE__ */ P({
5740
5736
  maxHeight: "100%"
5741
5737
  }
5742
5738
  }, { ...C.$attrs, ...n }), {
5743
- default: S(() => [
5739
+ default: E(() => [
5744
5740
  M(C.$slots, "default")
5745
5741
  ]),
5746
5742
  _: 3
5747
5743
  }, 16)
5748
5744
  ], 4));
5749
5745
  }
5750
- }), Si = /* @__PURE__ */ P({
5746
+ }), Pi = /* @__PURE__ */ P({
5751
5747
  __name: "SelectPopperPosition",
5752
5748
  props: {
5753
5749
  side: {},
@@ -5756,7 +5752,7 @@ const xi = /* @__PURE__ */ P({
5756
5752
  alignOffset: {},
5757
5753
  avoidCollisions: { type: Boolean },
5758
5754
  collisionBoundary: {},
5759
- collisionPadding: { default: ie },
5755
+ collisionPadding: { default: ae },
5760
5756
  arrowPadding: {},
5761
5757
  sticky: {},
5762
5758
  hideWhenDetached: { type: Boolean },
@@ -5767,7 +5763,7 @@ const xi = /* @__PURE__ */ P({
5767
5763
  },
5768
5764
  setup(e) {
5769
5765
  const t = Fe(e);
5770
- return (n, o) => (k(), B(f(Da), z(f(t), { style: {
5766
+ return (n, o) => (k(), B(f(Wa), z(f(t), { style: {
5771
5767
  // Ensure border-box for floating-ui calculations
5772
5768
  boxSizing: "border-box",
5773
5769
  "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
@@ -5776,7 +5772,7 @@ const xi = /* @__PURE__ */ P({
5776
5772
  "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
5777
5773
  "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
5778
5774
  } }), {
5779
- default: S(() => [
5775
+ default: E(() => [
5780
5776
  M(n.$slots, "default")
5781
5777
  ]),
5782
5778
  _: 3
@@ -5789,7 +5785,7 @@ const xi = /* @__PURE__ */ P({
5789
5785
  },
5790
5786
  itemRefCallback: () => {
5791
5787
  }
5792
- }, [Et, Ri] = ne("SelectContent"), Oi = /* @__PURE__ */ P({
5788
+ }, [St, $i] = ne("SelectContent"), Bi = /* @__PURE__ */ P({
5793
5789
  __name: "SelectContentImpl",
5794
5790
  props: {
5795
5791
  position: { default: "item-aligned" },
@@ -5812,12 +5808,12 @@ const xi = /* @__PURE__ */ P({
5812
5808
  emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
5813
5809
  setup(e, { emit: t }) {
5814
5810
  const n = e, o = t, r = ze();
5815
- ea(), Yl(n.bodyLock);
5816
- const { createCollection: l } = sn(), a = R();
5817
- la(a);
5818
- const i = l(a), { search: d, handleTypeaheadSearch: c } = go(i), s = R(), u = R(), m = R(), p = R(!1), v = R(!1);
5811
+ oa(), Zl(n.bodyLock);
5812
+ const { createCollection: l } = sn(), a = O();
5813
+ sa(a);
5814
+ const i = l(a), { search: d, handleTypeaheadSearch: c } = ho(i), s = O(), u = O(), m = O(), p = O(!1), v = O(!1);
5819
5815
  function g() {
5820
- u.value && a.value && Dn([u.value, a.value]);
5816
+ u.value && a.value && Ln([u.value, a.value]);
5821
5817
  }
5822
5818
  Z(p, () => {
5823
5819
  g();
@@ -5826,10 +5822,10 @@ const xi = /* @__PURE__ */ P({
5826
5822
  le((x) => {
5827
5823
  if (!a.value)
5828
5824
  return;
5829
- let E = { x: 0, y: 0 };
5825
+ let S = { x: 0, y: 0 };
5830
5826
  const A = (V) => {
5831
5827
  var $, W;
5832
- E = {
5828
+ S = {
5833
5829
  x: Math.abs(
5834
5830
  Math.round(V.pageX) - ((($ = y.value) == null ? void 0 : $.x) ?? 0)
5835
5831
  ),
@@ -5839,7 +5835,7 @@ const xi = /* @__PURE__ */ P({
5839
5835
  };
5840
5836
  }, T = (V) => {
5841
5837
  var $;
5842
- V.pointerType !== "touch" && (E.x <= 10 && E.y <= 10 ? V.preventDefault() : ($ = a.value) != null && $.contains(V.target) || h(!1), document.removeEventListener("pointermove", A), y.value = null);
5838
+ V.pointerType !== "touch" && (S.x <= 10 && S.y <= 10 ? V.preventDefault() : ($ = a.value) != null && $.contains(V.target) || h(!1), document.removeEventListener("pointermove", A), y.value = null);
5843
5839
  };
5844
5840
  y.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", T, {
5845
5841
  capture: !0,
@@ -5851,27 +5847,27 @@ const xi = /* @__PURE__ */ P({
5851
5847
  });
5852
5848
  });
5853
5849
  function w(x) {
5854
- const E = x.ctrlKey || x.altKey || x.metaKey;
5855
- if (x.key === "Tab" && x.preventDefault(), !E && x.key.length === 1 && c(x.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(x.key)) {
5850
+ const S = x.ctrlKey || x.altKey || x.metaKey;
5851
+ if (x.key === "Tab" && x.preventDefault(), !S && x.key.length === 1 && c(x.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(x.key)) {
5856
5852
  let A = i.value;
5857
5853
  if (["ArrowUp", "End"].includes(x.key) && (A = A.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(x.key)) {
5858
5854
  const T = x.target, V = A.indexOf(T);
5859
5855
  A = A.slice(V + 1);
5860
5856
  }
5861
- setTimeout(() => Dn(A)), x.preventDefault();
5857
+ setTimeout(() => Ln(A)), x.preventDefault();
5862
5858
  }
5863
5859
  }
5864
- const b = O(() => n.position === "popper" ? n : {}), C = Fe(b.value);
5865
- return Ri({
5860
+ const b = R(() => n.position === "popper" ? n : {}), C = Fe(b.value);
5861
+ return $i({
5866
5862
  content: a,
5867
5863
  viewport: s,
5868
5864
  onViewportChange: (x) => {
5869
5865
  s.value = x;
5870
5866
  },
5871
- itemRefCallback: (x, E, A) => {
5867
+ itemRefCallback: (x, S, A) => {
5872
5868
  var T, V;
5873
5869
  const $ = !v.value && !A;
5874
- (((T = r.modelValue) == null ? void 0 : T.value) !== void 0 && ((V = r.modelValue) == null ? void 0 : V.value) === E || $) && (u.value = x, $ && (v.value = !0));
5870
+ (((T = r.modelValue) == null ? void 0 : T.value) !== void 0 && ((V = r.modelValue) == null ? void 0 : V.value) === S || $) && (u.value = x, $ && (v.value = !0));
5875
5871
  },
5876
5872
  selectedItem: u,
5877
5873
  selectedItemText: m,
@@ -5879,41 +5875,41 @@ const xi = /* @__PURE__ */ P({
5879
5875
  var x;
5880
5876
  (x = a.value) == null || x.focus();
5881
5877
  },
5882
- itemTextRefCallback: (x, E, A) => {
5878
+ itemTextRefCallback: (x, S, A) => {
5883
5879
  var T, V;
5884
5880
  const $ = !v.value && !A;
5885
- (((T = r.modelValue) == null ? void 0 : T.value) !== void 0 && ((V = r.modelValue) == null ? void 0 : V.value) === E || $) && (m.value = x);
5881
+ (((T = r.modelValue) == null ? void 0 : T.value) !== void 0 && ((V = r.modelValue) == null ? void 0 : V.value) === S || $) && (m.value = x);
5886
5882
  },
5887
5883
  focusSelectedItem: g,
5888
5884
  position: n.position,
5889
5885
  isPositioned: p,
5890
5886
  searchRef: d
5891
- }), (x, E) => (k(), B(f(Sa), {
5887
+ }), (x, S) => (k(), B(f(Pa), {
5892
5888
  "as-child": "",
5893
- onMountAutoFocus: E[6] || (E[6] = be(() => {
5889
+ onMountAutoFocus: S[6] || (S[6] = be(() => {
5894
5890
  }, ["prevent"])),
5895
- onUnmountAutoFocus: E[7] || (E[7] = (A) => {
5891
+ onUnmountAutoFocus: S[7] || (S[7] = (A) => {
5896
5892
  var T;
5897
5893
  o("closeAutoFocus", A), !A.defaultPrevented && ((T = f(r).triggerElement.value) == null || T.focus({ preventScroll: !0 }), A.preventDefault());
5898
5894
  })
5899
5895
  }, {
5900
- default: S(() => [
5901
- N(f(ya), {
5896
+ default: E(() => [
5897
+ N(f(xa), {
5902
5898
  "as-child": "",
5903
5899
  "disable-outside-pointer-events": "",
5904
- onFocusOutside: E[2] || (E[2] = be(() => {
5900
+ onFocusOutside: S[2] || (S[2] = be(() => {
5905
5901
  }, ["prevent"])),
5906
- onDismiss: E[3] || (E[3] = (A) => f(r).onOpenChange(!1)),
5907
- onEscapeKeyDown: E[4] || (E[4] = (A) => o("escapeKeyDown", A)),
5908
- onPointerDownOutside: E[5] || (E[5] = (A) => o("pointerDownOutside", A))
5902
+ onDismiss: S[3] || (S[3] = (A) => f(r).onOpenChange(!1)),
5903
+ onEscapeKeyDown: S[4] || (S[4] = (A) => o("escapeKeyDown", A)),
5904
+ onPointerDownOutside: S[5] || (S[5] = (A) => o("pointerDownOutside", A))
5909
5905
  }, {
5910
- default: S(() => [
5906
+ default: E(() => [
5911
5907
  (k(), B(Ht(
5912
- x.position === "popper" ? Si : Ei
5908
+ x.position === "popper" ? Pi : Oi
5913
5909
  ), z({ ...x.$attrs, ...f(C) }, {
5914
5910
  id: f(r).contentId,
5915
5911
  ref: (A) => {
5916
- a.value = f(Ee)(A);
5912
+ a.value = f(Se)(A);
5917
5913
  },
5918
5914
  role: "listbox",
5919
5915
  "data-state": f(r).open.value ? "open" : "closed",
@@ -5925,12 +5921,12 @@ const xi = /* @__PURE__ */ P({
5925
5921
  // reset the outline by default as the content MAY get focused
5926
5922
  outline: "none"
5927
5923
  },
5928
- onContextmenu: E[0] || (E[0] = be(() => {
5924
+ onContextmenu: S[0] || (S[0] = be(() => {
5929
5925
  }, ["prevent"])),
5930
- onPlaced: E[1] || (E[1] = (A) => p.value = !0),
5926
+ onPlaced: S[1] || (S[1] = (A) => p.value = !0),
5931
5927
  onKeydown: w
5932
5928
  }), {
5933
- default: S(() => [
5929
+ default: E(() => [
5934
5930
  M(x.$slots, "default")
5935
5931
  ]),
5936
5932
  _: 3
@@ -5942,16 +5938,16 @@ const xi = /* @__PURE__ */ P({
5942
5938
  _: 3
5943
5939
  }));
5944
5940
  }
5945
- }), Pi = /* @__PURE__ */ P({
5941
+ }), _i = /* @__PURE__ */ P({
5946
5942
  inheritAttrs: !1,
5947
5943
  __name: "SelectProvider",
5948
5944
  props: {
5949
5945
  context: {}
5950
5946
  },
5951
5947
  setup(e) {
5952
- return Eo(e.context), (t, n) => M(t.$slots, "default");
5948
+ return ko(e.context), (t, n) => M(t.$slots, "default");
5953
5949
  }
5954
- }), $i = { key: 1 }, Bi = /* @__PURE__ */ P({
5950
+ }), Ti = { key: 1 }, Ii = /* @__PURE__ */ P({
5955
5951
  inheritAttrs: !1,
5956
5952
  __name: "SelectContent",
5957
5953
  props: {
@@ -5975,11 +5971,11 @@ const xi = /* @__PURE__ */ P({
5975
5971
  },
5976
5972
  emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
5977
5973
  setup(e, { emit: t }) {
5978
- const n = e, o = kt(n, t), r = ze(), l = R();
5979
- ae(() => {
5974
+ const n = e, o = kt(n, t), r = ze(), l = O();
5975
+ de(() => {
5980
5976
  l.value = new DocumentFragment();
5981
5977
  });
5982
- const a = R(), i = O(() => n.forceMount || r.open.value);
5978
+ const a = O(), i = R(() => n.forceMount || r.open.value);
5983
5979
  return (d, c) => {
5984
5980
  var s;
5985
5981
  return i.value ? (k(), B(f(pn), {
@@ -5988,19 +5984,19 @@ const xi = /* @__PURE__ */ P({
5988
5984
  ref: a,
5989
5985
  present: !0
5990
5986
  }, {
5991
- default: S(() => [
5992
- N(Oi, Ut(Gt({ ...f(o), ...d.$attrs })), {
5993
- default: S(() => [
5987
+ default: E(() => [
5988
+ N(Bi, Ut(Gt({ ...f(o), ...d.$attrs })), {
5989
+ default: E(() => [
5994
5990
  M(d.$slots, "default")
5995
5991
  ]),
5996
5992
  _: 3
5997
5993
  }, 16)
5998
5994
  ]),
5999
5995
  _: 3
6000
- }, 512)) : !((s = a.value) != null && s.present) && l.value ? (k(), D("div", $i, [
5996
+ }, 512)) : !((s = a.value) != null && s.present) && l.value ? (k(), D("div", Ti, [
6001
5997
  (k(), B(Kt, { to: l.value }, [
6002
- N(Pi, { context: f(r) }, {
6003
- default: S(() => [
5998
+ N(_i, { context: f(r) }, {
5999
+ default: E(() => [
6004
6000
  M(d.$slots, "default")
6005
6001
  ]),
6006
6002
  _: 3
@@ -6009,7 +6005,7 @@ const xi = /* @__PURE__ */ P({
6009
6005
  ])) : Y("", !0);
6010
6006
  };
6011
6007
  }
6012
- }), [Ro, _i] = ne("SelectItem"), Ti = /* @__PURE__ */ P({
6008
+ }), [Eo, Mi] = ne("SelectItem"), Vi = /* @__PURE__ */ P({
6013
6009
  __name: "SelectItem",
6014
6010
  props: {
6015
6011
  value: {},
@@ -6019,10 +6015,10 @@ const xi = /* @__PURE__ */ P({
6019
6015
  as: {}
6020
6016
  },
6021
6017
  setup(e) {
6022
- const t = e, { disabled: n } = Ae(t), o = ze(), r = Et(vn), { forwardRef: l, currentElement: a } = G(), i = O(() => {
6018
+ const t = e, { disabled: n } = Ae(t), o = ze(), r = St(vn), { forwardRef: l, currentElement: a } = G(), i = R(() => {
6023
6019
  var g;
6024
6020
  return ((g = o.modelValue) == null ? void 0 : g.value) === t.value;
6025
- }), d = R(!1), c = R(t.textValue ?? ""), s = cn(void 0, "radix-vue-select-item-text");
6021
+ }), d = O(!1), c = O(t.textValue ?? ""), s = cn(void 0, "radix-vue-select-item-text");
6026
6022
  async function u(g) {
6027
6023
  await oe(), !(g != null && g.defaultPrevented) && (n.value || (o.onValueChange(t.value), o.onOpenChange(!1)));
6028
6024
  }
@@ -6036,19 +6032,19 @@ const xi = /* @__PURE__ */ P({
6036
6032
  }
6037
6033
  async function v(g) {
6038
6034
  var h;
6039
- await oe(), !(g.defaultPrevented || ((h = r.searchRef) == null ? void 0 : h.value) !== "" && g.key === " ") && (wi.includes(g.key) && u(), g.key === " " && g.preventDefault());
6035
+ await oe(), !(g.defaultPrevented || ((h = r.searchRef) == null ? void 0 : h.value) !== "" && g.key === " ") && (Ai.includes(g.key) && u(), g.key === " " && g.preventDefault());
6040
6036
  }
6041
6037
  if (t.value === "")
6042
6038
  throw new Error(
6043
6039
  "A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
6044
6040
  );
6045
- return ae(() => {
6041
+ return de(() => {
6046
6042
  a.value && r.itemRefCallback(
6047
6043
  a.value,
6048
6044
  t.value,
6049
6045
  t.disabled
6050
6046
  );
6051
- }), _i({
6047
+ }), Mi({
6052
6048
  value: t.value,
6053
6049
  disabled: n,
6054
6050
  textId: s,
@@ -6081,31 +6077,31 @@ const xi = /* @__PURE__ */ P({
6081
6077
  onPointerleave: p,
6082
6078
  onKeydown: v
6083
6079
  }, {
6084
- default: S(() => [
6080
+ default: E(() => [
6085
6081
  M(g.$slots, "default")
6086
6082
  ]),
6087
6083
  _: 3
6088
6084
  }, 8, ["aria-labelledby", "data-highlighted", "aria-selected", "data-state", "aria-disabled", "data-disabled", "tabindex", "as", "as-child"]));
6089
6085
  }
6090
- }), Ii = /* @__PURE__ */ P({
6086
+ }), Ni = /* @__PURE__ */ P({
6091
6087
  __name: "SelectItemIndicator",
6092
6088
  props: {
6093
6089
  asChild: { type: Boolean },
6094
6090
  as: { default: "span" }
6095
6091
  },
6096
6092
  setup(e) {
6097
- const t = e, n = Ro();
6093
+ const t = e, n = Eo();
6098
6094
  return (o, r) => f(n).isSelected.value ? (k(), B(f(q), z({
6099
6095
  key: 0,
6100
6096
  "aria-hidden": "true"
6101
6097
  }, t), {
6102
- default: S(() => [
6098
+ default: E(() => [
6103
6099
  M(o.$slots, "default")
6104
6100
  ]),
6105
6101
  _: 3
6106
6102
  }, 16)) : Y("", !0);
6107
6103
  }
6108
- }), Mi = /* @__PURE__ */ P({
6104
+ }), Li = /* @__PURE__ */ P({
6109
6105
  inheritAttrs: !1,
6110
6106
  __name: "SelectItemText",
6111
6107
  props: {
@@ -6113,7 +6109,7 @@ const xi = /* @__PURE__ */ P({
6113
6109
  as: { default: "span" }
6114
6110
  },
6115
6111
  setup(e) {
6116
- const t = e, n = ze(), o = Et(vn), r = hi(), l = Ro(), { forwardRef: a, currentElement: i } = G(), d = O(() => {
6112
+ const t = e, n = ze(), o = St(vn), r = bi(), l = Eo(), { forwardRef: a, currentElement: i } = G(), d = R(() => {
6117
6113
  var c;
6118
6114
  return we("option", {
6119
6115
  key: l.value,
@@ -6122,20 +6118,20 @@ const xi = /* @__PURE__ */ P({
6122
6118
  textContent: (c = i.value) == null ? void 0 : c.textContent
6123
6119
  });
6124
6120
  });
6125
- return ae(() => {
6121
+ return de(() => {
6126
6122
  i.value && (l.onItemTextChange(i.value), o.itemTextRefCallback(
6127
6123
  i.value,
6128
6124
  l.value,
6129
6125
  l.disabled.value
6130
6126
  ), r.onNativeOptionAdd(d.value));
6131
- }), Un(() => {
6127
+ }), Hn(() => {
6132
6128
  r.onNativeOptionRemove(d.value);
6133
- }), (c, s) => (k(), D(se, null, [
6129
+ }), (c, s) => (k(), D(ie, null, [
6134
6130
  N(f(q), z({
6135
6131
  id: f(l).textId,
6136
6132
  ref: f(a)
6137
6133
  }, { ...t, ...c.$attrs }, { "data-item-text": "" }), {
6138
- default: S(() => [
6134
+ default: E(() => [
6139
6135
  M(c.$slots, "default")
6140
6136
  ]),
6141
6137
  _: 3
@@ -6148,7 +6144,7 @@ const xi = /* @__PURE__ */ P({
6148
6144
  ], 8, ["to"])) : Y("", !0)
6149
6145
  ], 64));
6150
6146
  }
6151
- }), Vi = /* @__PURE__ */ P({
6147
+ }), Di = /* @__PURE__ */ P({
6152
6148
  __name: "SelectViewport",
6153
6149
  props: {
6154
6150
  nonce: {},
@@ -6156,17 +6152,17 @@ const xi = /* @__PURE__ */ P({
6156
6152
  as: {}
6157
6153
  },
6158
6154
  setup(e) {
6159
- const t = e, { nonce: n } = Ae(t), o = Ua(n), r = Et(vn), l = r.position === "item-aligned" ? Ai() : void 0, { forwardRef: a, currentElement: i } = G();
6160
- ae(() => {
6155
+ const t = e, { nonce: n } = Ae(t), o = Xa(n), r = St(vn), l = r.position === "item-aligned" ? Ei() : void 0, { forwardRef: a, currentElement: i } = G();
6156
+ de(() => {
6161
6157
  r == null || r.onViewportChange(i.value);
6162
6158
  });
6163
- const d = R(0);
6159
+ const d = O(0);
6164
6160
  function c(s) {
6165
6161
  const u = s.currentTarget, { shouldExpandOnScrollRef: m, contentWrapper: p } = l ?? {};
6166
6162
  if (m != null && m.value && p != null && p.value) {
6167
6163
  const v = Math.abs(d.value - u.scrollTop);
6168
6164
  if (v > 0) {
6169
- const g = window.innerHeight - ie * 2, h = Number.parseFloat(
6165
+ const g = window.innerHeight - ae * 2, h = Number.parseFloat(
6170
6166
  p.value.style.minHeight
6171
6167
  ), y = Number.parseFloat(p.value.style.height), w = Math.max(h, y);
6172
6168
  if (w < g) {
@@ -6177,7 +6173,7 @@ const xi = /* @__PURE__ */ P({
6177
6173
  }
6178
6174
  d.value = u.scrollTop;
6179
6175
  }
6180
- return (s, u) => (k(), D(se, null, [
6176
+ return (s, u) => (k(), D(ie, null, [
6181
6177
  N(f(q), z({
6182
6178
  ref: f(a),
6183
6179
  "data-radix-select-viewport": "",
@@ -6193,7 +6189,7 @@ const xi = /* @__PURE__ */ P({
6193
6189
  },
6194
6190
  onScroll: c
6195
6191
  }), {
6196
- default: S(() => [
6192
+ default: E(() => [
6197
6193
  M(s.$slots, "default")
6198
6194
  ]),
6199
6195
  _: 3
@@ -6202,14 +6198,14 @@ const xi = /* @__PURE__ */ P({
6202
6198
  as: "style",
6203
6199
  nonce: f(o)
6204
6200
  }, {
6205
- default: S(() => [
6201
+ default: E(() => [
6206
6202
  Le(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")
6207
6203
  ]),
6208
6204
  _: 1
6209
6205
  }, 8, ["nonce"])
6210
6206
  ], 64));
6211
6207
  }
6212
- }), Ni = /* @__PURE__ */ P({
6208
+ }), Fi = /* @__PURE__ */ P({
6213
6209
  __name: "SelectValue",
6214
6210
  props: {
6215
6211
  placeholder: { default: "" },
@@ -6217,12 +6213,12 @@ const xi = /* @__PURE__ */ P({
6217
6213
  as: { default: "span" }
6218
6214
  },
6219
6215
  setup(e) {
6220
- const { forwardRef: t, currentElement: n } = G(), o = ze(), r = To();
6221
- return Io(() => {
6216
+ const { forwardRef: t, currentElement: n } = G(), o = ze(), r = _o();
6217
+ return To(() => {
6222
6218
  var l;
6223
6219
  const a = !!Ct((l = r == null ? void 0 : r.default) == null ? void 0 : l.call(r)).length;
6224
6220
  o.onValueElementHasChildrenChange(a);
6225
- }), ae(() => {
6221
+ }), de(() => {
6226
6222
  o.valueElement = n;
6227
6223
  }), (l, a) => (k(), B(f(q), {
6228
6224
  ref: f(t),
@@ -6230,10 +6226,10 @@ const xi = /* @__PURE__ */ P({
6230
6226
  "as-child": l.asChild,
6231
6227
  style: { pointerEvents: "none" }
6232
6228
  }, {
6233
- default: S(() => {
6229
+ default: E(() => {
6234
6230
  var i;
6235
6231
  return [
6236
- f(So)((i = f(o).modelValue) == null ? void 0 : i.value) ? (k(), D(se, { key: 0 }, [
6232
+ f(So)((i = f(o).modelValue) == null ? void 0 : i.value) ? (k(), D(ie, { key: 0 }, [
6237
6233
  Le(fe(l.placeholder), 1)
6238
6234
  ], 64)) : M(l.$slots, "default", { key: 1 })
6239
6235
  ];
@@ -6241,7 +6237,7 @@ const xi = /* @__PURE__ */ P({
6241
6237
  _: 3
6242
6238
  }, 8, ["as", "as-child"]));
6243
6239
  }
6244
- }), Li = /* @__PURE__ */ P({
6240
+ }), zi = /* @__PURE__ */ P({
6245
6241
  __name: "SelectIcon",
6246
6242
  props: {
6247
6243
  asChild: { type: Boolean },
@@ -6253,7 +6249,7 @@ const xi = /* @__PURE__ */ P({
6253
6249
  as: t.as,
6254
6250
  "as-child": t.asChild
6255
6251
  }, {
6256
- default: S(() => [
6252
+ default: E(() => [
6257
6253
  M(t.$slots, "default", {}, () => [
6258
6254
  Le("▼")
6259
6255
  ])
@@ -6262,11 +6258,11 @@ const xi = /* @__PURE__ */ P({
6262
6258
  }, 8, ["as", "as-child"]));
6263
6259
  }
6264
6260
  });
6265
- function Di() {
6261
+ function Wi() {
6266
6262
  if (typeof matchMedia == "function")
6267
6263
  return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
6268
6264
  }
6269
- Di();
6265
+ Wi();
6270
6266
  /**
6271
6267
  * @license lucide-vue-next v0.300.0 - ISC
6272
6268
  *
@@ -6290,7 +6286,7 @@ var ct = {
6290
6286
  * This source code is licensed under the ISC license.
6291
6287
  * See the LICENSE file in the root directory of this source tree.
6292
6288
  */
6293
- const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hn = (e, t) => ({ size: n, strokeWidth: o = 2, absoluteStrokeWidth: r, color: l, class: a, ...i }, { attrs: d, slots: c }) => we(
6289
+ const ji = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hn = (e, t) => ({ size: n, strokeWidth: o = 2, absoluteStrokeWidth: r, color: l, class: a, ...i }, { attrs: d, slots: c }) => we(
6294
6290
  "svg",
6295
6291
  {
6296
6292
  ...ct,
@@ -6299,7 +6295,7 @@ const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hn = (
6299
6295
  stroke: l || ct.stroke,
6300
6296
  "stroke-width": r ? Number(o) * 24 / Number(n) : o,
6301
6297
  ...d,
6302
- class: ["lucide", `lucide-${Fi(e)}`],
6298
+ class: ["lucide", `lucide-${ji(e)}`],
6303
6299
  ...i
6304
6300
  },
6305
6301
  [
@@ -6313,14 +6309,14 @@ const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hn = (
6313
6309
  * This source code is licensed under the ISC license.
6314
6310
  * See the LICENSE file in the root directory of this source tree.
6315
6311
  */
6316
- const Oo = hn("CheckIcon", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
6312
+ const Ro = hn("CheckIcon", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
6317
6313
  /**
6318
6314
  * @license lucide-vue-next v0.300.0 - ISC
6319
6315
  *
6320
6316
  * This source code is licensed under the ISC license.
6321
6317
  * See the LICENSE file in the root directory of this source tree.
6322
6318
  */
6323
- const zi = hn("ChevronDownIcon", [
6319
+ const qi = hn("ChevronDownIcon", [
6324
6320
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
6325
6321
  ]);
6326
6322
  /**
@@ -6329,9 +6325,9 @@ const zi = hn("ChevronDownIcon", [
6329
6325
  * This source code is licensed under the ISC license.
6330
6326
  * See the LICENSE file in the root directory of this source tree.
6331
6327
  */
6332
- const Wi = hn("CircleIcon", [
6328
+ const Hi = hn("CircleIcon", [
6333
6329
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
6334
- ]), ji = /* @__PURE__ */ P({
6330
+ ]), Ui = /* @__PURE__ */ P({
6335
6331
  __name: "SelectTrigger",
6336
6332
  props: {
6337
6333
  disabled: { type: Boolean },
@@ -6340,18 +6336,18 @@ const Wi = hn("CircleIcon", [
6340
6336
  class: {}
6341
6337
  },
6342
6338
  setup(e) {
6343
- const t = e, n = O(() => {
6339
+ const t = e, n = R(() => {
6344
6340
  const { class: r, ...l } = t;
6345
6341
  return l;
6346
6342
  }), o = Fe(n);
6347
- return (r, l) => (k(), B(f(xi), z(f(o), {
6343
+ return (r, l) => (k(), B(f(ki), z(f(o), {
6348
6344
  class: f(me)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", t.class)
6349
6345
  }), {
6350
- default: S(() => [
6346
+ default: E(() => [
6351
6347
  M(r.$slots, "default"),
6352
- N(f(Li), { "as-child": "" }, {
6353
- default: S(() => [
6354
- N(f(zi), { class: "h-4 w-4 opacity-50" })
6348
+ N(f(zi), { "as-child": "" }, {
6349
+ default: E(() => [
6350
+ N(f(qi), { class: "h-4 w-4 opacity-50" })
6355
6351
  ]),
6356
6352
  _: 1
6357
6353
  })
@@ -6359,7 +6355,7 @@ const Wi = hn("CircleIcon", [
6359
6355
  _: 3
6360
6356
  }, 16, ["class"]));
6361
6357
  }
6362
- }), qi = /* @__PURE__ */ P({
6358
+ }), Gi = /* @__PURE__ */ P({
6363
6359
  __name: "SelectContent",
6364
6360
  props: {
6365
6361
  forceMount: { type: Boolean },
@@ -6382,20 +6378,20 @@ const Wi = hn("CircleIcon", [
6382
6378
  class: {}
6383
6379
  },
6384
6380
  setup(e) {
6385
- const t = e, n = O(() => {
6381
+ const t = e, n = R(() => {
6386
6382
  const { class: r, ...l } = t;
6387
6383
  return l;
6388
6384
  }), o = Fe(n);
6389
- return (r, l) => (k(), B(f(Ci), null, {
6390
- default: S(() => [
6391
- N(f(Bi), z(f(o), {
6385
+ return (r, l) => (k(), B(f(Si), null, {
6386
+ default: E(() => [
6387
+ N(f(Ii), z(f(o), {
6392
6388
  class: f(me)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t.class)
6393
6389
  }), {
6394
- default: S(() => [
6395
- N(f(Vi), {
6390
+ default: E(() => [
6391
+ N(f(Di), {
6396
6392
  class: ot(f(me)("p-1", e.position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"))
6397
6393
  }, {
6398
- default: S(() => [
6394
+ default: E(() => [
6399
6395
  M(r.$slots, "default")
6400
6396
  ]),
6401
6397
  _: 3
@@ -6407,7 +6403,7 @@ const Wi = hn("CircleIcon", [
6407
6403
  _: 3
6408
6404
  }));
6409
6405
  }
6410
- }), Hi = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Ui = /* @__PURE__ */ P({
6406
+ }), Ki = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Xi = /* @__PURE__ */ P({
6411
6407
  __name: "SelectItem",
6412
6408
  props: {
6413
6409
  value: {},
@@ -6418,27 +6414,27 @@ const Wi = hn("CircleIcon", [
6418
6414
  class: {}
6419
6415
  },
6420
6416
  setup(e) {
6421
- const t = e, n = O(() => {
6417
+ const t = e, n = R(() => {
6422
6418
  const { class: r, ...l } = t;
6423
6419
  return l;
6424
6420
  }), o = Fe(n);
6425
- return (r, l) => (k(), B(f(Ti), z(f(o), {
6421
+ return (r, l) => (k(), B(f(Vi), z(f(o), {
6426
6422
  class: f(me)(
6427
6423
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
6428
6424
  t.class
6429
6425
  )
6430
6426
  }), {
6431
- default: S(() => [
6432
- ft("span", Hi, [
6433
- N(f(Ii), null, {
6434
- default: S(() => [
6435
- N(f(Oo), { class: "h-4 w-4" })
6427
+ default: E(() => [
6428
+ ft("span", Ki, [
6429
+ N(f(Ni), null, {
6430
+ default: E(() => [
6431
+ N(f(Ro), { class: "h-4 w-4" })
6436
6432
  ]),
6437
6433
  _: 1
6438
6434
  })
6439
6435
  ]),
6440
- N(f(Mi), null, {
6441
- default: S(() => [
6436
+ N(f(Li), null, {
6437
+ default: E(() => [
6442
6438
  M(r.$slots, "default")
6443
6439
  ]),
6444
6440
  _: 3
@@ -6447,7 +6443,7 @@ const Wi = hn("CircleIcon", [
6447
6443
  _: 3
6448
6444
  }, 16, ["class"]));
6449
6445
  }
6450
- }), Gi = /* @__PURE__ */ P({
6446
+ }), Yi = /* @__PURE__ */ P({
6451
6447
  __name: "Select",
6452
6448
  props: {
6453
6449
  open: { type: Boolean },
@@ -6463,14 +6459,14 @@ const Wi = hn("CircleIcon", [
6463
6459
  emits: ["update:modelValue", "update:open"],
6464
6460
  setup(e, { emit: t }) {
6465
6461
  const r = kt(e, t);
6466
- return (l, a) => (k(), B(f(yi), Ut(Gt(f(r))), {
6467
- default: S(() => [
6462
+ return (l, a) => (k(), B(f(xi), Ut(Gt(f(r))), {
6463
+ default: E(() => [
6468
6464
  M(l.$slots, "default")
6469
6465
  ]),
6470
6466
  _: 3
6471
6467
  }, 16));
6472
6468
  }
6473
- }), Ki = /* @__PURE__ */ P({
6469
+ }), Ji = /* @__PURE__ */ P({
6474
6470
  __name: "SelectRenderer",
6475
6471
  props: {
6476
6472
  field: {},
@@ -6480,28 +6476,28 @@ const Wi = hn("CircleIcon", [
6480
6476
  emits: ["update:modelValue"],
6481
6477
  setup(e, { emit: t }) {
6482
6478
  const n = t;
6483
- return (o, r) => (k(), B(Gi, {
6479
+ return (o, r) => (k(), B(Yi, {
6484
6480
  disabled: e.field.disabled,
6485
6481
  name: e.field.name,
6486
6482
  modelValue: e.modelValue != null ? String(e.modelValue) : "",
6487
6483
  "onUpdate:modelValue": r[0] || (r[0] = (l) => n("update:modelValue", l))
6488
6484
  }, {
6489
- default: S(() => [
6490
- N(ji, { id: e.fieldId }, {
6491
- default: S(() => [
6492
- N(f(Ni), {
6485
+ default: E(() => [
6486
+ N(Ui, { id: e.fieldId }, {
6487
+ default: E(() => [
6488
+ N(f(Fi), {
6493
6489
  placeholder: e.field.placeholder || "Select an option"
6494
6490
  }, null, 8, ["placeholder"])
6495
6491
  ]),
6496
6492
  _: 1
6497
6493
  }, 8, ["id"]),
6498
- N(qi, null, {
6499
- default: S(() => [
6500
- (k(!0), D(se, null, rt(e.field.options, (l) => (k(), B(Ui, {
6494
+ N(Gi, null, {
6495
+ default: E(() => [
6496
+ (k(!0), D(ie, null, rt(e.field.options, (l) => (k(), B(Xi, {
6501
6497
  key: l.value,
6502
6498
  value: String(l.value)
6503
6499
  }, {
6504
- default: S(() => [
6500
+ default: E(() => [
6505
6501
  Le(fe(l.label), 1)
6506
6502
  ]),
6507
6503
  _: 2
@@ -6513,7 +6509,7 @@ const Wi = hn("CircleIcon", [
6513
6509
  _: 1
6514
6510
  }, 8, ["disabled", "name", "modelValue"]));
6515
6511
  }
6516
- }), Xi = /* @__PURE__ */ P({
6512
+ }), Qi = /* @__PURE__ */ P({
6517
6513
  __name: "Checkbox",
6518
6514
  props: {
6519
6515
  defaultChecked: { type: Boolean },
@@ -6529,18 +6525,18 @@ const Wi = hn("CircleIcon", [
6529
6525
  },
6530
6526
  emits: ["update:checked", "blur"],
6531
6527
  setup(e, { emit: t }) {
6532
- const n = e, o = t, r = O(() => {
6528
+ const n = e, o = t, r = R(() => {
6533
6529
  const { class: a, ...i } = n;
6534
6530
  return i;
6535
6531
  }), l = kt(r, o);
6536
- return (a, i) => (k(), B(f($a), z(f(l), {
6532
+ return (a, i) => (k(), B(f(Ta), z(f(l), {
6537
6533
  class: f(me)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", n.class),
6538
6534
  onBlur: i[0] || (i[0] = (d) => o("blur"))
6539
6535
  }), {
6540
- default: S(() => [
6541
- N(f(Ba), { class: "flex h-full w-full items-center justify-center text-current" }, {
6542
- default: S(() => [
6543
- N(f(Oo), { class: "h-4 w-4" })
6536
+ default: E(() => [
6537
+ N(f(Ia), { class: "flex h-full w-full items-center justify-center text-current" }, {
6538
+ default: E(() => [
6539
+ N(f(Ro), { class: "h-4 w-4" })
6544
6540
  ]),
6545
6541
  _: 1
6546
6542
  })
@@ -6557,20 +6553,20 @@ const Wi = hn("CircleIcon", [
6557
6553
  class: {}
6558
6554
  },
6559
6555
  setup(e) {
6560
- const t = e, n = O(() => {
6556
+ const t = e, n = R(() => {
6561
6557
  const { class: o, ...r } = t;
6562
6558
  return r;
6563
6559
  });
6564
- return (o, r) => (k(), B(f(oi), z(n.value, {
6560
+ return (o, r) => (k(), B(f(ai), z(n.value, {
6565
6561
  class: f(me)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t.class)
6566
6562
  }), {
6567
- default: S(() => [
6563
+ default: E(() => [
6568
6564
  M(o.$slots, "default")
6569
6565
  ]),
6570
6566
  _: 3
6571
6567
  }, 16, ["class"]));
6572
6568
  }
6573
- }), Yi = { class: "flex flex-wrap gap-4" }, Ji = /* @__PURE__ */ P({
6569
+ }), Zi = { class: "flex flex-wrap gap-4" }, es = /* @__PURE__ */ P({
6574
6570
  __name: "CheckboxRenderer",
6575
6571
  props: {
6576
6572
  field: {},
@@ -6589,12 +6585,12 @@ const Wi = hn("CircleIcon", [
6589
6585
  }
6590
6586
  o("update:modelValue", i);
6591
6587
  };
6592
- return (l, a) => (k(), D("div", Yi, [
6593
- (k(!0), D(se, null, rt(e.field.options, (i) => (k(), D("div", {
6588
+ return (l, a) => (k(), D("div", Zi, [
6589
+ (k(!0), D(ie, null, rt(e.field.options, (i) => (k(), D("div", {
6594
6590
  key: i.value,
6595
6591
  class: "flex items-center space-x-2"
6596
6592
  }, [
6597
- N(Xi, {
6593
+ N(Qi, {
6598
6594
  id: `checkbox-${e.field.name}-${i.value}`,
6599
6595
  disabled: e.field.disabled,
6600
6596
  checked: Array.isArray(e.modelValue) && e.modelValue.includes(i.value),
@@ -6604,7 +6600,7 @@ const Wi = hn("CircleIcon", [
6604
6600
  for: `checkbox-${e.field.name}-${i.value}`,
6605
6601
  class: "font-normal"
6606
6602
  }, {
6607
- default: S(() => [
6603
+ default: E(() => [
6608
6604
  Le(fe(i.label), 1)
6609
6605
  ]),
6610
6606
  _: 2
@@ -6612,7 +6608,7 @@ const Wi = hn("CircleIcon", [
6612
6608
  ]))), 128))
6613
6609
  ]));
6614
6610
  }
6615
- }), Qi = /* @__PURE__ */ P({
6611
+ }), ts = /* @__PURE__ */ P({
6616
6612
  __name: "RadioGroupItem",
6617
6613
  props: {
6618
6614
  id: {},
@@ -6625,17 +6621,17 @@ const Wi = hn("CircleIcon", [
6625
6621
  class: {}
6626
6622
  },
6627
6623
  setup(e) {
6628
- const t = e, n = O(() => {
6624
+ const t = e, n = R(() => {
6629
6625
  const { class: r, ...l } = t;
6630
6626
  return l;
6631
6627
  }), o = Fe(n);
6632
- return (r, l) => (k(), B(f(ci), z(f(o), {
6628
+ return (r, l) => (k(), B(f(mi), z(f(o), {
6633
6629
  class: f(me)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", t.class)
6634
6630
  }), {
6635
- default: S(() => [
6636
- N(f(fi), { class: "flex items-center justify-center" }, {
6637
- default: S(() => [
6638
- N(f(Wi), { class: "h-2.5 w-2.5 fill-current text-current" })
6631
+ default: E(() => [
6632
+ N(f(vi), { class: "flex items-center justify-center" }, {
6633
+ default: E(() => [
6634
+ N(f(Hi), { class: "h-2.5 w-2.5 fill-current text-current" })
6639
6635
  ]),
6640
6636
  _: 1
6641
6637
  })
@@ -6643,7 +6639,7 @@ const Wi = hn("CircleIcon", [
6643
6639
  _: 1
6644
6640
  }, 16, ["class"]));
6645
6641
  }
6646
- }), Zi = /* @__PURE__ */ P({
6642
+ }), ns = /* @__PURE__ */ P({
6647
6643
  __name: "RadioGroup",
6648
6644
  props: {
6649
6645
  modelValue: {},
@@ -6660,20 +6656,20 @@ const Wi = hn("CircleIcon", [
6660
6656
  },
6661
6657
  emits: ["update:modelValue"],
6662
6658
  setup(e, { emit: t }) {
6663
- const n = e, o = t, r = O(() => {
6659
+ const n = e, o = t, r = R(() => {
6664
6660
  const { class: a, ...i } = n;
6665
6661
  return i;
6666
6662
  }), l = kt(r, o);
6667
- return (a, i) => (k(), B(f(ai), z(f(l), {
6663
+ return (a, i) => (k(), B(f(ui), z(f(l), {
6668
6664
  class: f(me)("grid gap-2", n.class)
6669
6665
  }), {
6670
- default: S(() => [
6666
+ default: E(() => [
6671
6667
  M(a.$slots, "default")
6672
6668
  ]),
6673
6669
  _: 3
6674
6670
  }, 16, ["class"]));
6675
6671
  }
6676
- }), es = /* @__PURE__ */ P({
6672
+ }), os = /* @__PURE__ */ P({
6677
6673
  __name: "RadioRenderer",
6678
6674
  props: {
6679
6675
  field: {},
@@ -6683,19 +6679,19 @@ const Wi = hn("CircleIcon", [
6683
6679
  emits: ["update:modelValue"],
6684
6680
  setup(e, { emit: t }) {
6685
6681
  const n = t;
6686
- return (o, r) => (k(), B(Zi, {
6682
+ return (o, r) => (k(), B(ns, {
6687
6683
  class: "flex flex-wrap gap-4",
6688
6684
  disabled: e.field.disabled,
6689
6685
  name: e.field.name,
6690
6686
  modelValue: e.modelValue != null ? String(e.modelValue) : "",
6691
6687
  "onUpdate:modelValue": r[0] || (r[0] = (l) => n("update:modelValue", l))
6692
6688
  }, {
6693
- default: S(() => [
6694
- (k(!0), D(se, null, rt(e.field.options, (l) => (k(), D("div", {
6689
+ default: E(() => [
6690
+ (k(!0), D(ie, null, rt(e.field.options, (l) => (k(), D("div", {
6695
6691
  key: l.value,
6696
6692
  class: "flex items-center space-x-2"
6697
6693
  }, [
6698
- N(Qi, {
6694
+ N(ts, {
6699
6695
  id: `radio-${e.field.name}-${l.value}`,
6700
6696
  value: String(l.value)
6701
6697
  }, null, 8, ["id", "value"]),
@@ -6703,7 +6699,7 @@ const Wi = hn("CircleIcon", [
6703
6699
  for: `radio-${e.field.name}-${l.value}`,
6704
6700
  class: "font-normal"
6705
6701
  }, {
6706
- default: S(() => [
6702
+ default: E(() => [
6707
6703
  Le(fe(l.label), 1)
6708
6704
  ]),
6709
6705
  _: 2
@@ -6713,23 +6709,23 @@ const Wi = hn("CircleIcon", [
6713
6709
  _: 1
6714
6710
  }, 8, ["disabled", "name", "modelValue"]));
6715
6711
  }
6716
- }), Fn = {
6712
+ }), Dn = {
6717
6713
  text: He,
6718
6714
  number: He,
6719
6715
  password: He,
6720
6716
  email: He,
6721
6717
  date: He,
6722
- textarea: _r,
6723
- select: Ki,
6724
- checkbox: Ji,
6725
- radio: es
6726
- }, ts = {
6718
+ textarea: Mr,
6719
+ select: Ji,
6720
+ checkbox: es,
6721
+ radio: os
6722
+ }, rs = {
6727
6723
  key: 1,
6728
6724
  class: "text-[0.8rem] text-muted-foreground"
6729
- }, ns = {
6725
+ }, ls = {
6730
6726
  key: 2,
6731
6727
  class: "text-[0.8rem] font-medium text-destructive"
6732
- }, os = /* @__PURE__ */ P({
6728
+ }, as = /* @__PURE__ */ P({
6733
6729
  __name: "FormFieldRenderer",
6734
6730
  props: {
6735
6731
  field: {},
@@ -6739,9 +6735,9 @@ const Wi = hn("CircleIcon", [
6739
6735
  },
6740
6736
  emits: ["update:modelValue"],
6741
6737
  setup(e, { emit: t }) {
6742
- const n = e, o = t, r = O(() => `field-${n.field.name}`), l = O(
6743
- () => n.componentMap ? { ...Fn, ...n.componentMap } : Fn
6744
- ), a = O(
6738
+ const n = e, o = t, r = R(() => `field-${n.field.name}`), l = R(
6739
+ () => n.componentMap ? { ...Dn, ...n.componentMap } : Dn
6740
+ ), a = R(
6745
6741
  () => l.value[n.field.type] ?? He
6746
6742
  );
6747
6743
  return (i, d) => (k(), D("div", {
@@ -6751,7 +6747,7 @@ const Wi = hn("CircleIcon", [
6751
6747
  key: 0,
6752
6748
  for: r.value
6753
6749
  }, {
6754
- default: S(() => [
6750
+ default: E(() => [
6755
6751
  Le(fe(e.field.label), 1)
6756
6752
  ]),
6757
6753
  _: 1
@@ -6762,20 +6758,20 @@ const Wi = hn("CircleIcon", [
6762
6758
  modelValue: e.modelValue,
6763
6759
  "onUpdate:modelValue": d[0] || (d[0] = (c) => o("update:modelValue", c))
6764
6760
  }, null, 8, ["field", "fieldId", "modelValue"])),
6765
- e.field.description ? (k(), D("p", ts, fe(e.field.description), 1)) : Y("", !0),
6766
- e.error ? (k(), D("p", ns, fe(e.error), 1)) : Y("", !0)
6761
+ e.field.description ? (k(), D("p", rs, fe(e.field.description), 1)) : Y("", !0),
6762
+ e.error ? (k(), D("p", ls, fe(e.error), 1)) : Y("", !0)
6767
6763
  ], 2));
6768
6764
  }
6769
- }), rs = {
6765
+ }), is = {
6770
6766
  key: 0,
6771
6767
  class: "space-y-1"
6772
- }, ls = {
6768
+ }, ss = {
6773
6769
  key: 0,
6774
6770
  class: "text-2xl font-bold tracking-tight"
6775
- }, as = {
6771
+ }, us = {
6776
6772
  key: 1,
6777
6773
  class: "text-muted-foreground"
6778
- }, is = { class: "space-y-4" }, ss = ["disabled"], fs = /* @__PURE__ */ P({
6774
+ }, ds = { class: "space-y-4" }, cs = ["disabled"], vs = /* @__PURE__ */ P({
6779
6775
  __name: "DynamicForm",
6780
6776
  props: {
6781
6777
  schema: {},
@@ -6783,57 +6779,43 @@ const Wi = hn("CircleIcon", [
6783
6779
  },
6784
6780
  emits: ["submit"],
6785
6781
  setup(e, { emit: t }) {
6786
- const n = e, o = t, r = R({}), l = R({}), a = R(!1);
6787
- ae(() => {
6788
- r.value = Ko(n.schema.fields);
6789
- });
6790
- const i = (c, s) => {
6791
- r.value[c] = s;
6792
- const u = n.schema.fields.find((m) => m.name === c);
6793
- if (u) {
6794
- const m = bn(s, u);
6795
- l.value[c] = m || "";
6796
- }
6797
- }, d = () => {
6798
- a.value = !0;
6799
- const c = {};
6800
- let s = !1;
6801
- n.schema.fields.forEach((u) => {
6802
- const m = bn(r.value[u.name], u);
6803
- m && (c[u.name] = m, s = !0);
6804
- }), l.value = c, s || o("submit", { ...r.value }), a.value = !1;
6782
+ const n = e, o = t, r = O(Ko(n.schema.fields)), l = (i, d) => {
6783
+ r.value = Xo(n.schema.fields, r.value, i, d);
6784
+ }, a = () => {
6785
+ const i = Yo(r.value, !0), { state: d, hasError: c } = Jo(n.schema.fields, i);
6786
+ r.value = d, c || o("submit", { ...d.values });
6805
6787
  };
6806
- return (c, s) => (k(), D("form", {
6788
+ return (i, d) => (k(), D("form", {
6807
6789
  class: ot(["space-y-6", e.className]),
6808
- onSubmit: be(d, ["prevent"])
6790
+ onSubmit: be(a, ["prevent"])
6809
6791
  }, [
6810
- e.schema.title || e.schema.description ? (k(), D("div", rs, [
6811
- e.schema.title ? (k(), D("h2", ls, fe(e.schema.title), 1)) : Y("", !0),
6812
- e.schema.description ? (k(), D("p", as, fe(e.schema.description), 1)) : Y("", !0)
6792
+ e.schema.title || e.schema.description ? (k(), D("div", is, [
6793
+ e.schema.title ? (k(), D("h2", ss, fe(e.schema.title), 1)) : Y("", !0),
6794
+ e.schema.description ? (k(), D("p", us, fe(e.schema.description), 1)) : Y("", !0)
6813
6795
  ])) : Y("", !0),
6814
- ft("div", is, [
6815
- (k(!0), D(se, null, rt(e.schema.fields, (u) => (k(), D(se, {
6816
- key: u.id
6796
+ ft("div", ds, [
6797
+ (k(!0), D(ie, null, rt(e.schema.fields, (c) => (k(), D(ie, {
6798
+ key: c.id
6817
6799
  }, [
6818
- u.hidden ? Y("", !0) : (k(), B(os, {
6800
+ c.hidden ? Y("", !0) : (k(), B(as, {
6819
6801
  key: 0,
6820
- field: u,
6821
- "model-value": r.value[u.name],
6822
- error: l.value[u.name],
6823
- "onUpdate:modelValue": (m) => i(u.name, m)
6802
+ field: c,
6803
+ "model-value": r.value.values[c.name],
6804
+ error: r.value.errors[c.name],
6805
+ "onUpdate:modelValue": (s) => l(c.name, s)
6824
6806
  }, null, 8, ["field", "model-value", "error", "onUpdate:modelValue"]))
6825
6807
  ], 64))), 128))
6826
6808
  ]),
6827
6809
  ft("button", {
6828
6810
  type: "submit",
6829
- disabled: a.value,
6811
+ disabled: r.value.isSubmitting,
6830
6812
  class: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2 w-full"
6831
- }, fe(a.value ? "Submitting..." : e.schema.submitButtonText || "Submit"), 9, ss)
6813
+ }, fe(r.value.isSubmitting ? "Submitting..." : e.schema.submitButtonText || "Submit"), 9, cs)
6832
6814
  ], 34));
6833
6815
  }
6834
6816
  });
6835
6817
  export {
6836
- fs as DynamicForm,
6837
- os as FormFieldRenderer,
6838
- Fn as defaultComponentMap
6818
+ vs as DynamicForm,
6819
+ as as FormFieldRenderer,
6820
+ Dn as defaultComponentMap
6839
6821
  };