import { n as e, t } from "./dist-DehjOTWK.js";
import { En as n, H as r, Ht as i, J as a, L as o, On as s, Tn as c, Ut as l, _n as u, an as d, bn as f, ct as p, g as m, gn as h, in as g, it as _, k as v, nn as y, pn as b, pt as x, tt as S, un as C, vn as w, wn as T, xn as E } from "./runtime-core.esm-bundler-Ci9kEgM7.js";
e();
function D(e2, t2) {
  let n2 = E();
  return l(() => {
    n2.value = e2();
  }, { ...t2, flush: t2?.flush ?? `sync` }), u(n2);
}
function O(e2, t2, n2 = {}) {
  let r2, a2, o2, s2 = true, c2 = () => {
    s2 = true, o2();
  };
  i(e2, c2, { flush: `sync`, ...n2 });
  let l2 = typeof t2 == `function` ? t2 : t2.get, u2 = typeof t2 == `function` ? void 0 : t2.set, d2 = y((e3, t3) => (a2 = e3, o2 = t3, { get() {
    return s2 && (s2 = (r2 = l2(r2), false)), a2(), r2;
  }, set(e4) {
    u2?.(e4);
  } }));
  return d2.trigger = c2, d2;
}
function k(e2, t2) {
  return d() ? (b(e2, t2), true) : false;
}
function ee() {
  let e2 = /* @__PURE__ */ new Set(), t2 = (t3) => {
    e2.delete(t3);
  };
  return { on: (n2) => {
    e2.add(n2);
    let r2 = () => t2(n2);
    return k(r2), { off: r2 };
  }, off: t2, trigger: (...t3) => Promise.all(Array.from(e2).map((e3) => e3(...t3))), clear: () => {
    e2.clear();
  } };
}
function A(e2) {
  let t2 = false, n2, r2 = g(true);
  return ((...i2) => (t2 || (t2 = (n2 = r2.run(() => e2(...i2)), true)), n2));
}
var j = /* @__PURE__ */ new WeakMap(), te = (...e2) => {
  let t2 = e2[0], n2 = o()?.proxy ?? d();
  if (n2 == null && !r()) throw Error(`injectLocal must be called in setup`);
  return n2 && j.has(n2) && t2 in j.get(n2) ? j.get(n2)[t2] : a(...e2);
}, M = typeof window < `u` && typeof document < `u`;
typeof WorkerGlobalScope < `u` && globalThis instanceof WorkerGlobalScope;
var ne = (e2) => e2 !== void 0, re = (e2) => e2 != null, ie = Object.prototype.toString, ae = (e2) => ie.call(e2) === `[object Object]`, N = () => {
}, oe = se();
function se() {
  var e2, t2;
  return M && !!(!((e2 = window) == null || (e2 = e2.navigator) == null) && e2.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t2 = window) == null || (t2 = t2.navigator) == null ? void 0 : t2.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
}
function P(...e2) {
  if (e2.length !== 1) return T(...e2);
  let t2 = e2[0];
  return typeof t2 == `function` ? u(y(() => ({ get: t2, set: N }))) : w(t2);
}
function F(e2, t2) {
  function n2(...n3) {
    return new Promise((r2, i2) => {
      Promise.resolve(e2(() => t2.apply(this, n3), { fn: t2, thisArg: this, args: n3 })).then(r2).catch(i2);
    });
  }
  return n2;
}
var ce = (e2) => e2();
function le(e2, t2 = {}) {
  let r2, i2, a2 = N, o2 = (e3) => {
    clearTimeout(e3), a2(), a2 = N;
  }, s2;
  return (c2) => {
    let l2 = n(e2), u2 = n(t2.maxWait);
    return r2 && o2(r2), l2 <= 0 || u2 !== void 0 && u2 <= 0 ? (i2 && (i2 = (o2(i2), void 0)), Promise.resolve(c2())) : new Promise((e3, n2) => {
      a2 = t2.rejectOnCancel ? n2 : e3, s2 = c2, u2 && !i2 && (i2 = setTimeout(() => {
        r2 && o2(r2), i2 = void 0, e3(s2());
      }, u2)), r2 = setTimeout(() => {
        i2 && o2(i2), i2 = void 0, e3(c2());
      }, l2);
    });
  };
}
function ue(...e2) {
  let t2 = 0, r2, i2 = true, a2 = N, o2, s2, c2, l2, u2;
  !C(e2[0]) && typeof e2[0] == `object` ? { delay: s2, trailing: c2 = true, leading: l2 = true, rejectOnCancel: u2 = false } = e2[0] : [s2, c2 = true, l2 = true, u2 = false] = e2;
  let d2 = () => {
    r2 && (clearTimeout(r2), r2 = void 0, a2(), a2 = N);
  };
  return (e3) => {
    let f2 = n(s2), p2 = Date.now() - t2, m2 = () => o2 = e3();
    return d2(), f2 <= 0 ? (t2 = Date.now(), m2()) : (p2 > f2 ? (t2 = Date.now(), (l2 || !i2) && m2()) : c2 && (o2 = new Promise((e4, n2) => {
      a2 = u2 ? n2 : e4, r2 = setTimeout(() => {
        t2 = Date.now(), i2 = true, e4(m2()), d2();
      }, Math.max(0, f2 - p2));
    })), !l2 && !r2 && (r2 = setTimeout(() => i2 = true, f2)), i2 = false, o2);
  };
}
function de(e2 = ce, t2 = {}) {
  let { initialState: n2 = `active` } = t2, r2 = P(n2 === `active`);
  function i2() {
    r2.value = false;
  }
  function a2() {
    r2.value = true;
  }
  return { isActive: f(r2), pause: i2, resume: a2, eventFilter: (...t3) => {
    r2.value && e2(...t3);
  } };
}
function fe(e2, t2) {
  if (typeof e2 == `number`) return e2 + t2;
  let n2 = e2.match(/^-?\d+\.?\d*/)?.[0] || ``, r2 = e2.slice(n2.length), i2 = Number.parseFloat(n2) + t2;
  return Number.isNaN(i2) ? e2 : i2 + r2;
}
function I(e2) {
  return e2.endsWith(`rem`) ? Number.parseFloat(e2) * 16 : Number.parseFloat(e2);
}
function L(e2) {
  return Array.isArray(e2) ? e2 : [e2];
}
function pe(e2) {
  let t2 = /* @__PURE__ */ Object.create(null);
  return ((n2) => t2[n2] || (t2[n2] = e2(n2)));
}
var me = /-(\w)/g, he = pe((e2) => e2.replace(me, (e3, t2) => t2 ? t2.toUpperCase() : ``));
function R(e2) {
  return e2 || o();
}
function ge(e2) {
  if (!M) return e2;
  let t2 = 0, n2, r2, i2 = () => {
    --t2, r2 && t2 <= 0 && (r2.stop(), n2 = void 0, r2 = void 0);
  };
  return ((...a2) => (t2 += 1, r2 || (r2 = g(true), n2 = r2.run(() => e2(...a2))), k(i2), n2));
}
function _e(e2, t2) {
  if (typeof Symbol < `u`) {
    let n2 = { ...e2 };
    return Object.defineProperty(n2, Symbol.iterator, { enumerable: false, value() {
      let e3 = 0;
      return { next: () => ({ value: t2[e3++], done: e3 > t2.length }) };
    } }), n2;
  } else return Object.assign([...t2], e2);
}
function ve(e2) {
  return C(e2) ? h(new Proxy({}, { get(t2, n2, r2) {
    return s(Reflect.get(e2.value, n2, r2));
  }, set(t2, n2, r2) {
    return C(e2.value[n2]) && !C(r2) ? e2.value[n2].value = r2 : e2.value[n2] = r2, true;
  }, deleteProperty(t2, n2) {
    return Reflect.deleteProperty(e2.value, n2);
  }, has(t2, n2) {
    return Reflect.has(e2.value, n2);
  }, ownKeys() {
    return Object.keys(e2.value);
  }, getOwnPropertyDescriptor() {
    return { enumerable: true, configurable: true };
  } })) : h(e2);
}
function z(e2) {
  return ve(m(e2));
}
function ye(e2, ...t2) {
  let r2 = t2.flat(), i2 = r2[0];
  return z(() => Object.fromEntries(typeof i2 == `function` ? Object.entries(c(e2)).filter(([e3, t3]) => !i2(n(t3), e3)) : Object.entries(c(e2)).filter((e3) => !r2.includes(e3[0]))));
}
function be(e2, ...t2) {
  let r2 = t2.flat(), i2 = r2[0];
  return z(() => Object.fromEntries(typeof i2 == `function` ? Object.entries(c(e2)).filter(([e3, t3]) => i2(n(t3), e3)) : r2.map((t3) => [t3, P(e2, t3)])));
}
function xe(e2, t2 = 1e4) {
  return y((r2, i2) => {
    let a2 = n(e2), o2, s2 = () => setTimeout(() => {
      a2 = n(e2), i2();
    }, n(t2));
    return k(() => {
      clearTimeout(o2);
    }), { get() {
      return r2(), a2;
    }, set(e3) {
      a2 = e3, i2(), clearTimeout(o2), o2 = s2();
    } };
  });
}
function B(e2, t2 = 200, n2 = {}) {
  return F(le(t2, n2), e2);
}
function Se(e2, t2 = 200, r2 = {}) {
  let a2 = w(n(e2)), o2 = B(() => {
    a2.value = e2.value;
  }, t2, r2);
  return i(e2, () => o2()), f(a2);
}
function Ce(e2, t2 = 200, n2 = false, r2 = true, i2 = false) {
  return F(ue(t2, n2, r2, i2), e2);
}
function we(e2, t2 = 200, r2 = true, a2 = true) {
  if (t2 <= 0) return e2;
  let o2 = w(n(e2)), s2 = Ce(() => {
    o2.value = e2.value;
  }, t2, r2, a2);
  return i(e2, () => s2()), o2;
}
function Te(e2, t2, n2 = {}) {
  let { eventFilter: r2 = ce, ...a2 } = n2;
  return i(e2, F(r2, t2), a2);
}
function V(e2, t2, n2 = {}) {
  let { eventFilter: r2, initialState: i2 = `active`, ...a2 } = n2, { eventFilter: o2, pause: s2, resume: c2, isActive: l2 } = de(r2, { initialState: i2 });
  return { stop: Te(e2, t2, { ...a2, eventFilter: o2 }), pause: s2, resume: c2, isActive: l2 };
}
function Ee(e2, t2, ...[n2]) {
  let { flush: r2 = `sync`, deep: i2 = false, immediate: a2 = true, direction: o2 = `both`, transform: s2 = {} } = n2 || {}, c2 = [], l2 = `ltr` in s2 && s2.ltr || ((e3) => e3), u2 = `rtl` in s2 && s2.rtl || ((e3) => e3);
  return (o2 === `both` || o2 === `ltr`) && c2.push(V(e2, (e3) => {
    c2.forEach((e4) => e4.pause()), t2.value = l2(e3), c2.forEach((e4) => e4.resume());
  }, { flush: r2, deep: i2, immediate: a2 })), (o2 === `both` || o2 === `rtl`) && c2.push(V(t2, (t3) => {
    c2.forEach((e3) => e3.pause()), e2.value = u2(t3), c2.forEach((e3) => e3.resume());
  }, { flush: r2, deep: i2, immediate: a2 })), () => {
    c2.forEach((e3) => e3.stop());
  };
}
function De(e2, t2) {
  R(t2) && _(e2, t2);
}
function H(e2, t2 = true, n2) {
  R(n2) ? p(e2, n2) : t2 ? e2() : S(e2);
}
function U(e2, t2, r2 = {}) {
  let { immediate: i2 = true, immediateCallback: a2 = false } = r2, o2 = E(false), s2;
  function c2() {
    s2 && (s2 = (clearTimeout(s2), void 0));
  }
  function l2() {
    o2.value = false, c2();
  }
  function u2(...r3) {
    a2 && e2(), c2(), o2.value = true, s2 = setTimeout(() => {
      o2.value = false, s2 = void 0, e2(...r3);
    }, n(t2));
  }
  return i2 && (o2.value = true, M && u2()), k(l2), { isPending: f(o2), start: u2, stop: l2 };
}
function Oe(e2 = 1e3, t2 = {}) {
  let { controls: n2 = false, callback: r2 } = t2, i2 = U(r2 ?? N, e2, t2), a2 = m(() => !i2.isPending.value);
  return n2 ? { ready: a2, ...i2 } : a2;
}
function ke(e2, t2, n2) {
  return i(e2, t2, { ...n2, immediate: true });
}
function Ae(e2, t2, n2) {
  let r2;
  r2 = C(n2) ? { evaluating: n2 } : n2 || {};
  let { lazy: i2 = false, flush: a2 = `sync`, evaluating: o2 = void 0, shallow: s2 = true, onError: c2 = globalThis.reportError ?? N } = r2, u2 = E(!i2), d2 = s2 ? E(t2) : w(t2), f2 = 0;
  return l(async (t3) => {
    if (!u2.value) return;
    f2++;
    let n3 = f2, r3 = false;
    o2 && Promise.resolve().then(() => {
      o2.value = true;
    });
    try {
      let i3 = await e2((e3) => {
        t3(() => {
          o2 && (o2.value = false), r3 || e3();
        });
      });
      n3 === f2 && (d2.value = i3);
    } catch (e3) {
      c2(e3);
    } finally {
      o2 && n3 === f2 && (o2.value = false), r3 = true;
    }
  }, { flush: a2 }), i2 ? m(() => (u2.value = true, d2.value)) : d2;
}
function je(e2 = {}) {
  let { inheritAttrs: t2 = true, name: n2 = `ReusableTemplate` } = e2, r2 = E(), i2 = v({ name: `${n2}.define`, setup(e3, { slots: t3 }) {
    return () => {
      r2.value = t3.default;
    };
  } }), a2 = v({ inheritAttrs: t2, name: `${n2}.reuse`, props: e2.props, setup(n3, { attrs: i3, slots: a3 }) {
    return () => {
      if (!r2.value) throw Error(`[VueUse] Failed to find the definition of reusable template`);
      let o2 = r2.value?.call(r2, { ...e2.props == null ? Me(i3) : n3, $slots: a3 });
      return t2 && o2?.length === 1 ? o2[0] : o2;
    };
  } });
  return _e({ define: i2, reuse: a2 }, [i2, a2]);
}
function Me(e2) {
  let t2 = {};
  for (let n2 in e2) t2[he(n2)] = e2[n2];
  return t2;
}
var W = M ? window : void 0;
M && window.document, M && window.navigator, M && window.location;
function G(e2) {
  let t2 = n(e2);
  return t2?.$el ?? t2;
}
function K(...e2) {
  let t2 = (e3, t3, n2, r3) => (e3.addEventListener(t3, n2, r3), () => e3.removeEventListener(t3, n2, r3)), r2 = m(() => {
    let t3 = L(n(e2[0])).filter((e3) => e3 != null);
    return t3.every((e3) => typeof e3 != `string`) ? t3 : void 0;
  });
  return ke(() => [r2.value?.map((e3) => G(e3)) ?? [W].filter((e3) => e3 != null), L(n(r2.value ? e2[1] : e2[0])), L(s(r2.value ? e2[2] : e2[1])), n(r2.value ? e2[3] : e2[2])], ([e3, n2, r3, i2], a2, o2) => {
    if (!e3?.length || !n2?.length || !r3?.length) return;
    let s2 = ae(i2) ? { ...i2 } : i2, c2 = e3.flatMap((e4) => n2.flatMap((n3) => r3.map((r4) => t2(e4, n3, r4, s2))));
    o2(() => {
      c2.forEach((e4) => e4());
    });
  }, { flush: `post` });
}
function Ne() {
  let e2 = E(false), t2 = o();
  return t2 && p(() => {
    e2.value = true;
  }, t2), e2;
}
function q(e2) {
  let t2 = Ne();
  return m(() => (t2.value, !!e2()));
}
function Pe(e2, t2, r2 = {}) {
  let { window: a2 = W, ...o2 } = r2, s2, c2 = q(() => a2 && `MutationObserver` in a2), l2 = () => {
    s2 && (s2 = (s2.disconnect(), void 0));
  }, u2 = i(m(() => {
    let t3 = L(n(e2)).map(G).filter(re);
    return new Set(t3);
  }), (e3) => {
    l2(), c2.value && e3.size && (s2 = new MutationObserver(t2), e3.forEach((e4) => s2.observe(e4, o2)));
  }, { immediate: true, flush: `post` }), d2 = () => s2?.takeRecords(), f2 = () => {
    u2(), l2();
  };
  return k(f2), { isSupported: c2, stop: f2, takeRecords: d2 };
}
function Fe(e2, t2, n2 = {}) {
  let { window: r2 = W, document: i2 = r2?.document, flush: a2 = `sync` } = n2;
  if (!r2 || !i2) return N;
  let o2, s2 = (e3) => {
    o2?.(), o2 = e3;
  }, c2 = l(() => {
    let n3 = G(e2);
    if (n3) {
      let { stop: e3 } = Pe(i2, (e4) => {
        e4.map((e5) => [...e5.removedNodes]).flat().some((e5) => e5 === n3 || e5.contains(n3)) && t2(e4);
      }, { window: r2, childList: true, subtree: true });
      s2(e3);
    }
  }, { flush: a2 }), u2 = () => {
    c2(), s2();
  };
  return k(u2), u2;
}
function Ie(e2) {
  return typeof e2 == `function` ? e2 : typeof e2 == `string` ? (t2) => t2.key === e2 : Array.isArray(e2) ? (t2) => e2.includes(t2.key) : () => true;
}
function Le(...e2) {
  let t2, r2, i2 = {};
  e2.length === 3 ? (t2 = e2[0], r2 = e2[1], i2 = e2[2]) : e2.length === 2 ? typeof e2[1] == `object` ? (t2 = true, r2 = e2[0], i2 = e2[1]) : (t2 = e2[0], r2 = e2[1]) : (t2 = true, r2 = e2[0]);
  let { target: a2 = W, eventName: o2 = `keydown`, passive: s2 = false, dedupe: c2 = false } = i2, l2 = Ie(t2);
  return K(a2, o2, (e3) => {
    e3.repeat && n(c2) || l2(e3) && r2(e3);
  }, s2);
}
function Re(e2 = {}) {
  let { window: t2 = W, deep: n2 = true, triggerOnRemoval: r2 = false } = e2, i2 = e2.document ?? t2?.document, a2 = () => {
    let e3 = i2?.activeElement;
    if (n2) for (var t3; e3?.shadowRoot; ) e3 = e3 == null || (t3 = e3.shadowRoot) == null ? void 0 : t3.activeElement;
    return e3;
  }, o2 = E(), s2 = () => {
    o2.value = a2();
  };
  if (t2) {
    let e3 = { capture: true, passive: true };
    K(t2, `blur`, (e4) => {
      e4.relatedTarget === null && s2();
    }, e3), K(t2, `focus`, s2, e3);
  }
  return r2 && Fe(o2, s2, { document: i2 }), s2(), o2;
}
function ze(e2, t2 = {}) {
  let { immediate: r2 = true, fpsLimit: i2 = null, window: a2 = W, once: o2 = false } = t2, s2 = E(false), c2 = m(() => {
    let e3 = n(i2);
    return e3 ? 1e3 / e3 : null;
  }), l2 = 0, u2 = null;
  function d2(t3) {
    if (!s2.value || !a2) return;
    l2 || (l2 = t3);
    let n2 = t3 - l2;
    if (c2.value && n2 < c2.value) {
      u2 = a2.requestAnimationFrame(d2);
      return;
    }
    if (l2 = t3, e2({ delta: n2, timestamp: t3 }), o2) {
      s2.value = false, u2 = null;
      return;
    }
    u2 = a2.requestAnimationFrame(d2);
  }
  function p2() {
    !s2.value && a2 && (s2.value = true, l2 = 0, u2 = a2.requestAnimationFrame(d2));
  }
  function h2() {
    s2.value = false, u2 != null && a2 && (a2.cancelAnimationFrame(u2), u2 = null);
  }
  return r2 && p2(), k(h2), { isActive: f(s2), pause: h2, resume: p2 };
}
var Be = /* @__PURE__ */ Symbol(`vueuse-ssr-width`);
function Ve() {
  let e2 = r() ? te(Be, null) : null;
  return typeof e2 == `number` ? e2 : void 0;
}
function J(e2, t2 = {}) {
  let { window: r2 = W, ssrWidth: i2 = Ve() } = t2, a2 = q(() => r2 && `matchMedia` in r2 && typeof r2.matchMedia == `function`), o2 = E(typeof i2 == `number`), s2 = E(), c2 = E(false);
  return l(() => {
    if (o2.value) {
      o2.value = !a2.value, c2.value = n(e2).split(`,`).some((e3) => {
        let t3 = e3.includes(`not all`), n2 = e3.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r3 = e3.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a3 = !!(n2 || r3);
        return n2 && a3 && (a3 = i2 >= I(n2[1])), r3 && a3 && (a3 = i2 <= I(r3[1])), t3 ? !a3 : a3;
      });
      return;
    }
    a2.value && (s2.value = r2.matchMedia(n(e2)), c2.value = s2.value.matches);
  }), K(s2, `change`, (e3) => {
    c2.value = e3.matches;
  }, { passive: true }), m(() => c2.value);
}
var He = { sm: 640, md: 768, lg: 1024, xl: 1280, "2xl": 1536 };
function Ue(e2, t2 = {}) {
  function r2(t3, r3) {
    let i3 = n(e2[n(t3)]);
    return r3 != null && (i3 = fe(i3, r3)), typeof i3 == `number` && (i3 = `${i3}px`), i3;
  }
  let { window: i2 = W, strategy: a2 = `min-width`, ssrWidth: o2 = Ve() } = t2, s2 = typeof o2 == `number`, c2 = s2 ? E(false) : { value: true };
  s2 && H(() => c2.value = !!i2);
  function l2(e3, t3) {
    return !c2.value && s2 ? e3 === `min` ? o2 >= I(t3) : o2 <= I(t3) : i2 ? i2.matchMedia(`(${e3}-width: ${t3})`).matches : false;
  }
  let u2 = (e3) => J(() => `(min-width: ${r2(e3)})`, t2), d2 = (e3) => J(() => `(max-width: ${r2(e3)})`, t2), f2 = Object.keys(e2).reduce((e3, t3) => (Object.defineProperty(e3, t3, { get: () => a2 === `min-width` ? u2(t3) : d2(t3), enumerable: true, configurable: true }), e3), {});
  function p2() {
    let t3 = Object.keys(e2).map((e3) => [e3, f2[e3], I(r2(e3))]).sort((e3, t4) => e3[2] - t4[2]);
    return m(() => t3.filter(([, e3]) => e3.value).map(([e3]) => e3));
  }
  return Object.assign(f2, { greaterOrEqual: u2, smallerOrEqual: d2, greater(e3) {
    return J(() => `(min-width: ${r2(e3, 0.1)})`, t2);
  }, smaller(e3) {
    return J(() => `(max-width: ${r2(e3, -0.1)})`, t2);
  }, between(e3, n2) {
    return J(() => `(min-width: ${r2(e3)}) and (max-width: ${r2(n2, -0.1)})`, t2);
  }, isGreater(e3) {
    return l2(`min`, r2(e3, 0.1));
  }, isGreaterOrEqual(e3) {
    return l2(`min`, r2(e3));
  }, isSmaller(e3) {
    return l2(`max`, r2(e3, -0.1));
  }, isSmallerOrEqual(e3) {
    return l2(`max`, r2(e3));
  }, isInBetween(e3, t3) {
    return l2(`min`, r2(e3)) && l2(`max`, r2(t3, -0.1));
  }, current: p2, active() {
    let e3 = p2();
    return m(() => e3.value.length === 0 ? `` : e3.value.at(a2 === `min-width` ? -1 : 0));
  } });
}
function We(e2) {
  return JSON.parse(JSON.stringify(e2));
}
var Y = typeof globalThis < `u` ? globalThis : typeof window < `u` ? window : t === void 0 ? typeof self < `u` ? self : {} : t, X = `__vueuse_ssr_handlers__`, Ge = Ke();
function Ke() {
  return X in Y || (Y[X] = Y[X] || {}), Y[X];
}
function qe(e2, t2) {
  return Ge[e2] || t2;
}
function Je(e2) {
  return J(`(prefers-color-scheme: dark)`, e2);
}
function Ye(e2) {
  return e2 == null ? `any` : e2 instanceof Set ? `set` : e2 instanceof Map ? `map` : e2 instanceof Date ? `date` : typeof e2 == `boolean` ? `boolean` : typeof e2 == `string` ? `string` : typeof e2 == `object` ? `object` : Number.isNaN(e2) ? `any` : `number`;
}
var Xe = { boolean: { read: (e2) => e2 === `true`, write: (e2) => String(e2) }, object: { read: (e2) => JSON.parse(e2), write: (e2) => JSON.stringify(e2) }, number: { read: (e2) => Number.parseFloat(e2), write: (e2) => String(e2) }, any: { read: (e2) => e2, write: (e2) => String(e2) }, string: { read: (e2) => e2, write: (e2) => String(e2) }, map: { read: (e2) => new Map(JSON.parse(e2)), write: (e2) => JSON.stringify(Array.from(e2.entries())) }, set: { read: (e2) => new Set(JSON.parse(e2)), write: (e2) => JSON.stringify(Array.from(e2)) }, date: { read: (e2) => new Date(e2), write: (e2) => e2.toISOString() } }, Ze = `vueuse-storage`;
function Qe(e2, t2, r2, a2 = {}) {
  let { flush: o2 = `pre`, deep: s2 = true, listenToStorageChanges: c2 = true, writeDefaults: l2 = true, mergeDefaults: u2 = false, shallow: d2, window: f2 = W, eventFilter: p2, onError: h2 = (e3) => {
    console.error(e3);
  }, initOnMounted: g2 } = a2, _2 = (d2 ? E : w)(typeof t2 == `function` ? t2() : t2), v2 = m(() => n(e2));
  if (!r2) try {
    r2 = qe(`getDefaultStorage`, () => W?.localStorage)();
  } catch (e3) {
    h2(e3);
  }
  if (!r2) return _2;
  let y2 = n(t2), b2 = Ye(y2), x2 = a2.serializer ?? Xe[b2], { pause: C2, resume: T2 } = V(_2, (e3) => k2(e3), { flush: o2, deep: s2, eventFilter: p2 });
  i(v2, () => A2(), { flush: o2 });
  let D2 = false;
  f2 && c2 && (r2 instanceof Storage ? K(f2, `storage`, (e3) => {
    g2 && !D2 || A2(e3);
  }, { passive: true }) : K(f2, Ze, (e3) => {
    g2 && !D2 || j2(e3);
  })), g2 ? H(() => {
    D2 = true, A2();
  }) : A2();
  function O2(e3, t3) {
    if (f2) {
      let n2 = { key: v2.value, oldValue: e3, newValue: t3, storageArea: r2 };
      f2.dispatchEvent(r2 instanceof Storage ? new StorageEvent(`storage`, n2) : new CustomEvent(Ze, { detail: n2 }));
    }
  }
  function k2(e3) {
    try {
      let t3 = r2.getItem(v2.value);
      if (e3 == null) O2(t3, null), r2.removeItem(v2.value);
      else {
        let n2 = x2.write(e3);
        t3 !== n2 && (r2.setItem(v2.value, n2), O2(t3, n2));
      }
    } catch (e4) {
      h2(e4);
    }
  }
  function ee2(e3) {
    let t3 = e3 ? e3.newValue : r2.getItem(v2.value);
    if (t3 == null) return l2 && y2 != null && r2.setItem(v2.value, x2.write(y2)), y2;
    if (!e3 && u2) {
      let e4 = x2.read(t3);
      return typeof u2 == `function` ? u2(e4, y2) : b2 === `object` && !Array.isArray(e4) ? { ...y2, ...e4 } : e4;
    } else if (typeof t3 != `string`) return t3;
    else return x2.read(t3);
  }
  function A2(e3) {
    if (!(e3 && e3.storageArea !== r2)) {
      if (e3 && e3.key == null) {
        _2.value = y2;
        return;
      }
      if (!(e3 && e3.key !== v2.value)) {
        C2();
        try {
          let t3 = x2.write(_2.value);
          (e3 === void 0 || e3?.newValue !== t3) && (_2.value = ee2(e3));
        } catch (e4) {
          h2(e4);
        } finally {
          e3 ? S(T2) : T2();
        }
      }
    }
  }
  function j2(e3) {
    A2(e3.detail);
  }
  return _2;
}
var $e = `*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;
function Z(e2 = {}) {
  let { selector: t2 = `html`, attribute: n2 = `class`, initialValue: r2 = `auto`, window: a2 = W, storage: o2, storageKey: s2 = `vueuse-color-scheme`, listenToStorageChanges: c2 = true, storageRef: l2, emitAuto: u2, disableTransition: d2 = true } = e2, f2 = { auto: ``, light: `light`, dark: `dark`, ...e2.modes || {} }, p2 = Je({ window: a2 }), h2 = m(() => p2.value ? `dark` : `light`), g2 = l2 || (s2 == null ? P(r2) : Qe(s2, r2, o2, { window: a2, listenToStorageChanges: c2 })), _2 = m(() => g2.value === `auto` ? h2.value : g2.value), v2 = qe(`updateHTMLAttrs`, (e3, t3, n3) => {
    let r3 = typeof e3 == `string` ? a2?.document.querySelector(e3) : G(e3);
    if (!r3) return;
    let i2 = /* @__PURE__ */ new Set(), o3 = /* @__PURE__ */ new Set(), s3 = null;
    if (t3 === `class`) {
      let e4 = n3.split(/\s/g);
      Object.values(f2).flatMap((e5) => (e5 || ``).split(/\s/g)).filter(Boolean).forEach((t4) => {
        e4.includes(t4) ? i2.add(t4) : o3.add(t4);
      });
    } else s3 = { key: t3, value: n3 };
    if (i2.size === 0 && o3.size === 0 && s3 === null) return;
    let c3;
    d2 && (c3 = a2.document.createElement(`style`), c3.appendChild(document.createTextNode($e)), a2.document.head.appendChild(c3));
    for (let e4 of i2) r3.classList.add(e4);
    for (let e4 of o3) r3.classList.remove(e4);
    s3 && r3.setAttribute(s3.key, s3.value), d2 && (a2.getComputedStyle(c3).opacity, document.head.removeChild(c3));
  });
  function y2(e3) {
    v2(t2, n2, f2[e3] ?? e3);
  }
  function b2(t3) {
    e2.onChanged ? e2.onChanged(t3, y2) : y2(t3);
  }
  i(_2, b2, { flush: `post`, immediate: true }), H(() => b2(_2.value));
  let x2 = m({ get() {
    return u2 ? g2.value : _2.value;
  }, set(e3) {
    g2.value = e3;
  } });
  return Object.assign(x2, { store: g2, system: h2, state: _2 });
}
function et(e2) {
  let t2 = o(), n2 = O(() => null, () => e2 ? G(e2) : t2.proxy.$el);
  return x(n2.trigger), p(n2.trigger), n2;
}
function tt(e2 = {}) {
  let { valueDark: t2 = `dark`, valueLight: n2 = `` } = e2, r2 = Z({ ...e2, onChanged: (t3, n3) => {
    var r3;
    e2.onChanged ? (r3 = e2.onChanged) == null || r3.call(e2, t3 === `dark`, n3, t3) : n3(t3);
  }, modes: { dark: t2, light: n2 } }), i2 = m(() => r2.system.value);
  return m({ get() {
    return r2.value === `dark`;
  }, set(e3) {
    let t3 = e3 ? `dark` : `light`;
    i2.value === t3 ? r2.value = `auto` : r2.value = t3;
  } });
}
function Q(e2, t2, r2 = {}) {
  let { window: a2 = W, ...o2 } = r2, s2, c2 = q(() => a2 && `ResizeObserver` in a2), l2 = () => {
    s2 && (s2 = (s2.disconnect(), void 0));
  }, u2 = i(m(() => {
    let t3 = n(e2);
    return Array.isArray(t3) ? t3.map((e3) => G(e3)) : [G(t3)];
  }), (e3) => {
    if (l2(), c2.value && a2) {
      s2 = new ResizeObserver(t2);
      for (let t3 of e3) t3 && s2.observe(t3, o2);
    }
  }, { immediate: true, flush: `post` }), d2 = () => {
    l2(), u2();
  };
  return k(d2), { isSupported: c2, stop: d2 };
}
var $ = /* @__PURE__ */ new Map();
function nt(e2) {
  let t2 = d();
  function n2(n3) {
    var r3;
    let a3 = $.get(e2) || /* @__PURE__ */ new Set();
    a3.add(n3), $.set(e2, a3);
    let o3 = () => i2(n3);
    return t2 == null || (r3 = t2.cleanups) == null || r3.push(o3), o3;
  }
  function r2(e3) {
    function t3(...n3) {
      i2(t3), e3(...n3);
    }
    return n2(t3);
  }
  function i2(t3) {
    let n3 = $.get(e2);
    n3 && (n3.delete(t3), n3.size || a2());
  }
  function a2() {
    $.delete(e2);
  }
  function o2(t3, n3) {
    var r3;
    (r3 = $.get(e2)) == null || r3.forEach((e3) => e3(t3, n3));
  }
  return { on: n2, once: r2, off: i2, emit: o2, reset: a2 };
}
var rt = `focusin`, it = `focusout`, at = `:focus-within`;
function ot(e2, t2 = {}) {
  let { window: n2 = W } = t2, r2 = m(() => G(e2)), i2 = E(false), a2 = m(() => i2.value), o2 = Re(t2);
  if (!n2 || !o2.value) return { focused: a2 };
  let s2 = { passive: true };
  return K(r2, rt, () => i2.value = true, s2), K(r2, it, () => {
    var e3, t3;
    return i2.value = ((e3 = r2.value) == null || (t3 = e3.matches) == null ? void 0 : t3.call(e3, at)) ?? false;
  }, s2), { focused: a2 };
}
var st = { page: (e2) => [e2.pageX, e2.pageY], client: (e2) => [e2.clientX, e2.clientY], screen: (e2) => [e2.screenX, e2.screenY], movement: (e2) => e2 instanceof MouseEvent ? [e2.movementX, e2.movementY] : null };
function ct(e2 = {}) {
  let { type: t2 = `page`, touch: n2 = true, resetOnTouchEnds: r2 = false, initialValue: i2 = { x: 0, y: 0 }, window: a2 = W, target: o2 = a2, scroll: s2 = true, eventFilter: c2 } = e2, l2 = null, u2 = 0, d2 = 0, f2 = E(i2.x), p2 = E(i2.y), m2 = E(null), h2 = typeof t2 == `function` ? t2 : st[t2], g2 = (e3) => {
    let t3 = h2(e3);
    l2 = e3, t3 && ([f2.value, p2.value] = t3, m2.value = `mouse`), a2 && (u2 = a2.scrollX, d2 = a2.scrollY);
  }, _2 = (e3) => {
    if (e3.touches.length > 0) {
      let t3 = h2(e3.touches[0]);
      t3 && ([f2.value, p2.value] = t3, m2.value = `touch`);
    }
  }, v2 = () => {
    if (!l2 || !a2) return;
    let e3 = h2(l2);
    l2 instanceof MouseEvent && e3 && (f2.value = e3[0] + a2.scrollX - u2, p2.value = e3[1] + a2.scrollY - d2);
  }, y2 = () => {
    f2.value = i2.x, p2.value = i2.y;
  }, b2 = c2 ? (e3) => c2(() => g2(e3), {}) : (e3) => g2(e3), x2 = c2 ? (e3) => c2(() => _2(e3), {}) : (e3) => _2(e3), S2 = c2 ? () => c2(() => v2(), {}) : () => v2();
  if (o2) {
    let e3 = { passive: true };
    K(o2, [`mousemove`, `dragover`], b2, e3), n2 && t2 !== `movement` && (K(o2, [`touchstart`, `touchmove`], x2, e3), r2 && K(o2, `touchend`, y2, e3)), s2 && t2 === `page` && K(a2, `scroll`, S2, e3);
  }
  return { x: f2, y: p2, sourceType: m2 };
}
function lt(e2, t2 = {}) {
  let { windowResize: n2 = true, windowScroll: r2 = true, handleOutside: a2 = true, window: o2 = W } = t2, s2 = t2.type || `page`, { x: c2, y: l2, sourceType: u2 } = ct(t2), d2 = E(e2 ?? o2?.document.body), f2 = E(0), p2 = E(0), m2 = E(0), h2 = E(0), g2 = E(0), _2 = E(0), v2 = E(true);
  function y2() {
    if (!o2) return;
    let e3 = G(d2);
    if (!(!e3 || !(e3 instanceof Element))) for (let t3 of e3.getClientRects()) {
      let { left: e4, top: n3, width: r3, height: i2 } = t3;
      m2.value = e4 + (s2 === `page` ? o2.pageXOffset : 0), h2.value = n3 + (s2 === `page` ? o2.pageYOffset : 0), g2.value = i2, _2.value = r3;
      let u3 = c2.value - m2.value, d3 = l2.value - h2.value;
      if (v2.value = r3 === 0 || i2 === 0 || u3 < 0 || d3 < 0 || u3 > r3 || d3 > i2, (a2 || !v2.value) && (f2.value = u3, p2.value = d3), !v2.value) break;
    }
  }
  let b2 = [];
  function x2() {
    b2.forEach((e3) => e3()), b2.length = 0;
  }
  if (H(() => {
    y2();
  }), o2) {
    let { stop: e3 } = Q(d2, y2), { stop: t3 } = Pe(d2, y2, { attributeFilter: [`style`, `class`] }), a3 = i([d2, c2, l2], y2);
    b2.push(e3, t3, a3), K(document, `mouseleave`, () => v2.value = true, { passive: true }), r2 && b2.push(K(`scroll`, y2, { capture: true, passive: true })), n2 && b2.push(K(`resize`, y2, { passive: true }));
  }
  return { x: c2, y: l2, sourceType: u2, elementX: f2, elementY: p2, elementPositionX: m2, elementPositionY: h2, elementHeight: g2, elementWidth: _2, isOutside: v2, stop: x2 };
}
function ut(e2 = et()) {
  let t2 = E(), r2 = () => {
    let n2 = G(e2);
    n2 && (t2.value = n2.parentElement);
  };
  return H(r2), i(() => n(e2), r2), t2;
}
function dt(e2, t2, n2, r2 = {}) {
  var a2, s2;
  let { clone: c2 = false, passive: l2 = false, eventName: u2, deep: d2 = false, defaultValue: f2, shouldEmit: p2 } = r2, h2 = o(), g2 = n2 || h2?.emit || (h2 == null || (a2 = h2.$emit) == null ? void 0 : a2.bind(h2)) || (h2 == null || (s2 = h2.proxy) == null || (s2 = s2.$emit) == null ? void 0 : s2.bind(h2?.proxy)), _2 = u2;
  t2 || (t2 = `modelValue`), _2 || (_2 = `update:${t2.toString()}`);
  let v2 = (e3) => c2 ? typeof c2 == `function` ? c2(e3) : We(e3) : e3, y2 = () => ne(e2[t2]) ? v2(e2[t2]) : f2, b2 = (e3) => {
    p2 ? p2(e3) && g2(_2, e3) : g2(_2, e3);
  };
  if (l2) {
    let n3 = w(y2()), r3 = false;
    return i(() => e2[t2], (e3) => {
      r3 || (r3 = true, n3.value = v2(e3), S(() => r3 = false));
    }), i(n3, (n4) => {
      !r3 && (n4 !== e2[t2] || d2) && b2(n4);
    }, { deep: d2 }), n3;
  } else return m({ get() {
    return y2();
  }, set(e3) {
    b2(e3);
  } });
}
export {
  be as A,
  A as C,
  de as D,
  oe as E,
  De as F,
  k as I,
  B as L,
  Se as M,
  we as N,
  z as O,
  Ee as P,
  Oe as R,
  ee as S,
  M as T,
  ze as _,
  Le as a,
  dt as b,
  Ue as c,
  nt as d,
  K as f,
  ut as g,
  lt as h,
  W as i,
  xe as j,
  ye as k,
  Z as l,
  Ne as m,
  Ae as n,
  G as o,
  ot as p,
  je as r,
  Re as s,
  He as t,
  tt as u,
  Q as v,
  ge as w,
  D as x,
  Qe as y,
  U as z
};
