@point-hub/papp 0.0.145 → 0.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as Fa from "vue";
2
- import { defineComponent as $, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as ne, resolveComponent as K, createVNode as H, createElementVNode as O, withCtx as _, toDisplayString as q, normalizeClass as z, normalizeStyle as Ye, createTextVNode as $e, createCommentVNode as V, createBlock as X, computed as T, Fragment as fe, renderList as Ie, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as ke, watchEffect as Ee, onMounted as te, cloneVNode as Fo, h as ue, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as $l, Transition as Vo, toRef as Rl, readonly as Ll, customRef as Fl, getCurrentScope as _l, toValue as ut, useCssVars as Vl, useSlots as No, toRefs as jo, withKeys as Nl, withDirectives as Xe, vShow as jl, onBeforeUnmount as vr, isRef as gt, resolveDynamicComponent as ur, mergeProps as Wl, normalizeProps as Hl, guardReactiveProps as ql, useModel as de, isReactive as Va, isVNode as zl, createApp as Na, createSlots as Ul, mergeModels as we, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Yl } from "vue";
2
+ import { defineComponent as R, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as ne, resolveComponent as K, createVNode as H, createElementVNode as O, withCtx as _, toDisplayString as q, normalizeClass as z, normalizeStyle as Ye, createTextVNode as $e, createCommentVNode as V, createBlock as X, computed as T, Fragment as fe, renderList as Ie, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as ke, watchEffect as Ee, onMounted as te, cloneVNode as Fo, h as ue, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as $l, Transition as Vo, toRef as Rl, readonly as Ll, customRef as Fl, getCurrentScope as _l, toValue as ut, useCssVars as Vl, useSlots as No, toRefs as jo, withKeys as Nl, withDirectives as Xe, vShow as jl, onBeforeUnmount as vr, isRef as gt, resolveDynamicComponent as ur, mergeProps as Wl, normalizeProps as Hl, guardReactiveProps as ql, useModel as de, isReactive as Va, isVNode as zl, createApp as Na, createSlots as Ul, mergeModels as we, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Yl } from "vue";
3
3
  import { useRoute as qo } from "vue-router";
4
4
  import { defineStore as mr } from "pinia";
5
- const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
5
+ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
6
6
  __name: "base-accordion",
7
7
  props: {
8
8
  alwaysOpen: { type: Boolean, default: !1 }
@@ -18,7 +18,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
18
18
  for (const [r, a] of t)
19
19
  n[r] = a;
20
20
  return n;
21
- }, Gl = /* @__PURE__ */ oe(Ql, [["__scopeId", "data-v-72d57350"]]), Kl = { class: "accordion-item" }, Jl = 32, Zl = /* @__PURE__ */ $({
21
+ }, Gl = /* @__PURE__ */ oe(Ql, [["__scopeId", "data-v-72d57350"]]), Kl = { class: "accordion-item" }, Jl = 32, Zl = /* @__PURE__ */ R({
22
22
  __name: "base-accordion-item",
23
23
  props: {
24
24
  itemId: {},
@@ -83,7 +83,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
83
83
  }, rs = {
84
84
  key: 0,
85
85
  class: "block i-fa7-regular:circle-check"
86
- }, as = { class: "alert-text" }, os = { class: "font-extrabold" }, is = /* @__PURE__ */ $({
86
+ }, as = { class: "alert-text" }, os = { class: "font-extrabold" }, is = /* @__PURE__ */ R({
87
87
  __name: "base-alert",
88
88
  props: {
89
89
  title: { default: "" },
@@ -155,7 +155,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ $({
155
155
  ]));
156
156
  };
157
157
  }
158
- }), ls = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-b4b4a5d0"]]), ss = ["src"], us = /* @__PURE__ */ $({
158
+ }), ls = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-b4b4a5d0"]]), ss = ["src"], us = /* @__PURE__ */ R({
159
159
  __name: "base-avatar",
160
160
  props: {
161
161
  name: {},
@@ -216,7 +216,7 @@ function fs(e, t) {
216
216
  const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7a"]]), vs = {
217
217
  key: 0,
218
218
  class: "h-2 w-2 rounded-full bg-current"
219
- }, ms = /* @__PURE__ */ $({
219
+ }, ms = /* @__PURE__ */ R({
220
220
  __name: "base-badge",
221
221
  props: {
222
222
  color: { default: "primary" },
@@ -233,7 +233,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
233
233
  Q(a.$slots, "default", {}, void 0, !0)
234
234
  ]));
235
235
  }
236
- }), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul" }, bs = /* @__PURE__ */ $({
236
+ }), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul" }, bs = /* @__PURE__ */ R({
237
237
  __name: "base-breadcrumb",
238
238
  props: {
239
239
  items: {},
@@ -271,7 +271,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
271
271
  }, xs = {
272
272
  key: 1,
273
273
  class: "spinner spinner-white spinner-xs"
274
- }, ks = /* @__PURE__ */ $({
274
+ }, ks = /* @__PURE__ */ R({
275
275
  __name: "base-button",
276
276
  props: {
277
277
  type: { default: "button" },
@@ -304,7 +304,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
304
304
  }), ia = /* @__PURE__ */ oe(ks, [["__scopeId", "data-v-0a388736"]]), Ss = { class: "card-header" }, Os = { class: "flex justify-between items-center text-xs uppercase font-semibold" }, Cs = {
305
305
  key: 0,
306
306
  class: "border-b border-slate-200 dark:border-slate-700 -mx-4 my-4"
307
- }, Es = /* @__PURE__ */ $({
307
+ }, Es = /* @__PURE__ */ R({
308
308
  __name: "base-card",
309
309
  props: {
310
310
  title: {},
@@ -343,7 +343,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
343
343
  }), Ts = /* @__PURE__ */ oe(Es, [["__scopeId", "data-v-e824d2d1"]]), Bs = {
344
344
  key: 0,
345
345
  class: "text-xs text-slate-500"
346
- }, Ps = /* @__PURE__ */ $({
346
+ }, Ps = /* @__PURE__ */ R({
347
347
  __name: "base-divider",
348
348
  props: {
349
349
  text: {},
@@ -381,18 +381,18 @@ function tn(e, t, n) {
381
381
  let u;
382
382
  n.key && ((i = n.debug) != null && i.call(n)) && (u = Date.now());
383
383
  const c = e();
384
- if (!(c.length !== r.length || c.some((g, v) => r[v] !== g)))
384
+ if (!(c.length !== r.length || c.some((g, p) => r[p] !== g)))
385
385
  return a;
386
386
  r = c;
387
387
  let h;
388
388
  if (n.key && ((l = n.debug) != null && l.call(n)) && (h = Date.now()), a = t(...c), n.key && ((s = n.debug) != null && s.call(n))) {
389
- const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16, b = (y, C) => {
389
+ const g = Math.round((Date.now() - u) * 100) / 100, p = Math.round((Date.now() - h) * 100) / 100, m = p / 16, b = (y, C) => {
390
390
  for (y = String(y); y.length < C; )
391
391
  y = " " + y;
392
392
  return y;
393
393
  };
394
394
  console.info(
395
- `%c⏱ ${b(v, 5)} /${b(g, 5)} ms`,
395
+ `%c⏱ ${b(p, 5)} /${b(g, 5)} ms`,
396
396
  `
397
397
  font-size: .6rem;
398
398
  font-weight: bold;
@@ -651,11 +651,11 @@ class Ns {
651
651
  this.pendingMeasuredCacheIndexes = [];
652
652
  const d = this.measurementsCache.slice(0, s);
653
653
  for (let u = s; u < n; u++) {
654
- const c = o(u), f = this.options.lanes === 1 ? d[u - 1] : this.getFurthestMeasurement(d, u), h = f ? f.end + this.options.gap : r + a, g = l.get(c), v = typeof g == "number" ? g : this.options.estimateSize(u), m = h + v, b = f ? f.lane : u % this.options.lanes;
654
+ const c = o(u), f = this.options.lanes === 1 ? d[u - 1] : this.getFurthestMeasurement(d, u), h = f ? f.end + this.options.gap : r + a, g = l.get(c), p = typeof g == "number" ? g : this.options.estimateSize(u), m = h + p, b = f ? f.lane : u % this.options.lanes;
655
655
  d[u] = {
656
656
  index: u,
657
657
  start: h,
658
- size: v,
658
+ size: p,
659
659
  end: m,
660
660
  key: c,
661
661
  lane: b
@@ -1002,7 +1002,7 @@ let Us = /* @__PURE__ */ Symbol("headlessui.useid"), Ys = 0;
1002
1002
  const Te = (za = Fa.useId) != null ? za : function() {
1003
1003
  return Fa.inject(Us, () => `${++Ys}`)();
1004
1004
  };
1005
- function R(e) {
1005
+ function F(e) {
1006
1006
  var t;
1007
1007
  if (e == null || e.value == null) return null;
1008
1008
  let n = (t = e.value.$el) != null ? t : e.value;
@@ -1044,7 +1044,7 @@ function je(e) {
1044
1044
  if (Ln.isServer) return null;
1045
1045
  if (e instanceof Node) return e.ownerDocument;
1046
1046
  if (e != null && e.hasOwnProperty("value")) {
1047
- let t = R(e);
1047
+ let t = F(e);
1048
1048
  if (t) return t.ownerDocument;
1049
1049
  }
1050
1050
  return document;
@@ -1155,7 +1155,7 @@ function ua(e, t, n = T(() => !0)) {
1155
1155
  })(e);
1156
1156
  for (let d of s) {
1157
1157
  if (d === null) continue;
1158
- let u = d instanceof HTMLElement ? d : R(d);
1158
+ let u = d instanceof HTMLElement ? d : F(d);
1159
1159
  if (u != null && u.contains(l) || o.composed && o.composedPath().includes(u)) return;
1160
1160
  }
1161
1161
  return !sa(l, la.Loose) && l.tabIndex !== -1 && o.preventDefault(), t(o, l);
@@ -1182,7 +1182,7 @@ function da(e, t) {
1182
1182
  n.value = Ya(e.value.type, e.value.as);
1183
1183
  }), Ee(() => {
1184
1184
  var r;
1185
- n.value || R(t) && R(t) instanceof HTMLButtonElement && !((r = R(t)) != null && r.hasAttribute("type")) && (n.value = "button");
1185
+ n.value || F(t) && F(t) instanceof HTMLButtonElement && !((r = F(t)) != null && r.hasAttribute("type")) && (n.value = "button");
1186
1186
  }), n;
1187
1187
  }
1188
1188
  function Xa(e) {
@@ -1233,12 +1233,12 @@ function Or({ props: e, attrs: t, slots: n, slot: r, name: a }) {
1233
1233
  if (l === "template") {
1234
1234
  if (d = ei(d ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
1235
1235
  let [c, ...f] = d ?? [];
1236
- if (!ru(c) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((v) => v.trim()).filter((v, m, b) => b.indexOf(v) === m).sort((v, m) => v.localeCompare(m)).map((v) => ` - ${v}`).join(`
1237
- `), "", "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((v) => ` - ${v}`).join(`
1236
+ if (!ru(c) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((p) => p.trim()).filter((p, m, b) => b.indexOf(p) === m).sort((p, m) => p.localeCompare(m)).map((p) => ` - ${p}`).join(`
1237
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
1238
1238
  `)].join(`
1239
1239
  `));
1240
1240
  let h = ti((i = c.props) != null ? i : {}, s, u), g = Fo(c, h, !0);
1241
- for (let v in h) v.startsWith("on") && (g.props || (g.props = {}), g.props[v] = h[v]);
1241
+ for (let p in h) p.startsWith("on") && (g.props || (g.props = {}), g.props[p] = h[p]);
1242
1242
  return g;
1243
1243
  }
1244
1244
  return Array.isArray(d) && d.length === 1 ? d[0] : d;
@@ -1277,7 +1277,7 @@ function ru(e) {
1277
1277
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1278
1278
  }
1279
1279
  var Yt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Yt || {});
1280
- let Xt = $({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1280
+ let Xt = R({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1281
1281
  return () => {
1282
1282
  var r;
1283
1283
  let { features: a, ...o } = e, i = { "aria-hidden": (a & 2) === 2 ? !0 : (r = o["aria-hidden"]) != null ? r : void 0, hidden: (a & 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", ...(a & 4) === 4 && (a & 2) !== 2 && { display: "none" } } };
@@ -1379,16 +1379,16 @@ function Gt(e) {
1379
1379
  }
1380
1380
  return t;
1381
1381
  }
1382
- let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvider", setup(e, { slots: t }) {
1382
+ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvider", setup(e, { slots: t }) {
1383
1383
  let n = Gt("VirtualProvider"), r = T(() => {
1384
- let l = R(n.optionsRef);
1384
+ let l = F(n.optionsRef);
1385
1385
  if (!l) return { start: 0, end: 0 };
1386
1386
  let s = window.getComputedStyle(l);
1387
1387
  return { start: parseFloat(s.paddingBlockStart || s.paddingTop), end: parseFloat(s.paddingBlockEnd || s.paddingBottom) };
1388
1388
  }), a = Hs(T(() => ({ scrollPaddingStart: r.value.start, scrollPaddingEnd: r.value.end, count: n.virtual.value.options.length, estimateSize() {
1389
1389
  return 40;
1390
1390
  }, getScrollElement() {
1391
- return R(n.optionsRef);
1391
+ return F(n.optionsRef);
1392
1392
  }, overscan: 12 }))), o = T(() => {
1393
1393
  var l;
1394
1394
  return (l = n.virtual.value) == null ? void 0 : l.options;
@@ -1401,45 +1401,45 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1401
1401
  n.activeOptionIndex.value !== null && n.virtual.value.options.length > n.activeOptionIndex.value && a.value.scrollToIndex(n.activeOptionIndex.value);
1402
1402
  }
1403
1403
  } }, a.value.getVirtualItems().map((l) => Fo(t.default({ option: n.virtual.value.options[l.index], open: n.comboboxState.value === 0 })[0], { key: `${i.value}-${l.index}`, "data-index": l.index, "aria-setsize": n.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
1404
- } }), pu = $({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
1404
+ } }), pu = R({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
1405
1405
  let a = E(1), o = E(null), i = E(null), l = E(null), s = E(null), d = E({ static: !1, hold: !1 }), u = E([]), c = E(null), f = E(2), h = E(!1);
1406
1406
  function g(P = (I) => I) {
1407
- let I = c.value !== null ? u.value[c.value] : null, F = P(u.value.slice()), L = F.length > 0 && F[0].dataRef.order.value !== null ? F.sort((Y, G) => Y.dataRef.order.value - G.dataRef.order.value) : bt(F, (Y) => R(Y.dataRef.domRef)), U = I ? L.indexOf(I) : null;
1408
- return U === -1 && (U = null), { options: L, activeOptionIndex: U };
1407
+ let I = c.value !== null ? u.value[c.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((Y, G) => Y.dataRef.order.value - G.dataRef.order.value) : bt(L, (Y) => F(Y.dataRef.domRef)), U = I ? $.indexOf(I) : null;
1408
+ return U === -1 && (U = null), { options: $, activeOptionIndex: U };
1409
1409
  }
1410
- let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(v.value, { 1: [], 0: void 0 }) : b.value), p = null, k = null;
1411
- function A(P) {
1412
- return Ce(v.value, { 0() {
1410
+ let p = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(p.value, { 1: [], 0: void 0 }) : b.value), v = null, x = null;
1411
+ function k(P) {
1412
+ return Ce(p.value, { 0() {
1413
1413
  return y?.(P);
1414
1414
  }, 1: () => {
1415
- let I = Le(x.value.value).slice(), F = Le(P), L = I.findIndex((U) => x.compare(F, Le(U)));
1416
- return L === -1 ? I.push(F) : I.splice(L, 1), y?.(I);
1415
+ let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((U) => A.compare(L, Le(U)));
1416
+ return $ === -1 ? I.push(L) : I.splice($, 1), y?.(I);
1417
1417
  } });
1418
1418
  }
1419
1419
  let S = T(() => {
1420
1420
  });
1421
1421
  ne([S], ([P], [I]) => {
1422
- if (x.virtual.value && P && I && c.value !== null) {
1423
- let F = P.indexOf(I[c.value]);
1424
- F !== -1 ? c.value = F : c.value = null;
1422
+ if (A.virtual.value && P && I && c.value !== null) {
1423
+ let L = P.indexOf(I[c.value]);
1424
+ L !== -1 ? c.value = L : c.value = null;
1425
1425
  }
1426
1426
  });
1427
- let x = { comboboxState: a, value: C, mode: v, compare(P, I) {
1427
+ let A = { comboboxState: a, value: C, mode: p, compare(P, I) {
1428
1428
  if (typeof e.by == "string") {
1429
- let F = e.by;
1430
- return P?.[F] === I?.[F];
1429
+ let L = e.by;
1430
+ return P?.[L] === I?.[L];
1431
1431
  }
1432
1432
  return e.by === null ? su(P, I) : e.by(P, I);
1433
1433
  }, calculateIndex(P) {
1434
- return x.virtual.value ? e.by === null ? x.virtual.value.options.indexOf(P) : x.virtual.value.options.findIndex((I) => x.compare(I, P)) : u.value.findIndex((I) => x.compare(I.dataRef.value, P));
1434
+ return A.virtual.value ? e.by === null ? A.virtual.value.options.indexOf(P) : A.virtual.value.options.findIndex((I) => A.compare(I, P)) : u.value.findIndex((I) => A.compare(I.dataRef.value, P));
1435
1435
  }, defaultValue: T(() => e.defaultValue), nullable: m, immediate: T(() => !1), virtual: T(() => null), inputRef: i, labelRef: o, buttonRef: l, optionsRef: s, disabled: T(() => e.disabled), options: u, change(P) {
1436
1436
  y(P);
1437
1437
  }, activeOptionIndex: T(() => {
1438
- if (h.value && c.value === null && (x.virtual.value ? x.virtual.value.options.length > 0 : u.value.length > 0)) {
1439
- if (x.virtual.value) {
1440
- let I = x.virtual.value.options.findIndex((F) => {
1441
- var L;
1442
- return !((L = x.virtual.value) != null && L.disabled(F));
1438
+ if (h.value && c.value === null && (A.virtual.value ? A.virtual.value.options.length > 0 : u.value.length > 0)) {
1439
+ if (A.virtual.value) {
1440
+ let I = A.virtual.value.options.findIndex((L) => {
1441
+ var $;
1442
+ return !(($ = A.virtual.value) != null && $.disabled(L));
1443
1443
  });
1444
1444
  if (I !== -1) return I;
1445
1445
  }
@@ -1451,88 +1451,88 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1451
1451
  h.value = !1, !e.disabled && a.value !== 1 && (a.value = 1, c.value = null);
1452
1452
  }, openCombobox() {
1453
1453
  if (h.value = !0, !e.disabled && a.value !== 0) {
1454
- if (x.value.value) {
1455
- let P = x.calculateIndex(x.value.value);
1454
+ if (A.value.value) {
1455
+ let P = A.calculateIndex(A.value.value);
1456
1456
  P !== -1 && (c.value = P);
1457
1457
  }
1458
1458
  a.value = 0;
1459
1459
  }
1460
1460
  }, setActivationTrigger(P) {
1461
1461
  f.value = P;
1462
- }, goToOption(P, I, F) {
1463
- h.value = !1, p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1462
+ }, goToOption(P, I, L) {
1463
+ h.value = !1, v !== null && cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1464
1464
  if (e.disabled || s.value && !d.value.static && a.value === 1) return;
1465
- if (x.virtual.value) {
1466
- c.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => x.virtual.value.options, resolveActiveIndex: () => {
1465
+ if (A.virtual.value) {
1466
+ c.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => A.virtual.value.options, resolveActiveIndex: () => {
1467
1467
  var Y, G;
1468
- return (G = (Y = x.activeOptionIndex.value) != null ? Y : x.virtual.value.options.findIndex((ae) => {
1468
+ return (G = (Y = A.activeOptionIndex.value) != null ? Y : A.virtual.value.options.findIndex((ae) => {
1469
1469
  var re;
1470
- return !((re = x.virtual.value) != null && re.disabled(ae));
1470
+ return !((re = A.virtual.value) != null && re.disabled(ae));
1471
1471
  })) != null ? G : null;
1472
- }, resolveDisabled: (Y) => x.virtual.value.disabled(Y), resolveId() {
1472
+ }, resolveDisabled: (Y) => A.virtual.value.disabled(Y), resolveId() {
1473
1473
  throw new Error("Function not implemented.");
1474
- } }), f.value = F ?? 2;
1474
+ } }), f.value = L ?? 2;
1475
1475
  return;
1476
1476
  }
1477
- let L = g();
1478
- if (L.activeOptionIndex === null) {
1479
- let Y = L.options.findIndex((G) => !G.dataRef.disabled);
1480
- Y !== -1 && (L.activeOptionIndex = Y);
1477
+ let $ = g();
1478
+ if ($.activeOptionIndex === null) {
1479
+ let Y = $.options.findIndex((G) => !G.dataRef.disabled);
1480
+ Y !== -1 && ($.activeOptionIndex = Y);
1481
1481
  }
1482
- let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => L.options, resolveActiveIndex: () => L.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
1483
- c.value = U, f.value = F ?? 2, u.value = L.options;
1482
+ let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
1483
+ c.value = U, f.value = L ?? 2, u.value = $.options;
1484
1484
  });
1485
1485
  }, selectOption(P) {
1486
- let I = u.value.find((L) => L.id === P);
1486
+ let I = u.value.find(($) => $.id === P);
1487
1487
  if (!I) return;
1488
- let { dataRef: F } = I;
1489
- A(F.value);
1488
+ let { dataRef: L } = I;
1489
+ k(L.value);
1490
1490
  }, selectActiveOption() {
1491
- if (x.activeOptionIndex.value !== null) {
1492
- if (x.virtual.value) A(x.virtual.value.options[x.activeOptionIndex.value]);
1491
+ if (A.activeOptionIndex.value !== null) {
1492
+ if (A.virtual.value) k(A.virtual.value.options[A.activeOptionIndex.value]);
1493
1493
  else {
1494
- let { dataRef: P } = u.value[x.activeOptionIndex.value];
1495
- A(P.value);
1494
+ let { dataRef: P } = u.value[A.activeOptionIndex.value];
1495
+ k(P.value);
1496
1496
  }
1497
- x.goToOption(be.Specific, x.activeOptionIndex.value);
1497
+ A.goToOption(be.Specific, A.activeOptionIndex.value);
1498
1498
  }
1499
1499
  }, registerOption(P, I) {
1500
- let F = pr({ id: P, dataRef: I });
1501
- if (x.virtual.value) {
1502
- u.value.push(F);
1500
+ let L = pr({ id: P, dataRef: I });
1501
+ if (A.virtual.value) {
1502
+ u.value.push(L);
1503
1503
  return;
1504
1504
  }
1505
- k && cancelAnimationFrame(k);
1506
- let L = g((U) => (U.push(F), U));
1507
- c.value === null && x.isSelected(I.value.value) && (L.activeOptionIndex = L.options.indexOf(F)), u.value = L.options, c.value = L.activeOptionIndex, f.value = 2, L.options.some((U) => !R(U.dataRef.domRef)) && (k = requestAnimationFrame(() => {
1505
+ x && cancelAnimationFrame(x);
1506
+ let $ = g((U) => (U.push(L), U));
1507
+ c.value === null && A.isSelected(I.value.value) && ($.activeOptionIndex = $.options.indexOf(L)), u.value = $.options, c.value = $.activeOptionIndex, f.value = 2, $.options.some((U) => !F(U.dataRef.domRef)) && (x = requestAnimationFrame(() => {
1508
1508
  let U = g();
1509
1509
  u.value = U.options, c.value = U.activeOptionIndex;
1510
1510
  }));
1511
1511
  }, unregisterOption(P, I) {
1512
- if (p !== null && cancelAnimationFrame(p), I && (h.value = !0), x.virtual.value) {
1513
- u.value = u.value.filter((L) => L.id !== P);
1512
+ if (v !== null && cancelAnimationFrame(v), I && (h.value = !0), A.virtual.value) {
1513
+ u.value = u.value.filter(($) => $.id !== P);
1514
1514
  return;
1515
1515
  }
1516
- let F = g((L) => {
1517
- let U = L.findIndex((Y) => Y.id === P);
1518
- return U !== -1 && L.splice(U, 1), L;
1516
+ let L = g(($) => {
1517
+ let U = $.findIndex((Y) => Y.id === P);
1518
+ return U !== -1 && $.splice(U, 1), $;
1519
1519
  });
1520
- u.value = F.options, c.value = F.activeOptionIndex, f.value = 2;
1520
+ u.value = L.options, c.value = L.activeOptionIndex, f.value = 2;
1521
1521
  }, isSelected(P) {
1522
- return Ce(v.value, { 0: () => x.compare(Le(x.value.value), Le(P)), 1: () => Le(x.value.value).some((I) => x.compare(Le(I), Le(P))) });
1522
+ return Ce(p.value, { 0: () => A.compare(Le(A.value.value), Le(P)), 1: () => Le(A.value.value).some((I) => A.compare(Le(I), Le(P))) });
1523
1523
  }, isActive(P) {
1524
- return c.value === x.calculateIndex(P);
1524
+ return c.value === A.calculateIndex(P);
1525
1525
  } };
1526
- ua([i, l, s], () => x.closeCombobox(), T(() => a.value === 0)), Pe(li, x), fa(T(() => Ce(a.value, { 0: Oe.Open, 1: Oe.Closed })));
1526
+ ua([i, l, s], () => A.closeCombobox(), T(() => a.value === 0)), Pe(li, A), fa(T(() => Ce(a.value, { 0: Oe.Open, 1: Oe.Closed })));
1527
1527
  let M = T(() => {
1528
1528
  var P;
1529
- return (P = R(i)) == null ? void 0 : P.closest("form");
1529
+ return (P = F(i)) == null ? void 0 : P.closest("form");
1530
1530
  });
1531
1531
  return te(() => {
1532
1532
  ne([M], () => {
1533
1533
  if (!M.value || e.defaultValue === void 0) return;
1534
1534
  function P() {
1535
- x.change(e.defaultValue);
1535
+ A.change(e.defaultValue);
1536
1536
  }
1537
1537
  return M.value.addEventListener("reset", P), () => {
1538
1538
  var I;
@@ -1540,31 +1540,31 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = $({ name: "VirtualProvid
1540
1540
  };
1541
1541
  }, { immediate: !0 });
1542
1542
  }), () => {
1543
- var P, I, F;
1544
- let { name: L, disabled: U, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: U, activeIndex: x.activeOptionIndex.value, activeOption: x.activeOptionIndex.value === null ? null : x.virtual.value ? x.virtual.value.options[(P = x.activeOptionIndex.value) != null ? P : 0] : (F = (I = x.options.value[x.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? F : null, value: C.value };
1545
- return ue(fe, [...L != null && C.value != null ? pa({ [L]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Y, disabled: U, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
1543
+ var P, I, L;
1544
+ let { name: $, disabled: U, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: U, activeIndex: A.activeOptionIndex.value, activeOption: A.activeOptionIndex.value === null ? null : A.virtual.value ? A.virtual.value.options[(P = A.activeOptionIndex.value) != null ? P : 0] : (L = (I = A.options.value[A.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? L : null, value: C.value };
1545
+ return ue(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Y, disabled: U, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
1546
1546
  };
1547
1547
  } });
1548
- $({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1548
+ R({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
1549
1549
  var r;
1550
1550
  let a = (r = e.id) != null ? r : `headlessui-combobox-label-${Te()}`, o = Gt("ComboboxLabel");
1551
1551
  function i() {
1552
1552
  var l;
1553
- (l = R(o.inputRef)) == null || l.focus({ preventScroll: !0 });
1553
+ (l = F(o.inputRef)) == null || l.focus({ preventScroll: !0 });
1554
1554
  }
1555
1555
  return () => {
1556
1556
  let l = { open: o.comboboxState.value === 0, disabled: o.disabled.value }, { ...s } = e, d = { id: a, ref: o.labelRef, onClick: i };
1557
1557
  return pe({ ourProps: d, theirProps: s, slot: l, attrs: t, slots: n, name: "ComboboxLabel" });
1558
1558
  };
1559
1559
  } });
1560
- let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
1560
+ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
1561
1561
  var a;
1562
1562
  let o = (a = e.id) != null ? a : `headlessui-combobox-button-${Te()}`, i = Gt("ComboboxButton");
1563
1563
  r({ el: i.buttonRef, $el: i.buttonRef });
1564
1564
  function l(u) {
1565
1565
  i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (u.preventDefault(), i.openCombobox()), ke(() => {
1566
1566
  var c;
1567
- return (c = R(i.inputRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
1567
+ return (c = F(i.inputRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
1568
1568
  }));
1569
1569
  }
1570
1570
  function s(u) {
@@ -1595,40 +1595,40 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1595
1595
  let d = da(T(() => ({ as: e.as, type: t.type })), i.buttonRef);
1596
1596
  return () => {
1597
1597
  var u, c;
1598
- let f = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: d.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (u = R(i.optionsRef)) == null ? void 0 : u.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(c = R(i.labelRef)) == null ? void 0 : c.id, o].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
1598
+ let f = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: d.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (u = F(i.optionsRef)) == null ? void 0 : u.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(c = F(i.labelRef)) == null ? void 0 : c.id, o].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
1599
1599
  return pe({ ourProps: g, theirProps: h, slot: f, attrs: t, slots: n, name: "ComboboxButton" });
1600
1600
  };
1601
- } }), mu = $({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
1601
+ } }), mu = R({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
1602
1602
  var o;
1603
- let i = (o = e.id) != null ? o : `headlessui-combobox-input-${Te()}`, l = Gt("ComboboxInput"), s = T(() => je(R(l.inputRef))), d = { value: !1 };
1603
+ let i = (o = e.id) != null ? o : `headlessui-combobox-input-${Te()}`, l = Gt("ComboboxInput"), s = T(() => je(F(l.inputRef))), d = { value: !1 };
1604
1604
  a({ el: l.inputRef, $el: l.inputRef });
1605
1605
  function u() {
1606
1606
  l.change(null);
1607
- let k = R(l.optionsRef);
1608
- k && (k.scrollTop = 0), l.goToOption(be.Nothing);
1607
+ let x = F(l.optionsRef);
1608
+ x && (x.scrollTop = 0), l.goToOption(be.Nothing);
1609
1609
  }
1610
1610
  let c = T(() => {
1611
- var k;
1612
- let A = l.value.value;
1613
- return R(l.inputRef) ? typeof e.displayValue < "u" && A !== void 0 ? (k = e.displayValue(A)) != null ? k : "" : typeof A == "string" ? A : "" : "";
1611
+ var x;
1612
+ let k = l.value.value;
1613
+ return F(l.inputRef) ? typeof e.displayValue < "u" && k !== void 0 ? (x = e.displayValue(k)) != null ? x : "" : typeof k == "string" ? k : "" : "";
1614
1614
  });
1615
1615
  te(() => {
1616
- ne([c, l.comboboxState, s], ([k, A], [S, x]) => {
1616
+ ne([c, l.comboboxState, s], ([x, k], [S, A]) => {
1617
1617
  if (d.value) return;
1618
- let M = R(l.inputRef);
1619
- M && ((x === 0 && A === 1 || k !== S) && (M.value = k), requestAnimationFrame(() => {
1618
+ let M = F(l.inputRef);
1619
+ M && ((A === 0 && k === 1 || x !== S) && (M.value = x), requestAnimationFrame(() => {
1620
1620
  var P;
1621
1621
  if (d.value || !M || ((P = s.value) == null ? void 0 : P.activeElement) !== M) return;
1622
- let { selectionStart: I, selectionEnd: F } = M;
1623
- Math.abs((F ?? 0) - (I ?? 0)) === 0 && I === 0 && M.setSelectionRange(M.value.length, M.value.length);
1622
+ let { selectionStart: I, selectionEnd: L } = M;
1623
+ Math.abs((L ?? 0) - (I ?? 0)) === 0 && I === 0 && M.setSelectionRange(M.value.length, M.value.length);
1624
1624
  }));
1625
- }, { immediate: !0 }), ne([l.comboboxState], ([k], [A]) => {
1626
- if (k === 0 && A === 1) {
1625
+ }, { immediate: !0 }), ne([l.comboboxState], ([x], [k]) => {
1626
+ if (x === 0 && k === 1) {
1627
1627
  if (d.value) return;
1628
- let S = R(l.inputRef);
1628
+ let S = F(l.inputRef);
1629
1629
  if (!S) return;
1630
- let x = S.value, { selectionStart: M, selectionEnd: P, selectionDirection: I } = S;
1631
- S.value = "", S.value = x, I !== null ? S.setSelectionRange(M, P, I) : S.setSelectionRange(M, P);
1630
+ let A = S.value, { selectionStart: M, selectionEnd: P, selectionDirection: I } = S;
1631
+ S.value = "", S.value = A, I !== null ? S.setSelectionRange(M, P, I) : S.setSelectionRange(M, P);
1632
1632
  }
1633
1633
  });
1634
1634
  });
@@ -1641,40 +1641,40 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1641
1641
  f.value = !1;
1642
1642
  });
1643
1643
  }
1644
- let v = zs();
1645
- function m(k) {
1646
- switch (d.value = !0, v(() => {
1644
+ let p = zs();
1645
+ function m(x) {
1646
+ switch (d.value = !0, p(() => {
1647
1647
  d.value = !1;
1648
- }), k.key) {
1648
+ }), x.key) {
1649
1649
  case Z.Enter:
1650
1650
  if (d.value = !1, l.comboboxState.value !== 0 || f.value) return;
1651
- if (k.preventDefault(), k.stopPropagation(), l.activeOptionIndex.value === null) {
1651
+ if (x.preventDefault(), x.stopPropagation(), l.activeOptionIndex.value === null) {
1652
1652
  l.closeCombobox();
1653
1653
  return;
1654
1654
  }
1655
1655
  l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
1656
1656
  break;
1657
1657
  case Z.ArrowDown:
1658
- return d.value = !1, k.preventDefault(), k.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Next), 1: () => l.openCombobox() });
1658
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Next), 1: () => l.openCombobox() });
1659
1659
  case Z.ArrowUp:
1660
- return d.value = !1, k.preventDefault(), k.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Previous), 1: () => {
1660
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), Ce(l.comboboxState.value, { 0: () => l.goToOption(be.Previous), 1: () => {
1661
1661
  l.openCombobox(), ke(() => {
1662
1662
  l.value.value || l.goToOption(be.Last);
1663
1663
  });
1664
1664
  } });
1665
1665
  case Z.Home:
1666
- if (k.shiftKey) break;
1667
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.First);
1666
+ if (x.shiftKey) break;
1667
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.First);
1668
1668
  case Z.PageUp:
1669
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.First);
1669
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.First);
1670
1670
  case Z.End:
1671
- if (k.shiftKey) break;
1672
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.Last);
1671
+ if (x.shiftKey) break;
1672
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.Last);
1673
1673
  case Z.PageDown:
1674
- return d.value = !1, k.preventDefault(), k.stopPropagation(), l.goToOption(be.Last);
1674
+ return d.value = !1, x.preventDefault(), x.stopPropagation(), l.goToOption(be.Last);
1675
1675
  case Z.Escape:
1676
1676
  if (d.value = !1, l.comboboxState.value !== 0) return;
1677
- k.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && k.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && u(), l.closeCombobox();
1677
+ x.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && x.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && u(), l.closeCombobox();
1678
1678
  break;
1679
1679
  case Z.Tab:
1680
1680
  if (d.value = !1, l.comboboxState.value !== 0) return;
@@ -1682,31 +1682,31 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1682
1682
  break;
1683
1683
  }
1684
1684
  }
1685
- function b(k) {
1686
- t("change", k), l.nullable.value && l.mode.value === 0 && k.target.value === "" && u(), l.openCombobox();
1685
+ function b(x) {
1686
+ t("change", x), l.nullable.value && l.mode.value === 0 && x.target.value === "" && u(), l.openCombobox();
1687
1687
  }
1688
- function y(k) {
1689
- var A, S, x;
1690
- let M = (A = k.relatedTarget) != null ? A : yt.find((P) => P !== k.currentTarget);
1691
- if (d.value = !1, !((S = R(l.optionsRef)) != null && S.contains(M)) && !((x = R(l.buttonRef)) != null && x.contains(M)) && l.comboboxState.value === 0) return k.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1688
+ function y(x) {
1689
+ var k, S, A;
1690
+ let M = (k = x.relatedTarget) != null ? k : yt.find((P) => P !== x.currentTarget);
1691
+ if (d.value = !1, !((S = F(l.optionsRef)) != null && S.contains(M)) && !((A = F(l.buttonRef)) != null && A.contains(M)) && l.comboboxState.value === 0) return x.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1692
1692
  }
1693
- function C(k) {
1694
- var A, S, x;
1695
- let M = (A = k.relatedTarget) != null ? A : yt.find((P) => P !== k.currentTarget);
1696
- (S = R(l.buttonRef)) != null && S.contains(M) || (x = R(l.optionsRef)) != null && x.contains(M) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), Bt().nextFrame(() => {
1693
+ function C(x) {
1694
+ var k, S, A;
1695
+ let M = (k = x.relatedTarget) != null ? k : yt.find((P) => P !== x.currentTarget);
1696
+ (S = F(l.buttonRef)) != null && S.contains(M) || (A = F(l.optionsRef)) != null && A.contains(M) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), Bt().nextFrame(() => {
1697
1697
  l.setActivationTrigger(1);
1698
1698
  }));
1699
1699
  }
1700
- let p = T(() => {
1701
- var k, A, S, x;
1702
- return (x = (S = (A = e.defaultValue) != null ? A : l.defaultValue.value !== void 0 ? (k = e.displayValue) == null ? void 0 : k.call(e, l.defaultValue.value) : null) != null ? S : l.defaultValue.value) != null ? x : "";
1700
+ let v = T(() => {
1701
+ var x, k, S, A;
1702
+ return (A = (S = (k = e.defaultValue) != null ? k : l.defaultValue.value !== void 0 ? (x = e.displayValue) == null ? void 0 : x.call(e, l.defaultValue.value) : null) != null ? S : l.defaultValue.value) != null ? A : "";
1703
1703
  });
1704
1704
  return () => {
1705
- var k, A, S, x, M, P, I;
1706
- let F = { open: l.comboboxState.value === 0 }, { displayValue: L, onChange: U, ...Y } = e, G = { "aria-controls": (k = l.optionsRef.value) == null ? void 0 : k.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (A = l.options.value.find((ae) => !l.virtual.value.disabled(ae.dataRef.value) && l.compare(ae.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : A.id : (S = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (P = (x = R(l.labelRef)) == null ? void 0 : x.id) != null ? P : (M = R(l.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: p.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1707
- return pe({ ourProps: G, theirProps: Y, slot: F, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1705
+ var x, k, S, A, M, P, I;
1706
+ let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: U, ...Y } = e, G = { "aria-controls": (x = l.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (k = l.options.value.find((ae) => !l.virtual.value.disabled(ae.dataRef.value) && l.compare(ae.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : k.id : (S = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (P = (A = F(l.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(l.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: v.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1707
+ return pe({ ourProps: G, theirProps: Y, slot: L, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1708
1708
  };
1709
- } }), hu = $({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
1709
+ } }), hu = R({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
1710
1710
  let a = Gt("ComboboxOptions"), o = `headlessui-combobox-options-${Te()}`;
1711
1711
  r({ el: a.optionsRef, $el: a.optionsRef }), Ee(() => {
1712
1712
  a.optionsPropsRef.value.static = e.static;
@@ -1714,7 +1714,7 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1714
1714
  a.optionsPropsRef.value.hold = e.hold;
1715
1715
  });
1716
1716
  let i = Fn(), l = T(() => i !== null ? (i.value & Oe.Open) === Oe.Open : a.comboboxState.value === 0);
1717
- ca({ container: T(() => R(a.optionsRef)), enabled: T(() => a.comboboxState.value === 0), accept(d) {
1717
+ ca({ container: T(() => F(a.optionsRef)), enabled: T(() => a.comboboxState.value === 0), accept(d) {
1718
1718
  return d.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1719
1719
  }, walk(d) {
1720
1720
  d.setAttribute("role", "none");
@@ -1724,10 +1724,10 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1724
1724
  }
1725
1725
  return () => {
1726
1726
  var d, u, c;
1727
- let f = { open: a.comboboxState.value === 0 }, h = { "aria-labelledby": (c = (d = R(a.labelRef)) == null ? void 0 : d.id) != null ? c : (u = R(a.buttonRef)) == null ? void 0 : u.id, id: o, ref: a.optionsRef, role: "listbox", "aria-multiselectable": a.mode.value === 1 ? !0 : void 0, onMousedown: s }, g = Qt(e, ["hold"]);
1727
+ let f = { open: a.comboboxState.value === 0 }, h = { "aria-labelledby": (c = (d = F(a.labelRef)) == null ? void 0 : d.id) != null ? c : (u = F(a.buttonRef)) == null ? void 0 : u.id, id: o, ref: a.optionsRef, role: "listbox", "aria-multiselectable": a.mode.value === 1 ? !0 : void 0, onMousedown: s }, g = Qt(e, ["hold"]);
1728
1728
  return pe({ ourProps: h, theirProps: g, slot: f, attrs: t, slots: a.virtual.value && a.comboboxState.value === 0 ? { ...n, default: () => [ue(fu, {}, n.default)] } : n, features: Qe.RenderStrategy | Qe.Static, visible: l.value, name: "ComboboxOptions" });
1729
1729
  };
1730
- } }), gu = $({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
1730
+ } }), gu = R({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
1731
1731
  let a = Gt("ComboboxOption"), o = `headlessui-combobox-option-${Te()}`, i = E(null), l = T(() => e.disabled);
1732
1732
  r({ el: i, $el: i });
1733
1733
  let s = T(() => {
@@ -1735,18 +1735,18 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1735
1735
  return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((y = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : y.id) === o;
1736
1736
  }), d = T(() => a.isSelected(e.value)), u = Se(si, null), c = T(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: T(() => e.order) }));
1737
1737
  te(() => a.registerOption(o, c)), De(() => a.unregisterOption(o, s.value)), Ee(() => {
1738
- let y = R(i);
1738
+ let y = F(i);
1739
1739
  y && u?.value.measureElement(y);
1740
1740
  }), Ee(() => {
1741
1741
  a.comboboxState.value === 0 && s.value && (a.virtual.value || a.activationTrigger.value !== 0 && ke(() => {
1742
1742
  var y, C;
1743
- return (C = (y = R(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : C.call(y, { block: "nearest" });
1743
+ return (C = (y = F(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : C.call(y, { block: "nearest" });
1744
1744
  }));
1745
1745
  });
1746
1746
  function f(y) {
1747
1747
  y.preventDefault(), y.button === ai.Left && (l.value || (a.selectOption(o), Ko() || requestAnimationFrame(() => {
1748
1748
  var C;
1749
- return (C = R(a.inputRef)) == null ? void 0 : C.focus({ preventScroll: !0 });
1749
+ return (C = F(a.inputRef)) == null ? void 0 : C.focus({ preventScroll: !0 });
1750
1750
  }), a.mode.value === 0 && a.closeCombobox()));
1751
1751
  }
1752
1752
  function h() {
@@ -1756,22 +1756,22 @@ let vu = $({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1756
1756
  a.goToOption(be.Specific, C);
1757
1757
  }
1758
1758
  let g = Zo();
1759
- function v(y) {
1759
+ function p(y) {
1760
1760
  g.update(y);
1761
1761
  }
1762
1762
  function m(y) {
1763
1763
  var C;
1764
1764
  if (!g.wasMoved(y) || e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || s.value) return;
1765
- let p = a.calculateIndex(e.value);
1766
- a.goToOption(be.Specific, p, 0);
1765
+ let v = a.calculateIndex(e.value);
1766
+ a.goToOption(be.Specific, v, 0);
1767
1767
  }
1768
1768
  function b(y) {
1769
1769
  var C;
1770
1770
  g.wasMoved(y) && (e.disabled || (C = a.virtual.value) != null && C.disabled(e.value) || s.value && (a.optionsPropsRef.value.hold || a.goToOption(be.Nothing)));
1771
1771
  }
1772
1772
  return () => {
1773
- let { disabled: y } = e, C = { active: s.value, selected: d.value, disabled: y }, p = { id: o, ref: i, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: f, onFocus: h, onPointerenter: v, onMouseenter: v, onPointermove: m, onMousemove: m, onPointerleave: b, onMouseleave: b }, k = Qt(e, ["order", "value"]);
1774
- return pe({ ourProps: p, theirProps: k, slot: C, attrs: n, slots: t, name: "ComboboxOption" });
1773
+ let { disabled: y } = e, C = { active: s.value, selected: d.value, disabled: y }, v = { id: o, ref: i, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: f, onFocus: h, onPointerenter: p, onMouseenter: p, onPointermove: m, onMousemove: m, onPointerleave: b, onMouseleave: b }, x = Qt(e, ["order", "value"]);
1774
+ return pe({ ourProps: v, theirProps: x, slot: C, attrs: n, slots: t, name: "ComboboxOption" });
1775
1775
  };
1776
1776
  } });
1777
1777
  function ui(e, t, n, r) {
@@ -1791,13 +1791,13 @@ function di(e) {
1791
1791
  if (typeof e == "function") return new Set(e());
1792
1792
  let t = /* @__PURE__ */ new Set();
1793
1793
  for (let n of e.value) {
1794
- let r = R(n);
1794
+ let r = F(n);
1795
1795
  r instanceof HTMLElement && t.add(r);
1796
1796
  }
1797
1797
  return t;
1798
1798
  }
1799
1799
  var ci = ((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))(ci || {});
1800
- let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
1800
+ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
1801
1801
  let a = E(null);
1802
1802
  r({ el: a, $el: a });
1803
1803
  let o = T(() => je(a)), i = E(!1);
@@ -1806,8 +1806,8 @@ let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, Stri
1806
1806
  xu({ ownerDocument: o, container: a, containers: e.containers, previousActiveElement: l }, T(() => i.value && !!(e.features & 8)));
1807
1807
  let s = bu();
1808
1808
  function d(h) {
1809
- let g = R(a);
1810
- g && ((v) => v())(() => {
1809
+ let g = F(a);
1810
+ g && ((p) => p())(() => {
1811
1811
  Ce(s.value, { [xn.Forwards]: () => {
1812
1812
  Ne(g, xe.First, { skipElements: [h.relatedTarget] });
1813
1813
  }, [xn.Backwards]: () => {
@@ -1824,13 +1824,13 @@ let hn = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, Stri
1824
1824
  function f(h) {
1825
1825
  if (!i.value) return;
1826
1826
  let g = di(e.containers);
1827
- R(a) instanceof HTMLElement && g.add(R(a));
1828
- let v = h.relatedTarget;
1829
- v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (fi(g, v) || (u.value ? Ne(R(a), Ce(s.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
1827
+ F(a) instanceof HTMLElement && g.add(F(a));
1828
+ let p = h.relatedTarget;
1829
+ p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (fi(g, p) || (u.value ? Ne(F(a), Ce(s.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
1830
1830
  }
1831
1831
  return () => {
1832
- let h = {}, g = { ref: a, onKeydown: c, onFocusout: f }, { features: v, initialFocus: m, containers: b, ...y } = e;
1833
- return ue(fe, [!!(v & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...y }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(v & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1832
+ let h = {}, g = { ref: a, onKeydown: c, onFocusout: f }, { features: p, initialFocus: m, containers: b, ...y } = e;
1833
+ return ue(fe, [!!(p & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...y }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && ue(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Yt.Focusable })]);
1834
1834
  };
1835
1835
  } }), { features: ci });
1836
1836
  function yu(e) {
@@ -1860,11 +1860,11 @@ function wu({ ownerDocument: e, container: t, initialFocus: n }, r) {
1860
1860
  return te(() => o.value = !0), De(() => o.value = !1), te(() => {
1861
1861
  ne([t, n, r], (i, l) => {
1862
1862
  if (i.every((d, u) => l?.[u] === d) || !r.value) return;
1863
- let s = R(t);
1863
+ let s = F(t);
1864
1864
  s && hr(() => {
1865
1865
  var d, u;
1866
1866
  if (!o.value) return;
1867
- let c = R(n), f = (d = e.value) == null ? void 0 : d.activeElement;
1867
+ let c = F(n), f = (d = e.value) == null ? void 0 : d.activeElement;
1868
1868
  if (c) {
1869
1869
  if (c === f) {
1870
1870
  a.value = f;
@@ -1884,7 +1884,7 @@ function xu({ ownerDocument: e, container: t, containers: n, previousActiveEleme
1884
1884
  ui((o = e.value) == null ? void 0 : o.defaultView, "focus", (i) => {
1885
1885
  if (!a.value) return;
1886
1886
  let l = di(n);
1887
- R(t) instanceof HTMLElement && l.add(R(t));
1887
+ F(t) instanceof HTMLElement && l.add(F(t));
1888
1888
  let s = r.value;
1889
1889
  if (!s) return;
1890
1890
  let d = i.target;
@@ -2018,7 +2018,7 @@ function Qa(e, t = E(!0)) {
2018
2018
  Ee((n) => {
2019
2019
  var r;
2020
2020
  if (!t.value) return;
2021
- let a = R(e);
2021
+ let a = F(e);
2022
2022
  if (!a) return;
2023
2023
  n(function() {
2024
2024
  var i;
@@ -2039,7 +2039,7 @@ function Pu({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
2039
2039
  let d = [];
2040
2040
  for (let u of e) u !== null && (u instanceof HTMLElement ? d.push(u) : "value" in u && u.value instanceof HTMLElement && d.push(u.value));
2041
2041
  if (t != null && t.value) for (let u of t.value) d.push(u);
2042
- for (let u of (i = a?.querySelectorAll("html > *, body > *")) != null ? i : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(R(r)) || u.contains((s = (l = R(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((c) => u.contains(c)) || d.push(u));
2042
+ for (let u of (i = a?.querySelectorAll("html > *, body > *")) != null ? i : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(F(r)) || u.contains((s = (l = F(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((c) => u.contains(c)) || d.push(u));
2043
2043
  return d;
2044
2044
  }
2045
2045
  return { resolveContainers: o, contains(i) {
@@ -2052,7 +2052,7 @@ let pi = /* @__PURE__ */ Symbol("ForcePortalRootContext");
2052
2052
  function Du() {
2053
2053
  return Se(pi, !1);
2054
2054
  }
2055
- let qr = $({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
2055
+ let qr = R({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
2056
2056
  return Pe(pi, e.force), () => {
2057
2057
  let { force: r, ...a } = e;
2058
2058
  return pe({ theirProps: a, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
@@ -2092,7 +2092,7 @@ function va({ slot: e = E({}), name: t = "Description", props: n = {} } = {}) {
2092
2092
  }
2093
2093
  return Pe(mi, { register: a, slot: e, name: t, props: n }), T(() => r.value.length > 0 ? r.value.join(" ") : void 0);
2094
2094
  }
2095
- $({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2095
+ R({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2096
2096
  var r;
2097
2097
  let a = (r = e.id) != null ? r : `headlessui-description-${Te()}`, o = $u();
2098
2098
  return te(() => De(o.register(a))), () => {
@@ -2120,7 +2120,7 @@ function Ga(e, t) {
2120
2120
  let n = t(Lu(e));
2121
2121
  return n <= 0 ? Ur.delete(e) : Ur.set(e, n), n;
2122
2122
  }
2123
- let hi = $({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2123
+ let hi = R({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2124
2124
  let r = E(null), a = T(() => je(r)), o = Du(), i = Se(gi, null), l = E(o === !0 || i == null ? Ru(r.value) : i.resolveTarget());
2125
2125
  l.value && Ga(l.value, (f) => f + 1);
2126
2126
  let s = E(!1);
@@ -2132,12 +2132,12 @@ let hi = $({ name: "Portal", props: { as: { type: [Object, String], default: "di
2132
2132
  let d = Se(Yr, null), u = !1, c = _o();
2133
2133
  return ne(r, () => {
2134
2134
  if (u || !d) return;
2135
- let f = R(r);
2135
+ let f = F(r);
2136
2136
  f && (De(d.register(f), c), u = !0);
2137
2137
  }), De(() => {
2138
2138
  var f, h;
2139
2139
  let g = (f = a.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
2140
- !g || l.value !== g || Ga(l.value, (v) => v - 1) || l.value.children.length > 0 || (h = l.value.parentElement) == null || h.removeChild(l.value);
2140
+ !g || l.value !== g || Ga(l.value, (p) => p - 1) || l.value.children.length > 0 || (h = l.value.parentElement) == null || h.removeChild(l.value);
2141
2141
  }), () => {
2142
2142
  if (!s.value || l.value === null) return null;
2143
2143
  let f = { ref: r, "data-headlessui-portal": "" };
@@ -2154,14 +2154,14 @@ function Fu() {
2154
2154
  i !== -1 && t.value.splice(i, 1), e && e.unregister(o);
2155
2155
  }
2156
2156
  let a = { register: n, unregister: r, portals: t };
2157
- return [t, $({ name: "PortalWrapper", setup(o, { slots: i }) {
2157
+ return [t, R({ name: "PortalWrapper", setup(o, { slots: i }) {
2158
2158
  return Pe(Yr, a), () => {
2159
2159
  var l;
2160
2160
  return (l = i.default) == null ? void 0 : l.call(i);
2161
2161
  };
2162
2162
  } })];
2163
2163
  }
2164
- let gi = /* @__PURE__ */ Symbol("PortalGroupContext"), _u = $({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
2164
+ let gi = /* @__PURE__ */ Symbol("PortalGroupContext"), _u = R({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
2165
2165
  let r = pr({ resolveTarget() {
2166
2166
  return e.target;
2167
2167
  } });
@@ -2180,28 +2180,28 @@ function _n(e) {
2180
2180
  }
2181
2181
  return t;
2182
2182
  }
2183
- let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ 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: Kn }, 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: r, expose: a }) {
2183
+ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ 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: Kn }, 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: r, expose: a }) {
2184
2184
  var o, i;
2185
2185
  let l = (o = e.id) != null ? o : `headlessui-dialog-${Te()}`, s = E(!1);
2186
2186
  te(() => {
2187
2187
  s.value = !0;
2188
2188
  });
2189
- let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c = E(0), f = Fn(), h = T(() => e.open === Kn && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), g = E(null), v = T(() => je(g));
2189
+ let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c = E(0), f = Fn(), h = T(() => e.open === Kn && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), g = E(null), p = T(() => je(g));
2190
2190
  if (a({ el: g, $el: g }), !(e.open !== Kn || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
2191
2191
  if (typeof h.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value === Kn ? void 0 : e.open}`);
2192
- let m = T(() => s.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => c.value > 1), C = Se(Xr, null) !== null, [p, k] = Fu(), { resolveContainers: A, mainTreeNodeRef: S, MainTreeNode: x } = Pu({ portals: p, defaultContainers: [T(() => {
2192
+ let m = T(() => s.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => c.value > 1), C = Se(Xr, null) !== null, [v, x] = Fu(), { resolveContainers: k, mainTreeNodeRef: S, MainTreeNode: A } = Pu({ portals: v, defaultContainers: [T(() => {
2193
2193
  var ee;
2194
2194
  return (ee = ae.panelRef.value) != null ? ee : g.value;
2195
- })] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), F = T(() => {
2195
+ })] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), L = T(() => {
2196
2196
  var ee, ie, Ae;
2197
- return (Ae = Array.from((ie = (ee = v.value) == null ? void 0 : ee.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(R(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2197
+ return (Ae = Array.from((ie = (ee = p.value) == null ? void 0 : ee.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2198
2198
  });
2199
- Qa(F, I);
2200
- let L = T(() => y.value ? !0 : b.value), U = T(() => {
2199
+ Qa(L, I);
2200
+ let $ = T(() => y.value ? !0 : b.value), U = T(() => {
2201
2201
  var ee, ie, Ae;
2202
- return (Ae = Array.from((ie = (ee = v.value) == null ? void 0 : ee.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(R(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2202
+ return (Ae = Array.from((ie = (ee = p.value) == null ? void 0 : ee.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
2203
2203
  });
2204
- Qa(U, L), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (ee, ie) => {
2204
+ Qa(U, $), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (ee, ie) => {
2205
2205
  if (ie === "Dialog") return Ce(ee, { [zr.Add]: () => c.value += 1, [zr.Remove]: () => c.value -= 1 });
2206
2206
  } });
2207
2207
  let Y = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }), G = E(null), ae = { titleId: G, panelRef: E(null), dialogState: m, setTitleId(ee) {
@@ -2211,20 +2211,20 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ name: "Dialog", inheri
2211
2211
  } };
2212
2212
  Pe(Xr, ae);
2213
2213
  let re = T(() => !(!b.value || y.value));
2214
- ua(A, (ee, ie) => {
2214
+ ua(k, (ee, ie) => {
2215
2215
  ee.preventDefault(), ae.close(), ke(() => ie?.focus());
2216
2216
  }, re);
2217
2217
  let ce = T(() => !(y.value || m.value !== 0));
2218
- ui((i = v.value) == null ? void 0 : i.defaultView, "keydown", (ee) => {
2218
+ ui((i = p.value) == null ? void 0 : i.defaultView, "keydown", (ee) => {
2219
2219
  ce.value && (ee.defaultPrevented || ee.key === Z.Escape && (ee.preventDefault(), ee.stopPropagation(), ae.close()));
2220
2220
  });
2221
2221
  let ve = T(() => !(P.value || m.value !== 0 || C));
2222
- return Bu(v, ve, (ee) => {
2222
+ return Bu(p, ve, (ee) => {
2223
2223
  var ie;
2224
- return { containers: [...(ie = ee.containers) != null ? ie : [], A] };
2224
+ return { containers: [...(ie = ee.containers) != null ? ie : [], k] };
2225
2225
  }), Ee((ee) => {
2226
2226
  if (m.value !== 0) return;
2227
- let ie = R(g);
2227
+ let ie = F(g);
2228
2228
  if (!ie) return;
2229
2229
  let Ae = new ResizeObserver((me) => {
2230
2230
  for (let ye of me) {
@@ -2235,10 +2235,10 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = $({ name: "Dialog", inheri
2235
2235
  Ae.observe(ie), ee(() => Ae.disconnect());
2236
2236
  }), () => {
2237
2237
  let { open: ee, initialFocus: ie, ...Ae } = e, me = { ...n, ref: g, id: l, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": Y.value }, ye = { open: m.value === 0 };
2238
- return ue(qr, { force: !0 }, () => [ue(hi, () => ue(_u, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: A, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(k, {}, () => pe({ ourProps: me, theirProps: { ...Ae, ...n }, slot: ye, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), ue(x)]);
2238
+ return ue(qr, { force: !0 }, () => [ue(hi, () => ue(_u, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: k, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(x, {}, () => pe({ ourProps: me, theirProps: { ...Ae, ...n }, slot: ye, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), ue(A)]);
2239
2239
  };
2240
2240
  } });
2241
- $({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2241
+ R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2242
2242
  var r;
2243
2243
  let a = (r = e.id) != null ? r : `headlessui-dialog-overlay-${Te()}`, o = _n("DialogOverlay");
2244
2244
  function i(l) {
@@ -2249,7 +2249,7 @@ $({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
2249
2249
  return pe({ ourProps: { id: a, "aria-hidden": !0, onClick: i }, theirProps: l, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogOverlay" });
2250
2250
  };
2251
2251
  } });
2252
- $({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
2252
+ R({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
2253
2253
  var a;
2254
2254
  let o = (a = e.id) != null ? a : `headlessui-dialog-backdrop-${Te()}`, i = _n("DialogBackdrop"), l = E(null);
2255
2255
  return r({ el: l, $el: l }), te(() => {
@@ -2259,7 +2259,7 @@ $({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
2259
2259
  return ue(qr, { force: !0 }, () => ue(hi, () => pe({ ourProps: d, theirProps: { ...t, ...s }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
2260
2260
  };
2261
2261
  } });
2262
- let ju = $({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2262
+ let ju = R({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2263
2263
  var a;
2264
2264
  let o = (a = e.id) != null ? a : `headlessui-dialog-panel-${Te()}`, i = _n("DialogPanel");
2265
2265
  r({ el: i.panelRef, $el: i.panelRef });
@@ -2271,7 +2271,7 @@ let ju = $({ name: "DialogPanel", props: { as: { type: [Object, String], default
2271
2271
  return pe({ ourProps: d, theirProps: s, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
2272
2272
  };
2273
2273
  } });
2274
- $({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2274
+ R({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
2275
2275
  var r;
2276
2276
  let a = (r = e.id) != null ? r : `headlessui-dialog-title-${Te()}`, o = _n("DialogTitle");
2277
2277
  return te(() => {
@@ -2311,7 +2311,7 @@ function Wu(e) {
2311
2311
  function Hu(e) {
2312
2312
  let t = E(""), n = E("");
2313
2313
  return () => {
2314
- let r = R(e);
2314
+ let r = F(e);
2315
2315
  if (!r) return "";
2316
2316
  let a = r.innerText;
2317
2317
  if (t.value === a) return n.value;
@@ -2332,42 +2332,42 @@ function gr(e) {
2332
2332
  }
2333
2333
  return t;
2334
2334
  }
2335
- let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2335
+ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2336
2336
  let r = E(1), a = E(null), o = E(null), i = E([]), l = E(""), s = E(null), d = E(1);
2337
2337
  function u(f = (h) => h) {
2338
- let h = s.value !== null ? i.value[s.value] : null, g = bt(f(i.value.slice()), (m) => R(m.dataRef.domRef)), v = h ? g.indexOf(h) : null;
2339
- return v === -1 && (v = null), { items: g, activeItemIndex: v };
2338
+ let h = s.value !== null ? i.value[s.value] : null, g = bt(f(i.value.slice()), (m) => F(m.dataRef.domRef)), p = h ? g.indexOf(h) : null;
2339
+ return p === -1 && (p = null), { items: g, activeItemIndex: p };
2340
2340
  }
2341
2341
  let c = { menuState: r, buttonRef: a, itemsRef: o, items: i, searchQuery: l, activeItemIndex: s, activationTrigger: d, closeMenu: () => {
2342
2342
  r.value = 1, s.value = null;
2343
2343
  }, openMenu: () => r.value = 0, goToItem(f, h, g) {
2344
- let v = u(), m = Hr(f === be.Specific ? { focus: be.Specific, id: h } : { focus: f }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
2345
- l.value = "", s.value = m, d.value = g ?? 1, i.value = v.items;
2344
+ let p = u(), m = Hr(f === be.Specific ? { focus: be.Specific, id: h } : { focus: f }, { resolveItems: () => p.items, resolveActiveIndex: () => p.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
2345
+ l.value = "", s.value = m, d.value = g ?? 1, i.value = p.items;
2346
2346
  }, search(f) {
2347
2347
  let h = l.value !== "" ? 0 : 1;
2348
2348
  l.value += f.toLowerCase();
2349
- let g = (s.value !== null ? i.value.slice(s.value + h).concat(i.value.slice(0, s.value + h)) : i.value).find((m) => m.dataRef.textValue.startsWith(l.value) && !m.dataRef.disabled), v = g ? i.value.indexOf(g) : -1;
2350
- v === -1 || v === s.value || (s.value = v, d.value = 1);
2349
+ let g = (s.value !== null ? i.value.slice(s.value + h).concat(i.value.slice(0, s.value + h)) : i.value).find((m) => m.dataRef.textValue.startsWith(l.value) && !m.dataRef.disabled), p = g ? i.value.indexOf(g) : -1;
2350
+ p === -1 || p === s.value || (s.value = p, d.value = 1);
2351
2351
  }, clearSearch() {
2352
2352
  l.value = "";
2353
2353
  }, registerItem(f, h) {
2354
- let g = u((v) => [...v, { id: f, dataRef: h }]);
2354
+ let g = u((p) => [...p, { id: f, dataRef: h }]);
2355
2355
  i.value = g.items, s.value = g.activeItemIndex, d.value = 1;
2356
2356
  }, unregisterItem(f) {
2357
2357
  let h = u((g) => {
2358
- let v = g.findIndex((m) => m.id === f);
2359
- return v !== -1 && g.splice(v, 1), g;
2358
+ let p = g.findIndex((m) => m.id === f);
2359
+ return p !== -1 && g.splice(p, 1), g;
2360
2360
  });
2361
2361
  i.value = h.items, s.value = h.activeItemIndex, d.value = 1;
2362
2362
  } };
2363
2363
  return ua([a, o], (f, h) => {
2364
2364
  var g;
2365
- c.closeMenu(), sa(h, la.Loose) || (f.preventDefault(), (g = R(a)) == null || g.focus());
2365
+ c.closeMenu(), sa(h, la.Loose) || (f.preventDefault(), (g = F(a)) == null || g.focus());
2366
2366
  }, T(() => r.value === 0)), Pe(bi, c), fa(T(() => Ce(r.value, { 0: Oe.Open, 1: Oe.Closed }))), () => {
2367
2367
  let f = { open: r.value === 0, close: c.closeMenu };
2368
2368
  return pe({ ourProps: {}, theirProps: e, slot: f, slots: t, attrs: n, name: "Menu" });
2369
2369
  };
2370
- } }), Xu = $({ 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: r }) {
2370
+ } }), Xu = R({ 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: r }) {
2371
2371
  var a;
2372
2372
  let o = (a = e.id) != null ? a : `headlessui-menu-button-${Te()}`, i = gr("MenuButton");
2373
2373
  r({ el: i.buttonRef, $el: i.buttonRef });
@@ -2378,13 +2378,13 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2378
2378
  case Z.ArrowDown:
2379
2379
  c.preventDefault(), c.stopPropagation(), i.openMenu(), ke(() => {
2380
2380
  var f;
2381
- (f = R(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.First);
2381
+ (f = F(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.First);
2382
2382
  });
2383
2383
  break;
2384
2384
  case Z.ArrowUp:
2385
2385
  c.preventDefault(), c.stopPropagation(), i.openMenu(), ke(() => {
2386
2386
  var f;
2387
- (f = R(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.Last);
2387
+ (f = F(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(be.Last);
2388
2388
  });
2389
2389
  break;
2390
2390
  }
@@ -2399,22 +2399,22 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2399
2399
  function d(c) {
2400
2400
  e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), ke(() => {
2401
2401
  var f;
2402
- return (f = R(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2402
+ return (f = F(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2403
2403
  })) : (c.preventDefault(), i.openMenu(), Uu(() => {
2404
2404
  var f;
2405
- return (f = R(i.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2405
+ return (f = F(i.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
2406
2406
  })));
2407
2407
  }
2408
2408
  let u = da(T(() => ({ as: e.as, type: t.type })), i.buttonRef);
2409
2409
  return () => {
2410
2410
  var c;
2411
- let f = { open: i.menuState.value === 0 }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: u.value, "aria-haspopup": "menu", "aria-controls": (c = R(i.itemsRef)) == null ? void 0 : c.id, "aria-expanded": i.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: d };
2411
+ let f = { open: i.menuState.value === 0 }, { ...h } = e, g = { ref: i.buttonRef, id: o, type: u.value, "aria-haspopup": "menu", "aria-controls": (c = F(i.itemsRef)) == null ? void 0 : c.id, "aria-expanded": i.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: d };
2412
2412
  return pe({ ourProps: g, theirProps: h, slot: f, attrs: t, slots: n, name: "MenuButton" });
2413
2413
  };
2414
- } }), Qu = $({ 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: r }) {
2414
+ } }), Qu = R({ 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: r }) {
2415
2415
  var a;
2416
2416
  let o = (a = e.id) != null ? a : `headlessui-menu-items-${Te()}`, i = gr("MenuItems"), l = E(null);
2417
- r({ el: i.itemsRef, $el: i.itemsRef }), ca({ container: T(() => R(i.itemsRef)), enabled: T(() => i.menuState.value === 0), accept(f) {
2417
+ r({ el: i.itemsRef, $el: i.itemsRef }), ca({ container: T(() => F(i.itemsRef)), enabled: T(() => i.menuState.value === 0), accept(f) {
2418
2418
  return f.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : f.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2419
2419
  }, walk(f) {
2420
2420
  f.setAttribute("role", "none");
@@ -2427,9 +2427,9 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2427
2427
  case Z.Enter:
2428
2428
  if (f.preventDefault(), f.stopPropagation(), i.activeItemIndex.value !== null) {
2429
2429
  let g = i.items.value[i.activeItemIndex.value];
2430
- (h = R(g.dataRef.domRef)) == null || h.click();
2430
+ (h = F(g.dataRef.domRef)) == null || h.click();
2431
2431
  }
2432
- i.closeMenu(), Qo(R(i.buttonRef));
2432
+ i.closeMenu(), Qo(F(i.buttonRef));
2433
2433
  break;
2434
2434
  case Z.ArrowDown:
2435
2435
  return f.preventDefault(), f.stopPropagation(), i.goToItem(be.Next);
@@ -2444,11 +2444,11 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2444
2444
  case Z.Escape:
2445
2445
  f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => {
2446
2446
  var g;
2447
- return (g = R(i.buttonRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
2447
+ return (g = F(i.buttonRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
2448
2448
  });
2449
2449
  break;
2450
2450
  case Z.Tab:
2451
- f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => tu(R(i.buttonRef), f.shiftKey ? xe.Previous : xe.Next));
2451
+ f.preventDefault(), f.stopPropagation(), i.closeMenu(), ke(() => tu(F(i.buttonRef), f.shiftKey ? xe.Previous : xe.Next));
2452
2452
  break;
2453
2453
  default:
2454
2454
  f.key.length === 1 && (i.search(f.key), l.value = setTimeout(() => i.clearSearch(), 350));
@@ -2465,10 +2465,10 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2465
2465
  let u = Fn(), c = T(() => u !== null ? (u.value & Oe.Open) === Oe.Open : i.menuState.value === 0);
2466
2466
  return () => {
2467
2467
  var f, h;
2468
- let g = { open: i.menuState.value === 0 }, { ...v } = e, m = { "aria-activedescendant": i.activeItemIndex.value === null || (f = i.items.value[i.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (h = R(i.buttonRef)) == null ? void 0 : h.id, id: o, onKeydown: s, onKeyup: d, role: "menu", tabIndex: 0, ref: i.itemsRef };
2469
- return pe({ ourProps: m, theirProps: v, slot: g, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: c.value, name: "MenuItems" });
2468
+ let g = { open: i.menuState.value === 0 }, { ...p } = e, m = { "aria-activedescendant": i.activeItemIndex.value === null || (f = i.items.value[i.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (h = F(i.buttonRef)) == null ? void 0 : h.id, id: o, onKeydown: s, onKeyup: d, role: "menu", tabIndex: 0, ref: i.itemsRef };
2469
+ return pe({ ourProps: m, theirProps: p, slot: g, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: c.value, name: "MenuItems" });
2470
2470
  };
2471
- } }), Gu = $({ 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: r }) {
2471
+ } }), Gu = R({ 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: r }) {
2472
2472
  var a;
2473
2473
  let o = (a = e.id) != null ? a : `headlessui-menu-item-${Te()}`, i = gr("MenuItem"), l = E(null);
2474
2474
  r({ el: l, $el: l });
@@ -2478,12 +2478,12 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2478
2478
  te(() => i.registerItem(o, u)), De(() => i.unregisterItem(o)), Ee(() => {
2479
2479
  i.menuState.value === 0 && s.value && i.activationTrigger.value !== 0 && ke(() => {
2480
2480
  var b, y;
2481
- return (y = (b = R(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
2481
+ return (y = (b = F(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
2482
2482
  });
2483
2483
  });
2484
2484
  function c(b) {
2485
2485
  if (e.disabled) return b.preventDefault();
2486
- i.closeMenu(), Qo(R(i.buttonRef));
2486
+ i.closeMenu(), Qo(F(i.buttonRef));
2487
2487
  }
2488
2488
  function f() {
2489
2489
  if (e.disabled) return i.goToItem(be.Nothing);
@@ -2493,7 +2493,7 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2493
2493
  function g(b) {
2494
2494
  h.update(b);
2495
2495
  }
2496
- function v(b) {
2496
+ function p(b) {
2497
2497
  h.wasMoved(b) && (e.disabled || s.value || i.goToItem(be.Specific, o, 0));
2498
2498
  }
2499
2499
  function m(b) {
@@ -2501,7 +2501,7 @@ let Yu = $({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2501
2501
  }
2502
2502
  return () => {
2503
2503
  let { disabled: b, ...y } = e, C = { active: s.value, disabled: b, close: i.closeMenu };
2504
- return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: c, onFocus: f, onPointerenter: g, onMouseenter: g, onPointermove: v, onMousemove: v, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...y }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2504
+ return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: c, onFocus: f, onPointerenter: g, onMouseenter: g, onPointermove: p, onMousemove: p, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...y }, slot: C, attrs: n, slots: t, name: "MenuItem" });
2505
2505
  };
2506
2506
  } }), yi = /* @__PURE__ */ Symbol("LabelContext");
2507
2507
  function Ai() {
@@ -2522,7 +2522,7 @@ function wi({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
2522
2522
  }
2523
2523
  return Pe(yi, { register: a, slot: e, name: t, props: n }), T(() => r.value.length > 0 ? r.value.join(" ") : void 0);
2524
2524
  }
2525
- $({ 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 }) {
2525
+ R({ 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 }) {
2526
2526
  var r;
2527
2527
  let a = (r = e.id) != null ? r : `headlessui-label-${Te()}`, o = Ai();
2528
2528
  return te(() => De(o.register(a))), () => {
@@ -2542,7 +2542,7 @@ function ki(e) {
2542
2542
  }
2543
2543
  return t;
2544
2544
  }
2545
- let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Ku }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2545
+ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Ku }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
2546
2546
  var o;
2547
2547
  let i = (o = e.id) != null ? o : `headlessui-radiogroup-${Te()}`, l = E(null), s = E([]), d = wi({ name: "RadioGroupLabel" }), u = va({ name: "RadioGroupDescription" });
2548
2548
  a({ el: l, $el: l });
@@ -2563,7 +2563,7 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2563
2563
  let b = s.value.findIndex((y) => y.id === m);
2564
2564
  b !== -1 && s.value.splice(b, 1);
2565
2565
  } };
2566
- Pe(xi, h), ca({ container: T(() => R(l)), accept(m) {
2566
+ Pe(xi, h), ca({ container: T(() => F(l)), accept(m) {
2567
2567
  return m.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : m.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2568
2568
  }, walk(m) {
2569
2569
  m.setAttribute("role", "none");
@@ -2579,8 +2579,8 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2579
2579
  case Z.ArrowUp:
2580
2580
  if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Previous | xe.WrapAround) === Ot.Success) {
2581
2581
  let y = s.value.find((C) => {
2582
- var p;
2583
- return C.element === ((p = je(l)) == null ? void 0 : p.activeElement);
2582
+ var v;
2583
+ return C.element === ((v = je(l)) == null ? void 0 : v.activeElement);
2584
2584
  });
2585
2585
  y && h.change(y.propsRef.value);
2586
2586
  }
@@ -2589,8 +2589,8 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2589
2589
  case Z.ArrowDown:
2590
2590
  if (m.preventDefault(), m.stopPropagation(), Ne(b, xe.Next | xe.WrapAround) === Ot.Success) {
2591
2591
  let y = s.value.find((C) => {
2592
- var p;
2593
- return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2592
+ var v;
2593
+ return C.element === ((v = je(C.element)) == null ? void 0 : v.activeElement);
2594
2594
  });
2595
2595
  y && h.change(y.propsRef.value);
2596
2596
  }
@@ -2599,48 +2599,48 @@ let Ju = $({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2599
2599
  {
2600
2600
  m.preventDefault(), m.stopPropagation();
2601
2601
  let y = s.value.find((C) => {
2602
- var p;
2603
- return C.element === ((p = je(C.element)) == null ? void 0 : p.activeElement);
2602
+ var v;
2603
+ return C.element === ((v = je(C.element)) == null ? void 0 : v.activeElement);
2604
2604
  });
2605
2605
  y && h.change(y.propsRef.value);
2606
2606
  }
2607
2607
  break;
2608
2608
  }
2609
2609
  }
2610
- let v = T(() => {
2610
+ let p = T(() => {
2611
2611
  var m;
2612
- return (m = R(l)) == null ? void 0 : m.closest("form");
2612
+ return (m = F(l)) == null ? void 0 : m.closest("form");
2613
2613
  });
2614
2614
  return te(() => {
2615
- ne([v], () => {
2616
- if (!v.value || e.defaultValue === void 0) return;
2615
+ ne([p], () => {
2616
+ if (!p.value || e.defaultValue === void 0) return;
2617
2617
  function m() {
2618
2618
  h.change(e.defaultValue);
2619
2619
  }
2620
- return v.value.addEventListener("reset", m), () => {
2620
+ return p.value.addEventListener("reset", m), () => {
2621
2621
  var b;
2622
- (b = v.value) == null || b.removeEventListener("reset", m);
2622
+ (b = p.value) == null || b.removeEventListener("reset", m);
2623
2623
  };
2624
2624
  }, { immediate: !0 });
2625
2625
  }), () => {
2626
- let { disabled: m, name: b, form: y, ...C } = e, p = { ref: l, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2627
- return ue(fe, [...b != null && c.value != null ? pa({ [b]: c.value }).map(([k, A]) => ue(Xt, ni({ features: Yt.Hidden, key: k, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: m, name: k, value: A }))) : [], pe({ ourProps: p, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2626
+ let { disabled: m, name: b, form: y, ...C } = e, v = { ref: l, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
2627
+ return ue(fe, [...b != null && c.value != null ? pa({ [b]: c.value }).map(([x, k]) => ue(Xt, ni({ features: Yt.Hidden, key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: m, name: x, value: k }))) : [], pe({ ourProps: v, theirProps: { ...n, ...Qt(C, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2628
2628
  };
2629
2629
  } });
2630
2630
  var Zu = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(Zu || {});
2631
- let ed = $({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2631
+ let ed = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2632
2632
  var a;
2633
2633
  let o = (a = e.id) != null ? a : `headlessui-radiogroup-option-${Te()}`, i = ki("RadioGroupOption"), l = wi({ name: "RadioGroupLabel" }), s = va({ name: "RadioGroupDescription" }), d = E(null), u = T(() => ({ value: e.value, disabled: e.disabled })), c = E(1);
2634
2634
  r({ el: d, $el: d });
2635
- let f = T(() => R(d));
2635
+ let f = T(() => F(d));
2636
2636
  te(() => i.registerOption({ id: o, element: f, propsRef: u })), De(() => i.unregisterOption(o));
2637
2637
  let h = T(() => {
2638
- var p;
2639
- return ((p = i.firstOption.value) == null ? void 0 : p.id) === o;
2640
- }), g = T(() => i.disabled.value || e.disabled), v = T(() => i.compare(Le(i.value.value), Le(e.value))), m = T(() => g.value ? -1 : v.value || !i.containsCheckedOption.value && h.value ? 0 : -1);
2638
+ var v;
2639
+ return ((v = i.firstOption.value) == null ? void 0 : v.id) === o;
2640
+ }), g = T(() => i.disabled.value || e.disabled), p = T(() => i.compare(Le(i.value.value), Le(e.value))), m = T(() => g.value ? -1 : p.value || !i.containsCheckedOption.value && h.value ? 0 : -1);
2641
2641
  function b() {
2642
- var p;
2643
- i.change(e.value) && (c.value |= 2, (p = R(d)) == null || p.focus());
2642
+ var v;
2643
+ i.change(e.value) && (c.value |= 2, (v = F(d)) == null || v.focus());
2644
2644
  }
2645
2645
  function y() {
2646
2646
  c.value |= 2;
@@ -2649,10 +2649,10 @@ let ed = $({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
2649
2649
  c.value &= -3;
2650
2650
  }
2651
2651
  return () => {
2652
- let { value: p, disabled: k, ...A } = e, S = { checked: v.value, disabled: g.value, active: !!(c.value & 2) }, x = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : b, onFocus: g.value ? void 0 : y, onBlur: g.value ? void 0 : C };
2653
- return pe({ ourProps: x, theirProps: A, slot: S, attrs: t, slots: n, name: "RadioGroupOption" });
2652
+ let { value: v, disabled: x, ...k } = e, S = { checked: p.value, disabled: g.value, active: !!(c.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": p.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : b, onFocus: g.value ? void 0 : y, onBlur: g.value ? void 0 : C };
2653
+ return pe({ ourProps: A, theirProps: k, slot: S, attrs: t, slots: n, name: "RadioGroupOption" });
2654
2654
  };
2655
- } }), td = $({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
2655
+ } }), td = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
2656
2656
  let t = E(!0);
2657
2657
  return () => t.value ? ue(Xt, { as: "button", type: "button", features: Yt.Focusable, onFocus(n) {
2658
2658
  n.preventDefault();
@@ -2682,45 +2682,45 @@ function Vn(e) {
2682
2682
  }
2683
2683
  return t;
2684
2684
  }
2685
- let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", emits: { change: (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: !1 }, manual: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
2685
+ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", emits: { change: (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: !1 }, manual: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
2686
2686
  var a;
2687
2687
  let o = E((a = e.selectedIndex) != null ? a : e.defaultIndex), i = E([]), l = E([]), s = T(() => e.selectedIndex !== null), d = T(() => s.value ? e.selectedIndex : o.value);
2688
- function u(v) {
2688
+ function u(p) {
2689
2689
  var m;
2690
- let b = bt(c.tabs.value, R), y = bt(c.panels.value, R), C = b.filter((p) => {
2691
- var k;
2692
- return !((k = R(p)) != null && k.hasAttribute("disabled"));
2690
+ let b = bt(c.tabs.value, F), y = bt(c.panels.value, F), C = b.filter((v) => {
2691
+ var x;
2692
+ return !((x = F(v)) != null && x.hasAttribute("disabled"));
2693
2693
  });
2694
- if (v < 0 || v > b.length - 1) {
2695
- let p = Ce(o.value === null ? 0 : Math.sign(v - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(v), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), k = Ce(p, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
2696
- k !== -1 && (o.value = k), c.tabs.value = b, c.panels.value = y;
2694
+ if (p < 0 || p > b.length - 1) {
2695
+ let v = Ce(o.value === null ? 0 : Math.sign(p - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(p), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), x = Ce(v, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
2696
+ x !== -1 && (o.value = x), c.tabs.value = b, c.panels.value = y;
2697
2697
  } else {
2698
- let p = b.slice(0, v), k = [...b.slice(v), ...p].find((S) => C.includes(S));
2699
- if (!k) return;
2700
- let A = (m = b.indexOf(k)) != null ? m : c.selectedIndex.value;
2701
- A === -1 && (A = c.selectedIndex.value), o.value = A, c.tabs.value = b, c.panels.value = y;
2698
+ let v = b.slice(0, p), x = [...b.slice(p), ...v].find((S) => C.includes(S));
2699
+ if (!x) return;
2700
+ let k = (m = b.indexOf(x)) != null ? m : c.selectedIndex.value;
2701
+ k === -1 && (k = c.selectedIndex.value), o.value = k, c.tabs.value = b, c.panels.value = y;
2702
2702
  }
2703
2703
  }
2704
2704
  let c = { selectedIndex: T(() => {
2705
- var v, m;
2706
- return (m = (v = o.value) != null ? v : e.defaultIndex) != null ? m : null;
2707
- }), orientation: T(() => e.vertical ? "vertical" : "horizontal"), activation: T(() => e.manual ? "manual" : "auto"), tabs: i, panels: l, setSelectedIndex(v) {
2708
- d.value !== v && r("change", v), s.value || u(v);
2709
- }, registerTab(v) {
2705
+ var p, m;
2706
+ return (m = (p = o.value) != null ? p : e.defaultIndex) != null ? m : null;
2707
+ }), orientation: T(() => e.vertical ? "vertical" : "horizontal"), activation: T(() => e.manual ? "manual" : "auto"), tabs: i, panels: l, setSelectedIndex(p) {
2708
+ d.value !== p && r("change", p), s.value || u(p);
2709
+ }, registerTab(p) {
2710
2710
  var m;
2711
- if (i.value.includes(v)) return;
2711
+ if (i.value.includes(p)) return;
2712
2712
  let b = i.value[o.value];
2713
- if (i.value.push(v), i.value = bt(i.value, R), !s.value) {
2713
+ if (i.value.push(p), i.value = bt(i.value, F), !s.value) {
2714
2714
  let y = (m = i.value.indexOf(b)) != null ? m : o.value;
2715
2715
  y !== -1 && (o.value = y);
2716
2716
  }
2717
- }, unregisterTab(v) {
2718
- let m = i.value.indexOf(v);
2717
+ }, unregisterTab(p) {
2718
+ let m = i.value.indexOf(p);
2719
2719
  m !== -1 && i.value.splice(m, 1);
2720
- }, registerPanel(v) {
2721
- l.value.includes(v) || (l.value.push(v), l.value = bt(l.value, R));
2722
- }, unregisterPanel(v) {
2723
- let m = l.value.indexOf(v);
2720
+ }, registerPanel(p) {
2721
+ l.value.includes(p) || (l.value.push(p), l.value = bt(l.value, F));
2722
+ }, unregisterPanel(p) {
2723
+ let m = l.value.indexOf(p);
2724
2724
  m !== -1 && l.value.splice(m, 1);
2725
2725
  } };
2726
2726
  Pe(Si, c);
@@ -2731,30 +2731,30 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2731
2731
  let g = T(() => e.selectedIndex);
2732
2732
  return te(() => {
2733
2733
  ne([g], () => {
2734
- var v;
2735
- return u((v = e.selectedIndex) != null ? v : e.defaultIndex);
2734
+ var p;
2735
+ return u((p = e.selectedIndex) != null ? p : e.defaultIndex);
2736
2736
  }, { immediate: !0 });
2737
2737
  }), Ee(() => {
2738
2738
  if (!s.value || d.value == null || c.tabs.value.length <= 0) return;
2739
- let v = bt(c.tabs.value, R);
2740
- v.some((m, b) => R(c.tabs.value[b]) !== R(m)) && c.setSelectedIndex(v.findIndex((m) => R(m) === R(c.tabs.value[d.value])));
2739
+ let p = bt(c.tabs.value, F);
2740
+ p.some((m, b) => F(c.tabs.value[b]) !== F(m)) && c.setSelectedIndex(p.findIndex((m) => F(m) === F(c.tabs.value[d.value])));
2741
2741
  }), () => {
2742
- let v = { selectedIndex: o.value };
2742
+ let p = { selectedIndex: o.value };
2743
2743
  return ue(fe, [i.value.length <= 0 && ue(td, { onFocus: () => {
2744
2744
  for (let m of i.value) {
2745
- let b = R(m);
2745
+ let b = F(m);
2746
2746
  if (b?.tabIndex === 0) return b.focus(), !0;
2747
2747
  }
2748
2748
  return !1;
2749
- } }), pe({ theirProps: { ...n, ...Qt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: v, slots: t, attrs: n, name: "TabGroup" })]);
2749
+ } }), pe({ theirProps: { ...n, ...Qt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: p, slots: t, attrs: n, name: "TabGroup" })]);
2750
2750
  };
2751
- } }), od = $({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n }) {
2751
+ } }), od = R({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n }) {
2752
2752
  let r = Vn("TabList");
2753
2753
  return () => {
2754
2754
  let a = { selectedIndex: r.selectedIndex.value }, o = { role: "tablist", "aria-orientation": r.orientation.value };
2755
2755
  return pe({ ourProps: o, theirProps: e, slot: a, attrs: t, slots: n, name: "TabList" });
2756
2756
  };
2757
- } }), id = $({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2757
+ } }), id = R({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
2758
2758
  var a;
2759
2759
  let o = (a = e.id) != null ? a : `headlessui-tabs-tab-${Te()}`, i = Vn("Tab"), l = E(null);
2760
2760
  r({ el: l, $el: l }), te(() => i.registerTab(l)), De(() => i.unregisterTab(l));
@@ -2770,15 +2770,15 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2770
2770
  }), c = T(() => u.value === i.selectedIndex.value);
2771
2771
  function f(y) {
2772
2772
  var C;
2773
- let p = y();
2774
- if (p === Ot.Success && i.activation.value === "auto") {
2775
- let k = (C = je(l)) == null ? void 0 : C.activeElement, A = i.tabs.value.findIndex((S) => R(S) === k);
2776
- A !== -1 && i.setSelectedIndex(A);
2773
+ let v = y();
2774
+ if (v === Ot.Success && i.activation.value === "auto") {
2775
+ let x = (C = je(l)) == null ? void 0 : C.activeElement, k = i.tabs.value.findIndex((S) => F(S) === x);
2776
+ k !== -1 && i.setSelectedIndex(k);
2777
2777
  }
2778
- return p;
2778
+ return v;
2779
2779
  }
2780
2780
  function h(y) {
2781
- let C = i.tabs.value.map((p) => R(p)).filter(Boolean);
2781
+ let C = i.tabs.value.map((v) => F(v)).filter(Boolean);
2782
2782
  if (y.key === Z.Space || y.key === Z.Enter) {
2783
2783
  y.preventDefault(), y.stopPropagation(), i.setSelectedIndex(u.value);
2784
2784
  return;
@@ -2798,9 +2798,9 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2798
2798
  } })) === Ot.Success) return y.preventDefault();
2799
2799
  }
2800
2800
  let g = E(!1);
2801
- function v() {
2801
+ function p() {
2802
2802
  var y;
2803
- g.value || (g.value = !0, !e.disabled && ((y = R(l)) == null || y.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2803
+ g.value || (g.value = !0, !e.disabled && ((y = F(l)) == null || y.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
2804
2804
  g.value = !1;
2805
2805
  })));
2806
2806
  }
@@ -2810,16 +2810,16 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2810
2810
  let b = da(T(() => ({ as: e.as, type: t.type })), l);
2811
2811
  return () => {
2812
2812
  var y, C;
2813
- let p = { selected: c.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...k } = e, A = { ref: l, onKeydown: h, onMousedown: m, onClick: v, id: o, role: "tab", type: b.value, "aria-controls": (C = R(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2814
- return pe({ ourProps: A, theirProps: k, slot: p, attrs: t, slots: n, name: "Tab" });
2813
+ let v = { selected: c.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...x } = e, k = { ref: l, onKeydown: h, onMousedown: m, onClick: p, id: o, role: "tab", type: b.value, "aria-controls": (C = F(i.panels.value[u.value])) == null ? void 0 : C.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
2814
+ return pe({ ourProps: k, theirProps: x, slot: v, attrs: t, slots: n, name: "Tab" });
2815
2815
  };
2816
- } }), ld = $({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2816
+ } }), ld = R({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
2817
2817
  let r = Vn("TabPanels");
2818
2818
  return () => {
2819
2819
  let a = { selectedIndex: r.selectedIndex.value };
2820
2820
  return pe({ theirProps: e, ourProps: {}, slot: a, attrs: n, slots: t, name: "TabPanels" });
2821
2821
  };
2822
- } }), sd = $({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null }, tabIndex: { type: Number, default: 0 } }, setup(e, { attrs: t, slots: n, expose: r }) {
2822
+ } }), sd = R({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null }, tabIndex: { type: Number, default: 0 } }, setup(e, { attrs: t, slots: n, expose: r }) {
2823
2823
  var a;
2824
2824
  let o = (a = e.id) != null ? a : `headlessui-tabs-panel-${Te()}`, i = Vn("TabPanel"), l = E(null);
2825
2825
  r({ el: l, $el: l }), te(() => i.registerPanel(l)), De(() => i.unregisterPanel(l));
@@ -2835,8 +2835,8 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = $({ name: "TabGroup", em
2835
2835
  }), c = T(() => u.value === i.selectedIndex.value);
2836
2836
  return () => {
2837
2837
  var f;
2838
- let h = { selected: c.value }, { tabIndex: g, ...v } = e, m = { ref: l, id: o, role: "tabpanel", "aria-labelledby": (f = R(i.tabs.value[u.value])) == null ? void 0 : f.id, tabIndex: c.value ? g : -1 };
2839
- return !c.value && e.unmount && !e.static ? ue(Xt, { as: "span", "aria-hidden": !0, ...m }) : pe({ ourProps: m, theirProps: v, slot: h, attrs: t, slots: n, features: Qe.Static | Qe.RenderStrategy, visible: c.value, name: "TabPanel" });
2838
+ let h = { selected: c.value }, { tabIndex: g, ...p } = e, m = { ref: l, id: o, role: "tabpanel", "aria-labelledby": (f = F(i.tabs.value[u.value])) == null ? void 0 : f.id, tabIndex: c.value ? g : -1 };
2839
+ return !c.value && e.unmount && !e.static ? ue(Xt, { as: "span", "aria-hidden": !0, ...m }) : pe({ ourProps: m, theirProps: p, slot: h, attrs: t, slots: n, features: Qe.Static | Qe.RenderStrategy, visible: c.value, name: "TabPanel" });
2840
2840
  };
2841
2841
  } });
2842
2842
  function ud(e) {
@@ -2907,7 +2907,7 @@ function Oi(e) {
2907
2907
  }
2908
2908
  return { children: t, register: a, unregister: r };
2909
2909
  }
2910
- let Ci = Qe.RenderStrategy, Gr = $({ 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: r, expose: a }) {
2910
+ let Ci = Qe.RenderStrategy, Gr = R({ 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: r, expose: a }) {
2911
2911
  let o = E(0);
2912
2912
  function i() {
2913
2913
  o.value |= Oe.Opening, t("beforeEnter");
@@ -2924,47 +2924,47 @@ let Ci = Qe.RenderStrategy, Gr = $({ props: { as: { type: [Object, String], defa
2924
2924
  if (!fd() && au()) return () => ue(ba, { ...e, onBeforeEnter: i, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: d }, r);
2925
2925
  let u = E(null), c = T(() => e.unmount ? Ct.Unmount : Ct.Hidden);
2926
2926
  a({ el: u, $el: u });
2927
- let { show: f, appear: h } = pd(), { register: g, unregister: v } = vd(), m = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, p = Oi(() => {
2928
- !C.value && m.value !== "hidden" && (m.value = "hidden", v(y), d());
2927
+ let { show: f, appear: h } = pd(), { register: g, unregister: p } = vd(), m = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, v = Oi(() => {
2928
+ !C.value && m.value !== "hidden" && (m.value = "hidden", p(y), d());
2929
2929
  });
2930
2930
  te(() => {
2931
- let L = g(y);
2932
- De(L);
2931
+ let $ = g(y);
2932
+ De($);
2933
2933
  }), Ee(() => {
2934
2934
  if (c.value === Ct.Hidden && y) {
2935
2935
  if (f.value && m.value !== "visible") {
2936
2936
  m.value = "visible";
2937
2937
  return;
2938
2938
  }
2939
- Ce(m.value, { hidden: () => v(y), visible: () => g(y) });
2939
+ Ce(m.value, { hidden: () => p(y), visible: () => g(y) });
2940
2940
  }
2941
2941
  });
2942
- let k = _t(e.enter), A = _t(e.enterFrom), S = _t(e.enterTo), x = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
2942
+ let x = _t(e.enter), k = _t(e.enterFrom), S = _t(e.enterTo), A = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
2943
2943
  te(() => {
2944
2944
  Ee(() => {
2945
2945
  if (m.value === "visible") {
2946
- let L = R(u);
2947
- if (L instanceof Comment && L.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2946
+ let $ = F(u);
2947
+ if ($ instanceof Comment && $.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2948
2948
  }
2949
2949
  });
2950
2950
  });
2951
- function F(L) {
2952
- let U = b.value && !h.value, Y = R(u);
2953
- !Y || !(Y instanceof HTMLElement) || U || (C.value = !0, f.value && i(), f.value || s(), L(f.value ? Za(Y, k, A, S, x, (G) => {
2951
+ function L($) {
2952
+ let U = b.value && !h.value, Y = F(u);
2953
+ !Y || !(Y instanceof HTMLElement) || U || (C.value = !0, f.value && i(), f.value || s(), $(f.value ? Za(Y, x, k, S, A, (G) => {
2954
2954
  C.value = !1, G === Qr.Finished && l();
2955
- }) : Za(Y, M, P, I, x, (G) => {
2956
- C.value = !1, G === Qr.Finished && (br(p) || (m.value = "hidden", v(y), d()));
2955
+ }) : Za(Y, M, P, I, A, (G) => {
2956
+ C.value = !1, G === Qr.Finished && (br(v) || (m.value = "hidden", p(y), d()));
2957
2957
  })));
2958
2958
  }
2959
2959
  return te(() => {
2960
- ne([f], (L, U, Y) => {
2961
- F(Y), b.value = !1;
2960
+ ne([f], ($, U, Y) => {
2961
+ L(Y), b.value = !1;
2962
2962
  }, { immediate: !0 });
2963
- }), Pe(ga, p), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
2964
- let { appear: L, show: U, enter: Y, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: ee, ...ie } = e, Ae = { ref: u }, me = { ...ie, ...h.value && f.value && Ln.isServer ? { class: z([n.class, ie.class, ...k, ...A]) } : {} };
2963
+ }), Pe(ga, v), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
2964
+ let { appear: $, show: U, enter: Y, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: ee, ...ie } = e, Ae = { ref: u }, me = { ...ie, ...h.value && f.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...k]) } : {} };
2965
2965
  return pe({ theirProps: me, ourProps: Ae, slot: {}, slots: r, attrs: n, features: Ci, visible: m.value === "visible", name: "TransitionChild" });
2966
2966
  };
2967
- } }), md = Gr, ba = $({ 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: r }) {
2967
+ } }), md = Gr, ba = R({ 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: r }) {
2968
2968
  let a = Fn(), o = T(() => e.show === null && a !== null ? (a.value & Oe.Open) === Oe.Open : e.show);
2969
2969
  Ee(() => {
2970
2970
  if (![!0, !1].includes(o.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
@@ -2981,7 +2981,7 @@ let Ci = Qe.RenderStrategy, Gr = $({ props: { as: { type: [Object, String], defa
2981
2981
  return pe({ ourProps: { ...c, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [ue(md, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...c, ...u }, r.default)] }, attrs: {}, features: Ci, visible: i.value === "visible", name: "Transition" });
2982
2982
  };
2983
2983
  } });
2984
- const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
2984
+ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
2985
2985
  __name: "base-dropdown",
2986
2986
  props: {
2987
2987
  position: { default: "left" },
@@ -3025,7 +3025,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3025
3025
  });
3026
3026
  };
3027
3027
  }
3028
- }), bd = /* @__PURE__ */ oe(gd, [["__scopeId", "data-v-f61add00"]]), yd = /* @__PURE__ */ $({
3028
+ }), bd = /* @__PURE__ */ oe(gd, [["__scopeId", "data-v-f61add00"]]), yd = /* @__PURE__ */ R({
3029
3029
  __name: "base-dropdown-item",
3030
3030
  props: {
3031
3031
  text: { default: "" }
@@ -3042,7 +3042,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3042
3042
  _: 3
3043
3043
  }));
3044
3044
  }
3045
- }), Ad = /* @__PURE__ */ oe(yd, [["__scopeId", "data-v-83495c7b"]]), Ei = /* @__PURE__ */ $({
3045
+ }), Ad = /* @__PURE__ */ oe(yd, [["__scopeId", "data-v-83495c7b"]]), Ei = /* @__PURE__ */ R({
3046
3046
  __name: "base-icon",
3047
3047
  props: {
3048
3048
  icon: {},
@@ -3053,7 +3053,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3053
3053
  class: z([e.icon, "inline-block", "text-xl", { "w-1.2em": e.fixedWidth }])
3054
3054
  }, null, 2));
3055
3055
  }
3056
- }), wd = ["href"], xd = /* @__PURE__ */ $({
3056
+ }), wd = ["href"], xd = /* @__PURE__ */ R({
3057
3057
  __name: "base-link",
3058
3058
  props: {
3059
3059
  href: {},
@@ -3076,7 +3076,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3076
3076
  Q(o.$slots, "default", {}, void 0, !0)
3077
3077
  ], 8, wd));
3078
3078
  }
3079
- }), kd = /* @__PURE__ */ oe(xd, [["__scopeId", "data-v-232da412"]]), Sd = /* @__PURE__ */ $({
3079
+ }), kd = /* @__PURE__ */ oe(xd, [["__scopeId", "data-v-232da412"]]), Sd = /* @__PURE__ */ R({
3080
3080
  __name: "base-loader",
3081
3081
  props: {
3082
3082
  type: { default: "classic" },
@@ -3092,7 +3092,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3092
3092
  ], !0)
3093
3093
  ], 2));
3094
3094
  }
3095
- }), Od = /* @__PURE__ */ oe(Sd, [["__scopeId", "data-v-eeedca6a"]]), Cd = ["src"], Ed = /* @__PURE__ */ $({
3095
+ }), Od = /* @__PURE__ */ oe(Sd, [["__scopeId", "data-v-eeedca6a"]]), Cd = ["src"], Ed = /* @__PURE__ */ R({
3096
3096
  __name: "base-mask",
3097
3097
  props: {
3098
3098
  shape: {},
@@ -3114,7 +3114,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3114
3114
  src: e.src
3115
3115
  }, null, 10, Cd));
3116
3116
  }
3117
- }), Td = /* @__PURE__ */ oe(Ed, [["__scopeId", "data-v-9a6dbd27"]]), Bd = { class: "fixed inset-0 overflow-y-auto" }, Pd = { class: "min-h-full flex items-center justify-center text-center" }, Dd = { class: "flex justify-between" }, Id = { class: "text-xl font-bold" }, Md = { class: "max-h-90vh overflow-auto mt-4" }, $d = /* @__PURE__ */ $({
3117
+ }), Td = /* @__PURE__ */ oe(Ed, [["__scopeId", "data-v-9a6dbd27"]]), Bd = { class: "fixed inset-0 overflow-y-auto" }, Pd = { class: "min-h-full flex items-center justify-center text-center" }, Dd = { class: "flex justify-between" }, Id = { class: "text-xl font-bold" }, Md = { class: "max-h-90vh overflow-auto mt-4" }, $d = /* @__PURE__ */ R({
3118
3118
  __name: "base-modal",
3119
3119
  props: {
3120
3120
  title: {},
@@ -3219,7 +3219,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3219
3219
  }), Rd = { class: "flex w-full items-center justify-between" }, Ld = { class: "text-sm text-slate-600 dark:text-slate-400" }, Fd = {
3220
3220
  key: 0,
3221
3221
  class: "flex gap-2"
3222
- }, _d = /* @__PURE__ */ $({
3222
+ }, _d = /* @__PURE__ */ R({
3223
3223
  __name: "base-pagination",
3224
3224
  props: {
3225
3225
  modelValue: {},
@@ -3253,13 +3253,13 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3253
3253
  return !0;
3254
3254
  };
3255
3255
  return (f, h) => {
3256
- const g = K("base-icon"), v = K("base-button");
3256
+ const g = K("base-icon"), p = K("base-button");
3257
3257
  return w(), B("div", Rd, [
3258
3258
  O("div", null, [
3259
3259
  O("p", Ld, " Showing " + q(e.totalDocument ? 1 + (a.value - 1) * e.pageSize : 0) + " to " + q(a.value * e.pageSize > e.totalDocument ? e.totalDocument : a.value * e.pageSize) + " of " + q(e.totalDocument) + " entries ", 1)
3260
3260
  ]),
3261
3261
  o.value > 1 ? (w(), B("div", Fd, [
3262
- o.value > 5 ? (w(), X(v, {
3262
+ o.value > 5 ? (w(), X(p, {
3263
3263
  key: 0,
3264
3264
  disabled: a.value === 1,
3265
3265
  variant: "text",
@@ -3271,7 +3271,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3271
3271
  ]),
3272
3272
  _: 1
3273
3273
  }, 8, ["disabled"])) : V("", !0),
3274
- o.value > 5 ? (w(), X(v, {
3274
+ o.value > 5 ? (w(), X(p, {
3275
3275
  key: 1,
3276
3276
  disabled: a.value === 1,
3277
3277
  variant: "text",
@@ -3284,7 +3284,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3284
3284
  _: 1
3285
3285
  }, 8, ["disabled"])) : V("", !0),
3286
3286
  (w(!0), B(fe, null, Ie(o.value, (m) => (w(), B(fe, { key: m }, [
3287
- c(m) ? (w(), X(v, {
3287
+ c(m) ? (w(), X(p, {
3288
3288
  key: 0,
3289
3289
  type: "button",
3290
3290
  size: "sm",
@@ -3301,7 +3301,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3301
3301
  _: 2
3302
3302
  }, 1032, ["onClick", "class"])) : V("", !0)
3303
3303
  ], 64))), 128)),
3304
- o.value > 5 ? (w(), X(v, {
3304
+ o.value > 5 ? (w(), X(p, {
3305
3305
  key: 2,
3306
3306
  disabled: a.value === o.value,
3307
3307
  variant: "text",
@@ -3313,7 +3313,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ $({
3313
3313
  ]),
3314
3314
  _: 1
3315
3315
  }, 8, ["disabled"])) : V("", !0),
3316
- o.value > 5 ? (w(), X(v, {
3316
+ o.value > 5 ? (w(), X(p, {
3317
3317
  key: 3,
3318
3318
  disabled: a.value === o.value,
3319
3319
  variant: "text",
@@ -3405,7 +3405,7 @@ function eo(e, t, n = {}) {
3405
3405
  }
3406
3406
  function c(m, b) {
3407
3407
  const y = ut(m), C = y.$.subTree && y.$.subTree.children;
3408
- return C == null || !Array.isArray(C) ? !1 : C.some((p) => p.el === b.target || b.composedPath().includes(p.el));
3408
+ return C == null || !Array.isArray(C) ? !1 : C.some((v) => v.el === b.target || b.composedPath().includes(v.el));
3409
3409
  }
3410
3410
  const f = (m) => {
3411
3411
  const b = Sn(e);
@@ -3438,16 +3438,16 @@ function eo(e, t, n = {}) {
3438
3438
  ((b = r.document.activeElement) === null || b === void 0 ? void 0 : b.tagName) === "IFRAME" && !y?.contains(r.document.activeElement) && t(m);
3439
3439
  }, 0);
3440
3440
  }, { passive: !0 })
3441
- ].filter(Boolean), v = () => g.forEach((m) => m());
3441
+ ].filter(Boolean), p = () => g.forEach((m) => m());
3442
3442
  return l ? {
3443
- stop: v,
3443
+ stop: p,
3444
3444
  cancel: () => {
3445
3445
  s = !1;
3446
3446
  },
3447
3447
  trigger: (m) => {
3448
3448
  s = !0, f(m), s = !1;
3449
3449
  }
3450
- } : v;
3450
+ } : p;
3451
3451
  }
3452
3452
  function Pr(e) {
3453
3453
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
@@ -3905,24 +3905,24 @@ function Fi(e, t) {
3905
3905
  }
3906
3906
  function Oa(e, t) {
3907
3907
  t === void 0 && (t = {});
3908
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, l = n.rootBoundary, s = l === void 0 ? Di : l, d = n.elementContext, u = d === void 0 ? bn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, v = Li(typeof g != "number" ? g : Fi(g, jn)), m = u === bn ? oc : bn, b = e.rects.popper, y = e.elements[f ? m : u], C = Sc(Tn(y) ? y : y.contextElement || Dt(e.elements.popper), i, s), p = an(e.elements.reference), k = $i({
3909
- reference: p,
3908
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? ac : o, l = n.rootBoundary, s = l === void 0 ? Di : l, d = n.elementContext, u = d === void 0 ? bn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, p = Li(typeof g != "number" ? g : Fi(g, jn)), m = u === bn ? oc : bn, b = e.rects.popper, y = e.elements[f ? m : u], C = Sc(Tn(y) ? y : y.contextElement || Dt(e.elements.popper), i, s), v = an(e.elements.reference), x = $i({
3909
+ reference: v,
3910
3910
  element: b,
3911
3911
  placement: a
3912
- }), A = Jr(Object.assign({}, b, k)), S = u === bn ? A : p, x = {
3913
- top: C.top - S.top + v.top,
3914
- bottom: S.bottom - C.bottom + v.bottom,
3915
- left: C.left - S.left + v.left,
3916
- right: S.right - C.right + v.right
3912
+ }), k = Jr(Object.assign({}, b, x)), S = u === bn ? k : v, A = {
3913
+ top: C.top - S.top + p.top,
3914
+ bottom: S.bottom - C.bottom + p.bottom,
3915
+ left: C.left - S.left + p.left,
3916
+ right: S.right - C.right + p.right
3917
3917
  }, M = e.modifiersData.offset;
3918
3918
  if (u === bn && M) {
3919
3919
  var P = M[a];
3920
- Object.keys(x).forEach(function(I) {
3921
- var F = [nt, tt].indexOf(I) >= 0 ? 1 : -1, L = [qe, tt].indexOf(I) >= 0 ? "y" : "x";
3922
- x[I] += P[L] * F;
3920
+ Object.keys(A).forEach(function(I) {
3921
+ var L = [nt, tt].indexOf(I) >= 0 ? 1 : -1, $ = [qe, tt].indexOf(I) >= 0 ? "y" : "x";
3922
+ A[I] += P[$] * L;
3923
3923
  });
3924
3924
  }
3925
- return x;
3925
+ return A;
3926
3926
  }
3927
3927
  var ao = {
3928
3928
  placement: "bottom",
@@ -3956,13 +3956,13 @@ function Oc(e) {
3956
3956
  state: u,
3957
3957
  setOptions: function(b) {
3958
3958
  var y = typeof b == "function" ? b(u.options) : b;
3959
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
3959
+ p(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
3960
3960
  reference: Tn(l) ? On(l) : l.contextElement ? On(l.contextElement) : [],
3961
3961
  popper: On(s)
3962
3962
  };
3963
3963
  var C = gc(yc([].concat(r, u.options.modifiers)));
3964
- return u.orderedModifiers = C.filter(function(p) {
3965
- return p.enabled;
3964
+ return u.orderedModifiers = C.filter(function(v) {
3965
+ return v.enabled;
3966
3966
  }), g(), h.update();
3967
3967
  },
3968
3968
  // Sync update – it will always be executed, even if not necessary. This
@@ -3980,15 +3980,15 @@ function Oc(e) {
3980
3980
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
3981
3981
  return u.modifiersData[P.name] = Object.assign({}, P.data);
3982
3982
  });
3983
- for (var p = 0; p < u.orderedModifiers.length; p++) {
3983
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
3984
3984
  if (u.reset === !0) {
3985
- u.reset = !1, p = -1;
3985
+ u.reset = !1, v = -1;
3986
3986
  continue;
3987
3987
  }
3988
- var k = u.orderedModifiers[p], A = k.fn, S = k.options, x = S === void 0 ? {} : S, M = k.name;
3989
- typeof A == "function" && (u = A({
3988
+ var x = u.orderedModifiers[v], k = x.fn, S = x.options, A = S === void 0 ? {} : S, M = x.name;
3989
+ typeof k == "function" && (u = k({
3990
3990
  state: u,
3991
- options: x,
3991
+ options: A,
3992
3992
  name: M,
3993
3993
  instance: h
3994
3994
  }) || u);
@@ -4004,7 +4004,7 @@ function Oc(e) {
4004
4004
  });
4005
4005
  }),
4006
4006
  destroy: function() {
4007
- v(), f = !0;
4007
+ p(), f = !0;
4008
4008
  }
4009
4009
  };
4010
4010
  if (!oo(l, s))
@@ -4014,20 +4014,20 @@ function Oc(e) {
4014
4014
  });
4015
4015
  function g() {
4016
4016
  u.orderedModifiers.forEach(function(m) {
4017
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
4018
- if (typeof p == "function") {
4019
- var k = p({
4017
+ var b = m.name, y = m.options, C = y === void 0 ? {} : y, v = m.effect;
4018
+ if (typeof v == "function") {
4019
+ var x = v({
4020
4020
  state: u,
4021
4021
  name: b,
4022
4022
  instance: h,
4023
4023
  options: C
4024
- }), A = function() {
4024
+ }), k = function() {
4025
4025
  };
4026
- c.push(k || A);
4026
+ c.push(x || k);
4027
4027
  }
4028
4028
  });
4029
4029
  }
4030
- function v() {
4030
+ function p() {
4031
4031
  c.forEach(function(m) {
4032
4032
  return m();
4033
4033
  }), c = [];
@@ -4085,19 +4085,19 @@ function Dc(e) {
4085
4085
  };
4086
4086
  }
4087
4087
  function io(e) {
4088
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, f = c.x, h = f === void 0 ? 0 : f, g = c.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, p = window;
4088
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, f = c.x, h = f === void 0 ? 0 : f, g = c.y, p = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, v = window;
4089
4089
  if (d) {
4090
- var k = Nn(n), A = "clientHeight", S = "clientWidth";
4091
- k === rt(n) && (k = Dt(n), At(k).position !== "static" && l === "absolute" && (A = "scrollHeight", S = "scrollWidth")), k = k, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, v -= k[A] - r.height, v *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= k[S] - r.width, h *= s ? 1 : -1);
4090
+ var x = Nn(n), k = "clientHeight", S = "clientWidth";
4091
+ x === rt(n) && (x = Dt(n), At(x).position !== "static" && l === "absolute" && (k = "scrollHeight", S = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, p -= x[k] - r.height, p *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= x[S] - r.width, h *= s ? 1 : -1);
4092
4092
  }
4093
- var x = Object.assign({
4093
+ var A = Object.assign({
4094
4094
  position: l
4095
4095
  }, d && Pc);
4096
4096
  if (s) {
4097
4097
  var M;
4098
- return Object.assign({}, x, (M = {}, M[C] = b ? "0" : "", M[y] = m ? "0" : "", M.transform = (p.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", M));
4098
+ return Object.assign({}, A, (M = {}, M[C] = b ? "0" : "", M[y] = m ? "0" : "", M.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", M));
4099
4099
  }
4100
- return Object.assign({}, x, (t = {}, t[C] = b ? v + "px" : "", t[y] = m ? h + "px" : "", t.transform = "", t));
4100
+ return Object.assign({}, A, (t = {}, t[C] = b ? p + "px" : "", t[y] = m ? h + "px" : "", t.transform = "", t));
4101
4101
  }
4102
4102
  function Ic(e) {
4103
4103
  var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
@@ -4179,30 +4179,30 @@ function ir(e, t, n) {
4179
4179
  return Tt(e, Pn(t, n));
4180
4180
  }
4181
4181
  function Nc(e) {
4182
- var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, v = g === void 0 ? 0 : g, m = Oa(t, {
4182
+ var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, p = g === void 0 ? 0 : g, m = Oa(t, {
4183
4183
  boundary: s,
4184
4184
  rootBoundary: d,
4185
4185
  padding: c,
4186
4186
  altBoundary: u
4187
- }), b = dt(t.placement), y = ln(t.placement), C = !y, p = Sa(b), k = Vc(p), A = t.modifiersData.popperOffsets, S = t.rects.reference, x = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
4187
+ }), b = dt(t.placement), y = ln(t.placement), C = !y, v = Sa(b), x = Vc(v), k = t.modifiersData.popperOffsets, S = t.rects.reference, A = t.rects.popper, M = typeof p == "function" ? p(Object.assign({}, t.rects, {
4188
4188
  placement: t.placement
4189
- })) : v, P = {
4189
+ })) : p, P = {
4190
4190
  x: 0,
4191
4191
  y: 0
4192
4192
  };
4193
- if (A) {
4193
+ if (k) {
4194
4194
  if (o || l) {
4195
- var I = p === "y" ? qe : ze, F = p === "y" ? tt : nt, L = p === "y" ? "height" : "width", U = A[p], Y = A[p] + m[I], G = A[p] - m[F], ae = h ? -x[L] / 2 : 0, re = y === on ? S[L] : x[L], ce = y === on ? -x[L] : -S[L], ve = t.elements.arrow, ee = h && ve ? xa(ve) : {
4195
+ var I = v === "y" ? qe : ze, L = v === "y" ? tt : nt, $ = v === "y" ? "height" : "width", U = k[v], Y = k[v] + m[I], G = k[v] - m[L], ae = h ? -A[$] / 2 : 0, re = y === on ? S[$] : A[$], ce = y === on ? -A[$] : -S[$], ve = t.elements.arrow, ee = h && ve ? xa(ve) : {
4196
4196
  width: 0,
4197
4197
  height: 0
4198
- }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[F], ye = ir(0, S[L], ee[L]), Be = C ? S[L] / 2 - ae - ye - Ae - M : re - ye - Ae - M, ot = C ? -S[L] / 2 + ae + ye + me + M : ce + ye + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? p === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][p] : 0, mt = A[p] + Be - Ze - it, Mt = A[p] + ot - Ze;
4198
+ }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[L], ye = ir(0, S[$], ee[$]), Be = C ? S[$] / 2 - ae - ye - Ae - M : re - ye - Ae - M, ot = C ? -S[$] / 2 + ae + ye + me + M : ce + ye + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? v === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][v] : 0, mt = k[v] + Be - Ze - it, Mt = k[v] + ot - Ze;
4199
4199
  if (o) {
4200
4200
  var wt = ir(h ? Pn(Y, mt) : Y, U, h ? Tt(G, Mt) : G);
4201
- A[p] = wt, P[p] = wt - U;
4201
+ k[v] = wt, P[v] = wt - U;
4202
4202
  }
4203
4203
  if (l) {
4204
- var Kt = p === "x" ? qe : ze, Jt = p === "x" ? tt : nt, lt = A[k], xt = lt + m[Kt], $t = lt - m[Jt], Rt = ir(h ? Pn(xt, mt) : xt, lt, h ? Tt($t, Mt) : $t);
4205
- A[k] = Rt, P[k] = Rt - lt;
4204
+ var Kt = v === "x" ? qe : ze, Jt = v === "x" ? tt : nt, lt = k[x], xt = lt + m[Kt], $t = lt - m[Jt], Rt = ir(h ? Pn(xt, mt) : xt, lt, h ? Tt($t, Mt) : $t);
4205
+ k[x] = Rt, P[x] = Rt - lt;
4206
4206
  }
4207
4207
  }
4208
4208
  t.modifiersData[r] = P;
@@ -4242,16 +4242,16 @@ function qc(e, t) {
4242
4242
  return d.indexOf(g) >= 0;
4243
4243
  });
4244
4244
  f.length === 0 && (f = c);
4245
- var h = f.reduce(function(g, v) {
4246
- return g[v] = Oa(e, {
4247
- placement: v,
4245
+ var h = f.reduce(function(g, p) {
4246
+ return g[p] = Oa(e, {
4247
+ placement: p,
4248
4248
  boundary: a,
4249
4249
  rootBoundary: o,
4250
4250
  padding: i
4251
- })[dt(v)], g;
4251
+ })[dt(p)], g;
4252
4252
  }, {});
4253
- return Object.keys(h).sort(function(g, v) {
4254
- return h[g] - h[v];
4253
+ return Object.keys(h).sort(function(g, p) {
4254
+ return h[g] - h[p];
4255
4255
  });
4256
4256
  }
4257
4257
  function zc(e) {
@@ -4263,36 +4263,36 @@ function zc(e) {
4263
4263
  function Uc(e) {
4264
4264
  var t = e.state, n = e.options, r = e.name;
4265
4265
  if (!t.modifiersData[r]._skip) {
4266
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, b = dt(m), y = b === m, C = s || (y || !g ? [lr(m)] : zc(m)), p = [m].concat(C).reduce(function(me, ye) {
4266
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, m = t.options.placement, b = dt(m), y = b === m, C = s || (y || !g ? [lr(m)] : zc(m)), v = [m].concat(C).reduce(function(me, ye) {
4267
4267
  return me.concat(dt(ye) === ka ? qc(t, {
4268
4268
  placement: ye,
4269
4269
  boundary: u,
4270
4270
  rootBoundary: c,
4271
4271
  padding: d,
4272
4272
  flipVariations: g,
4273
- allowedAutoPlacements: v
4273
+ allowedAutoPlacements: p
4274
4274
  }) : ye);
4275
- }, []), k = t.rects.reference, A = t.rects.popper, S = /* @__PURE__ */ new Map(), x = !0, M = p[0], P = 0; P < p.length; P++) {
4276
- var I = p[P], F = dt(I), L = ln(I) === on, U = [qe, tt].indexOf(F) >= 0, Y = U ? "width" : "height", G = Oa(t, {
4275
+ }, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
4276
+ var I = v[P], L = dt(I), $ = ln(I) === on, U = [qe, tt].indexOf(L) >= 0, Y = U ? "width" : "height", G = Oa(t, {
4277
4277
  placement: I,
4278
4278
  boundary: u,
4279
4279
  rootBoundary: c,
4280
4280
  altBoundary: f,
4281
4281
  padding: d
4282
- }), ae = U ? L ? nt : ze : L ? tt : qe;
4283
- k[Y] > A[Y] && (ae = lr(ae));
4282
+ }), ae = U ? $ ? nt : ze : $ ? tt : qe;
4283
+ x[Y] > k[Y] && (ae = lr(ae));
4284
4284
  var re = lr(ae), ce = [];
4285
- if (o && ce.push(G[F] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
4285
+ if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
4286
4286
  return me;
4287
4287
  })) {
4288
- M = I, x = !1;
4288
+ M = I, A = !1;
4289
4289
  break;
4290
4290
  }
4291
4291
  S.set(I, ce);
4292
4292
  }
4293
- if (x)
4293
+ if (A)
4294
4294
  for (var ve = g ? 3 : 1, ee = function(ye) {
4295
- var Be = p.find(function(ot) {
4295
+ var Be = v.find(function(ot) {
4296
4296
  var Re = S.get(ot);
4297
4297
  if (Re)
4298
4298
  return Re.slice(0, ye).every(function(it) {
@@ -4350,8 +4350,8 @@ var Gc = {
4350
4350
  function Jc(e) {
4351
4351
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = dt(n.placement), s = Sa(l), d = [ze, nt].indexOf(l) >= 0, u = d ? "height" : "width";
4352
4352
  if (!(!o || !i)) {
4353
- var c = Kc(a.padding, n), f = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Nn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = c[h], k = y - f[u] - c[g], A = y / 2 - f[u] / 2 + C, S = ir(p, A, k), x = s;
4354
- n.modifiersData[r] = (t = {}, t[x] = S, t.centerOffset = S - A, t);
4353
+ var c = Kc(a.padding, n), f = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, p = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Nn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = p / 2 - m / 2, v = c[h], x = y - f[u] - c[g], k = y / 2 - f[u] / 2 + C, S = ir(v, k, x), A = s;
4354
+ n.modifiersData[r] = (t = {}, t[A] = S, t.centerOffset = S - k, t);
4355
4355
  }
4356
4356
  }
4357
4357
  function Zc(e) {
@@ -4381,13 +4381,13 @@ function tf({
4381
4381
  const s = pr({
4382
4382
  isOpen: !1,
4383
4383
  popperInstance: null
4384
- }), d = (v) => {
4384
+ }), d = (p) => {
4385
4385
  var m;
4386
4386
  (m = s.popperInstance) === null || m === void 0 || m.setOptions((b) => ({
4387
4387
  ...b,
4388
4388
  modifiers: [...b.modifiers, {
4389
4389
  name: "eventListeners",
4390
- enabled: v
4390
+ enabled: p
4391
4391
  }]
4392
4392
  }));
4393
4393
  }, u = () => d(!0), c = () => d(!1), f = () => {
@@ -4395,8 +4395,8 @@ function tf({
4395
4395
  }, h = () => {
4396
4396
  s.isOpen || (s.isOpen = !0, t("open:popper"));
4397
4397
  };
4398
- ne([() => s.isOpen, o], async ([v]) => {
4399
- v ? (await g(), u()) : c();
4398
+ ne([() => s.isOpen, o], async ([p]) => {
4399
+ p ? (await g(), u()) : c();
4400
4400
  });
4401
4401
  const g = async () => {
4402
4402
  await ke(), s.popperInstance = _c(l.value, i.value, {
@@ -4418,8 +4418,8 @@ function tf({
4418
4418
  }), s.popperInstance.update();
4419
4419
  };
4420
4420
  return vr(() => {
4421
- var v;
4422
- (v = s.popperInstance) === null || v === void 0 || v.destroy();
4421
+ var p;
4422
+ (p = s.popperInstance) === null || p === void 0 || p.destroy();
4423
4423
  }), {
4424
4424
  ...jo(s),
4425
4425
  open: h,
@@ -4637,46 +4637,46 @@ var Vi = {
4637
4637
  disabled: f,
4638
4638
  interactive: h,
4639
4639
  locked: g,
4640
- offsetDistance: v,
4640
+ offsetDistance: p,
4641
4641
  offsetSkid: m,
4642
4642
  openDelay: b,
4643
4643
  placement: y,
4644
4644
  show: C
4645
4645
  } = jo(n), {
4646
- isOpen: p,
4647
- open: k,
4648
- close: A
4646
+ isOpen: v,
4647
+ open: x,
4648
+ close: k
4649
4649
  } = tf({
4650
4650
  arrowPadding: s,
4651
4651
  emit: t,
4652
4652
  locked: g,
4653
- offsetDistance: v,
4653
+ offsetDistance: p,
4654
4654
  offsetSkid: m,
4655
4655
  placement: y,
4656
4656
  popperNode: o,
4657
4657
  triggerNode: i
4658
4658
  }), {
4659
4659
  hasContent: S
4660
- } = Kd(r, o, u), x = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => p.value && !M.value), I = T(() => !c.value && !x.value), F = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), L = Mr.debounce(k, b.value), U = Mr.debounce(A, d.value), Y = async () => {
4661
- M.value || x.value || (U.clear(), L());
4660
+ } = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => v.value && !M.value), I = T(() => !c.value && !A.value), L = T(() => h.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), $ = Mr.debounce(x, b.value), U = Mr.debounce(k, d.value), Y = async () => {
4661
+ M.value || A.value || (U.clear(), $());
4662
4662
  }, G = async () => {
4663
- x.value || (L.clear(), U());
4663
+ A.value || ($.clear(), U());
4664
4664
  }, ae = () => {
4665
- p.value ? G() : Y();
4665
+ v.value ? G() : Y();
4666
4666
  };
4667
4667
  return ne([S, f], ([re, ce]) => {
4668
- p.value && (!re || ce) && A();
4669
- }), ne(p, (re) => {
4668
+ v.value && (!re || ce) && k();
4669
+ }), ne(v, (re) => {
4670
4670
  re ? l.value = !0 : Mr.debounce(() => {
4671
4671
  l.value = !1;
4672
4672
  }, 200);
4673
4673
  }), Ee(() => {
4674
- x.value && (C.value ? L() : U());
4674
+ A.value && (C.value ? $() : U());
4675
4675
  }), Ee(() => {
4676
4676
  I.value && Gd(a, G);
4677
4677
  }), (re, ce) => (w(), B("div", {
4678
4678
  class: "inline-block",
4679
- style: Ye(N(F)),
4679
+ style: Ye(N(L)),
4680
4680
  onMouseleave: ce[2] || (ce[2] = (ve) => e.hover && G()),
4681
4681
  ref: (ve, ee) => {
4682
4682
  ee.popperContainerNode = ve, a.value = ve;
@@ -4699,7 +4699,7 @@ var Vi = {
4699
4699
  ee.popperNode = ve, o.value = ve;
4700
4700
  }
4701
4701
  }, [Q(re.$slots, "content", {
4702
- close: N(A),
4702
+ close: N(k),
4703
4703
  isOpen: l.value
4704
4704
  }, () => [$e(q(N(u)), 1)]), e.arrow ? (w(), X(of, {
4705
4705
  key: 0
@@ -4747,7 +4747,7 @@ var uf = /* @__PURE__ */ (() => {
4747
4747
  t.component("Popper", e);
4748
4748
  }, e;
4749
4749
  })();
4750
- const Ni = /* @__PURE__ */ $({
4750
+ const Ni = /* @__PURE__ */ R({
4751
4751
  __name: "base-popover",
4752
4752
  props: {
4753
4753
  placement: { default: "bottom" }
@@ -4789,7 +4789,7 @@ const Ni = /* @__PURE__ */ $({
4789
4789
  _: 3
4790
4790
  }, 16, ["placement", "show"]));
4791
4791
  }
4792
- }), df = /* @__PURE__ */ $({
4792
+ }), df = /* @__PURE__ */ R({
4793
4793
  __name: "base-progress",
4794
4794
  props: {
4795
4795
  modelValue: {},
@@ -4833,7 +4833,7 @@ const Ni = /* @__PURE__ */ $({
4833
4833
  ], 6)
4834
4834
  ], 2));
4835
4835
  }
4836
- }), cf = /* @__PURE__ */ oe(df, [["__scopeId", "data-v-a32daf0f"]]), ff = { class: "sitemap" }, pf = { key: 0 }, vf = { key: 1 }, mf = { class: "primary" }, hf = { id: "home" }, gf = ["href"], bf = { key: 0 }, yf = ["href"], Af = { key: 0 }, wf = ["href"], xf = { key: 0 }, kf = ["href"], Sf = /* @__PURE__ */ $({
4836
+ }), cf = /* @__PURE__ */ oe(df, [["__scopeId", "data-v-a32daf0f"]]), ff = { class: "sitemap" }, pf = { key: 0 }, vf = { key: 1 }, mf = { class: "primary" }, hf = { id: "home" }, gf = ["href"], bf = { key: 0 }, yf = ["href"], Af = { key: 0 }, wf = ["href"], xf = { key: 0 }, kf = ["href"], Sf = /* @__PURE__ */ R({
4837
4837
  __name: "base-sitemap",
4838
4838
  props: {
4839
4839
  sitemap: { required: !0 },
@@ -4896,7 +4896,7 @@ const Ni = /* @__PURE__ */ $({
4896
4896
  ])
4897
4897
  ]));
4898
4898
  }
4899
- }), Of = /* @__PURE__ */ oe(Sf, [["__scopeId", "data-v-03e99aa1"]]), Cf = /* @__PURE__ */ $({
4899
+ }), Of = /* @__PURE__ */ oe(Sf, [["__scopeId", "data-v-03e99aa1"]]), Cf = /* @__PURE__ */ R({
4900
4900
  __name: "base-spinner",
4901
4901
  props: {
4902
4902
  size: { default: "md" },
@@ -4914,7 +4914,7 @@ const Ni = /* @__PURE__ */ $({
4914
4914
  }, Df = {
4915
4915
  key: 0,
4916
4916
  class: "step-text"
4917
- }, If = /* @__PURE__ */ $({
4917
+ }, If = /* @__PURE__ */ R({
4918
4918
  __name: "base-step",
4919
4919
  props: {
4920
4920
  modelValue: {},
@@ -4957,7 +4957,7 @@ const Ni = /* @__PURE__ */ $({
4957
4957
  ]);
4958
4958
  };
4959
4959
  }
4960
- }), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ $({
4960
+ }), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ R({
4961
4961
  __name: "base-tab",
4962
4962
  setup(e) {
4963
4963
  return (t, n) => (w(), X(N(id), { as: "template" }, {
@@ -4967,7 +4967,7 @@ const Ni = /* @__PURE__ */ $({
4967
4967
  _: 3
4968
4968
  }));
4969
4969
  }
4970
- }), ji = /* @__PURE__ */ $({
4970
+ }), ji = /* @__PURE__ */ R({
4971
4971
  __name: "base-tab-group",
4972
4972
  setup(e) {
4973
4973
  return (t, n) => (w(), X(N(ad), { as: "div" }, {
@@ -4977,7 +4977,7 @@ const Ni = /* @__PURE__ */ $({
4977
4977
  _: 3
4978
4978
  }));
4979
4979
  }
4980
- }), Wi = /* @__PURE__ */ $({
4980
+ }), Wi = /* @__PURE__ */ R({
4981
4981
  __name: "base-tab-list",
4982
4982
  setup(e) {
4983
4983
  return (t, n) => (w(), X(N(od), null, {
@@ -4987,7 +4987,7 @@ const Ni = /* @__PURE__ */ $({
4987
4987
  _: 3
4988
4988
  }));
4989
4989
  }
4990
- }), ea = /* @__PURE__ */ $({
4990
+ }), ea = /* @__PURE__ */ R({
4991
4991
  __name: "base-tab-panel",
4992
4992
  setup(e) {
4993
4993
  return (t, n) => (w(), X(N(sd), null, {
@@ -4997,7 +4997,7 @@ const Ni = /* @__PURE__ */ $({
4997
4997
  _: 3
4998
4998
  }));
4999
4999
  }
5000
- }), Hi = /* @__PURE__ */ $({
5000
+ }), Hi = /* @__PURE__ */ R({
5001
5001
  __name: "base-tab-panels",
5002
5002
  setup(e) {
5003
5003
  return (t, n) => (w(), X(N(ld), null, {
@@ -5074,7 +5074,7 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
5074
5074
  }, ip = {
5075
5075
  key: 4,
5076
5076
  class: "i-fa7-solid:triangle-exclamation block w-4 h-4"
5077
- }, lp = { class: "ms-3 text-sm" }, sp = /* @__PURE__ */ $({
5077
+ }, lp = { class: "ms-3 text-sm" }, sp = /* @__PURE__ */ R({
5078
5078
  __name: "base-toast",
5079
5079
  props: {
5080
5080
  dataTestid: {}
@@ -5353,8 +5353,8 @@ var Ep = function(t, n) {
5353
5353
  function Tp(e) {
5354
5354
  var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = ct(n.placement), s = Ba(l), d = [Ve, Ke].indexOf(l) >= 0, u = d ? "height" : "width";
5355
5355
  if (!(!o || !i)) {
5356
- var c = Ep(a.padding, n), f = Ta(o), h = s === "y" ? _e : Ve, g = s === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Hn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = c[h], k = y - f[u] - c[g], A = y / 2 - f[u] / 2 + C, S = Cn(p, A, k), x = s;
5357
- n.modifiersData[r] = (t = {}, t[x] = S, t.centerOffset = S - A, t);
5356
+ var c = Ep(a.padding, n), f = Ta(o), h = s === "y" ? _e : Ve, g = s === "y" ? Ge : Ke, p = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], b = Hn(o), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = p / 2 - m / 2, v = c[h], x = y - f[u] - c[g], k = y / 2 - f[u] / 2 + C, S = Cn(v, k, x), A = s;
5357
+ n.modifiersData[r] = (t = {}, t[A] = S, t.centerOffset = S - k, t);
5358
5358
  }
5359
5359
  }
5360
5360
  function Bp(e) {
@@ -5387,22 +5387,22 @@ function Ip(e) {
5387
5387
  };
5388
5388
  }
5389
5389
  function fo(e) {
5390
- var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = e.isFixed, f = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = f.x, g = h === void 0 ? 0 : h, v = f.y, m = v === void 0 ? 0 : v, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, p = _e, k = window;
5390
+ var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = e.isFixed, f = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = f.x, g = h === void 0 ? 0 : h, p = f.y, m = p === void 0 ? 0 : p, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, v = _e, x = window;
5391
5391
  if (d) {
5392
- var A = Hn(n), S = "clientHeight", x = "clientWidth";
5393
- if (A === at(n) && (A = It(n), vt(A).position !== "static" && l === "absolute" && (S = "scrollHeight", x = "scrollWidth")), A = A, a === _e || (a === Ve || a === Ke) && o === Dn) {
5394
- p = Ge;
5395
- var M = c && k.visualViewport ? k.visualViewport.height : (
5392
+ var k = Hn(n), S = "clientHeight", A = "clientWidth";
5393
+ if (k === at(n) && (k = It(n), vt(k).position !== "static" && l === "absolute" && (S = "scrollHeight", A = "scrollWidth")), k = k, a === _e || (a === Ve || a === Ke) && o === Dn) {
5394
+ v = Ge;
5395
+ var M = c && x.visualViewport ? x.visualViewport.height : (
5396
5396
  // $FlowFixMe[prop-missing]
5397
- A[S]
5397
+ k[S]
5398
5398
  );
5399
5399
  m -= M - r.height, m *= s ? 1 : -1;
5400
5400
  }
5401
5401
  if (a === Ve || (a === _e || a === Ge) && o === Dn) {
5402
5402
  C = Ke;
5403
- var P = c && k.visualViewport ? k.visualViewport.width : (
5403
+ var P = c && x.visualViewport ? x.visualViewport.width : (
5404
5404
  // $FlowFixMe[prop-missing]
5405
- A[x]
5405
+ k[A]
5406
5406
  );
5407
5407
  g -= P - r.width, g *= s ? 1 : -1;
5408
5408
  }
@@ -5411,10 +5411,10 @@ function fo(e) {
5411
5411
  position: l
5412
5412
  }, d && Dp);
5413
5413
  if (s) {
5414
- var F;
5415
- return Object.assign({}, I, (F = {}, F[p] = y ? "0" : "", F[C] = b ? "0" : "", F.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", F));
5414
+ var L;
5415
+ return Object.assign({}, I, (L = {}, L[v] = y ? "0" : "", L[C] = b ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", L));
5416
5416
  }
5417
- return Object.assign({}, I, (t = {}, t[p] = y ? m + "px" : "", t[C] = b ? g + "px" : "", t.transform = "", t));
5417
+ return Object.assign({}, I, (t = {}, t[v] = y ? m + "px" : "", t[C] = b ? g + "px" : "", t.transform = "", t));
5418
5418
  }
5419
5419
  function Mp(e) {
5420
5420
  var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
@@ -5607,24 +5607,24 @@ function el(e) {
5607
5607
  }
5608
5608
  function In(e, t) {
5609
5609
  t === void 0 && (t = {});
5610
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, l = n.rootBoundary, s = l === void 0 ? zi : l, d = n.elementContext, u = d === void 0 ? yn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, v = Ki(typeof g != "number" ? g : Ji(g, Wn)), m = u === yn ? cp : yn, b = e.rects.popper, y = e.elements[f ? m : u], C = Hp(un(y) ? y : y.contextElement || It(e.elements.popper), i, s), p = cn(e.elements.reference), k = el({
5611
- reference: p,
5610
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? dp : o, l = n.rootBoundary, s = l === void 0 ? zi : l, d = n.elementContext, u = d === void 0 ? yn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, g = h === void 0 ? 0 : h, p = Ki(typeof g != "number" ? g : Ji(g, Wn)), m = u === yn ? cp : yn, b = e.rects.popper, y = e.elements[f ? m : u], C = Hp(un(y) ? y : y.contextElement || It(e.elements.popper), i, s), v = cn(e.elements.reference), x = el({
5611
+ reference: v,
5612
5612
  element: b,
5613
5613
  placement: a
5614
- }), A = ta(Object.assign({}, b, k)), S = u === yn ? A : p, x = {
5615
- top: C.top - S.top + v.top,
5616
- bottom: S.bottom - C.bottom + v.bottom,
5617
- left: C.left - S.left + v.left,
5618
- right: S.right - C.right + v.right
5614
+ }), k = ta(Object.assign({}, b, x)), S = u === yn ? k : v, A = {
5615
+ top: C.top - S.top + p.top,
5616
+ bottom: S.bottom - C.bottom + p.bottom,
5617
+ left: C.left - S.left + p.left,
5618
+ right: S.right - C.right + p.right
5619
5619
  }, M = e.modifiersData.offset;
5620
5620
  if (u === yn && M) {
5621
5621
  var P = M[a];
5622
- Object.keys(x).forEach(function(I) {
5623
- var F = [Ke, Ge].indexOf(I) >= 0 ? 1 : -1, L = [_e, Ge].indexOf(I) >= 0 ? "y" : "x";
5624
- x[I] += P[L] * F;
5622
+ Object.keys(A).forEach(function(I) {
5623
+ var L = [Ke, Ge].indexOf(I) >= 0 ? 1 : -1, $ = [_e, Ge].indexOf(I) >= 0 ? "y" : "x";
5624
+ A[I] += P[$] * L;
5625
5625
  });
5626
5626
  }
5627
- return x;
5627
+ return A;
5628
5628
  }
5629
5629
  function qp(e, t) {
5630
5630
  t === void 0 && (t = {});
@@ -5634,16 +5634,16 @@ function qp(e, t) {
5634
5634
  return d.indexOf(g) >= 0;
5635
5635
  });
5636
5636
  f.length === 0 && (f = c);
5637
- var h = f.reduce(function(g, v) {
5638
- return g[v] = In(e, {
5639
- placement: v,
5637
+ var h = f.reduce(function(g, p) {
5638
+ return g[p] = In(e, {
5639
+ placement: p,
5640
5640
  boundary: a,
5641
5641
  rootBoundary: o,
5642
5642
  padding: i
5643
- })[ct(v)], g;
5643
+ })[ct(p)], g;
5644
5644
  }, {});
5645
- return Object.keys(h).sort(function(g, v) {
5646
- return h[g] - h[v];
5645
+ return Object.keys(h).sort(function(g, p) {
5646
+ return h[g] - h[p];
5647
5647
  });
5648
5648
  }
5649
5649
  function zp(e) {
@@ -5655,36 +5655,36 @@ function zp(e) {
5655
5655
  function Up(e) {
5656
5656
  var t = e.state, n = e.options, r = e.name;
5657
5657
  if (!t.modifiersData[r]._skip) {
5658
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, b = ct(m), y = b === m, C = s || (y || !g ? [sr(m)] : zp(m)), p = [m].concat(C).reduce(function(me, ye) {
5658
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, m = t.options.placement, b = ct(m), y = b === m, C = s || (y || !g ? [sr(m)] : zp(m)), v = [m].concat(C).reduce(function(me, ye) {
5659
5659
  return me.concat(ct(ye) === Ea ? qp(t, {
5660
5660
  placement: ye,
5661
5661
  boundary: u,
5662
5662
  rootBoundary: c,
5663
5663
  padding: d,
5664
5664
  flipVariations: g,
5665
- allowedAutoPlacements: v
5665
+ allowedAutoPlacements: p
5666
5666
  }) : ye);
5667
- }, []), k = t.rects.reference, A = t.rects.popper, S = /* @__PURE__ */ new Map(), x = !0, M = p[0], P = 0; P < p.length; P++) {
5668
- var I = p[P], F = ct(I), L = fn(I) === sn, U = [_e, Ge].indexOf(F) >= 0, Y = U ? "width" : "height", G = In(t, {
5667
+ }, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
5668
+ var I = v[P], L = ct(I), $ = fn(I) === sn, U = [_e, Ge].indexOf(L) >= 0, Y = U ? "width" : "height", G = In(t, {
5669
5669
  placement: I,
5670
5670
  boundary: u,
5671
5671
  rootBoundary: c,
5672
5672
  altBoundary: f,
5673
5673
  padding: d
5674
- }), ae = U ? L ? Ke : Ve : L ? Ge : _e;
5675
- k[Y] > A[Y] && (ae = sr(ae));
5674
+ }), ae = U ? $ ? Ke : Ve : $ ? Ge : _e;
5675
+ x[Y] > k[Y] && (ae = sr(ae));
5676
5676
  var re = sr(ae), ce = [];
5677
- if (o && ce.push(G[F] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
5677
+ if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
5678
5678
  return me;
5679
5679
  })) {
5680
- M = I, x = !1;
5680
+ M = I, A = !1;
5681
5681
  break;
5682
5682
  }
5683
5683
  S.set(I, ce);
5684
5684
  }
5685
- if (x)
5685
+ if (A)
5686
5686
  for (var ve = g ? 3 : 1, ee = function(ye) {
5687
- var Be = p.find(function(ot) {
5687
+ var Be = v.find(function(ot) {
5688
5688
  var Re = S.get(ot);
5689
5689
  if (Re)
5690
5690
  return Re.slice(0, ye).every(function(it) {
@@ -5793,36 +5793,36 @@ function tv(e) {
5793
5793
  return e === "x" ? "y" : "x";
5794
5794
  }
5795
5795
  function nv(e) {
5796
- var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, v = g === void 0 ? 0 : g, m = In(t, {
5796
+ var t = e.state, n = e.options, r = e.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, p = g === void 0 ? 0 : g, m = In(t, {
5797
5797
  boundary: s,
5798
5798
  rootBoundary: d,
5799
5799
  padding: c,
5800
5800
  altBoundary: u
5801
- }), b = ct(t.placement), y = fn(t.placement), C = !y, p = Ba(b), k = tv(p), A = t.modifiersData.popperOffsets, S = t.rects.reference, x = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
5801
+ }), b = ct(t.placement), y = fn(t.placement), C = !y, v = Ba(b), x = tv(v), k = t.modifiersData.popperOffsets, S = t.rects.reference, A = t.rects.popper, M = typeof p == "function" ? p(Object.assign({}, t.rects, {
5802
5802
  placement: t.placement
5803
- })) : v, P = typeof M == "number" ? {
5803
+ })) : p, P = typeof M == "number" ? {
5804
5804
  mainAxis: M,
5805
5805
  altAxis: M
5806
5806
  } : Object.assign({
5807
5807
  mainAxis: 0,
5808
5808
  altAxis: 0
5809
- }, M), I = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, F = {
5809
+ }, M), I = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
5810
5810
  x: 0,
5811
5811
  y: 0
5812
5812
  };
5813
- if (A) {
5813
+ if (k) {
5814
5814
  if (o) {
5815
- var L, U = p === "y" ? _e : Ve, Y = p === "y" ? Ge : Ke, G = p === "y" ? "height" : "width", ae = A[p], re = ae + m[U], ce = ae - m[Y], ve = h ? -x[G] / 2 : 0, ee = y === sn ? S[G] : x[G], ie = y === sn ? -x[G] : -S[G], Ae = t.elements.arrow, me = h && Ae ? Ta(Ae) : {
5815
+ var $, U = v === "y" ? _e : Ve, Y = v === "y" ? Ge : Ke, G = v === "y" ? "height" : "width", ae = k[v], re = ae + m[U], ce = ae - m[Y], ve = h ? -A[G] / 2 : 0, ee = y === sn ? S[G] : A[G], ie = y === sn ? -A[G] : -S[G], Ae = t.elements.arrow, me = h && Ae ? Ta(Ae) : {
5816
5816
  width: 0,
5817
5817
  height: 0
5818
- }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[Y], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis : ee - Re - Be - P.mainAxis, Ze = C ? -S[G] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? p === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = (L = I?.[p]) != null ? L : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, lt = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
5819
- A[p] = lt, F[p] = lt - ae;
5818
+ }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[Y], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis : ee - Re - Be - P.mainAxis, Ze = C ? -S[G] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? v === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = ($ = I?.[v]) != null ? $ : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, lt = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
5819
+ k[v] = lt, L[v] = lt - ae;
5820
5820
  }
5821
5821
  if (l) {
5822
- var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = A[k], kt = k === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[k]) != null ? xt : 0, zn = mn ? vn : ht - S[kt] - x[kt] - qn + P.altAxis, Un = mn ? ht + S[kt] + x[kt] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5823
- A[k] = Yn, F[k] = Yn - ht;
5822
+ var xt, $t = v === "x" ? _e : Ve, Rt = v === "x" ? Ge : Ke, ht = k[x], kt = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht - S[kt] - A[kt] - qn + P.altAxis, Un = mn ? ht + S[kt] + A[kt] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
5823
+ k[x] = Yn, L[x] = Yn - ht;
5824
5824
  }
5825
- t.modifiersData[r] = F;
5825
+ t.modifiersData[r] = L;
5826
5826
  }
5827
5827
  }
5828
5828
  var rv = {
@@ -5943,13 +5943,13 @@ function fv(e) {
5943
5943
  state: u,
5944
5944
  setOptions: function(b) {
5945
5945
  var y = typeof b == "function" ? b(u.options) : b;
5946
- v(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
5946
+ p(), u.options = Object.assign({}, o, u.options, y), u.scrollParents = {
5947
5947
  reference: un(l) ? En(l) : l.contextElement ? En(l.contextElement) : [],
5948
5948
  popper: En(s)
5949
5949
  };
5950
5950
  var C = uv(cv([].concat(r, u.options.modifiers)));
5951
- return u.orderedModifiers = C.filter(function(p) {
5952
- return p.enabled;
5951
+ return u.orderedModifiers = C.filter(function(v) {
5952
+ return v.enabled;
5953
5953
  }), g(), h.update();
5954
5954
  },
5955
5955
  // Sync update – it will always be executed, even if not necessary. This
@@ -5967,15 +5967,15 @@ function fv(e) {
5967
5967
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
5968
5968
  return u.modifiersData[P.name] = Object.assign({}, P.data);
5969
5969
  });
5970
- for (var p = 0; p < u.orderedModifiers.length; p++) {
5970
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
5971
5971
  if (u.reset === !0) {
5972
- u.reset = !1, p = -1;
5972
+ u.reset = !1, v = -1;
5973
5973
  continue;
5974
5974
  }
5975
- var k = u.orderedModifiers[p], A = k.fn, S = k.options, x = S === void 0 ? {} : S, M = k.name;
5976
- typeof A == "function" && (u = A({
5975
+ var x = u.orderedModifiers[v], k = x.fn, S = x.options, A = S === void 0 ? {} : S, M = x.name;
5976
+ typeof k == "function" && (u = k({
5977
5977
  state: u,
5978
- options: x,
5978
+ options: A,
5979
5979
  name: M,
5980
5980
  instance: h
5981
5981
  }) || u);
@@ -5991,7 +5991,7 @@ function fv(e) {
5991
5991
  });
5992
5992
  }),
5993
5993
  destroy: function() {
5994
- v(), f = !0;
5994
+ p(), f = !0;
5995
5995
  }
5996
5996
  };
5997
5997
  if (!bo(l, s))
@@ -6001,20 +6001,20 @@ function fv(e) {
6001
6001
  });
6002
6002
  function g() {
6003
6003
  u.orderedModifiers.forEach(function(m) {
6004
- var b = m.name, y = m.options, C = y === void 0 ? {} : y, p = m.effect;
6005
- if (typeof p == "function") {
6006
- var k = p({
6004
+ var b = m.name, y = m.options, C = y === void 0 ? {} : y, v = m.effect;
6005
+ if (typeof v == "function") {
6006
+ var x = v({
6007
6007
  state: u,
6008
6008
  name: b,
6009
6009
  instance: h,
6010
6010
  options: C
6011
- }), A = function() {
6011
+ }), k = function() {
6012
6012
  };
6013
- c.push(k || A);
6013
+ c.push(x || k);
6014
6014
  }
6015
6015
  });
6016
6016
  }
6017
- function v() {
6017
+ function p() {
6018
6018
  c.forEach(function(m) {
6019
6019
  return m();
6020
6020
  }), c = [];
@@ -6125,8 +6125,8 @@ function xv(e, t) {
6125
6125
  var o = a.popperRect, i = a.popperState, l = a.props, s = l.interactiveBorder, d = ll(i.placement), u = i.modifiersData.offset;
6126
6126
  if (!u)
6127
6127
  return !0;
6128
- var c = d === "bottom" ? u.top.y : 0, f = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + c > s, m = r - o.bottom - f > s, b = o.left - n + h > s, y = n - o.right - g > s;
6129
- return v || m || b || y;
6128
+ var c = d === "bottom" ? u.top.y : 0, f = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, p = o.top - r + c > s, m = r - o.bottom - f > s, b = o.left - n + h > s, y = n - o.right - g > s;
6129
+ return p || m || b || y;
6130
6130
  });
6131
6131
  }
6132
6132
  function _r(e, t, n) {
@@ -6320,7 +6320,7 @@ function cl(e) {
6320
6320
  cl.$$tippy = !0;
6321
6321
  var $v = 1, nr = [], Vr = [];
6322
6322
  function Rv(e, t) {
6323
- var n = So(e, Object.assign({}, et, dl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, c, f, h = [], g = yo(Kt, n.interactiveDebounce), v, m = $v++, b = null, y = bv(n.plugins), C = {
6323
+ var n = So(e, Object.assign({}, et, dl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, c, f, h = [], g = yo(Kt, n.interactiveDebounce), p, m = $v++, b = null, y = bv(n.plugins), C = {
6324
6324
  // Is the instance currently enabled?
6325
6325
  isEnabled: !0,
6326
6326
  // Is the tippy currently showing and not transitioning out?
@@ -6331,7 +6331,7 @@ function Rv(e, t) {
6331
6331
  isMounted: !1,
6332
6332
  // Has the tippy finished transitioning in?
6333
6333
  isShown: !1
6334
- }, p = {
6334
+ }, v = {
6335
6335
  // properties
6336
6336
  id: m,
6337
6337
  reference: e,
@@ -6353,59 +6353,59 @@ function Rv(e, t) {
6353
6353
  destroy: Il
6354
6354
  };
6355
6355
  if (!n.render)
6356
- return p;
6357
- var k = n.render(p), A = k.popper, S = k.onUpdate;
6358
- A.setAttribute("data-tippy-root", ""), A.id = "tippy-" + p.id, p.popper = A, e._tippy = p, A._tippy = p;
6359
- var x = y.map(function(D) {
6360
- return D.fn(p);
6356
+ return v;
6357
+ var x = n.render(v), k = x.popper, S = x.onUpdate;
6358
+ k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + v.id, v.popper = k, e._tippy = v, k._tippy = v;
6359
+ var A = y.map(function(D) {
6360
+ return D.fn(v);
6361
6361
  }), M = e.hasAttribute("aria-expanded");
6362
- return mt(), ve(), ae(), re("onCreate", [p]), n.showOnCreate && vn(), A.addEventListener("mouseenter", function() {
6363
- p.props.interactive && p.state.isVisible && p.clearDelayTimeouts();
6364
- }), A.addEventListener("mouseleave", function() {
6365
- p.props.interactive && p.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", g);
6366
- }), p;
6362
+ return mt(), ve(), ae(), re("onCreate", [v]), n.showOnCreate && vn(), k.addEventListener("mouseenter", function() {
6363
+ v.props.interactive && v.state.isVisible && v.clearDelayTimeouts();
6364
+ }), k.addEventListener("mouseleave", function() {
6365
+ v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", g);
6366
+ }), v;
6367
6367
  function P() {
6368
- var D = p.props.touch;
6368
+ var D = v.props.touch;
6369
6369
  return Array.isArray(D) ? D : [D, 0];
6370
6370
  }
6371
6371
  function I() {
6372
6372
  return P()[0] === "hold";
6373
6373
  }
6374
- function F() {
6374
+ function L() {
6375
6375
  var D;
6376
- return !!((D = p.props.render) != null && D.$$tippy);
6376
+ return !!((D = v.props.render) != null && D.$$tippy);
6377
6377
  }
6378
- function L() {
6379
- return v || e;
6378
+ function $() {
6379
+ return p || e;
6380
6380
  }
6381
6381
  function U() {
6382
- var D = L().parentNode;
6382
+ var D = $().parentNode;
6383
6383
  return D ? sl(D) : document;
6384
6384
  }
6385
6385
  function Y() {
6386
- return cr(A);
6386
+ return cr(k);
6387
6387
  }
6388
6388
  function G(D) {
6389
- return p.state.isMounted && !p.state.isVisible || st.isTouch || u && u.type === "focus" ? 0 : Lr(p.props.delay, D ? 0 : 1, et.delay);
6389
+ return v.state.isMounted && !v.state.isVisible || st.isTouch || u && u.type === "focus" ? 0 : Lr(v.props.delay, D ? 0 : 1, et.delay);
6390
6390
  }
6391
6391
  function ae(D) {
6392
- D === void 0 && (D = !1), A.style.pointerEvents = p.props.interactive && !D ? "" : "none", A.style.zIndex = "" + p.props.zIndex;
6392
+ D === void 0 && (D = !1), k.style.pointerEvents = v.props.interactive && !D ? "" : "none", k.style.zIndex = "" + v.props.zIndex;
6393
6393
  }
6394
6394
  function re(D, j, J) {
6395
- if (J === void 0 && (J = !0), x.forEach(function(se) {
6395
+ if (J === void 0 && (J = !0), A.forEach(function(se) {
6396
6396
  se[D] && se[D].apply(se, j);
6397
6397
  }), J) {
6398
6398
  var he;
6399
- (he = p.props)[D].apply(he, j);
6399
+ (he = v.props)[D].apply(he, j);
6400
6400
  }
6401
6401
  }
6402
6402
  function ce() {
6403
- var D = p.props.aria;
6403
+ var D = v.props.aria;
6404
6404
  if (D.content) {
6405
- var j = "aria-" + D.content, J = A.id, he = jt(p.props.triggerTarget || e);
6405
+ var j = "aria-" + D.content, J = k.id, he = jt(v.props.triggerTarget || e);
6406
6406
  he.forEach(function(se) {
6407
6407
  var Fe = se.getAttribute(j);
6408
- if (p.state.isVisible)
6408
+ if (v.state.isVisible)
6409
6409
  se.setAttribute(j, Fe ? Fe + " " + J : J);
6410
6410
  else {
6411
6411
  var We = Fe && Fe.replace(J, "").trim();
@@ -6415,10 +6415,10 @@ function Rv(e, t) {
6415
6415
  }
6416
6416
  }
6417
6417
  function ve() {
6418
- if (!(M || !p.props.aria.expanded)) {
6419
- var D = jt(p.props.triggerTarget || e);
6418
+ if (!(M || !v.props.aria.expanded)) {
6419
+ var D = jt(v.props.triggerTarget || e);
6420
6420
  D.forEach(function(j) {
6421
- p.props.interactive ? j.setAttribute("aria-expanded", p.state.isVisible && j === L() ? "true" : "false") : j.removeAttribute("aria-expanded");
6421
+ v.props.interactive ? j.setAttribute("aria-expanded", v.state.isVisible && j === $() ? "true" : "false") : j.removeAttribute("aria-expanded");
6422
6422
  });
6423
6423
  }
6424
6424
  }
@@ -6430,17 +6430,17 @@ function Rv(e, t) {
6430
6430
  function ie(D) {
6431
6431
  if (!(st.isTouch && (s || D.type === "mousedown"))) {
6432
6432
  var j = D.composedPath && D.composedPath()[0] || D.target;
6433
- if (!(p.props.interactive && xo(A, j))) {
6434
- if (jt(p.props.triggerTarget || e).some(function(J) {
6433
+ if (!(v.props.interactive && xo(k, j))) {
6434
+ if (jt(v.props.triggerTarget || e).some(function(J) {
6435
6435
  return xo(J, j);
6436
6436
  })) {
6437
- if (st.isTouch || p.state.isVisible && p.props.trigger.indexOf("click") >= 0)
6437
+ if (st.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
6438
6438
  return;
6439
6439
  } else
6440
- re("onClickOutside", [p, D]);
6441
- p.props.hideOnClick === !0 && (p.clearDelayTimeouts(), p.hide(), l = !0, setTimeout(function() {
6440
+ re("onClickOutside", [v, D]);
6441
+ v.props.hideOnClick === !0 && (v.clearDelayTimeouts(), v.hide(), l = !0, setTimeout(function() {
6442
6442
  l = !1;
6443
- }), p.state.isMounted || Be());
6443
+ }), v.state.isMounted || Be());
6444
6444
  }
6445
6445
  }
6446
6446
  }
@@ -6460,7 +6460,7 @@ function Rv(e, t) {
6460
6460
  }
6461
6461
  function ot(D, j) {
6462
6462
  it(D, function() {
6463
- !p.state.isVisible && A.parentNode && A.parentNode.contains(A) && j();
6463
+ !v.state.isVisible && k.parentNode && k.parentNode.contains(k) && j();
6464
6464
  });
6465
6465
  }
6466
6466
  function Re(D, j) {
@@ -6477,7 +6477,7 @@ function Rv(e, t) {
6477
6477
  }
6478
6478
  function Ze(D, j, J) {
6479
6479
  J === void 0 && (J = !1);
6480
- var he = jt(p.props.triggerTarget || e);
6480
+ var he = jt(v.props.triggerTarget || e);
6481
6481
  he.forEach(function(se) {
6482
6482
  se.addEventListener(D, j, J), h.push({
6483
6483
  node: se,
@@ -6492,7 +6492,7 @@ function Rv(e, t) {
6492
6492
  passive: !0
6493
6493
  }), Ze("touchend", Jt, {
6494
6494
  passive: !0
6495
- })), gv(p.props.trigger).forEach(function(D) {
6495
+ })), gv(v.props.trigger).forEach(function(D) {
6496
6496
  if (D !== "manual")
6497
6497
  switch (Ze(D, wt), D) {
6498
6498
  case "mouseenter":
@@ -6515,17 +6515,17 @@ function Rv(e, t) {
6515
6515
  }
6516
6516
  function wt(D) {
6517
6517
  var j, J = !1;
6518
- if (!(!p.state.isEnabled || xt(D) || l)) {
6518
+ if (!(!v.state.isEnabled || xt(D) || l)) {
6519
6519
  var he = ((j = u) == null ? void 0 : j.type) === "focus";
6520
- u = D, v = D.currentTarget, ve(), !p.state.isVisible && $a(D) && nr.forEach(function(se) {
6520
+ u = D, p = D.currentTarget, ve(), !v.state.isVisible && $a(D) && nr.forEach(function(se) {
6521
6521
  return se(D);
6522
- }), D.type === "click" && (p.props.trigger.indexOf("mouseenter") < 0 || i) && p.props.hideOnClick !== !1 && p.state.isVisible ? J = !0 : vn(D), D.type === "click" && (i = !J), J && !he && Lt(D);
6522
+ }), D.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || i) && v.props.hideOnClick !== !1 && v.state.isVisible ? J = !0 : vn(D), D.type === "click" && (i = !J), J && !he && Lt(D);
6523
6523
  }
6524
6524
  }
6525
6525
  function Kt(D) {
6526
- var j = D.target, J = L().contains(j) || A.contains(j);
6526
+ var j = D.target, J = $().contains(j) || k.contains(j);
6527
6527
  if (!(D.type === "mousemove" && J)) {
6528
- var he = kt().concat(A).map(function(se) {
6528
+ var he = kt().concat(k).map(function(se) {
6529
6529
  var Fe, We = se._tippy, Zt = (Fe = We.popperInstance) == null ? void 0 : Fe.state;
6530
6530
  return Zt ? {
6531
6531
  popperRect: se.getBoundingClientRect(),
@@ -6537,26 +6537,26 @@ function Rv(e, t) {
6537
6537
  }
6538
6538
  }
6539
6539
  function Jt(D) {
6540
- var j = xt(D) || p.props.trigger.indexOf("click") >= 0 && i;
6540
+ var j = xt(D) || v.props.trigger.indexOf("click") >= 0 && i;
6541
6541
  if (!j) {
6542
- if (p.props.interactive) {
6543
- p.hideWithInteractivity(D);
6542
+ if (v.props.interactive) {
6543
+ v.hideWithInteractivity(D);
6544
6544
  return;
6545
6545
  }
6546
6546
  Lt(D);
6547
6547
  }
6548
6548
  }
6549
6549
  function lt(D) {
6550
- p.props.trigger.indexOf("focusin") < 0 && D.target !== L() || p.props.interactive && D.relatedTarget && A.contains(D.relatedTarget) || Lt(D);
6550
+ v.props.trigger.indexOf("focusin") < 0 && D.target !== $() || v.props.interactive && D.relatedTarget && k.contains(D.relatedTarget) || Lt(D);
6551
6551
  }
6552
6552
  function xt(D) {
6553
6553
  return st.isTouch ? I() !== D.type.indexOf("touch") >= 0 : !1;
6554
6554
  }
6555
6555
  function $t() {
6556
6556
  Rt();
6557
- var D = p.props, j = D.popperOptions, J = D.placement, he = D.offset, se = D.getReferenceClientRect, Fe = D.moveTransition, We = F() ? cr(A).arrow : null, Zt = se ? {
6557
+ var D = v.props, j = D.popperOptions, J = D.placement, he = D.offset, se = D.getReferenceClientRect, Fe = D.moveTransition, We = L() ? cr(k).arrow : null, Zt = se ? {
6558
6558
  getBoundingClientRect: se,
6559
- contextElement: se.contextElement || L()
6559
+ contextElement: se.contextElement || $()
6560
6560
  } : e, La = {
6561
6561
  name: "$$tippy",
6562
6562
  enabled: !0,
@@ -6564,7 +6564,7 @@ function Rv(e, t) {
6564
6564
  requires: ["computeStyles"],
6565
6565
  fn: function(Xn) {
6566
6566
  var en = Xn.state;
6567
- if (F()) {
6567
+ if (L()) {
6568
6568
  var Ml = Y(), Sr = Ml.box;
6569
6569
  ["placement", "reference-hidden", "escaped"].forEach(function(Qn) {
6570
6570
  Qn === "placement" ? Sr.setAttribute("data-placement", en.placement) : en.attributes.popper["data-popper-" + Qn] ? Sr.setAttribute("data-" + Qn, "") : Sr.removeAttribute("data-" + Qn);
@@ -6597,119 +6597,119 @@ function Rv(e, t) {
6597
6597
  adaptive: !Fe
6598
6598
  }
6599
6599
  }, La];
6600
- F() && We && Ft.push({
6600
+ L() && We && Ft.push({
6601
6601
  name: "arrow",
6602
6602
  options: {
6603
6603
  element: We,
6604
6604
  padding: 3
6605
6605
  }
6606
- }), Ft.push.apply(Ft, j?.modifiers || []), p.popperInstance = vv(Zt, A, Object.assign({}, j, {
6606
+ }), Ft.push.apply(Ft, j?.modifiers || []), v.popperInstance = vv(Zt, k, Object.assign({}, j, {
6607
6607
  placement: J,
6608
6608
  onFirstUpdate: f,
6609
6609
  modifiers: Ft
6610
6610
  }));
6611
6611
  }
6612
6612
  function Rt() {
6613
- p.popperInstance && (p.popperInstance.destroy(), p.popperInstance = null);
6613
+ v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
6614
6614
  }
6615
6615
  function ht() {
6616
- var D = p.props.appendTo, j, J = L();
6617
- p.props.interactive && D === ol || D === "parent" ? j = J.parentNode : j = il(D, [J]), j.contains(A) || j.appendChild(A), p.state.isMounted = !0, $t();
6616
+ var D = v.props.appendTo, j, J = $();
6617
+ v.props.interactive && D === ol || D === "parent" ? j = J.parentNode : j = il(D, [J]), j.contains(k) || j.appendChild(k), v.state.isMounted = !0, $t();
6618
6618
  }
6619
6619
  function kt() {
6620
- return pn(A.querySelectorAll("[data-tippy-root]"));
6620
+ return pn(k.querySelectorAll("[data-tippy-root]"));
6621
6621
  }
6622
6622
  function vn(D) {
6623
- p.clearDelayTimeouts(), D && re("onTrigger", [p, D]), ye();
6623
+ v.clearDelayTimeouts(), D && re("onTrigger", [v, D]), ye();
6624
6624
  var j = G(!0), J = P(), he = J[0], se = J[1];
6625
6625
  st.isTouch && he === "hold" && se && (j = se), j ? r = setTimeout(function() {
6626
- p.show();
6627
- }, j) : p.show();
6626
+ v.show();
6627
+ }, j) : v.show();
6628
6628
  }
6629
6629
  function Lt(D) {
6630
- if (p.clearDelayTimeouts(), re("onUntrigger", [p, D]), !p.state.isVisible) {
6630
+ if (v.clearDelayTimeouts(), re("onUntrigger", [v, D]), !v.state.isVisible) {
6631
6631
  Be();
6632
6632
  return;
6633
6633
  }
6634
- if (!(p.props.trigger.indexOf("mouseenter") >= 0 && p.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
6634
+ if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
6635
6635
  var j = G(!1);
6636
6636
  j ? a = setTimeout(function() {
6637
- p.state.isVisible && p.hide();
6637
+ v.state.isVisible && v.hide();
6638
6638
  }, j) : o = requestAnimationFrame(function() {
6639
- p.hide();
6639
+ v.hide();
6640
6640
  });
6641
6641
  }
6642
6642
  }
6643
6643
  function mn() {
6644
- p.state.isEnabled = !0;
6644
+ v.state.isEnabled = !0;
6645
6645
  }
6646
6646
  function qn() {
6647
- p.hide(), p.state.isEnabled = !1;
6647
+ v.hide(), v.state.isEnabled = !1;
6648
6648
  }
6649
6649
  function zn() {
6650
6650
  clearTimeout(r), clearTimeout(a), cancelAnimationFrame(o);
6651
6651
  }
6652
6652
  function Un(D) {
6653
- if (!p.state.isDestroyed) {
6654
- re("onBeforeUpdate", [p, D]), Mt();
6655
- var j = p.props, J = So(e, Object.assign({}, j, wo(D), {
6653
+ if (!v.state.isDestroyed) {
6654
+ re("onBeforeUpdate", [v, D]), Mt();
6655
+ var j = v.props, J = So(e, Object.assign({}, j, wo(D), {
6656
6656
  ignoreAttributes: !0
6657
6657
  }));
6658
- p.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (ee(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
6658
+ v.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (ee(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
6659
6659
  he.removeAttribute("aria-expanded");
6660
- }) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), S && S(j, J), p.popperInstance && ($t(), kt().forEach(function(he) {
6660
+ }) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), S && S(j, J), v.popperInstance && ($t(), kt().forEach(function(he) {
6661
6661
  requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
6662
- })), re("onAfterUpdate", [p, D]);
6662
+ })), re("onAfterUpdate", [v, D]);
6663
6663
  }
6664
6664
  }
6665
6665
  function Yn(D) {
6666
- p.setProps({
6666
+ v.setProps({
6667
6667
  content: D
6668
6668
  });
6669
6669
  }
6670
6670
  function Tl() {
6671
- var D = p.state.isVisible, j = p.state.isDestroyed, J = !p.state.isEnabled, he = st.isTouch && !p.props.touch, se = Lr(p.props.duration, 0, et.duration);
6672
- if (!(D || j || J || he) && !L().hasAttribute("disabled") && (re("onShow", [p], !1), p.props.onShow(p) !== !1)) {
6673
- if (p.state.isVisible = !0, F() && (A.style.visibility = "visible"), ae(), ye(), p.state.isMounted || (A.style.transition = "none"), F()) {
6671
+ var D = v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = st.isTouch && !v.props.touch, se = Lr(v.props.duration, 0, et.duration);
6672
+ if (!(D || j || J || he) && !$().hasAttribute("disabled") && (re("onShow", [v], !1), v.props.onShow(v) !== !1)) {
6673
+ if (v.state.isVisible = !0, L() && (k.style.visibility = "visible"), ae(), ye(), v.state.isMounted || (k.style.transition = "none"), L()) {
6674
6674
  var Fe = Y(), We = Fe.box, Zt = Fe.content;
6675
6675
  Fr([We, Zt], 0);
6676
6676
  }
6677
6677
  f = function() {
6678
6678
  var Ft;
6679
- if (!(!p.state.isVisible || d)) {
6680
- if (d = !0, A.offsetHeight, A.style.transition = p.props.moveTransition, F() && p.props.animation) {
6679
+ if (!(!v.state.isVisible || d)) {
6680
+ if (d = !0, k.offsetHeight, k.style.transition = v.props.moveTransition, L() && v.props.animation) {
6681
6681
  var kr = Y(), Xn = kr.box, en = kr.content;
6682
6682
  Fr([Xn, en], se), Mn([Xn, en], "visible");
6683
6683
  }
6684
- ce(), ve(), Ao(Vr, p), (Ft = p.popperInstance) == null || Ft.forceUpdate(), re("onMount", [p]), p.props.animation && F() && Re(se, function() {
6685
- p.state.isShown = !0, re("onShown", [p]);
6684
+ ce(), ve(), Ao(Vr, v), (Ft = v.popperInstance) == null || Ft.forceUpdate(), re("onMount", [v]), v.props.animation && L() && Re(se, function() {
6685
+ v.state.isShown = !0, re("onShown", [v]);
6686
6686
  });
6687
6687
  }
6688
6688
  }, ht();
6689
6689
  }
6690
6690
  }
6691
6691
  function Bl() {
6692
- var D = !p.state.isVisible, j = p.state.isDestroyed, J = !p.state.isEnabled, he = Lr(p.props.duration, 1, et.duration);
6693
- if (!(D || j || J) && (re("onHide", [p], !1), p.props.onHide(p) !== !1)) {
6694
- if (p.state.isVisible = !1, p.state.isShown = !1, d = !1, i = !1, F() && (A.style.visibility = "hidden"), ee(), Be(), ae(!0), F()) {
6692
+ var D = !v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = Lr(v.props.duration, 1, et.duration);
6693
+ if (!(D || j || J) && (re("onHide", [v], !1), v.props.onHide(v) !== !1)) {
6694
+ if (v.state.isVisible = !1, v.state.isShown = !1, d = !1, i = !1, L() && (k.style.visibility = "hidden"), ee(), Be(), ae(!0), L()) {
6695
6695
  var se = Y(), Fe = se.box, We = se.content;
6696
- p.props.animation && (Fr([Fe, We], he), Mn([Fe, We], "hidden"));
6696
+ v.props.animation && (Fr([Fe, We], he), Mn([Fe, We], "hidden"));
6697
6697
  }
6698
- ce(), ve(), p.props.animation ? F() && ot(he, p.unmount) : p.unmount();
6698
+ ce(), ve(), v.props.animation ? L() && ot(he, v.unmount) : v.unmount();
6699
6699
  }
6700
6700
  }
6701
6701
  function Pl(D) {
6702
6702
  U().addEventListener("mousemove", g), Ao(nr, g), g(D);
6703
6703
  }
6704
6704
  function Dl() {
6705
- p.state.isVisible && p.hide(), p.state.isMounted && (Rt(), kt().forEach(function(D) {
6705
+ v.state.isVisible && v.hide(), v.state.isMounted && (Rt(), kt().forEach(function(D) {
6706
6706
  D._tippy.unmount();
6707
- }), A.parentNode && A.parentNode.removeChild(A), Vr = Vr.filter(function(D) {
6708
- return D !== p;
6709
- }), p.state.isMounted = !1, re("onHidden", [p]));
6707
+ }), k.parentNode && k.parentNode.removeChild(k), Vr = Vr.filter(function(D) {
6708
+ return D !== v;
6709
+ }), v.state.isMounted = !1, re("onHidden", [v]));
6710
6710
  }
6711
6711
  function Il() {
6712
- p.state.isDestroyed || (p.clearDelayTimeouts(), p.unmount(), Mt(), delete e._tippy, p.state.isDestroyed = !0, re("onDestroy", [p]));
6712
+ v.state.isDestroyed || (v.clearDelayTimeouts(), v.unmount(), Mt(), delete e._tippy, v.state.isDestroyed = !0, re("onDestroy", [v]));
6713
6713
  }
6714
6714
  }
6715
6715
  function W(e, t) {
@@ -6748,43 +6748,43 @@ var Lv = Object.assign({}, Xi, {
6748
6748
  n === void 0 && (n = {});
6749
6749
  var a = t, o = [], i = [], l, s = n.overrides, d = [], u = !1;
6750
6750
  function c() {
6751
- i = a.map(function(p) {
6752
- return jt(p.props.triggerTarget || p.reference);
6753
- }).reduce(function(p, k) {
6754
- return p.concat(k);
6751
+ i = a.map(function(v) {
6752
+ return jt(v.props.triggerTarget || v.reference);
6753
+ }).reduce(function(v, x) {
6754
+ return v.concat(x);
6755
6755
  }, []);
6756
6756
  }
6757
6757
  function f() {
6758
- o = a.map(function(p) {
6759
- return p.reference;
6758
+ o = a.map(function(v) {
6759
+ return v.reference;
6760
6760
  });
6761
6761
  }
6762
- function h(p) {
6763
- a.forEach(function(k) {
6764
- p ? k.enable() : k.disable();
6762
+ function h(v) {
6763
+ a.forEach(function(x) {
6764
+ v ? x.enable() : x.disable();
6765
6765
  });
6766
6766
  }
6767
- function g(p) {
6768
- return a.map(function(k) {
6769
- var A = k.setProps;
6770
- return k.setProps = function(S) {
6771
- A(S), k.reference === l && p.setProps(S);
6767
+ function g(v) {
6768
+ return a.map(function(x) {
6769
+ var k = x.setProps;
6770
+ return x.setProps = function(S) {
6771
+ k(S), x.reference === l && v.setProps(S);
6772
6772
  }, function() {
6773
- k.setProps = A;
6773
+ x.setProps = k;
6774
6774
  };
6775
6775
  });
6776
6776
  }
6777
- function v(p, k) {
6778
- var A = i.indexOf(k);
6779
- if (k !== l) {
6780
- l = k;
6781
- var S = (s || []).concat("content").reduce(function(x, M) {
6782
- return x[M] = a[A].props[M], x;
6777
+ function p(v, x) {
6778
+ var k = i.indexOf(x);
6779
+ if (x !== l) {
6780
+ l = x;
6781
+ var S = (s || []).concat("content").reduce(function(A, M) {
6782
+ return A[M] = a[k].props[M], A;
6783
6783
  }, {});
6784
- p.setProps(Object.assign({}, S, {
6784
+ v.setProps(Object.assign({}, S, {
6785
6785
  getReferenceClientRect: typeof S.getReferenceClientRect == "function" ? S.getReferenceClientRect : function() {
6786
- var x;
6787
- return (x = o[A]) == null ? void 0 : x.getBoundingClientRect();
6786
+ var A;
6787
+ return (A = o[k]) == null ? void 0 : A.getBoundingClientRect();
6788
6788
  }
6789
6789
  }));
6790
6790
  }
@@ -6799,14 +6799,14 @@ var Lv = Object.assign({}, Xi, {
6799
6799
  onHidden: function() {
6800
6800
  l = null;
6801
6801
  },
6802
- onClickOutside: function(A) {
6803
- A.props.showOnCreate && !u && (u = !0, l = null);
6802
+ onClickOutside: function(k) {
6803
+ k.props.showOnCreate && !u && (u = !0, l = null);
6804
6804
  },
6805
- onShow: function(A) {
6806
- A.props.showOnCreate && !u && (u = !0, v(A, o[0]));
6805
+ onShow: function(k) {
6806
+ k.props.showOnCreate && !u && (u = !0, p(k, o[0]));
6807
6807
  },
6808
- onTrigger: function(A, S) {
6809
- v(A, S.currentTarget);
6808
+ onTrigger: function(k, S) {
6809
+ p(k, S.currentTarget);
6810
6810
  }
6811
6811
  };
6812
6812
  }
@@ -6817,39 +6817,39 @@ var Lv = Object.assign({}, Xi, {
6817
6817
  modifiers: [].concat(((r = n.popperOptions) == null ? void 0 : r.modifiers) || [], [Lv])
6818
6818
  })
6819
6819
  })), y = b.show;
6820
- b.show = function(p) {
6821
- if (y(), !l && p == null)
6822
- return v(b, o[0]);
6823
- if (!(l && p == null)) {
6824
- if (typeof p == "number")
6825
- return o[p] && v(b, o[p]);
6826
- if (a.indexOf(p) >= 0) {
6827
- var k = p.reference;
6828
- return v(b, k);
6820
+ b.show = function(v) {
6821
+ if (y(), !l && v == null)
6822
+ return p(b, o[0]);
6823
+ if (!(l && v == null)) {
6824
+ if (typeof v == "number")
6825
+ return o[v] && p(b, o[v]);
6826
+ if (a.indexOf(v) >= 0) {
6827
+ var x = v.reference;
6828
+ return p(b, x);
6829
6829
  }
6830
- if (o.indexOf(p) >= 0)
6831
- return v(b, p);
6830
+ if (o.indexOf(v) >= 0)
6831
+ return p(b, v);
6832
6832
  }
6833
6833
  }, b.showNext = function() {
6834
- var p = o[0];
6834
+ var v = o[0];
6835
6835
  if (!l)
6836
6836
  return b.show(0);
6837
- var k = o.indexOf(l);
6838
- b.show(o[k + 1] || p);
6837
+ var x = o.indexOf(l);
6838
+ b.show(o[x + 1] || v);
6839
6839
  }, b.showPrevious = function() {
6840
- var p = o[o.length - 1];
6840
+ var v = o[o.length - 1];
6841
6841
  if (!l)
6842
- return b.show(p);
6843
- var k = o.indexOf(l), A = o[k - 1] || p;
6844
- b.show(A);
6842
+ return b.show(v);
6843
+ var x = o.indexOf(l), k = o[x - 1] || v;
6844
+ b.show(k);
6845
6845
  };
6846
6846
  var C = b.setProps;
6847
- return b.setProps = function(p) {
6848
- s = p.overrides || s, C(p);
6849
- }, b.setInstances = function(p) {
6850
- h(!0), d.forEach(function(k) {
6851
- return k();
6852
- }), a = p, h(!1), f(), c(), d = g(b), b.setProps({
6847
+ return b.setProps = function(v) {
6848
+ s = v.overrides || s, C(v);
6849
+ }, b.setInstances = function(v) {
6850
+ h(!0), d.forEach(function(x) {
6851
+ return x();
6852
+ }), a = v, h(!1), f(), c(), d = g(b), b.setProps({
6853
6853
  triggerTarget: i
6854
6854
  });
6855
6855
  }, d = g(b), b;
@@ -6923,20 +6923,20 @@ var Wv = {
6923
6923
  getReferenceClientRect: null
6924
6924
  }), a = !1;
6925
6925
  }
6926
- function f(v) {
6927
- var m = v.target ? n.contains(v.target) : !0, b = t.props.followCursor, y = v.clientX, C = v.clientY, p = n.getBoundingClientRect(), k = y - p.left, A = C - p.top;
6926
+ function f(p) {
6927
+ var m = p.target ? n.contains(p.target) : !0, b = t.props.followCursor, y = p.clientX, C = p.clientY, v = n.getBoundingClientRect(), x = y - v.left, k = C - v.top;
6928
6928
  (m || !t.props.interactive) && t.setProps({
6929
6929
  // @ts-ignore - unneeded DOMRect properties
6930
6930
  getReferenceClientRect: function() {
6931
- var x = n.getBoundingClientRect(), M = y, P = C;
6932
- b === "initial" && (M = x.left + k, P = x.top + A);
6933
- var I = b === "horizontal" ? x.top : P, F = b === "vertical" ? x.right : M, L = b === "horizontal" ? x.bottom : P, U = b === "vertical" ? x.left : M;
6931
+ var A = n.getBoundingClientRect(), M = y, P = C;
6932
+ b === "initial" && (M = A.left + x, P = A.top + k);
6933
+ var I = b === "horizontal" ? A.top : P, L = b === "vertical" ? A.right : M, $ = b === "horizontal" ? A.bottom : P, U = b === "vertical" ? A.left : M;
6934
6934
  return {
6935
- width: F - U,
6936
- height: L - I,
6935
+ width: L - U,
6936
+ height: $ - I,
6937
6937
  top: I,
6938
- right: F,
6939
- bottom: L,
6938
+ right: L,
6939
+ bottom: $,
6940
6940
  left: U
6941
6941
  };
6942
6942
  }
@@ -6949,10 +6949,10 @@ var Wv = {
6949
6949
  }), Nv(r));
6950
6950
  }
6951
6951
  function g() {
6952
- rr = rr.filter(function(v) {
6953
- return v.instance !== t;
6954
- }), rr.filter(function(v) {
6955
- return v.doc === r;
6952
+ rr = rr.filter(function(p) {
6953
+ return p.instance !== t;
6954
+ }), rr.filter(function(p) {
6955
+ return p.doc === r;
6956
6956
  }).length === 0 && jv(r);
6957
6957
  }
6958
6958
  return {
@@ -7027,9 +7027,9 @@ var qv = {
7027
7027
  onAfterUpdate: c,
7028
7028
  onTrigger: function(h, g) {
7029
7029
  if ($a(g)) {
7030
- var v = pn(t.reference.getClientRects()), m = v.find(function(y) {
7030
+ var p = pn(t.reference.getClientRects()), m = p.find(function(y) {
7031
7031
  return y.left - 2 <= g.clientX && y.right + 2 >= g.clientX && y.top - 2 <= g.clientY && y.bottom + 2 >= g.clientY;
7032
- }), b = v.indexOf(m);
7032
+ }), b = p.indexOf(m);
7033
7033
  o = b > -1 ? b : o;
7034
7034
  }
7035
7035
  },
@@ -7059,20 +7059,20 @@ function zv(e, t, n, r) {
7059
7059
  }
7060
7060
  case "left":
7061
7061
  case "right": {
7062
- var h = Math.min.apply(Math, n.map(function(A) {
7063
- return A.left;
7064
- })), g = Math.max.apply(Math, n.map(function(A) {
7065
- return A.right;
7066
- })), v = n.filter(function(A) {
7067
- return e === "left" ? A.left === h : A.right === g;
7068
- }), m = v[0].top, b = v[v.length - 1].bottom, y = h, C = g, p = C - y, k = b - m;
7062
+ var h = Math.min.apply(Math, n.map(function(k) {
7063
+ return k.left;
7064
+ })), g = Math.max.apply(Math, n.map(function(k) {
7065
+ return k.right;
7066
+ })), p = n.filter(function(k) {
7067
+ return e === "left" ? k.left === h : k.right === g;
7068
+ }), m = p[0].top, b = p[p.length - 1].bottom, y = h, C = g, v = C - y, x = b - m;
7069
7069
  return {
7070
7070
  top: m,
7071
7071
  bottom: b,
7072
7072
  left: y,
7073
7073
  right: C,
7074
- width: p,
7075
- height: k
7074
+ width: v,
7075
+ height: x
7076
7076
  };
7077
7077
  }
7078
7078
  default:
@@ -7127,17 +7127,17 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7127
7127
  }), i = Rn();
7128
7128
  let l = null;
7129
7129
  const s = () => l || (l = document.createDocumentFragment(), l), d = (S) => {
7130
- let x, M = gt(S) ? S.value : S;
7130
+ let A, M = gt(S) ? S.value : S;
7131
7131
  return zl(M) ? (i.value || (i.value = Na({
7132
7132
  name: n.appName,
7133
7133
  setup: () => () => gt(S) ? S.value : S
7134
- }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), x = () => s()) : typeof M == "object" ? (i.value || (i.value = Na({
7134
+ }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), A = () => s()) : typeof M == "object" ? (i.value || (i.value = Na({
7135
7135
  name: n.appName,
7136
7136
  setup: () => () => ue(gt(S) ? S.value : S)
7137
- }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), x = () => s()) : x = M, x;
7137
+ }), r && Object.assign(i.value._context, r.appContext), i.value.mount(s())), A = () => s()) : A = M, A;
7138
7138
  }, u = (S) => {
7139
- let x = {};
7140
- return gt(S) ? x = S.value || {} : Va(S) ? x = { ...S } : x = { ...S }, x.content && (x.content = d(x.content)), x.triggerTarget && (x.triggerTarget = gt(x.triggerTarget) ? x.triggerTarget.value : x.triggerTarget), (!x.plugins || !Array.isArray(x.plugins)) && (x.plugins = []), x.plugins = x.plugins.filter((M) => M.name !== "vueTippyReactiveState"), x.plugins.push({
7139
+ let A = {};
7140
+ return gt(S) ? A = S.value || {} : Va(S) ? A = { ...S } : A = { ...S }, A.content && (A.content = d(A.content)), A.triggerTarget && (A.triggerTarget = gt(A.triggerTarget) ? A.triggerTarget.value : A.triggerTarget), (!A.plugins || !Array.isArray(A.plugins)) && (A.plugins = []), A.plugins = A.plugins.filter((M) => M.name !== "vueTippyReactiveState"), A.plugins.push({
7141
7141
  name: "vueTippyReactiveState",
7142
7142
  fn: () => ({
7143
7143
  onCreate() {
@@ -7165,18 +7165,18 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7165
7165
  o.value.isDestroyed = !0;
7166
7166
  }
7167
7167
  })
7168
- }), x;
7168
+ }), A;
7169
7169
  }, c = () => {
7170
7170
  a.value && a.value.setProps(u(t));
7171
7171
  }, f = () => {
7172
7172
  !a.value || !t.content || a.value.setContent(d(t.content));
7173
7173
  }, h = (S) => {
7174
- var x;
7175
- (x = a.value) === null || x === void 0 || x.setContent(d(S));
7174
+ var A;
7175
+ (A = a.value) === null || A === void 0 || A.setContent(d(S));
7176
7176
  }, g = (S) => {
7177
- var x;
7178
- (x = a.value) === null || x === void 0 || x.setProps(u(S));
7179
- }, v = () => {
7177
+ var A;
7178
+ (A = a.value) === null || A === void 0 || A.setProps(u(S));
7179
+ }, p = () => {
7180
7180
  var S;
7181
7181
  a.value && (a.value.destroy(), a.value = void 0), l = null, (S = i.value) === null || S === void 0 || S.unmount(), i.value = void 0;
7182
7182
  }, m = () => {
@@ -7191,32 +7191,32 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
7191
7191
  }, C = () => {
7192
7192
  var S;
7193
7193
  (S = a.value) === null || S === void 0 || S.enable(), o.value.isEnabled = !0;
7194
- }, p = () => {
7194
+ }, v = () => {
7195
7195
  var S;
7196
7196
  (S = a.value) === null || S === void 0 || S.unmount();
7197
- }, k = () => {
7197
+ }, x = () => {
7198
7198
  if (!e)
7199
7199
  return;
7200
7200
  let S = gt(e) ? e.value : e;
7201
- typeof S == "function" && (S = S()), Yv(S) && (S = S.$el), S && (a.value = W(S, u(t)), S.$tippy = A);
7202
- }, A = {
7201
+ typeof S == "function" && (S = S()), Yv(S) && (S = S.$el), S && (a.value = W(S, u(t)), S.$tippy = k);
7202
+ }, k = {
7203
7203
  tippy: a,
7204
7204
  refresh: c,
7205
7205
  refreshContent: f,
7206
7206
  setContent: h,
7207
7207
  setProps: g,
7208
- destroy: v,
7208
+ destroy: p,
7209
7209
  hide: b,
7210
7210
  show: m,
7211
7211
  disable: y,
7212
7212
  enable: C,
7213
- unmount: p,
7214
- mount: k,
7213
+ unmount: v,
7214
+ mount: x,
7215
7215
  state: o
7216
7216
  };
7217
- return n.mount && (r ? r.isMounted ? k() : te(k) : k()), r && De(() => {
7218
- v();
7219
- }), gt(t) || Va(t) ? ne(t, c, { immediate: !1 }) : gt(t.content) && ne(t.content, f, { immediate: !1 }), A;
7217
+ return n.mount && (r ? r.isMounted ? x() : te(x) : x()), r && De(() => {
7218
+ p();
7219
+ }), gt(t) || Va(t) ? ne(t, c, { immediate: !1 }) : gt(t.content) && ne(t.content, f, { immediate: !1 }), k;
7220
7220
  }
7221
7221
  function Xv(e, t) {
7222
7222
  const n = E();
@@ -7235,7 +7235,7 @@ function Gv(e) {
7235
7235
  const r = Qv(e);
7236
7236
  return (n = (t = r) === null || t === void 0 ? void 0 : t.$el) !== null && n !== void 0 ? n : r;
7237
7237
  }
7238
- const vl = $({
7238
+ const vl = R({
7239
7239
  props: {
7240
7240
  to: {
7241
7241
  type: [String, Function]
@@ -7346,16 +7346,16 @@ const vl = $({
7346
7346
  }
7347
7347
  return g && b.push(g), b;
7348
7348
  }
7349
- const v = t.default ? t.default(f) : [];
7349
+ const p = t.default ? t.default(f) : [];
7350
7350
  if (!e.tag) {
7351
- const b = ue(v[0], {
7351
+ const b = ue(p[0], {
7352
7352
  ref: a,
7353
7353
  "data-v-tippy": ""
7354
7354
  });
7355
7355
  return g ? [b, g] : b;
7356
7356
  }
7357
7357
  const m = (typeof e.tag == "string", e.tag);
7358
- return ue(m, { ref: a, "data-v-tippy": "" }, g ? [v, g] : v);
7358
+ return ue(m, { ref: a, "data-v-tippy": "" }, g ? [p, g] : p);
7359
7359
  };
7360
7360
  }
7361
7361
  }), Kv = [
@@ -7387,7 +7387,7 @@ Object.keys(W.defaultProps).forEach((e) => {
7387
7387
  }
7388
7388
  };
7389
7389
  });
7390
- const Jv = $({
7390
+ const Jv = R({
7391
7391
  props: aa,
7392
7392
  setup(e) {
7393
7393
  const t = E([]), { singleton: n } = Xv(t, e);
@@ -7438,7 +7438,7 @@ tm({
7438
7438
  ignoreAttributes: !0,
7439
7439
  plugins: [Uv, qv, Wv, _v]
7440
7440
  });
7441
- const nm = /* @__PURE__ */ $({
7441
+ const nm = /* @__PURE__ */ R({
7442
7442
  __name: "base-tooltip",
7443
7443
  props: {
7444
7444
  content: {},
@@ -7465,7 +7465,7 @@ const nm = /* @__PURE__ */ $({
7465
7465
  }
7466
7466
  ]), 1032, ["content", "z-index"]));
7467
7467
  }
7468
- }), rm = { class: "" }, am = { class: "flex-1 text-left" }, om = /* @__PURE__ */ $({
7468
+ }), rm = { class: "" }, am = { class: "flex-1 text-left" }, om = /* @__PURE__ */ R({
7469
7469
  __name: "base-treeview",
7470
7470
  props: {
7471
7471
  title: { default: "" },
@@ -7525,7 +7525,7 @@ const nm = /* @__PURE__ */ $({
7525
7525
  }, pm = { class: "text-xs text-slate-500" }, vm = {
7526
7526
  key: 1,
7527
7527
  class: "flex flex-col mt-1 gap-1"
7528
- }, mm = { class: "text-xs text-danger" }, hm = /* @__PURE__ */ $({
7528
+ }, mm = { class: "text-xs text-danger" }, hm = /* @__PURE__ */ R({
7529
7529
  __name: "base-form",
7530
7530
  props: {
7531
7531
  id: {},
@@ -7598,7 +7598,7 @@ const nm = /* @__PURE__ */ $({
7598
7598
  ], 2);
7599
7599
  };
7600
7600
  }
7601
- }), gm = /* @__PURE__ */ oe(hm, [["__scopeId", "data-v-f9f52107"]]), bm = { class: "flex gap-2 items-center" }, ym = ["id", "data-testid", "readonly", "disabled", "value", "required", "true-value", "false-value"], Am = ["for"], wm = { key: 0 }, xm = /* @__PURE__ */ $({
7601
+ }), gm = /* @__PURE__ */ oe(hm, [["__scopeId", "data-v-f9f52107"]]), bm = { class: "flex gap-2 items-center" }, ym = ["id", "data-testid", "readonly", "disabled", "value", "required", "true-value", "false-value"], Am = ["for"], wm = { key: 0 }, xm = /* @__PURE__ */ R({
7602
7602
  __name: "base-checkbox",
7603
7603
  props: /* @__PURE__ */ we({
7604
7604
  id: {},
@@ -7690,7 +7690,7 @@ const nm = /* @__PURE__ */ $({
7690
7690
  }, Rm = {
7691
7691
  key: 1,
7692
7692
  class: "relative cursor-default select-none px-6 py-2 text-gray-700"
7693
- }, Lm = ["onClick", "data-testid"], Fm = /* @__PURE__ */ $({
7693
+ }, Lm = ["onClick", "data-testid"], Fm = /* @__PURE__ */ R({
7694
7694
  __name: "base-choosen",
7695
7695
  props: /* @__PURE__ */ we({
7696
7696
  id: {},
@@ -7741,7 +7741,7 @@ const nm = /* @__PURE__ */ $({
7741
7741
  (y) => y.label.toLowerCase().replace(/\s+/g, "").includes(o.value.toLowerCase().replace(/\s+/g, ""))
7742
7742
  )), g = (y) => {
7743
7743
  a.value = y, n.value = y.label, b();
7744
- }, v = () => {
7744
+ }, p = () => {
7745
7745
  n.value = "", a.value = void 0, s.value = "", d.value = "", o.value = "", b();
7746
7746
  };
7747
7747
  ne(
@@ -7757,9 +7757,9 @@ const nm = /* @__PURE__ */ $({
7757
7757
  u.value = !1;
7758
7758
  };
7759
7759
  return (y, C) => {
7760
- const p = K("base-input"), k = K("base-form"), A = K("base-icon"), S = K("base-modal");
7760
+ const v = K("base-input"), x = K("base-form"), k = K("base-icon"), S = K("base-modal");
7761
7761
  return w(), B(fe, null, [
7762
- H(k, {
7762
+ H(x, {
7763
7763
  label: t.label,
7764
7764
  layout: t.layout,
7765
7765
  description: t.description,
@@ -7769,11 +7769,11 @@ const nm = /* @__PURE__ */ $({
7769
7769
  class: "w-full"
7770
7770
  }, {
7771
7771
  default: _(() => [
7772
- e.mode === "input" ? (w(), X(p, {
7772
+ e.mode === "input" ? (w(), X(v, {
7773
7773
  key: 0,
7774
7774
  readonly: "",
7775
7775
  modelValue: n.value,
7776
- "onUpdate:modelValue": C[0] || (C[0] = (x) => n.value = x),
7776
+ "onUpdate:modelValue": C[0] || (C[0] = (A) => n.value = A),
7777
7777
  onClick: m,
7778
7778
  border: e.border,
7779
7779
  placeholder: e.placeholder,
@@ -7800,22 +7800,22 @@ const nm = /* @__PURE__ */ $({
7800
7800
  }, {
7801
7801
  default: _(() => [
7802
7802
  O("div", Pm, [
7803
- H(p, {
7803
+ H(v, {
7804
7804
  placeholder: "Search",
7805
7805
  ref_key: "inputRef",
7806
7806
  ref: c,
7807
7807
  border: "full",
7808
7808
  modelValue: o.value,
7809
- "onUpdate:modelValue": C[1] || (C[1] = (x) => o.value = x),
7809
+ "onUpdate:modelValue": C[1] || (C[1] = (A) => o.value = A),
7810
7810
  "data-testid": `${e.dataTestid}-search`
7811
7811
  }, {
7812
7812
  suffix: _(() => [
7813
7813
  O("button", {
7814
7814
  class: "w-8 h-8",
7815
7815
  "data-testid": `${e.dataTestid}-clear-button`,
7816
- onClick: v
7816
+ onClick: p
7817
7817
  }, [
7818
- H(A, { icon: "i-fa7-solid:xmark" })
7818
+ H(k, { icon: "i-fa7-solid:xmark" })
7819
7819
  ], 8, Dm)
7820
7820
  ]),
7821
7821
  _: 1
@@ -7824,14 +7824,14 @@ const nm = /* @__PURE__ */ $({
7824
7824
  O("div", Mm, [
7825
7825
  r.value ? (w(), B("div", $m, " Loading data... ")) : V("", !0),
7826
7826
  !r.value && h.value.length === 0 ? (w(), B("div", Rm, " Nothing found. ")) : V("", !0),
7827
- (w(!0), B(fe, null, Ie(h.value, (x, M) => (w(), B("div", {
7827
+ (w(!0), B(fe, null, Ie(h.value, (A, M) => (w(), B("div", {
7828
7828
  key: M,
7829
- class: z(["p-2 border-b first:border-t dark:border-b-slate-800 dark:border-t-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer", { "bg-blue-200 dark:bg-slate-700": x?.label === a.value?.label }]),
7830
- onClick: (P) => g(x),
7831
- "data-testid": `${e.dataTestid}-option-${x._id}`
7829
+ class: z(["p-2 border-b first:border-t dark:border-b-slate-800 dark:border-t-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer", { "bg-blue-200 dark:bg-slate-700": A?.label === a.value?.label }]),
7830
+ onClick: (P) => g(A),
7831
+ "data-testid": `${e.dataTestid}-option-${A._id}`
7832
7832
  }, [
7833
- Q(y.$slots, "default", { option: x }, () => [
7834
- $e(q(x?.label), 1)
7833
+ Q(y.$slots, "default", { option: A }, () => [
7834
+ $e(q(A?.label), 1)
7835
7835
  ])
7836
7836
  ], 10, Lm))), 128))
7837
7837
  ])
@@ -9122,8 +9122,8 @@ function zh(e, t) {
9122
9122
  {
9123
9123
  const l = n.getTimezoneOffset();
9124
9124
  if (l !== 0) {
9125
- const h = Math.abs(l), g = le(Math.trunc(h / 60), 2), v = le(h % 60, 2);
9126
- a = `${l < 0 ? "+" : "-"}${g}:${v}`;
9125
+ const h = Math.abs(l), g = le(Math.trunc(h / 60), 2), p = le(h % 60, 2);
9126
+ a = `${l < 0 ? "+" : "-"}${g}:${p}`;
9127
9127
  } else
9128
9128
  a = "Z";
9129
9129
  const s = le(n.getHours(), 2), d = le(n.getMinutes(), 2), u = le(n.getSeconds(), 2), c = r === "" ? "" : "T", f = [s, d, u].join(i);
@@ -9131,7 +9131,7 @@ function zh(e, t) {
9131
9131
  }
9132
9132
  return r;
9133
9133
  }
9134
- const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh = /* @__PURE__ */ $({
9134
+ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh = /* @__PURE__ */ R({
9135
9135
  __name: "base-datepicker",
9136
9136
  props: /* @__PURE__ */ we({
9137
9137
  modelValue: {},
@@ -9189,8 +9189,8 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9189
9189
  inputRef: u,
9190
9190
  dateRef: l
9191
9191
  }), (c, f) => {
9192
- const h = K("base-icon"), g = K("base-button"), v = K("base-form"), m = Ho("input-mask");
9193
- return w(), X(v, {
9192
+ const h = K("base-icon"), g = K("base-button"), p = K("base-form"), m = Ho("input-mask");
9193
+ return w(), X(p, {
9194
9194
  label: r.label,
9195
9195
  layout: r.layout,
9196
9196
  description: r.description,
@@ -9253,7 +9253,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9253
9253
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9254
9254
  };
9255
9255
  }
9256
- }), Xh = /* @__PURE__ */ oe(Yh, [["__scopeId", "data-v-d83e8038"]]), Qh = ["multiple", "accept", "autofocus", "required", "readonly", "disabled", "data-testid"], Gh = ["multiple", "accept", "required", "disabled", "data-testid"], Kh = /* @__PURE__ */ $({
9256
+ }), Xh = /* @__PURE__ */ oe(Yh, [["__scopeId", "data-v-d83e8038"]]), Qh = ["multiple", "accept", "autofocus", "required", "readonly", "disabled", "data-testid"], Gh = ["multiple", "accept", "required", "disabled", "data-testid"], Kh = /* @__PURE__ */ R({
9257
9257
  __name: "base-file-upload",
9258
9258
  props: /* @__PURE__ */ we({
9259
9259
  id: {},
@@ -9330,7 +9330,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9330
9330
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9331
9331
  };
9332
9332
  }
9333
- }), Jh = /* @__PURE__ */ oe(Kh, [["__scopeId", "data-v-f158f8e3"]]), Zh = ["type", "maxlength", "placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], eg = /* @__PURE__ */ $({
9333
+ }), Jh = /* @__PURE__ */ oe(Kh, [["__scopeId", "data-v-f158f8e3"]]), Zh = ["type", "maxlength", "placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], eg = /* @__PURE__ */ R({
9334
9334
  __name: "base-input",
9335
9335
  props: /* @__PURE__ */ we({
9336
9336
  modelValue: {},
@@ -9375,8 +9375,8 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9375
9375
  return t({
9376
9376
  inputRef: i
9377
9377
  }), (h, g) => {
9378
- const v = K("base-form");
9379
- return w(), X(v, {
9378
+ const p = K("base-form");
9379
+ return w(), X(p, {
9380
9380
  label: r.label,
9381
9381
  layout: r.layout,
9382
9382
  description: r.description,
@@ -9436,7 +9436,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
9436
9436
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9437
9437
  };
9438
9438
  }
9439
- }), tg = /* @__PURE__ */ oe(eg, [["__scopeId", "data-v-27214726"]]), ng = ["required", "readonly", "disabled", "autofocus", "placeholder", "data-testid"], rg = /* @__PURE__ */ $({
9439
+ }), tg = /* @__PURE__ */ oe(eg, [["__scopeId", "data-v-27214726"]]), ng = ["required", "readonly", "disabled", "autofocus", "placeholder", "data-testid"], rg = /* @__PURE__ */ R({
9440
9440
  __name: "base-input-mask",
9441
9441
  props: /* @__PURE__ */ we({
9442
9442
  modelValue: { type: [String, Number, Boolean, null] },
@@ -9588,8 +9588,8 @@ Al.prototype = {
9588
9588
  },
9589
9589
  getFixedDateString: function(e) {
9590
9590
  var t = this, n = t.datePattern, r = [], a = 0, o = 0, i = 0, l = 0, s = 0, d = 0, u, c, f, h = !1;
9591
- e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), r = this.getFixedDate(u, c, 0)), e.length === 8 && (n.forEach(function(v, m) {
9592
- switch (v) {
9591
+ e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), r = this.getFixedDate(u, c, 0)), e.length === 8 && (n.forEach(function(p, m) {
9592
+ switch (p) {
9593
9593
  case "d":
9594
9594
  a = m;
9595
9595
  break;
@@ -9601,16 +9601,16 @@ Al.prototype = {
9601
9601
  break;
9602
9602
  }
9603
9603
  }), d = i * 2, l = a <= i ? a * 2 : a * 2 + 2, s = o <= i ? o * 2 : o * 2 + 2, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = this.getFixedDate(u, c, f)), e.length === 4 && (n[0] === "y" || n[1] === "y") && (s = n[0] === "m" ? 0 : 2, d = 2 - s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 2), 10), h = e.slice(d, d + 2).length === 2, r = [0, c, f]), e.length === 6 && (n[0] === "Y" || n[1] === "Y") && (s = n[0] === "m" ? 0 : 4, d = 2 - 0.5 * s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = [0, c, f]), r = t.getRangeFixedDate(r), t.date = r;
9604
- var g = r.length === 0 ? e : n.reduce(function(v, m) {
9604
+ var g = r.length === 0 ? e : n.reduce(function(p, m) {
9605
9605
  switch (m) {
9606
9606
  case "d":
9607
- return v + (r[0] === 0 ? "" : t.addLeadingZero(r[0]));
9607
+ return p + (r[0] === 0 ? "" : t.addLeadingZero(r[0]));
9608
9608
  case "m":
9609
- return v + (r[1] === 0 ? "" : t.addLeadingZero(r[1]));
9609
+ return p + (r[1] === 0 ? "" : t.addLeadingZero(r[1]));
9610
9610
  case "y":
9611
- return v + (h ? t.addLeadingZeroForYear(r[2], !1) : "");
9611
+ return p + (h ? t.addLeadingZeroForYear(r[2], !1) : "");
9612
9612
  case "Y":
9613
- return v + (h ? t.addLeadingZeroForYear(r[2], !0) : "");
9613
+ return p + (h ? t.addLeadingZeroForYear(r[2], !0) : "");
9614
9614
  }
9615
9615
  }, "");
9616
9616
  return g;
@@ -10127,7 +10127,7 @@ ge.Util = cg;
10127
10127
  ge.DefaultProperties = pg;
10128
10128
  (typeof rn == "object" && rn ? rn : window).Cleave = ge;
10129
10129
  var kl = ge;
10130
- const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], mg = /* @__PURE__ */ $({
10130
+ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "data-testid"], mg = /* @__PURE__ */ R({
10131
10131
  // This disables auto-inheriting attrs on the root element
10132
10132
  inheritAttrs: !1,
10133
10133
  __name: "base-input-number",
@@ -10167,14 +10167,14 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10167
10167
  numeral: !0,
10168
10168
  numeralThousandsGroupStyle: "thousand",
10169
10169
  numeralDecimalScale: r.decimalLength,
10170
- onValueChanged: v
10170
+ onValueChanged: p
10171
10171
  }), r.autofocus && o.value?.focus(), c(), setTimeout(() => {
10172
10172
  c();
10173
10173
  }, 1e3);
10174
10174
  });
10175
10175
  const c = () => {
10176
10176
  d.value = l.value?.clientWidth === 0 ? 16 : l.value?.clientWidth, u.value = s.value?.clientWidth === 0 ? 16 : s.value?.clientWidth;
10177
- }, f = de(e, "modelValue"), h = de(e, "errors"), g = n, v = (b) => {
10177
+ }, f = de(e, "modelValue"), h = de(e, "errors"), g = n, p = (b) => {
10178
10178
  g("update:modelValue", Number(b.target.rawValue)), r.resetErrorsOnUpdate === !0 && h.value?.length && (h.value = []);
10179
10179
  }, m = T({
10180
10180
  set: () => {
@@ -10208,7 +10208,7 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
10208
10208
  rounded: e.rounded,
10209
10209
  "px-0!": e.paddingless
10210
10210
  }]),
10211
- "onUpdate:modelValue": y[0] || (y[0] = (p) => m.value = p),
10211
+ "onUpdate:modelValue": y[0] || (y[0] = (v) => m.value = v),
10212
10212
  placeholder: r.placeholder,
10213
10213
  autofocus: r.autofocus,
10214
10214
  required: r.required,
@@ -10304,12 +10304,12 @@ function bg() {
10304
10304
  }), r ? o.scrollHeight > parseInt(f.height) && (c.overflowY = "scroll") : c.overflow = "hidden", u.textContent = o.value.substring(0, i), h && (u.textContent = u.textContent.replace(/\s/g, " "));
10305
10305
  var g = document.createElement("span");
10306
10306
  g.textContent = o.value.substring(i) || ".", u.appendChild(g);
10307
- var v = {
10307
+ var p = {
10308
10308
  top: g.offsetTop + parseInt(f.borderTopWidth),
10309
10309
  left: g.offsetLeft + parseInt(f.borderLeftWidth),
10310
10310
  height: parseInt(f.lineHeight)
10311
10311
  };
10312
- return s ? g.style.backgroundColor = "#aaa" : document.body.removeChild(u), v;
10312
+ return s ? g.style.backgroundColor = "#aaa" : document.body.removeChild(u), p;
10313
10313
  }
10314
10314
  e.exports = a;
10315
10315
  })();
@@ -10322,7 +10322,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10322
10322
  }, Sg = {
10323
10323
  key: 1,
10324
10324
  class: "p-1 text-gray-400 italic"
10325
- }, Og = ["onClick"], Cg = /* @__PURE__ */ $({
10325
+ }, Og = ["onClick"], Cg = /* @__PURE__ */ R({
10326
10326
  __name: "base-mention",
10327
10327
  props: /* @__PURE__ */ we({
10328
10328
  modelValue: {},
@@ -10330,6 +10330,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10330
10330
  label: {},
10331
10331
  description: {},
10332
10332
  placeholder: {},
10333
+ debounceTimer: { default: 300 },
10333
10334
  border: { default: "simple" },
10334
10335
  layout: { default: "vertical" },
10335
10336
  maxlength: {},
@@ -10348,62 +10349,71 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10348
10349
  errors: {},
10349
10350
  errorsModifiers: {}
10350
10351
  }),
10351
- emits: /* @__PURE__ */ we(["update:modelValue", "update:mentions", "search"], ["update:errors"]),
10352
+ emits: /* @__PURE__ */ we(["update:modelValue", "update:mentions", "search", "showSuggestions"], ["update:errors"]),
10352
10353
  setup(e, { expose: t, emit: n }) {
10353
- const r = e, a = de(e, "errors"), o = n, i = T({
10354
+ const r = e, a = de(e, "errors"), o = n;
10355
+ let i = null;
10356
+ const l = (A) => {
10357
+ i && clearTimeout(i), i = setTimeout(() => {
10358
+ o("search", A);
10359
+ }, r.debounceTimer);
10360
+ }, s = T({
10354
10361
  get: () => r.modelValue,
10355
10362
  set: (A) => {
10356
- o("update:modelValue", A), a.value?.length && (a.value = []), d();
10363
+ o("update:modelValue", A), a.value?.length && (a.value = []), c();
10357
10364
  }
10358
- }), l = E(0), s = E();
10359
- function d() {
10360
- l.value = 0, ke(() => {
10361
- l.value = s.value?.scrollHeight ?? 0;
10365
+ }), d = E(0), u = E();
10366
+ function c() {
10367
+ d.value = 0, ke(() => {
10368
+ d.value = u.value?.scrollHeight ?? 0;
10362
10369
  });
10363
10370
  }
10364
- ne(i, d), te(() => {
10365
- r.autofocus && s.value?.focus(), d();
10371
+ ne(s, c), te(() => {
10372
+ r.autofocus && u.value?.focus(), c();
10366
10373
  });
10367
- const u = E({ top: 0, left: 0 }), c = E(!1), f = E(0), h = E(null), g = E(-1), v = E(""), m = T(() => h.value ? (r.options[h.value] || []).filter(
10368
- (A) => A.label.toLowerCase().includes(v.value.toLowerCase())
10374
+ const f = E({ top: 0, left: 0 }), h = E(!1), g = E(0), p = E(null), m = E(-1), b = E(""), y = T(() => p.value ? (r.options[p.value] || []).filter(
10375
+ (A) => A.label.toLowerCase().includes(b.value.toLowerCase())
10369
10376
  ) : []);
10370
- function b() {
10371
- if (!s.value || g.value < 0) return;
10372
- const A = Ag(s.value, g.value);
10373
- u.value = {
10374
- top: A.top - s.value.scrollTop + A.height,
10375
- left: A.left - s.value.scrollLeft
10377
+ function C() {
10378
+ if (!u.value || m.value < 0) return;
10379
+ const A = Ag(u.value, m.value);
10380
+ f.value = {
10381
+ top: A.top - u.value.scrollTop + A.height,
10382
+ left: A.left - u.value.scrollLeft
10376
10383
  };
10377
10384
  }
10378
- function y(A) {
10379
- const x = A.target.selectionStart, M = i.value.slice(0, x), P = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), I = M.match(P);
10380
- I ? (h.value = I[1], g.value = x - I[2].length - 1, v.value = I[2], o("search", { trigger: h.value, query: v.value }), c.value = !0, ke(b)) : k();
10381
- }
10382
- function C(A) {
10383
- !c.value || !m.value.length || (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (f.value = (f.value + 1) % m.value.length), A.key === "ArrowUp" && (f.value = (f.value - 1 + m.value.length) % m.value.length), A.key === "Enter" && p(m.value[f.value]), A.key === "Escape" && k());
10384
- }
10385
- function p(A) {
10386
- if (!h.value || g.value < 0) return;
10387
- const S = i.value.slice(0, g.value), x = i.value.slice(g.value + v.value.length + 1);
10388
- i.value = `${S}${h.value}${A.label} ${x}`, k(), ke(() => {
10389
- s.value?.focus();
10390
- const M = S.length + A.label.length + 2;
10391
- s.value?.setSelectionRange(M, M);
10385
+ function v(A) {
10386
+ const P = A.target.selectionStart, I = s.value.slice(0, P), L = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), $ = I.match(L);
10387
+ $ ? (p.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], l({
10388
+ trigger: p.value,
10389
+ query: b.value
10390
+ }), h.value = !0, o("showSuggestions", !0), ke(C)) : S();
10391
+ }
10392
+ function x(A) {
10393
+ !h.value || !y.value.length || (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) % y.value.length), A.key === "ArrowUp" && (g.value = (g.value - 1 + y.value.length) % y.value.length), A.key === "Enter" && k(y.value[g.value]), A.key === "Escape" && S());
10394
+ }
10395
+ function k(A) {
10396
+ if (!p.value || m.value < 0) return;
10397
+ const M = s.value.slice(0, m.value), P = s.value.slice(m.value + b.value.length + 1);
10398
+ s.value = `${M}${p.value}${A.label} ${P}`, S(), ke(() => {
10399
+ u.value?.focus();
10400
+ const I = M.length + A.label.length + 2;
10401
+ u.value?.setSelectionRange(I, I);
10392
10402
  });
10393
10403
  }
10394
- function k() {
10395
- c.value = !1, g.value = -1, v.value = "", h.value = null, f.value = 0;
10404
+ function S() {
10405
+ i && (clearTimeout(i), i = null), h.value = !1, o("showSuggestions", !1), m.value = -1, b.value = "", p.value = null, g.value = 0;
10396
10406
  }
10397
- return ne(i, () => {
10407
+ return ne(s, () => {
10398
10408
  const A = [];
10399
- for (const S of r.triggers) {
10400
- const x = new RegExp(`\\${S}(\\w+)`, "g"), M = Array.from(i.value.matchAll(x)).map((I) => I[1]?.toLowerCase()), P = r.options[S] || [];
10401
- A.push(...P.filter((I) => M.includes(I.label.toLowerCase())));
10409
+ for (const M of r.triggers) {
10410
+ const P = new RegExp(`\\${M}(\\w+)`, "g"), I = Array.from(s.value.matchAll(P)).map(($) => $[1]?.toLowerCase()), L = r.options[M] || [];
10411
+ A.push(...L.filter(($) => I.includes($.label.toLowerCase())));
10402
10412
  }
10403
10413
  o("update:mentions", A);
10404
- }), t({ textareaRef: s }), (A, S) => {
10405
- const x = K("base-form");
10406
- return w(), X(x, {
10414
+ }), t({ textareaRef: u }), (A, M) => {
10415
+ const P = K("base-form");
10416
+ return w(), X(P, {
10407
10417
  label: r.label,
10408
10418
  layout: r.layout,
10409
10419
  description: r.description,
@@ -10415,8 +10425,8 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10415
10425
  O("div", wg, [
10416
10426
  Xe(O("textarea", {
10417
10427
  ref_key: "textareaRef",
10418
- ref: s,
10419
- "onUpdate:modelValue": S[0] || (S[0] = (M) => i.value = M),
10428
+ ref: u,
10429
+ "onUpdate:modelValue": M[0] || (M[0] = (I) => s.value = I),
10420
10430
  id: e.id,
10421
10431
  placeholder: e.placeholder,
10422
10432
  autofocus: e.autofocus,
@@ -10431,30 +10441,31 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10431
10441
  "overflow-hidden": !e.maxHeight
10432
10442
  }]),
10433
10443
  style: Ye({
10434
- height: l.value + "px",
10444
+ height: d.value + "px",
10435
10445
  minHeight: e.minHeight ? e.minHeight + "px" : "inherit",
10436
10446
  maxHeight: e.maxHeight ? e.maxHeight + "px" : "inherit"
10437
10447
  }),
10438
10448
  "data-testid": e.dataTestid,
10439
- onInput: y,
10440
- onKeydown: C
10449
+ onInput: v,
10450
+ onKeydown: x,
10451
+ onBlur: S
10441
10452
  }, null, 46, xg), [
10442
- [Ut, i.value]
10453
+ [Ut, s.value]
10443
10454
  ]),
10444
- c.value ? (w(), B("ul", {
10455
+ h.value ? (w(), B("ul", {
10445
10456
  key: 0,
10446
10457
  class: "absolute bg-white dark:bg-gray-900 border dark:border-gray-500 rounded shadow p-1 z-10 w-48",
10447
- style: Ye({ top: `${u.value.top}px`, left: `${u.value.left}px` })
10458
+ style: Ye({ top: `${f.value.top}px`, left: `${f.value.left}px` })
10448
10459
  }, [
10449
- e.loading ? (w(), B("li", kg, "Searching...")) : m.value.length ? V("", !0) : (w(), B("li", Sg, "No results")),
10450
- e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Ie(m.value, (M, P) => (w(), B("li", {
10451
- key: M.id,
10460
+ e.loading ? (w(), B("li", kg, "Searching...")) : y.value.length ? V("", !0) : (w(), B("li", Sg, "No results")),
10461
+ e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Ie(y.value, (I, L) => (w(), B("li", {
10462
+ key: I.id,
10452
10463
  class: z([
10453
10464
  "p-1 cursor-pointer",
10454
- P === f.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
10465
+ L === g.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
10455
10466
  ]),
10456
- onClick: (I) => p(M)
10457
- }, q(M.label), 11, Og))), 128))
10467
+ onClick: ($) => k(I)
10468
+ }, q(I.label), 11, Og))), 128))
10458
10469
  ], 4)) : V("", !0)
10459
10470
  ])
10460
10471
  ]),
@@ -10462,13 +10473,13 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10462
10473
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10463
10474
  };
10464
10475
  }
10465
- }), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-66bbbe73"]]), Tg = { class: "cursor-pointer" }, Bg = { class: "flex items-center justify-between gap-1" }, Pg = {
10476
+ }), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-ab610d60"]]), Tg = { class: "cursor-pointer" }, Bg = { class: "flex items-center justify-between gap-1" }, Pg = {
10466
10477
  key: 0,
10467
10478
  class: "flex items-center shrink-0 text-white"
10468
10479
  }, Dg = {
10469
10480
  key: 1,
10470
10481
  class: "flex items-center shrink-0"
10471
- }, Ig = { class: "flex items-center" }, Mg = { class: "text-sm" }, $g = /* @__PURE__ */ $({
10482
+ }, Ig = { class: "flex items-center" }, Mg = { class: "text-sm" }, $g = /* @__PURE__ */ R({
10472
10483
  __name: "base-radio",
10473
10484
  props: /* @__PURE__ */ we({
10474
10485
  modelValue: { type: [Object, null, String, Number, Boolean] },
@@ -10558,7 +10569,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10558
10569
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10559
10570
  };
10560
10571
  }
10561
- }), Rg = { class: "flex w-full gap-2 mt-0.2" }, Lg = ["disabled", "data-testid"], Fg = { key: 0 }, _g = /* @__PURE__ */ $({
10572
+ }), Rg = { class: "flex w-full gap-2 mt-0.2" }, Lg = ["disabled", "data-testid"], Fg = { key: 0 }, _g = /* @__PURE__ */ R({
10562
10573
  __name: "base-range",
10563
10574
  props: /* @__PURE__ */ we({
10564
10575
  modelValue: {},
@@ -10617,7 +10628,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10617
10628
  }, Wg = {
10618
10629
  key: 1,
10619
10630
  class: "relative cursor-default select-none px-4 py-2 text-gray-700"
10620
- }, Hg = /* @__PURE__ */ $({
10631
+ }, Hg = /* @__PURE__ */ R({
10621
10632
  __name: "base-select",
10622
10633
  props: /* @__PURE__ */ we({
10623
10634
  id: {},
@@ -10669,12 +10680,12 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10669
10680
  ), ne(
10670
10681
  () => r.value,
10671
10682
  (g) => {
10672
- o.value = a.options.find((v) => v.value === g);
10683
+ o.value = a.options.find((p) => p.value === g);
10673
10684
  },
10674
10685
  { immediate: !0 }
10675
10686
  ), t({
10676
10687
  inputRef: h
10677
- }), (g, v) => {
10688
+ }), (g, p) => {
10678
10689
  const m = K("base-icon"), b = K("base-button"), y = K("base-form");
10679
10690
  return w(), X(y, {
10680
10691
  label: a.label,
@@ -10687,7 +10698,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10687
10698
  default: _(() => [
10688
10699
  H(N(pu), {
10689
10700
  modelValue: o.value,
10690
- "onUpdate:modelValue": v[3] || (v[3] = (C) => o.value = C)
10701
+ "onUpdate:modelValue": p[3] || (p[3] = (C) => o.value = C)
10691
10702
  }, {
10692
10703
  default: _(() => [
10693
10704
  O("div", Vg, [
@@ -10709,7 +10720,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10709
10720
  disabled: a.disabled,
10710
10721
  placeholder: e.placeholder,
10711
10722
  displayValue: () => o.value?.label ?? "",
10712
- onChange: v[0] || (v[0] = (C) => l.value = C.target.value),
10723
+ onChange: p[0] || (p[0] = (C) => l.value = C.target.value),
10713
10724
  "data-testid": `${e.dataTestid}-input`
10714
10725
  }, null, 8, ["autofocus", "required", "readonly", "disabled", "placeholder", "class", "displayValue", "data-testid"]),
10715
10726
  N(ml)(o.value) ? (w(), X(N(vu), {
@@ -10728,7 +10739,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10728
10739
  variant: "text",
10729
10740
  type: "button",
10730
10741
  class: "absolute inset-y-0 right-1 flex items-center",
10731
- onClick: v[1] || (v[1] = (C) => u()),
10742
+ onClick: p[1] || (p[1] = (C) => u()),
10732
10743
  "data-testid": `${e.dataTestid}-clear-button`
10733
10744
  }, {
10734
10745
  default: _(() => [
@@ -10741,7 +10752,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10741
10752
  leave: "transition ease-in duration-100",
10742
10753
  leaveFrom: "opacity-100",
10743
10754
  leaveTo: "opacity-0",
10744
- onAfterLeave: v[2] || (v[2] = (C) => l.value = "")
10755
+ onAfterLeave: p[2] || (p[2] = (C) => l.value = "")
10745
10756
  }, {
10746
10757
  default: _(() => [
10747
10758
  H(N(hu), { class: "options" }, {
@@ -10754,15 +10765,15 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10754
10765
  value: C,
10755
10766
  "data-testid": `${e.dataTestid}-option-${C._id}`
10756
10767
  }, {
10757
- default: _(({ selected: p, active: k }) => [
10768
+ default: _(({ selected: v, active: x }) => [
10758
10769
  O("li", {
10759
10770
  class: z(["option", {
10760
- "option-active": k,
10761
- "option-inactive": !k
10771
+ "option-active": x,
10772
+ "option-inactive": !x
10762
10773
  }])
10763
10774
  }, [
10764
10775
  O("span", {
10765
- class: z(["block", { "font-medium": p, "font-normal": !p }])
10776
+ class: z(["block", { "font-medium": v, "font-normal": !v }])
10766
10777
  }, q(C.label), 3)
10767
10778
  ], 2)
10768
10779
  ]),
@@ -10783,7 +10794,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10783
10794
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10784
10795
  };
10785
10796
  }
10786
- }), qg = /* @__PURE__ */ oe(Hg, [["__scopeId", "data-v-32636d03"]]), zg = ["disabled", "data-testid"], Ug = /* @__PURE__ */ $({
10797
+ }), qg = /* @__PURE__ */ oe(Hg, [["__scopeId", "data-v-32636d03"]]), zg = ["disabled", "data-testid"], Ug = /* @__PURE__ */ R({
10787
10798
  __name: "base-switch",
10788
10799
  props: /* @__PURE__ */ we({
10789
10800
  modelValue: { type: Boolean },
@@ -10854,7 +10865,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10854
10865
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10855
10866
  };
10856
10867
  }
10857
- }), Yg = ["placeholder", "autofocus", "required", "readonly", "disabled", "maxlength", "data-testid"], Xg = /* @__PURE__ */ $({
10868
+ }), Yg = ["placeholder", "autofocus", "required", "readonly", "disabled", "maxlength", "data-testid"], Xg = /* @__PURE__ */ R({
10858
10869
  __name: "base-textarea",
10859
10870
  props: /* @__PURE__ */ we({
10860
10871
  modelValue: {},
@@ -10938,7 +10949,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
10938
10949
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10939
10950
  };
10940
10951
  }
10941
- }), Qg = /* @__PURE__ */ oe(Xg, [["__scopeId", "data-v-72c6c0e3"]]), Gg = { class: "flex justify-between px-4" }, Kg = { class: "self-end" }, Jg = /* @__PURE__ */ $({
10952
+ }), Qg = /* @__PURE__ */ oe(Xg, [["__scopeId", "data-v-72c6c0e3"]]), Gg = { class: "flex justify-between px-4" }, Kg = { class: "self-end" }, Jg = /* @__PURE__ */ R({
10942
10953
  __name: "app-footer",
10943
10954
  props: {
10944
10955
  version: {},
@@ -10965,7 +10976,7 @@ function rb(e, t) {
10965
10976
  const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e3"]]), ob = { class: "preloader-status" }, ib = {
10966
10977
  status: "",
10967
10978
  class: "preloader-status-text"
10968
- }, lb = { class: "preloader-status-loader" }, sb = /* @__PURE__ */ $({
10979
+ }, lb = { class: "preloader-status-loader" }, sb = /* @__PURE__ */ R({
10969
10980
  __name: "app-preloader",
10970
10981
  setup(e) {
10971
10982
  const t = E(0), n = E(`is loading ${t.value} %`), r = E();
@@ -11005,7 +11016,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11005
11016
  }, Ab = ["href"], wb = {
11006
11017
  key: 2,
11007
11018
  class: "menu-separator"
11008
- }, xb = /* @__PURE__ */ $({
11019
+ }, xb = /* @__PURE__ */ R({
11009
11020
  __name: "app-sidebar-menu",
11010
11021
  props: {
11011
11022
  isMobile: { type: Boolean },
@@ -11040,7 +11051,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11040
11051
  O("p", pb, q(e.title), 1),
11041
11052
  n.value ? (w(), X(ur(N(ia)), {
11042
11053
  key: 0,
11043
- onClick: f[0] || (f[0] = (v) => N(o).closeSidebar()),
11054
+ onClick: f[0] || (f[0] = (p) => N(o).closeSidebar()),
11044
11055
  class: "mr-2",
11045
11056
  "data-testid": "sidebar-button"
11046
11057
  }, {
@@ -11057,47 +11068,47 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11057
11068
  ]),
11058
11069
  O("div", mb, [
11059
11070
  O("ul", hb, [
11060
- (w(!0), B(fe, null, Ie(r.value, (v) => (w(), B("li", {
11061
- key: v.name
11071
+ (w(!0), B(fe, null, Ie(r.value, (p) => (w(), B("li", {
11072
+ key: p.name
11062
11073
  }, [
11063
- v.submenu ? (w(), B(fe, { key: 0 }, [
11064
- v.path ? (w(), X(g, {
11074
+ p.submenu ? (w(), B(fe, { key: 0 }, [
11075
+ p.path ? (w(), X(g, {
11065
11076
  key: 0,
11066
- to: v.path,
11077
+ to: p.path,
11067
11078
  class: "menu-link-button",
11068
- onClick: (m) => l(v.name),
11069
- "data-testid": v.dataTestid
11079
+ onClick: (m) => l(p.name),
11080
+ "data-testid": p.dataTestid
11070
11081
  }, {
11071
11082
  default: _(() => [
11072
- O("p", null, q(v.name), 1),
11073
- v.submenu ? (w(), B("i", {
11083
+ O("p", null, q(p.name), 1),
11084
+ p.submenu ? (w(), B("i", {
11074
11085
  key: 0,
11075
11086
  class: z(["i-fa7-solid:angle-right", {
11076
- "rotate-90 transition transform-gpu": i.value === v.name
11087
+ "rotate-90 transition transform-gpu": i.value === p.name
11077
11088
  }])
11078
11089
  }, null, 2)) : V("", !0)
11079
11090
  ]),
11080
11091
  _: 2
11081
11092
  }, 1032, ["to", "onClick", "data-testid"])) : (w(), B("div", {
11082
11093
  key: 1,
11083
- class: z(["menu-link-button", { "text-slate-50": i.value === v.name }]),
11084
- onClick: (m) => l(v.name),
11085
- "data-testid": v.dataTestid
11094
+ class: z(["menu-link-button", { "text-slate-50": i.value === p.name }]),
11095
+ onClick: (m) => l(p.name),
11096
+ "data-testid": p.dataTestid
11086
11097
  }, [
11087
- O("p", null, q(v.name), 1),
11088
- v.submenu ? (w(), B("i", {
11098
+ O("p", null, q(p.name), 1),
11099
+ p.submenu ? (w(), B("i", {
11089
11100
  key: 0,
11090
11101
  class: z(["i-fa7-solid:angle-right", {
11091
- "rotate-90 transition transform-gpu": i.value === v.name
11102
+ "rotate-90 transition transform-gpu": i.value === p.name
11092
11103
  }])
11093
11104
  }, null, 2)) : V("", !0)
11094
11105
  ], 10, gb)),
11095
11106
  O("ul", {
11096
11107
  class: z(["submenu", {
11097
- "max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === v.name
11108
+ "max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === p.name
11098
11109
  }])
11099
11110
  }, [
11100
- (w(!0), B(fe, null, Ie(v.submenu, (m) => (w(), B("li", {
11111
+ (w(!0), B(fe, null, Ie(p.submenu, (m) => (w(), B("li", {
11101
11112
  key: m.name,
11102
11113
  class: "overflow-hidden"
11103
11114
  }, [
@@ -11117,30 +11128,30 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11117
11128
  ]))), 128))
11118
11129
  ], 2)
11119
11130
  ], 64)) : (w(), B(fe, { key: 1 }, [
11120
- v.path && u(v.path) === "internal" ? (w(), X(g, {
11131
+ p.path && u(p.path) === "internal" ? (w(), X(g, {
11121
11132
  key: 0,
11122
- to: v.path,
11133
+ to: p.path,
11123
11134
  class: "menu-link-button",
11124
11135
  onClick: f[1] || (f[1] = (m) => s()),
11125
- "data-testid": v.dataTestid
11136
+ "data-testid": p.dataTestid
11126
11137
  }, {
11127
11138
  default: _(() => [
11128
- $e(q(v.name), 1)
11139
+ $e(q(p.name), 1)
11129
11140
  ]),
11130
11141
  _: 2
11131
11142
  }, 1032, ["to", "data-testid"])) : V("", !0),
11132
- v.path && u(v.path) === "external" ? (w(), B("a", {
11143
+ p.path && u(p.path) === "external" ? (w(), B("a", {
11133
11144
  key: 1,
11134
- href: v.path,
11145
+ href: p.path,
11135
11146
  onClick: f[2] || (f[2] = (m) => s()),
11136
11147
  target: "_blank",
11137
11148
  class: "menu-link-button"
11138
11149
  }, [
11139
- $e(q(v.name) + " ", 1),
11150
+ $e(q(p.name) + " ", 1),
11140
11151
  H(h, { icon: "i-fa7-solid:up-right-from-square" })
11141
11152
  ], 8, Ab)) : V("", !0)
11142
11153
  ], 64)),
11143
- v.separator ? (w(), B("div", wb)) : V("", !0)
11154
+ p.separator ? (w(), B("div", wb)) : V("", !0)
11144
11155
  ]))), 128))
11145
11156
  ])
11146
11157
  ])
@@ -11156,7 +11167,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11156
11167
  key: 1,
11157
11168
  src: Ol,
11158
11169
  class: "pt-2 px-1 max-w-12 max-h-12"
11159
- }, $b = { class: "text-center px-1 py-2 text-9px font-semibold line-height-tight break-anywhere" }, Rb = /* @__PURE__ */ $({
11170
+ }, $b = { class: "text-center px-1 py-2 text-9px font-semibold line-height-tight break-anywhere" }, Rb = /* @__PURE__ */ R({
11160
11171
  __name: "app-sidebar-panel",
11161
11172
  props: {
11162
11173
  apps: {}
@@ -11213,7 +11224,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11213
11224
  ]);
11214
11225
  };
11215
11226
  }
11216
- }), Cl = /* @__PURE__ */ oe(Rb, [["__scopeId", "data-v-800d2254"]]), Lb = { class: "sidebar" }, Fb = /* @__PURE__ */ $({
11227
+ }), Cl = /* @__PURE__ */ oe(Rb, [["__scopeId", "data-v-800d2254"]]), Lb = { class: "sidebar" }, Fb = /* @__PURE__ */ R({
11217
11228
  __name: "app-sidebar",
11218
11229
  props: {
11219
11230
  title: {},
@@ -11246,7 +11257,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11246
11257
  })
11247
11258
  ], 64));
11248
11259
  }
11249
- }), _b = /* @__PURE__ */ oe(Fb, [["__scopeId", "data-v-388375c7"]]), Vb = { class: "hidden lg:flex flex-col justify-center items-end" }, Nb = { class: "text-sm truncate font-extrabold" }, jb = { class: "text-sm truncate" }, Wb = { class: "popper-root p-2" }, Hb = /* @__PURE__ */ $({
11260
+ }), _b = /* @__PURE__ */ oe(Fb, [["__scopeId", "data-v-388375c7"]]), Vb = { class: "hidden lg:flex flex-col justify-center items-end" }, Nb = { class: "text-sm truncate font-extrabold" }, jb = { class: "text-sm truncate" }, Wb = { class: "popper-root p-2" }, Hb = /* @__PURE__ */ R({
11250
11261
  __name: "header-menu",
11251
11262
  props: {
11252
11263
  organization: {},
@@ -11289,7 +11300,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11289
11300
  }, 512);
11290
11301
  };
11291
11302
  }
11292
- }), qb = /* @__PURE__ */ oe(Hb, [["__scopeId", "data-v-2912a45d"]]), zb = { class: "text-slate-900 dark:text-slate-50 flex !justify-left" }, Ub = { class: "flex flex-col justify-center items-start text-left text-sm pl-2" }, Yb = { class: "font-extrabold line-clamp-1" }, Xb = { class: "line-clamp-1" }, Qb = /* @__PURE__ */ $({
11303
+ }), qb = /* @__PURE__ */ oe(Hb, [["__scopeId", "data-v-2912a45d"]]), zb = { class: "text-slate-900 dark:text-slate-50 flex !justify-left" }, Ub = { class: "flex flex-col justify-center items-start text-left text-sm pl-2" }, Yb = { class: "font-extrabold line-clamp-1" }, Xb = { class: "line-clamp-1" }, Qb = /* @__PURE__ */ R({
11293
11304
  __name: "header-menu-account",
11294
11305
  props: {
11295
11306
  organization: {},
@@ -11311,7 +11322,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11311
11322
  ])
11312
11323
  ]));
11313
11324
  }
11314
- }), Gb = /* @__PURE__ */ $({
11325
+ }), Gb = /* @__PURE__ */ R({
11315
11326
  __name: "header-menu-dark-mode",
11316
11327
  props: /* @__PURE__ */ we({
11317
11328
  onToggleDarkMode: { type: Function }
@@ -11347,7 +11358,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11347
11358
  });
11348
11359
  };
11349
11360
  }
11350
- }), Kb = /* @__PURE__ */ $({
11361
+ }), Kb = /* @__PURE__ */ R({
11351
11362
  __name: "header-menu-signout",
11352
11363
  props: {
11353
11364
  onSignout: { type: Function }
@@ -11374,7 +11385,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11374
11385
  }, 8, ["onClick"]);
11375
11386
  };
11376
11387
  }
11377
- }), Jb = { class: "text-xs" }, Zb = /* @__PURE__ */ $({
11388
+ }), Jb = { class: "text-xs" }, Zb = /* @__PURE__ */ R({
11378
11389
  __name: "header-menu-switch-organization",
11379
11390
  props: {
11380
11391
  organizations: {}
@@ -11426,7 +11437,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11426
11437
  ], 64);
11427
11438
  };
11428
11439
  }
11429
- }), ey = { class: "popper-root" }, ty = { class: "overflow-y-auto flex flex-col gap-4" }, ny = { class: "flex items-center space-x-3" }, ry = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, ay = { class: "flex items-center space-x-3" }, oy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, iy = /* @__PURE__ */ $({
11440
+ }), ey = { class: "popper-root" }, ty = { class: "overflow-y-auto flex flex-col gap-4" }, ny = { class: "flex items-center space-x-3" }, ry = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, ay = { class: "flex items-center space-x-3" }, oy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, iy = /* @__PURE__ */ R({
11430
11441
  __name: "header-notification",
11431
11442
  setup(e) {
11432
11443
  const t = E();
@@ -11560,7 +11571,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
11560
11571
  }, uy = {
11561
11572
  key: 1,
11562
11573
  class: "block w-6 h-6 i-lucide-panel-left-close"
11563
- }, dy = /* @__PURE__ */ $({
11574
+ }, dy = /* @__PURE__ */ R({
11564
11575
  __name: "header-sidebar-button",
11565
11576
  props: /* @__PURE__ */ we({
11566
11577
  onToggleSidebar: { type: Function }
@@ -11784,14 +11795,14 @@ const Cy = mr("sidebar-menu", {
11784
11795
  }
11785
11796
  u(i.value), n.value < r.value && setTimeout(d, a.value);
11786
11797
  }, u = (g) => {
11787
- i.value = g, e.value = new WebSocket(i.value), e.value.onmessage = (v) => {
11788
- const m = Tm(v.data);
11798
+ i.value = g, e.value = new WebSocket(i.value), e.value.onmessage = (p) => {
11799
+ const m = Tm(p.data);
11789
11800
  fy.emit(m.event, m);
11790
- }, e.value.onopen = (v) => {
11801
+ }, e.value.onopen = (p) => {
11791
11802
  o.value = 1;
11792
- }, e.value.onclose = (v) => {
11803
+ }, e.value.onclose = (p) => {
11793
11804
  o.value = 0, t.value === !1 && setTimeout(d, a.value);
11794
- }, e.value.onerror = (v) => {
11805
+ }, e.value.onerror = (p) => {
11795
11806
  };
11796
11807
  };
11797
11808
  function c() {