@robuust-digital/vue-components 1.2.2 → 1.2.4

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.
@@ -1,29 +1,29 @@
1
- import * as Kt from "vue";
2
- import { openBlock as E, createElementBlock as k, createElementVNode as x, Fragment as Le, renderList as nt, renderSlot as C, createTextVNode as he, toDisplayString as re, createVNode as M, unref as S, normalizeClass as q, createBlock as oe, resolveDynamicComponent as Ie, withCtx as H, createCommentVNode as _, watchEffect as te, mergeProps as qe, computed as b, withDirectives as Yn, vModelCheckbox as Kn, ref as $, onMounted as V, cloneVNode as Gn, h as N, defineComponent as I, inject as Y, provide as ie, onUnmounted as ae, watch as de, shallowRef as Ve, getCurrentInstance as Xn, Teleport as Zn, reactive as Qn, nextTick as Jn, withModifiers as un, getCurrentScope as _n, onScopeDispose as el, shallowReadonly as Pe, normalizeStyle as tl } from "vue";
3
- function nl(e, t) {
4
- return E(), k("svg", {
1
+ import * as Gt from "vue";
2
+ import { openBlock as $, createElementBlock as T, createElementVNode as S, Fragment as Te, renderList as nt, renderSlot as C, createTextVNode as he, toDisplayString as oe, createVNode as M, unref as x, normalizeClass as q, createBlock as _, resolveDynamicComponent as Be, withCtx as H, createCommentVNode as ee, watchEffect as ne, mergeProps as ye, computed as b, getCurrentInstance as cn, useAttrs as Zn, withDirectives as dn, vModelDynamic as Qn, normalizeProps as bt, ref as E, onMounted as V, cloneVNode as Jn, h as N, defineComponent as I, inject as K, provide as ie, onUnmounted as ae, watch as de, shallowRef as We, Teleport as _n, reactive as el, nextTick as tl, withModifiers as fn, guardReactiveProps as nl, vModelSelect as ll, getCurrentScope as rl, onScopeDispose as ol, shallowReadonly as De, normalizeStyle as il } from "vue";
3
+ function al(e, t) {
4
+ return $(), T("svg", {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
7
7
  fill: "currentColor",
8
8
  "aria-hidden": "true",
9
9
  "data-slot": "icon"
10
10
  }, [
11
- x("path", {
11
+ S("path", {
12
12
  "fill-rule": "evenodd",
13
13
  d: "M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",
14
14
  "clip-rule": "evenodd"
15
15
  })
16
16
  ]);
17
17
  }
18
- function ll(e, t) {
19
- return E(), k("svg", {
18
+ function sl(e, t) {
19
+ return $(), T("svg", {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
21
  viewBox: "0 0 24 24",
22
22
  fill: "currentColor",
23
23
  "aria-hidden": "true",
24
24
  "data-slot": "icon"
25
25
  }, [
26
- x("path", {
26
+ S("path", {
27
27
  "fill-rule": "evenodd",
28
28
  d: "M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
29
29
  "clip-rule": "evenodd"
@@ -31,21 +31,21 @@ function ll(e, t) {
31
31
  ]);
32
32
  }
33
33
  function At(e, t) {
34
- return E(), k("svg", {
34
+ return $(), T("svg", {
35
35
  xmlns: "http://www.w3.org/2000/svg",
36
36
  viewBox: "0 0 24 24",
37
37
  fill: "currentColor",
38
38
  "aria-hidden": "true",
39
39
  "data-slot": "icon"
40
40
  }, [
41
- x("path", {
41
+ S("path", {
42
42
  "fill-rule": "evenodd",
43
43
  d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
44
44
  "clip-rule": "evenodd"
45
45
  })
46
46
  ]);
47
47
  }
48
- const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"], Ro = {
48
+ const ul = { class: "rvc-accordion" }, cl = ["open", "name"], dl = ["innerHTML"], No = {
49
49
  __name: "Accordion",
50
50
  props: {
51
51
  items: {
@@ -67,37 +67,37 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
67
67
  }
68
68
  },
69
69
  setup(e) {
70
- return (t, n) => (E(), k("div", rl, [
71
- (E(!0), k(Le, null, nt(e.items, (l, r) => (E(), k("details", {
70
+ return (t, n) => ($(), T("div", ul, [
71
+ ($(!0), T(Te, null, nt(e.items, (l, r) => ($(), T("details", {
72
72
  key: r,
73
73
  open: e.defaultOpenIndex === r,
74
74
  name: e.name,
75
75
  class: "rvc-group/accordion group/accordion"
76
76
  }, [
77
- x("summary", null, [
77
+ S("summary", null, [
78
78
  C(t.$slots, "summary", {
79
79
  item: l,
80
80
  active: e.defaultOpenIndex === r
81
81
  }, () => [
82
- he(re(l.title) + " ", 1),
82
+ he(oe(l.title) + " ", 1),
83
83
  C(t.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
84
- M(S(ll), { class: "rvc-size-5 group-open/accordion:rvc-rotate-45 rvc-transition-transform" })
84
+ M(x(sl), { class: "rvc-size-5 group-open/accordion:rvc-rotate-45 rvc-transition-transform" })
85
85
  ])
86
86
  ])
87
87
  ]),
88
- x("div", {
88
+ S("div", {
89
89
  class: q(["rvc-accordion-content", e.contentClass])
90
90
  }, [
91
91
  C(t.$slots, "content", { item: l }, () => [
92
- x("div", {
92
+ S("div", {
93
93
  innerHTML: l.content
94
- }, null, 8, il)
94
+ }, null, 8, dl)
95
95
  ])
96
96
  ], 2)
97
- ], 8, ol))), 128))
97
+ ], 8, cl))), 128))
98
98
  ]));
99
99
  }
100
- }, al = { class: "rvc-alert-title" }, Fo = {
100
+ }, fl = { class: "rvc-alert-title" }, jo = {
101
101
  __name: "Alert",
102
102
  props: {
103
103
  as: {
@@ -124,37 +124,37 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
124
124
  },
125
125
  emits: ["alert:close"],
126
126
  setup(e) {
127
- return (t, n) => (E(), oe(Ie(e.as), {
127
+ return (t, n) => ($(), _(Be(e.as), {
128
128
  class: q(["rvc-alert", `rvc-alert-${e.type}`])
129
129
  }, {
130
130
  default: H(() => [
131
131
  C(t.$slots, "icon", {}, () => [
132
- e.icon ? (E(), oe(Ie(e.icon), {
132
+ e.icon ? ($(), _(Be(e.icon), {
133
133
  key: 0,
134
134
  class: "rvc-alert-icon"
135
- })) : _("", !0)
135
+ })) : ee("", !0)
136
136
  ]),
137
- x("div", null, [
137
+ S("div", null, [
138
138
  C(t.$slots, "title", {}, () => [
139
- x("span", al, re(e.title), 1)
139
+ S("span", fl, oe(e.title), 1)
140
140
  ]),
141
141
  C(t.$slots, "default")
142
142
  ]),
143
143
  C(t.$slots, "close", {}, () => [
144
- e.close ? (E(), k("button", {
144
+ e.close ? ($(), T("button", {
145
145
  key: 0,
146
146
  type: "button",
147
147
  class: "rvc-alert-close rvc-transition-colors",
148
148
  onClick: n[0] || (n[0] = (l) => t.$emit("alert:close"))
149
149
  }, [
150
- M(S(At), { class: "rvc-size-5" })
151
- ])) : _("", !0)
150
+ M(x(At), { class: "rvc-size-5" })
151
+ ])) : ee("", !0)
152
152
  ])
153
153
  ]),
154
154
  _: 3
155
155
  }, 8, ["class"]));
156
156
  }
157
- }, Bo = {
157
+ }, Ho = {
158
158
  __name: "Badge",
159
159
  props: {
160
160
  as: {
@@ -177,25 +177,25 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
177
177
  }
178
178
  },
179
179
  setup(e) {
180
- return (t, n) => (E(), oe(Ie(e.as), {
180
+ return (t, n) => ($(), _(Be(e.as), {
181
181
  class: q(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
182
182
  }, {
183
183
  default: H(() => [
184
184
  C(t.$slots, "default", { label: e.label }, () => [
185
- he(re(e.label), 1)
185
+ he(oe(e.label), 1)
186
186
  ])
187
187
  ]),
188
188
  _: 3
189
189
  }, 8, ["class"]));
190
190
  }
191
- }, sl = {
191
+ }, vl = {
192
192
  xmlns: "http://www.w3.org/2000/svg",
193
193
  fill: "none",
194
194
  viewBox: "0 0 24 24"
195
195
  };
196
- function ul(e, t) {
197
- return E(), k("svg", sl, t[0] || (t[0] = [
198
- x("circle", {
196
+ function pl(e, t) {
197
+ return $(), T("svg", vl, t[0] || (t[0] = [
198
+ S("circle", {
199
199
  cx: "12",
200
200
  cy: "12",
201
201
  r: "10",
@@ -203,13 +203,13 @@ function ul(e, t) {
203
203
  "stroke-width": "4",
204
204
  style: { opacity: ".25" }
205
205
  }, null, -1),
206
- x("path", {
206
+ S("path", {
207
207
  fill: "currentColor",
208
208
  d: "M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z"
209
209
  }, null, -1)
210
210
  ]));
211
211
  }
212
- const cn = { render: ul }, cl = {
212
+ const vn = { render: pl }, ml = {
213
213
  key: 0,
214
214
  class: "rvc-sr-only"
215
215
  }, rt = {
@@ -254,43 +254,47 @@ const cn = { render: ul }, cl = {
254
254
  },
255
255
  setup(e) {
256
256
  const t = e;
257
- return te(() => {
257
+ return ne(() => {
258
258
  t.iconOnly && !t.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
259
- }), (n, l) => (E(), oe(Ie(e.as), qe(e.bindAs ? { as: e.bindAs } : {}, {
259
+ }), (n, l) => ($(), _(Be(e.as), ye(e.bindAs ? { as: e.bindAs } : {}, {
260
260
  class: ["rvc-button", `rvc-button-${e.color}`, `rvc-button-${e.size}`, { "rvc-button-reverse": e.iconLeft }, { "rvc-button-icon-only": e.iconOnly }],
261
261
  "aria-label": e.iconOnly ? e.label : null,
262
262
  "aria-busy": e.spinning
263
263
  }), {
264
264
  default: H(() => [
265
- e.iconOnly && e.label ? (E(), k("span", cl, [
265
+ e.iconOnly && e.label ? ($(), T("span", ml, [
266
266
  C(n.$slots, "default", { label: e.label }, () => [
267
- he(re(e.label), 1)
267
+ he(oe(e.label), 1)
268
268
  ])
269
269
  ])) : e.label ? C(n.$slots, "default", {
270
270
  key: 1,
271
271
  label: e.label
272
272
  }, () => [
273
- he(re(e.label), 1)
274
- ]) : _("", !0),
273
+ he(oe(e.label), 1)
274
+ ]) : ee("", !0),
275
275
  C(n.$slots, "icon", { icon: e.icon }, () => [
276
- e.icon && !e.spinning ? (E(), oe(Ie(e.icon), {
276
+ e.icon && !e.spinning ? ($(), _(Be(e.icon), {
277
277
  key: 0,
278
278
  class: "rvc-button-icon",
279
279
  "aria-hidden": !e.iconOnly
280
- }, null, 8, ["aria-hidden"])) : _("", !0)
280
+ }, null, 8, ["aria-hidden"])) : ee("", !0)
281
281
  ]),
282
282
  C(n.$slots, "spinner", { spinning: e.spinning }, () => [
283
- e.spinning ? (E(), oe(S(cn), {
283
+ e.spinning ? ($(), _(x(vn), {
284
284
  key: 0,
285
285
  class: "rvc-button-icon rvc-button-icon-loading",
286
286
  "aria-hidden": "true"
287
- })) : _("", !0)
287
+ })) : ee("", !0)
288
288
  ])
289
289
  ]),
290
290
  _: 3
291
291
  }, 16, ["class", "aria-label", "aria-busy"]));
292
292
  }
293
- }, dl = { class: "rvc-checkbox" }, fl = ["id"], vl = { class: "rvc-checkbox-input peer-focus/checkbox:rvc-focus" }, pl = ["for"], Mo = /* @__PURE__ */ Object.assign({
293
+ }, pn = () => ({ hasModelBinding: b(() => {
294
+ var n;
295
+ const t = cn();
296
+ return ((n = t == null ? void 0 : t.vnode) == null ? void 0 : n.props) && Object.prototype.hasOwnProperty.call(t.vnode.props, "onUpdate:modelValue");
297
+ }) }), gl = { class: "rvc-checkbox-input peer-focus/checkbox:rvc-focus" }, hl = ["for"], Vo = /* @__PURE__ */ Object.assign({
294
298
  inheritAttrs: !1
295
299
  }, {
296
300
  __name: "Checkbox",
@@ -301,60 +305,72 @@ const cn = { render: ul }, cl = {
301
305
  },
302
306
  id: {
303
307
  type: String,
304
- required: !0
308
+ default: null
305
309
  },
306
310
  label: {
307
311
  type: String,
308
312
  default: ""
313
+ },
314
+ rootClass: {
315
+ type: String,
316
+ default: ""
309
317
  }
310
318
  },
311
319
  emits: ["update:modelValue"],
312
320
  setup(e, { emit: t }) {
313
321
  const n = e, l = t, r = b({
314
322
  get: () => n.modelValue,
315
- set: (o) => l("update:modelValue", o)
316
- });
317
- return (o, i) => (E(), k("div", dl, [
318
- Yn(x("input", qe({ id: e.id }, o.$attrs, {
319
- "onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a),
320
- type: "checkbox",
321
- class: "rvc-absolute rvc-opacity-0 rvc-inset-0 rvc-cursor-pointer rvc-peer/checkbox"
322
- }), null, 16, fl), [
323
- [Kn, r.value]
324
- ]),
325
- x("span", vl, [
326
- M(S(nl))
323
+ set: (c) => l("update:modelValue", c)
324
+ }), { hasModelBinding: o } = pn(), a = {
325
+ ...Zn(),
326
+ id: n.id,
327
+ type: "checkbox",
328
+ class: "rvc-absolute rvc-opacity-0 rvc-inset-0 rvc-cursor-pointer rvc-peer/checkbox"
329
+ };
330
+ return (c, s) => ($(), T("div", {
331
+ class: q(["rvc-checkbox", e.rootClass])
332
+ }, [
333
+ x(o) ? dn(($(), T("input", ye({ key: 0 }, a, {
334
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
335
+ }), null, 16)), [
336
+ [Qn, r.value]
337
+ ]) : ($(), T("input", bt(ye({ key: 1 }, a)), null, 16)),
338
+ S("span", gl, [
339
+ M(x(al))
327
340
  ]),
328
- x("div", null, [
329
- o.$slots.default || e.label ? C(o.$slots, "default", { key: 0 }, () => [
330
- x("label", { for: e.id }, re(e.label), 9, pl)
331
- ]) : _("", !0)
341
+ S("div", null, [
342
+ c.$slots.default || e.label ? C(c.$slots, "default", { key: 0 }, () => [
343
+ S("label", { for: e.id }, oe(e.label), 9, hl)
344
+ ]) : ee("", !0)
332
345
  ])
333
- ]));
346
+ ], 2));
334
347
  }
335
348
  });
336
- function ml(e, t) {
337
- return E(), k("svg", {
349
+ function yl(e, t) {
350
+ return $(), T("svg", {
338
351
  xmlns: "http://www.w3.org/2000/svg",
339
352
  viewBox: "0 0 16 16",
340
353
  fill: "currentColor",
341
354
  "aria-hidden": "true",
342
355
  "data-slot": "icon"
343
356
  }, [
344
- x("path", {
357
+ S("path", {
345
358
  "fill-rule": "evenodd",
346
359
  d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z",
347
360
  "clip-rule": "evenodd"
348
361
  })
349
362
  ]);
350
363
  }
351
- const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["aria-label", "onClick"], bl = ["innerHTML"], wl = { key: 1 }, xl = ["colspan"], $l = { key: 2 }, Sl = ["colspan"], El = { class: "rvc-flex rvc-gap-x-2 rvc-items-center" }, No = {
364
+ const bl = { class: "rvc-overflow-x-auto rvc-pb-4" }, wl = { key: 0 }, xl = ["aria-label", "onClick"], $l = ["innerHTML"], Sl = { key: 1 }, El = ["colspan"], Ol = { key: 2 }, Ll = ["colspan"], Tl = { class: "rvc-flex rvc-gap-x-2 rvc-items-center" }, Io = {
352
365
  __name: "DataTable",
353
366
  props: {
354
367
  headers: {
355
368
  type: Array,
356
369
  default: () => [],
357
- validator: (e) => e.every((t) => !t.align || ["left", "center", "right"].includes(t.align))
370
+ validator: (e) => e.every((n) => {
371
+ const l = !n.align || ["left", "center", "right"].includes(n.align), o = !(n.sortable === !0) || typeof n.key == "string" && n.key.length > 0;
372
+ return o || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:", n), !l && n.align && console.warn("[DataTable] Header item has invalid 'align' value. Must be 'left', 'center' or 'right':", n), l && o;
373
+ })
358
374
  },
359
375
  items: {
360
376
  type: Array,
@@ -377,7 +393,7 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
377
393
  },
378
394
  emits: ["table:sortBy"],
379
395
  setup(e, { emit: t }) {
380
- const n = e, l = t, r = $(null), o = (a) => n.headers.find((c) => c.key === a), i = (a) => {
396
+ const n = e, l = t, r = E(null), o = (a) => n.headers.find((c) => c.key === a), i = (a) => {
381
397
  !r.value || r.value.key !== a.key ? r.value = {
382
398
  key: a.key,
383
399
  direction: "asc"
@@ -386,24 +402,24 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
386
402
  direction: "desc"
387
403
  } : r.value = null, l("table:sortBy", r.value);
388
404
  };
389
- return (a, c) => (E(), k("div", gl, [
390
- x("table", {
405
+ return (a, c) => ($(), T("div", bl, [
406
+ S("table", {
391
407
  class: q([{ "rvc-table-striped": e.striped }, "rvc-w-full rvc-table"])
392
408
  }, [
393
- e.headers.length ? (E(), k("thead", hl, [
394
- x("tr", null, [
409
+ e.headers.length ? ($(), T("thead", wl, [
410
+ S("tr", null, [
395
411
  C(a.$slots, "headers", { headers: e.headers }, () => [
396
- (E(!0), k(Le, null, nt(e.headers, (s) => {
412
+ ($(!0), T(Te, null, nt(e.headers, (s) => {
397
413
  var u, d;
398
- return E(), k("th", {
414
+ return $(), T("th", ye({ ref_for: !0 }, s, {
399
415
  key: `rvc-table-header-${s.id}`,
400
- class: q({
416
+ class: {
401
417
  "rvc-text-left": s.align === "left" || !s.align,
402
418
  "rvc-text-center": s.align === "center",
403
419
  "rvc-text-right": s.align === "right"
404
- })
405
- }, [
406
- s.sortable ? (E(), k("button", {
420
+ }
421
+ }), [
422
+ s.sortable && s.key ? ($(), T("button", {
407
423
  key: 0,
408
424
  type: "button",
409
425
  "aria-label": `Sort on ${s.label}`,
@@ -420,9 +436,9 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
420
436
  sortBy: r.value,
421
437
  header: s
422
438
  }, () => [
423
- he(re(s.label), 1)
439
+ he(oe(s.label), 1)
424
440
  ]),
425
- M(S(ml), {
441
+ M(x(yl), {
426
442
  class: q([
427
443
  "rvc-size-4 rvc-shrink-0 rvc-transition",
428
444
  {
@@ -432,29 +448,29 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
432
448
  }
433
449
  ])
434
450
  }, null, 8, ["class"])
435
- ], 10, yl)) : C(a.$slots, "header-label", {
451
+ ], 10, xl)) : C(a.$slots, "header-label", {
436
452
  key: 1,
437
453
  sortBy: r.value,
438
454
  header: s
439
455
  }, () => [
440
- he(re(s.label), 1)
456
+ he(oe(s.label), 1)
441
457
  ])
442
- ], 2);
458
+ ], 16);
443
459
  }), 128))
444
460
  ])
445
461
  ])
446
- ])) : _("", !0),
447
- x("tbody", null, [
448
- e.items.length && !e.spinning ? (E(!0), k(Le, { key: 0 }, nt(e.items.map(({ id: s, ...u }) => u), (s, u) => (E(), k("tr", {
462
+ ])) : ee("", !0),
463
+ S("tbody", null, [
464
+ e.items.length && !e.spinning ? ($(!0), T(Te, { key: 0 }, nt(e.items, (s, u) => ($(), T("tr", {
449
465
  key: `rvc-table-row-${u}-${s.id}`
450
466
  }, [
451
467
  C(a.$slots, "items", {
452
468
  item: s,
453
469
  index: u
454
470
  }, () => [
455
- (E(!0), k(Le, null, nt(s, (d, f) => {
471
+ ($(!0), T(Te, null, nt(s, (d, f) => {
456
472
  var v, p, m, h;
457
- return E(), k("td", qe({
473
+ return $(), T("td", ye({
458
474
  key: `rvc-table-row-${u}-column-${f}-${s.id}`,
459
475
  ref_for: !0
460
476
  }, s.attrs, {
@@ -464,18 +480,18 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
464
480
  "rvc-text-right": ((h = o(f)) == null ? void 0 : h.align) === "right"
465
481
  },
466
482
  innerHTML: d
467
- }), null, 16, bl);
483
+ }), null, 16, $l);
468
484
  }), 128))
469
485
  ])
470
- ]))), 128)) : !e.items.length && !e.spinning ? (E(), k("tr", wl, [
471
- x("td", {
486
+ ]))), 128)) : !e.items.length && !e.spinning ? ($(), T("tr", Sl, [
487
+ S("td", {
472
488
  colspan: e.headers.length,
473
489
  class: "rvc-table-state"
474
490
  }, [
475
- x("p", null, re(e.noResultsText), 1)
476
- ], 8, xl)
477
- ])) : (E(), k("tr", $l, [
478
- x("td", {
491
+ S("p", null, oe(e.noResultsText), 1)
492
+ ], 8, El)
493
+ ])) : ($(), T("tr", Ol, [
494
+ S("td", {
479
495
  colspan: e.headers.length,
480
496
  class: "rvc-table-state"
481
497
  }, [
@@ -483,34 +499,34 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
483
499
  spinning: e.spinning,
484
500
  label: e.loadingText
485
501
  }, () => [
486
- x("div", El, [
487
- e.spinning ? (E(), oe(S(cn), {
502
+ S("div", Tl, [
503
+ e.spinning ? ($(), _(x(vn), {
488
504
  key: 0,
489
505
  "aria-hidden": "true",
490
506
  class: "rvc-table-spinner"
491
- })) : _("", !0),
492
- he(" " + re(e.loadingText), 1)
507
+ })) : ee("", !0),
508
+ he(" " + oe(e.loadingText), 1)
493
509
  ])
494
510
  ])
495
- ], 8, Sl)
511
+ ], 8, Ll)
496
512
  ]))
497
513
  ])
498
514
  ], 2)
499
515
  ]));
500
516
  }
501
517
  };
502
- function Ol(e, t, n) {
503
- let l = $(n == null ? void 0 : n.value), r = b(() => e.value !== void 0);
518
+ function Cl(e, t, n) {
519
+ let l = E(n == null ? void 0 : n.value), r = b(() => e.value !== void 0);
504
520
  return [b(() => r.value ? e.value : l.value), function(o) {
505
521
  return r.value || (l.value = o), t == null ? void 0 : t(o);
506
522
  }];
507
523
  }
508
- function kt(e) {
524
+ function Pt(e) {
509
525
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
510
526
  throw t;
511
527
  }));
512
528
  }
513
- function Ye() {
529
+ function Ke() {
514
530
  let e = [], t = { addEventListener(n, l, r, o) {
515
531
  return n.addEventListener(l, r, o), t.add(() => n.removeEventListener(l, r, o));
516
532
  }, requestAnimationFrame(...n) {
@@ -525,7 +541,7 @@ function Ye() {
525
541
  t.add(() => clearTimeout(l));
526
542
  }, microTask(...n) {
527
543
  let l = { current: !0 };
528
- return kt(() => {
544
+ return Pt(() => {
529
545
  l.current && n[0]();
530
546
  }), t.add(() => {
531
547
  l.current = !1;
@@ -536,7 +552,7 @@ function Ye() {
536
552
  Object.assign(n.style, { [l]: o });
537
553
  });
538
554
  }, group(n) {
539
- let l = Ye();
555
+ let l = Ke();
540
556
  return n(l), this.add(() => l.dispose());
541
557
  }, add(n) {
542
558
  return e.push(n), () => {
@@ -548,10 +564,10 @@ function Ye() {
548
564
  } };
549
565
  return t;
550
566
  }
551
- var Gt;
552
- let Ll = Symbol("headlessui.useid"), Tl = 0;
553
- const ye = (Gt = Kt.useId) != null ? Gt : function() {
554
- return Kt.inject(Ll, () => `${++Tl}`)();
567
+ var Xt;
568
+ let kl = Symbol("headlessui.useid"), Al = 0;
569
+ const be = (Xt = Gt.useId) != null ? Xt : function() {
570
+ return Gt.inject(kl, () => `${++Al}`)();
555
571
  };
556
572
  function D(e) {
557
573
  var t;
@@ -567,10 +583,10 @@ function pe(e, t, ...n) {
567
583
  let l = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((r) => `"${r}"`).join(", ")}.`);
568
584
  throw Error.captureStackTrace && Error.captureStackTrace(l, pe), l;
569
585
  }
570
- var Cl = Object.defineProperty, Al = (e, t, n) => t in e ? Cl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xt = (e, t, n) => (Al(e, typeof t != "symbol" ? t + "" : t, n), n);
571
- let kl = class {
586
+ var Pl = Object.defineProperty, Dl = (e, t, n) => t in e ? Pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Zt = (e, t, n) => (Dl(e, typeof t != "symbol" ? t + "" : t, n), n);
587
+ let Rl = class {
572
588
  constructor() {
573
- Xt(this, "current", this.detect()), Xt(this, "currentId", 0);
589
+ Zt(this, "current", this.detect()), Zt(this, "currentId", 0);
574
590
  }
575
591
  set(t) {
576
592
  this.current !== t && (this.currentId = 0, this.current = t);
@@ -590,9 +606,9 @@ let kl = class {
590
606
  detect() {
591
607
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
592
608
  }
593
- }, Ke = new kl();
594
- function Be(e) {
595
- if (Ke.isServer) return null;
609
+ }, Ye = new Rl();
610
+ function Ne(e) {
611
+ if (Ye.isServer) return null;
596
612
  if (e instanceof Node) return e.ownerDocument;
597
613
  if (e != null && e.hasOwnProperty("value")) {
598
614
  let t = D(e);
@@ -600,40 +616,40 @@ function Be(e) {
600
616
  }
601
617
  return document;
602
618
  }
603
- let bt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
604
- var be = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(be || {}), dn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(dn || {}), Pl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Pl || {});
605
- function Dl(e = document.body) {
606
- return e == null ? [] : Array.from(e.querySelectorAll(bt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
619
+ let wt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
620
+ var we = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(we || {}), mn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(mn || {}), Fl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Fl || {});
621
+ function Bl(e = document.body) {
622
+ return e == null ? [] : Array.from(e.querySelectorAll(wt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
607
623
  }
608
- var fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
609
- function Rl(e, t = 0) {
624
+ var gn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(gn || {});
625
+ function Ml(e, t = 0) {
610
626
  var n;
611
- return e === ((n = Be(e)) == null ? void 0 : n.body) ? !1 : pe(t, { 0() {
612
- return e.matches(bt);
627
+ return e === ((n = Ne(e)) == null ? void 0 : n.body) ? !1 : pe(t, { 0() {
628
+ return e.matches(wt);
613
629
  }, 1() {
614
630
  let l = e;
615
631
  for (; l !== null; ) {
616
- if (l.matches(bt)) return !0;
632
+ if (l.matches(wt)) return !0;
617
633
  l = l.parentElement;
618
634
  }
619
635
  return !1;
620
636
  } });
621
637
  }
622
- var Fl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Fl || {});
638
+ var Nl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Nl || {});
623
639
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
624
640
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
625
641
  }, !0), document.addEventListener("click", (e) => {
626
642
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
627
643
  }, !0));
628
- function Te(e) {
644
+ function Ce(e) {
629
645
  e == null || e.focus({ preventScroll: !0 });
630
646
  }
631
- let Bl = ["textarea", "input"].join(",");
632
- function Ml(e) {
647
+ let jl = ["textarea", "input"].join(",");
648
+ function Hl(e) {
633
649
  var t, n;
634
- return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Bl)) != null ? n : !1;
650
+ return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, jl)) != null ? n : !1;
635
651
  }
636
- function Nl(e, t = (n) => n) {
652
+ function Vl(e, t = (n) => n) {
637
653
  return e.slice().sort((n, l) => {
638
654
  let r = t(n), o = t(l);
639
655
  if (r === null || o === null) return 0;
@@ -643,7 +659,7 @@ function Nl(e, t = (n) => n) {
643
659
  }
644
660
  function lt(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] } = {}) {
645
661
  var o;
646
- let i = (o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? o : document, a = Array.isArray(e) ? n ? Nl(e) : e : Dl(e);
662
+ let i = (o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? o : document, a = Array.isArray(e) ? n ? Vl(e) : e : Bl(e);
647
663
  r.length > 0 && a.length > 1 && (a = a.filter((p) => !r.includes(p))), l = l ?? i.activeElement;
648
664
  let c = (() => {
649
665
  if (t & 5) return 1;
@@ -666,28 +682,28 @@ function lt(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] }
666
682
  }
667
683
  v = a[p], v == null || v.focus(u), d += c;
668
684
  } while (v !== i.activeElement);
669
- return t & 6 && Ml(v) && v.select(), 2;
685
+ return t & 6 && Hl(v) && v.select(), 2;
670
686
  }
671
- function vn() {
687
+ function hn() {
672
688
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
673
689
  }
674
- function jl() {
690
+ function Il() {
675
691
  return /Android/gi.test(window.navigator.userAgent);
676
692
  }
677
- function Hl() {
678
- return vn() || jl();
693
+ function Wl() {
694
+ return hn() || Il();
679
695
  }
680
696
  function Je(e, t, n) {
681
- Ke.isServer || te((l) => {
697
+ Ye.isServer || ne((l) => {
682
698
  document.addEventListener(e, t, n), l(() => document.removeEventListener(e, t, n));
683
699
  });
684
700
  }
685
- function pn(e, t, n) {
686
- Ke.isServer || te((l) => {
701
+ function yn(e, t, n) {
702
+ Ye.isServer || ne((l) => {
687
703
  window.addEventListener(e, t, n), l(() => window.removeEventListener(e, t, n));
688
704
  });
689
705
  }
690
- function Vl(e, t, n = b(() => !0)) {
706
+ function Ul(e, t, n = b(() => !0)) {
691
707
  function l(o, i) {
692
708
  if (!n.value || o.defaultPrevented) return;
693
709
  let a = i(o);
@@ -700,9 +716,9 @@ function Vl(e, t, n = b(() => !0)) {
700
716
  let u = s instanceof HTMLElement ? s : D(s);
701
717
  if (u != null && u.contains(a) || o.composed && o.composedPath().includes(u)) return;
702
718
  }
703
- return !Rl(a, fn.Loose) && a.tabIndex !== -1 && o.preventDefault(), t(o, a);
719
+ return !Ml(a, gn.Loose) && a.tabIndex !== -1 && o.preventDefault(), t(o, a);
704
720
  }
705
- let r = $(null);
721
+ let r = E(null);
706
722
  Je("pointerdown", (o) => {
707
723
  var i, a;
708
724
  n.value && (r.value = ((a = (i = o.composedPath) == null ? void 0 : i.call(o)) == null ? void 0 : a[0]) || o.target);
@@ -710,27 +726,27 @@ function Vl(e, t, n = b(() => !0)) {
710
726
  var i, a;
711
727
  n.value && (r.value = ((a = (i = o.composedPath) == null ? void 0 : i.call(o)) == null ? void 0 : a[0]) || o.target);
712
728
  }, !0), Je("click", (o) => {
713
- Hl() || r.value && (l(o, () => r.value), r.value = null);
714
- }, !0), Je("touchend", (o) => l(o, () => o.target instanceof HTMLElement ? o.target : null), !0), pn("blur", (o) => l(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
729
+ Wl() || r.value && (l(o, () => r.value), r.value = null);
730
+ }, !0), Je("touchend", (o) => l(o, () => o.target instanceof HTMLElement ? o.target : null), !0), yn("blur", (o) => l(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
715
731
  }
716
- function Zt(e, t) {
732
+ function Qt(e, t) {
717
733
  if (e) return e;
718
734
  let n = t ?? "button";
719
735
  if (typeof n == "string" && n.toLowerCase() === "button") return "button";
720
736
  }
721
- function Il(e, t) {
722
- let n = $(Zt(e.value.type, e.value.as));
737
+ function zl(e, t) {
738
+ let n = E(Qt(e.value.type, e.value.as));
723
739
  return V(() => {
724
- n.value = Zt(e.value.type, e.value.as);
725
- }), te(() => {
740
+ n.value = Qt(e.value.type, e.value.as);
741
+ }), ne(() => {
726
742
  var l;
727
743
  n.value || D(t) && D(t) instanceof HTMLButtonElement && !((l = D(t)) != null && l.hasAttribute("type")) && (n.value = "button");
728
744
  }), n;
729
745
  }
730
- var ot = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ot || {}), we = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(we || {});
746
+ var ot = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ot || {}), xe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(xe || {});
731
747
  function W({ visible: e = !0, features: t = 0, ourProps: n, theirProps: l, ...r }) {
732
748
  var o;
733
- let i = gn(l, n), a = Object.assign(r, { props: i });
749
+ let i = wn(l, n), a = Object.assign(r, { props: i });
734
750
  if (e || t & 2 && i.static) return mt(a);
735
751
  if (t & 1) {
736
752
  let c = (o = i.unmount) == null || o ? 0 : 1;
@@ -744,20 +760,20 @@ function W({ visible: e = !0, features: t = 0, ourProps: n, theirProps: l, ...r
744
760
  }
745
761
  function mt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
746
762
  var o, i;
747
- let { as: a, ...c } = Pt(e, ["unmount", "static"]), s = (o = n.default) == null ? void 0 : o.call(n, l), u = {};
763
+ let { as: a, ...c } = Dt(e, ["unmount", "static"]), s = (o = n.default) == null ? void 0 : o.call(n, l), u = {};
748
764
  if (l) {
749
765
  let d = !1, f = [];
750
766
  for (let [v, p] of Object.entries(l)) typeof p == "boolean" && (d = !0), p === !0 && f.push(v);
751
767
  d && (u["data-headlessui-state"] = f.join(" "));
752
768
  }
753
769
  if (a === "template") {
754
- if (s = mn(s ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
770
+ if (s = bn(s ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
755
771
  let [d, ...f] = s ?? [];
756
- if (!Ul(d) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${r} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((m) => m.trim()).filter((m, h, y) => y.indexOf(m) === h).sort((m, h) => m.localeCompare(h)).map((m) => ` - ${m}`).join(`
772
+ if (!Kl(d) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${r} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((m) => m.trim()).filter((m, h, y) => y.indexOf(m) === h).sort((m, h) => m.localeCompare(h)).map((m) => ` - ${m}`).join(`
757
773
  `), "", "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((m) => ` - ${m}`).join(`
758
774
  `)].join(`
759
775
  `));
760
- let v = gn((i = d.props) != null ? i : {}, c, u), p = Gn(d, v, !0);
776
+ let v = wn((i = d.props) != null ? i : {}, c, u), p = Jn(d, v, !0);
761
777
  for (let m in v) m.startsWith("on") && (p.props || (p.props = {}), p.props[m] = v[m]);
762
778
  return p;
763
779
  }
@@ -765,10 +781,10 @@ function mt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
765
781
  }
766
782
  return N(a, Object.assign({}, c, u), { default: () => s });
767
783
  }
768
- function mn(e) {
769
- return e.flatMap((t) => t.type === Le ? mn(t.children) : [t]);
784
+ function bn(e) {
785
+ return e.flatMap((t) => t.type === Te ? bn(t.children) : [t]);
770
786
  }
771
- function gn(...e) {
787
+ function wn(...e) {
772
788
  if (e.length === 0) return {};
773
789
  if (e.length === 1) return e[0];
774
790
  let t = {}, n = {};
@@ -783,52 +799,52 @@ function gn(...e) {
783
799
  } });
784
800
  return t;
785
801
  }
786
- function Wl(e) {
802
+ function ql(e) {
787
803
  let t = Object.assign({}, e);
788
804
  for (let n in t) t[n] === void 0 && delete t[n];
789
805
  return t;
790
806
  }
791
- function Pt(e, t = []) {
807
+ function Dt(e, t = []) {
792
808
  let n = Object.assign({}, e);
793
809
  for (let l of t) l in n && delete n[l];
794
810
  return n;
795
811
  }
796
- function Ul(e) {
812
+ function Kl(e) {
797
813
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
798
814
  }
799
- var We = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(We || {});
815
+ var Ue = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ue || {});
800
816
  let it = I({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
801
817
  return () => {
802
818
  var l;
803
819
  let { features: r, ...o } = e, i = { "aria-hidden": (r & 2) === 2 ? !0 : (l = o["aria-hidden"]) != null ? l : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
804
820
  return W({ ourProps: i, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
805
821
  };
806
- } }), hn = Symbol("Context");
822
+ } }), xn = Symbol("Context");
807
823
  var Q = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Q || {});
808
- function zl() {
809
- return Dt() !== null;
824
+ function Yl() {
825
+ return Rt() !== null;
810
826
  }
811
- function Dt() {
812
- return Y(hn, null);
827
+ function Rt() {
828
+ return K(xn, null);
813
829
  }
814
- function ql(e) {
815
- ie(hn, e);
830
+ function Gl(e) {
831
+ ie(xn, e);
816
832
  }
817
833
  var at = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(at || {});
818
- function Yl(e) {
834
+ function Xl(e) {
819
835
  function t() {
820
836
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
821
837
  }
822
838
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
823
839
  }
824
- let Ee = [];
825
- Yl(() => {
840
+ let Oe = [];
841
+ Xl(() => {
826
842
  function e(t) {
827
- t.target instanceof HTMLElement && t.target !== document.body && Ee[0] !== t.target && (Ee.unshift(t.target), Ee = Ee.filter((n) => n != null && n.isConnected), Ee.splice(10));
843
+ t.target instanceof HTMLElement && t.target !== document.body && Oe[0] !== t.target && (Oe.unshift(t.target), Oe = Oe.filter((n) => n != null && n.isConnected), Oe.splice(10));
828
844
  }
829
845
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
830
846
  });
831
- function Kl(e) {
847
+ function Zl(e) {
832
848
  var t, n;
833
849
  let l = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
834
850
  if (l) {
@@ -839,19 +855,19 @@ function Kl(e) {
839
855
  (n = l.requestSubmit) == null || n.call(l);
840
856
  }
841
857
  }
842
- function yn(e, t, n, l) {
843
- Ke.isServer || te((r) => {
858
+ function $n(e, t, n, l) {
859
+ Ye.isServer || ne((r) => {
844
860
  e = e ?? window, e.addEventListener(t, n, l), r(() => e.removeEventListener(t, n, l));
845
861
  });
846
862
  }
847
- var He = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(He || {});
848
- function Gl() {
849
- let e = $(0);
850
- return pn("keydown", (t) => {
863
+ var Ie = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ie || {});
864
+ function Ql() {
865
+ let e = E(0);
866
+ return yn("keydown", (t) => {
851
867
  t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
852
868
  }), e;
853
869
  }
854
- function bn(e) {
870
+ function Sn(e) {
855
871
  if (!e) return /* @__PURE__ */ new Set();
856
872
  if (typeof e == "function") return new Set(e());
857
873
  let t = /* @__PURE__ */ new Set();
@@ -861,26 +877,26 @@ function bn(e) {
861
877
  }
862
878
  return t;
863
879
  }
864
- var wn = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(wn || {});
865
- let Ne = Object.assign(I({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: $(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
866
- let r = $(null);
880
+ var En = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(En || {});
881
+ let He = Object.assign(I({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
882
+ let r = E(null);
867
883
  l({ el: r, $el: r });
868
- let o = b(() => Be(r)), i = $(!1);
869
- V(() => i.value = !0), ae(() => i.value = !1), Zl({ ownerDocument: o }, b(() => i.value && !!(e.features & 16)));
870
- let a = Ql({ ownerDocument: o, container: r, initialFocus: b(() => e.initialFocus) }, b(() => i.value && !!(e.features & 2)));
871
- Jl({ ownerDocument: o, container: r, containers: e.containers, previousActiveElement: a }, b(() => i.value && !!(e.features & 8)));
872
- let c = Gl();
884
+ let o = b(() => Ne(r)), i = E(!1);
885
+ V(() => i.value = !0), ae(() => i.value = !1), _l({ ownerDocument: o }, b(() => i.value && !!(e.features & 16)));
886
+ let a = er({ ownerDocument: o, container: r, initialFocus: b(() => e.initialFocus) }, b(() => i.value && !!(e.features & 2)));
887
+ tr({ ownerDocument: o, container: r, containers: e.containers, previousActiveElement: a }, b(() => i.value && !!(e.features & 8)));
888
+ let c = Ql();
873
889
  function s(v) {
874
890
  let p = D(r);
875
891
  p && ((m) => m())(() => {
876
- pe(c.value, { [He.Forwards]: () => {
877
- lt(p, be.First, { skipElements: [v.relatedTarget] });
878
- }, [He.Backwards]: () => {
879
- lt(p, be.Last, { skipElements: [v.relatedTarget] });
892
+ pe(c.value, { [Ie.Forwards]: () => {
893
+ lt(p, we.First, { skipElements: [v.relatedTarget] });
894
+ }, [Ie.Backwards]: () => {
895
+ lt(p, we.Last, { skipElements: [v.relatedTarget] });
880
896
  } });
881
897
  });
882
898
  }
883
- let u = $(!1);
899
+ let u = E(!1);
884
900
  function d(v) {
885
901
  v.key === "Tab" && (u.value = !0, requestAnimationFrame(() => {
886
902
  u.value = !1;
@@ -888,45 +904,45 @@ let Ne = Object.assign(I({ name: "FocusTrap", props: { as: { type: [Object, Stri
888
904
  }
889
905
  function f(v) {
890
906
  if (!i.value) return;
891
- let p = bn(e.containers);
907
+ let p = Sn(e.containers);
892
908
  D(r) instanceof HTMLElement && p.add(D(r));
893
909
  let m = v.relatedTarget;
894
- m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (xn(p, m) || (u.value ? lt(D(r), pe(c.value, { [He.Forwards]: () => be.Next, [He.Backwards]: () => be.Previous }) | be.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Te(v.target)));
910
+ m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (On(p, m) || (u.value ? lt(D(r), pe(c.value, { [Ie.Forwards]: () => we.Next, [Ie.Backwards]: () => we.Previous }) | we.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ce(v.target)));
895
911
  }
896
912
  return () => {
897
913
  let v = {}, p = { ref: r, onKeydown: d, onFocusout: f }, { features: m, initialFocus: h, containers: y, ...g } = e;
898
- return N(Le, [!!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: We.Focusable }), W({ ourProps: p, theirProps: { ...t, ...g }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: We.Focusable })]);
914
+ return N(Te, [!!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: Ue.Focusable }), W({ ourProps: p, theirProps: { ...t, ...g }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: Ue.Focusable })]);
899
915
  };
900
- } }), { features: wn });
901
- function Xl(e) {
902
- let t = $(Ee.slice());
916
+ } }), { features: En });
917
+ function Jl(e) {
918
+ let t = E(Oe.slice());
903
919
  return de([e], ([n], [l]) => {
904
- l === !0 && n === !1 ? kt(() => {
920
+ l === !0 && n === !1 ? Pt(() => {
905
921
  t.value.splice(0);
906
- }) : l === !1 && n === !0 && (t.value = Ee.slice());
922
+ }) : l === !1 && n === !0 && (t.value = Oe.slice());
907
923
  }, { flush: "post" }), () => {
908
924
  var n;
909
925
  return (n = t.value.find((l) => l != null && l.isConnected)) != null ? n : null;
910
926
  };
911
927
  }
912
- function Zl({ ownerDocument: e }, t) {
913
- let n = Xl(t);
928
+ function _l({ ownerDocument: e }, t) {
929
+ let n = Jl(t);
914
930
  V(() => {
915
- te(() => {
931
+ ne(() => {
916
932
  var l, r;
917
- t.value || ((l = e.value) == null ? void 0 : l.activeElement) === ((r = e.value) == null ? void 0 : r.body) && Te(n());
933
+ t.value || ((l = e.value) == null ? void 0 : l.activeElement) === ((r = e.value) == null ? void 0 : r.body) && Ce(n());
918
934
  }, { flush: "post" });
919
935
  }), ae(() => {
920
- t.value && Te(n());
936
+ t.value && Ce(n());
921
937
  });
922
938
  }
923
- function Ql({ ownerDocument: e, container: t, initialFocus: n }, l) {
924
- let r = $(null), o = $(!1);
939
+ function er({ ownerDocument: e, container: t, initialFocus: n }, l) {
940
+ let r = E(null), o = E(!1);
925
941
  return V(() => o.value = !0), ae(() => o.value = !1), V(() => {
926
942
  de([t, n, l], (i, a) => {
927
943
  if (i.every((s, u) => (a == null ? void 0 : a[u]) === s) || !l.value) return;
928
944
  let c = D(t);
929
- c && kt(() => {
945
+ c && Pt(() => {
930
946
  var s, u;
931
947
  if (!o.value) return;
932
948
  let d = D(n), f = (s = e.value) == null ? void 0 : s.activeElement;
@@ -939,34 +955,34 @@ function Ql({ ownerDocument: e, container: t, initialFocus: n }, l) {
939
955
  r.value = f;
940
956
  return;
941
957
  }
942
- d ? Te(d) : lt(c, be.First | be.NoScroll) === dn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (u = e.value) == null ? void 0 : u.activeElement;
958
+ d ? Ce(d) : lt(c, we.First | we.NoScroll) === mn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (u = e.value) == null ? void 0 : u.activeElement;
943
959
  });
944
960
  }, { immediate: !0, flush: "post" });
945
961
  }), r;
946
962
  }
947
- function Jl({ ownerDocument: e, container: t, containers: n, previousActiveElement: l }, r) {
963
+ function tr({ ownerDocument: e, container: t, containers: n, previousActiveElement: l }, r) {
948
964
  var o;
949
- yn((o = e.value) == null ? void 0 : o.defaultView, "focus", (i) => {
965
+ $n((o = e.value) == null ? void 0 : o.defaultView, "focus", (i) => {
950
966
  if (!r.value) return;
951
- let a = bn(n);
967
+ let a = Sn(n);
952
968
  D(t) instanceof HTMLElement && a.add(D(t));
953
969
  let c = l.value;
954
970
  if (!c) return;
955
971
  let s = i.target;
956
- s && s instanceof HTMLElement ? xn(a, s) ? (l.value = s, Te(s)) : (i.preventDefault(), i.stopPropagation(), Te(c)) : Te(l.value);
972
+ s && s instanceof HTMLElement ? On(a, s) ? (l.value = s, Ce(s)) : (i.preventDefault(), i.stopPropagation(), Ce(c)) : Ce(l.value);
957
973
  }, !0);
958
974
  }
959
- function xn(e, t) {
975
+ function On(e, t) {
960
976
  for (let n of e) if (n.contains(t)) return !0;
961
977
  return !1;
962
978
  }
963
- function _l(e) {
964
- let t = Ve(e.getSnapshot());
979
+ function nr(e) {
980
+ let t = We(e.getSnapshot());
965
981
  return ae(e.subscribe(() => {
966
982
  t.value = e.getSnapshot();
967
983
  })), t;
968
984
  }
969
- function er(e, t) {
985
+ function lr(e, t) {
970
986
  let n = e(), l = /* @__PURE__ */ new Set();
971
987
  return { getSnapshot() {
972
988
  return n;
@@ -977,7 +993,7 @@ function er(e, t) {
977
993
  i && (n = i, l.forEach((a) => a()));
978
994
  } };
979
995
  }
980
- function tr() {
996
+ function rr() {
981
997
  let e;
982
998
  return { before({ doc: t }) {
983
999
  var n;
@@ -988,15 +1004,15 @@ function tr() {
988
1004
  n.style(l, "paddingRight", `${o}px`);
989
1005
  } };
990
1006
  }
991
- function nr() {
992
- return vn() ? { before({ doc: e, d: t, meta: n }) {
1007
+ function or() {
1008
+ return hn() ? { before({ doc: e, d: t, meta: n }) {
993
1009
  function l(r) {
994
1010
  return n.containers.flatMap((o) => o()).some((o) => o.contains(r));
995
1011
  }
996
1012
  t.microTask(() => {
997
1013
  var r;
998
1014
  if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
999
- let a = Ye();
1015
+ let a = Ke();
1000
1016
  a.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => a.dispose()));
1001
1017
  }
1002
1018
  let o = (r = window.scrollY) != null ? r : window.pageYOffset, i = null;
@@ -1031,56 +1047,56 @@ function nr() {
1031
1047
  });
1032
1048
  } } : {};
1033
1049
  }
1034
- function lr() {
1050
+ function ir() {
1035
1051
  return { before({ doc: e, d: t }) {
1036
1052
  t.style(e.documentElement, "overflow", "hidden");
1037
1053
  } };
1038
1054
  }
1039
- function rr(e) {
1055
+ function ar(e) {
1040
1056
  let t = {};
1041
1057
  for (let n of e) Object.assign(t, n(t));
1042
1058
  return t;
1043
1059
  }
1044
- let Oe = er(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
1060
+ let Le = lr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
1045
1061
  var n;
1046
- let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Ye(), meta: /* @__PURE__ */ new Set() };
1062
+ let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Ke(), meta: /* @__PURE__ */ new Set() };
1047
1063
  return l.count++, l.meta.add(t), this.set(e, l), this;
1048
1064
  }, POP(e, t) {
1049
1065
  let n = this.get(e);
1050
1066
  return n && (n.count--, n.meta.delete(t)), this;
1051
1067
  }, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
1052
- let l = { doc: e, d: t, meta: rr(n) }, r = [nr(), tr(), lr()];
1068
+ let l = { doc: e, d: t, meta: ar(n) }, r = [or(), rr(), ir()];
1053
1069
  r.forEach(({ before: o }) => o == null ? void 0 : o(l)), r.forEach(({ after: o }) => o == null ? void 0 : o(l));
1054
1070
  }, SCROLL_ALLOW({ d: e }) {
1055
1071
  e.dispose();
1056
1072
  }, TEARDOWN({ doc: e }) {
1057
1073
  this.delete(e);
1058
1074
  } });
1059
- Oe.subscribe(() => {
1060
- let e = Oe.getSnapshot(), t = /* @__PURE__ */ new Map();
1075
+ Le.subscribe(() => {
1076
+ let e = Le.getSnapshot(), t = /* @__PURE__ */ new Map();
1061
1077
  for (let [n] of e) t.set(n, n.documentElement.style.overflow);
1062
1078
  for (let n of e.values()) {
1063
1079
  let l = t.get(n.doc) === "hidden", r = n.count !== 0;
1064
- (r && !l || !r && l) && Oe.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Oe.dispatch("TEARDOWN", n);
1080
+ (r && !l || !r && l) && Le.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Le.dispatch("TEARDOWN", n);
1065
1081
  }
1066
1082
  });
1067
- function or(e, t, n) {
1068
- let l = _l(Oe), r = b(() => {
1083
+ function sr(e, t, n) {
1084
+ let l = nr(Le), r = b(() => {
1069
1085
  let o = e.value ? l.value.get(e.value) : void 0;
1070
1086
  return o ? o.count > 0 : !1;
1071
1087
  });
1072
1088
  return de([e, t], ([o, i], [a], c) => {
1073
1089
  if (!o || !i) return;
1074
- Oe.dispatch("PUSH", o, n);
1090
+ Le.dispatch("PUSH", o, n);
1075
1091
  let s = !1;
1076
1092
  c(() => {
1077
- s || (Oe.dispatch("POP", a ?? o, n), s = !0);
1093
+ s || (Le.dispatch("POP", a ?? o, n), s = !0);
1078
1094
  });
1079
1095
  }, { immediate: !0 }), r;
1080
1096
  }
1081
- let gt = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map();
1082
- function Qt(e, t = $(!0)) {
1083
- te((n) => {
1097
+ let gt = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map();
1098
+ function Jt(e, t = E(!0)) {
1099
+ ne((n) => {
1084
1100
  var l;
1085
1101
  if (!t.value) return;
1086
1102
  let r = D(e);
@@ -1088,17 +1104,17 @@ function Qt(e, t = $(!0)) {
1088
1104
  n(function() {
1089
1105
  var i;
1090
1106
  if (!r) return;
1091
- let a = (i = je.get(r)) != null ? i : 1;
1092
- if (a === 1 ? je.delete(r) : je.set(r, a - 1), a !== 1) return;
1107
+ let a = (i = Ve.get(r)) != null ? i : 1;
1108
+ if (a === 1 ? Ve.delete(r) : Ve.set(r, a - 1), a !== 1) return;
1093
1109
  let c = gt.get(r);
1094
1110
  c && (c["aria-hidden"] === null ? r.removeAttribute("aria-hidden") : r.setAttribute("aria-hidden", c["aria-hidden"]), r.inert = c.inert, gt.delete(r));
1095
1111
  });
1096
- let o = (l = je.get(r)) != null ? l : 0;
1097
- je.set(r, o + 1), o === 0 && (gt.set(r, { "aria-hidden": r.getAttribute("aria-hidden"), inert: r.inert }), r.setAttribute("aria-hidden", "true"), r.inert = !0);
1112
+ let o = (l = Ve.get(r)) != null ? l : 0;
1113
+ Ve.set(r, o + 1), o === 0 && (gt.set(r, { "aria-hidden": r.getAttribute("aria-hidden"), inert: r.inert }), r.setAttribute("aria-hidden", "true"), r.inert = !0);
1098
1114
  });
1099
1115
  }
1100
- function ir({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1101
- let l = $(null), r = Be(l);
1116
+ function ur({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1117
+ let l = E(null), r = Ne(l);
1102
1118
  function o() {
1103
1119
  var i, a, c;
1104
1120
  let s = [];
@@ -1110,26 +1126,26 @@ function ir({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
1110
1126
  return { resolveContainers: o, contains(i) {
1111
1127
  return o().some((a) => a.contains(i));
1112
1128
  }, mainTreeNodeRef: l, MainTreeNode() {
1113
- return n != null ? null : N(it, { features: We.Hidden, ref: l });
1129
+ return n != null ? null : N(it, { features: Ue.Hidden, ref: l });
1114
1130
  } };
1115
1131
  }
1116
- let $n = Symbol("ForcePortalRootContext");
1117
- function ar() {
1118
- return Y($n, !1);
1132
+ let Ln = Symbol("ForcePortalRootContext");
1133
+ function cr() {
1134
+ return K(Ln, !1);
1119
1135
  }
1120
- let wt = I({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
1121
- return ie($n, e.force), () => {
1136
+ let xt = I({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
1137
+ return ie(Ln, e.force), () => {
1122
1138
  let { force: l, ...r } = e;
1123
1139
  return W({ theirProps: r, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
1124
1140
  };
1125
- } }), Sn = Symbol("StackContext");
1126
- var xt = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(xt || {});
1127
- function sr() {
1128
- return Y(Sn, () => {
1141
+ } }), Tn = Symbol("StackContext");
1142
+ var $t = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))($t || {});
1143
+ function dr() {
1144
+ return K(Tn, () => {
1129
1145
  });
1130
1146
  }
1131
- function ur({ type: e, enabled: t, element: n, onUpdate: l }) {
1132
- let r = sr();
1147
+ function fr({ type: e, enabled: t, element: n, onUpdate: l }) {
1148
+ let r = dr();
1133
1149
  function o(...i) {
1134
1150
  l == null || l(...i), r(...i);
1135
1151
  }
@@ -1139,34 +1155,34 @@ function ur({ type: e, enabled: t, element: n, onUpdate: l }) {
1139
1155
  }, { immediate: !0, flush: "sync" });
1140
1156
  }), ae(() => {
1141
1157
  t.value && o(1, e, n);
1142
- }), ie(Sn, o);
1158
+ }), ie(Tn, o);
1143
1159
  }
1144
- let En = Symbol("DescriptionContext");
1145
- function cr() {
1146
- let e = Y(En, null);
1160
+ let Cn = Symbol("DescriptionContext");
1161
+ function vr() {
1162
+ let e = K(Cn, null);
1147
1163
  if (e === null) throw new Error("Missing parent");
1148
1164
  return e;
1149
1165
  }
1150
- function On({ slot: e = $({}), name: t = "Description", props: n = {} } = {}) {
1151
- let l = $([]);
1166
+ function kn({ slot: e = E({}), name: t = "Description", props: n = {} } = {}) {
1167
+ let l = E([]);
1152
1168
  function r(o) {
1153
1169
  return l.value.push(o), () => {
1154
1170
  let i = l.value.indexOf(o);
1155
1171
  i !== -1 && l.value.splice(i, 1);
1156
1172
  };
1157
1173
  }
1158
- return ie(En, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1174
+ return ie(Cn, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1159
1175
  }
1160
1176
  I({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1161
1177
  var l;
1162
- let r = (l = e.id) != null ? l : `headlessui-description-${ye()}`, o = cr();
1178
+ let r = (l = e.id) != null ? l : `headlessui-description-${be()}`, o = vr();
1163
1179
  return V(() => ae(o.register(r))), () => {
1164
- let { name: i = "Description", slot: a = $({}), props: c = {} } = o, { ...s } = e, u = { ...Object.entries(c).reduce((d, [f, v]) => Object.assign(d, { [f]: S(v) }), {}), id: r };
1180
+ let { name: i = "Description", slot: a = E({}), props: c = {} } = o, { ...s } = e, u = { ...Object.entries(c).reduce((d, [f, v]) => Object.assign(d, { [f]: x(v) }), {}), id: r };
1165
1181
  return W({ ourProps: u, theirProps: s, slot: a.value, attrs: t, slots: n, name: i });
1166
1182
  };
1167
1183
  } });
1168
- function dr(e) {
1169
- let t = Be(e);
1184
+ function pr(e) {
1185
+ let t = Ne(e);
1170
1186
  if (!t) {
1171
1187
  if (e === null) return null;
1172
1188
  throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
@@ -1176,25 +1192,25 @@ function dr(e) {
1176
1192
  let l = t.createElement("div");
1177
1193
  return l.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(l);
1178
1194
  }
1179
- const $t = /* @__PURE__ */ new WeakMap();
1180
- function fr(e) {
1195
+ const St = /* @__PURE__ */ new WeakMap();
1196
+ function mr(e) {
1181
1197
  var t;
1182
- return (t = $t.get(e)) != null ? t : 0;
1198
+ return (t = St.get(e)) != null ? t : 0;
1183
1199
  }
1184
- function Jt(e, t) {
1185
- let n = t(fr(e));
1186
- return n <= 0 ? $t.delete(e) : $t.set(e, n), n;
1200
+ function _t(e, t) {
1201
+ let n = t(mr(e));
1202
+ return n <= 0 ? St.delete(e) : St.set(e, n), n;
1187
1203
  }
1188
- let Ln = I({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
1189
- let l = $(null), r = b(() => Be(l)), o = ar(), i = Y(Tn, null), a = $(o === !0 || i == null ? dr(l.value) : i.resolveTarget());
1190
- a.value && Jt(a.value, (f) => f + 1);
1191
- let c = $(!1);
1204
+ let An = I({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
1205
+ let l = E(null), r = b(() => Ne(l)), o = cr(), i = K(Pn, null), a = E(o === !0 || i == null ? pr(l.value) : i.resolveTarget());
1206
+ a.value && _t(a.value, (f) => f + 1);
1207
+ let c = E(!1);
1192
1208
  V(() => {
1193
1209
  c.value = !0;
1194
- }), te(() => {
1210
+ }), ne(() => {
1195
1211
  o || i != null && (a.value = i.resolveTarget());
1196
1212
  });
1197
- let s = Y(St, null), u = !1, d = Xn();
1213
+ let s = K(Et, null), u = !1, d = cn();
1198
1214
  return de(l, () => {
1199
1215
  if (u || !s) return;
1200
1216
  let f = D(l);
@@ -1202,15 +1218,15 @@ let Ln = I({ name: "Portal", props: { as: { type: [Object, String], default: "di
1202
1218
  }), ae(() => {
1203
1219
  var f, v;
1204
1220
  let p = (f = r.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
1205
- !p || a.value !== p || Jt(a.value, (m) => m - 1) || a.value.children.length > 0 || (v = a.value.parentElement) == null || v.removeChild(a.value);
1221
+ !p || a.value !== p || _t(a.value, (m) => m - 1) || a.value.children.length > 0 || (v = a.value.parentElement) == null || v.removeChild(a.value);
1206
1222
  }), () => {
1207
1223
  if (!c.value || a.value === null) return null;
1208
1224
  let f = { ref: l, "data-headlessui-portal": "" };
1209
- return N(Zn, { to: a.value }, W({ ourProps: f, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
1225
+ return N(_n, { to: a.value }, W({ ourProps: f, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
1210
1226
  };
1211
- } }), St = Symbol("PortalParentContext");
1212
- function vr() {
1213
- let e = Y(St, null), t = $([]);
1227
+ } }), Et = Symbol("PortalParentContext");
1228
+ function gr() {
1229
+ let e = K(Et, null), t = E([]);
1214
1230
  function n(o) {
1215
1231
  return t.value.push(o), e && e.register(o), () => l(o);
1216
1232
  }
@@ -1220,92 +1236,92 @@ function vr() {
1220
1236
  }
1221
1237
  let r = { register: n, unregister: l, portals: t };
1222
1238
  return [t, I({ name: "PortalWrapper", setup(o, { slots: i }) {
1223
- return ie(St, r), () => {
1239
+ return ie(Et, r), () => {
1224
1240
  var a;
1225
1241
  return (a = i.default) == null ? void 0 : a.call(i);
1226
1242
  };
1227
1243
  } })];
1228
1244
  }
1229
- let Tn = Symbol("PortalGroupContext"), pr = I({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
1230
- let l = Qn({ resolveTarget() {
1245
+ let Pn = Symbol("PortalGroupContext"), hr = I({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
1246
+ let l = el({ resolveTarget() {
1231
1247
  return e.target;
1232
1248
  } });
1233
- return ie(Tn, l), () => {
1249
+ return ie(Pn, l), () => {
1234
1250
  let { target: r, ...o } = e;
1235
1251
  return W({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
1236
1252
  };
1237
1253
  } });
1238
- var mr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(mr || {});
1239
- let Et = Symbol("DialogContext");
1254
+ var yr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(yr || {});
1255
+ let Ot = Symbol("DialogContext");
1240
1256
  function Ge(e) {
1241
- let t = Y(Et, null);
1257
+ let t = K(Ot, null);
1242
1258
  if (t === null) {
1243
1259
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
1244
1260
  throw Error.captureStackTrace && Error.captureStackTrace(n, Ge), n;
1245
1261
  }
1246
1262
  return t;
1247
1263
  }
1248
- let _e = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Cn = I({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: _e }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1264
+ let _e = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Dn = I({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: _e }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1249
1265
  var o, i;
1250
- let a = (o = e.id) != null ? o : `headlessui-dialog-${ye()}`, c = $(!1);
1266
+ let a = (o = e.id) != null ? o : `headlessui-dialog-${be()}`, c = E(!1);
1251
1267
  V(() => {
1252
1268
  c.value = !0;
1253
1269
  });
1254
- let s = !1, u = b(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (s || (s = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), d = $(0), f = Dt(), v = b(() => e.open === _e && f !== null ? (f.value & Q.Open) === Q.Open : e.open), p = $(null), m = b(() => Be(p));
1270
+ let s = !1, u = b(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (s || (s = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), d = E(0), f = Rt(), v = b(() => e.open === _e && f !== null ? (f.value & Q.Open) === Q.Open : e.open), p = E(null), m = b(() => Ne(p));
1255
1271
  if (r({ el: p, $el: p }), !(e.open !== _e || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1256
1272
  if (typeof v.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value === _e ? void 0 : e.open}`);
1257
- let h = b(() => c.value && v.value ? 0 : 1), y = b(() => h.value === 0), g = b(() => d.value > 1), w = Y(Et, null) !== null, [T, L] = vr(), { resolveContainers: P, mainTreeNodeRef: O, MainTreeNode: R } = ir({ portals: T, defaultContainers: [b(() => {
1273
+ let h = b(() => c.value && v.value ? 0 : 1), y = b(() => h.value === 0), g = b(() => d.value > 1), w = K(Ot, null) !== null, [k, L] = gr(), { resolveContainers: P, mainTreeNodeRef: O, MainTreeNode: R } = ur({ portals: k, defaultContainers: [b(() => {
1258
1274
  var A;
1259
1275
  return (A = ce.panelRef.value) != null ? A : p.value;
1260
- })] }), U = b(() => g.value ? "parent" : "leaf"), F = b(() => f !== null ? (f.value & Q.Closing) === Q.Closing : !1), z = b(() => w || F.value ? !1 : y.value), K = b(() => {
1261
- var A, B, ne;
1262
- return (ne = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("body > *")) != null ? B : []).find((le) => le.id === "headlessui-portal-root" ? !1 : le.contains(D(O)) && le instanceof HTMLElement)) != null ? ne : null;
1276
+ })] }), U = b(() => g.value ? "parent" : "leaf"), F = b(() => f !== null ? (f.value & Q.Closing) === Q.Closing : !1), z = b(() => w || F.value ? !1 : y.value), Y = b(() => {
1277
+ var A, B, le;
1278
+ return (le = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("body > *")) != null ? B : []).find((re) => re.id === "headlessui-portal-root" ? !1 : re.contains(D(O)) && re instanceof HTMLElement)) != null ? le : null;
1263
1279
  });
1264
- Qt(K, z);
1280
+ Jt(Y, z);
1265
1281
  let j = b(() => g.value ? !0 : y.value), G = b(() => {
1266
- var A, B, ne;
1267
- return (ne = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("[data-headlessui-portal]")) != null ? B : []).find((le) => le.contains(D(O)) && le instanceof HTMLElement)) != null ? ne : null;
1282
+ var A, B, le;
1283
+ return (le = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("[data-headlessui-portal]")) != null ? B : []).find((re) => re.contains(D(O)) && re instanceof HTMLElement)) != null ? le : null;
1268
1284
  });
1269
- Qt(G, j), ur({ type: "Dialog", enabled: b(() => h.value === 0), element: p, onUpdate: (A, B) => {
1270
- if (B === "Dialog") return pe(A, { [xt.Add]: () => d.value += 1, [xt.Remove]: () => d.value -= 1 });
1285
+ Jt(G, j), fr({ type: "Dialog", enabled: b(() => h.value === 0), element: p, onUpdate: (A, B) => {
1286
+ if (B === "Dialog") return pe(A, { [$t.Add]: () => d.value += 1, [$t.Remove]: () => d.value -= 1 });
1271
1287
  } });
1272
- let X = On({ name: "DialogDescription", slot: b(() => ({ open: v.value })) }), Z = $(null), ce = { titleId: Z, panelRef: $(null), dialogState: h, setTitleId(A) {
1288
+ let X = kn({ name: "DialogDescription", slot: b(() => ({ open: v.value })) }), Z = E(null), ce = { titleId: Z, panelRef: E(null), dialogState: h, setTitleId(A) {
1273
1289
  Z.value !== A && (Z.value = A);
1274
1290
  }, close() {
1275
1291
  t("close", !1);
1276
1292
  } };
1277
- ie(Et, ce);
1278
- let zt = b(() => !(!y.value || g.value));
1279
- Vl(P, (A, B) => {
1280
- A.preventDefault(), ce.close(), Jn(() => B == null ? void 0 : B.focus());
1281
- }, zt);
1282
- let qt = b(() => !(g.value || h.value !== 0));
1283
- yn((i = m.value) == null ? void 0 : i.defaultView, "keydown", (A) => {
1284
- qt.value && (A.defaultPrevented || A.key === at.Escape && (A.preventDefault(), A.stopPropagation(), ce.close()));
1293
+ ie(Ot, ce);
1294
+ let qt = b(() => !(!y.value || g.value));
1295
+ Ul(P, (A, B) => {
1296
+ A.preventDefault(), ce.close(), tl(() => B == null ? void 0 : B.focus());
1297
+ }, qt);
1298
+ let Kt = b(() => !(g.value || h.value !== 0));
1299
+ $n((i = m.value) == null ? void 0 : i.defaultView, "keydown", (A) => {
1300
+ Kt.value && (A.defaultPrevented || A.key === at.Escape && (A.preventDefault(), A.stopPropagation(), ce.close()));
1285
1301
  });
1286
1302
  let Yt = b(() => !(F.value || h.value !== 0 || w));
1287
- return or(m, Yt, (A) => {
1303
+ return sr(m, Yt, (A) => {
1288
1304
  var B;
1289
1305
  return { containers: [...(B = A.containers) != null ? B : [], P] };
1290
- }), te((A) => {
1306
+ }), ne((A) => {
1291
1307
  if (h.value !== 0) return;
1292
1308
  let B = D(p);
1293
1309
  if (!B) return;
1294
- let ne = new ResizeObserver((le) => {
1295
- for (let pt of le) {
1310
+ let le = new ResizeObserver((re) => {
1311
+ for (let pt of re) {
1296
1312
  let Qe = pt.target.getBoundingClientRect();
1297
1313
  Qe.x === 0 && Qe.y === 0 && Qe.width === 0 && Qe.height === 0 && ce.close();
1298
1314
  }
1299
1315
  });
1300
- ne.observe(B), A(() => ne.disconnect());
1316
+ le.observe(B), A(() => le.disconnect());
1301
1317
  }), () => {
1302
- let { open: A, initialFocus: B, ...ne } = e, le = { ...n, ref: p, id: a, role: u.value, "aria-modal": h.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": X.value }, pt = { open: h.value === 0 };
1303
- return N(wt, { force: !0 }, () => [N(Ln, () => N(pr, { target: p.value }, () => N(wt, { force: !1 }, () => N(Ne, { initialFocus: B, containers: P, features: y.value ? pe(U.value, { parent: Ne.features.RestoreFocus, leaf: Ne.features.All & ~Ne.features.FocusLock }) : Ne.features.None }, () => N(L, {}, () => W({ ourProps: le, theirProps: { ...ne, ...n }, slot: pt, attrs: n, slots: l, visible: h.value === 0, features: ot.RenderStrategy | ot.Static, name: "Dialog" })))))), N(R)]);
1318
+ let { open: A, initialFocus: B, ...le } = e, re = { ...n, ref: p, id: a, role: u.value, "aria-modal": h.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": X.value }, pt = { open: h.value === 0 };
1319
+ return N(xt, { force: !0 }, () => [N(An, () => N(hr, { target: p.value }, () => N(xt, { force: !1 }, () => N(He, { initialFocus: B, containers: P, features: y.value ? pe(U.value, { parent: He.features.RestoreFocus, leaf: He.features.All & ~He.features.FocusLock }) : He.features.None }, () => N(L, {}, () => W({ ourProps: re, theirProps: { ...le, ...n }, slot: pt, attrs: n, slots: l, visible: h.value === 0, features: ot.RenderStrategy | ot.Static, name: "Dialog" })))))), N(R)]);
1304
1320
  };
1305
1321
  } });
1306
1322
  I({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1307
1323
  var l;
1308
- let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${ye()}`, o = Ge("DialogOverlay");
1324
+ let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${be()}`, o = Ge("DialogOverlay");
1309
1325
  function i(a) {
1310
1326
  a.target === a.currentTarget && (a.preventDefault(), a.stopPropagation(), o.close());
1311
1327
  }
@@ -1316,17 +1332,17 @@ I({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1316
1332
  } });
1317
1333
  I({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
1318
1334
  var r;
1319
- let o = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${ye()}`, i = Ge("DialogBackdrop"), a = $(null);
1335
+ let o = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${be()}`, i = Ge("DialogBackdrop"), a = E(null);
1320
1336
  return l({ el: a, $el: a }), V(() => {
1321
1337
  if (i.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1322
1338
  }), () => {
1323
1339
  let { ...c } = e, s = { id: o, ref: a, "aria-hidden": !0 };
1324
- return N(wt, { force: !0 }, () => N(Ln, () => W({ ourProps: s, theirProps: { ...t, ...c }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
1340
+ return N(xt, { force: !0 }, () => N(An, () => W({ ourProps: s, theirProps: { ...t, ...c }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
1325
1341
  };
1326
1342
  } });
1327
- let An = I({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1343
+ let Rn = I({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1328
1344
  var r;
1329
- let o = (r = e.id) != null ? r : `headlessui-dialog-panel-${ye()}`, i = Ge("DialogPanel");
1345
+ let o = (r = e.id) != null ? r : `headlessui-dialog-panel-${be()}`, i = Ge("DialogPanel");
1330
1346
  l({ el: i.panelRef, $el: i.panelRef });
1331
1347
  function a(c) {
1332
1348
  c.stopPropagation();
@@ -1335,62 +1351,62 @@ let An = I({ name: "DialogPanel", props: { as: { type: [Object, String], default
1335
1351
  let { ...c } = e, s = { id: o, ref: i.panelRef, onClick: a };
1336
1352
  return W({ ourProps: s, theirProps: c, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
1337
1353
  };
1338
- } }), kn = I({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1354
+ } }), Fn = I({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1339
1355
  var l;
1340
- let r = (l = e.id) != null ? l : `headlessui-dialog-title-${ye()}`, o = Ge("DialogTitle");
1356
+ let r = (l = e.id) != null ? l : `headlessui-dialog-title-${be()}`, o = Ge("DialogTitle");
1341
1357
  return V(() => {
1342
1358
  o.setTitleId(r), ae(() => o.setTitleId(null));
1343
1359
  }), () => {
1344
1360
  let { ...i } = e;
1345
1361
  return W({ ourProps: { id: r }, theirProps: i, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
1346
1362
  };
1347
- } }), Pn = Symbol("LabelContext");
1348
- function Dn() {
1349
- let e = Y(Pn, null);
1363
+ } }), Bn = Symbol("LabelContext");
1364
+ function Mn() {
1365
+ let e = K(Bn, null);
1350
1366
  if (e === null) {
1351
1367
  let t = new Error("You used a <Label /> component, but it is not inside a parent.");
1352
- throw Error.captureStackTrace && Error.captureStackTrace(t, Dn), t;
1368
+ throw Error.captureStackTrace && Error.captureStackTrace(t, Mn), t;
1353
1369
  }
1354
1370
  return e;
1355
1371
  }
1356
- function gr({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
1357
- let l = $([]);
1372
+ function br({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
1373
+ let l = E([]);
1358
1374
  function r(o) {
1359
1375
  return l.value.push(o), () => {
1360
1376
  let i = l.value.indexOf(o);
1361
1377
  i !== -1 && l.value.splice(i, 1);
1362
1378
  };
1363
1379
  }
1364
- return ie(Pn, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1380
+ return ie(Bn, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1365
1381
  }
1366
- let hr = I({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
1382
+ let wr = I({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
1367
1383
  var l;
1368
- let r = (l = e.id) != null ? l : `headlessui-label-${ye()}`, o = Dn();
1384
+ let r = (l = e.id) != null ? l : `headlessui-label-${be()}`, o = Mn();
1369
1385
  return V(() => ae(o.register(r))), () => {
1370
- let { name: i = "Label", slot: a = {}, props: c = {} } = o, { passive: s, ...u } = e, d = { ...Object.entries(c).reduce((f, [v, p]) => Object.assign(f, { [v]: S(p) }), {}), id: r };
1386
+ let { name: i = "Label", slot: a = {}, props: c = {} } = o, { passive: s, ...u } = e, d = { ...Object.entries(c).reduce((f, [v, p]) => Object.assign(f, { [v]: x(p) }), {}), id: r };
1371
1387
  return s && (delete d.onClick, delete d.htmlFor, delete u.onClick), W({ ourProps: d, theirProps: u, slot: a, attrs: n, slots: t, name: i });
1372
1388
  };
1373
- } }), Rn = Symbol("GroupContext"), yr = I({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1374
- let l = $(null), r = gr({ name: "SwitchLabel", props: { htmlFor: b(() => {
1389
+ } }), Nn = Symbol("GroupContext"), xr = I({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1390
+ let l = E(null), r = br({ name: "SwitchLabel", props: { htmlFor: b(() => {
1375
1391
  var i;
1376
1392
  return (i = l.value) == null ? void 0 : i.id;
1377
1393
  }), onClick(i) {
1378
1394
  l.value && (i.currentTarget.tagName === "LABEL" && i.preventDefault(), l.value.click(), l.value.focus({ preventScroll: !0 }));
1379
- } } }), o = On({ name: "SwitchDescription" });
1380
- return ie(Rn, { switchRef: l, labelledby: r, describedby: o }), () => W({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
1381
- } }), br = I({ 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: null }, disabled: { type: Boolean, default: !1 }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1395
+ } } }), o = kn({ name: "SwitchDescription" });
1396
+ return ie(Nn, { switchRef: l, labelledby: r, describedby: o }), () => W({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
1397
+ } }), $r = I({ 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: null }, disabled: { type: Boolean, default: !1 }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1382
1398
  var o;
1383
- let i = (o = e.id) != null ? o : `headlessui-switch-${ye()}`, a = Y(Rn, null), [c, s] = Ol(b(() => e.modelValue), (g) => t("update:modelValue", g), b(() => e.defaultChecked));
1399
+ let i = (o = e.id) != null ? o : `headlessui-switch-${be()}`, a = K(Nn, null), [c, s] = Cl(b(() => e.modelValue), (g) => t("update:modelValue", g), b(() => e.defaultChecked));
1384
1400
  function u() {
1385
1401
  s(!c.value);
1386
1402
  }
1387
- let d = $(null), f = a === null ? d : a.switchRef, v = Il(b(() => ({ as: e.as, type: n.type })), f);
1403
+ let d = E(null), f = a === null ? d : a.switchRef, v = zl(b(() => ({ as: e.as, type: n.type })), f);
1388
1404
  r({ el: f, $el: f });
1389
1405
  function p(g) {
1390
1406
  g.preventDefault(), u();
1391
1407
  }
1392
1408
  function m(g) {
1393
- g.key === at.Space ? (g.preventDefault(), u()) : g.key === at.Enter && Kl(g.currentTarget);
1409
+ g.key === at.Space ? (g.preventDefault(), u()) : g.key === at.Enter && Zl(g.currentTarget);
1394
1410
  }
1395
1411
  function h(g) {
1396
1412
  g.preventDefault();
@@ -1411,11 +1427,11 @@ let hr = I({ name: "Label", props: { as: { type: [Object, String], default: "lab
1411
1427
  };
1412
1428
  }, { immediate: !0 });
1413
1429
  }), () => {
1414
- let { name: g, value: w, form: T, tabIndex: L, ...P } = e, O = { checked: c.value }, R = { id: i, ref: f, role: "switch", type: v.value, tabIndex: L === -1 ? 0 : L, "aria-checked": c.value, "aria-labelledby": a == null ? void 0 : a.labelledby.value, "aria-describedby": a == null ? void 0 : a.describedby.value, onClick: p, onKeyup: m, onKeypress: h };
1415
- return N(Le, [g != null && c.value != null ? N(it, Wl({ features: We.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: c.value, form: T, disabled: P.disabled, name: g, value: w })) : null, W({ ourProps: R, theirProps: { ...n, ...Pt(P, ["modelValue", "defaultChecked"]) }, slot: O, attrs: n, slots: l, name: "Switch" })]);
1430
+ let { name: g, value: w, form: k, tabIndex: L, ...P } = e, O = { checked: c.value }, R = { id: i, ref: f, role: "switch", type: v.value, tabIndex: L === -1 ? 0 : L, "aria-checked": c.value, "aria-labelledby": a == null ? void 0 : a.labelledby.value, "aria-describedby": a == null ? void 0 : a.describedby.value, onClick: p, onKeyup: m, onKeypress: h };
1431
+ return N(Te, [g != null && c.value != null ? N(it, ql({ features: Ue.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: c.value, form: k, disabled: P.disabled, name: g, value: w })) : null, W({ ourProps: R, theirProps: { ...n, ...Dt(P, ["modelValue", "defaultChecked"]) }, slot: O, attrs: n, slots: l, name: "Switch" })]);
1416
1432
  };
1417
- } }), wr = hr;
1418
- function xr(e) {
1433
+ } }), Sr = wr;
1434
+ function Er(e) {
1419
1435
  let t = { called: !1 };
1420
1436
  return (...n) => {
1421
1437
  if (!t.called) return t.called = !0, e(...n);
@@ -1427,9 +1443,9 @@ function ht(e, ...t) {
1427
1443
  function et(e, ...t) {
1428
1444
  e && t.length > 0 && e.classList.remove(...t);
1429
1445
  }
1430
- var Ot = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Ot || {});
1431
- function $r(e, t) {
1432
- let n = Ye();
1446
+ var Lt = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Lt || {});
1447
+ function Or(e, t) {
1448
+ let n = Ke();
1433
1449
  if (!e) return n.dispose;
1434
1450
  let { transitionDuration: l, transitionDelay: r } = getComputedStyle(e), [o, i] = [l, r].map((a) => {
1435
1451
  let [c = 0] = a.split(",").filter(Boolean).map((s) => s.includes("ms") ? parseFloat(s) : parseFloat(s) * 1e3).sort((s, u) => u - s);
@@ -1437,54 +1453,54 @@ function $r(e, t) {
1437
1453
  });
1438
1454
  return o !== 0 ? n.setTimeout(() => t("finished"), o + i) : t("finished"), n.add(() => t("cancelled")), n.dispose;
1439
1455
  }
1440
- function _t(e, t, n, l, r, o) {
1441
- let i = Ye(), a = o !== void 0 ? xr(o) : () => {
1456
+ function en(e, t, n, l, r, o) {
1457
+ let i = Ke(), a = o !== void 0 ? Er(o) : () => {
1442
1458
  };
1443
1459
  return et(e, ...r), ht(e, ...t, ...n), i.nextFrame(() => {
1444
- et(e, ...n), ht(e, ...l), i.add($r(e, (c) => (et(e, ...l, ...t), ht(e, ...r), a(c))));
1460
+ et(e, ...n), ht(e, ...l), i.add(Or(e, (c) => (et(e, ...l, ...t), ht(e, ...r), a(c))));
1445
1461
  }), i.add(() => et(e, ...t, ...n, ...l, ...r)), i.add(() => a("cancelled")), i.dispose;
1446
1462
  }
1447
- function Se(e = "") {
1463
+ function Ee(e = "") {
1448
1464
  return e.split(/\s+/).filter((t) => t.length > 1);
1449
1465
  }
1450
- let Rt = Symbol("TransitionContext");
1451
- var Sr = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Sr || {});
1452
- function Er() {
1453
- return Y(Rt, null) !== null;
1466
+ let Ft = Symbol("TransitionContext");
1467
+ var Lr = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Lr || {});
1468
+ function Tr() {
1469
+ return K(Ft, null) !== null;
1454
1470
  }
1455
- function Or() {
1456
- let e = Y(Rt, null);
1471
+ function Cr() {
1472
+ let e = K(Ft, null);
1457
1473
  if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1458
1474
  return e;
1459
1475
  }
1460
- function Lr() {
1461
- let e = Y(Ft, null);
1476
+ function kr() {
1477
+ let e = K(Bt, null);
1462
1478
  if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1463
1479
  return e;
1464
1480
  }
1465
- let Ft = Symbol("NestingContext");
1481
+ let Bt = Symbol("NestingContext");
1466
1482
  function ct(e) {
1467
1483
  return "children" in e ? ct(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
1468
1484
  }
1469
- function Fn(e) {
1470
- let t = $([]), n = $(!1);
1485
+ function jn(e) {
1486
+ let t = E([]), n = E(!1);
1471
1487
  V(() => n.value = !0), ae(() => n.value = !1);
1472
- function l(o, i = we.Hidden) {
1488
+ function l(o, i = xe.Hidden) {
1473
1489
  let a = t.value.findIndex(({ id: c }) => c === o);
1474
- a !== -1 && (pe(i, { [we.Unmount]() {
1490
+ a !== -1 && (pe(i, { [xe.Unmount]() {
1475
1491
  t.value.splice(a, 1);
1476
- }, [we.Hidden]() {
1492
+ }, [xe.Hidden]() {
1477
1493
  t.value[a].state = "hidden";
1478
1494
  } }), !ct(t) && n.value && (e == null || e()));
1479
1495
  }
1480
1496
  function r(o) {
1481
1497
  let i = t.value.find(({ id: a }) => a === o);
1482
- return i ? i.state !== "visible" && (i.state = "visible") : t.value.push({ id: o, state: "visible" }), () => l(o, we.Unmount);
1498
+ return i ? i.state !== "visible" && (i.state = "visible") : t.value.push({ id: o, state: "visible" }), () => l(o, xe.Unmount);
1483
1499
  }
1484
1500
  return { children: t, register: r, unregister: l };
1485
1501
  }
1486
- let Bn = ot.RenderStrategy, Ue = I({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1487
- let o = $(0);
1502
+ let Hn = ot.RenderStrategy, ze = I({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
1503
+ let o = E(0);
1488
1504
  function i() {
1489
1505
  o.value |= Q.Opening, t("beforeEnter");
1490
1506
  }
@@ -1497,17 +1513,17 @@ let Bn = ot.RenderStrategy, Ue = I({ props: { as: { type: [Object, String], defa
1497
1513
  function s() {
1498
1514
  o.value &= ~Q.Closing, t("afterLeave");
1499
1515
  }
1500
- if (!Er() && zl()) return () => N(Bt, { ...e, onBeforeEnter: i, onAfterEnter: a, onBeforeLeave: c, onAfterLeave: s }, l);
1501
- let u = $(null), d = b(() => e.unmount ? we.Unmount : we.Hidden);
1516
+ if (!Tr() && Yl()) return () => N(Mt, { ...e, onBeforeEnter: i, onAfterEnter: a, onBeforeLeave: c, onAfterLeave: s }, l);
1517
+ let u = E(null), d = b(() => e.unmount ? xe.Unmount : xe.Hidden);
1502
1518
  r({ el: u, $el: u });
1503
- let { show: f, appear: v } = Or(), { register: p, unregister: m } = Lr(), h = $(f.value ? "visible" : "hidden"), y = { value: !0 }, g = ye(), w = { value: !1 }, T = Fn(() => {
1519
+ let { show: f, appear: v } = Cr(), { register: p, unregister: m } = kr(), h = E(f.value ? "visible" : "hidden"), y = { value: !0 }, g = be(), w = { value: !1 }, k = jn(() => {
1504
1520
  !w.value && h.value !== "hidden" && (h.value = "hidden", m(g), s());
1505
1521
  });
1506
1522
  V(() => {
1507
1523
  let j = p(g);
1508
1524
  ae(j);
1509
- }), te(() => {
1510
- if (d.value === we.Hidden && g) {
1525
+ }), ne(() => {
1526
+ if (d.value === xe.Hidden && g) {
1511
1527
  if (f.value && h.value !== "visible") {
1512
1528
  h.value = "visible";
1513
1529
  return;
@@ -1515,50 +1531,50 @@ let Bn = ot.RenderStrategy, Ue = I({ props: { as: { type: [Object, String], defa
1515
1531
  pe(h.value, { hidden: () => m(g), visible: () => p(g) });
1516
1532
  }
1517
1533
  });
1518
- let L = Se(e.enter), P = Se(e.enterFrom), O = Se(e.enterTo), R = Se(e.entered), U = Se(e.leave), F = Se(e.leaveFrom), z = Se(e.leaveTo);
1534
+ let L = Ee(e.enter), P = Ee(e.enterFrom), O = Ee(e.enterTo), R = Ee(e.entered), U = Ee(e.leave), F = Ee(e.leaveFrom), z = Ee(e.leaveTo);
1519
1535
  V(() => {
1520
- te(() => {
1536
+ ne(() => {
1521
1537
  if (h.value === "visible") {
1522
1538
  let j = D(u);
1523
1539
  if (j instanceof Comment && j.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
1524
1540
  }
1525
1541
  });
1526
1542
  });
1527
- function K(j) {
1543
+ function Y(j) {
1528
1544
  let G = y.value && !v.value, X = D(u);
1529
- !X || !(X instanceof HTMLElement) || G || (w.value = !0, f.value && i(), f.value || c(), j(f.value ? _t(X, L, P, O, R, (Z) => {
1530
- w.value = !1, Z === Ot.Finished && a();
1531
- }) : _t(X, U, F, z, R, (Z) => {
1532
- w.value = !1, Z === Ot.Finished && (ct(T) || (h.value = "hidden", m(g), s()));
1545
+ !X || !(X instanceof HTMLElement) || G || (w.value = !0, f.value && i(), f.value || c(), j(f.value ? en(X, L, P, O, R, (Z) => {
1546
+ w.value = !1, Z === Lt.Finished && a();
1547
+ }) : en(X, U, F, z, R, (Z) => {
1548
+ w.value = !1, Z === Lt.Finished && (ct(k) || (h.value = "hidden", m(g), s()));
1533
1549
  })));
1534
1550
  }
1535
1551
  return V(() => {
1536
1552
  de([f], (j, G, X) => {
1537
- K(X), y.value = !1;
1553
+ Y(X), y.value = !1;
1538
1554
  }, { immediate: !0 });
1539
- }), ie(Ft, T), ql(b(() => pe(h.value, { visible: Q.Open, hidden: Q.Closed }) | o.value)), () => {
1540
- let { appear: j, show: G, enter: X, enterFrom: Z, enterTo: ce, entered: zt, leave: qt, leaveFrom: Yt, leaveTo: A, ...B } = e, ne = { ref: u }, le = { ...B, ...v.value && f.value && Ke.isServer ? { class: q([n.class, B.class, ...L, ...P]) } : {} };
1541
- return W({ theirProps: le, ourProps: ne, slot: {}, slots: l, attrs: n, features: Bn, visible: h.value === "visible", name: "TransitionChild" });
1555
+ }), ie(Bt, k), Gl(b(() => pe(h.value, { visible: Q.Open, hidden: Q.Closed }) | o.value)), () => {
1556
+ let { appear: j, show: G, enter: X, enterFrom: Z, enterTo: ce, entered: qt, leave: Kt, leaveFrom: Yt, leaveTo: A, ...B } = e, le = { ref: u }, re = { ...B, ...v.value && f.value && Ye.isServer ? { class: q([n.class, B.class, ...L, ...P]) } : {} };
1557
+ return W({ theirProps: re, ourProps: le, slot: {}, slots: l, attrs: n, features: Hn, visible: h.value === "visible", name: "TransitionChild" });
1542
1558
  };
1543
- } }), Tr = Ue, Bt = I({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l }) {
1544
- let r = Dt(), o = b(() => e.show === null && r !== null ? (r.value & Q.Open) === Q.Open : e.show);
1545
- te(() => {
1559
+ } }), Ar = ze, Mt = I({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l }) {
1560
+ let r = Rt(), o = b(() => e.show === null && r !== null ? (r.value & Q.Open) === Q.Open : e.show);
1561
+ ne(() => {
1546
1562
  if (![!0, !1].includes(o.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
1547
1563
  });
1548
- let i = $(o.value ? "visible" : "hidden"), a = Fn(() => {
1564
+ let i = E(o.value ? "visible" : "hidden"), a = jn(() => {
1549
1565
  i.value = "hidden";
1550
- }), c = $(!0), s = { show: o, appear: b(() => e.appear || !c.value) };
1566
+ }), c = E(!0), s = { show: o, appear: b(() => e.appear || !c.value) };
1551
1567
  return V(() => {
1552
- te(() => {
1568
+ ne(() => {
1553
1569
  c.value = !1, o.value ? i.value = "visible" : ct(a) || (i.value = "hidden");
1554
1570
  });
1555
- }), ie(Ft, a), ie(Rt, s), () => {
1556
- let u = Pt(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), d = { unmount: e.unmount };
1557
- return W({ ourProps: { ...d, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [N(Tr, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...d, ...u }, l.default)] }, attrs: {}, features: Bn, visible: i.value === "visible", name: "Transition" });
1571
+ }), ie(Bt, a), ie(Ft, s), () => {
1572
+ let u = Dt(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), d = { unmount: e.unmount };
1573
+ return W({ ourProps: { ...d, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [N(Ar, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...d, ...u }, l.default)] }, attrs: {}, features: Hn, visible: i.value === "visible", name: "Transition" });
1558
1574
  };
1559
1575
  } });
1560
- function Mn(e) {
1561
- const t = $(null), n = $(!1), l = b(() => e.as === "form"), r = b(() => `${e.id}-title`), o = b(() => `${e.id}-content`), i = b(() => {
1576
+ function Vn(e) {
1577
+ const t = E(null), n = E(!1), l = b(() => e.as === "form"), r = b(() => `${e.id}-title`), o = b(() => `${e.id}-content`), i = b(() => {
1562
1578
  var a;
1563
1579
  return (a = t.value) == null ? void 0 : a.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
1564
1580
  });
@@ -1571,13 +1587,13 @@ function Mn(e) {
1571
1587
  initialFocusElement: i
1572
1588
  };
1573
1589
  }
1574
- const Cr = {
1590
+ const Pr = {
1575
1591
  class: "rvc-fixed rvc-inset-0 rvc-overflow-hidden",
1576
1592
  role: "presentation"
1577
- }, Ar = { class: "rvc-absolute rvc-inset-0 rvc-overflow-hidden" }, kr = { class: "rvc-pointer-events-none rvc-fixed rvc-inset-y-0 rvc-right-0 rvc-flex rvc-max-w-full rvc-pl-10" }, Pr = { class: "rvc-flex rvc-h-full rvc-flex-col rvc-shadow-xl" }, Dr = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Rr = {
1593
+ }, Dr = { class: "rvc-absolute rvc-inset-0 rvc-overflow-hidden" }, Rr = { class: "rvc-pointer-events-none rvc-fixed rvc-inset-y-0 rvc-right-0 rvc-flex rvc-max-w-full rvc-pl-10" }, Fr = { class: "rvc-flex rvc-h-full rvc-flex-col rvc-shadow-xl" }, Br = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Mr = {
1578
1594
  key: 0,
1579
1595
  class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
1580
- }, Fr = ["id"], Br = { class: "rvc-flex rvc-shrink-0 rvc-drawer-footer" }, Ho = {
1596
+ }, Nr = ["id"], jr = { class: "rvc-flex rvc-shrink-0 rvc-drawer-footer" }, Uo = {
1581
1597
  __name: "Drawer",
1582
1598
  props: {
1583
1599
  as: {
@@ -1626,22 +1642,22 @@ const Cr = {
1626
1642
  titleId: a,
1627
1643
  descriptionId: c,
1628
1644
  initialFocusElement: s
1629
- } = Mn(l);
1630
- return (u, d) => (E(), oe(S(Bt), { as: "template" }, {
1645
+ } = Vn(l);
1646
+ return (u, d) => ($(), _(x(Mt), { as: "template" }, {
1631
1647
  default: H(() => [
1632
- M(S(Cn), {
1648
+ M(x(Dn), {
1633
1649
  as: e.as,
1634
1650
  class: "rvc-drawer",
1635
1651
  static: "",
1636
1652
  "aria-modal": "true",
1637
1653
  role: "dialog",
1638
- "initial-focus": S(s),
1639
- "aria-labelledby": S(a),
1654
+ "initial-focus": x(s),
1655
+ "aria-labelledby": x(a),
1640
1656
  onClose: d[5] || (d[5] = (f) => u.$emit("drawer:close")),
1641
- onSubmit: d[6] || (d[6] = un((f) => n("drawer:save", f), ["prevent"]))
1657
+ onSubmit: d[6] || (d[6] = fn((f) => n("drawer:save", f), ["prevent"]))
1642
1658
  }, {
1643
1659
  default: H(() => [
1644
- M(S(Ue), {
1660
+ M(x(ze), {
1645
1661
  as: "template",
1646
1662
  enter: "rvc-ease-in-out rvc-duration-500",
1647
1663
  "enter-from": "rvc-opacity-0",
@@ -1652,17 +1668,17 @@ const Cr = {
1652
1668
  onBeforeEnter: d[0] || (d[0] = (f) => n("drawer:open"))
1653
1669
  }, {
1654
1670
  default: H(() => d[7] || (d[7] = [
1655
- x("div", {
1671
+ S("div", {
1656
1672
  class: "rvc-fixed rvc-inset-0 rvc-transition-opacity rvc-drawer-backdrop",
1657
1673
  "aria-hidden": "true"
1658
1674
  }, null, -1)
1659
1675
  ])),
1660
1676
  _: 1
1661
1677
  }),
1662
- x("div", Cr, [
1663
- x("div", Ar, [
1664
- x("div", kr, [
1665
- M(S(Ue), {
1678
+ S("div", Pr, [
1679
+ S("div", Dr, [
1680
+ S("div", Rr, [
1681
+ M(x(ze), {
1666
1682
  as: "template",
1667
1683
  enter: "rvc-transform rvc-transition rvc-ease-in-out rvc-duration-500 sm:rvc-duration-700",
1668
1684
  "enter-from": "rvc-translate-x-full",
@@ -1674,59 +1690,59 @@ const Cr = {
1674
1690
  onAfterLeave: d[4] || (d[4] = (f) => (o.value = !1, n("drawer:closed")))
1675
1691
  }, {
1676
1692
  default: H(() => [
1677
- M(S(An), {
1693
+ M(x(Rn), {
1678
1694
  class: q(["rvc-pointer-events-auto rvc-w-screen", e.panelClass]),
1679
1695
  "aria-busy": e.spinning,
1680
- "aria-describedby": S(c)
1696
+ "aria-describedby": x(c)
1681
1697
  }, {
1682
1698
  default: H(() => [
1683
- x("div", Pr, [
1684
- x("header", {
1699
+ S("div", Fr, [
1700
+ S("header", {
1685
1701
  class: q([{ "rvc-sticky rvc-top-0 rvc-left-0 rvc-w-full rvc-z-10": e.headerSticky }, "rvc-drawer-header"])
1686
1702
  }, [
1687
1703
  C(u.$slots, "header", {
1688
1704
  title: e.title,
1689
1705
  showClose: e.showClose
1690
1706
  }, () => [
1691
- x("div", Dr, [
1692
- M(S(kn), {
1693
- id: S(a),
1707
+ S("div", Br, [
1708
+ M(x(Fn), {
1709
+ id: x(a),
1694
1710
  class: "rvc-drawer-title"
1695
1711
  }, {
1696
1712
  default: H(() => [
1697
- he(re(e.title), 1)
1713
+ he(oe(e.title), 1)
1698
1714
  ]),
1699
1715
  _: 1
1700
1716
  }, 8, ["id"]),
1701
- e.showClose ? (E(), k("div", Rr, [
1702
- x("button", {
1717
+ e.showClose ? ($(), T("div", Mr, [
1718
+ S("button", {
1703
1719
  type: "button",
1704
1720
  class: "rvc-relative rvc-drawer-close",
1705
1721
  "aria-label": "Close panel",
1706
1722
  onClick: d[1] || (d[1] = (f) => n("drawer:close"))
1707
1723
  }, [
1708
- M(S(At), {
1724
+ M(x(At), {
1709
1725
  class: "rvc-size-full",
1710
1726
  "aria-hidden": "true"
1711
1727
  })
1712
1728
  ])
1713
- ])) : _("", !0)
1729
+ ])) : ee("", !0)
1714
1730
  ])
1715
1731
  ])
1716
1732
  ], 2),
1717
- x("div", {
1733
+ S("div", {
1718
1734
  class: q([e.scrolledDown ? "rvc-flex-col-reverse" : "rvc-flex-col", "rvc-flex rvc-min-h-0 rvc-flex-1 rvc-overflow-y-scroll"])
1719
1735
  }, [
1720
- x("div", {
1721
- id: S(c),
1736
+ S("div", {
1737
+ id: x(c),
1722
1738
  ref_key: "contentRef",
1723
1739
  ref: r,
1724
1740
  class: "rvc-relative rvc-flex-1 rvc-drawer-content"
1725
1741
  }, [
1726
- C(u.$slots, "default", { ready: S(o) })
1727
- ], 8, Fr)
1742
+ C(u.$slots, "default", { ready: x(o) })
1743
+ ], 8, Nr)
1728
1744
  ], 2),
1729
- x("footer", Br, [
1745
+ S("footer", jr, [
1730
1746
  C(u.$slots, "footer", { loading: e.spinning }, () => [
1731
1747
  M(rt, {
1732
1748
  type: "button",
@@ -1734,13 +1750,13 @@ const Cr = {
1734
1750
  color: "light",
1735
1751
  onClick: d[2] || (d[2] = (f) => n("drawer:close"))
1736
1752
  }, null, 8, ["label"]),
1737
- S(i) ? (E(), oe(rt, {
1753
+ x(i) ? ($(), _(rt, {
1738
1754
  key: 0,
1739
1755
  type: "submit",
1740
1756
  label: e.submitLabel,
1741
1757
  spinning: e.spinning,
1742
1758
  disabled: e.spinning
1743
- }, null, 8, ["label", "spinning", "disabled"])) : _("", !0)
1759
+ }, null, 8, ["label", "spinning", "disabled"])) : ee("", !0)
1744
1760
  ])
1745
1761
  ])
1746
1762
  ])
@@ -1760,7 +1776,69 @@ const Cr = {
1760
1776
  _: 3
1761
1777
  }));
1762
1778
  }
1763
- }, Vo = /* @__PURE__ */ Object.assign({
1779
+ };
1780
+ function Hr(e, t) {
1781
+ return $(), T("svg", {
1782
+ xmlns: "http://www.w3.org/2000/svg",
1783
+ viewBox: "0 0 20 20",
1784
+ fill: "currentColor",
1785
+ "aria-hidden": "true",
1786
+ "data-slot": "icon"
1787
+ }, [
1788
+ S("path", {
1789
+ "fill-rule": "evenodd",
1790
+ d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
1791
+ "clip-rule": "evenodd"
1792
+ })
1793
+ ]);
1794
+ }
1795
+ const zo = /* @__PURE__ */ Object.assign({
1796
+ inheritAttrs: !1
1797
+ }, {
1798
+ __name: "FormSelect",
1799
+ props: {
1800
+ modelValue: {
1801
+ type: [String, Number, Object],
1802
+ default: null
1803
+ },
1804
+ rootClass: {
1805
+ type: String,
1806
+ default: ""
1807
+ },
1808
+ icon: {
1809
+ type: [Object, Function],
1810
+ default: null
1811
+ }
1812
+ },
1813
+ emits: ["update:modelValue"],
1814
+ setup(e, { emit: t }) {
1815
+ const n = e, l = t, r = b({
1816
+ get: () => n.modelValue,
1817
+ set: (i) => l("update:modelValue", i)
1818
+ }), { hasModelBinding: o } = pn();
1819
+ return (i, a) => ($(), T("div", {
1820
+ class: q([
1821
+ "rvc-select",
1822
+ e.rootClass
1823
+ ])
1824
+ }, [
1825
+ C(i.$slots, "select", bt(nl(i.$attrs)), () => [
1826
+ x(o) ? dn(($(), T("select", ye({ key: 0 }, i.$attrs, {
1827
+ "onUpdate:modelValue": a[0] || (a[0] = (c) => r.value = c)
1828
+ }), [
1829
+ C(i.$slots, "default")
1830
+ ], 16)), [
1831
+ [ll, r.value]
1832
+ ]) : ($(), T("select", bt(ye({ key: 1 }, i.$attrs)), [
1833
+ C(i.$slots, "default")
1834
+ ], 16))
1835
+ ]),
1836
+ C(i.$slots, "icon", { icon: e.icon }, () => [
1837
+ ($(), _(Be(e.icon ?? x(Hr)), { "aria-hidden": "true" }))
1838
+ ])
1839
+ ], 2));
1840
+ }
1841
+ }), qo = /* @__PURE__ */ Object.assign({
1764
1842
  inheritAttrs: !1
1765
1843
  }, {
1766
1844
  __name: "Lightswitch",
@@ -1776,40 +1854,40 @@ const Cr = {
1776
1854
  get: () => n.modelValue,
1777
1855
  set: (o) => l("update:modelValue", o)
1778
1856
  });
1779
- return (o, i) => (E(), oe(S(yr), {
1857
+ return (o, i) => ($(), _(x(xr), {
1780
1858
  as: "div",
1781
1859
  class: "rvc-lightswitch-group"
1782
1860
  }, {
1783
1861
  default: H(() => [
1784
- M(S(br), qe({
1862
+ M(x($r), ye({
1785
1863
  modelValue: r.value,
1786
1864
  "onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a),
1787
1865
  class: [{ "rvc-lightswitch-enabled": r.value }, "rvc-lightswitch"]
1788
1866
  }, o.$attrs), {
1789
1867
  default: H(() => [
1790
- x("span", {
1868
+ S("span", {
1791
1869
  class: q([{ "rvc-translate-x-6": r.value }, "rvc-lightswitch-toggle"])
1792
1870
  }, null, 2)
1793
1871
  ]),
1794
1872
  _: 1
1795
1873
  }, 16, ["modelValue", "class"]),
1796
- o.$slots.default ? (E(), oe(S(wr), { key: 0 }, {
1874
+ o.$slots.default ? ($(), _(x(Sr), { key: 0 }, {
1797
1875
  default: H(() => [
1798
1876
  C(o.$slots, "default")
1799
1877
  ]),
1800
1878
  _: 3
1801
- })) : _("", !0)
1879
+ })) : ee("", !0)
1802
1880
  ]),
1803
1881
  _: 3
1804
1882
  }));
1805
1883
  }
1806
- }), Mr = {
1884
+ }), Vr = {
1807
1885
  role: "presentation",
1808
1886
  class: "rvc-fixed rvc-inset-0 rvc-z-10 rvc-w-screen rvc-overflow-y-auto"
1809
- }, Nr = { class: "rvc-flex rvc-min-h-full rvc-justify-center rvc-p-4 rvc-items-center sm:rvc-p-0" }, jr = { class: "rvc-modal-header" }, Hr = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Vr = {
1887
+ }, Ir = { class: "rvc-flex rvc-min-h-full rvc-justify-center rvc-p-4 rvc-items-center sm:rvc-p-0" }, Wr = { class: "rvc-modal-header" }, Ur = { class: "rvc-flex rvc-items-center rvc-justify-between" }, zr = {
1810
1888
  key: 0,
1811
1889
  class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
1812
- }, Ir = ["id"], Wr = { class: "rvc-modal-footer" }, Io = {
1890
+ }, qr = ["id"], Kr = { class: "rvc-modal-footer" }, Ko = {
1813
1891
  __name: "Modal",
1814
1892
  props: {
1815
1893
  as: {
@@ -1852,22 +1930,22 @@ const Cr = {
1852
1930
  titleId: a,
1853
1931
  descriptionId: c,
1854
1932
  initialFocusElement: s
1855
- } = Mn(l);
1856
- return (u, d) => (E(), oe(S(Bt), { as: "template" }, {
1933
+ } = Vn(l);
1934
+ return (u, d) => ($(), _(x(Mt), { as: "template" }, {
1857
1935
  default: H(() => [
1858
- M(S(Cn), {
1936
+ M(x(Dn), {
1859
1937
  as: e.as,
1860
1938
  class: "rvc-modal",
1861
1939
  static: "",
1862
1940
  "aria-modal": "true",
1863
1941
  role: "dialog",
1864
- "initial-focus": S(s),
1865
- "aria-labelledby": S(a),
1942
+ "initial-focus": x(s),
1943
+ "aria-labelledby": x(a),
1866
1944
  onClose: d[6] || (d[6] = (f) => u.$emit("modal:close")),
1867
- onSubmit: d[7] || (d[7] = un((f) => n("modal:save", f), ["prevent"]))
1945
+ onSubmit: d[7] || (d[7] = fn((f) => n("modal:save", f), ["prevent"]))
1868
1946
  }, {
1869
1947
  default: H(() => [
1870
- M(S(Ue), {
1948
+ M(x(ze), {
1871
1949
  as: "template",
1872
1950
  enter: "rvc-ease-out rvc-duration-300",
1873
1951
  "enter-from": "rvc-opacity-0",
@@ -1878,16 +1956,16 @@ const Cr = {
1878
1956
  onBeforeEnter: d[0] || (d[0] = (f) => n("modal:open"))
1879
1957
  }, {
1880
1958
  default: H(() => d[8] || (d[8] = [
1881
- x("div", {
1959
+ S("div", {
1882
1960
  "aria-hidden": "true",
1883
1961
  class: "rvc-fixed rvc-inset-0 rvc-transition-opacity rvc-modal-backdrop"
1884
1962
  }, null, -1)
1885
1963
  ])),
1886
1964
  _: 1
1887
1965
  }),
1888
- x("div", Mr, [
1889
- x("div", Nr, [
1890
- M(S(Ue), {
1966
+ S("div", Vr, [
1967
+ S("div", Ir, [
1968
+ M(x(ze), {
1891
1969
  as: "template",
1892
1970
  enter: "rvc-ease-out rvc-duration-300",
1893
1971
  "enter-from": "rvc-opacity-0 rvc-translate-y-4 sm:rvc-translate-y-0 sm:rvc-scale-95",
@@ -1899,56 +1977,56 @@ const Cr = {
1899
1977
  onAfterLeave: d[5] || (d[5] = (f) => (o.value = !1, n("modal:closed")))
1900
1978
  }, {
1901
1979
  default: H(() => [
1902
- M(S(An), {
1980
+ M(x(Rn), {
1903
1981
  class: q(["rvc-modal-panel", e.panelClass]),
1904
1982
  "aria-busy": e.spinning,
1905
- "aria-describedby": S(c)
1983
+ "aria-describedby": x(c)
1906
1984
  }, {
1907
1985
  default: H(() => [
1908
- x("header", jr, [
1986
+ S("header", Wr, [
1909
1987
  C(u.$slots, "header", { title: e.title }, () => [
1910
- x("div", Hr, [
1911
- M(S(kn), {
1912
- id: S(a),
1988
+ S("div", Ur, [
1989
+ M(x(Fn), {
1990
+ id: x(a),
1913
1991
  class: "rvc-modal-title"
1914
1992
  }, {
1915
1993
  default: H(() => [
1916
- he(re(e.title), 1)
1994
+ he(oe(e.title), 1)
1917
1995
  ]),
1918
1996
  _: 1
1919
1997
  }, 8, ["id"]),
1920
- e.showClose ? (E(), k("div", Vr, [
1921
- x("button", {
1998
+ e.showClose ? ($(), T("div", zr, [
1999
+ S("button", {
1922
2000
  type: "button",
1923
2001
  class: "rvc-relative rvc-modal-close",
1924
2002
  "aria-label": "Close panel",
1925
2003
  onClick: d[1] || (d[1] = (f) => n("modal:close"))
1926
2004
  }, [
1927
- M(S(At), {
2005
+ M(x(At), {
1928
2006
  class: "rvc-size-full",
1929
2007
  "aria-hidden": "true"
1930
2008
  })
1931
2009
  ])
1932
- ])) : _("", !0)
2010
+ ])) : ee("", !0)
1933
2011
  ])
1934
2012
  ])
1935
2013
  ]),
1936
- x("div", {
1937
- id: S(c),
2014
+ S("div", {
2015
+ id: x(c),
1938
2016
  ref_key: "contentRef",
1939
2017
  ref: r,
1940
2018
  class: "rvc-modal-content"
1941
2019
  }, [
1942
- C(u.$slots, "default", { ready: S(o) })
1943
- ], 8, Ir),
1944
- x("footer", Wr, [
2020
+ C(u.$slots, "default", { ready: x(o) })
2021
+ ], 8, qr),
2022
+ S("footer", Kr, [
1945
2023
  C(u.$slots, "footer", { loading: e.spinning }, () => [
1946
2024
  M(rt, {
1947
- type: S(i) ? "submit" : "button",
2025
+ type: x(i) ? "submit" : "button",
1948
2026
  label: e.submitLabel,
1949
2027
  spinning: e.spinning,
1950
2028
  disabled: e.spinning,
1951
- onClick: d[2] || (d[2] = (f) => !S(i) && u.$emit("modal:save"))
2029
+ onClick: d[2] || (d[2] = (f) => !x(i) && u.$emit("modal:save"))
1952
2030
  }, null, 8, ["type", "label", "spinning", "disabled"]),
1953
2031
  M(rt, {
1954
2032
  type: "button",
@@ -1973,22 +2051,22 @@ const Cr = {
1973
2051
  _: 3
1974
2052
  }));
1975
2053
  }
1976
- }, Ur = ["top", "right", "bottom", "left"], en = ["start", "end"], tn = /* @__PURE__ */ Ur.reduce((e, t) => e.concat(t, t + "-" + en[0], t + "-" + en[1]), []), xe = Math.min, J = Math.max, st = Math.round, tt = Math.floor, fe = (e) => ({
2054
+ }, Yr = ["top", "right", "bottom", "left"], tn = ["start", "end"], nn = /* @__PURE__ */ Yr.reduce((e, t) => e.concat(t, t + "-" + tn[0], t + "-" + tn[1]), []), $e = Math.min, J = Math.max, st = Math.round, tt = Math.floor, fe = (e) => ({
1977
2055
  x: e,
1978
2056
  y: e
1979
- }), zr = {
2057
+ }), Gr = {
1980
2058
  left: "right",
1981
2059
  right: "left",
1982
2060
  bottom: "top",
1983
2061
  top: "bottom"
1984
- }, qr = {
2062
+ }, Xr = {
1985
2063
  start: "end",
1986
2064
  end: "start"
1987
2065
  };
1988
- function Lt(e, t, n) {
1989
- return J(e, xe(t, n));
2066
+ function Tt(e, t, n) {
2067
+ return J(e, $e(t, n));
1990
2068
  }
1991
- function Me(e, t) {
2069
+ function je(e, t) {
1992
2070
  return typeof e == "function" ? e(t) : e;
1993
2071
  }
1994
2072
  function Ae(e) {
@@ -1997,31 +2075,31 @@ function Ae(e) {
1997
2075
  function ve(e) {
1998
2076
  return e.split("-")[1];
1999
2077
  }
2000
- function Nn(e) {
2078
+ function In(e) {
2001
2079
  return e === "x" ? "y" : "x";
2002
2080
  }
2003
- function Mt(e) {
2081
+ function Nt(e) {
2004
2082
  return e === "y" ? "height" : "width";
2005
2083
  }
2006
2084
  function Xe(e) {
2007
2085
  return ["top", "bottom"].includes(Ae(e)) ? "y" : "x";
2008
2086
  }
2009
- function Nt(e) {
2010
- return Nn(Xe(e));
2087
+ function jt(e) {
2088
+ return In(Xe(e));
2011
2089
  }
2012
- function Yr(e, t, n) {
2090
+ function Zr(e, t, n) {
2013
2091
  n === void 0 && (n = !1);
2014
- const l = ve(e), r = Nt(e), o = Mt(r);
2092
+ const l = ve(e), r = jt(e), o = Nt(r);
2015
2093
  let i = r === "x" ? l === (n ? "end" : "start") ? "right" : "left" : l === "start" ? "bottom" : "top";
2016
- return t.reference[o] > t.floating[o] && (i = nn(i)), [i, nn(i)];
2094
+ return t.reference[o] > t.floating[o] && (i = ln(i)), [i, ln(i)];
2017
2095
  }
2018
- function Kr(e) {
2019
- return e.replace(/start|end/g, (t) => qr[t]);
2096
+ function Qr(e) {
2097
+ return e.replace(/start|end/g, (t) => Xr[t]);
2020
2098
  }
2021
- function nn(e) {
2022
- return e.replace(/left|right|bottom|top/g, (t) => zr[t]);
2099
+ function ln(e) {
2100
+ return e.replace(/left|right|bottom|top/g, (t) => Gr[t]);
2023
2101
  }
2024
- function Gr(e) {
2102
+ function Jr(e) {
2025
2103
  return {
2026
2104
  top: 0,
2027
2105
  right: 0,
@@ -2030,8 +2108,8 @@ function Gr(e) {
2030
2108
  ...e
2031
2109
  };
2032
2110
  }
2033
- function jn(e) {
2034
- return typeof e != "number" ? Gr(e) : {
2111
+ function Wn(e) {
2112
+ return typeof e != "number" ? Jr(e) : {
2035
2113
  top: e,
2036
2114
  right: e,
2037
2115
  bottom: e,
@@ -2056,12 +2134,12 @@ function ut(e) {
2056
2134
  y: n
2057
2135
  };
2058
2136
  }
2059
- function ln(e, t, n) {
2137
+ function rn(e, t, n) {
2060
2138
  let {
2061
2139
  reference: l,
2062
2140
  floating: r
2063
2141
  } = e;
2064
- const o = Xe(t), i = Nt(t), a = Mt(i), c = Ae(t), s = o === "y", u = l.x + l.width / 2 - r.width / 2, d = l.y + l.height / 2 - r.height / 2, f = l[a] / 2 - r[a] / 2;
2142
+ const o = Xe(t), i = jt(t), a = Nt(i), c = Ae(t), s = o === "y", u = l.x + l.width / 2 - r.width / 2, d = l.y + l.height / 2 - r.height / 2, f = l[a] / 2 - r[a] / 2;
2065
2143
  let v;
2066
2144
  switch (c) {
2067
2145
  case "top":
@@ -2104,7 +2182,7 @@ function ln(e, t, n) {
2104
2182
  }
2105
2183
  return v;
2106
2184
  }
2107
- const Xr = async (e, t, n) => {
2185
+ const _r = async (e, t, n) => {
2108
2186
  const {
2109
2187
  placement: l = "bottom",
2110
2188
  strategy: r = "absolute",
@@ -2118,7 +2196,7 @@ const Xr = async (e, t, n) => {
2118
2196
  }), {
2119
2197
  x: u,
2120
2198
  y: d
2121
- } = ln(s, l, c), f = l, v = {}, p = 0;
2199
+ } = rn(s, l, c), f = l, v = {}, p = 0;
2122
2200
  for (let m = 0; m < a.length; m++) {
2123
2201
  const {
2124
2202
  name: h,
@@ -2126,7 +2204,7 @@ const Xr = async (e, t, n) => {
2126
2204
  } = a[m], {
2127
2205
  x: g,
2128
2206
  y: w,
2129
- data: T,
2207
+ data: k,
2130
2208
  reset: L
2131
2209
  } = await y({
2132
2210
  x: u,
@@ -2146,7 +2224,7 @@ const Xr = async (e, t, n) => {
2146
2224
  ...v,
2147
2225
  [h]: {
2148
2226
  ...v[h],
2149
- ...T
2227
+ ...k
2150
2228
  }
2151
2229
  }, L && p <= 50 && (p++, typeof L == "object" && (L.placement && (f = L.placement), L.rects && (s = L.rects === !0 ? await i.getElementRects({
2152
2230
  reference: e,
@@ -2155,7 +2233,7 @@ const Xr = async (e, t, n) => {
2155
2233
  }) : L.rects), {
2156
2234
  x: u,
2157
2235
  y: d
2158
- } = ln(s, f, c)), m = -1);
2236
+ } = rn(s, f, c)), m = -1);
2159
2237
  }
2160
2238
  return {
2161
2239
  x: u,
@@ -2165,7 +2243,7 @@ const Xr = async (e, t, n) => {
2165
2243
  middlewareData: v
2166
2244
  };
2167
2245
  };
2168
- async function jt(e, t) {
2246
+ async function Ht(e, t) {
2169
2247
  var n;
2170
2248
  t === void 0 && (t = {});
2171
2249
  const {
@@ -2181,7 +2259,7 @@ async function jt(e, t) {
2181
2259
  elementContext: d = "floating",
2182
2260
  altBoundary: f = !1,
2183
2261
  padding: v = 0
2184
- } = Me(t, e), p = jn(v), h = a[f ? d === "floating" ? "reference" : "floating" : d], y = ut(await o.getClippingRect({
2262
+ } = je(t, e), p = Wn(v), h = a[f ? d === "floating" ? "reference" : "floating" : d], y = ut(await o.getClippingRect({
2185
2263
  element: (n = await (o.isElement == null ? void 0 : o.isElement(h))) == null || n ? h : h.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
2186
2264
  boundary: s,
2187
2265
  rootBoundary: u,
@@ -2191,7 +2269,7 @@ async function jt(e, t) {
2191
2269
  y: r,
2192
2270
  width: i.floating.width,
2193
2271
  height: i.floating.height
2194
- } : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), T = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
2272
+ } : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), k = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
2195
2273
  x: 1,
2196
2274
  y: 1
2197
2275
  } : {
@@ -2204,13 +2282,13 @@ async function jt(e, t) {
2204
2282
  strategy: c
2205
2283
  }) : g);
2206
2284
  return {
2207
- top: (y.top - L.top + p.top) / T.y,
2208
- bottom: (L.bottom - y.bottom + p.bottom) / T.y,
2209
- left: (y.left - L.left + p.left) / T.x,
2210
- right: (L.right - y.right + p.right) / T.x
2285
+ top: (y.top - L.top + p.top) / k.y,
2286
+ bottom: (L.bottom - y.bottom + p.bottom) / k.y,
2287
+ left: (y.left - L.left + p.left) / k.x,
2288
+ right: (L.right - y.right + p.right) / k.x
2211
2289
  };
2212
2290
  }
2213
- const Zr = (e) => ({
2291
+ const eo = (e) => ({
2214
2292
  name: "arrow",
2215
2293
  options: e,
2216
2294
  async fn(t) {
@@ -2225,16 +2303,16 @@ const Zr = (e) => ({
2225
2303
  } = t, {
2226
2304
  element: s,
2227
2305
  padding: u = 0
2228
- } = Me(e, t) || {};
2306
+ } = je(e, t) || {};
2229
2307
  if (s == null)
2230
2308
  return {};
2231
- const d = jn(u), f = {
2309
+ const d = Wn(u), f = {
2232
2310
  x: n,
2233
2311
  y: l
2234
- }, v = Nt(r), p = Mt(v), m = await i.getDimensions(s), h = v === "y", y = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", T = o.reference[p] + o.reference[v] - f[v] - o.floating[p], L = f[v] - o.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
2312
+ }, v = jt(r), p = Nt(v), m = await i.getDimensions(s), h = v === "y", y = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", k = o.reference[p] + o.reference[v] - f[v] - o.floating[p], L = f[v] - o.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
2235
2313
  let O = P ? P[w] : 0;
2236
2314
  (!O || !await (i.isElement == null ? void 0 : i.isElement(P))) && (O = a.floating[w] || o.floating[p]);
2237
- const R = T / 2 - L / 2, U = O / 2 - m[p] / 2 - 1, F = xe(d[y], U), z = xe(d[g], U), K = F, j = O - m[p] - z, G = O / 2 - m[p] / 2 + R, X = Lt(K, G, j), Z = !c.arrow && ve(r) != null && G !== X && o.reference[p] / 2 - (G < K ? F : z) - m[p] / 2 < 0, ce = Z ? G < K ? G - K : G - j : 0;
2315
+ const R = k / 2 - L / 2, U = O / 2 - m[p] / 2 - 1, F = $e(d[y], U), z = $e(d[g], U), Y = F, j = O - m[p] - z, G = O / 2 - m[p] / 2 + R, X = Tt(Y, G, j), Z = !c.arrow && ve(r) != null && G !== X && o.reference[p] / 2 - (G < Y ? F : z) - m[p] / 2 < 0, ce = Z ? G < Y ? G - Y : G - j : 0;
2238
2316
  return {
2239
2317
  [v]: f[v] + ce,
2240
2318
  data: {
@@ -2248,10 +2326,10 @@ const Zr = (e) => ({
2248
2326
  };
2249
2327
  }
2250
2328
  });
2251
- function Qr(e, t, n) {
2252
- return (e ? [...n.filter((r) => ve(r) === e), ...n.filter((r) => ve(r) !== e)] : n.filter((r) => Ae(r) === r)).filter((r) => e ? ve(r) === e || (t ? Kr(r) !== r : !1) : !0);
2329
+ function to(e, t, n) {
2330
+ return (e ? [...n.filter((r) => ve(r) === e), ...n.filter((r) => ve(r) !== e)] : n.filter((r) => Ae(r) === r)).filter((r) => e ? ve(r) === e || (t ? Qr(r) !== r : !1) : !0);
2253
2331
  }
2254
- const Jr = function(e) {
2332
+ const no = function(e) {
2255
2333
  return e === void 0 && (e = {}), {
2256
2334
  name: "autoPlacement",
2257
2335
  options: e,
@@ -2266,22 +2344,22 @@ const Jr = function(e) {
2266
2344
  } = t, {
2267
2345
  crossAxis: u = !1,
2268
2346
  alignment: d,
2269
- allowedPlacements: f = tn,
2347
+ allowedPlacements: f = nn,
2270
2348
  autoAlignment: v = !0,
2271
2349
  ...p
2272
- } = Me(e, t), m = d !== void 0 || f === tn ? Qr(d || null, v, f) : f, h = await jt(t, p), y = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, g = m[y];
2350
+ } = je(e, t), m = d !== void 0 || f === nn ? to(d || null, v, f) : f, h = await Ht(t, p), y = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, g = m[y];
2273
2351
  if (g == null)
2274
2352
  return {};
2275
- const w = Yr(g, o, await (c.isRTL == null ? void 0 : c.isRTL(s.floating)));
2353
+ const w = Zr(g, o, await (c.isRTL == null ? void 0 : c.isRTL(s.floating)));
2276
2354
  if (a !== g)
2277
2355
  return {
2278
2356
  reset: {
2279
2357
  placement: m[0]
2280
2358
  }
2281
2359
  };
2282
- const T = [h[Ae(g)], h[w[0]], h[w[1]]], L = [...((l = i.autoPlacement) == null ? void 0 : l.overflows) || [], {
2360
+ const k = [h[Ae(g)], h[w[0]], h[w[1]]], L = [...((l = i.autoPlacement) == null ? void 0 : l.overflows) || [], {
2283
2361
  placement: g,
2284
- overflows: T
2362
+ overflows: k
2285
2363
  }], P = m[y + 1];
2286
2364
  if (P)
2287
2365
  return {
@@ -2297,7 +2375,7 @@ const Jr = function(e) {
2297
2375
  const z = ve(F.placement);
2298
2376
  return [F.placement, z && u ? (
2299
2377
  // Check along the mainAxis and main crossAxis side.
2300
- F.overflows.slice(0, 2).reduce((K, j) => K + j, 0)
2378
+ F.overflows.slice(0, 2).reduce((Y, j) => Y + j, 0)
2301
2379
  ) : (
2302
2380
  // Check only the mainAxis.
2303
2381
  F.overflows[0]
@@ -2320,12 +2398,12 @@ const Jr = function(e) {
2320
2398
  }
2321
2399
  };
2322
2400
  };
2323
- async function _r(e, t) {
2401
+ async function lo(e, t) {
2324
2402
  const {
2325
2403
  placement: n,
2326
2404
  platform: l,
2327
2405
  elements: r
2328
- } = e, o = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), i = Ae(n), a = ve(n), c = Xe(n) === "y", s = ["left", "top"].includes(i) ? -1 : 1, u = o && c ? -1 : 1, d = Me(t, e);
2406
+ } = e, o = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), i = Ae(n), a = ve(n), c = Xe(n) === "y", s = ["left", "top"].includes(i) ? -1 : 1, u = o && c ? -1 : 1, d = je(t, e);
2329
2407
  let {
2330
2408
  mainAxis: f,
2331
2409
  crossAxis: v,
@@ -2347,7 +2425,7 @@ async function _r(e, t) {
2347
2425
  y: v * u
2348
2426
  };
2349
2427
  }
2350
- const eo = function(e) {
2428
+ const ro = function(e) {
2351
2429
  return e === void 0 && (e = 0), {
2352
2430
  name: "offset",
2353
2431
  options: e,
@@ -2358,7 +2436,7 @@ const eo = function(e) {
2358
2436
  y: o,
2359
2437
  placement: i,
2360
2438
  middlewareData: a
2361
- } = t, c = await _r(t, e);
2439
+ } = t, c = await lo(t, e);
2362
2440
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (l = a.arrow) != null && l.alignmentOffset ? {} : {
2363
2441
  x: r + c.x,
2364
2442
  y: o + c.y,
@@ -2369,7 +2447,7 @@ const eo = function(e) {
2369
2447
  };
2370
2448
  }
2371
2449
  };
2372
- }, to = function(e) {
2450
+ }, oo = function(e) {
2373
2451
  return e === void 0 && (e = {}), {
2374
2452
  name: "shift",
2375
2453
  options: e,
@@ -2394,18 +2472,18 @@ const eo = function(e) {
2394
2472
  }
2395
2473
  },
2396
2474
  ...c
2397
- } = Me(e, t), s = {
2475
+ } = je(e, t), s = {
2398
2476
  x: n,
2399
2477
  y: l
2400
- }, u = await jt(t, c), d = Xe(Ae(r)), f = Nn(d);
2478
+ }, u = await Ht(t, c), d = Xe(Ae(r)), f = In(d);
2401
2479
  let v = s[f], p = s[d];
2402
2480
  if (o) {
2403
2481
  const h = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", g = v + u[h], w = v - u[y];
2404
- v = Lt(g, v, w);
2482
+ v = Tt(g, v, w);
2405
2483
  }
2406
2484
  if (i) {
2407
2485
  const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", g = p + u[h], w = p - u[y];
2408
- p = Lt(g, p, w);
2486
+ p = Tt(g, p, w);
2409
2487
  }
2410
2488
  const m = a.fn({
2411
2489
  ...t,
@@ -2425,7 +2503,7 @@ const eo = function(e) {
2425
2503
  };
2426
2504
  }
2427
2505
  };
2428
- }, no = function(e) {
2506
+ }, io = function(e) {
2429
2507
  return e === void 0 && (e = {}), {
2430
2508
  name: "size",
2431
2509
  options: e,
@@ -2440,17 +2518,17 @@ const eo = function(e) {
2440
2518
  apply: c = () => {
2441
2519
  },
2442
2520
  ...s
2443
- } = Me(e, t), u = await jt(t, s), d = Ae(r), f = ve(r), v = Xe(r) === "y", {
2521
+ } = je(e, t), u = await Ht(t, s), d = Ae(r), f = ve(r), v = Xe(r) === "y", {
2444
2522
  width: p,
2445
2523
  height: m
2446
2524
  } = o.floating;
2447
2525
  let h, y;
2448
2526
  d === "top" || d === "bottom" ? (h = d, y = f === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = f === "end" ? "top" : "bottom");
2449
- const g = m - u.top - u.bottom, w = p - u.left - u.right, T = xe(m - u[h], g), L = xe(p - u[y], w), P = !t.middlewareData.shift;
2450
- let O = T, R = L;
2527
+ const g = m - u.top - u.bottom, w = p - u.left - u.right, k = $e(m - u[h], g), L = $e(p - u[y], w), P = !t.middlewareData.shift;
2528
+ let O = k, R = L;
2451
2529
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (l = t.middlewareData.shift) != null && l.enabled.y && (O = g), P && !f) {
2452
- const F = J(u.left, 0), z = J(u.right, 0), K = J(u.top, 0), j = J(u.bottom, 0);
2453
- v ? R = p - 2 * (F !== 0 || z !== 0 ? F + z : J(u.left, u.right)) : O = m - 2 * (K !== 0 || j !== 0 ? K + j : J(u.top, u.bottom));
2530
+ const F = J(u.left, 0), z = J(u.right, 0), Y = J(u.top, 0), j = J(u.bottom, 0);
2531
+ v ? R = p - 2 * (F !== 0 || z !== 0 ? F + z : J(u.left, u.right)) : O = m - 2 * (Y !== 0 || j !== 0 ? Y + j : J(u.top, u.bottom));
2454
2532
  }
2455
2533
  await c({
2456
2534
  ...t,
@@ -2469,28 +2547,28 @@ const eo = function(e) {
2469
2547
  function dt() {
2470
2548
  return typeof window < "u";
2471
2549
  }
2472
- function ke(e) {
2473
- return Ht(e) ? (e.nodeName || "").toLowerCase() : "#document";
2550
+ function Pe(e) {
2551
+ return Vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
2474
2552
  }
2475
- function ee(e) {
2553
+ function te(e) {
2476
2554
  var t;
2477
2555
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2478
2556
  }
2479
2557
  function ge(e) {
2480
2558
  var t;
2481
- return (t = (Ht(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2559
+ return (t = (Vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2482
2560
  }
2483
- function Ht(e) {
2484
- return dt() ? e instanceof Node || e instanceof ee(e).Node : !1;
2561
+ function Vt(e) {
2562
+ return dt() ? e instanceof Node || e instanceof te(e).Node : !1;
2485
2563
  }
2486
2564
  function se(e) {
2487
- return dt() ? e instanceof Element || e instanceof ee(e).Element : !1;
2565
+ return dt() ? e instanceof Element || e instanceof te(e).Element : !1;
2488
2566
  }
2489
2567
  function me(e) {
2490
- return dt() ? e instanceof HTMLElement || e instanceof ee(e).HTMLElement : !1;
2568
+ return dt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
2491
2569
  }
2492
- function rn(e) {
2493
- return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ee(e).ShadowRoot;
2570
+ function on(e) {
2571
+ return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
2494
2572
  }
2495
2573
  function Ze(e) {
2496
2574
  const {
@@ -2501,8 +2579,8 @@ function Ze(e) {
2501
2579
  } = ue(e);
2502
2580
  return /auto|scroll|overlay|hidden|clip/.test(t + l + n) && !["inline", "contents"].includes(r);
2503
2581
  }
2504
- function lo(e) {
2505
- return ["table", "td", "th"].includes(ke(e));
2582
+ function ao(e) {
2583
+ return ["table", "td", "th"].includes(Pe(e));
2506
2584
  }
2507
2585
  function ft(e) {
2508
2586
  return [":popover-open", ":modal"].some((t) => {
@@ -2513,29 +2591,29 @@ function ft(e) {
2513
2591
  }
2514
2592
  });
2515
2593
  }
2516
- function Vt(e) {
2517
- const t = It(), n = se(e) ? ue(e) : e;
2594
+ function It(e) {
2595
+ const t = Wt(), n = se(e) ? ue(e) : e;
2518
2596
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((l) => (n.willChange || "").includes(l)) || ["paint", "layout", "strict", "content"].some((l) => (n.contain || "").includes(l));
2519
2597
  }
2520
- function ro(e) {
2521
- let t = $e(e);
2522
- for (; me(t) && !Fe(t); ) {
2523
- if (Vt(t))
2598
+ function so(e) {
2599
+ let t = Se(e);
2600
+ for (; me(t) && !Me(t); ) {
2601
+ if (It(t))
2524
2602
  return t;
2525
2603
  if (ft(t))
2526
2604
  return null;
2527
- t = $e(t);
2605
+ t = Se(t);
2528
2606
  }
2529
2607
  return null;
2530
2608
  }
2531
- function It() {
2609
+ function Wt() {
2532
2610
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2533
2611
  }
2534
- function Fe(e) {
2535
- return ["html", "body", "#document"].includes(ke(e));
2612
+ function Me(e) {
2613
+ return ["html", "body", "#document"].includes(Pe(e));
2536
2614
  }
2537
2615
  function ue(e) {
2538
- return ee(e).getComputedStyle(e);
2616
+ return te(e).getComputedStyle(e);
2539
2617
  }
2540
2618
  function vt(e) {
2541
2619
  return se(e) ? {
@@ -2546,36 +2624,36 @@ function vt(e) {
2546
2624
  scrollTop: e.scrollY
2547
2625
  };
2548
2626
  }
2549
- function $e(e) {
2550
- if (ke(e) === "html")
2627
+ function Se(e) {
2628
+ if (Pe(e) === "html")
2551
2629
  return e;
2552
2630
  const t = (
2553
2631
  // Step into the shadow DOM of the parent of a slotted node.
2554
2632
  e.assignedSlot || // DOM Element detected.
2555
2633
  e.parentNode || // ShadowRoot detected.
2556
- rn(e) && e.host || // Fallback.
2634
+ on(e) && e.host || // Fallback.
2557
2635
  ge(e)
2558
2636
  );
2559
- return rn(t) ? t.host : t;
2637
+ return on(t) ? t.host : t;
2560
2638
  }
2561
- function Hn(e) {
2562
- const t = $e(e);
2563
- return Fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : me(t) && Ze(t) ? t : Hn(t);
2639
+ function Un(e) {
2640
+ const t = Se(e);
2641
+ return Me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : me(t) && Ze(t) ? t : Un(t);
2564
2642
  }
2565
- function ze(e, t, n) {
2643
+ function qe(e, t, n) {
2566
2644
  var l;
2567
2645
  t === void 0 && (t = []), n === void 0 && (n = !0);
2568
- const r = Hn(e), o = r === ((l = e.ownerDocument) == null ? void 0 : l.body), i = ee(r);
2646
+ const r = Un(e), o = r === ((l = e.ownerDocument) == null ? void 0 : l.body), i = te(r);
2569
2647
  if (o) {
2570
- const a = Tt(i);
2571
- return t.concat(i, i.visualViewport || [], Ze(r) ? r : [], a && n ? ze(a) : []);
2648
+ const a = Ct(i);
2649
+ return t.concat(i, i.visualViewport || [], Ze(r) ? r : [], a && n ? qe(a) : []);
2572
2650
  }
2573
- return t.concat(r, ze(r, [], n));
2651
+ return t.concat(r, qe(r, [], n));
2574
2652
  }
2575
- function Tt(e) {
2653
+ function Ct(e) {
2576
2654
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2577
2655
  }
2578
- function Vn(e) {
2656
+ function zn(e) {
2579
2657
  const t = ue(e);
2580
2658
  let n = parseFloat(t.width) || 0, l = parseFloat(t.height) || 0;
2581
2659
  const r = me(e), o = r ? e.offsetWidth : n, i = r ? e.offsetHeight : l, a = st(n) !== o || st(l) !== i;
@@ -2585,48 +2663,48 @@ function Vn(e) {
2585
2663
  $: a
2586
2664
  };
2587
2665
  }
2588
- function Wt(e) {
2666
+ function Ut(e) {
2589
2667
  return se(e) ? e : e.contextElement;
2590
2668
  }
2591
- function Re(e) {
2592
- const t = Wt(e);
2669
+ function Fe(e) {
2670
+ const t = Ut(e);
2593
2671
  if (!me(t))
2594
2672
  return fe(1);
2595
2673
  const n = t.getBoundingClientRect(), {
2596
2674
  width: l,
2597
2675
  height: r,
2598
2676
  $: o
2599
- } = Vn(t);
2677
+ } = zn(t);
2600
2678
  let i = (o ? st(n.width) : n.width) / l, a = (o ? st(n.height) : n.height) / r;
2601
2679
  return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2602
2680
  x: i,
2603
2681
  y: a
2604
2682
  };
2605
2683
  }
2606
- const oo = /* @__PURE__ */ fe(0);
2607
- function In(e) {
2608
- const t = ee(e);
2609
- return !It() || !t.visualViewport ? oo : {
2684
+ const uo = /* @__PURE__ */ fe(0);
2685
+ function qn(e) {
2686
+ const t = te(e);
2687
+ return !Wt() || !t.visualViewport ? uo : {
2610
2688
  x: t.visualViewport.offsetLeft,
2611
2689
  y: t.visualViewport.offsetTop
2612
2690
  };
2613
2691
  }
2614
- function io(e, t, n) {
2615
- return t === void 0 && (t = !1), !n || t && n !== ee(e) ? !1 : t;
2692
+ function co(e, t, n) {
2693
+ return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
2616
2694
  }
2617
- function Ce(e, t, n, l) {
2695
+ function ke(e, t, n, l) {
2618
2696
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2619
- const r = e.getBoundingClientRect(), o = Wt(e);
2697
+ const r = e.getBoundingClientRect(), o = Ut(e);
2620
2698
  let i = fe(1);
2621
- t && (l ? se(l) && (i = Re(l)) : i = Re(e));
2622
- const a = io(o, n, l) ? In(o) : fe(0);
2699
+ t && (l ? se(l) && (i = Fe(l)) : i = Fe(e));
2700
+ const a = co(o, n, l) ? qn(o) : fe(0);
2623
2701
  let c = (r.left + a.x) / i.x, s = (r.top + a.y) / i.y, u = r.width / i.x, d = r.height / i.y;
2624
2702
  if (o) {
2625
- const f = ee(o), v = l && se(l) ? ee(l) : l;
2626
- let p = f, m = Tt(p);
2703
+ const f = te(o), v = l && se(l) ? te(l) : l;
2704
+ let p = f, m = Ct(p);
2627
2705
  for (; m && l && v !== p; ) {
2628
- const h = Re(m), y = m.getBoundingClientRect(), g = ue(m), w = y.left + (m.clientLeft + parseFloat(g.paddingLeft)) * h.x, T = y.top + (m.clientTop + parseFloat(g.paddingTop)) * h.y;
2629
- c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += w, s += T, p = ee(m), m = Tt(p);
2706
+ const h = Fe(m), y = m.getBoundingClientRect(), g = ue(m), w = y.left + (m.clientLeft + parseFloat(g.paddingLeft)) * h.x, k = y.top + (m.clientTop + parseFloat(g.paddingTop)) * h.y;
2707
+ c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += w, s += k, p = te(m), m = Ct(p);
2630
2708
  }
2631
2709
  }
2632
2710
  return ut({
@@ -2636,22 +2714,22 @@ function Ce(e, t, n, l) {
2636
2714
  y: s
2637
2715
  });
2638
2716
  }
2639
- function Ut(e, t) {
2717
+ function zt(e, t) {
2640
2718
  const n = vt(e).scrollLeft;
2641
- return t ? t.left + n : Ce(ge(e)).left + n;
2719
+ return t ? t.left + n : ke(ge(e)).left + n;
2642
2720
  }
2643
- function Wn(e, t, n) {
2721
+ function Kn(e, t, n) {
2644
2722
  n === void 0 && (n = !1);
2645
2723
  const l = e.getBoundingClientRect(), r = l.left + t.scrollLeft - (n ? 0 : (
2646
2724
  // RTL <body> scrollbar.
2647
- Ut(e, l)
2725
+ zt(e, l)
2648
2726
  )), o = l.top + t.scrollTop;
2649
2727
  return {
2650
2728
  x: r,
2651
2729
  y: o
2652
2730
  };
2653
2731
  }
2654
- function ao(e) {
2732
+ function fo(e) {
2655
2733
  let {
2656
2734
  elements: t,
2657
2735
  rect: n,
@@ -2666,11 +2744,11 @@ function ao(e) {
2666
2744
  scrollTop: 0
2667
2745
  }, s = fe(1);
2668
2746
  const u = fe(0), d = me(l);
2669
- if ((d || !d && !o) && ((ke(l) !== "body" || Ze(i)) && (c = vt(l)), me(l))) {
2670
- const v = Ce(l);
2671
- s = Re(l), u.x = v.x + l.clientLeft, u.y = v.y + l.clientTop;
2747
+ if ((d || !d && !o) && ((Pe(l) !== "body" || Ze(i)) && (c = vt(l)), me(l))) {
2748
+ const v = ke(l);
2749
+ s = Fe(l), u.x = v.x + l.clientLeft, u.y = v.y + l.clientTop;
2672
2750
  }
2673
- const f = i && !d && !o ? Wn(i, c, !0) : fe(0);
2751
+ const f = i && !d && !o ? Kn(i, c, !0) : fe(0);
2674
2752
  return {
2675
2753
  width: n.width * s.x,
2676
2754
  height: n.height * s.y,
@@ -2678,12 +2756,12 @@ function ao(e) {
2678
2756
  y: n.y * s.y - c.scrollTop * s.y + u.y + f.y
2679
2757
  };
2680
2758
  }
2681
- function so(e) {
2759
+ function vo(e) {
2682
2760
  return Array.from(e.getClientRects());
2683
2761
  }
2684
- function uo(e) {
2762
+ function po(e) {
2685
2763
  const t = ge(e), n = vt(e), l = e.ownerDocument.body, r = J(t.scrollWidth, t.clientWidth, l.scrollWidth, l.clientWidth), o = J(t.scrollHeight, t.clientHeight, l.scrollHeight, l.clientHeight);
2686
- let i = -n.scrollLeft + Ut(e);
2764
+ let i = -n.scrollLeft + zt(e);
2687
2765
  const a = -n.scrollTop;
2688
2766
  return ue(l).direction === "rtl" && (i += J(t.clientWidth, l.clientWidth) - r), {
2689
2767
  width: r,
@@ -2692,12 +2770,12 @@ function uo(e) {
2692
2770
  y: a
2693
2771
  };
2694
2772
  }
2695
- function co(e, t) {
2696
- const n = ee(e), l = ge(e), r = n.visualViewport;
2773
+ function mo(e, t) {
2774
+ const n = te(e), l = ge(e), r = n.visualViewport;
2697
2775
  let o = l.clientWidth, i = l.clientHeight, a = 0, c = 0;
2698
2776
  if (r) {
2699
2777
  o = r.width, i = r.height;
2700
- const s = It();
2778
+ const s = Wt();
2701
2779
  (!s || s && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
2702
2780
  }
2703
2781
  return {
@@ -2707,8 +2785,8 @@ function co(e, t) {
2707
2785
  y: c
2708
2786
  };
2709
2787
  }
2710
- function fo(e, t) {
2711
- const n = Ce(e, !0, t === "fixed"), l = n.top + e.clientTop, r = n.left + e.clientLeft, o = me(e) ? Re(e) : fe(1), i = e.clientWidth * o.x, a = e.clientHeight * o.y, c = r * o.x, s = l * o.y;
2788
+ function go(e, t) {
2789
+ const n = ke(e, !0, t === "fixed"), l = n.top + e.clientTop, r = n.left + e.clientLeft, o = me(e) ? Fe(e) : fe(1), i = e.clientWidth * o.x, a = e.clientHeight * o.y, c = r * o.x, s = l * o.y;
2712
2790
  return {
2713
2791
  width: i,
2714
2792
  height: a,
@@ -2716,16 +2794,16 @@ function fo(e, t) {
2716
2794
  y: s
2717
2795
  };
2718
2796
  }
2719
- function on(e, t, n) {
2797
+ function an(e, t, n) {
2720
2798
  let l;
2721
2799
  if (t === "viewport")
2722
- l = co(e, n);
2800
+ l = mo(e, n);
2723
2801
  else if (t === "document")
2724
- l = uo(ge(e));
2802
+ l = po(ge(e));
2725
2803
  else if (se(t))
2726
- l = fo(t, n);
2804
+ l = go(t, n);
2727
2805
  else {
2728
- const r = In(e);
2806
+ const r = qn(e);
2729
2807
  l = {
2730
2808
  x: t.x - r.x,
2731
2809
  y: t.y - r.y,
@@ -2735,34 +2813,34 @@ function on(e, t, n) {
2735
2813
  }
2736
2814
  return ut(l);
2737
2815
  }
2738
- function Un(e, t) {
2739
- const n = $e(e);
2740
- return n === t || !se(n) || Fe(n) ? !1 : ue(n).position === "fixed" || Un(n, t);
2816
+ function Yn(e, t) {
2817
+ const n = Se(e);
2818
+ return n === t || !se(n) || Me(n) ? !1 : ue(n).position === "fixed" || Yn(n, t);
2741
2819
  }
2742
- function vo(e, t) {
2820
+ function ho(e, t) {
2743
2821
  const n = t.get(e);
2744
2822
  if (n)
2745
2823
  return n;
2746
- let l = ze(e, [], !1).filter((a) => se(a) && ke(a) !== "body"), r = null;
2824
+ let l = qe(e, [], !1).filter((a) => se(a) && Pe(a) !== "body"), r = null;
2747
2825
  const o = ue(e).position === "fixed";
2748
- let i = o ? $e(e) : e;
2749
- for (; se(i) && !Fe(i); ) {
2750
- const a = ue(i), c = Vt(i);
2751
- !c && a.position === "fixed" && (r = null), (o ? !c && !r : !c && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ze(i) && !c && Un(e, i)) ? l = l.filter((u) => u !== i) : r = a, i = $e(i);
2826
+ let i = o ? Se(e) : e;
2827
+ for (; se(i) && !Me(i); ) {
2828
+ const a = ue(i), c = It(i);
2829
+ !c && a.position === "fixed" && (r = null), (o ? !c && !r : !c && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ze(i) && !c && Yn(e, i)) ? l = l.filter((u) => u !== i) : r = a, i = Se(i);
2752
2830
  }
2753
2831
  return t.set(e, l), l;
2754
2832
  }
2755
- function po(e) {
2833
+ function yo(e) {
2756
2834
  let {
2757
2835
  element: t,
2758
2836
  boundary: n,
2759
2837
  rootBoundary: l,
2760
2838
  strategy: r
2761
2839
  } = e;
2762
- const i = [...n === "clippingAncestors" ? ft(t) ? [] : vo(t, this._c) : [].concat(n), l], a = i[0], c = i.reduce((s, u) => {
2763
- const d = on(t, u, r);
2764
- return s.top = J(d.top, s.top), s.right = xe(d.right, s.right), s.bottom = xe(d.bottom, s.bottom), s.left = J(d.left, s.left), s;
2765
- }, on(t, a, r));
2840
+ const i = [...n === "clippingAncestors" ? ft(t) ? [] : ho(t, this._c) : [].concat(n), l], a = i[0], c = i.reduce((s, u) => {
2841
+ const d = an(t, u, r);
2842
+ return s.top = J(d.top, s.top), s.right = $e(d.right, s.right), s.bottom = $e(d.bottom, s.bottom), s.left = J(d.left, s.left), s;
2843
+ }, an(t, a, r));
2766
2844
  return {
2767
2845
  width: c.right - c.left,
2768
2846
  height: c.bottom - c.top,
@@ -2770,29 +2848,29 @@ function po(e) {
2770
2848
  y: c.top
2771
2849
  };
2772
2850
  }
2773
- function mo(e) {
2851
+ function bo(e) {
2774
2852
  const {
2775
2853
  width: t,
2776
2854
  height: n
2777
- } = Vn(e);
2855
+ } = zn(e);
2778
2856
  return {
2779
2857
  width: t,
2780
2858
  height: n
2781
2859
  };
2782
2860
  }
2783
- function go(e, t, n) {
2784
- const l = me(t), r = ge(t), o = n === "fixed", i = Ce(e, !0, o, t);
2861
+ function wo(e, t, n) {
2862
+ const l = me(t), r = ge(t), o = n === "fixed", i = ke(e, !0, o, t);
2785
2863
  let a = {
2786
2864
  scrollLeft: 0,
2787
2865
  scrollTop: 0
2788
2866
  };
2789
2867
  const c = fe(0);
2790
2868
  if (l || !l && !o)
2791
- if ((ke(t) !== "body" || Ze(r)) && (a = vt(t)), l) {
2792
- const f = Ce(t, !0, o, t);
2869
+ if ((Pe(t) !== "body" || Ze(r)) && (a = vt(t)), l) {
2870
+ const f = ke(t, !0, o, t);
2793
2871
  c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
2794
- } else r && (c.x = Ut(r));
2795
- const s = r && !l && !o ? Wn(r, a) : fe(0), u = i.left + a.scrollLeft - c.x - s.x, d = i.top + a.scrollTop - c.y - s.y;
2872
+ } else r && (c.x = zt(r));
2873
+ const s = r && !l && !o ? Kn(r, a) : fe(0), u = i.left + a.scrollLeft - c.x - s.x, d = i.top + a.scrollTop - c.y - s.y;
2796
2874
  return {
2797
2875
  x: u,
2798
2876
  y: d,
@@ -2803,7 +2881,7 @@ function go(e, t, n) {
2803
2881
  function yt(e) {
2804
2882
  return ue(e).position === "static";
2805
2883
  }
2806
- function an(e, t) {
2884
+ function sn(e, t) {
2807
2885
  if (!me(e) || ue(e).position === "fixed")
2808
2886
  return null;
2809
2887
  if (t)
@@ -2811,28 +2889,28 @@ function an(e, t) {
2811
2889
  let n = e.offsetParent;
2812
2890
  return ge(e) === n && (n = n.ownerDocument.body), n;
2813
2891
  }
2814
- function zn(e, t) {
2815
- const n = ee(e);
2892
+ function Gn(e, t) {
2893
+ const n = te(e);
2816
2894
  if (ft(e))
2817
2895
  return n;
2818
2896
  if (!me(e)) {
2819
- let r = $e(e);
2820
- for (; r && !Fe(r); ) {
2897
+ let r = Se(e);
2898
+ for (; r && !Me(r); ) {
2821
2899
  if (se(r) && !yt(r))
2822
2900
  return r;
2823
- r = $e(r);
2901
+ r = Se(r);
2824
2902
  }
2825
2903
  return n;
2826
2904
  }
2827
- let l = an(e, t);
2828
- for (; l && lo(l) && yt(l); )
2829
- l = an(l, t);
2830
- return l && Fe(l) && yt(l) && !Vt(l) ? n : l || ro(e) || n;
2905
+ let l = sn(e, t);
2906
+ for (; l && ao(l) && yt(l); )
2907
+ l = sn(l, t);
2908
+ return l && Me(l) && yt(l) && !It(l) ? n : l || so(e) || n;
2831
2909
  }
2832
- const ho = async function(e) {
2833
- const t = this.getOffsetParent || zn, n = this.getDimensions, l = await n(e.floating);
2910
+ const xo = async function(e) {
2911
+ const t = this.getOffsetParent || Gn, n = this.getDimensions, l = await n(e.floating);
2834
2912
  return {
2835
- reference: go(e.reference, await t(e.floating), e.strategy),
2913
+ reference: wo(e.reference, await t(e.floating), e.strategy),
2836
2914
  floating: {
2837
2915
  x: 0,
2838
2916
  y: 0,
@@ -2841,22 +2919,22 @@ const ho = async function(e) {
2841
2919
  }
2842
2920
  };
2843
2921
  };
2844
- function yo(e) {
2922
+ function $o(e) {
2845
2923
  return ue(e).direction === "rtl";
2846
2924
  }
2847
- const bo = {
2848
- convertOffsetParentRelativeRectToViewportRelativeRect: ao,
2925
+ const So = {
2926
+ convertOffsetParentRelativeRectToViewportRelativeRect: fo,
2849
2927
  getDocumentElement: ge,
2850
- getClippingRect: po,
2851
- getOffsetParent: zn,
2852
- getElementRects: ho,
2853
- getClientRects: so,
2854
- getDimensions: mo,
2855
- getScale: Re,
2928
+ getClippingRect: yo,
2929
+ getOffsetParent: Gn,
2930
+ getElementRects: xo,
2931
+ getClientRects: vo,
2932
+ getDimensions: bo,
2933
+ getScale: Fe,
2856
2934
  isElement: se,
2857
- isRTL: yo
2935
+ isRTL: $o
2858
2936
  };
2859
- function wo(e, t) {
2937
+ function Eo(e, t) {
2860
2938
  let n = null, l;
2861
2939
  const r = ge(e);
2862
2940
  function o() {
@@ -2875,10 +2953,10 @@ function wo(e, t) {
2875
2953
  return;
2876
2954
  const v = tt(u), p = tt(r.clientWidth - (s + d)), m = tt(r.clientHeight - (u + f)), h = tt(s), g = {
2877
2955
  rootMargin: -v + "px " + -p + "px " + -m + "px " + -h + "px",
2878
- threshold: J(0, xe(1, c)) || 1
2956
+ threshold: J(0, $e(1, c)) || 1
2879
2957
  };
2880
2958
  let w = !0;
2881
- function T(L) {
2959
+ function k(L) {
2882
2960
  const P = L[0].intersectionRatio;
2883
2961
  if (P !== c) {
2884
2962
  if (!w)
@@ -2890,19 +2968,19 @@ function wo(e, t) {
2890
2968
  w = !1;
2891
2969
  }
2892
2970
  try {
2893
- n = new IntersectionObserver(T, {
2971
+ n = new IntersectionObserver(k, {
2894
2972
  ...g,
2895
2973
  // Handle <iframe>s
2896
2974
  root: r.ownerDocument
2897
2975
  });
2898
2976
  } catch {
2899
- n = new IntersectionObserver(T, g);
2977
+ n = new IntersectionObserver(k, g);
2900
2978
  }
2901
2979
  n.observe(e);
2902
2980
  }
2903
2981
  return i(!0), o;
2904
2982
  }
2905
- function xo(e, t, n, l) {
2983
+ function Oo(e, t, n, l) {
2906
2984
  l === void 0 && (l = {});
2907
2985
  const {
2908
2986
  ancestorScroll: r = !0,
@@ -2910,13 +2988,13 @@ function xo(e, t, n, l) {
2910
2988
  elementResize: i = typeof ResizeObserver == "function",
2911
2989
  layoutShift: a = typeof IntersectionObserver == "function",
2912
2990
  animationFrame: c = !1
2913
- } = l, s = Wt(e), u = r || o ? [...s ? ze(s) : [], ...ze(t)] : [];
2991
+ } = l, s = Ut(e), u = r || o ? [...s ? qe(s) : [], ...qe(t)] : [];
2914
2992
  u.forEach((y) => {
2915
2993
  r && y.addEventListener("scroll", n, {
2916
2994
  passive: !0
2917
2995
  }), o && y.addEventListener("resize", n);
2918
2996
  });
2919
- const d = s && a ? wo(s, n) : null;
2997
+ const d = s && a ? Eo(s, n) : null;
2920
2998
  let f = -1, v = null;
2921
2999
  i && (v = new ResizeObserver((y) => {
2922
3000
  let [g] = y;
@@ -2925,10 +3003,10 @@ function xo(e, t, n, l) {
2925
3003
  (w = v) == null || w.observe(t);
2926
3004
  })), n();
2927
3005
  }), s && !c && v.observe(s), v.observe(t));
2928
- let p, m = c ? Ce(e) : null;
3006
+ let p, m = c ? ke(e) : null;
2929
3007
  c && h();
2930
3008
  function h() {
2931
- const y = Ce(e);
3009
+ const y = ke(e);
2932
3010
  m && (y.x !== m.x || y.y !== m.y || y.width !== m.width || y.height !== m.height) && n(), m = y, p = requestAnimationFrame(h);
2933
3011
  }
2934
3012
  return n(), () => {
@@ -2938,67 +3016,67 @@ function xo(e, t, n, l) {
2938
3016
  }), d == null || d(), (y = v) == null || y.disconnect(), v = null, c && cancelAnimationFrame(p);
2939
3017
  };
2940
3018
  }
2941
- const $o = eo, So = Jr, Eo = to, Oo = no, Lo = Zr, To = (e, t, n) => {
3019
+ const Lo = ro, To = no, Co = oo, ko = io, Ao = eo, Po = (e, t, n) => {
2942
3020
  const l = /* @__PURE__ */ new Map(), r = {
2943
- platform: bo,
3021
+ platform: So,
2944
3022
  ...n
2945
3023
  }, o = {
2946
3024
  ...r.platform,
2947
3025
  _c: l
2948
3026
  };
2949
- return Xr(e, t, {
3027
+ return _r(e, t, {
2950
3028
  ...r,
2951
3029
  platform: o
2952
3030
  });
2953
3031
  };
2954
- function Co(e) {
3032
+ function Do(e) {
2955
3033
  return e != null && typeof e == "object" && "$el" in e;
2956
3034
  }
2957
- function Ct(e) {
2958
- if (Co(e)) {
3035
+ function kt(e) {
3036
+ if (Do(e)) {
2959
3037
  const t = e.$el;
2960
- return Ht(t) && ke(t) === "#comment" ? null : t;
3038
+ return Vt(t) && Pe(t) === "#comment" ? null : t;
2961
3039
  }
2962
3040
  return e;
2963
3041
  }
2964
- function De(e) {
2965
- return typeof e == "function" ? e() : S(e);
3042
+ function Re(e) {
3043
+ return typeof e == "function" ? e() : x(e);
2966
3044
  }
2967
- function Ao(e) {
3045
+ function Ro(e) {
2968
3046
  return {
2969
3047
  name: "arrow",
2970
3048
  options: e,
2971
3049
  fn(t) {
2972
- const n = Ct(De(e.element));
2973
- return n == null ? {} : Lo({
3050
+ const n = kt(Re(e.element));
3051
+ return n == null ? {} : Ao({
2974
3052
  element: n,
2975
3053
  padding: e.padding
2976
3054
  }).fn(t);
2977
3055
  }
2978
3056
  };
2979
3057
  }
2980
- function qn(e) {
3058
+ function Xn(e) {
2981
3059
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2982
3060
  }
2983
- function sn(e, t) {
2984
- const n = qn(e);
3061
+ function un(e, t) {
3062
+ const n = Xn(e);
2985
3063
  return Math.round(t * n) / n;
2986
3064
  }
2987
- function ko(e, t, n) {
3065
+ function Fo(e, t, n) {
2988
3066
  n === void 0 && (n = {});
2989
3067
  const l = n.whileElementsMounted, r = b(() => {
2990
3068
  var O;
2991
- return (O = De(n.open)) != null ? O : !0;
2992
- }), o = b(() => De(n.middleware)), i = b(() => {
3069
+ return (O = Re(n.open)) != null ? O : !0;
3070
+ }), o = b(() => Re(n.middleware)), i = b(() => {
2993
3071
  var O;
2994
- return (O = De(n.placement)) != null ? O : "bottom";
3072
+ return (O = Re(n.placement)) != null ? O : "bottom";
2995
3073
  }), a = b(() => {
2996
3074
  var O;
2997
- return (O = De(n.strategy)) != null ? O : "absolute";
3075
+ return (O = Re(n.strategy)) != null ? O : "absolute";
2998
3076
  }), c = b(() => {
2999
3077
  var O;
3000
- return (O = De(n.transform)) != null ? O : !0;
3001
- }), s = b(() => Ct(e.value)), u = b(() => Ct(t.value)), d = $(0), f = $(0), v = $(a.value), p = $(i.value), m = Ve({}), h = $(!1), y = b(() => {
3078
+ return (O = Re(n.transform)) != null ? O : !0;
3079
+ }), s = b(() => kt(e.value)), u = b(() => kt(t.value)), d = E(0), f = E(0), v = E(a.value), p = E(i.value), m = We({}), h = E(!1), y = b(() => {
3002
3080
  const O = {
3003
3081
  position: v.value,
3004
3082
  left: "0",
@@ -3006,11 +3084,11 @@ function ko(e, t, n) {
3006
3084
  };
3007
3085
  if (!u.value)
3008
3086
  return O;
3009
- const R = sn(u.value, d.value), U = sn(u.value, f.value);
3087
+ const R = un(u.value, d.value), U = un(u.value, f.value);
3010
3088
  return c.value ? {
3011
3089
  ...O,
3012
3090
  transform: "translate(" + R + "px, " + U + "px)",
3013
- ...qn(u.value) >= 1.5 && {
3091
+ ...Xn(u.value) >= 1.5 && {
3014
3092
  willChange: "transform"
3015
3093
  }
3016
3094
  } : {
@@ -3024,7 +3102,7 @@ function ko(e, t, n) {
3024
3102
  if (s.value == null || u.value == null)
3025
3103
  return;
3026
3104
  const O = r.value;
3027
- To(s.value, u.value, {
3105
+ Po(s.value, u.value, {
3028
3106
  middleware: o.value,
3029
3107
  placement: i.value,
3030
3108
  strategy: a.value
@@ -3032,11 +3110,11 @@ function ko(e, t, n) {
3032
3110
  d.value = R.x, f.value = R.y, v.value = R.strategy, p.value = R.placement, m.value = R.middlewareData, h.value = O !== !1;
3033
3111
  });
3034
3112
  }
3035
- function T() {
3113
+ function k() {
3036
3114
  typeof g == "function" && (g(), g = void 0);
3037
3115
  }
3038
3116
  function L() {
3039
- if (T(), l === void 0) {
3117
+ if (k(), l === void 0) {
3040
3118
  w();
3041
3119
  return;
3042
3120
  }
@@ -3054,18 +3132,18 @@ function ko(e, t, n) {
3054
3132
  flush: "sync"
3055
3133
  }), de(r, P, {
3056
3134
  flush: "sync"
3057
- }), _n() && el(T), {
3058
- x: Pe(d),
3059
- y: Pe(f),
3060
- strategy: Pe(v),
3061
- placement: Pe(p),
3062
- middlewareData: Pe(m),
3063
- isPositioned: Pe(h),
3135
+ }), rl() && ol(k), {
3136
+ x: De(d),
3137
+ y: De(f),
3138
+ strategy: De(v),
3139
+ placement: De(p),
3140
+ middlewareData: De(m),
3141
+ isPositioned: De(h),
3064
3142
  floatingStyles: y,
3065
3143
  update: w
3066
3144
  };
3067
3145
  }
3068
- const Po = ["innerHTML"], Wo = {
3146
+ const Bo = ["innerHTML"], Yo = {
3069
3147
  __name: "Tooltip",
3070
3148
  props: {
3071
3149
  content: {
@@ -3104,17 +3182,17 @@ const Po = ["innerHTML"], Wo = {
3104
3182
  }
3105
3183
  },
3106
3184
  setup(e) {
3107
- const t = e, n = Ve(), l = Ve(), r = Ve(), {
3185
+ const t = e, n = We(), l = We(), r = We(), {
3108
3186
  floatingStyles: o,
3109
3187
  middlewareData: i,
3110
3188
  placement: a
3111
- } = ko(n, l, {
3189
+ } = Fo(n, l, {
3112
3190
  middleware: [
3113
- t.placement ? null : So(),
3114
- $o(10),
3115
- Eo({ crossAxis: !0, padding: 5 }),
3116
- Ao({ element: r }),
3117
- Oo({
3191
+ t.placement ? null : To(),
3192
+ Lo(10),
3193
+ Co({ crossAxis: !0, padding: 5 }),
3194
+ Ro({ element: r }),
3195
+ ko({
3118
3196
  apply({ availableWidth: u, availableHeight: d, elements: f }) {
3119
3197
  Object.assign(f.floating.style, {
3120
3198
  maxWidth: t.maxWidth ? `${Math.min(u, t.maxWidth) / 16}rem` : "",
@@ -3123,7 +3201,7 @@ const Po = ["innerHTML"], Wo = {
3123
3201
  }
3124
3202
  })
3125
3203
  ],
3126
- whileElementsMounted: xo,
3204
+ whileElementsMounted: Oo,
3127
3205
  placement: t.placement
3128
3206
  }), c = (u) => ({
3129
3207
  top: 0,
@@ -3149,42 +3227,43 @@ const Po = ["innerHTML"], Wo = {
3149
3227
  }
3150
3228
  };
3151
3229
  };
3152
- return (u, d) => (E(), k("div", {
3230
+ return (u, d) => ($(), T("div", {
3153
3231
  ref_key: "wrapperRef",
3154
3232
  ref: n,
3155
3233
  class: "rvc-group/tooltip"
3156
3234
  }, [
3157
3235
  C(u.$slots, "default"),
3158
- x("div", {
3236
+ S("div", {
3159
3237
  ref_key: "tooltipRef",
3160
3238
  ref: l,
3161
3239
  class: q(["group-hover/tooltip:rvc-opacity-100 group-hover/tooltip:rvc-visible rvc-invisible rvc-opacity-0 rvc-tooltip", e.tooltipClass, { "rvc-tooltip-blur": e.blur }]),
3162
- style: tl(S(o))
3240
+ style: il(x(o))
3163
3241
  }, [
3164
3242
  C(u.$slots, "content", { content: e.content }, () => [
3165
- e.content ? (E(), k("div", {
3243
+ e.content ? ($(), T("div", {
3166
3244
  key: 0,
3167
3245
  innerHTML: e.content
3168
- }, null, 8, Po)) : _("", !0)
3246
+ }, null, 8, Bo)) : ee("", !0)
3169
3247
  ]),
3170
- x("div", qe({
3248
+ S("div", ye({
3171
3249
  ref_key: "arrowRef",
3172
3250
  ref: r,
3173
3251
  class: "rvc-absolute rvc-tooltip-arrow"
3174
- }, s(S(i))), null, 16)
3252
+ }, s(x(i))), null, 16)
3175
3253
  ], 6)
3176
3254
  ], 512));
3177
3255
  }
3178
3256
  };
3179
3257
  export {
3180
- Ro as Accordion,
3181
- Fo as Alert,
3182
- Bo as Badge,
3258
+ No as Accordion,
3259
+ jo as Alert,
3260
+ Ho as Badge,
3183
3261
  rt as ButtonBase,
3184
- Mo as Checkbox,
3185
- No as DataTable,
3186
- Ho as Drawer,
3187
- Vo as Lightswitch,
3188
- Io as Modal,
3189
- Wo as Tooltip
3262
+ Vo as Checkbox,
3263
+ Io as DataTable,
3264
+ Uo as Drawer,
3265
+ zo as FormSelect,
3266
+ qo as Lightswitch,
3267
+ Ko as Modal,
3268
+ Yo as Tooltip
3190
3269
  };