@deck9/ui 0.14.10 → 0.14.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/ui.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as $, computed as k, openBlock as E, createBlock as K, unref as P, mergeProps as ot, createCommentVNode as M, createElementBlock as T, normalizeClass as A, createElementVNode as I, toDisplayString as B, createVNode as F, ref as O, getCurrentInstance as In, onMounted as ee, watch as Z, Fragment as be, withDirectives as $n, vModelText as An, normalizeStyle as Nt, cloneVNode as Mn, h as Ce, inject as he, provide as ye, watchEffect as xe, nextTick as j, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as W, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Un, isRef as Hn, renderList as jt, createTextVNode as Wn } from "vue";
1
+ import { defineComponent as $, computed as k, openBlock as R, createBlock as K, unref as P, mergeProps as ot, createCommentVNode as M, createElementBlock as T, normalizeClass as A, createElementVNode as I, toDisplayString as B, createVNode as F, ref as O, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as $n, vModelText as An, normalizeStyle as Nt, cloneVNode as Mn, h as Ce, inject as he, provide as ye, watchEffect as xe, nextTick as j, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as W, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Un, isRef as Hn, renderList as jt, createTextVNode as Wn } from "vue";
2
2
  import { FontAwesomeIcon as Kn } from "@fortawesome/vue-fontawesome";
3
3
  import { library as lt } from "@fortawesome/fontawesome-svg-core";
4
- import * as h from "@fortawesome/free-solid-svg-icons";
4
+ import * as g from "@fortawesome/free-solid-svg-icons";
5
5
  import * as Se from "@fortawesome/free-brands-svg-icons";
6
- var zt = "fas", Ut = "numeric-input", Ht = 512, Wt = 512, Qe = [], Kt = "", Gt = "m409.445 111 2.112.004c34.066.146 46.74 3.848 59.517 10.681 13.037 6.973 23.268 17.204 30.24 30.241l.415.782c6.705 12.782 10.271 25.9 10.271 60.847v72.002c-.15 34.066-3.852 46.74-10.685 59.517-6.973 13.037-17.204 23.268-30.241 30.24l-.782.415C457.51 382.434 444.392 386 409.445 386h-306.89l-2.112-.004c-34.066-.146-46.74-3.848-59.517-10.681-13.037-6.973-23.268-17.204-30.24-30.241l-.415-.782C3.566 331.51 0 318.392 0 283.445v-69.89c0-35.66 3.713-48.592 10.685-61.629 6.973-13.037 17.204-23.268 30.241-30.24l.782-.415C54.49 114.566 67.608 111 102.555 111h306.89Zm.806 36H102.555l-2.387.005c-22.69.089-31.789 1.488-39.667 5.128l-.523.246c-.696.332-1.385.683-2.074 1.052-6.764 3.617-11.856 8.71-15.473 15.473l-.282.533c-4.492 8.62-6.116 17.401-6.148 43.312v71.502l.012 3.09c.161 24.044 1.9 32.308 6.418 40.755 3.617 6.764 8.71 11.856 15.473 15.473l.533.282c8.62 4.492 17.401 6.116 43.312 6.149h307.696c27.078 0 35.763-1.677 44.651-6.43 6.764-3.618 11.856-8.71 15.473-15.474l.282-.533c4.492-8.62 6.116-17.401 6.149-43.312v-70.696c0-27.078-1.677-35.763-6.43-44.651-3.618-6.764-8.71-11.856-15.474-15.473l-.533-.282c-8.62-4.492-17.401-6.116-43.312-6.149Zm-164.715 19c11.682 0 22.013 1.976 30.994 5.929 8.98 3.952 16.005 9.38 21.074 16.284 5.07 6.904 7.578 14.797 7.527 23.677.103 8.829-2.92 16.066-9.07 21.713-6.15 5.646-13.935 8.983-23.353 10.01v1.231c12.764 1.386 22.362 5.274 28.794 11.665 6.433 6.39 9.598 14.411 9.496 24.061.051 9.24-2.715 17.427-8.299 24.562-5.584 7.135-13.33 12.73-23.236 16.785-9.907 4.055-21.319 6.083-34.236 6.083-12.454 0-23.506-2.143-33.156-6.43-9.65-4.285-17.227-10.201-22.734-17.747-5.506-7.545-8.286-16.22-8.337-26.025h43.23c.051 3.029.99 5.737 2.817 8.124 1.827 2.386 4.336 4.247 7.527 5.582 3.19 1.334 6.845 2.002 10.962 2.002 3.962 0 7.462-.706 10.498-2.118 3.037-1.411 5.404-3.375 7.102-5.89 1.699-2.515 2.522-5.39 2.47-8.623.052-3.183-.913-6.006-2.894-8.47-1.982-2.464-4.748-4.389-8.299-5.775-3.55-1.386-7.642-2.079-12.274-2.079h-16.057v-29.566h16.057c4.271 0 8.041-.693 11.31-2.08 3.267-1.385 5.815-3.31 7.642-5.774s2.714-5.287 2.663-8.47c.051-3.08-.695-5.8-2.239-8.161-1.544-2.361-3.692-4.21-6.446-5.544-2.753-1.334-5.93-2.002-9.533-2.002-3.912 0-7.398.693-10.46 2.08-3.063 1.385-5.468 3.31-7.218 5.774s-2.65 5.287-2.702 8.47h-41.068c.051-9.65 2.715-18.172 7.99-25.563 5.275-7.392 12.518-13.192 21.73-17.401 9.212-4.21 19.788-6.314 31.728-6.314Zm-133.074 0c12.615 0 23.55 2.017 32.807 6.05 9.257 4.033 16.41 9.698 21.462 16.994 5.051 7.296 7.577 15.851 7.577 25.665 0 6.063-1.257 12.087-3.77 18.073-2.512 5.986-7.025 12.601-13.538 19.846-6.513 7.245-15.77 15.877-27.77 25.896l-14.768 12.331v.925H176V326H55.077v-30.829l58.77-48.709c3.897-3.237 7.243-6.28 10.038-9.133 2.794-2.851 4.948-5.793 6.461-8.824 1.513-3.032 2.27-6.397 2.27-10.097 0-4.059-.86-7.527-2.578-10.404-1.717-2.877-4.09-5.1-7.115-6.667-3.026-1.567-6.513-2.35-10.461-2.35-3.95 0-7.424.796-10.424 2.389-3 1.593-5.32 3.93-6.961 7.013-1.641 3.083-2.462 6.834-2.462 11.253H52c0-11.099 2.487-20.655 7.462-28.67 4.974-8.016 12-14.182 21.076-18.498 9.077-4.316 19.718-6.474 31.924-6.474Z";
6
+ var zt = "fas", Ut = "numeric-input", Ht = 512, Wt = 512, Ze = [], Kt = "", Gt = "m409.445 111 2.112.004c34.066.146 46.74 3.848 59.517 10.681 13.037 6.973 23.268 17.204 30.24 30.241l.415.782c6.705 12.782 10.271 25.9 10.271 60.847v72.002c-.15 34.066-3.852 46.74-10.685 59.517-6.973 13.037-17.204 23.268-30.241 30.24l-.782.415C457.51 382.434 444.392 386 409.445 386h-306.89l-2.112-.004c-34.066-.146-46.74-3.848-59.517-10.681-13.037-6.973-23.268-17.204-30.24-30.241l-.415-.782C3.566 331.51 0 318.392 0 283.445v-69.89c0-35.66 3.713-48.592 10.685-61.629 6.973-13.037 17.204-23.268 30.241-30.24l.782-.415C54.49 114.566 67.608 111 102.555 111h306.89Zm.806 36H102.555l-2.387.005c-22.69.089-31.789 1.488-39.667 5.128l-.523.246c-.696.332-1.385.683-2.074 1.052-6.764 3.617-11.856 8.71-15.473 15.473l-.282.533c-4.492 8.62-6.116 17.401-6.148 43.312v71.502l.012 3.09c.161 24.044 1.9 32.308 6.418 40.755 3.617 6.764 8.71 11.856 15.473 15.473l.533.282c8.62 4.492 17.401 6.116 43.312 6.149h307.696c27.078 0 35.763-1.677 44.651-6.43 6.764-3.618 11.856-8.71 15.473-15.474l.282-.533c4.492-8.62 6.116-17.401 6.149-43.312v-70.696c0-27.078-1.677-35.763-6.43-44.651-3.618-6.764-8.71-11.856-15.474-15.473l-.533-.282c-8.62-4.492-17.401-6.116-43.312-6.149Zm-164.715 19c11.682 0 22.013 1.976 30.994 5.929 8.98 3.952 16.005 9.38 21.074 16.284 5.07 6.904 7.578 14.797 7.527 23.677.103 8.829-2.92 16.066-9.07 21.713-6.15 5.646-13.935 8.983-23.353 10.01v1.231c12.764 1.386 22.362 5.274 28.794 11.665 6.433 6.39 9.598 14.411 9.496 24.061.051 9.24-2.715 17.427-8.299 24.562-5.584 7.135-13.33 12.73-23.236 16.785-9.907 4.055-21.319 6.083-34.236 6.083-12.454 0-23.506-2.143-33.156-6.43-9.65-4.285-17.227-10.201-22.734-17.747-5.506-7.545-8.286-16.22-8.337-26.025h43.23c.051 3.029.99 5.737 2.817 8.124 1.827 2.386 4.336 4.247 7.527 5.582 3.19 1.334 6.845 2.002 10.962 2.002 3.962 0 7.462-.706 10.498-2.118 3.037-1.411 5.404-3.375 7.102-5.89 1.699-2.515 2.522-5.39 2.47-8.623.052-3.183-.913-6.006-2.894-8.47-1.982-2.464-4.748-4.389-8.299-5.775-3.55-1.386-7.642-2.079-12.274-2.079h-16.057v-29.566h16.057c4.271 0 8.041-.693 11.31-2.08 3.267-1.385 5.815-3.31 7.642-5.774s2.714-5.287 2.663-8.47c.051-3.08-.695-5.8-2.239-8.161-1.544-2.361-3.692-4.21-6.446-5.544-2.753-1.334-5.93-2.002-9.533-2.002-3.912 0-7.398.693-10.46 2.08-3.063 1.385-5.468 3.31-7.218 5.774s-2.65 5.287-2.702 8.47h-41.068c.051-9.65 2.715-18.172 7.99-25.563 5.275-7.392 12.518-13.192 21.73-17.401 9.212-4.21 19.788-6.314 31.728-6.314Zm-133.074 0c12.615 0 23.55 2.017 32.807 6.05 9.257 4.033 16.41 9.698 21.462 16.994 5.051 7.296 7.577 15.851 7.577 25.665 0 6.063-1.257 12.087-3.77 18.073-2.512 5.986-7.025 12.601-13.538 19.846-6.513 7.245-15.77 15.877-27.77 25.896l-14.768 12.331v.925H176V326H55.077v-30.829l58.77-48.709c3.897-3.237 7.243-6.28 10.038-9.133 2.794-2.851 4.948-5.793 6.461-8.824 1.513-3.032 2.27-6.397 2.27-10.097 0-4.059-.86-7.527-2.578-10.404-1.717-2.877-4.09-5.1-7.115-6.667-3.026-1.567-6.513-2.35-10.461-2.35-3.95 0-7.424.796-10.424 2.389-3 1.593-5.32 3.93-6.961 7.013-1.641 3.083-2.462 6.834-2.462 11.253H52c0-11.099 2.487-20.655 7.462-28.67 4.974-8.016 12-14.182 21.076-18.498 9.077-4.316 19.718-6.474 31.924-6.474Z";
7
7
  const yt = {
8
8
  prefix: zt,
9
9
  iconName: Ut,
10
- icon: [Ht, Wt, Qe, Kt, Gt]
10
+ icon: [Ht, Wt, Ze, Kt, Gt]
11
11
  }, Gn = {
12
12
  definition: yt,
13
13
  faAlignJustify: yt,
@@ -15,84 +15,101 @@ const yt = {
15
15
  iconName: Ut,
16
16
  width: Ht,
17
17
  height: Wt,
18
- ligatures: Qe,
18
+ ligatures: Ze,
19
19
  unicode: Kt,
20
20
  svgPathData: Gt,
21
- aliases: Qe
21
+ aliases: Ze
22
22
  };
23
23
  lt.add(
24
- h.faArrowUp19,
25
- h.faAt,
26
- h.faBold,
27
- h.faBolt,
28
- h.faCalendar,
29
- h.faChartPie,
30
- h.faCheck,
31
- h.faCheckCircle,
32
- h.faChevronDown,
33
- h.faChevronLeft,
34
- h.faChevronRight,
35
- h.faChevronUp,
36
- h.faCircleCheck,
37
- h.faCircleNotch,
38
- h.faClipboard,
39
- h.faCloudDownload,
40
- h.faCloudUpload,
41
- h.faCog,
42
- h.faCrown,
43
- h.faDoorOpen,
44
- h.faDotCircle,
45
- h.faEllipsis,
46
- h.faEllipsisVertical,
47
- h.faEnvelope,
48
- h.faExclamationTriangle,
49
- h.faExternalLink,
50
- h.faEyeDropper,
51
- h.faFileLines,
52
- h.faFilePdf,
53
- h.faFileWaveform,
54
- h.faFileVideo,
55
- h.faFileUpload,
56
- h.faFilter,
57
- h.faFingerprint,
58
- h.faGlobe,
59
- h.faGripHorizontal,
60
- h.faGripVertical,
61
- h.faHandPointRight,
62
- h.faHashtag,
63
- h.faHeart,
64
- h.faInfoCircle,
65
- h.faItalic,
66
- h.faLink,
67
- h.faLock,
68
- h.faLockOpen,
69
- h.faMedal,
70
- h.faMessage,
71
- h.faPencilAlt,
72
- h.faPenToSquare,
73
- h.faPhone,
74
- h.faPlayCircle,
75
- h.faPlus,
76
- h.faPlusCircle,
77
- h.faPoo,
78
- h.faPuzzlePiece,
79
- h.faReply,
80
- h.faReplyAll,
81
- h.faRobot,
82
- h.faSave,
83
- h.faShield,
84
- h.faSignal,
85
- h.faSignature,
86
- h.faSquareCheck,
87
- h.faStar,
88
- h.faTimes,
89
- h.faTrash,
90
- h.faTree,
91
- h.faTrophy,
92
- h.faTurnDown,
93
- h.faUpload,
94
- h.faUser,
95
- h.faUserShield,
24
+ g.faAlignCenter,
25
+ g.faAlignLeft,
26
+ g.faAlignRight,
27
+ g.faArrowUp19,
28
+ g.faAt,
29
+ g.faBold,
30
+ g.faBolt,
31
+ g.faCalendar,
32
+ g.faChartPie,
33
+ g.faCheck,
34
+ g.faCheckCircle,
35
+ g.faChevronDown,
36
+ g.faChevronLeft,
37
+ g.faChevronRight,
38
+ g.faChevronUp,
39
+ g.faCircleCheck,
40
+ g.faCircleNotch,
41
+ g.faClipboard,
42
+ g.faCloudDownload,
43
+ g.faCloudUpload,
44
+ g.faCode,
45
+ g.faCog,
46
+ g.faCrown,
47
+ g.faDoorOpen,
48
+ g.faDotCircle,
49
+ g.faEllipsis,
50
+ g.faEllipsisVertical,
51
+ g.faEnvelope,
52
+ g.faExclamationTriangle,
53
+ g.faExternalLink,
54
+ g.faEyeDropper,
55
+ g.faFileLines,
56
+ g.faFilePdf,
57
+ g.faFileUpload,
58
+ g.faFileVideo,
59
+ g.faFileWaveform,
60
+ g.faFilter,
61
+ g.faFingerprint,
62
+ g.faFont,
63
+ g.faGlobe,
64
+ g.faGripHorizontal,
65
+ g.faGripVertical,
66
+ g.faHandPointRight,
67
+ g.faHashtag,
68
+ g.faHeading,
69
+ g.faHeart,
70
+ g.faInfoCircle,
71
+ g.faItalic,
72
+ g.faLink,
73
+ g.faLinkSlash,
74
+ g.faList,
75
+ g.faListOl,
76
+ g.faListUl,
77
+ g.faLock,
78
+ g.faLockOpen,
79
+ g.faMedal,
80
+ g.faMessage,
81
+ g.faPencilAlt,
82
+ g.faPenToSquare,
83
+ g.faPhone,
84
+ g.faPlayCircle,
85
+ g.faPlus,
86
+ g.faPlusCircle,
87
+ g.faPoo,
88
+ g.faPuzzlePiece,
89
+ g.faQuoteLeft,
90
+ g.faQuoteRight,
91
+ g.faReply,
92
+ g.faReplyAll,
93
+ g.faRobot,
94
+ g.faSave,
95
+ g.faShield,
96
+ g.faSignal,
97
+ g.faSignature,
98
+ g.faSignature,
99
+ g.faSquareCheck,
100
+ g.faStar,
101
+ g.faStrikethrough,
102
+ g.faTextSlash,
103
+ g.faTimes,
104
+ g.faTrash,
105
+ g.faTree,
106
+ g.faTrophy,
107
+ g.faTurnDown,
108
+ g.faUnderline,
109
+ g.faUpload,
110
+ g.faUser,
111
+ g.faUserShield,
112
+ g.faWandMagicSparkles,
96
113
  // Brands
97
114
  Se.faTwitter,
98
115
  Se.faInstagram,
@@ -112,7 +129,7 @@ const qn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
112
129
  "could not load icon, because it is not available",
113
130
  t.name
114
131
  ), !1));
115
- return (n, r) => o.value ? (E(), K(P(Kn), ot({
132
+ return (n, r) => o.value ? (R(), K(P(Kn), ot({
116
133
  key: 0,
117
134
  icon: [l.value, n.name]
118
135
  }, n.$attrs), null, 16, ["icon"])) : M("", !0);
@@ -120,7 +137,7 @@ const qn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
120
137
  }), Xn = ["aria-label", "tabindex"], Yn = {
121
138
  key: 0,
122
139
  class: "absolute inset-0 flex items-center justify-center"
123
- }, Er = /* @__PURE__ */ $({
140
+ }, Rr = /* @__PURE__ */ $({
124
141
  __name: "Button",
125
142
  props: {
126
143
  label: {},
@@ -172,7 +189,7 @@ const qn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
172
189
  function i() {
173
190
  o.isDisabled || l("onClick");
174
191
  }
175
- return (u, c) => (E(), T("button", {
192
+ return (u, c) => (R(), T("button", {
176
193
  class: A(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out", n.value]),
177
194
  type: "button",
178
195
  "aria-label": u.label,
@@ -182,19 +199,19 @@ const qn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
182
199
  I("div", {
183
200
  class: A(!u.isLoading || "invisible")
184
201
  }, [
185
- u.icon && u.iconPosition === "left" ? (E(), K(U, {
202
+ u.icon && u.iconPosition === "left" ? (R(), K(U, {
186
203
  key: 0,
187
204
  name: u.icon,
188
205
  class: A(r.value)
189
206
  }, null, 8, ["name", "class"])) : M("", !0),
190
207
  I("span", null, B(u.label), 1),
191
- u.icon && u.iconPosition === "right" ? (E(), K(U, {
208
+ u.icon && u.iconPosition === "right" ? (R(), K(U, {
192
209
  key: 1,
193
210
  name: u.icon,
194
211
  class: A(r.value)
195
212
  }, null, 8, ["name", "class"])) : M("", !0)
196
213
  ], 2),
197
- u.isLoading ? (E(), T("span", Yn, [
214
+ u.isLoading ? (R(), T("span", Yn, [
198
215
  F(U, {
199
216
  class: "animate-spin",
200
217
  name: "circle-notch"
@@ -204,11 +221,11 @@ const qn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
204
221
  }
205
222
  });
206
223
  let Te;
207
- const Zn = new Uint8Array(16);
208
- function Qn() {
224
+ const Qn = new Uint8Array(16);
225
+ function Zn() {
209
226
  if (!Te && (Te = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Te))
210
227
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
211
- return Te(Zn);
228
+ return Te(Qn);
212
229
  }
213
230
  const V = [];
214
231
  for (let e = 0; e < 256; ++e)
@@ -223,7 +240,7 @@ function qt(e, t, l) {
223
240
  if (wt.randomUUID && !t && !e)
224
241
  return wt.randomUUID();
225
242
  e = e || {};
226
- const o = e.random || (e.rng || Qn)();
243
+ const o = e.random || (e.rng || Zn)();
227
244
  if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
228
245
  l = l || 0;
229
246
  for (let n = 0; n < 16; ++n)
@@ -235,7 +252,7 @@ function qt(e, t, l) {
235
252
  const to = { class: "relative flex items-start" }, no = { class: "flex items-center h-5" }, oo = ["checked", "id"], lo = { class: "ml-2 text-sm leading-5" }, ro = ["for"], io = {
236
253
  key: 0,
237
254
  class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
238
- }, Rr = /* @__PURE__ */ $({
255
+ }, Er = /* @__PURE__ */ $({
239
256
  __name: "Checkbox",
240
257
  props: {
241
258
  id: { default: qt() },
@@ -248,7 +265,7 @@ const to = { class: "relative flex items-start" }, no = { class: "flex items-cen
248
265
  const l = t, o = (n) => {
249
266
  l("update:modelValue", n.target.checked);
250
267
  };
251
- return (n, r) => (E(), T("div", to, [
268
+ return (n, r) => (R(), T("div", to, [
252
269
  I("div", no, [
253
270
  I("input", {
254
271
  class: "h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",
@@ -263,7 +280,7 @@ const to = { class: "relative flex items-start" }, no = { class: "flex items-cen
263
280
  for: n.id,
264
281
  class: "font-medium text-grey-700 dark:text-grey-200 casual-25"
265
282
  }, B(n.label), 9, ro),
266
- n.description ? (E(), T("p", io, B(n.description), 1)) : M("", !0)
283
+ n.description ? (R(), T("p", io, B(n.description), 1)) : M("", !0)
267
284
  ])
268
285
  ]));
269
286
  }
@@ -392,15 +409,15 @@ class Co {
392
409
  this._setter(t);
393
410
  }
394
411
  }
395
- function Eo(e, t, l = !1) {
412
+ function Ro(e, t, l = !1) {
396
413
  let o, n;
397
414
  const r = po(e);
398
415
  return r ? (o = e, n = co) : (o = e.get, n = e.set), new Co(o, n, r || !n, l);
399
416
  }
400
- let Xe, Et = "__VUE_INSTANCE_SETTERS__";
401
- (Xe = St()[Et]) || (Xe = St()[Et] = []), Xe.push((e) => e);
402
- let Ro = !1;
403
- const Ye = (e, t) => Eo(e, t, Ro);
417
+ let Xe, Rt = "__VUE_INSTANCE_SETTERS__";
418
+ (Xe = St()[Rt]) || (Xe = St()[Rt] = []), Xe.push((e) => e);
419
+ let Eo = !1;
420
+ const Ye = (e, t) => Ro(e, t, Eo);
404
421
  function rt(e) {
405
422
  const t = Ye(() => ({
406
423
  "pl-3 pr-10 py-2": !e.icon && e.type !== "color" && e.size === "small",
@@ -442,7 +459,7 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
442
459
  emits: ["update:modelValue"],
443
460
  setup(e, { expose: t, emit: l }) {
444
461
  const o = e, n = O(null), r = O(o.modelValue ?? "");
445
- Z(
462
+ Q(
446
463
  () => o.modelValue,
447
464
  (y) => {
448
465
  typeof y < "u" && y !== r.value && (r.value = y);
@@ -455,7 +472,7 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
455
472
  } = uo(), v = () => {
456
473
  m();
457
474
  };
458
- Z(f, (y) => {
475
+ Q(f, (y) => {
459
476
  r.value = y, i("update:modelValue", y);
460
477
  });
461
478
  const p = function(y) {
@@ -469,12 +486,12 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
469
486
  return;
470
487
  }
471
488
  r.value = (y == null ? void 0 : y.target).value, i("update:modelValue", r.value);
472
- }, b = O(null);
489
+ }, h = O(null);
473
490
  return t({
474
491
  focus: () => {
475
- o.isDisabled || b.value.focus();
492
+ o.isDisabled || h.value.focus();
476
493
  }
477
- }), (y, x) => (E(), T("div", {
494
+ }), (y, x) => (R(), T("div", {
478
495
  class: A(["relative", [y.block ? "w-full block" : "inline-block"]])
479
496
  }, [
480
497
  I("input", ot({
@@ -488,7 +505,7 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
488
505
  ref: n,
489
506
  onInput: p
490
507
  }), null, 16, Do),
491
- y.type === "color" ? (E(), T(be, { key: 0 }, [
508
+ y.type === "color" ? (R(), T(be, { key: 0 }, [
492
509
  I("label", Po, [
493
510
  $n(I("input", {
494
511
  class: "invisible",
@@ -503,7 +520,7 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
503
520
  style: Nt(`background-color: ${r.value}`)
504
521
  }, null, 4)
505
522
  ]),
506
- P(d) && y.showColorPicker ? (E(), T("button", {
523
+ P(d) && y.showColorPicker ? (R(), T("button", {
507
524
  key: 0,
508
525
  type: "button",
509
526
  class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
@@ -514,7 +531,7 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
514
531
  name: "eyedropper"
515
532
  })
516
533
  ])) : M("", !0)
517
- ], 64)) : y.icon ? (E(), T("span", {
534
+ ], 64)) : y.icon ? (R(), T("span", {
518
535
  key: 1,
519
536
  class: A(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", P(a)])
520
537
  }, [
@@ -533,9 +550,9 @@ const Do = ["placeholder", "type", "tabindex", "value"], Po = { class: "absolute
533
550
  description: {}
534
551
  },
535
552
  setup(e) {
536
- return (t, l) => (E(), T("span", To, [
553
+ return (t, l) => (R(), T("span", To, [
537
554
  I("label", { for: t.id }, B(t.label), 9, Lo),
538
- t.description ? (E(), T("span", Io, B(t.description), 1)) : M("", !0)
555
+ t.description ? (R(), T("span", Io, B(t.description), 1)) : M("", !0)
539
556
  ]));
540
557
  }
541
558
  });
@@ -547,23 +564,23 @@ function G(e, t, ...l) {
547
564
  let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((n) => `"${n}"`).join(", ")}.`);
548
565
  throw Error.captureStackTrace && Error.captureStackTrace(o, G), o;
549
566
  }
550
- var Ee = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ee || {}), $o = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))($o || {});
567
+ var Re = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Re || {}), $o = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))($o || {});
551
568
  function z({ visible: e = !0, features: t = 0, ourProps: l, theirProps: o, ...n }) {
552
569
  var r;
553
- let i = Qt(o, l), u = Object.assign(n, { props: i });
570
+ let i = Zt(o, l), u = Object.assign(n, { props: i });
554
571
  if (e || t & 2 && i.static)
555
- return Ze(u);
572
+ return Qe(u);
556
573
  if (t & 1) {
557
574
  let c = (r = i.unmount) == null || r ? 0 : 1;
558
575
  return G(c, { 0() {
559
576
  return null;
560
577
  }, 1() {
561
- return Ze({ ...n, props: { ...i, hidden: !0, style: { display: "none" } } });
578
+ return Qe({ ...n, props: { ...i, hidden: !0, style: { display: "none" } } });
562
579
  } });
563
580
  }
564
- return Ze(u);
581
+ return Qe(u);
565
582
  }
566
- function Ze({ props: e, attrs: t, slots: l, slot: o, name: n }) {
583
+ function Qe({ props: e, attrs: t, slots: l, slot: o, name: n }) {
567
584
  var r, i;
568
585
  let { as: u, ...c } = it(e, ["unmount", "static"]), a = (r = l.default) == null ? void 0 : r.call(l, o), s = {};
569
586
  if (o) {
@@ -573,14 +590,14 @@ function Ze({ props: e, attrs: t, slots: l, slot: o, name: n }) {
573
590
  d && (s["data-headlessui-state"] = m.join(" "));
574
591
  }
575
592
  if (u === "template") {
576
- if (a = Zt(a ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
593
+ if (a = Qt(a ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
577
594
  let [d, ...m] = a ?? [];
578
595
  if (!Ao(d) || m.length > 0)
579
- throw new Error(['Passing props on "template"!', "", `The current component <${n} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((p) => p.trim()).filter((p, b, g) => g.indexOf(p) === b).sort((p, b) => p.localeCompare(b)).map((p) => ` - ${p}`).join(`
596
+ throw new Error(['Passing props on "template"!', "", `The current component <${n} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((p) => p.trim()).filter((p, h, b) => b.indexOf(p) === h).sort((p, h) => p.localeCompare(h)).map((p) => ` - ${p}`).join(`
580
597
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
581
598
  `)].join(`
582
599
  `));
583
- let f = Qt((i = d.props) != null ? i : {}, c), v = Mn(d, f);
600
+ let f = Zt((i = d.props) != null ? i : {}, c), v = Mn(d, f);
584
601
  for (let p in f)
585
602
  p.startsWith("on") && (v.props || (v.props = {}), v.props[p] = f[p]);
586
603
  return v;
@@ -589,10 +606,10 @@ function Ze({ props: e, attrs: t, slots: l, slot: o, name: n }) {
589
606
  }
590
607
  return Ce(u, Object.assign({}, c, s), { default: () => a });
591
608
  }
592
- function Zt(e) {
593
- return e.flatMap((t) => t.type === be ? Zt(t.children) : [t]);
609
+ function Qt(e) {
610
+ return e.flatMap((t) => t.type === be ? Qt(t.children) : [t]);
594
611
  }
595
- function Qt(...e) {
612
+ function Zt(...e) {
596
613
  if (e.length === 0)
597
614
  return {};
598
615
  if (e.length === 1)
@@ -669,7 +686,7 @@ function en(e, t) {
669
686
  })();
670
687
  return r === -1 ? o : r;
671
688
  }
672
- function R(e) {
689
+ function E(e) {
673
690
  var t;
674
691
  return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
675
692
  }
@@ -681,7 +698,7 @@ function nn() {
681
698
  function on(e) {
682
699
  ye(tn, e);
683
700
  }
684
- function Rt(e, t) {
701
+ function Et(e, t) {
685
702
  if (e)
686
703
  return e;
687
704
  let l = t ?? "button";
@@ -689,12 +706,12 @@ function Rt(e, t) {
689
706
  return "button";
690
707
  }
691
708
  function at(e, t) {
692
- let l = O(Rt(e.value.type, e.value.as));
709
+ let l = O(Et(e.value.type, e.value.as));
693
710
  return ee(() => {
694
- l.value = Rt(e.value.type, e.value.as);
711
+ l.value = Et(e.value.type, e.value.as);
695
712
  }), xe(() => {
696
713
  var o;
697
- l.value || R(t) && R(t) instanceof HTMLButtonElement && !((o = R(t)) != null && o.hasAttribute("type")) && (l.value = "button");
714
+ l.value || E(t) && E(t) instanceof HTMLButtonElement && !((o = E(t)) != null && o.hasAttribute("type")) && (l.value = "button");
698
715
  }), l;
699
716
  }
700
717
  var No = Object.defineProperty, Bo = (e, t, l) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Dt = (e, t, l) => (Bo(e, typeof t != "symbol" ? t + "" : t, l), l);
@@ -728,7 +745,7 @@ function ut(e) {
728
745
  if (e instanceof Node)
729
746
  return e.ownerDocument;
730
747
  if (e != null && e.hasOwnProperty("value")) {
731
- let t = R(e);
748
+ let t = E(e);
732
749
  if (t)
733
750
  return t.ownerDocument;
734
751
  }
@@ -841,7 +858,7 @@ function Le(e, t, l) {
841
858
  document.addEventListener(e, t, l), o(() => document.removeEventListener(e, t, l));
842
859
  });
843
860
  }
844
- function Zo(e, t, l) {
861
+ function Qo(e, t, l) {
845
862
  st.isServer || xe((o) => {
846
863
  window.addEventListener(e, t, l), o(() => window.removeEventListener(e, t, l));
847
864
  });
@@ -859,7 +876,7 @@ function an(e, t, l = k(() => !0)) {
859
876
  for (let a of c) {
860
877
  if (a === null)
861
878
  continue;
862
- let s = a instanceof HTMLElement ? a : R(a);
879
+ let s = a instanceof HTMLElement ? a : E(a);
863
880
  if (s != null && s.contains(u) || r.composed && r.composedPath().includes(s))
864
881
  return;
865
882
  }
@@ -874,7 +891,7 @@ function an(e, t, l = k(() => !0)) {
874
891
  l.value && (n.value = ((u = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : u[0]) || r.target);
875
892
  }, !0), Le("click", (r) => {
876
893
  n.value && (o(r, () => n.value), n.value = null);
877
- }, !0), Le("touchend", (r) => o(r, () => r.target instanceof HTMLElement ? r.target : null), !0), Zo("blur", (r) => o(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
894
+ }, !0), Le("touchend", (r) => o(r, () => r.target instanceof HTMLElement ? r.target : null), !0), Qo("blur", (r) => o(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
878
895
  }
879
896
  var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
880
897
  let sn = $({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: l }) {
@@ -898,7 +915,7 @@ function dn(e, t, l) {
898
915
  else
899
916
  l instanceof Date ? e.push([t, l.toISOString()]) : typeof l == "boolean" ? e.push([t, l ? "1" : "0"]) : typeof l == "string" ? e.push([t, l]) : typeof l == "number" ? e.push([t, `${l}`]) : l == null ? e.push([t, ""]) : un(l, t, e);
900
917
  }
901
- function Qo(e) {
918
+ function Zo(e) {
902
919
  var t, l;
903
920
  let o = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
904
921
  if (o) {
@@ -986,7 +1003,7 @@ function tl(e) {
986
1003
  function vn(e) {
987
1004
  let t = O(""), l = O("");
988
1005
  return () => {
989
- let o = R(e);
1006
+ let o = E(e);
990
1007
  if (!o)
991
1008
  return "";
992
1009
  let n = o.innerText;
@@ -1015,10 +1032,10 @@ function De(e) {
1015
1032
  let al = $({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => nl }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: l, emit: o }) {
1016
1033
  let n = O(1), r = O(null), i = O(null), u = O(null), c = O([]), a = O(""), s = O(null), d = O(1);
1017
1034
  function m(x = (w) => w) {
1018
- let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (C) => R(C.dataRef.domRef)), _ = w ? S.indexOf(w) : null;
1035
+ let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (C) => E(C.dataRef.domRef)), _ = w ? S.indexOf(w) : null;
1019
1036
  return _ === -1 && (_ = null), { options: S, activeOptionIndex: _ };
1020
1037
  }
1021
- let f = k(() => e.multiple ? 1 : 0), [v, p] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), b = k(() => v.value === void 0 ? G(f.value, { 1: [], 0: void 0 }) : v.value), g = { listboxState: n, value: b, mode: f, compare(x, w) {
1038
+ let f = k(() => e.multiple ? 1 : 0), [v, p] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => v.value === void 0 ? G(f.value, { 1: [], 0: void 0 }) : v.value), b = { listboxState: n, value: h, mode: f, compare(x, w) {
1022
1039
  if (typeof e.by == "string") {
1023
1040
  let S = e.by;
1024
1041
  return (x == null ? void 0 : x[S]) === (w == null ? void 0 : w[S]);
@@ -1055,24 +1072,24 @@ let al = $({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1055
1072
  e.disabled || p(x);
1056
1073
  }, select(x) {
1057
1074
  e.disabled || p(G(f.value, { 0: () => x, 1: () => {
1058
- let w = X(g.value.value).slice(), S = X(x), _ = w.findIndex((C) => g.compare(S, X(C)));
1075
+ let w = X(b.value.value).slice(), S = X(x), _ = w.findIndex((C) => b.compare(S, X(C)));
1059
1076
  return _ === -1 ? w.push(S) : w.splice(_, 1), w;
1060
1077
  } }));
1061
1078
  } };
1062
1079
  an([i, u], (x, w) => {
1063
1080
  var S;
1064
- g.closeListbox(), ze(w, je.Loose) || (x.preventDefault(), (S = R(i)) == null || S.focus());
1065
- }, k(() => n.value === 0)), ye(gn, g), on(k(() => G(n.value, { 0: te.Open, 1: te.Closed })));
1081
+ b.closeListbox(), ze(w, je.Loose) || (x.preventDefault(), (S = E(i)) == null || S.focus());
1082
+ }, k(() => n.value === 0)), ye(gn, b), on(k(() => G(n.value, { 0: te.Open, 1: te.Closed })));
1066
1083
  let y = k(() => {
1067
1084
  var x;
1068
- return (x = R(i)) == null ? void 0 : x.closest("form");
1085
+ return (x = E(i)) == null ? void 0 : x.closest("form");
1069
1086
  });
1070
1087
  return ee(() => {
1071
- Z([y], () => {
1088
+ Q([y], () => {
1072
1089
  if (!y.value || e.defaultValue === void 0)
1073
1090
  return;
1074
1091
  function x() {
1075
- g.theirOnChange(e.defaultValue);
1092
+ b.theirOnChange(e.defaultValue);
1076
1093
  }
1077
1094
  return y.value.addEventListener("reset", x), () => {
1078
1095
  var w;
@@ -1080,15 +1097,15 @@ let al = $({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1080
1097
  };
1081
1098
  }, { immediate: !0 });
1082
1099
  }), () => {
1083
- let { name: x, modelValue: w, disabled: S, form: _, ...C } = e, N = { open: n.value === 0, disabled: S, value: b.value };
1084
- return Ce(be, [...x != null && b.value != null ? un({ [x]: b.value }).map(([re, _e]) => Ce(sn, Jt({ features: dt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: _, name: re, value: _e }))) : [], z({ ourProps: {}, theirProps: { ...l, ...it(C, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: N, slots: t, attrs: l, name: "Listbox" })]);
1100
+ let { name: x, modelValue: w, disabled: S, form: _, ...C } = e, N = { open: n.value === 0, disabled: S, value: h.value };
1101
+ return Ce(be, [...x != null && h.value != null ? un({ [x]: h.value }).map(([re, _e]) => Ce(sn, Jt({ features: dt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: _, name: re, value: _e }))) : [], z({ ourProps: {}, theirProps: { ...l, ...it(C, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: N, slots: t, attrs: l, name: "Listbox" })]);
1085
1102
  };
1086
1103
  } });
1087
1104
  $({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${J()}` } }, setup(e, { attrs: t, slots: l }) {
1088
1105
  let o = De("ListboxLabel");
1089
1106
  function n() {
1090
1107
  var r;
1091
- (r = R(o.buttonRef)) == null || r.focus({ preventScroll: !0 });
1108
+ (r = E(o.buttonRef)) == null || r.focus({ preventScroll: !0 });
1092
1109
  }
1093
1110
  return () => {
1094
1111
  let r = { open: o.listboxState.value === 0, disabled: o.disabled.value }, { id: i, ...u } = e, c = { id: i, ref: o.labelRef, onClick: n };
@@ -1105,13 +1122,13 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1105
1122
  case D.ArrowDown:
1106
1123
  a.preventDefault(), n.openListbox(), j(() => {
1107
1124
  var s;
1108
- (s = R(n.optionsRef)) == null || s.focus({ preventScroll: !0 }), n.value.value || n.goToOption(L.First);
1125
+ (s = E(n.optionsRef)) == null || s.focus({ preventScroll: !0 }), n.value.value || n.goToOption(L.First);
1109
1126
  });
1110
1127
  break;
1111
1128
  case D.ArrowUp:
1112
1129
  a.preventDefault(), n.openListbox(), j(() => {
1113
1130
  var s;
1114
- (s = R(n.optionsRef)) == null || s.focus({ preventScroll: !0 }), n.value.value || n.goToOption(L.Last);
1131
+ (s = E(n.optionsRef)) == null || s.focus({ preventScroll: !0 }), n.value.value || n.goToOption(L.Last);
1115
1132
  });
1116
1133
  break;
1117
1134
  }
@@ -1126,16 +1143,16 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1126
1143
  function u(a) {
1127
1144
  n.disabled.value || (n.listboxState.value === 0 ? (n.closeListbox(), j(() => {
1128
1145
  var s;
1129
- return (s = R(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1146
+ return (s = E(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1130
1147
  })) : (a.preventDefault(), n.openListbox(), il(() => {
1131
1148
  var s;
1132
- return (s = R(n.optionsRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1149
+ return (s = E(n.optionsRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1133
1150
  })));
1134
1151
  }
1135
1152
  let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
1136
1153
  return () => {
1137
1154
  var a, s;
1138
- let d = { open: n.listboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: m, ...f } = e, v = { ref: n.buttonRef, id: m, type: c.value, "aria-haspopup": "listbox", "aria-controls": (a = R(n.optionsRef)) == null ? void 0 : a.id, "aria-expanded": n.listboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(s = R(n.labelRef)) == null ? void 0 : s.id, m].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: r, onKeyup: i, onClick: u };
1155
+ let d = { open: n.listboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: m, ...f } = e, v = { ref: n.buttonRef, id: m, type: c.value, "aria-haspopup": "listbox", "aria-controls": (a = E(n.optionsRef)) == null ? void 0 : a.id, "aria-expanded": n.listboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(s = E(n.labelRef)) == null ? void 0 : s.id, m].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: r, onKeyup: i, onClick: u };
1139
1156
  return z({ ourProps: v, theirProps: f, slot: d, attrs: t, slots: l, name: "ListboxButton" });
1140
1157
  };
1141
1158
  } }), ul = $({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-listbox-options-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
@@ -1153,7 +1170,7 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1153
1170
  }
1154
1171
  n.mode.value === 0 && (n.closeListbox(), j(() => {
1155
1172
  var s;
1156
- return (s = R(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1173
+ return (s = E(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1157
1174
  }));
1158
1175
  break;
1159
1176
  case G(n.orientation.value, { vertical: D.ArrowDown, horizontal: D.ArrowRight }):
@@ -1169,7 +1186,7 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1169
1186
  case D.Escape:
1170
1187
  a.preventDefault(), a.stopPropagation(), n.closeListbox(), j(() => {
1171
1188
  var s;
1172
- return (s = R(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1189
+ return (s = E(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1173
1190
  });
1174
1191
  break;
1175
1192
  case D.Tab:
@@ -1183,21 +1200,21 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1183
1200
  let u = nn(), c = k(() => u !== null ? (u.value & te.Open) === te.Open : n.listboxState.value === 0);
1184
1201
  return () => {
1185
1202
  var a, s, d, m;
1186
- let f = { open: n.listboxState.value === 0 }, { id: v, ...p } = e, b = { "aria-activedescendant": n.activeOptionIndex.value === null || (a = n.options.value[n.activeOptionIndex.value]) == null ? void 0 : a.id, "aria-multiselectable": n.mode.value === 1 ? !0 : void 0, "aria-labelledby": (m = (s = R(n.labelRef)) == null ? void 0 : s.id) != null ? m : (d = R(n.buttonRef)) == null ? void 0 : d.id, "aria-orientation": n.orientation.value, id: v, onKeydown: i, role: "listbox", tabIndex: 0, ref: n.optionsRef };
1187
- return z({ ourProps: b, theirProps: p, slot: f, attrs: t, slots: l, features: Ee.RenderStrategy | Ee.Static, visible: c.value, name: "ListboxOptions" });
1203
+ let f = { open: n.listboxState.value === 0 }, { id: v, ...p } = e, h = { "aria-activedescendant": n.activeOptionIndex.value === null || (a = n.options.value[n.activeOptionIndex.value]) == null ? void 0 : a.id, "aria-multiselectable": n.mode.value === 1 ? !0 : void 0, "aria-labelledby": (m = (s = E(n.labelRef)) == null ? void 0 : s.id) != null ? m : (d = E(n.buttonRef)) == null ? void 0 : d.id, "aria-orientation": n.orientation.value, id: v, onKeydown: i, role: "listbox", tabIndex: 0, ref: n.optionsRef };
1204
+ return z({ ourProps: h, theirProps: p, slot: f, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: c.value, name: "ListboxOptions" });
1188
1205
  };
1189
1206
  } }), cl = $({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-listbox.option-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
1190
1207
  let n = De("ListboxOption"), r = O(null);
1191
1208
  o({ el: r, $el: r });
1192
- let i = k(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id === e.id : !1), u = k(() => G(n.mode.value, { 0: () => n.compare(X(n.value.value), X(e.value)), 1: () => X(n.value.value).some((g) => n.compare(X(g), X(e.value))) })), c = k(() => G(n.mode.value, { 1: () => {
1193
- var g;
1209
+ let i = k(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id === e.id : !1), u = k(() => G(n.mode.value, { 0: () => n.compare(X(n.value.value), X(e.value)), 1: () => X(n.value.value).some((b) => n.compare(X(b), X(e.value))) })), c = k(() => G(n.mode.value, { 1: () => {
1210
+ var b;
1194
1211
  let y = X(n.value.value);
1195
- return ((g = n.options.value.find((x) => y.some((w) => n.compare(X(w), X(x.dataRef.value))))) == null ? void 0 : g.id) === e.id;
1212
+ return ((b = n.options.value.find((x) => y.some((w) => n.compare(X(w), X(x.dataRef.value))))) == null ? void 0 : b.id) === e.id;
1196
1213
  }, 0: () => u.value })), a = vn(r), s = k(() => ({ disabled: e.disabled, value: e.value, get textValue() {
1197
1214
  return a();
1198
1215
  }, domRef: r }));
1199
1216
  ee(() => n.registerOption(e.id, s)), Ne(() => n.unregisterOption(e.id)), ee(() => {
1200
- Z([n.listboxState, u], () => {
1217
+ Q([n.listboxState, u], () => {
1201
1218
  n.listboxState.value === 0 && u.value && G(n.mode.value, { 1: () => {
1202
1219
  c.value && n.goToOption(L.Specific, e.id);
1203
1220
  }, 0: () => {
@@ -1206,16 +1223,16 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1206
1223
  }, { immediate: !0 });
1207
1224
  }), xe(() => {
1208
1225
  n.listboxState.value === 0 && i.value && n.activationTrigger.value !== 0 && j(() => {
1209
- var g, y;
1210
- return (y = (g = R(r)) == null ? void 0 : g.scrollIntoView) == null ? void 0 : y.call(g, { block: "nearest" });
1226
+ var b, y;
1227
+ return (y = (b = E(r)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
1211
1228
  });
1212
1229
  });
1213
- function d(g) {
1230
+ function d(b) {
1214
1231
  if (e.disabled)
1215
- return g.preventDefault();
1232
+ return b.preventDefault();
1216
1233
  n.select(e.value), n.mode.value === 0 && (n.closeListbox(), j(() => {
1217
1234
  var y;
1218
- return (y = R(n.buttonRef)) == null ? void 0 : y.focus({ preventScroll: !0 });
1235
+ return (y = E(n.buttonRef)) == null ? void 0 : y.focus({ preventScroll: !0 });
1219
1236
  }));
1220
1237
  }
1221
1238
  function m() {
@@ -1224,17 +1241,17 @@ let sl = $({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1224
1241
  n.goToOption(L.Specific, e.id);
1225
1242
  }
1226
1243
  let f = pn();
1227
- function v(g) {
1228
- f.update(g);
1244
+ function v(b) {
1245
+ f.update(b);
1229
1246
  }
1230
- function p(g) {
1231
- f.wasMoved(g) && (e.disabled || i.value || n.goToOption(L.Specific, e.id, 0));
1247
+ function p(b) {
1248
+ f.wasMoved(b) && (e.disabled || i.value || n.goToOption(L.Specific, e.id, 0));
1232
1249
  }
1233
- function b(g) {
1234
- f.wasMoved(g) && (e.disabled || i.value && n.goToOption(L.Nothing));
1250
+ function h(b) {
1251
+ f.wasMoved(b) && (e.disabled || i.value && n.goToOption(L.Nothing));
1235
1252
  }
1236
1253
  return () => {
1237
- let { disabled: g } = e, y = { active: i.value, selected: u.value, disabled: g }, { id: x, value: w, disabled: S, ..._ } = e, C = { id: x, ref: r, role: "option", tabIndex: g === !0 ? void 0 : -1, "aria-disabled": g === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: d, onFocus: m, onPointerenter: v, onMouseenter: v, onPointermove: p, onMousemove: p, onPointerleave: b, onMouseleave: b };
1254
+ let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ..._ } = e, C = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: d, onFocus: m, onPointerenter: v, onMouseenter: v, onPointermove: p, onMousemove: p, onPointerleave: h, onMouseleave: h };
1238
1255
  return z({ ourProps: C, theirProps: _, slot: y, attrs: l, slots: t, name: "ListboxOption" });
1239
1256
  };
1240
1257
  } });
@@ -1254,18 +1271,18 @@ function Ue(e) {
1254
1271
  let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: l }) {
1255
1272
  let o = O(1), n = O(null), r = O(null), i = O([]), u = O(""), c = O(null), a = O(1);
1256
1273
  function s(m = (f) => f) {
1257
- let f = c.value !== null ? i.value[c.value] : null, v = ct(m(i.value.slice()), (b) => R(b.dataRef.domRef)), p = f ? v.indexOf(f) : null;
1274
+ let f = c.value !== null ? i.value[c.value] : null, v = ct(m(i.value.slice()), (h) => E(h.dataRef.domRef)), p = f ? v.indexOf(f) : null;
1258
1275
  return p === -1 && (p = null), { items: v, activeItemIndex: p };
1259
1276
  }
1260
1277
  let d = { menuState: o, buttonRef: n, itemsRef: r, items: i, searchQuery: u, activeItemIndex: c, activationTrigger: a, closeMenu: () => {
1261
1278
  o.value = 1, c.value = null;
1262
1279
  }, openMenu: () => o.value = 0, goToItem(m, f, v) {
1263
- let p = s(), b = en(m === L.Specific ? { focus: L.Specific, id: f } : { focus: m }, { resolveItems: () => p.items, resolveActiveIndex: () => p.activeItemIndex, resolveId: (g) => g.id, resolveDisabled: (g) => g.dataRef.disabled });
1264
- u.value = "", c.value = b, a.value = v ?? 1, i.value = p.items;
1280
+ let p = s(), h = en(m === L.Specific ? { focus: L.Specific, id: f } : { focus: m }, { resolveItems: () => p.items, resolveActiveIndex: () => p.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
1281
+ u.value = "", c.value = h, a.value = v ?? 1, i.value = p.items;
1265
1282
  }, search(m) {
1266
1283
  let f = u.value !== "" ? 0 : 1;
1267
1284
  u.value += m.toLowerCase();
1268
- let v = (c.value !== null ? i.value.slice(c.value + f).concat(i.value.slice(0, c.value + f)) : i.value).find((b) => b.dataRef.textValue.startsWith(u.value) && !b.dataRef.disabled), p = v ? i.value.indexOf(v) : -1;
1285
+ let v = (c.value !== null ? i.value.slice(c.value + f).concat(i.value.slice(0, c.value + f)) : i.value).find((h) => h.dataRef.textValue.startsWith(u.value) && !h.dataRef.disabled), p = v ? i.value.indexOf(v) : -1;
1269
1286
  p === -1 || p === c.value || (c.value = p, a.value = 1);
1270
1287
  }, clearSearch() {
1271
1288
  u.value = "";
@@ -1274,14 +1291,14 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1274
1291
  i.value = v.items, c.value = v.activeItemIndex, a.value = 1;
1275
1292
  }, unregisterItem(m) {
1276
1293
  let f = s((v) => {
1277
- let p = v.findIndex((b) => b.id === m);
1294
+ let p = v.findIndex((h) => h.id === m);
1278
1295
  return p !== -1 && v.splice(p, 1), v;
1279
1296
  });
1280
1297
  i.value = f.items, c.value = f.activeItemIndex, a.value = 1;
1281
1298
  } };
1282
1299
  return an([n, r], (m, f) => {
1283
1300
  var v;
1284
- d.closeMenu(), ze(f, je.Loose) || (m.preventDefault(), (v = R(n)) == null || v.focus());
1301
+ d.closeMenu(), ze(f, je.Loose) || (m.preventDefault(), (v = E(n)) == null || v.focus());
1285
1302
  }, k(() => o.value === 0)), ye(bn, d), on(k(() => G(o.value, { 0: te.Open, 1: te.Closed }))), () => {
1286
1303
  let m = { open: o.value === 0, close: d.closeMenu };
1287
1304
  return z({ ourProps: {}, theirProps: e, slot: m, slots: t, attrs: l, name: "Menu" });
@@ -1296,13 +1313,13 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1296
1313
  case D.ArrowDown:
1297
1314
  a.preventDefault(), a.stopPropagation(), n.openMenu(), j(() => {
1298
1315
  var s;
1299
- (s = R(n.itemsRef)) == null || s.focus({ preventScroll: !0 }), n.goToItem(L.First);
1316
+ (s = E(n.itemsRef)) == null || s.focus({ preventScroll: !0 }), n.goToItem(L.First);
1300
1317
  });
1301
1318
  break;
1302
1319
  case D.ArrowUp:
1303
1320
  a.preventDefault(), a.stopPropagation(), n.openMenu(), j(() => {
1304
1321
  var s;
1305
- (s = R(n.itemsRef)) == null || s.focus({ preventScroll: !0 }), n.goToItem(L.Last);
1322
+ (s = E(n.itemsRef)) == null || s.focus({ preventScroll: !0 }), n.goToItem(L.Last);
1306
1323
  });
1307
1324
  break;
1308
1325
  }
@@ -1317,21 +1334,21 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1317
1334
  function u(a) {
1318
1335
  e.disabled || (n.menuState.value === 0 ? (n.closeMenu(), j(() => {
1319
1336
  var s;
1320
- return (s = R(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1337
+ return (s = E(n.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1321
1338
  })) : (a.preventDefault(), n.openMenu(), pl(() => {
1322
1339
  var s;
1323
- return (s = R(n.itemsRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1340
+ return (s = E(n.itemsRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
1324
1341
  })));
1325
1342
  }
1326
1343
  let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
1327
1344
  return () => {
1328
1345
  var a;
1329
- let s = { open: n.menuState.value === 0 }, { id: d, ...m } = e, f = { ref: n.buttonRef, id: d, type: c.value, "aria-haspopup": "menu", "aria-controls": (a = R(n.itemsRef)) == null ? void 0 : a.id, "aria-expanded": n.menuState.value === 0, onKeydown: r, onKeyup: i, onClick: u };
1346
+ let s = { open: n.menuState.value === 0 }, { id: d, ...m } = e, f = { ref: n.buttonRef, id: d, type: c.value, "aria-haspopup": "menu", "aria-controls": (a = E(n.itemsRef)) == null ? void 0 : a.id, "aria-expanded": n.menuState.value === 0, onKeydown: r, onKeyup: i, onClick: u };
1330
1347
  return z({ ourProps: f, theirProps: m, slot: s, attrs: t, slots: l, name: "MenuButton" });
1331
1348
  };
1332
1349
  } }), gl = $({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
1333
1350
  let n = Ue("MenuItems"), r = O(null);
1334
- o({ el: n.itemsRef, $el: n.itemsRef }), zo({ container: k(() => R(n.itemsRef)), enabled: k(() => n.menuState.value === 0), accept(s) {
1351
+ o({ el: n.itemsRef, $el: n.itemsRef }), zo({ container: k(() => E(n.itemsRef)), enabled: k(() => n.menuState.value === 0), accept(s) {
1335
1352
  return s.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : s.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1336
1353
  }, walk(s) {
1337
1354
  s.setAttribute("role", "none");
@@ -1345,9 +1362,9 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1345
1362
  case D.Enter:
1346
1363
  if (s.preventDefault(), s.stopPropagation(), n.activeItemIndex.value !== null) {
1347
1364
  let m = n.items.value[n.activeItemIndex.value];
1348
- (d = R(m.dataRef.domRef)) == null || d.click();
1365
+ (d = E(m.dataRef.domRef)) == null || d.click();
1349
1366
  }
1350
- n.closeMenu(), rn(R(n.buttonRef));
1367
+ n.closeMenu(), rn(E(n.buttonRef));
1351
1368
  break;
1352
1369
  case D.ArrowDown:
1353
1370
  return s.preventDefault(), s.stopPropagation(), n.goToItem(L.Next);
@@ -1362,11 +1379,11 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1362
1379
  case D.Escape:
1363
1380
  s.preventDefault(), s.stopPropagation(), n.closeMenu(), j(() => {
1364
1381
  var m;
1365
- return (m = R(n.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
1382
+ return (m = E(n.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
1366
1383
  });
1367
1384
  break;
1368
1385
  case D.Tab:
1369
- s.preventDefault(), s.stopPropagation(), n.closeMenu(), j(() => Xo(R(n.buttonRef), s.shiftKey ? tt.Previous : tt.Next));
1386
+ s.preventDefault(), s.stopPropagation(), n.closeMenu(), j(() => Xo(E(n.buttonRef), s.shiftKey ? tt.Previous : tt.Next));
1370
1387
  break;
1371
1388
  default:
1372
1389
  s.key.length === 1 && (n.search(s.key), r.value = setTimeout(() => n.clearSearch(), 350));
@@ -1383,8 +1400,8 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1383
1400
  let c = nn(), a = k(() => c !== null ? (c.value & te.Open) === te.Open : n.menuState.value === 0);
1384
1401
  return () => {
1385
1402
  var s, d;
1386
- let m = { open: n.menuState.value === 0 }, { id: f, ...v } = e, p = { "aria-activedescendant": n.activeItemIndex.value === null || (s = n.items.value[n.activeItemIndex.value]) == null ? void 0 : s.id, "aria-labelledby": (d = R(n.buttonRef)) == null ? void 0 : d.id, id: f, onKeydown: i, onKeyup: u, role: "menu", tabIndex: 0, ref: n.itemsRef };
1387
- return z({ ourProps: p, theirProps: v, slot: m, attrs: t, slots: l, features: Ee.RenderStrategy | Ee.Static, visible: a.value, name: "MenuItems" });
1403
+ let m = { open: n.menuState.value === 0 }, { id: f, ...v } = e, p = { "aria-activedescendant": n.activeItemIndex.value === null || (s = n.items.value[n.activeItemIndex.value]) == null ? void 0 : s.id, "aria-labelledby": (d = E(n.buttonRef)) == null ? void 0 : d.id, id: f, onKeydown: i, onKeyup: u, role: "menu", tabIndex: 0, ref: n.itemsRef };
1404
+ return z({ ourProps: p, theirProps: v, slot: m, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: a.value, name: "MenuItems" });
1388
1405
  };
1389
1406
  } }), bl = $({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
1390
1407
  let n = Ue("MenuItem"), r = O(null);
@@ -1394,14 +1411,14 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1394
1411
  }, domRef: r }));
1395
1412
  ee(() => n.registerItem(e.id, c)), Ne(() => n.unregisterItem(e.id)), xe(() => {
1396
1413
  n.menuState.value === 0 && i.value && n.activationTrigger.value !== 0 && j(() => {
1397
- var p, b;
1398
- return (b = (p = R(r)) == null ? void 0 : p.scrollIntoView) == null ? void 0 : b.call(p, { block: "nearest" });
1414
+ var p, h;
1415
+ return (h = (p = E(r)) == null ? void 0 : p.scrollIntoView) == null ? void 0 : h.call(p, { block: "nearest" });
1399
1416
  });
1400
1417
  });
1401
1418
  function a(p) {
1402
1419
  if (e.disabled)
1403
1420
  return p.preventDefault();
1404
- n.closeMenu(), rn(R(n.buttonRef));
1421
+ n.closeMenu(), rn(E(n.buttonRef));
1405
1422
  }
1406
1423
  function s() {
1407
1424
  if (e.disabled)
@@ -1419,8 +1436,8 @@ let ml = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1419
1436
  d.wasMoved(p) && (e.disabled || i.value && n.goToItem(L.Nothing));
1420
1437
  }
1421
1438
  return () => {
1422
- let { disabled: p } = e, b = { active: i.value, disabled: p, close: n.closeMenu }, { id: g, ...y } = e;
1423
- return z({ ourProps: { id: g, ref: r, role: "menuitem", tabIndex: p === !0 ? void 0 : -1, "aria-disabled": p === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: m, onMouseenter: m, onPointermove: f, onMousemove: f, onPointerleave: v, onMouseleave: v }, theirProps: { ...l, ...y }, slot: b, attrs: l, slots: t, name: "MenuItem" });
1439
+ let { disabled: p } = e, h = { active: i.value, disabled: p, close: n.closeMenu }, { id: b, ...y } = e;
1440
+ return z({ ourProps: { id: b, ref: r, role: "menuitem", tabIndex: p === !0 ? void 0 : -1, "aria-disabled": p === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: m, onMouseenter: m, onPointermove: f, onMousemove: f, onPointerleave: v, onMouseleave: v }, theirProps: { ...l, ...y }, slot: h, attrs: l, slots: t, name: "MenuItem" });
1424
1441
  };
1425
1442
  } }), hn = Symbol("LabelContext");
1426
1443
  function yn() {
@@ -1459,40 +1476,40 @@ $({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "templa
1459
1476
  return ye(xn, { switchRef: o, labelledby: n, describedby: r }), () => z({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: l, name: "SwitchGroup" });
1460
1477
  } });
1461
1478
  let yl = $({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: () => `headlessui-switch-${J()}` } }, inheritAttrs: !1, setup(e, { emit: t, attrs: l, slots: o, expose: n }) {
1462
- let r = he(xn, null), [i, u] = fn(k(() => e.modelValue), (b) => t("update:modelValue", b), k(() => e.defaultChecked));
1479
+ let r = he(xn, null), [i, u] = fn(k(() => e.modelValue), (h) => t("update:modelValue", h), k(() => e.defaultChecked));
1463
1480
  function c() {
1464
1481
  u(!i.value);
1465
1482
  }
1466
1483
  let a = O(null), s = r === null ? a : r.switchRef, d = at(k(() => ({ as: e.as, type: l.type })), s);
1467
1484
  n({ el: s, $el: s });
1468
- function m(b) {
1469
- b.preventDefault(), c();
1485
+ function m(h) {
1486
+ h.preventDefault(), c();
1470
1487
  }
1471
- function f(b) {
1472
- b.key === D.Space ? (b.preventDefault(), c()) : b.key === D.Enter && Qo(b.currentTarget);
1488
+ function f(h) {
1489
+ h.key === D.Space ? (h.preventDefault(), c()) : h.key === D.Enter && Zo(h.currentTarget);
1473
1490
  }
1474
- function v(b) {
1475
- b.preventDefault();
1491
+ function v(h) {
1492
+ h.preventDefault();
1476
1493
  }
1477
1494
  let p = k(() => {
1478
- var b, g;
1479
- return (g = (b = R(s)) == null ? void 0 : b.closest) == null ? void 0 : g.call(b, "form");
1495
+ var h, b;
1496
+ return (b = (h = E(s)) == null ? void 0 : h.closest) == null ? void 0 : b.call(h, "form");
1480
1497
  });
1481
1498
  return ee(() => {
1482
- Z([p], () => {
1499
+ Q([p], () => {
1483
1500
  if (!p.value || e.defaultChecked === void 0)
1484
1501
  return;
1485
- function b() {
1502
+ function h() {
1486
1503
  u(e.defaultChecked);
1487
1504
  }
1488
- return p.value.addEventListener("reset", b), () => {
1489
- var g;
1490
- (g = p.value) == null || g.removeEventListener("reset", b);
1505
+ return p.value.addEventListener("reset", h), () => {
1506
+ var b;
1507
+ (b = p.value) == null || b.removeEventListener("reset", h);
1491
1508
  };
1492
1509
  }, { immediate: !0 });
1493
1510
  }), () => {
1494
- let { id: b, name: g, value: y, form: x, ...w } = e, S = { checked: i.value }, _ = { id: b, ref: s, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: m, onKeyup: f, onKeypress: v };
1495
- return Ce(be, [g != null && i.value != null ? Ce(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: g, value: y })) : null, z({ ourProps: _, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
1511
+ let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, _ = { id: h, ref: s, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: m, onKeyup: f, onKeypress: v };
1512
+ return Ce(be, [b != null && i.value != null ? Ce(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: b, value: y })) : null, z({ ourProps: _, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
1496
1513
  };
1497
1514
  } });
1498
1515
  const Ae = Math.min, ue = Math.max, Me = Math.round, Ie = Math.floor, ae = (e) => ({
@@ -1565,7 +1582,7 @@ function Cl(e, t, l, o) {
1565
1582
  function Ve(e) {
1566
1583
  return e.replace(/left|right|bottom|top/g, (t) => xl[t]);
1567
1584
  }
1568
- function El(e) {
1585
+ function Rl(e) {
1569
1586
  return {
1570
1587
  top: 0,
1571
1588
  right: 0,
@@ -1574,8 +1591,8 @@ function El(e) {
1574
1591
  ...e
1575
1592
  };
1576
1593
  }
1577
- function Rl(e) {
1578
- return typeof e != "number" ? El(e) : {
1594
+ function El(e) {
1595
+ return typeof e != "number" ? Rl(e) : {
1579
1596
  top: e,
1580
1597
  right: e,
1581
1598
  bottom: e,
@@ -1656,14 +1673,14 @@ const Dl = async (e, t, l) => {
1656
1673
  } = It(a, o, c), m = o, f = {}, v = 0;
1657
1674
  for (let p = 0; p < u.length; p++) {
1658
1675
  const {
1659
- name: b,
1660
- fn: g
1676
+ name: h,
1677
+ fn: b
1661
1678
  } = u[p], {
1662
1679
  x: y,
1663
1680
  y: x,
1664
1681
  data: w,
1665
1682
  reset: S
1666
- } = await g({
1683
+ } = await b({
1667
1684
  x: s,
1668
1685
  y: d,
1669
1686
  initialPlacement: o,
@@ -1679,8 +1696,8 @@ const Dl = async (e, t, l) => {
1679
1696
  });
1680
1697
  if (s = y ?? s, d = x ?? d, f = {
1681
1698
  ...f,
1682
- [b]: {
1683
- ...f[b],
1699
+ [h]: {
1700
+ ...f[h],
1684
1701
  ...w
1685
1702
  }
1686
1703
  }, S && v <= 50) {
@@ -1719,8 +1736,8 @@ async function On(e, t) {
1719
1736
  elementContext: d = "floating",
1720
1737
  altBoundary: m = !1,
1721
1738
  padding: f = 0
1722
- } = He(t, e), v = Rl(f), b = u[m ? d === "floating" ? "reference" : "floating" : d], g = Fe(await r.getClippingRect({
1723
- element: (l = await (r.isElement == null ? void 0 : r.isElement(b))) == null || l ? b : b.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(u.floating)),
1739
+ } = He(t, e), v = El(f), h = u[m ? d === "floating" ? "reference" : "floating" : d], b = Fe(await r.getClippingRect({
1740
+ element: (l = await (r.isElement == null ? void 0 : r.isElement(h))) == null || l ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(u.floating)),
1724
1741
  boundary: a,
1725
1742
  rootBoundary: s,
1726
1743
  strategy: c
@@ -1740,10 +1757,10 @@ async function On(e, t) {
1740
1757
  strategy: c
1741
1758
  }) : y);
1742
1759
  return {
1743
- top: (g.top - S.top + v.top) / w.y,
1744
- bottom: (S.bottom - g.bottom + v.bottom) / w.y,
1745
- left: (g.left - S.left + v.left) / w.x,
1746
- right: (S.right - g.right + v.right) / w.x
1760
+ top: (b.top - S.top + v.top) / w.y,
1761
+ bottom: (S.bottom - b.bottom + v.bottom) / w.y,
1762
+ left: (b.left - S.left + v.left) / w.x,
1763
+ right: (S.right - b.right + v.right) / w.x
1747
1764
  };
1748
1765
  }
1749
1766
  const Pl = function(e) {
@@ -1766,15 +1783,15 @@ const Pl = function(e) {
1766
1783
  fallbackStrategy: f = "bestFit",
1767
1784
  fallbackAxisSideDirection: v = "none",
1768
1785
  flipAlignment: p = !0,
1769
- ...b
1786
+ ...h
1770
1787
  } = He(e, t);
1771
1788
  if ((l = r.arrow) != null && l.alignmentOffset)
1772
1789
  return {};
1773
- const g = ce(n), y = ce(u) === u, x = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), w = m || (y || !p ? [Ve(u)] : Sl(u));
1790
+ const b = ce(n), y = ce(u) === u, x = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), w = m || (y || !p ? [Ve(u)] : Sl(u));
1774
1791
  !m && v !== "none" && w.push(...Cl(u, p, v, x));
1775
- const S = [u, ...w], _ = await On(t, b), C = [];
1792
+ const S = [u, ...w], _ = await On(t, h), C = [];
1776
1793
  let N = ((o = r.flip) == null ? void 0 : o.overflows) || [];
1777
- if (s && C.push(_[g]), d) {
1794
+ if (s && C.push(_[b]), d) {
1778
1795
  const se = kl(n, i, x);
1779
1796
  C.push(_[se[0]], _[se[1]]);
1780
1797
  }
@@ -1881,13 +1898,13 @@ const Tl = function(e) {
1881
1898
  mainAxis: r = !0,
1882
1899
  crossAxis: i = !1,
1883
1900
  limiter: u = {
1884
- fn: (b) => {
1901
+ fn: (h) => {
1885
1902
  let {
1886
- x: g,
1903
+ x: b,
1887
1904
  y
1888
- } = b;
1905
+ } = h;
1889
1906
  return {
1890
- x: g,
1907
+ x: b,
1891
1908
  y
1892
1909
  };
1893
1910
  }
@@ -1899,11 +1916,11 @@ const Tl = function(e) {
1899
1916
  }, s = await On(t, c), d = Ke(ce(n)), m = wn(d);
1900
1917
  let f = a[m], v = a[d];
1901
1918
  if (r) {
1902
- const b = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", y = f + s[b], x = f - s[g];
1919
+ const h = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", y = f + s[h], x = f - s[b];
1903
1920
  f = Lt(y, f, x);
1904
1921
  }
1905
1922
  if (i) {
1906
- const b = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", y = v + s[b], x = v - s[g];
1923
+ const h = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", y = v + s[h], x = v - s[b];
1907
1924
  v = Lt(y, v, x);
1908
1925
  }
1909
1926
  const p = u.fn({
@@ -1938,7 +1955,7 @@ function ft(e) {
1938
1955
  function oe(e) {
1939
1956
  return e instanceof Element || e instanceof H(e).Element;
1940
1957
  }
1941
- function Q(e) {
1958
+ function Z(e) {
1942
1959
  return e instanceof HTMLElement || e instanceof H(e).HTMLElement;
1943
1960
  }
1944
1961
  function $t(e) {
@@ -1962,7 +1979,7 @@ function pt(e) {
1962
1979
  }
1963
1980
  function $l(e) {
1964
1981
  let t = ge(e);
1965
- for (; Q(t) && !Ge(t); ) {
1982
+ for (; Z(t) && !Ge(t); ) {
1966
1983
  if (pt(t))
1967
1984
  return t;
1968
1985
  t = ge(t);
@@ -2001,18 +2018,18 @@ function ge(e) {
2001
2018
  }
2002
2019
  function Cn(e) {
2003
2020
  const t = ge(e);
2004
- return Ge(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Q(t) && Pe(t) ? t : Cn(t);
2021
+ return Ge(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Pe(t) ? t : Cn(t);
2005
2022
  }
2006
- function Re(e, t, l) {
2023
+ function Ee(e, t, l) {
2007
2024
  var o;
2008
2025
  t === void 0 && (t = []), l === void 0 && (l = !0);
2009
2026
  const n = Cn(e), r = n === ((o = e.ownerDocument) == null ? void 0 : o.body), i = H(n);
2010
- return r ? t.concat(i, i.visualViewport || [], Pe(n) ? n : [], i.frameElement && l ? Re(i.frameElement) : []) : t.concat(n, Re(n, [], l));
2027
+ return r ? t.concat(i, i.visualViewport || [], Pe(n) ? n : [], i.frameElement && l ? Ee(i.frameElement) : []) : t.concat(n, Ee(n, [], l));
2011
2028
  }
2012
- function En(e) {
2029
+ function Rn(e) {
2013
2030
  const t = q(e);
2014
2031
  let l = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2015
- const n = Q(e), r = n ? e.offsetWidth : l, i = n ? e.offsetHeight : o, u = Me(l) !== r || Me(o) !== i;
2032
+ const n = Z(e), r = n ? e.offsetWidth : l, i = n ? e.offsetHeight : o, u = Me(l) !== r || Me(o) !== i;
2016
2033
  return u && (l = r, o = i), {
2017
2034
  width: l,
2018
2035
  height: o,
@@ -2024,13 +2041,13 @@ function vt(e) {
2024
2041
  }
2025
2042
  function ve(e) {
2026
2043
  const t = vt(e);
2027
- if (!Q(t))
2044
+ if (!Z(t))
2028
2045
  return ae(1);
2029
2046
  const l = t.getBoundingClientRect(), {
2030
2047
  width: o,
2031
2048
  height: n,
2032
2049
  $: r
2033
- } = En(t);
2050
+ } = Rn(t);
2034
2051
  let i = (r ? Me(l.width) : l.width) / o, u = (r ? Me(l.height) : l.height) / n;
2035
2052
  return (!i || !Number.isFinite(i)) && (i = 1), (!u || !Number.isFinite(u)) && (u = 1), {
2036
2053
  x: i,
@@ -2038,7 +2055,7 @@ function ve(e) {
2038
2055
  };
2039
2056
  }
2040
2057
  const Al = /* @__PURE__ */ ae(0);
2041
- function Rn(e) {
2058
+ function En(e) {
2042
2059
  const t = H(e);
2043
2060
  return !mt() || !t.visualViewport ? Al : {
2044
2061
  x: t.visualViewport.offsetLeft,
@@ -2053,13 +2070,13 @@ function de(e, t, l, o) {
2053
2070
  const n = e.getBoundingClientRect(), r = vt(e);
2054
2071
  let i = ae(1);
2055
2072
  t && (o ? oe(o) && (i = ve(o)) : i = ve(e));
2056
- const u = Ml(r, l, o) ? Rn(r) : ae(0);
2073
+ const u = Ml(r, l, o) ? En(r) : ae(0);
2057
2074
  let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x, d = n.height / i.y;
2058
2075
  if (r) {
2059
2076
  const m = H(r), f = o && oe(o) ? H(o) : o;
2060
2077
  let v = m.frameElement;
2061
2078
  for (; v && o && f !== m; ) {
2062
- const p = ve(v), b = v.getBoundingClientRect(), g = q(v), y = b.left + (v.clientLeft + parseFloat(g.paddingLeft)) * p.x, x = b.top + (v.clientTop + parseFloat(g.paddingTop)) * p.y;
2079
+ const p = ve(v), h = v.getBoundingClientRect(), b = q(v), y = h.left + (v.clientLeft + parseFloat(b.paddingLeft)) * p.x, x = h.top + (v.clientTop + parseFloat(b.paddingTop)) * p.y;
2063
2080
  c *= p.x, a *= p.y, s *= p.x, d *= p.y, c += y, a += x, v = H(v).frameElement;
2064
2081
  }
2065
2082
  }
@@ -2076,7 +2093,7 @@ function Vl(e) {
2076
2093
  offsetParent: l,
2077
2094
  strategy: o
2078
2095
  } = e;
2079
- const n = Q(l), r = le(l);
2096
+ const n = Z(l), r = le(l);
2080
2097
  if (l === r)
2081
2098
  return t;
2082
2099
  let i = {
@@ -2084,7 +2101,7 @@ function Vl(e) {
2084
2101
  scrollTop: 0
2085
2102
  }, u = ae(1);
2086
2103
  const c = ae(0);
2087
- if ((n || !n && o !== "fixed") && ((ne(l) !== "body" || Pe(r)) && (i = qe(l)), Q(l))) {
2104
+ if ((n || !n && o !== "fixed") && ((ne(l) !== "body" || Pe(r)) && (i = qe(l)), Z(l))) {
2088
2105
  const a = de(l);
2089
2106
  u = ve(l), c.x = a.x + l.clientLeft, c.y = a.y + l.clientTop;
2090
2107
  }
@@ -2128,7 +2145,7 @@ function Bl(e, t) {
2128
2145
  };
2129
2146
  }
2130
2147
  function jl(e, t) {
2131
- const l = de(e, !0, t === "fixed"), o = l.top + e.clientTop, n = l.left + e.clientLeft, r = Q(e) ? ve(e) : ae(1), i = e.clientWidth * r.x, u = e.clientHeight * r.y, c = n * r.x, a = o * r.y;
2148
+ const l = de(e, !0, t === "fixed"), o = l.top + e.clientTop, n = l.left + e.clientLeft, r = Z(e) ? ve(e) : ae(1), i = e.clientWidth * r.x, u = e.clientHeight * r.y, c = n * r.x, a = o * r.y;
2132
2149
  return {
2133
2150
  width: i,
2134
2151
  height: u,
@@ -2145,7 +2162,7 @@ function At(e, t, l) {
2145
2162
  else if (oe(t))
2146
2163
  o = jl(t, l);
2147
2164
  else {
2148
- const n = Rn(e);
2165
+ const n = En(e);
2149
2166
  o = {
2150
2167
  ...t,
2151
2168
  x: t.x - n.x,
@@ -2162,7 +2179,7 @@ function zl(e, t) {
2162
2179
  const l = t.get(e);
2163
2180
  if (l)
2164
2181
  return l;
2165
- let o = Re(e, [], !1).filter((u) => oe(u) && ne(u) !== "body"), n = null;
2182
+ let o = Ee(e, [], !1).filter((u) => oe(u) && ne(u) !== "body"), n = null;
2166
2183
  const r = q(e).position === "fixed";
2167
2184
  let i = r ? ge(e) : e;
2168
2185
  for (; oe(i) && !Ge(i); ) {
@@ -2193,14 +2210,14 @@ function Hl(e) {
2193
2210
  const {
2194
2211
  width: t,
2195
2212
  height: l
2196
- } = En(e);
2213
+ } = Rn(e);
2197
2214
  return {
2198
2215
  width: t,
2199
2216
  height: l
2200
2217
  };
2201
2218
  }
2202
2219
  function Wl(e, t, l) {
2203
- const o = Q(t), n = le(t), r = l === "fixed", i = de(e, !0, r, t);
2220
+ const o = Z(t), n = le(t), r = l === "fixed", i = de(e, !0, r, t);
2204
2221
  let u = {
2205
2222
  scrollLeft: 0,
2206
2223
  scrollTop: 0
@@ -2220,11 +2237,11 @@ function Wl(e, t, l) {
2220
2237
  };
2221
2238
  }
2222
2239
  function Mt(e, t) {
2223
- return !Q(e) || q(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
2240
+ return !Z(e) || q(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
2224
2241
  }
2225
2242
  function _n(e, t) {
2226
2243
  const l = H(e);
2227
- if (!Q(e))
2244
+ if (!Z(e))
2228
2245
  return l;
2229
2246
  let o = Mt(e, t);
2230
2247
  for (; o && Il(o) && q(o).position === "static"; )
@@ -2278,8 +2295,8 @@ function Xl(e, t) {
2278
2295
  } = e.getBoundingClientRect();
2279
2296
  if (u || t(), !d || !m)
2280
2297
  return;
2281
- const f = Ie(s), v = Ie(n.clientWidth - (a + d)), p = Ie(n.clientHeight - (s + m)), b = Ie(a), y = {
2282
- rootMargin: -f + "px " + -v + "px " + -p + "px " + -b + "px",
2298
+ const f = Ie(s), v = Ie(n.clientWidth - (a + d)), p = Ie(n.clientHeight - (s + m)), h = Ie(a), y = {
2299
+ rootMargin: -f + "px " + -v + "px " + -p + "px " + -h + "px",
2283
2300
  threshold: ue(0, Ae(1, c)) || 1
2284
2301
  };
2285
2302
  let x = !0;
@@ -2315,33 +2332,33 @@ function Yl(e, t, l, o) {
2315
2332
  elementResize: i = typeof ResizeObserver == "function",
2316
2333
  layoutShift: u = typeof IntersectionObserver == "function",
2317
2334
  animationFrame: c = !1
2318
- } = o, a = vt(e), s = n || r ? [...a ? Re(a) : [], ...Re(t)] : [];
2319
- s.forEach((g) => {
2320
- n && g.addEventListener("scroll", l, {
2335
+ } = o, a = vt(e), s = n || r ? [...a ? Ee(a) : [], ...Ee(t)] : [];
2336
+ s.forEach((b) => {
2337
+ n && b.addEventListener("scroll", l, {
2321
2338
  passive: !0
2322
- }), r && g.addEventListener("resize", l);
2339
+ }), r && b.addEventListener("resize", l);
2323
2340
  });
2324
2341
  const d = a && u ? Xl(a, l) : null;
2325
2342
  let m = -1, f = null;
2326
- i && (f = new ResizeObserver((g) => {
2327
- let [y] = g;
2343
+ i && (f = new ResizeObserver((b) => {
2344
+ let [y] = b;
2328
2345
  y && y.target === a && f && (f.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
2329
2346
  f && f.observe(t);
2330
2347
  })), l();
2331
2348
  }), a && !c && f.observe(a), f.observe(t));
2332
2349
  let v, p = c ? de(e) : null;
2333
- c && b();
2334
- function b() {
2335
- const g = de(e);
2336
- p && (g.x !== p.x || g.y !== p.y || g.width !== p.width || g.height !== p.height) && l(), p = g, v = requestAnimationFrame(b);
2350
+ c && h();
2351
+ function h() {
2352
+ const b = de(e);
2353
+ p && (b.x !== p.x || b.y !== p.y || b.width !== p.width || b.height !== p.height) && l(), p = b, v = requestAnimationFrame(h);
2337
2354
  }
2338
2355
  return l(), () => {
2339
- s.forEach((g) => {
2340
- n && g.removeEventListener("scroll", l), r && g.removeEventListener("resize", l);
2356
+ s.forEach((b) => {
2357
+ n && b.removeEventListener("scroll", l), r && b.removeEventListener("resize", l);
2341
2358
  }), d && d(), f && f.disconnect(), f = null, c && cancelAnimationFrame(v);
2342
2359
  };
2343
2360
  }
2344
- const Zl = Ll, Ql = Pl, Jl = (e, t, l) => {
2361
+ const Ql = Ll, Zl = Pl, Jl = (e, t, l) => {
2345
2362
  const o = /* @__PURE__ */ new Map(), n = {
2346
2363
  platform: ql,
2347
2364
  ...l
@@ -2385,7 +2402,7 @@ function tr(e, t, l) {
2385
2402
  }), c = k(() => {
2386
2403
  var C;
2387
2404
  return (C = P(l.transform)) != null ? C : !0;
2388
- }), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), d = O(0), m = O(0), f = O(u.value), v = O(i.value), p = Vn({}), b = O(!1), g = k(() => {
2405
+ }), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), d = O(0), m = O(0), f = O(u.value), v = O(i.value), p = Vn({}), h = O(!1), b = k(() => {
2389
2406
  const C = {
2390
2407
  position: f.value,
2391
2408
  left: "0",
@@ -2413,7 +2430,7 @@ function tr(e, t, l) {
2413
2430
  placement: i.value,
2414
2431
  strategy: u.value
2415
2432
  }).then((C) => {
2416
- d.value = C.x, m.value = C.y, f.value = C.strategy, v.value = C.placement, p.value = C.middlewareData, b.value = !0;
2433
+ d.value = C.x, m.value = C.y, f.value = C.strategy, v.value = C.placement, p.value = C.middlewareData, h.value = !0;
2417
2434
  });
2418
2435
  }
2419
2436
  function w() {
@@ -2430,13 +2447,13 @@ function tr(e, t, l) {
2430
2447
  }
2431
2448
  }
2432
2449
  function _() {
2433
- n.value || (b.value = !1);
2450
+ n.value || (h.value = !1);
2434
2451
  }
2435
- return Z([r, i, u], x, {
2452
+ return Q([r, i, u], x, {
2436
2453
  flush: "sync"
2437
- }), Z([a, s], S, {
2454
+ }), Q([a, s], S, {
2438
2455
  flush: "sync"
2439
- }), Z(n, _, {
2456
+ }), Q(n, _, {
2440
2457
  flush: "sync"
2441
2458
  }), Fn() && Nn(w), {
2442
2459
  x: me(d),
@@ -2444,8 +2461,8 @@ function tr(e, t, l) {
2444
2461
  strategy: me(f),
2445
2462
  placement: me(v),
2446
2463
  middlewareData: me(p),
2447
- isPositioned: me(b),
2448
- floatingStyles: g,
2464
+ isPositioned: me(h),
2465
+ floatingStyles: b,
2449
2466
  update: x
2450
2467
  };
2451
2468
  }
@@ -2459,9 +2476,9 @@ const _r = /* @__PURE__ */ $({
2459
2476
  const t = e, l = O(null), o = O(null), n = t.position === "left" ? "bottom-end" : "bottom-start", { floatingStyles: r } = tr(l, o, {
2460
2477
  placement: n,
2461
2478
  whileElementsMounted: Yl,
2462
- middleware: [Tl(6), Ql(), Zl({ padding: 6 })]
2479
+ middleware: [Tl(6), Zl(), Ql({ padding: 6 })]
2463
2480
  });
2464
- return (i, u) => (E(), K(P(ml), {
2481
+ return (i, u) => (R(), K(P(ml), {
2465
2482
  as: "div",
2466
2483
  class: "inline-block text-left"
2467
2484
  }, {
@@ -2481,7 +2498,7 @@ const _r = /* @__PURE__ */ $({
2481
2498
  ]),
2482
2499
  _: 3
2483
2500
  }, 512),
2484
- (E(), K(Bn, {
2501
+ (R(), K(Bn, {
2485
2502
  to: typeof i.usePortal == "string" ? i.usePortal : "body",
2486
2503
  disabled: !i.usePortal
2487
2504
  }, [
@@ -2531,9 +2548,9 @@ const _r = /* @__PURE__ */ $({
2531
2548
  as: {}
2532
2549
  },
2533
2550
  setup(e) {
2534
- return (t, l) => (E(), K(P(bl), jn(zn({ disabled: t.disabled })), {
2551
+ return (t, l) => (R(), K(P(bl), jn(zn({ disabled: t.disabled })), {
2535
2552
  default: W(({ active: o }) => [
2536
- (E(), K(Un(t.as || "span"), {
2553
+ (R(), K(Un(t.as || "span"), {
2537
2554
  class: A(["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg", [
2538
2555
  o ? "bg-grey-200" : "",
2539
2556
  t.disabled ? "opacity-50 pointer-events-none" : "hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"
@@ -2541,7 +2558,7 @@ const _r = /* @__PURE__ */ $({
2541
2558
  }, {
2542
2559
  default: W(() => [
2543
2560
  I("span", null, B(t.label), 1),
2544
- t.meta ? (E(), T("span", nr, B(t.meta), 1)) : M("", !0)
2561
+ t.meta ? (R(), T("span", nr, B(t.meta), 1)) : M("", !0)
2545
2562
  ]),
2546
2563
  _: 2
2547
2564
  }, 1032, ["class"]))
@@ -2575,15 +2592,15 @@ const _r = /* @__PURE__ */ $({
2575
2592
  emits: ["update:modelValue"],
2576
2593
  setup(e, { emit: t }) {
2577
2594
  const l = e, o = l.modelValue ? O(l.modelValue) : O(void 0), n = t, { inputClasses: r, disabledClasses: i, textSizeClasses: u } = rt(l);
2578
- return Z(
2595
+ return Q(
2579
2596
  () => l.modelValue,
2580
2597
  (c) => {
2581
2598
  var a;
2582
2599
  c && c.id !== ((a = o.value) == null ? void 0 : a.id) && (o.value = c);
2583
2600
  }
2584
- ), Z(o, (c) => {
2601
+ ), Q(o, (c) => {
2585
2602
  c && n("update:modelValue", c);
2586
- }), (c, a) => (E(), K(P(al), {
2603
+ }), (c, a) => (R(), K(P(al), {
2587
2604
  as: "div",
2588
2605
  modelValue: P(o),
2589
2606
  "onUpdate:modelValue": a[0] || (a[0] = (s) => Hn(o) ? o.value = s : null),
@@ -2597,12 +2614,12 @@ const _r = /* @__PURE__ */ $({
2597
2614
  default: W(() => {
2598
2615
  var s;
2599
2616
  return [
2600
- c.icon ? (E(), T("span", lr, [
2617
+ c.icon ? (R(), T("span", lr, [
2601
2618
  F(U, {
2602
2619
  name: ((s = P(o)) == null ? void 0 : s.icon) ?? c.icon
2603
2620
  }, null, 8, ["name"])
2604
2621
  ])) : M("", !0),
2605
- P(o) ? (E(), T("span", rr, B(P(o).label), 1)) : (E(), T("span", ir, B(c.placeholder), 1)),
2622
+ P(o) ? (R(), T("span", rr, B(P(o).label), 1)) : (R(), T("span", ir, B(c.placeholder), 1)),
2606
2623
  I("span", ar, [
2607
2624
  F(U, {
2608
2625
  class: "text-grey-400",
@@ -2622,7 +2639,7 @@ const _r = /* @__PURE__ */ $({
2622
2639
  default: W(() => [
2623
2640
  F(P(ul), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
2624
2641
  default: W(() => [
2625
- (E(!0), T(be, null, jt(c.options, (s) => (E(), K(P(cl), {
2642
+ (R(!0), T(be, null, jt(c.options, (s) => (R(), K(P(cl), {
2626
2643
  as: "template",
2627
2644
  key: s.id,
2628
2645
  value: s,
@@ -2637,7 +2654,7 @@ const _r = /* @__PURE__ */ $({
2637
2654
  ])
2638
2655
  }, [
2639
2656
  I("div", sr, [
2640
- s.disabled && c.disabledBadge ? (E(), T("span", ur, B(c.disabledBadge), 1)) : M("", !0)
2657
+ s.disabled && c.disabledBadge ? (R(), T("span", ur, B(c.disabledBadge), 1)) : M("", !0)
2641
2658
  ]),
2642
2659
  I("span", {
2643
2660
  class: A([
@@ -2645,14 +2662,14 @@ const _r = /* @__PURE__ */ $({
2645
2662
  "block truncate"
2646
2663
  ])
2647
2664
  }, [
2648
- s.icon ? (E(), K(U, {
2665
+ s.icon ? (R(), K(U, {
2649
2666
  key: 0,
2650
2667
  class: "inline-block mr-1",
2651
2668
  name: s.icon
2652
2669
  }, null, 8, ["name"])) : M("", !0),
2653
2670
  Wn(" " + B(s.label), 1)
2654
2671
  ], 2),
2655
- m ? (E(), T("span", {
2672
+ m ? (R(), T("span", {
2656
2673
  key: 0,
2657
2674
  class: A([
2658
2675
  d ? "text-blue-100" : "text-blue-500",
@@ -2707,24 +2724,24 @@ const _r = /* @__PURE__ */ $({
2707
2724
  margin: `mr-${o[Math.floor(Math.random() * o.length)]}`
2708
2725
  };
2709
2726
  });
2710
- return (o, n) => (E(), T("div", cr, [
2727
+ return (o, n) => (R(), T("div", cr, [
2711
2728
  I("div", dr, [
2712
- o.avatar ? (E(), T("div", fr)) : M("", !0),
2713
- o.title ? (E(), T("div", pr)) : M("", !0)
2729
+ o.avatar ? (R(), T("div", fr)) : M("", !0),
2730
+ o.title ? (R(), T("div", pr)) : M("", !0)
2714
2731
  ]),
2715
- o.lines > 0 ? (E(), T("div", mr, [
2716
- (E(!0), T(be, null, jt(P(l), (r, i) => (E(), T("div", {
2732
+ o.lines > 0 ? (R(), T("div", mr, [
2733
+ (R(!0), T(be, null, jt(P(l), (r, i) => (R(), T("div", {
2717
2734
  class: A(["h-4 bg-current rounded-lg", r.margin]),
2718
2735
  key: i
2719
2736
  }, null, 2))), 128))
2720
2737
  ])) : M("", !0),
2721
- o.footer ? (E(), T("div", vr)) : M("", !0)
2738
+ o.footer ? (R(), T("div", vr)) : M("", !0)
2722
2739
  ]));
2723
2740
  }
2724
2741
  }), $r = /* @__PURE__ */ $({
2725
2742
  __name: "Spinner",
2726
2743
  setup(e) {
2727
- return (t, l) => (E(), K(P(U), {
2744
+ return (t, l) => (R(), K(P(U), {
2728
2745
  class: "animate-spin",
2729
2746
  name: "circle-notch"
2730
2747
  }));
@@ -2790,7 +2807,7 @@ const _r = /* @__PURE__ */ $({
2790
2807
  function c() {
2791
2808
  o.isDisabled || l("onClickSplit");
2792
2809
  }
2793
- return (a, s) => (E(), T("div", gr, [
2810
+ return (a, s) => (R(), T("div", gr, [
2794
2811
  I("button", {
2795
2812
  type: "button",
2796
2813
  "aria-label": a.label,
@@ -2803,7 +2820,7 @@ const _r = /* @__PURE__ */ $({
2803
2820
  }, [
2804
2821
  I("span", null, B(a.label), 1)
2805
2822
  ], 2),
2806
- a.isLoading ? (E(), T("span", hr, [
2823
+ a.isLoading ? (R(), T("span", hr, [
2807
2824
  F(U, {
2808
2825
  class: "ml-3 animate-spin",
2809
2826
  name: "circle-notch"
@@ -2837,7 +2854,7 @@ const _r = /* @__PURE__ */ $({
2837
2854
  const l = t, o = (n) => {
2838
2855
  l("update:modelValue", n), l("change", n);
2839
2856
  };
2840
- return (n, r) => (E(), K(P(yl), {
2857
+ return (n, r) => (R(), K(P(yl), {
2841
2858
  modelValue: n.modelValue,
2842
2859
  label: n.label,
2843
2860
  class: A([n.modelValue ? "bg-blue-700" : "bg-grey-700", "relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),
@@ -2875,7 +2892,7 @@ const _r = /* @__PURE__ */ $({
2875
2892
  focus: () => {
2876
2893
  o.isDisabled || a.value.focus();
2877
2894
  }
2878
- }), (d, m) => (E(), T("div", xr, [
2895
+ }), (d, m) => (R(), T("div", xr, [
2879
2896
  I("textarea", ot({
2880
2897
  class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [P(r), P(u), P(i)]],
2881
2898
  tabindex: d.isDisabled ? "-1" : void 0,
@@ -2892,8 +2909,8 @@ const _r = /* @__PURE__ */ $({
2892
2909
  }
2893
2910
  });
2894
2911
  export {
2895
- Er as D9Button,
2896
- Rr as D9Checkbox,
2912
+ Rr as D9Button,
2913
+ Er as D9Checkbox,
2897
2914
  U as D9Icon,
2898
2915
  Dr as D9Input,
2899
2916
  Pr as D9Label,