@robuust-digital/vue-components 1.2.5 → 1.2.6

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,6 +1,6 @@
1
1
  import * as tn from "vue";
2
- import { openBlock as b, createElementBlock as E, createElementVNode as $, Fragment as ae, renderList as Te, renderSlot as k, createTextVNode as pe, toDisplayString as F, createVNode as D, unref as S, normalizeClass as N, createBlock as B, resolveDynamicComponent as fe, withCtx as P, createCommentVNode as H, watchEffect as J, mergeProps as Z, computed as w, getCurrentInstance as wn, useAttrs as $n, withDirectives as Bt, vModelDynamic as xn, normalizeProps as Ze, guardReactiveProps as vl, vModelSelect as pl, ref as x, nextTick as Oe, onMounted as z, cloneVNode as ml, h as K, defineComponent as W, inject as _, provide as se, onUnmounted as ue, watch as me, shallowRef as Ye, Teleport as gl, reactive as hl, withModifiers as Sn, Transition as yl, getCurrentScope as bl, onScopeDispose as wl, shallowReadonly as Ne, normalizeStyle as $l } from "vue";
3
- function xl(e, t) {
2
+ import { openBlock as b, createElementBlock as E, createElementVNode as $, Fragment as ae, renderList as Te, renderSlot as O, createTextVNode as pe, toDisplayString as F, createVNode as D, unref as x, normalizeClass as I, createBlock as M, resolveDynamicComponent as se, withCtx as P, createCommentVNode as j, watchEffect as J, mergeProps as G, computed as w, getCurrentInstance as xn, useAttrs as Sn, withDirectives as Bt, vModelDynamic as En, normalizeProps as Ge, guardReactiveProps as ml, vModelSelect as gl, ref as S, nextTick as ke, onMounted as z, cloneVNode as hl, h as K, defineComponent as W, inject as _, provide as ue, onUnmounted as ce, watch as me, shallowRef as Ye, Teleport as yl, reactive as bl, withModifiers as Tn, Transition as wl, getCurrentScope as $l, onScopeDispose as xl, shallowReadonly as Ne, normalizeStyle as Sl } from "vue";
3
+ function El(e, t) {
4
4
  return b(), E("svg", {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
@@ -15,7 +15,7 @@ function xl(e, t) {
15
15
  })
16
16
  ]);
17
17
  }
18
- function Sl(e, t) {
18
+ function Tl(e, t) {
19
19
  return b(), E("svg", {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
21
  viewBox: "0 0 24 24",
@@ -45,7 +45,7 @@ function vt(e, t) {
45
45
  })
46
46
  ]);
47
47
  }
48
- const El = { class: "rvc-accordion" }, Tl = ["open", "name"], kl = ["innerHTML"], Oa = {
48
+ const Ol = { class: "rvc-accordion" }, kl = ["open", "name"], Ll = ["innerHTML"], La = {
49
49
  __name: "Accordion",
50
50
  props: {
51
51
  items: {
@@ -67,7 +67,7 @@ const El = { class: "rvc-accordion" }, Tl = ["open", "name"], kl = ["innerHTML"]
67
67
  }
68
68
  },
69
69
  setup(e) {
70
- return (t, n) => (b(), E("div", El, [
70
+ return (t, n) => (b(), E("div", Ol, [
71
71
  (b(!0), E(ae, null, Te(e.items, (l, r) => (b(), E("details", {
72
72
  key: r,
73
73
  open: e.defaultOpenIndex === r,
@@ -75,29 +75,29 @@ const El = { class: "rvc-accordion" }, Tl = ["open", "name"], kl = ["innerHTML"]
75
75
  class: "rvc-group/accordion group/accordion"
76
76
  }, [
77
77
  $("summary", null, [
78
- k(t.$slots, "summary", {
78
+ O(t.$slots, "summary", {
79
79
  item: l,
80
80
  active: e.defaultOpenIndex === r
81
81
  }, () => [
82
82
  pe(F(l.title) + " ", 1),
83
- k(t.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
84
- D(S(Sl), { class: "rvc-size-5 group-open/accordion:rvc-rotate-45 rvc-transition-transform" })
83
+ O(t.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
84
+ D(x(Tl), { class: "rvc-size-5 group-open/accordion:rvc-rotate-45 rvc-transition-transform" })
85
85
  ])
86
86
  ])
87
87
  ]),
88
88
  $("div", {
89
- class: N(["rvc-accordion-content", e.contentClass])
89
+ class: I(["rvc-accordion-content", e.contentClass])
90
90
  }, [
91
- k(t.$slots, "content", { item: l }, () => [
91
+ O(t.$slots, "content", { item: l }, () => [
92
92
  $("div", {
93
93
  innerHTML: l.content
94
- }, null, 8, kl)
94
+ }, null, 8, Ll)
95
95
  ])
96
96
  ], 2)
97
- ], 8, Tl))), 128))
97
+ ], 8, kl))), 128))
98
98
  ]));
99
99
  }
100
- }, Ol = { class: "rvc-alert-title" }, La = {
100
+ }, Cl = { class: "rvc-alert-title" }, Ca = {
101
101
  __name: "Alert",
102
102
  props: {
103
103
  as: {
@@ -124,37 +124,37 @@ const El = { class: "rvc-accordion" }, Tl = ["open", "name"], kl = ["innerHTML"]
124
124
  },
125
125
  emits: ["alert:close"],
126
126
  setup(e) {
127
- return (t, n) => (b(), B(fe(e.as), {
128
- class: N(["rvc-alert", `rvc-alert-${e.type}`])
127
+ return (t, n) => (b(), M(se(e.as), {
128
+ class: I(["rvc-alert", `rvc-alert-${e.type}`])
129
129
  }, {
130
130
  default: P(() => [
131
- k(t.$slots, "icon", {}, () => [
132
- e.icon ? (b(), B(fe(e.icon), {
131
+ O(t.$slots, "icon", {}, () => [
132
+ e.icon ? (b(), M(se(e.icon), {
133
133
  key: 0,
134
134
  class: "rvc-alert-icon"
135
- })) : H("", !0)
135
+ })) : j("", !0)
136
136
  ]),
137
137
  $("div", null, [
138
- k(t.$slots, "title", {}, () => [
139
- $("span", Ol, F(e.title), 1)
138
+ O(t.$slots, "title", {}, () => [
139
+ $("span", Cl, F(e.title), 1)
140
140
  ]),
141
- k(t.$slots, "default")
141
+ O(t.$slots, "default")
142
142
  ]),
143
- k(t.$slots, "close", {}, () => [
143
+ O(t.$slots, "close", {}, () => [
144
144
  e.close ? (b(), E("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
- D(S(vt), { class: "rvc-size-5" })
151
- ])) : H("", !0)
150
+ D(x(vt), { class: "rvc-size-5" })
151
+ ])) : j("", !0)
152
152
  ])
153
153
  ]),
154
154
  _: 3
155
155
  }, 8, ["class"]));
156
156
  }
157
- }, Ca = {
157
+ }, Pa = {
158
158
  __name: "Badge",
159
159
  props: {
160
160
  as: {
@@ -177,24 +177,24 @@ const El = { class: "rvc-accordion" }, Tl = ["open", "name"], kl = ["innerHTML"]
177
177
  }
178
178
  },
179
179
  setup(e) {
180
- return (t, n) => (b(), B(fe(e.as), {
181
- class: N(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
180
+ return (t, n) => (b(), M(se(e.as), {
181
+ class: I(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
182
182
  }, {
183
183
  default: P(() => [
184
- k(t.$slots, "default", { label: e.label }, () => [
184
+ O(t.$slots, "default", { label: e.label }, () => [
185
185
  pe(F(e.label), 1)
186
186
  ])
187
187
  ]),
188
188
  _: 3
189
189
  }, 8, ["class"]));
190
190
  }
191
- }, Ll = {
191
+ }, Pl = {
192
192
  xmlns: "http://www.w3.org/2000/svg",
193
193
  fill: "none",
194
194
  viewBox: "0 0 24 24"
195
195
  };
196
- function Cl(e, t) {
197
- return b(), E("svg", Ll, t[0] || (t[0] = [
196
+ function Al(e, t) {
197
+ return b(), E("svg", Pl, t[0] || (t[0] = [
198
198
  $("circle", {
199
199
  cx: "12",
200
200
  cy: "12",
@@ -209,10 +209,10 @@ function Cl(e, t) {
209
209
  }, null, -1)
210
210
  ]));
211
211
  }
212
- const En = { render: Cl }, Pl = {
212
+ const On = { render: Al }, Dl = {
213
213
  key: 0,
214
214
  class: "rvc-sr-only"
215
- }, ut = {
215
+ }, Xe = {
216
216
  __name: "ButtonBase",
217
217
  props: {
218
218
  as: {
@@ -256,35 +256,35 @@ const En = { render: Cl }, Pl = {
256
256
  const t = e;
257
257
  return J(() => {
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) => (b(), B(fe(e.as), Z(e.bindAs ? { as: e.bindAs } : {}, {
259
+ }), (n, l) => (b(), M(se(e.as), G(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: P(() => [
265
- e.iconOnly && e.label ? (b(), E("span", Pl, [
266
- k(n.$slots, "default", { label: e.label }, () => [
265
+ e.iconOnly && e.label ? (b(), E("span", Dl, [
266
+ O(n.$slots, "default", { label: e.label }, () => [
267
267
  pe(F(e.label), 1)
268
268
  ])
269
- ])) : e.label ? k(n.$slots, "default", {
269
+ ])) : e.label ? O(n.$slots, "default", {
270
270
  key: 1,
271
271
  label: e.label
272
272
  }, () => [
273
273
  pe(F(e.label), 1)
274
- ]) : H("", !0),
275
- k(n.$slots, "icon", { icon: e.icon }, () => [
276
- e.icon && !e.spinning ? (b(), B(fe(e.icon), {
274
+ ]) : j("", !0),
275
+ O(n.$slots, "icon", { icon: e.icon }, () => [
276
+ e.icon && !e.spinning ? (b(), M(se(e.icon), {
277
277
  key: 0,
278
278
  class: "rvc-button-icon",
279
279
  "aria-hidden": !e.iconOnly
280
- }, null, 8, ["aria-hidden"])) : H("", !0)
280
+ }, null, 8, ["aria-hidden"])) : j("", !0)
281
281
  ]),
282
- k(n.$slots, "spinner", { spinning: e.spinning }, () => [
283
- e.spinning ? (b(), B(S(En), {
282
+ O(n.$slots, "spinner", { spinning: e.spinning }, () => [
283
+ e.spinning ? (b(), M(x(On), {
284
284
  key: 0,
285
285
  class: "rvc-button-icon rvc-button-icon-loading",
286
286
  "aria-hidden": "true"
287
- })) : H("", !0)
287
+ })) : j("", !0)
288
288
  ])
289
289
  ]),
290
290
  _: 3
@@ -292,9 +292,9 @@ const En = { render: Cl }, Pl = {
292
292
  }
293
293
  }, It = () => ({ hasModelBinding: w(() => {
294
294
  var n;
295
- const t = wn();
295
+ const t = xn();
296
296
  return ((n = t == null ? void 0 : t.vnode) == null ? void 0 : n.props) && Object.prototype.hasOwnProperty.call(t.vnode.props, "onUpdate:modelValue");
297
- }) }), Al = { class: "rvc-checkbox-input peer-focus/checkbox:rvc-focus" }, Dl = ["for"], Pa = /* @__PURE__ */ Object.assign({
297
+ }) }), Rl = { class: "rvc-checkbox-input peer-focus/checkbox:rvc-focus" }, Fl = ["for"], Aa = /* @__PURE__ */ Object.assign({
298
298
  inheritAttrs: !1
299
299
  }, {
300
300
  __name: "Checkbox",
@@ -322,31 +322,31 @@ const En = { render: Cl }, Pl = {
322
322
  get: () => n.modelValue,
323
323
  set: (s) => l("update:modelValue", s)
324
324
  }), { hasModelBinding: a } = It(), i = {
325
- ...$n(),
325
+ ...Sn(),
326
326
  id: n.id,
327
327
  type: "checkbox",
328
328
  class: "rvc-absolute rvc-opacity-0 rvc-inset-0 rvc-cursor-pointer rvc-peer/checkbox"
329
329
  };
330
330
  return (s, u) => (b(), E("div", {
331
- class: N(["rvc-checkbox", e.rootClass])
331
+ class: I(["rvc-checkbox", e.rootClass])
332
332
  }, [
333
- S(a) ? Bt((b(), E("input", Z({ key: 0 }, i, {
333
+ x(a) ? Bt((b(), E("input", G({ key: 0 }, i, {
334
334
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c)
335
335
  }), null, 16)), [
336
- [xn, r.value]
337
- ]) : (b(), E("input", Ze(Z({ key: 1 }, i)), null, 16)),
338
- $("span", Al, [
339
- D(S(xl))
336
+ [En, r.value]
337
+ ]) : (b(), E("input", Ge(G({ key: 1 }, i)), null, 16)),
338
+ $("span", Rl, [
339
+ D(x(El))
340
340
  ]),
341
341
  $("div", null, [
342
- s.$slots.default || e.label ? k(s.$slots, "default", { key: 0 }, () => [
343
- $("label", { for: e.id }, F(e.label), 9, Dl)
344
- ]) : H("", !0)
342
+ s.$slots.default || e.label ? O(s.$slots, "default", { key: 0 }, () => [
343
+ $("label", { for: e.id }, F(e.label), 9, Fl)
344
+ ]) : j("", !0)
345
345
  ])
346
346
  ], 2));
347
347
  }
348
348
  });
349
- function Rl(e, t) {
349
+ function Ml(e, t) {
350
350
  return b(), E("svg", {
351
351
  xmlns: "http://www.w3.org/2000/svg",
352
352
  viewBox: "0 0 16 16",
@@ -361,7 +361,7 @@ function Rl(e, t) {
361
361
  })
362
362
  ]);
363
363
  }
364
- function Fl(e, t) {
364
+ function Bl(e, t) {
365
365
  return b(), E("svg", {
366
366
  xmlns: "http://www.w3.org/2000/svg",
367
367
  viewBox: "0 0 20 20",
@@ -376,7 +376,7 @@ function Fl(e, t) {
376
376
  })
377
377
  ]);
378
378
  }
379
- function Ml(e, t) {
379
+ function Il(e, t) {
380
380
  return b(), E("svg", {
381
381
  xmlns: "http://www.w3.org/2000/svg",
382
382
  viewBox: "0 0 20 20",
@@ -391,7 +391,7 @@ function Ml(e, t) {
391
391
  })
392
392
  ]);
393
393
  }
394
- function Bl(e, t) {
394
+ function Nl(e, t) {
395
395
  return b(), E("svg", {
396
396
  xmlns: "http://www.w3.org/2000/svg",
397
397
  viewBox: "0 0 20 20",
@@ -406,7 +406,18 @@ function Bl(e, t) {
406
406
  })
407
407
  ]);
408
408
  }
409
- const Tn = /* @__PURE__ */ Object.assign({
409
+ function jl(e, t) {
410
+ return b(), E("svg", {
411
+ xmlns: "http://www.w3.org/2000/svg",
412
+ viewBox: "0 0 20 20",
413
+ fill: "currentColor",
414
+ "aria-hidden": "true",
415
+ "data-slot": "icon"
416
+ }, [
417
+ $("path", { d: "M10 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM11.5 15.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z" })
418
+ ]);
419
+ }
420
+ const kn = /* @__PURE__ */ Object.assign({
410
421
  inheritAttrs: !1
411
422
  }, {
412
423
  __name: "FormSelect",
@@ -419,6 +430,10 @@ const Tn = /* @__PURE__ */ Object.assign({
419
430
  type: String,
420
431
  default: ""
421
432
  },
433
+ iconLeft: {
434
+ type: [Object, Function],
435
+ default: null
436
+ },
422
437
  icon: {
423
438
  type: [Object, Function],
424
439
  default: null
@@ -436,32 +451,38 @@ const Tn = /* @__PURE__ */ Object.assign({
436
451
  set: (o) => l("update:modelValue", o)
437
452
  }), { hasModelBinding: a } = It();
438
453
  return (o, i) => (b(), E("div", {
439
- class: N([
454
+ class: I([
440
455
  "rvc-select",
441
456
  `rvc-select-${e.size}`,
442
457
  e.rootClass
443
458
  ])
444
459
  }, [
445
- k(o.$slots, "select", Ze(vl(o.$attrs)), () => [
446
- S(a) ? Bt((b(), E("select", Z({ key: 0 }, o.$attrs, {
460
+ e.iconLeft ? O(o.$slots, "iconLeft", {
461
+ key: 0,
462
+ icon: e.iconLeft
463
+ }, () => [
464
+ (b(), M(se(e.iconLeft), { "aria-hidden": "true" }))
465
+ ]) : j("", !0),
466
+ O(o.$slots, "select", Ge(ml(o.$attrs)), () => [
467
+ x(a) ? Bt((b(), E("select", G({ key: 0 }, o.$attrs, {
447
468
  "onUpdate:modelValue": i[0] || (i[0] = (s) => r.value = s)
448
469
  }), [
449
- k(o.$slots, "default")
470
+ O(o.$slots, "default")
450
471
  ], 16)), [
451
- [pl, r.value]
452
- ]) : (b(), E("select", Ze(Z({ key: 1 }, o.$attrs)), [
453
- k(o.$slots, "default")
472
+ [gl, r.value]
473
+ ]) : (b(), E("select", Ge(G({ key: 1 }, o.$attrs)), [
474
+ O(o.$slots, "default")
454
475
  ], 16))
455
476
  ]),
456
- k(o.$slots, "icon", { icon: e.icon }, () => [
457
- (b(), B(fe(e.icon ?? S(Fl)), { "aria-hidden": "true" }))
477
+ O(o.$slots, "icon", { icon: e.icon }, () => [
478
+ (b(), M(se(e.icon ?? x(Bl)), { "aria-hidden": "true" }))
458
479
  ])
459
480
  ], 2));
460
481
  }
461
- }), Il = {
482
+ }), Vl = {
462
483
  key: 0,
463
484
  class: "rvc-pagination rvc-grid rvc-grid-cols-2 md:rvc-grid-cols-3 rvc-items-center rvc-justify-between"
464
- }, Nl = ["value"], jl = { class: "md:rvc-flex rvc-justify-center rvc-hidden" }, Vl = { class: "rvc-pagination-info" }, Hl = { class: "rvc-flex rvc-justify-end" }, Wl = { class: "rvc-flex rvc-items-center md:gap-0.5 xl:rvc-gap-1" }, Ul = ["disabled", "onClick"], zl = { key: 2 }, ql = { key: 3 }, Kl = {
485
+ }, Hl = ["value"], Wl = { class: "md:rvc-flex rvc-justify-center rvc-hidden" }, Ul = { class: "rvc-pagination-info" }, zl = { class: "rvc-flex rvc-justify-end" }, ql = { class: "rvc-flex rvc-items-center md:gap-0.5 xl:rvc-gap-1" }, Kl = ["disabled", "onClick"], Yl = { key: 2 }, Zl = { key: 3 }, Gl = {
465
486
  __name: "Pagination",
466
487
  props: {
467
488
  pagination: {
@@ -487,12 +508,12 @@ const Tn = /* @__PURE__ */ Object.assign({
487
508
  },
488
509
  emits: ["pagination:change", "pagination:perPage"],
489
510
  setup(e, { emit: t }) {
490
- const n = e, l = t, r = x(n.perPage);
511
+ const n = e, l = t, r = S(n.perPage);
491
512
  return (a, o) => {
492
513
  var i;
493
- return (i = e.pagination) != null && i.total ? (b(), E("div", Il, [
494
- k(a.$slots, "perPage", Z(e.pagination, { perPage: r.value }), () => [
495
- D(Tn, {
514
+ return (i = e.pagination) != null && i.total ? (b(), E("div", Vl, [
515
+ O(a.$slots, "perPage", G(e.pagination, { perPage: r.value }), () => [
516
+ D(kn, {
496
517
  modelValue: r.value,
497
518
  "onUpdate:modelValue": [
498
519
  o[0] || (o[0] = (s) => r.value = s),
@@ -505,19 +526,19 @@ const Tn = /* @__PURE__ */ Object.assign({
505
526
  (b(!0), E(ae, null, Te(e.perPageOptions, (s) => (b(), E("option", {
506
527
  key: `pagination-items-per-page-option-${s}`,
507
528
  value: s
508
- }, F(s) + " " + F(e.perPageLabel), 9, Nl))), 128))
529
+ }, F(s) + " " + F(e.perPageLabel), 9, Hl))), 128))
509
530
  ]),
510
531
  _: 1
511
532
  }, 8, ["modelValue"])
512
533
  ]),
513
- k(a.$slots, "info", Z(e.pagination, { fromLabel: e.fromLabel }), () => [
514
- $("div", jl, [
515
- $("div", Vl, F(e.pagination.from) + " - " + F(e.pagination.to) + " " + F(e.fromLabel) + " " + F(e.pagination.total), 1)
534
+ O(a.$slots, "info", G(e.pagination, { fromLabel: e.fromLabel }), () => [
535
+ $("div", Wl, [
536
+ $("div", Ul, F(e.pagination.from) + " - " + F(e.pagination.to) + " " + F(e.fromLabel) + " " + F(e.pagination.total), 1)
516
537
  ])
517
538
  ]),
518
- $("div", Hl, [
539
+ $("div", zl, [
519
540
  $("nav", null, [
520
- $("ol", Wl, [
541
+ $("ol", ql, [
521
542
  (b(!0), E(ae, null, Te(e.pagination.links, (s, u) => (b(), E("li", {
522
543
  key: `pagination-link-${s.label}-${u}`,
523
544
  class: "rvc-hidden md:rvc-block first:rvc-block last:rvc-block"
@@ -525,36 +546,36 @@ const Tn = /* @__PURE__ */ Object.assign({
525
546
  $("button", {
526
547
  type: "button",
527
548
  disabled: s.label === "..." || !s.url,
528
- class: N([
549
+ class: I([
529
550
  "rvc-pagination-button",
530
551
  { "rvc-pagination-button-active": s.active }
531
552
  ]),
532
553
  onClick: (c) => s.url && l("pagination:change", s.url)
533
554
  }, [
534
- s.url !== "..." && u === 0 ? (b(), B(S(Ml), {
555
+ s.url !== "..." && u === 0 ? (b(), M(x(Il), {
535
556
  key: 0,
536
557
  "aria-hidden": "true",
537
- class: N([
558
+ class: I([
538
559
  "rvc-size-5 rvc-text-slate-80",
539
560
  { "rvc-opacity-50": !s.url }
540
561
  ])
541
- }, null, 8, ["class"])) : s.label !== "..." && u === e.pagination.links.length - 1 ? (b(), B(S(Bl), {
562
+ }, null, 8, ["class"])) : s.label !== "..." && u === e.pagination.links.length - 1 ? (b(), M(x(Nl), {
542
563
  key: 1,
543
564
  "aria-hidden": "true",
544
- class: N([
565
+ class: I([
545
566
  "rvc-size-5 rvc-text-slate-80",
546
567
  { "rvc-opacity-50": !s.url }
547
568
  ])
548
- }, null, 8, ["class"])) : s.label === "..." ? (b(), E("span", zl, " ... ")) : (b(), E("span", ql, F(s.label), 1))
549
- ], 10, Ul)
569
+ }, null, 8, ["class"])) : s.label === "..." ? (b(), E("span", Yl, " ... ")) : (b(), E("span", Zl, F(s.label), 1))
570
+ ], 10, Kl)
550
571
  ]))), 128))
551
572
  ])
552
573
  ])
553
574
  ])
554
- ])) : H("", !0);
575
+ ])) : j("", !0);
555
576
  };
556
577
  }
557
- }, Yl = { class: "rvc-overflow-x-auto rvc-pb-4" }, Gl = { key: 0 }, Zl = ["aria-label", "onClick"], Xl = ["innerHTML"], Ql = { key: 1 }, Jl = ["colspan"], _l = { key: 2 }, er = ["colspan"], tr = { class: "rvc-flex rvc-gap-x-2 rvc-items-center" }, Aa = {
578
+ }, Xl = { class: "rvc-overflow-x-auto rvc-pb-4" }, Ql = { key: 0 }, Jl = ["aria-label", "onClick"], _l = ["innerHTML"], er = { key: 1 }, tr = ["colspan"], nr = { key: 2 }, lr = ["colspan"], rr = { class: "rvc-flex rvc-gap-x-2 rvc-items-center" }, Da = {
558
579
  __name: "DataTable",
559
580
  props: {
560
581
  headers: {
@@ -590,7 +611,7 @@ const Tn = /* @__PURE__ */ Object.assign({
590
611
  },
591
612
  emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
592
613
  setup(e, { emit: t }) {
593
- const n = e, l = t, r = x(null), a = (i) => n.headers.find((s) => s.key === i), o = (i) => {
614
+ const n = e, l = t, r = S(null), a = (i) => n.headers.find((s) => s.key === i), o = (i) => {
594
615
  !r.value || r.value.key !== i.key ? r.value = {
595
616
  key: i.key,
596
617
  direction: "asc"
@@ -600,16 +621,16 @@ const Tn = /* @__PURE__ */ Object.assign({
600
621
  } : r.value = null, l("table:sortBy", r.value);
601
622
  };
602
623
  return (i, s) => (b(), E("div", null, [
603
- $("div", Yl, [
624
+ $("div", Xl, [
604
625
  $("table", {
605
- class: N([{ "rvc-table-striped": e.striped }, "rvc-w-full rvc-table"])
626
+ class: I([{ "rvc-table-striped": e.striped }, "rvc-w-full rvc-table"])
606
627
  }, [
607
- e.headers.length ? (b(), E("thead", Gl, [
628
+ e.headers.length ? (b(), E("thead", Ql, [
608
629
  $("tr", null, [
609
- k(i.$slots, "headers", { headers: e.headers }, () => [
630
+ O(i.$slots, "headers", { headers: e.headers }, () => [
610
631
  (b(!0), E(ae, null, Te(e.headers, (u) => {
611
632
  var c, f;
612
- return b(), E("th", Z({ ref_for: !0 }, u, {
633
+ return b(), E("th", G({ ref_for: !0 }, u, {
613
634
  key: `rvc-table-header-${u.id}`,
614
635
  class: {
615
636
  "rvc-text-left": u.align === "left" || !u.align,
@@ -621,7 +642,7 @@ const Tn = /* @__PURE__ */ Object.assign({
621
642
  key: 0,
622
643
  type: "button",
623
644
  "aria-label": `Sort on ${u.label}`,
624
- class: N([
645
+ class: I([
625
646
  "rvc-flex rvc-w-full rvc-gap-x-1.5 hover:rvc-underline rvc-group/table",
626
647
  {
627
648
  "rvc-justify-center": u.align === "center",
@@ -630,14 +651,14 @@ const Tn = /* @__PURE__ */ Object.assign({
630
651
  ]),
631
652
  onClick: (d) => o(u)
632
653
  }, [
633
- k(i.$slots, "header-label", {
654
+ O(i.$slots, "header-label", {
634
655
  sortBy: r.value,
635
656
  header: u
636
657
  }, () => [
637
658
  pe(F(u.label), 1)
638
659
  ]),
639
- D(S(Rl), {
640
- class: N([
660
+ D(x(Ml), {
661
+ class: I([
641
662
  "rvc-size-4 rvc-shrink-0 rvc-transition",
642
663
  {
643
664
  "rvc-opacity-100": ((c = r.value) == null ? void 0 : c.key) === u.key,
@@ -646,7 +667,7 @@ const Tn = /* @__PURE__ */ Object.assign({
646
667
  }
647
668
  ])
648
669
  }, null, 8, ["class"])
649
- ], 10, Zl)) : k(i.$slots, "header-label", {
670
+ ], 10, Jl)) : O(i.$slots, "header-label", {
650
671
  key: 1,
651
672
  sortBy: r.value,
652
673
  header: u
@@ -657,18 +678,18 @@ const Tn = /* @__PURE__ */ Object.assign({
657
678
  }), 128))
658
679
  ])
659
680
  ])
660
- ])) : H("", !0),
681
+ ])) : j("", !0),
661
682
  $("tbody", null, [
662
683
  e.items.length && !e.spinning ? (b(!0), E(ae, { key: 0 }, Te(e.items, (u, c) => (b(), E("tr", {
663
684
  key: `rvc-table-row-${c}-${u.id}`
664
685
  }, [
665
- k(i.$slots, "items", {
686
+ O(i.$slots, "items", {
666
687
  item: u,
667
688
  index: c
668
689
  }, () => [
669
690
  (b(!0), E(ae, null, Te(u, (f, d) => {
670
691
  var v, p, m, g;
671
- return b(), E("td", Z({
692
+ return b(), E("td", G({
672
693
  key: `rvc-table-row-${c}-column-${d}-${u.id}`,
673
694
  ref_for: !0
674
695
  }, u.attrs, {
@@ -678,51 +699,51 @@ const Tn = /* @__PURE__ */ Object.assign({
678
699
  "rvc-text-right": ((g = a(d)) == null ? void 0 : g.align) === "right"
679
700
  },
680
701
  innerHTML: f
681
- }), null, 16, Xl);
702
+ }), null, 16, _l);
682
703
  }), 128))
683
704
  ])
684
- ]))), 128)) : !e.items.length && !e.spinning ? (b(), E("tr", Ql, [
705
+ ]))), 128)) : !e.items.length && !e.spinning ? (b(), E("tr", er, [
685
706
  $("td", {
686
707
  colspan: e.headers.length,
687
708
  class: "rvc-table-state"
688
709
  }, [
689
710
  $("p", null, F(e.noResultsText), 1)
690
- ], 8, Jl)
691
- ])) : (b(), E("tr", _l, [
711
+ ], 8, tr)
712
+ ])) : (b(), E("tr", nr, [
692
713
  $("td", {
693
714
  colspan: e.headers.length,
694
715
  class: "rvc-table-state"
695
716
  }, [
696
- k(i.$slots, "spinner", {
717
+ O(i.$slots, "spinner", {
697
718
  spinning: e.spinning,
698
719
  label: e.loadingText
699
720
  }, () => [
700
- $("div", tr, [
701
- e.spinning ? (b(), B(S(En), {
721
+ $("div", rr, [
722
+ e.spinning ? (b(), M(x(On), {
702
723
  key: 0,
703
724
  "aria-hidden": "true",
704
725
  class: "rvc-table-spinner"
705
- })) : H("", !0),
726
+ })) : j("", !0),
706
727
  pe(" " + F(e.loadingText), 1)
707
728
  ])
708
729
  ])
709
- ], 8, er)
730
+ ], 8, lr)
710
731
  ]))
711
732
  ])
712
733
  ], 2)
713
734
  ]),
714
- e.pagination ? k(i.$slots, "pagination", Ze(Z({ key: 0 }, e.pagination)), () => [
715
- D(Kl, {
735
+ e.pagination ? O(i.$slots, "pagination", Ge(G({ key: 0 }, e.pagination)), () => [
736
+ D(Gl, {
716
737
  pagination: e.pagination,
717
738
  "onPagination:change": s[0] || (s[0] = (u) => l("pagination:change", u)),
718
739
  "onPagination:perPage": s[1] || (s[1] = (u) => l("pagination:perPage", u))
719
740
  }, null, 8, ["pagination"])
720
- ]) : H("", !0)
741
+ ]) : j("", !0)
721
742
  ]));
722
743
  }
723
744
  };
724
- function nr(e, t, n) {
725
- let l = x(n == null ? void 0 : n.value), r = w(() => e.value !== void 0);
745
+ function or(e, t, n) {
746
+ let l = S(n == null ? void 0 : n.value), r = w(() => e.value !== void 0);
726
747
  return [w(() => r.value ? e.value : l.value), function(a) {
727
748
  return r.value || (l.value = a), t == null ? void 0 : t(a);
728
749
  }];
@@ -732,7 +753,7 @@ function Nt(e) {
732
753
  throw t;
733
754
  }));
734
755
  }
735
- function _e() {
756
+ function et() {
736
757
  let e = [], t = { addEventListener(n, l, r, a) {
737
758
  return n.addEventListener(l, r, a), t.add(() => n.removeEventListener(l, r, a));
738
759
  }, requestAnimationFrame(...n) {
@@ -758,7 +779,7 @@ function _e() {
758
779
  Object.assign(n.style, { [l]: a });
759
780
  });
760
781
  }, group(n) {
761
- let l = _e();
782
+ let l = et();
762
783
  return n(l), this.add(() => l.dispose());
763
784
  }, add(n) {
764
785
  return e.push(n), () => {
@@ -771,11 +792,11 @@ function _e() {
771
792
  return t;
772
793
  }
773
794
  var nn;
774
- let lr = Symbol("headlessui.useid"), rr = 0;
795
+ let ar = Symbol("headlessui.useid"), ir = 0;
775
796
  const ve = (nn = tn.useId) != null ? nn : function() {
776
- return tn.inject(lr, () => `${++rr}`)();
797
+ return tn.inject(ar, () => `${++ir}`)();
777
798
  };
778
- function O(e) {
799
+ function k(e) {
779
800
  var t;
780
801
  if (e == null || e.value == null) return null;
781
802
  let n = (t = e.value.$el) != null ? t : e.value;
@@ -789,8 +810,8 @@ function ge(e, t, ...n) {
789
810
  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(", ")}.`);
790
811
  throw Error.captureStackTrace && Error.captureStackTrace(l, ge), l;
791
812
  }
792
- var or = Object.defineProperty, ar = (e, t, n) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t, n) => (ar(e, typeof t != "symbol" ? t + "" : t, n), n);
793
- let ir = class {
813
+ var sr = Object.defineProperty, ur = (e, t, n) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ln = (e, t, n) => (ur(e, typeof t != "symbol" ? t + "" : t, n), n);
814
+ let cr = class {
794
815
  constructor() {
795
816
  ln(this, "current", this.detect()), ln(this, "currentId", 0);
796
817
  }
@@ -812,42 +833,42 @@ let ir = class {
812
833
  detect() {
813
834
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
814
835
  }
815
- }, et = new ir();
836
+ }, tt = new cr();
816
837
  function Ae(e) {
817
- if (et.isServer) return null;
838
+ if (tt.isServer) return null;
818
839
  if (e instanceof Node) return e.ownerDocument;
819
840
  if (e != null && e.hasOwnProperty("value")) {
820
- let t = O(e);
841
+ let t = k(e);
821
842
  if (t) return t.ownerDocument;
822
843
  }
823
844
  return document;
824
845
  }
825
- let kt = ["[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(",");
826
- 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 || {}), kn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(kn || {}), sr = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(sr || {});
827
- function On(e = document.body) {
828
- return e == null ? [] : Array.from(e.querySelectorAll(kt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
846
+ let Ot = ["[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(",");
847
+ 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 || {}), Ln = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Ln || {}), dr = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(dr || {});
848
+ function Cn(e = document.body) {
849
+ return e == null ? [] : Array.from(e.querySelectorAll(Ot)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
829
850
  }
830
851
  var jt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(jt || {});
831
852
  function Vt(e, t = 0) {
832
853
  var n;
833
854
  return e === ((n = Ae(e)) == null ? void 0 : n.body) ? !1 : ge(t, { 0() {
834
- return e.matches(kt);
855
+ return e.matches(Ot);
835
856
  }, 1() {
836
857
  let l = e;
837
858
  for (; l !== null; ) {
838
- if (l.matches(kt)) return !0;
859
+ if (l.matches(Ot)) return !0;
839
860
  l = l.parentElement;
840
861
  }
841
862
  return !1;
842
863
  } });
843
864
  }
844
- function Ln(e) {
865
+ function Pn(e) {
845
866
  let t = Ae(e);
846
- Oe(() => {
867
+ ke(() => {
847
868
  t && !Vt(t.activeElement, 0) && Le(e);
848
869
  });
849
870
  }
850
- var ur = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(ur || {});
871
+ var fr = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(fr || {});
851
872
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
852
873
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
853
874
  }, !0), document.addEventListener("click", (e) => {
@@ -856,12 +877,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
856
877
  function Le(e) {
857
878
  e == null || e.focus({ preventScroll: !0 });
858
879
  }
859
- let cr = ["textarea", "input"].join(",");
860
- function dr(e) {
880
+ let vr = ["textarea", "input"].join(",");
881
+ function pr(e) {
861
882
  var t, n;
862
- return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, cr)) != null ? n : !1;
883
+ return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, vr)) != null ? n : !1;
863
884
  }
864
- function Cn(e, t = (n) => n) {
885
+ function An(e, t = (n) => n) {
865
886
  return e.slice().sort((n, l) => {
866
887
  let r = t(n), a = t(l);
867
888
  if (r === null || a === null) return 0;
@@ -869,12 +890,12 @@ function Cn(e, t = (n) => n) {
869
890
  return o & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
870
891
  });
871
892
  }
872
- function fr(e, t) {
873
- return Ge(On(), t, { relativeTo: e });
893
+ function mr(e, t) {
894
+ return Ze(Cn(), t, { relativeTo: e });
874
895
  }
875
- function Ge(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] } = {}) {
896
+ function Ze(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] } = {}) {
876
897
  var a;
877
- let o = (a = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? a : document, i = Array.isArray(e) ? n ? Cn(e) : e : On(e);
898
+ let o = (a = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? a : document, i = Array.isArray(e) ? n ? An(e) : e : Cn(e);
878
899
  r.length > 0 && i.length > 1 && (i = i.filter((p) => !r.includes(p))), l = l ?? o.activeElement;
879
900
  let s = (() => {
880
901
  if (t & 5) return 1;
@@ -897,28 +918,28 @@ function Ge(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] }
897
918
  }
898
919
  v = i[p], v == null || v.focus(c), f += s;
899
920
  } while (v !== o.activeElement);
900
- return t & 6 && dr(v) && v.select(), 2;
921
+ return t & 6 && pr(v) && v.select(), 2;
901
922
  }
902
- function Pn() {
923
+ function Dn() {
903
924
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
904
925
  }
905
- function vr() {
926
+ function gr() {
906
927
  return /Android/gi.test(window.navigator.userAgent);
907
928
  }
908
- function pr() {
909
- return Pn() || vr();
929
+ function hr() {
930
+ return Dn() || gr();
910
931
  }
911
- function ot(e, t, n) {
912
- et.isServer || J((l) => {
932
+ function at(e, t, n) {
933
+ tt.isServer || J((l) => {
913
934
  document.addEventListener(e, t, n), l(() => document.removeEventListener(e, t, n));
914
935
  });
915
936
  }
916
- function An(e, t, n) {
917
- et.isServer || J((l) => {
937
+ function Rn(e, t, n) {
938
+ tt.isServer || J((l) => {
918
939
  window.addEventListener(e, t, n), l(() => window.removeEventListener(e, t, n));
919
940
  });
920
941
  }
921
- function Dn(e, t, n = w(() => !0)) {
942
+ function Fn(e, t, n = w(() => !0)) {
922
943
  function l(a, o) {
923
944
  if (!n.value || a.defaultPrevented) return;
924
945
  let i = o(a);
@@ -928,41 +949,41 @@ function Dn(e, t, n = w(() => !0)) {
928
949
  }(e);
929
950
  for (let u of s) {
930
951
  if (u === null) continue;
931
- let c = u instanceof HTMLElement ? u : O(u);
952
+ let c = u instanceof HTMLElement ? u : k(u);
932
953
  if (c != null && c.contains(i) || a.composed && a.composedPath().includes(c)) return;
933
954
  }
934
955
  return !Vt(i, jt.Loose) && i.tabIndex !== -1 && a.preventDefault(), t(a, i);
935
956
  }
936
- let r = x(null);
937
- ot("pointerdown", (a) => {
957
+ let r = S(null);
958
+ at("pointerdown", (a) => {
938
959
  var o, i;
939
960
  n.value && (r.value = ((i = (o = a.composedPath) == null ? void 0 : o.call(a)) == null ? void 0 : i[0]) || a.target);
940
- }, !0), ot("mousedown", (a) => {
961
+ }, !0), at("mousedown", (a) => {
941
962
  var o, i;
942
963
  n.value && (r.value = ((i = (o = a.composedPath) == null ? void 0 : o.call(a)) == null ? void 0 : i[0]) || a.target);
943
- }, !0), ot("click", (a) => {
944
- pr() || r.value && (l(a, () => r.value), r.value = null);
945
- }, !0), ot("touchend", (a) => l(a, () => a.target instanceof HTMLElement ? a.target : null), !0), An("blur", (a) => l(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
964
+ }, !0), at("click", (a) => {
965
+ hr() || r.value && (l(a, () => r.value), r.value = null);
966
+ }, !0), at("touchend", (a) => l(a, () => a.target instanceof HTMLElement ? a.target : null), !0), Rn("blur", (a) => l(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
946
967
  }
947
968
  function rn(e, t) {
948
969
  if (e) return e;
949
970
  let n = t ?? "button";
950
971
  if (typeof n == "string" && n.toLowerCase() === "button") return "button";
951
972
  }
952
- function Rn(e, t) {
953
- let n = x(rn(e.value.type, e.value.as));
973
+ function Mn(e, t) {
974
+ let n = S(rn(e.value.type, e.value.as));
954
975
  return z(() => {
955
976
  n.value = rn(e.value.type, e.value.as);
956
977
  }), J(() => {
957
978
  var l;
958
- n.value || O(t) && O(t) instanceof HTMLButtonElement && !((l = O(t)) != null && l.hasAttribute("type")) && (n.value = "button");
979
+ n.value || k(t) && k(t) instanceof HTMLButtonElement && !((l = k(t)) != null && l.hasAttribute("type")) && (n.value = "button");
959
980
  }), n;
960
981
  }
961
982
  function on(e) {
962
983
  return [e.screenX, e.screenY];
963
984
  }
964
- function mr() {
965
- let e = x([-1, -1]);
985
+ function yr() {
986
+ let e = S([-1, -1]);
966
987
  return { wasMoved(t) {
967
988
  let n = on(t);
968
989
  return e.value[0] === n[0] && e.value[1] === n[1] ? !1 : (e.value = n, !0);
@@ -970,7 +991,7 @@ function mr() {
970
991
  e.value = on(t);
971
992
  } };
972
993
  }
973
- function gr({ container: e, accept: t, walk: n, enabled: l }) {
994
+ function br({ container: e, accept: t, walk: n, enabled: l }) {
974
995
  J(() => {
975
996
  let r = e.value;
976
997
  if (!r || l !== void 0 && !l.value) return;
@@ -980,10 +1001,10 @@ function gr({ container: e, accept: t, walk: n, enabled: l }) {
980
1001
  for (; i.nextNode(); ) n(i.currentNode);
981
1002
  });
982
1003
  }
983
- var He = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(He || {}), ke = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ke || {});
1004
+ var He = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(He || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
984
1005
  function q({ visible: e = !0, features: t = 0, ourProps: n, theirProps: l, ...r }) {
985
1006
  var a;
986
- let o = Mn(l, n), i = Object.assign(r, { props: o });
1007
+ let o = In(l, n), i = Object.assign(r, { props: o });
987
1008
  if (e || t & 2 && o.static) return xt(i);
988
1009
  if (t & 1) {
989
1010
  let s = (a = o.unmount) == null || a ? 0 : 1;
@@ -1004,13 +1025,13 @@ function xt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
1004
1025
  f && (c["data-headlessui-state"] = d.join(" "));
1005
1026
  }
1006
1027
  if (i === "template") {
1007
- if (u = Fn(u ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
1028
+ if (u = Bn(u ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
1008
1029
  let [f, ...d] = u ?? [];
1009
- if (!yr(f) || d.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(s).concat(Object.keys(t)).map((m) => m.trim()).filter((m, g, h) => h.indexOf(m) === g).sort((m, g) => m.localeCompare(g)).map((m) => ` - ${m}`).join(`
1030
+ if (!$r(f) || d.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(s).concat(Object.keys(t)).map((m) => m.trim()).filter((m, g, h) => h.indexOf(m) === g).sort((m, g) => m.localeCompare(g)).map((m) => ` - ${m}`).join(`
1010
1031
  `), "", "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(`
1011
1032
  `)].join(`
1012
1033
  `));
1013
- let v = Mn((o = f.props) != null ? o : {}, s, c), p = ml(f, v, !0);
1034
+ let v = In((o = f.props) != null ? o : {}, s, c), p = hl(f, v, !0);
1014
1035
  for (let m in v) m.startsWith("on") && (p.props || (p.props = {}), p.props[m] = v[m]);
1015
1036
  return p;
1016
1037
  }
@@ -1018,10 +1039,10 @@ function xt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
1018
1039
  }
1019
1040
  return K(i, Object.assign({}, s, c), { default: () => u });
1020
1041
  }
1021
- function Fn(e) {
1022
- return e.flatMap((t) => t.type === ae ? Fn(t.children) : [t]);
1042
+ function Bn(e) {
1043
+ return e.flatMap((t) => t.type === ae ? Bn(t.children) : [t]);
1023
1044
  }
1024
- function Mn(...e) {
1045
+ function In(...e) {
1025
1046
  if (e.length === 0) return {};
1026
1047
  if (e.length === 1) return e[0];
1027
1048
  let t = {}, n = {};
@@ -1036,7 +1057,7 @@ function Mn(...e) {
1036
1057
  } });
1037
1058
  return t;
1038
1059
  }
1039
- function hr(e) {
1060
+ function wr(e) {
1040
1061
  let t = Object.assign({}, e);
1041
1062
  for (let n in t) t[n] === void 0 && delete t[n];
1042
1063
  return t;
@@ -1046,46 +1067,46 @@ function Ht(e, t = []) {
1046
1067
  for (let l of t) l in n && delete n[l];
1047
1068
  return n;
1048
1069
  }
1049
- function yr(e) {
1070
+ function $r(e) {
1050
1071
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1051
1072
  }
1052
- var Xe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Xe || {});
1073
+ var Qe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Qe || {});
1053
1074
  let ct = W({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1054
1075
  return () => {
1055
1076
  var l;
1056
1077
  let { features: r, ...a } = e, o = { "aria-hidden": (r & 2) === 2 ? !0 : (l = a["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" } } };
1057
1078
  return q({ ourProps: o, theirProps: a, slot: {}, attrs: n, slots: t, name: "Hidden" });
1058
1079
  };
1059
- } }), Bn = Symbol("Context");
1060
- var G = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(G || {});
1061
- function br() {
1080
+ } }), Nn = Symbol("Context");
1081
+ var Z = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Z || {});
1082
+ function xr() {
1062
1083
  return pt() !== null;
1063
1084
  }
1064
1085
  function pt() {
1065
- return _(Bn, null);
1086
+ return _(Nn, null);
1066
1087
  }
1067
- function In(e) {
1068
- se(Bn, e);
1088
+ function jn(e) {
1089
+ ue(Nn, e);
1069
1090
  }
1070
1091
  var U = ((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))(U || {});
1071
- function wr(e) {
1092
+ function Sr(e) {
1072
1093
  function t() {
1073
1094
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
1074
1095
  }
1075
1096
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
1076
1097
  }
1077
1098
  let Re = [];
1078
- wr(() => {
1099
+ Sr(() => {
1079
1100
  function e(t) {
1080
1101
  t.target instanceof HTMLElement && t.target !== document.body && Re[0] !== t.target && (Re.unshift(t.target), Re = Re.filter((n) => n != null && n.isConnected), Re.splice(10));
1081
1102
  }
1082
1103
  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 });
1083
1104
  });
1084
- function $r(e) {
1105
+ function Er(e) {
1085
1106
  throw new Error("Unexpected object: " + e);
1086
1107
  }
1087
1108
  var oe = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(oe || {});
1088
- function xr(e, t) {
1109
+ function Tr(e, t) {
1089
1110
  let n = t.resolveItems();
1090
1111
  if (n.length <= 0) return null;
1091
1112
  let l = t.resolveActiveIndex(), r = l ?? -1;
@@ -1114,10 +1135,10 @@ function xr(e, t) {
1114
1135
  case 5:
1115
1136
  return null;
1116
1137
  default:
1117
- $r(e);
1138
+ Er(e);
1118
1139
  }
1119
1140
  }
1120
- function Sr(e) {
1141
+ function Or(e) {
1121
1142
  var t, n;
1122
1143
  let l = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
1123
1144
  if (l) {
@@ -1128,48 +1149,48 @@ function Sr(e) {
1128
1149
  (n = l.requestSubmit) == null || n.call(l);
1129
1150
  }
1130
1151
  }
1131
- function Nn(e, t, n, l) {
1132
- et.isServer || J((r) => {
1152
+ function Vn(e, t, n, l) {
1153
+ tt.isServer || J((r) => {
1133
1154
  e = e ?? window, e.addEventListener(t, n, l), r(() => e.removeEventListener(t, n, l));
1134
1155
  });
1135
1156
  }
1136
1157
  var Ke = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ke || {});
1137
- function Er() {
1138
- let e = x(0);
1139
- return An("keydown", (t) => {
1158
+ function kr() {
1159
+ let e = S(0);
1160
+ return Rn("keydown", (t) => {
1140
1161
  t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
1141
1162
  }), e;
1142
1163
  }
1143
- function jn(e) {
1164
+ function Hn(e) {
1144
1165
  if (!e) return /* @__PURE__ */ new Set();
1145
1166
  if (typeof e == "function") return new Set(e());
1146
1167
  let t = /* @__PURE__ */ new Set();
1147
1168
  for (let n of e.value) {
1148
- let l = O(n);
1169
+ let l = k(n);
1149
1170
  l instanceof HTMLElement && t.add(l);
1150
1171
  }
1151
1172
  return t;
1152
1173
  }
1153
- var Vn = ((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))(Vn || {});
1154
- let ze = Object.assign(W({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: x(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
1155
- let r = x(null);
1174
+ 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 || {});
1175
+ let ze = Object.assign(W({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: S(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
1176
+ let r = S(null);
1156
1177
  l({ el: r, $el: r });
1157
- let a = w(() => Ae(r)), o = x(!1);
1158
- z(() => o.value = !0), ue(() => o.value = !1), kr({ ownerDocument: a }, w(() => o.value && !!(e.features & 16)));
1159
- let i = Or({ ownerDocument: a, container: r, initialFocus: w(() => e.initialFocus) }, w(() => o.value && !!(e.features & 2)));
1160
- Lr({ ownerDocument: a, container: r, containers: e.containers, previousActiveElement: i }, w(() => o.value && !!(e.features & 8)));
1161
- let s = Er();
1178
+ let a = w(() => Ae(r)), o = S(!1);
1179
+ z(() => o.value = !0), ce(() => o.value = !1), Cr({ ownerDocument: a }, w(() => o.value && !!(e.features & 16)));
1180
+ let i = Pr({ ownerDocument: a, container: r, initialFocus: w(() => e.initialFocus) }, w(() => o.value && !!(e.features & 2)));
1181
+ Ar({ ownerDocument: a, container: r, containers: e.containers, previousActiveElement: i }, w(() => o.value && !!(e.features & 8)));
1182
+ let s = kr();
1162
1183
  function u(v) {
1163
- let p = O(r);
1184
+ let p = k(r);
1164
1185
  p && ((m) => m())(() => {
1165
1186
  ge(s.value, { [Ke.Forwards]: () => {
1166
- Ge(p, we.First, { skipElements: [v.relatedTarget] });
1187
+ Ze(p, we.First, { skipElements: [v.relatedTarget] });
1167
1188
  }, [Ke.Backwards]: () => {
1168
- Ge(p, we.Last, { skipElements: [v.relatedTarget] });
1189
+ Ze(p, we.Last, { skipElements: [v.relatedTarget] });
1169
1190
  } });
1170
1191
  });
1171
1192
  }
1172
- let c = x(!1);
1193
+ let c = S(!1);
1173
1194
  function f(v) {
1174
1195
  v.key === "Tab" && (c.value = !0, requestAnimationFrame(() => {
1175
1196
  c.value = !1;
@@ -1177,18 +1198,18 @@ let ze = Object.assign(W({ name: "FocusTrap", props: { as: { type: [Object, Stri
1177
1198
  }
1178
1199
  function d(v) {
1179
1200
  if (!o.value) return;
1180
- let p = jn(e.containers);
1181
- O(r) instanceof HTMLElement && p.add(O(r));
1201
+ let p = Hn(e.containers);
1202
+ k(r) instanceof HTMLElement && p.add(k(r));
1182
1203
  let m = v.relatedTarget;
1183
- m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (Hn(p, m) || (c.value ? Ge(O(r), ge(s.value, { [Ke.Forwards]: () => we.Next, [Ke.Backwards]: () => we.Previous }) | we.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Le(v.target)));
1204
+ m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (Un(p, m) || (c.value ? Ze(k(r), ge(s.value, { [Ke.Forwards]: () => we.Next, [Ke.Backwards]: () => we.Previous }) | we.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Le(v.target)));
1184
1205
  }
1185
1206
  return () => {
1186
1207
  let v = {}, p = { ref: r, onKeydown: f, onFocusout: d }, { features: m, initialFocus: g, containers: h, ...y } = e;
1187
- return K(ae, [!!(m & 4) && K(ct, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Xe.Focusable }), q({ ourProps: p, theirProps: { ...t, ...y }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && K(ct, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Xe.Focusable })]);
1208
+ return K(ae, [!!(m & 4) && K(ct, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Qe.Focusable }), q({ ourProps: p, theirProps: { ...t, ...y }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && K(ct, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: Qe.Focusable })]);
1188
1209
  };
1189
- } }), { features: Vn });
1190
- function Tr(e) {
1191
- let t = x(Re.slice());
1210
+ } }), { features: Wn });
1211
+ function Lr(e) {
1212
+ let t = S(Re.slice());
1192
1213
  return me([e], ([n], [l]) => {
1193
1214
  l === !0 && n === !1 ? Nt(() => {
1194
1215
  t.value.splice(0);
@@ -1198,27 +1219,27 @@ function Tr(e) {
1198
1219
  return (n = t.value.find((l) => l != null && l.isConnected)) != null ? n : null;
1199
1220
  };
1200
1221
  }
1201
- function kr({ ownerDocument: e }, t) {
1202
- let n = Tr(t);
1222
+ function Cr({ ownerDocument: e }, t) {
1223
+ let n = Lr(t);
1203
1224
  z(() => {
1204
1225
  J(() => {
1205
1226
  var l, r;
1206
1227
  t.value || ((l = e.value) == null ? void 0 : l.activeElement) === ((r = e.value) == null ? void 0 : r.body) && Le(n());
1207
1228
  }, { flush: "post" });
1208
- }), ue(() => {
1229
+ }), ce(() => {
1209
1230
  t.value && Le(n());
1210
1231
  });
1211
1232
  }
1212
- function Or({ ownerDocument: e, container: t, initialFocus: n }, l) {
1213
- let r = x(null), a = x(!1);
1214
- return z(() => a.value = !0), ue(() => a.value = !1), z(() => {
1233
+ function Pr({ ownerDocument: e, container: t, initialFocus: n }, l) {
1234
+ let r = S(null), a = S(!1);
1235
+ return z(() => a.value = !0), ce(() => a.value = !1), z(() => {
1215
1236
  me([t, n, l], (o, i) => {
1216
1237
  if (o.every((u, c) => (i == null ? void 0 : i[c]) === u) || !l.value) return;
1217
- let s = O(t);
1238
+ let s = k(t);
1218
1239
  s && Nt(() => {
1219
1240
  var u, c;
1220
1241
  if (!a.value) return;
1221
- let f = O(n), d = (u = e.value) == null ? void 0 : u.activeElement;
1242
+ let f = k(n), d = (u = e.value) == null ? void 0 : u.activeElement;
1222
1243
  if (f) {
1223
1244
  if (f === d) {
1224
1245
  r.value = d;
@@ -1228,34 +1249,34 @@ function Or({ ownerDocument: e, container: t, initialFocus: n }, l) {
1228
1249
  r.value = d;
1229
1250
  return;
1230
1251
  }
1231
- f ? Le(f) : Ge(s, we.First | we.NoScroll) === kn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (c = e.value) == null ? void 0 : c.activeElement;
1252
+ f ? Le(f) : Ze(s, we.First | we.NoScroll) === Ln.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (c = e.value) == null ? void 0 : c.activeElement;
1232
1253
  });
1233
1254
  }, { immediate: !0, flush: "post" });
1234
1255
  }), r;
1235
1256
  }
1236
- function Lr({ ownerDocument: e, container: t, containers: n, previousActiveElement: l }, r) {
1257
+ function Ar({ ownerDocument: e, container: t, containers: n, previousActiveElement: l }, r) {
1237
1258
  var a;
1238
- Nn((a = e.value) == null ? void 0 : a.defaultView, "focus", (o) => {
1259
+ Vn((a = e.value) == null ? void 0 : a.defaultView, "focus", (o) => {
1239
1260
  if (!r.value) return;
1240
- let i = jn(n);
1241
- O(t) instanceof HTMLElement && i.add(O(t));
1261
+ let i = Hn(n);
1262
+ k(t) instanceof HTMLElement && i.add(k(t));
1242
1263
  let s = l.value;
1243
1264
  if (!s) return;
1244
1265
  let u = o.target;
1245
- u && u instanceof HTMLElement ? Hn(i, u) ? (l.value = u, Le(u)) : (o.preventDefault(), o.stopPropagation(), Le(s)) : Le(l.value);
1266
+ u && u instanceof HTMLElement ? Un(i, u) ? (l.value = u, Le(u)) : (o.preventDefault(), o.stopPropagation(), Le(s)) : Le(l.value);
1246
1267
  }, !0);
1247
1268
  }
1248
- function Hn(e, t) {
1269
+ function Un(e, t) {
1249
1270
  for (let n of e) if (n.contains(t)) return !0;
1250
1271
  return !1;
1251
1272
  }
1252
- function Cr(e) {
1273
+ function Dr(e) {
1253
1274
  let t = Ye(e.getSnapshot());
1254
- return ue(e.subscribe(() => {
1275
+ return ce(e.subscribe(() => {
1255
1276
  t.value = e.getSnapshot();
1256
1277
  })), t;
1257
1278
  }
1258
- function Pr(e, t) {
1279
+ function Rr(e, t) {
1259
1280
  let n = e(), l = /* @__PURE__ */ new Set();
1260
1281
  return { getSnapshot() {
1261
1282
  return n;
@@ -1266,7 +1287,7 @@ function Pr(e, t) {
1266
1287
  o && (n = o, l.forEach((i) => i()));
1267
1288
  } };
1268
1289
  }
1269
- function Ar() {
1290
+ function Fr() {
1270
1291
  let e;
1271
1292
  return { before({ doc: t }) {
1272
1293
  var n;
@@ -1277,15 +1298,15 @@ function Ar() {
1277
1298
  n.style(l, "paddingRight", `${a}px`);
1278
1299
  } };
1279
1300
  }
1280
- function Dr() {
1281
- return Pn() ? { before({ doc: e, d: t, meta: n }) {
1301
+ function Mr() {
1302
+ return Dn() ? { before({ doc: e, d: t, meta: n }) {
1282
1303
  function l(r) {
1283
1304
  return n.containers.flatMap((a) => a()).some((a) => a.contains(r));
1284
1305
  }
1285
1306
  t.microTask(() => {
1286
1307
  var r;
1287
1308
  if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
1288
- let i = _e();
1309
+ let i = et();
1289
1310
  i.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => i.dispose()));
1290
1311
  }
1291
1312
  let a = (r = window.scrollY) != null ? r : window.pageYOffset, o = null;
@@ -1320,25 +1341,25 @@ function Dr() {
1320
1341
  });
1321
1342
  } } : {};
1322
1343
  }
1323
- function Rr() {
1344
+ function Br() {
1324
1345
  return { before({ doc: e, d: t }) {
1325
1346
  t.style(e.documentElement, "overflow", "hidden");
1326
1347
  } };
1327
1348
  }
1328
- function Fr(e) {
1349
+ function Ir(e) {
1329
1350
  let t = {};
1330
1351
  for (let n of e) Object.assign(t, n(t));
1331
1352
  return t;
1332
1353
  }
1333
- let Fe = Pr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
1354
+ let Fe = Rr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
1334
1355
  var n;
1335
- let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: _e(), meta: /* @__PURE__ */ new Set() };
1356
+ let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: et(), meta: /* @__PURE__ */ new Set() };
1336
1357
  return l.count++, l.meta.add(t), this.set(e, l), this;
1337
1358
  }, POP(e, t) {
1338
1359
  let n = this.get(e);
1339
1360
  return n && (n.count--, n.meta.delete(t)), this;
1340
1361
  }, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
1341
- let l = { doc: e, d: t, meta: Fr(n) }, r = [Dr(), Ar(), Rr()];
1362
+ let l = { doc: e, d: t, meta: Ir(n) }, r = [Mr(), Fr(), Br()];
1342
1363
  r.forEach(({ before: a }) => a == null ? void 0 : a(l)), r.forEach(({ after: a }) => a == null ? void 0 : a(l));
1343
1364
  }, SCROLL_ALLOW({ d: e }) {
1344
1365
  e.dispose();
@@ -1353,8 +1374,8 @@ Fe.subscribe(() => {
1353
1374
  (r && !l || !r && l) && Fe.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Fe.dispatch("TEARDOWN", n);
1354
1375
  }
1355
1376
  });
1356
- function Mr(e, t, n) {
1357
- let l = Cr(Fe), r = w(() => {
1377
+ function Nr(e, t, n) {
1378
+ let l = Dr(Fe), r = w(() => {
1358
1379
  let a = e.value ? l.value.get(e.value) : void 0;
1359
1380
  return a ? a.count > 0 : !1;
1360
1381
  });
@@ -1368,11 +1389,11 @@ function Mr(e, t, n) {
1368
1389
  }, { immediate: !0 }), r;
1369
1390
  }
1370
1391
  let St = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
1371
- function an(e, t = x(!0)) {
1392
+ function an(e, t = S(!0)) {
1372
1393
  J((n) => {
1373
1394
  var l;
1374
1395
  if (!t.value) return;
1375
- let r = O(e);
1396
+ let r = k(e);
1376
1397
  if (!r) return;
1377
1398
  n(function() {
1378
1399
  var o;
@@ -1386,39 +1407,39 @@ function an(e, t = x(!0)) {
1386
1407
  qe.set(r, a + 1), a === 0 && (St.set(r, { "aria-hidden": r.getAttribute("aria-hidden"), inert: r.inert }), r.setAttribute("aria-hidden", "true"), r.inert = !0);
1387
1408
  });
1388
1409
  }
1389
- function Br({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1390
- let l = x(null), r = Ae(l);
1410
+ function jr({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1411
+ let l = S(null), r = Ae(l);
1391
1412
  function a() {
1392
1413
  var o, i, s;
1393
1414
  let u = [];
1394
1415
  for (let c of e) c !== null && (c instanceof HTMLElement ? u.push(c) : "value" in c && c.value instanceof HTMLElement && u.push(c.value));
1395
1416
  if (t != null && t.value) for (let c of t.value) u.push(c);
1396
- for (let c of (o = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? o : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(O(l)) || c.contains((s = (i = O(l)) == null ? void 0 : i.getRootNode()) == null ? void 0 : s.host) || u.some((f) => c.contains(f)) || u.push(c));
1417
+ for (let c of (o = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? o : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(k(l)) || c.contains((s = (i = k(l)) == null ? void 0 : i.getRootNode()) == null ? void 0 : s.host) || u.some((f) => c.contains(f)) || u.push(c));
1397
1418
  return u;
1398
1419
  }
1399
1420
  return { resolveContainers: a, contains(o) {
1400
1421
  return a().some((i) => i.contains(o));
1401
1422
  }, mainTreeNodeRef: l, MainTreeNode() {
1402
- return n != null ? null : K(ct, { features: Xe.Hidden, ref: l });
1423
+ return n != null ? null : K(ct, { features: Qe.Hidden, ref: l });
1403
1424
  } };
1404
1425
  }
1405
- let Wn = Symbol("ForcePortalRootContext");
1406
- function Ir() {
1407
- return _(Wn, !1);
1426
+ let zn = Symbol("ForcePortalRootContext");
1427
+ function Vr() {
1428
+ return _(zn, !1);
1408
1429
  }
1409
- let Ot = W({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
1410
- return se(Wn, e.force), () => {
1430
+ let kt = W({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
1431
+ return ue(zn, e.force), () => {
1411
1432
  let { force: l, ...r } = e;
1412
1433
  return q({ theirProps: r, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
1413
1434
  };
1414
- } }), Un = Symbol("StackContext");
1435
+ } }), qn = Symbol("StackContext");
1415
1436
  var Lt = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Lt || {});
1416
- function Nr() {
1417
- return _(Un, () => {
1437
+ function Hr() {
1438
+ return _(qn, () => {
1418
1439
  });
1419
1440
  }
1420
- function jr({ type: e, enabled: t, element: n, onUpdate: l }) {
1421
- let r = Nr();
1441
+ function Wr({ type: e, enabled: t, element: n, onUpdate: l }) {
1442
+ let r = Hr();
1422
1443
  function a(...o) {
1423
1444
  l == null || l(...o), r(...o);
1424
1445
  }
@@ -1426,35 +1447,35 @@ function jr({ type: e, enabled: t, element: n, onUpdate: l }) {
1426
1447
  me(t, (o, i) => {
1427
1448
  o ? a(0, e, n) : i === !0 && a(1, e, n);
1428
1449
  }, { immediate: !0, flush: "sync" });
1429
- }), ue(() => {
1450
+ }), ce(() => {
1430
1451
  t.value && a(1, e, n);
1431
- }), se(Un, a);
1452
+ }), ue(qn, a);
1432
1453
  }
1433
- let zn = Symbol("DescriptionContext");
1434
- function Vr() {
1435
- let e = _(zn, null);
1454
+ let Kn = Symbol("DescriptionContext");
1455
+ function Ur() {
1456
+ let e = _(Kn, null);
1436
1457
  if (e === null) throw new Error("Missing parent");
1437
1458
  return e;
1438
1459
  }
1439
- function qn({ slot: e = x({}), name: t = "Description", props: n = {} } = {}) {
1440
- let l = x([]);
1460
+ function Yn({ slot: e = S({}), name: t = "Description", props: n = {} } = {}) {
1461
+ let l = S([]);
1441
1462
  function r(a) {
1442
1463
  return l.value.push(a), () => {
1443
1464
  let o = l.value.indexOf(a);
1444
1465
  o !== -1 && l.value.splice(o, 1);
1445
1466
  };
1446
1467
  }
1447
- return se(zn, { register: r, slot: e, name: t, props: n }), w(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1468
+ return ue(Kn, { register: r, slot: e, name: t, props: n }), w(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1448
1469
  }
1449
1470
  W({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1450
1471
  var l;
1451
- let r = (l = e.id) != null ? l : `headlessui-description-${ve()}`, a = Vr();
1452
- return z(() => ue(a.register(r))), () => {
1453
- let { name: o = "Description", slot: i = x({}), props: s = {} } = a, { ...u } = e, c = { ...Object.entries(s).reduce((f, [d, v]) => Object.assign(f, { [d]: S(v) }), {}), id: r };
1472
+ let r = (l = e.id) != null ? l : `headlessui-description-${ve()}`, a = Ur();
1473
+ return z(() => ce(a.register(r))), () => {
1474
+ let { name: o = "Description", slot: i = S({}), props: s = {} } = a, { ...u } = e, c = { ...Object.entries(s).reduce((f, [d, v]) => Object.assign(f, { [d]: x(v) }), {}), id: r };
1454
1475
  return q({ ourProps: c, theirProps: u, slot: i.value, attrs: t, slots: n, name: o });
1455
1476
  };
1456
1477
  } });
1457
- function Hr(e) {
1478
+ function zr(e) {
1458
1479
  let t = Ae(e);
1459
1480
  if (!t) {
1460
1481
  if (e === null) return null;
@@ -1466,40 +1487,40 @@ function Hr(e) {
1466
1487
  return l.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(l);
1467
1488
  }
1468
1489
  const Ct = /* @__PURE__ */ new WeakMap();
1469
- function Wr(e) {
1490
+ function qr(e) {
1470
1491
  var t;
1471
1492
  return (t = Ct.get(e)) != null ? t : 0;
1472
1493
  }
1473
1494
  function sn(e, t) {
1474
- let n = t(Wr(e));
1495
+ let n = t(qr(e));
1475
1496
  return n <= 0 ? Ct.delete(e) : Ct.set(e, n), n;
1476
1497
  }
1477
- let Kn = W({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
1478
- let l = x(null), r = w(() => Ae(l)), a = Ir(), o = _(Yn, null), i = x(a === !0 || o == null ? Hr(l.value) : o.resolveTarget());
1498
+ let Zn = W({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
1499
+ let l = S(null), r = w(() => Ae(l)), a = Vr(), o = _(Gn, null), i = S(a === !0 || o == null ? zr(l.value) : o.resolveTarget());
1479
1500
  i.value && sn(i.value, (d) => d + 1);
1480
- let s = x(!1);
1501
+ let s = S(!1);
1481
1502
  z(() => {
1482
1503
  s.value = !0;
1483
1504
  }), J(() => {
1484
1505
  a || o != null && (i.value = o.resolveTarget());
1485
1506
  });
1486
- let u = _(Pt, null), c = !1, f = wn();
1507
+ let u = _(Pt, null), c = !1, f = xn();
1487
1508
  return me(l, () => {
1488
1509
  if (c || !u) return;
1489
- let d = O(l);
1490
- d && (ue(u.register(d), f), c = !0);
1491
- }), ue(() => {
1510
+ let d = k(l);
1511
+ d && (ce(u.register(d), f), c = !0);
1512
+ }), ce(() => {
1492
1513
  var d, v;
1493
1514
  let p = (d = r.value) == null ? void 0 : d.getElementById("headlessui-portal-root");
1494
1515
  !p || i.value !== p || sn(i.value, (m) => m - 1) || i.value.children.length > 0 || (v = i.value.parentElement) == null || v.removeChild(i.value);
1495
1516
  }), () => {
1496
1517
  if (!s.value || i.value === null) return null;
1497
1518
  let d = { ref: l, "data-headlessui-portal": "" };
1498
- return K(gl, { to: i.value }, q({ ourProps: d, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
1519
+ return K(yl, { to: i.value }, q({ ourProps: d, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
1499
1520
  };
1500
1521
  } }), Pt = Symbol("PortalParentContext");
1501
- function Ur() {
1502
- let e = _(Pt, null), t = x([]);
1522
+ function Kr() {
1523
+ let e = _(Pt, null), t = S([]);
1503
1524
  function n(a) {
1504
1525
  return t.value.push(a), e && e.register(a), () => l(a);
1505
1526
  }
@@ -1509,92 +1530,92 @@ function Ur() {
1509
1530
  }
1510
1531
  let r = { register: n, unregister: l, portals: t };
1511
1532
  return [t, W({ name: "PortalWrapper", setup(a, { slots: o }) {
1512
- return se(Pt, r), () => {
1533
+ return ue(Pt, r), () => {
1513
1534
  var i;
1514
1535
  return (i = o.default) == null ? void 0 : i.call(o);
1515
1536
  };
1516
1537
  } })];
1517
1538
  }
1518
- let Yn = Symbol("PortalGroupContext"), zr = W({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
1519
- let l = hl({ resolveTarget() {
1539
+ let Gn = Symbol("PortalGroupContext"), Yr = W({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
1540
+ let l = bl({ resolveTarget() {
1520
1541
  return e.target;
1521
1542
  } });
1522
- return se(Yn, l), () => {
1543
+ return ue(Gn, l), () => {
1523
1544
  let { target: r, ...a } = e;
1524
1545
  return q({ theirProps: a, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
1525
1546
  };
1526
1547
  } });
1527
- var qr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(qr || {});
1548
+ var Zr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Zr || {});
1528
1549
  let At = Symbol("DialogContext");
1529
- function tt(e) {
1550
+ function nt(e) {
1530
1551
  let t = _(At, null);
1531
1552
  if (t === null) {
1532
1553
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
1533
- throw Error.captureStackTrace && Error.captureStackTrace(n, tt), n;
1554
+ throw Error.captureStackTrace && Error.captureStackTrace(n, nt), n;
1534
1555
  }
1535
1556
  return t;
1536
1557
  }
1537
- let at = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Gn = W({ 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: at }, 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 }) {
1558
+ let it = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Xn = W({ 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: it }, 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 }) {
1538
1559
  var a, o;
1539
- let i = (a = e.id) != null ? a : `headlessui-dialog-${ve()}`, s = x(!1);
1560
+ let i = (a = e.id) != null ? a : `headlessui-dialog-${ve()}`, s = S(!1);
1540
1561
  z(() => {
1541
1562
  s.value = !0;
1542
1563
  });
1543
- let u = !1, c = w(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (u || (u = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), f = x(0), d = pt(), v = w(() => e.open === at && d !== null ? (d.value & G.Open) === G.Open : e.open), p = x(null), m = w(() => Ae(p));
1544
- if (r({ el: p, $el: p }), !(e.open !== at || d !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1545
- 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 === at ? void 0 : e.open}`);
1546
- let g = w(() => s.value && v.value ? 0 : 1), h = w(() => g.value === 0), y = w(() => f.value > 1), T = _(At, null) !== null, [A, C] = Ur(), { resolveContainers: M, mainTreeNodeRef: L, MainTreeNode: I } = Br({ portals: A, defaultContainers: [w(() => {
1564
+ let u = !1, c = w(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (u || (u = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), f = S(0), d = pt(), v = w(() => e.open === it && d !== null ? (d.value & Z.Open) === Z.Open : e.open), p = S(null), m = w(() => Ae(p));
1565
+ if (r({ el: p, $el: p }), !(e.open !== it || d !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1566
+ 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 === it ? void 0 : e.open}`);
1567
+ let g = w(() => s.value && v.value ? 0 : 1), h = w(() => g.value === 0), y = w(() => f.value > 1), T = _(At, null) !== null, [A, C] = Kr(), { resolveContainers: B, mainTreeNodeRef: L, MainTreeNode: N } = jr({ portals: A, defaultContainers: [w(() => {
1547
1568
  var R;
1548
1569
  return (R = be.panelRef.value) != null ? R : p.value;
1549
- })] }), X = w(() => y.value ? "parent" : "leaf"), j = w(() => d !== null ? (d.value & G.Closing) === G.Closing : !1), Q = w(() => T || j.value ? !1 : h.value), ee = w(() => {
1550
- var R, V, ce;
1551
- return (ce = Array.from((V = (R = m.value) == null ? void 0 : R.querySelectorAll("body > *")) != null ? V : []).find((de) => de.id === "headlessui-portal-root" ? !1 : de.contains(O(L)) && de instanceof HTMLElement)) != null ? ce : null;
1570
+ })] }), X = w(() => y.value ? "parent" : "leaf"), V = w(() => d !== null ? (d.value & Z.Closing) === Z.Closing : !1), Q = w(() => T || V.value ? !1 : h.value), ee = w(() => {
1571
+ var R, H, de;
1572
+ return (de = Array.from((H = (R = m.value) == null ? void 0 : R.querySelectorAll("body > *")) != null ? H : []).find((fe) => fe.id === "headlessui-portal-root" ? !1 : fe.contains(k(L)) && fe instanceof HTMLElement)) != null ? de : null;
1552
1573
  });
1553
1574
  an(ee, Q);
1554
1575
  let Y = w(() => y.value ? !0 : h.value), te = w(() => {
1555
- var R, V, ce;
1556
- return (ce = Array.from((V = (R = m.value) == null ? void 0 : R.querySelectorAll("[data-headlessui-portal]")) != null ? V : []).find((de) => de.contains(O(L)) && de instanceof HTMLElement)) != null ? ce : null;
1576
+ var R, H, de;
1577
+ return (de = Array.from((H = (R = m.value) == null ? void 0 : R.querySelectorAll("[data-headlessui-portal]")) != null ? H : []).find((fe) => fe.contains(k(L)) && fe instanceof HTMLElement)) != null ? de : null;
1557
1578
  });
1558
- an(te, Y), jr({ type: "Dialog", enabled: w(() => g.value === 0), element: p, onUpdate: (R, V) => {
1559
- if (V === "Dialog") return ge(R, { [Lt.Add]: () => f.value += 1, [Lt.Remove]: () => f.value -= 1 });
1579
+ an(te, Y), Wr({ type: "Dialog", enabled: w(() => g.value === 0), element: p, onUpdate: (R, H) => {
1580
+ if (H === "Dialog") return ge(R, { [Lt.Add]: () => f.value += 1, [Lt.Remove]: () => f.value -= 1 });
1560
1581
  } });
1561
- let ne = qn({ name: "DialogDescription", slot: w(() => ({ open: v.value })) }), le = x(null), be = { titleId: le, panelRef: x(null), dialogState: g, setTitleId(R) {
1582
+ let ne = Yn({ name: "DialogDescription", slot: w(() => ({ open: v.value })) }), le = S(null), be = { titleId: le, panelRef: S(null), dialogState: g, setTitleId(R) {
1562
1583
  le.value !== R && (le.value = R);
1563
1584
  }, close() {
1564
1585
  t("close", !1);
1565
1586
  } };
1566
- se(At, be);
1587
+ ue(At, be);
1567
1588
  let Jt = w(() => !(!h.value || y.value));
1568
- Dn(M, (R, V) => {
1569
- R.preventDefault(), be.close(), Oe(() => V == null ? void 0 : V.focus());
1589
+ Fn(B, (R, H) => {
1590
+ R.preventDefault(), be.close(), ke(() => H == null ? void 0 : H.focus());
1570
1591
  }, Jt);
1571
1592
  let _t = w(() => !(y.value || g.value !== 0));
1572
- Nn((o = m.value) == null ? void 0 : o.defaultView, "keydown", (R) => {
1593
+ Vn((o = m.value) == null ? void 0 : o.defaultView, "keydown", (R) => {
1573
1594
  _t.value && (R.defaultPrevented || R.key === U.Escape && (R.preventDefault(), R.stopPropagation(), be.close()));
1574
1595
  });
1575
- let en = w(() => !(j.value || g.value !== 0 || T));
1576
- return Mr(m, en, (R) => {
1577
- var V;
1578
- return { containers: [...(V = R.containers) != null ? V : [], M] };
1596
+ let en = w(() => !(V.value || g.value !== 0 || T));
1597
+ return Nr(m, en, (R) => {
1598
+ var H;
1599
+ return { containers: [...(H = R.containers) != null ? H : [], B] };
1579
1600
  }), J((R) => {
1580
1601
  if (g.value !== 0) return;
1581
- let V = O(p);
1582
- if (!V) return;
1583
- let ce = new ResizeObserver((de) => {
1584
- for (let $t of de) {
1585
- let rt = $t.target.getBoundingClientRect();
1586
- rt.x === 0 && rt.y === 0 && rt.width === 0 && rt.height === 0 && be.close();
1602
+ let H = k(p);
1603
+ if (!H) return;
1604
+ let de = new ResizeObserver((fe) => {
1605
+ for (let $t of fe) {
1606
+ let ot = $t.target.getBoundingClientRect();
1607
+ ot.x === 0 && ot.y === 0 && ot.width === 0 && ot.height === 0 && be.close();
1587
1608
  }
1588
1609
  });
1589
- ce.observe(V), R(() => ce.disconnect());
1610
+ de.observe(H), R(() => de.disconnect());
1590
1611
  }), () => {
1591
- let { open: R, initialFocus: V, ...ce } = e, de = { ...n, ref: p, id: i, role: c.value, "aria-modal": g.value === 0 ? !0 : void 0, "aria-labelledby": le.value, "aria-describedby": ne.value }, $t = { open: g.value === 0 };
1592
- return K(Ot, { force: !0 }, () => [K(Kn, () => K(zr, { target: p.value }, () => K(Ot, { force: !1 }, () => K(ze, { initialFocus: V, containers: M, features: h.value ? ge(X.value, { parent: ze.features.RestoreFocus, leaf: ze.features.All & ~ze.features.FocusLock }) : ze.features.None }, () => K(C, {}, () => q({ ourProps: de, theirProps: { ...ce, ...n }, slot: $t, attrs: n, slots: l, visible: g.value === 0, features: He.RenderStrategy | He.Static, name: "Dialog" })))))), K(I)]);
1612
+ let { open: R, initialFocus: H, ...de } = e, fe = { ...n, ref: p, id: i, role: c.value, "aria-modal": g.value === 0 ? !0 : void 0, "aria-labelledby": le.value, "aria-describedby": ne.value }, $t = { open: g.value === 0 };
1613
+ return K(kt, { force: !0 }, () => [K(Zn, () => K(Yr, { target: p.value }, () => K(kt, { force: !1 }, () => K(ze, { initialFocus: H, containers: B, features: h.value ? ge(X.value, { parent: ze.features.RestoreFocus, leaf: ze.features.All & ~ze.features.FocusLock }) : ze.features.None }, () => K(C, {}, () => q({ ourProps: fe, theirProps: { ...de, ...n }, slot: $t, attrs: n, slots: l, visible: g.value === 0, features: He.RenderStrategy | He.Static, name: "Dialog" })))))), K(N)]);
1593
1614
  };
1594
1615
  } });
1595
1616
  W({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1596
1617
  var l;
1597
- let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${ve()}`, a = tt("DialogOverlay");
1618
+ let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${ve()}`, a = nt("DialogOverlay");
1598
1619
  function o(i) {
1599
1620
  i.target === i.currentTarget && (i.preventDefault(), i.stopPropagation(), a.close());
1600
1621
  }
@@ -1605,17 +1626,17 @@ W({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1605
1626
  } });
1606
1627
  W({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
1607
1628
  var r;
1608
- let a = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${ve()}`, o = tt("DialogBackdrop"), i = x(null);
1629
+ let a = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${ve()}`, o = nt("DialogBackdrop"), i = S(null);
1609
1630
  return l({ el: i, $el: i }), z(() => {
1610
1631
  if (o.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1611
1632
  }), () => {
1612
1633
  let { ...s } = e, u = { id: a, ref: i, "aria-hidden": !0 };
1613
- return K(Ot, { force: !0 }, () => K(Kn, () => q({ ourProps: u, theirProps: { ...t, ...s }, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
1634
+ return K(kt, { force: !0 }, () => K(Zn, () => q({ ourProps: u, theirProps: { ...t, ...s }, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
1614
1635
  };
1615
1636
  } });
1616
- let Zn = W({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1637
+ let Qn = W({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1617
1638
  var r;
1618
- let a = (r = e.id) != null ? r : `headlessui-dialog-panel-${ve()}`, o = tt("DialogPanel");
1639
+ let a = (r = e.id) != null ? r : `headlessui-dialog-panel-${ve()}`, o = nt("DialogPanel");
1619
1640
  l({ el: o.panelRef, $el: o.panelRef });
1620
1641
  function i(s) {
1621
1642
  s.stopPropagation();
@@ -1624,11 +1645,11 @@ let Zn = W({ name: "DialogPanel", props: { as: { type: [Object, String], default
1624
1645
  let { ...s } = e, u = { id: a, ref: o.panelRef, onClick: i };
1625
1646
  return q({ ourProps: u, theirProps: s, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
1626
1647
  };
1627
- } }), Xn = W({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1648
+ } }), Jn = W({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1628
1649
  var l;
1629
- let r = (l = e.id) != null ? l : `headlessui-dialog-title-${ve()}`, a = tt("DialogTitle");
1650
+ let r = (l = e.id) != null ? l : `headlessui-dialog-title-${ve()}`, a = nt("DialogTitle");
1630
1651
  return z(() => {
1631
- a.setTitleId(r), ue(() => a.setTitleId(null));
1652
+ a.setTitleId(r), ce(() => a.setTitleId(null));
1632
1653
  }), () => {
1633
1654
  let { ...o } = e;
1634
1655
  return q({ ourProps: { id: r }, theirProps: o, slot: { open: a.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
@@ -1643,7 +1664,7 @@ function cn(e) {
1643
1664
  let o = a ? (n = r.innerText) != null ? n : "" : l;
1644
1665
  return un.test(o) && (o = o.replace(un, "")), o;
1645
1666
  }
1646
- function Kr(e) {
1667
+ function Gr(e) {
1647
1668
  let t = e.getAttribute("aria-label");
1648
1669
  if (typeof t == "string") return t.trim();
1649
1670
  let n = e.getAttribute("aria-labelledby");
@@ -1660,40 +1681,40 @@ function Kr(e) {
1660
1681
  }
1661
1682
  return cn(e).trim();
1662
1683
  }
1663
- function Yr(e) {
1664
- let t = x(""), n = x("");
1684
+ function Xr(e) {
1685
+ let t = S(""), n = S("");
1665
1686
  return () => {
1666
- let l = O(e);
1687
+ let l = k(e);
1667
1688
  if (!l) return "";
1668
1689
  let r = l.innerText;
1669
1690
  if (t.value === r) return n.value;
1670
- let a = Kr(l).trim().toLowerCase();
1691
+ let a = Gr(l).trim().toLowerCase();
1671
1692
  return t.value = r, n.value = a, a;
1672
1693
  };
1673
1694
  }
1674
- var Gr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Gr || {}), Zr = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Zr || {});
1675
- function Xr(e) {
1695
+ var Qr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Qr || {}), Jr = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Jr || {});
1696
+ function _r(e) {
1676
1697
  requestAnimationFrame(() => requestAnimationFrame(e));
1677
1698
  }
1678
- let Qn = Symbol("MenuContext");
1699
+ let _n = Symbol("MenuContext");
1679
1700
  function mt(e) {
1680
- let t = _(Qn, null);
1701
+ let t = _(_n, null);
1681
1702
  if (t === null) {
1682
1703
  let n = new Error(`<${e} /> is missing a parent <Menu /> component.`);
1683
1704
  throw Error.captureStackTrace && Error.captureStackTrace(n, mt), n;
1684
1705
  }
1685
1706
  return t;
1686
1707
  }
1687
- let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1688
- let l = x(1), r = x(null), a = x(null), o = x([]), i = x(""), s = x(null), u = x(1);
1708
+ let eo = W({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1709
+ let l = S(1), r = S(null), a = S(null), o = S([]), i = S(""), s = S(null), u = S(1);
1689
1710
  function c(d = (v) => v) {
1690
- let v = s.value !== null ? o.value[s.value] : null, p = Cn(d(o.value.slice()), (g) => O(g.dataRef.domRef)), m = v ? p.indexOf(v) : null;
1711
+ let v = s.value !== null ? o.value[s.value] : null, p = An(d(o.value.slice()), (g) => k(g.dataRef.domRef)), m = v ? p.indexOf(v) : null;
1691
1712
  return m === -1 && (m = null), { items: p, activeItemIndex: m };
1692
1713
  }
1693
1714
  let f = { menuState: l, buttonRef: r, itemsRef: a, items: o, searchQuery: i, activeItemIndex: s, activationTrigger: u, closeMenu: () => {
1694
1715
  l.value = 1, s.value = null;
1695
1716
  }, openMenu: () => l.value = 0, goToItem(d, v, p) {
1696
- let m = c(), g = xr(d === oe.Specific ? { focus: oe.Specific, id: v } : { focus: d }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.disabled });
1717
+ let m = c(), g = Tr(d === oe.Specific ? { focus: oe.Specific, id: v } : { focus: d }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.disabled });
1697
1718
  i.value = "", s.value = g, u.value = p ?? 1, o.value = m.items;
1698
1719
  }, search(d) {
1699
1720
  let v = i.value !== "" ? 0 : 1;
@@ -1712,14 +1733,14 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1712
1733
  });
1713
1734
  o.value = v.items, s.value = v.activeItemIndex, u.value = 1;
1714
1735
  } };
1715
- return Dn([r, a], (d, v) => {
1736
+ return Fn([r, a], (d, v) => {
1716
1737
  var p;
1717
- f.closeMenu(), Vt(v, jt.Loose) || (d.preventDefault(), (p = O(r)) == null || p.focus());
1718
- }, w(() => l.value === 0)), se(Qn, f), In(w(() => ge(l.value, { 0: G.Open, 1: G.Closed }))), () => {
1738
+ f.closeMenu(), Vt(v, jt.Loose) || (d.preventDefault(), (p = k(r)) == null || p.focus());
1739
+ }, w(() => l.value === 0)), ue(_n, f), jn(w(() => ge(l.value, { 0: Z.Open, 1: Z.Closed }))), () => {
1719
1740
  let d = { open: l.value === 0, close: f.closeMenu };
1720
1741
  return q({ ourProps: {}, theirProps: e, slot: d, slots: t, attrs: n, name: "Menu" });
1721
1742
  };
1722
- } }), Jr = W({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1743
+ } }), dn = W({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1723
1744
  var r;
1724
1745
  let a = (r = e.id) != null ? r : `headlessui-menu-button-${ve()}`, o = mt("MenuButton");
1725
1746
  l({ el: o.buttonRef, $el: o.buttonRef });
@@ -1728,15 +1749,15 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1728
1749
  case U.Space:
1729
1750
  case U.Enter:
1730
1751
  case U.ArrowDown:
1731
- f.preventDefault(), f.stopPropagation(), o.openMenu(), Oe(() => {
1752
+ f.preventDefault(), f.stopPropagation(), o.openMenu(), ke(() => {
1732
1753
  var d;
1733
- (d = O(o.itemsRef)) == null || d.focus({ preventScroll: !0 }), o.goToItem(oe.First);
1754
+ (d = k(o.itemsRef)) == null || d.focus({ preventScroll: !0 }), o.goToItem(oe.First);
1734
1755
  });
1735
1756
  break;
1736
1757
  case U.ArrowUp:
1737
- f.preventDefault(), f.stopPropagation(), o.openMenu(), Oe(() => {
1758
+ f.preventDefault(), f.stopPropagation(), o.openMenu(), ke(() => {
1738
1759
  var d;
1739
- (d = O(o.itemsRef)) == null || d.focus({ preventScroll: !0 }), o.goToItem(oe.Last);
1760
+ (d = k(o.itemsRef)) == null || d.focus({ preventScroll: !0 }), o.goToItem(oe.Last);
1740
1761
  });
1741
1762
  break;
1742
1763
  }
@@ -1749,24 +1770,24 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1749
1770
  }
1750
1771
  }
1751
1772
  function u(f) {
1752
- e.disabled || (o.menuState.value === 0 ? (o.closeMenu(), Oe(() => {
1773
+ e.disabled || (o.menuState.value === 0 ? (o.closeMenu(), ke(() => {
1753
1774
  var d;
1754
- return (d = O(o.buttonRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
1755
- })) : (f.preventDefault(), o.openMenu(), Xr(() => {
1775
+ return (d = k(o.buttonRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
1776
+ })) : (f.preventDefault(), o.openMenu(), _r(() => {
1756
1777
  var d;
1757
- return (d = O(o.itemsRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
1778
+ return (d = k(o.itemsRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
1758
1779
  })));
1759
1780
  }
1760
- let c = Rn(w(() => ({ as: e.as, type: t.type })), o.buttonRef);
1781
+ let c = Mn(w(() => ({ as: e.as, type: t.type })), o.buttonRef);
1761
1782
  return () => {
1762
1783
  var f;
1763
- let d = { open: o.menuState.value === 0 }, { ...v } = e, p = { ref: o.buttonRef, id: a, type: c.value, "aria-haspopup": "menu", "aria-controls": (f = O(o.itemsRef)) == null ? void 0 : f.id, "aria-expanded": o.menuState.value === 0, onKeydown: i, onKeyup: s, onClick: u };
1784
+ let d = { open: o.menuState.value === 0 }, { ...v } = e, p = { ref: o.buttonRef, id: a, type: c.value, "aria-haspopup": "menu", "aria-controls": (f = k(o.itemsRef)) == null ? void 0 : f.id, "aria-expanded": o.menuState.value === 0, onKeydown: i, onKeyup: s, onClick: u };
1764
1785
  return q({ ourProps: p, theirProps: v, slot: d, attrs: t, slots: n, name: "MenuButton" });
1765
1786
  };
1766
- } }), _r = W({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1787
+ } }), to = W({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
1767
1788
  var r;
1768
- let a = (r = e.id) != null ? r : `headlessui-menu-items-${ve()}`, o = mt("MenuItems"), i = x(null);
1769
- l({ el: o.itemsRef, $el: o.itemsRef }), gr({ container: w(() => O(o.itemsRef)), enabled: w(() => o.menuState.value === 0), accept(d) {
1789
+ let a = (r = e.id) != null ? r : `headlessui-menu-items-${ve()}`, o = mt("MenuItems"), i = S(null);
1790
+ l({ el: o.itemsRef, $el: o.itemsRef }), br({ container: w(() => k(o.itemsRef)), enabled: w(() => o.menuState.value === 0), accept(d) {
1770
1791
  return d.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1771
1792
  }, walk(d) {
1772
1793
  d.setAttribute("role", "none");
@@ -1779,9 +1800,9 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1779
1800
  case U.Enter:
1780
1801
  if (d.preventDefault(), d.stopPropagation(), o.activeItemIndex.value !== null) {
1781
1802
  let p = o.items.value[o.activeItemIndex.value];
1782
- (v = O(p.dataRef.domRef)) == null || v.click();
1803
+ (v = k(p.dataRef.domRef)) == null || v.click();
1783
1804
  }
1784
- o.closeMenu(), Ln(O(o.buttonRef));
1805
+ o.closeMenu(), Pn(k(o.buttonRef));
1785
1806
  break;
1786
1807
  case U.ArrowDown:
1787
1808
  return d.preventDefault(), d.stopPropagation(), o.goToItem(oe.Next);
@@ -1794,13 +1815,13 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1794
1815
  case U.PageDown:
1795
1816
  return d.preventDefault(), d.stopPropagation(), o.goToItem(oe.Last);
1796
1817
  case U.Escape:
1797
- d.preventDefault(), d.stopPropagation(), o.closeMenu(), Oe(() => {
1818
+ d.preventDefault(), d.stopPropagation(), o.closeMenu(), ke(() => {
1798
1819
  var p;
1799
- return (p = O(o.buttonRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
1820
+ return (p = k(o.buttonRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
1800
1821
  });
1801
1822
  break;
1802
1823
  case U.Tab:
1803
- d.preventDefault(), d.stopPropagation(), o.closeMenu(), Oe(() => fr(O(o.buttonRef), d.shiftKey ? we.Previous : we.Next));
1824
+ d.preventDefault(), d.stopPropagation(), o.closeMenu(), ke(() => mr(k(o.buttonRef), d.shiftKey ? we.Previous : we.Next));
1804
1825
  break;
1805
1826
  default:
1806
1827
  d.key.length === 1 && (o.search(d.key), i.value = setTimeout(() => o.clearSearch(), 350));
@@ -1814,34 +1835,34 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1814
1835
  break;
1815
1836
  }
1816
1837
  }
1817
- let c = pt(), f = w(() => c !== null ? (c.value & G.Open) === G.Open : o.menuState.value === 0);
1838
+ let c = pt(), f = w(() => c !== null ? (c.value & Z.Open) === Z.Open : o.menuState.value === 0);
1818
1839
  return () => {
1819
1840
  var d, v;
1820
- let p = { open: o.menuState.value === 0 }, { ...m } = e, g = { "aria-activedescendant": o.activeItemIndex.value === null || (d = o.items.value[o.activeItemIndex.value]) == null ? void 0 : d.id, "aria-labelledby": (v = O(o.buttonRef)) == null ? void 0 : v.id, id: a, onKeydown: s, onKeyup: u, role: "menu", tabIndex: 0, ref: o.itemsRef };
1841
+ let p = { open: o.menuState.value === 0 }, { ...m } = e, g = { "aria-activedescendant": o.activeItemIndex.value === null || (d = o.items.value[o.activeItemIndex.value]) == null ? void 0 : d.id, "aria-labelledby": (v = k(o.buttonRef)) == null ? void 0 : v.id, id: a, onKeydown: s, onKeyup: u, role: "menu", tabIndex: 0, ref: o.itemsRef };
1821
1842
  return q({ ourProps: g, theirProps: m, slot: p, attrs: t, slots: n, features: He.RenderStrategy | He.Static, visible: f.value, name: "MenuItems" });
1822
1843
  };
1823
- } }), eo = W({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: l }) {
1844
+ } }), fn = W({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: l }) {
1824
1845
  var r;
1825
- let a = (r = e.id) != null ? r : `headlessui-menu-item-${ve()}`, o = mt("MenuItem"), i = x(null);
1846
+ let a = (r = e.id) != null ? r : `headlessui-menu-item-${ve()}`, o = mt("MenuItem"), i = S(null);
1826
1847
  l({ el: i, $el: i });
1827
- let s = w(() => o.activeItemIndex.value !== null ? o.items.value[o.activeItemIndex.value].id === a : !1), u = Yr(i), c = w(() => ({ disabled: e.disabled, get textValue() {
1848
+ let s = w(() => o.activeItemIndex.value !== null ? o.items.value[o.activeItemIndex.value].id === a : !1), u = Xr(i), c = w(() => ({ disabled: e.disabled, get textValue() {
1828
1849
  return u();
1829
1850
  }, domRef: i }));
1830
- z(() => o.registerItem(a, c)), ue(() => o.unregisterItem(a)), J(() => {
1831
- o.menuState.value === 0 && s.value && o.activationTrigger.value !== 0 && Oe(() => {
1851
+ z(() => o.registerItem(a, c)), ce(() => o.unregisterItem(a)), J(() => {
1852
+ o.menuState.value === 0 && s.value && o.activationTrigger.value !== 0 && ke(() => {
1832
1853
  var h, y;
1833
- return (y = (h = O(i)) == null ? void 0 : h.scrollIntoView) == null ? void 0 : y.call(h, { block: "nearest" });
1854
+ return (y = (h = k(i)) == null ? void 0 : h.scrollIntoView) == null ? void 0 : y.call(h, { block: "nearest" });
1834
1855
  });
1835
1856
  });
1836
1857
  function f(h) {
1837
1858
  if (e.disabled) return h.preventDefault();
1838
- o.closeMenu(), Ln(O(o.buttonRef));
1859
+ o.closeMenu(), Pn(k(o.buttonRef));
1839
1860
  }
1840
1861
  function d() {
1841
1862
  if (e.disabled) return o.goToItem(oe.Nothing);
1842
1863
  o.goToItem(oe.Specific, a);
1843
1864
  }
1844
- let v = mr();
1865
+ let v = yr();
1845
1866
  function p(h) {
1846
1867
  v.update(h);
1847
1868
  }
@@ -1855,60 +1876,60 @@ let Qr = W({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1855
1876
  let { disabled: h, ...y } = e, T = { active: s.value, disabled: h, close: o.closeMenu };
1856
1877
  return q({ ourProps: { id: a, ref: i, role: "menuitem", tabIndex: h === !0 ? void 0 : -1, "aria-disabled": h === !0 ? !0 : void 0, onClick: f, onFocus: d, onPointerenter: p, onMouseenter: p, onPointermove: m, onMousemove: m, onPointerleave: g, onMouseleave: g }, theirProps: { ...n, ...y }, slot: T, attrs: n, slots: t, name: "MenuItem" });
1857
1878
  };
1858
- } }), Jn = Symbol("LabelContext");
1859
- function _n() {
1860
- let e = _(Jn, null);
1879
+ } }), el = Symbol("LabelContext");
1880
+ function tl() {
1881
+ let e = _(el, null);
1861
1882
  if (e === null) {
1862
1883
  let t = new Error("You used a <Label /> component, but it is not inside a parent.");
1863
- throw Error.captureStackTrace && Error.captureStackTrace(t, _n), t;
1884
+ throw Error.captureStackTrace && Error.captureStackTrace(t, tl), t;
1864
1885
  }
1865
1886
  return e;
1866
1887
  }
1867
- function to({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
1868
- let l = x([]);
1888
+ function no({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
1889
+ let l = S([]);
1869
1890
  function r(a) {
1870
1891
  return l.value.push(a), () => {
1871
1892
  let o = l.value.indexOf(a);
1872
1893
  o !== -1 && l.value.splice(o, 1);
1873
1894
  };
1874
1895
  }
1875
- return se(Jn, { register: r, slot: e, name: t, props: n }), w(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1896
+ return ue(el, { register: r, slot: e, name: t, props: n }), w(() => l.value.length > 0 ? l.value.join(" ") : void 0);
1876
1897
  }
1877
- let no = W({ 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 }) {
1898
+ let lo = W({ 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 }) {
1878
1899
  var l;
1879
- let r = (l = e.id) != null ? l : `headlessui-label-${ve()}`, a = _n();
1880
- return z(() => ue(a.register(r))), () => {
1881
- let { name: o = "Label", slot: i = {}, props: s = {} } = a, { passive: u, ...c } = e, f = { ...Object.entries(s).reduce((d, [v, p]) => Object.assign(d, { [v]: S(p) }), {}), id: r };
1900
+ let r = (l = e.id) != null ? l : `headlessui-label-${ve()}`, a = tl();
1901
+ return z(() => ce(a.register(r))), () => {
1902
+ let { name: o = "Label", slot: i = {}, props: s = {} } = a, { passive: u, ...c } = e, f = { ...Object.entries(s).reduce((d, [v, p]) => Object.assign(d, { [v]: x(p) }), {}), id: r };
1882
1903
  return u && (delete f.onClick, delete f.htmlFor, delete c.onClick), q({ ourProps: f, theirProps: c, slot: i, attrs: n, slots: t, name: o });
1883
1904
  };
1884
- } }), el = Symbol("GroupContext"), lo = W({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1885
- let l = x(null), r = to({ name: "SwitchLabel", props: { htmlFor: w(() => {
1905
+ } }), nl = Symbol("GroupContext"), ro = W({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
1906
+ let l = S(null), r = no({ name: "SwitchLabel", props: { htmlFor: w(() => {
1886
1907
  var o;
1887
1908
  return (o = l.value) == null ? void 0 : o.id;
1888
1909
  }), onClick(o) {
1889
1910
  l.value && (o.currentTarget.tagName === "LABEL" && o.preventDefault(), l.value.click(), l.value.focus({ preventScroll: !0 }));
1890
- } } }), a = qn({ name: "SwitchDescription" });
1891
- return se(el, { switchRef: l, labelledby: r, describedby: a }), () => q({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
1892
- } }), ro = W({ 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 }) {
1911
+ } } }), a = Yn({ name: "SwitchDescription" });
1912
+ return ue(nl, { switchRef: l, labelledby: r, describedby: a }), () => q({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
1913
+ } }), oo = W({ 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 }) {
1893
1914
  var a;
1894
- let o = (a = e.id) != null ? a : `headlessui-switch-${ve()}`, i = _(el, null), [s, u] = nr(w(() => e.modelValue), (y) => t("update:modelValue", y), w(() => e.defaultChecked));
1915
+ let o = (a = e.id) != null ? a : `headlessui-switch-${ve()}`, i = _(nl, null), [s, u] = or(w(() => e.modelValue), (y) => t("update:modelValue", y), w(() => e.defaultChecked));
1895
1916
  function c() {
1896
1917
  u(!s.value);
1897
1918
  }
1898
- let f = x(null), d = i === null ? f : i.switchRef, v = Rn(w(() => ({ as: e.as, type: n.type })), d);
1919
+ let f = S(null), d = i === null ? f : i.switchRef, v = Mn(w(() => ({ as: e.as, type: n.type })), d);
1899
1920
  r({ el: d, $el: d });
1900
1921
  function p(y) {
1901
1922
  y.preventDefault(), c();
1902
1923
  }
1903
1924
  function m(y) {
1904
- y.key === U.Space ? (y.preventDefault(), c()) : y.key === U.Enter && Sr(y.currentTarget);
1925
+ y.key === U.Space ? (y.preventDefault(), c()) : y.key === U.Enter && Or(y.currentTarget);
1905
1926
  }
1906
1927
  function g(y) {
1907
1928
  y.preventDefault();
1908
1929
  }
1909
1930
  let h = w(() => {
1910
1931
  var y, T;
1911
- return (T = (y = O(d)) == null ? void 0 : y.closest) == null ? void 0 : T.call(y, "form");
1932
+ return (T = (y = k(d)) == null ? void 0 : y.closest) == null ? void 0 : T.call(y, "form");
1912
1933
  });
1913
1934
  return z(() => {
1914
1935
  me([h], () => {
@@ -1922,11 +1943,11 @@ let no = W({ name: "Label", props: { as: { type: [Object, String], default: "lab
1922
1943
  };
1923
1944
  }, { immediate: !0 });
1924
1945
  }), () => {
1925
- let { name: y, value: T, form: A, tabIndex: C, ...M } = e, L = { checked: s.value }, I = { id: o, ref: d, role: "switch", type: v.value, tabIndex: C === -1 ? 0 : C, "aria-checked": s.value, "aria-labelledby": i == null ? void 0 : i.labelledby.value, "aria-describedby": i == null ? void 0 : i.describedby.value, onClick: p, onKeyup: m, onKeypress: g };
1926
- return K(ae, [y != null && s.value != null ? K(ct, hr({ features: Xe.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: s.value, form: A, disabled: M.disabled, name: y, value: T })) : null, q({ ourProps: I, theirProps: { ...n, ...Ht(M, ["modelValue", "defaultChecked"]) }, slot: L, attrs: n, slots: l, name: "Switch" })]);
1946
+ let { name: y, value: T, form: A, tabIndex: C, ...B } = e, L = { checked: s.value }, N = { id: o, ref: d, role: "switch", type: v.value, tabIndex: C === -1 ? 0 : C, "aria-checked": s.value, "aria-labelledby": i == null ? void 0 : i.labelledby.value, "aria-describedby": i == null ? void 0 : i.describedby.value, onClick: p, onKeyup: m, onKeypress: g };
1947
+ return K(ae, [y != null && s.value != null ? K(ct, wr({ features: Qe.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: s.value, form: A, disabled: B.disabled, name: y, value: T })) : null, q({ ourProps: N, theirProps: { ...n, ...Ht(B, ["modelValue", "defaultChecked"]) }, slot: L, attrs: n, slots: l, name: "Switch" })]);
1927
1948
  };
1928
- } }), oo = no;
1929
- function ao(e) {
1949
+ } }), ao = lo;
1950
+ function io(e) {
1930
1951
  let t = { called: !1 };
1931
1952
  return (...n) => {
1932
1953
  if (!t.called) return t.called = !0, e(...n);
@@ -1935,12 +1956,12 @@ function ao(e) {
1935
1956
  function Et(e, ...t) {
1936
1957
  e && t.length > 0 && e.classList.add(...t);
1937
1958
  }
1938
- function it(e, ...t) {
1959
+ function st(e, ...t) {
1939
1960
  e && t.length > 0 && e.classList.remove(...t);
1940
1961
  }
1941
1962
  var Dt = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Dt || {});
1942
- function io(e, t) {
1943
- let n = _e();
1963
+ function so(e, t) {
1964
+ let n = et();
1944
1965
  if (!e) return n.dispose;
1945
1966
  let { transitionDuration: l, transitionDelay: r } = getComputedStyle(e), [a, o] = [l, r].map((i) => {
1946
1967
  let [s = 0] = i.split(",").filter(Boolean).map((u) => u.includes("ms") ? parseFloat(u) : parseFloat(u) * 1e3).sort((u, c) => c - u);
@@ -1948,27 +1969,27 @@ function io(e, t) {
1948
1969
  });
1949
1970
  return a !== 0 ? n.setTimeout(() => t("finished"), a + o) : t("finished"), n.add(() => t("cancelled")), n.dispose;
1950
1971
  }
1951
- function dn(e, t, n, l, r, a) {
1952
- let o = _e(), i = a !== void 0 ? ao(a) : () => {
1972
+ function vn(e, t, n, l, r, a) {
1973
+ let o = et(), i = a !== void 0 ? io(a) : () => {
1953
1974
  };
1954
- return it(e, ...r), Et(e, ...t, ...n), o.nextFrame(() => {
1955
- it(e, ...n), Et(e, ...l), o.add(io(e, (s) => (it(e, ...l, ...t), Et(e, ...r), i(s))));
1956
- }), o.add(() => it(e, ...t, ...n, ...l, ...r)), o.add(() => i("cancelled")), o.dispose;
1975
+ return st(e, ...r), Et(e, ...t, ...n), o.nextFrame(() => {
1976
+ st(e, ...n), Et(e, ...l), o.add(so(e, (s) => (st(e, ...l, ...t), Et(e, ...r), i(s))));
1977
+ }), o.add(() => st(e, ...t, ...n, ...l, ...r)), o.add(() => i("cancelled")), o.dispose;
1957
1978
  }
1958
1979
  function De(e = "") {
1959
1980
  return e.split(/\s+/).filter((t) => t.length > 1);
1960
1981
  }
1961
1982
  let Wt = Symbol("TransitionContext");
1962
- var so = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(so || {});
1963
- function uo() {
1983
+ var uo = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(uo || {});
1984
+ function co() {
1964
1985
  return _(Wt, null) !== null;
1965
1986
  }
1966
- function co() {
1987
+ function fo() {
1967
1988
  let e = _(Wt, null);
1968
1989
  if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1969
1990
  return e;
1970
1991
  }
1971
- function fo() {
1992
+ function vo() {
1972
1993
  let e = _(Ut, null);
1973
1994
  if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1974
1995
  return e;
@@ -1977,48 +1998,48 @@ let Ut = Symbol("NestingContext");
1977
1998
  function gt(e) {
1978
1999
  return "children" in e ? gt(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
1979
2000
  }
1980
- function tl(e) {
1981
- let t = x([]), n = x(!1);
1982
- z(() => n.value = !0), ue(() => n.value = !1);
1983
- function l(a, o = ke.Hidden) {
2001
+ function ll(e) {
2002
+ let t = S([]), n = S(!1);
2003
+ z(() => n.value = !0), ce(() => n.value = !1);
2004
+ function l(a, o = Oe.Hidden) {
1984
2005
  let i = t.value.findIndex(({ id: s }) => s === a);
1985
- i !== -1 && (ge(o, { [ke.Unmount]() {
2006
+ i !== -1 && (ge(o, { [Oe.Unmount]() {
1986
2007
  t.value.splice(i, 1);
1987
- }, [ke.Hidden]() {
2008
+ }, [Oe.Hidden]() {
1988
2009
  t.value[i].state = "hidden";
1989
2010
  } }), !gt(t) && n.value && (e == null || e()));
1990
2011
  }
1991
2012
  function r(a) {
1992
2013
  let o = t.value.find(({ id: i }) => i === a);
1993
- return o ? o.state !== "visible" && (o.state = "visible") : t.value.push({ id: a, state: "visible" }), () => l(a, ke.Unmount);
2014
+ return o ? o.state !== "visible" && (o.state = "visible") : t.value.push({ id: a, state: "visible" }), () => l(a, Oe.Unmount);
1994
2015
  }
1995
2016
  return { children: t, register: r, unregister: l };
1996
2017
  }
1997
- let nl = He.RenderStrategy, Qe = W({ 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 }) {
1998
- let a = x(0);
2018
+ let rl = He.RenderStrategy, Je = W({ 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 }) {
2019
+ let a = S(0);
1999
2020
  function o() {
2000
- a.value |= G.Opening, t("beforeEnter");
2021
+ a.value |= Z.Opening, t("beforeEnter");
2001
2022
  }
2002
2023
  function i() {
2003
- a.value &= ~G.Opening, t("afterEnter");
2024
+ a.value &= ~Z.Opening, t("afterEnter");
2004
2025
  }
2005
2026
  function s() {
2006
- a.value |= G.Closing, t("beforeLeave");
2027
+ a.value |= Z.Closing, t("beforeLeave");
2007
2028
  }
2008
2029
  function u() {
2009
- a.value &= ~G.Closing, t("afterLeave");
2030
+ a.value &= ~Z.Closing, t("afterLeave");
2010
2031
  }
2011
- if (!uo() && br()) return () => K(ht, { ...e, onBeforeEnter: o, onAfterEnter: i, onBeforeLeave: s, onAfterLeave: u }, l);
2012
- let c = x(null), f = w(() => e.unmount ? ke.Unmount : ke.Hidden);
2032
+ if (!co() && xr()) return () => K(ht, { ...e, onBeforeEnter: o, onAfterEnter: i, onBeforeLeave: s, onAfterLeave: u }, l);
2033
+ let c = S(null), f = w(() => e.unmount ? Oe.Unmount : Oe.Hidden);
2013
2034
  r({ el: c, $el: c });
2014
- let { show: d, appear: v } = co(), { register: p, unregister: m } = fo(), g = x(d.value ? "visible" : "hidden"), h = { value: !0 }, y = ve(), T = { value: !1 }, A = tl(() => {
2035
+ let { show: d, appear: v } = fo(), { register: p, unregister: m } = vo(), g = S(d.value ? "visible" : "hidden"), h = { value: !0 }, y = ve(), T = { value: !1 }, A = ll(() => {
2015
2036
  !T.value && g.value !== "hidden" && (g.value = "hidden", m(y), u());
2016
2037
  });
2017
2038
  z(() => {
2018
2039
  let Y = p(y);
2019
- ue(Y);
2040
+ ce(Y);
2020
2041
  }), J(() => {
2021
- if (f.value === ke.Hidden && y) {
2042
+ if (f.value === Oe.Hidden && y) {
2022
2043
  if (d.value && g.value !== "visible") {
2023
2044
  g.value = "visible";
2024
2045
  return;
@@ -2026,20 +2047,20 @@ let nl = He.RenderStrategy, Qe = W({ props: { as: { type: [Object, String], defa
2026
2047
  ge(g.value, { hidden: () => m(y), visible: () => p(y) });
2027
2048
  }
2028
2049
  });
2029
- let C = De(e.enter), M = De(e.enterFrom), L = De(e.enterTo), I = De(e.entered), X = De(e.leave), j = De(e.leaveFrom), Q = De(e.leaveTo);
2050
+ let C = De(e.enter), B = De(e.enterFrom), L = De(e.enterTo), N = De(e.entered), X = De(e.leave), V = De(e.leaveFrom), Q = De(e.leaveTo);
2030
2051
  z(() => {
2031
2052
  J(() => {
2032
2053
  if (g.value === "visible") {
2033
- let Y = O(c);
2054
+ let Y = k(c);
2034
2055
  if (Y instanceof Comment && Y.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2035
2056
  }
2036
2057
  });
2037
2058
  });
2038
2059
  function ee(Y) {
2039
- let te = h.value && !v.value, ne = O(c);
2040
- !ne || !(ne instanceof HTMLElement) || te || (T.value = !0, d.value && o(), d.value || s(), Y(d.value ? dn(ne, C, M, L, I, (le) => {
2060
+ let te = h.value && !v.value, ne = k(c);
2061
+ !ne || !(ne instanceof HTMLElement) || te || (T.value = !0, d.value && o(), d.value || s(), Y(d.value ? vn(ne, C, B, L, N, (le) => {
2041
2062
  T.value = !1, le === Dt.Finished && i();
2042
- }) : dn(ne, X, j, Q, I, (le) => {
2063
+ }) : vn(ne, X, V, Q, N, (le) => {
2043
2064
  T.value = !1, le === Dt.Finished && (gt(A) || (g.value = "hidden", m(y), u()));
2044
2065
  })));
2045
2066
  }
@@ -2047,29 +2068,29 @@ let nl = He.RenderStrategy, Qe = W({ props: { as: { type: [Object, String], defa
2047
2068
  me([d], (Y, te, ne) => {
2048
2069
  ee(ne), h.value = !1;
2049
2070
  }, { immediate: !0 });
2050
- }), se(Ut, A), In(w(() => ge(g.value, { visible: G.Open, hidden: G.Closed }) | a.value)), () => {
2051
- let { appear: Y, show: te, enter: ne, enterFrom: le, enterTo: be, entered: Jt, leave: _t, leaveFrom: en, leaveTo: R, ...V } = e, ce = { ref: c }, de = { ...V, ...v.value && d.value && et.isServer ? { class: N([n.class, V.class, ...C, ...M]) } : {} };
2052
- return q({ theirProps: de, ourProps: ce, slot: {}, slots: l, attrs: n, features: nl, visible: g.value === "visible", name: "TransitionChild" });
2071
+ }), ue(Ut, A), jn(w(() => ge(g.value, { visible: Z.Open, hidden: Z.Closed }) | a.value)), () => {
2072
+ let { appear: Y, show: te, enter: ne, enterFrom: le, enterTo: be, entered: Jt, leave: _t, leaveFrom: en, leaveTo: R, ...H } = e, de = { ref: c }, fe = { ...H, ...v.value && d.value && tt.isServer ? { class: I([n.class, H.class, ...C, ...B]) } : {} };
2073
+ return q({ theirProps: fe, ourProps: de, slot: {}, slots: l, attrs: n, features: rl, visible: g.value === "visible", name: "TransitionChild" });
2053
2074
  };
2054
- } }), vo = Qe, ht = W({ 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 }) {
2055
- let r = pt(), a = w(() => e.show === null && r !== null ? (r.value & G.Open) === G.Open : e.show);
2075
+ } }), po = Je, ht = W({ 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 }) {
2076
+ let r = pt(), a = w(() => e.show === null && r !== null ? (r.value & Z.Open) === Z.Open : e.show);
2056
2077
  J(() => {
2057
2078
  if (![!0, !1].includes(a.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
2058
2079
  });
2059
- let o = x(a.value ? "visible" : "hidden"), i = tl(() => {
2080
+ let o = S(a.value ? "visible" : "hidden"), i = ll(() => {
2060
2081
  o.value = "hidden";
2061
- }), s = x(!0), u = { show: a, appear: w(() => e.appear || !s.value) };
2082
+ }), s = S(!0), u = { show: a, appear: w(() => e.appear || !s.value) };
2062
2083
  return z(() => {
2063
2084
  J(() => {
2064
2085
  s.value = !1, a.value ? o.value = "visible" : gt(i) || (o.value = "hidden");
2065
2086
  });
2066
- }), se(Ut, i), se(Wt, u), () => {
2087
+ }), ue(Ut, i), ue(Wt, u), () => {
2067
2088
  let c = Ht(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), f = { unmount: e.unmount };
2068
- return q({ ourProps: { ...f, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [K(vo, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...f, ...c }, l.default)] }, attrs: {}, features: nl, visible: o.value === "visible", name: "Transition" });
2089
+ return q({ ourProps: { ...f, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [K(po, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...f, ...c }, l.default)] }, attrs: {}, features: rl, visible: o.value === "visible", name: "Transition" });
2069
2090
  };
2070
2091
  } });
2071
- function ll(e) {
2072
- const t = x(null), n = x(!1), l = w(() => e.as === "form"), r = w(() => `${e.id}-title`), a = w(() => `${e.id}-content`), o = w(() => {
2092
+ function ol(e) {
2093
+ const t = S(null), n = S(!1), l = w(() => e.as === "form"), r = w(() => `${e.id}-title`), a = w(() => `${e.id}-content`), o = w(() => {
2073
2094
  var i;
2074
2095
  return (i = t.value) == null ? void 0 : i.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
2075
2096
  });
@@ -2082,13 +2103,13 @@ function ll(e) {
2082
2103
  initialFocusElement: o
2083
2104
  };
2084
2105
  }
2085
- const po = {
2106
+ const mo = {
2086
2107
  class: "rvc-fixed rvc-inset-0 rvc-overflow-hidden",
2087
2108
  role: "presentation"
2088
- }, mo = { class: "rvc-absolute rvc-inset-0 rvc-overflow-hidden" }, go = { class: "rvc-pointer-events-none rvc-fixed rvc-inset-y-0 rvc-right-0 rvc-flex rvc-max-w-full rvc-pl-10" }, ho = { class: "rvc-flex rvc-h-full rvc-flex-col rvc-shadow-xl" }, yo = { class: "rvc-flex rvc-items-center rvc-justify-between" }, bo = {
2109
+ }, go = { class: "rvc-absolute rvc-inset-0 rvc-overflow-hidden" }, ho = { class: "rvc-pointer-events-none rvc-fixed rvc-inset-y-0 rvc-right-0 rvc-flex rvc-max-w-full rvc-pl-10" }, yo = { class: "rvc-flex rvc-h-full rvc-flex-col rvc-shadow-xl" }, bo = { class: "rvc-flex rvc-items-center rvc-justify-between" }, wo = {
2089
2110
  key: 0,
2090
2111
  class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
2091
- }, wo = ["id"], $o = { class: "rvc-flex rvc-shrink-0 rvc-drawer-footer" }, Ra = {
2112
+ }, $o = ["id"], xo = { class: "rvc-flex rvc-shrink-0 rvc-drawer-footer" }, Fa = {
2092
2113
  __name: "Drawer",
2093
2114
  props: {
2094
2115
  as: {
@@ -2137,22 +2158,22 @@ const po = {
2137
2158
  titleId: i,
2138
2159
  descriptionId: s,
2139
2160
  initialFocusElement: u
2140
- } = ll(l);
2141
- return (c, f) => (b(), B(S(ht), { as: "template" }, {
2161
+ } = ol(l);
2162
+ return (c, f) => (b(), M(x(ht), { as: "template" }, {
2142
2163
  default: P(() => [
2143
- D(S(Gn), {
2164
+ D(x(Xn), {
2144
2165
  as: e.as,
2145
2166
  class: "rvc-drawer",
2146
2167
  static: "",
2147
2168
  "aria-modal": "true",
2148
2169
  role: "dialog",
2149
- "initial-focus": S(u),
2150
- "aria-labelledby": S(i),
2170
+ "initial-focus": x(u),
2171
+ "aria-labelledby": x(i),
2151
2172
  onClose: f[5] || (f[5] = (d) => c.$emit("drawer:close")),
2152
- onSubmit: f[6] || (f[6] = Sn((d) => n("drawer:save", d), ["prevent"]))
2173
+ onSubmit: f[6] || (f[6] = Tn((d) => n("drawer:save", d), ["prevent"]))
2153
2174
  }, {
2154
2175
  default: P(() => [
2155
- D(S(Qe), {
2176
+ D(x(Je), {
2156
2177
  as: "template",
2157
2178
  enter: "rvc-ease-in-out rvc-duration-500",
2158
2179
  "enter-from": "rvc-opacity-0",
@@ -2170,10 +2191,10 @@ const po = {
2170
2191
  ])),
2171
2192
  _: 1
2172
2193
  }),
2173
- $("div", po, [
2174
- $("div", mo, [
2175
- $("div", go, [
2176
- D(S(Qe), {
2194
+ $("div", mo, [
2195
+ $("div", go, [
2196
+ $("div", ho, [
2197
+ D(x(Je), {
2177
2198
  as: "template",
2178
2199
  enter: "rvc-transform rvc-transition rvc-ease-in-out rvc-duration-500 sm:rvc-duration-700",
2179
2200
  "enter-from": "rvc-translate-x-full",
@@ -2185,23 +2206,23 @@ const po = {
2185
2206
  onAfterLeave: f[4] || (f[4] = (d) => (a.value = !1, n("drawer:closed")))
2186
2207
  }, {
2187
2208
  default: P(() => [
2188
- D(S(Zn), {
2189
- class: N(["rvc-pointer-events-auto rvc-w-screen", e.panelClass]),
2209
+ D(x(Qn), {
2210
+ class: I(["rvc-pointer-events-auto rvc-w-screen", e.panelClass]),
2190
2211
  "aria-busy": e.spinning,
2191
- "aria-describedby": S(s)
2212
+ "aria-describedby": x(s)
2192
2213
  }, {
2193
2214
  default: P(() => [
2194
- $("div", ho, [
2215
+ $("div", yo, [
2195
2216
  $("header", {
2196
- class: N([{ "rvc-sticky rvc-top-0 rvc-left-0 rvc-w-full rvc-z-10": e.headerSticky }, "rvc-drawer-header"])
2217
+ class: I([{ "rvc-sticky rvc-top-0 rvc-left-0 rvc-w-full rvc-z-10": e.headerSticky }, "rvc-drawer-header"])
2197
2218
  }, [
2198
- k(c.$slots, "header", {
2219
+ O(c.$slots, "header", {
2199
2220
  title: e.title,
2200
2221
  showClose: e.showClose
2201
2222
  }, () => [
2202
- $("div", yo, [
2203
- D(S(Xn), {
2204
- id: S(i),
2223
+ $("div", bo, [
2224
+ D(x(Jn), {
2225
+ id: x(i),
2205
2226
  class: "rvc-drawer-title"
2206
2227
  }, {
2207
2228
  default: P(() => [
@@ -2209,49 +2230,49 @@ const po = {
2209
2230
  ]),
2210
2231
  _: 1
2211
2232
  }, 8, ["id"]),
2212
- e.showClose ? (b(), E("div", bo, [
2233
+ e.showClose ? (b(), E("div", wo, [
2213
2234
  $("button", {
2214
2235
  type: "button",
2215
2236
  class: "rvc-relative rvc-drawer-close",
2216
2237
  "aria-label": "Close panel",
2217
2238
  onClick: f[1] || (f[1] = (d) => n("drawer:close"))
2218
2239
  }, [
2219
- D(S(vt), {
2240
+ D(x(vt), {
2220
2241
  class: "rvc-size-full",
2221
2242
  "aria-hidden": "true"
2222
2243
  })
2223
2244
  ])
2224
- ])) : H("", !0)
2245
+ ])) : j("", !0)
2225
2246
  ])
2226
2247
  ])
2227
2248
  ], 2),
2228
2249
  $("div", {
2229
- class: N([e.scrolledDown ? "rvc-flex-col-reverse" : "rvc-flex-col", "rvc-flex rvc-min-h-0 rvc-flex-1 rvc-overflow-y-scroll"])
2250
+ class: I([e.scrolledDown ? "rvc-flex-col-reverse" : "rvc-flex-col", "rvc-flex rvc-min-h-0 rvc-flex-1 rvc-overflow-y-scroll"])
2230
2251
  }, [
2231
2252
  $("div", {
2232
- id: S(s),
2253
+ id: x(s),
2233
2254
  ref_key: "contentRef",
2234
2255
  ref: r,
2235
2256
  class: "rvc-relative rvc-flex-1 rvc-drawer-content"
2236
2257
  }, [
2237
- k(c.$slots, "default", { ready: S(a) })
2238
- ], 8, wo)
2258
+ O(c.$slots, "default", { ready: x(a) })
2259
+ ], 8, $o)
2239
2260
  ], 2),
2240
- $("footer", $o, [
2241
- k(c.$slots, "footer", { loading: e.spinning }, () => [
2242
- D(ut, {
2261
+ $("footer", xo, [
2262
+ O(c.$slots, "footer", { loading: e.spinning }, () => [
2263
+ D(Xe, {
2243
2264
  type: "button",
2244
2265
  label: e.cancelLabel,
2245
2266
  color: "light",
2246
2267
  onClick: f[2] || (f[2] = (d) => n("drawer:close"))
2247
2268
  }, null, 8, ["label"]),
2248
- S(o) ? (b(), B(ut, {
2269
+ x(o) ? (b(), M(Xe, {
2249
2270
  key: 0,
2250
2271
  type: "submit",
2251
2272
  label: e.submitLabel,
2252
2273
  spinning: e.spinning,
2253
2274
  disabled: e.spinning
2254
- }, null, 8, ["label", "spinning", "disabled"])) : H("", !0)
2275
+ }, null, 8, ["label", "spinning", "disabled"])) : j("", !0)
2255
2276
  ])
2256
2277
  ])
2257
2278
  ])
@@ -2271,7 +2292,9 @@ const po = {
2271
2292
  _: 3
2272
2293
  }));
2273
2294
  }
2274
- }, Fa = {
2295
+ }, Ma = /* @__PURE__ */ Object.assign({
2296
+ inheritAttrs: !1
2297
+ }, {
2275
2298
  __name: "Dropdown",
2276
2299
  props: {
2277
2300
  items: {
@@ -2279,9 +2302,17 @@ const po = {
2279
2302
  required: !0,
2280
2303
  default: () => []
2281
2304
  },
2282
- leftAlign: {
2305
+ alignLeft: {
2283
2306
  type: Boolean,
2284
2307
  default: !1
2308
+ },
2309
+ label: {
2310
+ type: String,
2311
+ default: "Options"
2312
+ },
2313
+ rootClass: {
2314
+ type: String,
2315
+ default: ""
2285
2316
  }
2286
2317
  },
2287
2318
  emits: ["dropdown:click"],
@@ -2297,18 +2328,24 @@ const po = {
2297
2328
  } = r;
2298
2329
  return c;
2299
2330
  };
2300
- return (r, a) => (b(), B(S(Qr), {
2331
+ return (r, a) => (b(), M(x(eo), {
2301
2332
  as: "div",
2302
- class: "rvc-relative rvc-inline-block"
2333
+ class: I(["rvc-relative rvc-inline-block rvc-w-fit", e.rootClass])
2303
2334
  }, {
2304
2335
  default: P(() => [
2305
- D(S(Jr), null, {
2306
- default: P(() => [
2307
- k(r.$slots, "default")
2308
- ]),
2309
- _: 3
2310
- }),
2311
- D(yl, {
2336
+ O(r.$slots, "button", {
2337
+ label: e.label,
2338
+ button: x(dn)
2339
+ }, () => [
2340
+ D(x(dn), G({
2341
+ as: Xe,
2342
+ label: e.label,
2343
+ color: "light",
2344
+ icon: x(jl),
2345
+ "icon-left": e.alignLeft
2346
+ }, r.$attrs), null, 16, ["label", "icon", "icon-left"])
2347
+ ]),
2348
+ D(wl, {
2312
2349
  "enter-active-class": "rvc-transition rvc-duration-100 rvc-ease-out",
2313
2350
  "enter-from-class": "rvc-transform rvc-scale-95 rvc-opacity-0",
2314
2351
  "enter-to-class": "rvc-transform rvc-scale-100 rvc-opacity-100",
@@ -2317,29 +2354,32 @@ const po = {
2317
2354
  "leave-to-class": "rvc-transform rvc-scale-95 rvc-opacity-0"
2318
2355
  }, {
2319
2356
  default: P(() => [
2320
- D(S(_r), {
2321
- class: N(["rvc-dropdown", e.leftAlign ? "rvc-left-0" : "rvc-right-0"])
2357
+ D(x(to), {
2358
+ class: I(["rvc-dropdown", e.alignLeft ? "rvc-left-0" : "rvc-right-0"])
2322
2359
  }, {
2323
2360
  default: P(() => [
2324
- k(r.$slots, "items", { items: e.items }, () => [
2325
- (b(!0), E(ae, null, Te(e.items, (o, i) => (b(), B(S(eo), {
2361
+ O(r.$slots, "items", {
2362
+ items: e.items,
2363
+ menuItem: x(fn)
2364
+ }, () => [
2365
+ (b(!0), E(ae, null, Te(e.items, (o, i) => (b(), M(x(fn), {
2326
2366
  key: `${i}-dropdown-item`,
2327
2367
  as: "template"
2328
2368
  }, {
2329
2369
  default: P(() => [
2330
- k(r.$slots, "item", { item: o }, () => [
2331
- (b(), B(fe(o.as ? o.as : "button"), Z({
2370
+ O(r.$slots, "item", { item: o }, () => [
2371
+ (b(), M(se(o.as ? o.as : "button"), G({
2332
2372
  class: "rvc-dropdown-item",
2333
2373
  ref_for: !0
2334
2374
  }, l(o), {
2335
2375
  as: o.bindAs ? o.bindAs : void 0,
2336
- onClick: (s) => (n("dropdown:click", o), o.event())
2376
+ onClick: (s) => (n("dropdown:click", o), o.event ? o.event() : null)
2337
2377
  }), {
2338
2378
  default: P(() => [
2339
- o.icon ? (b(), B(fe(o.icon), {
2379
+ o.icon ? (b(), M(se(o.icon), {
2340
2380
  key: 0,
2341
2381
  class: "rvc-dropdown-item-icon"
2342
- })) : H("", !0),
2382
+ })) : j("", !0),
2343
2383
  pe(" " + F(o.name), 1)
2344
2384
  ]),
2345
2385
  _: 2
@@ -2357,12 +2397,12 @@ const po = {
2357
2397
  })
2358
2398
  ]),
2359
2399
  _: 3
2360
- }));
2400
+ }, 8, ["class"]));
2361
2401
  }
2362
- }, xo = {
2402
+ }), So = {
2363
2403
  key: 1,
2364
2404
  class: "rvc-empty-state-title"
2365
- }, Ma = {
2405
+ }, Ba = {
2366
2406
  __name: "EmptyState",
2367
2407
  props: {
2368
2408
  title: {
@@ -2381,17 +2421,17 @@ const po = {
2381
2421
  },
2382
2422
  setup(e) {
2383
2423
  return (t, n) => (b(), E("div", {
2384
- class: N(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
2424
+ class: I(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
2385
2425
  }, [
2386
- e.icon ? (b(), B(fe(e.icon), {
2426
+ e.icon ? (b(), M(se(e.icon), {
2387
2427
  key: 0,
2388
2428
  class: "rvc-empty-state-icon"
2389
- })) : H("", !0),
2390
- e.title ? (b(), E("p", xo, F(e.title), 1)) : H("", !0),
2391
- k(t.$slots, "default")
2429
+ })) : j("", !0),
2430
+ e.title ? (b(), E("p", So, F(e.title), 1)) : j("", !0),
2431
+ O(t.$slots, "default")
2392
2432
  ], 2));
2393
2433
  }
2394
- }, Ba = /* @__PURE__ */ Object.assign({
2434
+ }, Ia = /* @__PURE__ */ Object.assign({
2395
2435
  inheritAttrs: !1
2396
2436
  }, {
2397
2437
  __name: "Lightswitch",
@@ -2407,40 +2447,40 @@ const po = {
2407
2447
  get: () => n.modelValue,
2408
2448
  set: (a) => l("update:modelValue", a)
2409
2449
  });
2410
- return (a, o) => (b(), B(S(lo), {
2450
+ return (a, o) => (b(), M(x(ro), {
2411
2451
  as: "div",
2412
2452
  class: "rvc-lightswitch-group"
2413
2453
  }, {
2414
2454
  default: P(() => [
2415
- D(S(ro), Z({
2455
+ D(x(oo), G({
2416
2456
  modelValue: r.value,
2417
2457
  "onUpdate:modelValue": o[0] || (o[0] = (i) => r.value = i),
2418
2458
  class: [{ "rvc-lightswitch-enabled": r.value }, "rvc-lightswitch"]
2419
2459
  }, a.$attrs), {
2420
2460
  default: P(() => [
2421
2461
  $("span", {
2422
- class: N([{ "rvc-translate-x-6": r.value }, "rvc-lightswitch-toggle"])
2462
+ class: I([{ "rvc-translate-x-6": r.value }, "rvc-lightswitch-toggle"])
2423
2463
  }, null, 2)
2424
2464
  ]),
2425
2465
  _: 1
2426
2466
  }, 16, ["modelValue", "class"]),
2427
- a.$slots.default ? (b(), B(S(oo), { key: 0 }, {
2467
+ a.$slots.default ? (b(), M(x(ao), { key: 0 }, {
2428
2468
  default: P(() => [
2429
- k(a.$slots, "default")
2469
+ O(a.$slots, "default")
2430
2470
  ]),
2431
2471
  _: 3
2432
- })) : H("", !0)
2472
+ })) : j("", !0)
2433
2473
  ]),
2434
2474
  _: 3
2435
2475
  }));
2436
2476
  }
2437
- }), So = {
2477
+ }), Eo = {
2438
2478
  role: "presentation",
2439
2479
  class: "rvc-fixed rvc-inset-0 rvc-z-10 rvc-w-screen rvc-overflow-y-auto"
2440
- }, Eo = { class: "rvc-flex rvc-min-h-full rvc-justify-center rvc-p-4 rvc-items-center sm:rvc-p-0" }, To = { class: "rvc-modal-header" }, ko = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Oo = {
2480
+ }, To = { class: "rvc-flex rvc-min-h-full rvc-justify-center rvc-p-4 rvc-items-center sm:rvc-p-0" }, Oo = { class: "rvc-modal-header" }, ko = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Lo = {
2441
2481
  key: 0,
2442
2482
  class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
2443
- }, Lo = ["id"], Co = { class: "rvc-modal-footer" }, Ia = {
2483
+ }, Co = ["id"], Po = { class: "rvc-modal-footer" }, Na = {
2444
2484
  __name: "Modal",
2445
2485
  props: {
2446
2486
  as: {
@@ -2483,22 +2523,22 @@ const po = {
2483
2523
  titleId: i,
2484
2524
  descriptionId: s,
2485
2525
  initialFocusElement: u
2486
- } = ll(l);
2487
- return (c, f) => (b(), B(S(ht), { as: "template" }, {
2526
+ } = ol(l);
2527
+ return (c, f) => (b(), M(x(ht), { as: "template" }, {
2488
2528
  default: P(() => [
2489
- D(S(Gn), {
2529
+ D(x(Xn), {
2490
2530
  as: e.as,
2491
2531
  class: "rvc-modal",
2492
2532
  static: "",
2493
2533
  "aria-modal": "true",
2494
2534
  role: "dialog",
2495
- "initial-focus": S(u),
2496
- "aria-labelledby": S(i),
2535
+ "initial-focus": x(u),
2536
+ "aria-labelledby": x(i),
2497
2537
  onClose: f[6] || (f[6] = (d) => c.$emit("modal:close")),
2498
- onSubmit: f[7] || (f[7] = Sn((d) => n("modal:save", d), ["prevent"]))
2538
+ onSubmit: f[7] || (f[7] = Tn((d) => n("modal:save", d), ["prevent"]))
2499
2539
  }, {
2500
2540
  default: P(() => [
2501
- D(S(Qe), {
2541
+ D(x(Je), {
2502
2542
  as: "template",
2503
2543
  enter: "rvc-ease-out rvc-duration-300",
2504
2544
  "enter-from": "rvc-opacity-0",
@@ -2516,9 +2556,9 @@ const po = {
2516
2556
  ])),
2517
2557
  _: 1
2518
2558
  }),
2519
- $("div", So, [
2520
- $("div", Eo, [
2521
- D(S(Qe), {
2559
+ $("div", Eo, [
2560
+ $("div", To, [
2561
+ D(x(Je), {
2522
2562
  as: "template",
2523
2563
  enter: "rvc-ease-out rvc-duration-300",
2524
2564
  "enter-from": "rvc-opacity-0 rvc-translate-y-4 sm:rvc-translate-y-0 sm:rvc-scale-95",
@@ -2530,17 +2570,17 @@ const po = {
2530
2570
  onAfterLeave: f[5] || (f[5] = (d) => (a.value = !1, n("modal:closed")))
2531
2571
  }, {
2532
2572
  default: P(() => [
2533
- D(S(Zn), {
2534
- class: N(["rvc-modal-panel", e.panelClass]),
2573
+ D(x(Qn), {
2574
+ class: I(["rvc-modal-panel", e.panelClass]),
2535
2575
  "aria-busy": e.spinning,
2536
- "aria-describedby": S(s)
2576
+ "aria-describedby": x(s)
2537
2577
  }, {
2538
2578
  default: P(() => [
2539
- $("header", To, [
2540
- k(c.$slots, "header", { title: e.title }, () => [
2579
+ $("header", Oo, [
2580
+ O(c.$slots, "header", { title: e.title }, () => [
2541
2581
  $("div", ko, [
2542
- D(S(Xn), {
2543
- id: S(i),
2582
+ D(x(Jn), {
2583
+ id: x(i),
2544
2584
  class: "rvc-modal-title"
2545
2585
  }, {
2546
2586
  default: P(() => [
@@ -2548,40 +2588,40 @@ const po = {
2548
2588
  ]),
2549
2589
  _: 1
2550
2590
  }, 8, ["id"]),
2551
- e.showClose ? (b(), E("div", Oo, [
2591
+ e.showClose ? (b(), E("div", Lo, [
2552
2592
  $("button", {
2553
2593
  type: "button",
2554
2594
  class: "rvc-relative rvc-modal-close",
2555
2595
  "aria-label": "Close panel",
2556
2596
  onClick: f[1] || (f[1] = (d) => n("modal:close"))
2557
2597
  }, [
2558
- D(S(vt), {
2598
+ D(x(vt), {
2559
2599
  class: "rvc-size-full",
2560
2600
  "aria-hidden": "true"
2561
2601
  })
2562
2602
  ])
2563
- ])) : H("", !0)
2603
+ ])) : j("", !0)
2564
2604
  ])
2565
2605
  ])
2566
2606
  ]),
2567
2607
  $("div", {
2568
- id: S(s),
2608
+ id: x(s),
2569
2609
  ref_key: "contentRef",
2570
2610
  ref: r,
2571
2611
  class: "rvc-modal-content"
2572
2612
  }, [
2573
- k(c.$slots, "default", { ready: S(a) })
2574
- ], 8, Lo),
2575
- $("footer", Co, [
2576
- k(c.$slots, "footer", { loading: e.spinning }, () => [
2577
- D(ut, {
2578
- type: S(o) ? "submit" : "button",
2613
+ O(c.$slots, "default", { ready: x(a) })
2614
+ ], 8, Co),
2615
+ $("footer", Po, [
2616
+ O(c.$slots, "footer", { loading: e.spinning }, () => [
2617
+ D(Xe, {
2618
+ type: x(o) ? "submit" : "button",
2579
2619
  label: e.submitLabel,
2580
2620
  spinning: e.spinning,
2581
2621
  disabled: e.spinning,
2582
- onClick: f[2] || (f[2] = (d) => !S(o) && c.$emit("modal:save"))
2622
+ onClick: f[2] || (f[2] = (d) => !x(o) && c.$emit("modal:save"))
2583
2623
  }, null, 8, ["type", "label", "spinning", "disabled"]),
2584
- D(ut, {
2624
+ D(Xe, {
2585
2625
  type: "button",
2586
2626
  color: "light",
2587
2627
  label: e.cancelLabel,
@@ -2604,7 +2644,7 @@ const po = {
2604
2644
  _: 3
2605
2645
  }));
2606
2646
  }
2607
- }, Po = { class: "rvc-radio" }, Ao = ["id"], Do = { key: 2 }, Ro = ["for"], Na = /* @__PURE__ */ Object.assign({
2647
+ }, Ao = { class: "rvc-radio" }, Do = ["id"], Ro = { key: 2 }, Fo = ["for"], ja = /* @__PURE__ */ Object.assign({
2608
2648
  inheritAttrs: !1
2609
2649
  }, {
2610
2650
  __name: "Radio",
@@ -2628,27 +2668,27 @@ const po = {
2628
2668
  get: () => n.modelValue,
2629
2669
  set: (s) => l("update:modelValue", s)
2630
2670
  }), { hasModelBinding: a } = It(), i = {
2631
- ...$n(),
2671
+ ...Sn(),
2632
2672
  id: n.id,
2633
2673
  type: "radio",
2634
2674
  class: "rvc-absolute rvc-opacity-0 rvc-inset-0 rvc-cursor-pointer"
2635
2675
  };
2636
- return (s, u) => (b(), E("div", Po, [
2637
- S(a) ? Bt((b(), E("input", Z({ key: 0 }, i, {
2676
+ return (s, u) => (b(), E("div", Ao, [
2677
+ x(a) ? Bt((b(), E("input", G({ key: 0 }, i, {
2638
2678
  id: e.id,
2639
2679
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c)
2640
- }), null, 16, Ao)), [
2641
- [xn, r.value]
2642
- ]) : (b(), E("input", Ze(Z({ key: 1 }, i)), null, 16)),
2680
+ }), null, 16, Do)), [
2681
+ [En, r.value]
2682
+ ]) : (b(), E("input", Ge(G({ key: 1 }, i)), null, 16)),
2643
2683
  u[1] || (u[1] = $("span", { class: "rvc-radio-input" }, null, -1)),
2644
- s.$slots.default || e.label ? (b(), E("span", Do, [
2645
- k(s.$slots, "default", {}, () => [
2646
- $("label", { for: e.id }, F(e.label), 9, Ro)
2684
+ s.$slots.default || e.label ? (b(), E("span", Ro, [
2685
+ O(s.$slots, "default", {}, () => [
2686
+ $("label", { for: e.id }, F(e.label), 9, Fo)
2647
2687
  ])
2648
- ])) : H("", !0)
2688
+ ])) : j("", !0)
2649
2689
  ]));
2650
2690
  }
2651
- }), Fo = { class: "rvc-tabs-nav" }, Mo = { class: "md:rvc-hidden" }, Bo = ["value", "selected"], ja = {
2691
+ }), Mo = { class: "rvc-tabs-nav" }, Bo = { class: "md:rvc-hidden" }, Io = ["value", "selected"], Va = {
2652
2692
  __name: "Tabs",
2653
2693
  props: {
2654
2694
  modelValue: {
@@ -2695,10 +2735,10 @@ const po = {
2695
2735
  };
2696
2736
  return (s, u) => (b(), E(ae, null, [
2697
2737
  $("div", {
2698
- class: N(["rvc-tabs rvc-hidden md:rvc-flex", { "rvc-tabs-buttons": e.tabStyle === "buttons" }])
2738
+ class: I(["rvc-tabs rvc-hidden md:rvc-flex", { "rvc-tabs-buttons": e.tabStyle === "buttons" }])
2699
2739
  }, [
2700
- $("nav", Fo, [
2701
- (b(!0), E(ae, null, Te(e.tabs, (c, f) => (b(), B(fe(c.as ? c.as : "button"), Z({ ref_for: !0 }, i(c), {
2740
+ $("nav", Mo, [
2741
+ (b(!0), E(ae, null, Te(e.tabs, (c, f) => (b(), M(se(c.as ? c.as : "button"), G({ ref_for: !0 }, i(c), {
2702
2742
  key: `${f}-tab-item`,
2703
2743
  as: c.bindAs ? c.bindAs : void 0,
2704
2744
  class: ["rvc-tab", { "rvc-tab-active": a.value === f }],
@@ -2711,8 +2751,8 @@ const po = {
2711
2751
  }, 1040, ["as", "class", "onClick"]))), 128))
2712
2752
  ])
2713
2753
  ], 2),
2714
- $("div", Mo, [
2715
- D(Tn, {
2754
+ $("div", Bo, [
2755
+ D(kn, {
2716
2756
  value: a.value,
2717
2757
  onChange: o
2718
2758
  }, {
@@ -2721,14 +2761,14 @@ const po = {
2721
2761
  key: `${f}-tab-item-select-option`,
2722
2762
  value: f,
2723
2763
  selected: a.value === f
2724
- }, F(c.name), 9, Bo))), 128))
2764
+ }, F(c.name), 9, Io))), 128))
2725
2765
  ]),
2726
2766
  _: 1
2727
2767
  }, 8, ["value"])
2728
2768
  ])
2729
2769
  ], 64));
2730
2770
  }
2731
- }, Io = { class: "rvc-toast-title" }, Va = {
2771
+ }, No = { class: "rvc-toast-title" }, Ha = {
2732
2772
  __name: "Toast",
2733
2773
  props: {
2734
2774
  as: {
@@ -2777,7 +2817,7 @@ const po = {
2777
2817
  r();
2778
2818
  }), me(() => n.open, (a) => {
2779
2819
  a && r();
2780
- }), (a, o) => (b(), B(S(ht), {
2820
+ }), (a, o) => (b(), M(x(ht), {
2781
2821
  as: "template",
2782
2822
  show: e.open,
2783
2823
  enter: "rvc-transition-opacity rvc-duration-300",
@@ -2788,31 +2828,31 @@ const po = {
2788
2828
  "leave-to": "rvc-opacity-0"
2789
2829
  }, {
2790
2830
  default: P(() => [
2791
- (b(), B(fe(e.as), {
2792
- class: N(["rvc-toast rvc-transition-opacity", `rvc-toast-${e.position}`, `rvc-toast-${e.type}`, { "rvc-toast-open": e.open }])
2831
+ (b(), M(se(e.as), {
2832
+ class: I(["rvc-toast rvc-transition-opacity", `rvc-toast-${e.position}`, `rvc-toast-${e.type}`, { "rvc-toast-open": e.open }])
2793
2833
  }, {
2794
2834
  default: P(() => [
2795
- k(a.$slots, "icon", {}, () => [
2796
- e.icon ? (b(), B(fe(e.icon), {
2835
+ O(a.$slots, "icon", {}, () => [
2836
+ e.icon ? (b(), M(se(e.icon), {
2797
2837
  key: 0,
2798
2838
  class: "rvc-toast-icon"
2799
- })) : H("", !0)
2839
+ })) : j("", !0)
2800
2840
  ]),
2801
2841
  $("div", null, [
2802
- k(a.$slots, "title", {}, () => [
2803
- $("span", Io, F(e.title), 1)
2842
+ O(a.$slots, "title", {}, () => [
2843
+ $("span", No, F(e.title), 1)
2804
2844
  ]),
2805
- k(a.$slots, "default")
2845
+ O(a.$slots, "default")
2806
2846
  ]),
2807
- k(a.$slots, "close", {}, () => [
2847
+ O(a.$slots, "close", {}, () => [
2808
2848
  e.showClose ? (b(), E("button", {
2809
2849
  key: 0,
2810
2850
  type: "button",
2811
2851
  class: "rvc-toast-close rvc-transition-colors",
2812
2852
  onClick: o[0] || (o[0] = (i) => a.$emit("toast:close"))
2813
2853
  }, [
2814
- D(S(vt), { class: "rvc-size-5" })
2815
- ])) : H("", !0)
2854
+ D(x(vt), { class: "rvc-size-5" })
2855
+ ])) : j("", !0)
2816
2856
  ])
2817
2857
  ]),
2818
2858
  _: 3
@@ -2821,15 +2861,15 @@ const po = {
2821
2861
  _: 3
2822
2862
  }, 8, ["show"]));
2823
2863
  }
2824
- }, No = ["top", "right", "bottom", "left"], fn = ["start", "end"], vn = /* @__PURE__ */ No.reduce((e, t) => e.concat(t, t + "-" + fn[0], t + "-" + fn[1]), []), Ce = Math.min, re = Math.max, dt = Math.round, st = Math.floor, $e = (e) => ({
2864
+ }, jo = ["top", "right", "bottom", "left"], pn = ["start", "end"], mn = /* @__PURE__ */ jo.reduce((e, t) => e.concat(t, t + "-" + pn[0], t + "-" + pn[1]), []), Ce = Math.min, re = Math.max, dt = Math.round, ut = Math.floor, $e = (e) => ({
2825
2865
  x: e,
2826
2866
  y: e
2827
- }), jo = {
2867
+ }), Vo = {
2828
2868
  left: "right",
2829
2869
  right: "left",
2830
2870
  bottom: "top",
2831
2871
  top: "bottom"
2832
- }, Vo = {
2872
+ }, Ho = {
2833
2873
  start: "end",
2834
2874
  end: "start"
2835
2875
  };
@@ -2845,31 +2885,31 @@ function Be(e) {
2845
2885
  function xe(e) {
2846
2886
  return e.split("-")[1];
2847
2887
  }
2848
- function rl(e) {
2888
+ function al(e) {
2849
2889
  return e === "x" ? "y" : "x";
2850
2890
  }
2851
2891
  function zt(e) {
2852
2892
  return e === "y" ? "height" : "width";
2853
2893
  }
2854
- function nt(e) {
2894
+ function lt(e) {
2855
2895
  return ["top", "bottom"].includes(Be(e)) ? "y" : "x";
2856
2896
  }
2857
2897
  function qt(e) {
2858
- return rl(nt(e));
2898
+ return al(lt(e));
2859
2899
  }
2860
- function Ho(e, t, n) {
2900
+ function Wo(e, t, n) {
2861
2901
  n === void 0 && (n = !1);
2862
2902
  const l = xe(e), r = qt(e), a = zt(r);
2863
2903
  let o = r === "x" ? l === (n ? "end" : "start") ? "right" : "left" : l === "start" ? "bottom" : "top";
2864
- return t.reference[a] > t.floating[a] && (o = pn(o)), [o, pn(o)];
2904
+ return t.reference[a] > t.floating[a] && (o = gn(o)), [o, gn(o)];
2865
2905
  }
2866
- function Wo(e) {
2867
- return e.replace(/start|end/g, (t) => Vo[t]);
2906
+ function Uo(e) {
2907
+ return e.replace(/start|end/g, (t) => Ho[t]);
2868
2908
  }
2869
- function pn(e) {
2870
- return e.replace(/left|right|bottom|top/g, (t) => jo[t]);
2909
+ function gn(e) {
2910
+ return e.replace(/left|right|bottom|top/g, (t) => Vo[t]);
2871
2911
  }
2872
- function Uo(e) {
2912
+ function zo(e) {
2873
2913
  return {
2874
2914
  top: 0,
2875
2915
  right: 0,
@@ -2878,8 +2918,8 @@ function Uo(e) {
2878
2918
  ...e
2879
2919
  };
2880
2920
  }
2881
- function ol(e) {
2882
- return typeof e != "number" ? Uo(e) : {
2921
+ function il(e) {
2922
+ return typeof e != "number" ? zo(e) : {
2883
2923
  top: e,
2884
2924
  right: e,
2885
2925
  bottom: e,
@@ -2904,12 +2944,12 @@ function ft(e) {
2904
2944
  y: n
2905
2945
  };
2906
2946
  }
2907
- function mn(e, t, n) {
2947
+ function hn(e, t, n) {
2908
2948
  let {
2909
2949
  reference: l,
2910
2950
  floating: r
2911
2951
  } = e;
2912
- const a = nt(t), o = qt(t), i = zt(o), s = Be(t), u = a === "y", c = l.x + l.width / 2 - r.width / 2, f = l.y + l.height / 2 - r.height / 2, d = l[i] / 2 - r[i] / 2;
2952
+ const a = lt(t), o = qt(t), i = zt(o), s = Be(t), u = a === "y", c = l.x + l.width / 2 - r.width / 2, f = l.y + l.height / 2 - r.height / 2, d = l[i] / 2 - r[i] / 2;
2913
2953
  let v;
2914
2954
  switch (s) {
2915
2955
  case "top":
@@ -2952,7 +2992,7 @@ function mn(e, t, n) {
2952
2992
  }
2953
2993
  return v;
2954
2994
  }
2955
- const zo = async (e, t, n) => {
2995
+ const qo = async (e, t, n) => {
2956
2996
  const {
2957
2997
  placement: l = "bottom",
2958
2998
  strategy: r = "absolute",
@@ -2966,7 +3006,7 @@ const zo = async (e, t, n) => {
2966
3006
  }), {
2967
3007
  x: c,
2968
3008
  y: f
2969
- } = mn(u, l, s), d = l, v = {}, p = 0;
3009
+ } = hn(u, l, s), d = l, v = {}, p = 0;
2970
3010
  for (let m = 0; m < i.length; m++) {
2971
3011
  const {
2972
3012
  name: g,
@@ -3003,7 +3043,7 @@ const zo = async (e, t, n) => {
3003
3043
  }) : C.rects), {
3004
3044
  x: c,
3005
3045
  y: f
3006
- } = mn(u, d, s)), m = -1);
3046
+ } = hn(u, d, s)), m = -1);
3007
3047
  }
3008
3048
  return {
3009
3049
  x: c,
@@ -3029,7 +3069,7 @@ async function Kt(e, t) {
3029
3069
  elementContext: f = "floating",
3030
3070
  altBoundary: d = !1,
3031
3071
  padding: v = 0
3032
- } = Ue(t, e), p = ol(v), g = i[d ? f === "floating" ? "reference" : "floating" : f], h = ft(await a.getClippingRect({
3072
+ } = Ue(t, e), p = il(v), g = i[d ? f === "floating" ? "reference" : "floating" : f], h = ft(await a.getClippingRect({
3033
3073
  element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
3034
3074
  boundary: u,
3035
3075
  rootBoundary: c,
@@ -3058,7 +3098,7 @@ async function Kt(e, t) {
3058
3098
  right: (C.right - h.right + p.right) / A.x
3059
3099
  };
3060
3100
  }
3061
- const qo = (e) => ({
3101
+ const Ko = (e) => ({
3062
3102
  name: "arrow",
3063
3103
  options: e,
3064
3104
  async fn(t) {
@@ -3076,13 +3116,13 @@ const qo = (e) => ({
3076
3116
  } = Ue(e, t) || {};
3077
3117
  if (u == null)
3078
3118
  return {};
3079
- const f = ol(c), d = {
3119
+ const f = il(c), d = {
3080
3120
  x: n,
3081
3121
  y: l
3082
- }, v = qt(r), p = zt(v), m = await o.getDimensions(u), g = v === "y", h = g ? "top" : "left", y = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", A = a.reference[p] + a.reference[v] - d[v] - a.floating[p], C = d[v] - a.reference[v], M = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
3083
- let L = M ? M[T] : 0;
3084
- (!L || !await (o.isElement == null ? void 0 : o.isElement(M))) && (L = i.floating[T] || a.floating[p]);
3085
- const I = A / 2 - C / 2, X = L / 2 - m[p] / 2 - 1, j = Ce(f[h], X), Q = Ce(f[y], X), ee = j, Y = L - m[p] - Q, te = L / 2 - m[p] / 2 + I, ne = Rt(ee, te, Y), le = !s.arrow && xe(r) != null && te !== ne && a.reference[p] / 2 - (te < ee ? j : Q) - m[p] / 2 < 0, be = le ? te < ee ? te - ee : te - Y : 0;
3122
+ }, v = qt(r), p = zt(v), m = await o.getDimensions(u), g = v === "y", h = g ? "top" : "left", y = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", A = a.reference[p] + a.reference[v] - d[v] - a.floating[p], C = d[v] - a.reference[v], B = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
3123
+ let L = B ? B[T] : 0;
3124
+ (!L || !await (o.isElement == null ? void 0 : o.isElement(B))) && (L = i.floating[T] || a.floating[p]);
3125
+ const N = A / 2 - C / 2, X = L / 2 - m[p] / 2 - 1, V = Ce(f[h], X), Q = Ce(f[y], X), ee = V, Y = L - m[p] - Q, te = L / 2 - m[p] / 2 + N, ne = Rt(ee, te, Y), le = !s.arrow && xe(r) != null && te !== ne && a.reference[p] / 2 - (te < ee ? V : Q) - m[p] / 2 < 0, be = le ? te < ee ? te - ee : te - Y : 0;
3086
3126
  return {
3087
3127
  [v]: d[v] + be,
3088
3128
  data: {
@@ -3096,10 +3136,10 @@ const qo = (e) => ({
3096
3136
  };
3097
3137
  }
3098
3138
  });
3099
- function Ko(e, t, n) {
3100
- return (e ? [...n.filter((r) => xe(r) === e), ...n.filter((r) => xe(r) !== e)] : n.filter((r) => Be(r) === r)).filter((r) => e ? xe(r) === e || (t ? Wo(r) !== r : !1) : !0);
3139
+ function Yo(e, t, n) {
3140
+ return (e ? [...n.filter((r) => xe(r) === e), ...n.filter((r) => xe(r) !== e)] : n.filter((r) => Be(r) === r)).filter((r) => e ? xe(r) === e || (t ? Uo(r) !== r : !1) : !0);
3101
3141
  }
3102
- const Yo = function(e) {
3142
+ const Zo = function(e) {
3103
3143
  return e === void 0 && (e = {}), {
3104
3144
  name: "autoPlacement",
3105
3145
  options: e,
@@ -3114,13 +3154,13 @@ const Yo = function(e) {
3114
3154
  } = t, {
3115
3155
  crossAxis: c = !1,
3116
3156
  alignment: f,
3117
- allowedPlacements: d = vn,
3157
+ allowedPlacements: d = mn,
3118
3158
  autoAlignment: v = !0,
3119
3159
  ...p
3120
- } = Ue(e, t), m = f !== void 0 || d === vn ? Ko(f || null, v, d) : d, g = await Kt(t, p), h = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, y = m[h];
3160
+ } = Ue(e, t), m = f !== void 0 || d === mn ? Yo(f || null, v, d) : d, g = await Kt(t, p), h = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, y = m[h];
3121
3161
  if (y == null)
3122
3162
  return {};
3123
- const T = Ho(y, a, await (s.isRTL == null ? void 0 : s.isRTL(u.floating)));
3163
+ const T = Wo(y, a, await (s.isRTL == null ? void 0 : s.isRTL(u.floating)));
3124
3164
  if (i !== y)
3125
3165
  return {
3126
3166
  reset: {
@@ -3130,31 +3170,31 @@ const Yo = function(e) {
3130
3170
  const A = [g[Be(y)], g[T[0]], g[T[1]]], C = [...((l = o.autoPlacement) == null ? void 0 : l.overflows) || [], {
3131
3171
  placement: y,
3132
3172
  overflows: A
3133
- }], M = m[h + 1];
3134
- if (M)
3173
+ }], B = m[h + 1];
3174
+ if (B)
3135
3175
  return {
3136
3176
  data: {
3137
3177
  index: h + 1,
3138
3178
  overflows: C
3139
3179
  },
3140
3180
  reset: {
3141
- placement: M
3181
+ placement: B
3142
3182
  }
3143
3183
  };
3144
- const L = C.map((j) => {
3145
- const Q = xe(j.placement);
3146
- return [j.placement, Q && c ? (
3184
+ const L = C.map((V) => {
3185
+ const Q = xe(V.placement);
3186
+ return [V.placement, Q && c ? (
3147
3187
  // Check along the mainAxis and main crossAxis side.
3148
- j.overflows.slice(0, 2).reduce((ee, Y) => ee + Y, 0)
3188
+ V.overflows.slice(0, 2).reduce((ee, Y) => ee + Y, 0)
3149
3189
  ) : (
3150
3190
  // Check only the mainAxis.
3151
- j.overflows[0]
3152
- ), j.overflows];
3153
- }).sort((j, Q) => j[1] - Q[1]), X = ((r = L.filter((j) => j[2].slice(
3191
+ V.overflows[0]
3192
+ ), V.overflows];
3193
+ }).sort((V, Q) => V[1] - Q[1]), X = ((r = L.filter((V) => V[2].slice(
3154
3194
  0,
3155
3195
  // Aligned placements should not check their opposite crossAxis
3156
3196
  // side.
3157
- xe(j[0]) ? 2 : 3
3197
+ xe(V[0]) ? 2 : 3
3158
3198
  ).every((Q) => Q <= 0))[0]) == null ? void 0 : r[0]) || L[0][0];
3159
3199
  return X !== i ? {
3160
3200
  data: {
@@ -3173,7 +3213,7 @@ async function Go(e, t) {
3173
3213
  placement: n,
3174
3214
  platform: l,
3175
3215
  elements: r
3176
- } = e, a = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), o = Be(n), i = xe(n), s = nt(n) === "y", u = ["left", "top"].includes(o) ? -1 : 1, c = a && s ? -1 : 1, f = Ue(t, e);
3216
+ } = e, a = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), o = Be(n), i = xe(n), s = lt(n) === "y", u = ["left", "top"].includes(o) ? -1 : 1, c = a && s ? -1 : 1, f = Ue(t, e);
3177
3217
  let {
3178
3218
  mainAxis: d,
3179
3219
  crossAxis: v,
@@ -3195,7 +3235,7 @@ async function Go(e, t) {
3195
3235
  y: v * c
3196
3236
  };
3197
3237
  }
3198
- const Zo = function(e) {
3238
+ const Xo = function(e) {
3199
3239
  return e === void 0 && (e = 0), {
3200
3240
  name: "offset",
3201
3241
  options: e,
@@ -3217,7 +3257,7 @@ const Zo = function(e) {
3217
3257
  };
3218
3258
  }
3219
3259
  };
3220
- }, Xo = function(e) {
3260
+ }, Qo = function(e) {
3221
3261
  return e === void 0 && (e = {}), {
3222
3262
  name: "shift",
3223
3263
  options: e,
@@ -3245,7 +3285,7 @@ const Zo = function(e) {
3245
3285
  } = Ue(e, t), u = {
3246
3286
  x: n,
3247
3287
  y: l
3248
- }, c = await Kt(t, s), f = nt(Be(r)), d = rl(f);
3288
+ }, c = await Kt(t, s), f = lt(Be(r)), d = al(f);
3249
3289
  let v = u[d], p = u[f];
3250
3290
  if (a) {
3251
3291
  const g = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", y = v + c[g], T = v - c[h];
@@ -3273,7 +3313,7 @@ const Zo = function(e) {
3273
3313
  };
3274
3314
  }
3275
3315
  };
3276
- }, Qo = function(e) {
3316
+ }, Jo = function(e) {
3277
3317
  return e === void 0 && (e = {}), {
3278
3318
  name: "size",
3279
3319
  options: e,
@@ -3288,21 +3328,21 @@ const Zo = function(e) {
3288
3328
  apply: s = () => {
3289
3329
  },
3290
3330
  ...u
3291
- } = Ue(e, t), c = await Kt(t, u), f = Be(r), d = xe(r), v = nt(r) === "y", {
3331
+ } = Ue(e, t), c = await Kt(t, u), f = Be(r), d = xe(r), v = lt(r) === "y", {
3292
3332
  width: p,
3293
3333
  height: m
3294
3334
  } = a.floating;
3295
3335
  let g, h;
3296
3336
  f === "top" || f === "bottom" ? (g = f, h = d === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (h = f, g = d === "end" ? "top" : "bottom");
3297
- const y = m - c.top - c.bottom, T = p - c.left - c.right, A = Ce(m - c[g], y), C = Ce(p - c[h], T), M = !t.middlewareData.shift;
3298
- let L = A, I = C;
3299
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = T), (l = t.middlewareData.shift) != null && l.enabled.y && (L = y), M && !d) {
3300
- const j = re(c.left, 0), Q = re(c.right, 0), ee = re(c.top, 0), Y = re(c.bottom, 0);
3301
- v ? I = p - 2 * (j !== 0 || Q !== 0 ? j + Q : re(c.left, c.right)) : L = m - 2 * (ee !== 0 || Y !== 0 ? ee + Y : re(c.top, c.bottom));
3337
+ const y = m - c.top - c.bottom, T = p - c.left - c.right, A = Ce(m - c[g], y), C = Ce(p - c[h], T), B = !t.middlewareData.shift;
3338
+ let L = A, N = C;
3339
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = T), (l = t.middlewareData.shift) != null && l.enabled.y && (L = y), B && !d) {
3340
+ const V = re(c.left, 0), Q = re(c.right, 0), ee = re(c.top, 0), Y = re(c.bottom, 0);
3341
+ v ? N = p - 2 * (V !== 0 || Q !== 0 ? V + Q : re(c.left, c.right)) : L = m - 2 * (ee !== 0 || Y !== 0 ? ee + Y : re(c.top, c.bottom));
3302
3342
  }
3303
3343
  await s({
3304
3344
  ...t,
3305
- availableWidth: I,
3345
+ availableWidth: N,
3306
3346
  availableHeight: L
3307
3347
  });
3308
3348
  const X = await o.getDimensions(i.floating);
@@ -3337,10 +3377,10 @@ function he(e) {
3337
3377
  function Se(e) {
3338
3378
  return yt() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
3339
3379
  }
3340
- function gn(e) {
3380
+ function yn(e) {
3341
3381
  return !yt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
3342
3382
  }
3343
- function lt(e) {
3383
+ function rt(e) {
3344
3384
  const {
3345
3385
  overflow: t,
3346
3386
  overflowX: n,
@@ -3349,7 +3389,7 @@ function lt(e) {
3349
3389
  } = ye(e);
3350
3390
  return /auto|scroll|overlay|hidden|clip/.test(t + l + n) && !["inline", "contents"].includes(r);
3351
3391
  }
3352
- function Jo(e) {
3392
+ function _o(e) {
3353
3393
  return ["table", "td", "th"].includes(Ie(e));
3354
3394
  }
3355
3395
  function bt(e) {
@@ -3361,14 +3401,14 @@ function bt(e) {
3361
3401
  }
3362
3402
  });
3363
3403
  }
3364
- function Gt(e) {
3365
- const t = Zt(), n = he(e) ? ye(e) : e;
3404
+ function Zt(e) {
3405
+ const t = Gt(), n = he(e) ? ye(e) : e;
3366
3406
  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));
3367
3407
  }
3368
- function _o(e) {
3408
+ function ea(e) {
3369
3409
  let t = Pe(e);
3370
3410
  for (; Se(t) && !We(t); ) {
3371
- if (Gt(t))
3411
+ if (Zt(t))
3372
3412
  return t;
3373
3413
  if (bt(t))
3374
3414
  return null;
@@ -3376,7 +3416,7 @@ function _o(e) {
3376
3416
  }
3377
3417
  return null;
3378
3418
  }
3379
- function Zt() {
3419
+ function Gt() {
3380
3420
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3381
3421
  }
3382
3422
  function We(e) {
@@ -3401,29 +3441,29 @@ function Pe(e) {
3401
3441
  // Step into the shadow DOM of the parent of a slotted node.
3402
3442
  e.assignedSlot || // DOM Element detected.
3403
3443
  e.parentNode || // ShadowRoot detected.
3404
- gn(e) && e.host || // Fallback.
3444
+ yn(e) && e.host || // Fallback.
3405
3445
  Ee(e)
3406
3446
  );
3407
- return gn(t) ? t.host : t;
3447
+ return yn(t) ? t.host : t;
3408
3448
  }
3409
- function al(e) {
3449
+ function sl(e) {
3410
3450
  const t = Pe(e);
3411
- return We(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Se(t) && lt(t) ? t : al(t);
3451
+ return We(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Se(t) && rt(t) ? t : sl(t);
3412
3452
  }
3413
- function Je(e, t, n) {
3453
+ function _e(e, t, n) {
3414
3454
  var l;
3415
3455
  t === void 0 && (t = []), n === void 0 && (n = !0);
3416
- const r = al(e), a = r === ((l = e.ownerDocument) == null ? void 0 : l.body), o = ie(r);
3456
+ const r = sl(e), a = r === ((l = e.ownerDocument) == null ? void 0 : l.body), o = ie(r);
3417
3457
  if (a) {
3418
3458
  const i = Ft(o);
3419
- return t.concat(o, o.visualViewport || [], lt(r) ? r : [], i && n ? Je(i) : []);
3459
+ return t.concat(o, o.visualViewport || [], rt(r) ? r : [], i && n ? _e(i) : []);
3420
3460
  }
3421
- return t.concat(r, Je(r, [], n));
3461
+ return t.concat(r, _e(r, [], n));
3422
3462
  }
3423
3463
  function Ft(e) {
3424
3464
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3425
3465
  }
3426
- function il(e) {
3466
+ function ul(e) {
3427
3467
  const t = ye(e);
3428
3468
  let n = parseFloat(t.width) || 0, l = parseFloat(t.height) || 0;
3429
3469
  const r = Se(e), a = r ? e.offsetWidth : n, o = r ? e.offsetHeight : l, i = dt(n) !== a || dt(l) !== o;
@@ -3444,22 +3484,22 @@ function Ve(e) {
3444
3484
  width: l,
3445
3485
  height: r,
3446
3486
  $: a
3447
- } = il(t);
3487
+ } = ul(t);
3448
3488
  let o = (a ? dt(n.width) : n.width) / l, i = (a ? dt(n.height) : n.height) / r;
3449
3489
  return (!o || !Number.isFinite(o)) && (o = 1), (!i || !Number.isFinite(i)) && (i = 1), {
3450
3490
  x: o,
3451
3491
  y: i
3452
3492
  };
3453
3493
  }
3454
- const ea = /* @__PURE__ */ $e(0);
3455
- function sl(e) {
3494
+ const ta = /* @__PURE__ */ $e(0);
3495
+ function cl(e) {
3456
3496
  const t = ie(e);
3457
- return !Zt() || !t.visualViewport ? ea : {
3497
+ return !Gt() || !t.visualViewport ? ta : {
3458
3498
  x: t.visualViewport.offsetLeft,
3459
3499
  y: t.visualViewport.offsetTop
3460
3500
  };
3461
3501
  }
3462
- function ta(e, t, n) {
3502
+ function na(e, t, n) {
3463
3503
  return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
3464
3504
  }
3465
3505
  function Me(e, t, n, l) {
@@ -3467,7 +3507,7 @@ function Me(e, t, n, l) {
3467
3507
  const r = e.getBoundingClientRect(), a = Xt(e);
3468
3508
  let o = $e(1);
3469
3509
  t && (l ? he(l) && (o = Ve(l)) : o = Ve(e));
3470
- const i = ta(a, n, l) ? sl(a) : $e(0);
3510
+ const i = na(a, n, l) ? cl(a) : $e(0);
3471
3511
  let s = (r.left + i.x) / o.x, u = (r.top + i.y) / o.y, c = r.width / o.x, f = r.height / o.y;
3472
3512
  if (a) {
3473
3513
  const d = ie(a), v = l && he(l) ? ie(l) : l;
@@ -3488,7 +3528,7 @@ function Qt(e, t) {
3488
3528
  const n = wt(e).scrollLeft;
3489
3529
  return t ? t.left + n : Me(Ee(e)).left + n;
3490
3530
  }
3491
- function ul(e, t, n) {
3531
+ function dl(e, t, n) {
3492
3532
  n === void 0 && (n = !1);
3493
3533
  const l = e.getBoundingClientRect(), r = l.left + t.scrollLeft - (n ? 0 : (
3494
3534
  // RTL <body> scrollbar.
@@ -3499,7 +3539,7 @@ function ul(e, t, n) {
3499
3539
  y: a
3500
3540
  };
3501
3541
  }
3502
- function na(e) {
3542
+ function la(e) {
3503
3543
  let {
3504
3544
  elements: t,
3505
3545
  rect: n,
@@ -3514,11 +3554,11 @@ function na(e) {
3514
3554
  scrollTop: 0
3515
3555
  }, u = $e(1);
3516
3556
  const c = $e(0), f = Se(l);
3517
- if ((f || !f && !a) && ((Ie(l) !== "body" || lt(o)) && (s = wt(l)), Se(l))) {
3557
+ if ((f || !f && !a) && ((Ie(l) !== "body" || rt(o)) && (s = wt(l)), Se(l))) {
3518
3558
  const v = Me(l);
3519
3559
  u = Ve(l), c.x = v.x + l.clientLeft, c.y = v.y + l.clientTop;
3520
3560
  }
3521
- const d = o && !f && !a ? ul(o, s, !0) : $e(0);
3561
+ const d = o && !f && !a ? dl(o, s, !0) : $e(0);
3522
3562
  return {
3523
3563
  width: n.width * u.x,
3524
3564
  height: n.height * u.y,
@@ -3526,10 +3566,10 @@ function na(e) {
3526
3566
  y: n.y * u.y - s.scrollTop * u.y + c.y + d.y
3527
3567
  };
3528
3568
  }
3529
- function la(e) {
3569
+ function ra(e) {
3530
3570
  return Array.from(e.getClientRects());
3531
3571
  }
3532
- function ra(e) {
3572
+ function oa(e) {
3533
3573
  const t = Ee(e), n = wt(e), l = e.ownerDocument.body, r = re(t.scrollWidth, t.clientWidth, l.scrollWidth, l.clientWidth), a = re(t.scrollHeight, t.clientHeight, l.scrollHeight, l.clientHeight);
3534
3574
  let o = -n.scrollLeft + Qt(e);
3535
3575
  const i = -n.scrollTop;
@@ -3540,12 +3580,12 @@ function ra(e) {
3540
3580
  y: i
3541
3581
  };
3542
3582
  }
3543
- function oa(e, t) {
3583
+ function aa(e, t) {
3544
3584
  const n = ie(e), l = Ee(e), r = n.visualViewport;
3545
3585
  let a = l.clientWidth, o = l.clientHeight, i = 0, s = 0;
3546
3586
  if (r) {
3547
3587
  a = r.width, o = r.height;
3548
- const u = Zt();
3588
+ const u = Gt();
3549
3589
  (!u || u && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
3550
3590
  }
3551
3591
  return {
@@ -3555,7 +3595,7 @@ function oa(e, t) {
3555
3595
  y: s
3556
3596
  };
3557
3597
  }
3558
- function aa(e, t) {
3598
+ function ia(e, t) {
3559
3599
  const n = Me(e, !0, t === "fixed"), l = n.top + e.clientTop, r = n.left + e.clientLeft, a = Se(e) ? Ve(e) : $e(1), o = e.clientWidth * a.x, i = e.clientHeight * a.y, s = r * a.x, u = l * a.y;
3560
3600
  return {
3561
3601
  width: o,
@@ -3564,16 +3604,16 @@ function aa(e, t) {
3564
3604
  y: u
3565
3605
  };
3566
3606
  }
3567
- function hn(e, t, n) {
3607
+ function bn(e, t, n) {
3568
3608
  let l;
3569
3609
  if (t === "viewport")
3570
- l = oa(e, n);
3610
+ l = aa(e, n);
3571
3611
  else if (t === "document")
3572
- l = ra(Ee(e));
3612
+ l = oa(Ee(e));
3573
3613
  else if (he(t))
3574
- l = aa(t, n);
3614
+ l = ia(t, n);
3575
3615
  else {
3576
- const r = sl(e);
3616
+ const r = cl(e);
3577
3617
  l = {
3578
3618
  x: t.x - r.x,
3579
3619
  y: t.y - r.y,
@@ -3583,34 +3623,34 @@ function hn(e, t, n) {
3583
3623
  }
3584
3624
  return ft(l);
3585
3625
  }
3586
- function cl(e, t) {
3626
+ function fl(e, t) {
3587
3627
  const n = Pe(e);
3588
- return n === t || !he(n) || We(n) ? !1 : ye(n).position === "fixed" || cl(n, t);
3628
+ return n === t || !he(n) || We(n) ? !1 : ye(n).position === "fixed" || fl(n, t);
3589
3629
  }
3590
- function ia(e, t) {
3630
+ function sa(e, t) {
3591
3631
  const n = t.get(e);
3592
3632
  if (n)
3593
3633
  return n;
3594
- let l = Je(e, [], !1).filter((i) => he(i) && Ie(i) !== "body"), r = null;
3634
+ let l = _e(e, [], !1).filter((i) => he(i) && Ie(i) !== "body"), r = null;
3595
3635
  const a = ye(e).position === "fixed";
3596
3636
  let o = a ? Pe(e) : e;
3597
3637
  for (; he(o) && !We(o); ) {
3598
- const i = ye(o), s = Gt(o);
3599
- !s && i.position === "fixed" && (r = null), (a ? !s && !r : !s && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || lt(o) && !s && cl(e, o)) ? l = l.filter((c) => c !== o) : r = i, o = Pe(o);
3638
+ const i = ye(o), s = Zt(o);
3639
+ !s && i.position === "fixed" && (r = null), (a ? !s && !r : !s && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || rt(o) && !s && fl(e, o)) ? l = l.filter((c) => c !== o) : r = i, o = Pe(o);
3600
3640
  }
3601
3641
  return t.set(e, l), l;
3602
3642
  }
3603
- function sa(e) {
3643
+ function ua(e) {
3604
3644
  let {
3605
3645
  element: t,
3606
3646
  boundary: n,
3607
3647
  rootBoundary: l,
3608
3648
  strategy: r
3609
3649
  } = e;
3610
- const o = [...n === "clippingAncestors" ? bt(t) ? [] : ia(t, this._c) : [].concat(n), l], i = o[0], s = o.reduce((u, c) => {
3611
- const f = hn(t, c, r);
3650
+ const o = [...n === "clippingAncestors" ? bt(t) ? [] : sa(t, this._c) : [].concat(n), l], i = o[0], s = o.reduce((u, c) => {
3651
+ const f = bn(t, c, r);
3612
3652
  return u.top = re(f.top, u.top), u.right = Ce(f.right, u.right), u.bottom = Ce(f.bottom, u.bottom), u.left = re(f.left, u.left), u;
3613
- }, hn(t, i, r));
3653
+ }, bn(t, i, r));
3614
3654
  return {
3615
3655
  width: s.right - s.left,
3616
3656
  height: s.bottom - s.top,
@@ -3618,17 +3658,17 @@ function sa(e) {
3618
3658
  y: s.top
3619
3659
  };
3620
3660
  }
3621
- function ua(e) {
3661
+ function ca(e) {
3622
3662
  const {
3623
3663
  width: t,
3624
3664
  height: n
3625
- } = il(e);
3665
+ } = ul(e);
3626
3666
  return {
3627
3667
  width: t,
3628
3668
  height: n
3629
3669
  };
3630
3670
  }
3631
- function ca(e, t, n) {
3671
+ function da(e, t, n) {
3632
3672
  const l = Se(t), r = Ee(t), a = n === "fixed", o = Me(e, !0, a, t);
3633
3673
  let i = {
3634
3674
  scrollLeft: 0,
@@ -3636,11 +3676,11 @@ function ca(e, t, n) {
3636
3676
  };
3637
3677
  const s = $e(0);
3638
3678
  if (l || !l && !a)
3639
- if ((Ie(t) !== "body" || lt(r)) && (i = wt(t)), l) {
3679
+ if ((Ie(t) !== "body" || rt(r)) && (i = wt(t)), l) {
3640
3680
  const d = Me(t, !0, a, t);
3641
3681
  s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
3642
3682
  } else r && (s.x = Qt(r));
3643
- const u = r && !l && !a ? ul(r, i) : $e(0), c = o.left + i.scrollLeft - s.x - u.x, f = o.top + i.scrollTop - s.y - u.y;
3683
+ const u = r && !l && !a ? dl(r, i) : $e(0), c = o.left + i.scrollLeft - s.x - u.x, f = o.top + i.scrollTop - s.y - u.y;
3644
3684
  return {
3645
3685
  x: c,
3646
3686
  y: f,
@@ -3651,7 +3691,7 @@ function ca(e, t, n) {
3651
3691
  function Tt(e) {
3652
3692
  return ye(e).position === "static";
3653
3693
  }
3654
- function yn(e, t) {
3694
+ function wn(e, t) {
3655
3695
  if (!Se(e) || ye(e).position === "fixed")
3656
3696
  return null;
3657
3697
  if (t)
@@ -3659,7 +3699,7 @@ function yn(e, t) {
3659
3699
  let n = e.offsetParent;
3660
3700
  return Ee(e) === n && (n = n.ownerDocument.body), n;
3661
3701
  }
3662
- function dl(e, t) {
3702
+ function vl(e, t) {
3663
3703
  const n = ie(e);
3664
3704
  if (bt(e))
3665
3705
  return n;
@@ -3672,15 +3712,15 @@ function dl(e, t) {
3672
3712
  }
3673
3713
  return n;
3674
3714
  }
3675
- let l = yn(e, t);
3676
- for (; l && Jo(l) && Tt(l); )
3677
- l = yn(l, t);
3678
- return l && We(l) && Tt(l) && !Gt(l) ? n : l || _o(e) || n;
3715
+ let l = wn(e, t);
3716
+ for (; l && _o(l) && Tt(l); )
3717
+ l = wn(l, t);
3718
+ return l && We(l) && Tt(l) && !Zt(l) ? n : l || ea(e) || n;
3679
3719
  }
3680
- const da = async function(e) {
3681
- const t = this.getOffsetParent || dl, n = this.getDimensions, l = await n(e.floating);
3720
+ const fa = async function(e) {
3721
+ const t = this.getOffsetParent || vl, n = this.getDimensions, l = await n(e.floating);
3682
3722
  return {
3683
- reference: ca(e.reference, await t(e.floating), e.strategy),
3723
+ reference: da(e.reference, await t(e.floating), e.strategy),
3684
3724
  floating: {
3685
3725
  x: 0,
3686
3726
  y: 0,
@@ -3689,22 +3729,22 @@ const da = async function(e) {
3689
3729
  }
3690
3730
  };
3691
3731
  };
3692
- function fa(e) {
3732
+ function va(e) {
3693
3733
  return ye(e).direction === "rtl";
3694
3734
  }
3695
- const va = {
3696
- convertOffsetParentRelativeRectToViewportRelativeRect: na,
3735
+ const pa = {
3736
+ convertOffsetParentRelativeRectToViewportRelativeRect: la,
3697
3737
  getDocumentElement: Ee,
3698
- getClippingRect: sa,
3699
- getOffsetParent: dl,
3700
- getElementRects: da,
3701
- getClientRects: la,
3702
- getDimensions: ua,
3738
+ getClippingRect: ua,
3739
+ getOffsetParent: vl,
3740
+ getElementRects: fa,
3741
+ getClientRects: ra,
3742
+ getDimensions: ca,
3703
3743
  getScale: Ve,
3704
3744
  isElement: he,
3705
- isRTL: fa
3745
+ isRTL: va
3706
3746
  };
3707
- function pa(e, t) {
3747
+ function ma(e, t) {
3708
3748
  let n = null, l;
3709
3749
  const r = Ee(e);
3710
3750
  function a() {
@@ -3721,17 +3761,17 @@ function pa(e, t) {
3721
3761
  } = e.getBoundingClientRect();
3722
3762
  if (i || t(), !f || !d)
3723
3763
  return;
3724
- const v = st(c), p = st(r.clientWidth - (u + f)), m = st(r.clientHeight - (c + d)), g = st(u), y = {
3764
+ const v = ut(c), p = ut(r.clientWidth - (u + f)), m = ut(r.clientHeight - (c + d)), g = ut(u), y = {
3725
3765
  rootMargin: -v + "px " + -p + "px " + -m + "px " + -g + "px",
3726
3766
  threshold: re(0, Ce(1, s)) || 1
3727
3767
  };
3728
3768
  let T = !0;
3729
3769
  function A(C) {
3730
- const M = C[0].intersectionRatio;
3731
- if (M !== s) {
3770
+ const B = C[0].intersectionRatio;
3771
+ if (B !== s) {
3732
3772
  if (!T)
3733
3773
  return o();
3734
- M ? o(!1, M) : l = setTimeout(() => {
3774
+ B ? o(!1, B) : l = setTimeout(() => {
3735
3775
  o(!1, 1e-7);
3736
3776
  }, 1e3);
3737
3777
  }
@@ -3750,7 +3790,7 @@ function pa(e, t) {
3750
3790
  }
3751
3791
  return o(!0), a;
3752
3792
  }
3753
- function ma(e, t, n, l) {
3793
+ function ga(e, t, n, l) {
3754
3794
  l === void 0 && (l = {});
3755
3795
  const {
3756
3796
  ancestorScroll: r = !0,
@@ -3758,13 +3798,13 @@ function ma(e, t, n, l) {
3758
3798
  elementResize: o = typeof ResizeObserver == "function",
3759
3799
  layoutShift: i = typeof IntersectionObserver == "function",
3760
3800
  animationFrame: s = !1
3761
- } = l, u = Xt(e), c = r || a ? [...u ? Je(u) : [], ...Je(t)] : [];
3801
+ } = l, u = Xt(e), c = r || a ? [...u ? _e(u) : [], ..._e(t)] : [];
3762
3802
  c.forEach((h) => {
3763
3803
  r && h.addEventListener("scroll", n, {
3764
3804
  passive: !0
3765
3805
  }), a && h.addEventListener("resize", n);
3766
3806
  });
3767
- const f = u && i ? pa(u, n) : null;
3807
+ const f = u && i ? ma(u, n) : null;
3768
3808
  let d = -1, v = null;
3769
3809
  o && (v = new ResizeObserver((h) => {
3770
3810
  let [y] = h;
@@ -3786,53 +3826,53 @@ function ma(e, t, n, l) {
3786
3826
  }), f == null || f(), (h = v) == null || h.disconnect(), v = null, s && cancelAnimationFrame(p);
3787
3827
  };
3788
3828
  }
3789
- const ga = Zo, ha = Yo, ya = Xo, ba = Qo, wa = qo, $a = (e, t, n) => {
3829
+ const ha = Xo, ya = Zo, ba = Qo, wa = Jo, $a = Ko, xa = (e, t, n) => {
3790
3830
  const l = /* @__PURE__ */ new Map(), r = {
3791
- platform: va,
3831
+ platform: pa,
3792
3832
  ...n
3793
3833
  }, a = {
3794
3834
  ...r.platform,
3795
3835
  _c: l
3796
3836
  };
3797
- return zo(e, t, {
3837
+ return qo(e, t, {
3798
3838
  ...r,
3799
3839
  platform: a
3800
3840
  });
3801
3841
  };
3802
- function xa(e) {
3842
+ function Sa(e) {
3803
3843
  return e != null && typeof e == "object" && "$el" in e;
3804
3844
  }
3805
3845
  function Mt(e) {
3806
- if (xa(e)) {
3846
+ if (Sa(e)) {
3807
3847
  const t = e.$el;
3808
3848
  return Yt(t) && Ie(t) === "#comment" ? null : t;
3809
3849
  }
3810
3850
  return e;
3811
3851
  }
3812
3852
  function je(e) {
3813
- return typeof e == "function" ? e() : S(e);
3853
+ return typeof e == "function" ? e() : x(e);
3814
3854
  }
3815
- function Sa(e) {
3855
+ function Ea(e) {
3816
3856
  return {
3817
3857
  name: "arrow",
3818
3858
  options: e,
3819
3859
  fn(t) {
3820
3860
  const n = Mt(je(e.element));
3821
- return n == null ? {} : wa({
3861
+ return n == null ? {} : $a({
3822
3862
  element: n,
3823
3863
  padding: e.padding
3824
3864
  }).fn(t);
3825
3865
  }
3826
3866
  };
3827
3867
  }
3828
- function fl(e) {
3868
+ function pl(e) {
3829
3869
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3830
3870
  }
3831
- function bn(e, t) {
3832
- const n = fl(e);
3871
+ function $n(e, t) {
3872
+ const n = pl(e);
3833
3873
  return Math.round(t * n) / n;
3834
3874
  }
3835
- function Ea(e, t, n) {
3875
+ function Ta(e, t, n) {
3836
3876
  n === void 0 && (n = {});
3837
3877
  const l = n.whileElementsMounted, r = w(() => {
3838
3878
  var L;
@@ -3846,7 +3886,7 @@ function Ea(e, t, n) {
3846
3886
  }), s = w(() => {
3847
3887
  var L;
3848
3888
  return (L = je(n.transform)) != null ? L : !0;
3849
- }), u = w(() => Mt(e.value)), c = w(() => Mt(t.value)), f = x(0), d = x(0), v = x(i.value), p = x(o.value), m = Ye({}), g = x(!1), h = w(() => {
3889
+ }), u = w(() => Mt(e.value)), c = w(() => Mt(t.value)), f = S(0), d = S(0), v = S(i.value), p = S(o.value), m = Ye({}), g = S(!1), h = w(() => {
3850
3890
  const L = {
3851
3891
  position: v.value,
3852
3892
  left: "0",
@@ -3854,16 +3894,16 @@ function Ea(e, t, n) {
3854
3894
  };
3855
3895
  if (!c.value)
3856
3896
  return L;
3857
- const I = bn(c.value, f.value), X = bn(c.value, d.value);
3897
+ const N = $n(c.value, f.value), X = $n(c.value, d.value);
3858
3898
  return s.value ? {
3859
3899
  ...L,
3860
- transform: "translate(" + I + "px, " + X + "px)",
3861
- ...fl(c.value) >= 1.5 && {
3900
+ transform: "translate(" + N + "px, " + X + "px)",
3901
+ ...pl(c.value) >= 1.5 && {
3862
3902
  willChange: "transform"
3863
3903
  }
3864
3904
  } : {
3865
3905
  position: v.value,
3866
- left: I + "px",
3906
+ left: N + "px",
3867
3907
  top: X + "px"
3868
3908
  };
3869
3909
  });
@@ -3872,12 +3912,12 @@ function Ea(e, t, n) {
3872
3912
  if (u.value == null || c.value == null)
3873
3913
  return;
3874
3914
  const L = r.value;
3875
- $a(u.value, c.value, {
3915
+ xa(u.value, c.value, {
3876
3916
  middleware: a.value,
3877
3917
  placement: o.value,
3878
3918
  strategy: i.value
3879
- }).then((I) => {
3880
- f.value = I.x, d.value = I.y, v.value = I.strategy, p.value = I.placement, m.value = I.middlewareData, g.value = L !== !1;
3919
+ }).then((N) => {
3920
+ f.value = N.x, d.value = N.y, v.value = N.strategy, p.value = N.placement, m.value = N.middlewareData, g.value = L !== !1;
3881
3921
  });
3882
3922
  }
3883
3923
  function A() {
@@ -3893,16 +3933,16 @@ function Ea(e, t, n) {
3893
3933
  return;
3894
3934
  }
3895
3935
  }
3896
- function M() {
3936
+ function B() {
3897
3937
  r.value || (g.value = !1);
3898
3938
  }
3899
3939
  return me([a, o, i, r], T, {
3900
3940
  flush: "sync"
3901
3941
  }), me([u, c], C, {
3902
3942
  flush: "sync"
3903
- }), me(r, M, {
3943
+ }), me(r, B, {
3904
3944
  flush: "sync"
3905
- }), bl() && wl(A), {
3945
+ }), $l() && xl(A), {
3906
3946
  x: Ne(f),
3907
3947
  y: Ne(d),
3908
3948
  strategy: Ne(v),
@@ -3913,7 +3953,7 @@ function Ea(e, t, n) {
3913
3953
  update: T
3914
3954
  };
3915
3955
  }
3916
- const Ta = ["innerHTML"], Ha = {
3956
+ const Oa = ["innerHTML"], Wa = {
3917
3957
  __name: "Tooltip",
3918
3958
  props: {
3919
3959
  content: {
@@ -3956,13 +3996,13 @@ const Ta = ["innerHTML"], Ha = {
3956
3996
  floatingStyles: a,
3957
3997
  middlewareData: o,
3958
3998
  placement: i
3959
- } = Ea(n, l, {
3999
+ } = Ta(n, l, {
3960
4000
  middleware: [
3961
- t.placement ? null : ha(),
3962
- ga(10),
3963
- ya({ crossAxis: !0, padding: 5 }),
3964
- Sa({ element: r }),
3965
- ba({
4001
+ t.placement ? null : ya(),
4002
+ ha(10),
4003
+ ba({ crossAxis: !0, padding: 5 }),
4004
+ Ea({ element: r }),
4005
+ wa({
3966
4006
  apply({ availableWidth: c, availableHeight: f, elements: d }) {
3967
4007
  Object.assign(d.floating.style, {
3968
4008
  maxWidth: t.maxWidth ? `${Math.min(c, t.maxWidth) / 16}rem` : "",
@@ -3971,7 +4011,7 @@ const Ta = ["innerHTML"], Ha = {
3971
4011
  }
3972
4012
  })
3973
4013
  ],
3974
- whileElementsMounted: ma,
4014
+ whileElementsMounted: ga,
3975
4015
  placement: t.placement
3976
4016
  }), s = (c) => ({
3977
4017
  top: 0,
@@ -4002,44 +4042,44 @@ const Ta = ["innerHTML"], Ha = {
4002
4042
  ref: n,
4003
4043
  class: "rvc-group/tooltip"
4004
4044
  }, [
4005
- k(c.$slots, "default"),
4045
+ O(c.$slots, "default"),
4006
4046
  $("div", {
4007
4047
  ref_key: "tooltipRef",
4008
4048
  ref: l,
4009
- class: N(["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 }]),
4010
- style: $l(S(a))
4049
+ class: I(["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 }]),
4050
+ style: Sl(x(a))
4011
4051
  }, [
4012
- k(c.$slots, "content", { content: e.content }, () => [
4052
+ O(c.$slots, "content", { content: e.content }, () => [
4013
4053
  e.content ? (b(), E("div", {
4014
4054
  key: 0,
4015
4055
  innerHTML: e.content
4016
- }, null, 8, Ta)) : H("", !0)
4056
+ }, null, 8, Oa)) : j("", !0)
4017
4057
  ]),
4018
- $("div", Z({
4058
+ $("div", G({
4019
4059
  ref_key: "arrowRef",
4020
4060
  ref: r,
4021
4061
  class: "rvc-absolute rvc-tooltip-arrow"
4022
- }, u(S(o))), null, 16)
4062
+ }, u(x(o))), null, 16)
4023
4063
  ], 6)
4024
4064
  ], 512));
4025
4065
  }
4026
4066
  };
4027
4067
  export {
4028
- Oa as Accordion,
4029
- La as Alert,
4030
- Ca as Badge,
4031
- ut as ButtonBase,
4032
- Pa as Checkbox,
4033
- Aa as DataTable,
4034
- Ra as Drawer,
4035
- Fa as Dropdown,
4036
- Ma as EmptyState,
4037
- Tn as FormSelect,
4038
- Ba as Lightswitch,
4039
- Ia as Modal,
4040
- Kl as Pagination,
4041
- Na as Radio,
4042
- ja as Tabs,
4043
- Va as Toast,
4044
- Ha as Tooltip
4068
+ La as Accordion,
4069
+ Ca as Alert,
4070
+ Pa as Badge,
4071
+ Xe as ButtonBase,
4072
+ Aa as Checkbox,
4073
+ Da as DataTable,
4074
+ Fa as Drawer,
4075
+ Ma as Dropdown,
4076
+ Ba as EmptyState,
4077
+ kn as FormSelect,
4078
+ Ia as Lightswitch,
4079
+ Na as Modal,
4080
+ Gl as Pagination,
4081
+ ja as Radio,
4082
+ Va as Tabs,
4083
+ Ha as Toast,
4084
+ Wa as Tooltip
4045
4085
  };