const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendMail-BZn2VeiJ.js","assets/index.esm-YCBPJhFu.js","assets/index-BHtaHxM4.css","assets/SendMail-DCXwsSgv.css","assets/Admin-BC2FD85r.js","assets/Admin-DtVsRG5L.css","assets/Mail-QoAjapmb.js","assets/Mail-ZAkRaohU.css"])))=>i.map(i=>d[i]);
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
let Sm, tz, KX, xt, de, Ie, Me, yn, Qt, Pn, Ht, ht, so, it, Jt, gt, T, $, ve, O, Fm, Zs, Ae, No, GX, UX, gd, Yr, mt, tc, GL, YL, kn, d_, wr, kt, OY, Db, $9, Pa, Sd, KY, $a, UY, eX, D3, eo, yl, Z_, ag, ta, Zt, BG, Po, pJ, JG, qi, Bt, fn, Kj, Be, ki, Ta, tt, q9, qO, YO, oc, kd, U8, Qs, u2, c2, Fi, nc, Km, wt, Om, Lu, DI, zm, ol, d2, ok, Da, vd, qX, pe, W, A, Fe, g, ym, ma, Mo, L, mn, Ct, rn, D, In, Pt, Te, sn, at, Dt, lt, ii, $e, V;
let __tla = (async () => {
  (function() {
    const t = document.createElement("link").relList;
    if (t && t.supports && t.supports("modulepreload")) return;
    for (const o of document.querySelectorAll('link[rel="modulepreload"]')) r(o);
    new MutationObserver((o) => {
      for (const i of o) if (i.type === "childList") for (const a of i.addedNodes) a.tagName === "LINK" && a.rel === "modulepreload" && r(a);
    }).observe(document, {
      childList: true,
      subtree: true
    });
    function n(o) {
      const i = {};
      return o.integrity && (i.integrity = o.integrity), o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy), o.crossOrigin === "use-credentials" ? i.credentials = "include" : o.crossOrigin === "anonymous" ? i.credentials = "omit" : i.credentials = "same-origin", i;
    }
    function r(o) {
      if (o.ep) return;
      o.ep = true;
      const i = n(o);
      fetch(o.href, i);
    }
  })();
  function Ep(e) {
    const t = /* @__PURE__ */ Object.create(null);
    for (const n of e.split(",")) t[n] = 1;
    return (n) => n in t;
  }
  const jt = {}, Ja = [], To = () => {
  }, o1 = () => false, Hu = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Tp = (e) => e.startsWith("onUpdate:"), Tn = Object.assign, Pp = (e, t) => {
    const n = e.indexOf(t);
    n > -1 && e.splice(n, 1);
  }, $k = Object.prototype.hasOwnProperty, Yt = (e, t) => $k.call(e, t), pt = Array.isArray, Za = (e) => Hs(e) === "[object Map]", i1 = (e) => Hs(e) === "[object Set]", gg = (e) => Hs(e) === "[object Date]", yt = (e) => typeof e == "function", bn = (e) => typeof e == "string", oo = (e) => typeof e == "symbol", Ut = (e) => e !== null && typeof e == "object", a1 = (e) => (Ut(e) || yt(e)) && yt(e.then) && yt(e.catch), l1 = Object.prototype.toString, Hs = (e) => l1.call(e), zk = (e) => Hs(e).slice(8, -1), s1 = (e) => Hs(e) === "[object Object]", ju = (e) => bn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, is = Ep(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), Wu = (e) => {
    const t = /* @__PURE__ */ Object.create(null);
    return ((n) => t[n] || (t[n] = e(n)));
  }, Ok = /-\w/g, Pr = Wu((e) => e.replace(Ok, (t) => t.slice(1).toUpperCase())), Ik = /\B([A-Z])/g, li = Wu((e) => e.replace(Ik, "-$1").toLowerCase()), Uu = Wu((e) => e.charAt(0).toUpperCase() + e.slice(1)), jd = Wu((e) => e ? `on${Uu(e)}` : ""), pr = (e, t) => !Object.is(e, t), Wd = (e, ...t) => {
    for (let n = 0; n < e.length; n++) e[n](...t);
  }, c1 = (e, t, n, r = false) => {
    Object.defineProperty(e, t, {
      configurable: true,
      enumerable: false,
      writable: r,
      value: n
    });
  }, Fk = (e) => {
    const t = parseFloat(e);
    return isNaN(t) ? e : t;
  }, Mk = (e) => {
    const t = bn(e) ? Number(e) : NaN;
    return isNaN(t) ? e : t;
  };
  let vg;
  const Vu = () => vg || (vg = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
  function Dp(e) {
    if (pt(e)) {
      const t = {};
      for (let n = 0; n < e.length; n++) {
        const r = e[n], o = bn(r) ? Hk(r) : Dp(r);
        if (o) for (const i in o) t[i] = o[i];
      }
      return t;
    } else if (bn(e) || Ut(e)) return e;
  }
  const Lk = /;(?![^(]*\))/g, Bk = /:([^]+)/, Nk = /\/\*[^]*?\*\//g;
  function Hk(e) {
    const t = {};
    return e.replace(Nk, "").split(Lk).forEach((n) => {
      if (n) {
        const r = n.split(Bk);
        r.length > 1 && (t[r[0].trim()] = r[1].trim());
      }
    }), t;
  }
  function ti(e) {
    let t = "";
    if (bn(e)) t = e;
    else if (pt(e)) for (let n = 0; n < e.length; n++) {
      const r = ti(e[n]);
      r && (t += r + " ");
    }
    else if (Ut(e)) for (const n in e) e[n] && (t += n + " ");
    return t.trim();
  }
  const jk = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Wk = Ep(jk);
  function u1(e) {
    return !!e || e === "";
  }
  function Uk(e, t) {
    if (e.length !== t.length) return false;
    let n = true;
    for (let r = 0; n && r < e.length; r++) n = $p(e[r], t[r]);
    return n;
  }
  function $p(e, t) {
    if (e === t) return true;
    let n = gg(e), r = gg(t);
    if (n || r) return n && r ? e.getTime() === t.getTime() : false;
    if (n = oo(e), r = oo(t), n || r) return e === t;
    if (n = pt(e), r = pt(t), n || r) return n && r ? Uk(e, t) : false;
    if (n = Ut(e), r = Ut(t), n || r) {
      if (!n || !r) return false;
      const o = Object.keys(e).length, i = Object.keys(t).length;
      if (o !== i) return false;
      for (const a in e) {
        const l = e.hasOwnProperty(a), s = t.hasOwnProperty(a);
        if (l && !s || !l && s || !$p(e[a], t[a])) return false;
      }
    }
    return String(e) === String(t);
  }
  let d1, f1, Ud;
  d1 = (e) => !!(e && e.__v_isRef === true);
  ve = (e) => bn(e) ? e : e == null ? "" : pt(e) || Ut(e) && (e.toString === l1 || !yt(e.toString)) ? d1(e) ? ve(e.value) : JSON.stringify(e, f1, 2) : String(e);
  f1 = (e, t) => d1(t) ? f1(e, t.value) : Za(t) ? {
    [`Map(${t.size})`]: [
      ...t.entries()
    ].reduce((n, [r, o], i) => (n[Ud(r, i) + " =>"] = o, n), {})
  } : i1(t) ? {
    [`Set(${t.size})`]: [
      ...t.values()
    ].map((n) => Ud(n))
  } : oo(t) ? Ud(t) : Ut(t) && !pt(t) && !s1(t) ? String(t) : t;
  Ud = (e, t = "") => {
    var n;
    return oo(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e;
  };
  let Zn;
  class h1 {
    constructor(t = false) {
      this.detached = t, this._active = true, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = false, this.__v_skip = true, this.parent = Zn, !t && Zn && (this.index = (Zn.scopes || (Zn.scopes = [])).push(this) - 1);
    }
    get active() {
      return this._active;
    }
    pause() {
      if (this._active) {
        this._isPaused = true;
        let t, n;
        if (this.scopes) for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].pause();
        for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].pause();
      }
    }
    resume() {
      if (this._active && this._isPaused) {
        this._isPaused = false;
        let t, n;
        if (this.scopes) for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].resume();
        for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].resume();
      }
    }
    run(t) {
      if (this._active) {
        const n = Zn;
        try {
          return Zn = this, t();
        } finally {
          Zn = n;
        }
      }
    }
    on() {
      ++this._on === 1 && (this.prevScope = Zn, Zn = this);
    }
    off() {
      this._on > 0 && --this._on === 0 && (Zn = this.prevScope, this.prevScope = void 0);
    }
    stop(t) {
      if (this._active) {
        this._active = false;
        let n, r;
        for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop();
        for (this.effects.length = 0, n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n]();
        if (this.cleanups.length = 0, this.scopes) {
          for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].stop(true);
          this.scopes.length = 0;
        }
        if (!this.detached && this.parent && !t) {
          const o = this.parent.scopes.pop();
          o && o !== this && (this.parent.scopes[this.index] = o, o.index = this.index);
        }
        this.parent = void 0;
      }
    }
  }
  function p1(e) {
    return new h1(e);
  }
  function m1() {
    return Zn;
  }
  function ih(e, t = false) {
    Zn && Zn.cleanups.push(e);
  }
  let ln;
  const Vd = /* @__PURE__ */ new WeakSet();
  class g1 {
    constructor(t) {
      this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, Zn && Zn.active && Zn.effects.push(this);
    }
    pause() {
      this.flags |= 64;
    }
    resume() {
      this.flags & 64 && (this.flags &= -65, Vd.has(this) && (Vd.delete(this), this.trigger()));
    }
    notify() {
      this.flags & 2 && !(this.flags & 32) || this.flags & 8 || b1(this);
    }
    run() {
      if (!(this.flags & 1)) return this.fn();
      this.flags |= 2, bg(this), y1(this);
      const t = ln, n = to;
      ln = this, to = true;
      try {
        return this.fn();
      } finally {
        x1(this), ln = t, to = n, this.flags &= -3;
      }
    }
    stop() {
      if (this.flags & 1) {
        for (let t = this.deps; t; t = t.nextDep) Ip(t);
        this.deps = this.depsTail = void 0, bg(this), this.onStop && this.onStop(), this.flags &= -2;
      }
    }
    trigger() {
      this.flags & 64 ? Vd.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
    }
    runIfDirty() {
      ah(this) && this.run();
    }
    get dirty() {
      return ah(this);
    }
  }
  let v1 = 0, as, ls;
  function b1(e, t = false) {
    if (e.flags |= 8, t) {
      e.next = ls, ls = e;
      return;
    }
    e.next = as, as = e;
  }
  function zp() {
    v1++;
  }
  function Op() {
    if (--v1 > 0) return;
    if (ls) {
      let t = ls;
      for (ls = void 0; t; ) {
        const n = t.next;
        t.next = void 0, t.flags &= -9, t = n;
      }
    }
    let e;
    for (; as; ) {
      let t = as;
      for (as = void 0; t; ) {
        const n = t.next;
        if (t.next = void 0, t.flags &= -9, t.flags & 1) try {
          t.trigger();
        } catch (r) {
          e || (e = r);
        }
        t = n;
      }
    }
    if (e) throw e;
  }
  function y1(e) {
    for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
  }
  function x1(e) {
    let t, n = e.depsTail, r = n;
    for (; r; ) {
      const o = r.prevDep;
      r.version === -1 ? (r === n && (n = o), Ip(r), Vk(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o;
    }
    e.deps = t, e.depsTail = n;
  }
  function ah(e) {
    for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (w1(t.dep.computed) || t.dep.version !== t.version)) return true;
    return !!e._dirty;
  }
  function w1(e) {
    if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Cs) || (e.globalVersion = Cs, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !ah(e)))) return;
    e.flags |= 2;
    const t = e.dep, n = ln, r = to;
    ln = e, to = true;
    try {
      y1(e);
      const o = e.fn(e._value);
      (t.version === 0 || pr(o, e._value)) && (e.flags |= 128, e._value = o, t.version++);
    } catch (o) {
      throw t.version++, o;
    } finally {
      ln = n, to = r, x1(e), e.flags &= -3;
    }
  }
  function Ip(e, t = false) {
    const { dep: n, prevSub: r, nextSub: o } = e;
    if (r && (r.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r, e.nextSub = void 0), n.subs === e && (n.subs = r, !r && n.computed)) {
      n.computed.flags &= -5;
      for (let i = n.computed.deps; i; i = i.nextDep) Ip(i, true);
    }
    !t && !--n.sc && n.map && n.map.delete(n.key);
  }
  function Vk(e) {
    const { prevDep: t, nextDep: n } = e;
    t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
  }
  let to = true;
  const C1 = [];
  function ni() {
    C1.push(to), to = false;
  }
  function ri() {
    const e = C1.pop();
    to = e === void 0 ? true : e;
  }
  function bg(e) {
    const { cleanup: t } = e;
    if (e.cleanup = void 0, t) {
      const n = ln;
      ln = void 0;
      try {
        t();
      } finally {
        ln = n;
      }
    }
  }
  let Cs = 0;
  class qk {
    constructor(t, n) {
      this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
    }
  }
  class qu {
    constructor(t) {
      this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = true;
    }
    track(t) {
      if (!ln || !to || ln === this.computed) return;
      let n = this.activeLink;
      if (n === void 0 || n.sub !== ln) n = this.activeLink = new qk(ln, this), ln.deps ? (n.prevDep = ln.depsTail, ln.depsTail.nextDep = n, ln.depsTail = n) : ln.deps = ln.depsTail = n, S1(n);
      else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
        const r = n.nextDep;
        r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = ln.depsTail, n.nextDep = void 0, ln.depsTail.nextDep = n, ln.depsTail = n, ln.deps === n && (ln.deps = r);
      }
      return n;
    }
    trigger(t) {
      this.version++, Cs++, this.notify(t);
    }
    notify(t) {
      zp();
      try {
        for (let n = this.subs; n; n = n.prevSub) n.sub.notify() && n.sub.dep.notify();
      } finally {
        Op();
      }
    }
  }
  function S1(e) {
    if (e.dep.sc++, e.sub.flags & 4) {
      const t = e.dep.computed;
      if (t && !e.dep.subs) {
        t.flags |= 20;
        for (let r = t.deps; r; r = r.nextDep) S1(r);
      }
      const n = e.dep.subs;
      n !== e && (e.prevSub = n, n && (n.nextSub = e)), e.dep.subs = e;
    }
  }
  const uu = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ Symbol(""), lh = /* @__PURE__ */ Symbol(""), Ss = /* @__PURE__ */ Symbol("");
  function Qn(e, t, n) {
    if (to && ln) {
      let r = uu.get(e);
      r || uu.set(e, r = /* @__PURE__ */ new Map());
      let o = r.get(n);
      o || (r.set(n, o = new qu()), o.map = r, o.key = n), o.track();
    }
  }
  function Xo(e, t, n, r, o, i) {
    const a = uu.get(e);
    if (!a) {
      Cs++;
      return;
    }
    const l = (s) => {
      s && s.trigger();
    };
    if (zp(), t === "clear") a.forEach(l);
    else {
      const s = pt(e), c = s && ju(n);
      if (s && n === "length") {
        const u = Number(r);
        a.forEach((d, h) => {
          (h === "length" || h === Ss || !oo(h) && h >= u) && l(d);
        });
      } else switch ((n !== void 0 || a.has(void 0)) && l(a.get(n)), c && l(a.get(Ss)), t) {
        case "add":
          s ? c && l(a.get("length")) : (l(a.get(na)), Za(e) && l(a.get(lh)));
          break;
        case "delete":
          s || (l(a.get(na)), Za(e) && l(a.get(lh)));
          break;
        case "set":
          Za(e) && l(a.get(na));
          break;
      }
    }
    Op();
  }
  function Gk(e, t) {
    const n = uu.get(e);
    return n && n.get(t);
  }
  function Ia(e) {
    const t = Bt(e);
    return t === e ? t : (Qn(t, "iterate", Ss), Tr(e) ? t : t.map(io));
  }
  function Gu(e) {
    return Qn(e = Bt(e), "iterate", Ss), e;
  }
  function xi(e, t) {
    return oi(e) ? rl(ra(e) ? io(t) : t) : io(t);
  }
  const Kk = {
    __proto__: null,
    [Symbol.iterator]() {
      return qd(this, Symbol.iterator, (e) => xi(this, e));
    },
    concat(...e) {
      return Ia(this).concat(...e.map((t) => pt(t) ? Ia(t) : t));
    },
    entries() {
      return qd(this, "entries", (e) => (e[1] = xi(this, e[1]), e));
    },
    every(e, t) {
      return jo(this, "every", e, t, void 0, arguments);
    },
    filter(e, t) {
      return jo(this, "filter", e, t, (n) => n.map((r) => xi(this, r)), arguments);
    },
    find(e, t) {
      return jo(this, "find", e, t, (n) => xi(this, n), arguments);
    },
    findIndex(e, t) {
      return jo(this, "findIndex", e, t, void 0, arguments);
    },
    findLast(e, t) {
      return jo(this, "findLast", e, t, (n) => xi(this, n), arguments);
    },
    findLastIndex(e, t) {
      return jo(this, "findLastIndex", e, t, void 0, arguments);
    },
    forEach(e, t) {
      return jo(this, "forEach", e, t, void 0, arguments);
    },
    includes(...e) {
      return Gd(this, "includes", e);
    },
    indexOf(...e) {
      return Gd(this, "indexOf", e);
    },
    join(e) {
      return Ia(this).join(e);
    },
    lastIndexOf(...e) {
      return Gd(this, "lastIndexOf", e);
    },
    map(e, t) {
      return jo(this, "map", e, t, void 0, arguments);
    },
    pop() {
      return Ol(this, "pop");
    },
    push(...e) {
      return Ol(this, "push", e);
    },
    reduce(e, ...t) {
      return yg(this, "reduce", e, t);
    },
    reduceRight(e, ...t) {
      return yg(this, "reduceRight", e, t);
    },
    shift() {
      return Ol(this, "shift");
    },
    some(e, t) {
      return jo(this, "some", e, t, void 0, arguments);
    },
    splice(...e) {
      return Ol(this, "splice", e);
    },
    toReversed() {
      return Ia(this).toReversed();
    },
    toSorted(e) {
      return Ia(this).toSorted(e);
    },
    toSpliced(...e) {
      return Ia(this).toSpliced(...e);
    },
    unshift(...e) {
      return Ol(this, "unshift", e);
    },
    values() {
      return qd(this, "values", (e) => xi(this, e));
    }
  };
  function qd(e, t, n) {
    const r = Gu(e), o = r[t]();
    return r !== e && !Tr(e) && (o._next = o.next, o.next = () => {
      const i = o._next();
      return i.done || (i.value = n(i.value)), i;
    }), o;
  }
  const Yk = Array.prototype;
  function jo(e, t, n, r, o, i) {
    const a = Gu(e), l = a !== e && !Tr(e), s = a[t];
    if (s !== Yk[t]) {
      const d = s.apply(e, i);
      return l ? io(d) : d;
    }
    let c = n;
    a !== e && (l ? c = function(d, h) {
      return n.call(this, xi(e, d), h, e);
    } : n.length > 2 && (c = function(d, h) {
      return n.call(this, d, h, e);
    }));
    const u = s.call(a, c, r);
    return l && o ? o(u) : u;
  }
  function yg(e, t, n, r) {
    const o = Gu(e);
    let i = n;
    return o !== e && (Tr(e) ? n.length > 3 && (i = function(a, l, s) {
      return n.call(this, a, l, s, e);
    }) : i = function(a, l, s) {
      return n.call(this, a, xi(e, l), s, e);
    }), o[t](i, ...r);
  }
  function Gd(e, t, n) {
    const r = Bt(e);
    Qn(r, "iterate", Ss);
    const o = r[t](...n);
    return (o === -1 || o === false) && Ku(n[0]) ? (n[0] = Bt(n[0]), r[t](...n)) : o;
  }
  function Ol(e, t, n = []) {
    ni(), zp();
    const r = Bt(e)[t].apply(e, n);
    return Op(), ri(), r;
  }
  const Xk = Ep("__proto__,__v_isRef,__isVue"), _1 = new Set(Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(oo));
  function Jk(e) {
    oo(e) || (e = String(e));
    const t = Bt(this);
    return Qn(t, "has", e), t.hasOwnProperty(e);
  }
  class k1 {
    constructor(t = false, n = false) {
      this._isReadonly = t, this._isShallow = n;
    }
    get(t, n, r) {
      if (n === "__v_skip") return t.__v_skip;
      const o = this._isReadonly, i = this._isShallow;
      if (n === "__v_isReactive") return !o;
      if (n === "__v_isReadonly") return o;
      if (n === "__v_isShallow") return i;
      if (n === "__v_raw") return r === (o ? i ? l3 : T1 : i ? E1 : A1).get(t) || Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
      const a = pt(t);
      if (!o) {
        let s;
        if (a && (s = Kk[n])) return s;
        if (n === "hasOwnProperty") return Jk;
      }
      const l = Reflect.get(t, n, kt(t) ? t : r);
      if ((oo(n) ? _1.has(n) : Xk(n)) || (o || Qn(t, "get", n), i)) return l;
      if (kt(l)) {
        const s = a && ju(n) ? l : l.value;
        return o && Ut(s) ? Dr(s) : s;
      }
      return Ut(l) ? o ? Dr(l) : ba(l) : l;
    }
  }
  class R1 extends k1 {
    constructor(t = false) {
      super(false, t);
    }
    set(t, n, r, o) {
      let i = t[n];
      const a = pt(t) && ju(n);
      if (!this._isShallow) {
        const c = oi(i);
        if (!Tr(r) && !oi(r) && (i = Bt(i), r = Bt(r)), !a && kt(i) && !kt(r)) return c || (i.value = r), true;
      }
      const l = a ? Number(n) < t.length : Yt(t, n), s = Reflect.set(t, n, r, kt(t) ? t : o);
      return t === Bt(o) && (l ? pr(r, i) && Xo(t, "set", n, r) : Xo(t, "add", n, r)), s;
    }
    deleteProperty(t, n) {
      const r = Yt(t, n);
      t[n];
      const o = Reflect.deleteProperty(t, n);
      return o && r && Xo(t, "delete", n, void 0), o;
    }
    has(t, n) {
      const r = Reflect.has(t, n);
      return (!oo(n) || !_1.has(n)) && Qn(t, "has", n), r;
    }
    ownKeys(t) {
      return Qn(t, "iterate", pt(t) ? "length" : na), Reflect.ownKeys(t);
    }
  }
  class Zk extends k1 {
    constructor(t = false) {
      super(true, t);
    }
    set(t, n) {
      return true;
    }
    deleteProperty(t, n) {
      return true;
    }
  }
  const Qk = new R1(), e3 = new Zk(), t3 = new R1(true);
  const sh = (e) => e, gc = (e) => Reflect.getPrototypeOf(e);
  function n3(e, t, n) {
    return function(...r) {
      const o = this.__v_raw, i = Bt(o), a = Za(i), l = e === "entries" || e === Symbol.iterator && a, s = e === "keys" && a, c = o[e](...r), u = n ? sh : t ? rl : io;
      return !t && Qn(i, "iterate", s ? lh : na), Tn(Object.create(c), {
        next() {
          const { value: d, done: h } = c.next();
          return h ? {
            value: d,
            done: h
          } : {
            value: l ? [
              u(d[0]),
              u(d[1])
            ] : u(d),
            done: h
          };
        }
      });
    };
  }
  function vc(e) {
    return function(...t) {
      return e === "delete" ? false : e === "clear" ? void 0 : this;
    };
  }
  function r3(e, t) {
    const n = {
      get(o) {
        const i = this.__v_raw, a = Bt(i), l = Bt(o);
        e || (pr(o, l) && Qn(a, "get", o), Qn(a, "get", l));
        const { has: s } = gc(a), c = t ? sh : e ? rl : io;
        if (s.call(a, o)) return c(i.get(o));
        if (s.call(a, l)) return c(i.get(l));
        i !== a && i.get(o);
      },
      get size() {
        const o = this.__v_raw;
        return !e && Qn(Bt(o), "iterate", na), o.size;
      },
      has(o) {
        const i = this.__v_raw, a = Bt(i), l = Bt(o);
        return e || (pr(o, l) && Qn(a, "has", o), Qn(a, "has", l)), o === l ? i.has(o) : i.has(o) || i.has(l);
      },
      forEach(o, i) {
        const a = this, l = a.__v_raw, s = Bt(l), c = t ? sh : e ? rl : io;
        return !e && Qn(s, "iterate", na), l.forEach((u, d) => o.call(i, c(u), c(d), a));
      }
    };
    return Tn(n, e ? {
      add: vc("add"),
      set: vc("set"),
      delete: vc("delete"),
      clear: vc("clear")
    } : {
      add(o) {
        !t && !Tr(o) && !oi(o) && (o = Bt(o));
        const i = Bt(this);
        return gc(i).has.call(i, o) || (i.add(o), Xo(i, "add", o, o)), this;
      },
      set(o, i) {
        !t && !Tr(i) && !oi(i) && (i = Bt(i));
        const a = Bt(this), { has: l, get: s } = gc(a);
        let c = l.call(a, o);
        c || (o = Bt(o), c = l.call(a, o));
        const u = s.call(a, o);
        return a.set(o, i), c ? pr(i, u) && Xo(a, "set", o, i) : Xo(a, "add", o, i), this;
      },
      delete(o) {
        const i = Bt(this), { has: a, get: l } = gc(i);
        let s = a.call(i, o);
        s || (o = Bt(o), s = a.call(i, o)), l && l.call(i, o);
        const c = i.delete(o);
        return s && Xo(i, "delete", o, void 0), c;
      },
      clear() {
        const o = Bt(this), i = o.size !== 0, a = o.clear();
        return i && Xo(o, "clear", void 0, void 0), a;
      }
    }), [
      "keys",
      "values",
      "entries",
      Symbol.iterator
    ].forEach((o) => {
      n[o] = n3(o, e, t);
    }), n;
  }
  function Fp(e, t) {
    const n = r3(e, t);
    return (r, o, i) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(Yt(n, o) && o in r ? n : r, o, i);
  }
  const o3 = {
    get: Fp(false, false)
  }, i3 = {
    get: Fp(false, true)
  }, a3 = {
    get: Fp(true, false)
  };
  const A1 = /* @__PURE__ */ new WeakMap(), E1 = /* @__PURE__ */ new WeakMap(), T1 = /* @__PURE__ */ new WeakMap(), l3 = /* @__PURE__ */ new WeakMap();
  function s3(e) {
    switch (e) {
      case "Object":
      case "Array":
        return 1;
      case "Map":
      case "Set":
      case "WeakMap":
      case "WeakSet":
        return 2;
      default:
        return 0;
    }
  }
  function c3(e) {
    return e.__v_skip || !Object.isExtensible(e) ? 0 : s3(zk(e));
  }
  function ba(e) {
    return oi(e) ? e : Mp(e, false, Qk, o3, A1);
  }
  function P1(e) {
    return Mp(e, false, t3, i3, E1);
  }
  function Dr(e) {
    return Mp(e, true, e3, a3, T1);
  }
  function Mp(e, t, n, r, o) {
    if (!Ut(e) || e.__v_raw && !(t && e.__v_isReactive)) return e;
    const i = c3(e);
    if (i === 0) return e;
    const a = o.get(e);
    if (a) return a;
    const l = new Proxy(e, i === 2 ? r : n);
    return o.set(e, l), l;
  }
  function ra(e) {
    return oi(e) ? ra(e.__v_raw) : !!(e && e.__v_isReactive);
  }
  function oi(e) {
    return !!(e && e.__v_isReadonly);
  }
  function Tr(e) {
    return !!(e && e.__v_isShallow);
  }
  function Ku(e) {
    return e ? !!e.__v_raw : false;
  }
  Bt = function(e) {
    const t = e && e.__v_raw;
    return t ? Bt(t) : e;
  };
  function ch(e) {
    return !Yt(e, "__v_skip") && Object.isExtensible(e) && c1(e, "__v_skip", true), e;
  }
  const io = (e) => Ut(e) ? ba(e) : e, rl = (e) => Ut(e) ? Dr(e) : e;
  kt = function(e) {
    return e ? e.__v_isRef === true : false;
  };
  L = function(e) {
    return D1(e, false);
  };
  Po = function(e) {
    return D1(e, true);
  };
  function D1(e, t) {
    return kt(e) ? e : new u3(e, t);
  }
  class u3 {
    constructor(t, n) {
      this.dep = new qu(), this.__v_isRef = true, this.__v_isShallow = false, this._rawValue = n ? t : Bt(t), this._value = n ? t : io(t), this.__v_isShallow = n;
    }
    get value() {
      return this.dep.track(), this._value;
    }
    set value(t) {
      const n = this._rawValue, r = this.__v_isShallow || Tr(t) || oi(t);
      t = r ? t : Bt(t), pr(t, n) && (this._rawValue = t, this._value = r ? t : io(t), this.dep.trigger());
    }
  }
  O = function(e) {
    return kt(e) ? e.value : e;
  };
  function no(e) {
    return yt(e) ? e() : O(e);
  }
  const d3 = {
    get: (e, t, n) => t === "__v_raw" ? e : O(Reflect.get(e, t, n)),
    set: (e, t, n, r) => {
      const o = e[t];
      return kt(o) && !kt(n) ? (o.value = n, true) : Reflect.set(e, t, n, r);
    }
  };
  function $1(e) {
    return ra(e) ? e : new Proxy(e, d3);
  }
  class f3 {
    constructor(t) {
      this.__v_isRef = true, this._value = void 0;
      const n = this.dep = new qu(), { get: r, set: o } = t(n.track.bind(n), n.trigger.bind(n));
      this._get = r, this._set = o;
    }
    get value() {
      return this._value = this._get();
    }
    set value(t) {
      this._set(t);
    }
  }
  function z1(e) {
    return new f3(e);
  }
  class h3 {
    constructor(t, n, r) {
      this._object = t, this._key = n, this._defaultValue = r, this.__v_isRef = true, this._value = void 0, this._raw = Bt(t);
      let o = true, i = t;
      if (!pt(t) || !ju(String(n))) do
        o = !Ku(i) || Tr(i);
      while (o && (i = i.__v_raw));
      this._shallow = o;
    }
    get value() {
      let t = this._object[this._key];
      return this._shallow && (t = O(t)), this._value = t === void 0 ? this._defaultValue : t;
    }
    set value(t) {
      if (this._shallow && kt(this._raw[this._key])) {
        const n = this._object[this._key];
        if (kt(n)) {
          n.value = t;
          return;
        }
      }
      this._object[this._key] = t;
    }
    get dep() {
      return Gk(this._raw, this._key);
    }
  }
  class p3 {
    constructor(t) {
      this._getter = t, this.__v_isRef = true, this.__v_isReadonly = true, this._value = void 0;
    }
    get value() {
      return this._value = this._getter();
    }
  }
  $e = function(e, t, n) {
    return kt(e) ? e : yt(e) ? new p3(e) : Ut(e) && arguments.length > 1 ? m3(e, t, n) : L(e);
  };
  function m3(e, t, n) {
    return new h3(e, t, n);
  }
  class g3 {
    constructor(t, n, r) {
      this.fn = t, this.setter = n, this._value = void 0, this.dep = new qu(this), this.__v_isRef = true, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Cs - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r;
    }
    notify() {
      if (this.flags |= 16, !(this.flags & 8) && ln !== this) return b1(this, true), true;
    }
    get value() {
      const t = this.dep.track();
      return w1(this), t && (t.version = this.dep.version), this._value;
    }
    set value(t) {
      this.setter && this.setter(t);
    }
  }
  function v3(e, t, n = false) {
    let r, o;
    return yt(e) ? r = e : (r = e.get, o = e.set), new g3(r, o, n);
  }
  const bc = {}, du = /* @__PURE__ */ new WeakMap();
  let Gi;
  function b3(e, t = false, n = Gi) {
    if (n) {
      let r = du.get(n);
      r || du.set(n, r = []), r.push(e);
    }
  }
  function y3(e, t, n = jt) {
    const { immediate: r, deep: o, once: i, scheduler: a, augmentJob: l, call: s } = n, c = (x) => o ? x : Tr(x) || o === false || o === 0 ? Jo(x, 1) : Jo(x);
    let u, d, h, p, f = false, m = false;
    if (kt(e) ? (d = () => e.value, f = Tr(e)) : ra(e) ? (d = () => c(e), f = true) : pt(e) ? (m = true, f = e.some((x) => ra(x) || Tr(x)), d = () => e.map((x) => {
      if (kt(x)) return x.value;
      if (ra(x)) return c(x);
      if (yt(x)) return s ? s(x, 2) : x();
    })) : yt(e) ? t ? d = s ? () => s(e, 2) : e : d = () => {
      if (h) {
        ni();
        try {
          h();
        } finally {
          ri();
        }
      }
      const x = Gi;
      Gi = u;
      try {
        return s ? s(e, 3, [
          p
        ]) : e(p);
      } finally {
        Gi = x;
      }
    } : d = To, t && o) {
      const x = d, S = o === true ? 1 / 0 : o;
      d = () => Jo(x(), S);
    }
    const b = m1(), v = () => {
      u.stop(), b && b.active && Pp(b.effects, u);
    };
    if (i && t) {
      const x = t;
      t = (...S) => {
        x(...S), v();
      };
    }
    let y = m ? new Array(e.length).fill(bc) : bc;
    const w = (x) => {
      if (!(!(u.flags & 1) || !u.dirty && !x)) if (t) {
        const S = u.run();
        if (o || f || (m ? S.some((_, C) => pr(_, y[C])) : pr(S, y))) {
          h && h();
          const _ = Gi;
          Gi = u;
          try {
            const C = [
              S,
              y === bc ? void 0 : m && y[0] === bc ? [] : y,
              p
            ];
            y = S, s ? s(t, 3, C) : t(...C);
          } finally {
            Gi = _;
          }
        }
      } else u.run();
    };
    return l && l(w), u = new g1(d), u.scheduler = a ? () => a(w, false) : w, p = (x) => b3(x, false, u), h = u.onStop = () => {
      const x = du.get(u);
      if (x) {
        if (s) s(x, 4);
        else for (const S of x) S();
        du.delete(u);
      }
    }, t ? r ? w(true) : y = u.run() : a ? a(w.bind(null, true), true) : u.run(), v.pause = u.pause.bind(u), v.resume = u.resume.bind(u), v.stop = v, v;
  }
  function Jo(e, t = 1 / 0, n) {
    if (t <= 0 || !Ut(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
    if (n.set(e, t), t--, kt(e)) Jo(e.value, t, n);
    else if (pt(e)) for (let r = 0; r < e.length; r++) Jo(e[r], t, n);
    else if (i1(e) || Za(e)) e.forEach((r) => {
      Jo(r, t, n);
    });
    else if (s1(e)) {
      for (const r in e) Jo(e[r], t, n);
      for (const r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && Jo(e[r], t, n);
    }
    return e;
  }
  function js(e, t, n, r) {
    try {
      return r ? e(...r) : e();
    } catch (o) {
      Ws(o, t, n);
    }
  }
  function ao(e, t, n, r) {
    if (yt(e)) {
      const o = js(e, t, n, r);
      return o && a1(o) && o.catch((i) => {
        Ws(i, t, n);
      }), o;
    }
    if (pt(e)) {
      const o = [];
      for (let i = 0; i < e.length; i++) o.push(ao(e[i], t, n, r));
      return o;
    }
  }
  function Ws(e, t, n, r = true) {
    const o = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: a } = t && t.appContext.config || jt;
    if (t) {
      let l = t.parent;
      const s = t.proxy, c = `https://vuejs.org/error-reference/#runtime-${n}`;
      for (; l; ) {
        const u = l.ec;
        if (u) {
          for (let d = 0; d < u.length; d++) if (u[d](e, s, c) === false) return;
        }
        l = l.parent;
      }
      if (i) {
        ni(), js(i, null, 10, [
          e,
          s,
          c
        ]), ri();
        return;
      }
    }
    x3(e, n, o, r, a);
  }
  function x3(e, t, n, r = true, o = false) {
    if (o) throw e;
    console.error(e);
  }
  const sr = [];
  let _o = -1;
  const Qa = [];
  let wi = null, qa = 0;
  const O1 = Promise.resolve();
  let fu = null;
  sn = function(e) {
    const t = fu || O1;
    return e ? t.then(this ? e.bind(this) : e) : t;
  };
  function w3(e) {
    let t = _o + 1, n = sr.length;
    for (; t < n; ) {
      const r = t + n >>> 1, o = sr[r], i = _s(o);
      i < e || i === e && o.flags & 2 ? t = r + 1 : n = r;
    }
    return t;
  }
  function Lp(e) {
    if (!(e.flags & 1)) {
      const t = _s(e), n = sr[sr.length - 1];
      !n || !(e.flags & 2) && t >= _s(n) ? sr.push(e) : sr.splice(w3(t), 0, e), e.flags |= 1, I1();
    }
  }
  function I1() {
    fu || (fu = O1.then(M1));
  }
  function C3(e) {
    pt(e) ? Qa.push(...e) : wi && e.id === -1 ? wi.splice(qa + 1, 0, e) : e.flags & 1 || (Qa.push(e), e.flags |= 1), I1();
  }
  function xg(e, t, n = _o + 1) {
    for (; n < sr.length; n++) {
      const r = sr[n];
      if (r && r.flags & 2) {
        if (e && r.id !== e.uid) continue;
        sr.splice(n, 1), n--, r.flags & 4 && (r.flags &= -2), r(), r.flags & 4 || (r.flags &= -2);
      }
    }
  }
  function F1(e) {
    if (Qa.length) {
      const t = [
        ...new Set(Qa)
      ].sort((n, r) => _s(n) - _s(r));
      if (Qa.length = 0, wi) {
        wi.push(...t);
        return;
      }
      for (wi = t, qa = 0; qa < wi.length; qa++) {
        const n = wi[qa];
        n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2;
      }
      wi = null, qa = 0;
    }
  }
  const _s = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
  function M1(e) {
    try {
      for (_o = 0; _o < sr.length; _o++) {
        const t = sr[_o];
        t && !(t.flags & 8) && (t.flags & 4 && (t.flags &= -2), js(t, t.i, t.i ? 15 : 14), t.flags & 4 || (t.flags &= -2));
      }
    } finally {
      for (; _o < sr.length; _o++) {
        const t = sr[_o];
        t && (t.flags &= -2);
      }
      _o = -1, sr.length = 0, F1(), fu = null, (sr.length || Qa.length) && M1();
    }
  }
  let Wn = null, L1 = null;
  function hu(e) {
    const t = Wn;
    return Wn = e, L1 = e && e.type.__scopeId || null, t;
  }
  $ = function(e, t = Wn, n) {
    if (!t || e._n) return e;
    const r = (...o) => {
      r._d && gu(-1);
      const i = hu(t);
      let a;
      try {
        a = e(...o);
      } finally {
        hu(i), r._d && gu(1);
      }
      return a;
    };
    return r._n = true, r._c = true, r._d = true, r;
  };
  function $r(e, t) {
    if (Wn === null) return e;
    const n = ed(Wn), r = e.dirs || (e.dirs = []);
    for (let o = 0; o < t.length; o++) {
      let [i, a, l, s = jt] = t[o];
      i && (yt(i) && (i = {
        mounted: i,
        updated: i
      }), i.deep && Jo(a), r.push({
        dir: i,
        instance: n,
        value: a,
        oldValue: void 0,
        arg: l,
        modifiers: s
      }));
    }
    return e;
  }
  function Hi(e, t, n, r) {
    const o = e.dirs, i = t && t.dirs;
    for (let a = 0; a < o.length; a++) {
      const l = o[a];
      i && (l.oldValue = i[a].value);
      let s = l.dir[r];
      s && (ni(), ao(s, n, 8, [
        e.el,
        l,
        e,
        t
      ]), ri());
    }
  }
  function ft(e, t) {
    if (jn) {
      let n = jn.provides;
      const r = jn.parent && jn.parent.provides;
      r === n && (n = jn.provides = Object.create(r)), n[e] = t;
    }
  }
  function je(e, t, n = false) {
    const r = Vn();
    if (r || oa) {
      let o = oa ? oa._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
      if (o && e in o) return o[e];
      if (arguments.length > 1) return n && yt(t) ? t.call(r && r.proxy) : t;
    }
  }
  function Bp() {
    return !!(Vn() || oa);
  }
  const S3 = /* @__PURE__ */ Symbol.for("v-scx"), _3 = () => je(S3);
  fn = function(e, t) {
    return Yu(e, null, t);
  };
  function k3(e, t) {
    return Yu(e, null, {
      flush: "sync"
    });
  }
  lt = function(e, t, n) {
    return Yu(e, t, n);
  };
  function Yu(e, t, n = jt) {
    const { immediate: r, deep: o, flush: i, once: a } = n, l = Tn({}, n), s = t && r || !t && i !== "post";
    let c;
    if (al) {
      if (i === "sync") {
        const p = _3();
        c = p.__watcherHandles || (p.__watcherHandles = []);
      } else if (!s) {
        const p = () => {
        };
        return p.stop = To, p.resume = To, p.pause = To, p;
      }
    }
    const u = jn;
    l.call = (p, f, m) => ao(p, u, f, m);
    let d = false;
    i === "post" ? l.scheduler = (p) => {
      Xn(p, u && u.suspense);
    } : i !== "sync" && (d = true, l.scheduler = (p, f) => {
      f ? p() : Lp(p);
    }), l.augmentJob = (p) => {
      t && (p.flags |= 4), d && (p.flags |= 2, u && (p.id = u.uid, p.i = u));
    };
    const h = y3(e, t, l);
    return al && (c ? c.push(h) : s && h()), h;
  }
  function R3(e, t, n) {
    const r = this.proxy, o = bn(e) ? e.includes(".") ? B1(r, e) : () => r[e] : e.bind(r, r);
    let i;
    yt(t) ? i = t : (i = t.handler, n = t);
    const a = qs(this), l = Yu(o, i.bind(r), n);
    return a(), l;
  }
  function B1(e, t) {
    const n = t.split(".");
    return () => {
      let r = e;
      for (let o = 0; o < n.length && r; o++) r = r[n[o]];
      return r;
    };
  }
  const N1 = /* @__PURE__ */ Symbol("_vte"), H1 = (e) => e.__isTeleport, ss = (e) => e && (e.disabled || e.disabled === ""), wg = (e) => e && (e.defer || e.defer === ""), Cg = (e) => typeof SVGElement < "u" && e instanceof SVGElement, Sg = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, uh = (e, t) => {
    const n = e && e.to;
    return bn(n) ? t ? t(n) : null : n;
  }, j1 = {
    name: "Teleport",
    __isTeleport: true,
    process(e, t, n, r, o, i, a, l, s, c) {
      const { mc: u, pc: d, pbc: h, o: { insert: p, querySelector: f, createText: m, createComment: b } } = c, v = ss(t.props);
      let { shapeFlag: y, children: w, dynamicChildren: x } = t;
      if (e == null) {
        const S = t.el = m(""), _ = t.anchor = m("");
        p(S, n, r), p(_, n, r);
        const C = (R, P) => {
          y & 16 && u(w, R, P, o, i, a, l, s);
        }, k = () => {
          const R = t.target = uh(t.props, f), P = dh(R, t, m, p);
          R && (a !== "svg" && Cg(R) ? a = "svg" : a !== "mathml" && Sg(R) && (a = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(R), v || (C(R, P), Yc(t, false)));
        };
        v && (C(n, _), Yc(t, true)), wg(t.props) ? (t.el.__isMounted = false, Xn(() => {
          k(), delete t.el.__isMounted;
        }, i)) : k();
      } else {
        if (wg(t.props) && e.el.__isMounted === false) {
          Xn(() => {
            j1.process(e, t, n, r, o, i, a, l, s, c);
          }, i);
          return;
        }
        t.el = e.el, t.targetStart = e.targetStart;
        const S = t.anchor = e.anchor, _ = t.target = e.target, C = t.targetAnchor = e.targetAnchor, k = ss(e.props), R = k ? n : _, P = k ? S : C;
        if (a === "svg" || Cg(_) ? a = "svg" : (a === "mathml" || Sg(_)) && (a = "mathml"), x ? (h(e.dynamicChildren, x, R, o, i, a, l), qp(e, t, true)) : s || d(e, t, R, P, o, i, a, l, false), v) k ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : yc(t, n, S, c, 1);
        else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
          const B = t.target = uh(t.props, f);
          B && yc(t, B, null, c, 0);
        } else k && yc(t, _, C, c, 1);
        Yc(t, v);
      }
    },
    remove(e, t, n, { um: r, o: { remove: o } }, i) {
      const { shapeFlag: a, children: l, anchor: s, targetStart: c, targetAnchor: u, target: d, props: h } = e;
      if (d && (o(c), o(u)), i && o(s), a & 16) {
        const p = i || !ss(h);
        for (let f = 0; f < l.length; f++) {
          const m = l[f];
          r(m, t, n, p, !!m.dynamicChildren);
        }
      }
    },
    move: yc,
    hydrate: A3
  };
  function yc(e, t, n, { o: { insert: r }, m: o }, i = 2) {
    i === 0 && r(e.targetAnchor, t, n);
    const { el: a, anchor: l, shapeFlag: s, children: c, props: u } = e, d = i === 2;
    if (d && r(a, t, n), (!d || ss(u)) && s & 16) for (let h = 0; h < c.length; h++) o(c[h], t, n, 2);
    d && r(l, t, n);
  }
  function A3(e, t, n, r, o, i, { o: { nextSibling: a, parentNode: l, querySelector: s, insert: c, createText: u } }, d) {
    function h(b, v) {
      let y = v;
      for (; y; ) {
        if (y && y.nodeType === 8) {
          if (y.data === "teleport start anchor") t.targetStart = y;
          else if (y.data === "teleport anchor") {
            t.targetAnchor = y, b._lpa = t.targetAnchor && a(t.targetAnchor);
            break;
          }
        }
        y = a(y);
      }
    }
    function p(b, v) {
      v.anchor = d(a(b), v, l(b), n, r, o, i);
    }
    const f = t.target = uh(t.props, s), m = ss(t.props);
    if (f) {
      const b = f._lpa || f.firstChild;
      t.shapeFlag & 16 && (m ? (p(e, t), h(f, b), t.targetAnchor || dh(f, t, u, c, l(e) === f ? e : null)) : (t.anchor = a(e), h(f, b), t.targetAnchor || dh(f, t, u, c), d(b && a(b), t, f, n, r, o, i))), Yc(t, m);
    } else m && t.shapeFlag & 16 && (p(e, t), t.targetStart = e, t.targetAnchor = a(e));
    return t.anchor && a(t.anchor);
  }
  const Np = j1;
  function Yc(e, t) {
    const n = e.ctx;
    if (n && n.ut) {
      let r, o;
      for (t ? (r = e.el, o = e.anchor) : (r = e.targetStart, o = e.targetAnchor); r && r !== o; ) r.nodeType === 1 && r.setAttribute("data-v-owner", n.uid), r = r.nextSibling;
      n.ut();
    }
  }
  function dh(e, t, n, r, o = null) {
    const i = t.targetStart = n(""), a = t.targetAnchor = n("");
    return i[N1] = a, e && (r(i, e, o), r(a, e, o)), a;
  }
  const ko = /* @__PURE__ */ Symbol("_leaveCb"), Il = /* @__PURE__ */ Symbol("_enterCb");
  function W1() {
    const e = {
      isMounted: false,
      isLeaving: false,
      isUnmounting: false,
      leavingVNodes: /* @__PURE__ */ new Map()
    };
    return gt(() => {
      e.isMounted = true;
    }), Zt(() => {
      e.isUnmounting = true;
    }), e;
  }
  const Br = [
    Function,
    Array
  ], U1 = {
    mode: String,
    appear: Boolean,
    persisted: Boolean,
    onBeforeEnter: Br,
    onEnter: Br,
    onAfterEnter: Br,
    onEnterCancelled: Br,
    onBeforeLeave: Br,
    onLeave: Br,
    onAfterLeave: Br,
    onLeaveCancelled: Br,
    onBeforeAppear: Br,
    onAppear: Br,
    onAfterAppear: Br,
    onAppearCancelled: Br
  }, V1 = (e) => {
    const t = e.subTree;
    return t.component ? V1(t.component) : t;
  }, E3 = {
    name: "BaseTransition",
    props: U1,
    setup(e, { slots: t }) {
      const n = Vn(), r = W1();
      return () => {
        const o = t.default && Hp(t.default(), true);
        if (!o || !o.length) return;
        const i = q1(o), a = Bt(e), { mode: l } = a;
        if (r.isLeaving) return Kd(i);
        const s = _g(i);
        if (!s) return Kd(i);
        let c = ks(s, a, r, n, (d) => c = d);
        s.type !== Rn && fa(s, c);
        let u = n.subTree && _g(n.subTree);
        if (u && u.type !== Rn && !Ki(u, s) && V1(n).type !== Rn) {
          let d = ks(u, a, r, n);
          if (fa(u, d), l === "out-in" && s.type !== Rn) return r.isLeaving = true, d.afterLeave = () => {
            r.isLeaving = false, n.job.flags & 8 || n.update(), delete d.afterLeave, u = void 0;
          }, Kd(i);
          l === "in-out" && s.type !== Rn ? d.delayLeave = (h, p, f) => {
            const m = G1(r, u);
            m[String(u.key)] = u, h[ko] = () => {
              p(), h[ko] = void 0, delete c.delayedLeave, u = void 0;
            }, c.delayedLeave = () => {
              f(), delete c.delayedLeave, u = void 0;
            };
          } : u = void 0;
        } else u && (u = void 0);
        return i;
      };
    }
  };
  function q1(e) {
    let t = e[0];
    if (e.length > 1) {
      for (const n of e) if (n.type !== Rn) {
        t = n;
        break;
      }
    }
    return t;
  }
  const T3 = E3;
  function G1(e, t) {
    const { leavingVNodes: n } = e;
    let r = n.get(t.type);
    return r || (r = /* @__PURE__ */ Object.create(null), n.set(t.type, r)), r;
  }
  function ks(e, t, n, r, o) {
    const { appear: i, mode: a, persisted: l = false, onBeforeEnter: s, onEnter: c, onAfterEnter: u, onEnterCancelled: d, onBeforeLeave: h, onLeave: p, onAfterLeave: f, onLeaveCancelled: m, onBeforeAppear: b, onAppear: v, onAfterAppear: y, onAppearCancelled: w } = t, x = String(e.key), S = G1(n, e), _ = (R, P) => {
      R && ao(R, r, 9, P);
    }, C = (R, P) => {
      const B = P[1];
      _(R, P), pt(R) ? R.every((E) => E.length <= 1) && B() : R.length <= 1 && B();
    }, k = {
      mode: a,
      persisted: l,
      beforeEnter(R) {
        let P = s;
        if (!n.isMounted) if (i) P = b || s;
        else return;
        R[ko] && R[ko](true);
        const B = S[x];
        B && Ki(e, B) && B.el[ko] && B.el[ko](), _(P, [
          R
        ]);
      },
      enter(R) {
        if (S[x] === e) return;
        let P = c, B = u, E = d;
        if (!n.isMounted) if (i) P = v || c, B = y || u, E = w || d;
        else return;
        let M = false;
        R[Il] = (U) => {
          M || (M = true, U ? _(E, [
            R
          ]) : _(B, [
            R
          ]), k.delayedLeave && k.delayedLeave(), R[Il] = void 0);
        };
        const z = R[Il].bind(null, false);
        P ? C(P, [
          R,
          z
        ]) : z();
      },
      leave(R, P) {
        const B = String(e.key);
        if (R[Il] && R[Il](true), n.isUnmounting) return P();
        _(h, [
          R
        ]);
        let E = false;
        R[ko] = (z) => {
          E || (E = true, P(), z ? _(m, [
            R
          ]) : _(f, [
            R
          ]), R[ko] = void 0, S[B] === e && delete S[B]);
        };
        const M = R[ko].bind(null, false);
        S[B] = e, p ? C(p, [
          R,
          M
        ]) : M();
      },
      clone(R) {
        const P = ks(R, t, n, r, o);
        return o && o(P), P;
      }
    };
    return k;
  }
  function Kd(e) {
    if (Us(e)) return e = zr(e), e.children = null, e;
  }
  function _g(e) {
    if (!Us(e)) return H1(e.type) && e.children ? q1(e.children) : e;
    if (e.component) return e.component.subTree;
    const { shapeFlag: t, children: n } = e;
    if (n) {
      if (t & 16) return n[0];
      if (t & 32 && yt(n.default)) return n.default();
    }
  }
  function fa(e, t) {
    e.shapeFlag & 6 && e.component ? (e.transition = t, fa(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
  }
  function Hp(e, t = false, n) {
    let r = [], o = 0;
    for (let i = 0; i < e.length; i++) {
      let a = e[i];
      const l = n == null ? a.key : String(n) + String(a.key != null ? a.key : i);
      a.type === wt ? (a.patchFlag & 128 && o++, r = r.concat(Hp(a.children, t, l))) : (t || a.type !== Rn) && r.push(l != null ? zr(a, {
        key: l
      }) : a);
    }
    if (o > 1) for (let i = 0; i < r.length; i++) r[i].patchFlag = -2;
    return r;
  }
  pe = function(e, t) {
    return yt(e) ? Tn({
      name: e.name
    }, t, {
      setup: e
    }) : e;
  };
  function jp(e) {
    e.ids = [
      e.ids[0] + e.ids[2]++ + "-",
      0,
      0
    ];
  }
  function kg(e, t) {
    let n;
    return !!((n = Object.getOwnPropertyDescriptor(e, t)) && !n.configurable);
  }
  const pu = /* @__PURE__ */ new WeakMap();
  function cs(e, t, n, r, o = false) {
    if (pt(e)) {
      e.forEach((m, b) => cs(m, t && (pt(t) ? t[b] : t), n, r, o));
      return;
    }
    if (el(r) && !o) {
      r.shapeFlag & 512 && r.type.__asyncResolved && r.component.subTree.component && cs(e, t, n, r.component.subTree);
      return;
    }
    const i = r.shapeFlag & 4 ? ed(r.component) : r.el, a = o ? null : i, { i: l, r: s } = e, c = t && t.r, u = l.refs === jt ? l.refs = {} : l.refs, d = l.setupState, h = Bt(d), p = d === jt ? o1 : (m) => kg(u, m) ? false : Yt(h, m), f = (m, b) => !(b && kg(u, b));
    if (c != null && c !== s) {
      if (Rg(t), bn(c)) u[c] = null, p(c) && (d[c] = null);
      else if (kt(c)) {
        const m = t;
        f(c, m.k) && (c.value = null), m.k && (u[m.k] = null);
      }
    }
    if (yt(s)) js(s, l, 12, [
      a,
      u
    ]);
    else {
      const m = bn(s), b = kt(s);
      if (m || b) {
        const v = () => {
          if (e.f) {
            const y = m ? p(s) ? d[s] : u[s] : f() || !e.k ? s.value : u[e.k];
            if (o) pt(y) && Pp(y, i);
            else if (pt(y)) y.includes(i) || y.push(i);
            else if (m) u[s] = [
              i
            ], p(s) && (d[s] = u[s]);
            else {
              const w = [
                i
              ];
              f(s, e.k) && (s.value = w), e.k && (u[e.k] = w);
            }
          } else m ? (u[s] = a, p(s) && (d[s] = a)) : b && (f(s, e.k) && (s.value = a), e.k && (u[e.k] = a));
        };
        if (a) {
          const y = () => {
            v(), pu.delete(e);
          };
          y.id = -1, pu.set(e, y), Xn(y, n);
        } else Rg(e), v();
      }
    }
  }
  function Rg(e) {
    const t = pu.get(e);
    t && (t.flags |= 8, pu.delete(e));
  }
  const Ag = (e) => e.nodeType === 8;
  Vu().requestIdleCallback;
  Vu().cancelIdleCallback;
  function P3(e, t) {
    if (Ag(e) && e.data === "[") {
      let n = 1, r = e.nextSibling;
      for (; r; ) {
        if (r.nodeType === 1) {
          if (t(r) === false) break;
        } else if (Ag(r)) if (r.data === "]") {
          if (--n === 0) break;
        } else r.data === "[" && n++;
        r = r.nextSibling;
      }
    } else t(e);
  }
  const el = (e) => !!e.type.__asyncLoader;
  D3 = function(e) {
    yt(e) && (e = {
      loader: e
    });
    const { loader: t, loadingComponent: n, errorComponent: r, delay: o = 200, hydrate: i, timeout: a, suspensible: l = true, onError: s } = e;
    let c = null, u, d = 0;
    const h = () => (d++, c = null, p()), p = () => {
      let f;
      return c || (f = c = t().catch((m) => {
        if (m = m instanceof Error ? m : new Error(String(m)), s) return new Promise((b, v) => {
          s(m, () => b(h()), () => v(m), d + 1);
        });
        throw m;
      }).then((m) => f !== c && c ? c : (m && (m.__esModule || m[Symbol.toStringTag] === "Module") && (m = m.default), u = m, m)));
    };
    return pe({
      name: "AsyncComponentWrapper",
      __asyncLoader: p,
      __asyncHydrate(f, m, b) {
        let v = false;
        (m.bu || (m.bu = [])).push(() => v = true);
        const y = () => {
          v || b();
        }, w = i ? () => {
          const x = i(y, (S) => P3(f, S));
          x && (m.bum || (m.bum = [])).push(x);
        } : y;
        u ? w() : p().then(() => !m.isUnmounted && w());
      },
      get __asyncResolved() {
        return u;
      },
      setup() {
        const f = jn;
        if (jp(f), u) return () => xc(u, f);
        const m = (w) => {
          c = null, Ws(w, f, 13, !r);
        };
        if (l && f.suspense || al) return p().then((w) => () => xc(w, f)).catch((w) => (m(w), () => r ? T(r, {
          error: w
        }) : null));
        const b = L(false), v = L(), y = L(!!o);
        return o && setTimeout(() => {
          y.value = false;
        }, o), a != null && setTimeout(() => {
          if (!b.value && !v.value) {
            const w = new Error(`Async component timed out after ${a}ms.`);
            m(w), v.value = w;
          }
        }, a), p().then(() => {
          b.value = true, f.parent && Us(f.parent.vnode) && f.parent.update();
        }).catch((w) => {
          m(w), v.value = w;
        }), () => {
          if (b.value && u) return xc(u, f);
          if (v.value && r) return T(r, {
            error: v.value
          });
          if (n && !y.value) return xc(n, f);
        };
      }
    });
  };
  function xc(e, t) {
    const { ref: n, props: r, children: o, ce: i } = t.vnode, a = T(e, r, o);
    return a.ref = n, a.ce = i, delete t.vnode.ce, a;
  }
  const Us = (e) => e.type.__isKeepAlive;
  function Xu(e, t) {
    K1(e, "a", t);
  }
  function Vs(e, t) {
    K1(e, "da", t);
  }
  function K1(e, t, n = jn) {
    const r = e.__wdc || (e.__wdc = () => {
      let o = n;
      for (; o; ) {
        if (o.isDeactivated) return;
        o = o.parent;
      }
      return e();
    });
    if (Ju(t, r, n), n) {
      let o = n.parent;
      for (; o && o.parent; ) Us(o.parent.vnode) && $3(r, t, n, o), o = o.parent;
    }
  }
  function $3(e, t, n, r) {
    const o = Ju(t, e, r, true);
    wl(() => {
      Pp(r[t], o);
    }, n);
  }
  function Ju(e, t, n = jn, r = false) {
    if (n) {
      const o = n[e] || (n[e] = []), i = t.__weh || (t.__weh = (...a) => {
        ni();
        const l = qs(n), s = ao(t, n, e, a);
        return l(), ri(), s;
      });
      return r ? o.unshift(i) : o.push(i), i;
    }
  }
  let si, ci, Y1, X1, wl, z3, O3, I3;
  si = (e) => (t, n = jn) => {
    (!al || e === "sp") && Ju(e, (...r) => t(...r), n);
  };
  ci = si("bm");
  gt = si("m");
  Y1 = si("bu");
  X1 = si("u");
  Zt = si("bum");
  wl = si("um");
  z3 = si("sp");
  O3 = si("rtg");
  I3 = si("rtc");
  function F3(e, t = jn) {
    Ju("ec", e, t);
  }
  const M3 = "components";
  function L3(e, t) {
    return N3(M3, e, true, t) || e;
  }
  const B3 = /* @__PURE__ */ Symbol.for("v-ndc");
  function N3(e, t, n = true, r = false) {
    const o = Wn || jn;
    if (o) {
      const i = o.type;
      {
        const l = SR(i, false);
        if (l && (l === t || l === Pr(t) || l === Uu(Pr(t)))) return i;
      }
      const a = Eg(o[e] || i[e], t) || Eg(o.appContext[e], t);
      return !a && r ? i : a;
    }
  }
  function Eg(e, t) {
    return e && (e[t] || e[Pr(t)] || e[Uu(Pr(t))]);
  }
  ol = function(e, t, n, r) {
    let o;
    const i = n && n[r], a = pt(e);
    if (a || bn(e)) {
      const l = a && ra(e);
      let s = false, c = false;
      l && (s = !Tr(e), c = oi(e), e = Gu(e)), o = new Array(e.length);
      for (let u = 0, d = e.length; u < d; u++) o[u] = t(s ? c ? rl(io(e[u])) : io(e[u]) : e[u], u, void 0, i && i[u]);
    } else if (typeof e == "number") {
      o = new Array(e);
      for (let l = 0; l < e; l++) o[l] = t(l + 1, l, void 0, i && i[l]);
    } else if (Ut(e)) if (e[Symbol.iterator]) o = Array.from(e, (l, s) => t(l, s, void 0, i && i[s]));
    else {
      const l = Object.keys(e);
      o = new Array(l.length);
      for (let s = 0, c = l.length; s < c; s++) {
        const u = l[s];
        o[s] = t(e[u], u, s, i && i[s]);
      }
    }
    else o = [];
    return n && (n[r] = o), o;
  };
  function Zu(e, t) {
    for (let n = 0; n < t.length; n++) {
      const r = t[n];
      if (pt(r)) for (let o = 0; o < r.length; o++) e[r[o].name] = r[o].fn;
      else r && (e[r.name] = r.key ? (...o) => {
        const i = r.fn(...o);
        return i && (i.key = r.key), i;
      } : r.fn);
    }
    return e;
  }
  function Wp(e, t, n = {}, r, o) {
    if (Wn.ce || Wn.parent && el(Wn.parent) && Wn.parent.ce) {
      const c = Object.keys(n).length > 0;
      return t !== "default" && (n.name = t), de(), Be(wt, null, [
        T("slot", n, r && r())
      ], c ? -2 : 64);
    }
    let i = e[t];
    i && i._c && (i._d = false), de();
    const a = i && J1(i(n)), l = n.key || a && a.key, s = Be(wt, {
      key: (l && !oo(l) ? l : `_${t}`) + (!a && r ? "_fb" : "")
    }, a || (r ? r() : []), a && e._ === 1 ? 64 : -2);
    return !o && s.scopeId && (s.slotScopeIds = [
      s.scopeId + "-s"
    ]), i && i._c && (i._d = true), s;
  }
  function J1(e) {
    return e.some((t) => il(t) ? !(t.type === Rn || t.type === wt && !J1(t.children)) : true) ? e : null;
  }
  const fh = (e) => e ? vx(e) ? ed(e) : fh(e.parent) : null, us = Tn(/* @__PURE__ */ Object.create(null), {
    $: (e) => e,
    $el: (e) => e.vnode.el,
    $data: (e) => e.data,
    $props: (e) => e.props,
    $attrs: (e) => e.attrs,
    $slots: (e) => e.slots,
    $refs: (e) => e.refs,
    $parent: (e) => fh(e.parent),
    $root: (e) => fh(e.root),
    $host: (e) => e.ce,
    $emit: (e) => e.emit,
    $options: (e) => Q1(e),
    $forceUpdate: (e) => e.f || (e.f = () => {
      Lp(e.update);
    }),
    $nextTick: (e) => e.n || (e.n = sn.bind(e.proxy)),
    $watch: (e) => R3.bind(e)
  }), Yd = (e, t) => e !== jt && !e.__isScriptSetup && Yt(e, t), H3 = {
    get({ _: e }, t) {
      if (t === "__v_skip") return true;
      const { ctx: n, setupState: r, data: o, props: i, accessCache: a, type: l, appContext: s } = e;
      if (t[0] !== "$") {
        const h = a[t];
        if (h !== void 0) switch (h) {
          case 1:
            return r[t];
          case 2:
            return o[t];
          case 4:
            return n[t];
          case 3:
            return i[t];
        }
        else {
          if (Yd(r, t)) return a[t] = 1, r[t];
          if (o !== jt && Yt(o, t)) return a[t] = 2, o[t];
          if (Yt(i, t)) return a[t] = 3, i[t];
          if (n !== jt && Yt(n, t)) return a[t] = 4, n[t];
          hh && (a[t] = 0);
        }
      }
      const c = us[t];
      let u, d;
      if (c) return t === "$attrs" && Qn(e.attrs, "get", ""), c(e);
      if ((u = l.__cssModules) && (u = u[t])) return u;
      if (n !== jt && Yt(n, t)) return a[t] = 4, n[t];
      if (d = s.config.globalProperties, Yt(d, t)) return d[t];
    },
    set({ _: e }, t, n) {
      const { data: r, setupState: o, ctx: i } = e;
      return Yd(o, t) ? (o[t] = n, true) : r !== jt && Yt(r, t) ? (r[t] = n, true) : Yt(e.props, t) || t[0] === "$" && t.slice(1) in e ? false : (i[t] = n, true);
    },
    has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, props: i, type: a } }, l) {
      let s;
      return !!(n[l] || e !== jt && l[0] !== "$" && Yt(e, l) || Yd(t, l) || Yt(i, l) || Yt(r, l) || Yt(us, l) || Yt(o.config.globalProperties, l) || (s = a.__cssModules) && s[l]);
    },
    defineProperty(e, t, n) {
      return n.get != null ? e._.accessCache[t] = 0 : Yt(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
    }
  };
  function Tg(e) {
    return pt(e) ? e.reduce((t, n) => (t[n] = null, t), {}) : e;
  }
  let hh = true;
  function j3(e) {
    const t = Q1(e), n = e.proxy, r = e.ctx;
    hh = false, t.beforeCreate && Pg(t.beforeCreate, e, "bc");
    const { data: o, computed: i, methods: a, watch: l, provide: s, inject: c, created: u, beforeMount: d, mounted: h, beforeUpdate: p, updated: f, activated: m, deactivated: b, beforeDestroy: v, beforeUnmount: y, destroyed: w, unmounted: x, render: S, renderTracked: _, renderTriggered: C, errorCaptured: k, serverPrefetch: R, expose: P, inheritAttrs: B, components: E, directives: M, filters: z } = t;
    if (c && W3(c, r, null), a) for (const ne in a) {
      const ae = a[ne];
      yt(ae) && (r[ne] = ae.bind(n));
    }
    if (o) {
      const ne = o.call(n, n);
      Ut(ne) && (e.data = ba(ne));
    }
    if (hh = true, i) for (const ne in i) {
      const ae = i[ne], ye = yt(ae) ? ae.bind(n, n) : yt(ae.get) ? ae.get.bind(n, n) : To, xe = !yt(ae) && yt(ae.set) ? ae.set.bind(n) : To, re = D({
        get: ye,
        set: xe
      });
      Object.defineProperty(r, ne, {
        enumerable: true,
        configurable: true,
        get: () => re.value,
        set: (Y) => re.value = Y
      });
    }
    if (l) for (const ne in l) Z1(l[ne], r, n, ne);
    if (s) {
      const ne = yt(s) ? s.call(n) : s;
      Reflect.ownKeys(ne).forEach((ae) => {
        ft(ae, ne[ae]);
      });
    }
    u && Pg(u, e, "c");
    function ee(ne, ae) {
      pt(ae) ? ae.forEach((ye) => ne(ye.bind(n))) : ae && ne(ae.bind(n));
    }
    if (ee(ci, d), ee(gt, h), ee(Y1, p), ee(X1, f), ee(Xu, m), ee(Vs, b), ee(F3, k), ee(I3, _), ee(O3, C), ee(Zt, y), ee(wl, x), ee(z3, R), pt(P)) if (P.length) {
      const ne = e.exposed || (e.exposed = {});
      P.forEach((ae) => {
        Object.defineProperty(ne, ae, {
          get: () => n[ae],
          set: (ye) => n[ae] = ye,
          enumerable: true
        });
      });
    } else e.exposed || (e.exposed = {});
    S && e.render === To && (e.render = S), B != null && (e.inheritAttrs = B), E && (e.components = E), M && (e.directives = M), R && jp(e);
  }
  function W3(e, t, n = To) {
    pt(e) && (e = ph(e));
    for (const r in e) {
      const o = e[r];
      let i;
      Ut(o) ? "default" in o ? i = je(o.from || r, o.default, true) : i = je(o.from || r) : i = je(o), kt(i) ? Object.defineProperty(t, r, {
        enumerable: true,
        configurable: true,
        get: () => i.value,
        set: (a) => i.value = a
      }) : t[r] = i;
    }
  }
  function Pg(e, t, n) {
    ao(pt(e) ? e.map((r) => r.bind(t.proxy)) : e.bind(t.proxy), t, n);
  }
  function Z1(e, t, n, r) {
    let o = r.includes(".") ? B1(n, r) : () => n[r];
    if (bn(e)) {
      const i = t[e];
      yt(i) && lt(o, i);
    } else if (yt(e)) lt(o, e.bind(n));
    else if (Ut(e)) if (pt(e)) e.forEach((i) => Z1(i, t, n, r));
    else {
      const i = yt(e.handler) ? e.handler.bind(n) : t[e.handler];
      yt(i) && lt(o, i, e);
    }
  }
  function Q1(e) {
    const t = e.type, { mixins: n, extends: r } = t, { mixins: o, optionsCache: i, config: { optionMergeStrategies: a } } = e.appContext, l = i.get(t);
    let s;
    return l ? s = l : !o.length && !n && !r ? s = t : (s = {}, o.length && o.forEach((c) => mu(s, c, a, true)), mu(s, t, a)), Ut(t) && i.set(t, s), s;
  }
  function mu(e, t, n, r = false) {
    const { mixins: o, extends: i } = t;
    i && mu(e, i, n, true), o && o.forEach((a) => mu(e, a, n, true));
    for (const a in t) if (!(r && a === "expose")) {
      const l = U3[a] || n && n[a];
      e[a] = l ? l(e[a], t[a]) : t[a];
    }
    return e;
  }
  const U3 = {
    data: Dg,
    props: $g,
    emits: $g,
    methods: ts,
    computed: ts,
    beforeCreate: ir,
    created: ir,
    beforeMount: ir,
    mounted: ir,
    beforeUpdate: ir,
    updated: ir,
    beforeDestroy: ir,
    beforeUnmount: ir,
    destroyed: ir,
    unmounted: ir,
    activated: ir,
    deactivated: ir,
    errorCaptured: ir,
    serverPrefetch: ir,
    components: ts,
    directives: ts,
    watch: q3,
    provide: Dg,
    inject: V3
  };
  function Dg(e, t) {
    return t ? e ? function() {
      return Tn(yt(e) ? e.call(this, this) : e, yt(t) ? t.call(this, this) : t);
    } : t : e;
  }
  function V3(e, t) {
    return ts(ph(e), ph(t));
  }
  function ph(e) {
    if (pt(e)) {
      const t = {};
      for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
      return t;
    }
    return e;
  }
  function ir(e, t) {
    return e ? [
      ...new Set([].concat(e, t))
    ] : t;
  }
  function ts(e, t) {
    return e ? Tn(/* @__PURE__ */ Object.create(null), e, t) : t;
  }
  function $g(e, t) {
    return e ? pt(e) && pt(t) ? [
      .../* @__PURE__ */ new Set([
        ...e,
        ...t
      ])
    ] : Tn(/* @__PURE__ */ Object.create(null), Tg(e), Tg(t ?? {})) : t;
  }
  function q3(e, t) {
    if (!e) return t;
    if (!t) return e;
    const n = Tn(/* @__PURE__ */ Object.create(null), e);
    for (const r in t) n[r] = ir(e[r], t[r]);
    return n;
  }
  function ex() {
    return {
      app: null,
      config: {
        isNativeTag: o1,
        performance: false,
        globalProperties: {},
        optionMergeStrategies: {},
        errorHandler: void 0,
        warnHandler: void 0,
        compilerOptions: {}
      },
      mixins: [],
      components: {},
      directives: {},
      provides: /* @__PURE__ */ Object.create(null),
      optionsCache: /* @__PURE__ */ new WeakMap(),
      propsCache: /* @__PURE__ */ new WeakMap(),
      emitsCache: /* @__PURE__ */ new WeakMap()
    };
  }
  let G3 = 0;
  function K3(e, t) {
    return function(r, o = null) {
      yt(r) || (r = Tn({}, r)), o != null && !Ut(o) && (o = null);
      const i = ex(), a = /* @__PURE__ */ new WeakSet(), l = [];
      let s = false;
      const c = i.app = {
        _uid: G3++,
        _component: r,
        _props: o,
        _container: null,
        _context: i,
        _instance: null,
        version: kR,
        get config() {
          return i.config;
        },
        set config(u) {
        },
        use(u, ...d) {
          return a.has(u) || (u && yt(u.install) ? (a.add(u), u.install(c, ...d)) : yt(u) && (a.add(u), u(c, ...d))), c;
        },
        mixin(u) {
          return i.mixins.includes(u) || i.mixins.push(u), c;
        },
        component(u, d) {
          return d ? (i.components[u] = d, c) : i.components[u];
        },
        directive(u, d) {
          return d ? (i.directives[u] = d, c) : i.directives[u];
        },
        mount(u, d, h) {
          if (!s) {
            const p = c._ceVNode || T(r, o);
            return p.appContext = i, h === true ? h = "svg" : h === false && (h = void 0), e(p, u, h), s = true, c._container = u, u.__vue_app__ = c, ed(p.component);
          }
        },
        onUnmount(u) {
          l.push(u);
        },
        unmount() {
          s && (ao(l, c._instance, 16), e(null, c._container), delete c._container.__vue_app__);
        },
        provide(u, d) {
          return i.provides[u] = d, c;
        },
        runWithContext(u) {
          const d = oa;
          oa = c;
          try {
            return u();
          } finally {
            oa = d;
          }
        }
      };
      return c;
    };
  }
  let oa = null;
  function Y3(e, t, n = jt) {
    const r = Vn(), o = Pr(t), i = li(t), a = tx(e, o), l = z1((s, c) => {
      let u, d = jt, h;
      return k3(() => {
        const p = e[o];
        pr(u, p) && (u = p, c());
      }), {
        get() {
          return s(), n.get ? n.get(u) : u;
        },
        set(p) {
          const f = n.set ? n.set(p) : p;
          if (!pr(f, u) && !(d !== jt && pr(p, d))) return;
          const m = r.vnode.props;
          m && (t in m || o in m || i in m) && (`onUpdate:${t}` in m || `onUpdate:${o}` in m || `onUpdate:${i}` in m) || (u = p, c()), r.emit(`update:${t}`, f), pr(p, f) && pr(p, d) && !pr(f, h) && c(), d = p, h = f;
        }
      };
    });
    return l[Symbol.iterator] = () => {
      let s = 0;
      return {
        next() {
          return s < 2 ? {
            value: s++ ? a || jt : l,
            done: false
          } : {
            done: true
          };
        }
      };
    }, l;
  }
  const tx = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Pr(t)}Modifiers`] || e[`${li(t)}Modifiers`];
  function X3(e, t, ...n) {
    if (e.isUnmounted) return;
    const r = e.vnode.props || jt;
    let o = n;
    const i = t.startsWith("update:"), a = i && tx(r, t.slice(7));
    a && (a.trim && (o = n.map((u) => bn(u) ? u.trim() : u)), a.number && (o = n.map(Fk)));
    let l, s = r[l = jd(t)] || r[l = jd(Pr(t))];
    !s && i && (s = r[l = jd(li(t))]), s && ao(s, e, 6, o);
    const c = r[l + "Once"];
    if (c) {
      if (!e.emitted) e.emitted = {};
      else if (e.emitted[l]) return;
      e.emitted[l] = true, ao(c, e, 6, o);
    }
  }
  const J3 = /* @__PURE__ */ new WeakMap();
  function nx(e, t, n = false) {
    const r = n ? J3 : t.emitsCache, o = r.get(e);
    if (o !== void 0) return o;
    const i = e.emits;
    let a = {}, l = false;
    if (!yt(e)) {
      const s = (c) => {
        const u = nx(c, t, true);
        u && (l = true, Tn(a, u));
      };
      !n && t.mixins.length && t.mixins.forEach(s), e.extends && s(e.extends), e.mixins && e.mixins.forEach(s);
    }
    return !i && !l ? (Ut(e) && r.set(e, null), null) : (pt(i) ? i.forEach((s) => a[s] = null) : Tn(a, i), Ut(e) && r.set(e, a), a);
  }
  function Qu(e, t) {
    return !e || !Hu(t) ? false : (t = t.slice(2).replace(/Once$/, ""), Yt(e, t[0].toLowerCase() + t.slice(1)) || Yt(e, li(t)) || Yt(e, t));
  }
  function zg(e) {
    const { type: t, vnode: n, proxy: r, withProxy: o, propsOptions: [i], slots: a, attrs: l, emit: s, render: c, renderCache: u, props: d, data: h, setupState: p, ctx: f, inheritAttrs: m } = e, b = hu(e);
    let v, y;
    try {
      if (n.shapeFlag & 4) {
        const x = o || r, S = x;
        v = Ro(c.call(S, x, u, d, p, h, f)), y = l;
      } else {
        const x = t;
        v = Ro(x.length > 1 ? x(d, {
          attrs: l,
          slots: a,
          emit: s
        }) : x(d, null)), y = t.props ? l : Z3(l);
      }
    } catch (x) {
      ds.length = 0, Ws(x, e, 1), v = T(Rn);
    }
    let w = v;
    if (y && m !== false) {
      const x = Object.keys(y), { shapeFlag: S } = w;
      x.length && S & 7 && (i && x.some(Tp) && (y = Q3(y, i)), w = zr(w, y, false, true));
    }
    return n.dirs && (w = zr(w, null, false, true), w.dirs = w.dirs ? w.dirs.concat(n.dirs) : n.dirs), n.transition && fa(w, n.transition), v = w, hu(b), v;
  }
  const Z3 = (e) => {
    let t;
    for (const n in e) (n === "class" || n === "style" || Hu(n)) && ((t || (t = {}))[n] = e[n]);
    return t;
  }, Q3 = (e, t) => {
    const n = {};
    for (const r in e) (!Tp(r) || !(r.slice(9) in t)) && (n[r] = e[r]);
    return n;
  };
  function eR(e, t, n) {
    const { props: r, children: o, component: i } = e, { props: a, children: l, patchFlag: s } = t, c = i.emitsOptions;
    if (t.dirs || t.transition) return true;
    if (n && s >= 0) {
      if (s & 1024) return true;
      if (s & 16) return r ? Og(r, a, c) : !!a;
      if (s & 8) {
        const u = t.dynamicProps;
        for (let d = 0; d < u.length; d++) {
          const h = u[d];
          if (rx(a, r, h) && !Qu(c, h)) return true;
        }
      }
    } else return (o || l) && (!l || !l.$stable) ? true : r === a ? false : r ? a ? Og(r, a, c) : true : !!a;
    return false;
  }
  function Og(e, t, n) {
    const r = Object.keys(t);
    if (r.length !== Object.keys(e).length) return true;
    for (let o = 0; o < r.length; o++) {
      const i = r[o];
      if (rx(t, e, i) && !Qu(n, i)) return true;
    }
    return false;
  }
  function rx(e, t, n) {
    const r = e[n], o = t[n];
    return n === "style" && Ut(r) && Ut(o) ? !$p(r, o) : r !== o;
  }
  function tR({ vnode: e, parent: t }, n) {
    for (; t; ) {
      const r = t.subTree;
      if (r.suspense && r.suspense.activeBranch === e && (r.el = e.el), r === e) (e = t.vnode).el = n, t = t.parent;
      else break;
    }
  }
  const ox = {}, ix = () => Object.create(ox), ax = (e) => Object.getPrototypeOf(e) === ox;
  function nR(e, t, n, r = false) {
    const o = {}, i = ix();
    e.propsDefaults = /* @__PURE__ */ Object.create(null), lx(e, t, o, i);
    for (const a in e.propsOptions[0]) a in o || (o[a] = void 0);
    n ? e.props = r ? o : P1(o) : e.type.props ? e.props = o : e.props = i, e.attrs = i;
  }
  function rR(e, t, n, r) {
    const { props: o, attrs: i, vnode: { patchFlag: a } } = e, l = Bt(o), [s] = e.propsOptions;
    let c = false;
    if ((r || a > 0) && !(a & 16)) {
      if (a & 8) {
        const u = e.vnode.dynamicProps;
        for (let d = 0; d < u.length; d++) {
          let h = u[d];
          if (Qu(e.emitsOptions, h)) continue;
          const p = t[h];
          if (s) if (Yt(i, h)) p !== i[h] && (i[h] = p, c = true);
          else {
            const f = Pr(h);
            o[f] = mh(s, l, f, p, e, false);
          }
          else p !== i[h] && (i[h] = p, c = true);
        }
      }
    } else {
      lx(e, t, o, i) && (c = true);
      let u;
      for (const d in l) (!t || !Yt(t, d) && ((u = li(d)) === d || !Yt(t, u))) && (s ? n && (n[d] !== void 0 || n[u] !== void 0) && (o[d] = mh(s, l, d, void 0, e, true)) : delete o[d]);
      if (i !== l) for (const d in i) (!t || !Yt(t, d)) && (delete i[d], c = true);
    }
    c && Xo(e.attrs, "set", "");
  }
  function lx(e, t, n, r) {
    const [o, i] = e.propsOptions;
    let a = false, l;
    if (t) for (let s in t) {
      if (is(s)) continue;
      const c = t[s];
      let u;
      o && Yt(o, u = Pr(s)) ? !i || !i.includes(u) ? n[u] = c : (l || (l = {}))[u] = c : Qu(e.emitsOptions, s) || (!(s in r) || c !== r[s]) && (r[s] = c, a = true);
    }
    if (i) {
      const s = Bt(n), c = l || jt;
      for (let u = 0; u < i.length; u++) {
        const d = i[u];
        n[d] = mh(o, s, d, c[d], e, !Yt(c, d));
      }
    }
    return a;
  }
  function mh(e, t, n, r, o, i) {
    const a = e[n];
    if (a != null) {
      const l = Yt(a, "default");
      if (l && r === void 0) {
        const s = a.default;
        if (a.type !== Function && !a.skipFactory && yt(s)) {
          const { propsDefaults: c } = o;
          if (n in c) r = c[n];
          else {
            const u = qs(o);
            r = c[n] = s.call(null, t), u();
          }
        } else r = s;
        o.ce && o.ce._setProp(n, r);
      }
      a[0] && (i && !l ? r = false : a[1] && (r === "" || r === li(n)) && (r = true));
    }
    return r;
  }
  const oR = /* @__PURE__ */ new WeakMap();
  function sx(e, t, n = false) {
    const r = n ? oR : t.propsCache, o = r.get(e);
    if (o) return o;
    const i = e.props, a = {}, l = [];
    let s = false;
    if (!yt(e)) {
      const u = (d) => {
        s = true;
        const [h, p] = sx(d, t, true);
        Tn(a, h), p && l.push(...p);
      };
      !n && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
    }
    if (!i && !s) return Ut(e) && r.set(e, Ja), Ja;
    if (pt(i)) for (let u = 0; u < i.length; u++) {
      const d = Pr(i[u]);
      Ig(d) && (a[d] = jt);
    }
    else if (i) for (const u in i) {
      const d = Pr(u);
      if (Ig(d)) {
        const h = i[u], p = a[d] = pt(h) || yt(h) ? {
          type: h
        } : Tn({}, h), f = p.type;
        let m = false, b = true;
        if (pt(f)) for (let v = 0; v < f.length; ++v) {
          const y = f[v], w = yt(y) && y.name;
          if (w === "Boolean") {
            m = true;
            break;
          } else w === "String" && (b = false);
        }
        else m = yt(f) && f.name === "Boolean";
        p[0] = m, p[1] = b, (m || Yt(p, "default")) && l.push(d);
      }
    }
    const c = [
      a,
      l
    ];
    return Ut(e) && r.set(e, c), c;
  }
  function Ig(e) {
    return e[0] !== "$" && !is(e);
  }
  const Up = (e) => e === "_" || e === "_ctx" || e === "$stable", Vp = (e) => pt(e) ? e.map(Ro) : [
    Ro(e)
  ], iR = (e, t, n) => {
    if (t._n) return t;
    const r = $((...o) => Vp(t(...o)), n);
    return r._c = false, r;
  }, cx = (e, t, n) => {
    const r = e._ctx;
    for (const o in e) {
      if (Up(o)) continue;
      const i = e[o];
      if (yt(i)) t[o] = iR(o, i, r);
      else if (i != null) {
        const a = Vp(i);
        t[o] = () => a;
      }
    }
  }, ux = (e, t) => {
    const n = Vp(t);
    e.slots.default = () => n;
  }, dx = (e, t, n) => {
    for (const r in t) (n || !Up(r)) && (e[r] = t[r]);
  }, aR = (e, t, n) => {
    const r = e.slots = ix();
    if (e.vnode.shapeFlag & 32) {
      const o = t._;
      o ? (dx(r, t, n), n && c1(r, "_", o, true)) : cx(t, r);
    } else t && ux(e, t);
  }, lR = (e, t, n) => {
    const { vnode: r, slots: o } = e;
    let i = true, a = jt;
    if (r.shapeFlag & 32) {
      const l = t._;
      l ? n && l === 1 ? i = false : dx(o, t, n) : (i = !t.$stable, cx(t, o)), a = t;
    } else t && (ux(e, t), a = {
      default: 1
    });
    if (i) for (const l in o) !Up(l) && a[l] == null && delete o[l];
  }, Xn = fR;
  function sR(e) {
    return cR(e);
  }
  function cR(e, t) {
    const n = Vu();
    n.__VUE__ = true;
    const { insert: r, remove: o, patchProp: i, createElement: a, createText: l, createComment: s, setText: c, setElementText: u, parentNode: d, nextSibling: h, setScopeId: p = To, insertStaticContent: f } = e, m = (q, J, le, we = null, ke = null, _e = null, K = void 0, N = null, j = !!J.dynamicChildren) => {
      if (q === J) return;
      q && !Ki(q, J) && (we = ie(q), Y(q, ke, _e, true), q = null), J.patchFlag === -2 && (j = false, J.dynamicChildren = null);
      const { type: X, ref: ge, shapeFlag: te } = J;
      switch (X) {
        case Cl:
          b(q, J, le, we);
          break;
        case Rn:
          v(q, J, le, we);
          break;
        case Jd:
          q == null && y(J, le, we, K);
          break;
        case wt:
          E(q, J, le, we, ke, _e, K, N, j);
          break;
        default:
          te & 1 ? S(q, J, le, we, ke, _e, K, N, j) : te & 6 ? M(q, J, le, we, ke, _e, K, N, j) : (te & 64 || te & 128) && X.process(q, J, le, we, ke, _e, K, N, j, se);
      }
      ge != null && ke ? cs(ge, q && q.ref, _e, J || q, !J) : ge == null && q && q.ref != null && cs(q.ref, null, _e, q, true);
    }, b = (q, J, le, we) => {
      if (q == null) r(J.el = l(J.children), le, we);
      else {
        const ke = J.el = q.el;
        J.children !== q.children && c(ke, J.children);
      }
    }, v = (q, J, le, we) => {
      q == null ? r(J.el = s(J.children || ""), le, we) : J.el = q.el;
    }, y = (q, J, le, we) => {
      [q.el, q.anchor] = f(q.children, J, le, we, q.el, q.anchor);
    }, w = ({ el: q, anchor: J }, le, we) => {
      let ke;
      for (; q && q !== J; ) ke = h(q), r(q, le, we), q = ke;
      r(J, le, we);
    }, x = ({ el: q, anchor: J }) => {
      let le;
      for (; q && q !== J; ) le = h(q), o(q), q = le;
      o(J);
    }, S = (q, J, le, we, ke, _e, K, N, j) => {
      if (J.type === "svg" ? K = "svg" : J.type === "math" && (K = "mathml"), q == null) _(J, le, we, ke, _e, K, N, j);
      else {
        const X = q.el && q.el._isVueCE ? q.el : null;
        try {
          X && X._beginPatch(), R(q, J, ke, _e, K, N, j);
        } finally {
          X && X._endPatch();
        }
      }
    }, _ = (q, J, le, we, ke, _e, K, N) => {
      let j, X;
      const { props: ge, shapeFlag: te, transition: I, dirs: Z } = q;
      if (j = q.el = a(q.type, _e, ge && ge.is, ge), te & 8 ? u(j, q.children) : te & 16 && k(q.children, j, null, we, ke, Xd(q, _e), K, N), Z && Hi(q, null, we, "created"), C(j, q, q.scopeId, K, we), ge) {
        for (const De in ge) De !== "value" && !is(De) && i(j, De, null, ge[De], _e, we);
        "value" in ge && i(j, "value", null, ge.value, _e), (X = ge.onVnodeBeforeMount) && go(X, we, q);
      }
      Z && Hi(q, null, we, "beforeMount");
      const Ce = uR(ke, I);
      Ce && I.beforeEnter(j), r(j, J, le), ((X = ge && ge.onVnodeMounted) || Ce || Z) && Xn(() => {
        X && go(X, we, q), Ce && I.enter(j), Z && Hi(q, null, we, "mounted");
      }, ke);
    }, C = (q, J, le, we, ke) => {
      if (le && p(q, le), we) for (let _e = 0; _e < we.length; _e++) p(q, we[_e]);
      if (ke) {
        let _e = ke.subTree;
        if (J === _e || px(_e.type) && (_e.ssContent === J || _e.ssFallback === J)) {
          const K = ke.vnode;
          C(q, K, K.scopeId, K.slotScopeIds, ke.parent);
        }
      }
    }, k = (q, J, le, we, ke, _e, K, N, j = 0) => {
      for (let X = j; X < q.length; X++) {
        const ge = q[X] = N ? Ko(q[X]) : Ro(q[X]);
        m(null, ge, J, le, we, ke, _e, K, N);
      }
    }, R = (q, J, le, we, ke, _e, K) => {
      const N = J.el = q.el;
      let { patchFlag: j, dynamicChildren: X, dirs: ge } = J;
      j |= q.patchFlag & 16;
      const te = q.props || jt, I = J.props || jt;
      let Z;
      if (le && ji(le, false), (Z = I.onVnodeBeforeUpdate) && go(Z, le, J, q), ge && Hi(J, q, le, "beforeUpdate"), le && ji(le, true), (te.innerHTML && I.innerHTML == null || te.textContent && I.textContent == null) && u(N, ""), X ? P(q.dynamicChildren, X, N, le, we, Xd(J, ke), _e) : K || ae(q, J, N, null, le, we, Xd(J, ke), _e, false), j > 0) {
        if (j & 16) B(N, te, I, le, ke);
        else if (j & 2 && te.class !== I.class && i(N, "class", null, I.class, ke), j & 4 && i(N, "style", te.style, I.style, ke), j & 8) {
          const Ce = J.dynamicProps;
          for (let De = 0; De < Ce.length; De++) {
            const qe = Ce[De], ut = te[qe], Ze = I[qe];
            (Ze !== ut || qe === "value") && i(N, qe, ut, Ze, ke, le);
          }
        }
        j & 1 && q.children !== J.children && u(N, J.children);
      } else !K && X == null && B(N, te, I, le, ke);
      ((Z = I.onVnodeUpdated) || ge) && Xn(() => {
        Z && go(Z, le, J, q), ge && Hi(J, q, le, "updated");
      }, we);
    }, P = (q, J, le, we, ke, _e, K) => {
      for (let N = 0; N < J.length; N++) {
        const j = q[N], X = J[N], ge = j.el && (j.type === wt || !Ki(j, X) || j.shapeFlag & 198) ? d(j.el) : le;
        m(j, X, ge, null, we, ke, _e, K, true);
      }
    }, B = (q, J, le, we, ke) => {
      if (J !== le) {
        if (J !== jt) for (const _e in J) !is(_e) && !(_e in le) && i(q, _e, J[_e], null, ke, we);
        for (const _e in le) {
          if (is(_e)) continue;
          const K = le[_e], N = J[_e];
          K !== N && _e !== "value" && i(q, _e, N, K, ke, we);
        }
        "value" in le && i(q, "value", J.value, le.value, ke);
      }
    }, E = (q, J, le, we, ke, _e, K, N, j) => {
      const X = J.el = q ? q.el : l(""), ge = J.anchor = q ? q.anchor : l("");
      let { patchFlag: te, dynamicChildren: I, slotScopeIds: Z } = J;
      Z && (N = N ? N.concat(Z) : Z), q == null ? (r(X, le, we), r(ge, le, we), k(J.children || [], le, ge, ke, _e, K, N, j)) : te > 0 && te & 64 && I && q.dynamicChildren && q.dynamicChildren.length === I.length ? (P(q.dynamicChildren, I, le, ke, _e, K, N), (J.key != null || ke && J === ke.subTree) && qp(q, J, true)) : ae(q, J, le, ge, ke, _e, K, N, j);
    }, M = (q, J, le, we, ke, _e, K, N, j) => {
      J.slotScopeIds = N, q == null ? J.shapeFlag & 512 ? ke.ctx.activate(J, le, we, K, j) : z(J, le, we, ke, _e, K, j) : U(q, J, j);
    }, z = (q, J, le, we, ke, _e, K) => {
      const N = q.component = bR(q, we, ke);
      if (Us(q) && (N.ctx.renderer = se), yR(N, false, K), N.asyncDep) {
        if (ke && ke.registerDep(N, ee, K), !q.el) {
          const j = N.subTree = T(Rn);
          v(null, j, J, le), q.placeholder = j.el;
        }
      } else ee(N, q, J, le, ke, _e, K);
    }, U = (q, J, le) => {
      const we = J.component = q.component;
      if (eR(q, J, le)) if (we.asyncDep && !we.asyncResolved) {
        ne(we, J, le);
        return;
      } else we.next = J, we.update();
      else J.el = q.el, we.vnode = J;
    }, ee = (q, J, le, we, ke, _e, K) => {
      const N = () => {
        if (q.isMounted) {
          let { next: te, bu: I, u: Z, parent: Ce, vnode: De } = q;
          {
            const Ne = fx(q);
            if (Ne) {
              te && (te.el = De.el, ne(q, te, K)), Ne.asyncDep.then(() => {
                Xn(() => {
                  q.isUnmounted || X();
                }, ke);
              });
              return;
            }
          }
          let qe = te, ut;
          ji(q, false), te ? (te.el = De.el, ne(q, te, K)) : te = De, I && Wd(I), (ut = te.props && te.props.onVnodeBeforeUpdate) && go(ut, Ce, te, De), ji(q, true);
          const Ze = zg(q), rt = q.subTree;
          q.subTree = Ze, m(rt, Ze, d(rt.el), ie(rt), q, ke, _e), te.el = Ze.el, qe === null && tR(q, Ze.el), Z && Xn(Z, ke), (ut = te.props && te.props.onVnodeUpdated) && Xn(() => go(ut, Ce, te, De), ke);
        } else {
          let te;
          const { el: I, props: Z } = J, { bm: Ce, m: De, parent: qe, root: ut, type: Ze } = q, rt = el(J);
          ji(q, false), Ce && Wd(Ce), !rt && (te = Z && Z.onVnodeBeforeMount) && go(te, qe, J), ji(q, true);
          {
            ut.ce && ut.ce._hasShadowRoot() && ut.ce._injectChildStyle(Ze);
            const Ne = q.subTree = zg(q);
            m(null, Ne, le, we, q, ke, _e), J.el = Ne.el;
          }
          if (De && Xn(De, ke), !rt && (te = Z && Z.onVnodeMounted)) {
            const Ne = J;
            Xn(() => go(te, qe, Ne), ke);
          }
          (J.shapeFlag & 256 || qe && el(qe.vnode) && qe.vnode.shapeFlag & 256) && q.a && Xn(q.a, ke), q.isMounted = true, J = le = we = null;
        }
      };
      q.scope.on();
      const j = q.effect = new g1(N);
      q.scope.off();
      const X = q.update = j.run.bind(j), ge = q.job = j.runIfDirty.bind(j);
      ge.i = q, ge.id = q.uid, j.scheduler = () => Lp(ge), ji(q, true), X();
    }, ne = (q, J, le) => {
      J.component = q;
      const we = q.vnode.props;
      q.vnode = J, q.next = null, rR(q, J.props, we, le), lR(q, J.children, le), ni(), xg(q), ri();
    }, ae = (q, J, le, we, ke, _e, K, N, j = false) => {
      const X = q && q.children, ge = q ? q.shapeFlag : 0, te = J.children, { patchFlag: I, shapeFlag: Z } = J;
      if (I > 0) {
        if (I & 128) {
          xe(X, te, le, we, ke, _e, K, N, j);
          return;
        } else if (I & 256) {
          ye(X, te, le, we, ke, _e, K, N, j);
          return;
        }
      }
      Z & 8 ? (ge & 16 && be(X, ke, _e), te !== X && u(le, te)) : ge & 16 ? Z & 16 ? xe(X, te, le, we, ke, _e, K, N, j) : be(X, ke, _e, true) : (ge & 8 && u(le, ""), Z & 16 && k(te, le, we, ke, _e, K, N, j));
    }, ye = (q, J, le, we, ke, _e, K, N, j) => {
      q = q || Ja, J = J || Ja;
      const X = q.length, ge = J.length, te = Math.min(X, ge);
      let I;
      for (I = 0; I < te; I++) {
        const Z = J[I] = j ? Ko(J[I]) : Ro(J[I]);
        m(q[I], Z, le, null, ke, _e, K, N, j);
      }
      X > ge ? be(q, ke, _e, true, false, te) : k(J, le, we, ke, _e, K, N, j, te);
    }, xe = (q, J, le, we, ke, _e, K, N, j) => {
      let X = 0;
      const ge = J.length;
      let te = q.length - 1, I = ge - 1;
      for (; X <= te && X <= I; ) {
        const Z = q[X], Ce = J[X] = j ? Ko(J[X]) : Ro(J[X]);
        if (Ki(Z, Ce)) m(Z, Ce, le, null, ke, _e, K, N, j);
        else break;
        X++;
      }
      for (; X <= te && X <= I; ) {
        const Z = q[te], Ce = J[I] = j ? Ko(J[I]) : Ro(J[I]);
        if (Ki(Z, Ce)) m(Z, Ce, le, null, ke, _e, K, N, j);
        else break;
        te--, I--;
      }
      if (X > te) {
        if (X <= I) {
          const Z = I + 1, Ce = Z < ge ? J[Z].el : we;
          for (; X <= I; ) m(null, J[X] = j ? Ko(J[X]) : Ro(J[X]), le, Ce, ke, _e, K, N, j), X++;
        }
      } else if (X > I) for (; X <= te; ) Y(q[X], ke, _e, true), X++;
      else {
        const Z = X, Ce = X, De = /* @__PURE__ */ new Map();
        for (X = Ce; X <= I; X++) {
          const Ge = J[X] = j ? Ko(J[X]) : Ro(J[X]);
          Ge.key != null && De.set(Ge.key, X);
        }
        let qe, ut = 0;
        const Ze = I - Ce + 1;
        let rt = false, Ne = 0;
        const bt = new Array(Ze);
        for (X = 0; X < Ze; X++) bt[X] = 0;
        for (X = Z; X <= te; X++) {
          const Ge = q[X];
          if (ut >= Ze) {
            Y(Ge, ke, _e, true);
            continue;
          }
          let Q;
          if (Ge.key != null) Q = De.get(Ge.key);
          else for (qe = Ce; qe <= I; qe++) if (bt[qe - Ce] === 0 && Ki(Ge, J[qe])) {
            Q = qe;
            break;
          }
          Q === void 0 ? Y(Ge, ke, _e, true) : (bt[Q - Ce] = X + 1, Q >= Ne ? Ne = Q : rt = true, m(Ge, J[Q], le, null, ke, _e, K, N, j), ut++);
        }
        const We = rt ? dR(bt) : Ja;
        for (qe = We.length - 1, X = Ze - 1; X >= 0; X--) {
          const Ge = Ce + X, Q = J[Ge], me = J[Ge + 1], Ee = Ge + 1 < ge ? me.el || hx(me) : we;
          bt[X] === 0 ? m(null, Q, le, Ee, ke, _e, K, N, j) : rt && (qe < 0 || X !== We[qe] ? re(Q, le, Ee, 2) : qe--);
        }
      }
    }, re = (q, J, le, we, ke = null) => {
      const { el: _e, type: K, transition: N, children: j, shapeFlag: X } = q;
      if (X & 6) {
        re(q.component.subTree, J, le, we);
        return;
      }
      if (X & 128) {
        q.suspense.move(J, le, we);
        return;
      }
      if (X & 64) {
        K.move(q, J, le, se);
        return;
      }
      if (K === wt) {
        r(_e, J, le);
        for (let te = 0; te < j.length; te++) re(j[te], J, le, we);
        r(q.anchor, J, le);
        return;
      }
      if (K === Jd) {
        w(q, J, le);
        return;
      }
      if (we !== 2 && X & 1 && N) if (we === 0) N.beforeEnter(_e), r(_e, J, le), Xn(() => N.enter(_e), ke);
      else {
        const { leave: te, delayLeave: I, afterLeave: Z } = N, Ce = () => {
          q.ctx.isUnmounted ? o(_e) : r(_e, J, le);
        }, De = () => {
          _e._isLeaving && _e[ko](true), te(_e, () => {
            Ce(), Z && Z();
          });
        };
        I ? I(_e, Ce, De) : De();
      }
      else r(_e, J, le);
    }, Y = (q, J, le, we = false, ke = false) => {
      const { type: _e, props: K, ref: N, children: j, dynamicChildren: X, shapeFlag: ge, patchFlag: te, dirs: I, cacheIndex: Z } = q;
      if (te === -2 && (ke = false), N != null && (ni(), cs(N, null, le, q, true), ri()), Z != null && (J.renderCache[Z] = void 0), ge & 256) {
        J.ctx.deactivate(q);
        return;
      }
      const Ce = ge & 1 && I, De = !el(q);
      let qe;
      if (De && (qe = K && K.onVnodeBeforeUnmount) && go(qe, J, q), ge & 6) ce(q.component, le, we);
      else {
        if (ge & 128) {
          q.suspense.unmount(le, we);
          return;
        }
        Ce && Hi(q, null, J, "beforeUnmount"), ge & 64 ? q.type.remove(q, J, le, se, we) : X && !X.hasOnce && (_e !== wt || te > 0 && te & 64) ? be(X, J, le, false, true) : (_e === wt && te & 384 || !ke && ge & 16) && be(j, J, le), we && H(q);
      }
      (De && (qe = K && K.onVnodeUnmounted) || Ce) && Xn(() => {
        qe && go(qe, J, q), Ce && Hi(q, null, J, "unmounted");
      }, le);
    }, H = (q) => {
      const { type: J, el: le, anchor: we, transition: ke } = q;
      if (J === wt) {
        oe(le, we);
        return;
      }
      if (J === Jd) {
        x(q);
        return;
      }
      const _e = () => {
        o(le), ke && !ke.persisted && ke.afterLeave && ke.afterLeave();
      };
      if (q.shapeFlag & 1 && ke && !ke.persisted) {
        const { leave: K, delayLeave: N } = ke, j = () => K(le, _e);
        N ? N(q.el, _e, j) : j();
      } else _e();
    }, oe = (q, J) => {
      let le;
      for (; q !== J; ) le = h(q), o(q), q = le;
      o(J);
    }, ce = (q, J, le) => {
      const { bum: we, scope: ke, job: _e, subTree: K, um: N, m: j, a: X } = q;
      Fg(j), Fg(X), we && Wd(we), ke.stop(), _e && (_e.flags |= 8, Y(K, q, J, le)), N && Xn(N, J), Xn(() => {
        q.isUnmounted = true;
      }, J);
    }, be = (q, J, le, we = false, ke = false, _e = 0) => {
      for (let K = _e; K < q.length; K++) Y(q[K], J, le, we, ke);
    }, ie = (q) => {
      if (q.shapeFlag & 6) return ie(q.component.subTree);
      if (q.shapeFlag & 128) return q.suspense.next();
      const J = h(q.anchor || q.el), le = J && J[N1];
      return le ? h(le) : J;
    };
    let fe = false;
    const F = (q, J, le) => {
      let we;
      q == null ? J._vnode && (Y(J._vnode, null, null, true), we = J._vnode.component) : m(J._vnode || null, q, J, null, null, null, le), J._vnode = q, fe || (fe = true, xg(we), F1(), fe = false);
    }, se = {
      p: m,
      um: Y,
      m: re,
      r: H,
      mt: z,
      mc: k,
      pc: ae,
      pbc: P,
      n: ie,
      o: e
    };
    return {
      render: F,
      hydrate: void 0,
      createApp: K3(F)
    };
  }
  function Xd({ type: e, props: t }, n) {
    return n === "svg" && e === "foreignObject" || n === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : n;
  }
  function ji({ effect: e, job: t }, n) {
    n ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
  }
  function uR(e, t) {
    return (!e || e && !e.pendingBranch) && t && !t.persisted;
  }
  function qp(e, t, n = false) {
    const r = e.children, o = t.children;
    if (pt(r) && pt(o)) for (let i = 0; i < r.length; i++) {
      const a = r[i];
      let l = o[i];
      l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = o[i] = Ko(o[i]), l.el = a.el), !n && l.patchFlag !== -2 && qp(a, l)), l.type === Cl && (l.patchFlag === -1 && (l = o[i] = Ko(l)), l.el = a.el), l.type === Rn && !l.el && (l.el = a.el);
    }
  }
  function dR(e) {
    const t = e.slice(), n = [
      0
    ];
    let r, o, i, a, l;
    const s = e.length;
    for (r = 0; r < s; r++) {
      const c = e[r];
      if (c !== 0) {
        if (o = n[n.length - 1], e[o] < c) {
          t[r] = o, n.push(r);
          continue;
        }
        for (i = 0, a = n.length - 1; i < a; ) l = i + a >> 1, e[n[l]] < c ? i = l + 1 : a = l;
        c < e[n[i]] && (i > 0 && (t[r] = n[i - 1]), n[i] = r);
      }
    }
    for (i = n.length, a = n[i - 1]; i-- > 0; ) n[i] = a, a = t[a];
    return n;
  }
  function fx(e) {
    const t = e.subTree.component;
    if (t) return t.asyncDep && !t.asyncResolved ? t : fx(t);
  }
  function Fg(e) {
    if (e) for (let t = 0; t < e.length; t++) e[t].flags |= 8;
  }
  function hx(e) {
    if (e.placeholder) return e.placeholder;
    const t = e.component;
    return t ? hx(t.subTree) : null;
  }
  const px = (e) => e.__isSuspense;
  function fR(e, t) {
    t && t.pendingBranch ? pt(e) ? t.effects.push(...e) : t.effects.push(e) : C3(e);
  }
  let Cl, Rn, Jd, ds;
  wt = /* @__PURE__ */ Symbol.for("v-fgt");
  Cl = /* @__PURE__ */ Symbol.for("v-txt");
  Rn = /* @__PURE__ */ Symbol.for("v-cmt");
  Jd = /* @__PURE__ */ Symbol.for("v-stc");
  ds = [];
  let Rr = null;
  de = function(e = false) {
    ds.push(Rr = e ? null : []);
  };
  function hR() {
    ds.pop(), Rr = ds[ds.length - 1] || null;
  }
  let Rs = 1;
  function gu(e, t = false) {
    Rs += e, e < 0 && Rr && t && (Rr.hasOnce = true);
  }
  function mx(e) {
    return e.dynamicChildren = Rs > 0 ? Rr || Ja : null, hR(), Rs > 0 && Rr && Rr.push(e), e;
  }
  Ie = function(e, t, n, r, o, i) {
    return mx(Me(e, t, n, r, o, i, true));
  };
  Be = function(e, t, n, r, o) {
    return mx(T(e, t, n, r, o, true));
  };
  function il(e) {
    return e ? e.__v_isVNode === true : false;
  }
  function Ki(e, t) {
    return e.type === t.type && e.key === t.key;
  }
  const gx = ({ key: e }) => e ?? null, Xc = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? bn(e) || kt(e) || yt(e) ? {
    i: Wn,
    r: e,
    k: t,
    f: !!n
  } : e : null);
  Me = function(e, t = null, n = null, r = 0, o = null, i = e === wt ? 0 : 1, a = false, l = false) {
    const s = {
      __v_isVNode: true,
      __v_skip: true,
      type: e,
      props: t,
      key: t && gx(t),
      ref: t && Xc(t),
      scopeId: L1,
      slotScopeIds: null,
      children: n,
      component: null,
      suspense: null,
      ssContent: null,
      ssFallback: null,
      dirs: null,
      transition: null,
      el: null,
      anchor: null,
      target: null,
      targetStart: null,
      targetAnchor: null,
      staticCount: 0,
      shapeFlag: i,
      patchFlag: r,
      dynamicProps: o,
      dynamicChildren: null,
      appContext: null,
      ctx: Wn
    };
    return l ? (Gp(s, n), i & 128 && e.normalize(s)) : n && (s.shapeFlag |= bn(n) ? 8 : 16), Rs > 0 && !a && Rr && (s.patchFlag > 0 || i & 6) && s.patchFlag !== 32 && Rr.push(s), s;
  };
  T = pR;
  function pR(e, t = null, n = null, r = 0, o = null, i = false) {
    if ((!e || e === B3) && (e = Rn), il(e)) {
      const l = zr(e, t, true);
      return n && Gp(l, n), Rs > 0 && !i && Rr && (l.shapeFlag & 6 ? Rr[Rr.indexOf(e)] = l : Rr.push(l)), l.patchFlag = -2, l;
    }
    if (_R(e) && (e = e.__vccOpts), t) {
      t = mR(t);
      let { class: l, style: s } = t;
      l && !bn(l) && (t.class = ti(l)), Ut(s) && (Ku(s) && !pt(s) && (s = Tn({}, s)), t.style = Dp(s));
    }
    const a = bn(e) ? 1 : px(e) ? 128 : H1(e) ? 64 : Ut(e) ? 4 : yt(e) ? 2 : 0;
    return Me(e, t, n, r, o, a, i, true);
  }
  function mR(e) {
    return e ? Ku(e) || ax(e) ? Tn({}, e) : e : null;
  }
  function zr(e, t, n = false, r = false) {
    const { props: o, ref: i, patchFlag: a, children: l, transition: s } = e, c = t ? Mn(o || {}, t) : o, u = {
      __v_isVNode: true,
      __v_skip: true,
      type: e.type,
      props: c,
      key: c && gx(c),
      ref: t && t.ref ? n && i ? pt(i) ? i.concat(Xc(t)) : [
        i,
        Xc(t)
      ] : Xc(t) : i,
      scopeId: e.scopeId,
      slotScopeIds: e.slotScopeIds,
      children: l,
      target: e.target,
      targetStart: e.targetStart,
      targetAnchor: e.targetAnchor,
      staticCount: e.staticCount,
      shapeFlag: e.shapeFlag,
      patchFlag: t && e.type !== wt ? a === -1 ? 16 : a | 16 : a,
      dynamicProps: e.dynamicProps,
      dynamicChildren: e.dynamicChildren,
      appContext: e.appContext,
      dirs: e.dirs,
      transition: s,
      component: e.component,
      suspense: e.suspense,
      ssContent: e.ssContent && zr(e.ssContent),
      ssFallback: e.ssFallback && zr(e.ssFallback),
      placeholder: e.placeholder,
      el: e.el,
      anchor: e.anchor,
      ctx: e.ctx,
      ce: e.ce
    };
    return s && r && fa(u, s.clone(u)), u;
  }
  Ae = function(e = " ", t = 0) {
    return T(Cl, null, e, t);
  };
  tt = function(e = "", t = false) {
    return t ? (de(), Be(Rn, null, e)) : T(Rn, null, e);
  };
  function Ro(e) {
    return e == null || typeof e == "boolean" ? T(Rn) : pt(e) ? T(wt, null, e.slice()) : il(e) ? Ko(e) : T(Cl, null, String(e));
  }
  function Ko(e) {
    return e.el === null && e.patchFlag !== -1 || e.memo ? e : zr(e);
  }
  function Gp(e, t) {
    let n = 0;
    const { shapeFlag: r } = e;
    if (t == null) t = null;
    else if (pt(t)) n = 16;
    else if (typeof t == "object") if (r & 65) {
      const o = t.default;
      o && (o._c && (o._d = false), Gp(e, o()), o._c && (o._d = true));
      return;
    } else {
      n = 32;
      const o = t._;
      !o && !ax(t) ? t._ctx = Wn : o === 3 && Wn && (Wn.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
    }
    else yt(t) ? (t = {
      default: t,
      _ctx: Wn
    }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [
      Ae(t)
    ]) : n = 8);
    e.children = t, e.shapeFlag |= n;
  }
  function Mn(...e) {
    const t = {};
    for (let n = 0; n < e.length; n++) {
      const r = e[n];
      for (const o in r) if (o === "class") t.class !== r.class && (t.class = ti([
        t.class,
        r.class
      ]));
      else if (o === "style") t.style = Dp([
        t.style,
        r.style
      ]);
      else if (Hu(o)) {
        const i = t[o], a = r[o];
        a && i !== a && !(pt(i) && i.includes(a)) && (t[o] = i ? [].concat(i, a) : a);
      } else o !== "" && (t[o] = r[o]);
    }
    return t;
  }
  function go(e, t, n, r = null) {
    ao(e, t, 7, [
      n,
      r
    ]);
  }
  const gR = ex();
  let vR = 0;
  function bR(e, t, n) {
    const r = e.type, o = (t ? t.appContext : e.appContext) || gR, i = {
      uid: vR++,
      vnode: e,
      type: r,
      parent: t,
      appContext: o,
      root: null,
      next: null,
      subTree: null,
      effect: null,
      update: null,
      job: null,
      scope: new h1(true),
      render: null,
      proxy: null,
      exposed: null,
      exposeProxy: null,
      withProxy: null,
      provides: t ? t.provides : Object.create(o.provides),
      ids: t ? t.ids : [
        "",
        0,
        0
      ],
      accessCache: null,
      renderCache: [],
      components: null,
      directives: null,
      propsOptions: sx(r, o),
      emitsOptions: nx(r, o),
      emit: null,
      emitted: null,
      propsDefaults: jt,
      inheritAttrs: r.inheritAttrs,
      ctx: jt,
      data: jt,
      props: jt,
      attrs: jt,
      slots: jt,
      refs: jt,
      setupState: jt,
      setupContext: null,
      suspense: n,
      suspenseId: n ? n.pendingId : 0,
      asyncDep: null,
      asyncResolved: false,
      isMounted: false,
      isUnmounted: false,
      isDeactivated: false,
      bc: null,
      c: null,
      bm: null,
      m: null,
      bu: null,
      u: null,
      um: null,
      bum: null,
      da: null,
      a: null,
      rtg: null,
      rtc: null,
      ec: null,
      sp: null
    };
    return i.ctx = {
      _: i
    }, i.root = t ? t.root : i, i.emit = X3.bind(null, i), e.ce && e.ce(i), i;
  }
  let jn = null;
  const Vn = () => jn || Wn;
  let vu, gh;
  {
    const e = Vu(), t = (n, r) => {
      let o;
      return (o = e[n]) || (o = e[n] = []), o.push(r), (i) => {
        o.length > 1 ? o.forEach((a) => a(i)) : o[0](i);
      };
    };
    vu = t("__VUE_INSTANCE_SETTERS__", (n) => jn = n), gh = t("__VUE_SSR_SETTERS__", (n) => al = n);
  }
  const qs = (e) => {
    const t = jn;
    return vu(e), e.scope.on(), () => {
      e.scope.off(), vu(t);
    };
  }, Mg = () => {
    jn && jn.scope.off(), vu(null);
  };
  function vx(e) {
    return e.vnode.shapeFlag & 4;
  }
  let al = false;
  function yR(e, t = false, n = false) {
    t && gh(t);
    const { props: r, children: o } = e.vnode, i = vx(e);
    nR(e, r, i, t), aR(e, o, n || t);
    const a = i ? xR(e, t) : void 0;
    return t && gh(false), a;
  }
  function xR(e, t) {
    const n = e.type;
    e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, H3);
    const { setup: r } = n;
    if (r) {
      ni();
      const o = e.setupContext = r.length > 1 ? CR(e) : null, i = qs(e), a = js(r, e, 0, [
        e.props,
        o
      ]), l = a1(a);
      if (ri(), i(), (l || e.sp) && !el(e) && jp(e), l) {
        if (a.then(Mg, Mg), t) return a.then((s) => {
          Lg(e, s);
        }).catch((s) => {
          Ws(s, e, 0);
        });
        e.asyncDep = a;
      } else Lg(e, a);
    } else bx(e);
  }
  function Lg(e, t, n) {
    yt(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : Ut(t) && (e.setupState = $1(t)), bx(e);
  }
  function bx(e, t, n) {
    const r = e.type;
    e.render || (e.render = r.render || To);
    {
      const o = qs(e);
      ni();
      try {
        j3(e);
      } finally {
        ri(), o();
      }
    }
  }
  const wR = {
    get(e, t) {
      return Qn(e, "get", ""), e[t];
    }
  };
  function CR(e) {
    const t = (n) => {
      e.exposed = n || {};
    };
    return {
      attrs: new Proxy(e.attrs, wR),
      slots: e.slots,
      emit: e.emit,
      expose: t
    };
  }
  function ed(e) {
    return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy($1(ch(e.exposed)), {
      get(t, n) {
        if (n in t) return t[n];
        if (n in us) return us[n](e);
      },
      has(t, n) {
        return n in t || n in us;
      }
    })) : e.proxy;
  }
  function SR(e, t = true) {
    return yt(e) ? e.displayName || e.name : e.name || t && e.__name;
  }
  function _R(e) {
    return yt(e) && "__vccOpts" in e;
  }
  D = (e, t) => v3(e, t, al);
  g = function(e, t, n) {
    try {
      gu(-1);
      const r = arguments.length;
      return r === 2 ? Ut(t) && !pt(t) ? il(t) ? T(e, null, [
        t
      ]) : T(e, t) : T(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && il(n) && (n = [
        n
      ]), T(e, t, n));
    } finally {
      gu(1);
    }
  };
  const kR = "3.5.29";
  let vh;
  const Bg = typeof window < "u" && window.trustedTypes;
  if (Bg) try {
    vh = Bg.createPolicy("vue", {
      createHTML: (e) => e
    });
  } catch {
  }
  const yx = vh ? (e) => vh.createHTML(e) : (e) => e, RR = "http://www.w3.org/2000/svg", AR = "http://www.w3.org/1998/Math/MathML", Go = typeof document < "u" ? document : null, Ng = Go && Go.createElement("template"), ER = {
    insert: (e, t, n) => {
      t.insertBefore(e, n || null);
    },
    remove: (e) => {
      const t = e.parentNode;
      t && t.removeChild(e);
    },
    createElement: (e, t, n, r) => {
      const o = t === "svg" ? Go.createElementNS(RR, e) : t === "mathml" ? Go.createElementNS(AR, e) : n ? Go.createElement(e, {
        is: n
      }) : Go.createElement(e);
      return e === "select" && r && r.multiple != null && o.setAttribute("multiple", r.multiple), o;
    },
    createText: (e) => Go.createTextNode(e),
    createComment: (e) => Go.createComment(e),
    setText: (e, t) => {
      e.nodeValue = t;
    },
    setElementText: (e, t) => {
      e.textContent = t;
    },
    parentNode: (e) => e.parentNode,
    nextSibling: (e) => e.nextSibling,
    querySelector: (e) => Go.querySelector(e),
    setScopeId(e, t) {
      e.setAttribute(t, "");
    },
    insertStaticContent(e, t, n, r, o, i) {
      const a = n ? n.previousSibling : t.lastChild;
      if (o && (o === i || o.nextSibling)) for (; t.insertBefore(o.cloneNode(true), n), !(o === i || !(o = o.nextSibling)); ) ;
      else {
        Ng.innerHTML = yx(r === "svg" ? `<svg>${e}</svg>` : r === "mathml" ? `<math>${e}</math>` : e);
        const l = Ng.content;
        if (r === "svg" || r === "mathml") {
          const s = l.firstChild;
          for (; s.firstChild; ) l.appendChild(s.firstChild);
          l.removeChild(s);
        }
        t.insertBefore(l, n);
      }
      return [
        a ? a.nextSibling : t.firstChild,
        n ? n.previousSibling : t.lastChild
      ];
    }
  }, pi = "transition", Fl = "animation", ll = /* @__PURE__ */ Symbol("_vtc"), xx = {
    name: String,
    type: String,
    css: {
      type: Boolean,
      default: true
    },
    duration: [
      String,
      Number,
      Object
    ],
    enterFromClass: String,
    enterActiveClass: String,
    enterToClass: String,
    appearFromClass: String,
    appearActiveClass: String,
    appearToClass: String,
    leaveFromClass: String,
    leaveActiveClass: String,
    leaveToClass: String
  }, wx = Tn({}, U1, xx), TR = (e) => (e.displayName = "Transition", e.props = wx, e), Ln = TR((e, { slots: t }) => g(T3, Cx(e), t)), Wi = (e, t = []) => {
    pt(e) ? e.forEach((n) => n(...t)) : e && e(...t);
  }, Hg = (e) => e ? pt(e) ? e.some((t) => t.length > 1) : e.length > 1 : false;
  function Cx(e) {
    const t = {};
    for (const E in e) E in xx || (t[E] = e[E]);
    if (e.css === false) return t;
    const { name: n = "v", type: r, duration: o, enterFromClass: i = `${n}-enter-from`, enterActiveClass: a = `${n}-enter-active`, enterToClass: l = `${n}-enter-to`, appearFromClass: s = i, appearActiveClass: c = a, appearToClass: u = l, leaveFromClass: d = `${n}-leave-from`, leaveActiveClass: h = `${n}-leave-active`, leaveToClass: p = `${n}-leave-to` } = e, f = PR(o), m = f && f[0], b = f && f[1], { onBeforeEnter: v, onEnter: y, onEnterCancelled: w, onLeave: x, onLeaveCancelled: S, onBeforeAppear: _ = v, onAppear: C = y, onAppearCancelled: k = w } = t, R = (E, M, z, U) => {
      E._enterCancelled = U, yi(E, M ? u : l), yi(E, M ? c : a), z && z();
    }, P = (E, M) => {
      E._isLeaving = false, yi(E, d), yi(E, p), yi(E, h), M && M();
    }, B = (E) => (M, z) => {
      const U = E ? C : y, ee = () => R(M, E, z);
      Wi(U, [
        M,
        ee
      ]), jg(() => {
        yi(M, E ? s : i), wo(M, E ? u : l), Hg(U) || Wg(M, r, m, ee);
      });
    };
    return Tn(t, {
      onBeforeEnter(E) {
        Wi(v, [
          E
        ]), wo(E, i), wo(E, a);
      },
      onBeforeAppear(E) {
        Wi(_, [
          E
        ]), wo(E, s), wo(E, c);
      },
      onEnter: B(false),
      onAppear: B(true),
      onLeave(E, M) {
        E._isLeaving = true;
        const z = () => P(E, M);
        wo(E, d), E._enterCancelled ? (wo(E, h), bh(E)) : (bh(E), wo(E, h)), jg(() => {
          E._isLeaving && (yi(E, d), wo(E, p), Hg(x) || Wg(E, r, b, z));
        }), Wi(x, [
          E,
          z
        ]);
      },
      onEnterCancelled(E) {
        R(E, false, void 0, true), Wi(w, [
          E
        ]);
      },
      onAppearCancelled(E) {
        R(E, true, void 0, true), Wi(k, [
          E
        ]);
      },
      onLeaveCancelled(E) {
        P(E), Wi(S, [
          E
        ]);
      }
    });
  }
  function PR(e) {
    if (e == null) return null;
    if (Ut(e)) return [
      Zd(e.enter),
      Zd(e.leave)
    ];
    {
      const t = Zd(e);
      return [
        t,
        t
      ];
    }
  }
  function Zd(e) {
    return Mk(e);
  }
  function wo(e, t) {
    t.split(/\s+/).forEach((n) => n && e.classList.add(n)), (e[ll] || (e[ll] = /* @__PURE__ */ new Set())).add(t);
  }
  function yi(e, t) {
    t.split(/\s+/).forEach((r) => r && e.classList.remove(r));
    const n = e[ll];
    n && (n.delete(t), n.size || (e[ll] = void 0));
  }
  function jg(e) {
    requestAnimationFrame(() => {
      requestAnimationFrame(e);
    });
  }
  let DR = 0;
  function Wg(e, t, n, r) {
    const o = e._endId = ++DR, i = () => {
      o === e._endId && r();
    };
    if (n != null) return setTimeout(i, n);
    const { type: a, timeout: l, propCount: s } = Sx(e, t);
    if (!a) return r();
    const c = a + "end";
    let u = 0;
    const d = () => {
      e.removeEventListener(c, h), i();
    }, h = (p) => {
      p.target === e && ++u >= s && d();
    };
    setTimeout(() => {
      u < s && d();
    }, l + 1), e.addEventListener(c, h);
  }
  function Sx(e, t) {
    const n = window.getComputedStyle(e), r = (f) => (n[f] || "").split(", "), o = r(`${pi}Delay`), i = r(`${pi}Duration`), a = Ug(o, i), l = r(`${Fl}Delay`), s = r(`${Fl}Duration`), c = Ug(l, s);
    let u = null, d = 0, h = 0;
    t === pi ? a > 0 && (u = pi, d = a, h = i.length) : t === Fl ? c > 0 && (u = Fl, d = c, h = s.length) : (d = Math.max(a, c), u = d > 0 ? a > c ? pi : Fl : null, h = u ? u === pi ? i.length : s.length : 0);
    const p = u === pi && /\b(?:transform|all)(?:,|$)/.test(r(`${pi}Property`).toString());
    return {
      type: u,
      timeout: d,
      propCount: h,
      hasTransform: p
    };
  }
  function Ug(e, t) {
    for (; e.length < t.length; ) e = e.concat(e);
    return Math.max(...t.map((n, r) => Vg(n) + Vg(e[r])));
  }
  function Vg(e) {
    return e === "auto" ? 0 : Number(e.slice(0, -1).replace(",", ".")) * 1e3;
  }
  function bh(e) {
    return (e ? e.ownerDocument : document).body.offsetHeight;
  }
  function $R(e, t, n) {
    const r = e[ll];
    r && (t = (t ? [
      t,
      ...r
    ] : [
      ...r
    ]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
  }
  const bu = /* @__PURE__ */ Symbol("_vod"), _x = /* @__PURE__ */ Symbol("_vsh"), zo = {
    name: "show",
    beforeMount(e, { value: t }, { transition: n }) {
      e[bu] = e.style.display === "none" ? "" : e.style.display, n && t ? n.beforeEnter(e) : Ml(e, t);
    },
    mounted(e, { value: t }, { transition: n }) {
      n && t && n.enter(e);
    },
    updated(e, { value: t, oldValue: n }, { transition: r }) {
      !t != !n && (r ? t ? (r.beforeEnter(e), Ml(e, true), r.enter(e)) : r.leave(e, () => {
        Ml(e, false);
      }) : Ml(e, t));
    },
    beforeUnmount(e, { value: t }) {
      Ml(e, t);
    }
  };
  function Ml(e, t) {
    e.style.display = t ? e[bu] : "none", e[_x] = !t;
  }
  const zR = /* @__PURE__ */ Symbol(""), OR = /(?:^|;)\s*display\s*:/;
  function IR(e, t, n) {
    const r = e.style, o = bn(n);
    let i = false;
    if (n && !o) {
      if (t) if (bn(t)) for (const a of t.split(";")) {
        const l = a.slice(0, a.indexOf(":")).trim();
        n[l] == null && Jc(r, l, "");
      }
      else for (const a in t) n[a] == null && Jc(r, a, "");
      for (const a in n) a === "display" && (i = true), Jc(r, a, n[a]);
    } else if (o) {
      if (t !== n) {
        const a = r[zR];
        a && (n += ";" + a), r.cssText = n, i = OR.test(n);
      }
    } else t && e.removeAttribute("style");
    bu in e && (e[bu] = i ? r.display : "", e[_x] && (r.display = "none"));
  }
  const qg = /\s*!important$/;
  function Jc(e, t, n) {
    if (pt(n)) n.forEach((r) => Jc(e, t, r));
    else if (n == null && (n = ""), t.startsWith("--")) e.setProperty(t, n);
    else {
      const r = FR(e, t);
      qg.test(n) ? e.setProperty(li(r), n.replace(qg, ""), "important") : e[r] = n;
    }
  }
  const Gg = [
    "Webkit",
    "Moz",
    "ms"
  ], Qd = {};
  function FR(e, t) {
    const n = Qd[t];
    if (n) return n;
    let r = Pr(t);
    if (r !== "filter" && r in e) return Qd[t] = r;
    r = Uu(r);
    for (let o = 0; o < Gg.length; o++) {
      const i = Gg[o] + r;
      if (i in e) return Qd[t] = i;
    }
    return t;
  }
  const Kg = "http://www.w3.org/1999/xlink";
  function Yg(e, t, n, r, o, i = Wk(t)) {
    r && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(Kg, t.slice(6, t.length)) : e.setAttributeNS(Kg, t, n) : n == null || i && !u1(n) ? e.removeAttribute(t) : e.setAttribute(t, i ? "" : oo(n) ? String(n) : n);
  }
  function Xg(e, t, n, r, o) {
    if (t === "innerHTML" || t === "textContent") {
      n != null && (e[t] = t === "innerHTML" ? yx(n) : n);
      return;
    }
    const i = e.tagName;
    if (t === "value" && i !== "PROGRESS" && !i.includes("-")) {
      const l = i === "OPTION" ? e.getAttribute("value") || "" : e.value, s = n == null ? e.type === "checkbox" ? "on" : "" : String(n);
      (l !== s || !("_value" in e)) && (e.value = s), n == null && e.removeAttribute(t), e._value = n;
      return;
    }
    let a = false;
    if (n === "" || n == null) {
      const l = typeof e[t];
      l === "boolean" ? n = u1(n) : n == null && l === "string" ? (n = "", a = true) : l === "number" && (n = 0, a = true);
    }
    try {
      e[t] = n;
    } catch {
    }
    a && e.removeAttribute(o || t);
  }
  function MR(e, t, n, r) {
    e.addEventListener(t, n, r);
  }
  function LR(e, t, n, r) {
    e.removeEventListener(t, n, r);
  }
  const Jg = /* @__PURE__ */ Symbol("_vei");
  function BR(e, t, n, r, o = null) {
    const i = e[Jg] || (e[Jg] = {}), a = i[t];
    if (r && a) a.value = r;
    else {
      const [l, s] = NR(t);
      if (r) {
        const c = i[t] = WR(r, o);
        MR(e, l, c, s);
      } else a && (LR(e, l, a, s), i[t] = void 0);
    }
  }
  const Zg = /(?:Once|Passive|Capture)$/;
  function NR(e) {
    let t;
    if (Zg.test(e)) {
      t = {};
      let r;
      for (; r = e.match(Zg); ) e = e.slice(0, e.length - r[0].length), t[r[0].toLowerCase()] = true;
    }
    return [
      e[2] === ":" ? e.slice(3) : li(e.slice(2)),
      t
    ];
  }
  let ef = 0;
  const HR = Promise.resolve(), jR = () => ef || (HR.then(() => ef = 0), ef = Date.now());
  function WR(e, t) {
    const n = (r) => {
      if (!r._vts) r._vts = Date.now();
      else if (r._vts <= n.attached) return;
      ao(UR(r, n.value), t, 5, [
        r
      ]);
    };
    return n.value = e, n.attached = jR(), n;
  }
  function UR(e, t) {
    if (pt(t)) {
      const n = e.stopImmediatePropagation;
      return e.stopImmediatePropagation = () => {
        n.call(e), e._stopped = true;
      }, t.map((r) => (o) => !o._stopped && r && r(o));
    } else return t;
  }
  const Qg = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, VR = (e, t, n, r, o, i) => {
    const a = o === "svg";
    t === "class" ? $R(e, r, a) : t === "style" ? IR(e, n, r) : Hu(t) ? Tp(t) || BR(e, t, n, r, i) : (t[0] === "." ? (t = t.slice(1), true) : t[0] === "^" ? (t = t.slice(1), false) : qR(e, t, r, a)) ? (Xg(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Yg(e, t, r, a, i, t !== "value")) : e._isVueCE && (/[A-Z]/.test(t) || !bn(r)) ? Xg(e, Pr(t), r, i, t) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), Yg(e, t, r, a));
  };
  function qR(e, t, n, r) {
    if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && Qg(t) && yt(n));
    if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return false;
    if (t === "width" || t === "height") {
      const o = e.tagName;
      if (o === "IMG" || o === "VIDEO" || o === "CANVAS" || o === "SOURCE") return false;
    }
    return Qg(t) && bn(n) ? false : t in e;
  }
  const kx = /* @__PURE__ */ new WeakMap(), Rx = /* @__PURE__ */ new WeakMap(), yu = /* @__PURE__ */ Symbol("_moveCb"), ev = /* @__PURE__ */ Symbol("_enterCb"), GR = (e) => (delete e.props.mode, e), KR = GR({
    name: "TransitionGroup",
    props: Tn({}, wx, {
      tag: String,
      moveClass: String
    }),
    setup(e, { slots: t }) {
      const n = Vn(), r = W1();
      let o, i;
      return X1(() => {
        if (!o.length) return;
        const a = e.moveClass || `${e.name || "v"}-move`;
        if (!ZR(o[0].el, n.vnode.el, a)) {
          o = [];
          return;
        }
        o.forEach(YR), o.forEach(XR);
        const l = o.filter(JR);
        bh(n.vnode.el), l.forEach((s) => {
          const c = s.el, u = c.style;
          wo(c, a), u.transform = u.webkitTransform = u.transitionDuration = "";
          const d = c[yu] = (h) => {
            h && h.target !== c || (!h || h.propertyName.endsWith("transform")) && (c.removeEventListener("transitionend", d), c[yu] = null, yi(c, a));
          };
          c.addEventListener("transitionend", d);
        }), o = [];
      }), () => {
        const a = Bt(e), l = Cx(a);
        let s = a.tag || wt;
        if (o = [], i) for (let c = 0; c < i.length; c++) {
          const u = i[c];
          u.el && u.el instanceof Element && (o.push(u), fa(u, ks(u, l, r, n)), kx.set(u, Ax(u.el)));
        }
        i = t.default ? Hp(t.default()) : [];
        for (let c = 0; c < i.length; c++) {
          const u = i[c];
          u.key != null && fa(u, ks(u, l, r, n));
        }
        return T(s, null, i);
      };
    }
  }), Kp = KR;
  function YR(e) {
    const t = e.el;
    t[yu] && t[yu](), t[ev] && t[ev]();
  }
  function XR(e) {
    Rx.set(e, Ax(e.el));
  }
  function JR(e) {
    const t = kx.get(e), n = Rx.get(e), r = t.left - n.left, o = t.top - n.top;
    if (r || o) {
      const i = e.el, a = i.style, l = i.getBoundingClientRect();
      let s = 1, c = 1;
      return i.offsetWidth && (s = l.width / i.offsetWidth), i.offsetHeight && (c = l.height / i.offsetHeight), (!Number.isFinite(s) || s === 0) && (s = 1), (!Number.isFinite(c) || c === 0) && (c = 1), Math.abs(s - 1) < 0.01 && (s = 1), Math.abs(c - 1) < 0.01 && (c = 1), a.transform = a.webkitTransform = `translate(${r / s}px,${o / c}px)`, a.transitionDuration = "0s", e;
    }
  }
  function Ax(e) {
    const t = e.getBoundingClientRect();
    return {
      left: t.left,
      top: t.top
    };
  }
  function ZR(e, t, n) {
    const r = e.cloneNode(), o = e[ll];
    o && o.forEach((l) => {
      l.split(/\s+/).forEach((s) => s && r.classList.remove(s));
    }), n.split(/\s+/).forEach((l) => l && r.classList.add(l)), r.style.display = "none";
    const i = t.nodeType === 1 ? t : t.parentNode;
    i.appendChild(r);
    const { hasTransform: a } = Sx(r);
    return i.removeChild(r), a;
  }
  let QR, eA;
  QR = {
    esc: "escape",
    space: " ",
    up: "arrow-up",
    left: "arrow-left",
    right: "arrow-right",
    down: "arrow-down",
    delete: "backspace"
  };
  UX = (e, t) => {
    const n = e._withKeys || (e._withKeys = {}), r = t.join(".");
    return n[r] || (n[r] = ((o) => {
      if (!("key" in o)) return;
      const i = li(o.key);
      if (t.some((a) => a === i || QR[a] === i)) return e(o);
    }));
  };
  eA = Tn({
    patchProp: VR
  }, ER);
  let tv;
  function tA() {
    return tv || (tv = sR(eA));
  }
  const nA = ((...e) => {
    const t = tA().createApp(...e), { mount: n } = t;
    return t.mount = (r) => {
      const o = oA(r);
      if (!o) return;
      const i = t._component;
      !yt(i) && !i.render && !i.template && (i.template = o.innerHTML), o.nodeType === 1 && (o.textContent = "");
      const a = n(o, false, rA(o));
      return o instanceof Element && (o.removeAttribute("v-cloak"), o.setAttribute("data-v-app", "")), a;
    }, t;
  });
  function rA(e) {
    if (e instanceof SVGElement) return "svg";
    if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
  }
  function oA(e) {
    return bn(e) ? document.querySelector(e) : e;
  }
  function yh(e, t = {}, n) {
    for (const r in e) {
      const o = e[r], i = n ? `${n}:${r}` : r;
      typeof o == "object" && o !== null ? yh(o, t, i) : typeof o == "function" && (t[i] = o);
    }
    return t;
  }
  const Ex = (() => {
    if (console.createTask) return console.createTask;
    const e = {
      run: (t) => t()
    };
    return () => e;
  })();
  function Tx(e, t, n, r) {
    for (let o = n; o < e.length; o += 1) try {
      const i = r ? r.run(() => e[o](...t)) : e[o](...t);
      if (i instanceof Promise) return i.then(() => Tx(e, t, o + 1, r));
    } catch (i) {
      return Promise.reject(i);
    }
  }
  function iA(e, t, n) {
    if (e.length > 0) return Tx(e, t, 0, Ex(n));
  }
  function aA(e, t, n) {
    if (e.length > 0) {
      const r = Ex(n);
      return Promise.all(e.map((o) => r.run(() => o(...t))));
    }
  }
  function tf(e, t) {
    for (const n of [
      ...e
    ]) n(t);
  }
  var lA = class {
    constructor() {
      __publicField(this, "_hooks");
      __publicField(this, "_before");
      __publicField(this, "_after");
      __publicField(this, "_deprecatedHooks");
      __publicField(this, "_deprecatedMessages");
      this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
    }
    hook(e, t, n = {}) {
      if (!e || typeof t != "function") return () => {
      };
      const r = e;
      let o;
      for (; this._deprecatedHooks[e]; ) o = this._deprecatedHooks[e], e = o.to;
      if (o && !n.allowDeprecated) {
        let i = o.message;
        i || (i = `${r} hook has been deprecated` + (o.to ? `, please use ${o.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(i) || (console.warn(i), this._deprecatedMessages.add(i));
      }
      if (!t.name) try {
        Object.defineProperty(t, "name", {
          get: () => "_" + e.replace(/\W+/g, "_") + "_hook_cb",
          configurable: true
        });
      } catch {
      }
      return this._hooks[e] = this._hooks[e] || [], this._hooks[e].push(t), () => {
        t && (this.removeHook(e, t), t = void 0);
      };
    }
    hookOnce(e, t) {
      let n, r = (...o) => (typeof n == "function" && n(), n = void 0, r = void 0, t(...o));
      return n = this.hook(e, r), n;
    }
    removeHook(e, t) {
      const n = this._hooks[e];
      if (n) {
        const r = n.indexOf(t);
        r !== -1 && n.splice(r, 1), n.length === 0 && (this._hooks[e] = void 0);
      }
    }
    deprecateHook(e, t) {
      this._deprecatedHooks[e] = typeof t == "string" ? {
        to: t
      } : t;
      const n = this._hooks[e] || [];
      this._hooks[e] = void 0;
      for (const r of n) this.hook(e, r);
    }
    deprecateHooks(e) {
      for (const t in e) this.deprecateHook(t, e[t]);
    }
    addHooks(e) {
      const t = yh(e), n = Object.keys(t).map((r) => this.hook(r, t[r]));
      return () => {
        for (const r of n) r();
        n.length = 0;
      };
    }
    removeHooks(e) {
      const t = yh(e);
      for (const n in t) this.removeHook(n, t[n]);
    }
    removeAllHooks() {
      this._hooks = {};
    }
    callHook(e, ...t) {
      return this.callHookWith(iA, e, t);
    }
    callHookParallel(e, ...t) {
      return this.callHookWith(aA, e, t);
    }
    callHookWith(e, t, n) {
      const r = this._before || this._after ? {
        name: t,
        args: n,
        context: {}
      } : void 0;
      this._before && tf(this._before, r);
      const o = e(this._hooks[t] ? [
        ...this._hooks[t]
      ] : [], n, t);
      return o instanceof Promise ? o.finally(() => {
        this._after && r && tf(this._after, r);
      }) : (this._after && r && tf(this._after, r), o);
    }
    beforeEach(e) {
      return this._before = this._before || [], this._before.push(e), () => {
        if (this._before !== void 0) {
          const t = this._before.indexOf(e);
          t !== -1 && this._before.splice(t, 1);
        }
      };
    }
    afterEach(e) {
      return this._after = this._after || [], this._after.push(e), () => {
        if (this._after !== void 0) {
          const t = this._after.indexOf(e);
          t !== -1 && this._after.splice(t, 1);
        }
      };
    }
  };
  function sA() {
    return new lA();
  }
  const cA = /* @__PURE__ */ new Set([
    "link",
    "style",
    "script",
    "noscript"
  ]), uA = /* @__PURE__ */ new Set([
    "title",
    "titleTemplate",
    "script",
    "style",
    "noscript"
  ]), nv = /* @__PURE__ */ new Set([
    "base",
    "meta",
    "link",
    "style",
    "script",
    "noscript"
  ]), dA = /* @__PURE__ */ new Set([
    "title",
    "base",
    "htmlAttrs",
    "bodyAttrs",
    "meta",
    "link",
    "style",
    "script",
    "noscript"
  ]), fA = /* @__PURE__ */ new Set([
    "base",
    "title",
    "titleTemplate",
    "bodyAttrs",
    "htmlAttrs",
    "templateParams"
  ]), hA = /* @__PURE__ */ new Set([
    "key",
    "tagPosition",
    "tagPriority",
    "tagDuplicateStrategy",
    "innerHTML",
    "textContent",
    "processTemplateParams"
  ]), pA = /* @__PURE__ */ new Set([
    "onload",
    "onerror"
  ]), mA = /* @__PURE__ */ new Set([
    "templateParams",
    "htmlAttrs",
    "bodyAttrs"
  ]), gA = /* @__PURE__ */ new Set([
    "theme-color",
    "google-site-verification",
    "og",
    "article",
    "book",
    "profile",
    "twitter",
    "author"
  ]), vA = [
    "name",
    "property",
    "http-equiv"
  ], bA = /* @__PURE__ */ new Set([
    "viewport",
    "description",
    "keywords",
    "robots"
  ]);
  function Px(e) {
    const t = e.split(":");
    return t.length ? gA.has(t[1]) : false;
  }
  function xh(e) {
    const { props: t, tag: n } = e;
    if (fA.has(n)) return n;
    if (n === "link" && t.rel === "canonical") return "canonical";
    if (n === "link" && t.rel === "alternate") {
      const r = t.hreflang || t.type;
      if (r) return `alternate:${r}`;
    }
    if (t.charset) return "charset";
    if (e.tag === "meta") {
      for (const r of vA) if (t[r] !== void 0) {
        const o = t[r], i = o && typeof o == "string" && o.includes(":"), a = o && bA.has(o), s = !(i || a) && e.key ? `:key:${e.key}` : "";
        return `${n}:${o}${s}`;
      }
    }
    if (e.key) return `${n}:key:${e.key}`;
    if (t.id) return `${n}:id:${t.id}`;
    if (n === "link" && t.rel === "alternate") return `alternate:${t.href || ""}`;
    if (uA.has(n)) {
      const r = e.textContent || e.innerHTML;
      if (r) return `${n}:content:${r}`;
    }
  }
  function Dx(e) {
    const t = e._h || e._d;
    if (t) return t;
    const n = e.textContent || e.innerHTML;
    return n || `${e.tag}:${Object.entries(e.props).map(([r, o]) => `${r}:${String(o)}`).join(",")}`;
  }
  function xu(e, t, n) {
    typeof e === "function" && (!n || n !== "titleTemplate" && !(n[0] === "o" && n[1] === "n")) && (e = e());
    const o = t ? t(n, e) : e;
    if (Array.isArray(o)) return o.map((i) => xu(i, t));
    if ((o == null ? void 0 : o.constructor) === Object) {
      const i = {};
      for (const a of Object.keys(o)) i[a] = xu(o[a], t, a);
      return i;
    }
    return o;
  }
  function yA(e, t) {
    const n = e === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
    function r(o) {
      if (o == null || o === void 0) return;
      const i = String(o).trim();
      if (i) if (e === "style") {
        const [a, ...l] = i.split(":").map((s) => s ? s.trim() : "");
        a && l.length && n.set(a, l.join(":"));
      } else i.split(" ").filter(Boolean).forEach((a) => n.add(a));
    }
    return typeof t == "string" ? e === "style" ? t.split(";").forEach(r) : r(t) : Array.isArray(t) ? t.forEach((o) => r(o)) : t && typeof t == "object" && Object.entries(t).forEach(([o, i]) => {
      i && i !== "false" && (e === "style" ? n.set(String(o).trim(), String(i)) : r(o));
    }), n;
  }
  function $x(e, t) {
    return e.props = e.props || {}, t ? e.tag === "templateParams" ? (e.props = t, e) : (Object.entries(t).forEach(([n, r]) => {
      if (r === null) {
        e.props[n] = null;
        return;
      }
      if (n === "class" || n === "style") {
        e.props[n] = yA(n, r);
        return;
      }
      if (hA.has(n)) {
        if ([
          "textContent",
          "innerHTML"
        ].includes(n) && typeof r == "object") {
          let l = t.type;
          if (t.type || (l = "application/json"), !(l == null ? void 0 : l.endsWith("json")) && l !== "speculationrules") return;
          t.type = l, e.props.type = l, e[n] = JSON.stringify(r);
        } else e[n] = r;
        return;
      }
      const o = String(r), i = n.startsWith("data-"), a = e.tag === "meta" && n === "content";
      o === "true" || o === "" ? e.props[n] = i || a ? o : true : !r && i && o === "false" ? e.props[n] = "false" : r !== void 0 && (e.props[n] = r);
    }), e) : e;
  }
  function xA(e, t) {
    const n = typeof t == "object" && typeof t != "function" ? t : {
      [e === "script" || e === "noscript" || e === "style" ? "innerHTML" : "textContent"]: t
    }, r = $x({
      tag: e,
      props: {}
    }, n);
    return r.key && cA.has(r.tag) && (r.props["data-hid"] = r._h = r.key), r.tag === "script" && typeof r.innerHTML == "object" && (r.innerHTML = JSON.stringify(r.innerHTML), r.props.type = r.props.type || "application/json"), Array.isArray(r.props.content) ? r.props.content.map((o) => ({
      ...r,
      props: {
        ...r.props,
        content: o
      }
    })) : r;
  }
  function wA(e, t) {
    if (!e) return [];
    typeof e == "function" && (e = e());
    const n = (o, i) => {
      for (let a = 0; a < t.length; a++) i = t[a](o, i);
      return i;
    };
    e = n(void 0, e);
    const r = [];
    return e = xu(e, n), Object.entries(e || {}).forEach(([o, i]) => {
      if (i !== void 0) for (const a of Array.isArray(i) ? i : [
        i
      ]) r.push(xA(o, a));
    }), r.flat();
  }
  const rv = (e, t) => e._w === t._w ? e._p - t._p : e._w - t._w, ov = {
    base: -10,
    title: 10
  }, CA = {
    critical: -8,
    high: -1,
    low: 2
  }, iv = {
    meta: {
      "content-security-policy": -30,
      charset: -20,
      viewport: -15
    },
    link: {
      preconnect: 20,
      stylesheet: 60,
      preload: 70,
      modulepreload: 70,
      prefetch: 90,
      "dns-prefetch": 90,
      prerender: 90
    },
    script: {
      async: 30,
      defer: 80,
      sync: 50
    },
    style: {
      imported: 40,
      sync: 60
    }
  }, SA = /@import/, Ll = (e) => e === "" || e === true;
  function _A(e, t) {
    if (typeof t.tagPriority == "number") return t.tagPriority;
    let n = 100;
    const r = CA[t.tagPriority] || 0, o = e.resolvedOptions.disableCapoSorting ? {
      link: {},
      script: {},
      style: {}
    } : iv;
    if (t.tag in ov) n = ov[t.tag];
    else if (t.tag === "meta") {
      const i = t.props["http-equiv"] === "content-security-policy" ? "content-security-policy" : t.props.charset ? "charset" : t.props.name === "viewport" ? "viewport" : null;
      i && (n = iv.meta[i]);
    } else if (t.tag === "link" && t.props.rel) n = o.link[t.props.rel];
    else if (t.tag === "script") {
      const i = String(t.props.type);
      Ll(t.props.async) ? n = o.script.async : t.props.src && !Ll(t.props.defer) && !Ll(t.props.async) && i !== "module" && !i.endsWith("json") || t.innerHTML && !i.endsWith("json") ? n = o.script.sync : (Ll(t.props.defer) && t.props.src && !Ll(t.props.async) || i === "module") && (n = o.script.defer);
    } else t.tag === "style" && (n = t.innerHTML && SA.test(t.innerHTML) ? o.style.imported : o.style.sync);
    return (n || 100) + r;
  }
  function av(e, t) {
    const n = typeof t == "function" ? t(e) : t, r = n.key || String(e.plugins.size + 1);
    e.plugins.get(r) || (e.plugins.set(r, n), e.hooks.addHooks(n.hooks || {}));
  }
  function kA(e = {}) {
    var _a2;
    const t = sA();
    t.addHooks(e.hooks || {});
    const n = !e.document, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = {
      _entryCount: 1,
      plugins: o,
      dirty: false,
      resolvedOptions: e,
      hooks: t,
      ssr: n,
      entries: r,
      headEntries() {
        return [
          ...r.values()
        ];
      },
      use: (l) => av(a, l),
      push(l, s) {
        const c = {
          ...s || {}
        };
        delete c.head;
        const u = c._index ?? a._entryCount++, d = {
          _i: u,
          input: l,
          options: c
        }, h = {
          _poll(p = false) {
            a.dirty = true, !p && i.add(u), t.callHook("entries:updated", a);
          },
          dispose() {
            r.delete(u) && a.invalidate();
          },
          patch(p) {
            (!c.mode || c.mode === "server" && n || c.mode === "client" && !n) && (d.input = p, r.set(u, d), h._poll());
          }
        };
        return h.patch(l), h;
      },
      async resolveTags() {
        const l = {
          tagMap: /* @__PURE__ */ new Map(),
          tags: [],
          entries: [
            ...a.entries.values()
          ]
        };
        for (await t.callHook("entries:resolve", l); i.size; ) {
          const h = i.values().next().value;
          i.delete(h);
          const p = r.get(h);
          if (p) {
            const f = {
              tags: wA(p.input, e.propResolvers || []).map((m) => Object.assign(m, p.options)),
              entry: p
            };
            await t.callHook("entries:normalize", f), p._tags = f.tags.map((m, b) => (m._w = _A(a, m), m._p = (p._i << 10) + b, m._d = xh(m), m._d || (m._h = Dx(m)), m));
          }
        }
        let s = false;
        l.entries.flatMap((h) => (h._tags || []).map((p) => ({
          ...p,
          props: {
            ...p.props
          }
        }))).sort(rv).reduce((h, p) => {
          const f = p._d || p._h;
          if (!h.has(f)) return h.set(f, p);
          const m = h.get(f);
          if (((p == null ? void 0 : p.tagDuplicateStrategy) || (mA.has(p.tag) ? "merge" : null) || (p.key && p.key === m.key ? "merge" : null)) === "merge") {
            const v = {
              ...m.props
            };
            Object.entries(p.props).forEach(([y, w]) => v[y] = y === "style" ? new Map([
              ...m.props.style || /* @__PURE__ */ new Map(),
              ...w
            ]) : y === "class" ? /* @__PURE__ */ new Set([
              ...m.props.class || /* @__PURE__ */ new Set(),
              ...w
            ]) : w), h.set(f, {
              ...p,
              props: v
            });
          } else p._p >> 10 === m._p >> 10 && p.tag === "meta" && Px(f) ? (h.set(f, Object.assign([
            ...Array.isArray(m) ? m : [
              m
            ],
            p
          ], p)), s = true) : (p._w === m._w ? p._p > m._p : (p == null ? void 0 : p._w) < (m == null ? void 0 : m._w)) && h.set(f, p);
          return h;
        }, l.tagMap);
        const c = l.tagMap.get("title"), u = l.tagMap.get("titleTemplate");
        if (a._title = c == null ? void 0 : c.textContent, u) {
          const h = u == null ? void 0 : u.textContent;
          if (a._titleTemplate = h, h) {
            let p = typeof h == "function" ? h(c == null ? void 0 : c.textContent) : h;
            typeof p == "string" && !a.plugins.has("template-params") && (p = p.replace("%s", (c == null ? void 0 : c.textContent) || "")), c ? p === null ? l.tagMap.delete("title") : l.tagMap.set("title", {
              ...c,
              textContent: p
            }) : (u.tag = "title", u.textContent = p);
          }
        }
        l.tags = Array.from(l.tagMap.values()), s && (l.tags = l.tags.flat().sort(rv)), await t.callHook("tags:beforeResolve", l), await t.callHook("tags:resolve", l), await t.callHook("tags:afterResolve", l);
        const d = [];
        for (const h of l.tags) {
          const { innerHTML: p, tag: f, props: m } = h;
          if (dA.has(f) && !(Object.keys(m).length === 0 && !h.innerHTML && !h.textContent) && !(f === "meta" && !m.content && !m["http-equiv"] && !m.charset)) {
            if (f === "script" && p) {
              if (String(m.type).endsWith("json")) {
                const b = typeof p == "string" ? p : JSON.stringify(p);
                h.innerHTML = b.replace(/</g, "\\u003C");
              } else typeof p == "string" && (h.innerHTML = p.replace(new RegExp(`</${f}`, "g"), `<\\/${f}`));
              h._d = xh(h);
            }
            d.push(h);
          }
        }
        return d;
      },
      invalidate() {
        for (const l of r.values()) i.add(l._i);
        a.dirty = true, t.callHook("entries:updated", a);
      }
    };
    return ((e == null ? void 0 : e.plugins) || []).forEach((l) => av(a, l)), a.hooks.callHook("init", a), (_a2 = e.init) == null ? void 0 : _a2.forEach((l) => l && a.push(l)), a;
  }
  async function zx(e, t = {}) {
    const n = t.document || e.resolvedOptions.document;
    if (!n || !e.dirty) return;
    const r = {
      shouldRender: true,
      tags: []
    };
    if (await e.hooks.callHook("dom:beforeRender", r), !!r.shouldRender) return e._domUpdatePromise || (e._domUpdatePromise = new Promise(async (o) => {
      var _a2;
      const i = /* @__PURE__ */ new Map(), a = new Promise((p) => {
        e.resolveTags().then((f) => {
          p(f.map((m) => {
            const b = i.get(m._d) || 0, v = {
              tag: m,
              id: (b ? `${m._d}:${b}` : m._d) || m._h,
              shouldRender: true
            };
            return m._d && Px(m._d) && i.set(m._d, b + 1), v;
          }));
        });
      });
      let l = e._dom;
      if (!l) {
        l = {
          title: n.title,
          elMap: (/* @__PURE__ */ new Map()).set("htmlAttrs", n.documentElement).set("bodyAttrs", n.body)
        };
        for (const p of [
          "body",
          "head"
        ]) {
          const f = (_a2 = n[p]) == null ? void 0 : _a2.children;
          for (const m of f) {
            const b = m.tagName.toLowerCase();
            if (!nv.has(b)) continue;
            const v = $x({
              tag: b,
              props: {}
            }, {
              innerHTML: m.innerHTML,
              ...m.getAttributeNames().reduce((y, w) => (y[w] = m.getAttribute(w), y), {}) || {}
            });
            if (v.key = m.getAttribute("data-hid") || void 0, v._d = xh(v) || Dx(v), l.elMap.has(v._d)) {
              let y = 1, w = v._d;
              for (; l.elMap.has(w); ) w = `${v._d}:${y++}`;
              l.elMap.set(w, m);
            } else l.elMap.set(v._d, m);
          }
        }
      }
      l.pendingSideEffects = {
        ...l.sideEffects
      }, l.sideEffects = {};
      function s(p, f, m) {
        const b = `${p}:${f}`;
        l.sideEffects[b] = m, delete l.pendingSideEffects[b];
      }
      function c({ id: p, $el: f, tag: m }) {
        const b = m.tag.endsWith("Attrs");
        l.elMap.set(p, f), b || (m.textContent && m.textContent !== f.textContent && (f.textContent = m.textContent), m.innerHTML && m.innerHTML !== f.innerHTML && (f.innerHTML = m.innerHTML), s(p, "el", () => {
          f == null ? void 0 : f.remove(), l.elMap.delete(p);
        }));
        for (const v in m.props) {
          if (!Object.prototype.hasOwnProperty.call(m.props, v)) continue;
          const y = m.props[v];
          if (v.startsWith("on") && typeof y == "function") {
            const x = f == null ? void 0 : f.dataset;
            if (x && x[`${v}fired`]) {
              const S = v.slice(0, -5);
              y.call(f, new Event(S.substring(2)));
            }
            f.getAttribute(`data-${v}`) !== "" && ((m.tag === "bodyAttrs" ? n.defaultView : f).addEventListener(v.substring(2), y.bind(f)), f.setAttribute(`data-${v}`, ""));
            continue;
          }
          const w = `attr:${v}`;
          if (v === "class") {
            if (!y) continue;
            for (const x of y) b && s(p, `${w}:${x}`, () => f.classList.remove(x)), !f.classList.contains(x) && f.classList.add(x);
          } else if (v === "style") {
            if (!y) continue;
            for (const [x, S] of y) s(p, `${w}:${x}`, () => {
              f.style.removeProperty(x);
            }), f.style.setProperty(x, S);
          } else y !== false && y !== null && (f.getAttribute(v) !== y && f.setAttribute(v, y === true ? "" : String(y)), b && s(p, w, () => f.removeAttribute(v)));
        }
      }
      const u = [], d = {
        bodyClose: void 0,
        bodyOpen: void 0,
        head: void 0
      }, h = await a;
      for (const p of h) {
        const { tag: f, shouldRender: m, id: b } = p;
        if (m) {
          if (f.tag === "title") {
            n.title = f.textContent, s("title", "", () => n.title = l.title);
            continue;
          }
          p.$el = p.$el || l.elMap.get(b), p.$el ? c(p) : nv.has(f.tag) && u.push(p);
        }
      }
      for (const p of u) {
        const f = p.tag.tagPosition || "head";
        p.$el = n.createElement(p.tag.tag), c(p), d[f] = d[f] || n.createDocumentFragment(), d[f].appendChild(p.$el);
      }
      for (const p of h) await e.hooks.callHook("dom:renderTag", p, n, s);
      d.head && n.head.appendChild(d.head), d.bodyOpen && n.body.insertBefore(d.bodyOpen, n.body.firstChild), d.bodyClose && n.body.appendChild(d.bodyClose);
      for (const p in l.pendingSideEffects) l.pendingSideEffects[p]();
      e._dom = l, await e.hooks.callHook("dom:rendered", {
        renders: h
      }), o();
    }).finally(() => {
      e._domUpdatePromise = void 0, e.dirty = false;
    })), e._domUpdatePromise;
  }
  function RA(e = {}) {
    var _a2, _b2, _c2;
    const t = ((_a2 = e.domOptions) == null ? void 0 : _a2.render) || zx;
    e.document = e.document || (typeof window < "u" ? document : void 0);
    const n = ((_c2 = (_b2 = e.document) == null ? void 0 : _b2.head.querySelector('script[id="unhead:payload"]')) == null ? void 0 : _c2.innerHTML) || false;
    return kA({
      ...e,
      plugins: [
        ...e.plugins || [],
        {
          key: "client",
          hooks: {
            "entries:updated": t
          }
        }
      ],
      init: [
        n ? JSON.parse(n) : false,
        ...e.init || []
      ]
    });
  }
  function AA(e, t) {
    let n = 0;
    return () => {
      const r = ++n;
      t(() => {
        n === r && e();
      });
    };
  }
  const EA = (e, t) => kt(t) ? no(t) : t, Ox = "usehead";
  function TA(e) {
    return {
      install(n) {
        n.config.globalProperties.$unhead = e, n.config.globalProperties.$head = e, n.provide(Ox, e);
      }
    }.install;
  }
  function Ix() {
    if (Bp()) {
      const e = je(Ox);
      if (e) return e;
    }
    throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
  }
  function PA(e, t = {}) {
    const n = t.head || Ix();
    return n.ssr ? n.push(e || {}, t) : DA(n, e, t);
  }
  function DA(e, t, n = {}) {
    const r = L(false);
    let o;
    return fn(() => {
      const a = r.value ? {} : xu(t, EA);
      o ? o.patch(a) : o = e.push(a, n);
    }), Vn() && (Zt(() => {
      o.dispose();
    }), Vs(() => {
      r.value = true;
    }), Xu(() => {
      r.value = false;
    })), o;
  }
  function $A(e = {}) {
    const t = RA({
      domOptions: {
        render: AA(() => zx(t), (n) => setTimeout(n, 0))
      },
      ...e
    });
    return t.install = TA(t), t;
  }
  function zA(e) {
    let t = ".", n = "__", r = "--", o;
    if (e) {
      let f = e.blockPrefix;
      f && (t = f), f = e.elementPrefix, f && (n = f), f = e.modifierPrefix, f && (r = f);
    }
    const i = {
      install(f) {
        o = f.c;
        const m = f.context;
        m.bem = {}, m.bem.b = null, m.bem.els = null;
      }
    };
    function a(f) {
      let m, b;
      return {
        before(v) {
          m = v.bem.b, b = v.bem.els, v.bem.els = null;
        },
        after(v) {
          v.bem.b = m, v.bem.els = b;
        },
        $({ context: v, props: y }) {
          return f = typeof f == "string" ? f : f({
            context: v,
            props: y
          }), v.bem.b = f, `${(y == null ? void 0 : y.bPrefix) || t}${v.bem.b}`;
        }
      };
    }
    function l(f) {
      let m;
      return {
        before(b) {
          m = b.bem.els;
        },
        after(b) {
          b.bem.els = m;
        },
        $({ context: b, props: v }) {
          return f = typeof f == "string" ? f : f({
            context: b,
            props: v
          }), b.bem.els = f.split(",").map((y) => y.trim()), b.bem.els.map((y) => `${(v == null ? void 0 : v.bPrefix) || t}${b.bem.b}${n}${y}`).join(", ");
        }
      };
    }
    function s(f) {
      return {
        $({ context: m, props: b }) {
          f = typeof f == "string" ? f : f({
            context: m,
            props: b
          });
          const v = f.split(",").map((x) => x.trim());
          function y(x) {
            return v.map((S) => `&${(b == null ? void 0 : b.bPrefix) || t}${m.bem.b}${x !== void 0 ? `${n}${x}` : ""}${r}${S}`).join(", ");
          }
          const w = m.bem.els;
          return w !== null ? y(w[0]) : y();
        }
      };
    }
    function c(f) {
      return {
        $({ context: m, props: b }) {
          f = typeof f == "string" ? f : f({
            context: m,
            props: b
          });
          const v = m.bem.els;
          return `&:not(${(b == null ? void 0 : b.bPrefix) || t}${m.bem.b}${v !== null && v.length > 0 ? `${n}${v[0]}` : ""}${r}${f})`;
        }
      };
    }
    return Object.assign(i, {
      cB: ((...f) => o(a(f[0]), f[1], f[2])),
      cE: ((...f) => o(l(f[0]), f[1], f[2])),
      cM: ((...f) => o(s(f[0]), f[1], f[2])),
      cNotM: ((...f) => o(c(f[0]), f[1], f[2]))
    }), i;
  }
  function OA(e) {
    let t = 0;
    for (let n = 0; n < e.length; ++n) e[n] === "&" && ++t;
    return t;
  }
  const Fx = /\s*,(?![^(]*\))\s*/g, IA = /\s+/g;
  function FA(e, t) {
    const n = [];
    return t.split(Fx).forEach((r) => {
      let o = OA(r);
      if (o) {
        if (o === 1) {
          e.forEach((a) => {
            n.push(r.replace("&", a));
          });
          return;
        }
      } else {
        e.forEach((a) => {
          n.push((a && a + " ") + r);
        });
        return;
      }
      let i = [
        r
      ];
      for (; o--; ) {
        const a = [];
        i.forEach((l) => {
          e.forEach((s) => {
            a.push(l.replace("&", s));
          });
        }), i = a;
      }
      i.forEach((a) => n.push(a));
    }), n;
  }
  function MA(e, t) {
    const n = [];
    return t.split(Fx).forEach((r) => {
      e.forEach((o) => {
        n.push((o && o + " ") + r);
      });
    }), n;
  }
  function LA(e) {
    let t = [
      ""
    ];
    return e.forEach((n) => {
      n = n && n.trim(), n && (n.includes("&") ? t = FA(t, n) : t = MA(t, n));
    }), t.join(", ").replace(IA, " ");
  }
  function lv(e) {
    if (!e) return;
    const t = e.parentElement;
    t && t.removeChild(e);
  }
  function td(e, t) {
    return (t ?? document.head).querySelector(`style[cssr-id="${e}"]`);
  }
  function BA(e) {
    const t = document.createElement("style");
    return t.setAttribute("cssr-id", e), t;
  }
  function wc(e) {
    return e ? /^\s*@(s|m)/.test(e) : false;
  }
  const NA = /[A-Z]/g;
  function Mx(e) {
    return e.replace(NA, (t) => "-" + t.toLowerCase());
  }
  function HA(e, t = "  ") {
    return typeof e == "object" && e !== null ? ` {
` + Object.entries(e).map((n) => t + `  ${Mx(n[0])}: ${n[1]};`).join(`
`) + `
` + t + "}" : `: ${e};`;
  }
  function jA(e, t, n) {
    return typeof e == "function" ? e({
      context: t.context,
      props: n
    }) : e;
  }
  function sv(e, t, n, r) {
    if (!t) return "";
    const o = jA(t, n, r);
    if (!o) return "";
    if (typeof o == "string") return `${e} {
${o}
}`;
    const i = Object.keys(o);
    if (i.length === 0) return n.config.keepEmptyBlock ? e + ` {
}` : "";
    const a = e ? [
      e + " {"
    ] : [];
    return i.forEach((l) => {
      const s = o[l];
      if (l === "raw") {
        a.push(`
` + s + `
`);
        return;
      }
      l = Mx(l), s != null && a.push(`  ${l}${HA(s)}`);
    }), e && a.push("}"), a.join(`
`);
  }
  function wh(e, t, n) {
    e && e.forEach((r) => {
      if (Array.isArray(r)) wh(r, t, n);
      else if (typeof r == "function") {
        const o = r(t);
        Array.isArray(o) ? wh(o, t, n) : o && n(o);
      } else r && n(r);
    });
  }
  function Lx(e, t, n, r, o) {
    const i = e.$;
    let a = "";
    if (!i || typeof i == "string") wc(i) ? a = i : t.push(i);
    else if (typeof i == "function") {
      const c = i({
        context: r.context,
        props: o
      });
      wc(c) ? a = c : t.push(c);
    } else if (i.before && i.before(r.context), !i.$ || typeof i.$ == "string") wc(i.$) ? a = i.$ : t.push(i.$);
    else if (i.$) {
      const c = i.$({
        context: r.context,
        props: o
      });
      wc(c) ? a = c : t.push(c);
    }
    const l = LA(t), s = sv(l, e.props, r, o);
    a ? n.push(`${a} {`) : s.length && n.push(s), e.children && wh(e.children, {
      context: r.context,
      props: o
    }, (c) => {
      if (typeof c == "string") {
        const u = sv(l, {
          raw: c
        }, r, o);
        n.push(u);
      } else Lx(c, t, n, r, o);
    }), t.pop(), a && n.push("}"), i && i.after && i.after(r.context);
  }
  function WA(e, t, n) {
    const r = [];
    return Lx(e, [], r, t, n), r.join(`

`);
  }
  function sl(e) {
    for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4) n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, t = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
    switch (o) {
      case 3:
        t ^= (e.charCodeAt(r + 2) & 255) << 16;
      case 2:
        t ^= (e.charCodeAt(r + 1) & 255) << 8;
      case 1:
        t ^= e.charCodeAt(r) & 255, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
    }
    return t ^= t >>> 13, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
  }
  typeof window < "u" && (window.__cssrContext = {});
  function UA(e, t, n, r) {
    const { els: o } = t;
    if (n === void 0) o.forEach(lv), t.els = [];
    else {
      const i = td(n, r);
      i && o.includes(i) && (lv(i), t.els = o.filter((a) => a !== i));
    }
  }
  function cv(e, t) {
    e.push(t);
  }
  function VA(e, t, n, r, o, i, a, l, s) {
    let c;
    if (n === void 0 && (c = t.render(r), n = sl(c)), s) {
      s.adapter(n, c ?? t.render(r));
      return;
    }
    l === void 0 && (l = document.head);
    const u = td(n, l);
    if (u !== null && !i) return u;
    const d = u ?? BA(n);
    if (c === void 0 && (c = t.render(r)), d.textContent = c, u !== null) return u;
    if (a) {
      const h = l.querySelector(`meta[name="${a}"]`);
      if (h) return l.insertBefore(d, h), cv(t.els, d), d;
    }
    return o ? l.insertBefore(d, l.querySelector("style, link")) : l.appendChild(d), cv(t.els, d), d;
  }
  function qA(e) {
    return WA(this, this.instance, e);
  }
  function GA(e = {}) {
    const { id: t, ssr: n, props: r, head: o = false, force: i = false, anchorMetaName: a, parent: l } = e;
    return VA(this.instance, this, t, r, o, i, a, l, n);
  }
  function KA(e = {}) {
    const { id: t, parent: n } = e;
    UA(this.instance, this, t, n);
  }
  const Cc = function(e, t, n, r) {
    return {
      instance: e,
      $: t,
      props: n,
      children: r,
      els: [],
      render: qA,
      mount: GA,
      unmount: KA
    };
  }, YA = function(e, t, n, r) {
    return Array.isArray(t) ? Cc(e, {
      $: null
    }, null, t) : Array.isArray(n) ? Cc(e, t, null, n) : Array.isArray(r) ? Cc(e, t, n, r) : Cc(e, t, n, null);
  };
  function Bx(e = {}) {
    const t = {
      c: ((...n) => YA(t, ...n)),
      use: (n, ...r) => n.install(t, ...r),
      find: td,
      context: {},
      config: e
    };
    return t;
  }
  function XA(e, t) {
    if (e === void 0) return false;
    if (t) {
      const { context: { ids: n } } = t;
      return n.has(e);
    }
    return td(e) !== null;
  }
  const JA = "n", As = `.${JA}-`, ZA = "__", QA = "--", Nx = Bx(), Hx = zA({
    blockPrefix: As,
    elementPrefix: ZA,
    modifierPrefix: QA
  });
  Nx.use(Hx);
  let VX, G, At;
  ({ c: W, find: VX } = Nx);
  ({ cB: A, cE: V, cM: G, cNotM: At } = Hx);
  function ya(e) {
    return W(({ props: { bPrefix: t } }) => `${t || As}modal, ${t || As}drawer`, [
      e
    ]);
  }
  function Sl(e) {
    return W(({ props: { bPrefix: t } }) => `${t || As}popover`, [
      e
    ]);
  }
  function jx(e) {
    return W(({ props: { bPrefix: t } }) => `&${t || As}modal`, e);
  }
  const eE = (...e) => W(">", [
    A(...e)
  ]);
  function Se(e, t) {
    return e + (t === "default" ? "" : t.replace(/^[a-z]/, (n) => n.toUpperCase()));
  }
  let wu = [];
  const Wx = /* @__PURE__ */ new WeakMap();
  function tE() {
    wu.forEach((e) => e(...Wx.get(e))), wu = [];
  }
  function Es(e, ...t) {
    Wx.set(e, t), !wu.includes(e) && wu.push(e) === 1 && requestAnimationFrame(tE);
  }
  function nE(e) {
    return e.nodeType === 9 ? null : e.parentNode;
  }
  function Ux(e) {
    if (e === null) return null;
    const t = nE(e);
    if (t === null) return null;
    if (t.nodeType === 9) return document.documentElement;
    if (t.nodeType === 1) {
      const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
      if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
    }
    return Ux(t);
  }
  function rE(e) {
    return typeof e == "string" ? document.querySelector(e) : typeof e == "function" ? e() : e;
  }
  function mr(e, t) {
    let { target: n } = e;
    for (; n; ) {
      if (n.dataset && n.dataset[t] !== void 0) return true;
      n = n.parentElement;
    }
    return false;
  }
  function cl(e) {
    return e.composedPath()[0] || null;
  }
  function oE(e) {
    if (typeof e == "number") return {
      "": e.toString()
    };
    const t = {};
    return e.split(/ +/).forEach((n) => {
      if (n === "") return;
      const [r, o] = n.split(":");
      o === void 0 ? t[""] = r : t[r] = o;
    }), t;
  }
  function Fa(e, t) {
    var n;
    if (e == null) return;
    const r = oE(e);
    if (t === void 0) return r[""];
    if (typeof t == "string") return (n = r[t]) !== null && n !== void 0 ? n : r[""];
    if (Array.isArray(t)) {
      for (let o = t.length - 1; o >= 0; --o) {
        const i = t[o];
        if (i in r) return r[i];
      }
      return r[""];
    } else {
      let o, i = -1;
      return Object.keys(r).forEach((a) => {
        const l = Number(a);
        !Number.isNaN(l) && t >= l && l >= i && (i = l, o = r[a]);
      }), o;
    }
  }
  function pn(e) {
    return typeof e == "string" ? e.endsWith("px") ? Number(e.slice(0, e.length - 2)) : Number(e) : e;
  }
  function tn(e) {
    if (e != null) return typeof e == "number" ? `${e}px` : e.endsWith("px") ? e : `${e}px`;
  }
  function En(e, t) {
    const n = e.trim().split(/\s+/g), r = {
      top: n[0]
    };
    switch (n.length) {
      case 1:
        r.right = n[0], r.bottom = n[0], r.left = n[0];
        break;
      case 2:
        r.right = n[1], r.left = n[1], r.bottom = n[0];
        break;
      case 3:
        r.right = n[1], r.bottom = n[2], r.left = n[1];
        break;
      case 4:
        r.right = n[1], r.bottom = n[2], r.left = n[3];
        break;
      default:
        throw new Error("[seemly/getMargin]:" + e + " is not a valid value.");
    }
    return t === void 0 ? r : r[t];
  }
  function Vx(e, t) {
    const [n, r] = e.split(" ");
    return {
      row: n,
      col: r || n
    };
  }
  const uv = {
    aliceblue: "#F0F8FF",
    antiquewhite: "#FAEBD7",
    aqua: "#0FF",
    aquamarine: "#7FFFD4",
    azure: "#F0FFFF",
    beige: "#F5F5DC",
    bisque: "#FFE4C4",
    black: "#000",
    blanchedalmond: "#FFEBCD",
    blue: "#00F",
    blueviolet: "#8A2BE2",
    brown: "#A52A2A",
    burlywood: "#DEB887",
    cadetblue: "#5F9EA0",
    chartreuse: "#7FFF00",
    chocolate: "#D2691E",
    coral: "#FF7F50",
    cornflowerblue: "#6495ED",
    cornsilk: "#FFF8DC",
    crimson: "#DC143C",
    cyan: "#0FF",
    darkblue: "#00008B",
    darkcyan: "#008B8B",
    darkgoldenrod: "#B8860B",
    darkgray: "#A9A9A9",
    darkgrey: "#A9A9A9",
    darkgreen: "#006400",
    darkkhaki: "#BDB76B",
    darkmagenta: "#8B008B",
    darkolivegreen: "#556B2F",
    darkorange: "#FF8C00",
    darkorchid: "#9932CC",
    darkred: "#8B0000",
    darksalmon: "#E9967A",
    darkseagreen: "#8FBC8F",
    darkslateblue: "#483D8B",
    darkslategray: "#2F4F4F",
    darkslategrey: "#2F4F4F",
    darkturquoise: "#00CED1",
    darkviolet: "#9400D3",
    deeppink: "#FF1493",
    deepskyblue: "#00BFFF",
    dimgray: "#696969",
    dimgrey: "#696969",
    dodgerblue: "#1E90FF",
    firebrick: "#B22222",
    floralwhite: "#FFFAF0",
    forestgreen: "#228B22",
    fuchsia: "#F0F",
    gainsboro: "#DCDCDC",
    ghostwhite: "#F8F8FF",
    gold: "#FFD700",
    goldenrod: "#DAA520",
    gray: "#808080",
    grey: "#808080",
    green: "#008000",
    greenyellow: "#ADFF2F",
    honeydew: "#F0FFF0",
    hotpink: "#FF69B4",
    indianred: "#CD5C5C",
    indigo: "#4B0082",
    ivory: "#FFFFF0",
    khaki: "#F0E68C",
    lavender: "#E6E6FA",
    lavenderblush: "#FFF0F5",
    lawngreen: "#7CFC00",
    lemonchiffon: "#FFFACD",
    lightblue: "#ADD8E6",
    lightcoral: "#F08080",
    lightcyan: "#E0FFFF",
    lightgoldenrodyellow: "#FAFAD2",
    lightgray: "#D3D3D3",
    lightgrey: "#D3D3D3",
    lightgreen: "#90EE90",
    lightpink: "#FFB6C1",
    lightsalmon: "#FFA07A",
    lightseagreen: "#20B2AA",
    lightskyblue: "#87CEFA",
    lightslategray: "#778899",
    lightslategrey: "#778899",
    lightsteelblue: "#B0C4DE",
    lightyellow: "#FFFFE0",
    lime: "#0F0",
    limegreen: "#32CD32",
    linen: "#FAF0E6",
    magenta: "#F0F",
    maroon: "#800000",
    mediumaquamarine: "#66CDAA",
    mediumblue: "#0000CD",
    mediumorchid: "#BA55D3",
    mediumpurple: "#9370DB",
    mediumseagreen: "#3CB371",
    mediumslateblue: "#7B68EE",
    mediumspringgreen: "#00FA9A",
    mediumturquoise: "#48D1CC",
    mediumvioletred: "#C71585",
    midnightblue: "#191970",
    mintcream: "#F5FFFA",
    mistyrose: "#FFE4E1",
    moccasin: "#FFE4B5",
    navajowhite: "#FFDEAD",
    navy: "#000080",
    oldlace: "#FDF5E6",
    olive: "#808000",
    olivedrab: "#6B8E23",
    orange: "#FFA500",
    orangered: "#FF4500",
    orchid: "#DA70D6",
    palegoldenrod: "#EEE8AA",
    palegreen: "#98FB98",
    paleturquoise: "#AFEEEE",
    palevioletred: "#DB7093",
    papayawhip: "#FFEFD5",
    peachpuff: "#FFDAB9",
    peru: "#CD853F",
    pink: "#FFC0CB",
    plum: "#DDA0DD",
    powderblue: "#B0E0E6",
    purple: "#800080",
    rebeccapurple: "#663399",
    red: "#F00",
    rosybrown: "#BC8F8F",
    royalblue: "#4169E1",
    saddlebrown: "#8B4513",
    salmon: "#FA8072",
    sandybrown: "#F4A460",
    seagreen: "#2E8B57",
    seashell: "#FFF5EE",
    sienna: "#A0522D",
    silver: "#C0C0C0",
    skyblue: "#87CEEB",
    slateblue: "#6A5ACD",
    slategray: "#708090",
    slategrey: "#708090",
    snow: "#FFFAFA",
    springgreen: "#00FF7F",
    steelblue: "#4682B4",
    tan: "#D2B48C",
    teal: "#008080",
    thistle: "#D8BFD8",
    tomato: "#FF6347",
    turquoise: "#40E0D0",
    violet: "#EE82EE",
    wheat: "#F5DEB3",
    white: "#FFF",
    whitesmoke: "#F5F5F5",
    yellow: "#FF0",
    yellowgreen: "#9ACD32",
    transparent: "#0000"
  };
  function iE(e, t, n) {
    t /= 100, n /= 100;
    let r = (o, i = (o + e / 60) % 6) => n - n * t * Math.max(Math.min(i, 4 - i, 1), 0);
    return [
      r(5) * 255,
      r(3) * 255,
      r(1) * 255
    ];
  }
  function aE(e, t, n) {
    t /= 100, n /= 100;
    let r = t * Math.min(n, 1 - n), o = (i, a = (i + e / 30) % 12) => n - r * Math.max(Math.min(a - 3, 9 - a, 1), -1);
    return [
      o(0) * 255,
      o(8) * 255,
      o(4) * 255
    ];
  }
  const Io = "^\\s*", Fo = "\\s*$", Ri = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Ar = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", Yi = "([0-9A-Fa-f])", Xi = "([0-9A-Fa-f]{2})", qx = new RegExp(`${Io}hsl\\s*\\(${Ar},${Ri},${Ri}\\)${Fo}`), Gx = new RegExp(`${Io}hsv\\s*\\(${Ar},${Ri},${Ri}\\)${Fo}`), Kx = new RegExp(`${Io}hsla\\s*\\(${Ar},${Ri},${Ri},${Ar}\\)${Fo}`), Yx = new RegExp(`${Io}hsva\\s*\\(${Ar},${Ri},${Ri},${Ar}\\)${Fo}`), lE = new RegExp(`${Io}rgb\\s*\\(${Ar},${Ar},${Ar}\\)${Fo}`), sE = new RegExp(`${Io}rgba\\s*\\(${Ar},${Ar},${Ar},${Ar}\\)${Fo}`), cE = new RegExp(`${Io}#${Yi}${Yi}${Yi}${Fo}`), uE = new RegExp(`${Io}#${Xi}${Xi}${Xi}${Fo}`), dE = new RegExp(`${Io}#${Yi}${Yi}${Yi}${Yi}${Fo}`), fE = new RegExp(`${Io}#${Xi}${Xi}${Xi}${Xi}${Fo}`);
  function hr(e) {
    return parseInt(e, 16);
  }
  function hE(e) {
    try {
      let t;
      if (t = Kx.exec(e)) return [
        Cu(t[1]),
        _i(t[5]),
        _i(t[9]),
        ia(t[13])
      ];
      if (t = qx.exec(e)) return [
        Cu(t[1]),
        _i(t[5]),
        _i(t[9]),
        1
      ];
      throw new Error(`[seemly/hsla]: Invalid color value ${e}.`);
    } catch (t) {
      throw t;
    }
  }
  function pE(e) {
    try {
      let t;
      if (t = Yx.exec(e)) return [
        Cu(t[1]),
        _i(t[5]),
        _i(t[9]),
        ia(t[13])
      ];
      if (t = Gx.exec(e)) return [
        Cu(t[1]),
        _i(t[5]),
        _i(t[9]),
        1
      ];
      throw new Error(`[seemly/hsva]: Invalid color value ${e}.`);
    } catch (t) {
      throw t;
    }
  }
  ii = function(e) {
    try {
      let t;
      if (t = uE.exec(e)) return [
        hr(t[1]),
        hr(t[2]),
        hr(t[3]),
        1
      ];
      if (t = lE.exec(e)) return [
        er(t[1]),
        er(t[5]),
        er(t[9]),
        1
      ];
      if (t = sE.exec(e)) return [
        er(t[1]),
        er(t[5]),
        er(t[9]),
        ia(t[13])
      ];
      if (t = cE.exec(e)) return [
        hr(t[1] + t[1]),
        hr(t[2] + t[2]),
        hr(t[3] + t[3]),
        1
      ];
      if (t = fE.exec(e)) return [
        hr(t[1]),
        hr(t[2]),
        hr(t[3]),
        ia(hr(t[4]) / 255)
      ];
      if (t = dE.exec(e)) return [
        hr(t[1] + t[1]),
        hr(t[2] + t[2]),
        hr(t[3] + t[3]),
        ia(hr(t[4] + t[4]) / 255)
      ];
      if (e in uv) return ii(uv[e]);
      if (qx.test(e) || Kx.test(e)) {
        const [n, r, o, i] = hE(e);
        return [
          ...aE(n, r, o),
          i
        ];
      } else if (Gx.test(e) || Yx.test(e)) {
        const [n, r, o, i] = pE(e);
        return [
          ...iE(n, r, o),
          i
        ];
      }
      throw new Error(`[seemly/rgba]: Invalid color value ${e}.`);
    } catch (t) {
      throw t;
    }
  };
  function mE(e) {
    return e > 1 ? 1 : e < 0 ? 0 : e;
  }
  function Ch(e, t, n, r) {
    return `rgba(${er(e)}, ${er(t)}, ${er(n)}, ${mE(r)})`;
  }
  function nf(e, t, n, r, o) {
    return er((e * t * (1 - r) + n * r) / o);
  }
  function Ye(e, t) {
    Array.isArray(e) || (e = ii(e)), Array.isArray(t) || (t = ii(t));
    const n = e[3], r = t[3], o = ia(n + r - n * r);
    return Ch(nf(e[0], n, t[0], r, o), nf(e[1], n, t[1], r, o), nf(e[2], n, t[2], r, o), o);
  }
  function Oe(e, t) {
    const [n, r, o, i = 1] = Array.isArray(e) ? e : ii(e);
    return typeof t.alpha == "number" ? Ch(n, r, o, t.alpha) : Ch(n, r, o, i);
  }
  function wn(e, t) {
    const [n, r, o, i = 1] = Array.isArray(e) ? e : ii(e), { lightness: a = 1, alpha: l = 1 } = t;
    return gE([
      n * a,
      r * a,
      o * a,
      i * l
    ]);
  }
  function ia(e) {
    const t = Math.round(Number(e) * 100) / 100;
    return t > 1 ? 1 : t < 0 ? 0 : t;
  }
  function Cu(e) {
    const t = Math.round(Number(e));
    return t >= 360 || t < 0 ? 0 : t;
  }
  function er(e) {
    const t = Math.round(Number(e));
    return t > 255 ? 255 : t < 0 ? 0 : t;
  }
  function _i(e) {
    const t = Math.round(Number(e));
    return t > 100 ? 100 : t < 0 ? 0 : t;
  }
  function gE(e) {
    const [t, n, r] = e;
    return 3 in e ? `rgba(${er(t)}, ${er(n)}, ${er(r)}, ${ia(e[3])})` : `rgba(${er(t)}, ${er(n)}, ${er(r)}, 1)`;
  }
  function ai(e = 8) {
    return Math.random().toString(16).slice(2, 2 + e);
  }
  function Yp(e, t) {
    const n = [];
    for (let r = 0; r < e; ++r) n.push(t);
    return n;
  }
  function Zc(e) {
    return e.composedPath()[0];
  }
  const vE = {
    mousemoveoutside: /* @__PURE__ */ new WeakMap(),
    clickoutside: /* @__PURE__ */ new WeakMap()
  };
  function bE(e, t, n) {
    if (e === "mousemoveoutside") {
      const r = (o) => {
        t.contains(Zc(o)) || n(o);
      };
      return {
        mousemove: r,
        touchstart: r
      };
    } else if (e === "clickoutside") {
      let r = false;
      const o = (a) => {
        r = !t.contains(Zc(a));
      }, i = (a) => {
        r && (t.contains(Zc(a)) || n(a));
      };
      return {
        mousedown: o,
        mouseup: i,
        touchstart: o,
        touchend: i
      };
    }
    return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`), {};
  }
  function Xx(e, t, n) {
    const r = vE[e];
    let o = r.get(t);
    o === void 0 && r.set(t, o = /* @__PURE__ */ new WeakMap());
    let i = o.get(n);
    return i === void 0 && o.set(n, i = bE(e, t, n)), i;
  }
  function yE(e, t, n, r) {
    if (e === "mousemoveoutside" || e === "clickoutside") {
      const o = Xx(e, t, n);
      return Object.keys(o).forEach((i) => {
        Dt(i, document, o[i], r);
      }), true;
    }
    return false;
  }
  function xE(e, t, n, r) {
    if (e === "mousemoveoutside" || e === "clickoutside") {
      const o = Xx(e, t, n);
      return Object.keys(o).forEach((i) => {
        Rt(i, document, o[i], r);
      }), true;
    }
    return false;
  }
  function wE() {
    if (typeof window > "u") return {
      on: () => {
      },
      off: () => {
      }
    };
    const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
    function n() {
      e.set(this, true);
    }
    function r() {
      e.set(this, true), t.set(this, true);
    }
    function o(C, k, R) {
      const P = C[k];
      return C[k] = function() {
        return R.apply(C, arguments), P.apply(C, arguments);
      }, C;
    }
    function i(C, k) {
      C[k] = Event.prototype[k];
    }
    const a = /* @__PURE__ */ new WeakMap(), l = Object.getOwnPropertyDescriptor(Event.prototype, "currentTarget");
    function s() {
      var C;
      return (C = a.get(this)) !== null && C !== void 0 ? C : null;
    }
    function c(C, k) {
      l !== void 0 && Object.defineProperty(C, "currentTarget", {
        configurable: true,
        enumerable: true,
        get: k ?? l.get
      });
    }
    const u = {
      bubble: {},
      capture: {}
    }, d = {};
    function h() {
      const C = function(k) {
        const { type: R, eventPhase: P, bubbles: B } = k, E = Zc(k);
        if (P === 2) return;
        const M = P === 1 ? "capture" : "bubble";
        let z = E;
        const U = [];
        for (; z === null && (z = window), U.push(z), z !== window; ) z = z.parentNode || null;
        const ee = u.capture[R], ne = u.bubble[R];
        if (o(k, "stopPropagation", n), o(k, "stopImmediatePropagation", r), c(k, s), M === "capture") {
          if (ee === void 0) return;
          for (let ae = U.length - 1; ae >= 0 && !e.has(k); --ae) {
            const ye = U[ae], xe = ee.get(ye);
            if (xe !== void 0) {
              a.set(k, ye);
              for (const re of xe) {
                if (t.has(k)) break;
                re(k);
              }
            }
            if (ae === 0 && !B && ne !== void 0) {
              const re = ne.get(ye);
              if (re !== void 0) for (const Y of re) {
                if (t.has(k)) break;
                Y(k);
              }
            }
          }
        } else if (M === "bubble") {
          if (ne === void 0) return;
          for (let ae = 0; ae < U.length && !e.has(k); ++ae) {
            const ye = U[ae], xe = ne.get(ye);
            if (xe !== void 0) {
              a.set(k, ye);
              for (const re of xe) {
                if (t.has(k)) break;
                re(k);
              }
            }
          }
        }
        i(k, "stopPropagation"), i(k, "stopImmediatePropagation"), c(k);
      };
      return C.displayName = "evtdUnifiedHandler", C;
    }
    function p() {
      const C = function(k) {
        const { type: R, eventPhase: P } = k;
        if (P !== 2) return;
        const B = d[R];
        B !== void 0 && B.forEach((E) => E(k));
      };
      return C.displayName = "evtdUnifiedWindowEventHandler", C;
    }
    const f = h(), m = p();
    function b(C, k) {
      const R = u[C];
      return R[k] === void 0 && (R[k] = /* @__PURE__ */ new Map(), window.addEventListener(k, f, C === "capture")), R[k];
    }
    function v(C) {
      return d[C] === void 0 && (d[C] = /* @__PURE__ */ new Set(), window.addEventListener(C, m)), d[C];
    }
    function y(C, k) {
      let R = C.get(k);
      return R === void 0 && C.set(k, R = /* @__PURE__ */ new Set()), R;
    }
    function w(C, k, R, P) {
      const B = u[k][R];
      if (B !== void 0) {
        const E = B.get(C);
        if (E !== void 0 && E.has(P)) return true;
      }
      return false;
    }
    function x(C, k) {
      const R = d[C];
      return !!(R !== void 0 && R.has(k));
    }
    function S(C, k, R, P) {
      let B;
      if (typeof P == "object" && P.once === true ? B = (ee) => {
        _(C, k, B, P), R(ee);
      } : B = R, yE(C, k, B, P)) return;
      const M = P === true || typeof P == "object" && P.capture === true ? "capture" : "bubble", z = b(M, C), U = y(z, k);
      if (U.has(B) || U.add(B), k === window) {
        const ee = v(C);
        ee.has(B) || ee.add(B);
      }
    }
    function _(C, k, R, P) {
      if (xE(C, k, R, P)) return;
      const E = P === true || typeof P == "object" && P.capture === true, M = E ? "capture" : "bubble", z = b(M, C), U = y(z, k);
      if (k === window && !w(k, E ? "bubble" : "capture", C, R) && x(C, R)) {
        const ne = d[C];
        ne.delete(R), ne.size === 0 && (window.removeEventListener(C, m), d[C] = void 0);
      }
      U.has(R) && U.delete(R), U.size === 0 && z.delete(k), z.size === 0 && (window.removeEventListener(C, f, M === "capture"), u[M][C] = void 0);
    }
    return {
      on: S,
      off: _
    };
  }
  let Rt;
  ({ on: Dt, off: Rt } = wE());
  function Jx(e) {
    const t = L(!!e.value);
    if (t.value) return Dr(t);
    const n = lt(e, (r) => {
      r && (t.value = true, n());
    });
    return Dr(t);
  }
  Ct = function(e) {
    const t = D(e), n = L(t.value);
    return lt(t, (r) => {
      n.value = r;
    }), typeof e == "function" ? n : {
      __v_isRef: true,
      get value() {
        return n.value;
      },
      set value(r) {
        e.set(r);
      }
    };
  };
  function Xp() {
    return Vn() !== null;
  }
  const Gs = typeof window < "u";
  let tl, fs;
  const CE = () => {
    var e, t;
    tl = Gs ? (t = (e = document) === null || e === void 0 ? void 0 : e.fonts) === null || t === void 0 ? void 0 : t.ready : void 0, fs = false, tl !== void 0 ? tl.then(() => {
      fs = true;
    }) : fs = true;
  };
  CE();
  function Zx(e) {
    if (fs) return;
    let t = false;
    gt(() => {
      fs || (tl == null ? void 0 : tl.then(() => {
        t || e();
      }));
    }), Zt(() => {
      t = true;
    });
  }
  const ns = L(null);
  function dv(e) {
    if (e.clientX > 0 || e.clientY > 0) ns.value = {
      x: e.clientX,
      y: e.clientY
    };
    else {
      const { target: t } = e;
      if (t instanceof Element) {
        const { left: n, top: r, width: o, height: i } = t.getBoundingClientRect();
        n > 0 || r > 0 ? ns.value = {
          x: n + o / 2,
          y: r + i / 2
        } : ns.value = {
          x: 0,
          y: 0
        };
      } else ns.value = null;
    }
  }
  let Sc = 0, fv = true;
  function SE() {
    if (!Gs) return Dr(L(null));
    Sc === 0 && Dt("click", document, dv, true);
    const e = () => {
      Sc += 1;
    };
    return fv && (fv = Xp()) ? (ci(e), Zt(() => {
      Sc -= 1, Sc === 0 && Rt("click", document, dv, true);
    })) : e(), Dr(ns);
  }
  const _E = L(void 0);
  let _c = 0;
  function hv() {
    _E.value = Date.now();
  }
  let pv = true;
  function kE(e) {
    if (!Gs) return Dr(L(false));
    const t = L(false);
    let n = null;
    function r() {
      n !== null && window.clearTimeout(n);
    }
    function o() {
      r(), t.value = true, n = window.setTimeout(() => {
        t.value = false;
      }, e);
    }
    _c === 0 && Dt("click", window, hv, true);
    const i = () => {
      _c += 1, Dt("click", window, o, true);
    };
    return pv && (pv = Xp()) ? (ci(i), Zt(() => {
      _c -= 1, _c === 0 && Rt("click", window, hv, true), Rt("click", window, o, true), r();
    })) : i(), Dr(t);
  }
  mn = function(e, t) {
    return lt(e, (n) => {
      n !== void 0 && (t.value = n);
    }), D(() => e.value === void 0 ? t.value : e.value);
  };
  function Pi() {
    const e = L(false);
    return gt(() => {
      e.value = true;
    }), Dr(e);
  }
  function ha(e, t) {
    return D(() => {
      for (const n of t) if (e[n] !== void 0) return e[n];
      return e[t[t.length - 1]];
    });
  }
  const RE = (typeof window > "u" ? false : /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !window.MSStream;
  function AE() {
    return RE;
  }
  const EE = {
    xs: 0,
    s: 640,
    m: 1024,
    l: 1280,
    xl: 1536,
    "2xl": 1920
  };
  function TE(e) {
    return `(min-width: ${e}px)`;
  }
  const Bl = {};
  function Qx(e = EE) {
    if (!Gs) return D(() => []);
    if (typeof window.matchMedia != "function") return D(() => []);
    const t = L({}), n = Object.keys(e), r = (o, i) => {
      o.matches ? t.value[i] = true : t.value[i] = false;
    };
    return n.forEach((o) => {
      const i = e[o];
      let a, l;
      Bl[i] === void 0 ? (a = window.matchMedia(TE(i)), a.addEventListener ? a.addEventListener("change", (s) => {
        l.forEach((c) => {
          c(s, o);
        });
      }) : a.addListener && a.addListener((s) => {
        l.forEach((c) => {
          c(s, o);
        });
      }), l = /* @__PURE__ */ new Set(), Bl[i] = {
        mql: a,
        cbs: l
      }) : (a = Bl[i].mql, l = Bl[i].cbs), l.add(r), a.matches && l.forEach((s) => {
        s(a, o);
      });
    }), Zt(() => {
      n.forEach((o) => {
        const { cbs: i } = Bl[e[o]];
        i.has(r) && i.delete(r);
      });
    }), D(() => {
      const { value: o } = t;
      return n.filter((i) => o[i]);
    });
  }
  function PE(e) {
    if (!Gs) return D(() => {
    });
    const t = Qx();
    return D(() => {
      const { value: n } = t;
      if (n.length !== 0) return n[n.length - 1];
    });
  }
  function DE(e = {}, t) {
    const n = ba({
      ctrl: false,
      command: false,
      win: false,
      shift: false,
      tab: false
    }), { keydown: r, keyup: o } = e, i = (s) => {
      switch (s.key) {
        case "Control":
          n.ctrl = true;
          break;
        case "Meta":
          n.command = true, n.win = true;
          break;
        case "Shift":
          n.shift = true;
          break;
        case "Tab":
          n.tab = true;
          break;
      }
      r !== void 0 && Object.keys(r).forEach((c) => {
        if (c !== s.key) return;
        const u = r[c];
        if (typeof u == "function") u(s);
        else {
          const { stop: d = false, prevent: h = false } = u;
          d && s.stopPropagation(), h && s.preventDefault(), u.handler(s);
        }
      });
    }, a = (s) => {
      switch (s.key) {
        case "Control":
          n.ctrl = false;
          break;
        case "Meta":
          n.command = false, n.win = false;
          break;
        case "Shift":
          n.shift = false;
          break;
        case "Tab":
          n.tab = false;
          break;
      }
      o !== void 0 && Object.keys(o).forEach((c) => {
        if (c !== s.key) return;
        const u = o[c];
        if (typeof u == "function") u(s);
        else {
          const { stop: d = false, prevent: h = false } = u;
          d && s.stopPropagation(), h && s.preventDefault(), u.handler(s);
        }
      });
    }, l = () => {
      (t === void 0 || t.value) && (Dt("keydown", document, i), Dt("keyup", document, a)), t !== void 0 && lt(t, (s) => {
        s ? (Dt("keydown", document, i), Dt("keyup", document, a)) : (Rt("keydown", document, i), Rt("keyup", document, a));
      });
    };
    return Xp() ? (ci(l), Zt(() => {
      (t === void 0 || t.value) && (Rt("keydown", document, i), Rt("keyup", document, a));
    })) : l(), Dr(n);
  }
  const Jp = "n-internal-select-menu", ew = "n-internal-select-menu-body", Ks = "n-drawer-body", Zp = "n-drawer", Ys = "n-modal-body", $E = "n-modal-provider", tw = "n-modal", _l = "n-popover-body", nw = "__disabled__";
  function Or(e) {
    const t = je(Ys, null), n = je(Ks, null), r = je(_l, null), o = je(ew, null), i = L();
    if (typeof document < "u") {
      i.value = document.fullscreenElement;
      const a = () => {
        i.value = document.fullscreenElement;
      };
      gt(() => {
        Dt("fullscreenchange", document, a);
      }), Zt(() => {
        Rt("fullscreenchange", document, a);
      });
    }
    return Ct(() => {
      var a;
      const { to: l } = e;
      return l !== void 0 ? l === false ? nw : l === true ? i.value || "body" : l : (t == null ? void 0 : t.value) ? (a = t.value.$el) !== null && a !== void 0 ? a : t.value : (n == null ? void 0 : n.value) ? n.value : (r == null ? void 0 : r.value) ? r.value : (o == null ? void 0 : o.value) ? o.value : l ?? (i.value || "body");
    });
  }
  Or.tdkey = nw;
  Or.propTo = {
    type: [
      String,
      Object,
      Boolean
    ],
    default: void 0
  };
  function zE(e, t, n) {
    var r;
    const o = je(e, null);
    if (o === null) return;
    const i = (r = Vn()) === null || r === void 0 ? void 0 : r.proxy;
    lt(n, a), a(n.value), Zt(() => {
      a(void 0, n.value);
    });
    function a(c, u) {
      if (!o) return;
      const d = o[t];
      u !== void 0 && l(d, u), c !== void 0 && s(d, c);
    }
    function l(c, u) {
      c[u] || (c[u] = []), c[u].splice(c[u].findIndex((d) => d === i), 1);
    }
    function s(c, u) {
      c[u] || (c[u] = []), ~c[u].findIndex((d) => d === i) || c[u].push(i);
    }
  }
  function OE(e, t, n) {
    const r = L(e.value);
    let o = null;
    return lt(e, (i) => {
      o !== null && window.clearTimeout(o), i === true ? n && !n.value ? r.value = true : o = window.setTimeout(() => {
        r.value = true;
      }, t) : r.value = false;
    }), r;
  }
  const ui = typeof document < "u" && typeof window < "u";
  let mv = false;
  function IE() {
    if (ui && window.CSS && !mv && (mv = true, "registerProperty" in (window == null ? void 0 : window.CSS))) try {
      CSS.registerProperty({
        name: "--n-color-start",
        syntax: "<color>",
        inherits: false,
        initialValue: "#0000"
      }), CSS.registerProperty({
        name: "--n-color-end",
        syntax: "<color>",
        inherits: false,
        initialValue: "#0000"
      });
    } catch {
    }
  }
  const Qp = L(false);
  function gv() {
    Qp.value = true;
  }
  function vv() {
    Qp.value = false;
  }
  let Nl = 0;
  function rw() {
    return ui && (ci(() => {
      Nl || (window.addEventListener("compositionstart", gv), window.addEventListener("compositionend", vv)), Nl++;
    }), Zt(() => {
      Nl <= 1 ? (window.removeEventListener("compositionstart", gv), window.removeEventListener("compositionend", vv), Nl = 0) : Nl--;
    })), Qp;
  }
  let Ma = 0, bv = "", yv = "", xv = "", wv = "";
  const Sh = L("0px");
  function ow(e) {
    if (typeof document > "u") return;
    const t = document.documentElement;
    let n, r = false;
    const o = () => {
      t.style.marginRight = bv, t.style.overflow = yv, t.style.overflowX = xv, t.style.overflowY = wv, Sh.value = "0px";
    };
    gt(() => {
      n = lt(e, (i) => {
        if (i) {
          if (!Ma) {
            const a = window.innerWidth - t.offsetWidth;
            a > 0 && (bv = t.style.marginRight, t.style.marginRight = `${a}px`, Sh.value = `${a}px`), yv = t.style.overflow, xv = t.style.overflowX, wv = t.style.overflowY, t.style.overflow = "hidden", t.style.overflowX = "hidden", t.style.overflowY = "hidden";
          }
          r = true, Ma++;
        } else Ma--, Ma || o(), r = false;
      }, {
        immediate: true
      });
    }), Zt(() => {
      n == null ? void 0 : n(), r && (Ma--, Ma || o(), r = false);
    });
  }
  function iw(e) {
    const t = {
      isDeactivated: false
    };
    let n = false;
    return Xu(() => {
      if (t.isDeactivated = false, !n) {
        n = true;
        return;
      }
      e();
    }), Vs(() => {
      t.isDeactivated = true, n || (n = true);
    }), t;
  }
  function _h(e, t, n = "default") {
    const r = t[n];
    if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
    return r();
  }
  function kh(e, t = true, n = []) {
    return e.forEach((r) => {
      if (r !== null) {
        if (typeof r != "object") {
          (typeof r == "string" || typeof r == "number") && n.push(Ae(String(r)));
          return;
        }
        if (Array.isArray(r)) {
          kh(r, t, n);
          return;
        }
        if (r.type === wt) {
          if (r.children === null) return;
          Array.isArray(r.children) && kh(r.children, t, n);
        } else r.type !== Rn && n.push(r);
      }
    }), n;
  }
  function Cv(e, t, n = "default") {
    const r = t[n];
    if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
    const o = kh(r());
    if (o.length === 1) return o[0];
    throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`);
  }
  let mi = null;
  function aw() {
    if (mi === null && (mi = document.getElementById("v-binder-view-measurer"), mi === null)) {
      mi = document.createElement("div"), mi.id = "v-binder-view-measurer";
      const { style: e } = mi;
      e.position = "fixed", e.left = "0", e.right = "0", e.top = "0", e.bottom = "0", e.pointerEvents = "none", e.visibility = "hidden", document.body.appendChild(mi);
    }
    return mi.getBoundingClientRect();
  }
  function FE(e, t) {
    const n = aw();
    return {
      top: t,
      left: e,
      height: 0,
      width: 0,
      right: n.width - e,
      bottom: n.height - t
    };
  }
  function rf(e) {
    const t = e.getBoundingClientRect(), n = aw();
    return {
      left: t.left - n.left,
      top: t.top - n.top,
      bottom: n.height + n.top - t.bottom,
      right: n.width + n.left - t.right,
      width: t.width,
      height: t.height
    };
  }
  function ME(e) {
    return e.nodeType === 9 ? null : e.parentNode;
  }
  function lw(e) {
    if (e === null) return null;
    const t = ME(e);
    if (t === null) return null;
    if (t.nodeType === 9) return document;
    if (t.nodeType === 1) {
      const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
      if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
    }
    return lw(t);
  }
  const nd = pe({
    name: "Binder",
    props: {
      syncTargetWithParent: Boolean,
      syncTarget: {
        type: Boolean,
        default: true
      }
    },
    setup(e) {
      var t;
      ft("VBinder", (t = Vn()) === null || t === void 0 ? void 0 : t.proxy);
      const n = je("VBinder", null), r = L(null), o = (v) => {
        r.value = v, n && e.syncTargetWithParent && n.setTargetRef(v);
      };
      let i = [];
      const a = () => {
        let v = r.value;
        for (; v = lw(v), v !== null; ) i.push(v);
        for (const y of i) Dt("scroll", y, d, true);
      }, l = () => {
        for (const v of i) Rt("scroll", v, d, true);
        i = [];
      }, s = /* @__PURE__ */ new Set(), c = (v) => {
        s.size === 0 && a(), s.has(v) || s.add(v);
      }, u = (v) => {
        s.has(v) && s.delete(v), s.size === 0 && l();
      }, d = () => {
        Es(h);
      }, h = () => {
        s.forEach((v) => v());
      }, p = /* @__PURE__ */ new Set(), f = (v) => {
        p.size === 0 && Dt("resize", window, b), p.has(v) || p.add(v);
      }, m = (v) => {
        p.has(v) && p.delete(v), p.size === 0 && Rt("resize", window, b);
      }, b = () => {
        p.forEach((v) => v());
      };
      return Zt(() => {
        Rt("resize", window, b), l();
      }), {
        targetRef: r,
        setTargetRef: o,
        addScrollListener: c,
        removeScrollListener: u,
        addResizeListener: f,
        removeResizeListener: m
      };
    },
    render() {
      return _h("binder", this.$slots);
    }
  }), rd = pe({
    name: "Target",
    setup() {
      const { setTargetRef: e, syncTarget: t } = je("VBinder");
      return {
        syncTarget: t,
        setTargetDirective: {
          mounted: e,
          updated: e
        }
      };
    },
    render() {
      const { syncTarget: e, setTargetDirective: t } = this;
      return e ? $r(Cv("follower", this.$slots), [
        [
          t
        ]
      ]) : Cv("follower", this.$slots);
    }
  }), La = "@@mmoContext", LE = {
    mounted(e, { value: t }) {
      e[La] = {
        handler: void 0
      }, typeof t == "function" && (e[La].handler = t, Dt("mousemoveoutside", e, t));
    },
    updated(e, { value: t }) {
      const n = e[La];
      typeof t == "function" ? n.handler ? n.handler !== t && (Rt("mousemoveoutside", e, n.handler), n.handler = t, Dt("mousemoveoutside", e, t)) : (e[La].handler = t, Dt("mousemoveoutside", e, t)) : n.handler && (Rt("mousemoveoutside", e, n.handler), n.handler = void 0);
    },
    unmounted(e) {
      const { handler: t } = e[La];
      t && Rt("mousemoveoutside", e, t), e[La].handler = void 0;
    }
  }, Ba = "@@coContext", ul = {
    mounted(e, { value: t, modifiers: n }) {
      e[Ba] = {
        handler: void 0
      }, typeof t == "function" && (e[Ba].handler = t, Dt("clickoutside", e, t, {
        capture: n.capture
      }));
    },
    updated(e, { value: t, modifiers: n }) {
      const r = e[Ba];
      typeof t == "function" ? r.handler ? r.handler !== t && (Rt("clickoutside", e, r.handler, {
        capture: n.capture
      }), r.handler = t, Dt("clickoutside", e, t, {
        capture: n.capture
      })) : (e[Ba].handler = t, Dt("clickoutside", e, t, {
        capture: n.capture
      })) : r.handler && (Rt("clickoutside", e, r.handler, {
        capture: n.capture
      }), r.handler = void 0);
    },
    unmounted(e, { modifiers: t }) {
      const { handler: n } = e[Ba];
      n && Rt("clickoutside", e, n, {
        capture: t.capture
      }), e[Ba].handler = void 0;
    }
  };
  function BE(e, t) {
    console.error(`[vdirs/${e}]: ${t}`);
  }
  class NE {
    constructor() {
      this.elementZIndex = /* @__PURE__ */ new Map(), this.nextZIndex = 2e3;
    }
    get elementCount() {
      return this.elementZIndex.size;
    }
    ensureZIndex(t, n) {
      const { elementZIndex: r } = this;
      if (n !== void 0) {
        t.style.zIndex = `${n}`, r.delete(t);
        return;
      }
      const { nextZIndex: o } = this;
      r.has(t) && r.get(t) + 1 === this.nextZIndex || (t.style.zIndex = `${o}`, r.set(t, o), this.nextZIndex = o + 1, this.squashState());
    }
    unregister(t, n) {
      const { elementZIndex: r } = this;
      r.has(t) ? r.delete(t) : n === void 0 && BE("z-index-manager/unregister-element", "Element not found when unregistering."), this.squashState();
    }
    squashState() {
      const { elementCount: t } = this;
      t || (this.nextZIndex = 2e3), this.nextZIndex - t > 2500 && this.rearrange();
    }
    rearrange() {
      const t = Array.from(this.elementZIndex.entries());
      t.sort((n, r) => n[1] - r[1]), this.nextZIndex = 2e3, t.forEach((n) => {
        const r = n[0], o = this.nextZIndex++;
        `${o}` !== r.style.zIndex && (r.style.zIndex = `${o}`);
      });
    }
  }
  const of = new NE(), Na = "@@ziContext", od = {
    mounted(e, t) {
      const { value: n = {} } = t, { zIndex: r, enabled: o } = n;
      e[Na] = {
        enabled: !!o,
        initialized: false
      }, o && (of.ensureZIndex(e, r), e[Na].initialized = true);
    },
    updated(e, t) {
      const { value: n = {} } = t, { zIndex: r, enabled: o } = n, i = e[Na].enabled;
      o && !i && (of.ensureZIndex(e, r), e[Na].initialized = true), e[Na].enabled = !!o;
    },
    unmounted(e, t) {
      if (!e[Na].initialized) return;
      const { value: n = {} } = t, { zIndex: r } = n;
      of.unregister(e, r);
    }
  }, HE = "@css-render/vue3-ssr";
  function jE(e, t) {
    return `<style cssr-id="${e}">
${t}
</style>`;
  }
  function WE(e, t, n) {
    const { styles: r, ids: o } = n;
    o.has(e) || r !== null && (o.add(e), r.push(jE(e, t)));
  }
  const UE = typeof document < "u";
  function Di() {
    if (UE) return;
    const e = je(HE, null);
    if (e !== null) return {
      adapter: (t, n) => WE(t, n, e),
      context: e
    };
  }
  function Sv(e, t) {
    console.error(`[vueuc/${e}]: ${t}`);
  }
  const { c: Eo } = Bx(), id = "vueuc-style";
  function _v(e) {
    return e & -e;
  }
  class sw {
    constructor(t, n) {
      this.l = t, this.min = n;
      const r = new Array(t + 1);
      for (let o = 0; o < t + 1; ++o) r[o] = 0;
      this.ft = r;
    }
    add(t, n) {
      if (n === 0) return;
      const { l: r, ft: o } = this;
      for (t += 1; t <= r; ) o[t] += n, t += _v(t);
    }
    get(t) {
      return this.sum(t + 1) - this.sum(t);
    }
    sum(t) {
      if (t === void 0 && (t = this.l), t <= 0) return 0;
      const { ft: n, min: r, l: o } = this;
      if (t > o) throw new Error("[FinweckTree.sum]: `i` is larger than length.");
      let i = t * r;
      for (; t > 0; ) i += n[t], t -= _v(t);
      return i;
    }
    getBound(t) {
      let n = 0, r = this.l;
      for (; r > n; ) {
        const o = Math.floor((n + r) / 2), i = this.sum(o);
        if (i > t) {
          r = o;
          continue;
        } else if (i < t) {
          if (n === o) return this.sum(n + 1) <= t ? n + 1 : o;
          n = o;
        } else return o;
      }
      return n;
    }
  }
  function kv(e) {
    return typeof e == "string" ? document.querySelector(e) : e() || null;
  }
  const ad = pe({
    name: "LazyTeleport",
    props: {
      to: {
        type: [
          String,
          Object
        ],
        default: void 0
      },
      disabled: Boolean,
      show: {
        type: Boolean,
        required: true
      }
    },
    setup(e) {
      return {
        showTeleport: Jx($e(e, "show")),
        mergedTo: D(() => {
          const { to: t } = e;
          return t ?? "body";
        })
      };
    },
    render() {
      return this.showTeleport ? this.disabled ? _h("lazy-teleport", this.$slots) : g(Np, {
        disabled: this.disabled,
        to: this.mergedTo
      }, _h("lazy-teleport", this.$slots)) : null;
    }
  }), kc = {
    top: "bottom",
    bottom: "top",
    left: "right",
    right: "left"
  }, Rv = {
    start: "end",
    center: "center",
    end: "start"
  }, af = {
    top: "height",
    bottom: "height",
    left: "width",
    right: "width"
  }, VE = {
    "bottom-start": "top left",
    bottom: "top center",
    "bottom-end": "top right",
    "top-start": "bottom left",
    top: "bottom center",
    "top-end": "bottom right",
    "right-start": "top left",
    right: "center left",
    "right-end": "bottom left",
    "left-start": "top right",
    left: "center right",
    "left-end": "bottom right"
  }, qE = {
    "bottom-start": "bottom left",
    bottom: "bottom center",
    "bottom-end": "bottom right",
    "top-start": "top left",
    top: "top center",
    "top-end": "top right",
    "right-start": "top right",
    right: "center right",
    "right-end": "bottom right",
    "left-start": "top left",
    left: "center left",
    "left-end": "bottom left"
  }, GE = {
    "bottom-start": "right",
    "bottom-end": "left",
    "top-start": "right",
    "top-end": "left",
    "right-start": "bottom",
    "right-end": "top",
    "left-start": "bottom",
    "left-end": "top"
  }, Av = {
    top: true,
    bottom: false,
    left: true,
    right: false
  }, Ev = {
    top: "end",
    bottom: "start",
    left: "end",
    right: "start"
  };
  function KE(e, t, n, r, o, i) {
    if (!o || i) return {
      placement: e,
      top: 0,
      left: 0
    };
    const [a, l] = e.split("-");
    let s = l ?? "center", c = {
      top: 0,
      left: 0
    };
    const u = (p, f, m) => {
      let b = 0, v = 0;
      const y = n[p] - t[f] - t[p];
      return y > 0 && r && (m ? v = Av[f] ? y : -y : b = Av[f] ? y : -y), {
        left: b,
        top: v
      };
    }, d = a === "left" || a === "right";
    if (s !== "center") {
      const p = GE[e], f = kc[p], m = af[p];
      if (n[m] > t[m]) {
        if (t[p] + t[m] < n[m]) {
          const b = (n[m] - t[m]) / 2;
          t[p] < b || t[f] < b ? t[p] < t[f] ? (s = Rv[l], c = u(m, f, d)) : c = u(m, p, d) : s = "center";
        }
      } else n[m] < t[m] && t[f] < 0 && t[p] > t[f] && (s = Rv[l]);
    } else {
      const p = a === "bottom" || a === "top" ? "left" : "top", f = kc[p], m = af[p], b = (n[m] - t[m]) / 2;
      (t[p] < b || t[f] < b) && (t[p] > t[f] ? (s = Ev[p], c = u(m, p, d)) : (s = Ev[f], c = u(m, f, d)));
    }
    let h = a;
    return t[a] < n[af[a]] && t[a] < t[kc[a]] && (h = kc[a]), {
      placement: s !== "center" ? `${h}-${s}` : h,
      left: c.left,
      top: c.top
    };
  }
  function YE(e, t) {
    return t ? qE[e] : VE[e];
  }
  function XE(e, t, n, r, o, i) {
    if (i) switch (e) {
      case "bottom-start":
        return {
          top: `${Math.round(n.top - t.top + n.height)}px`,
          left: `${Math.round(n.left - t.left)}px`,
          transform: "translateY(-100%)"
        };
      case "bottom-end":
        return {
          top: `${Math.round(n.top - t.top + n.height)}px`,
          left: `${Math.round(n.left - t.left + n.width)}px`,
          transform: "translateX(-100%) translateY(-100%)"
        };
      case "top-start":
        return {
          top: `${Math.round(n.top - t.top)}px`,
          left: `${Math.round(n.left - t.left)}px`,
          transform: ""
        };
      case "top-end":
        return {
          top: `${Math.round(n.top - t.top)}px`,
          left: `${Math.round(n.left - t.left + n.width)}px`,
          transform: "translateX(-100%)"
        };
      case "right-start":
        return {
          top: `${Math.round(n.top - t.top)}px`,
          left: `${Math.round(n.left - t.left + n.width)}px`,
          transform: "translateX(-100%)"
        };
      case "right-end":
        return {
          top: `${Math.round(n.top - t.top + n.height)}px`,
          left: `${Math.round(n.left - t.left + n.width)}px`,
          transform: "translateX(-100%) translateY(-100%)"
        };
      case "left-start":
        return {
          top: `${Math.round(n.top - t.top)}px`,
          left: `${Math.round(n.left - t.left)}px`,
          transform: ""
        };
      case "left-end":
        return {
          top: `${Math.round(n.top - t.top + n.height)}px`,
          left: `${Math.round(n.left - t.left)}px`,
          transform: "translateY(-100%)"
        };
      case "top":
        return {
          top: `${Math.round(n.top - t.top)}px`,
          left: `${Math.round(n.left - t.left + n.width / 2)}px`,
          transform: "translateX(-50%)"
        };
      case "right":
        return {
          top: `${Math.round(n.top - t.top + n.height / 2)}px`,
          left: `${Math.round(n.left - t.left + n.width)}px`,
          transform: "translateX(-100%) translateY(-50%)"
        };
      case "left":
        return {
          top: `${Math.round(n.top - t.top + n.height / 2)}px`,
          left: `${Math.round(n.left - t.left)}px`,
          transform: "translateY(-50%)"
        };
      default:
        return {
          top: `${Math.round(n.top - t.top + n.height)}px`,
          left: `${Math.round(n.left - t.left + n.width / 2)}px`,
          transform: "translateX(-50%) translateY(-100%)"
        };
    }
    switch (e) {
      case "bottom-start":
        return {
          top: `${Math.round(n.top - t.top + n.height + r)}px`,
          left: `${Math.round(n.left - t.left + o)}px`,
          transform: ""
        };
      case "bottom-end":
        return {
          top: `${Math.round(n.top - t.top + n.height + r)}px`,
          left: `${Math.round(n.left - t.left + n.width + o)}px`,
          transform: "translateX(-100%)"
        };
      case "top-start":
        return {
          top: `${Math.round(n.top - t.top + r)}px`,
          left: `${Math.round(n.left - t.left + o)}px`,
          transform: "translateY(-100%)"
        };
      case "top-end":
        return {
          top: `${Math.round(n.top - t.top + r)}px`,
          left: `${Math.round(n.left - t.left + n.width + o)}px`,
          transform: "translateX(-100%) translateY(-100%)"
        };
      case "right-start":
        return {
          top: `${Math.round(n.top - t.top + r)}px`,
          left: `${Math.round(n.left - t.left + n.width + o)}px`,
          transform: ""
        };
      case "right-end":
        return {
          top: `${Math.round(n.top - t.top + n.height + r)}px`,
          left: `${Math.round(n.left - t.left + n.width + o)}px`,
          transform: "translateY(-100%)"
        };
      case "left-start":
        return {
          top: `${Math.round(n.top - t.top + r)}px`,
          left: `${Math.round(n.left - t.left + o)}px`,
          transform: "translateX(-100%)"
        };
      case "left-end":
        return {
          top: `${Math.round(n.top - t.top + n.height + r)}px`,
          left: `${Math.round(n.left - t.left + o)}px`,
          transform: "translateX(-100%) translateY(-100%)"
        };
      case "top":
        return {
          top: `${Math.round(n.top - t.top + r)}px`,
          left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
          transform: "translateY(-100%) translateX(-50%)"
        };
      case "right":
        return {
          top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
          left: `${Math.round(n.left - t.left + n.width + o)}px`,
          transform: "translateY(-50%)"
        };
      case "left":
        return {
          top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
          left: `${Math.round(n.left - t.left + o)}px`,
          transform: "translateY(-50%) translateX(-100%)"
        };
      default:
        return {
          top: `${Math.round(n.top - t.top + n.height + r)}px`,
          left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
          transform: "translateX(-50%)"
        };
    }
  }
  const JE = Eo([
    Eo(".v-binder-follower-container", {
      position: "absolute",
      left: "0",
      right: "0",
      top: "0",
      height: "0",
      pointerEvents: "none",
      zIndex: "auto"
    }),
    Eo(".v-binder-follower-content", {
      position: "absolute",
      zIndex: "auto"
    }, [
      Eo("> *", {
        pointerEvents: "all"
      })
    ])
  ]), ld = pe({
    name: "Follower",
    inheritAttrs: false,
    props: {
      show: Boolean,
      enabled: {
        type: Boolean,
        default: void 0
      },
      placement: {
        type: String,
        default: "bottom"
      },
      syncTrigger: {
        type: Array,
        default: [
          "resize",
          "scroll"
        ]
      },
      to: [
        String,
        Object
      ],
      flip: {
        type: Boolean,
        default: true
      },
      internalShift: Boolean,
      x: Number,
      y: Number,
      width: String,
      minWidth: String,
      containerClass: String,
      teleportDisabled: Boolean,
      zindexable: {
        type: Boolean,
        default: true
      },
      zIndex: Number,
      overlap: Boolean
    },
    setup(e) {
      const t = je("VBinder"), n = Ct(() => e.enabled !== void 0 ? e.enabled : e.show), r = L(null), o = L(null), i = () => {
        const { syncTrigger: h } = e;
        h.includes("scroll") && t.addScrollListener(s), h.includes("resize") && t.addResizeListener(s);
      }, a = () => {
        t.removeScrollListener(s), t.removeResizeListener(s);
      };
      gt(() => {
        n.value && (s(), i());
      });
      const l = Di();
      JE.mount({
        id: "vueuc/binder",
        head: true,
        anchorMetaName: id,
        ssr: l
      }), Zt(() => {
        a();
      }), Zx(() => {
        n.value && s();
      });
      const s = () => {
        if (!n.value) return;
        const h = r.value;
        if (h === null) return;
        const p = t.targetRef, { x: f, y: m, overlap: b } = e, v = f !== void 0 && m !== void 0 ? FE(f, m) : rf(p);
        h.style.setProperty("--v-target-width", `${Math.round(v.width)}px`), h.style.setProperty("--v-target-height", `${Math.round(v.height)}px`);
        const { width: y, minWidth: w, placement: x, internalShift: S, flip: _ } = e;
        h.setAttribute("v-placement", x), b ? h.setAttribute("v-overlap", "") : h.removeAttribute("v-overlap");
        const { style: C } = h;
        y === "target" ? C.width = `${v.width}px` : y !== void 0 ? C.width = y : C.width = "", w === "target" ? C.minWidth = `${v.width}px` : w !== void 0 ? C.minWidth = w : C.minWidth = "";
        const k = rf(h), R = rf(o.value), { left: P, top: B, placement: E } = KE(x, v, k, S, _, b), M = YE(E, b), { left: z, top: U, transform: ee } = XE(E, R, v, B, P, b);
        h.setAttribute("v-placement", E), h.style.setProperty("--v-offset-left", `${Math.round(P)}px`), h.style.setProperty("--v-offset-top", `${Math.round(B)}px`), h.style.transform = `translateX(${z}) translateY(${U}) ${ee}`, h.style.setProperty("--v-transform-origin", M), h.style.transformOrigin = M;
      };
      lt(n, (h) => {
        h ? (i(), c()) : a();
      });
      const c = () => {
        sn().then(s).catch((h) => console.error(h));
      };
      [
        "placement",
        "x",
        "y",
        "internalShift",
        "flip",
        "width",
        "overlap",
        "minWidth"
      ].forEach((h) => {
        lt($e(e, h), s);
      }), [
        "teleportDisabled"
      ].forEach((h) => {
        lt($e(e, h), c);
      }), lt($e(e, "syncTrigger"), (h) => {
        h.includes("resize") ? t.addResizeListener(s) : t.removeResizeListener(s), h.includes("scroll") ? t.addScrollListener(s) : t.removeScrollListener(s);
      });
      const u = Pi(), d = Ct(() => {
        const { to: h } = e;
        if (h !== void 0) return h;
        u.value;
      });
      return {
        VBinder: t,
        mergedEnabled: n,
        offsetContainerRef: o,
        followerRef: r,
        mergedTo: d,
        syncPosition: s
      };
    },
    render() {
      return g(ad, {
        show: this.show,
        to: this.mergedTo,
        disabled: this.teleportDisabled
      }, {
        default: () => {
          var e, t;
          const n = g("div", {
            class: [
              "v-binder-follower-container",
              this.containerClass
            ],
            ref: "offsetContainerRef"
          }, [
            g("div", {
              class: "v-binder-follower-content",
              ref: "followerRef"
            }, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e))
          ]);
          return this.zindexable ? $r(n, [
            [
              od,
              {
                enabled: this.mergedEnabled,
                zIndex: this.zIndex
              }
            ]
          ]) : n;
        }
      });
    }
  });
  var aa = [], ZE = function() {
    return aa.some(function(e) {
      return e.activeTargets.length > 0;
    });
  }, QE = function() {
    return aa.some(function(e) {
      return e.skippedTargets.length > 0;
    });
  }, Tv = "ResizeObserver loop completed with undelivered notifications.", eT = function() {
    var e;
    typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
      message: Tv
    }) : (e = document.createEvent("Event"), e.initEvent("error", false, false), e.message = Tv), window.dispatchEvent(e);
  }, Ts;
  (function(e) {
    e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
  })(Ts || (Ts = {}));
  var la = function(e) {
    return Object.freeze(e);
  }, tT = /* @__PURE__ */ (function() {
    function e(t, n) {
      this.inlineSize = t, this.blockSize = n, la(this);
    }
    return e;
  })(), cw = (function() {
    function e(t, n, r, o) {
      return this.x = t, this.y = n, this.width = r, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, la(this);
    }
    return e.prototype.toJSON = function() {
      var t = this, n = t.x, r = t.y, o = t.top, i = t.right, a = t.bottom, l = t.left, s = t.width, c = t.height;
      return {
        x: n,
        y: r,
        top: o,
        right: i,
        bottom: a,
        left: l,
        width: s,
        height: c
      };
    }, e.fromRect = function(t) {
      return new e(t.x, t.y, t.width, t.height);
    }, e;
  })(), em = function(e) {
    return e instanceof SVGElement && "getBBox" in e;
  }, uw = function(e) {
    if (em(e)) {
      var t = e.getBBox(), n = t.width, r = t.height;
      return !n && !r;
    }
    var o = e, i = o.offsetWidth, a = o.offsetHeight;
    return !(i || a || e.getClientRects().length);
  }, Pv = function(e) {
    var t;
    if (e instanceof Element) return true;
    var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
    return !!(n && e instanceof n.Element);
  }, nT = function(e) {
    switch (e.tagName) {
      case "INPUT":
        if (e.type !== "image") break;
      case "VIDEO":
      case "AUDIO":
      case "EMBED":
      case "OBJECT":
      case "CANVAS":
      case "IFRAME":
      case "IMG":
        return true;
    }
    return false;
  }, hs = typeof window < "u" ? window : {}, Rc = /* @__PURE__ */ new WeakMap(), Dv = /auto|scroll/, rT = /^tb|vertical/, oT = /msie|trident/i.test(hs.navigator && hs.navigator.userAgent), vo = function(e) {
    return parseFloat(e || "0");
  }, nl = function(e, t, n) {
    return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = false), new tT((n ? t : e) || 0, (n ? e : t) || 0);
  }, $v = la({
    devicePixelContentBoxSize: nl(),
    borderBoxSize: nl(),
    contentBoxSize: nl(),
    contentRect: new cw(0, 0, 0, 0)
  }), dw = function(e, t) {
    if (t === void 0 && (t = false), Rc.has(e) && !t) return Rc.get(e);
    if (uw(e)) return Rc.set(e, $v), $v;
    var n = getComputedStyle(e), r = em(e) && e.ownerSVGElement && e.getBBox(), o = !oT && n.boxSizing === "border-box", i = rT.test(n.writingMode || ""), a = !r && Dv.test(n.overflowY || ""), l = !r && Dv.test(n.overflowX || ""), s = r ? 0 : vo(n.paddingTop), c = r ? 0 : vo(n.paddingRight), u = r ? 0 : vo(n.paddingBottom), d = r ? 0 : vo(n.paddingLeft), h = r ? 0 : vo(n.borderTopWidth), p = r ? 0 : vo(n.borderRightWidth), f = r ? 0 : vo(n.borderBottomWidth), m = r ? 0 : vo(n.borderLeftWidth), b = d + c, v = s + u, y = m + p, w = h + f, x = l ? e.offsetHeight - w - e.clientHeight : 0, S = a ? e.offsetWidth - y - e.clientWidth : 0, _ = o ? b + y : 0, C = o ? v + w : 0, k = r ? r.width : vo(n.width) - _ - S, R = r ? r.height : vo(n.height) - C - x, P = k + b + S + y, B = R + v + x + w, E = la({
      devicePixelContentBoxSize: nl(Math.round(k * devicePixelRatio), Math.round(R * devicePixelRatio), i),
      borderBoxSize: nl(P, B, i),
      contentBoxSize: nl(k, R, i),
      contentRect: new cw(d, s, k, R)
    });
    return Rc.set(e, E), E;
  }, fw = function(e, t, n) {
    var r = dw(e, n), o = r.borderBoxSize, i = r.contentBoxSize, a = r.devicePixelContentBoxSize;
    switch (t) {
      case Ts.DEVICE_PIXEL_CONTENT_BOX:
        return a;
      case Ts.BORDER_BOX:
        return o;
      default:
        return i;
    }
  }, iT = /* @__PURE__ */ (function() {
    function e(t) {
      var n = dw(t);
      this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = la([
        n.borderBoxSize
      ]), this.contentBoxSize = la([
        n.contentBoxSize
      ]), this.devicePixelContentBoxSize = la([
        n.devicePixelContentBoxSize
      ]);
    }
    return e;
  })(), hw = function(e) {
    if (uw(e)) return 1 / 0;
    for (var t = 0, n = e.parentNode; n; ) t += 1, n = n.parentNode;
    return t;
  }, aT = function() {
    var e = 1 / 0, t = [];
    aa.forEach(function(a) {
      if (a.activeTargets.length !== 0) {
        var l = [];
        a.activeTargets.forEach(function(c) {
          var u = new iT(c.target), d = hw(c.target);
          l.push(u), c.lastReportedSize = fw(c.target, c.observedBox), d < e && (e = d);
        }), t.push(function() {
          a.callback.call(a.observer, l, a.observer);
        }), a.activeTargets.splice(0, a.activeTargets.length);
      }
    });
    for (var n = 0, r = t; n < r.length; n++) {
      var o = r[n];
      o();
    }
    return e;
  }, zv = function(e) {
    aa.forEach(function(n) {
      n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(o) {
        o.isActive() && (hw(o.target) > e ? n.activeTargets.push(o) : n.skippedTargets.push(o));
      });
    });
  }, lT = function() {
    var e = 0;
    for (zv(e); ZE(); ) e = aT(), zv(e);
    return QE() && eT(), e > 0;
  }, lf, pw = [], sT = function() {
    return pw.splice(0).forEach(function(e) {
      return e();
    });
  }, cT = function(e) {
    if (!lf) {
      var t = 0, n = document.createTextNode(""), r = {
        characterData: true
      };
      new MutationObserver(function() {
        return sT();
      }).observe(n, r), lf = function() {
        n.textContent = "".concat(t ? t-- : t++);
      };
    }
    pw.push(e), lf();
  }, uT = function(e) {
    cT(function() {
      requestAnimationFrame(e);
    });
  }, Qc = 0, dT = function() {
    return !!Qc;
  }, fT = 250, hT = {
    attributes: true,
    characterData: true,
    childList: true,
    subtree: true
  }, Ov = [
    "resize",
    "load",
    "transitionend",
    "animationend",
    "animationstart",
    "animationiteration",
    "keyup",
    "keydown",
    "mouseup",
    "mousedown",
    "mouseover",
    "mouseout",
    "blur",
    "focus"
  ], Iv = function(e) {
    return e === void 0 && (e = 0), Date.now() + e;
  }, sf = false, pT = (function() {
    function e() {
      var t = this;
      this.stopped = true, this.listener = function() {
        return t.schedule();
      };
    }
    return e.prototype.run = function(t) {
      var n = this;
      if (t === void 0 && (t = fT), !sf) {
        sf = true;
        var r = Iv(t);
        uT(function() {
          var o = false;
          try {
            o = lT();
          } finally {
            if (sf = false, t = r - Iv(), !dT()) return;
            o ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
          }
        });
      }
    }, e.prototype.schedule = function() {
      this.stop(), this.run();
    }, e.prototype.observe = function() {
      var t = this, n = function() {
        return t.observer && t.observer.observe(document.body, hT);
      };
      document.body ? n() : hs.addEventListener("DOMContentLoaded", n);
    }, e.prototype.start = function() {
      var t = this;
      this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(), Ov.forEach(function(n) {
        return hs.addEventListener(n, t.listener, true);
      }));
    }, e.prototype.stop = function() {
      var t = this;
      this.stopped || (this.observer && this.observer.disconnect(), Ov.forEach(function(n) {
        return hs.removeEventListener(n, t.listener, true);
      }), this.stopped = true);
    }, e;
  })(), Rh = new pT(), Fv = function(e) {
    !Qc && e > 0 && Rh.start(), Qc += e, !Qc && Rh.stop();
  }, mT = function(e) {
    return !em(e) && !nT(e) && getComputedStyle(e).display === "inline";
  }, gT = (function() {
    function e(t, n) {
      this.target = t, this.observedBox = n || Ts.CONTENT_BOX, this.lastReportedSize = {
        inlineSize: 0,
        blockSize: 0
      };
    }
    return e.prototype.isActive = function() {
      var t = fw(this.target, this.observedBox, true);
      return mT(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
    }, e;
  })(), vT = /* @__PURE__ */ (function() {
    function e(t, n) {
      this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
    }
    return e;
  })(), Ac = /* @__PURE__ */ new WeakMap(), Mv = function(e, t) {
    for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
    return -1;
  }, Ec = (function() {
    function e() {
    }
    return e.connect = function(t, n) {
      var r = new vT(t, n);
      Ac.set(t, r);
    }, e.observe = function(t, n, r) {
      var o = Ac.get(t), i = o.observationTargets.length === 0;
      Mv(o.observationTargets, n) < 0 && (i && aa.push(o), o.observationTargets.push(new gT(n, r && r.box)), Fv(1), Rh.schedule());
    }, e.unobserve = function(t, n) {
      var r = Ac.get(t), o = Mv(r.observationTargets, n), i = r.observationTargets.length === 1;
      o >= 0 && (i && aa.splice(aa.indexOf(r), 1), r.observationTargets.splice(o, 1), Fv(-1));
    }, e.disconnect = function(t) {
      var n = this, r = Ac.get(t);
      r.observationTargets.slice().forEach(function(o) {
        return n.unobserve(t, o.target);
      }), r.activeTargets.splice(0, r.activeTargets.length);
    }, e;
  })(), bT = (function() {
    function e(t) {
      if (arguments.length === 0) throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
      if (typeof t != "function") throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
      Ec.connect(this, t);
    }
    return e.prototype.observe = function(t, n) {
      if (arguments.length === 0) throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
      if (!Pv(t)) throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
      Ec.observe(this, t, n);
    }, e.prototype.unobserve = function(t) {
      if (arguments.length === 0) throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
      if (!Pv(t)) throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
      Ec.unobserve(this, t);
    }, e.prototype.disconnect = function() {
      Ec.disconnect(this);
    }, e.toString = function() {
      return "function ResizeObserver () { [polyfill code] }";
    }, e;
  })();
  class yT {
    constructor() {
      this.handleResize = this.handleResize.bind(this), this.observer = new (typeof window < "u" && window.ResizeObserver || bT)(this.handleResize), this.elHandlersMap = /* @__PURE__ */ new Map();
    }
    handleResize(t) {
      for (const n of t) {
        const r = this.elHandlersMap.get(n.target);
        r !== void 0 && r(n);
      }
    }
    registerHandler(t, n) {
      this.elHandlersMap.set(t, n), this.observer.observe(t);
    }
    unregisterHandler(t) {
      this.elHandlersMap.has(t) && (this.elHandlersMap.delete(t), this.observer.unobserve(t));
    }
  }
  const ps = new yT(), Vr = pe({
    name: "ResizeObserver",
    props: {
      onResize: Function
    },
    setup(e) {
      let t = false;
      const n = Vn().proxy;
      function r(o) {
        const { onResize: i } = e;
        i !== void 0 && i(o);
      }
      gt(() => {
        const o = n.$el;
        if (o === void 0) {
          Sv("resize-observer", "$el does not exist.");
          return;
        }
        if (o.nextElementSibling !== o.nextSibling && o.nodeType === 3 && o.nodeValue !== "") {
          Sv("resize-observer", "$el can not be observed (it may be a text node).");
          return;
        }
        o.nextElementSibling !== null && (ps.registerHandler(o.nextElementSibling, r), t = true);
      }), Zt(() => {
        t && ps.unregisterHandler(n.$el.nextElementSibling);
      });
    },
    render() {
      return Wp(this.$slots, "default");
    }
  });
  let Tc;
  function xT() {
    return typeof document > "u" ? false : (Tc === void 0 && ("matchMedia" in window ? Tc = window.matchMedia("(pointer:coarse)").matches : Tc = false), Tc);
  }
  let cf;
  function Lv() {
    return typeof document > "u" ? 1 : (cf === void 0 && (cf = "chrome" in window ? window.devicePixelRatio : 1), cf);
  }
  const mw = "VVirtualListXScroll";
  function wT({ columnsRef: e, renderColRef: t, renderItemWithColsRef: n }) {
    const r = L(0), o = L(0), i = D(() => {
      const c = e.value;
      if (c.length === 0) return null;
      const u = new sw(c.length, 0);
      return c.forEach((d, h) => {
        u.add(h, d.width);
      }), u;
    }), a = Ct(() => {
      const c = i.value;
      return c !== null ? Math.max(c.getBound(o.value) - 1, 0) : 0;
    }), l = (c) => {
      const u = i.value;
      return u !== null ? u.sum(c) : 0;
    }, s = Ct(() => {
      const c = i.value;
      return c !== null ? Math.min(c.getBound(o.value + r.value) + 1, e.value.length - 1) : 0;
    });
    return ft(mw, {
      startIndexRef: a,
      endIndexRef: s,
      columnsRef: e,
      renderColRef: t,
      renderItemWithColsRef: n,
      getLeft: l
    }), {
      listWidthRef: r,
      scrollLeftRef: o
    };
  }
  const Bv = pe({
    name: "VirtualListRow",
    props: {
      index: {
        type: Number,
        required: true
      },
      item: {
        type: Object,
        required: true
      }
    },
    setup() {
      const { startIndexRef: e, endIndexRef: t, columnsRef: n, getLeft: r, renderColRef: o, renderItemWithColsRef: i } = je(mw);
      return {
        startIndex: e,
        endIndex: t,
        columns: n,
        renderCol: o,
        renderItemWithCols: i,
        getLeft: r
      };
    },
    render() {
      const { startIndex: e, endIndex: t, columns: n, renderCol: r, renderItemWithCols: o, getLeft: i, item: a } = this;
      if (o != null) return o({
        itemIndex: this.index,
        startColIndex: e,
        endColIndex: t,
        allColumns: n,
        item: a,
        getLeft: i
      });
      if (r != null) {
        const l = [];
        for (let s = e; s <= t; ++s) {
          const c = n[s];
          l.push(r({
            column: c,
            left: i(s),
            item: a
          }));
        }
        return l;
      }
      return null;
    }
  }), CT = Eo(".v-vl", {
    maxHeight: "inherit",
    height: "100%",
    overflow: "auto",
    minWidth: "1px"
  }, [
    Eo("&:not(.v-vl--show-scrollbar)", {
      scrollbarWidth: "none"
    }, [
      Eo("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", {
        width: 0,
        height: 0,
        display: "none"
      })
    ])
  ]), tm = pe({
    name: "VirtualList",
    inheritAttrs: false,
    props: {
      showScrollbar: {
        type: Boolean,
        default: true
      },
      columns: {
        type: Array,
        default: () => []
      },
      renderCol: Function,
      renderItemWithCols: Function,
      items: {
        type: Array,
        default: () => []
      },
      itemSize: {
        type: Number,
        required: true
      },
      itemResizable: Boolean,
      itemsStyle: [
        String,
        Object
      ],
      visibleItemsTag: {
        type: [
          String,
          Object
        ],
        default: "div"
      },
      visibleItemsProps: Object,
      ignoreItemResize: Boolean,
      onScroll: Function,
      onWheel: Function,
      onResize: Function,
      defaultScrollKey: [
        Number,
        String
      ],
      defaultScrollIndex: Number,
      keyField: {
        type: String,
        default: "key"
      },
      paddingTop: {
        type: [
          Number,
          String
        ],
        default: 0
      },
      paddingBottom: {
        type: [
          Number,
          String
        ],
        default: 0
      }
    },
    setup(e) {
      const t = Di();
      CT.mount({
        id: "vueuc/virtual-list",
        head: true,
        anchorMetaName: id,
        ssr: t
      }), gt(() => {
        const { defaultScrollIndex: M, defaultScrollKey: z } = e;
        M != null ? b({
          index: M
        }) : z != null && b({
          key: z
        });
      });
      let n = false, r = false;
      Xu(() => {
        if (n = false, !r) {
          r = true;
          return;
        }
        b({
          top: p.value,
          left: a.value
        });
      }), Vs(() => {
        n = true, r || (r = true);
      });
      const o = Ct(() => {
        if (e.renderCol == null && e.renderItemWithCols == null || e.columns.length === 0) return;
        let M = 0;
        return e.columns.forEach((z) => {
          M += z.width;
        }), M;
      }), i = D(() => {
        const M = /* @__PURE__ */ new Map(), { keyField: z } = e;
        return e.items.forEach((U, ee) => {
          M.set(U[z], ee);
        }), M;
      }), { scrollLeftRef: a, listWidthRef: l } = wT({
        columnsRef: $e(e, "columns"),
        renderColRef: $e(e, "renderCol"),
        renderItemWithColsRef: $e(e, "renderItemWithCols")
      }), s = L(null), c = L(void 0), u = /* @__PURE__ */ new Map(), d = D(() => {
        const { items: M, itemSize: z, keyField: U } = e, ee = new sw(M.length, z);
        return M.forEach((ne, ae) => {
          const ye = ne[U], xe = u.get(ye);
          xe !== void 0 && ee.add(ae, xe);
        }), ee;
      }), h = L(0), p = L(0), f = Ct(() => Math.max(d.value.getBound(p.value - pn(e.paddingTop)) - 1, 0)), m = D(() => {
        const { value: M } = c;
        if (M === void 0) return [];
        const { items: z, itemSize: U } = e, ee = f.value, ne = Math.min(ee + Math.ceil(M / U + 1), z.length - 1), ae = [];
        for (let ye = ee; ye <= ne; ++ye) ae.push(z[ye]);
        return ae;
      }), b = (M, z) => {
        if (typeof M == "number") {
          x(M, z, "auto");
          return;
        }
        const { left: U, top: ee, index: ne, key: ae, position: ye, behavior: xe, debounce: re = true } = M;
        if (U !== void 0 || ee !== void 0) x(U, ee, xe);
        else if (ne !== void 0) w(ne, xe, re);
        else if (ae !== void 0) {
          const Y = i.value.get(ae);
          Y !== void 0 && w(Y, xe, re);
        } else ye === "bottom" ? x(0, Number.MAX_SAFE_INTEGER, xe) : ye === "top" && x(0, 0, xe);
      };
      let v, y = null;
      function w(M, z, U) {
        const { value: ee } = d, ne = ee.sum(M) + pn(e.paddingTop);
        if (!U) s.value.scrollTo({
          left: 0,
          top: ne,
          behavior: z
        });
        else {
          v = M, y !== null && window.clearTimeout(y), y = window.setTimeout(() => {
            v = void 0, y = null;
          }, 16);
          const { scrollTop: ae, offsetHeight: ye } = s.value;
          if (ne > ae) {
            const xe = ee.get(M);
            ne + xe <= ae + ye || s.value.scrollTo({
              left: 0,
              top: ne + xe - ye,
              behavior: z
            });
          } else s.value.scrollTo({
            left: 0,
            top: ne,
            behavior: z
          });
        }
      }
      function x(M, z, U) {
        s.value.scrollTo({
          left: M,
          top: z,
          behavior: U
        });
      }
      function S(M, z) {
        var U, ee, ne;
        if (n || e.ignoreItemResize || E(z.target)) return;
        const { value: ae } = d, ye = i.value.get(M), xe = ae.get(ye), re = (ne = (ee = (U = z.borderBoxSize) === null || U === void 0 ? void 0 : U[0]) === null || ee === void 0 ? void 0 : ee.blockSize) !== null && ne !== void 0 ? ne : z.contentRect.height;
        if (re === xe) return;
        re - e.itemSize === 0 ? u.delete(M) : u.set(M, re - e.itemSize);
        const H = re - xe;
        if (H === 0) return;
        ae.add(ye, H);
        const oe = s.value;
        if (oe != null) {
          if (v === void 0) {
            const ce = ae.sum(ye);
            oe.scrollTop > ce && oe.scrollBy(0, H);
          } else if (ye < v) oe.scrollBy(0, H);
          else if (ye === v) {
            const ce = ae.sum(ye);
            re + ce > oe.scrollTop + oe.offsetHeight && oe.scrollBy(0, H);
          }
          B();
        }
        h.value++;
      }
      const _ = !xT();
      let C = false;
      function k(M) {
        var z;
        (z = e.onScroll) === null || z === void 0 || z.call(e, M), (!_ || !C) && B();
      }
      function R(M) {
        var z;
        if ((z = e.onWheel) === null || z === void 0 || z.call(e, M), _) {
          const U = s.value;
          if (U != null) {
            if (M.deltaX === 0 && (U.scrollTop === 0 && M.deltaY <= 0 || U.scrollTop + U.offsetHeight >= U.scrollHeight && M.deltaY >= 0)) return;
            M.preventDefault(), U.scrollTop += M.deltaY / Lv(), U.scrollLeft += M.deltaX / Lv(), B(), C = true, Es(() => {
              C = false;
            });
          }
        }
      }
      function P(M) {
        if (n || E(M.target)) return;
        if (e.renderCol == null && e.renderItemWithCols == null) {
          if (M.contentRect.height === c.value) return;
        } else if (M.contentRect.height === c.value && M.contentRect.width === l.value) return;
        c.value = M.contentRect.height, l.value = M.contentRect.width;
        const { onResize: z } = e;
        z !== void 0 && z(M);
      }
      function B() {
        const { value: M } = s;
        M != null && (p.value = M.scrollTop, a.value = M.scrollLeft);
      }
      function E(M) {
        let z = M;
        for (; z !== null; ) {
          if (z.style.display === "none") return true;
          z = z.parentElement;
        }
        return false;
      }
      return {
        listHeight: c,
        listStyle: {
          overflow: "auto"
        },
        keyToIndex: i,
        itemsStyle: D(() => {
          const { itemResizable: M } = e, z = tn(d.value.sum());
          return h.value, [
            e.itemsStyle,
            {
              boxSizing: "content-box",
              width: tn(o.value),
              height: M ? "" : z,
              minHeight: M ? z : "",
              paddingTop: tn(e.paddingTop),
              paddingBottom: tn(e.paddingBottom)
            }
          ];
        }),
        visibleItemsStyle: D(() => (h.value, {
          transform: `translateY(${tn(d.value.sum(f.value))})`
        })),
        viewportItems: m,
        listElRef: s,
        itemsElRef: L(null),
        scrollTo: b,
        handleListResize: P,
        handleListScroll: k,
        handleListWheel: R,
        handleItemResize: S
      };
    },
    render() {
      const { itemResizable: e, keyField: t, keyToIndex: n, visibleItemsTag: r } = this;
      return g(Vr, {
        onResize: this.handleListResize
      }, {
        default: () => {
          var o, i;
          return g("div", Mn(this.$attrs, {
            class: [
              "v-vl",
              this.showScrollbar && "v-vl--show-scrollbar"
            ],
            onScroll: this.handleListScroll,
            onWheel: this.handleListWheel,
            ref: "listElRef"
          }), [
            this.items.length !== 0 ? g("div", {
              ref: "itemsElRef",
              class: "v-vl-items",
              style: this.itemsStyle
            }, [
              g(r, Object.assign({
                class: "v-vl-visible-items",
                style: this.visibleItemsStyle
              }, this.visibleItemsProps), {
                default: () => {
                  const { renderCol: a, renderItemWithCols: l } = this;
                  return this.viewportItems.map((s) => {
                    const c = s[t], u = n.get(c), d = a != null ? g(Bv, {
                      index: u,
                      item: s
                    }) : void 0, h = l != null ? g(Bv, {
                      index: u,
                      item: s
                    }) : void 0, p = this.$slots.default({
                      item: s,
                      renderedCols: d,
                      renderedItemWithCols: h,
                      index: u
                    })[0];
                    return e ? g(Vr, {
                      key: c,
                      onResize: (f) => this.handleItemResize(c, f)
                    }, {
                      default: () => p
                    }) : (p.key = c, p);
                  });
                }
              })
            ]) : (i = (o = this.$slots).empty) === null || i === void 0 ? void 0 : i.call(o)
          ]);
        }
      });
    }
  }), ST = Eo(".v-x-scroll", {
    overflow: "auto",
    scrollbarWidth: "none"
  }, [
    Eo("&::-webkit-scrollbar", {
      width: 0,
      height: 0
    })
  ]), _T = pe({
    name: "XScroll",
    props: {
      disabled: Boolean,
      onScroll: Function
    },
    setup() {
      const e = L(null);
      function t(o) {
        !(o.currentTarget.offsetWidth < o.currentTarget.scrollWidth) || o.deltaY === 0 || (o.currentTarget.scrollLeft += o.deltaY + o.deltaX, o.preventDefault());
      }
      const n = Di();
      return ST.mount({
        id: "vueuc/x-scroll",
        head: true,
        anchorMetaName: id,
        ssr: n
      }), Object.assign({
        selfRef: e,
        handleWheel: t
      }, {
        scrollTo(...o) {
          var i;
          (i = e.value) === null || i === void 0 || i.scrollTo(...o);
        }
      });
    },
    render() {
      return g("div", {
        ref: "selfRef",
        onScroll: this.onScroll,
        onWheel: this.disabled ? void 0 : this.handleWheel,
        class: "v-x-scroll"
      }, this.$slots);
    }
  }), Wo = "v-hidden", kT = Eo("[v-hidden]", {
    display: "none!important"
  }), Ah = pe({
    name: "Overflow",
    props: {
      getCounter: Function,
      getTail: Function,
      updateCounter: Function,
      onUpdateCount: Function,
      onUpdateOverflow: Function
    },
    setup(e, { slots: t }) {
      const n = L(null), r = L(null);
      function o(a) {
        const { value: l } = n, { getCounter: s, getTail: c } = e;
        let u;
        if (s !== void 0 ? u = s() : u = r.value, !l || !u) return;
        u.hasAttribute(Wo) && u.removeAttribute(Wo);
        const { children: d } = l;
        if (a.showAllItemsBeforeCalculate) for (const w of d) w.hasAttribute(Wo) && w.removeAttribute(Wo);
        const h = l.offsetWidth, p = [], f = t.tail ? c == null ? void 0 : c() : null;
        let m = f ? f.offsetWidth : 0, b = false;
        const v = l.children.length - (t.tail ? 1 : 0);
        for (let w = 0; w < v - 1; ++w) {
          if (w < 0) continue;
          const x = d[w];
          if (b) {
            x.hasAttribute(Wo) || x.setAttribute(Wo, "");
            continue;
          } else x.hasAttribute(Wo) && x.removeAttribute(Wo);
          const S = x.offsetWidth;
          if (m += S, p[w] = S, m > h) {
            const { updateCounter: _ } = e;
            for (let C = w; C >= 0; --C) {
              const k = v - 1 - C;
              _ !== void 0 ? _(k) : u.textContent = `${k}`;
              const R = u.offsetWidth;
              if (m -= p[C], m + R <= h || C === 0) {
                b = true, w = C - 1, f && (w === -1 ? (f.style.maxWidth = `${h - R}px`, f.style.boxSizing = "border-box") : f.style.maxWidth = "");
                const { onUpdateCount: P } = e;
                P && P(k);
                break;
              }
            }
          }
        }
        const { onUpdateOverflow: y } = e;
        b ? y !== void 0 && y(true) : (y !== void 0 && y(false), u.setAttribute(Wo, ""));
      }
      const i = Di();
      return kT.mount({
        id: "vueuc/overflow",
        head: true,
        anchorMetaName: id,
        ssr: i
      }), gt(() => o({
        showAllItemsBeforeCalculate: false
      })), {
        selfRef: n,
        counterRef: r,
        sync: o
      };
    },
    render() {
      const { $slots: e } = this;
      return sn(() => this.sync({
        showAllItemsBeforeCalculate: false
      })), g("div", {
        class: "v-overflow",
        ref: "selfRef"
      }, [
        Wp(e, "default"),
        e.counter ? e.counter() : g("span", {
          style: {
            display: "inline-block"
          },
          ref: "counterRef"
        }),
        e.tail ? e.tail() : null
      ]);
    }
  });
  function gw(e) {
    return e instanceof HTMLElement;
  }
  function vw(e) {
    for (let t = 0; t < e.childNodes.length; t++) {
      const n = e.childNodes[t];
      if (gw(n) && (yw(n) || vw(n))) return true;
    }
    return false;
  }
  function bw(e) {
    for (let t = e.childNodes.length - 1; t >= 0; t--) {
      const n = e.childNodes[t];
      if (gw(n) && (yw(n) || bw(n))) return true;
    }
    return false;
  }
  function yw(e) {
    if (!RT(e)) return false;
    try {
      e.focus({
        preventScroll: true
      });
    } catch {
    }
    return document.activeElement === e;
  }
  function RT(e) {
    if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null) return true;
    if (e.getAttribute("disabled")) return false;
    switch (e.nodeName) {
      case "A":
        return !!e.href && e.rel !== "ignore";
      case "INPUT":
        return e.type !== "hidden" && e.type !== "file";
      case "SELECT":
      case "TEXTAREA":
        return true;
      default:
        return false;
    }
  }
  let Hl = [];
  const nm = pe({
    name: "FocusTrap",
    props: {
      disabled: Boolean,
      active: Boolean,
      autoFocus: {
        type: Boolean,
        default: true
      },
      onEsc: Function,
      initialFocusTo: [
        String,
        Function
      ],
      finalFocusTo: [
        String,
        Function
      ],
      returnFocusOnDeactivated: {
        type: Boolean,
        default: true
      }
    },
    setup(e) {
      const t = ai(), n = L(null), r = L(null);
      let o = false, i = false;
      const a = typeof document > "u" ? null : document.activeElement;
      function l() {
        return Hl[Hl.length - 1] === t;
      }
      function s(b) {
        var v;
        b.code === "Escape" && l() && ((v = e.onEsc) === null || v === void 0 || v.call(e, b));
      }
      gt(() => {
        lt(() => e.active, (b) => {
          b ? (d(), Dt("keydown", document, s)) : (Rt("keydown", document, s), o && h());
        }, {
          immediate: true
        });
      }), Zt(() => {
        Rt("keydown", document, s), o && h();
      });
      function c(b) {
        if (!i && l()) {
          const v = u();
          if (v === null || v.contains(cl(b))) return;
          p("first");
        }
      }
      function u() {
        const b = n.value;
        if (b === null) return null;
        let v = b;
        for (; v = v.nextSibling, !(v === null || v instanceof Element && v.tagName === "DIV"); ) ;
        return v;
      }
      function d() {
        var b;
        if (!e.disabled) {
          if (Hl.push(t), e.autoFocus) {
            const { initialFocusTo: v } = e;
            v === void 0 ? p("first") : (b = kv(v)) === null || b === void 0 || b.focus({
              preventScroll: true
            });
          }
          o = true, document.addEventListener("focus", c, true);
        }
      }
      function h() {
        var b;
        if (e.disabled || (document.removeEventListener("focus", c, true), Hl = Hl.filter((y) => y !== t), l())) return;
        const { finalFocusTo: v } = e;
        v !== void 0 ? (b = kv(v)) === null || b === void 0 || b.focus({
          preventScroll: true
        }) : e.returnFocusOnDeactivated && a instanceof HTMLElement && (i = true, a.focus({
          preventScroll: true
        }), i = false);
      }
      function p(b) {
        if (l() && e.active) {
          const v = n.value, y = r.value;
          if (v !== null && y !== null) {
            const w = u();
            if (w == null || w === y) {
              i = true, v.focus({
                preventScroll: true
              }), i = false;
              return;
            }
            i = true;
            const x = b === "first" ? vw(w) : bw(w);
            i = false, x || (i = true, v.focus({
              preventScroll: true
            }), i = false);
          }
        }
      }
      function f(b) {
        if (i) return;
        const v = u();
        v !== null && (b.relatedTarget !== null && v.contains(b.relatedTarget) ? p("last") : p("first"));
      }
      function m(b) {
        i || (b.relatedTarget !== null && b.relatedTarget === n.value ? p("last") : p("first"));
      }
      return {
        focusableStartRef: n,
        focusableEndRef: r,
        focusableStyle: "position: absolute; height: 0; width: 0;",
        handleStartFocus: f,
        handleEndFocus: m
      };
    },
    render() {
      const { default: e } = this.$slots;
      if (e === void 0) return null;
      if (this.disabled) return e();
      const { active: t, focusableStyle: n } = this;
      return g(wt, null, [
        g("div", {
          "aria-hidden": "true",
          tabindex: t ? "0" : "-1",
          ref: "focusableStartRef",
          style: n,
          onFocus: this.handleStartFocus
        }),
        e(),
        g("div", {
          "aria-hidden": "true",
          style: n,
          ref: "focusableEndRef",
          tabindex: t ? "0" : "-1",
          onFocus: this.handleEndFocus
        })
      ]);
    }
  });
  function xw(e, t) {
    t && (gt(() => {
      const { value: n } = e;
      n && ps.registerHandler(n, t);
    }), lt(e, (n, r) => {
      r && ps.unregisterHandler(r);
    }, {
      deep: false
    }), Zt(() => {
      const { value: n } = e;
      n && ps.unregisterHandler(n);
    }));
  }
  function dl(e) {
    return e.replace(/#|\(|\)|,|\s|\./g, "_");
  }
  const AT = /^(\d|\.)+$/, Nv = /(\d|\.)+/;
  function Ft(e, { c: t = 1, offset: n = 0, attachPx: r = true } = {}) {
    if (typeof e == "number") {
      const o = (e + n) * t;
      return o === 0 ? "0" : `${o}px`;
    } else if (typeof e == "string") if (AT.test(e)) {
      const o = (Number(e) + n) * t;
      return r ? o === 0 ? "0" : `${o}px` : `${o}`;
    } else {
      const o = Nv.exec(e);
      return o ? e.replace(Nv, String((Number(o[0]) + n) * t)) : e;
    }
    return e;
  }
  function Hv(e) {
    const { left: t, right: n, top: r, bottom: o } = En(e);
    return `${r} ${t} ${o} ${n}`;
  }
  function ET(e, t) {
    if (!e) return;
    const n = document.createElement("a");
    n.href = e, t !== void 0 && (n.download = t), document.body.appendChild(n), n.click(), document.body.removeChild(n);
  }
  function jv(e) {
    return e.nodeName === "#document";
  }
  let uf;
  function TT() {
    return uf === void 0 && (uf = navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), uf;
  }
  const ww = /* @__PURE__ */ new WeakSet();
  function PT(e) {
    ww.add(e);
  }
  function Cw(e) {
    return !ww.has(e);
  }
  function Eh(e) {
    switch (typeof e) {
      case "string":
        return e || void 0;
      case "number":
        return String(e);
      default:
        return;
    }
  }
  const DT = {
    tiny: "mini",
    small: "tiny",
    medium: "small",
    large: "medium",
    huge: "large"
  };
  function Wv(e) {
    const t = DT[e];
    if (t === void 0) throw new Error(`${e} has no smaller size.`);
    return t;
  }
  function lo(e, t) {
    console.error(`[naive/${e}]: ${t}`);
  }
  function $i(e, t) {
    throw new Error(`[naive/${e}]: ${t}`);
  }
  Te = function(e, ...t) {
    if (Array.isArray(e)) e.forEach((n) => Te(n, ...t));
    else return e(...t);
  };
  function Sw(e) {
    return (t) => {
      t ? e.value = t.$el : e.value = null;
    };
  }
  function ro(e, t = true, n = []) {
    return e.forEach((r) => {
      if (r !== null) {
        if (typeof r != "object") {
          (typeof r == "string" || typeof r == "number") && n.push(Ae(String(r)));
          return;
        }
        if (Array.isArray(r)) {
          ro(r, t, n);
          return;
        }
        if (r.type === wt) {
          if (r.children === null) return;
          Array.isArray(r.children) && ro(r.children, t, n);
        } else {
          if (r.type === Rn && t) return;
          n.push(r);
        }
      }
    }), n;
  }
  function $T(e, t = "default", n = void 0) {
    const r = e[t];
    if (!r) return lo("getFirstSlotVNode", `slot[${t}] is empty`), null;
    const o = ro(r(n));
    return o.length === 1 ? o[0] : (lo("getFirstSlotVNode", `slot[${t}] should have exactly one child`), null);
  }
  function zT(e, t, n) {
    if (!t) return null;
    const r = ro(t(n));
    return r.length === 1 ? r[0] : (lo("getFirstSlotVNode", `slot[${e}] should have exactly one child`), null);
  }
  function sd(e, t = "default", n = []) {
    const o = e.$slots[t];
    return o === void 0 ? n : o();
  }
  function OT(e) {
    var t;
    const n = (t = e.dirs) === null || t === void 0 ? void 0 : t.find(({ dir: r }) => r === zo);
    return !!(n && n.value === false);
  }
  function cr(e, t = [], n) {
    const r = {};
    return t.forEach((o) => {
      r[o] = e[o];
    }), Object.assign(r, n);
  }
  function ur(e) {
    return Object.keys(e);
  }
  function ms(e) {
    const t = e.filter((n) => n !== void 0);
    if (t.length !== 0) return t.length === 1 ? t[0] : (n) => {
      e.forEach((r) => {
        r && r(n);
      });
    };
  }
  function kl(e, t = [], n) {
    const r = {};
    return Object.getOwnPropertyNames(e).forEach((i) => {
      t.includes(i) || (r[i] = e[i]);
    }), Object.assign(r, n);
  }
  function Xt(e, ...t) {
    return typeof e == "function" ? e(...t) : typeof e == "string" ? Ae(e) : typeof e == "number" ? Ae(String(e)) : null;
  }
  function Wr(e) {
    return e.some((t) => il(t) ? !(t.type === Rn || t.type === wt && !Wr(t.children)) : true) ? e : null;
  }
  In = function(e, t) {
    return e && Wr(e()) || t();
  };
  function Th(e, t, n) {
    return e && Wr(e(t)) || n(t);
  }
  Pt = function(e, t) {
    const n = e && Wr(e());
    return t(n || null);
  };
  function IT(e, t, n) {
    const r = e && Wr(e(t));
    return n(r || null);
  }
  function sa(e) {
    return !(e && Wr(e()));
  }
  const Ph = pe({
    render() {
      var e, t;
      return (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e);
    }
  }), qr = "n-config-provider", Su = "n";
  at = function(e = {}, t = {
    defaultBordered: true
  }) {
    const n = je(qr, null);
    return {
      inlineThemeDisabled: n == null ? void 0 : n.inlineThemeDisabled,
      mergedRtlRef: n == null ? void 0 : n.mergedRtlRef,
      mergedComponentPropsRef: n == null ? void 0 : n.mergedComponentPropsRef,
      mergedBreakpointsRef: n == null ? void 0 : n.mergedBreakpointsRef,
      mergedBorderedRef: D(() => {
        var r, o;
        const { bordered: i } = e;
        return i !== void 0 ? i : (o = (r = n == null ? void 0 : n.mergedBorderedRef.value) !== null && r !== void 0 ? r : t.defaultBordered) !== null && o !== void 0 ? o : true;
      }),
      mergedClsPrefixRef: n ? n.mergedClsPrefixRef : Po(Su),
      namespaceRef: D(() => n == null ? void 0 : n.mergedNamespaceRef.value)
    };
  };
  function _w() {
    const e = je(qr, null);
    return e ? e.mergedClsPrefixRef : Po(Su);
  }
  xt = function(e, t, n, r) {
    n || $i("useThemeClass", "cssVarsRef is not passed");
    const o = je(qr, null), i = o == null ? void 0 : o.mergedThemeHashRef, a = o == null ? void 0 : o.styleMountTarget, l = L(""), s = Di();
    let c;
    const u = `__${e}`, d = () => {
      let h = u;
      const p = t ? t.value : void 0, f = i == null ? void 0 : i.value;
      f && (h += `-${f}`), p && (h += `-${p}`);
      const { themeOverrides: m, builtinThemeOverrides: b } = r;
      m && (h += `-${sl(JSON.stringify(m))}`), b && (h += `-${sl(JSON.stringify(b))}`), l.value = h, c = () => {
        const v = n.value;
        let y = "";
        for (const w in v) y += `${w}: ${v[w]};`;
        W(`.${h}`, y).mount({
          id: h,
          ssr: s,
          parent: a
        }), c = void 0;
      };
    };
    return fn(() => {
      d();
    }), {
      themeClass: l,
      onRender: () => {
        c == null ? void 0 : c();
      }
    };
  };
  const Dh = "n-form-item";
  Mo = function(e, { defaultSize: t = "medium", mergedSize: n, mergedDisabled: r } = {}) {
    const o = je(Dh, null);
    ft(Dh, null);
    const i = D(n ? () => n(o) : () => {
      const { size: s } = e;
      if (s) return s;
      if (o) {
        const { mergedSize: c } = o;
        if (c.value !== void 0) return c.value;
      }
      return t;
    }), a = D(r ? () => r(o) : () => {
      const { disabled: s } = e;
      return s !== void 0 ? s : o ? o.disabled.value : false;
    }), l = D(() => {
      const { status: s } = e;
      return s || (o == null ? void 0 : o.mergedValidationStatus.value);
    });
    return Zt(() => {
      o && o.restoreValidation();
    }), {
      mergedSizeRef: i,
      mergedDisabledRef: a,
      mergedStatusRef: l,
      nTriggerFormBlur() {
        o && o.handleContentBlur();
      },
      nTriggerFormChange() {
        o && o.handleContentChange();
      },
      nTriggerFormFocus() {
        o && o.handleContentFocus();
      },
      nTriggerFormInput() {
        o && o.handleContentInput();
      }
    };
  };
  const FT = {
    name: "en-US",
    global: {
      undo: "Undo",
      redo: "Redo",
      confirm: "Confirm",
      clear: "Clear"
    },
    Popconfirm: {
      positiveText: "Confirm",
      negativeText: "Cancel"
    },
    Cascader: {
      placeholder: "Please Select",
      loading: "Loading",
      loadingRequiredMessage: (e) => `Please load all ${e}'s descendants before checking it.`
    },
    Time: {
      dateFormat: "yyyy-MM-dd",
      dateTimeFormat: "yyyy-MM-dd HH:mm:ss"
    },
    DatePicker: {
      yearFormat: "yyyy",
      monthFormat: "MMM",
      dayFormat: "eeeeee",
      yearTypeFormat: "yyyy",
      monthTypeFormat: "yyyy-MM",
      dateFormat: "yyyy-MM-dd",
      dateTimeFormat: "yyyy-MM-dd HH:mm:ss",
      quarterFormat: "yyyy-qqq",
      weekFormat: "YYYY-w",
      clear: "Clear",
      now: "Now",
      confirm: "Confirm",
      selectTime: "Select Time",
      selectDate: "Select Date",
      datePlaceholder: "Select Date",
      datetimePlaceholder: "Select Date and Time",
      monthPlaceholder: "Select Month",
      yearPlaceholder: "Select Year",
      quarterPlaceholder: "Select Quarter",
      weekPlaceholder: "Select Week",
      startDatePlaceholder: "Start Date",
      endDatePlaceholder: "End Date",
      startDatetimePlaceholder: "Start Date and Time",
      endDatetimePlaceholder: "End Date and Time",
      startMonthPlaceholder: "Start Month",
      endMonthPlaceholder: "End Month",
      monthBeforeYear: true,
      firstDayOfWeek: 6,
      today: "Today"
    },
    DataTable: {
      checkTableAll: "Select all in the table",
      uncheckTableAll: "Unselect all in the table",
      confirm: "Confirm",
      clear: "Clear"
    },
    LegacyTransfer: {
      sourceTitle: "Source",
      targetTitle: "Target"
    },
    Transfer: {
      selectAll: "Select all",
      unselectAll: "Unselect all",
      clearAll: "Clear",
      total: (e) => `Total ${e} items`,
      selected: (e) => `${e} items selected`
    },
    Empty: {
      description: "No Data"
    },
    Select: {
      placeholder: "Please Select"
    },
    TimePicker: {
      placeholder: "Select Time",
      positiveText: "OK",
      negativeText: "Cancel",
      now: "Now",
      clear: "Clear"
    },
    Pagination: {
      goto: "Goto",
      selectionSuffix: "page"
    },
    DynamicTags: {
      add: "Add"
    },
    Log: {
      loading: "Loading"
    },
    Input: {
      placeholder: "Please Input"
    },
    InputNumber: {
      placeholder: "Please Input"
    },
    DynamicInput: {
      create: "Create"
    },
    ThemeEditor: {
      title: "Theme Editor",
      clearAllVars: "Clear All Variables",
      clearSearch: "Clear Search",
      filterCompName: "Filter Component Name",
      filterVarName: "Filter Variable Name",
      import: "Import",
      export: "Export",
      restore: "Reset to Default"
    },
    Image: {
      tipPrevious: "Previous picture (\u2190)",
      tipNext: "Next picture (\u2192)",
      tipCounterclockwise: "Counterclockwise",
      tipClockwise: "Clockwise",
      tipZoomOut: "Zoom out",
      tipZoomIn: "Zoom in",
      tipDownload: "Download",
      tipClose: "Close (Esc)",
      tipOriginalSize: "Zoom to original size"
    },
    Heatmap: {
      less: "less",
      more: "more",
      monthFormat: "MMM",
      weekdayFormat: "eee"
    }
  }, MT = {
    name: "zh-CN",
    global: {
      undo: "\u64A4\u9500",
      redo: "\u91CD\u505A",
      confirm: "\u786E\u8BA4",
      clear: "\u6E05\u9664"
    },
    Popconfirm: {
      positiveText: "\u786E\u8BA4",
      negativeText: "\u53D6\u6D88"
    },
    Cascader: {
      placeholder: "\u8BF7\u9009\u62E9",
      loading: "\u52A0\u8F7D\u4E2D",
      loadingRequiredMessage: (e) => `\u52A0\u8F7D\u5168\u90E8 ${e} \u7684\u5B50\u8282\u70B9\u540E\u624D\u53EF\u9009\u4E2D`
    },
    Time: {
      dateFormat: "yyyy-MM-dd",
      dateTimeFormat: "yyyy-MM-dd HH:mm:ss"
    },
    DatePicker: {
      yearFormat: "yyyy\u5E74",
      monthFormat: "MMM",
      dayFormat: "eeeeee",
      yearTypeFormat: "yyyy",
      monthTypeFormat: "yyyy-MM",
      dateFormat: "yyyy-MM-dd",
      dateTimeFormat: "yyyy-MM-dd HH:mm:ss",
      quarterFormat: "yyyy-qqq",
      weekFormat: "YYYY-w\u5468",
      clear: "\u6E05\u9664",
      now: "\u6B64\u523B",
      confirm: "\u786E\u8BA4",
      selectTime: "\u9009\u62E9\u65F6\u95F4",
      selectDate: "\u9009\u62E9\u65E5\u671F",
      datePlaceholder: "\u9009\u62E9\u65E5\u671F",
      datetimePlaceholder: "\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
      monthPlaceholder: "\u9009\u62E9\u6708\u4EFD",
      yearPlaceholder: "\u9009\u62E9\u5E74\u4EFD",
      quarterPlaceholder: "\u9009\u62E9\u5B63\u5EA6",
      weekPlaceholder: "\u9009\u62E9\u5468",
      startDatePlaceholder: "\u5F00\u59CB\u65E5\u671F",
      endDatePlaceholder: "\u7ED3\u675F\u65E5\u671F",
      startDatetimePlaceholder: "\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
      endDatetimePlaceholder: "\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
      startMonthPlaceholder: "\u5F00\u59CB\u6708\u4EFD",
      endMonthPlaceholder: "\u7ED3\u675F\u6708\u4EFD",
      monthBeforeYear: false,
      firstDayOfWeek: 0,
      today: "\u4ECA\u5929"
    },
    DataTable: {
      checkTableAll: "\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",
      uncheckTableAll: "\u53D6\u6D88\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",
      confirm: "\u786E\u8BA4",
      clear: "\u91CD\u7F6E"
    },
    LegacyTransfer: {
      sourceTitle: "\u6E90\u9879",
      targetTitle: "\u76EE\u6807\u9879"
    },
    Transfer: {
      selectAll: "\u5168\u9009",
      clearAll: "\u6E05\u9664",
      unselectAll: "\u53D6\u6D88\u5168\u9009",
      total: (e) => `\u5171 ${e} \u9879`,
      selected: (e) => `\u5DF2\u9009 ${e} \u9879`
    },
    Empty: {
      description: "\u65E0\u6570\u636E"
    },
    Select: {
      placeholder: "\u8BF7\u9009\u62E9"
    },
    TimePicker: {
      placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4",
      positiveText: "\u786E\u8BA4",
      negativeText: "\u53D6\u6D88",
      now: "\u6B64\u523B",
      clear: "\u6E05\u9664"
    },
    Pagination: {
      goto: "\u8DF3\u81F3",
      selectionSuffix: "\u9875"
    },
    DynamicTags: {
      add: "\u6DFB\u52A0"
    },
    Log: {
      loading: "\u52A0\u8F7D\u4E2D"
    },
    Input: {
      placeholder: "\u8BF7\u8F93\u5165"
    },
    InputNumber: {
      placeholder: "\u8BF7\u8F93\u5165"
    },
    DynamicInput: {
      create: "\u6DFB\u52A0"
    },
    ThemeEditor: {
      title: "\u4E3B\u9898\u7F16\u8F91\u5668",
      clearAllVars: "\u6E05\u9664\u5168\u90E8\u53D8\u91CF",
      clearSearch: "\u6E05\u9664\u641C\u7D22",
      filterCompName: "\u8FC7\u6EE4\u7EC4\u4EF6\u540D",
      filterVarName: "\u8FC7\u6EE4\u53D8\u91CF\u540D",
      import: "\u5BFC\u5165",
      export: "\u5BFC\u51FA",
      restore: "\u6062\u590D\u9ED8\u8BA4"
    },
    Image: {
      tipPrevious: "\u4E0A\u4E00\u5F20\uFF08\u2190\uFF09",
      tipNext: "\u4E0B\u4E00\u5F20\uFF08\u2192\uFF09",
      tipCounterclockwise: "\u5411\u5DE6\u65CB\u8F6C",
      tipClockwise: "\u5411\u53F3\u65CB\u8F6C",
      tipZoomOut: "\u7F29\u5C0F",
      tipZoomIn: "\u653E\u5927",
      tipDownload: "\u4E0B\u8F7D",
      tipClose: "\u5173\u95ED\uFF08Esc\uFF09",
      tipOriginalSize: "\u7F29\u653E\u5230\u539F\u59CB\u5C3A\u5BF8"
    },
    Heatmap: {
      less: "\u5C11",
      more: "\u591A",
      monthFormat: "MMM",
      weekdayFormat: "eeeeee"
    }
  };
  function df(e) {
    return (t = {}) => {
      const n = t.width ? String(t.width) : e.defaultWidth;
      return e.formats[n] || e.formats[e.defaultWidth];
    };
  }
  function jl(e) {
    return (t, n) => {
      const r = (n == null ? void 0 : n.context) ? String(n.context) : "standalone";
      let o;
      if (r === "formatting" && e.formattingValues) {
        const a = e.defaultFormattingWidth || e.defaultWidth, l = (n == null ? void 0 : n.width) ? String(n.width) : a;
        o = e.formattingValues[l] || e.formattingValues[a];
      } else {
        const a = e.defaultWidth, l = (n == null ? void 0 : n.width) ? String(n.width) : e.defaultWidth;
        o = e.values[l] || e.values[a];
      }
      const i = e.argumentCallback ? e.argumentCallback(t) : t;
      return o[i];
    };
  }
  function Wl(e) {
    return (t, n = {}) => {
      const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(o);
      if (!i) return null;
      const a = i[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(l) ? BT(l, (d) => d.test(a)) : LT(l, (d) => d.test(a));
      let c;
      c = e.valueCallback ? e.valueCallback(s) : s, c = n.valueCallback ? n.valueCallback(c) : c;
      const u = t.slice(a.length);
      return {
        value: c,
        rest: u
      };
    };
  }
  function LT(e, t) {
    for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
  }
  function BT(e, t) {
    for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
  }
  function NT(e) {
    return (t, n = {}) => {
      const r = t.match(e.matchPattern);
      if (!r) return null;
      const o = r[0], i = t.match(e.parsePattern);
      if (!i) return null;
      let a = e.valueCallback ? e.valueCallback(i[0]) : i[0];
      a = n.valueCallback ? n.valueCallback(a) : a;
      const l = t.slice(o.length);
      return {
        value: a,
        rest: l
      };
    };
  }
  const HT = {
    lessThanXSeconds: {
      one: "less than a second",
      other: "less than {{count}} seconds"
    },
    xSeconds: {
      one: "1 second",
      other: "{{count}} seconds"
    },
    halfAMinute: "half a minute",
    lessThanXMinutes: {
      one: "less than a minute",
      other: "less than {{count}} minutes"
    },
    xMinutes: {
      one: "1 minute",
      other: "{{count}} minutes"
    },
    aboutXHours: {
      one: "about 1 hour",
      other: "about {{count}} hours"
    },
    xHours: {
      one: "1 hour",
      other: "{{count}} hours"
    },
    xDays: {
      one: "1 day",
      other: "{{count}} days"
    },
    aboutXWeeks: {
      one: "about 1 week",
      other: "about {{count}} weeks"
    },
    xWeeks: {
      one: "1 week",
      other: "{{count}} weeks"
    },
    aboutXMonths: {
      one: "about 1 month",
      other: "about {{count}} months"
    },
    xMonths: {
      one: "1 month",
      other: "{{count}} months"
    },
    aboutXYears: {
      one: "about 1 year",
      other: "about {{count}} years"
    },
    xYears: {
      one: "1 year",
      other: "{{count}} years"
    },
    overXYears: {
      one: "over 1 year",
      other: "over {{count}} years"
    },
    almostXYears: {
      one: "almost 1 year",
      other: "almost {{count}} years"
    }
  }, jT = (e, t, n) => {
    let r;
    const o = HT[e];
    return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), (n == null ? void 0 : n.addSuffix) ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
  }, WT = {
    lastWeek: "'last' eeee 'at' p",
    yesterday: "'yesterday at' p",
    today: "'today at' p",
    tomorrow: "'tomorrow at' p",
    nextWeek: "eeee 'at' p",
    other: "P"
  }, UT = (e, t, n, r) => WT[e], VT = {
    narrow: [
      "B",
      "A"
    ],
    abbreviated: [
      "BC",
      "AD"
    ],
    wide: [
      "Before Christ",
      "Anno Domini"
    ]
  }, qT = {
    narrow: [
      "1",
      "2",
      "3",
      "4"
    ],
    abbreviated: [
      "Q1",
      "Q2",
      "Q3",
      "Q4"
    ],
    wide: [
      "1st quarter",
      "2nd quarter",
      "3rd quarter",
      "4th quarter"
    ]
  }, GT = {
    narrow: [
      "J",
      "F",
      "M",
      "A",
      "M",
      "J",
      "J",
      "A",
      "S",
      "O",
      "N",
      "D"
    ],
    abbreviated: [
      "Jan",
      "Feb",
      "Mar",
      "Apr",
      "May",
      "Jun",
      "Jul",
      "Aug",
      "Sep",
      "Oct",
      "Nov",
      "Dec"
    ],
    wide: [
      "January",
      "February",
      "March",
      "April",
      "May",
      "June",
      "July",
      "August",
      "September",
      "October",
      "November",
      "December"
    ]
  }, KT = {
    narrow: [
      "S",
      "M",
      "T",
      "W",
      "T",
      "F",
      "S"
    ],
    short: [
      "Su",
      "Mo",
      "Tu",
      "We",
      "Th",
      "Fr",
      "Sa"
    ],
    abbreviated: [
      "Sun",
      "Mon",
      "Tue",
      "Wed",
      "Thu",
      "Fri",
      "Sat"
    ],
    wide: [
      "Sunday",
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday",
      "Saturday"
    ]
  }, YT = {
    narrow: {
      am: "a",
      pm: "p",
      midnight: "mi",
      noon: "n",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    },
    abbreviated: {
      am: "AM",
      pm: "PM",
      midnight: "midnight",
      noon: "noon",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    },
    wide: {
      am: "a.m.",
      pm: "p.m.",
      midnight: "midnight",
      noon: "noon",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    }
  }, XT = {
    narrow: {
      am: "a",
      pm: "p",
      midnight: "mi",
      noon: "n",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    },
    abbreviated: {
      am: "AM",
      pm: "PM",
      midnight: "midnight",
      noon: "noon",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    },
    wide: {
      am: "a.m.",
      pm: "p.m.",
      midnight: "midnight",
      noon: "noon",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    }
  }, JT = (e, t) => {
    const n = Number(e), r = n % 100;
    if (r > 20 || r < 10) switch (r % 10) {
      case 1:
        return n + "st";
      case 2:
        return n + "nd";
      case 3:
        return n + "rd";
    }
    return n + "th";
  }, ZT = {
    ordinalNumber: JT,
    era: jl({
      values: VT,
      defaultWidth: "wide"
    }),
    quarter: jl({
      values: qT,
      defaultWidth: "wide",
      argumentCallback: (e) => e - 1
    }),
    month: jl({
      values: GT,
      defaultWidth: "wide"
    }),
    day: jl({
      values: KT,
      defaultWidth: "wide"
    }),
    dayPeriod: jl({
      values: YT,
      defaultWidth: "wide",
      formattingValues: XT,
      defaultFormattingWidth: "wide"
    })
  }, QT = /^(\d+)(th|st|nd|rd)?/i, eP = /\d+/i, tP = {
    narrow: /^(b|a)/i,
    abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
    wide: /^(before christ|before common era|anno domini|common era)/i
  }, nP = {
    any: [
      /^b/i,
      /^(a|c)/i
    ]
  }, rP = {
    narrow: /^[1234]/i,
    abbreviated: /^q[1234]/i,
    wide: /^[1234](th|st|nd|rd)? quarter/i
  }, oP = {
    any: [
      /1/i,
      /2/i,
      /3/i,
      /4/i
    ]
  }, iP = {
    narrow: /^[jfmasond]/i,
    abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
    wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
  }, aP = {
    narrow: [
      /^j/i,
      /^f/i,
      /^m/i,
      /^a/i,
      /^m/i,
      /^j/i,
      /^j/i,
      /^a/i,
      /^s/i,
      /^o/i,
      /^n/i,
      /^d/i
    ],
    any: [
      /^ja/i,
      /^f/i,
      /^mar/i,
      /^ap/i,
      /^may/i,
      /^jun/i,
      /^jul/i,
      /^au/i,
      /^s/i,
      /^o/i,
      /^n/i,
      /^d/i
    ]
  }, lP = {
    narrow: /^[smtwf]/i,
    short: /^(su|mo|tu|we|th|fr|sa)/i,
    abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
    wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
  }, sP = {
    narrow: [
      /^s/i,
      /^m/i,
      /^t/i,
      /^w/i,
      /^t/i,
      /^f/i,
      /^s/i
    ],
    any: [
      /^su/i,
      /^m/i,
      /^tu/i,
      /^w/i,
      /^th/i,
      /^f/i,
      /^sa/i
    ]
  }, cP = {
    narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
    any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
  }, uP = {
    any: {
      am: /^a/i,
      pm: /^p/i,
      midnight: /^mi/i,
      noon: /^no/i,
      morning: /morning/i,
      afternoon: /afternoon/i,
      evening: /evening/i,
      night: /night/i
    }
  }, dP = {
    ordinalNumber: NT({
      matchPattern: QT,
      parsePattern: eP,
      valueCallback: (e) => parseInt(e, 10)
    }),
    era: Wl({
      matchPatterns: tP,
      defaultMatchWidth: "wide",
      parsePatterns: nP,
      defaultParseWidth: "any"
    }),
    quarter: Wl({
      matchPatterns: rP,
      defaultMatchWidth: "wide",
      parsePatterns: oP,
      defaultParseWidth: "any",
      valueCallback: (e) => e + 1
    }),
    month: Wl({
      matchPatterns: iP,
      defaultMatchWidth: "wide",
      parsePatterns: aP,
      defaultParseWidth: "any"
    }),
    day: Wl({
      matchPatterns: lP,
      defaultMatchWidth: "wide",
      parsePatterns: sP,
      defaultParseWidth: "any"
    }),
    dayPeriod: Wl({
      matchPatterns: cP,
      defaultMatchWidth: "any",
      parsePatterns: uP,
      defaultParseWidth: "any"
    })
  }, fP = {
    full: "EEEE, MMMM do, y",
    long: "MMMM do, y",
    medium: "MMM d, y",
    short: "MM/dd/yyyy"
  }, hP = {
    full: "h:mm:ss a zzzz",
    long: "h:mm:ss a z",
    medium: "h:mm:ss a",
    short: "h:mm a"
  }, pP = {
    full: "{{date}} 'at' {{time}}",
    long: "{{date}} 'at' {{time}}",
    medium: "{{date}}, {{time}}",
    short: "{{date}}, {{time}}"
  }, mP = {
    date: df({
      formats: fP,
      defaultWidth: "full"
    }),
    time: df({
      formats: hP,
      defaultWidth: "full"
    }),
    dateTime: df({
      formats: pP,
      defaultWidth: "full"
    })
  }, gP = {
    code: "en-US",
    formatDistance: jT,
    formatLong: mP,
    formatRelative: UT,
    localize: ZT,
    match: dP,
    options: {
      weekStartsOn: 0,
      firstWeekContainsDate: 1
    }
  }, vP = {
    name: "en-US",
    locale: gP
  };
  var kw = typeof global == "object" && global && global.Object === Object && global, bP = typeof self == "object" && self && self.Object === Object && self, uo = kw || bP || Function("return this")(), Ai = uo.Symbol, Rw = Object.prototype, yP = Rw.hasOwnProperty, xP = Rw.toString, Ul = Ai ? Ai.toStringTag : void 0;
  function wP(e) {
    var t = yP.call(e, Ul), n = e[Ul];
    try {
      e[Ul] = void 0;
      var r = true;
    } catch {
    }
    var o = xP.call(e);
    return r && (t ? e[Ul] = n : delete e[Ul]), o;
  }
  var CP = Object.prototype, SP = CP.toString;
  function _P(e) {
    return SP.call(e);
  }
  var kP = "[object Null]", RP = "[object Undefined]", Uv = Ai ? Ai.toStringTag : void 0;
  function xa(e) {
    return e == null ? e === void 0 ? RP : kP : Uv && Uv in Object(e) ? wP(e) : _P(e);
  }
  function Ei(e) {
    return e != null && typeof e == "object";
  }
  var AP = "[object Symbol]";
  function cd(e) {
    return typeof e == "symbol" || Ei(e) && xa(e) == AP;
  }
  function Aw(e, t) {
    for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; ) o[n] = t(e[n], n, e);
    return o;
  }
  var Gr = Array.isArray, Vv = Ai ? Ai.prototype : void 0, qv = Vv ? Vv.toString : void 0;
  function Ew(e) {
    if (typeof e == "string") return e;
    if (Gr(e)) return Aw(e, Ew) + "";
    if (cd(e)) return qv ? qv.call(e) : "";
    var t = e + "";
    return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
  }
  var EP = /\s/;
  function TP(e) {
    for (var t = e.length; t-- && EP.test(e.charAt(t)); ) ;
    return t;
  }
  var PP = /^\s+/;
  function DP(e) {
    return e && e.slice(0, TP(e) + 1).replace(PP, "");
  }
  function Kr(e) {
    var t = typeof e;
    return e != null && (t == "object" || t == "function");
  }
  var Gv = NaN, $P = /^[-+]0x[0-9a-f]+$/i, zP = /^0b[01]+$/i, OP = /^0o[0-7]+$/i, IP = parseInt;
  function Kv(e) {
    if (typeof e == "number") return e;
    if (cd(e)) return Gv;
    if (Kr(e)) {
      var t = typeof e.valueOf == "function" ? e.valueOf() : e;
      e = Kr(t) ? t + "" : t;
    }
    if (typeof e != "string") return e === 0 ? e : +e;
    e = DP(e);
    var n = zP.test(e);
    return n || OP.test(e) ? IP(e.slice(2), n ? 2 : 8) : $P.test(e) ? Gv : +e;
  }
  function rm(e) {
    return e;
  }
  var FP = "[object AsyncFunction]", MP = "[object Function]", LP = "[object GeneratorFunction]", BP = "[object Proxy]";
  function om(e) {
    if (!Kr(e)) return false;
    var t = xa(e);
    return t == MP || t == LP || t == FP || t == BP;
  }
  var ff = uo["__core-js_shared__"], Yv = (function() {
    var e = /[^.]+$/.exec(ff && ff.keys && ff.keys.IE_PROTO || "");
    return e ? "Symbol(src)_1." + e : "";
  })();
  function NP(e) {
    return !!Yv && Yv in e;
  }
  var HP = Function.prototype, jP = HP.toString;
  function wa(e) {
    if (e != null) {
      try {
        return jP.call(e);
      } catch {
      }
      try {
        return e + "";
      } catch {
      }
    }
    return "";
  }
  var WP = /[\\^$.*+?()[\]{}|]/g, UP = /^\[object .+?Constructor\]$/, VP = Function.prototype, qP = Object.prototype, GP = VP.toString, KP = qP.hasOwnProperty, YP = RegExp("^" + GP.call(KP).replace(WP, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
  function XP(e) {
    if (!Kr(e) || NP(e)) return false;
    var t = om(e) ? YP : UP;
    return t.test(wa(e));
  }
  function JP(e, t) {
    return e == null ? void 0 : e[t];
  }
  function Ca(e, t) {
    var n = JP(e, t);
    return XP(n) ? n : void 0;
  }
  var $h = Ca(uo, "WeakMap"), Xv = Object.create, ZP = /* @__PURE__ */ (function() {
    function e() {
    }
    return function(t) {
      if (!Kr(t)) return {};
      if (Xv) return Xv(t);
      e.prototype = t;
      var n = new e();
      return e.prototype = void 0, n;
    };
  })();
  function QP(e, t, n) {
    switch (n.length) {
      case 0:
        return e.call(t);
      case 1:
        return e.call(t, n[0]);
      case 2:
        return e.call(t, n[0], n[1]);
      case 3:
        return e.call(t, n[0], n[1], n[2]);
    }
    return e.apply(t, n);
  }
  function e5(e, t) {
    var n = -1, r = e.length;
    for (t || (t = Array(r)); ++n < r; ) t[n] = e[n];
    return t;
  }
  var t5 = 800, n5 = 16, r5 = Date.now;
  function o5(e) {
    var t = 0, n = 0;
    return function() {
      var r = r5(), o = n5 - (r - n);
      if (n = r, o > 0) {
        if (++t >= t5) return arguments[0];
      } else t = 0;
      return e.apply(void 0, arguments);
    };
  }
  function i5(e) {
    return function() {
      return e;
    };
  }
  var _u = (function() {
    try {
      var e = Ca(Object, "defineProperty");
      return e({}, "", {}), e;
    } catch {
    }
  })(), a5 = _u ? function(e, t) {
    return _u(e, "toString", {
      configurable: true,
      enumerable: false,
      value: i5(t),
      writable: true
    });
  } : rm, l5 = o5(a5), s5 = 9007199254740991, c5 = /^(?:0|[1-9]\d*)$/;
  function im(e, t) {
    var n = typeof e;
    return t = t ?? s5, !!t && (n == "number" || n != "symbol" && c5.test(e)) && e > -1 && e % 1 == 0 && e < t;
  }
  function am(e, t, n) {
    t == "__proto__" && _u ? _u(e, t, {
      configurable: true,
      enumerable: true,
      value: n,
      writable: true
    }) : e[t] = n;
  }
  function Xs(e, t) {
    return e === t || e !== e && t !== t;
  }
  var u5 = Object.prototype, d5 = u5.hasOwnProperty;
  function f5(e, t, n) {
    var r = e[t];
    (!(d5.call(e, t) && Xs(r, n)) || n === void 0 && !(t in e)) && am(e, t, n);
  }
  function h5(e, t, n, r) {
    var o = !n;
    n || (n = {});
    for (var i = -1, a = t.length; ++i < a; ) {
      var l = t[i], s = void 0;
      s === void 0 && (s = e[l]), o ? am(n, l, s) : f5(n, l, s);
    }
    return n;
  }
  var Jv = Math.max;
  function p5(e, t, n) {
    return t = Jv(t === void 0 ? e.length - 1 : t, 0), function() {
      for (var r = arguments, o = -1, i = Jv(r.length - t, 0), a = Array(i); ++o < i; ) a[o] = r[t + o];
      o = -1;
      for (var l = Array(t + 1); ++o < t; ) l[o] = r[o];
      return l[t] = n(a), QP(e, this, l);
    };
  }
  function m5(e, t) {
    return l5(p5(e, t, rm), e + "");
  }
  var g5 = 9007199254740991;
  function lm(e) {
    return typeof e == "number" && e > -1 && e % 1 == 0 && e <= g5;
  }
  function Rl(e) {
    return e != null && lm(e.length) && !om(e);
  }
  function v5(e, t, n) {
    if (!Kr(n)) return false;
    var r = typeof t;
    return (r == "number" ? Rl(n) && im(t, n.length) : r == "string" && t in n) ? Xs(n[t], e) : false;
  }
  function b5(e) {
    return m5(function(t, n) {
      var r = -1, o = n.length, i = o > 1 ? n[o - 1] : void 0, a = o > 2 ? n[2] : void 0;
      for (i = e.length > 3 && typeof i == "function" ? (o--, i) : void 0, a && v5(n[0], n[1], a) && (i = o < 3 ? void 0 : i, o = 1), t = Object(t); ++r < o; ) {
        var l = n[r];
        l && e(t, l, r, i);
      }
      return t;
    });
  }
  var y5 = Object.prototype;
  function sm(e) {
    var t = e && e.constructor, n = typeof t == "function" && t.prototype || y5;
    return e === n;
  }
  function x5(e, t) {
    for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
    return r;
  }
  var w5 = "[object Arguments]";
  function Zv(e) {
    return Ei(e) && xa(e) == w5;
  }
  var Tw = Object.prototype, C5 = Tw.hasOwnProperty, S5 = Tw.propertyIsEnumerable, ku = Zv(/* @__PURE__ */ (function() {
    return arguments;
  })()) ? Zv : function(e) {
    return Ei(e) && C5.call(e, "callee") && !S5.call(e, "callee");
  };
  function _5() {
    return false;
  }
  var Pw = typeof exports == "object" && exports && !exports.nodeType && exports, Qv = Pw && typeof module == "object" && module && !module.nodeType && module, k5 = Qv && Qv.exports === Pw, eb = k5 ? uo.Buffer : void 0, R5 = eb ? eb.isBuffer : void 0, Ru = R5 || _5, A5 = "[object Arguments]", E5 = "[object Array]", T5 = "[object Boolean]", P5 = "[object Date]", D5 = "[object Error]", $5 = "[object Function]", z5 = "[object Map]", O5 = "[object Number]", I5 = "[object Object]", F5 = "[object RegExp]", M5 = "[object Set]", L5 = "[object String]", B5 = "[object WeakMap]", N5 = "[object ArrayBuffer]", H5 = "[object DataView]", j5 = "[object Float32Array]", W5 = "[object Float64Array]", U5 = "[object Int8Array]", V5 = "[object Int16Array]", q5 = "[object Int32Array]", G5 = "[object Uint8Array]", K5 = "[object Uint8ClampedArray]", Y5 = "[object Uint16Array]", X5 = "[object Uint32Array]", un = {};
  un[j5] = un[W5] = un[U5] = un[V5] = un[q5] = un[G5] = un[K5] = un[Y5] = un[X5] = true;
  un[A5] = un[E5] = un[N5] = un[T5] = un[H5] = un[P5] = un[D5] = un[$5] = un[z5] = un[O5] = un[I5] = un[F5] = un[M5] = un[L5] = un[B5] = false;
  function J5(e) {
    return Ei(e) && lm(e.length) && !!un[xa(e)];
  }
  function Z5(e) {
    return function(t) {
      return e(t);
    };
  }
  var Dw = typeof exports == "object" && exports && !exports.nodeType && exports, gs = Dw && typeof module == "object" && module && !module.nodeType && module, Q5 = gs && gs.exports === Dw, hf = Q5 && kw.process, tb = (function() {
    try {
      var e = gs && gs.require && gs.require("util").types;
      return e || hf && hf.binding && hf.binding("util");
    } catch {
    }
  })(), nb = tb && tb.isTypedArray, cm = nb ? Z5(nb) : J5, e4 = Object.prototype, t4 = e4.hasOwnProperty;
  function $w(e, t) {
    var n = Gr(e), r = !n && ku(e), o = !n && !r && Ru(e), i = !n && !r && !o && cm(e), a = n || r || o || i, l = a ? x5(e.length, String) : [], s = l.length;
    for (var c in e) (t || t4.call(e, c)) && !(a && (c == "length" || o && (c == "offset" || c == "parent") || i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || im(c, s))) && l.push(c);
    return l;
  }
  function zw(e, t) {
    return function(n) {
      return e(t(n));
    };
  }
  var n4 = zw(Object.keys, Object), r4 = Object.prototype, o4 = r4.hasOwnProperty;
  function i4(e) {
    if (!sm(e)) return n4(e);
    var t = [];
    for (var n in Object(e)) o4.call(e, n) && n != "constructor" && t.push(n);
    return t;
  }
  function um(e) {
    return Rl(e) ? $w(e) : i4(e);
  }
  function a4(e) {
    var t = [];
    if (e != null) for (var n in Object(e)) t.push(n);
    return t;
  }
  var l4 = Object.prototype, s4 = l4.hasOwnProperty;
  function c4(e) {
    if (!Kr(e)) return a4(e);
    var t = sm(e), n = [];
    for (var r in e) r == "constructor" && (t || !s4.call(e, r)) || n.push(r);
    return n;
  }
  function Ow(e) {
    return Rl(e) ? $w(e, true) : c4(e);
  }
  var u4 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, d4 = /^\w*$/;
  function dm(e, t) {
    if (Gr(e)) return false;
    var n = typeof e;
    return n == "number" || n == "symbol" || n == "boolean" || e == null || cd(e) ? true : d4.test(e) || !u4.test(e) || t != null && e in Object(t);
  }
  var Ps = Ca(Object, "create");
  function f4() {
    this.__data__ = Ps ? Ps(null) : {}, this.size = 0;
  }
  function h4(e) {
    var t = this.has(e) && delete this.__data__[e];
    return this.size -= t ? 1 : 0, t;
  }
  var p4 = "__lodash_hash_undefined__", m4 = Object.prototype, g4 = m4.hasOwnProperty;
  function v4(e) {
    var t = this.__data__;
    if (Ps) {
      var n = t[e];
      return n === p4 ? void 0 : n;
    }
    return g4.call(t, e) ? t[e] : void 0;
  }
  var b4 = Object.prototype, y4 = b4.hasOwnProperty;
  function x4(e) {
    var t = this.__data__;
    return Ps ? t[e] !== void 0 : y4.call(t, e);
  }
  var w4 = "__lodash_hash_undefined__";
  function C4(e, t) {
    var n = this.__data__;
    return this.size += this.has(e) ? 0 : 1, n[e] = Ps && t === void 0 ? w4 : t, this;
  }
  function pa(e) {
    var t = -1, n = e == null ? 0 : e.length;
    for (this.clear(); ++t < n; ) {
      var r = e[t];
      this.set(r[0], r[1]);
    }
  }
  pa.prototype.clear = f4;
  pa.prototype.delete = h4;
  pa.prototype.get = v4;
  pa.prototype.has = x4;
  pa.prototype.set = C4;
  function S4() {
    this.__data__ = [], this.size = 0;
  }
  function ud(e, t) {
    for (var n = e.length; n--; ) if (Xs(e[n][0], t)) return n;
    return -1;
  }
  var _4 = Array.prototype, k4 = _4.splice;
  function R4(e) {
    var t = this.__data__, n = ud(t, e);
    if (n < 0) return false;
    var r = t.length - 1;
    return n == r ? t.pop() : k4.call(t, n, 1), --this.size, true;
  }
  function A4(e) {
    var t = this.__data__, n = ud(t, e);
    return n < 0 ? void 0 : t[n][1];
  }
  function E4(e) {
    return ud(this.__data__, e) > -1;
  }
  function T4(e, t) {
    var n = this.__data__, r = ud(n, e);
    return r < 0 ? (++this.size, n.push([
      e,
      t
    ])) : n[r][1] = t, this;
  }
  function di(e) {
    var t = -1, n = e == null ? 0 : e.length;
    for (this.clear(); ++t < n; ) {
      var r = e[t];
      this.set(r[0], r[1]);
    }
  }
  di.prototype.clear = S4;
  di.prototype.delete = R4;
  di.prototype.get = A4;
  di.prototype.has = E4;
  di.prototype.set = T4;
  var Ds = Ca(uo, "Map");
  function P4() {
    this.size = 0, this.__data__ = {
      hash: new pa(),
      map: new (Ds || di)(),
      string: new pa()
    };
  }
  function D4(e) {
    var t = typeof e;
    return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
  }
  function dd(e, t) {
    var n = e.__data__;
    return D4(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
  }
  function $4(e) {
    var t = dd(this, e).delete(e);
    return this.size -= t ? 1 : 0, t;
  }
  function z4(e) {
    return dd(this, e).get(e);
  }
  function O4(e) {
    return dd(this, e).has(e);
  }
  function I4(e, t) {
    var n = dd(this, e), r = n.size;
    return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
  }
  function fi(e) {
    var t = -1, n = e == null ? 0 : e.length;
    for (this.clear(); ++t < n; ) {
      var r = e[t];
      this.set(r[0], r[1]);
    }
  }
  fi.prototype.clear = P4;
  fi.prototype.delete = $4;
  fi.prototype.get = z4;
  fi.prototype.has = O4;
  fi.prototype.set = I4;
  var F4 = "Expected a function";
  function fm(e, t) {
    if (typeof e != "function" || t != null && typeof t != "function") throw new TypeError(F4);
    var n = function() {
      var r = arguments, o = t ? t.apply(this, r) : r[0], i = n.cache;
      if (i.has(o)) return i.get(o);
      var a = e.apply(this, r);
      return n.cache = i.set(o, a) || i, a;
    };
    return n.cache = new (fm.Cache || fi)(), n;
  }
  fm.Cache = fi;
  var M4 = 500;
  function L4(e) {
    var t = fm(e, function(r) {
      return n.size === M4 && n.clear(), r;
    }), n = t.cache;
    return t;
  }
  var B4 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, N4 = /\\(\\)?/g, H4 = L4(function(e) {
    var t = [];
    return e.charCodeAt(0) === 46 && t.push(""), e.replace(B4, function(n, r, o, i) {
      t.push(o ? i.replace(N4, "$1") : r || n);
    }), t;
  });
  function Iw(e) {
    return e == null ? "" : Ew(e);
  }
  function Fw(e, t) {
    return Gr(e) ? e : dm(e, t) ? [
      e
    ] : H4(Iw(e));
  }
  function fd(e) {
    if (typeof e == "string" || cd(e)) return e;
    var t = e + "";
    return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
  }
  function Mw(e, t) {
    t = Fw(t, e);
    for (var n = 0, r = t.length; e != null && n < r; ) e = e[fd(t[n++])];
    return n && n == r ? e : void 0;
  }
  function $s(e, t, n) {
    var r = e == null ? void 0 : Mw(e, t);
    return r === void 0 ? n : r;
  }
  function j4(e, t) {
    for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n];
    return e;
  }
  var Lw = zw(Object.getPrototypeOf, Object), W4 = "[object Object]", U4 = Function.prototype, V4 = Object.prototype, Bw = U4.toString, q4 = V4.hasOwnProperty, G4 = Bw.call(Object);
  function K4(e) {
    if (!Ei(e) || xa(e) != W4) return false;
    var t = Lw(e);
    if (t === null) return true;
    var n = q4.call(t, "constructor") && t.constructor;
    return typeof n == "function" && n instanceof n && Bw.call(n) == G4;
  }
  function Y4(e, t, n) {
    var r = -1, o = e.length;
    t < 0 && (t = -t > o ? 0 : o + t), n = n > o ? o : n, n < 0 && (n += o), o = t > n ? 0 : n - t >>> 0, t >>>= 0;
    for (var i = Array(o); ++r < o; ) i[r] = e[r + t];
    return i;
  }
  function X4(e, t, n) {
    var r = e.length;
    return n = n === void 0 ? r : n, !t && n >= r ? e : Y4(e, t, n);
  }
  var J4 = "\\ud800-\\udfff", Z4 = "\\u0300-\\u036f", Q4 = "\\ufe20-\\ufe2f", eD = "\\u20d0-\\u20ff", tD = Z4 + Q4 + eD, nD = "\\ufe0e\\ufe0f", rD = "\\u200d", oD = RegExp("[" + rD + J4 + tD + nD + "]");
  function Nw(e) {
    return oD.test(e);
  }
  function iD(e) {
    return e.split("");
  }
  var Hw = "\\ud800-\\udfff", aD = "\\u0300-\\u036f", lD = "\\ufe20-\\ufe2f", sD = "\\u20d0-\\u20ff", cD = aD + lD + sD, uD = "\\ufe0e\\ufe0f", dD = "[" + Hw + "]", zh = "[" + cD + "]", Oh = "\\ud83c[\\udffb-\\udfff]", fD = "(?:" + zh + "|" + Oh + ")", jw = "[^" + Hw + "]", Ww = "(?:\\ud83c[\\udde6-\\uddff]){2}", Uw = "[\\ud800-\\udbff][\\udc00-\\udfff]", hD = "\\u200d", Vw = fD + "?", qw = "[" + uD + "]?", pD = "(?:" + hD + "(?:" + [
    jw,
    Ww,
    Uw
  ].join("|") + ")" + qw + Vw + ")*", mD = qw + Vw + pD, gD = "(?:" + [
    jw + zh + "?",
    zh,
    Ww,
    Uw,
    dD
  ].join("|") + ")", vD = RegExp(Oh + "(?=" + Oh + ")|" + gD + mD, "g");
  function bD(e) {
    return e.match(vD) || [];
  }
  function yD(e) {
    return Nw(e) ? bD(e) : iD(e);
  }
  function xD(e) {
    return function(t) {
      t = Iw(t);
      var n = Nw(t) ? yD(t) : void 0, r = n ? n[0] : t.charAt(0), o = n ? X4(n, 1).join("") : t.slice(1);
      return r[e]() + o;
    };
  }
  var wD = xD("toUpperCase");
  function CD() {
    this.__data__ = new di(), this.size = 0;
  }
  function SD(e) {
    var t = this.__data__, n = t.delete(e);
    return this.size = t.size, n;
  }
  function _D(e) {
    return this.__data__.get(e);
  }
  function kD(e) {
    return this.__data__.has(e);
  }
  var RD = 200;
  function AD(e, t) {
    var n = this.__data__;
    if (n instanceof di) {
      var r = n.__data__;
      if (!Ds || r.length < RD - 1) return r.push([
        e,
        t
      ]), this.size = ++n.size, this;
      n = this.__data__ = new fi(r);
    }
    return n.set(e, t), this.size = n.size, this;
  }
  function Do(e) {
    var t = this.__data__ = new di(e);
    this.size = t.size;
  }
  Do.prototype.clear = CD;
  Do.prototype.delete = SD;
  Do.prototype.get = _D;
  Do.prototype.has = kD;
  Do.prototype.set = AD;
  var Gw = typeof exports == "object" && exports && !exports.nodeType && exports, rb = Gw && typeof module == "object" && module && !module.nodeType && module, ED = rb && rb.exports === Gw, ob = ED ? uo.Buffer : void 0;
  ob && ob.allocUnsafe;
  function TD(e, t) {
    return e.slice();
  }
  function PD(e, t) {
    for (var n = -1, r = e == null ? 0 : e.length, o = 0, i = []; ++n < r; ) {
      var a = e[n];
      t(a, n, e) && (i[o++] = a);
    }
    return i;
  }
  function DD() {
    return [];
  }
  var $D = Object.prototype, zD = $D.propertyIsEnumerable, ib = Object.getOwnPropertySymbols, OD = ib ? function(e) {
    return e == null ? [] : (e = Object(e), PD(ib(e), function(t) {
      return zD.call(e, t);
    }));
  } : DD;
  function ID(e, t, n) {
    var r = t(e);
    return Gr(e) ? r : j4(r, n(e));
  }
  function ab(e) {
    return ID(e, um, OD);
  }
  var Ih = Ca(uo, "DataView"), Fh = Ca(uo, "Promise"), Mh = Ca(uo, "Set"), lb = "[object Map]", FD = "[object Object]", sb = "[object Promise]", cb = "[object Set]", ub = "[object WeakMap]", db = "[object DataView]", MD = wa(Ih), LD = wa(Ds), BD = wa(Fh), ND = wa(Mh), HD = wa($h), Ci = xa;
  (Ih && Ci(new Ih(new ArrayBuffer(1))) != db || Ds && Ci(new Ds()) != lb || Fh && Ci(Fh.resolve()) != sb || Mh && Ci(new Mh()) != cb || $h && Ci(new $h()) != ub) && (Ci = function(e) {
    var t = xa(e), n = t == FD ? e.constructor : void 0, r = n ? wa(n) : "";
    if (r) switch (r) {
      case MD:
        return db;
      case LD:
        return lb;
      case BD:
        return sb;
      case ND:
        return cb;
      case HD:
        return ub;
    }
    return t;
  });
  var Au = uo.Uint8Array;
  function jD(e) {
    var t = new e.constructor(e.byteLength);
    return new Au(t).set(new Au(e)), t;
  }
  function WD(e, t) {
    var n = jD(e.buffer);
    return new e.constructor(n, e.byteOffset, e.length);
  }
  function UD(e) {
    return typeof e.constructor == "function" && !sm(e) ? ZP(Lw(e)) : {};
  }
  var VD = "__lodash_hash_undefined__";
  function qD(e) {
    return this.__data__.set(e, VD), this;
  }
  function GD(e) {
    return this.__data__.has(e);
  }
  function Eu(e) {
    var t = -1, n = e == null ? 0 : e.length;
    for (this.__data__ = new fi(); ++t < n; ) this.add(e[t]);
  }
  Eu.prototype.add = Eu.prototype.push = qD;
  Eu.prototype.has = GD;
  function KD(e, t) {
    for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return true;
    return false;
  }
  function YD(e, t) {
    return e.has(t);
  }
  var XD = 1, JD = 2;
  function Kw(e, t, n, r, o, i) {
    var a = n & XD, l = e.length, s = t.length;
    if (l != s && !(a && s > l)) return false;
    var c = i.get(e), u = i.get(t);
    if (c && u) return c == t && u == e;
    var d = -1, h = true, p = n & JD ? new Eu() : void 0;
    for (i.set(e, t), i.set(t, e); ++d < l; ) {
      var f = e[d], m = t[d];
      if (r) var b = a ? r(m, f, d, t, e, i) : r(f, m, d, e, t, i);
      if (b !== void 0) {
        if (b) continue;
        h = false;
        break;
      }
      if (p) {
        if (!KD(t, function(v, y) {
          if (!YD(p, y) && (f === v || o(f, v, n, r, i))) return p.push(y);
        })) {
          h = false;
          break;
        }
      } else if (!(f === m || o(f, m, n, r, i))) {
        h = false;
        break;
      }
    }
    return i.delete(e), i.delete(t), h;
  }
  function ZD(e) {
    var t = -1, n = Array(e.size);
    return e.forEach(function(r, o) {
      n[++t] = [
        o,
        r
      ];
    }), n;
  }
  function QD(e) {
    var t = -1, n = Array(e.size);
    return e.forEach(function(r) {
      n[++t] = r;
    }), n;
  }
  var e$ = 1, t$ = 2, n$ = "[object Boolean]", r$ = "[object Date]", o$ = "[object Error]", i$ = "[object Map]", a$ = "[object Number]", l$ = "[object RegExp]", s$ = "[object Set]", c$ = "[object String]", u$ = "[object Symbol]", d$ = "[object ArrayBuffer]", f$ = "[object DataView]", fb = Ai ? Ai.prototype : void 0, pf = fb ? fb.valueOf : void 0;
  function h$(e, t, n, r, o, i, a) {
    switch (n) {
      case f$:
        if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return false;
        e = e.buffer, t = t.buffer;
      case d$:
        return !(e.byteLength != t.byteLength || !i(new Au(e), new Au(t)));
      case n$:
      case r$:
      case a$:
        return Xs(+e, +t);
      case o$:
        return e.name == t.name && e.message == t.message;
      case l$:
      case c$:
        return e == t + "";
      case i$:
        var l = ZD;
      case s$:
        var s = r & e$;
        if (l || (l = QD), e.size != t.size && !s) return false;
        var c = a.get(e);
        if (c) return c == t;
        r |= t$, a.set(e, t);
        var u = Kw(l(e), l(t), r, o, i, a);
        return a.delete(e), u;
      case u$:
        if (pf) return pf.call(e) == pf.call(t);
    }
    return false;
  }
  var p$ = 1, m$ = Object.prototype, g$ = m$.hasOwnProperty;
  function v$(e, t, n, r, o, i) {
    var a = n & p$, l = ab(e), s = l.length, c = ab(t), u = c.length;
    if (s != u && !a) return false;
    for (var d = s; d--; ) {
      var h = l[d];
      if (!(a ? h in t : g$.call(t, h))) return false;
    }
    var p = i.get(e), f = i.get(t);
    if (p && f) return p == t && f == e;
    var m = true;
    i.set(e, t), i.set(t, e);
    for (var b = a; ++d < s; ) {
      h = l[d];
      var v = e[h], y = t[h];
      if (r) var w = a ? r(y, v, h, t, e, i) : r(v, y, h, e, t, i);
      if (!(w === void 0 ? v === y || o(v, y, n, r, i) : w)) {
        m = false;
        break;
      }
      b || (b = h == "constructor");
    }
    if (m && !b) {
      var x = e.constructor, S = t.constructor;
      x != S && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof S == "function" && S instanceof S) && (m = false);
    }
    return i.delete(e), i.delete(t), m;
  }
  var b$ = 1, hb = "[object Arguments]", pb = "[object Array]", Pc = "[object Object]", y$ = Object.prototype, mb = y$.hasOwnProperty;
  function x$(e, t, n, r, o, i) {
    var a = Gr(e), l = Gr(t), s = a ? pb : Ci(e), c = l ? pb : Ci(t);
    s = s == hb ? Pc : s, c = c == hb ? Pc : c;
    var u = s == Pc, d = c == Pc, h = s == c;
    if (h && Ru(e)) {
      if (!Ru(t)) return false;
      a = true, u = false;
    }
    if (h && !u) return i || (i = new Do()), a || cm(e) ? Kw(e, t, n, r, o, i) : h$(e, t, s, n, r, o, i);
    if (!(n & b$)) {
      var p = u && mb.call(e, "__wrapped__"), f = d && mb.call(t, "__wrapped__");
      if (p || f) {
        var m = p ? e.value() : e, b = f ? t.value() : t;
        return i || (i = new Do()), o(m, b, n, r, i);
      }
    }
    return h ? (i || (i = new Do()), v$(e, t, n, r, o, i)) : false;
  }
  function hm(e, t, n, r, o) {
    return e === t ? true : e == null || t == null || !Ei(e) && !Ei(t) ? e !== e && t !== t : x$(e, t, n, r, hm, o);
  }
  var w$ = 1, C$ = 2;
  function S$(e, t, n, r) {
    var o = n.length, i = o;
    if (e == null) return !i;
    for (e = Object(e); o--; ) {
      var a = n[o];
      if (a[2] ? a[1] !== e[a[0]] : !(a[0] in e)) return false;
    }
    for (; ++o < i; ) {
      a = n[o];
      var l = a[0], s = e[l], c = a[1];
      if (a[2]) {
        if (s === void 0 && !(l in e)) return false;
      } else {
        var u = new Do(), d;
        if (!(d === void 0 ? hm(c, s, w$ | C$, r, u) : d)) return false;
      }
    }
    return true;
  }
  function Yw(e) {
    return e === e && !Kr(e);
  }
  function _$(e) {
    for (var t = um(e), n = t.length; n--; ) {
      var r = t[n], o = e[r];
      t[n] = [
        r,
        o,
        Yw(o)
      ];
    }
    return t;
  }
  function Xw(e, t) {
    return function(n) {
      return n == null ? false : n[e] === t && (t !== void 0 || e in Object(n));
    };
  }
  function k$(e) {
    var t = _$(e);
    return t.length == 1 && t[0][2] ? Xw(t[0][0], t[0][1]) : function(n) {
      return n === e || S$(n, e, t);
    };
  }
  function R$(e, t) {
    return e != null && t in Object(e);
  }
  function A$(e, t, n) {
    t = Fw(t, e);
    for (var r = -1, o = t.length, i = false; ++r < o; ) {
      var a = fd(t[r]);
      if (!(i = e != null && n(e, a))) break;
      e = e[a];
    }
    return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && lm(o) && im(a, o) && (Gr(e) || ku(e)));
  }
  function E$(e, t) {
    return e != null && A$(e, t, R$);
  }
  var T$ = 1, P$ = 2;
  function D$(e, t) {
    return dm(e) && Yw(t) ? Xw(fd(e), t) : function(n) {
      var r = $s(n, e);
      return r === void 0 && r === t ? E$(n, e) : hm(t, r, T$ | P$);
    };
  }
  function $$(e) {
    return function(t) {
      return t == null ? void 0 : t[e];
    };
  }
  function z$(e) {
    return function(t) {
      return Mw(t, e);
    };
  }
  function O$(e) {
    return dm(e) ? $$(fd(e)) : z$(e);
  }
  function I$(e) {
    return typeof e == "function" ? e : e == null ? rm : typeof e == "object" ? Gr(e) ? D$(e[0], e[1]) : k$(e) : O$(e);
  }
  function F$(e) {
    return function(t, n, r) {
      for (var o = -1, i = Object(t), a = r(t), l = a.length; l--; ) {
        var s = a[++o];
        if (n(i[s], s, i) === false) break;
      }
      return t;
    };
  }
  var Jw = F$();
  function M$(e, t) {
    return e && Jw(e, t, um);
  }
  function L$(e, t) {
    return function(n, r) {
      if (n == null) return n;
      if (!Rl(n)) return e(n, r);
      for (var o = n.length, i = -1, a = Object(n); ++i < o && r(a[i], i, a) !== false; ) ;
      return n;
    };
  }
  var B$ = L$(M$), mf = function() {
    return uo.Date.now();
  }, N$ = "Expected a function", H$ = Math.max, j$ = Math.min;
  function W$(e, t, n) {
    var r, o, i, a, l, s, c = 0, u = false, d = false, h = true;
    if (typeof e != "function") throw new TypeError(N$);
    t = Kv(t) || 0, Kr(n) && (u = !!n.leading, d = "maxWait" in n, i = d ? H$(Kv(n.maxWait) || 0, t) : i, h = "trailing" in n ? !!n.trailing : h);
    function p(_) {
      var C = r, k = o;
      return r = o = void 0, c = _, a = e.apply(k, C), a;
    }
    function f(_) {
      return c = _, l = setTimeout(v, t), u ? p(_) : a;
    }
    function m(_) {
      var C = _ - s, k = _ - c, R = t - C;
      return d ? j$(R, i - k) : R;
    }
    function b(_) {
      var C = _ - s, k = _ - c;
      return s === void 0 || C >= t || C < 0 || d && k >= i;
    }
    function v() {
      var _ = mf();
      if (b(_)) return y(_);
      l = setTimeout(v, m(_));
    }
    function y(_) {
      return l = void 0, h && r ? p(_) : (r = o = void 0, a);
    }
    function w() {
      l !== void 0 && clearTimeout(l), c = 0, r = s = o = l = void 0;
    }
    function x() {
      return l === void 0 ? a : y(mf());
    }
    function S() {
      var _ = mf(), C = b(_);
      if (r = arguments, o = this, s = _, C) {
        if (l === void 0) return f(s);
        if (d) return clearTimeout(l), l = setTimeout(v, t), p(s);
      }
      return l === void 0 && (l = setTimeout(v, t)), a;
    }
    return S.cancel = w, S.flush = x, S;
  }
  function Lh(e, t, n) {
    (n !== void 0 && !Xs(e[t], n) || n === void 0 && !(t in e)) && am(e, t, n);
  }
  function U$(e) {
    return Ei(e) && Rl(e);
  }
  function Bh(e, t) {
    if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
  }
  function V$(e) {
    return h5(e, Ow(e));
  }
  function q$(e, t, n, r, o, i, a) {
    var l = Bh(e, n), s = Bh(t, n), c = a.get(s);
    if (c) {
      Lh(e, n, c);
      return;
    }
    var u = i ? i(l, s, n + "", e, t, a) : void 0, d = u === void 0;
    if (d) {
      var h = Gr(s), p = !h && Ru(s), f = !h && !p && cm(s);
      u = s, h || p || f ? Gr(l) ? u = l : U$(l) ? u = e5(l) : p ? (d = false, u = TD(s)) : f ? (d = false, u = WD(s)) : u = [] : K4(s) || ku(s) ? (u = l, ku(l) ? u = V$(l) : (!Kr(l) || om(l)) && (u = UD(s))) : d = false;
    }
    d && (a.set(s, u), o(u, s, r, i, a), a.delete(s)), Lh(e, n, u);
  }
  function Zw(e, t, n, r, o) {
    e !== t && Jw(t, function(i, a) {
      if (o || (o = new Do()), Kr(i)) q$(e, t, a, n, Zw, r, o);
      else {
        var l = r ? r(Bh(e, a), i, a + "", e, t, o) : void 0;
        l === void 0 && (l = i), Lh(e, a, l);
      }
    }, Ow);
  }
  function G$(e, t) {
    var n = -1, r = Rl(e) ? Array(e.length) : [];
    return B$(e, function(o, i, a) {
      r[++n] = t(o, i, a);
    }), r;
  }
  function K$(e, t) {
    var n = Gr(e) ? Aw : G$;
    return n(e, I$(t));
  }
  var Xa = b5(function(e, t, n) {
    Zw(e, t, n);
  }), Y$ = "Expected a function";
  function X$(e, t, n) {
    var r = true, o = true;
    if (typeof e != "function") throw new TypeError(Y$);
    return Kr(n) && (r = "leading" in n ? !!n.leading : r, o = "trailing" in n ? !!n.trailing : o), W$(e, t, {
      leading: r,
      maxWait: t,
      trailing: o
    });
  }
  ma = function(e) {
    const { mergedLocaleRef: t, mergedDateLocaleRef: n } = je(qr, null) || {}, r = D(() => {
      var i, a;
      return (a = (i = t == null ? void 0 : t.value) === null || i === void 0 ? void 0 : i[e]) !== null && a !== void 0 ? a : FT[e];
    });
    return {
      dateLocaleRef: D(() => {
        var i;
        return (i = n == null ? void 0 : n.value) !== null && i !== void 0 ? i : vP;
      }),
      localeRef: r
    };
  };
  const fl = "naive-ui-style";
  rn = function(e, t, n) {
    if (!t) return;
    const r = Di(), o = D(() => {
      const { value: l } = t;
      if (!l) return;
      const s = l[e];
      if (s) return s;
    }), i = je(qr, null), a = () => {
      fn(() => {
        const { value: l } = n, s = `${l}${e}Rtl`;
        if (XA(s, r)) return;
        const { value: c } = o;
        c && c.style.mount({
          id: s,
          head: true,
          anchorMetaName: fl,
          props: {
            bPrefix: l ? `.${l}-` : void 0
          },
          ssr: r,
          parent: i == null ? void 0 : i.styleMountTarget
        });
      });
    };
    return r ? a() : ci(a), o;
  };
  const yr = {
    fontFamily: 'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
    fontFamilyMono: "v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",
    fontWeight: "400",
    fontWeightStrong: "500",
    cubicBezierEaseInOut: "cubic-bezier(.4, 0, .2, 1)",
    cubicBezierEaseOut: "cubic-bezier(0, 0, .2, 1)",
    cubicBezierEaseIn: "cubic-bezier(.4, 0, 1, 1)",
    borderRadius: "3px",
    borderRadiusSmall: "2px",
    fontSize: "14px",
    fontSizeMini: "12px",
    fontSizeTiny: "12px",
    fontSizeSmall: "14px",
    fontSizeMedium: "14px",
    fontSizeLarge: "15px",
    fontSizeHuge: "16px",
    lineHeight: "1.6",
    heightMini: "16px",
    heightTiny: "22px",
    heightSmall: "28px",
    heightMedium: "34px",
    heightLarge: "40px",
    heightHuge: "46px"
  }, { fontSize: J$, fontFamily: Z$, lineHeight: Q$ } = yr, Qw = W("body", `
 margin: 0;
 font-size: ${J$};
 font-family: ${Z$};
 line-height: ${Q$};
 -webkit-text-size-adjust: 100%;
 -webkit-tap-highlight-color: transparent;
`, [
    W("input", `
 font-family: inherit;
 font-size: inherit;
 `)
  ]);
  function Lo(e, t, n) {
    if (!t) return;
    const r = Di(), o = je(qr, null), i = () => {
      const a = n.value;
      t.mount({
        id: a === void 0 ? e : a + e,
        head: true,
        anchorMetaName: fl,
        props: {
          bPrefix: a ? `.${a}-` : void 0
        },
        ssr: r,
        parent: o == null ? void 0 : o.styleMountTarget
      }), (o == null ? void 0 : o.preflightStyleDisabled) || Qw.mount({
        id: "n-global",
        head: true,
        anchorMetaName: fl,
        ssr: r,
        parent: o == null ? void 0 : o.styleMountTarget
      });
    };
    r ? i() : ci(i);
  }
  qX = function(e) {
    return e;
  };
  Fe = function(e, t, n, r, o, i) {
    const a = Di(), l = je(qr, null);
    if (n) {
      const c = () => {
        const u = i == null ? void 0 : i.value;
        n.mount({
          id: u === void 0 ? t : u + t,
          head: true,
          props: {
            bPrefix: u ? `.${u}-` : void 0
          },
          anchorMetaName: fl,
          ssr: a,
          parent: l == null ? void 0 : l.styleMountTarget
        }), (l == null ? void 0 : l.preflightStyleDisabled) || Qw.mount({
          id: "n-global",
          head: true,
          anchorMetaName: fl,
          ssr: a,
          parent: l == null ? void 0 : l.styleMountTarget
        });
      };
      a ? c() : ci(c);
    }
    return D(() => {
      var c;
      const { theme: { common: u, self: d, peers: h = {} } = {}, themeOverrides: p = {}, builtinThemeOverrides: f = {} } = o, { common: m, peers: b } = p, { common: v = void 0, [e]: { common: y = void 0, self: w = void 0, peers: x = {} } = {} } = (l == null ? void 0 : l.mergedThemeRef.value) || {}, { common: S = void 0, [e]: _ = {} } = (l == null ? void 0 : l.mergedThemeOverridesRef.value) || {}, { common: C, peers: k = {} } = _, R = Xa({}, u || y || v || r.common, S, C, m), P = Xa((c = d || w || r.self) === null || c === void 0 ? void 0 : c(R), f, _, p);
      return {
        common: R,
        self: P,
        peers: Xa({}, r.peers, x, h),
        peerOverrides: Xa({}, f.peers, k, b)
      };
    });
  };
  Fe.props = {
    theme: Object,
    themeOverrides: Object,
    builtinThemeOverrides: Object
  };
  let ez, Sa, nz, rz;
  ez = A("base-icon", `
 height: 1em;
 width: 1em;
 line-height: 1em;
 text-align: center;
 display: inline-block;
 position: relative;
 fill: currentColor;
`, [
    W("svg", `
 height: 1em;
 width: 1em;
 `)
  ]);
  Jt = pe({
    name: "BaseIcon",
    props: {
      role: String,
      ariaLabel: String,
      ariaDisabled: {
        type: Boolean,
        default: void 0
      },
      ariaHidden: {
        type: Boolean,
        default: void 0
      },
      clsPrefix: {
        type: String,
        required: true
      },
      onClick: Function,
      onMousedown: Function,
      onMouseup: Function
    },
    setup(e) {
      Lo("-base-icon", ez, $e(e, "clsPrefix"));
    },
    render() {
      return g("i", {
        class: `${this.clsPrefix}-base-icon`,
        onClick: this.onClick,
        onMousedown: this.onMousedown,
        onMouseup: this.onMouseup,
        role: this.role,
        "aria-label": this.ariaLabel,
        "aria-hidden": this.ariaHidden,
        "aria-disabled": this.ariaDisabled
      }, this.$slots);
    }
  });
  Sa = pe({
    name: "BaseIconSwitchTransition",
    setup(e, { slots: t }) {
      const n = Pi();
      return () => g(Ln, {
        name: "icon-switch-transition",
        appear: n.value
      }, t);
    }
  });
  tz = pe({
    name: "Add",
    render() {
      return g("svg", {
        width: "512",
        height: "512",
        viewBox: "0 0 512 512",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M256 112V400M400 256H112",
        stroke: "currentColor",
        "stroke-width": "32",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
      }));
    }
  });
  nz = pe({
    name: "ArrowBack",
    render() {
      return g("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        viewBox: "0 0 24 24"
      }, g("path", {
        d: "M0 0h24v24H0V0z",
        fill: "none"
      }), g("path", {
        d: "M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"
      }));
    }
  });
  rz = pe({
    name: "ArrowDown",
    render() {
      return g("svg", {
        viewBox: "0 0 28 28",
        version: "1.1",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("g", {
        stroke: "none",
        "stroke-width": "1",
        "fill-rule": "evenodd"
      }, g("g", {
        "fill-rule": "nonzero"
      }, g("path", {
        d: "M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"
      }))));
    }
  });
  function Al(e, t) {
    const n = pe({
      render() {
        return t();
      }
    });
    return pe({
      name: wD(e),
      setup() {
        var r;
        const o = (r = je(qr, null)) === null || r === void 0 ? void 0 : r.mergedIconsRef;
        return () => {
          var i;
          const a = (i = o == null ? void 0 : o.value) === null || i === void 0 ? void 0 : i[e];
          return a ? a() : g(n, null);
        };
      }
    });
  }
  const gb = pe({
    name: "Backward",
    render() {
      return g("svg", {
        viewBox: "0 0 20 20",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",
        fill: "currentColor"
      }));
    }
  }), oz = pe({
    name: "Checkmark",
    render() {
      return g("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        viewBox: "0 0 16 16"
      }, g("g", {
        fill: "none"
      }, g("path", {
        d: "M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",
        fill: "currentColor"
      })));
    }
  }), eC = pe({
    name: "ChevronDown",
    render() {
      return g("svg", {
        viewBox: "0 0 16 16",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",
        fill: "currentColor"
      }));
    }
  }), iz = pe({
    name: "ChevronDownFilled",
    render() {
      return g("svg", {
        viewBox: "0 0 16 16",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",
        fill: "currentColor"
      }));
    }
  }), az = pe({
    name: "ChevronLeft",
    render() {
      return g("svg", {
        viewBox: "0 0 16 16",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",
        fill: "currentColor"
      }));
    }
  }), pm = pe({
    name: "ChevronRight",
    render() {
      return g("svg", {
        viewBox: "0 0 16 16",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",
        fill: "currentColor"
      }));
    }
  }), lz = Al("clear", () => g("svg", {
    viewBox: "0 0 16 16",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    fill: "none",
    "fill-rule": "evenodd"
  }, g("g", {
    fill: "currentColor",
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"
  }))))), sz = Al("close", () => g("svg", {
    viewBox: "0 0 12 12",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg",
    "aria-hidden": true
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    fill: "none",
    "fill-rule": "evenodd"
  }, g("g", {
    fill: "currentColor",
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"
  }))))), cz = pe({
    name: "Empty",
    render() {
      return g("svg", {
        viewBox: "0 0 28 28",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",
        fill: "currentColor"
      }), g("path", {
        d: "M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",
        fill: "currentColor"
      }));
    }
  }), _a = Al("error", () => g("svg", {
    viewBox: "0 0 48 48",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    "fill-rule": "evenodd"
  }, g("g", {
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"
  }))))), uz = pe({
    name: "Eye",
    render() {
      return g("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        viewBox: "0 0 512 512"
      }, g("path", {
        d: "M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",
        fill: "none",
        stroke: "currentColor",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        "stroke-width": "32"
      }), g("circle", {
        cx: "256",
        cy: "256",
        r: "80",
        fill: "none",
        stroke: "currentColor",
        "stroke-miterlimit": "10",
        "stroke-width": "32"
      }));
    }
  }), dz = pe({
    name: "EyeOff",
    render() {
      return g("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        viewBox: "0 0 512 512"
      }, g("path", {
        d: "M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",
        fill: "currentColor"
      }), g("path", {
        d: "M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",
        fill: "currentColor"
      }), g("path", {
        d: "M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",
        fill: "currentColor"
      }), g("path", {
        d: "M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",
        fill: "currentColor"
      }), g("path", {
        d: "M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",
        fill: "currentColor"
      }));
    }
  }), vb = pe({
    name: "FastBackward",
    render() {
      return g("svg", {
        viewBox: "0 0 20 20",
        version: "1.1",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("g", {
        stroke: "none",
        "stroke-width": "1",
        fill: "none",
        "fill-rule": "evenodd"
      }, g("g", {
        fill: "currentColor",
        "fill-rule": "nonzero"
      }, g("path", {
        d: "M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"
      }))));
    }
  }), bb = pe({
    name: "FastForward",
    render() {
      return g("svg", {
        viewBox: "0 0 20 20",
        version: "1.1",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("g", {
        stroke: "none",
        "stroke-width": "1",
        fill: "none",
        "fill-rule": "evenodd"
      }, g("g", {
        fill: "currentColor",
        "fill-rule": "nonzero"
      }, g("path", {
        d: "M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"
      }))));
    }
  }), fz = pe({
    name: "Filter",
    render() {
      return g("svg", {
        viewBox: "0 0 28 28",
        version: "1.1",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("g", {
        stroke: "none",
        "stroke-width": "1",
        "fill-rule": "evenodd"
      }, g("g", {
        "fill-rule": "nonzero"
      }, g("path", {
        d: "M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"
      }))));
    }
  }), yb = pe({
    name: "Forward",
    render() {
      return g("svg", {
        viewBox: "0 0 20 20",
        fill: "none",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("path", {
        d: "M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",
        fill: "currentColor"
      }));
    }
  }), Ti = Al("info", () => g("svg", {
    viewBox: "0 0 28 28",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    "fill-rule": "evenodd"
  }, g("g", {
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"
  }))))), xb = pe({
    name: "More",
    render() {
      return g("svg", {
        viewBox: "0 0 16 16",
        version: "1.1",
        xmlns: "http://www.w3.org/2000/svg"
      }, g("g", {
        stroke: "none",
        "stroke-width": "1",
        fill: "none",
        "fill-rule": "evenodd"
      }, g("g", {
        fill: "currentColor",
        "fill-rule": "nonzero"
      }, g("path", {
        d: "M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"
      }))));
    }
  }), ka = Al("success", () => g("svg", {
    viewBox: "0 0 48 48",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    "fill-rule": "evenodd"
  }, g("g", {
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"
  }))))), zi = Al("warning", () => g("svg", {
    viewBox: "0 0 24 24",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    "fill-rule": "evenodd"
  }, g("g", {
    "fill-rule": "nonzero"
  }, g("path", {
    d: "M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"
  }))))), { cubicBezierEaseInOut: hz } = yr;
  function kr({ originalTransform: e = "", left: t = 0, top: n = 0, transition: r = `all .3s ${hz} !important` } = {}) {
    return [
      W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to", {
        transform: `${e} scale(0.75)`,
        left: t,
        top: n,
        opacity: 0
      }),
      W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from", {
        transform: `scale(1) ${e}`,
        left: t,
        top: n,
        opacity: 1
      }),
      W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active", {
        transformOrigin: "center",
        position: "absolute",
        left: t,
        top: n,
        transition: r
      })
    ];
  }
  const pz = A("base-clear", `
 flex-shrink: 0;
 height: 1em;
 width: 1em;
 position: relative;
`, [
    W(">", [
      V("clear", `
 font-size: var(--n-clear-size);
 height: 1em;
 width: 1em;
 cursor: pointer;
 color: var(--n-clear-color);
 transition: color .3s var(--n-bezier);
 display: flex;
 `, [
        W("&:hover", `
 color: var(--n-clear-color-hover)!important;
 `),
        W("&:active", `
 color: var(--n-clear-color-pressed)!important;
 `)
      ]),
      V("placeholder", `
 display: flex;
 `),
      V("clear, placeholder", `
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 `, [
        kr({
          originalTransform: "translateX(-50%) translateY(-50%)",
          left: "50%",
          top: "50%"
        })
      ])
    ])
  ]), Nh = pe({
    name: "BaseClear",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      show: Boolean,
      onClear: Function
    },
    setup(e) {
      return Lo("-base-clear", pz, $e(e, "clsPrefix")), {
        handleMouseDown(t) {
          t.preventDefault();
        }
      };
    },
    render() {
      const { clsPrefix: e } = this;
      return g("div", {
        class: `${e}-base-clear`
      }, g(Sa, null, {
        default: () => {
          var t, n;
          return this.show ? g("div", {
            key: "dismiss",
            class: `${e}-base-clear__clear`,
            onClick: this.onClear,
            onMousedown: this.handleMouseDown,
            "data-clear": true
          }, In(this.$slots.icon, () => [
            g(Jt, {
              clsPrefix: e
            }, {
              default: () => g(lz, null)
            })
          ])) : g("div", {
            key: "icon",
            class: `${e}-base-clear__placeholder`
          }, (n = (t = this.$slots).placeholder) === null || n === void 0 ? void 0 : n.call(t));
        }
      }));
    }
  }), mz = A("base-close", `
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 background-color: transparent;
 color: var(--n-close-icon-color);
 border-radius: var(--n-close-border-radius);
 height: var(--n-close-size);
 width: var(--n-close-size);
 font-size: var(--n-close-icon-size);
 outline: none;
 border: none;
 position: relative;
 padding: 0;
`, [
    G("absolute", `
 height: var(--n-close-icon-size);
 width: var(--n-close-icon-size);
 `),
    W("&::before", `
 content: "";
 position: absolute;
 width: var(--n-close-size);
 height: var(--n-close-size);
 left: 50%;
 top: 50%;
 transform: translateY(-50%) translateX(-50%);
 transition: inherit;
 border-radius: inherit;
 `),
    At("disabled", [
      W("&:hover", `
 color: var(--n-close-icon-color-hover);
 `),
      W("&:hover::before", `
 background-color: var(--n-close-color-hover);
 `),
      W("&:focus::before", `
 background-color: var(--n-close-color-hover);
 `),
      W("&:active", `
 color: var(--n-close-icon-color-pressed);
 `),
      W("&:active::before", `
 background-color: var(--n-close-color-pressed);
 `)
    ]),
    G("disabled", `
 cursor: not-allowed;
 color: var(--n-close-icon-color-disabled);
 background-color: transparent;
 `),
    G("round", [
      W("&::before", `
 border-radius: 50%;
 `)
    ])
  ]), Oi = pe({
    name: "BaseClose",
    props: {
      isButtonTag: {
        type: Boolean,
        default: true
      },
      clsPrefix: {
        type: String,
        required: true
      },
      disabled: {
        type: Boolean,
        default: void 0
      },
      focusable: {
        type: Boolean,
        default: true
      },
      round: Boolean,
      onClick: Function,
      absolute: Boolean
    },
    setup(e) {
      return Lo("-base-close", mz, $e(e, "clsPrefix")), () => {
        const { clsPrefix: t, disabled: n, absolute: r, round: o, isButtonTag: i } = e;
        return g(i ? "button" : "div", {
          type: i ? "button" : void 0,
          tabindex: n || !e.focusable ? -1 : 0,
          "aria-disabled": n,
          "aria-label": "close",
          role: i ? void 0 : "button",
          disabled: n,
          class: [
            `${t}-base-close`,
            r && `${t}-base-close--absolute`,
            n && `${t}-base-close--disabled`,
            o && `${t}-base-close--round`
          ],
          onMousedown: (l) => {
            e.focusable || l.preventDefault();
          },
          onClick: e.onClick
        }, g(Jt, {
          clsPrefix: t
        }, {
          default: () => g(sz, null)
        }));
      };
    }
  }), El = pe({
    name: "FadeInExpandTransition",
    props: {
      appear: Boolean,
      group: Boolean,
      mode: String,
      onLeave: Function,
      onAfterLeave: Function,
      onAfterEnter: Function,
      width: Boolean,
      reverse: Boolean
    },
    setup(e, { slots: t }) {
      function n(l) {
        e.width ? l.style.maxWidth = `${l.offsetWidth}px` : l.style.maxHeight = `${l.offsetHeight}px`, l.offsetWidth;
      }
      function r(l) {
        e.width ? l.style.maxWidth = "0" : l.style.maxHeight = "0", l.offsetWidth;
        const { onLeave: s } = e;
        s && s();
      }
      function o(l) {
        e.width ? l.style.maxWidth = "" : l.style.maxHeight = "";
        const { onAfterLeave: s } = e;
        s && s();
      }
      function i(l) {
        if (l.style.transition = "none", e.width) {
          const s = l.offsetWidth;
          l.style.maxWidth = "0", l.offsetWidth, l.style.transition = "", l.style.maxWidth = `${s}px`;
        } else if (e.reverse) l.style.maxHeight = `${l.offsetHeight}px`, l.offsetHeight, l.style.transition = "", l.style.maxHeight = "0";
        else {
          const s = l.offsetHeight;
          l.style.maxHeight = "0", l.offsetWidth, l.style.transition = "", l.style.maxHeight = `${s}px`;
        }
        l.offsetWidth;
      }
      function a(l) {
        var s;
        e.width ? l.style.maxWidth = "" : e.reverse || (l.style.maxHeight = ""), (s = e.onAfterEnter) === null || s === void 0 || s.call(e);
      }
      return () => {
        const { group: l, width: s, appear: c, mode: u } = e, d = l ? Kp : Ln, h = {
          name: s ? "fade-in-width-expand-transition" : "fade-in-height-expand-transition",
          appear: c,
          onEnter: i,
          onAfterEnter: a,
          onBeforeLeave: n,
          onLeave: r,
          onAfterLeave: o
        };
        return l || (h.mode = u), g(d, h, t);
      };
    }
  }), gz = pe({
    props: {
      onFocus: Function,
      onBlur: Function
    },
    setup(e) {
      return () => g("div", {
        style: "width: 0; height: 0",
        tabindex: 0,
        onFocus: e.onFocus,
        onBlur: e.onBlur
      });
    }
  }), vz = W([
    W("@keyframes rotator", `
 0% {
 -webkit-transform: rotate(0deg);
 transform: rotate(0deg);
 }
 100% {
 -webkit-transform: rotate(360deg);
 transform: rotate(360deg);
 }`),
    A("base-loading", `
 position: relative;
 line-height: 0;
 width: 1em;
 height: 1em;
 `, [
      V("transition-wrapper", `
 position: absolute;
 width: 100%;
 height: 100%;
 `, [
        kr()
      ]),
      V("placeholder", `
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 `, [
        kr({
          left: "50%",
          top: "50%",
          originalTransform: "translateX(-50%) translateY(-50%)"
        })
      ]),
      V("container", `
 animation: rotator 3s linear infinite both;
 `, [
        V("icon", `
 height: 1em;
 width: 1em;
 `)
      ])
    ])
  ]), gf = "1.6s", bz = {
    strokeWidth: {
      type: Number,
      default: 28
    },
    stroke: {
      type: String,
      default: void 0
    }
  }, Ii = pe({
    name: "BaseLoading",
    props: Object.assign({
      clsPrefix: {
        type: String,
        required: true
      },
      show: {
        type: Boolean,
        default: true
      },
      scale: {
        type: Number,
        default: 1
      },
      radius: {
        type: Number,
        default: 100
      }
    }, bz),
    setup(e) {
      Lo("-base-loading", vz, $e(e, "clsPrefix"));
    },
    render() {
      const { clsPrefix: e, radius: t, strokeWidth: n, stroke: r, scale: o } = this, i = t / o;
      return g("div", {
        class: `${e}-base-loading`,
        role: "img",
        "aria-label": "loading"
      }, g(Sa, null, {
        default: () => this.show ? g("div", {
          key: "icon",
          class: `${e}-base-loading__transition-wrapper`
        }, g("div", {
          class: `${e}-base-loading__container`
        }, g("svg", {
          class: `${e}-base-loading__icon`,
          viewBox: `0 0 ${2 * i} ${2 * i}`,
          xmlns: "http://www.w3.org/2000/svg",
          style: {
            color: r
          }
        }, g("g", null, g("animateTransform", {
          attributeName: "transform",
          type: "rotate",
          values: `0 ${i} ${i};270 ${i} ${i}`,
          begin: "0s",
          dur: gf,
          fill: "freeze",
          repeatCount: "indefinite"
        }), g("circle", {
          class: `${e}-base-loading__icon`,
          fill: "none",
          stroke: "currentColor",
          "stroke-width": n,
          "stroke-linecap": "round",
          cx: i,
          cy: i,
          r: t - n / 2,
          "stroke-dasharray": 5.67 * t,
          "stroke-dashoffset": 18.48 * t
        }, g("animateTransform", {
          attributeName: "transform",
          type: "rotate",
          values: `0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,
          begin: "0s",
          dur: gf,
          fill: "freeze",
          repeatCount: "indefinite"
        }), g("animate", {
          attributeName: "stroke-dashoffset",
          values: `${5.67 * t};${1.42 * t};${5.67 * t}`,
          begin: "0s",
          dur: gf,
          fill: "freeze",
          repeatCount: "indefinite"
        })))))) : g("div", {
          key: "placeholder",
          class: `${e}-base-loading__placeholder`
        }, this.$slots)
      }));
    }
  }), { cubicBezierEaseInOut: wb } = yr;
  function hd({ name: e = "fade-in", enterDuration: t = "0.2s", leaveDuration: n = "0.2s", enterCubicBezier: r = wb, leaveCubicBezier: o = wb } = {}) {
    return [
      W(`&.${e}-transition-enter-active`, {
        transition: `all ${t} ${r}!important`
      }),
      W(`&.${e}-transition-leave-active`, {
        transition: `all ${n} ${o}!important`
      }),
      W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
        opacity: 0
      }),
      W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`, {
        opacity: 1
      })
    ];
  }
  const Je = {
    neutralBase: "#000",
    neutralInvertBase: "#fff",
    neutralTextBase: "#fff",
    neutralPopover: "rgb(72, 72, 78)",
    neutralCard: "rgb(24, 24, 28)",
    neutralModal: "rgb(44, 44, 50)",
    neutralBody: "rgb(16, 16, 20)",
    alpha1: "0.9",
    alpha2: "0.82",
    alpha3: "0.52",
    alpha4: "0.38",
    alpha5: "0.28",
    alphaClose: "0.52",
    alphaDisabled: "0.38",
    alphaDisabledInput: "0.06",
    alphaPending: "0.09",
    alphaTablePending: "0.06",
    alphaTableStriped: "0.05",
    alphaPressed: "0.05",
    alphaAvatar: "0.18",
    alphaRail: "0.2",
    alphaProgressRail: "0.12",
    alphaBorder: "0.24",
    alphaDivider: "0.09",
    alphaInput: "0.1",
    alphaAction: "0.06",
    alphaTab: "0.04",
    alphaScrollbar: "0.2",
    alphaScrollbarHover: "0.3",
    alphaCode: "0.12",
    alphaTag: "0.2",
    primaryHover: "#7fe7c4",
    primaryDefault: "#63e2b7",
    primaryActive: "#5acea7",
    primarySuppl: "rgb(42, 148, 125)",
    infoHover: "#8acbec",
    infoDefault: "#70c0e8",
    infoActive: "#66afd3",
    infoSuppl: "rgb(56, 137, 197)",
    errorHover: "#e98b8b",
    errorDefault: "#e88080",
    errorActive: "#e57272",
    errorSuppl: "rgb(208, 58, 82)",
    warningHover: "#f5d599",
    warningDefault: "#f2c97d",
    warningActive: "#e6c260",
    warningSuppl: "rgb(240, 138, 0)",
    successHover: "#7fe7c4",
    successDefault: "#63e2b7",
    successActive: "#5acea7",
    successSuppl: "rgb(42, 148, 125)"
  }, yz = ii(Je.neutralBase), tC = ii(Je.neutralInvertBase), xz = `rgba(${tC.slice(0, 3).join(", ")}, `;
  function Lt(e) {
    return `${xz + String(e)})`;
  }
  function wz(e) {
    const t = Array.from(tC);
    return t[3] = Number(e), Ye(yz, t);
  }
  const Ue = Object.assign(Object.assign({
    name: "common"
  }, yr), {
    baseColor: Je.neutralBase,
    primaryColor: Je.primaryDefault,
    primaryColorHover: Je.primaryHover,
    primaryColorPressed: Je.primaryActive,
    primaryColorSuppl: Je.primarySuppl,
    infoColor: Je.infoDefault,
    infoColorHover: Je.infoHover,
    infoColorPressed: Je.infoActive,
    infoColorSuppl: Je.infoSuppl,
    successColor: Je.successDefault,
    successColorHover: Je.successHover,
    successColorPressed: Je.successActive,
    successColorSuppl: Je.successSuppl,
    warningColor: Je.warningDefault,
    warningColorHover: Je.warningHover,
    warningColorPressed: Je.warningActive,
    warningColorSuppl: Je.warningSuppl,
    errorColor: Je.errorDefault,
    errorColorHover: Je.errorHover,
    errorColorPressed: Je.errorActive,
    errorColorSuppl: Je.errorSuppl,
    textColorBase: Je.neutralTextBase,
    textColor1: Lt(Je.alpha1),
    textColor2: Lt(Je.alpha2),
    textColor3: Lt(Je.alpha3),
    textColorDisabled: Lt(Je.alpha4),
    placeholderColor: Lt(Je.alpha4),
    placeholderColorDisabled: Lt(Je.alpha5),
    iconColor: Lt(Je.alpha4),
    iconColorDisabled: Lt(Je.alpha5),
    iconColorHover: Lt(Number(Je.alpha4) * 1.25),
    iconColorPressed: Lt(Number(Je.alpha4) * 0.8),
    opacity1: Je.alpha1,
    opacity2: Je.alpha2,
    opacity3: Je.alpha3,
    opacity4: Je.alpha4,
    opacity5: Je.alpha5,
    dividerColor: Lt(Je.alphaDivider),
    borderColor: Lt(Je.alphaBorder),
    closeIconColorHover: Lt(Number(Je.alphaClose)),
    closeIconColor: Lt(Number(Je.alphaClose)),
    closeIconColorPressed: Lt(Number(Je.alphaClose)),
    closeColorHover: "rgba(255, 255, 255, .12)",
    closeColorPressed: "rgba(255, 255, 255, .08)",
    clearColor: Lt(Je.alpha4),
    clearColorHover: wn(Lt(Je.alpha4), {
      alpha: 1.25
    }),
    clearColorPressed: wn(Lt(Je.alpha4), {
      alpha: 0.8
    }),
    scrollbarColor: Lt(Je.alphaScrollbar),
    scrollbarColorHover: Lt(Je.alphaScrollbarHover),
    scrollbarWidth: "5px",
    scrollbarHeight: "5px",
    scrollbarBorderRadius: "5px",
    progressRailColor: Lt(Je.alphaProgressRail),
    railColor: Lt(Je.alphaRail),
    popoverColor: Je.neutralPopover,
    tableColor: Je.neutralCard,
    cardColor: Je.neutralCard,
    modalColor: Je.neutralModal,
    bodyColor: Je.neutralBody,
    tagColor: wz(Je.alphaTag),
    avatarColor: Lt(Je.alphaAvatar),
    invertedColor: Je.neutralBase,
    inputColor: Lt(Je.alphaInput),
    codeColor: Lt(Je.alphaCode),
    tabColor: Lt(Je.alphaTab),
    actionColor: Lt(Je.alphaAction),
    tableHeaderColor: Lt(Je.alphaAction),
    hoverColor: Lt(Je.alphaPending),
    tableColorHover: Lt(Je.alphaTablePending),
    tableColorStriped: Lt(Je.alphaTableStriped),
    pressedColor: Lt(Je.alphaPressed),
    opacityDisabled: Je.alphaDisabled,
    inputColorDisabled: Lt(Je.alphaDisabledInput),
    buttonColor2: "rgba(255, 255, 255, .08)",
    buttonColor2Hover: "rgba(255, 255, 255, .12)",
    buttonColor2Pressed: "rgba(255, 255, 255, .08)",
    boxShadow1: "0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",
    boxShadow2: "0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",
    boxShadow3: "0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"
  }), dt = {
    neutralBase: "#FFF",
    neutralInvertBase: "#000",
    neutralTextBase: "#000",
    neutralPopover: "#fff",
    neutralCard: "#fff",
    neutralModal: "#fff",
    neutralBody: "#fff",
    alpha1: "0.82",
    alpha2: "0.72",
    alpha3: "0.38",
    alpha4: "0.24",
    alpha5: "0.18",
    alphaClose: "0.6",
    alphaDisabled: "0.5",
    alphaAvatar: "0.2",
    alphaProgressRail: ".08",
    alphaInput: "0",
    alphaScrollbar: "0.25",
    alphaScrollbarHover: "0.4",
    primaryHover: "#36ad6a",
    primaryDefault: "#18a058",
    primaryActive: "#0c7a43",
    primarySuppl: "#36ad6a",
    infoHover: "#4098fc",
    infoDefault: "#2080f0",
    infoActive: "#1060c9",
    infoSuppl: "#4098fc",
    errorHover: "#de576d",
    errorDefault: "#d03050",
    errorActive: "#ab1f3f",
    errorSuppl: "#de576d",
    warningHover: "#fcb040",
    warningDefault: "#f0a020",
    warningActive: "#c97c10",
    warningSuppl: "#fcb040",
    successHover: "#36ad6a",
    successDefault: "#18a058",
    successActive: "#0c7a43",
    successSuppl: "#36ad6a"
  }, Cz = ii(dt.neutralBase), nC = ii(dt.neutralInvertBase), Sz = `rgba(${nC.slice(0, 3).join(", ")}, `;
  function Cb(e) {
    return `${Sz + String(e)})`;
  }
  function Kn(e) {
    const t = Array.from(nC);
    return t[3] = Number(e), Ye(Cz, t);
  }
  let _z;
  mt = Object.assign(Object.assign({
    name: "common"
  }, yr), {
    baseColor: dt.neutralBase,
    primaryColor: dt.primaryDefault,
    primaryColorHover: dt.primaryHover,
    primaryColorPressed: dt.primaryActive,
    primaryColorSuppl: dt.primarySuppl,
    infoColor: dt.infoDefault,
    infoColorHover: dt.infoHover,
    infoColorPressed: dt.infoActive,
    infoColorSuppl: dt.infoSuppl,
    successColor: dt.successDefault,
    successColorHover: dt.successHover,
    successColorPressed: dt.successActive,
    successColorSuppl: dt.successSuppl,
    warningColor: dt.warningDefault,
    warningColorHover: dt.warningHover,
    warningColorPressed: dt.warningActive,
    warningColorSuppl: dt.warningSuppl,
    errorColor: dt.errorDefault,
    errorColorHover: dt.errorHover,
    errorColorPressed: dt.errorActive,
    errorColorSuppl: dt.errorSuppl,
    textColorBase: dt.neutralTextBase,
    textColor1: "rgb(31, 34, 37)",
    textColor2: "rgb(51, 54, 57)",
    textColor3: "rgb(118, 124, 130)",
    textColorDisabled: Kn(dt.alpha4),
    placeholderColor: Kn(dt.alpha4),
    placeholderColorDisabled: Kn(dt.alpha5),
    iconColor: Kn(dt.alpha4),
    iconColorHover: wn(Kn(dt.alpha4), {
      lightness: 0.75
    }),
    iconColorPressed: wn(Kn(dt.alpha4), {
      lightness: 0.9
    }),
    iconColorDisabled: Kn(dt.alpha5),
    opacity1: dt.alpha1,
    opacity2: dt.alpha2,
    opacity3: dt.alpha3,
    opacity4: dt.alpha4,
    opacity5: dt.alpha5,
    dividerColor: "rgb(239, 239, 245)",
    borderColor: "rgb(224, 224, 230)",
    closeIconColor: Kn(Number(dt.alphaClose)),
    closeIconColorHover: Kn(Number(dt.alphaClose)),
    closeIconColorPressed: Kn(Number(dt.alphaClose)),
    closeColorHover: "rgba(0, 0, 0, .09)",
    closeColorPressed: "rgba(0, 0, 0, .13)",
    clearColor: Kn(dt.alpha4),
    clearColorHover: wn(Kn(dt.alpha4), {
      lightness: 0.75
    }),
    clearColorPressed: wn(Kn(dt.alpha4), {
      lightness: 0.9
    }),
    scrollbarColor: Cb(dt.alphaScrollbar),
    scrollbarColorHover: Cb(dt.alphaScrollbarHover),
    scrollbarWidth: "5px",
    scrollbarHeight: "5px",
    scrollbarBorderRadius: "5px",
    progressRailColor: Kn(dt.alphaProgressRail),
    railColor: "rgb(219, 219, 223)",
    popoverColor: dt.neutralPopover,
    tableColor: dt.neutralCard,
    cardColor: dt.neutralCard,
    modalColor: dt.neutralModal,
    bodyColor: dt.neutralBody,
    tagColor: "#eee",
    avatarColor: Kn(dt.alphaAvatar),
    invertedColor: "rgb(0, 20, 40)",
    inputColor: Kn(dt.alphaInput),
    codeColor: "rgb(244, 244, 248)",
    tabColor: "rgb(247, 247, 250)",
    actionColor: "rgb(250, 250, 252)",
    tableHeaderColor: "rgb(250, 250, 252)",
    hoverColor: "rgb(243, 243, 245)",
    tableColorHover: "rgba(0, 0, 100, 0.03)",
    tableColorStriped: "rgba(0, 0, 100, 0.02)",
    pressedColor: "rgb(237, 237, 239)",
    opacityDisabled: dt.alphaDisabled,
    inputColorDisabled: "rgb(250, 250, 252)",
    buttonColor2: "rgba(46, 51, 56, .05)",
    buttonColor2Hover: "rgba(46, 51, 56, .09)",
    buttonColor2Pressed: "rgba(46, 51, 56, .13)",
    boxShadow1: "0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",
    boxShadow2: "0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",
    boxShadow3: "0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"
  });
  _z = {
    railInsetHorizontalBottom: "auto 2px 4px 2px",
    railInsetHorizontalTop: "4px 2px auto 2px",
    railInsetVerticalRight: "2px 4px 2px auto",
    railInsetVerticalLeft: "2px auto 2px 4px",
    railColor: "transparent"
  };
  function rC(e) {
    const { scrollbarColor: t, scrollbarColorHover: n, scrollbarHeight: r, scrollbarWidth: o, scrollbarBorderRadius: i } = e;
    return Object.assign(Object.assign({}, _z), {
      height: r,
      width: o,
      borderRadius: i,
      color: t,
      colorHover: n
    });
  }
  const hi = {
    name: "Scrollbar",
    common: mt,
    self: rC
  }, nr = {
    name: "Scrollbar",
    common: Ue,
    self: rC
  }, kz = A("scrollbar", `
 overflow: hidden;
 position: relative;
 z-index: auto;
 height: 100%;
 width: 100%;
`, [
    W(">", [
      A("scrollbar-container", `
 width: 100%;
 overflow: scroll;
 height: 100%;
 min-height: inherit;
 max-height: inherit;
 scrollbar-width: none;
 `, [
        W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", `
 width: 0;
 height: 0;
 display: none;
 `),
        W(">", [
          A("scrollbar-content", `
 box-sizing: border-box;
 min-width: 100%;
 `)
        ])
      ])
    ]),
    W(">, +", [
      A("scrollbar-rail", `
 position: absolute;
 pointer-events: none;
 user-select: none;
 background: var(--n-scrollbar-rail-color);
 -webkit-user-select: none;
 `, [
        G("horizontal", `
 height: var(--n-scrollbar-height);
 `, [
          W(">", [
            V("scrollbar", `
 height: var(--n-scrollbar-height);
 border-radius: var(--n-scrollbar-border-radius);
 right: 0;
 `)
          ])
        ]),
        G("horizontal--top", `
 top: var(--n-scrollbar-rail-top-horizontal-top); 
 right: var(--n-scrollbar-rail-right-horizontal-top); 
 bottom: var(--n-scrollbar-rail-bottom-horizontal-top); 
 left: var(--n-scrollbar-rail-left-horizontal-top); 
 `),
        G("horizontal--bottom", `
 top: var(--n-scrollbar-rail-top-horizontal-bottom); 
 right: var(--n-scrollbar-rail-right-horizontal-bottom); 
 bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); 
 left: var(--n-scrollbar-rail-left-horizontal-bottom); 
 `),
        G("vertical", `
 width: var(--n-scrollbar-width);
 `, [
          W(">", [
            V("scrollbar", `
 width: var(--n-scrollbar-width);
 border-radius: var(--n-scrollbar-border-radius);
 bottom: 0;
 `)
          ])
        ]),
        G("vertical--left", `
 top: var(--n-scrollbar-rail-top-vertical-left); 
 right: var(--n-scrollbar-rail-right-vertical-left); 
 bottom: var(--n-scrollbar-rail-bottom-vertical-left); 
 left: var(--n-scrollbar-rail-left-vertical-left); 
 `),
        G("vertical--right", `
 top: var(--n-scrollbar-rail-top-vertical-right); 
 right: var(--n-scrollbar-rail-right-vertical-right); 
 bottom: var(--n-scrollbar-rail-bottom-vertical-right); 
 left: var(--n-scrollbar-rail-left-vertical-right); 
 `),
        G("disabled", [
          W(">", [
            V("scrollbar", "pointer-events: none;")
          ])
        ]),
        W(">", [
          V("scrollbar", `
 z-index: 1;
 position: absolute;
 cursor: pointer;
 pointer-events: all;
 background-color: var(--n-scrollbar-color);
 transition: background-color .2s var(--n-scrollbar-bezier);
 `, [
            hd(),
            W("&:hover", "background-color: var(--n-scrollbar-color-hover);")
          ])
        ])
      ])
    ])
  ]), Rz = Object.assign(Object.assign({}, Fe.props), {
    duration: {
      type: Number,
      default: 0
    },
    scrollable: {
      type: Boolean,
      default: true
    },
    xScrollable: Boolean,
    trigger: {
      type: String,
      default: "hover"
    },
    useUnifiedContainer: Boolean,
    triggerDisplayManually: Boolean,
    container: Function,
    content: Function,
    containerClass: String,
    containerStyle: [
      String,
      Object
    ],
    contentClass: [
      String,
      Array
    ],
    contentStyle: [
      String,
      Object
    ],
    horizontalRailStyle: [
      String,
      Object
    ],
    verticalRailStyle: [
      String,
      Object
    ],
    onScroll: Function,
    onWheel: Function,
    onResize: Function,
    internalOnUpdateScrollLeft: Function,
    internalHoistYRail: Boolean,
    yPlacement: {
      type: String,
      default: "right"
    },
    xPlacement: {
      type: String,
      default: "bottom"
    }
  }), Bo = pe({
    name: "Scrollbar",
    props: Rz,
    inheritAttrs: false,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n, mergedRtlRef: r } = at(e), o = rn("Scrollbar", r, t), i = L(null), a = L(null), l = L(null), s = L(null), c = L(null), u = L(null), d = L(null), h = L(null), p = L(null), f = L(null), m = L(null), b = L(0), v = L(0), y = L(false), w = L(false);
      let x = false, S = false, _, C, k = 0, R = 0, P = 0, B = 0;
      const E = AE(), M = Fe("Scrollbar", "-scrollbar", kz, hi, e, t), z = D(() => {
        const { value: Q } = h, { value: me } = u, { value: Ee } = f;
        return Q === null || me === null || Ee === null ? 0 : Math.min(Q, Ee * Q / me + pn(M.value.self.width) * 1.5);
      }), U = D(() => `${z.value}px`), ee = D(() => {
        const { value: Q } = p, { value: me } = d, { value: Ee } = m;
        return Q === null || me === null || Ee === null ? 0 : Ee * Q / me + pn(M.value.self.height) * 1.5;
      }), ne = D(() => `${ee.value}px`), ae = D(() => {
        const { value: Q } = h, { value: me } = b, { value: Ee } = u, { value: He } = f;
        if (Q === null || Ee === null || He === null) return 0;
        {
          const Ve = Ee - Q;
          return Ve ? me / Ve * (He - z.value) : 0;
        }
      }), ye = D(() => `${ae.value}px`), xe = D(() => {
        const { value: Q } = p, { value: me } = v, { value: Ee } = d, { value: He } = m;
        if (Q === null || Ee === null || He === null) return 0;
        {
          const Ve = Ee - Q;
          return Ve ? me / Ve * (He - ee.value) : 0;
        }
      }), re = D(() => `${xe.value}px`), Y = D(() => {
        const { value: Q } = h, { value: me } = u;
        return Q !== null && me !== null && me > Q;
      }), H = D(() => {
        const { value: Q } = p, { value: me } = d;
        return Q !== null && me !== null && me > Q;
      }), oe = D(() => {
        const { trigger: Q } = e;
        return Q === "none" || y.value;
      }), ce = D(() => {
        const { trigger: Q } = e;
        return Q === "none" || w.value;
      }), be = D(() => {
        const { container: Q } = e;
        return Q ? Q() : a.value;
      }), ie = D(() => {
        const { content: Q } = e;
        return Q ? Q() : l.value;
      }), fe = (Q, me) => {
        if (!e.scrollable) return;
        if (typeof Q == "number") {
          J(Q, me ?? 0, 0, false, "auto");
          return;
        }
        const { left: Ee, top: He, index: Ve, elSize: Ke, position: Xe, behavior: Qe, el: _t, debounce: Mt = true } = Q;
        (Ee !== void 0 || He !== void 0) && J(Ee ?? 0, He ?? 0, 0, false, Qe), _t !== void 0 ? J(0, _t.offsetTop, _t.offsetHeight, Mt, Qe) : Ve !== void 0 && Ke !== void 0 ? J(0, Ve * Ke, Ke, Mt, Qe) : Xe === "bottom" ? J(0, Number.MAX_SAFE_INTEGER, 0, false, Qe) : Xe === "top" && J(0, 0, 0, false, Qe);
      }, F = iw(() => {
        e.container || fe({
          top: b.value,
          left: v.value
        });
      }), se = () => {
        F.isDeactivated || Z();
      }, ze = (Q) => {
        if (F.isDeactivated) return;
        const { onResize: me } = e;
        me && me(Q), Z();
      }, q = (Q, me) => {
        if (!e.scrollable) return;
        const { value: Ee } = be;
        Ee && (typeof Q == "object" ? Ee.scrollBy(Q) : Ee.scrollBy(Q, me || 0));
      };
      function J(Q, me, Ee, He, Ve) {
        const { value: Ke } = be;
        if (Ke) {
          if (He) {
            const { scrollTop: Xe, offsetHeight: Qe } = Ke;
            if (me > Xe) {
              me + Ee <= Xe + Qe || Ke.scrollTo({
                left: Q,
                top: me + Ee - Qe,
                behavior: Ve
              });
              return;
            }
          }
          Ke.scrollTo({
            left: Q,
            top: me,
            behavior: Ve
          });
        }
      }
      function le() {
        N(), j(), Z();
      }
      function we() {
        ke();
      }
      function ke() {
        _e(), K();
      }
      function _e() {
        C !== void 0 && window.clearTimeout(C), C = window.setTimeout(() => {
          w.value = false;
        }, e.duration);
      }
      function K() {
        _ !== void 0 && window.clearTimeout(_), _ = window.setTimeout(() => {
          y.value = false;
        }, e.duration);
      }
      function N() {
        _ !== void 0 && window.clearTimeout(_), y.value = true;
      }
      function j() {
        C !== void 0 && window.clearTimeout(C), w.value = true;
      }
      function X(Q) {
        const { onScroll: me } = e;
        me && me(Q), ge();
      }
      function ge() {
        const { value: Q } = be;
        Q && (b.value = Q.scrollTop, v.value = Q.scrollLeft * ((o == null ? void 0 : o.value) ? -1 : 1));
      }
      function te() {
        const { value: Q } = ie;
        Q && (u.value = Q.offsetHeight, d.value = Q.offsetWidth);
        const { value: me } = be;
        me && (h.value = me.offsetHeight, p.value = me.offsetWidth);
        const { value: Ee } = c, { value: He } = s;
        Ee && (m.value = Ee.offsetWidth), He && (f.value = He.offsetHeight);
      }
      function I() {
        const { value: Q } = be;
        Q && (b.value = Q.scrollTop, v.value = Q.scrollLeft * ((o == null ? void 0 : o.value) ? -1 : 1), h.value = Q.offsetHeight, p.value = Q.offsetWidth, u.value = Q.scrollHeight, d.value = Q.scrollWidth);
        const { value: me } = c, { value: Ee } = s;
        me && (m.value = me.offsetWidth), Ee && (f.value = Ee.offsetHeight);
      }
      function Z() {
        e.scrollable && (e.useUnifiedContainer ? I() : (te(), ge()));
      }
      function Ce(Q) {
        var me;
        return !(!((me = i.value) === null || me === void 0) && me.contains(cl(Q)));
      }
      function De(Q) {
        Q.preventDefault(), Q.stopPropagation(), S = true, Dt("mousemove", window, qe, true), Dt("mouseup", window, ut, true), R = v.value, P = (o == null ? void 0 : o.value) ? window.innerWidth - Q.clientX : Q.clientX;
      }
      function qe(Q) {
        if (!S) return;
        _ !== void 0 && window.clearTimeout(_), C !== void 0 && window.clearTimeout(C);
        const { value: me } = p, { value: Ee } = d, { value: He } = ee;
        if (me === null || Ee === null) return;
        const Ke = ((o == null ? void 0 : o.value) ? window.innerWidth - Q.clientX - P : Q.clientX - P) * (Ee - me) / (me - He), Xe = Ee - me;
        let Qe = R + Ke;
        Qe = Math.min(Xe, Qe), Qe = Math.max(Qe, 0);
        const { value: _t } = be;
        if (_t) {
          _t.scrollLeft = Qe * ((o == null ? void 0 : o.value) ? -1 : 1);
          const { internalOnUpdateScrollLeft: Mt } = e;
          Mt && Mt(Qe);
        }
      }
      function ut(Q) {
        Q.preventDefault(), Q.stopPropagation(), Rt("mousemove", window, qe, true), Rt("mouseup", window, ut, true), S = false, Z(), Ce(Q) && ke();
      }
      function Ze(Q) {
        Q.preventDefault(), Q.stopPropagation(), x = true, Dt("mousemove", window, rt, true), Dt("mouseup", window, Ne, true), k = b.value, B = Q.clientY;
      }
      function rt(Q) {
        if (!x) return;
        _ !== void 0 && window.clearTimeout(_), C !== void 0 && window.clearTimeout(C);
        const { value: me } = h, { value: Ee } = u, { value: He } = z;
        if (me === null || Ee === null) return;
        const Ke = (Q.clientY - B) * (Ee - me) / (me - He), Xe = Ee - me;
        let Qe = k + Ke;
        Qe = Math.min(Xe, Qe), Qe = Math.max(Qe, 0);
        const { value: _t } = be;
        _t && (_t.scrollTop = Qe);
      }
      function Ne(Q) {
        Q.preventDefault(), Q.stopPropagation(), Rt("mousemove", window, rt, true), Rt("mouseup", window, Ne, true), x = false, Z(), Ce(Q) && ke();
      }
      fn(() => {
        const { value: Q } = H, { value: me } = Y, { value: Ee } = t, { value: He } = c, { value: Ve } = s;
        He && (Q ? He.classList.remove(`${Ee}-scrollbar-rail--disabled`) : He.classList.add(`${Ee}-scrollbar-rail--disabled`)), Ve && (me ? Ve.classList.remove(`${Ee}-scrollbar-rail--disabled`) : Ve.classList.add(`${Ee}-scrollbar-rail--disabled`));
      }), gt(() => {
        e.container || Z();
      }), Zt(() => {
        _ !== void 0 && window.clearTimeout(_), C !== void 0 && window.clearTimeout(C), Rt("mousemove", window, rt, true), Rt("mouseup", window, Ne, true);
      });
      const bt = D(() => {
        const { common: { cubicBezierEaseInOut: Q }, self: { color: me, colorHover: Ee, height: He, width: Ve, borderRadius: Ke, railInsetHorizontalTop: Xe, railInsetHorizontalBottom: Qe, railInsetVerticalRight: _t, railInsetVerticalLeft: Mt, railColor: ct } } = M.value, { top: on, right: Dn, bottom: Sn, left: _n } = En(Xe), { top: $n, right: Hn, bottom: qn, left: he } = En(Qe), { top: Pe, right: ot, bottom: St, left: It } = En((o == null ? void 0 : o.value) ? Hv(_t) : _t), { top: Et, right: zt, bottom: an, left: Gn } = En((o == null ? void 0 : o.value) ? Hv(Mt) : Mt);
        return {
          "--n-scrollbar-bezier": Q,
          "--n-scrollbar-color": me,
          "--n-scrollbar-color-hover": Ee,
          "--n-scrollbar-border-radius": Ke,
          "--n-scrollbar-width": Ve,
          "--n-scrollbar-height": He,
          "--n-scrollbar-rail-top-horizontal-top": on,
          "--n-scrollbar-rail-right-horizontal-top": Dn,
          "--n-scrollbar-rail-bottom-horizontal-top": Sn,
          "--n-scrollbar-rail-left-horizontal-top": _n,
          "--n-scrollbar-rail-top-horizontal-bottom": $n,
          "--n-scrollbar-rail-right-horizontal-bottom": Hn,
          "--n-scrollbar-rail-bottom-horizontal-bottom": qn,
          "--n-scrollbar-rail-left-horizontal-bottom": he,
          "--n-scrollbar-rail-top-vertical-right": Pe,
          "--n-scrollbar-rail-right-vertical-right": ot,
          "--n-scrollbar-rail-bottom-vertical-right": St,
          "--n-scrollbar-rail-left-vertical-right": It,
          "--n-scrollbar-rail-top-vertical-left": Et,
          "--n-scrollbar-rail-right-vertical-left": zt,
          "--n-scrollbar-rail-bottom-vertical-left": an,
          "--n-scrollbar-rail-left-vertical-left": Gn,
          "--n-scrollbar-rail-color": ct
        };
      }), We = n ? xt("scrollbar", void 0, bt, e) : void 0;
      return Object.assign(Object.assign({}, {
        scrollTo: fe,
        scrollBy: q,
        sync: Z,
        syncUnifiedContainer: I,
        handleMouseEnterWrapper: le,
        handleMouseLeaveWrapper: we
      }), {
        mergedClsPrefix: t,
        rtlEnabled: o,
        containerScrollTop: b,
        wrapperRef: i,
        containerRef: a,
        contentRef: l,
        yRailRef: s,
        xRailRef: c,
        needYBar: Y,
        needXBar: H,
        yBarSizePx: U,
        xBarSizePx: ne,
        yBarTopPx: ye,
        xBarLeftPx: re,
        isShowXBar: oe,
        isShowYBar: ce,
        isIos: E,
        handleScroll: X,
        handleContentResize: se,
        handleContainerResize: ze,
        handleYScrollMouseDown: Ze,
        handleXScrollMouseDown: De,
        cssVars: n ? void 0 : bt,
        themeClass: We == null ? void 0 : We.themeClass,
        onRender: We == null ? void 0 : We.onRender
      });
    },
    render() {
      var e;
      const { $slots: t, mergedClsPrefix: n, triggerDisplayManually: r, rtlEnabled: o, internalHoistYRail: i, yPlacement: a, xPlacement: l, xScrollable: s } = this;
      if (!this.scrollable) return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
      const c = this.trigger === "none", u = (p, f) => g("div", {
        ref: "yRailRef",
        class: [
          `${n}-scrollbar-rail`,
          `${n}-scrollbar-rail--vertical`,
          `${n}-scrollbar-rail--vertical--${a}`,
          p
        ],
        "data-scrollbar-rail": true,
        style: [
          f || "",
          this.verticalRailStyle
        ],
        "aria-hidden": true
      }, g(c ? Ph : Ln, c ? null : {
        name: "fade-in-transition"
      }, {
        default: () => this.needYBar && this.isShowYBar && !this.isIos ? g("div", {
          class: `${n}-scrollbar-rail__scrollbar`,
          style: {
            height: this.yBarSizePx,
            top: this.yBarTopPx
          },
          onMousedown: this.handleYScrollMouseDown
        }) : null
      })), d = () => {
        var p, f;
        return (p = this.onRender) === null || p === void 0 || p.call(this), g("div", Mn(this.$attrs, {
          role: "none",
          ref: "wrapperRef",
          class: [
            `${n}-scrollbar`,
            this.themeClass,
            o && `${n}-scrollbar--rtl`
          ],
          style: this.cssVars,
          onMouseenter: r ? void 0 : this.handleMouseEnterWrapper,
          onMouseleave: r ? void 0 : this.handleMouseLeaveWrapper
        }), [
          this.container ? (f = t.default) === null || f === void 0 ? void 0 : f.call(t) : g("div", {
            role: "none",
            ref: "containerRef",
            class: [
              `${n}-scrollbar-container`,
              this.containerClass
            ],
            style: this.containerStyle,
            onScroll: this.handleScroll,
            onWheel: this.onWheel
          }, g(Vr, {
            onResize: this.handleContentResize
          }, {
            default: () => g("div", {
              ref: "contentRef",
              role: "none",
              style: [
                {
                  width: this.xScrollable ? "fit-content" : null
                },
                this.contentStyle
              ],
              class: [
                `${n}-scrollbar-content`,
                this.contentClass
              ]
            }, t)
          })),
          i ? null : u(void 0, void 0),
          s && g("div", {
            ref: "xRailRef",
            class: [
              `${n}-scrollbar-rail`,
              `${n}-scrollbar-rail--horizontal`,
              `${n}-scrollbar-rail--horizontal--${l}`
            ],
            style: this.horizontalRailStyle,
            "data-scrollbar-rail": true,
            "aria-hidden": true
          }, g(c ? Ph : Ln, c ? null : {
            name: "fade-in-transition"
          }, {
            default: () => this.needXBar && this.isShowXBar && !this.isIos ? g("div", {
              class: `${n}-scrollbar-rail__scrollbar`,
              style: {
                width: this.xBarSizePx,
                right: o ? this.xBarLeftPx : void 0,
                left: o ? void 0 : this.xBarLeftPx
              },
              onMousedown: this.handleXScrollMouseDown
            }) : null
          }))
        ]);
      }, h = this.container ? d() : g(Vr, {
        onResize: this.handleContainerResize
      }, {
        default: d
      });
      return i ? g(wt, null, h, u(this.themeClass, this.cssVars)) : h;
    }
  }), oC = Bo;
  function Sb(e) {
    return Array.isArray(e) ? e : [
      e
    ];
  }
  const Hh = {
    STOP: "STOP"
  };
  function iC(e, t) {
    const n = t(e);
    e.children !== void 0 && n !== Hh.STOP && e.children.forEach((r) => iC(r, t));
  }
  function Az(e, t = {}) {
    const { preserveGroup: n = false } = t, r = [], o = n ? (a) => {
      a.isLeaf || (r.push(a.key), i(a.children));
    } : (a) => {
      a.isLeaf || (a.isGroup || r.push(a.key), i(a.children));
    };
    function i(a) {
      a.forEach(o);
    }
    return i(e), r;
  }
  function Ez(e, t) {
    const { isLeaf: n } = e;
    return n !== void 0 ? n : !t(e);
  }
  function Tz(e) {
    return e.children;
  }
  function Pz(e) {
    return e.key;
  }
  function Dz() {
    return false;
  }
  function $z(e, t) {
    const { isLeaf: n } = e;
    return !(n === false && !Array.isArray(t(e)));
  }
  function zz(e) {
    return e.disabled === true;
  }
  function Oz(e, t) {
    return e.isLeaf === false && !Array.isArray(t(e));
  }
  function vf(e) {
    var t;
    return e == null ? [] : Array.isArray(e) ? e : (t = e.checkedKeys) !== null && t !== void 0 ? t : [];
  }
  function bf(e) {
    var t;
    return e == null || Array.isArray(e) ? [] : (t = e.indeterminateKeys) !== null && t !== void 0 ? t : [];
  }
  function Iz(e, t) {
    const n = new Set(e);
    return t.forEach((r) => {
      n.has(r) || n.add(r);
    }), Array.from(n);
  }
  function Fz(e, t) {
    const n = new Set(e);
    return t.forEach((r) => {
      n.has(r) && n.delete(r);
    }), Array.from(n);
  }
  function Mz(e) {
    return (e == null ? void 0 : e.type) === "group";
  }
  function Lz(e) {
    const t = /* @__PURE__ */ new Map();
    return e.forEach((n, r) => {
      t.set(n.key, r);
    }), (n) => {
      var r;
      return (r = t.get(n)) !== null && r !== void 0 ? r : null;
    };
  }
  class Bz extends Error {
    constructor() {
      super(), this.message = "SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.";
    }
  }
  function Nz(e, t, n, r) {
    return Tu(t.concat(e), n, r, false);
  }
  function Hz(e, t) {
    const n = /* @__PURE__ */ new Set();
    return e.forEach((r) => {
      const o = t.treeNodeMap.get(r);
      if (o !== void 0) {
        let i = o.parent;
        for (; i !== null && !(i.disabled || n.has(i.key)); ) n.add(i.key), i = i.parent;
      }
    }), n;
  }
  function jz(e, t, n, r) {
    const o = Tu(t, n, r, false), i = Tu(e, n, r, true), a = Hz(e, n), l = [];
    return o.forEach((s) => {
      (i.has(s) || a.has(s)) && l.push(s);
    }), l.forEach((s) => o.delete(s)), o;
  }
  function yf(e, t) {
    const { checkedKeys: n, keysToCheck: r, keysToUncheck: o, indeterminateKeys: i, cascade: a, leafOnly: l, checkStrategy: s, allowNotLoaded: c } = e;
    if (!a) return r !== void 0 ? {
      checkedKeys: Iz(n, r),
      indeterminateKeys: Array.from(i)
    } : o !== void 0 ? {
      checkedKeys: Fz(n, o),
      indeterminateKeys: Array.from(i)
    } : {
      checkedKeys: Array.from(n),
      indeterminateKeys: Array.from(i)
    };
    const { levelTreeNodeMap: u } = t;
    let d;
    o !== void 0 ? d = jz(o, n, t, c) : r !== void 0 ? d = Nz(r, n, t, c) : d = Tu(n, t, c, false);
    const h = s === "parent", p = s === "child" || l, f = d, m = /* @__PURE__ */ new Set(), b = Math.max.apply(null, Array.from(u.keys()));
    for (let v = b; v >= 0; v -= 1) {
      const y = v === 0, w = u.get(v);
      for (const x of w) {
        if (x.isLeaf) continue;
        const { key: S, shallowLoaded: _ } = x;
        if (p && _ && x.children.forEach((P) => {
          !P.disabled && !P.isLeaf && P.shallowLoaded && f.has(P.key) && f.delete(P.key);
        }), x.disabled || !_) continue;
        let C = true, k = false, R = true;
        for (const P of x.children) {
          const B = P.key;
          if (!P.disabled) {
            if (R && (R = false), f.has(B)) k = true;
            else if (m.has(B)) {
              k = true, C = false;
              break;
            } else if (C = false, k) break;
          }
        }
        C && !R ? (h && x.children.forEach((P) => {
          !P.disabled && f.has(P.key) && f.delete(P.key);
        }), f.add(S)) : k && m.add(S), y && p && f.has(S) && f.delete(S);
      }
    }
    return {
      checkedKeys: Array.from(f),
      indeterminateKeys: Array.from(m)
    };
  }
  function Tu(e, t, n, r) {
    const { treeNodeMap: o, getChildren: i } = t, a = /* @__PURE__ */ new Set(), l = new Set(e);
    return e.forEach((s) => {
      const c = o.get(s);
      c !== void 0 && iC(c, (u) => {
        if (u.disabled) return Hh.STOP;
        const { key: d } = u;
        if (!a.has(d) && (a.add(d), l.add(d), Oz(u.rawNode, i))) {
          if (r) return Hh.STOP;
          if (!n) throw new Bz();
        }
      });
    }), l;
  }
  function Wz(e, { includeGroup: t = false, includeSelf: n = true }, r) {
    var o;
    const i = r.treeNodeMap;
    let a = e == null ? null : (o = i.get(e)) !== null && o !== void 0 ? o : null;
    const l = {
      keyPath: [],
      treeNodePath: [],
      treeNode: a
    };
    if (a == null ? void 0 : a.ignored) return l.treeNode = null, l;
    for (; a; ) !a.ignored && (t || !a.isGroup) && l.treeNodePath.push(a), a = a.parent;
    return l.treeNodePath.reverse(), n || l.treeNodePath.pop(), l.keyPath = l.treeNodePath.map((s) => s.key), l;
  }
  function Uz(e) {
    if (e.length === 0) return null;
    const t = e[0];
    return t.isGroup || t.ignored || t.disabled ? t.getNext() : t;
  }
  function Vz(e, t) {
    const n = e.siblings, r = n.length, { index: o } = e;
    return t ? n[(o + 1) % r] : o === n.length - 1 ? null : n[o + 1];
  }
  function _b(e, t, { loop: n = false, includeDisabled: r = false } = {}) {
    const o = t === "prev" ? qz : Vz, i = {
      reverse: t === "prev"
    };
    let a = false, l = null;
    function s(c) {
      if (c !== null) {
        if (c === e) {
          if (!a) a = true;
          else if (!e.disabled && !e.isGroup) {
            l = e;
            return;
          }
        } else if ((!c.disabled || r) && !c.ignored && !c.isGroup) {
          l = c;
          return;
        }
        if (c.isGroup) {
          const u = mm(c, i);
          u !== null ? l = u : s(o(c, n));
        } else {
          const u = o(c, false);
          if (u !== null) s(u);
          else {
            const d = Gz(c);
            (d == null ? void 0 : d.isGroup) ? s(o(d, n)) : n && s(o(c, true));
          }
        }
      }
    }
    return s(e), l;
  }
  function qz(e, t) {
    const n = e.siblings, r = n.length, { index: o } = e;
    return t ? n[(o - 1 + r) % r] : o === 0 ? null : n[o - 1];
  }
  function Gz(e) {
    return e.parent;
  }
  function mm(e, t = {}) {
    const { reverse: n = false } = t, { children: r } = e;
    if (r) {
      const { length: o } = r, i = n ? o - 1 : 0, a = n ? -1 : o, l = n ? -1 : 1;
      for (let s = i; s !== a; s += l) {
        const c = r[s];
        if (!c.disabled && !c.ignored) if (c.isGroup) {
          const u = mm(c, t);
          if (u !== null) return u;
        } else return c;
      }
    }
    return null;
  }
  const Kz = {
    getChild() {
      return this.ignored ? null : mm(this);
    },
    getParent() {
      const { parent: e } = this;
      return (e == null ? void 0 : e.isGroup) ? e.getParent() : e;
    },
    getNext(e = {}) {
      return _b(this, "next", e);
    },
    getPrev(e = {}) {
      return _b(this, "prev", e);
    }
  };
  function Yz(e, t) {
    const n = t ? new Set(t) : void 0, r = [];
    function o(i) {
      i.forEach((a) => {
        r.push(a), !(a.isLeaf || !a.children || a.ignored) && (a.isGroup || n === void 0 || n.has(a.key)) && o(a.children);
      });
    }
    return o(e), r;
  }
  function Xz(e, t) {
    const n = e.key;
    for (; t; ) {
      if (t.key === n) return true;
      t = t.parent;
    }
    return false;
  }
  function aC(e, t, n, r, o, i = null, a = 0) {
    const l = [];
    return e.forEach((s, c) => {
      var u;
      const d = Object.create(r);
      if (d.rawNode = s, d.siblings = l, d.level = a, d.index = c, d.isFirstChild = c === 0, d.isLastChild = c + 1 === e.length, d.parent = i, !d.ignored) {
        const h = o(s);
        Array.isArray(h) && (d.children = aC(h, t, n, r, o, d, a + 1));
      }
      l.push(d), t.set(d.key, d), n.has(a) || n.set(a, []), (u = n.get(a)) === null || u === void 0 || u.push(d);
    }), l;
  }
  function ca(e, t = {}) {
    var n;
    const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), { getDisabled: i = zz, getIgnored: a = Dz, getIsGroup: l = Mz, getKey: s = Pz } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : Tz, u = t.ignoreEmptyChildren ? (x) => {
      const S = c(x);
      return Array.isArray(S) ? S.length ? S : null : S;
    } : c, d = Object.assign({
      get key() {
        return s(this.rawNode);
      },
      get disabled() {
        return i(this.rawNode);
      },
      get isGroup() {
        return l(this.rawNode);
      },
      get isLeaf() {
        return Ez(this.rawNode, u);
      },
      get shallowLoaded() {
        return $z(this.rawNode, u);
      },
      get ignored() {
        return a(this.rawNode);
      },
      contains(x) {
        return Xz(this, x);
      }
    }, Kz), h = aC(e, r, o, d, u);
    function p(x) {
      if (x == null) return null;
      const S = r.get(x);
      return S && !S.isGroup && !S.ignored ? S : null;
    }
    function f(x) {
      if (x == null) return null;
      const S = r.get(x);
      return S && !S.ignored ? S : null;
    }
    function m(x, S) {
      const _ = f(x);
      return _ ? _.getPrev(S) : null;
    }
    function b(x, S) {
      const _ = f(x);
      return _ ? _.getNext(S) : null;
    }
    function v(x) {
      const S = f(x);
      return S ? S.getParent() : null;
    }
    function y(x) {
      const S = f(x);
      return S ? S.getChild() : null;
    }
    const w = {
      treeNodes: h,
      treeNodeMap: r,
      levelTreeNodeMap: o,
      maxLevel: Math.max(...o.keys()),
      getChildren: u,
      getFlattenedNodes(x) {
        return Yz(h, x);
      },
      getNode: p,
      getPrev: m,
      getNext: b,
      getParent: v,
      getChild: y,
      getFirstAvailableNode() {
        return Uz(h);
      },
      getPath(x, S = {}) {
        return Wz(x, S, w);
      },
      getCheckedKeys(x, S = {}) {
        const { cascade: _ = true, leafOnly: C = false, checkStrategy: k = "all", allowNotLoaded: R = false } = S;
        return yf({
          checkedKeys: vf(x),
          indeterminateKeys: bf(x),
          cascade: _,
          leafOnly: C,
          checkStrategy: k,
          allowNotLoaded: R
        }, w);
      },
      check(x, S, _ = {}) {
        const { cascade: C = true, leafOnly: k = false, checkStrategy: R = "all", allowNotLoaded: P = false } = _;
        return yf({
          checkedKeys: vf(S),
          indeterminateKeys: bf(S),
          keysToCheck: x == null ? [] : Sb(x),
          cascade: C,
          leafOnly: k,
          checkStrategy: R,
          allowNotLoaded: P
        }, w);
      },
      uncheck(x, S, _ = {}) {
        const { cascade: C = true, leafOnly: k = false, checkStrategy: R = "all", allowNotLoaded: P = false } = _;
        return yf({
          checkedKeys: vf(S),
          indeterminateKeys: bf(S),
          keysToUncheck: x == null ? [] : Sb(x),
          cascade: C,
          leafOnly: k,
          checkStrategy: R,
          allowNotLoaded: P
        }, w);
      },
      getNonLeafKeys(x = {}) {
        return Az(h, x);
      }
    };
    return w;
  }
  const Jz = {
    iconSizeTiny: "28px",
    iconSizeSmall: "34px",
    iconSizeMedium: "40px",
    iconSizeLarge: "46px",
    iconSizeHuge: "52px"
  };
  function lC(e) {
    const { textColorDisabled: t, iconColor: n, textColor2: r, fontSizeTiny: o, fontSizeSmall: i, fontSizeMedium: a, fontSizeLarge: l, fontSizeHuge: s } = e;
    return Object.assign(Object.assign({}, Jz), {
      fontSizeTiny: o,
      fontSizeSmall: i,
      fontSizeMedium: a,
      fontSizeLarge: l,
      fontSizeHuge: s,
      textColor: t,
      iconColor: n,
      extraTextColor: r
    });
  }
  const pd = {
    name: "Empty",
    common: mt,
    self: lC
  }, Ra = {
    name: "Empty",
    common: Ue,
    self: lC
  }, Zz = A("empty", `
 display: flex;
 flex-direction: column;
 align-items: center;
 font-size: var(--n-font-size);
`, [
    V("icon", `
 width: var(--n-icon-size);
 height: var(--n-icon-size);
 font-size: var(--n-icon-size);
 line-height: var(--n-icon-size);
 color: var(--n-icon-color);
 transition:
 color .3s var(--n-bezier);
 `, [
      W("+", [
        V("description", `
 margin-top: 8px;
 `)
      ])
    ]),
    V("description", `
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 `),
    V("extra", `
 text-align: center;
 transition: color .3s var(--n-bezier);
 margin-top: 12px;
 color: var(--n-extra-text-color);
 `)
  ]), Qz = Object.assign(Object.assign({}, Fe.props), {
    description: String,
    showDescription: {
      type: Boolean,
      default: true
    },
    showIcon: {
      type: Boolean,
      default: true
    },
    size: {
      type: String,
      default: "medium"
    },
    renderIcon: Function
  }), gm = pe({
    name: "Empty",
    props: Qz,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n, mergedComponentPropsRef: r } = at(e), o = Fe("Empty", "-empty", Zz, pd, e, t), { localeRef: i } = ma("Empty"), a = D(() => {
        var u, d, h;
        return (u = e.description) !== null && u !== void 0 ? u : (h = (d = r == null ? void 0 : r.value) === null || d === void 0 ? void 0 : d.Empty) === null || h === void 0 ? void 0 : h.description;
      }), l = D(() => {
        var u, d;
        return ((d = (u = r == null ? void 0 : r.value) === null || u === void 0 ? void 0 : u.Empty) === null || d === void 0 ? void 0 : d.renderIcon) || (() => g(cz, null));
      }), s = D(() => {
        const { size: u } = e, { common: { cubicBezierEaseInOut: d }, self: { [Se("iconSize", u)]: h, [Se("fontSize", u)]: p, textColor: f, iconColor: m, extraTextColor: b } } = o.value;
        return {
          "--n-icon-size": h,
          "--n-font-size": p,
          "--n-bezier": d,
          "--n-text-color": f,
          "--n-icon-color": m,
          "--n-extra-text-color": b
        };
      }), c = n ? xt("empty", D(() => {
        let u = "";
        const { size: d } = e;
        return u += d[0], u;
      }), s, e) : void 0;
      return {
        mergedClsPrefix: t,
        mergedRenderIcon: l,
        localizedDescription: D(() => a.value || i.value.description),
        cssVars: n ? void 0 : s,
        themeClass: c == null ? void 0 : c.themeClass,
        onRender: c == null ? void 0 : c.onRender
      };
    },
    render() {
      const { $slots: e, mergedClsPrefix: t, onRender: n } = this;
      return n == null ? void 0 : n(), g("div", {
        class: [
          `${t}-empty`,
          this.themeClass
        ],
        style: this.cssVars
      }, this.showIcon ? g("div", {
        class: `${t}-empty__icon`
      }, e.icon ? e.icon() : g(Jt, {
        clsPrefix: t
      }, {
        default: this.mergedRenderIcon
      })) : null, this.showDescription ? g("div", {
        class: `${t}-empty__description`
      }, e.default ? e.default() : this.localizedDescription) : null, e.extra ? g("div", {
        class: `${t}-empty__extra`
      }, e.extra()) : null);
    }
  }), e8 = {
    height: "calc(var(--n-option-height) * 7.6)",
    paddingTiny: "4px 0",
    paddingSmall: "4px 0",
    paddingMedium: "4px 0",
    paddingLarge: "4px 0",
    paddingHuge: "4px 0",
    optionPaddingTiny: "0 12px",
    optionPaddingSmall: "0 12px",
    optionPaddingMedium: "0 12px",
    optionPaddingLarge: "0 12px",
    optionPaddingHuge: "0 12px",
    loadingSize: "18px"
  };
  function sC(e) {
    const { borderRadius: t, popoverColor: n, textColor3: r, dividerColor: o, textColor2: i, primaryColorPressed: a, textColorDisabled: l, primaryColor: s, opacityDisabled: c, hoverColor: u, fontSizeTiny: d, fontSizeSmall: h, fontSizeMedium: p, fontSizeLarge: f, fontSizeHuge: m, heightTiny: b, heightSmall: v, heightMedium: y, heightLarge: w, heightHuge: x } = e;
    return Object.assign(Object.assign({}, e8), {
      optionFontSizeTiny: d,
      optionFontSizeSmall: h,
      optionFontSizeMedium: p,
      optionFontSizeLarge: f,
      optionFontSizeHuge: m,
      optionHeightTiny: b,
      optionHeightSmall: v,
      optionHeightMedium: y,
      optionHeightLarge: w,
      optionHeightHuge: x,
      borderRadius: t,
      color: n,
      groupHeaderTextColor: r,
      actionDividerColor: o,
      optionTextColor: i,
      optionTextColorPressed: a,
      optionTextColorDisabled: l,
      optionTextColorActive: s,
      optionOpacityDisabled: c,
      optionCheckColor: s,
      optionColorPending: u,
      optionColorActive: "rgba(0, 0, 0, 0)",
      optionColorActivePending: u,
      actionTextColor: i,
      loadingColor: s
    });
  }
  const vm = {
    name: "InternalSelectMenu",
    common: mt,
    peers: {
      Scrollbar: hi,
      Empty: pd
    },
    self: sC
  }, Js = {
    name: "InternalSelectMenu",
    common: Ue,
    peers: {
      Scrollbar: nr,
      Empty: Ra
    },
    self: sC
  }, kb = pe({
    name: "NBaseSelectGroupHeader",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      tmNode: {
        type: Object,
        required: true
      }
    },
    setup() {
      const { renderLabelRef: e, renderOptionRef: t, labelFieldRef: n, nodePropsRef: r } = je(Jp);
      return {
        labelField: n,
        nodeProps: r,
        renderLabel: e,
        renderOption: t
      };
    },
    render() {
      const { clsPrefix: e, renderLabel: t, renderOption: n, nodeProps: r, tmNode: { rawNode: o } } = this, i = r == null ? void 0 : r(o), a = t ? t(o, false) : Xt(o[this.labelField], o, false), l = g("div", Object.assign({}, i, {
        class: [
          `${e}-base-select-group-header`,
          i == null ? void 0 : i.class
        ]
      }), a);
      return o.render ? o.render({
        node: l,
        option: o
      }) : n ? n({
        node: l,
        option: o,
        selected: false
      }) : l;
    }
  });
  function t8(e, t) {
    return g(Ln, {
      name: "fade-in-scale-up-transition"
    }, {
      default: () => e ? g(Jt, {
        clsPrefix: t,
        class: `${t}-base-select-option__check`
      }, {
        default: () => g(oz)
      }) : null
    });
  }
  const Rb = pe({
    name: "NBaseSelectOption",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      tmNode: {
        type: Object,
        required: true
      }
    },
    setup(e) {
      const { valueRef: t, pendingTmNodeRef: n, multipleRef: r, valueSetRef: o, renderLabelRef: i, renderOptionRef: a, labelFieldRef: l, valueFieldRef: s, showCheckmarkRef: c, nodePropsRef: u, handleOptionClick: d, handleOptionMouseEnter: h } = je(Jp), p = Ct(() => {
        const { value: v } = n;
        return v ? e.tmNode.key === v.key : false;
      });
      function f(v) {
        const { tmNode: y } = e;
        y.disabled || d(v, y);
      }
      function m(v) {
        const { tmNode: y } = e;
        y.disabled || h(v, y);
      }
      function b(v) {
        const { tmNode: y } = e, { value: w } = p;
        y.disabled || w || h(v, y);
      }
      return {
        multiple: r,
        isGrouped: Ct(() => {
          const { tmNode: v } = e, { parent: y } = v;
          return y && y.rawNode.type === "group";
        }),
        showCheckmark: c,
        nodeProps: u,
        isPending: p,
        isSelected: Ct(() => {
          const { value: v } = t, { value: y } = r;
          if (v === null) return false;
          const w = e.tmNode.rawNode[s.value];
          if (y) {
            const { value: x } = o;
            return x.has(w);
          } else return v === w;
        }),
        labelField: l,
        renderLabel: i,
        renderOption: a,
        handleMouseMove: b,
        handleMouseEnter: m,
        handleClick: f
      };
    },
    render() {
      const { clsPrefix: e, tmNode: { rawNode: t }, isSelected: n, isPending: r, isGrouped: o, showCheckmark: i, nodeProps: a, renderOption: l, renderLabel: s, handleClick: c, handleMouseEnter: u, handleMouseMove: d } = this, h = t8(n, e), p = s ? [
        s(t, n),
        i && h
      ] : [
        Xt(t[this.labelField], t, n),
        i && h
      ], f = a == null ? void 0 : a(t), m = g("div", Object.assign({}, f, {
        class: [
          `${e}-base-select-option`,
          t.class,
          f == null ? void 0 : f.class,
          {
            [`${e}-base-select-option--disabled`]: t.disabled,
            [`${e}-base-select-option--selected`]: n,
            [`${e}-base-select-option--grouped`]: o,
            [`${e}-base-select-option--pending`]: r,
            [`${e}-base-select-option--show-checkmark`]: i
          }
        ],
        style: [
          (f == null ? void 0 : f.style) || "",
          t.style || ""
        ],
        onClick: ms([
          c,
          f == null ? void 0 : f.onClick
        ]),
        onMouseenter: ms([
          u,
          f == null ? void 0 : f.onMouseenter
        ]),
        onMousemove: ms([
          d,
          f == null ? void 0 : f.onMousemove
        ])
      }), g("div", {
        class: `${e}-base-select-option__content`
      }, p));
      return t.render ? t.render({
        node: m,
        option: t,
        selected: n
      }) : l ? l({
        node: m,
        option: t,
        selected: n
      }) : m;
    }
  }), { cubicBezierEaseIn: Ab, cubicBezierEaseOut: Eb } = yr;
  function Oo({ transformOrigin: e = "inherit", duration: t = ".2s", enterScale: n = ".9", originalTransform: r = "", originalTransition: o = "" } = {}) {
    return [
      W("&.fade-in-scale-up-transition-leave-active", {
        transformOrigin: e,
        transition: `opacity ${t} ${Ab}, transform ${t} ${Ab} ${o && `,${o}`}`
      }),
      W("&.fade-in-scale-up-transition-enter-active", {
        transformOrigin: e,
        transition: `opacity ${t} ${Eb}, transform ${t} ${Eb} ${o && `,${o}`}`
      }),
      W("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to", {
        opacity: 0,
        transform: `${r} scale(${n})`
      }),
      W("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to", {
        opacity: 1,
        transform: `${r} scale(1)`
      })
    ];
  }
  const n8 = A("base-select-menu", `
 line-height: 1.5;
 outline: none;
 z-index: 0;
 position: relative;
 border-radius: var(--n-border-radius);
 transition:
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-color);
`, [
    A("scrollbar", `
 max-height: var(--n-height);
 `),
    A("virtual-list", `
 max-height: var(--n-height);
 `),
    A("base-select-option", `
 min-height: var(--n-option-height);
 font-size: var(--n-option-font-size);
 display: flex;
 align-items: center;
 `, [
      V("content", `
 z-index: 1;
 white-space: nowrap;
 text-overflow: ellipsis;
 overflow: hidden;
 `)
    ]),
    A("base-select-group-header", `
 min-height: var(--n-option-height);
 font-size: .93em;
 display: flex;
 align-items: center;
 `),
    A("base-select-menu-option-wrapper", `
 position: relative;
 width: 100%;
 `),
    V("loading, empty", `
 display: flex;
 padding: 12px 32px;
 flex: 1;
 justify-content: center;
 `),
    V("loading", `
 color: var(--n-loading-color);
 font-size: var(--n-loading-size);
 `),
    V("header", `
 padding: 8px var(--n-option-padding-left);
 font-size: var(--n-option-font-size);
 transition: 
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 border-bottom: 1px solid var(--n-action-divider-color);
 color: var(--n-action-text-color);
 `),
    V("action", `
 padding: 8px var(--n-option-padding-left);
 font-size: var(--n-option-font-size);
 transition: 
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 border-top: 1px solid var(--n-action-divider-color);
 color: var(--n-action-text-color);
 `),
    A("base-select-group-header", `
 position: relative;
 cursor: default;
 padding: var(--n-option-padding);
 color: var(--n-group-header-text-color);
 `),
    A("base-select-option", `
 cursor: pointer;
 position: relative;
 padding: var(--n-option-padding);
 transition:
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 box-sizing: border-box;
 color: var(--n-option-text-color);
 opacity: 1;
 `, [
      G("show-checkmark", `
 padding-right: calc(var(--n-option-padding-right) + 20px);
 `),
      W("&::before", `
 content: "";
 position: absolute;
 left: 4px;
 right: 4px;
 top: 0;
 bottom: 0;
 border-radius: var(--n-border-radius);
 transition: background-color .3s var(--n-bezier);
 `),
      W("&:active", `
 color: var(--n-option-text-color-pressed);
 `),
      G("grouped", `
 padding-left: calc(var(--n-option-padding-left) * 1.5);
 `),
      G("pending", [
        W("&::before", `
 background-color: var(--n-option-color-pending);
 `)
      ]),
      G("selected", `
 color: var(--n-option-text-color-active);
 `, [
        W("&::before", `
 background-color: var(--n-option-color-active);
 `),
        G("pending", [
          W("&::before", `
 background-color: var(--n-option-color-active-pending);
 `)
        ])
      ]),
      G("disabled", `
 cursor: not-allowed;
 `, [
        At("selected", `
 color: var(--n-option-text-color-disabled);
 `),
        G("selected", `
 opacity: var(--n-option-opacity-disabled);
 `)
      ]),
      V("check", `
 font-size: 16px;
 position: absolute;
 right: calc(var(--n-option-padding-right) - 4px);
 top: calc(50% - 7px);
 color: var(--n-option-check-color);
 transition: color .3s var(--n-bezier);
 `, [
        Oo({
          enterScale: "0.5"
        })
      ])
    ])
  ]), cC = pe({
    name: "InternalSelectMenu",
    props: Object.assign(Object.assign({}, Fe.props), {
      clsPrefix: {
        type: String,
        required: true
      },
      scrollable: {
        type: Boolean,
        default: true
      },
      treeMate: {
        type: Object,
        required: true
      },
      multiple: Boolean,
      size: {
        type: String,
        default: "medium"
      },
      value: {
        type: [
          String,
          Number,
          Array
        ],
        default: null
      },
      autoPending: Boolean,
      virtualScroll: {
        type: Boolean,
        default: true
      },
      show: {
        type: Boolean,
        default: true
      },
      labelField: {
        type: String,
        default: "label"
      },
      valueField: {
        type: String,
        default: "value"
      },
      loading: Boolean,
      focusable: Boolean,
      renderLabel: Function,
      renderOption: Function,
      nodeProps: Function,
      showCheckmark: {
        type: Boolean,
        default: true
      },
      onMousedown: Function,
      onScroll: Function,
      onFocus: Function,
      onBlur: Function,
      onKeyup: Function,
      onKeydown: Function,
      onTabOut: Function,
      onMouseenter: Function,
      onMouseleave: Function,
      onResize: Function,
      resetMenuOnOptionsChange: {
        type: Boolean,
        default: true
      },
      inlineThemeDisabled: Boolean,
      onToggle: Function
    }),
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e), r = rn("InternalSelectMenu", n, t), o = Fe("InternalSelectMenu", "-internal-select-menu", n8, vm, e, $e(e, "clsPrefix")), i = L(null), a = L(null), l = L(null), s = D(() => e.treeMate.getFlattenedNodes()), c = D(() => Lz(s.value)), u = L(null);
      function d() {
        const { treeMate: Y } = e;
        let H = null;
        const { value: oe } = e;
        oe === null ? H = Y.getFirstAvailableNode() : (e.multiple ? H = Y.getNode((oe || [])[(oe || []).length - 1]) : H = Y.getNode(oe), (!H || H.disabled) && (H = Y.getFirstAvailableNode())), z(H || null);
      }
      function h() {
        const { value: Y } = u;
        Y && !e.treeMate.getNode(Y.key) && (u.value = null);
      }
      let p;
      lt(() => e.show, (Y) => {
        Y ? p = lt(() => e.treeMate, () => {
          e.resetMenuOnOptionsChange ? (e.autoPending ? d() : h(), sn(U)) : h();
        }, {
          immediate: true
        }) : p == null ? void 0 : p();
      }, {
        immediate: true
      }), Zt(() => {
        p == null ? void 0 : p();
      });
      const f = D(() => pn(o.value.self[Se("optionHeight", e.size)])), m = D(() => En(o.value.self[Se("padding", e.size)])), b = D(() => e.multiple && Array.isArray(e.value) ? new Set(e.value) : /* @__PURE__ */ new Set()), v = D(() => {
        const Y = s.value;
        return Y && Y.length === 0;
      });
      function y(Y) {
        const { onToggle: H } = e;
        H && H(Y);
      }
      function w(Y) {
        const { onScroll: H } = e;
        H && H(Y);
      }
      function x(Y) {
        var H;
        (H = l.value) === null || H === void 0 || H.sync(), w(Y);
      }
      function S() {
        var Y;
        (Y = l.value) === null || Y === void 0 || Y.sync();
      }
      function _() {
        const { value: Y } = u;
        return Y || null;
      }
      function C(Y, H) {
        H.disabled || z(H, false);
      }
      function k(Y, H) {
        H.disabled || y(H);
      }
      function R(Y) {
        var H;
        mr(Y, "action") || (H = e.onKeyup) === null || H === void 0 || H.call(e, Y);
      }
      function P(Y) {
        var H;
        mr(Y, "action") || (H = e.onKeydown) === null || H === void 0 || H.call(e, Y);
      }
      function B(Y) {
        var H;
        (H = e.onMousedown) === null || H === void 0 || H.call(e, Y), !e.focusable && Y.preventDefault();
      }
      function E() {
        const { value: Y } = u;
        Y && z(Y.getNext({
          loop: true
        }), true);
      }
      function M() {
        const { value: Y } = u;
        Y && z(Y.getPrev({
          loop: true
        }), true);
      }
      function z(Y, H = false) {
        u.value = Y, H && U();
      }
      function U() {
        var Y, H;
        const oe = u.value;
        if (!oe) return;
        const ce = c.value(oe.key);
        ce !== null && (e.virtualScroll ? (Y = a.value) === null || Y === void 0 || Y.scrollTo({
          index: ce
        }) : (H = l.value) === null || H === void 0 || H.scrollTo({
          index: ce,
          elSize: f.value
        }));
      }
      function ee(Y) {
        var H, oe;
        !((H = i.value) === null || H === void 0) && H.contains(Y.target) && ((oe = e.onFocus) === null || oe === void 0 || oe.call(e, Y));
      }
      function ne(Y) {
        var H, oe;
        !((H = i.value) === null || H === void 0) && H.contains(Y.relatedTarget) || (oe = e.onBlur) === null || oe === void 0 || oe.call(e, Y);
      }
      ft(Jp, {
        handleOptionMouseEnter: C,
        handleOptionClick: k,
        valueSetRef: b,
        pendingTmNodeRef: u,
        nodePropsRef: $e(e, "nodeProps"),
        showCheckmarkRef: $e(e, "showCheckmark"),
        multipleRef: $e(e, "multiple"),
        valueRef: $e(e, "value"),
        renderLabelRef: $e(e, "renderLabel"),
        renderOptionRef: $e(e, "renderOption"),
        labelFieldRef: $e(e, "labelField"),
        valueFieldRef: $e(e, "valueField")
      }), ft(ew, i), gt(() => {
        const { value: Y } = l;
        Y && Y.sync();
      });
      const ae = D(() => {
        const { size: Y } = e, { common: { cubicBezierEaseInOut: H }, self: { height: oe, borderRadius: ce, color: be, groupHeaderTextColor: ie, actionDividerColor: fe, optionTextColorPressed: F, optionTextColor: se, optionTextColorDisabled: ze, optionTextColorActive: q, optionOpacityDisabled: J, optionCheckColor: le, actionTextColor: we, optionColorPending: ke, optionColorActive: _e, loadingColor: K, loadingSize: N, optionColorActivePending: j, [Se("optionFontSize", Y)]: X, [Se("optionHeight", Y)]: ge, [Se("optionPadding", Y)]: te } } = o.value;
        return {
          "--n-height": oe,
          "--n-action-divider-color": fe,
          "--n-action-text-color": we,
          "--n-bezier": H,
          "--n-border-radius": ce,
          "--n-color": be,
          "--n-option-font-size": X,
          "--n-group-header-text-color": ie,
          "--n-option-check-color": le,
          "--n-option-color-pending": ke,
          "--n-option-color-active": _e,
          "--n-option-color-active-pending": j,
          "--n-option-height": ge,
          "--n-option-opacity-disabled": J,
          "--n-option-text-color": se,
          "--n-option-text-color-active": q,
          "--n-option-text-color-disabled": ze,
          "--n-option-text-color-pressed": F,
          "--n-option-padding": te,
          "--n-option-padding-left": En(te, "left"),
          "--n-option-padding-right": En(te, "right"),
          "--n-loading-color": K,
          "--n-loading-size": N
        };
      }), { inlineThemeDisabled: ye } = e, xe = ye ? xt("internal-select-menu", D(() => e.size[0]), ae, e) : void 0, re = {
        selfRef: i,
        next: E,
        prev: M,
        getPendingTmNode: _
      };
      return xw(i, e.onResize), Object.assign({
        mergedTheme: o,
        mergedClsPrefix: t,
        rtlEnabled: r,
        virtualListRef: a,
        scrollbarRef: l,
        itemSize: f,
        padding: m,
        flattenedNodes: s,
        empty: v,
        virtualListContainer() {
          const { value: Y } = a;
          return Y == null ? void 0 : Y.listElRef;
        },
        virtualListContent() {
          const { value: Y } = a;
          return Y == null ? void 0 : Y.itemsElRef;
        },
        doScroll: w,
        handleFocusin: ee,
        handleFocusout: ne,
        handleKeyUp: R,
        handleKeyDown: P,
        handleMouseDown: B,
        handleVirtualListResize: S,
        handleVirtualListScroll: x,
        cssVars: ye ? void 0 : ae,
        themeClass: xe == null ? void 0 : xe.themeClass,
        onRender: xe == null ? void 0 : xe.onRender
      }, re);
    },
    render() {
      const { $slots: e, virtualScroll: t, clsPrefix: n, mergedTheme: r, themeClass: o, onRender: i } = this;
      return i == null ? void 0 : i(), g("div", {
        ref: "selfRef",
        tabindex: this.focusable ? 0 : -1,
        class: [
          `${n}-base-select-menu`,
          this.rtlEnabled && `${n}-base-select-menu--rtl`,
          o,
          this.multiple && `${n}-base-select-menu--multiple`
        ],
        style: this.cssVars,
        onFocusin: this.handleFocusin,
        onFocusout: this.handleFocusout,
        onKeyup: this.handleKeyUp,
        onKeydown: this.handleKeyDown,
        onMousedown: this.handleMouseDown,
        onMouseenter: this.onMouseenter,
        onMouseleave: this.onMouseleave
      }, Pt(e.header, (a) => a && g("div", {
        class: `${n}-base-select-menu__header`,
        "data-header": true,
        key: "header"
      }, a)), this.loading ? g("div", {
        class: `${n}-base-select-menu__loading`
      }, g(Ii, {
        clsPrefix: n,
        strokeWidth: 20
      })) : this.empty ? g("div", {
        class: `${n}-base-select-menu__empty`,
        "data-empty": true
      }, In(e.empty, () => [
        g(gm, {
          theme: r.peers.Empty,
          themeOverrides: r.peerOverrides.Empty,
          size: this.size
        })
      ])) : g(Bo, {
        ref: "scrollbarRef",
        theme: r.peers.Scrollbar,
        themeOverrides: r.peerOverrides.Scrollbar,
        scrollable: this.scrollable,
        container: t ? this.virtualListContainer : void 0,
        content: t ? this.virtualListContent : void 0,
        onScroll: t ? void 0 : this.doScroll
      }, {
        default: () => t ? g(tm, {
          ref: "virtualListRef",
          class: `${n}-virtual-list`,
          items: this.flattenedNodes,
          itemSize: this.itemSize,
          showScrollbar: false,
          paddingTop: this.padding.top,
          paddingBottom: this.padding.bottom,
          onResize: this.handleVirtualListResize,
          onScroll: this.handleVirtualListScroll,
          itemResizable: true
        }, {
          default: ({ item: a }) => a.isGroup ? g(kb, {
            key: a.key,
            clsPrefix: n,
            tmNode: a
          }) : a.ignored ? null : g(Rb, {
            clsPrefix: n,
            key: a.key,
            tmNode: a
          })
        }) : g("div", {
          class: `${n}-base-select-menu-option-wrapper`,
          style: {
            paddingTop: this.padding.top,
            paddingBottom: this.padding.bottom
          }
        }, this.flattenedNodes.map((a) => a.isGroup ? g(kb, {
          key: a.key,
          clsPrefix: n,
          tmNode: a
        }) : g(Rb, {
          clsPrefix: n,
          key: a.key,
          tmNode: a
        })))
      }), Pt(e.action, (a) => a && [
        g("div", {
          class: `${n}-base-select-menu__action`,
          "data-action": true,
          key: "action"
        }, a),
        g(gz, {
          onFocus: this.onTabOut,
          key: "focus-detector"
        })
      ]));
    }
  }), r8 = {
    space: "6px",
    spaceArrow: "10px",
    arrowOffset: "10px",
    arrowOffsetVertical: "10px",
    arrowHeight: "6px",
    padding: "8px 14px"
  };
  function uC(e) {
    const { boxShadow2: t, popoverColor: n, textColor2: r, borderRadius: o, fontSize: i, dividerColor: a } = e;
    return Object.assign(Object.assign({}, r8), {
      fontSize: i,
      borderRadius: o,
      color: n,
      dividerColor: a,
      textColor: r,
      boxShadow: t
    });
  }
  const Aa = {
    name: "Popover",
    common: mt,
    peers: {
      Scrollbar: hi
    },
    self: uC
  }, Ea = {
    name: "Popover",
    common: Ue,
    peers: {
      Scrollbar: nr
    },
    self: uC
  }, xf = {
    top: "bottom",
    bottom: "top",
    left: "right",
    right: "left"
  }, zn = "var(--n-arrow-height) * 1.414", o8 = W([
    A("popover", `
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 position: relative;
 font-size: var(--n-font-size);
 color: var(--n-text-color);
 box-shadow: var(--n-box-shadow);
 word-break: break-word;
 `, [
      W(">", [
        A("scrollbar", `
 height: inherit;
 max-height: inherit;
 `)
      ]),
      At("raw", `
 background-color: var(--n-color);
 border-radius: var(--n-border-radius);
 `, [
        At("scrollable", [
          At("show-header-or-footer", "padding: var(--n-padding);")
        ])
      ]),
      V("header", `
 padding: var(--n-padding);
 border-bottom: 1px solid var(--n-divider-color);
 transition: border-color .3s var(--n-bezier);
 `),
      V("footer", `
 padding: var(--n-padding);
 border-top: 1px solid var(--n-divider-color);
 transition: border-color .3s var(--n-bezier);
 `),
      G("scrollable, show-header-or-footer", [
        V("content", `
 padding: var(--n-padding);
 `)
      ])
    ]),
    A("popover-shared", `
 transform-origin: inherit;
 `, [
      A("popover-arrow-wrapper", `
 position: absolute;
 overflow: hidden;
 pointer-events: none;
 `, [
        A("popover-arrow", `
 transition: background-color .3s var(--n-bezier);
 position: absolute;
 display: block;
 width: calc(${zn});
 height: calc(${zn});
 box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
 transform: rotate(45deg);
 background-color: var(--n-color);
 pointer-events: all;
 `)
      ]),
      W("&.popover-transition-enter-from, &.popover-transition-leave-to", `
 opacity: 0;
 transform: scale(.85);
 `),
      W("&.popover-transition-enter-to, &.popover-transition-leave-from", `
 transform: scale(1);
 opacity: 1;
 `),
      W("&.popover-transition-enter-active", `
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 opacity .15s var(--n-bezier-ease-out),
 transform .15s var(--n-bezier-ease-out);
 `),
      W("&.popover-transition-leave-active", `
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 opacity .15s var(--n-bezier-ease-in),
 transform .15s var(--n-bezier-ease-in);
 `)
    ]),
    Nr("top-start", `
 top: calc(${zn} / -2);
 left: calc(${Uo("top-start")} - var(--v-offset-left));
 `),
    Nr("top", `
 top: calc(${zn} / -2);
 transform: translateX(calc(${zn} / -2)) rotate(45deg);
 left: 50%;
 `),
    Nr("top-end", `
 top: calc(${zn} / -2);
 right: calc(${Uo("top-end")} + var(--v-offset-left));
 `),
    Nr("bottom-start", `
 bottom: calc(${zn} / -2);
 left: calc(${Uo("bottom-start")} - var(--v-offset-left));
 `),
    Nr("bottom", `
 bottom: calc(${zn} / -2);
 transform: translateX(calc(${zn} / -2)) rotate(45deg);
 left: 50%;
 `),
    Nr("bottom-end", `
 bottom: calc(${zn} / -2);
 right: calc(${Uo("bottom-end")} + var(--v-offset-left));
 `),
    Nr("left-start", `
 left: calc(${zn} / -2);
 top: calc(${Uo("left-start")} - var(--v-offset-top));
 `),
    Nr("left", `
 left: calc(${zn} / -2);
 transform: translateY(calc(${zn} / -2)) rotate(45deg);
 top: 50%;
 `),
    Nr("left-end", `
 left: calc(${zn} / -2);
 bottom: calc(${Uo("left-end")} + var(--v-offset-top));
 `),
    Nr("right-start", `
 right: calc(${zn} / -2);
 top: calc(${Uo("right-start")} - var(--v-offset-top));
 `),
    Nr("right", `
 right: calc(${zn} / -2);
 transform: translateY(calc(${zn} / -2)) rotate(45deg);
 top: 50%;
 `),
    Nr("right-end", `
 right: calc(${zn} / -2);
 bottom: calc(${Uo("right-end")} + var(--v-offset-top));
 `),
    ...K$({
      top: [
        "right-start",
        "left-start"
      ],
      right: [
        "top-end",
        "bottom-end"
      ],
      bottom: [
        "right-end",
        "left-end"
      ],
      left: [
        "top-start",
        "bottom-start"
      ]
    }, (e, t) => {
      const n = [
        "right",
        "left"
      ].includes(t), r = n ? "width" : "height";
      return e.map((o) => {
        const i = o.split("-")[1] === "end", l = `calc((${`var(--v-target-${r}, 0px)`} - ${zn}) / 2)`, s = Uo(o);
        return W(`[v-placement="${o}"] >`, [
          A("popover-shared", [
            G("center-arrow", [
              A("popover-arrow", `${t}: calc(max(${l}, ${s}) ${i ? "+" : "-"} var(--v-offset-${n ? "left" : "top"}));`)
            ])
          ])
        ]);
      });
    })
  ]);
  function Uo(e) {
    return [
      "top",
      "bottom"
    ].includes(e.split("-")[0]) ? "var(--n-arrow-offset)" : "var(--n-arrow-offset-vertical)";
  }
  function Nr(e, t) {
    const n = e.split("-")[0], r = [
      "top",
      "bottom"
    ].includes(n) ? "height: var(--n-space-arrow);" : "width: var(--n-space-arrow);";
    return W(`[v-placement="${e}"] >`, [
      A("popover-shared", `
 margin-${xf[n]}: var(--n-space);
 `, [
        G("show-arrow", `
 margin-${xf[n]}: var(--n-space-arrow);
 `),
        G("overlap", `
 margin: 0;
 `),
        eE("popover-arrow-wrapper", `
 right: 0;
 left: 0;
 top: 0;
 bottom: 0;
 ${n}: 100%;
 ${xf[n]}: auto;
 ${r}
 `, [
          A("popover-arrow", t)
        ])
      ])
    ]);
  }
  const dC = Object.assign(Object.assign({}, Fe.props), {
    to: Or.propTo,
    show: Boolean,
    trigger: String,
    showArrow: Boolean,
    delay: Number,
    duration: Number,
    raw: Boolean,
    arrowPointToCenter: Boolean,
    arrowClass: String,
    arrowStyle: [
      String,
      Object
    ],
    arrowWrapperClass: String,
    arrowWrapperStyle: [
      String,
      Object
    ],
    displayDirective: String,
    x: Number,
    y: Number,
    flip: Boolean,
    overlap: Boolean,
    placement: String,
    width: [
      Number,
      String
    ],
    keepAliveOnHover: Boolean,
    scrollable: Boolean,
    contentClass: String,
    contentStyle: [
      Object,
      String
    ],
    headerClass: String,
    headerStyle: [
      Object,
      String
    ],
    footerClass: String,
    footerStyle: [
      Object,
      String
    ],
    internalDeactivateImmediately: Boolean,
    animated: Boolean,
    onClickoutside: Function,
    internalTrapFocus: Boolean,
    internalOnAfterLeave: Function,
    minWidth: Number,
    maxWidth: Number
  });
  function fC({ arrowClass: e, arrowStyle: t, arrowWrapperClass: n, arrowWrapperStyle: r, clsPrefix: o }) {
    return g("div", {
      key: "__popover-arrow__",
      style: r,
      class: [
        `${o}-popover-arrow-wrapper`,
        n
      ]
    }, g("div", {
      class: [
        `${o}-popover-arrow`,
        e
      ],
      style: t
    }));
  }
  const i8 = pe({
    name: "PopoverBody",
    inheritAttrs: false,
    props: dC,
    setup(e, { slots: t, attrs: n }) {
      const { namespaceRef: r, mergedClsPrefixRef: o, inlineThemeDisabled: i, mergedRtlRef: a } = at(e), l = Fe("Popover", "-popover", o8, Aa, e, o), s = rn("Popover", a, o), c = L(null), u = je("NPopover"), d = L(null), h = L(e.show), p = L(false);
      fn(() => {
        const { show: R } = e;
        R && !TT() && !e.internalDeactivateImmediately && (p.value = true);
      });
      const f = D(() => {
        const { trigger: R, onClickoutside: P } = e, B = [], { positionManuallyRef: { value: E } } = u;
        return E || (R === "click" && !P && B.push([
          ul,
          _,
          void 0,
          {
            capture: true
          }
        ]), R === "hover" && B.push([
          LE,
          S
        ])), P && B.push([
          ul,
          _,
          void 0,
          {
            capture: true
          }
        ]), (e.displayDirective === "show" || e.animated && p.value) && B.push([
          zo,
          e.show
        ]), B;
      }), m = D(() => {
        const { common: { cubicBezierEaseInOut: R, cubicBezierEaseIn: P, cubicBezierEaseOut: B }, self: { space: E, spaceArrow: M, padding: z, fontSize: U, textColor: ee, dividerColor: ne, color: ae, boxShadow: ye, borderRadius: xe, arrowHeight: re, arrowOffset: Y, arrowOffsetVertical: H } } = l.value;
        return {
          "--n-box-shadow": ye,
          "--n-bezier": R,
          "--n-bezier-ease-in": P,
          "--n-bezier-ease-out": B,
          "--n-font-size": U,
          "--n-text-color": ee,
          "--n-color": ae,
          "--n-divider-color": ne,
          "--n-border-radius": xe,
          "--n-arrow-height": re,
          "--n-arrow-offset": Y,
          "--n-arrow-offset-vertical": H,
          "--n-padding": z,
          "--n-space": E,
          "--n-space-arrow": M
        };
      }), b = D(() => {
        const R = e.width === "trigger" ? void 0 : Ft(e.width), P = [];
        R && P.push({
          width: R
        });
        const { maxWidth: B, minWidth: E } = e;
        return B && P.push({
          maxWidth: Ft(B)
        }), E && P.push({
          maxWidth: Ft(E)
        }), i || P.push(m.value), P;
      }), v = i ? xt("popover", void 0, m, e) : void 0;
      u.setBodyInstance({
        syncPosition: y
      }), Zt(() => {
        u.setBodyInstance(null);
      }), lt($e(e, "show"), (R) => {
        e.animated || (R ? h.value = true : h.value = false);
      });
      function y() {
        var R;
        (R = c.value) === null || R === void 0 || R.syncPosition();
      }
      function w(R) {
        e.trigger === "hover" && e.keepAliveOnHover && e.show && u.handleMouseEnter(R);
      }
      function x(R) {
        e.trigger === "hover" && e.keepAliveOnHover && u.handleMouseLeave(R);
      }
      function S(R) {
        e.trigger === "hover" && !C().contains(cl(R)) && u.handleMouseMoveOutside(R);
      }
      function _(R) {
        (e.trigger === "click" && !C().contains(cl(R)) || e.onClickoutside) && u.handleClickOutside(R);
      }
      function C() {
        return u.getTriggerElement();
      }
      ft(_l, d), ft(Ks, null), ft(Ys, null);
      function k() {
        if (v == null ? void 0 : v.onRender(), !(e.displayDirective === "show" || e.show || e.animated && p.value)) return null;
        let P;
        const B = u.internalRenderBodyRef.value, { value: E } = o;
        if (B) P = B([
          `${E}-popover-shared`,
          (s == null ? void 0 : s.value) && `${E}-popover--rtl`,
          v == null ? void 0 : v.themeClass.value,
          e.overlap && `${E}-popover-shared--overlap`,
          e.showArrow && `${E}-popover-shared--show-arrow`,
          e.arrowPointToCenter && `${E}-popover-shared--center-arrow`
        ], d, b.value, w, x);
        else {
          const { value: M } = u.extraClassRef, { internalTrapFocus: z } = e, U = !sa(t.header) || !sa(t.footer), ee = () => {
            var ne, ae;
            const ye = U ? g(wt, null, Pt(t.header, (Y) => Y ? g("div", {
              class: [
                `${E}-popover__header`,
                e.headerClass
              ],
              style: e.headerStyle
            }, Y) : null), Pt(t.default, (Y) => Y ? g("div", {
              class: [
                `${E}-popover__content`,
                e.contentClass
              ],
              style: e.contentStyle
            }, t) : null), Pt(t.footer, (Y) => Y ? g("div", {
              class: [
                `${E}-popover__footer`,
                e.footerClass
              ],
              style: e.footerStyle
            }, Y) : null)) : e.scrollable ? (ne = t.default) === null || ne === void 0 ? void 0 : ne.call(t) : g("div", {
              class: [
                `${E}-popover__content`,
                e.contentClass
              ],
              style: e.contentStyle
            }, t), xe = e.scrollable ? g(oC, {
              themeOverrides: l.value.peerOverrides.Scrollbar,
              theme: l.value.peers.Scrollbar,
              contentClass: U ? void 0 : `${E}-popover__content ${(ae = e.contentClass) !== null && ae !== void 0 ? ae : ""}`,
              contentStyle: U ? void 0 : e.contentStyle
            }, {
              default: () => ye
            }) : ye, re = e.showArrow ? fC({
              arrowClass: e.arrowClass,
              arrowStyle: e.arrowStyle,
              arrowWrapperClass: e.arrowWrapperClass,
              arrowWrapperStyle: e.arrowWrapperStyle,
              clsPrefix: E
            }) : null;
            return [
              xe,
              re
            ];
          };
          P = g("div", Mn({
            class: [
              `${E}-popover`,
              `${E}-popover-shared`,
              (s == null ? void 0 : s.value) && `${E}-popover--rtl`,
              v == null ? void 0 : v.themeClass.value,
              M.map((ne) => `${E}-${ne}`),
              {
                [`${E}-popover--scrollable`]: e.scrollable,
                [`${E}-popover--show-header-or-footer`]: U,
                [`${E}-popover--raw`]: e.raw,
                [`${E}-popover-shared--overlap`]: e.overlap,
                [`${E}-popover-shared--show-arrow`]: e.showArrow,
                [`${E}-popover-shared--center-arrow`]: e.arrowPointToCenter
              }
            ],
            ref: d,
            style: b.value,
            onKeydown: u.handleKeydown,
            onMouseenter: w,
            onMouseleave: x
          }, n), z ? g(nm, {
            active: e.show,
            autoFocus: true
          }, {
            default: ee
          }) : ee());
        }
        return $r(P, f.value);
      }
      return {
        displayed: p,
        namespace: r,
        isMounted: u.isMountedRef,
        zIndex: u.zIndexRef,
        followerRef: c,
        adjustedTo: Or(e),
        followerEnabled: h,
        renderContentNode: k
      };
    },
    render() {
      return g(ld, {
        ref: "followerRef",
        zIndex: this.zIndex,
        show: this.show,
        enabled: this.followerEnabled,
        to: this.adjustedTo,
        x: this.x,
        y: this.y,
        flip: this.flip,
        placement: this.placement,
        containerClass: this.namespace,
        overlap: this.overlap,
        width: this.width === "trigger" ? "target" : void 0,
        teleportDisabled: this.adjustedTo === Or.tdkey
      }, {
        default: () => this.animated ? g(Ln, {
          name: "popover-transition",
          appear: this.isMounted,
          onEnter: () => {
            this.followerEnabled = true;
          },
          onAfterLeave: () => {
            var e;
            (e = this.internalOnAfterLeave) === null || e === void 0 || e.call(this), this.followerEnabled = false, this.displayed = false;
          }
        }, {
          default: this.renderContentNode
        }) : this.renderContentNode()
      });
    }
  }), a8 = Object.keys(dC), l8 = {
    focus: [
      "onFocus",
      "onBlur"
    ],
    click: [
      "onClick"
    ],
    hover: [
      "onMouseenter",
      "onMouseleave"
    ],
    manual: [],
    nested: [
      "onFocus",
      "onBlur",
      "onMouseenter",
      "onMouseleave",
      "onClick"
    ]
  };
  function s8(e, t, n) {
    l8[t].forEach((r) => {
      e.props ? e.props = Object.assign({}, e.props) : e.props = {};
      const o = e.props[r], i = n[r];
      o ? e.props[r] = (...a) => {
        o(...a), i(...a);
      } : e.props[r] = i;
    });
  }
  const ga = {
    show: {
      type: Boolean,
      default: void 0
    },
    defaultShow: Boolean,
    showArrow: {
      type: Boolean,
      default: true
    },
    trigger: {
      type: String,
      default: "hover"
    },
    delay: {
      type: Number,
      default: 100
    },
    duration: {
      type: Number,
      default: 100
    },
    raw: Boolean,
    placement: {
      type: String,
      default: "top"
    },
    x: Number,
    y: Number,
    arrowPointToCenter: Boolean,
    disabled: Boolean,
    getDisabled: Function,
    displayDirective: {
      type: String,
      default: "if"
    },
    arrowClass: String,
    arrowStyle: [
      String,
      Object
    ],
    arrowWrapperClass: String,
    arrowWrapperStyle: [
      String,
      Object
    ],
    flip: {
      type: Boolean,
      default: true
    },
    animated: {
      type: Boolean,
      default: true
    },
    width: {
      type: [
        Number,
        String
      ],
      default: void 0
    },
    overlap: Boolean,
    keepAliveOnHover: {
      type: Boolean,
      default: true
    },
    zIndex: Number,
    to: Or.propTo,
    scrollable: Boolean,
    contentClass: String,
    contentStyle: [
      Object,
      String
    ],
    headerClass: String,
    headerStyle: [
      Object,
      String
    ],
    footerClass: String,
    footerStyle: [
      Object,
      String
    ],
    onClickoutside: Function,
    "onUpdate:show": [
      Function,
      Array
    ],
    onUpdateShow: [
      Function,
      Array
    ],
    internalDeactivateImmediately: Boolean,
    internalSyncTargetWithParent: Boolean,
    internalInheritedEventHandlers: {
      type: Array,
      default: () => []
    },
    internalTrapFocus: Boolean,
    internalExtraClass: {
      type: Array,
      default: () => []
    },
    onShow: [
      Function,
      Array
    ],
    onHide: [
      Function,
      Array
    ],
    arrow: {
      type: Boolean,
      default: void 0
    },
    minWidth: Number,
    maxWidth: Number
  }, c8 = Object.assign(Object.assign(Object.assign({}, Fe.props), ga), {
    internalOnAfterLeave: Function,
    internalRenderBody: Function
  }), Tl = pe({
    name: "Popover",
    inheritAttrs: false,
    props: c8,
    slots: Object,
    __popover__: true,
    setup(e) {
      const t = Pi(), n = L(null), r = D(() => e.show), o = L(e.defaultShow), i = mn(r, o), a = Ct(() => e.disabled ? false : i.value), l = () => {
        if (e.disabled) return true;
        const { getDisabled: U } = e;
        return !!(U == null ? void 0 : U());
      }, s = () => l() ? false : i.value, c = ha(e, [
        "arrow",
        "showArrow"
      ]), u = D(() => e.overlap ? false : c.value);
      let d = null;
      const h = L(null), p = L(null), f = Ct(() => e.x !== void 0 && e.y !== void 0);
      function m(U) {
        const { "onUpdate:show": ee, onUpdateShow: ne, onShow: ae, onHide: ye } = e;
        o.value = U, ee && Te(ee, U), ne && Te(ne, U), U && ae && Te(ae, true), U && ye && Te(ye, false);
      }
      function b() {
        d && d.syncPosition();
      }
      function v() {
        const { value: U } = h;
        U && (window.clearTimeout(U), h.value = null);
      }
      function y() {
        const { value: U } = p;
        U && (window.clearTimeout(U), p.value = null);
      }
      function w() {
        const U = l();
        if (e.trigger === "focus" && !U) {
          if (s()) return;
          m(true);
        }
      }
      function x() {
        const U = l();
        if (e.trigger === "focus" && !U) {
          if (!s()) return;
          m(false);
        }
      }
      function S() {
        const U = l();
        if (e.trigger === "hover" && !U) {
          if (y(), h.value !== null || s()) return;
          const ee = () => {
            m(true), h.value = null;
          }, { delay: ne } = e;
          ne === 0 ? ee() : h.value = window.setTimeout(ee, ne);
        }
      }
      function _() {
        const U = l();
        if (e.trigger === "hover" && !U) {
          if (v(), p.value !== null || !s()) return;
          const ee = () => {
            m(false), p.value = null;
          }, { duration: ne } = e;
          ne === 0 ? ee() : p.value = window.setTimeout(ee, ne);
        }
      }
      function C() {
        _();
      }
      function k(U) {
        var ee;
        s() && (e.trigger === "click" && (v(), y(), m(false)), (ee = e.onClickoutside) === null || ee === void 0 || ee.call(e, U));
      }
      function R() {
        if (e.trigger === "click" && !l()) {
          v(), y();
          const U = !s();
          m(U);
        }
      }
      function P(U) {
        e.internalTrapFocus && U.key === "Escape" && (v(), y(), m(false));
      }
      function B(U) {
        o.value = U;
      }
      function E() {
        var U;
        return (U = n.value) === null || U === void 0 ? void 0 : U.targetRef;
      }
      function M(U) {
        d = U;
      }
      return ft("NPopover", {
        getTriggerElement: E,
        handleKeydown: P,
        handleMouseEnter: S,
        handleMouseLeave: _,
        handleClickOutside: k,
        handleMouseMoveOutside: C,
        setBodyInstance: M,
        positionManuallyRef: f,
        isMountedRef: t,
        zIndexRef: $e(e, "zIndex"),
        extraClassRef: $e(e, "internalExtraClass"),
        internalRenderBodyRef: $e(e, "internalRenderBody")
      }), fn(() => {
        i.value && l() && m(false);
      }), {
        binderInstRef: n,
        positionManually: f,
        mergedShowConsideringDisabledProp: a,
        uncontrolledShow: o,
        mergedShowArrow: u,
        getMergedShow: s,
        setShow: B,
        handleClick: R,
        handleMouseEnter: S,
        handleMouseLeave: _,
        handleFocus: w,
        handleBlur: x,
        syncPosition: b
      };
    },
    render() {
      var e;
      const { positionManually: t, $slots: n } = this;
      let r, o = false;
      if (!t && (r = $T(n, "trigger"), r)) {
        r = zr(r), r = r.type === Cl ? g("span", [
          r
        ]) : r;
        const i = {
          onClick: this.handleClick,
          onMouseenter: this.handleMouseEnter,
          onMouseleave: this.handleMouseLeave,
          onFocus: this.handleFocus,
          onBlur: this.handleBlur
        };
        if (!((e = r.type) === null || e === void 0) && e.__popover__) o = true, r.props || (r.props = {
          internalSyncTargetWithParent: true,
          internalInheritedEventHandlers: []
        }), r.props.internalSyncTargetWithParent = true, r.props.internalInheritedEventHandlers ? r.props.internalInheritedEventHandlers = [
          i,
          ...r.props.internalInheritedEventHandlers
        ] : r.props.internalInheritedEventHandlers = [
          i
        ];
        else {
          const { internalInheritedEventHandlers: a } = this, l = [
            i,
            ...a
          ], s = {
            onBlur: (c) => {
              l.forEach((u) => {
                u.onBlur(c);
              });
            },
            onFocus: (c) => {
              l.forEach((u) => {
                u.onFocus(c);
              });
            },
            onClick: (c) => {
              l.forEach((u) => {
                u.onClick(c);
              });
            },
            onMouseenter: (c) => {
              l.forEach((u) => {
                u.onMouseenter(c);
              });
            },
            onMouseleave: (c) => {
              l.forEach((u) => {
                u.onMouseleave(c);
              });
            }
          };
          s8(r, a ? "nested" : t ? "manual" : this.trigger, s);
        }
      }
      return g(nd, {
        ref: "binderInstRef",
        syncTarget: !o,
        syncTargetWithParent: this.internalSyncTargetWithParent
      }, {
        default: () => {
          this.mergedShowConsideringDisabledProp;
          const i = this.getMergedShow();
          return [
            this.internalTrapFocus && i ? $r(g("div", {
              style: {
                position: "fixed",
                top: 0,
                right: 0,
                bottom: 0,
                left: 0
              }
            }), [
              [
                od,
                {
                  enabled: i,
                  zIndex: this.zIndex
                }
              ]
            ]) : null,
            t ? null : g(rd, null, {
              default: () => r
            }),
            g(i8, cr(this.$props, a8, Object.assign(Object.assign({}, this.$attrs), {
              showArrow: this.mergedShowArrow,
              show: i
            })), {
              default: () => {
                var a, l;
                return (l = (a = this.$slots).default) === null || l === void 0 ? void 0 : l.call(a);
              },
              header: () => {
                var a, l;
                return (l = (a = this.$slots).header) === null || l === void 0 ? void 0 : l.call(a);
              },
              footer: () => {
                var a, l;
                return (l = (a = this.$slots).footer) === null || l === void 0 ? void 0 : l.call(a);
              }
            })
          ];
        }
      });
    }
  }), hC = {
    closeIconSizeTiny: "12px",
    closeIconSizeSmall: "12px",
    closeIconSizeMedium: "14px",
    closeIconSizeLarge: "14px",
    closeSizeTiny: "16px",
    closeSizeSmall: "16px",
    closeSizeMedium: "18px",
    closeSizeLarge: "18px",
    padding: "0 7px",
    closeMargin: "0 0 0 4px"
  }, pC = {
    name: "Tag",
    common: Ue,
    self(e) {
      const { textColor2: t, primaryColorHover: n, primaryColorPressed: r, primaryColor: o, infoColor: i, successColor: a, warningColor: l, errorColor: s, baseColor: c, borderColor: u, tagColor: d, opacityDisabled: h, closeIconColor: p, closeIconColorHover: f, closeIconColorPressed: m, closeColorHover: b, closeColorPressed: v, borderRadiusSmall: y, fontSizeMini: w, fontSizeTiny: x, fontSizeSmall: S, fontSizeMedium: _, heightMini: C, heightTiny: k, heightSmall: R, heightMedium: P, buttonColor2Hover: B, buttonColor2Pressed: E, fontWeightStrong: M } = e;
      return Object.assign(Object.assign({}, hC), {
        closeBorderRadius: y,
        heightTiny: C,
        heightSmall: k,
        heightMedium: R,
        heightLarge: P,
        borderRadius: y,
        opacityDisabled: h,
        fontSizeTiny: w,
        fontSizeSmall: x,
        fontSizeMedium: S,
        fontSizeLarge: _,
        fontWeightStrong: M,
        textColorCheckable: t,
        textColorHoverCheckable: t,
        textColorPressedCheckable: t,
        textColorChecked: c,
        colorCheckable: "#0000",
        colorHoverCheckable: B,
        colorPressedCheckable: E,
        colorChecked: o,
        colorCheckedHover: n,
        colorCheckedPressed: r,
        border: `1px solid ${u}`,
        textColor: t,
        color: d,
        colorBordered: "#0000",
        closeIconColor: p,
        closeIconColorHover: f,
        closeIconColorPressed: m,
        closeColorHover: b,
        closeColorPressed: v,
        borderPrimary: `1px solid ${Oe(o, {
          alpha: 0.3
        })}`,
        textColorPrimary: o,
        colorPrimary: Oe(o, {
          alpha: 0.16
        }),
        colorBorderedPrimary: "#0000",
        closeIconColorPrimary: wn(o, {
          lightness: 0.7
        }),
        closeIconColorHoverPrimary: wn(o, {
          lightness: 0.7
        }),
        closeIconColorPressedPrimary: wn(o, {
          lightness: 0.7
        }),
        closeColorHoverPrimary: Oe(o, {
          alpha: 0.16
        }),
        closeColorPressedPrimary: Oe(o, {
          alpha: 0.12
        }),
        borderInfo: `1px solid ${Oe(i, {
          alpha: 0.3
        })}`,
        textColorInfo: i,
        colorInfo: Oe(i, {
          alpha: 0.16
        }),
        colorBorderedInfo: "#0000",
        closeIconColorInfo: wn(i, {
          alpha: 0.7
        }),
        closeIconColorHoverInfo: wn(i, {
          alpha: 0.7
        }),
        closeIconColorPressedInfo: wn(i, {
          alpha: 0.7
        }),
        closeColorHoverInfo: Oe(i, {
          alpha: 0.16
        }),
        closeColorPressedInfo: Oe(i, {
          alpha: 0.12
        }),
        borderSuccess: `1px solid ${Oe(a, {
          alpha: 0.3
        })}`,
        textColorSuccess: a,
        colorSuccess: Oe(a, {
          alpha: 0.16
        }),
        colorBorderedSuccess: "#0000",
        closeIconColorSuccess: wn(a, {
          alpha: 0.7
        }),
        closeIconColorHoverSuccess: wn(a, {
          alpha: 0.7
        }),
        closeIconColorPressedSuccess: wn(a, {
          alpha: 0.7
        }),
        closeColorHoverSuccess: Oe(a, {
          alpha: 0.16
        }),
        closeColorPressedSuccess: Oe(a, {
          alpha: 0.12
        }),
        borderWarning: `1px solid ${Oe(l, {
          alpha: 0.3
        })}`,
        textColorWarning: l,
        colorWarning: Oe(l, {
          alpha: 0.16
        }),
        colorBorderedWarning: "#0000",
        closeIconColorWarning: wn(l, {
          alpha: 0.7
        }),
        closeIconColorHoverWarning: wn(l, {
          alpha: 0.7
        }),
        closeIconColorPressedWarning: wn(l, {
          alpha: 0.7
        }),
        closeColorHoverWarning: Oe(l, {
          alpha: 0.16
        }),
        closeColorPressedWarning: Oe(l, {
          alpha: 0.11
        }),
        borderError: `1px solid ${Oe(s, {
          alpha: 0.3
        })}`,
        textColorError: s,
        colorError: Oe(s, {
          alpha: 0.16
        }),
        colorBorderedError: "#0000",
        closeIconColorError: wn(s, {
          alpha: 0.7
        }),
        closeIconColorHoverError: wn(s, {
          alpha: 0.7
        }),
        closeIconColorPressedError: wn(s, {
          alpha: 0.7
        }),
        closeColorHoverError: Oe(s, {
          alpha: 0.16
        }),
        closeColorPressedError: Oe(s, {
          alpha: 0.12
        })
      });
    }
  };
  function u8(e) {
    const { textColor2: t, primaryColorHover: n, primaryColorPressed: r, primaryColor: o, infoColor: i, successColor: a, warningColor: l, errorColor: s, baseColor: c, borderColor: u, opacityDisabled: d, tagColor: h, closeIconColor: p, closeIconColorHover: f, closeIconColorPressed: m, borderRadiusSmall: b, fontSizeMini: v, fontSizeTiny: y, fontSizeSmall: w, fontSizeMedium: x, heightMini: S, heightTiny: _, heightSmall: C, heightMedium: k, closeColorHover: R, closeColorPressed: P, buttonColor2Hover: B, buttonColor2Pressed: E, fontWeightStrong: M } = e;
    return Object.assign(Object.assign({}, hC), {
      closeBorderRadius: b,
      heightTiny: S,
      heightSmall: _,
      heightMedium: C,
      heightLarge: k,
      borderRadius: b,
      opacityDisabled: d,
      fontSizeTiny: v,
      fontSizeSmall: y,
      fontSizeMedium: w,
      fontSizeLarge: x,
      fontWeightStrong: M,
      textColorCheckable: t,
      textColorHoverCheckable: t,
      textColorPressedCheckable: t,
      textColorChecked: c,
      colorCheckable: "#0000",
      colorHoverCheckable: B,
      colorPressedCheckable: E,
      colorChecked: o,
      colorCheckedHover: n,
      colorCheckedPressed: r,
      border: `1px solid ${u}`,
      textColor: t,
      color: h,
      colorBordered: "rgb(250, 250, 252)",
      closeIconColor: p,
      closeIconColorHover: f,
      closeIconColorPressed: m,
      closeColorHover: R,
      closeColorPressed: P,
      borderPrimary: `1px solid ${Oe(o, {
        alpha: 0.3
      })}`,
      textColorPrimary: o,
      colorPrimary: Oe(o, {
        alpha: 0.12
      }),
      colorBorderedPrimary: Oe(o, {
        alpha: 0.1
      }),
      closeIconColorPrimary: o,
      closeIconColorHoverPrimary: o,
      closeIconColorPressedPrimary: o,
      closeColorHoverPrimary: Oe(o, {
        alpha: 0.12
      }),
      closeColorPressedPrimary: Oe(o, {
        alpha: 0.18
      }),
      borderInfo: `1px solid ${Oe(i, {
        alpha: 0.3
      })}`,
      textColorInfo: i,
      colorInfo: Oe(i, {
        alpha: 0.12
      }),
      colorBorderedInfo: Oe(i, {
        alpha: 0.1
      }),
      closeIconColorInfo: i,
      closeIconColorHoverInfo: i,
      closeIconColorPressedInfo: i,
      closeColorHoverInfo: Oe(i, {
        alpha: 0.12
      }),
      closeColorPressedInfo: Oe(i, {
        alpha: 0.18
      }),
      borderSuccess: `1px solid ${Oe(a, {
        alpha: 0.3
      })}`,
      textColorSuccess: a,
      colorSuccess: Oe(a, {
        alpha: 0.12
      }),
      colorBorderedSuccess: Oe(a, {
        alpha: 0.1
      }),
      closeIconColorSuccess: a,
      closeIconColorHoverSuccess: a,
      closeIconColorPressedSuccess: a,
      closeColorHoverSuccess: Oe(a, {
        alpha: 0.12
      }),
      closeColorPressedSuccess: Oe(a, {
        alpha: 0.18
      }),
      borderWarning: `1px solid ${Oe(l, {
        alpha: 0.35
      })}`,
      textColorWarning: l,
      colorWarning: Oe(l, {
        alpha: 0.15
      }),
      colorBorderedWarning: Oe(l, {
        alpha: 0.12
      }),
      closeIconColorWarning: l,
      closeIconColorHoverWarning: l,
      closeIconColorPressedWarning: l,
      closeColorHoverWarning: Oe(l, {
        alpha: 0.12
      }),
      closeColorPressedWarning: Oe(l, {
        alpha: 0.18
      }),
      borderError: `1px solid ${Oe(s, {
        alpha: 0.23
      })}`,
      textColorError: s,
      colorError: Oe(s, {
        alpha: 0.1
      }),
      colorBorderedError: Oe(s, {
        alpha: 0.08
      }),
      closeIconColorError: s,
      closeIconColorHoverError: s,
      closeIconColorPressedError: s,
      closeColorHoverError: Oe(s, {
        alpha: 0.12
      }),
      closeColorPressedError: Oe(s, {
        alpha: 0.18
      })
    });
  }
  let d8, f8, h8, p8, mC, gC, vC, bm;
  d8 = {
    common: mt,
    self: u8
  };
  f8 = {
    color: Object,
    type: {
      type: String,
      default: "default"
    },
    round: Boolean,
    size: {
      type: String,
      default: "medium"
    },
    closable: Boolean,
    disabled: {
      type: Boolean,
      default: void 0
    }
  };
  h8 = A("tag", `
 --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
 white-space: nowrap;
 position: relative;
 box-sizing: border-box;
 cursor: default;
 display: inline-flex;
 align-items: center;
 flex-wrap: nowrap;
 padding: var(--n-padding);
 border-radius: var(--n-border-radius);
 color: var(--n-text-color);
 background-color: var(--n-color);
 transition: 
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 line-height: 1;
 height: var(--n-height);
 font-size: var(--n-font-size);
`, [
    G("strong", `
 font-weight: var(--n-font-weight-strong);
 `),
    V("border", `
 pointer-events: none;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
 border: var(--n-border);
 transition: border-color .3s var(--n-bezier);
 `),
    V("icon", `
 display: flex;
 margin: 0 4px 0 0;
 color: var(--n-text-color);
 transition: color .3s var(--n-bezier);
 font-size: var(--n-avatar-size-override);
 `),
    V("avatar", `
 display: flex;
 margin: 0 6px 0 0;
 `),
    V("close", `
 margin: var(--n-close-margin);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `),
    G("round", `
 padding: 0 calc(var(--n-height) / 3);
 border-radius: calc(var(--n-height) / 2);
 `, [
      V("icon", `
 margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
 `),
      V("avatar", `
 margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
 `),
      G("closable", `
 padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
 `)
    ]),
    G("icon, avatar", [
      G("round", `
 padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
 `)
    ]),
    G("disabled", `
 cursor: not-allowed !important;
 opacity: var(--n-opacity-disabled);
 `),
    G("checkable", `
 cursor: pointer;
 box-shadow: none;
 color: var(--n-text-color-checkable);
 background-color: var(--n-color-checkable);
 `, [
      At("disabled", [
        W("&:hover", "background-color: var(--n-color-hover-checkable);", [
          At("checked", "color: var(--n-text-color-hover-checkable);")
        ]),
        W("&:active", "background-color: var(--n-color-pressed-checkable);", [
          At("checked", "color: var(--n-text-color-pressed-checkable);")
        ])
      ]),
      G("checked", `
 color: var(--n-text-color-checked);
 background-color: var(--n-color-checked);
 `, [
        At("disabled", [
          W("&:hover", "background-color: var(--n-color-checked-hover);"),
          W("&:active", "background-color: var(--n-color-checked-pressed);")
        ])
      ])
    ])
  ]);
  p8 = Object.assign(Object.assign(Object.assign({}, Fe.props), f8), {
    bordered: {
      type: Boolean,
      default: void 0
    },
    checked: Boolean,
    checkable: Boolean,
    strong: Boolean,
    triggerClickOnClose: Boolean,
    onClose: [
      Array,
      Function
    ],
    onMouseenter: Function,
    onMouseleave: Function,
    "onUpdate:checked": Function,
    onUpdateChecked: Function,
    internalCloseFocusable: {
      type: Boolean,
      default: true
    },
    internalCloseIsButtonTag: {
      type: Boolean,
      default: true
    },
    onCheckedChange: Function
  });
  mC = "n-tag";
  ki = pe({
    name: "Tag",
    props: p8,
    slots: Object,
    setup(e) {
      const t = L(null), { mergedBorderedRef: n, mergedClsPrefixRef: r, inlineThemeDisabled: o, mergedRtlRef: i } = at(e), a = Fe("Tag", "-tag", h8, d8, e, r);
      ft(mC, {
        roundRef: $e(e, "round")
      });
      function l() {
        if (!e.disabled && e.checkable) {
          const { checked: p, onCheckedChange: f, onUpdateChecked: m, "onUpdate:checked": b } = e;
          m && m(!p), b && b(!p), f && f(!p);
        }
      }
      function s(p) {
        if (e.triggerClickOnClose || p.stopPropagation(), !e.disabled) {
          const { onClose: f } = e;
          f && Te(f, p);
        }
      }
      const c = {
        setTextContent(p) {
          const { value: f } = t;
          f && (f.textContent = p);
        }
      }, u = rn("Tag", i, r), d = D(() => {
        const { type: p, size: f, color: { color: m, textColor: b } = {} } = e, { common: { cubicBezierEaseInOut: v }, self: { padding: y, closeMargin: w, borderRadius: x, opacityDisabled: S, textColorCheckable: _, textColorHoverCheckable: C, textColorPressedCheckable: k, textColorChecked: R, colorCheckable: P, colorHoverCheckable: B, colorPressedCheckable: E, colorChecked: M, colorCheckedHover: z, colorCheckedPressed: U, closeBorderRadius: ee, fontWeightStrong: ne, [Se("colorBordered", p)]: ae, [Se("closeSize", f)]: ye, [Se("closeIconSize", f)]: xe, [Se("fontSize", f)]: re, [Se("height", f)]: Y, [Se("color", p)]: H, [Se("textColor", p)]: oe, [Se("border", p)]: ce, [Se("closeIconColor", p)]: be, [Se("closeIconColorHover", p)]: ie, [Se("closeIconColorPressed", p)]: fe, [Se("closeColorHover", p)]: F, [Se("closeColorPressed", p)]: se } } = a.value, ze = En(w);
        return {
          "--n-font-weight-strong": ne,
          "--n-avatar-size-override": `calc(${Y} - 8px)`,
          "--n-bezier": v,
          "--n-border-radius": x,
          "--n-border": ce,
          "--n-close-icon-size": xe,
          "--n-close-color-pressed": se,
          "--n-close-color-hover": F,
          "--n-close-border-radius": ee,
          "--n-close-icon-color": be,
          "--n-close-icon-color-hover": ie,
          "--n-close-icon-color-pressed": fe,
          "--n-close-icon-color-disabled": be,
          "--n-close-margin-top": ze.top,
          "--n-close-margin-right": ze.right,
          "--n-close-margin-bottom": ze.bottom,
          "--n-close-margin-left": ze.left,
          "--n-close-size": ye,
          "--n-color": m || (n.value ? ae : H),
          "--n-color-checkable": P,
          "--n-color-checked": M,
          "--n-color-checked-hover": z,
          "--n-color-checked-pressed": U,
          "--n-color-hover-checkable": B,
          "--n-color-pressed-checkable": E,
          "--n-font-size": re,
          "--n-height": Y,
          "--n-opacity-disabled": S,
          "--n-padding": y,
          "--n-text-color": b || oe,
          "--n-text-color-checkable": _,
          "--n-text-color-checked": R,
          "--n-text-color-hover-checkable": C,
          "--n-text-color-pressed-checkable": k
        };
      }), h = o ? xt("tag", D(() => {
        let p = "";
        const { type: f, size: m, color: { color: b, textColor: v } = {} } = e;
        return p += f[0], p += m[0], b && (p += `a${dl(b)}`), v && (p += `b${dl(v)}`), n.value && (p += "c"), p;
      }), d, e) : void 0;
      return Object.assign(Object.assign({}, c), {
        rtlEnabled: u,
        mergedClsPrefix: r,
        contentRef: t,
        mergedBordered: n,
        handleClick: l,
        handleCloseClick: s,
        cssVars: o ? void 0 : d,
        themeClass: h == null ? void 0 : h.themeClass,
        onRender: h == null ? void 0 : h.onRender
      });
    },
    render() {
      var e, t;
      const { mergedClsPrefix: n, rtlEnabled: r, closable: o, color: { borderColor: i } = {}, round: a, onRender: l, $slots: s } = this;
      l == null ? void 0 : l();
      const c = Pt(s.avatar, (d) => d && g("div", {
        class: `${n}-tag__avatar`
      }, d)), u = Pt(s.icon, (d) => d && g("div", {
        class: `${n}-tag__icon`
      }, d));
      return g("div", {
        class: [
          `${n}-tag`,
          this.themeClass,
          {
            [`${n}-tag--rtl`]: r,
            [`${n}-tag--strong`]: this.strong,
            [`${n}-tag--disabled`]: this.disabled,
            [`${n}-tag--checkable`]: this.checkable,
            [`${n}-tag--checked`]: this.checkable && this.checked,
            [`${n}-tag--round`]: a,
            [`${n}-tag--avatar`]: c,
            [`${n}-tag--icon`]: u,
            [`${n}-tag--closable`]: o
          }
        ],
        style: this.cssVars,
        onClick: this.handleClick,
        onMouseenter: this.onMouseenter,
        onMouseleave: this.onMouseleave
      }, u || c, g("span", {
        class: `${n}-tag__content`,
        ref: "contentRef"
      }, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e)), !this.checkable && o ? g(Oi, {
        clsPrefix: n,
        class: `${n}-tag__close`,
        disabled: this.disabled,
        onClick: this.handleCloseClick,
        focusable: this.internalCloseFocusable,
        round: a,
        isButtonTag: this.internalCloseIsButtonTag,
        absolute: true
      }) : null, !this.checkable && this.mergedBordered ? g("div", {
        class: `${n}-tag__border`,
        style: {
          borderColor: i
        }
      }) : null);
    }
  });
  gC = pe({
    name: "InternalSelectionSuffix",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      showArrow: {
        type: Boolean,
        default: void 0
      },
      showClear: {
        type: Boolean,
        default: void 0
      },
      loading: {
        type: Boolean,
        default: false
      },
      onClear: Function
    },
    setup(e, { slots: t }) {
      return () => {
        const { clsPrefix: n } = e;
        return g(Ii, {
          clsPrefix: n,
          class: `${n}-base-suffix`,
          strokeWidth: 24,
          scale: 0.85,
          show: e.loading
        }, {
          default: () => e.showArrow ? g(Nh, {
            clsPrefix: n,
            show: e.showClear,
            onClear: e.onClear
          }, {
            placeholder: () => g(Jt, {
              clsPrefix: n,
              class: `${n}-base-suffix__arrow`
            }, {
              default: () => In(t.default, () => [
                g(eC, null)
              ])
            })
          }) : null
        });
      };
    }
  });
  vC = {
    paddingSingle: "0 26px 0 12px",
    paddingMultiple: "3px 26px 0 12px",
    clearSize: "16px",
    arrowSize: "16px"
  };
  bm = {
    name: "InternalSelection",
    common: Ue,
    peers: {
      Popover: Ea
    },
    self(e) {
      const { borderRadius: t, textColor2: n, textColorDisabled: r, inputColor: o, inputColorDisabled: i, primaryColor: a, primaryColorHover: l, warningColor: s, warningColorHover: c, errorColor: u, errorColorHover: d, iconColor: h, iconColorDisabled: p, clearColor: f, clearColorHover: m, clearColorPressed: b, placeholderColor: v, placeholderColorDisabled: y, fontSizeTiny: w, fontSizeSmall: x, fontSizeMedium: S, fontSizeLarge: _, heightTiny: C, heightSmall: k, heightMedium: R, heightLarge: P, fontWeight: B } = e;
      return Object.assign(Object.assign({}, vC), {
        fontWeight: B,
        fontSizeTiny: w,
        fontSizeSmall: x,
        fontSizeMedium: S,
        fontSizeLarge: _,
        heightTiny: C,
        heightSmall: k,
        heightMedium: R,
        heightLarge: P,
        borderRadius: t,
        textColor: n,
        textColorDisabled: r,
        placeholderColor: v,
        placeholderColorDisabled: y,
        color: o,
        colorDisabled: i,
        colorActive: Oe(a, {
          alpha: 0.1
        }),
        border: "1px solid #0000",
        borderHover: `1px solid ${l}`,
        borderActive: `1px solid ${a}`,
        borderFocus: `1px solid ${l}`,
        boxShadowHover: "none",
        boxShadowActive: `0 0 8px 0 ${Oe(a, {
          alpha: 0.4
        })}`,
        boxShadowFocus: `0 0 8px 0 ${Oe(a, {
          alpha: 0.4
        })}`,
        caretColor: a,
        arrowColor: h,
        arrowColorDisabled: p,
        loadingColor: a,
        borderWarning: `1px solid ${s}`,
        borderHoverWarning: `1px solid ${c}`,
        borderActiveWarning: `1px solid ${s}`,
        borderFocusWarning: `1px solid ${c}`,
        boxShadowHoverWarning: "none",
        boxShadowActiveWarning: `0 0 8px 0 ${Oe(s, {
          alpha: 0.4
        })}`,
        boxShadowFocusWarning: `0 0 8px 0 ${Oe(s, {
          alpha: 0.4
        })}`,
        colorActiveWarning: Oe(s, {
          alpha: 0.1
        }),
        caretColorWarning: s,
        borderError: `1px solid ${u}`,
        borderHoverError: `1px solid ${d}`,
        borderActiveError: `1px solid ${u}`,
        borderFocusError: `1px solid ${d}`,
        boxShadowHoverError: "none",
        boxShadowActiveError: `0 0 8px 0 ${Oe(u, {
          alpha: 0.4
        })}`,
        boxShadowFocusError: `0 0 8px 0 ${Oe(u, {
          alpha: 0.4
        })}`,
        colorActiveError: Oe(u, {
          alpha: 0.1
        }),
        caretColorError: u,
        clearColor: f,
        clearColorHover: m,
        clearColorPressed: b
      });
    }
  };
  function m8(e) {
    const { borderRadius: t, textColor2: n, textColorDisabled: r, inputColor: o, inputColorDisabled: i, primaryColor: a, primaryColorHover: l, warningColor: s, warningColorHover: c, errorColor: u, errorColorHover: d, borderColor: h, iconColor: p, iconColorDisabled: f, clearColor: m, clearColorHover: b, clearColorPressed: v, placeholderColor: y, placeholderColorDisabled: w, fontSizeTiny: x, fontSizeSmall: S, fontSizeMedium: _, fontSizeLarge: C, heightTiny: k, heightSmall: R, heightMedium: P, heightLarge: B, fontWeight: E } = e;
    return Object.assign(Object.assign({}, vC), {
      fontSizeTiny: x,
      fontSizeSmall: S,
      fontSizeMedium: _,
      fontSizeLarge: C,
      heightTiny: k,
      heightSmall: R,
      heightMedium: P,
      heightLarge: B,
      borderRadius: t,
      fontWeight: E,
      textColor: n,
      textColorDisabled: r,
      placeholderColor: y,
      placeholderColorDisabled: w,
      color: o,
      colorDisabled: i,
      colorActive: o,
      border: `1px solid ${h}`,
      borderHover: `1px solid ${l}`,
      borderActive: `1px solid ${a}`,
      borderFocus: `1px solid ${l}`,
      boxShadowHover: "none",
      boxShadowActive: `0 0 0 2px ${Oe(a, {
        alpha: 0.2
      })}`,
      boxShadowFocus: `0 0 0 2px ${Oe(a, {
        alpha: 0.2
      })}`,
      caretColor: a,
      arrowColor: p,
      arrowColorDisabled: f,
      loadingColor: a,
      borderWarning: `1px solid ${s}`,
      borderHoverWarning: `1px solid ${c}`,
      borderActiveWarning: `1px solid ${s}`,
      borderFocusWarning: `1px solid ${c}`,
      boxShadowHoverWarning: "none",
      boxShadowActiveWarning: `0 0 0 2px ${Oe(s, {
        alpha: 0.2
      })}`,
      boxShadowFocusWarning: `0 0 0 2px ${Oe(s, {
        alpha: 0.2
      })}`,
      colorActiveWarning: o,
      caretColorWarning: s,
      borderError: `1px solid ${u}`,
      borderHoverError: `1px solid ${d}`,
      borderActiveError: `1px solid ${u}`,
      borderFocusError: `1px solid ${d}`,
      boxShadowHoverError: "none",
      boxShadowActiveError: `0 0 0 2px ${Oe(u, {
        alpha: 0.2
      })}`,
      boxShadowFocusError: `0 0 0 2px ${Oe(u, {
        alpha: 0.2
      })}`,
      colorActiveError: o,
      caretColorError: u,
      clearColor: m,
      clearColorHover: b,
      clearColorPressed: v
    });
  }
  const bC = {
    name: "InternalSelection",
    common: mt,
    peers: {
      Popover: Aa
    },
    self: m8
  }, g8 = W([
    A("base-selection", `
 --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
 --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
 position: relative;
 z-index: auto;
 box-shadow: none;
 width: 100%;
 max-width: 100%;
 display: inline-block;
 vertical-align: bottom;
 border-radius: var(--n-border-radius);
 min-height: var(--n-height);
 line-height: 1.5;
 font-size: var(--n-font-size);
 `, [
      A("base-loading", `
 color: var(--n-loading-color);
 `),
      A("base-selection-tags", "min-height: var(--n-height);"),
      V("border, state-border", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 pointer-events: none;
 border: var(--n-border);
 border-radius: inherit;
 transition:
 box-shadow .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `),
      V("state-border", `
 z-index: 1;
 border-color: #0000;
 `),
      A("base-suffix", `
 cursor: pointer;
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 right: 10px;
 `, [
        V("arrow", `
 font-size: var(--n-arrow-size);
 color: var(--n-arrow-color);
 transition: color .3s var(--n-bezier);
 `)
      ]),
      A("base-selection-overlay", `
 display: flex;
 align-items: center;
 white-space: nowrap;
 pointer-events: none;
 position: absolute;
 top: 0;
 right: 0;
 bottom: 0;
 left: 0;
 padding: var(--n-padding-single);
 transition: color .3s var(--n-bezier);
 `, [
        V("wrapper", `
 flex-basis: 0;
 flex-grow: 1;
 overflow: hidden;
 text-overflow: ellipsis;
 `)
      ]),
      A("base-selection-placeholder", `
 color: var(--n-placeholder-color);
 `, [
        V("inner", `
 max-width: 100%;
 overflow: hidden;
 `)
      ]),
      A("base-selection-tags", `
 cursor: pointer;
 outline: none;
 box-sizing: border-box;
 position: relative;
 z-index: auto;
 display: flex;
 padding: var(--n-padding-multiple);
 flex-wrap: wrap;
 align-items: center;
 width: 100%;
 vertical-align: bottom;
 background-color: var(--n-color);
 border-radius: inherit;
 transition:
 color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 `),
      A("base-selection-label", `
 height: var(--n-height);
 display: inline-flex;
 width: 100%;
 vertical-align: bottom;
 cursor: pointer;
 outline: none;
 z-index: auto;
 box-sizing: border-box;
 position: relative;
 transition:
 color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 border-radius: inherit;
 background-color: var(--n-color);
 align-items: center;
 `, [
        A("base-selection-input", `
 font-size: inherit;
 line-height: inherit;
 outline: none;
 cursor: pointer;
 box-sizing: border-box;
 border:none;
 width: 100%;
 padding: var(--n-padding-single);
 background-color: #0000;
 color: var(--n-text-color);
 transition: color .3s var(--n-bezier);
 caret-color: var(--n-caret-color);
 `, [
          V("content", `
 text-overflow: ellipsis;
 overflow: hidden;
 white-space: nowrap; 
 `)
        ]),
        V("render-label", `
 color: var(--n-text-color);
 `)
      ]),
      At("disabled", [
        W("&:hover", [
          V("state-border", `
 box-shadow: var(--n-box-shadow-hover);
 border: var(--n-border-hover);
 `)
        ]),
        G("focus", [
          V("state-border", `
 box-shadow: var(--n-box-shadow-focus);
 border: var(--n-border-focus);
 `)
        ]),
        G("active", [
          V("state-border", `
 box-shadow: var(--n-box-shadow-active);
 border: var(--n-border-active);
 `),
          A("base-selection-label", "background-color: var(--n-color-active);"),
          A("base-selection-tags", "background-color: var(--n-color-active);")
        ])
      ]),
      G("disabled", "cursor: not-allowed;", [
        V("arrow", `
 color: var(--n-arrow-color-disabled);
 `),
        A("base-selection-label", `
 cursor: not-allowed;
 background-color: var(--n-color-disabled);
 `, [
          A("base-selection-input", `
 cursor: not-allowed;
 color: var(--n-text-color-disabled);
 `),
          V("render-label", `
 color: var(--n-text-color-disabled);
 `)
        ]),
        A("base-selection-tags", `
 cursor: not-allowed;
 background-color: var(--n-color-disabled);
 `),
        A("base-selection-placeholder", `
 cursor: not-allowed;
 color: var(--n-placeholder-color-disabled);
 `)
      ]),
      A("base-selection-input-tag", `
 height: calc(var(--n-height) - 6px);
 line-height: calc(var(--n-height) - 6px);
 outline: none;
 display: none;
 position: relative;
 margin-bottom: 3px;
 max-width: 100%;
 vertical-align: bottom;
 `, [
        V("input", `
 font-size: inherit;
 font-family: inherit;
 min-width: 1px;
 padding: 0;
 background-color: #0000;
 outline: none;
 border: none;
 max-width: 100%;
 overflow: hidden;
 width: 1em;
 line-height: inherit;
 cursor: pointer;
 color: var(--n-text-color);
 caret-color: var(--n-caret-color);
 `),
        V("mirror", `
 position: absolute;
 left: 0;
 top: 0;
 white-space: pre;
 visibility: hidden;
 user-select: none;
 -webkit-user-select: none;
 opacity: 0;
 `)
      ]),
      [
        "warning",
        "error"
      ].map((e) => G(`${e}-status`, [
        V("state-border", `border: var(--n-border-${e});`),
        At("disabled", [
          W("&:hover", [
            V("state-border", `
 box-shadow: var(--n-box-shadow-hover-${e});
 border: var(--n-border-hover-${e});
 `)
          ]),
          G("active", [
            V("state-border", `
 box-shadow: var(--n-box-shadow-active-${e});
 border: var(--n-border-active-${e});
 `),
            A("base-selection-label", `background-color: var(--n-color-active-${e});`),
            A("base-selection-tags", `background-color: var(--n-color-active-${e});`)
          ]),
          G("focus", [
            V("state-border", `
 box-shadow: var(--n-box-shadow-focus-${e});
 border: var(--n-border-focus-${e});
 `)
          ])
        ])
      ]))
    ]),
    A("base-selection-popover", `
 margin-bottom: -3px;
 display: flex;
 flex-wrap: wrap;
 margin-right: -8px;
 `),
    A("base-selection-tag-wrapper", `
 max-width: 100%;
 display: inline-flex;
 padding: 0 7px 3px 0;
 `, [
      W("&:last-child", "padding-right: 0;"),
      A("tag", `
 font-size: 14px;
 max-width: 100%;
 `, [
        V("content", `
 line-height: 1.25;
 text-overflow: ellipsis;
 overflow: hidden;
 `)
      ])
    ])
  ]), v8 = pe({
    name: "InternalSelection",
    props: Object.assign(Object.assign({}, Fe.props), {
      clsPrefix: {
        type: String,
        required: true
      },
      bordered: {
        type: Boolean,
        default: void 0
      },
      active: Boolean,
      pattern: {
        type: String,
        default: ""
      },
      placeholder: String,
      selectedOption: {
        type: Object,
        default: null
      },
      selectedOptions: {
        type: Array,
        default: null
      },
      labelField: {
        type: String,
        default: "label"
      },
      valueField: {
        type: String,
        default: "value"
      },
      multiple: Boolean,
      filterable: Boolean,
      clearable: Boolean,
      disabled: Boolean,
      size: {
        type: String,
        default: "medium"
      },
      loading: Boolean,
      autofocus: Boolean,
      showArrow: {
        type: Boolean,
        default: true
      },
      inputProps: Object,
      focused: Boolean,
      renderTag: Function,
      onKeydown: Function,
      onClick: Function,
      onBlur: Function,
      onFocus: Function,
      onDeleteOption: Function,
      maxTagCount: [
        String,
        Number
      ],
      ellipsisTagPopoverProps: Object,
      onClear: Function,
      onPatternInput: Function,
      onPatternFocus: Function,
      onPatternBlur: Function,
      renderLabel: Function,
      status: String,
      inlineThemeDisabled: Boolean,
      ignoreComposition: {
        type: Boolean,
        default: true
      },
      onResize: Function
    }),
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e), r = rn("InternalSelection", n, t), o = L(null), i = L(null), a = L(null), l = L(null), s = L(null), c = L(null), u = L(null), d = L(null), h = L(null), p = L(null), f = L(false), m = L(false), b = L(false), v = Fe("InternalSelection", "-internal-selection", g8, bC, e, $e(e, "clsPrefix")), y = D(() => e.clearable && !e.disabled && (b.value || e.active)), w = D(() => e.selectedOption ? e.renderTag ? e.renderTag({
        option: e.selectedOption,
        handleClose: () => {
        }
      }) : e.renderLabel ? e.renderLabel(e.selectedOption, true) : Xt(e.selectedOption[e.labelField], e.selectedOption, true) : e.placeholder), x = D(() => {
        const I = e.selectedOption;
        if (I) return I[e.labelField];
      }), S = D(() => e.multiple ? !!(Array.isArray(e.selectedOptions) && e.selectedOptions.length) : e.selectedOption !== null);
      function _() {
        var I;
        const { value: Z } = o;
        if (Z) {
          const { value: Ce } = i;
          Ce && (Ce.style.width = `${Z.offsetWidth}px`, e.maxTagCount !== "responsive" && ((I = h.value) === null || I === void 0 || I.sync({
            showAllItemsBeforeCalculate: false
          })));
        }
      }
      function C() {
        const { value: I } = p;
        I && (I.style.display = "none");
      }
      function k() {
        const { value: I } = p;
        I && (I.style.display = "inline-block");
      }
      lt($e(e, "active"), (I) => {
        I || C();
      }), lt($e(e, "pattern"), () => {
        e.multiple && sn(_);
      });
      function R(I) {
        const { onFocus: Z } = e;
        Z && Z(I);
      }
      function P(I) {
        const { onBlur: Z } = e;
        Z && Z(I);
      }
      function B(I) {
        const { onDeleteOption: Z } = e;
        Z && Z(I);
      }
      function E(I) {
        const { onClear: Z } = e;
        Z && Z(I);
      }
      function M(I) {
        const { onPatternInput: Z } = e;
        Z && Z(I);
      }
      function z(I) {
        var Z;
        (!I.relatedTarget || !(!((Z = a.value) === null || Z === void 0) && Z.contains(I.relatedTarget))) && R(I);
      }
      function U(I) {
        var Z;
        !((Z = a.value) === null || Z === void 0) && Z.contains(I.relatedTarget) || P(I);
      }
      function ee(I) {
        E(I);
      }
      function ne() {
        b.value = true;
      }
      function ae() {
        b.value = false;
      }
      function ye(I) {
        !e.active || !e.filterable || I.target !== i.value && I.preventDefault();
      }
      function xe(I) {
        B(I);
      }
      const re = L(false);
      function Y(I) {
        if (I.key === "Backspace" && !re.value && !e.pattern.length) {
          const { selectedOptions: Z } = e;
          (Z == null ? void 0 : Z.length) && xe(Z[Z.length - 1]);
        }
      }
      let H = null;
      function oe(I) {
        const { value: Z } = o;
        if (Z) {
          const Ce = I.target.value;
          Z.textContent = Ce, _();
        }
        e.ignoreComposition && re.value ? H = I : M(I);
      }
      function ce() {
        re.value = true;
      }
      function be() {
        re.value = false, e.ignoreComposition && M(H), H = null;
      }
      function ie(I) {
        var Z;
        m.value = true, (Z = e.onPatternFocus) === null || Z === void 0 || Z.call(e, I);
      }
      function fe(I) {
        var Z;
        m.value = false, (Z = e.onPatternBlur) === null || Z === void 0 || Z.call(e, I);
      }
      function F() {
        var I, Z;
        if (e.filterable) m.value = false, (I = c.value) === null || I === void 0 || I.blur(), (Z = i.value) === null || Z === void 0 || Z.blur();
        else if (e.multiple) {
          const { value: Ce } = l;
          Ce == null ? void 0 : Ce.blur();
        } else {
          const { value: Ce } = s;
          Ce == null ? void 0 : Ce.blur();
        }
      }
      function se() {
        var I, Z, Ce;
        e.filterable ? (m.value = false, (I = c.value) === null || I === void 0 || I.focus()) : e.multiple ? (Z = l.value) === null || Z === void 0 || Z.focus() : (Ce = s.value) === null || Ce === void 0 || Ce.focus();
      }
      function ze() {
        const { value: I } = i;
        I && (k(), I.focus());
      }
      function q() {
        const { value: I } = i;
        I && I.blur();
      }
      function J(I) {
        const { value: Z } = u;
        Z && Z.setTextContent(`+${I}`);
      }
      function le() {
        const { value: I } = d;
        return I;
      }
      function we() {
        return i.value;
      }
      let ke = null;
      function _e() {
        ke !== null && window.clearTimeout(ke);
      }
      function K() {
        e.active || (_e(), ke = window.setTimeout(() => {
          S.value && (f.value = true);
        }, 100));
      }
      function N() {
        _e();
      }
      function j(I) {
        I || (_e(), f.value = false);
      }
      lt(S, (I) => {
        I || (f.value = false);
      }), gt(() => {
        fn(() => {
          const I = c.value;
          I && (e.disabled ? I.removeAttribute("tabindex") : I.tabIndex = m.value ? -1 : 0);
        });
      }), xw(a, e.onResize);
      const { inlineThemeDisabled: X } = e, ge = D(() => {
        const { size: I } = e, { common: { cubicBezierEaseInOut: Z }, self: { fontWeight: Ce, borderRadius: De, color: qe, placeholderColor: ut, textColor: Ze, paddingSingle: rt, paddingMultiple: Ne, caretColor: bt, colorDisabled: We, textColorDisabled: Ge, placeholderColorDisabled: Q, colorActive: me, boxShadowFocus: Ee, boxShadowActive: He, boxShadowHover: Ve, border: Ke, borderFocus: Xe, borderHover: Qe, borderActive: _t, arrowColor: Mt, arrowColorDisabled: ct, loadingColor: on, colorActiveWarning: Dn, boxShadowFocusWarning: Sn, boxShadowActiveWarning: _n, boxShadowHoverWarning: $n, borderWarning: Hn, borderFocusWarning: qn, borderHoverWarning: he, borderActiveWarning: Pe, colorActiveError: ot, boxShadowFocusError: St, boxShadowActiveError: It, boxShadowHoverError: Et, borderError: zt, borderFocusError: an, borderHoverError: Gn, borderActiveError: Mr, clearColor: Lr, clearColorHover: Ho, clearColorPressed: st, clearSize: ue, arrowSize: Le, [Se("height", I)]: nt, [Se("fontSize", I)]: Vt } } = v.value, cn = En(rt), en = En(Ne);
        return {
          "--n-bezier": Z,
          "--n-border": Ke,
          "--n-border-active": _t,
          "--n-border-focus": Xe,
          "--n-border-hover": Qe,
          "--n-border-radius": De,
          "--n-box-shadow-active": He,
          "--n-box-shadow-focus": Ee,
          "--n-box-shadow-hover": Ve,
          "--n-caret-color": bt,
          "--n-color": qe,
          "--n-color-active": me,
          "--n-color-disabled": We,
          "--n-font-size": Vt,
          "--n-height": nt,
          "--n-padding-single-top": cn.top,
          "--n-padding-multiple-top": en.top,
          "--n-padding-single-right": cn.right,
          "--n-padding-multiple-right": en.right,
          "--n-padding-single-left": cn.left,
          "--n-padding-multiple-left": en.left,
          "--n-padding-single-bottom": cn.bottom,
          "--n-padding-multiple-bottom": en.bottom,
          "--n-placeholder-color": ut,
          "--n-placeholder-color-disabled": Q,
          "--n-text-color": Ze,
          "--n-text-color-disabled": Ge,
          "--n-arrow-color": Mt,
          "--n-arrow-color-disabled": ct,
          "--n-loading-color": on,
          "--n-color-active-warning": Dn,
          "--n-box-shadow-focus-warning": Sn,
          "--n-box-shadow-active-warning": _n,
          "--n-box-shadow-hover-warning": $n,
          "--n-border-warning": Hn,
          "--n-border-focus-warning": qn,
          "--n-border-hover-warning": he,
          "--n-border-active-warning": Pe,
          "--n-color-active-error": ot,
          "--n-box-shadow-focus-error": St,
          "--n-box-shadow-active-error": It,
          "--n-box-shadow-hover-error": Et,
          "--n-border-error": zt,
          "--n-border-focus-error": an,
          "--n-border-hover-error": Gn,
          "--n-border-active-error": Mr,
          "--n-clear-size": ue,
          "--n-clear-color": Lr,
          "--n-clear-color-hover": Ho,
          "--n-clear-color-pressed": st,
          "--n-arrow-size": Le,
          "--n-font-weight": Ce
        };
      }), te = X ? xt("internal-selection", D(() => e.size[0]), ge, e) : void 0;
      return {
        mergedTheme: v,
        mergedClearable: y,
        mergedClsPrefix: t,
        rtlEnabled: r,
        patternInputFocused: m,
        filterablePlaceholder: w,
        label: x,
        selected: S,
        showTagsPanel: f,
        isComposing: re,
        counterRef: u,
        counterWrapperRef: d,
        patternInputMirrorRef: o,
        patternInputRef: i,
        selfRef: a,
        multipleElRef: l,
        singleElRef: s,
        patternInputWrapperRef: c,
        overflowRef: h,
        inputTagElRef: p,
        handleMouseDown: ye,
        handleFocusin: z,
        handleClear: ee,
        handleMouseEnter: ne,
        handleMouseLeave: ae,
        handleDeleteOption: xe,
        handlePatternKeyDown: Y,
        handlePatternInputInput: oe,
        handlePatternInputBlur: fe,
        handlePatternInputFocus: ie,
        handleMouseEnterCounter: K,
        handleMouseLeaveCounter: N,
        handleFocusout: U,
        handleCompositionEnd: be,
        handleCompositionStart: ce,
        onPopoverUpdateShow: j,
        focus: se,
        focusInput: ze,
        blur: F,
        blurInput: q,
        updateCounter: J,
        getCounter: le,
        getTail: we,
        renderLabel: e.renderLabel,
        cssVars: X ? void 0 : ge,
        themeClass: te == null ? void 0 : te.themeClass,
        onRender: te == null ? void 0 : te.onRender
      };
    },
    render() {
      const { status: e, multiple: t, size: n, disabled: r, filterable: o, maxTagCount: i, bordered: a, clsPrefix: l, ellipsisTagPopoverProps: s, onRender: c, renderTag: u, renderLabel: d } = this;
      c == null ? void 0 : c();
      const h = i === "responsive", p = typeof i == "number", f = h || p, m = g(Ph, null, {
        default: () => g(gC, {
          clsPrefix: l,
          loading: this.loading,
          showArrow: this.showArrow,
          showClear: this.mergedClearable && this.selected,
          onClear: this.handleClear
        }, {
          default: () => {
            var v, y;
            return (y = (v = this.$slots).arrow) === null || y === void 0 ? void 0 : y.call(v);
          }
        })
      });
      let b;
      if (t) {
        const { labelField: v } = this, y = (M) => g("div", {
          class: `${l}-base-selection-tag-wrapper`,
          key: M.value
        }, u ? u({
          option: M,
          handleClose: () => {
            this.handleDeleteOption(M);
          }
        }) : g(ki, {
          size: n,
          closable: !M.disabled,
          disabled: r,
          onClose: () => {
            this.handleDeleteOption(M);
          },
          internalCloseIsButtonTag: false,
          internalCloseFocusable: false
        }, {
          default: () => d ? d(M, true) : Xt(M[v], M, true)
        })), w = () => (p ? this.selectedOptions.slice(0, i) : this.selectedOptions).map(y), x = o ? g("div", {
          class: `${l}-base-selection-input-tag`,
          ref: "inputTagElRef",
          key: "__input-tag__"
        }, g("input", Object.assign({}, this.inputProps, {
          ref: "patternInputRef",
          tabindex: -1,
          disabled: r,
          value: this.pattern,
          autofocus: this.autofocus,
          class: `${l}-base-selection-input-tag__input`,
          onBlur: this.handlePatternInputBlur,
          onFocus: this.handlePatternInputFocus,
          onKeydown: this.handlePatternKeyDown,
          onInput: this.handlePatternInputInput,
          onCompositionstart: this.handleCompositionStart,
          onCompositionend: this.handleCompositionEnd
        })), g("span", {
          ref: "patternInputMirrorRef",
          class: `${l}-base-selection-input-tag__mirror`
        }, this.pattern)) : null, S = h ? () => g("div", {
          class: `${l}-base-selection-tag-wrapper`,
          ref: "counterWrapperRef"
        }, g(ki, {
          size: n,
          ref: "counterRef",
          onMouseenter: this.handleMouseEnterCounter,
          onMouseleave: this.handleMouseLeaveCounter,
          disabled: r
        })) : void 0;
        let _;
        if (p) {
          const M = this.selectedOptions.length - i;
          M > 0 && (_ = g("div", {
            class: `${l}-base-selection-tag-wrapper`,
            key: "__counter__"
          }, g(ki, {
            size: n,
            ref: "counterRef",
            onMouseenter: this.handleMouseEnterCounter,
            disabled: r
          }, {
            default: () => `+${M}`
          })));
        }
        const C = h ? o ? g(Ah, {
          ref: "overflowRef",
          updateCounter: this.updateCounter,
          getCounter: this.getCounter,
          getTail: this.getTail,
          style: {
            width: "100%",
            display: "flex",
            overflow: "hidden"
          }
        }, {
          default: w,
          counter: S,
          tail: () => x
        }) : g(Ah, {
          ref: "overflowRef",
          updateCounter: this.updateCounter,
          getCounter: this.getCounter,
          style: {
            width: "100%",
            display: "flex",
            overflow: "hidden"
          }
        }, {
          default: w,
          counter: S
        }) : p && _ ? w().concat(_) : w(), k = f ? () => g("div", {
          class: `${l}-base-selection-popover`
        }, h ? w() : this.selectedOptions.map(y)) : void 0, R = f ? Object.assign({
          show: this.showTagsPanel,
          trigger: "hover",
          overlap: true,
          placement: "top",
          width: "trigger",
          onUpdateShow: this.onPopoverUpdateShow,
          theme: this.mergedTheme.peers.Popover,
          themeOverrides: this.mergedTheme.peerOverrides.Popover
        }, s) : null, B = (this.selected ? false : this.active ? !this.pattern && !this.isComposing : true) ? g("div", {
          class: `${l}-base-selection-placeholder ${l}-base-selection-overlay`
        }, g("div", {
          class: `${l}-base-selection-placeholder__inner`
        }, this.placeholder)) : null, E = o ? g("div", {
          ref: "patternInputWrapperRef",
          class: `${l}-base-selection-tags`
        }, C, h ? null : x, m) : g("div", {
          ref: "multipleElRef",
          class: `${l}-base-selection-tags`,
          tabindex: r ? void 0 : 0
        }, C, m);
        b = g(wt, null, f ? g(Tl, Object.assign({}, R, {
          scrollable: true,
          style: "max-height: calc(var(--v-target-height) * 6.6);"
        }), {
          trigger: () => E,
          default: k
        }) : E, B);
      } else if (o) {
        const v = this.pattern || this.isComposing, y = this.active ? !v : !this.selected, w = this.active ? false : this.selected;
        b = g("div", {
          ref: "patternInputWrapperRef",
          class: `${l}-base-selection-label`,
          title: this.patternInputFocused ? void 0 : Eh(this.label)
        }, g("input", Object.assign({}, this.inputProps, {
          ref: "patternInputRef",
          class: `${l}-base-selection-input`,
          value: this.active ? this.pattern : "",
          placeholder: "",
          readonly: r,
          disabled: r,
          tabindex: -1,
          autofocus: this.autofocus,
          onFocus: this.handlePatternInputFocus,
          onBlur: this.handlePatternInputBlur,
          onInput: this.handlePatternInputInput,
          onCompositionstart: this.handleCompositionStart,
          onCompositionend: this.handleCompositionEnd
        })), w ? g("div", {
          class: `${l}-base-selection-label__render-label ${l}-base-selection-overlay`,
          key: "input"
        }, g("div", {
          class: `${l}-base-selection-overlay__wrapper`
        }, u ? u({
          option: this.selectedOption,
          handleClose: () => {
          }
        }) : d ? d(this.selectedOption, true) : Xt(this.label, this.selectedOption, true))) : null, y ? g("div", {
          class: `${l}-base-selection-placeholder ${l}-base-selection-overlay`,
          key: "placeholder"
        }, g("div", {
          class: `${l}-base-selection-overlay__wrapper`
        }, this.filterablePlaceholder)) : null, m);
      } else b = g("div", {
        ref: "singleElRef",
        class: `${l}-base-selection-label`,
        tabindex: this.disabled ? void 0 : 0
      }, this.label !== void 0 ? g("div", {
        class: `${l}-base-selection-input`,
        title: Eh(this.label),
        key: "input"
      }, g("div", {
        class: `${l}-base-selection-input__content`
      }, u ? u({
        option: this.selectedOption,
        handleClose: () => {
        }
      }) : d ? d(this.selectedOption, true) : Xt(this.label, this.selectedOption, true))) : g("div", {
        class: `${l}-base-selection-placeholder ${l}-base-selection-overlay`,
        key: "placeholder"
      }, g("div", {
        class: `${l}-base-selection-placeholder__inner`
      }, this.placeholder)), m);
      return g("div", {
        ref: "selfRef",
        class: [
          `${l}-base-selection`,
          this.rtlEnabled && `${l}-base-selection--rtl`,
          this.themeClass,
          e && `${l}-base-selection--${e}-status`,
          {
            [`${l}-base-selection--active`]: this.active,
            [`${l}-base-selection--selected`]: this.selected || this.active && this.pattern,
            [`${l}-base-selection--disabled`]: this.disabled,
            [`${l}-base-selection--multiple`]: this.multiple,
            [`${l}-base-selection--focus`]: this.focused
          }
        ],
        style: this.cssVars,
        onClick: this.onClick,
        onMouseenter: this.handleMouseEnter,
        onMouseleave: this.handleMouseLeave,
        onKeydown: this.onKeydown,
        onFocusin: this.handleFocusin,
        onFocusout: this.handleFocusout,
        onMousedown: this.handleMouseDown
      }, b, a ? g("div", {
        class: `${l}-base-selection__border`
      }) : null, a ? g("div", {
        class: `${l}-base-selection__state-border`
      }) : null);
    }
  }), Tb = pe({
    name: "SlotMachineNumber",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      value: {
        type: [
          Number,
          String
        ],
        required: true
      },
      oldOriginalNumber: {
        type: Number,
        default: void 0
      },
      newOriginalNumber: {
        type: Number,
        default: void 0
      }
    },
    setup(e) {
      const t = L(null), n = L(e.value), r = L(e.value), o = L("up"), i = L(false), a = D(() => i.value ? `${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll` : null), l = D(() => i.value ? `${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll` : null);
      lt($e(e, "value"), (u, d) => {
        n.value = d, r.value = u, sn(s);
      });
      function s() {
        const u = e.newOriginalNumber, d = e.oldOriginalNumber;
        d === void 0 || u === void 0 || (u > d ? c("up") : d > u && c("down"));
      }
      function c(u) {
        o.value = u, i.value = false, sn(() => {
          var d;
          (d = t.value) === null || d === void 0 || d.offsetWidth, i.value = true;
        });
      }
      return () => {
        const { clsPrefix: u } = e;
        return g("span", {
          ref: t,
          class: `${u}-base-slot-machine-number`
        }, n.value !== null ? g("span", {
          class: [
            `${u}-base-slot-machine-old-number ${u}-base-slot-machine-old-number--top`,
            l.value
          ]
        }, n.value) : null, g("span", {
          class: [
            `${u}-base-slot-machine-current-number`,
            a.value
          ]
        }, g("span", {
          ref: "numberWrapper",
          class: [
            `${u}-base-slot-machine-current-number__inner`,
            typeof e.value != "number" && `${u}-base-slot-machine-current-number__inner--not-number`
          ]
        }, r.value)), n.value !== null ? g("span", {
          class: [
            `${u}-base-slot-machine-old-number ${u}-base-slot-machine-old-number--bottom`,
            l.value
          ]
        }, n.value) : null);
      };
    }
  }), { cubicBezierEaseInOut: gi } = yr;
  function yC({ duration: e = ".2s", delay: t = ".1s" } = {}) {
    return [
      W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to", {
        opacity: 1
      }),
      W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from", `
 opacity: 0!important;
 margin-left: 0!important;
 margin-right: 0!important;
 `),
      W("&.fade-in-width-expand-transition-leave-active", `
 overflow: hidden;
 transition:
 opacity ${e} ${gi},
 max-width ${e} ${gi} ${t},
 margin-left ${e} ${gi} ${t},
 margin-right ${e} ${gi} ${t};
 `),
      W("&.fade-in-width-expand-transition-enter-active", `
 overflow: hidden;
 transition:
 opacity ${e} ${gi} ${t},
 max-width ${e} ${gi},
 margin-left ${e} ${gi},
 margin-right ${e} ${gi};
 `)
    ];
  }
  const { cubicBezierEaseOut: Ha } = yr;
  function b8({ duration: e = ".2s" } = {}) {
    return [
      W("&.fade-up-width-expand-transition-leave-active", {
        transition: `
 opacity ${e} ${Ha},
 max-width ${e} ${Ha},
 transform ${e} ${Ha}
 `
      }),
      W("&.fade-up-width-expand-transition-enter-active", {
        transition: `
 opacity ${e} ${Ha},
 max-width ${e} ${Ha},
 transform ${e} ${Ha}
 `
      }),
      W("&.fade-up-width-expand-transition-enter-to", {
        opacity: 1,
        transform: "translateX(0) translateY(0)"
      }),
      W("&.fade-up-width-expand-transition-enter-from", {
        maxWidth: "0 !important",
        opacity: 0,
        transform: "translateY(60%)"
      }),
      W("&.fade-up-width-expand-transition-leave-from", {
        opacity: 1,
        transform: "translateY(0)"
      }),
      W("&.fade-up-width-expand-transition-leave-to", {
        maxWidth: "0 !important",
        opacity: 0,
        transform: "translateY(60%)"
      })
    ];
  }
  const y8 = W([
    W("@keyframes n-base-slot-machine-fade-up-in", `
 from {
 transform: translateY(60%);
 opacity: 0;
 }
 to {
 transform: translateY(0);
 opacity: 1;
 }
 `),
    W("@keyframes n-base-slot-machine-fade-down-in", `
 from {
 transform: translateY(-60%);
 opacity: 0;
 }
 to {
 transform: translateY(0);
 opacity: 1;
 }
 `),
    W("@keyframes n-base-slot-machine-fade-up-out", `
 from {
 transform: translateY(0%);
 opacity: 1;
 }
 to {
 transform: translateY(-60%);
 opacity: 0;
 }
 `),
    W("@keyframes n-base-slot-machine-fade-down-out", `
 from {
 transform: translateY(0%);
 opacity: 1;
 }
 to {
 transform: translateY(60%);
 opacity: 0;
 }
 `),
    A("base-slot-machine", `
 overflow: hidden;
 white-space: nowrap;
 display: inline-block;
 height: 18px;
 line-height: 18px;
 `, [
      A("base-slot-machine-number", `
 display: inline-block;
 position: relative;
 height: 18px;
 width: .6em;
 max-width: .6em;
 `, [
        b8({
          duration: ".2s"
        }),
        yC({
          duration: ".2s",
          delay: "0s"
        }),
        A("base-slot-machine-old-number", `
 display: inline-block;
 opacity: 0;
 position: absolute;
 left: 0;
 right: 0;
 `, [
          G("top", {
            transform: "translateY(-100%)"
          }),
          G("bottom", {
            transform: "translateY(100%)"
          }),
          G("down-scroll", {
            animation: "n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",
            animationIterationCount: 1
          }),
          G("up-scroll", {
            animation: "n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",
            animationIterationCount: 1
          })
        ]),
        A("base-slot-machine-current-number", `
 display: inline-block;
 position: absolute;
 left: 0;
 top: 0;
 bottom: 0;
 right: 0;
 opacity: 1;
 transform: translateY(0);
 width: .6em;
 `, [
          G("down-scroll", {
            animation: "n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",
            animationIterationCount: 1
          }),
          G("up-scroll", {
            animation: "n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",
            animationIterationCount: 1
          }),
          V("inner", `
 display: inline-block;
 position: absolute;
 right: 0;
 top: 0;
 width: .6em;
 `, [
            G("not-number", `
 right: unset;
 left: 0;
 `)
          ])
        ])
      ])
    ])
  ]), x8 = pe({
    name: "BaseSlotMachine",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      value: {
        type: [
          Number,
          String
        ],
        default: 0
      },
      max: {
        type: Number,
        default: void 0
      },
      appeared: {
        type: Boolean,
        required: true
      }
    },
    setup(e) {
      Lo("-base-slot-machine", y8, $e(e, "clsPrefix"));
      const t = L(), n = L(), r = D(() => {
        if (typeof e.value == "string") return [];
        if (e.value < 1) return [
          0
        ];
        const o = [];
        let i = e.value;
        for (e.max !== void 0 && (i = Math.min(e.max, i)); i >= 1; ) o.push(i % 10), i /= 10, i = Math.floor(i);
        return o.reverse(), o;
      });
      return lt($e(e, "value"), (o, i) => {
        typeof o == "string" ? (n.value = void 0, t.value = void 0) : typeof i == "string" ? (n.value = o, t.value = void 0) : (n.value = o, t.value = i);
      }), () => {
        const { value: o, clsPrefix: i } = e;
        return typeof o == "number" ? g("span", {
          class: `${i}-base-slot-machine`
        }, g(Kp, {
          name: "fade-up-width-expand-transition",
          tag: "span"
        }, {
          default: () => r.value.map((a, l) => g(Tb, {
            clsPrefix: i,
            key: r.value.length - l - 1,
            oldOriginalNumber: t.value,
            newOriginalNumber: n.value,
            value: a
          }))
        }), g(El, {
          key: "+",
          width: true
        }, {
          default: () => e.max !== void 0 && e.max < o ? g(Tb, {
            clsPrefix: i,
            value: "+"
          }) : null
        })) : g("span", {
          class: `${i}-base-slot-machine`
        }, o);
      };
    }
  }), w8 = A("base-wave", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
`), xC = pe({
    name: "BaseWave",
    props: {
      clsPrefix: {
        type: String,
        required: true
      }
    },
    setup(e) {
      Lo("-base-wave", w8, $e(e, "clsPrefix"));
      const t = L(null), n = L(false);
      let r = null;
      return Zt(() => {
        r !== null && window.clearTimeout(r);
      }), {
        active: n,
        selfRef: t,
        play() {
          r !== null && (window.clearTimeout(r), n.value = false, r = null), sn(() => {
            var o;
            (o = t.value) === null || o === void 0 || o.offsetHeight, n.value = true, r = window.setTimeout(() => {
              n.value = false, r = null;
            }, 1e3);
          });
        }
      };
    },
    render() {
      const { clsPrefix: e } = this;
      return g("div", {
        ref: "selfRef",
        "aria-hidden": true,
        class: [
          `${e}-base-wave`,
          this.active && `${e}-base-wave--active`
        ]
      });
    }
  }), wC = {
    iconMargin: "11px 8px 0 12px",
    iconMarginRtl: "11px 12px 0 8px",
    iconSize: "24px",
    closeIconSize: "16px",
    closeSize: "20px",
    closeMargin: "13px 14px 0 0",
    closeMarginRtl: "13px 0 0 14px",
    padding: "13px"
  }, C8 = {
    name: "Alert",
    common: Ue,
    self(e) {
      const { lineHeight: t, borderRadius: n, fontWeightStrong: r, dividerColor: o, inputColor: i, textColor1: a, textColor2: l, closeColorHover: s, closeColorPressed: c, closeIconColor: u, closeIconColorHover: d, closeIconColorPressed: h, infoColorSuppl: p, successColorSuppl: f, warningColorSuppl: m, errorColorSuppl: b, fontSize: v } = e;
      return Object.assign(Object.assign({}, wC), {
        fontSize: v,
        lineHeight: t,
        titleFontWeight: r,
        borderRadius: n,
        border: `1px solid ${o}`,
        color: i,
        titleTextColor: a,
        iconColor: l,
        contentTextColor: l,
        closeBorderRadius: n,
        closeColorHover: s,
        closeColorPressed: c,
        closeIconColor: u,
        closeIconColorHover: d,
        closeIconColorPressed: h,
        borderInfo: `1px solid ${Oe(p, {
          alpha: 0.35
        })}`,
        colorInfo: Oe(p, {
          alpha: 0.25
        }),
        titleTextColorInfo: a,
        iconColorInfo: p,
        contentTextColorInfo: l,
        closeColorHoverInfo: s,
        closeColorPressedInfo: c,
        closeIconColorInfo: u,
        closeIconColorHoverInfo: d,
        closeIconColorPressedInfo: h,
        borderSuccess: `1px solid ${Oe(f, {
          alpha: 0.35
        })}`,
        colorSuccess: Oe(f, {
          alpha: 0.25
        }),
        titleTextColorSuccess: a,
        iconColorSuccess: f,
        contentTextColorSuccess: l,
        closeColorHoverSuccess: s,
        closeColorPressedSuccess: c,
        closeIconColorSuccess: u,
        closeIconColorHoverSuccess: d,
        closeIconColorPressedSuccess: h,
        borderWarning: `1px solid ${Oe(m, {
          alpha: 0.35
        })}`,
        colorWarning: Oe(m, {
          alpha: 0.25
        }),
        titleTextColorWarning: a,
        iconColorWarning: m,
        contentTextColorWarning: l,
        closeColorHoverWarning: s,
        closeColorPressedWarning: c,
        closeIconColorWarning: u,
        closeIconColorHoverWarning: d,
        closeIconColorPressedWarning: h,
        borderError: `1px solid ${Oe(b, {
          alpha: 0.35
        })}`,
        colorError: Oe(b, {
          alpha: 0.25
        }),
        titleTextColorError: a,
        iconColorError: b,
        contentTextColorError: l,
        closeColorHoverError: s,
        closeColorPressedError: c,
        closeIconColorError: u,
        closeIconColorHoverError: d,
        closeIconColorPressedError: h
      });
    }
  };
  function S8(e) {
    const { lineHeight: t, borderRadius: n, fontWeightStrong: r, baseColor: o, dividerColor: i, actionColor: a, textColor1: l, textColor2: s, closeColorHover: c, closeColorPressed: u, closeIconColor: d, closeIconColorHover: h, closeIconColorPressed: p, infoColor: f, successColor: m, warningColor: b, errorColor: v, fontSize: y } = e;
    return Object.assign(Object.assign({}, wC), {
      fontSize: y,
      lineHeight: t,
      titleFontWeight: r,
      borderRadius: n,
      border: `1px solid ${i}`,
      color: a,
      titleTextColor: l,
      iconColor: s,
      contentTextColor: s,
      closeBorderRadius: n,
      closeColorHover: c,
      closeColorPressed: u,
      closeIconColor: d,
      closeIconColorHover: h,
      closeIconColorPressed: p,
      borderInfo: `1px solid ${Ye(o, Oe(f, {
        alpha: 0.25
      }))}`,
      colorInfo: Ye(o, Oe(f, {
        alpha: 0.08
      })),
      titleTextColorInfo: l,
      iconColorInfo: f,
      contentTextColorInfo: s,
      closeColorHoverInfo: c,
      closeColorPressedInfo: u,
      closeIconColorInfo: d,
      closeIconColorHoverInfo: h,
      closeIconColorPressedInfo: p,
      borderSuccess: `1px solid ${Ye(o, Oe(m, {
        alpha: 0.25
      }))}`,
      colorSuccess: Ye(o, Oe(m, {
        alpha: 0.08
      })),
      titleTextColorSuccess: l,
      iconColorSuccess: m,
      contentTextColorSuccess: s,
      closeColorHoverSuccess: c,
      closeColorPressedSuccess: u,
      closeIconColorSuccess: d,
      closeIconColorHoverSuccess: h,
      closeIconColorPressedSuccess: p,
      borderWarning: `1px solid ${Ye(o, Oe(b, {
        alpha: 0.33
      }))}`,
      colorWarning: Ye(o, Oe(b, {
        alpha: 0.08
      })),
      titleTextColorWarning: l,
      iconColorWarning: b,
      contentTextColorWarning: s,
      closeColorHoverWarning: c,
      closeColorPressedWarning: u,
      closeIconColorWarning: d,
      closeIconColorHoverWarning: h,
      closeIconColorPressedWarning: p,
      borderError: `1px solid ${Ye(o, Oe(v, {
        alpha: 0.25
      }))}`,
      colorError: Ye(o, Oe(v, {
        alpha: 0.08
      })),
      titleTextColorError: l,
      iconColorError: v,
      contentTextColorError: s,
      closeColorHoverError: c,
      closeColorPressedError: u,
      closeIconColorError: d,
      closeIconColorHoverError: h,
      closeIconColorPressedError: p
    });
  }
  const _8 = {
    common: mt,
    self: S8
  }, { cubicBezierEaseInOut: bo, cubicBezierEaseOut: k8, cubicBezierEaseIn: R8 } = yr;
  function md({ overflow: e = "hidden", duration: t = ".3s", originalTransition: n = "", leavingDelay: r = "0s", foldPadding: o = false, enterToProps: i = void 0, leaveToProps: a = void 0, reverse: l = false } = {}) {
    const s = l ? "leave" : "enter", c = l ? "enter" : "leave";
    return [
      W(`&.fade-in-height-expand-transition-${c}-from,
 &.fade-in-height-expand-transition-${s}-to`, Object.assign(Object.assign({}, i), {
        opacity: 1
      })),
      W(`&.fade-in-height-expand-transition-${c}-to,
 &.fade-in-height-expand-transition-${s}-from`, Object.assign(Object.assign({}, a), {
        opacity: 0,
        marginTop: "0 !important",
        marginBottom: "0 !important",
        paddingTop: o ? "0 !important" : void 0,
        paddingBottom: o ? "0 !important" : void 0
      })),
      W(`&.fade-in-height-expand-transition-${c}-active`, `
 overflow: ${e};
 transition:
 max-height ${t} ${bo} ${r},
 opacity ${t} ${k8} ${r},
 margin-top ${t} ${bo} ${r},
 margin-bottom ${t} ${bo} ${r},
 padding-top ${t} ${bo} ${r},
 padding-bottom ${t} ${bo} ${r}
 ${n ? `,${n}` : ""}
 `),
      W(`&.fade-in-height-expand-transition-${s}-active`, `
 overflow: ${e};
 transition:
 max-height ${t} ${bo},
 opacity ${t} ${R8},
 margin-top ${t} ${bo},
 margin-bottom ${t} ${bo},
 padding-top ${t} ${bo},
 padding-bottom ${t} ${bo}
 ${n ? `,${n}` : ""}
 `)
    ];
  }
  let A8, E8, T8;
  A8 = A("alert", `
 line-height: var(--n-line-height);
 border-radius: var(--n-border-radius);
 position: relative;
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-color);
 text-align: start;
 word-break: break-word;
`, [
    V("border", `
 border-radius: inherit;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 transition: border-color .3s var(--n-bezier);
 border: var(--n-border);
 pointer-events: none;
 `),
    G("closable", [
      A("alert-body", [
        V("title", `
 padding-right: 24px;
 `)
      ])
    ]),
    V("icon", {
      color: "var(--n-icon-color)"
    }),
    A("alert-body", {
      padding: "var(--n-padding)"
    }, [
      V("title", {
        color: "var(--n-title-text-color)"
      }),
      V("content", {
        color: "var(--n-content-text-color)"
      })
    ]),
    md({
      originalTransition: "transform .3s var(--n-bezier)",
      enterToProps: {
        transform: "scale(1)"
      },
      leaveToProps: {
        transform: "scale(0.9)"
      }
    }),
    V("icon", `
 position: absolute;
 left: 0;
 top: 0;
 align-items: center;
 justify-content: center;
 display: flex;
 width: var(--n-icon-size);
 height: var(--n-icon-size);
 font-size: var(--n-icon-size);
 margin: var(--n-icon-margin);
 `),
    V("close", `
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 position: absolute;
 right: 0;
 top: 0;
 margin: var(--n-close-margin);
 `),
    G("show-icon", [
      A("alert-body", {
        paddingLeft: "calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"
      })
    ]),
    G("right-adjust", [
      A("alert-body", {
        paddingRight: "calc(var(--n-close-size) + var(--n-padding) + 2px)"
      })
    ]),
    A("alert-body", `
 border-radius: var(--n-border-radius);
 transition: border-color .3s var(--n-bezier);
 `, [
      V("title", `
 transition: color .3s var(--n-bezier);
 font-size: 16px;
 line-height: 19px;
 font-weight: var(--n-title-font-weight);
 `, [
        W("& +", [
          V("content", {
            marginTop: "9px"
          })
        ])
      ]),
      V("content", {
        transition: "color .3s var(--n-bezier)",
        fontSize: "var(--n-font-size)"
      })
    ]),
    V("icon", {
      transition: "color .3s var(--n-bezier)"
    })
  ]);
  E8 = Object.assign(Object.assign({}, Fe.props), {
    title: String,
    showIcon: {
      type: Boolean,
      default: true
    },
    type: {
      type: String,
      default: "default"
    },
    bordered: {
      type: Boolean,
      default: true
    },
    closable: Boolean,
    onClose: Function,
    onAfterLeave: Function,
    onAfterHide: Function
  });
  Fi = pe({
    name: "Alert",
    inheritAttrs: false,
    props: E8,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedBorderedRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = Fe("Alert", "-alert", A8, _8, e, t), a = rn("Alert", o, t), l = D(() => {
        const { common: { cubicBezierEaseInOut: p }, self: f } = i.value, { fontSize: m, borderRadius: b, titleFontWeight: v, lineHeight: y, iconSize: w, iconMargin: x, iconMarginRtl: S, closeIconSize: _, closeBorderRadius: C, closeSize: k, closeMargin: R, closeMarginRtl: P, padding: B } = f, { type: E } = e, { left: M, right: z } = En(x);
        return {
          "--n-bezier": p,
          "--n-color": f[Se("color", E)],
          "--n-close-icon-size": _,
          "--n-close-border-radius": C,
          "--n-close-color-hover": f[Se("closeColorHover", E)],
          "--n-close-color-pressed": f[Se("closeColorPressed", E)],
          "--n-close-icon-color": f[Se("closeIconColor", E)],
          "--n-close-icon-color-hover": f[Se("closeIconColorHover", E)],
          "--n-close-icon-color-pressed": f[Se("closeIconColorPressed", E)],
          "--n-icon-color": f[Se("iconColor", E)],
          "--n-border": f[Se("border", E)],
          "--n-title-text-color": f[Se("titleTextColor", E)],
          "--n-content-text-color": f[Se("contentTextColor", E)],
          "--n-line-height": y,
          "--n-border-radius": b,
          "--n-font-size": m,
          "--n-title-font-weight": v,
          "--n-icon-size": w,
          "--n-icon-margin": x,
          "--n-icon-margin-rtl": S,
          "--n-close-size": k,
          "--n-close-margin": R,
          "--n-close-margin-rtl": P,
          "--n-padding": B,
          "--n-icon-margin-left": M,
          "--n-icon-margin-right": z
        };
      }), s = r ? xt("alert", D(() => e.type[0]), l, e) : void 0, c = L(true), u = () => {
        const { onAfterLeave: p, onAfterHide: f } = e;
        p && p(), f && f();
      };
      return {
        rtlEnabled: a,
        mergedClsPrefix: t,
        mergedBordered: n,
        visible: c,
        handleCloseClick: () => {
          var p;
          Promise.resolve((p = e.onClose) === null || p === void 0 ? void 0 : p.call(e)).then((f) => {
            f !== false && (c.value = false);
          });
        },
        handleAfterLeave: () => {
          u();
        },
        mergedTheme: i,
        cssVars: r ? void 0 : l,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender
      };
    },
    render() {
      var e;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g(El, {
        onAfterLeave: this.handleAfterLeave
      }, {
        default: () => {
          const { mergedClsPrefix: t, $slots: n } = this, r = {
            class: [
              `${t}-alert`,
              this.themeClass,
              this.closable && `${t}-alert--closable`,
              this.showIcon && `${t}-alert--show-icon`,
              !this.title && this.closable && `${t}-alert--right-adjust`,
              this.rtlEnabled && `${t}-alert--rtl`
            ],
            style: this.cssVars,
            role: "alert"
          };
          return this.visible ? g("div", Object.assign({}, Mn(this.$attrs, r)), this.closable && g(Oi, {
            clsPrefix: t,
            class: `${t}-alert__close`,
            onClick: this.handleCloseClick
          }), this.bordered && g("div", {
            class: `${t}-alert__border`
          }), this.showIcon && g("div", {
            class: `${t}-alert__icon`,
            "aria-hidden": "true"
          }, In(n.icon, () => [
            g(Jt, {
              clsPrefix: t
            }, {
              default: () => {
                switch (this.type) {
                  case "success":
                    return g(ka, null);
                  case "info":
                    return g(Ti, null);
                  case "warning":
                    return g(zi, null);
                  case "error":
                    return g(_a, null);
                  default:
                    return null;
                }
              }
            })
          ])), g("div", {
            class: [
              `${t}-alert-body`,
              this.mergedBordered && `${t}-alert-body--bordered`
            ]
          }, Pt(n.header, (o) => {
            const i = o || this.title;
            return i ? g("div", {
              class: `${t}-alert-body__title`
            }, i) : null;
          }), n.default && g("div", {
            class: `${t}-alert-body__content`
          }, n))) : null;
        }
      });
    }
  });
  T8 = {
    linkFontSize: "13px",
    linkPadding: "0 0 0 16px",
    railWidth: "4px"
  };
  function P8(e) {
    const { borderRadius: t, railColor: n, primaryColor: r, primaryColorHover: o, primaryColorPressed: i, textColor2: a } = e;
    return Object.assign(Object.assign({}, T8), {
      borderRadius: t,
      railColor: n,
      railColorActive: r,
      linkColor: Oe(r, {
        alpha: 0.15
      }),
      linkTextColor: a,
      linkTextColorHover: o,
      linkTextColorPressed: i,
      linkTextColorActive: r
    });
  }
  const D8 = {
    name: "Anchor",
    common: Ue,
    self: P8
  }, $8 = ui && "chrome" in window;
  ui && navigator.userAgent.includes("Firefox");
  const CC = ui && navigator.userAgent.includes("Safari") && !$8, SC = {
    paddingTiny: "0 8px",
    paddingSmall: "0 10px",
    paddingMedium: "0 12px",
    paddingLarge: "0 14px",
    clearSize: "16px"
  };
  function z8(e) {
    const { textColor2: t, textColor3: n, textColorDisabled: r, primaryColor: o, primaryColorHover: i, inputColor: a, inputColorDisabled: l, warningColor: s, warningColorHover: c, errorColor: u, errorColorHover: d, borderRadius: h, lineHeight: p, fontSizeTiny: f, fontSizeSmall: m, fontSizeMedium: b, fontSizeLarge: v, heightTiny: y, heightSmall: w, heightMedium: x, heightLarge: S, clearColor: _, clearColorHover: C, clearColorPressed: k, placeholderColor: R, placeholderColorDisabled: P, iconColor: B, iconColorDisabled: E, iconColorHover: M, iconColorPressed: z, fontWeight: U } = e;
    return Object.assign(Object.assign({}, SC), {
      fontWeight: U,
      countTextColorDisabled: r,
      countTextColor: n,
      heightTiny: y,
      heightSmall: w,
      heightMedium: x,
      heightLarge: S,
      fontSizeTiny: f,
      fontSizeSmall: m,
      fontSizeMedium: b,
      fontSizeLarge: v,
      lineHeight: p,
      lineHeightTextarea: p,
      borderRadius: h,
      iconSize: "16px",
      groupLabelColor: a,
      textColor: t,
      textColorDisabled: r,
      textDecorationColor: t,
      groupLabelTextColor: t,
      caretColor: o,
      placeholderColor: R,
      placeholderColorDisabled: P,
      color: a,
      colorDisabled: l,
      colorFocus: Oe(o, {
        alpha: 0.1
      }),
      groupLabelBorder: "1px solid #0000",
      border: "1px solid #0000",
      borderHover: `1px solid ${i}`,
      borderDisabled: "1px solid #0000",
      borderFocus: `1px solid ${i}`,
      boxShadowFocus: `0 0 8px 0 ${Oe(o, {
        alpha: 0.3
      })}`,
      loadingColor: o,
      loadingColorWarning: s,
      borderWarning: `1px solid ${s}`,
      borderHoverWarning: `1px solid ${c}`,
      colorFocusWarning: Oe(s, {
        alpha: 0.1
      }),
      borderFocusWarning: `1px solid ${c}`,
      boxShadowFocusWarning: `0 0 8px 0 ${Oe(s, {
        alpha: 0.3
      })}`,
      caretColorWarning: s,
      loadingColorError: u,
      borderError: `1px solid ${u}`,
      borderHoverError: `1px solid ${d}`,
      colorFocusError: Oe(u, {
        alpha: 0.1
      }),
      borderFocusError: `1px solid ${d}`,
      boxShadowFocusError: `0 0 8px 0 ${Oe(u, {
        alpha: 0.3
      })}`,
      caretColorError: u,
      clearColor: _,
      clearColorHover: C,
      clearColorPressed: k,
      iconColor: B,
      iconColorDisabled: E,
      iconColorHover: M,
      iconColorPressed: z,
      suffixTextColor: t
    });
  }
  const Fr = {
    name: "Input",
    common: Ue,
    peers: {
      Scrollbar: nr
    },
    self: z8
  };
  function O8(e) {
    const { textColor2: t, textColor3: n, textColorDisabled: r, primaryColor: o, primaryColorHover: i, inputColor: a, inputColorDisabled: l, borderColor: s, warningColor: c, warningColorHover: u, errorColor: d, errorColorHover: h, borderRadius: p, lineHeight: f, fontSizeTiny: m, fontSizeSmall: b, fontSizeMedium: v, fontSizeLarge: y, heightTiny: w, heightSmall: x, heightMedium: S, heightLarge: _, actionColor: C, clearColor: k, clearColorHover: R, clearColorPressed: P, placeholderColor: B, placeholderColorDisabled: E, iconColor: M, iconColorDisabled: z, iconColorHover: U, iconColorPressed: ee, fontWeight: ne } = e;
    return Object.assign(Object.assign({}, SC), {
      fontWeight: ne,
      countTextColorDisabled: r,
      countTextColor: n,
      heightTiny: w,
      heightSmall: x,
      heightMedium: S,
      heightLarge: _,
      fontSizeTiny: m,
      fontSizeSmall: b,
      fontSizeMedium: v,
      fontSizeLarge: y,
      lineHeight: f,
      lineHeightTextarea: f,
      borderRadius: p,
      iconSize: "16px",
      groupLabelColor: C,
      groupLabelTextColor: t,
      textColor: t,
      textColorDisabled: r,
      textDecorationColor: t,
      caretColor: o,
      placeholderColor: B,
      placeholderColorDisabled: E,
      color: a,
      colorDisabled: l,
      colorFocus: a,
      groupLabelBorder: `1px solid ${s}`,
      border: `1px solid ${s}`,
      borderHover: `1px solid ${i}`,
      borderDisabled: `1px solid ${s}`,
      borderFocus: `1px solid ${i}`,
      boxShadowFocus: `0 0 0 2px ${Oe(o, {
        alpha: 0.2
      })}`,
      loadingColor: o,
      loadingColorWarning: c,
      borderWarning: `1px solid ${c}`,
      borderHoverWarning: `1px solid ${u}`,
      colorFocusWarning: a,
      borderFocusWarning: `1px solid ${u}`,
      boxShadowFocusWarning: `0 0 0 2px ${Oe(c, {
        alpha: 0.2
      })}`,
      caretColorWarning: c,
      loadingColorError: d,
      borderError: `1px solid ${d}`,
      borderHoverError: `1px solid ${h}`,
      colorFocusError: a,
      borderFocusError: `1px solid ${h}`,
      boxShadowFocusError: `0 0 0 2px ${Oe(d, {
        alpha: 0.2
      })}`,
      caretColorError: d,
      clearColor: k,
      clearColorHover: R,
      clearColorPressed: P,
      iconColor: M,
      iconColorDisabled: z,
      iconColorHover: U,
      iconColorPressed: ee,
      suffixTextColor: t
    });
  }
  let _C, I8, F8;
  ym = {
    name: "Input",
    common: mt,
    peers: {
      Scrollbar: hi
    },
    self: O8
  };
  _C = "n-input";
  I8 = A("input", `
 max-width: 100%;
 cursor: text;
 line-height: 1.5;
 z-index: auto;
 outline: none;
 box-sizing: border-box;
 position: relative;
 display: inline-flex;
 border-radius: var(--n-border-radius);
 background-color: var(--n-color);
 transition: background-color .3s var(--n-bezier);
 font-size: var(--n-font-size);
 font-weight: var(--n-font-weight);
 --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
`, [
    V("input, textarea", `
 overflow: hidden;
 flex-grow: 1;
 position: relative;
 `),
    V("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder", `
 box-sizing: border-box;
 font-size: inherit;
 line-height: 1.5;
 font-family: inherit;
 border: none;
 outline: none;
 background-color: #0000;
 text-align: inherit;
 transition:
 -webkit-text-fill-color .3s var(--n-bezier),
 caret-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 text-decoration-color .3s var(--n-bezier);
 `),
    V("input-el, textarea-el", `
 -webkit-appearance: none;
 scrollbar-width: none;
 width: 100%;
 min-width: 0;
 text-decoration-color: var(--n-text-decoration-color);
 color: var(--n-text-color);
 caret-color: var(--n-caret-color);
 background-color: transparent;
 `, [
      W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", `
 width: 0;
 height: 0;
 display: none;
 `),
      W("&::placeholder", `
 color: #0000;
 -webkit-text-fill-color: transparent !important;
 `),
      W("&:-webkit-autofill ~", [
        V("placeholder", "display: none;")
      ])
    ]),
    G("round", [
      At("textarea", "border-radius: calc(var(--n-height) / 2);")
    ]),
    V("placeholder", `
 pointer-events: none;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 overflow: hidden;
 color: var(--n-placeholder-color);
 `, [
      W("span", `
 width: 100%;
 display: inline-block;
 `)
    ]),
    G("textarea", [
      V("placeholder", "overflow: visible;")
    ]),
    At("autosize", "width: 100%;"),
    G("autosize", [
      V("textarea-el, input-el", `
 position: absolute;
 top: 0;
 left: 0;
 height: 100%;
 `)
    ]),
    A("input-wrapper", `
 overflow: hidden;
 display: inline-flex;
 flex-grow: 1;
 position: relative;
 padding-left: var(--n-padding-left);
 padding-right: var(--n-padding-right);
 `),
    V("input-mirror", `
 padding: 0;
 height: var(--n-height);
 line-height: var(--n-height);
 overflow: hidden;
 visibility: hidden;
 position: static;
 white-space: pre;
 pointer-events: none;
 `),
    V("input-el", `
 padding: 0;
 height: var(--n-height);
 line-height: var(--n-height);
 `, [
      W("&[type=password]::-ms-reveal", "display: none;"),
      W("+", [
        V("placeholder", `
 display: flex;
 align-items: center; 
 `)
      ])
    ]),
    At("textarea", [
      V("placeholder", "white-space: nowrap;")
    ]),
    V("eye", `
 display: flex;
 align-items: center;
 justify-content: center;
 transition: color .3s var(--n-bezier);
 `),
    G("textarea", "width: 100%;", [
      A("input-word-count", `
 position: absolute;
 right: var(--n-padding-right);
 bottom: var(--n-padding-vertical);
 `),
      G("resizable", [
        A("input-wrapper", `
 resize: vertical;
 min-height: var(--n-height);
 `)
      ]),
      V("textarea-el, textarea-mirror, placeholder", `
 height: 100%;
 padding-left: 0;
 padding-right: 0;
 padding-top: var(--n-padding-vertical);
 padding-bottom: var(--n-padding-vertical);
 word-break: break-word;
 display: inline-block;
 vertical-align: bottom;
 box-sizing: border-box;
 line-height: var(--n-line-height-textarea);
 margin: 0;
 resize: none;
 white-space: pre-wrap;
 scroll-padding-block-end: var(--n-padding-vertical);
 `),
      V("textarea-mirror", `
 width: 100%;
 pointer-events: none;
 overflow: hidden;
 visibility: hidden;
 position: static;
 white-space: pre-wrap;
 overflow-wrap: break-word;
 `)
    ]),
    G("pair", [
      V("input-el, placeholder", "text-align: center;"),
      V("separator", `
 display: flex;
 align-items: center;
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 white-space: nowrap;
 `, [
        A("icon", `
 color: var(--n-icon-color);
 `),
        A("base-icon", `
 color: var(--n-icon-color);
 `)
      ])
    ]),
    G("disabled", `
 cursor: not-allowed;
 background-color: var(--n-color-disabled);
 `, [
      V("border", "border: var(--n-border-disabled);"),
      V("input-el, textarea-el", `
 cursor: not-allowed;
 color: var(--n-text-color-disabled);
 text-decoration-color: var(--n-text-color-disabled);
 `),
      V("placeholder", "color: var(--n-placeholder-color-disabled);"),
      V("separator", "color: var(--n-text-color-disabled);", [
        A("icon", `
 color: var(--n-icon-color-disabled);
 `),
        A("base-icon", `
 color: var(--n-icon-color-disabled);
 `)
      ]),
      A("input-word-count", `
 color: var(--n-count-text-color-disabled);
 `),
      V("suffix, prefix", "color: var(--n-text-color-disabled);", [
        A("icon", `
 color: var(--n-icon-color-disabled);
 `),
        A("internal-icon", `
 color: var(--n-icon-color-disabled);
 `)
      ])
    ]),
    At("disabled", [
      V("eye", `
 color: var(--n-icon-color);
 cursor: pointer;
 `, [
        W("&:hover", `
 color: var(--n-icon-color-hover);
 `),
        W("&:active", `
 color: var(--n-icon-color-pressed);
 `)
      ]),
      W("&:hover", [
        V("state-border", "border: var(--n-border-hover);")
      ]),
      G("focus", "background-color: var(--n-color-focus);", [
        V("state-border", `
 border: var(--n-border-focus);
 box-shadow: var(--n-box-shadow-focus);
 `)
      ])
    ]),
    V("border, state-border", `
 box-sizing: border-box;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 pointer-events: none;
 border-radius: inherit;
 border: var(--n-border);
 transition:
 box-shadow .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `),
    V("state-border", `
 border-color: #0000;
 z-index: 1;
 `),
    V("prefix", "margin-right: 4px;"),
    V("suffix", `
 margin-left: 4px;
 `),
    V("suffix, prefix", `
 transition: color .3s var(--n-bezier);
 flex-wrap: nowrap;
 flex-shrink: 0;
 line-height: var(--n-height);
 white-space: nowrap;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 color: var(--n-suffix-text-color);
 `, [
      A("base-loading", `
 font-size: var(--n-icon-size);
 margin: 0 2px;
 color: var(--n-loading-color);
 `),
      A("base-clear", `
 font-size: var(--n-icon-size);
 `, [
        V("placeholder", [
          A("base-icon", `
 transition: color .3s var(--n-bezier);
 color: var(--n-icon-color);
 font-size: var(--n-icon-size);
 `)
        ])
      ]),
      W(">", [
        A("icon", `
 transition: color .3s var(--n-bezier);
 color: var(--n-icon-color);
 font-size: var(--n-icon-size);
 `)
      ]),
      A("base-icon", `
 font-size: var(--n-icon-size);
 `)
    ]),
    A("input-word-count", `
 pointer-events: none;
 line-height: 1.5;
 font-size: .85em;
 color: var(--n-count-text-color);
 transition: color .3s var(--n-bezier);
 margin-left: 4px;
 font-variant: tabular-nums;
 `),
    [
      "warning",
      "error"
    ].map((e) => G(`${e}-status`, [
      At("disabled", [
        A("base-loading", `
 color: var(--n-loading-color-${e})
 `),
        V("input-el, textarea-el", `
 caret-color: var(--n-caret-color-${e});
 `),
        V("state-border", `
 border: var(--n-border-${e});
 `),
        W("&:hover", [
          V("state-border", `
 border: var(--n-border-hover-${e});
 `)
        ]),
        W("&:focus", `
 background-color: var(--n-color-focus-${e});
 `, [
          V("state-border", `
 box-shadow: var(--n-box-shadow-focus-${e});
 border: var(--n-border-focus-${e});
 `)
        ]),
        G("focus", `
 background-color: var(--n-color-focus-${e});
 `, [
          V("state-border", `
 box-shadow: var(--n-box-shadow-focus-${e});
 border: var(--n-border-focus-${e});
 `)
        ])
      ])
    ]))
  ]);
  F8 = A("input", [
    G("disabled", [
      V("input-el, textarea-el", `
 -webkit-text-fill-color: var(--n-text-color-disabled);
 `)
    ])
  ]);
  function M8(e) {
    let t = 0;
    for (const n of e) t++;
    return t;
  }
  function Dc(e) {
    return e === "" || e == null;
  }
  function L8(e) {
    const t = L(null);
    function n() {
      const { value: i } = e;
      if (!(i == null ? void 0 : i.focus)) {
        o();
        return;
      }
      const { selectionStart: a, selectionEnd: l, value: s } = i;
      if (a == null || l == null) {
        o();
        return;
      }
      t.value = {
        start: a,
        end: l,
        beforeText: s.slice(0, a),
        afterText: s.slice(l)
      };
    }
    function r() {
      var i;
      const { value: a } = t, { value: l } = e;
      if (!a || !l) return;
      const { value: s } = l, { start: c, beforeText: u, afterText: d } = a;
      let h = s.length;
      if (s.endsWith(d)) h = s.length - d.length;
      else if (s.startsWith(u)) h = u.length;
      else {
        const p = u[c - 1], f = s.indexOf(p, c - 1);
        f !== -1 && (h = f + 1);
      }
      (i = l.setSelectionRange) === null || i === void 0 || i.call(l, h, h);
    }
    function o() {
      t.value = null;
    }
    return lt(e, o), {
      recordCursor: n,
      restoreCursor: r
    };
  }
  let Pb, B8, N8, H8, j8, W8;
  Pb = pe({
    name: "InputWordCount",
    setup(e, { slots: t }) {
      const { mergedValueRef: n, maxlengthRef: r, mergedClsPrefixRef: o, countGraphemesRef: i } = je(_C), a = D(() => {
        const { value: l } = n;
        return l === null || Array.isArray(l) ? 0 : (i.value || M8)(l);
      });
      return () => {
        const { value: l } = r, { value: s } = n;
        return g("span", {
          class: `${o.value}-input-word-count`
        }, Th(t.default, {
          value: s === null || Array.isArray(s) ? "" : s
        }, () => [
          l === void 0 ? a.value : `${a.value} / ${l}`
        ]));
      };
    }
  });
  B8 = Object.assign(Object.assign({}, Fe.props), {
    bordered: {
      type: Boolean,
      default: void 0
    },
    type: {
      type: String,
      default: "text"
    },
    placeholder: [
      Array,
      String
    ],
    defaultValue: {
      type: [
        String,
        Array
      ],
      default: null
    },
    value: [
      String,
      Array
    ],
    disabled: {
      type: Boolean,
      default: void 0
    },
    size: String,
    rows: {
      type: [
        Number,
        String
      ],
      default: 3
    },
    round: Boolean,
    minlength: [
      String,
      Number
    ],
    maxlength: [
      String,
      Number
    ],
    clearable: Boolean,
    autosize: {
      type: [
        Boolean,
        Object
      ],
      default: false
    },
    pair: Boolean,
    separator: String,
    readonly: {
      type: [
        String,
        Boolean
      ],
      default: false
    },
    passivelyActivated: Boolean,
    showPasswordOn: String,
    stateful: {
      type: Boolean,
      default: true
    },
    autofocus: Boolean,
    inputProps: Object,
    resizable: {
      type: Boolean,
      default: true
    },
    showCount: Boolean,
    loading: {
      type: Boolean,
      default: void 0
    },
    allowInput: Function,
    renderCount: Function,
    onMousedown: Function,
    onKeydown: Function,
    onKeyup: [
      Function,
      Array
    ],
    onInput: [
      Function,
      Array
    ],
    onFocus: [
      Function,
      Array
    ],
    onBlur: [
      Function,
      Array
    ],
    onClick: [
      Function,
      Array
    ],
    onChange: [
      Function,
      Array
    ],
    onClear: [
      Function,
      Array
    ],
    countGraphemes: Function,
    status: String,
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    textDecoration: [
      String,
      Array
    ],
    attrSize: {
      type: Number,
      default: 20
    },
    onInputBlur: [
      Function,
      Array
    ],
    onInputFocus: [
      Function,
      Array
    ],
    onDeactivate: [
      Function,
      Array
    ],
    onActivate: [
      Function,
      Array
    ],
    onWrapperFocus: [
      Function,
      Array
    ],
    onWrapperBlur: [
      Function,
      Array
    ],
    internalDeactivateOnEnter: Boolean,
    internalForceFocus: Boolean,
    internalLoadingBeforeSuffix: {
      type: Boolean,
      default: true
    },
    showPasswordToggle: Boolean
  });
  Yr = pe({
    name: "Input",
    props: B8,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedBorderedRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = Fe("Input", "-input", I8, ym, e, t);
      CC && Lo("-input-safari", F8, t);
      const a = L(null), l = L(null), s = L(null), c = L(null), u = L(null), d = L(null), h = L(null), p = L8(h), f = L(null), { localeRef: m } = ma("Input"), b = L(e.defaultValue), y = mn($e(e, "value"), b), w = Mo(e), { mergedSizeRef: x, mergedDisabledRef: S, mergedStatusRef: _ } = w, C = L(false), k = L(false), R = L(false), P = L(false);
      let B = null;
      const E = D(() => {
        const { placeholder: he, pair: Pe } = e;
        return Pe ? Array.isArray(he) ? he : he === void 0 ? [
          "",
          ""
        ] : [
          he,
          he
        ] : he === void 0 ? [
          m.value.placeholder
        ] : [
          he
        ];
      }), M = D(() => {
        const { value: he } = R, { value: Pe } = y, { value: ot } = E;
        return !he && (Dc(Pe) || Array.isArray(Pe) && Dc(Pe[0])) && ot[0];
      }), z = D(() => {
        const { value: he } = R, { value: Pe } = y, { value: ot } = E;
        return !he && ot[1] && (Dc(Pe) || Array.isArray(Pe) && Dc(Pe[1]));
      }), U = Ct(() => e.internalForceFocus || C.value), ee = Ct(() => {
        if (S.value || e.readonly || !e.clearable || !U.value && !k.value) return false;
        const { value: he } = y, { value: Pe } = U;
        return e.pair ? !!(Array.isArray(he) && (he[0] || he[1])) && (k.value || Pe) : !!he && (k.value || Pe);
      }), ne = D(() => {
        const { showPasswordOn: he } = e;
        if (he) return he;
        if (e.showPasswordToggle) return "click";
      }), ae = L(false), ye = D(() => {
        const { textDecoration: he } = e;
        return he ? Array.isArray(he) ? he.map((Pe) => ({
          textDecoration: Pe
        })) : [
          {
            textDecoration: he
          }
        ] : [
          "",
          ""
        ];
      }), xe = L(void 0), re = () => {
        var he, Pe;
        if (e.type === "textarea") {
          const { autosize: ot } = e;
          if (ot && (xe.value = (Pe = (he = f.value) === null || he === void 0 ? void 0 : he.$el) === null || Pe === void 0 ? void 0 : Pe.offsetWidth), !l.value || typeof ot == "boolean") return;
          const { paddingTop: St, paddingBottom: It, lineHeight: Et } = window.getComputedStyle(l.value), zt = Number(St.slice(0, -2)), an = Number(It.slice(0, -2)), Gn = Number(Et.slice(0, -2)), { value: Mr } = s;
          if (!Mr) return;
          if (ot.minRows) {
            const Lr = Math.max(ot.minRows, 1), Ho = `${zt + an + Gn * Lr}px`;
            Mr.style.minHeight = Ho;
          }
          if (ot.maxRows) {
            const Lr = `${zt + an + Gn * ot.maxRows}px`;
            Mr.style.maxHeight = Lr;
          }
        }
      }, Y = D(() => {
        const { maxlength: he } = e;
        return he === void 0 ? void 0 : Number(he);
      });
      gt(() => {
        const { value: he } = y;
        Array.isArray(he) || _t(he);
      });
      const H = Vn().proxy;
      function oe(he, Pe) {
        const { onUpdateValue: ot, "onUpdate:value": St, onInput: It } = e, { nTriggerFormInput: Et } = w;
        ot && Te(ot, he, Pe), St && Te(St, he, Pe), It && Te(It, he, Pe), b.value = he, Et();
      }
      function ce(he, Pe) {
        const { onChange: ot } = e, { nTriggerFormChange: St } = w;
        ot && Te(ot, he, Pe), b.value = he, St();
      }
      function be(he) {
        const { onBlur: Pe } = e, { nTriggerFormBlur: ot } = w;
        Pe && Te(Pe, he), ot();
      }
      function ie(he) {
        const { onFocus: Pe } = e, { nTriggerFormFocus: ot } = w;
        Pe && Te(Pe, he), ot();
      }
      function fe(he) {
        const { onClear: Pe } = e;
        Pe && Te(Pe, he);
      }
      function F(he) {
        const { onInputBlur: Pe } = e;
        Pe && Te(Pe, he);
      }
      function se(he) {
        const { onInputFocus: Pe } = e;
        Pe && Te(Pe, he);
      }
      function ze() {
        const { onDeactivate: he } = e;
        he && Te(he);
      }
      function q() {
        const { onActivate: he } = e;
        he && Te(he);
      }
      function J(he) {
        const { onClick: Pe } = e;
        Pe && Te(Pe, he);
      }
      function le(he) {
        const { onWrapperFocus: Pe } = e;
        Pe && Te(Pe, he);
      }
      function we(he) {
        const { onWrapperBlur: Pe } = e;
        Pe && Te(Pe, he);
      }
      function ke() {
        R.value = true;
      }
      function _e(he) {
        R.value = false, he.target === d.value ? K(he, 1) : K(he, 0);
      }
      function K(he, Pe = 0, ot = "input") {
        const St = he.target.value;
        if (_t(St), he instanceof InputEvent && !he.isComposing && (R.value = false), e.type === "textarea") {
          const { value: Et } = f;
          Et && Et.syncUnifiedContainer();
        }
        if (B = St, R.value) return;
        p.recordCursor();
        const It = N(St);
        if (It) if (!e.pair) ot === "input" ? oe(St, {
          source: Pe
        }) : ce(St, {
          source: Pe
        });
        else {
          let { value: Et } = y;
          Array.isArray(Et) ? Et = [
            Et[0],
            Et[1]
          ] : Et = [
            "",
            ""
          ], Et[Pe] = St, ot === "input" ? oe(Et, {
            source: Pe
          }) : ce(Et, {
            source: Pe
          });
        }
        H.$forceUpdate(), It || sn(p.restoreCursor);
      }
      function N(he) {
        const { countGraphemes: Pe, maxlength: ot, minlength: St } = e;
        if (Pe) {
          let Et;
          if (ot !== void 0 && (Et === void 0 && (Et = Pe(he)), Et > Number(ot)) || St !== void 0 && (Et === void 0 && (Et = Pe(he)), Et < Number(ot))) return false;
        }
        const { allowInput: It } = e;
        return typeof It == "function" ? It(he) : true;
      }
      function j(he) {
        F(he), he.relatedTarget === a.value && ze(), he.relatedTarget !== null && (he.relatedTarget === u.value || he.relatedTarget === d.value || he.relatedTarget === l.value) || (P.value = false), I(he, "blur"), h.value = null;
      }
      function X(he, Pe) {
        se(he), C.value = true, P.value = true, q(), I(he, "focus"), Pe === 0 ? h.value = u.value : Pe === 1 ? h.value = d.value : Pe === 2 && (h.value = l.value);
      }
      function ge(he) {
        e.passivelyActivated && (we(he), I(he, "blur"));
      }
      function te(he) {
        e.passivelyActivated && (C.value = true, le(he), I(he, "focus"));
      }
      function I(he, Pe) {
        he.relatedTarget !== null && (he.relatedTarget === u.value || he.relatedTarget === d.value || he.relatedTarget === l.value || he.relatedTarget === a.value) || (Pe === "focus" ? (ie(he), C.value = true) : Pe === "blur" && (be(he), C.value = false));
      }
      function Z(he, Pe) {
        K(he, Pe, "change");
      }
      function Ce(he) {
        J(he);
      }
      function De(he) {
        fe(he), qe();
      }
      function qe() {
        e.pair ? (oe([
          "",
          ""
        ], {
          source: "clear"
        }), ce([
          "",
          ""
        ], {
          source: "clear"
        })) : (oe("", {
          source: "clear"
        }), ce("", {
          source: "clear"
        }));
      }
      function ut(he) {
        const { onMousedown: Pe } = e;
        Pe && Pe(he);
        const { tagName: ot } = he.target;
        if (ot !== "INPUT" && ot !== "TEXTAREA") {
          if (e.resizable) {
            const { value: St } = a;
            if (St) {
              const { left: It, top: Et, width: zt, height: an } = St.getBoundingClientRect(), Gn = 14;
              if (It + zt - Gn < he.clientX && he.clientX < It + zt && Et + an - Gn < he.clientY && he.clientY < Et + an) return;
            }
          }
          he.preventDefault(), C.value || Ee();
        }
      }
      function Ze() {
        var he;
        k.value = true, e.type === "textarea" && ((he = f.value) === null || he === void 0 || he.handleMouseEnterWrapper());
      }
      function rt() {
        var he;
        k.value = false, e.type === "textarea" && ((he = f.value) === null || he === void 0 || he.handleMouseLeaveWrapper());
      }
      function Ne() {
        S.value || ne.value === "click" && (ae.value = !ae.value);
      }
      function bt(he) {
        if (S.value) return;
        he.preventDefault();
        const Pe = (St) => {
          St.preventDefault(), Rt("mouseup", document, Pe);
        };
        if (Dt("mouseup", document, Pe), ne.value !== "mousedown") return;
        ae.value = true;
        const ot = () => {
          ae.value = false, Rt("mouseup", document, ot);
        };
        Dt("mouseup", document, ot);
      }
      function We(he) {
        e.onKeyup && Te(e.onKeyup, he);
      }
      function Ge(he) {
        switch (e.onKeydown && Te(e.onKeydown, he), he.key) {
          case "Escape":
            me();
            break;
          case "Enter":
            Q(he);
            break;
        }
      }
      function Q(he) {
        var Pe, ot;
        if (e.passivelyActivated) {
          const { value: St } = P;
          if (St) {
            e.internalDeactivateOnEnter && me();
            return;
          }
          he.preventDefault(), e.type === "textarea" ? (Pe = l.value) === null || Pe === void 0 || Pe.focus() : (ot = u.value) === null || ot === void 0 || ot.focus();
        }
      }
      function me() {
        e.passivelyActivated && (P.value = false, sn(() => {
          var he;
          (he = a.value) === null || he === void 0 || he.focus();
        }));
      }
      function Ee() {
        var he, Pe, ot;
        S.value || (e.passivelyActivated ? (he = a.value) === null || he === void 0 || he.focus() : ((Pe = l.value) === null || Pe === void 0 || Pe.focus(), (ot = u.value) === null || ot === void 0 || ot.focus()));
      }
      function He() {
        var he;
        !((he = a.value) === null || he === void 0) && he.contains(document.activeElement) && document.activeElement.blur();
      }
      function Ve() {
        var he, Pe;
        (he = l.value) === null || he === void 0 || he.select(), (Pe = u.value) === null || Pe === void 0 || Pe.select();
      }
      function Ke() {
        S.value || (l.value ? l.value.focus() : u.value && u.value.focus());
      }
      function Xe() {
        const { value: he } = a;
        (he == null ? void 0 : he.contains(document.activeElement)) && he !== document.activeElement && me();
      }
      function Qe(he) {
        if (e.type === "textarea") {
          const { value: Pe } = l;
          Pe == null ? void 0 : Pe.scrollTo(he);
        } else {
          const { value: Pe } = u;
          Pe == null ? void 0 : Pe.scrollTo(he);
        }
      }
      function _t(he) {
        const { type: Pe, pair: ot, autosize: St } = e;
        if (!ot && St) if (Pe === "textarea") {
          const { value: It } = s;
          It && (It.textContent = `${he ?? ""}\r
`);
        } else {
          const { value: It } = c;
          It && (he ? It.textContent = he : It.innerHTML = "&nbsp;");
        }
      }
      function Mt() {
        re();
      }
      const ct = L({
        top: "0"
      });
      function on(he) {
        var Pe;
        const { scrollTop: ot } = he.target;
        ct.value.top = `${-ot}px`, (Pe = f.value) === null || Pe === void 0 || Pe.syncUnifiedContainer();
      }
      let Dn = null;
      fn(() => {
        const { autosize: he, type: Pe } = e;
        he && Pe === "textarea" ? Dn = lt(y, (ot) => {
          !Array.isArray(ot) && ot !== B && _t(ot);
        }) : Dn == null ? void 0 : Dn();
      });
      let Sn = null;
      fn(() => {
        e.type === "textarea" ? Sn = lt(y, (he) => {
          var Pe;
          !Array.isArray(he) && he !== B && ((Pe = f.value) === null || Pe === void 0 || Pe.syncUnifiedContainer());
        }) : Sn == null ? void 0 : Sn();
      }), ft(_C, {
        mergedValueRef: y,
        maxlengthRef: Y,
        mergedClsPrefixRef: t,
        countGraphemesRef: $e(e, "countGraphemes")
      });
      const _n = {
        wrapperElRef: a,
        inputElRef: u,
        textareaElRef: l,
        isCompositing: R,
        clear: qe,
        focus: Ee,
        blur: He,
        select: Ve,
        deactivate: Xe,
        activate: Ke,
        scrollTo: Qe
      }, $n = rn("Input", o, t), Hn = D(() => {
        const { value: he } = x, { common: { cubicBezierEaseInOut: Pe }, self: { color: ot, borderRadius: St, textColor: It, caretColor: Et, caretColorError: zt, caretColorWarning: an, textDecorationColor: Gn, border: Mr, borderDisabled: Lr, borderHover: Ho, borderFocus: st, placeholderColor: ue, placeholderColorDisabled: Le, lineHeightTextarea: nt, colorDisabled: Vt, colorFocus: cn, textColorDisabled: en, boxShadowFocus: Nn, iconSize: Cr, colorFocusWarning: mo, boxShadowFocusWarning: Ni, borderWarning: xn, borderFocusWarning: za, borderHoverWarning: Oa, colorFocusError: Ld, boxShadowFocusError: Bd, borderError: Nd, borderFocusError: Hd, borderHoverError: dk, clearSize: fk, clearColor: hk, clearColorHover: pk, clearColorPressed: mk, iconColor: gk, iconColorDisabled: vk, suffixTextColor: bk, countTextColor: yk, countTextColorDisabled: xk, iconColorHover: wk, iconColorPressed: Ck, loadingColor: Sk, loadingColorError: _k, loadingColorWarning: kk, fontWeight: Rk, [Se("padding", he)]: Ak, [Se("fontSize", he)]: Ek, [Se("height", he)]: Tk } } = i.value, { left: Pk, right: Dk } = En(Ak);
        return {
          "--n-bezier": Pe,
          "--n-count-text-color": yk,
          "--n-count-text-color-disabled": xk,
          "--n-color": ot,
          "--n-font-size": Ek,
          "--n-font-weight": Rk,
          "--n-border-radius": St,
          "--n-height": Tk,
          "--n-padding-left": Pk,
          "--n-padding-right": Dk,
          "--n-text-color": It,
          "--n-caret-color": Et,
          "--n-text-decoration-color": Gn,
          "--n-border": Mr,
          "--n-border-disabled": Lr,
          "--n-border-hover": Ho,
          "--n-border-focus": st,
          "--n-placeholder-color": ue,
          "--n-placeholder-color-disabled": Le,
          "--n-icon-size": Cr,
          "--n-line-height-textarea": nt,
          "--n-color-disabled": Vt,
          "--n-color-focus": cn,
          "--n-text-color-disabled": en,
          "--n-box-shadow-focus": Nn,
          "--n-loading-color": Sk,
          "--n-caret-color-warning": an,
          "--n-color-focus-warning": mo,
          "--n-box-shadow-focus-warning": Ni,
          "--n-border-warning": xn,
          "--n-border-focus-warning": za,
          "--n-border-hover-warning": Oa,
          "--n-loading-color-warning": kk,
          "--n-caret-color-error": zt,
          "--n-color-focus-error": Ld,
          "--n-box-shadow-focus-error": Bd,
          "--n-border-error": Nd,
          "--n-border-focus-error": Hd,
          "--n-border-hover-error": dk,
          "--n-loading-color-error": _k,
          "--n-clear-color": hk,
          "--n-clear-size": fk,
          "--n-clear-color-hover": pk,
          "--n-clear-color-pressed": mk,
          "--n-icon-color": gk,
          "--n-icon-color-hover": wk,
          "--n-icon-color-pressed": Ck,
          "--n-icon-color-disabled": vk,
          "--n-suffix-text-color": bk
        };
      }), qn = r ? xt("input", D(() => {
        const { value: he } = x;
        return he[0];
      }), Hn, e) : void 0;
      return Object.assign(Object.assign({}, _n), {
        wrapperElRef: a,
        inputElRef: u,
        inputMirrorElRef: c,
        inputEl2Ref: d,
        textareaElRef: l,
        textareaMirrorElRef: s,
        textareaScrollbarInstRef: f,
        rtlEnabled: $n,
        uncontrolledValue: b,
        mergedValue: y,
        passwordVisible: ae,
        mergedPlaceholder: E,
        showPlaceholder1: M,
        showPlaceholder2: z,
        mergedFocus: U,
        isComposing: R,
        activated: P,
        showClearButton: ee,
        mergedSize: x,
        mergedDisabled: S,
        textDecorationStyle: ye,
        mergedClsPrefix: t,
        mergedBordered: n,
        mergedShowPasswordOn: ne,
        placeholderStyle: ct,
        mergedStatus: _,
        textAreaScrollContainerWidth: xe,
        handleTextAreaScroll: on,
        handleCompositionStart: ke,
        handleCompositionEnd: _e,
        handleInput: K,
        handleInputBlur: j,
        handleInputFocus: X,
        handleWrapperBlur: ge,
        handleWrapperFocus: te,
        handleMouseEnter: Ze,
        handleMouseLeave: rt,
        handleMouseDown: ut,
        handleChange: Z,
        handleClick: Ce,
        handleClear: De,
        handlePasswordToggleClick: Ne,
        handlePasswordToggleMousedown: bt,
        handleWrapperKeydown: Ge,
        handleWrapperKeyup: We,
        handleTextAreaMirrorResize: Mt,
        getTextareaScrollContainer: () => l.value,
        mergedTheme: i,
        cssVars: r ? void 0 : Hn,
        themeClass: qn == null ? void 0 : qn.themeClass,
        onRender: qn == null ? void 0 : qn.onRender
      });
    },
    render() {
      var e, t, n, r, o, i, a;
      const { mergedClsPrefix: l, mergedStatus: s, themeClass: c, type: u, countGraphemes: d, onRender: h } = this, p = this.$slots;
      return h == null ? void 0 : h(), g("div", {
        ref: "wrapperElRef",
        class: [
          `${l}-input`,
          c,
          s && `${l}-input--${s}-status`,
          {
            [`${l}-input--rtl`]: this.rtlEnabled,
            [`${l}-input--disabled`]: this.mergedDisabled,
            [`${l}-input--textarea`]: u === "textarea",
            [`${l}-input--resizable`]: this.resizable && !this.autosize,
            [`${l}-input--autosize`]: this.autosize,
            [`${l}-input--round`]: this.round && u !== "textarea",
            [`${l}-input--pair`]: this.pair,
            [`${l}-input--focus`]: this.mergedFocus,
            [`${l}-input--stateful`]: this.stateful
          }
        ],
        style: this.cssVars,
        tabindex: !this.mergedDisabled && this.passivelyActivated && !this.activated ? 0 : void 0,
        onFocus: this.handleWrapperFocus,
        onBlur: this.handleWrapperBlur,
        onClick: this.handleClick,
        onMousedown: this.handleMouseDown,
        onMouseenter: this.handleMouseEnter,
        onMouseleave: this.handleMouseLeave,
        onCompositionstart: this.handleCompositionStart,
        onCompositionend: this.handleCompositionEnd,
        onKeyup: this.handleWrapperKeyup,
        onKeydown: this.handleWrapperKeydown
      }, g("div", {
        class: `${l}-input-wrapper`
      }, Pt(p.prefix, (f) => f && g("div", {
        class: `${l}-input__prefix`
      }, f)), u === "textarea" ? g(Bo, {
        ref: "textareaScrollbarInstRef",
        class: `${l}-input__textarea`,
        container: this.getTextareaScrollContainer,
        theme: (t = (e = this.theme) === null || e === void 0 ? void 0 : e.peers) === null || t === void 0 ? void 0 : t.Scrollbar,
        themeOverrides: (r = (n = this.themeOverrides) === null || n === void 0 ? void 0 : n.peers) === null || r === void 0 ? void 0 : r.Scrollbar,
        triggerDisplayManually: true,
        useUnifiedContainer: true,
        internalHoistYRail: true
      }, {
        default: () => {
          var f, m;
          const { textAreaScrollContainerWidth: b } = this, v = {
            width: this.autosize && b && `${b}px`
          };
          return g(wt, null, g("textarea", Object.assign({}, this.inputProps, {
            ref: "textareaElRef",
            class: [
              `${l}-input__textarea-el`,
              (f = this.inputProps) === null || f === void 0 ? void 0 : f.class
            ],
            autofocus: this.autofocus,
            rows: Number(this.rows),
            placeholder: this.placeholder,
            value: this.mergedValue,
            disabled: this.mergedDisabled,
            maxlength: d ? void 0 : this.maxlength,
            minlength: d ? void 0 : this.minlength,
            readonly: this.readonly,
            tabindex: this.passivelyActivated && !this.activated ? -1 : void 0,
            style: [
              this.textDecorationStyle[0],
              (m = this.inputProps) === null || m === void 0 ? void 0 : m.style,
              v
            ],
            onBlur: this.handleInputBlur,
            onFocus: (y) => {
              this.handleInputFocus(y, 2);
            },
            onInput: this.handleInput,
            onChange: this.handleChange,
            onScroll: this.handleTextAreaScroll
          })), this.showPlaceholder1 ? g("div", {
            class: `${l}-input__placeholder`,
            style: [
              this.placeholderStyle,
              v
            ],
            key: "placeholder"
          }, this.mergedPlaceholder[0]) : null, this.autosize ? g(Vr, {
            onResize: this.handleTextAreaMirrorResize
          }, {
            default: () => g("div", {
              ref: "textareaMirrorElRef",
              class: `${l}-input__textarea-mirror`,
              key: "mirror"
            })
          }) : null);
        }
      }) : g("div", {
        class: `${l}-input__input`
      }, g("input", Object.assign({
        type: u === "password" && this.mergedShowPasswordOn && this.passwordVisible ? "text" : u
      }, this.inputProps, {
        ref: "inputElRef",
        class: [
          `${l}-input__input-el`,
          (o = this.inputProps) === null || o === void 0 ? void 0 : o.class
        ],
        style: [
          this.textDecorationStyle[0],
          (i = this.inputProps) === null || i === void 0 ? void 0 : i.style
        ],
        tabindex: this.passivelyActivated && !this.activated ? -1 : (a = this.inputProps) === null || a === void 0 ? void 0 : a.tabindex,
        placeholder: this.mergedPlaceholder[0],
        disabled: this.mergedDisabled,
        maxlength: d ? void 0 : this.maxlength,
        minlength: d ? void 0 : this.minlength,
        value: Array.isArray(this.mergedValue) ? this.mergedValue[0] : this.mergedValue,
        readonly: this.readonly,
        autofocus: this.autofocus,
        size: this.attrSize,
        onBlur: this.handleInputBlur,
        onFocus: (f) => {
          this.handleInputFocus(f, 0);
        },
        onInput: (f) => {
          this.handleInput(f, 0);
        },
        onChange: (f) => {
          this.handleChange(f, 0);
        }
      })), this.showPlaceholder1 ? g("div", {
        class: `${l}-input__placeholder`
      }, g("span", null, this.mergedPlaceholder[0])) : null, this.autosize ? g("div", {
        class: `${l}-input__input-mirror`,
        key: "mirror",
        ref: "inputMirrorElRef"
      }, "\xA0") : null), !this.pair && Pt(p.suffix, (f) => f || this.clearable || this.showCount || this.mergedShowPasswordOn || this.loading !== void 0 ? g("div", {
        class: `${l}-input__suffix`
      }, [
        Pt(p["clear-icon-placeholder"], (m) => (this.clearable || m) && g(Nh, {
          clsPrefix: l,
          show: this.showClearButton,
          onClear: this.handleClear
        }, {
          placeholder: () => m,
          icon: () => {
            var b, v;
            return (v = (b = this.$slots)["clear-icon"]) === null || v === void 0 ? void 0 : v.call(b);
          }
        })),
        this.internalLoadingBeforeSuffix ? null : f,
        this.loading !== void 0 ? g(gC, {
          clsPrefix: l,
          loading: this.loading,
          showArrow: false,
          showClear: false,
          style: this.cssVars
        }) : null,
        this.internalLoadingBeforeSuffix ? f : null,
        this.showCount && this.type !== "textarea" ? g(Pb, null, {
          default: (m) => {
            var b;
            const { renderCount: v } = this;
            return v ? v(m) : (b = p.count) === null || b === void 0 ? void 0 : b.call(p, m);
          }
        }) : null,
        this.mergedShowPasswordOn && this.type === "password" ? g("div", {
          class: `${l}-input__eye`,
          onMousedown: this.handlePasswordToggleMousedown,
          onClick: this.handlePasswordToggleClick
        }, this.passwordVisible ? In(p["password-visible-icon"], () => [
          g(Jt, {
            clsPrefix: l
          }, {
            default: () => g(uz, null)
          })
        ]) : In(p["password-invisible-icon"], () => [
          g(Jt, {
            clsPrefix: l
          }, {
            default: () => g(dz, null)
          })
        ])) : null
      ]) : null)), this.pair ? g("span", {
        class: `${l}-input__separator`
      }, In(p.separator, () => [
        this.separator
      ])) : null, this.pair ? g("div", {
        class: `${l}-input-wrapper`
      }, g("div", {
        class: `${l}-input__input`
      }, g("input", {
        ref: "inputEl2Ref",
        type: this.type,
        class: `${l}-input__input-el`,
        tabindex: this.passivelyActivated && !this.activated ? -1 : void 0,
        placeholder: this.mergedPlaceholder[1],
        disabled: this.mergedDisabled,
        maxlength: d ? void 0 : this.maxlength,
        minlength: d ? void 0 : this.minlength,
        value: Array.isArray(this.mergedValue) ? this.mergedValue[1] : void 0,
        readonly: this.readonly,
        style: this.textDecorationStyle[1],
        onBlur: this.handleInputBlur,
        onFocus: (f) => {
          this.handleInputFocus(f, 1);
        },
        onInput: (f) => {
          this.handleInput(f, 1);
        },
        onChange: (f) => {
          this.handleChange(f, 1);
        }
      }), this.showPlaceholder2 ? g("div", {
        class: `${l}-input__placeholder`
      }, g("span", null, this.mergedPlaceholder[1])) : null), Pt(p.suffix, (f) => (this.clearable || f) && g("div", {
        class: `${l}-input__suffix`
      }, [
        this.clearable && g(Nh, {
          clsPrefix: l,
          show: this.showClearButton,
          onClear: this.handleClear
        }, {
          icon: () => {
            var m;
            return (m = p["clear-icon"]) === null || m === void 0 ? void 0 : m.call(p);
          },
          placeholder: () => {
            var m;
            return (m = p["clear-icon-placeholder"]) === null || m === void 0 ? void 0 : m.call(p);
          }
        }),
        f
      ]))) : null, this.mergedBordered ? g("div", {
        class: `${l}-input__border`
      }) : null, this.mergedBordered ? g("div", {
        class: `${l}-input__state-border`
      }) : null, this.showCount && u === "textarea" ? g(Pb, null, {
        default: (f) => {
          var m;
          const { renderCount: b } = this;
          return b ? b(f) : (m = p.count) === null || m === void 0 ? void 0 : m.call(p, f);
        }
      }) : null);
    }
  });
  N8 = A("input-group", `
 display: inline-flex;
 width: 100%;
 flex-wrap: nowrap;
 vertical-align: bottom;
`, [
    W(">", [
      A("input", [
        W("&:not(:last-child)", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),
        W("&:not(:first-child)", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 margin-left: -1px!important;
 `)
      ]),
      A("button", [
        W("&:not(:last-child)", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `, [
          V("state-border, border", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)
        ]),
        W("&:not(:first-child)", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `, [
          V("state-border, border", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)
        ])
      ]),
      W("*", [
        W("&:not(:last-child)", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `, [
          W(">", [
            A("input", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),
            A("base-selection", [
              A("base-selection-label", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),
              A("base-selection-tags", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),
              V("box-shadow, border, state-border", `
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)
            ])
          ])
        ]),
        W("&:not(:first-child)", `
 margin-left: -1px!important;
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `, [
          W(">", [
            A("input", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),
            A("base-selection", [
              A("base-selection-label", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),
              A("base-selection-tags", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),
              V("box-shadow, border, state-border", `
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)
            ])
          ])
        ])
      ])
    ])
  ]);
  H8 = {};
  gd = pe({
    name: "InputGroup",
    props: H8,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e);
      return Lo("-input-group", N8, t), {
        mergedClsPrefix: t
      };
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g("div", {
        class: `${e}-input-group`
      }, this.$slots);
    }
  });
  j8 = A("input-group-label", `
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 box-sizing: border-box;
 padding: 0 12px;
 display: inline-block;
 border-radius: var(--n-border-radius);
 background-color: var(--n-group-label-color);
 color: var(--n-group-label-text-color);
 font-size: var(--n-font-size);
 line-height: var(--n-height);
 height: var(--n-height);
 flex-shrink: 0;
 white-space: nowrap;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
`, [
    V("border", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
 border: var(--n-group-label-border);
 transition: border-color .3s var(--n-bezier);
 `)
  ]);
  W8 = Object.assign(Object.assign({}, Fe.props), {
    size: String,
    bordered: {
      type: Boolean,
      default: void 0
    }
  });
  U8 = pe({
    name: "InputGroupLabel",
    props: W8,
    setup(e) {
      const { mergedBorderedRef: t, mergedClsPrefixRef: n, inlineThemeDisabled: r } = at(e), o = Mo(e), { mergedSizeRef: i } = o, a = Fe("Input", "-input-group-label", j8, ym, e, n), l = D(() => {
        const { value: c } = i, { common: { cubicBezierEaseInOut: u }, self: { groupLabelColor: d, borderRadius: h, groupLabelTextColor: p, lineHeight: f, groupLabelBorder: m, [Se("fontSize", c)]: b, [Se("height", c)]: v } } = a.value;
        return {
          "--n-bezier": u,
          "--n-group-label-color": d,
          "--n-group-label-border": m,
          "--n-border-radius": h,
          "--n-group-label-text-color": p,
          "--n-font-size": b,
          "--n-line-height": f,
          "--n-height": v
        };
      }), s = r ? xt("input-group-label", D(() => {
        const { value: c } = i;
        return c[0];
      }), l, e) : void 0;
      return {
        mergedClsPrefix: n,
        mergedBordered: t,
        cssVars: r ? void 0 : l,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender
      };
    },
    render() {
      var e, t, n;
      const { mergedClsPrefix: r } = this;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${r}-input-group-label`,
          this.themeClass
        ],
        style: this.cssVars
      }, (n = (t = this.$slots).default) === null || n === void 0 ? void 0 : n.call(t), this.mergedBordered ? g("div", {
        class: `${r}-input-group-label__border`
      }) : null);
    }
  });
  function Pu(e) {
    return e.type === "group";
  }
  function kC(e) {
    return e.type === "ignored";
  }
  function wf(e, t) {
    try {
      return !!(1 + t.toString().toLowerCase().indexOf(e.trim().toLowerCase()));
    } catch {
      return false;
    }
  }
  function RC(e, t) {
    return {
      getIsGroup: Pu,
      getIgnored: kC,
      getKey(r) {
        return Pu(r) ? r.name || r.key || "key-required" : r[e];
      },
      getChildren(r) {
        return r[t];
      }
    };
  }
  function V8(e, t, n, r) {
    if (!t) return e;
    function o(i) {
      if (!Array.isArray(i)) return [];
      const a = [];
      for (const l of i) if (Pu(l)) {
        const s = o(l[r]);
        s.length && a.push(Object.assign({}, l, {
          [r]: s
        }));
      } else {
        if (kC(l)) continue;
        t(n, l) && a.push(l);
      }
      return a;
    }
    return o(e);
  }
  function q8(e, t, n) {
    const r = /* @__PURE__ */ new Map();
    return e.forEach((o) => {
      Pu(o) ? o[n].forEach((i) => {
        r.set(i[t], i);
      }) : r.set(o[t], o);
    }), r;
  }
  function G8(e) {
    const { boxShadow2: t } = e;
    return {
      menuBoxShadow: t
    };
  }
  const K8 = {
    name: "AutoComplete",
    common: Ue,
    peers: {
      InternalSelectMenu: Js,
      Input: Fr
    },
    self: G8
  }, Y8 = ui && "loading" in document.createElement("img");
  function X8(e = {}) {
    var t;
    const { root: n = null } = e;
    return {
      hash: `${e.rootMargin || "0px 0px 0px 0px"}-${Array.isArray(e.threshold) ? e.threshold.join(",") : (t = e.threshold) !== null && t !== void 0 ? t : "0"}`,
      options: Object.assign(Object.assign({}, e), {
        root: (typeof n == "string" ? document.querySelector(n) : n) || document.documentElement
      })
    };
  }
  const Cf = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), _f = /* @__PURE__ */ new WeakMap(), J8 = (e, t, n) => {
    if (!e) return () => {
    };
    const r = X8(t), { root: o } = r.options;
    let i;
    const a = Cf.get(o);
    a ? i = a : (i = /* @__PURE__ */ new Map(), Cf.set(o, i));
    let l, s;
    i.has(r.hash) ? (s = i.get(r.hash), s[1].has(e) || (l = s[0], s[1].add(e), l.observe(e))) : (l = new IntersectionObserver((d) => {
      d.forEach((h) => {
        if (h.isIntersecting) {
          const p = Sf.get(h.target), f = _f.get(h.target);
          p && p(), f && (f.value = true);
        }
      });
    }, r.options), l.observe(e), s = [
      l,
      /* @__PURE__ */ new Set([
        e
      ])
    ], i.set(r.hash, s));
    let c = false;
    const u = () => {
      c || (Sf.delete(e), _f.delete(e), c = true, s[1].has(e) && (s[0].unobserve(e), s[1].delete(e)), s[1].size <= 0 && i.delete(r.hash), i.size || Cf.delete(o));
    };
    return Sf.set(e, u), _f.set(e, n), u;
  };
  function AC(e) {
    const { borderRadius: t, avatarColor: n, cardColor: r, fontSize: o, heightTiny: i, heightSmall: a, heightMedium: l, heightLarge: s, heightHuge: c, modalColor: u, popoverColor: d } = e;
    return {
      borderRadius: t,
      fontSize: o,
      border: `2px solid ${r}`,
      heightTiny: i,
      heightSmall: a,
      heightMedium: l,
      heightLarge: s,
      heightHuge: c,
      color: Ye(r, n),
      colorModal: Ye(u, n),
      colorPopover: Ye(d, n)
    };
  }
  const Z8 = {
    common: mt,
    self: AC
  }, EC = {
    name: "Avatar",
    common: Ue,
    self: AC
  }, Q8 = "n-avatar-group", eO = A("avatar", `
 width: var(--n-merged-size);
 height: var(--n-merged-size);
 color: #FFF;
 font-size: var(--n-font-size);
 display: inline-flex;
 position: relative;
 overflow: hidden;
 text-align: center;
 border: var(--n-border);
 border-radius: var(--n-border-radius);
 --n-merged-color: var(--n-color);
 background-color: var(--n-merged-color);
 transition:
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
`, [
    ya(W("&", "--n-merged-color: var(--n-color-modal);")),
    Sl(W("&", "--n-merged-color: var(--n-color-popover);")),
    W("img", `
 width: 100%;
 height: 100%;
 `),
    V("text", `
 white-space: nowrap;
 display: inline-block;
 position: absolute;
 left: 50%;
 top: 50%;
 `),
    A("icon", `
 vertical-align: bottom;
 font-size: calc(var(--n-merged-size) - 6px);
 `),
    V("text", "line-height: 1.25")
  ]), tO = Object.assign(Object.assign({}, Fe.props), {
    size: [
      String,
      Number
    ],
    src: String,
    circle: {
      type: Boolean,
      default: void 0
    },
    objectFit: String,
    round: {
      type: Boolean,
      default: void 0
    },
    bordered: {
      type: Boolean,
      default: void 0
    },
    onError: Function,
    fallbackSrc: String,
    intersectionObserverOptions: Object,
    lazy: Boolean,
    onLoad: Function,
    renderPlaceholder: Function,
    renderFallback: Function,
    imgProps: Object,
    color: String
  }), nO = pe({
    name: "Avatar",
    props: tO,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = L(false);
      let o = null;
      const i = L(null), a = L(null), l = () => {
        const { value: y } = i;
        if (y && (o === null || o !== y.innerHTML)) {
          o = y.innerHTML;
          const { value: w } = a;
          if (w) {
            const { offsetWidth: x, offsetHeight: S } = w, { offsetWidth: _, offsetHeight: C } = y, k = 0.9, R = Math.min(x / _ * k, S / C * k, 1);
            y.style.transform = `translateX(-50%) translateY(-50%) scale(${R})`;
          }
        }
      }, s = je(Q8, null), c = D(() => {
        const { size: y } = e;
        if (y) return y;
        const { size: w } = s || {};
        return w || "medium";
      }), u = Fe("Avatar", "-avatar", eO, Z8, e, t), d = je(mC, null), h = D(() => {
        if (s) return true;
        const { round: y, circle: w } = e;
        return y !== void 0 || w !== void 0 ? y || w : d ? d.roundRef.value : false;
      }), p = D(() => s ? true : e.bordered || false), f = D(() => {
        const y = c.value, w = h.value, x = p.value, { color: S } = e, { self: { borderRadius: _, fontSize: C, color: k, border: R, colorModal: P, colorPopover: B }, common: { cubicBezierEaseInOut: E } } = u.value;
        let M;
        return typeof y == "number" ? M = `${y}px` : M = u.value.self[Se("height", y)], {
          "--n-font-size": C,
          "--n-border": x ? R : "none",
          "--n-border-radius": w ? "50%" : _,
          "--n-color": S || k,
          "--n-color-modal": S || P,
          "--n-color-popover": S || B,
          "--n-bezier": E,
          "--n-merged-size": `var(--n-avatar-size-override, ${M})`
        };
      }), m = n ? xt("avatar", D(() => {
        const y = c.value, w = h.value, x = p.value, { color: S } = e;
        let _ = "";
        return y && (typeof y == "number" ? _ += `a${y}` : _ += y[0]), w && (_ += "b"), x && (_ += "c"), S && (_ += dl(S)), _;
      }), f, e) : void 0, b = L(!e.lazy);
      gt(() => {
        if (e.lazy && e.intersectionObserverOptions) {
          let y;
          const w = fn(() => {
            y == null ? void 0 : y(), y = void 0, e.lazy && (y = J8(a.value, e.intersectionObserverOptions, b));
          });
          Zt(() => {
            w(), y == null ? void 0 : y();
          });
        }
      }), lt(() => {
        var y;
        return e.src || ((y = e.imgProps) === null || y === void 0 ? void 0 : y.src);
      }, () => {
        r.value = false;
      });
      const v = L(!e.lazy);
      return {
        textRef: i,
        selfRef: a,
        mergedRoundRef: h,
        mergedClsPrefix: t,
        fitTextTransform: l,
        cssVars: n ? void 0 : f,
        themeClass: m == null ? void 0 : m.themeClass,
        onRender: m == null ? void 0 : m.onRender,
        hasLoadError: r,
        shouldStartLoading: b,
        loaded: v,
        mergedOnError: (y) => {
          if (!b.value) return;
          r.value = true;
          const { onError: w, imgProps: { onError: x } = {} } = e;
          w == null ? void 0 : w(y), x == null ? void 0 : x(y);
        },
        mergedOnLoad: (y) => {
          const { onLoad: w, imgProps: { onLoad: x } = {} } = e;
          w == null ? void 0 : w(y), x == null ? void 0 : x(y), v.value = true;
        }
      };
    },
    render() {
      var e, t;
      const { $slots: n, src: r, mergedClsPrefix: o, lazy: i, onRender: a, loaded: l, hasLoadError: s, imgProps: c = {} } = this;
      a == null ? void 0 : a();
      let u;
      const d = !l && !s && (this.renderPlaceholder ? this.renderPlaceholder() : (t = (e = this.$slots).placeholder) === null || t === void 0 ? void 0 : t.call(e));
      return this.hasLoadError ? u = this.renderFallback ? this.renderFallback() : In(n.fallback, () => [
        g("img", {
          src: this.fallbackSrc,
          style: {
            objectFit: this.objectFit
          }
        })
      ]) : u = Pt(n.default, (h) => {
        if (h) return g(Vr, {
          onResize: this.fitTextTransform
        }, {
          default: () => g("span", {
            ref: "textRef",
            class: `${o}-avatar__text`
          }, h)
        });
        if (r || c.src) {
          const p = this.src || c.src;
          return g("img", Object.assign(Object.assign({}, c), {
            loading: Y8 && !this.intersectionObserverOptions && i ? "lazy" : "eager",
            src: i && this.intersectionObserverOptions ? this.shouldStartLoading ? p : void 0 : p,
            "data-image-src": p,
            onLoad: this.mergedOnLoad,
            onError: this.mergedOnError,
            style: [
              c.style || "",
              {
                objectFit: this.objectFit
              },
              d ? {
                height: "0",
                width: "0",
                visibility: "hidden",
                position: "absolute"
              } : ""
            ]
          }));
        }
      }), g("span", {
        ref: "selfRef",
        class: [
          `${o}-avatar`,
          this.themeClass
        ],
        style: this.cssVars
      }, u, i && d);
    }
  });
  function rO() {
    return {
      gap: "-12px"
    };
  }
  const oO = {
    name: "AvatarGroup",
    common: Ue,
    peers: {
      Avatar: EC
    },
    self: rO
  }, TC = {
    width: "44px",
    height: "44px",
    borderRadius: "22px",
    iconSize: "26px"
  }, iO = {
    name: "BackTop",
    common: Ue,
    self(e) {
      const { popoverColor: t, textColor2: n, primaryColorHover: r, primaryColorPressed: o } = e;
      return Object.assign(Object.assign({}, TC), {
        color: t,
        textColor: n,
        iconColor: n,
        iconColorHover: r,
        iconColorPressed: o,
        boxShadow: "0 2px 8px 0px rgba(0, 0, 0, .12)",
        boxShadowHover: "0 2px 12px 0px rgba(0, 0, 0, .18)",
        boxShadowPressed: "0 2px 12px 0px rgba(0, 0, 0, .18)"
      });
    }
  };
  function aO(e) {
    const { popoverColor: t, textColor2: n, primaryColorHover: r, primaryColorPressed: o } = e;
    return Object.assign(Object.assign({}, TC), {
      color: t,
      textColor: n,
      iconColor: n,
      iconColorHover: r,
      iconColorPressed: o,
      boxShadow: "0 2px 8px 0px rgba(0, 0, 0, .12)",
      boxShadowHover: "0 2px 12px 0px rgba(0, 0, 0, .18)",
      boxShadowPressed: "0 2px 12px 0px rgba(0, 0, 0, .18)"
    });
  }
  const lO = {
    common: mt,
    self: aO
  }, sO = () => g("svg", {
    viewBox: "0 0 24 24",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg",
    xlinkHref: "http://www.w3.org/1999/xlink"
  }, g("g", {
    stroke: "none",
    "stroke-width": "1",
    "fill-rule": "evenodd"
  }, g("g", {
    transform: "translate(-139.000000, -4423.000000)",
    "fill-rule": "nonzero"
  }, g("g", {
    transform: "translate(120.000000, 4285.000000)"
  }, g("g", {
    transform: "translate(7.000000, 126.000000)"
  }, g("g", {
    transform: "translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"
  }, g("g", {
    transform: "translate(4.000000, 2.000000)"
  }, g("path", {
    d: "M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"
  }), g("path", {
    d: "M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"
  })))))))), cO = A("back-top", `
 position: fixed;
 right: 40px;
 bottom: 40px;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--n-text-color);
 transition:
 color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 border-radius: var(--n-border-radius);
 height: var(--n-height);
 min-width: var(--n-width);
 box-shadow: var(--n-box-shadow);
 background-color: var(--n-color);
`, [
    Oo(),
    G("transition-disabled", {
      transition: "none !important"
    }),
    A("base-icon", `
 font-size: var(--n-icon-size);
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 `),
    W("svg", {
      pointerEvents: "none"
    }),
    W("&:hover", {
      boxShadow: "var(--n-box-shadow-hover)"
    }, [
      A("base-icon", {
        color: "var(--n-icon-color-hover)"
      })
    ]),
    W("&:active", {
      boxShadow: "var(--n-box-shadow-pressed)"
    }, [
      A("base-icon", {
        color: "var(--n-icon-color-pressed)"
      })
    ])
  ]), uO = Object.assign(Object.assign({}, Fe.props), {
    show: {
      type: Boolean,
      default: void 0
    },
    right: {
      type: [
        Number,
        String
      ],
      default: 40
    },
    bottom: {
      type: [
        Number,
        String
      ],
      default: 40
    },
    to: {
      type: [
        String,
        Object
      ],
      default: "body"
    },
    visibilityHeight: {
      type: Number,
      default: 180
    },
    listenTo: [
      String,
      Object,
      Function
    ],
    "onUpdate:show": {
      type: Function,
      default: () => {
      }
    },
    target: Function,
    onShow: Function,
    onHide: Function
  }), dO = pe({
    name: "BackTop",
    inheritAttrs: false,
    props: uO,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = L(null), o = L(false);
      fn(() => {
        const { value: x } = r;
        if (x === null) {
          o.value = false;
          return;
        }
        o.value = x >= e.visibilityHeight;
      });
      const i = L(false);
      lt(o, (x) => {
        var S;
        i.value && ((S = e["onUpdate:show"]) === null || S === void 0 || S.call(e, x));
      });
      const l = mn($e(e, "show"), o), s = L(true), c = L(null), u = D(() => ({
        right: `calc(${Ft(e.right)} + ${Sh.value})`,
        bottom: Ft(e.bottom)
      }));
      let d, h;
      lt(l, (x) => {
        var S, _;
        i.value && (x && ((S = e.onShow) === null || S === void 0 || S.call(e)), (_ = e.onHide) === null || _ === void 0 || _.call(e));
      });
      const p = Fe("BackTop", "-back-top", cO, lO, e, t);
      function f() {
        var x;
        if (h) return;
        h = true;
        const S = ((x = e.target) === null || x === void 0 ? void 0 : x.call(e)) || rE(e.listenTo) || Ux(c.value);
        if (!S) return;
        d = S === document.documentElement ? document : S;
        const { to: _ } = e;
        typeof _ == "string" && document.querySelector(_), d.addEventListener("scroll", b), b();
      }
      function m() {
        (jv(d) ? document.documentElement : d).scrollTo({
          top: 0,
          behavior: "smooth"
        });
      }
      function b() {
        r.value = (jv(d) ? document.documentElement : d).scrollTop, i.value || sn(() => {
          i.value = true;
        });
      }
      function v() {
        s.value = false;
      }
      gt(() => {
        f(), s.value = l.value;
      }), Zt(() => {
        d && d.removeEventListener("scroll", b);
      });
      const y = D(() => {
        const { self: { color: x, boxShadow: S, boxShadowHover: _, boxShadowPressed: C, iconColor: k, iconColorHover: R, iconColorPressed: P, width: B, height: E, iconSize: M, borderRadius: z, textColor: U }, common: { cubicBezierEaseInOut: ee } } = p.value;
        return {
          "--n-bezier": ee,
          "--n-border-radius": z,
          "--n-height": E,
          "--n-width": B,
          "--n-box-shadow": S,
          "--n-box-shadow-hover": _,
          "--n-box-shadow-pressed": C,
          "--n-color": x,
          "--n-icon-size": M,
          "--n-icon-color": k,
          "--n-icon-color-hover": R,
          "--n-icon-color-pressed": P,
          "--n-text-color": U
        };
      }), w = n ? xt("back-top", void 0, y, e) : void 0;
      return {
        placeholderRef: c,
        style: u,
        mergedShow: l,
        isMounted: Pi(),
        scrollElement: L(null),
        scrollTop: r,
        DomInfoReady: i,
        transitionDisabled: s,
        mergedClsPrefix: t,
        handleAfterEnter: v,
        handleScroll: b,
        handleClick: m,
        cssVars: n ? void 0 : y,
        themeClass: w == null ? void 0 : w.themeClass,
        onRender: w == null ? void 0 : w.onRender
      };
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g("div", {
        ref: "placeholderRef",
        class: `${e}-back-top-placeholder`,
        style: "display: none",
        "aria-hidden": true
      }, g(ad, {
        to: this.to,
        show: this.mergedShow
      }, {
        default: () => g(Ln, {
          name: "fade-in-scale-up-transition",
          appear: this.isMounted,
          onAfterEnter: this.handleAfterEnter
        }, {
          default: () => {
            var t;
            return (t = this.onRender) === null || t === void 0 || t.call(this), this.mergedShow ? g("div", Mn(this.$attrs, {
              class: [
                `${e}-back-top`,
                this.themeClass,
                this.transitionDisabled && `${e}-back-top--transition-disabled`
              ],
              style: [
                this.style,
                this.cssVars
              ],
              onClick: this.handleClick
            }), In(this.$slots.default, () => [
              g(Jt, {
                clsPrefix: e
              }, {
                default: sO
              })
            ])) : null;
          }
        })
      }));
    }
  }), fO = {
    name: "Badge",
    common: Ue,
    self(e) {
      const { errorColorSuppl: t, infoColorSuppl: n, successColorSuppl: r, warningColorSuppl: o, fontFamily: i } = e;
      return {
        color: t,
        colorInfo: n,
        colorSuccess: r,
        colorError: t,
        colorWarning: o,
        fontSize: "12px",
        fontFamily: i
      };
    }
  };
  function hO(e) {
    const { errorColor: t, infoColor: n, successColor: r, warningColor: o, fontFamily: i } = e;
    return {
      color: t,
      colorInfo: n,
      colorSuccess: r,
      colorError: t,
      colorWarning: o,
      fontSize: "12px",
      fontFamily: i
    };
  }
  let pO, mO, gO, vO;
  pO = {
    common: mt,
    self: hO
  };
  mO = W([
    W("@keyframes badge-wave-spread", {
      from: {
        boxShadow: "0 0 0.5px 0px var(--n-ripple-color)",
        opacity: 0.6
      },
      to: {
        boxShadow: "0 0 0.5px 4.5px var(--n-ripple-color)",
        opacity: 0
      }
    }),
    A("badge", `
 display: inline-flex;
 position: relative;
 vertical-align: middle;
 font-family: var(--n-font-family);
 `, [
      G("as-is", [
        A("badge-sup", {
          position: "static",
          transform: "translateX(0)"
        }, [
          Oo({
            transformOrigin: "left bottom",
            originalTransform: "translateX(0)"
          })
        ])
      ]),
      G("dot", [
        A("badge-sup", `
 height: 8px;
 width: 8px;
 padding: 0;
 min-width: 8px;
 left: 100%;
 bottom: calc(100% - 4px);
 `, [
          W("::before", "border-radius: 4px;")
        ])
      ]),
      A("badge-sup", `
 background: var(--n-color);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 color: #FFF;
 position: absolute;
 height: 18px;
 line-height: 18px;
 border-radius: 9px;
 padding: 0 6px;
 text-align: center;
 font-size: var(--n-font-size);
 transform: translateX(-50%);
 left: 100%;
 bottom: calc(100% - 9px);
 font-variant-numeric: tabular-nums;
 z-index: 2;
 display: flex;
 align-items: center;
 `, [
        Oo({
          transformOrigin: "left bottom",
          originalTransform: "translateX(-50%)"
        }),
        A("base-wave", {
          zIndex: 1,
          animationDuration: "2s",
          animationIterationCount: "infinite",
          animationDelay: "1s",
          animationTimingFunction: "var(--n-ripple-bezier)",
          animationName: "badge-wave-spread"
        }),
        W("&::before", `
 opacity: 0;
 transform: scale(1);
 border-radius: 9px;
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)
      ])
    ])
  ]);
  gO = Object.assign(Object.assign({}, Fe.props), {
    value: [
      String,
      Number
    ],
    max: Number,
    dot: Boolean,
    type: {
      type: String,
      default: "default"
    },
    show: {
      type: Boolean,
      default: true
    },
    showZero: Boolean,
    processing: Boolean,
    color: String,
    offset: Array
  });
  Db = pe({
    name: "Badge",
    props: gO,
    setup(e, { slots: t }) {
      const { mergedClsPrefixRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = Fe("Badge", "-badge", mO, pO, e, n), a = L(false), l = () => {
        a.value = true;
      }, s = () => {
        a.value = false;
      }, c = D(() => e.show && (e.dot || e.value !== void 0 && !(!e.showZero && Number(e.value) <= 0) || !sa(t.value)));
      gt(() => {
        c.value && (a.value = true);
      });
      const u = rn("Badge", o, n), d = D(() => {
        const { type: f, color: m } = e, { common: { cubicBezierEaseInOut: b, cubicBezierEaseOut: v }, self: { [Se("color", f)]: y, fontFamily: w, fontSize: x } } = i.value;
        return {
          "--n-font-size": x,
          "--n-font-family": w,
          "--n-color": m || y,
          "--n-ripple-color": m || y,
          "--n-bezier": b,
          "--n-ripple-bezier": v
        };
      }), h = r ? xt("badge", D(() => {
        let f = "";
        const { type: m, color: b } = e;
        return m && (f += m[0]), b && (f += dl(b)), f;
      }), d, e) : void 0, p = D(() => {
        const { offset: f } = e;
        if (!f) return;
        const [m, b] = f, v = typeof m == "number" ? `${m}px` : m, y = typeof b == "number" ? `${b}px` : b;
        return {
          transform: `translate(calc(${(u == null ? void 0 : u.value) ? "50%" : "-50%"} + ${v}), ${y})`
        };
      });
      return {
        rtlEnabled: u,
        mergedClsPrefix: n,
        appeared: a,
        showBadge: c,
        handleAfterEnter: l,
        handleAfterLeave: s,
        cssVars: r ? void 0 : d,
        themeClass: h == null ? void 0 : h.themeClass,
        onRender: h == null ? void 0 : h.onRender,
        offsetStyle: p
      };
    },
    render() {
      var e;
      const { mergedClsPrefix: t, onRender: n, themeClass: r, $slots: o } = this;
      n == null ? void 0 : n();
      const i = (e = o.default) === null || e === void 0 ? void 0 : e.call(o);
      return g("div", {
        class: [
          `${t}-badge`,
          this.rtlEnabled && `${t}-badge--rtl`,
          r,
          {
            [`${t}-badge--dot`]: this.dot,
            [`${t}-badge--as-is`]: !i
          }
        ],
        style: this.cssVars
      }, i, g(Ln, {
        name: "fade-in-scale-up-transition",
        onAfterEnter: this.handleAfterEnter,
        onAfterLeave: this.handleAfterLeave
      }, {
        default: () => this.showBadge ? g("sup", {
          class: `${t}-badge-sup`,
          title: Eh(this.value),
          style: this.offsetStyle
        }, In(o.value, () => [
          this.dot ? null : g(x8, {
            clsPrefix: t,
            appeared: this.appeared,
            max: this.max,
            value: this.value
          })
        ]), this.processing ? g(xC, {
          clsPrefix: t
        }) : null) : null
      }));
    }
  });
  vO = {
    fontWeightActive: "400"
  };
  function bO(e) {
    const { fontSize: t, textColor3: n, textColor2: r, borderRadius: o, buttonColor2Hover: i, buttonColor2Pressed: a } = e;
    return Object.assign(Object.assign({}, vO), {
      fontSize: t,
      itemLineHeight: "1.25",
      itemTextColor: n,
      itemTextColorHover: r,
      itemTextColorPressed: r,
      itemTextColorActive: r,
      itemBorderRadius: o,
      itemColorHover: i,
      itemColorPressed: a,
      separatorColor: n
    });
  }
  const yO = {
    name: "Breadcrumb",
    common: Ue,
    self: bO
  };
  function Ui(e) {
    return Ye(e, [
      255,
      255,
      255,
      0.16
    ]);
  }
  function $c(e) {
    return Ye(e, [
      0,
      0,
      0,
      0.12
    ]);
  }
  const xO = "n-button-group", wO = {
    paddingTiny: "0 6px",
    paddingSmall: "0 10px",
    paddingMedium: "0 14px",
    paddingLarge: "0 18px",
    paddingRoundTiny: "0 10px",
    paddingRoundSmall: "0 14px",
    paddingRoundMedium: "0 18px",
    paddingRoundLarge: "0 22px",
    iconMarginTiny: "6px",
    iconMarginSmall: "6px",
    iconMarginMedium: "6px",
    iconMarginLarge: "6px",
    iconSizeTiny: "14px",
    iconSizeSmall: "18px",
    iconSizeMedium: "18px",
    iconSizeLarge: "20px",
    rippleDuration: ".6s"
  };
  function PC(e) {
    const { heightTiny: t, heightSmall: n, heightMedium: r, heightLarge: o, borderRadius: i, fontSizeTiny: a, fontSizeSmall: l, fontSizeMedium: s, fontSizeLarge: c, opacityDisabled: u, textColor2: d, textColor3: h, primaryColorHover: p, primaryColorPressed: f, borderColor: m, primaryColor: b, baseColor: v, infoColor: y, infoColorHover: w, infoColorPressed: x, successColor: S, successColorHover: _, successColorPressed: C, warningColor: k, warningColorHover: R, warningColorPressed: P, errorColor: B, errorColorHover: E, errorColorPressed: M, fontWeight: z, buttonColor2: U, buttonColor2Hover: ee, buttonColor2Pressed: ne, fontWeightStrong: ae } = e;
    return Object.assign(Object.assign({}, wO), {
      heightTiny: t,
      heightSmall: n,
      heightMedium: r,
      heightLarge: o,
      borderRadiusTiny: i,
      borderRadiusSmall: i,
      borderRadiusMedium: i,
      borderRadiusLarge: i,
      fontSizeTiny: a,
      fontSizeSmall: l,
      fontSizeMedium: s,
      fontSizeLarge: c,
      opacityDisabled: u,
      colorOpacitySecondary: "0.16",
      colorOpacitySecondaryHover: "0.22",
      colorOpacitySecondaryPressed: "0.28",
      colorSecondary: U,
      colorSecondaryHover: ee,
      colorSecondaryPressed: ne,
      colorTertiary: U,
      colorTertiaryHover: ee,
      colorTertiaryPressed: ne,
      colorQuaternary: "#0000",
      colorQuaternaryHover: ee,
      colorQuaternaryPressed: ne,
      color: "#0000",
      colorHover: "#0000",
      colorPressed: "#0000",
      colorFocus: "#0000",
      colorDisabled: "#0000",
      textColor: d,
      textColorTertiary: h,
      textColorHover: p,
      textColorPressed: f,
      textColorFocus: p,
      textColorDisabled: d,
      textColorText: d,
      textColorTextHover: p,
      textColorTextPressed: f,
      textColorTextFocus: p,
      textColorTextDisabled: d,
      textColorGhost: d,
      textColorGhostHover: p,
      textColorGhostPressed: f,
      textColorGhostFocus: p,
      textColorGhostDisabled: d,
      border: `1px solid ${m}`,
      borderHover: `1px solid ${p}`,
      borderPressed: `1px solid ${f}`,
      borderFocus: `1px solid ${p}`,
      borderDisabled: `1px solid ${m}`,
      rippleColor: b,
      colorPrimary: b,
      colorHoverPrimary: p,
      colorPressedPrimary: f,
      colorFocusPrimary: p,
      colorDisabledPrimary: b,
      textColorPrimary: v,
      textColorHoverPrimary: v,
      textColorPressedPrimary: v,
      textColorFocusPrimary: v,
      textColorDisabledPrimary: v,
      textColorTextPrimary: b,
      textColorTextHoverPrimary: p,
      textColorTextPressedPrimary: f,
      textColorTextFocusPrimary: p,
      textColorTextDisabledPrimary: d,
      textColorGhostPrimary: b,
      textColorGhostHoverPrimary: p,
      textColorGhostPressedPrimary: f,
      textColorGhostFocusPrimary: p,
      textColorGhostDisabledPrimary: b,
      borderPrimary: `1px solid ${b}`,
      borderHoverPrimary: `1px solid ${p}`,
      borderPressedPrimary: `1px solid ${f}`,
      borderFocusPrimary: `1px solid ${p}`,
      borderDisabledPrimary: `1px solid ${b}`,
      rippleColorPrimary: b,
      colorInfo: y,
      colorHoverInfo: w,
      colorPressedInfo: x,
      colorFocusInfo: w,
      colorDisabledInfo: y,
      textColorInfo: v,
      textColorHoverInfo: v,
      textColorPressedInfo: v,
      textColorFocusInfo: v,
      textColorDisabledInfo: v,
      textColorTextInfo: y,
      textColorTextHoverInfo: w,
      textColorTextPressedInfo: x,
      textColorTextFocusInfo: w,
      textColorTextDisabledInfo: d,
      textColorGhostInfo: y,
      textColorGhostHoverInfo: w,
      textColorGhostPressedInfo: x,
      textColorGhostFocusInfo: w,
      textColorGhostDisabledInfo: y,
      borderInfo: `1px solid ${y}`,
      borderHoverInfo: `1px solid ${w}`,
      borderPressedInfo: `1px solid ${x}`,
      borderFocusInfo: `1px solid ${w}`,
      borderDisabledInfo: `1px solid ${y}`,
      rippleColorInfo: y,
      colorSuccess: S,
      colorHoverSuccess: _,
      colorPressedSuccess: C,
      colorFocusSuccess: _,
      colorDisabledSuccess: S,
      textColorSuccess: v,
      textColorHoverSuccess: v,
      textColorPressedSuccess: v,
      textColorFocusSuccess: v,
      textColorDisabledSuccess: v,
      textColorTextSuccess: S,
      textColorTextHoverSuccess: _,
      textColorTextPressedSuccess: C,
      textColorTextFocusSuccess: _,
      textColorTextDisabledSuccess: d,
      textColorGhostSuccess: S,
      textColorGhostHoverSuccess: _,
      textColorGhostPressedSuccess: C,
      textColorGhostFocusSuccess: _,
      textColorGhostDisabledSuccess: S,
      borderSuccess: `1px solid ${S}`,
      borderHoverSuccess: `1px solid ${_}`,
      borderPressedSuccess: `1px solid ${C}`,
      borderFocusSuccess: `1px solid ${_}`,
      borderDisabledSuccess: `1px solid ${S}`,
      rippleColorSuccess: S,
      colorWarning: k,
      colorHoverWarning: R,
      colorPressedWarning: P,
      colorFocusWarning: R,
      colorDisabledWarning: k,
      textColorWarning: v,
      textColorHoverWarning: v,
      textColorPressedWarning: v,
      textColorFocusWarning: v,
      textColorDisabledWarning: v,
      textColorTextWarning: k,
      textColorTextHoverWarning: R,
      textColorTextPressedWarning: P,
      textColorTextFocusWarning: R,
      textColorTextDisabledWarning: d,
      textColorGhostWarning: k,
      textColorGhostHoverWarning: R,
      textColorGhostPressedWarning: P,
      textColorGhostFocusWarning: R,
      textColorGhostDisabledWarning: k,
      borderWarning: `1px solid ${k}`,
      borderHoverWarning: `1px solid ${R}`,
      borderPressedWarning: `1px solid ${P}`,
      borderFocusWarning: `1px solid ${R}`,
      borderDisabledWarning: `1px solid ${k}`,
      rippleColorWarning: k,
      colorError: B,
      colorHoverError: E,
      colorPressedError: M,
      colorFocusError: E,
      colorDisabledError: B,
      textColorError: v,
      textColorHoverError: v,
      textColorPressedError: v,
      textColorFocusError: v,
      textColorDisabledError: v,
      textColorTextError: B,
      textColorTextHoverError: E,
      textColorTextPressedError: M,
      textColorTextFocusError: E,
      textColorTextDisabledError: d,
      textColorGhostError: B,
      textColorGhostHoverError: E,
      textColorGhostPressedError: M,
      textColorGhostFocusError: E,
      textColorGhostDisabledError: B,
      borderError: `1px solid ${B}`,
      borderHoverError: `1px solid ${E}`,
      borderPressedError: `1px solid ${M}`,
      borderFocusError: `1px solid ${E}`,
      borderDisabledError: `1px solid ${B}`,
      rippleColorError: B,
      waveOpacity: "0.6",
      fontWeight: z,
      fontWeightStrong: ae
    });
  }
  let xr, CO, SO, _O;
  vd = {
    name: "Button",
    common: mt,
    self: PC
  };
  xr = {
    name: "Button",
    common: Ue,
    self(e) {
      const t = PC(e);
      return t.waveOpacity = "0.8", t.colorOpacitySecondary = "0.16", t.colorOpacitySecondaryHover = "0.2", t.colorOpacitySecondaryPressed = "0.12", t;
    }
  };
  CO = W([
    A("button", `
 margin: 0;
 font-weight: var(--n-font-weight);
 line-height: 1;
 font-family: inherit;
 padding: var(--n-padding);
 height: var(--n-height);
 font-size: var(--n-font-size);
 border-radius: var(--n-border-radius);
 color: var(--n-text-color);
 background-color: var(--n-color);
 width: var(--n-width);
 white-space: nowrap;
 outline: none;
 position: relative;
 z-index: auto;
 border: none;
 display: inline-flex;
 flex-wrap: nowrap;
 flex-shrink: 0;
 align-items: center;
 justify-content: center;
 user-select: none;
 -webkit-user-select: none;
 text-align: center;
 cursor: pointer;
 text-decoration: none;
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `, [
      G("color", [
        V("border", {
          borderColor: "var(--n-border-color)"
        }),
        G("disabled", [
          V("border", {
            borderColor: "var(--n-border-color-disabled)"
          })
        ]),
        At("disabled", [
          W("&:focus", [
            V("state-border", {
              borderColor: "var(--n-border-color-focus)"
            })
          ]),
          W("&:hover", [
            V("state-border", {
              borderColor: "var(--n-border-color-hover)"
            })
          ]),
          W("&:active", [
            V("state-border", {
              borderColor: "var(--n-border-color-pressed)"
            })
          ]),
          G("pressed", [
            V("state-border", {
              borderColor: "var(--n-border-color-pressed)"
            })
          ])
        ])
      ]),
      G("disabled", {
        backgroundColor: "var(--n-color-disabled)",
        color: "var(--n-text-color-disabled)"
      }, [
        V("border", {
          border: "var(--n-border-disabled)"
        })
      ]),
      At("disabled", [
        W("&:focus", {
          backgroundColor: "var(--n-color-focus)",
          color: "var(--n-text-color-focus)"
        }, [
          V("state-border", {
            border: "var(--n-border-focus)"
          })
        ]),
        W("&:hover", {
          backgroundColor: "var(--n-color-hover)",
          color: "var(--n-text-color-hover)"
        }, [
          V("state-border", {
            border: "var(--n-border-hover)"
          })
        ]),
        W("&:active", {
          backgroundColor: "var(--n-color-pressed)",
          color: "var(--n-text-color-pressed)"
        }, [
          V("state-border", {
            border: "var(--n-border-pressed)"
          })
        ]),
        G("pressed", {
          backgroundColor: "var(--n-color-pressed)",
          color: "var(--n-text-color-pressed)"
        }, [
          V("state-border", {
            border: "var(--n-border-pressed)"
          })
        ])
      ]),
      G("loading", "cursor: wait;"),
      A("base-wave", `
 pointer-events: none;
 top: 0;
 right: 0;
 bottom: 0;
 left: 0;
 animation-iteration-count: 1;
 animation-duration: var(--n-ripple-duration);
 animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
 `, [
        G("active", {
          zIndex: 1,
          animationName: "button-wave-spread, button-wave-opacity"
        })
      ]),
      ui && "MozBoxSizing" in document.createElement("div").style ? W("&::moz-focus-inner", {
        border: 0
      }) : null,
      V("border, state-border", `
 position: absolute;
 left: 0;
 top: 0;
 right: 0;
 bottom: 0;
 border-radius: inherit;
 transition: border-color .3s var(--n-bezier);
 pointer-events: none;
 `),
      V("border", `
 border: var(--n-border);
 `),
      V("state-border", `
 border: var(--n-border);
 border-color: #0000;
 z-index: 1;
 `),
      V("icon", `
 margin: var(--n-icon-margin);
 margin-left: 0;
 height: var(--n-icon-size);
 width: var(--n-icon-size);
 max-width: var(--n-icon-size);
 font-size: var(--n-icon-size);
 position: relative;
 flex-shrink: 0;
 `, [
        A("icon-slot", `
 height: var(--n-icon-size);
 width: var(--n-icon-size);
 position: absolute;
 left: 0;
 top: 50%;
 transform: translateY(-50%);
 display: flex;
 align-items: center;
 justify-content: center;
 `, [
          kr({
            top: "50%",
            originalTransform: "translateY(-50%)"
          })
        ]),
        yC()
      ]),
      V("content", `
 display: flex;
 align-items: center;
 flex-wrap: nowrap;
 min-width: 0;
 `, [
        W("~", [
          V("icon", {
            margin: "var(--n-icon-margin)",
            marginRight: 0
          })
        ])
      ]),
      G("block", `
 display: flex;
 width: 100%;
 `),
      G("dashed", [
        V("border, state-border", {
          borderStyle: "dashed !important"
        })
      ]),
      G("disabled", {
        cursor: "not-allowed",
        opacity: "var(--n-opacity-disabled)"
      })
    ]),
    W("@keyframes button-wave-spread", {
      from: {
        boxShadow: "0 0 0.5px 0 var(--n-ripple-color)"
      },
      to: {
        boxShadow: "0 0 0.5px 4.5px var(--n-ripple-color)"
      }
    }),
    W("@keyframes button-wave-opacity", {
      from: {
        opacity: "var(--n-wave-opacity)"
      },
      to: {
        opacity: 0
      }
    })
  ]);
  SO = Object.assign(Object.assign({}, Fe.props), {
    color: String,
    textColor: String,
    text: Boolean,
    block: Boolean,
    loading: Boolean,
    disabled: Boolean,
    circle: Boolean,
    size: String,
    ghost: Boolean,
    round: Boolean,
    secondary: Boolean,
    tertiary: Boolean,
    quaternary: Boolean,
    strong: Boolean,
    focusable: {
      type: Boolean,
      default: true
    },
    keyboard: {
      type: Boolean,
      default: true
    },
    tag: {
      type: String,
      default: "button"
    },
    type: {
      type: String,
      default: "default"
    },
    dashed: Boolean,
    renderIcon: Function,
    iconPlacement: {
      type: String,
      default: "left"
    },
    attrType: {
      type: String,
      default: "button"
    },
    bordered: {
      type: Boolean,
      default: true
    },
    onClick: [
      Function,
      Array
    ],
    nativeFocusBehavior: {
      type: Boolean,
      default: !CC
    }
  });
  ht = pe({
    name: "Button",
    props: SO,
    slots: Object,
    setup(e) {
      const t = L(null), n = L(null), r = L(false), o = Ct(() => !e.quaternary && !e.tertiary && !e.secondary && !e.text && (!e.color || e.ghost || e.dashed) && e.bordered), i = je(xO, {}), { mergedSizeRef: a } = Mo({}, {
        defaultSize: "medium",
        mergedSize: (x) => {
          const { size: S } = e;
          if (S) return S;
          const { size: _ } = i;
          if (_) return _;
          const { mergedSize: C } = x || {};
          return C ? C.value : "medium";
        }
      }), l = D(() => e.focusable && !e.disabled), s = (x) => {
        var S;
        l.value || x.preventDefault(), !e.nativeFocusBehavior && (x.preventDefault(), !e.disabled && l.value && ((S = t.value) === null || S === void 0 || S.focus({
          preventScroll: true
        })));
      }, c = (x) => {
        var S;
        if (!e.disabled && !e.loading) {
          const { onClick: _ } = e;
          _ && Te(_, x), e.text || (S = n.value) === null || S === void 0 || S.play();
        }
      }, u = (x) => {
        switch (x.key) {
          case "Enter":
            if (!e.keyboard) return;
            r.value = false;
        }
      }, d = (x) => {
        switch (x.key) {
          case "Enter":
            if (!e.keyboard || e.loading) {
              x.preventDefault();
              return;
            }
            r.value = true;
        }
      }, h = () => {
        r.value = false;
      }, { inlineThemeDisabled: p, mergedClsPrefixRef: f, mergedRtlRef: m } = at(e), b = Fe("Button", "-button", CO, vd, e, f), v = rn("Button", m, f), y = D(() => {
        const x = b.value, { common: { cubicBezierEaseInOut: S, cubicBezierEaseOut: _ }, self: C } = x, { rippleDuration: k, opacityDisabled: R, fontWeight: P, fontWeightStrong: B } = C, E = a.value, { dashed: M, type: z, ghost: U, text: ee, color: ne, round: ae, circle: ye, textColor: xe, secondary: re, tertiary: Y, quaternary: H, strong: oe } = e, ce = {
          "--n-font-weight": oe ? B : P
        };
        let be = {
          "--n-color": "initial",
          "--n-color-hover": "initial",
          "--n-color-pressed": "initial",
          "--n-color-focus": "initial",
          "--n-color-disabled": "initial",
          "--n-ripple-color": "initial",
          "--n-text-color": "initial",
          "--n-text-color-hover": "initial",
          "--n-text-color-pressed": "initial",
          "--n-text-color-focus": "initial",
          "--n-text-color-disabled": "initial"
        };
        const ie = z === "tertiary", fe = z === "default", F = ie ? "default" : z;
        if (ee) {
          const j = xe || ne;
          be = {
            "--n-color": "#0000",
            "--n-color-hover": "#0000",
            "--n-color-pressed": "#0000",
            "--n-color-focus": "#0000",
            "--n-color-disabled": "#0000",
            "--n-ripple-color": "#0000",
            "--n-text-color": j || C[Se("textColorText", F)],
            "--n-text-color-hover": j ? Ui(j) : C[Se("textColorTextHover", F)],
            "--n-text-color-pressed": j ? $c(j) : C[Se("textColorTextPressed", F)],
            "--n-text-color-focus": j ? Ui(j) : C[Se("textColorTextHover", F)],
            "--n-text-color-disabled": j || C[Se("textColorTextDisabled", F)]
          };
        } else if (U || M) {
          const j = xe || ne;
          be = {
            "--n-color": "#0000",
            "--n-color-hover": "#0000",
            "--n-color-pressed": "#0000",
            "--n-color-focus": "#0000",
            "--n-color-disabled": "#0000",
            "--n-ripple-color": ne || C[Se("rippleColor", F)],
            "--n-text-color": j || C[Se("textColorGhost", F)],
            "--n-text-color-hover": j ? Ui(j) : C[Se("textColorGhostHover", F)],
            "--n-text-color-pressed": j ? $c(j) : C[Se("textColorGhostPressed", F)],
            "--n-text-color-focus": j ? Ui(j) : C[Se("textColorGhostHover", F)],
            "--n-text-color-disabled": j || C[Se("textColorGhostDisabled", F)]
          };
        } else if (re) {
          const j = fe ? C.textColor : ie ? C.textColorTertiary : C[Se("color", F)], X = ne || j, ge = z !== "default" && z !== "tertiary";
          be = {
            "--n-color": ge ? Oe(X, {
              alpha: Number(C.colorOpacitySecondary)
            }) : C.colorSecondary,
            "--n-color-hover": ge ? Oe(X, {
              alpha: Number(C.colorOpacitySecondaryHover)
            }) : C.colorSecondaryHover,
            "--n-color-pressed": ge ? Oe(X, {
              alpha: Number(C.colorOpacitySecondaryPressed)
            }) : C.colorSecondaryPressed,
            "--n-color-focus": ge ? Oe(X, {
              alpha: Number(C.colorOpacitySecondaryHover)
            }) : C.colorSecondaryHover,
            "--n-color-disabled": C.colorSecondary,
            "--n-ripple-color": "#0000",
            "--n-text-color": X,
            "--n-text-color-hover": X,
            "--n-text-color-pressed": X,
            "--n-text-color-focus": X,
            "--n-text-color-disabled": X
          };
        } else if (Y || H) {
          const j = fe ? C.textColor : ie ? C.textColorTertiary : C[Se("color", F)], X = ne || j;
          Y ? (be["--n-color"] = C.colorTertiary, be["--n-color-hover"] = C.colorTertiaryHover, be["--n-color-pressed"] = C.colorTertiaryPressed, be["--n-color-focus"] = C.colorSecondaryHover, be["--n-color-disabled"] = C.colorTertiary) : (be["--n-color"] = C.colorQuaternary, be["--n-color-hover"] = C.colorQuaternaryHover, be["--n-color-pressed"] = C.colorQuaternaryPressed, be["--n-color-focus"] = C.colorQuaternaryHover, be["--n-color-disabled"] = C.colorQuaternary), be["--n-ripple-color"] = "#0000", be["--n-text-color"] = X, be["--n-text-color-hover"] = X, be["--n-text-color-pressed"] = X, be["--n-text-color-focus"] = X, be["--n-text-color-disabled"] = X;
        } else be = {
          "--n-color": ne || C[Se("color", F)],
          "--n-color-hover": ne ? Ui(ne) : C[Se("colorHover", F)],
          "--n-color-pressed": ne ? $c(ne) : C[Se("colorPressed", F)],
          "--n-color-focus": ne ? Ui(ne) : C[Se("colorFocus", F)],
          "--n-color-disabled": ne || C[Se("colorDisabled", F)],
          "--n-ripple-color": ne || C[Se("rippleColor", F)],
          "--n-text-color": xe || (ne ? C.textColorPrimary : ie ? C.textColorTertiary : C[Se("textColor", F)]),
          "--n-text-color-hover": xe || (ne ? C.textColorHoverPrimary : C[Se("textColorHover", F)]),
          "--n-text-color-pressed": xe || (ne ? C.textColorPressedPrimary : C[Se("textColorPressed", F)]),
          "--n-text-color-focus": xe || (ne ? C.textColorFocusPrimary : C[Se("textColorFocus", F)]),
          "--n-text-color-disabled": xe || (ne ? C.textColorDisabledPrimary : C[Se("textColorDisabled", F)])
        };
        let se = {
          "--n-border": "initial",
          "--n-border-hover": "initial",
          "--n-border-pressed": "initial",
          "--n-border-focus": "initial",
          "--n-border-disabled": "initial"
        };
        ee ? se = {
          "--n-border": "none",
          "--n-border-hover": "none",
          "--n-border-pressed": "none",
          "--n-border-focus": "none",
          "--n-border-disabled": "none"
        } : se = {
          "--n-border": C[Se("border", F)],
          "--n-border-hover": C[Se("borderHover", F)],
          "--n-border-pressed": C[Se("borderPressed", F)],
          "--n-border-focus": C[Se("borderFocus", F)],
          "--n-border-disabled": C[Se("borderDisabled", F)]
        };
        const { [Se("height", E)]: ze, [Se("fontSize", E)]: q, [Se("padding", E)]: J, [Se("paddingRound", E)]: le, [Se("iconSize", E)]: we, [Se("borderRadius", E)]: ke, [Se("iconMargin", E)]: _e, waveOpacity: K } = C, N = {
          "--n-width": ye && !ee ? ze : "initial",
          "--n-height": ee ? "initial" : ze,
          "--n-font-size": q,
          "--n-padding": ye || ee ? "initial" : ae ? le : J,
          "--n-icon-size": we,
          "--n-icon-margin": _e,
          "--n-border-radius": ee ? "initial" : ye || ae ? ze : ke
        };
        return Object.assign(Object.assign(Object.assign(Object.assign({
          "--n-bezier": S,
          "--n-bezier-ease-out": _,
          "--n-ripple-duration": k,
          "--n-opacity-disabled": R,
          "--n-wave-opacity": K
        }, ce), be), se), N);
      }), w = p ? xt("button", D(() => {
        let x = "";
        const { dashed: S, type: _, ghost: C, text: k, color: R, round: P, circle: B, textColor: E, secondary: M, tertiary: z, quaternary: U, strong: ee } = e;
        S && (x += "a"), C && (x += "b"), k && (x += "c"), P && (x += "d"), B && (x += "e"), M && (x += "f"), z && (x += "g"), U && (x += "h"), ee && (x += "i"), R && (x += `j${dl(R)}`), E && (x += `k${dl(E)}`);
        const { value: ne } = a;
        return x += `l${ne[0]}`, x += `m${_[0]}`, x;
      }), y, e) : void 0;
      return {
        selfElRef: t,
        waveElRef: n,
        mergedClsPrefix: f,
        mergedFocusable: l,
        mergedSize: a,
        showBorder: o,
        enterPressed: r,
        rtlEnabled: v,
        handleMousedown: s,
        handleKeydown: d,
        handleBlur: h,
        handleKeyup: u,
        handleClick: c,
        customColorCssVars: D(() => {
          const { color: x } = e;
          if (!x) return null;
          const S = Ui(x);
          return {
            "--n-border-color": x,
            "--n-border-color-hover": S,
            "--n-border-color-pressed": $c(x),
            "--n-border-color-focus": S,
            "--n-border-color-disabled": x
          };
        }),
        cssVars: p ? void 0 : y,
        themeClass: w == null ? void 0 : w.themeClass,
        onRender: w == null ? void 0 : w.onRender
      };
    },
    render() {
      const { mergedClsPrefix: e, tag: t, onRender: n } = this;
      n == null ? void 0 : n();
      const r = Pt(this.$slots.default, (o) => o && g("span", {
        class: `${e}-button__content`
      }, o));
      return g(t, {
        ref: "selfElRef",
        class: [
          this.themeClass,
          `${e}-button`,
          `${e}-button--${this.type}-type`,
          `${e}-button--${this.mergedSize}-type`,
          this.rtlEnabled && `${e}-button--rtl`,
          this.disabled && `${e}-button--disabled`,
          this.block && `${e}-button--block`,
          this.enterPressed && `${e}-button--pressed`,
          !this.text && this.dashed && `${e}-button--dashed`,
          this.color && `${e}-button--color`,
          this.secondary && `${e}-button--secondary`,
          this.loading && `${e}-button--loading`,
          this.ghost && `${e}-button--ghost`
        ],
        tabindex: this.mergedFocusable ? 0 : -1,
        type: this.attrType,
        style: this.cssVars,
        disabled: this.disabled,
        onClick: this.handleClick,
        onBlur: this.handleBlur,
        onMousedown: this.handleMousedown,
        onKeyup: this.handleKeyup,
        onKeydown: this.handleKeydown
      }, this.iconPlacement === "right" && r, g(El, {
        width: true
      }, {
        default: () => Pt(this.$slots.icon, (o) => (this.loading || this.renderIcon || o) && g("span", {
          class: `${e}-button__icon`,
          style: {
            margin: sa(this.$slots.default) ? "0" : ""
          }
        }, g(Sa, null, {
          default: () => this.loading ? g(Ii, {
            clsPrefix: e,
            key: "loading",
            class: `${e}-icon-slot`,
            strokeWidth: 20
          }) : g("div", {
            key: "icon",
            class: `${e}-icon-slot`,
            role: "none"
          }, this.renderIcon ? this.renderIcon() : o)
        })))
      }), this.iconPlacement === "left" && r, this.text ? null : g(xC, {
        ref: "waveElRef",
        clsPrefix: e
      }), this.showBorder ? g("div", {
        "aria-hidden": true,
        class: `${e}-button__border`,
        style: this.customColorCssVars
      }) : null, this.showBorder ? g("div", {
        "aria-hidden": true,
        class: `${e}-button__state-border`,
        style: this.customColorCssVars
      }) : null);
    }
  });
  GX = ht;
  _O = {
    titleFontSize: "22px"
  };
  function kO(e) {
    const { borderRadius: t, fontSize: n, lineHeight: r, textColor2: o, textColor1: i, textColorDisabled: a, dividerColor: l, fontWeightStrong: s, primaryColor: c, baseColor: u, hoverColor: d, cardColor: h, modalColor: p, popoverColor: f } = e;
    return Object.assign(Object.assign({}, _O), {
      borderRadius: t,
      borderColor: Ye(h, l),
      borderColorModal: Ye(p, l),
      borderColorPopover: Ye(f, l),
      textColor: o,
      titleFontWeight: s,
      titleTextColor: i,
      dayTextColor: a,
      fontSize: n,
      lineHeight: r,
      dateColorCurrent: c,
      dateTextColorCurrent: u,
      cellColorHover: Ye(h, d),
      cellColorHoverModal: Ye(p, d),
      cellColorHoverPopover: Ye(f, d),
      cellColor: h,
      cellColorModal: p,
      cellColorPopover: f,
      barColor: c
    });
  }
  const RO = {
    name: "Calendar",
    common: Ue,
    peers: {
      Button: xr
    },
    self: kO
  }, AO = {
    paddingSmall: "12px 16px 12px",
    paddingMedium: "19px 24px 20px",
    paddingLarge: "23px 32px 24px",
    paddingHuge: "27px 40px 28px",
    titleFontSizeSmall: "16px",
    titleFontSizeMedium: "18px",
    titleFontSizeLarge: "18px",
    titleFontSizeHuge: "18px",
    closeIconSize: "18px",
    closeSize: "22px"
  };
  function DC(e) {
    const { primaryColor: t, borderRadius: n, lineHeight: r, fontSize: o, cardColor: i, textColor2: a, textColor1: l, dividerColor: s, fontWeightStrong: c, closeIconColor: u, closeIconColorHover: d, closeIconColorPressed: h, closeColorHover: p, closeColorPressed: f, modalColor: m, boxShadow1: b, popoverColor: v, actionColor: y } = e;
    return Object.assign(Object.assign({}, AO), {
      lineHeight: r,
      color: i,
      colorModal: m,
      colorPopover: v,
      colorTarget: t,
      colorEmbedded: y,
      colorEmbeddedModal: y,
      colorEmbeddedPopover: y,
      textColor: a,
      titleTextColor: l,
      borderColor: s,
      actionColor: y,
      titleFontWeight: c,
      closeColorHover: p,
      closeColorPressed: f,
      closeBorderRadius: n,
      closeIconColor: u,
      closeIconColorHover: d,
      closeIconColorPressed: h,
      fontSizeSmall: o,
      fontSizeMedium: o,
      fontSizeLarge: o,
      fontSizeHuge: o,
      boxShadow: b,
      borderRadius: n
    });
  }
  let $C, zC, EO, xm, TO, PO;
  $C = {
    name: "Card",
    common: mt,
    self: DC
  };
  zC = {
    name: "Card",
    common: Ue,
    self(e) {
      const t = DC(e), { cardColor: n, modalColor: r, popoverColor: o } = e;
      return t.colorEmbedded = n, t.colorEmbeddedModal = r, t.colorEmbeddedPopover = o, t;
    }
  };
  EO = W([
    A("card", `
 font-size: var(--n-font-size);
 line-height: var(--n-line-height);
 display: flex;
 flex-direction: column;
 width: 100%;
 box-sizing: border-box;
 position: relative;
 border-radius: var(--n-border-radius);
 background-color: var(--n-color);
 color: var(--n-text-color);
 word-break: break-word;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `, [
      jx({
        background: "var(--n-color-modal)"
      }),
      G("hoverable", [
        W("&:hover", "box-shadow: var(--n-box-shadow);")
      ]),
      G("content-segmented", [
        W(">", [
          V("content", {
            paddingTop: "var(--n-padding-bottom)"
          })
        ])
      ]),
      G("content-soft-segmented", [
        W(">", [
          V("content", `
 margin: 0 var(--n-padding-left);
 padding: var(--n-padding-bottom) 0;
 `)
        ])
      ]),
      G("footer-segmented", [
        W(">", [
          V("footer", {
            paddingTop: "var(--n-padding-bottom)"
          })
        ])
      ]),
      G("footer-soft-segmented", [
        W(">", [
          V("footer", `
 padding: var(--n-padding-bottom) 0;
 margin: 0 var(--n-padding-left);
 `)
        ])
      ]),
      W(">", [
        A("card-header", `
 box-sizing: border-box;
 display: flex;
 align-items: center;
 font-size: var(--n-title-font-size);
 padding:
 var(--n-padding-top)
 var(--n-padding-left)
 var(--n-padding-bottom)
 var(--n-padding-left);
 `, [
          V("main", `
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 flex: 1;
 min-width: 0;
 color: var(--n-title-text-color);
 `),
          V("extra", `
 display: flex;
 align-items: center;
 font-size: var(--n-font-size);
 font-weight: 400;
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 `),
          V("close", `
 margin: 0 0 0 8px;
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)
        ]),
        V("action", `
 box-sizing: border-box;
 transition:
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 background-clip: padding-box;
 background-color: var(--n-action-color);
 `),
        V("content", "flex: 1; min-width: 0;"),
        V("content, footer", `
 box-sizing: border-box;
 padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
 font-size: var(--n-font-size);
 `, [
          W("&:first-child", {
            paddingTop: "var(--n-padding-bottom)"
          })
        ]),
        V("action", `
 background-color: var(--n-action-color);
 padding: var(--n-padding-bottom) var(--n-padding-left);
 border-bottom-left-radius: var(--n-border-radius);
 border-bottom-right-radius: var(--n-border-radius);
 `)
      ]),
      A("card-cover", `
 overflow: hidden;
 width: 100%;
 border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
 `, [
        W("img", `
 display: block;
 width: 100%;
 `)
      ]),
      G("bordered", `
 border: 1px solid var(--n-border-color);
 `, [
        W("&:target", "border-color: var(--n-color-target);")
      ]),
      G("action-segmented", [
        W(">", [
          V("action", [
            W("&:not(:first-child)", {
              borderTop: "1px solid var(--n-border-color)"
            })
          ])
        ])
      ]),
      G("content-segmented, content-soft-segmented", [
        W(">", [
          V("content", {
            transition: "border-color 0.3s var(--n-bezier)"
          }, [
            W("&:not(:first-child)", {
              borderTop: "1px solid var(--n-border-color)"
            })
          ])
        ])
      ]),
      G("footer-segmented, footer-soft-segmented", [
        W(">", [
          V("footer", {
            transition: "border-color 0.3s var(--n-bezier)"
          }, [
            W("&:not(:first-child)", {
              borderTop: "1px solid var(--n-border-color)"
            })
          ])
        ])
      ]),
      G("embedded", `
 background-color: var(--n-color-embedded);
 `)
    ]),
    ya(A("card", `
 background: var(--n-color-modal);
 `, [
      G("embedded", `
 background-color: var(--n-color-embedded-modal);
 `)
    ])),
    Sl(A("card", `
 background: var(--n-color-popover);
 `, [
      G("embedded", `
 background-color: var(--n-color-embedded-popover);
 `)
    ]))
  ]);
  xm = {
    title: [
      String,
      Function
    ],
    contentClass: String,
    contentStyle: [
      Object,
      String
    ],
    headerClass: String,
    headerStyle: [
      Object,
      String
    ],
    headerExtraClass: String,
    headerExtraStyle: [
      Object,
      String
    ],
    footerClass: String,
    footerStyle: [
      Object,
      String
    ],
    embedded: Boolean,
    segmented: {
      type: [
        Boolean,
        Object
      ],
      default: false
    },
    size: {
      type: String,
      default: "medium"
    },
    bordered: {
      type: Boolean,
      default: true
    },
    closable: Boolean,
    hoverable: Boolean,
    role: String,
    onClose: [
      Function,
      Array
    ],
    tag: {
      type: String,
      default: "div"
    },
    cover: Function,
    content: [
      String,
      Function
    ],
    footer: Function,
    action: Function,
    headerExtra: Function,
    closeFocusable: Boolean
  };
  TO = ur(xm);
  PO = Object.assign(Object.assign({}, Fe.props), xm);
  wr = pe({
    name: "Card",
    props: PO,
    slots: Object,
    setup(e) {
      const t = () => {
        const { onClose: c } = e;
        c && Te(c);
      }, { inlineThemeDisabled: n, mergedClsPrefixRef: r, mergedRtlRef: o } = at(e), i = Fe("Card", "-card", EO, $C, e, r), a = rn("Card", o, r), l = D(() => {
        const { size: c } = e, { self: { color: u, colorModal: d, colorTarget: h, textColor: p, titleTextColor: f, titleFontWeight: m, borderColor: b, actionColor: v, borderRadius: y, lineHeight: w, closeIconColor: x, closeIconColorHover: S, closeIconColorPressed: _, closeColorHover: C, closeColorPressed: k, closeBorderRadius: R, closeIconSize: P, closeSize: B, boxShadow: E, colorPopover: M, colorEmbedded: z, colorEmbeddedModal: U, colorEmbeddedPopover: ee, [Se("padding", c)]: ne, [Se("fontSize", c)]: ae, [Se("titleFontSize", c)]: ye }, common: { cubicBezierEaseInOut: xe } } = i.value, { top: re, left: Y, bottom: H } = En(ne);
        return {
          "--n-bezier": xe,
          "--n-border-radius": y,
          "--n-color": u,
          "--n-color-modal": d,
          "--n-color-popover": M,
          "--n-color-embedded": z,
          "--n-color-embedded-modal": U,
          "--n-color-embedded-popover": ee,
          "--n-color-target": h,
          "--n-text-color": p,
          "--n-line-height": w,
          "--n-action-color": v,
          "--n-title-text-color": f,
          "--n-title-font-weight": m,
          "--n-close-icon-color": x,
          "--n-close-icon-color-hover": S,
          "--n-close-icon-color-pressed": _,
          "--n-close-color-hover": C,
          "--n-close-color-pressed": k,
          "--n-border-color": b,
          "--n-box-shadow": E,
          "--n-padding-top": re,
          "--n-padding-bottom": H,
          "--n-padding-left": Y,
          "--n-font-size": ae,
          "--n-title-font-size": ye,
          "--n-close-size": B,
          "--n-close-icon-size": P,
          "--n-close-border-radius": R
        };
      }), s = n ? xt("card", D(() => e.size[0]), l, e) : void 0;
      return {
        rtlEnabled: a,
        mergedClsPrefix: r,
        mergedTheme: i,
        handleCloseClick: t,
        cssVars: n ? void 0 : l,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender
      };
    },
    render() {
      const { segmented: e, bordered: t, hoverable: n, mergedClsPrefix: r, rtlEnabled: o, onRender: i, embedded: a, tag: l, $slots: s } = this;
      return i == null ? void 0 : i(), g(l, {
        class: [
          `${r}-card`,
          this.themeClass,
          a && `${r}-card--embedded`,
          {
            [`${r}-card--rtl`]: o,
            [`${r}-card--content${typeof e != "boolean" && e.content === "soft" ? "-soft" : ""}-segmented`]: e === true || e !== false && e.content,
            [`${r}-card--footer${typeof e != "boolean" && e.footer === "soft" ? "-soft" : ""}-segmented`]: e === true || e !== false && e.footer,
            [`${r}-card--action-segmented`]: e === true || e !== false && e.action,
            [`${r}-card--bordered`]: t,
            [`${r}-card--hoverable`]: n
          }
        ],
        style: this.cssVars,
        role: this.role
      }, Pt(s.cover, (c) => {
        const u = this.cover ? Wr([
          this.cover()
        ]) : c;
        return u && g("div", {
          class: `${r}-card-cover`,
          role: "none"
        }, u);
      }), Pt(s.header, (c) => {
        const { title: u } = this, d = u ? Wr(typeof u == "function" ? [
          u()
        ] : [
          u
        ]) : c;
        return d || this.closable ? g("div", {
          class: [
            `${r}-card-header`,
            this.headerClass
          ],
          style: this.headerStyle,
          role: "heading"
        }, g("div", {
          class: `${r}-card-header__main`,
          role: "heading"
        }, d), Pt(s["header-extra"], (h) => {
          const p = this.headerExtra ? Wr([
            this.headerExtra()
          ]) : h;
          return p && g("div", {
            class: [
              `${r}-card-header__extra`,
              this.headerExtraClass
            ],
            style: this.headerExtraStyle
          }, p);
        }), this.closable && g(Oi, {
          clsPrefix: r,
          class: `${r}-card-header__close`,
          onClick: this.handleCloseClick,
          focusable: this.closeFocusable,
          absolute: true
        })) : null;
      }), Pt(s.default, (c) => {
        const { content: u } = this, d = u ? Wr(typeof u == "function" ? [
          u()
        ] : [
          u
        ]) : c;
        return d && g("div", {
          class: [
            `${r}-card__content`,
            this.contentClass
          ],
          style: this.contentStyle,
          role: "none"
        }, d);
      }), Pt(s.footer, (c) => {
        const u = this.footer ? Wr([
          this.footer()
        ]) : c;
        return u && g("div", {
          class: [
            `${r}-card__footer`,
            this.footerClass
          ],
          style: this.footerStyle,
          role: "none"
        }, u);
      }), Pt(s.action, (c) => {
        const u = this.action ? Wr([
          this.action()
        ]) : c;
        return u && g("div", {
          class: `${r}-card__action`,
          role: "none"
        }, u);
      }));
    }
  });
  function DO() {
    return {
      dotSize: "8px",
      dotColor: "rgba(255, 255, 255, .3)",
      dotColorActive: "rgba(255, 255, 255, 1)",
      dotColorFocus: "rgba(255, 255, 255, .5)",
      dotLineWidth: "16px",
      dotLineWidthActive: "24px",
      arrowColor: "#eee"
    };
  }
  const $O = {
    name: "Carousel",
    common: Ue,
    self: DO
  }, zO = {
    sizeSmall: "14px",
    sizeMedium: "16px",
    sizeLarge: "18px",
    labelPadding: "0 8px",
    labelFontWeight: "400"
  };
  function OC(e) {
    const { baseColor: t, inputColorDisabled: n, cardColor: r, modalColor: o, popoverColor: i, textColorDisabled: a, borderColor: l, primaryColor: s, textColor2: c, fontSizeSmall: u, fontSizeMedium: d, fontSizeLarge: h, borderRadiusSmall: p, lineHeight: f } = e;
    return Object.assign(Object.assign({}, zO), {
      labelLineHeight: f,
      fontSizeSmall: u,
      fontSizeMedium: d,
      fontSizeLarge: h,
      borderRadius: p,
      color: t,
      colorChecked: s,
      colorDisabled: n,
      colorDisabledChecked: n,
      colorTableHeader: r,
      colorTableHeaderModal: o,
      colorTableHeaderPopover: i,
      checkMarkColor: t,
      checkMarkColorDisabled: a,
      checkMarkColorDisabledChecked: a,
      border: `1px solid ${l}`,
      borderDisabled: `1px solid ${l}`,
      borderDisabledChecked: `1px solid ${l}`,
      borderChecked: `1px solid ${s}`,
      borderFocus: `1px solid ${s}`,
      boxShadowFocus: `0 0 0 2px ${Oe(s, {
        alpha: 0.3
      })}`,
      textColor: c,
      textColorDisabled: a
    });
  }
  const IC = {
    name: "Checkbox",
    common: mt,
    self: OC
  }, Pl = {
    name: "Checkbox",
    common: Ue,
    self(e) {
      const { cardColor: t } = e, n = OC(e);
      return n.color = "#0000", n.checkMarkColor = t, n;
    }
  };
  function OO(e) {
    const { borderRadius: t, boxShadow2: n, popoverColor: r, textColor2: o, textColor3: i, primaryColor: a, textColorDisabled: l, dividerColor: s, hoverColor: c, fontSizeMedium: u, heightMedium: d } = e;
    return {
      menuBorderRadius: t,
      menuColor: r,
      menuBoxShadow: n,
      menuDividerColor: s,
      menuHeight: "calc(var(--n-option-height) * 6.6)",
      optionArrowColor: i,
      optionHeight: d,
      optionFontSize: u,
      optionColorHover: c,
      optionTextColor: o,
      optionTextColorActive: a,
      optionTextColorDisabled: l,
      optionCheckMarkColor: a,
      loadingColor: a,
      columnWidth: "180px"
    };
  }
  let IO, FC, FO, MO, LO, BO, NO, HO, MC;
  IO = {
    name: "Cascader",
    common: Ue,
    peers: {
      InternalSelectMenu: Js,
      InternalSelection: bm,
      Scrollbar: nr,
      Checkbox: Pl,
      Empty: pd
    },
    self: OO
  };
  FC = "n-checkbox-group";
  FO = {
    min: Number,
    max: Number,
    size: String,
    value: Array,
    defaultValue: {
      type: Array,
      default: null
    },
    disabled: {
      type: Boolean,
      default: void 0
    },
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    onChange: [
      Function,
      Array
    ]
  };
  MO = pe({
    name: "CheckboxGroup",
    props: FO,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e), n = Mo(e), { mergedSizeRef: r, mergedDisabledRef: o } = n, i = L(e.defaultValue), a = D(() => e.value), l = mn(a, i), s = D(() => {
        var d;
        return ((d = l.value) === null || d === void 0 ? void 0 : d.length) || 0;
      }), c = D(() => Array.isArray(l.value) ? new Set(l.value) : /* @__PURE__ */ new Set());
      function u(d, h) {
        const { nTriggerFormInput: p, nTriggerFormChange: f } = n, { onChange: m, "onUpdate:value": b, onUpdateValue: v } = e;
        if (Array.isArray(l.value)) {
          const y = Array.from(l.value), w = y.findIndex((x) => x === h);
          d ? ~w || (y.push(h), v && Te(v, y, {
            actionType: "check",
            value: h
          }), b && Te(b, y, {
            actionType: "check",
            value: h
          }), p(), f(), i.value = y, m && Te(m, y)) : ~w && (y.splice(w, 1), v && Te(v, y, {
            actionType: "uncheck",
            value: h
          }), b && Te(b, y, {
            actionType: "uncheck",
            value: h
          }), m && Te(m, y), i.value = y, p(), f());
        } else d ? (v && Te(v, [
          h
        ], {
          actionType: "check",
          value: h
        }), b && Te(b, [
          h
        ], {
          actionType: "check",
          value: h
        }), m && Te(m, [
          h
        ]), i.value = [
          h
        ], p(), f()) : (v && Te(v, [], {
          actionType: "uncheck",
          value: h
        }), b && Te(b, [], {
          actionType: "uncheck",
          value: h
        }), m && Te(m, []), i.value = [], p(), f());
      }
      return ft(FC, {
        checkedCountRef: s,
        maxRef: $e(e, "max"),
        minRef: $e(e, "min"),
        valueSetRef: c,
        disabledRef: o,
        mergedSizeRef: r,
        toggleCheckbox: u
      }), {
        mergedClsPrefix: t
      };
    },
    render() {
      return g("div", {
        class: `${this.mergedClsPrefix}-checkbox-group`,
        role: "group"
      }, this.$slots);
    }
  });
  LO = () => g("svg", {
    viewBox: "0 0 64 64",
    class: "check-icon"
  }, g("path", {
    d: "M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51  c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92  C54.13,15.78,51.93,15.55,50.42,16.76z"
  }));
  BO = () => g("svg", {
    viewBox: "0 0 100 100",
    class: "line-icon"
  }, g("path", {
    d: "M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"
  }));
  NO = W([
    A("checkbox", `
 font-size: var(--n-font-size);
 outline: none;
 cursor: pointer;
 display: inline-flex;
 flex-wrap: nowrap;
 align-items: flex-start;
 word-break: break-word;
 line-height: var(--n-size);
 --n-merged-color-table: var(--n-color-table);
 `, [
      G("show-label", "line-height: var(--n-label-line-height);"),
      W("&:hover", [
        A("checkbox-box", [
          V("border", "border: var(--n-border-checked);")
        ])
      ]),
      W("&:focus:not(:active)", [
        A("checkbox-box", [
          V("border", `
 border: var(--n-border-focus);
 box-shadow: var(--n-box-shadow-focus);
 `)
        ])
      ]),
      G("inside-table", [
        A("checkbox-box", `
 background-color: var(--n-merged-color-table);
 `)
      ]),
      G("checked", [
        A("checkbox-box", `
 background-color: var(--n-color-checked);
 `, [
          A("checkbox-icon", [
            W(".check-icon", `
 opacity: 1;
 transform: scale(1);
 `)
          ])
        ])
      ]),
      G("indeterminate", [
        A("checkbox-box", [
          A("checkbox-icon", [
            W(".check-icon", `
 opacity: 0;
 transform: scale(.5);
 `),
            W(".line-icon", `
 opacity: 1;
 transform: scale(1);
 `)
          ])
        ])
      ]),
      G("checked, indeterminate", [
        W("&:focus:not(:active)", [
          A("checkbox-box", [
            V("border", `
 border: var(--n-border-checked);
 box-shadow: var(--n-box-shadow-focus);
 `)
          ])
        ]),
        A("checkbox-box", `
 background-color: var(--n-color-checked);
 border-left: 0;
 border-top: 0;
 `, [
          V("border", {
            border: "var(--n-border-checked)"
          })
        ])
      ]),
      G("disabled", {
        cursor: "not-allowed"
      }, [
        G("checked", [
          A("checkbox-box", `
 background-color: var(--n-color-disabled-checked);
 `, [
            V("border", {
              border: "var(--n-border-disabled-checked)"
            }),
            A("checkbox-icon", [
              W(".check-icon, .line-icon", {
                fill: "var(--n-check-mark-color-disabled-checked)"
              })
            ])
          ])
        ]),
        A("checkbox-box", `
 background-color: var(--n-color-disabled);
 `, [
          V("border", `
 border: var(--n-border-disabled);
 `),
          A("checkbox-icon", [
            W(".check-icon, .line-icon", `
 fill: var(--n-check-mark-color-disabled);
 `)
          ])
        ]),
        V("label", `
 color: var(--n-text-color-disabled);
 `)
      ]),
      A("checkbox-box-wrapper", `
 position: relative;
 width: var(--n-size);
 flex-shrink: 0;
 flex-grow: 0;
 user-select: none;
 -webkit-user-select: none;
 `),
      A("checkbox-box", `
 position: absolute;
 left: 0;
 top: 50%;
 transform: translateY(-50%);
 height: var(--n-size);
 width: var(--n-size);
 display: inline-block;
 box-sizing: border-box;
 border-radius: var(--n-border-radius);
 background-color: var(--n-color);
 transition: background-color 0.3s var(--n-bezier);
 `, [
        V("border", `
 transition:
 border-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 border-radius: inherit;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border: var(--n-border);
 `),
        A("checkbox-icon", `
 display: flex;
 align-items: center;
 justify-content: center;
 position: absolute;
 left: 1px;
 right: 1px;
 top: 1px;
 bottom: 1px;
 `, [
          W(".check-icon, .line-icon", `
 width: 100%;
 fill: var(--n-check-mark-color);
 opacity: 0;
 transform: scale(0.5);
 transform-origin: center;
 transition:
 fill 0.3s var(--n-bezier),
 transform 0.3s var(--n-bezier),
 opacity 0.3s var(--n-bezier),
 border-color 0.3s var(--n-bezier);
 `),
          kr({
            left: "1px",
            top: "1px"
          })
        ])
      ]),
      V("label", `
 color: var(--n-text-color);
 transition: color .3s var(--n-bezier);
 user-select: none;
 -webkit-user-select: none;
 padding: var(--n-label-padding);
 font-weight: var(--n-label-font-weight);
 `, [
        W("&:empty", {
          display: "none"
        })
      ])
    ]),
    ya(A("checkbox", `
 --n-merged-color-table: var(--n-color-table-modal);
 `)),
    Sl(A("checkbox", `
 --n-merged-color-table: var(--n-color-table-popover);
 `))
  ]);
  HO = Object.assign(Object.assign({}, Fe.props), {
    size: String,
    checked: {
      type: [
        Boolean,
        String,
        Number
      ],
      default: void 0
    },
    defaultChecked: {
      type: [
        Boolean,
        String,
        Number
      ],
      default: false
    },
    value: [
      String,
      Number
    ],
    disabled: {
      type: Boolean,
      default: void 0
    },
    indeterminate: Boolean,
    label: String,
    focusable: {
      type: Boolean,
      default: true
    },
    checkedValue: {
      type: [
        Boolean,
        String,
        Number
      ],
      default: true
    },
    uncheckedValue: {
      type: [
        Boolean,
        String,
        Number
      ],
      default: false
    },
    "onUpdate:checked": [
      Function,
      Array
    ],
    onUpdateChecked: [
      Function,
      Array
    ],
    privateInsideTable: Boolean,
    onChange: [
      Function,
      Array
    ]
  });
  Zs = pe({
    name: "Checkbox",
    props: HO,
    setup(e) {
      const t = je(FC, null), n = L(null), { mergedClsPrefixRef: r, inlineThemeDisabled: o, mergedRtlRef: i } = at(e), a = L(e.defaultChecked), s = mn($e(e, "checked"), a), c = Ct(() => {
        if (t) {
          const _ = t.valueSetRef.value;
          return _ && e.value !== void 0 ? _.has(e.value) : false;
        } else return s.value === e.checkedValue;
      }), u = Mo(e, {
        mergedSize(_) {
          const { size: C } = e;
          if (C !== void 0) return C;
          if (t) {
            const { value: k } = t.mergedSizeRef;
            if (k !== void 0) return k;
          }
          if (_) {
            const { mergedSize: k } = _;
            if (k !== void 0) return k.value;
          }
          return "medium";
        },
        mergedDisabled(_) {
          const { disabled: C } = e;
          if (C !== void 0) return C;
          if (t) {
            if (t.disabledRef.value) return true;
            const { maxRef: { value: k }, checkedCountRef: R } = t;
            if (k !== void 0 && R.value >= k && !c.value) return true;
            const { minRef: { value: P } } = t;
            if (P !== void 0 && R.value <= P && c.value) return true;
          }
          return _ ? _.disabled.value : false;
        }
      }), { mergedDisabledRef: d, mergedSizeRef: h } = u, p = Fe("Checkbox", "-checkbox", NO, IC, e, r);
      function f(_) {
        if (t && e.value !== void 0) t.toggleCheckbox(!c.value, e.value);
        else {
          const { onChange: C, "onUpdate:checked": k, onUpdateChecked: R } = e, { nTriggerFormInput: P, nTriggerFormChange: B } = u, E = c.value ? e.uncheckedValue : e.checkedValue;
          k && Te(k, E, _), R && Te(R, E, _), C && Te(C, E, _), P(), B(), a.value = E;
        }
      }
      function m(_) {
        d.value || f(_);
      }
      function b(_) {
        if (!d.value) switch (_.key) {
          case " ":
          case "Enter":
            f(_);
        }
      }
      function v(_) {
        _.key === " " && _.preventDefault();
      }
      const y = {
        focus: () => {
          var _;
          (_ = n.value) === null || _ === void 0 || _.focus();
        },
        blur: () => {
          var _;
          (_ = n.value) === null || _ === void 0 || _.blur();
        }
      }, w = rn("Checkbox", i, r), x = D(() => {
        const { value: _ } = h, { common: { cubicBezierEaseInOut: C }, self: { borderRadius: k, color: R, colorChecked: P, colorDisabled: B, colorTableHeader: E, colorTableHeaderModal: M, colorTableHeaderPopover: z, checkMarkColor: U, checkMarkColorDisabled: ee, border: ne, borderFocus: ae, borderDisabled: ye, borderChecked: xe, boxShadowFocus: re, textColor: Y, textColorDisabled: H, checkMarkColorDisabledChecked: oe, colorDisabledChecked: ce, borderDisabledChecked: be, labelPadding: ie, labelLineHeight: fe, labelFontWeight: F, [Se("fontSize", _)]: se, [Se("size", _)]: ze } } = p.value;
        return {
          "--n-label-line-height": fe,
          "--n-label-font-weight": F,
          "--n-size": ze,
          "--n-bezier": C,
          "--n-border-radius": k,
          "--n-border": ne,
          "--n-border-checked": xe,
          "--n-border-focus": ae,
          "--n-border-disabled": ye,
          "--n-border-disabled-checked": be,
          "--n-box-shadow-focus": re,
          "--n-color": R,
          "--n-color-checked": P,
          "--n-color-table": E,
          "--n-color-table-modal": M,
          "--n-color-table-popover": z,
          "--n-color-disabled": B,
          "--n-color-disabled-checked": ce,
          "--n-text-color": Y,
          "--n-text-color-disabled": H,
          "--n-check-mark-color": U,
          "--n-check-mark-color-disabled": ee,
          "--n-check-mark-color-disabled-checked": oe,
          "--n-font-size": se,
          "--n-label-padding": ie
        };
      }), S = o ? xt("checkbox", D(() => h.value[0]), x, e) : void 0;
      return Object.assign(u, y, {
        rtlEnabled: w,
        selfRef: n,
        mergedClsPrefix: r,
        mergedDisabled: d,
        renderedChecked: c,
        mergedTheme: p,
        labelId: ai(),
        handleClick: m,
        handleKeyUp: b,
        handleKeyDown: v,
        cssVars: o ? void 0 : x,
        themeClass: S == null ? void 0 : S.themeClass,
        onRender: S == null ? void 0 : S.onRender
      });
    },
    render() {
      var e;
      const { $slots: t, renderedChecked: n, mergedDisabled: r, indeterminate: o, privateInsideTable: i, cssVars: a, labelId: l, label: s, mergedClsPrefix: c, focusable: u, handleKeyUp: d, handleKeyDown: h, handleClick: p } = this;
      (e = this.onRender) === null || e === void 0 || e.call(this);
      const f = Pt(t.default, (m) => s || m ? g("span", {
        class: `${c}-checkbox__label`,
        id: l
      }, s || m) : null);
      return g("div", {
        ref: "selfRef",
        class: [
          `${c}-checkbox`,
          this.themeClass,
          this.rtlEnabled && `${c}-checkbox--rtl`,
          n && `${c}-checkbox--checked`,
          r && `${c}-checkbox--disabled`,
          o && `${c}-checkbox--indeterminate`,
          i && `${c}-checkbox--inside-table`,
          f && `${c}-checkbox--show-label`
        ],
        tabindex: r || !u ? void 0 : 0,
        role: "checkbox",
        "aria-checked": o ? "mixed" : n,
        "aria-labelledby": l,
        style: a,
        onKeyup: d,
        onKeydown: h,
        onClick: p,
        onMousedown: () => {
          Dt("selectstart", window, (m) => {
            m.preventDefault();
          }, {
            once: true
          });
        }
      }, g("div", {
        class: `${c}-checkbox-box-wrapper`
      }, "\xA0", g("div", {
        class: `${c}-checkbox-box`
      }, g(Sa, null, {
        default: () => this.indeterminate ? g("div", {
          key: "indeterminate",
          class: `${c}-checkbox-icon`
        }, BO()) : g("div", {
          key: "check",
          class: `${c}-checkbox-icon`
        }, LO())
      }), g("div", {
        class: `${c}-checkbox-box__border`
      }))), f);
    }
  });
  MC = {
    name: "Code",
    common: Ue,
    self(e) {
      const { textColor2: t, fontSize: n, fontWeightStrong: r, textColor3: o } = e;
      return {
        textColor: t,
        fontSize: n,
        fontWeightStrong: r,
        "mono-3": "#5c6370",
        "hue-1": "#56b6c2",
        "hue-2": "#61aeee",
        "hue-3": "#c678dd",
        "hue-4": "#98c379",
        "hue-5": "#e06c75",
        "hue-5-2": "#be5046",
        "hue-6": "#d19a66",
        "hue-6-2": "#e6c07b",
        lineNumberTextColor: o
      };
    }
  };
  function LC(e) {
    const { fontWeight: t, textColor1: n, textColor2: r, textColorDisabled: o, dividerColor: i, fontSize: a } = e;
    return {
      titleFontSize: a,
      titleFontWeight: t,
      dividerColor: i,
      titleTextColor: n,
      titleTextColorDisabled: o,
      fontSize: a,
      textColor: r,
      arrowColor: r,
      arrowColorDisabled: o,
      itemMargin: "16px 0 0 0",
      titlePadding: "16px 0 0 0"
    };
  }
  let jO, WO, UO, VO, BC, GO, KO;
  jO = {
    common: mt,
    self: LC
  };
  WO = {
    name: "Collapse",
    common: Ue,
    self: LC
  };
  UO = A("collapse", "width: 100%;", [
    A("collapse-item", `
 font-size: var(--n-font-size);
 color: var(--n-text-color);
 transition:
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 margin: var(--n-item-margin);
 `, [
      G("disabled", [
        V("header", "cursor: not-allowed;", [
          V("header-main", `
 color: var(--n-title-text-color-disabled);
 `),
          A("collapse-item-arrow", `
 color: var(--n-arrow-color-disabled);
 `)
        ])
      ]),
      A("collapse-item", "margin-left: 32px;"),
      W("&:first-child", "margin-top: 0;"),
      W("&:first-child >", [
        V("header", "padding-top: 0;")
      ]),
      G("left-arrow-placement", [
        V("header", [
          A("collapse-item-arrow", "margin-right: 4px;")
        ])
      ]),
      G("right-arrow-placement", [
        V("header", [
          A("collapse-item-arrow", "margin-left: 4px;")
        ])
      ]),
      V("content-wrapper", [
        V("content-inner", "padding-top: 16px;"),
        md({
          duration: "0.15s"
        })
      ]),
      G("active", [
        V("header", [
          G("active", [
            A("collapse-item-arrow", "transform: rotate(90deg);")
          ])
        ])
      ]),
      W("&:not(:first-child)", "border-top: 1px solid var(--n-divider-color);"),
      At("disabled", [
        G("trigger-area-main", [
          V("header", [
            V("header-main", "cursor: pointer;"),
            A("collapse-item-arrow", "cursor: default;")
          ])
        ]),
        G("trigger-area-arrow", [
          V("header", [
            A("collapse-item-arrow", "cursor: pointer;")
          ])
        ]),
        G("trigger-area-extra", [
          V("header", [
            V("header-extra", "cursor: pointer;")
          ])
        ])
      ]),
      V("header", `
 font-size: var(--n-title-font-size);
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 transition: color .3s var(--n-bezier);
 position: relative;
 padding: var(--n-title-padding);
 color: var(--n-title-text-color);
 `, [
        V("header-main", `
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 flex: 1;
 color: var(--n-title-text-color);
 `),
        V("header-extra", `
 display: flex;
 align-items: center;
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 `),
        A("collapse-item-arrow", `
 display: flex;
 transition:
 transform .15s var(--n-bezier),
 color .3s var(--n-bezier);
 font-size: 18px;
 color: var(--n-arrow-color);
 `)
      ])
    ])
  ]);
  VO = Object.assign(Object.assign({}, Fe.props), {
    defaultExpandedNames: {
      type: [
        Array,
        String
      ],
      default: null
    },
    expandedNames: [
      Array,
      String
    ],
    arrowPlacement: {
      type: String,
      default: "left"
    },
    accordion: {
      type: Boolean,
      default: false
    },
    displayDirective: {
      type: String,
      default: "if"
    },
    triggerAreas: {
      type: Array,
      default: () => [
        "main",
        "extra",
        "arrow"
      ]
    },
    onItemHeaderClick: [
      Function,
      Array
    ],
    "onUpdate:expandedNames": [
      Function,
      Array
    ],
    onUpdateExpandedNames: [
      Function,
      Array
    ],
    onExpandedNamesChange: {
      type: [
        Function,
        Array
      ],
      validator: () => true,
      default: void 0
    }
  });
  BC = "n-collapse";
  qO = pe({
    name: "Collapse",
    props: VO,
    slots: Object,
    setup(e, { slots: t }) {
      const { mergedClsPrefixRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = L(e.defaultExpandedNames), a = D(() => e.expandedNames), l = mn(a, i), s = Fe("Collapse", "-collapse", UO, jO, e, n);
      function c(m) {
        const { "onUpdate:expandedNames": b, onUpdateExpandedNames: v, onExpandedNamesChange: y } = e;
        v && Te(v, m), b && Te(b, m), y && Te(y, m), i.value = m;
      }
      function u(m) {
        const { onItemHeaderClick: b } = e;
        b && Te(b, m);
      }
      function d(m, b, v) {
        const { accordion: y } = e, { value: w } = l;
        if (y) m ? (c([
          b
        ]), u({
          name: b,
          expanded: true,
          event: v
        })) : (c([]), u({
          name: b,
          expanded: false,
          event: v
        }));
        else if (!Array.isArray(w)) c([
          b
        ]), u({
          name: b,
          expanded: true,
          event: v
        });
        else {
          const x = w.slice(), S = x.findIndex((_) => b === _);
          ~S ? (x.splice(S, 1), c(x), u({
            name: b,
            expanded: false,
            event: v
          })) : (x.push(b), c(x), u({
            name: b,
            expanded: true,
            event: v
          }));
        }
      }
      ft(BC, {
        props: e,
        mergedClsPrefixRef: n,
        expandedNamesRef: l,
        slots: t,
        toggleItem: d
      });
      const h = rn("Collapse", o, n), p = D(() => {
        const { common: { cubicBezierEaseInOut: m }, self: { titleFontWeight: b, dividerColor: v, titlePadding: y, titleTextColor: w, titleTextColorDisabled: x, textColor: S, arrowColor: _, fontSize: C, titleFontSize: k, arrowColorDisabled: R, itemMargin: P } } = s.value;
        return {
          "--n-font-size": C,
          "--n-bezier": m,
          "--n-text-color": S,
          "--n-divider-color": v,
          "--n-title-padding": y,
          "--n-title-font-size": k,
          "--n-title-text-color": w,
          "--n-title-text-color-disabled": x,
          "--n-title-font-weight": b,
          "--n-arrow-color": _,
          "--n-arrow-color-disabled": R,
          "--n-item-margin": P
        };
      }), f = r ? xt("collapse", void 0, p, e) : void 0;
      return {
        rtlEnabled: h,
        mergedTheme: s,
        mergedClsPrefix: n,
        cssVars: r ? void 0 : p,
        themeClass: f == null ? void 0 : f.themeClass,
        onRender: f == null ? void 0 : f.onRender
      };
    },
    render() {
      var e;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${this.mergedClsPrefix}-collapse`,
          this.rtlEnabled && `${this.mergedClsPrefix}-collapse--rtl`,
          this.themeClass
        ],
        style: this.cssVars
      }, this.$slots);
    }
  });
  GO = pe({
    name: "CollapseItemContent",
    props: {
      displayDirective: {
        type: String,
        required: true
      },
      show: Boolean,
      clsPrefix: {
        type: String,
        required: true
      }
    },
    setup(e) {
      return {
        onceTrue: Jx($e(e, "show"))
      };
    },
    render() {
      return g(El, null, {
        default: () => {
          const { show: e, displayDirective: t, onceTrue: n, clsPrefix: r } = this, o = t === "show" && n, i = g("div", {
            class: `${r}-collapse-item__content-wrapper`
          }, g("div", {
            class: `${r}-collapse-item__content-inner`
          }, this.$slots));
          return o ? $r(i, [
            [
              zo,
              e
            ]
          ]) : e ? i : null;
        }
      });
    }
  });
  KO = {
    title: String,
    name: [
      String,
      Number
    ],
    disabled: Boolean,
    displayDirective: String
  };
  YO = pe({
    name: "CollapseItem",
    props: KO,
    setup(e) {
      const { mergedRtlRef: t } = at(e), n = ai(), r = Ct(() => {
        var d;
        return (d = e.name) !== null && d !== void 0 ? d : n;
      }), o = je(BC);
      o || $i("collapse-item", "`n-collapse-item` must be placed inside `n-collapse`.");
      const { expandedNamesRef: i, props: a, mergedClsPrefixRef: l, slots: s } = o, c = D(() => {
        const { value: d } = i;
        if (Array.isArray(d)) {
          const { value: h } = r;
          return !~d.findIndex((p) => p === h);
        } else if (d) {
          const { value: h } = r;
          return h !== d;
        }
        return true;
      });
      return {
        rtlEnabled: rn("Collapse", t, l),
        collapseSlots: s,
        randomName: n,
        mergedClsPrefix: l,
        collapsed: c,
        triggerAreas: $e(a, "triggerAreas"),
        mergedDisplayDirective: D(() => {
          const { displayDirective: d } = e;
          return d || a.displayDirective;
        }),
        arrowPlacement: D(() => a.arrowPlacement),
        handleClick(d) {
          let h = "main";
          mr(d, "arrow") && (h = "arrow"), mr(d, "extra") && (h = "extra"), a.triggerAreas.includes(h) && o && !e.disabled && o.toggleItem(c.value, r.value, d);
        }
      };
    },
    render() {
      const { collapseSlots: e, $slots: t, arrowPlacement: n, collapsed: r, mergedDisplayDirective: o, mergedClsPrefix: i, disabled: a, triggerAreas: l } = this, s = Th(t.header, {
        collapsed: r
      }, () => [
        this.title
      ]), c = t["header-extra"] || e["header-extra"], u = t.arrow || e.arrow;
      return g("div", {
        class: [
          `${i}-collapse-item`,
          `${i}-collapse-item--${n}-arrow-placement`,
          a && `${i}-collapse-item--disabled`,
          !r && `${i}-collapse-item--active`,
          l.map((d) => `${i}-collapse-item--trigger-area-${d}`)
        ]
      }, g("div", {
        class: [
          `${i}-collapse-item__header`,
          !r && `${i}-collapse-item__header--active`
        ]
      }, g("div", {
        class: `${i}-collapse-item__header-main`,
        onClick: this.handleClick
      }, n === "right" && s, g("div", {
        class: `${i}-collapse-item-arrow`,
        key: this.rtlEnabled ? 0 : 1,
        "data-arrow": true
      }, Th(u, {
        collapsed: r
      }, () => [
        g(Jt, {
          clsPrefix: i
        }, {
          default: () => this.rtlEnabled ? g(az, null) : g(pm, null)
        })
      ])), n === "left" && s), IT(c, {
        collapsed: r
      }, (d) => g("div", {
        class: `${i}-collapse-item__header-extra`,
        onClick: this.handleClick,
        "data-extra": true
      }, d))), g(GO, {
        clsPrefix: i,
        displayDirective: o,
        show: !r
      }, t));
    }
  });
  function XO(e) {
    const { cubicBezierEaseInOut: t } = e;
    return {
      bezier: t
    };
  }
  const JO = {
    name: "CollapseTransition",
    common: Ue,
    self: XO
  };
  function ZO(e) {
    const { fontSize: t, boxShadow2: n, popoverColor: r, textColor2: o, borderRadius: i, borderColor: a, heightSmall: l, heightMedium: s, heightLarge: c, fontSizeSmall: u, fontSizeMedium: d, fontSizeLarge: h, dividerColor: p } = e;
    return {
      panelFontSize: t,
      boxShadow: n,
      color: r,
      textColor: o,
      borderRadius: i,
      border: `1px solid ${a}`,
      heightSmall: l,
      heightMedium: s,
      heightLarge: c,
      fontSizeSmall: u,
      fontSizeMedium: d,
      fontSizeLarge: h,
      dividerColor: p
    };
  }
  const QO = {
    name: "ColorPicker",
    common: Ue,
    peers: {
      Input: Fr,
      Button: xr
    },
    self: ZO
  }, eI = {
    abstract: Boolean,
    bordered: {
      type: Boolean,
      default: void 0
    },
    clsPrefix: String,
    locale: Object,
    dateLocale: Object,
    namespace: String,
    rtl: Array,
    tag: {
      type: String,
      default: "div"
    },
    hljs: Object,
    katex: Object,
    theme: Object,
    themeOverrides: Object,
    componentOptions: Object,
    icons: Object,
    breakpoints: Object,
    preflightStyleDisabled: Boolean,
    styleMountTarget: Object,
    inlineThemeDisabled: {
      type: Boolean,
      default: void 0
    },
    as: {
      type: String,
      validator: () => (lo("config-provider", "`as` is deprecated, please use `tag` instead."), true),
      default: void 0
    }
  }, tI = pe({
    name: "ConfigProvider",
    alias: [
      "App"
    ],
    props: eI,
    setup(e) {
      const t = je(qr, null), n = D(() => {
        const { theme: m } = e;
        if (m === null) return;
        const b = t == null ? void 0 : t.mergedThemeRef.value;
        return m === void 0 ? b : b === void 0 ? m : Object.assign({}, b, m);
      }), r = D(() => {
        const { themeOverrides: m } = e;
        if (m !== null) {
          if (m === void 0) return t == null ? void 0 : t.mergedThemeOverridesRef.value;
          {
            const b = t == null ? void 0 : t.mergedThemeOverridesRef.value;
            return b === void 0 ? m : Xa({}, b, m);
          }
        }
      }), o = Ct(() => {
        const { namespace: m } = e;
        return m === void 0 ? t == null ? void 0 : t.mergedNamespaceRef.value : m;
      }), i = Ct(() => {
        const { bordered: m } = e;
        return m === void 0 ? t == null ? void 0 : t.mergedBorderedRef.value : m;
      }), a = D(() => {
        const { icons: m } = e;
        return m === void 0 ? t == null ? void 0 : t.mergedIconsRef.value : m;
      }), l = D(() => {
        const { componentOptions: m } = e;
        return m !== void 0 ? m : t == null ? void 0 : t.mergedComponentPropsRef.value;
      }), s = D(() => {
        const { clsPrefix: m } = e;
        return m !== void 0 ? m : t ? t.mergedClsPrefixRef.value : Su;
      }), c = D(() => {
        var m;
        const { rtl: b } = e;
        if (b === void 0) return t == null ? void 0 : t.mergedRtlRef.value;
        const v = {};
        for (const y of b) v[y.name] = ch(y), (m = y.peers) === null || m === void 0 || m.forEach((w) => {
          w.name in v || (v[w.name] = ch(w));
        });
        return v;
      }), u = D(() => e.breakpoints || (t == null ? void 0 : t.mergedBreakpointsRef.value)), d = e.inlineThemeDisabled || (t == null ? void 0 : t.inlineThemeDisabled), h = e.preflightStyleDisabled || (t == null ? void 0 : t.preflightStyleDisabled), p = e.styleMountTarget || (t == null ? void 0 : t.styleMountTarget), f = D(() => {
        const { value: m } = n, { value: b } = r, v = b && Object.keys(b).length !== 0, y = m == null ? void 0 : m.name;
        return y ? v ? `${y}-${sl(JSON.stringify(r.value))}` : y : v ? sl(JSON.stringify(r.value)) : "";
      });
      return ft(qr, {
        mergedThemeHashRef: f,
        mergedBreakpointsRef: u,
        mergedRtlRef: c,
        mergedIconsRef: a,
        mergedComponentPropsRef: l,
        mergedBorderedRef: i,
        mergedNamespaceRef: o,
        mergedClsPrefixRef: s,
        mergedLocaleRef: D(() => {
          const { locale: m } = e;
          if (m !== null) return m === void 0 ? t == null ? void 0 : t.mergedLocaleRef.value : m;
        }),
        mergedDateLocaleRef: D(() => {
          const { dateLocale: m } = e;
          if (m !== null) return m === void 0 ? t == null ? void 0 : t.mergedDateLocaleRef.value : m;
        }),
        mergedHljsRef: D(() => {
          const { hljs: m } = e;
          return m === void 0 ? t == null ? void 0 : t.mergedHljsRef.value : m;
        }),
        mergedKatexRef: D(() => {
          const { katex: m } = e;
          return m === void 0 ? t == null ? void 0 : t.mergedKatexRef.value : m;
        }),
        mergedThemeRef: n,
        mergedThemeOverridesRef: r,
        inlineThemeDisabled: d || false,
        preflightStyleDisabled: h || false,
        styleMountTarget: p
      }), {
        mergedClsPrefix: s,
        mergedBordered: i,
        mergedNamespace: o,
        mergedTheme: n,
        mergedThemeOverrides: r
      };
    },
    render() {
      var e, t, n, r;
      return this.abstract ? (r = (n = this.$slots).default) === null || r === void 0 ? void 0 : r.call(n) : g(this.as || this.tag, {
        class: `${this.mergedClsPrefix || Su}-config-provider`
      }, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e));
    }
  }), NC = {
    name: "Popselect",
    common: Ue,
    peers: {
      Popover: Ea,
      InternalSelectMenu: Js
    }
  };
  function nI(e) {
    const { boxShadow2: t } = e;
    return {
      menuBoxShadow: t
    };
  }
  const wm = {
    name: "Popselect",
    common: mt,
    peers: {
      Popover: Aa,
      InternalSelectMenu: vm
    },
    self: nI
  }, HC = "n-popselect", rI = A("popselect-menu", `
 box-shadow: var(--n-menu-box-shadow);
`), Cm = {
    multiple: Boolean,
    value: {
      type: [
        String,
        Number,
        Array
      ],
      default: null
    },
    cancelable: Boolean,
    options: {
      type: Array,
      default: () => []
    },
    size: {
      type: String,
      default: "medium"
    },
    scrollable: Boolean,
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    onMouseenter: Function,
    onMouseleave: Function,
    renderLabel: Function,
    showCheckmark: {
      type: Boolean,
      default: void 0
    },
    nodeProps: Function,
    virtualScroll: Boolean,
    onChange: [
      Function,
      Array
    ]
  }, $b = ur(Cm), oI = pe({
    name: "PopselectPanel",
    props: Cm,
    setup(e) {
      const t = je(HC), { mergedClsPrefixRef: n, inlineThemeDisabled: r } = at(e), o = Fe("Popselect", "-pop-select", rI, wm, t.props, n), i = D(() => ca(e.options, RC("value", "children")));
      function a(h, p) {
        const { onUpdateValue: f, "onUpdate:value": m, onChange: b } = e;
        f && Te(f, h, p), m && Te(m, h, p), b && Te(b, h, p);
      }
      function l(h) {
        c(h.key);
      }
      function s(h) {
        !mr(h, "action") && !mr(h, "empty") && !mr(h, "header") && h.preventDefault();
      }
      function c(h) {
        const { value: { getNode: p } } = i;
        if (e.multiple) if (Array.isArray(e.value)) {
          const f = [], m = [];
          let b = true;
          e.value.forEach((v) => {
            if (v === h) {
              b = false;
              return;
            }
            const y = p(v);
            y && (f.push(y.key), m.push(y.rawNode));
          }), b && (f.push(h), m.push(p(h).rawNode)), a(f, m);
        } else {
          const f = p(h);
          f && a([
            h
          ], [
            f.rawNode
          ]);
        }
        else if (e.value === h && e.cancelable) a(null, null);
        else {
          const f = p(h);
          f && a(h, f.rawNode);
          const { "onUpdate:show": m, onUpdateShow: b } = t.props;
          m && Te(m, false), b && Te(b, false), t.setShow(false);
        }
        sn(() => {
          t.syncPosition();
        });
      }
      lt($e(e, "options"), () => {
        sn(() => {
          t.syncPosition();
        });
      });
      const u = D(() => {
        const { self: { menuBoxShadow: h } } = o.value;
        return {
          "--n-menu-box-shadow": h
        };
      }), d = r ? xt("select", void 0, u, t.props) : void 0;
      return {
        mergedTheme: t.mergedThemeRef,
        mergedClsPrefix: n,
        treeMate: i,
        handleToggle: l,
        handleMenuMousedown: s,
        cssVars: r ? void 0 : u,
        themeClass: d == null ? void 0 : d.themeClass,
        onRender: d == null ? void 0 : d.onRender
      };
    },
    render() {
      var e;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g(cC, {
        clsPrefix: this.mergedClsPrefix,
        focusable: true,
        nodeProps: this.nodeProps,
        class: [
          `${this.mergedClsPrefix}-popselect-menu`,
          this.themeClass
        ],
        style: this.cssVars,
        theme: this.mergedTheme.peers.InternalSelectMenu,
        themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu,
        multiple: this.multiple,
        treeMate: this.treeMate,
        size: this.size,
        value: this.value,
        virtualScroll: this.virtualScroll,
        scrollable: this.scrollable,
        renderLabel: this.renderLabel,
        onToggle: this.handleToggle,
        onMouseenter: this.onMouseenter,
        onMouseleave: this.onMouseenter,
        onMousedown: this.handleMenuMousedown,
        showCheckmark: this.showCheckmark
      }, {
        header: () => {
          var t, n;
          return ((n = (t = this.$slots).header) === null || n === void 0 ? void 0 : n.call(t)) || [];
        },
        action: () => {
          var t, n;
          return ((n = (t = this.$slots).action) === null || n === void 0 ? void 0 : n.call(t)) || [];
        },
        empty: () => {
          var t, n;
          return ((n = (t = this.$slots).empty) === null || n === void 0 ? void 0 : n.call(t)) || [];
        }
      });
    }
  }), iI = Object.assign(Object.assign(Object.assign(Object.assign({}, Fe.props), kl(ga, [
    "showArrow",
    "arrow"
  ])), {
    placement: Object.assign(Object.assign({}, ga.placement), {
      default: "bottom"
    }),
    trigger: {
      type: String,
      default: "hover"
    }
  }), Cm), aI = pe({
    name: "Popselect",
    props: iI,
    slots: Object,
    inheritAttrs: false,
    __popover__: true,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e), n = Fe("Popselect", "-popselect", void 0, wm, e, t), r = L(null);
      function o() {
        var l;
        (l = r.value) === null || l === void 0 || l.syncPosition();
      }
      function i(l) {
        var s;
        (s = r.value) === null || s === void 0 || s.setShow(l);
      }
      return ft(HC, {
        props: e,
        mergedThemeRef: n,
        syncPosition: o,
        setShow: i
      }), Object.assign(Object.assign({}, {
        syncPosition: o,
        setShow: i
      }), {
        popoverInstRef: r,
        mergedTheme: n
      });
    },
    render() {
      const { mergedTheme: e } = this, t = {
        theme: e.peers.Popover,
        themeOverrides: e.peerOverrides.Popover,
        builtinThemeOverrides: {
          padding: "0"
        },
        ref: "popoverInstRef",
        internalRenderBody: (n, r, o, i, a) => {
          const { $attrs: l } = this;
          return g(oI, Object.assign({}, l, {
            class: [
              l.class,
              n
            ],
            style: [
              l.style,
              ...o
            ]
          }, cr(this.$props, $b), {
            ref: Sw(r),
            onMouseenter: ms([
              i,
              l.onMouseenter
            ]),
            onMouseleave: ms([
              a,
              l.onMouseleave
            ])
          }), {
            header: () => {
              var s, c;
              return (c = (s = this.$slots).header) === null || c === void 0 ? void 0 : c.call(s);
            },
            action: () => {
              var s, c;
              return (c = (s = this.$slots).action) === null || c === void 0 ? void 0 : c.call(s);
            },
            empty: () => {
              var s, c;
              return (c = (s = this.$slots).empty) === null || c === void 0 ? void 0 : c.call(s);
            }
          });
        }
      };
      return g(Tl, Object.assign({}, kl(this.$props, $b), t, {
        internalDeactivateImmediately: true
      }), {
        trigger: () => {
          var n, r;
          return (r = (n = this.$slots).default) === null || r === void 0 ? void 0 : r.call(n);
        }
      });
    }
  });
  function jC(e) {
    const { boxShadow2: t } = e;
    return {
      menuBoxShadow: t
    };
  }
  let WC, UC, lI, sI, cI;
  WC = {
    name: "Select",
    common: mt,
    peers: {
      InternalSelection: bC,
      InternalSelectMenu: vm
    },
    self: jC
  };
  UC = {
    name: "Select",
    common: Ue,
    peers: {
      InternalSelection: bm,
      InternalSelectMenu: Js
    },
    self: jC
  };
  lI = W([
    A("select", `
 z-index: auto;
 outline: none;
 width: 100%;
 position: relative;
 font-weight: var(--n-font-weight);
 `),
    A("select-menu", `
 margin: 4px 0;
 box-shadow: var(--n-menu-box-shadow);
 `, [
      Oo({
        originalTransition: "background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"
      })
    ])
  ]);
  sI = Object.assign(Object.assign({}, Fe.props), {
    to: Or.propTo,
    bordered: {
      type: Boolean,
      default: void 0
    },
    clearable: Boolean,
    clearFilterAfterSelect: {
      type: Boolean,
      default: true
    },
    options: {
      type: Array,
      default: () => []
    },
    defaultValue: {
      type: [
        String,
        Number,
        Array
      ],
      default: null
    },
    keyboard: {
      type: Boolean,
      default: true
    },
    value: [
      String,
      Number,
      Array
    ],
    placeholder: String,
    menuProps: Object,
    multiple: Boolean,
    size: String,
    menuSize: {
      type: String
    },
    filterable: Boolean,
    disabled: {
      type: Boolean,
      default: void 0
    },
    remote: Boolean,
    loading: Boolean,
    filter: Function,
    placement: {
      type: String,
      default: "bottom-start"
    },
    widthMode: {
      type: String,
      default: "trigger"
    },
    tag: Boolean,
    onCreate: Function,
    fallbackOption: {
      type: [
        Function,
        Boolean
      ],
      default: void 0
    },
    show: {
      type: Boolean,
      default: void 0
    },
    showArrow: {
      type: Boolean,
      default: true
    },
    maxTagCount: [
      Number,
      String
    ],
    ellipsisTagPopoverProps: Object,
    consistentMenuWidth: {
      type: Boolean,
      default: true
    },
    virtualScroll: {
      type: Boolean,
      default: true
    },
    labelField: {
      type: String,
      default: "label"
    },
    valueField: {
      type: String,
      default: "value"
    },
    childrenField: {
      type: String,
      default: "children"
    },
    renderLabel: Function,
    renderOption: Function,
    renderTag: Function,
    "onUpdate:value": [
      Function,
      Array
    ],
    inputProps: Object,
    nodeProps: Function,
    ignoreComposition: {
      type: Boolean,
      default: true
    },
    showOnFocus: Boolean,
    onUpdateValue: [
      Function,
      Array
    ],
    onBlur: [
      Function,
      Array
    ],
    onClear: [
      Function,
      Array
    ],
    onFocus: [
      Function,
      Array
    ],
    onScroll: [
      Function,
      Array
    ],
    onSearch: [
      Function,
      Array
    ],
    onUpdateShow: [
      Function,
      Array
    ],
    "onUpdate:show": [
      Function,
      Array
    ],
    displayDirective: {
      type: String,
      default: "show"
    },
    resetMenuOnOptionsChange: {
      type: Boolean,
      default: true
    },
    status: String,
    showCheckmark: {
      type: Boolean,
      default: true
    },
    onChange: [
      Function,
      Array
    ],
    items: Array
  });
  Qs = pe({
    name: "Select",
    props: sI,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedBorderedRef: n, namespaceRef: r, inlineThemeDisabled: o } = at(e), i = Fe("Select", "-select", lI, WC, e, t), a = L(e.defaultValue), s = mn($e(e, "value"), a), c = L(false), u = L(""), d = ha(e, [
        "items",
        "options"
      ]), h = L([]), p = L([]), f = D(() => p.value.concat(h.value).concat(d.value)), m = D(() => {
        const { filter: Q } = e;
        if (Q) return Q;
        const { labelField: me, valueField: Ee } = e;
        return (He, Ve) => {
          if (!Ve) return false;
          const Ke = Ve[me];
          if (typeof Ke == "string") return wf(He, Ke);
          const Xe = Ve[Ee];
          return typeof Xe == "string" ? wf(He, Xe) : typeof Xe == "number" ? wf(He, String(Xe)) : false;
        };
      }), b = D(() => {
        if (e.remote) return d.value;
        {
          const { value: Q } = f, { value: me } = u;
          return !me.length || !e.filterable ? Q : V8(Q, m.value, me, e.childrenField);
        }
      }), v = D(() => {
        const { valueField: Q, childrenField: me } = e, Ee = RC(Q, me);
        return ca(b.value, Ee);
      }), y = D(() => q8(f.value, e.valueField, e.childrenField)), w = L(false), x = mn($e(e, "show"), w), S = L(null), _ = L(null), C = L(null), { localeRef: k } = ma("Select"), R = D(() => {
        var Q;
        return (Q = e.placeholder) !== null && Q !== void 0 ? Q : k.value.placeholder;
      }), P = [], B = L(/* @__PURE__ */ new Map()), E = D(() => {
        const { fallbackOption: Q } = e;
        if (Q === void 0) {
          const { labelField: me, valueField: Ee } = e;
          return (He) => ({
            [me]: String(He),
            [Ee]: He
          });
        }
        return Q === false ? false : (me) => Object.assign(Q(me), {
          value: me
        });
      });
      function M(Q) {
        const me = e.remote, { value: Ee } = B, { value: He } = y, { value: Ve } = E, Ke = [];
        return Q.forEach((Xe) => {
          if (He.has(Xe)) Ke.push(He.get(Xe));
          else if (me && Ee.has(Xe)) Ke.push(Ee.get(Xe));
          else if (Ve) {
            const Qe = Ve(Xe);
            Qe && Ke.push(Qe);
          }
        }), Ke;
      }
      const z = D(() => {
        if (e.multiple) {
          const { value: Q } = s;
          return Array.isArray(Q) ? M(Q) : [];
        }
        return null;
      }), U = D(() => {
        const { value: Q } = s;
        return !e.multiple && !Array.isArray(Q) ? Q === null ? null : M([
          Q
        ])[0] || null : null;
      }), ee = Mo(e), { mergedSizeRef: ne, mergedDisabledRef: ae, mergedStatusRef: ye } = ee;
      function xe(Q, me) {
        const { onChange: Ee, "onUpdate:value": He, onUpdateValue: Ve } = e, { nTriggerFormChange: Ke, nTriggerFormInput: Xe } = ee;
        Ee && Te(Ee, Q, me), Ve && Te(Ve, Q, me), He && Te(He, Q, me), a.value = Q, Ke(), Xe();
      }
      function re(Q) {
        const { onBlur: me } = e, { nTriggerFormBlur: Ee } = ee;
        me && Te(me, Q), Ee();
      }
      function Y() {
        const { onClear: Q } = e;
        Q && Te(Q);
      }
      function H(Q) {
        const { onFocus: me, showOnFocus: Ee } = e, { nTriggerFormFocus: He } = ee;
        me && Te(me, Q), He(), Ee && fe();
      }
      function oe(Q) {
        const { onSearch: me } = e;
        me && Te(me, Q);
      }
      function ce(Q) {
        const { onScroll: me } = e;
        me && Te(me, Q);
      }
      function be() {
        var Q;
        const { remote: me, multiple: Ee } = e;
        if (me) {
          const { value: He } = B;
          if (Ee) {
            const { valueField: Ve } = e;
            (Q = z.value) === null || Q === void 0 || Q.forEach((Ke) => {
              He.set(Ke[Ve], Ke);
            });
          } else {
            const Ve = U.value;
            Ve && He.set(Ve[e.valueField], Ve);
          }
        }
      }
      function ie(Q) {
        const { onUpdateShow: me, "onUpdate:show": Ee } = e;
        me && Te(me, Q), Ee && Te(Ee, Q), w.value = Q;
      }
      function fe() {
        ae.value || (ie(true), w.value = true, e.filterable && rt());
      }
      function F() {
        ie(false);
      }
      function se() {
        u.value = "", p.value = P;
      }
      const ze = L(false);
      function q() {
        e.filterable && (ze.value = true);
      }
      function J() {
        e.filterable && (ze.value = false, x.value || se());
      }
      function le() {
        ae.value || (x.value ? e.filterable ? rt() : F() : fe());
      }
      function we(Q) {
        var me, Ee;
        !((Ee = (me = C.value) === null || me === void 0 ? void 0 : me.selfRef) === null || Ee === void 0) && Ee.contains(Q.relatedTarget) || (c.value = false, re(Q), F());
      }
      function ke(Q) {
        H(Q), c.value = true;
      }
      function _e() {
        c.value = true;
      }
      function K(Q) {
        var me;
        !((me = S.value) === null || me === void 0) && me.$el.contains(Q.relatedTarget) || (c.value = false, re(Q), F());
      }
      function N() {
        var Q;
        (Q = S.value) === null || Q === void 0 || Q.focus(), F();
      }
      function j(Q) {
        var me;
        x.value && (!((me = S.value) === null || me === void 0) && me.$el.contains(cl(Q)) || F());
      }
      function X(Q) {
        if (!Array.isArray(Q)) return [];
        if (E.value) return Array.from(Q);
        {
          const { remote: me } = e, { value: Ee } = y;
          if (me) {
            const { value: He } = B;
            return Q.filter((Ve) => Ee.has(Ve) || He.has(Ve));
          } else return Q.filter((He) => Ee.has(He));
        }
      }
      function ge(Q) {
        te(Q.rawNode);
      }
      function te(Q) {
        if (ae.value) return;
        const { tag: me, remote: Ee, clearFilterAfterSelect: He, valueField: Ve } = e;
        if (me && !Ee) {
          const { value: Ke } = p, Xe = Ke[0] || null;
          if (Xe) {
            const Qe = h.value;
            Qe.length ? Qe.push(Xe) : h.value = [
              Xe
            ], p.value = P;
          }
        }
        if (Ee && B.value.set(Q[Ve], Q), e.multiple) {
          const Ke = X(s.value), Xe = Ke.findIndex((Qe) => Qe === Q[Ve]);
          if (~Xe) {
            if (Ke.splice(Xe, 1), me && !Ee) {
              const Qe = I(Q[Ve]);
              ~Qe && (h.value.splice(Qe, 1), He && (u.value = ""));
            }
          } else Ke.push(Q[Ve]), He && (u.value = "");
          xe(Ke, M(Ke));
        } else {
          if (me && !Ee) {
            const Ke = I(Q[Ve]);
            ~Ke ? h.value = [
              h.value[Ke]
            ] : h.value = P;
          }
          Ze(), F(), xe(Q[Ve], Q);
        }
      }
      function I(Q) {
        return h.value.findIndex((Ee) => Ee[e.valueField] === Q);
      }
      function Z(Q) {
        x.value || fe();
        const { value: me } = Q.target;
        u.value = me;
        const { tag: Ee, remote: He } = e;
        if (oe(me), Ee && !He) {
          if (!me) {
            p.value = P;
            return;
          }
          const { onCreate: Ve } = e, Ke = Ve ? Ve(me) : {
            [e.labelField]: me,
            [e.valueField]: me
          }, { valueField: Xe, labelField: Qe } = e;
          d.value.some((_t) => _t[Xe] === Ke[Xe] || _t[Qe] === Ke[Qe]) || h.value.some((_t) => _t[Xe] === Ke[Xe] || _t[Qe] === Ke[Qe]) ? p.value = P : p.value = [
            Ke
          ];
        }
      }
      function Ce(Q) {
        Q.stopPropagation();
        const { multiple: me } = e;
        !me && e.filterable && F(), Y(), me ? xe([], []) : xe(null, null);
      }
      function De(Q) {
        !mr(Q, "action") && !mr(Q, "empty") && !mr(Q, "header") && Q.preventDefault();
      }
      function qe(Q) {
        ce(Q);
      }
      function ut(Q) {
        var me, Ee, He, Ve, Ke;
        if (!e.keyboard) {
          Q.preventDefault();
          return;
        }
        switch (Q.key) {
          case " ":
            if (e.filterable) break;
            Q.preventDefault();
          case "Enter":
            if (!(!((me = S.value) === null || me === void 0) && me.isComposing)) {
              if (x.value) {
                const Xe = (Ee = C.value) === null || Ee === void 0 ? void 0 : Ee.getPendingTmNode();
                Xe ? ge(Xe) : e.filterable || (F(), Ze());
              } else if (fe(), e.tag && ze.value) {
                const Xe = p.value[0];
                if (Xe) {
                  const Qe = Xe[e.valueField], { value: _t } = s;
                  e.multiple && Array.isArray(_t) && _t.includes(Qe) || te(Xe);
                }
              }
            }
            Q.preventDefault();
            break;
          case "ArrowUp":
            if (Q.preventDefault(), e.loading) return;
            x.value && ((He = C.value) === null || He === void 0 || He.prev());
            break;
          case "ArrowDown":
            if (Q.preventDefault(), e.loading) return;
            x.value ? (Ve = C.value) === null || Ve === void 0 || Ve.next() : fe();
            break;
          case "Escape":
            x.value && (PT(Q), F()), (Ke = S.value) === null || Ke === void 0 || Ke.focus();
            break;
        }
      }
      function Ze() {
        var Q;
        (Q = S.value) === null || Q === void 0 || Q.focus();
      }
      function rt() {
        var Q;
        (Q = S.value) === null || Q === void 0 || Q.focusInput();
      }
      function Ne() {
        var Q;
        x.value && ((Q = _.value) === null || Q === void 0 || Q.syncPosition());
      }
      be(), lt($e(e, "options"), be);
      const bt = {
        focus: () => {
          var Q;
          (Q = S.value) === null || Q === void 0 || Q.focus();
        },
        focusInput: () => {
          var Q;
          (Q = S.value) === null || Q === void 0 || Q.focusInput();
        },
        blur: () => {
          var Q;
          (Q = S.value) === null || Q === void 0 || Q.blur();
        },
        blurInput: () => {
          var Q;
          (Q = S.value) === null || Q === void 0 || Q.blurInput();
        }
      }, We = D(() => {
        const { self: { menuBoxShadow: Q } } = i.value;
        return {
          "--n-menu-box-shadow": Q
        };
      }), Ge = o ? xt("select", void 0, We, e) : void 0;
      return Object.assign(Object.assign({}, bt), {
        mergedStatus: ye,
        mergedClsPrefix: t,
        mergedBordered: n,
        namespace: r,
        treeMate: v,
        isMounted: Pi(),
        triggerRef: S,
        menuRef: C,
        pattern: u,
        uncontrolledShow: w,
        mergedShow: x,
        adjustedTo: Or(e),
        uncontrolledValue: a,
        mergedValue: s,
        followerRef: _,
        localizedPlaceholder: R,
        selectedOption: U,
        selectedOptions: z,
        mergedSize: ne,
        mergedDisabled: ae,
        focused: c,
        activeWithoutMenuOpen: ze,
        inlineThemeDisabled: o,
        onTriggerInputFocus: q,
        onTriggerInputBlur: J,
        handleTriggerOrMenuResize: Ne,
        handleMenuFocus: _e,
        handleMenuBlur: K,
        handleMenuTabOut: N,
        handleTriggerClick: le,
        handleToggle: ge,
        handleDeleteOption: te,
        handlePatternInput: Z,
        handleClear: Ce,
        handleTriggerBlur: we,
        handleTriggerFocus: ke,
        handleKeydown: ut,
        handleMenuAfterLeave: se,
        handleMenuClickOutside: j,
        handleMenuScroll: qe,
        handleMenuKeydown: ut,
        handleMenuMousedown: De,
        mergedTheme: i,
        cssVars: o ? void 0 : We,
        themeClass: Ge == null ? void 0 : Ge.themeClass,
        onRender: Ge == null ? void 0 : Ge.onRender
      });
    },
    render() {
      return g("div", {
        class: `${this.mergedClsPrefix}-select`
      }, g(nd, null, {
        default: () => [
          g(rd, null, {
            default: () => g(v8, {
              ref: "triggerRef",
              inlineThemeDisabled: this.inlineThemeDisabled,
              status: this.mergedStatus,
              inputProps: this.inputProps,
              clsPrefix: this.mergedClsPrefix,
              showArrow: this.showArrow,
              maxTagCount: this.maxTagCount,
              ellipsisTagPopoverProps: this.ellipsisTagPopoverProps,
              bordered: this.mergedBordered,
              active: this.activeWithoutMenuOpen || this.mergedShow,
              pattern: this.pattern,
              placeholder: this.localizedPlaceholder,
              selectedOption: this.selectedOption,
              selectedOptions: this.selectedOptions,
              multiple: this.multiple,
              renderTag: this.renderTag,
              renderLabel: this.renderLabel,
              filterable: this.filterable,
              clearable: this.clearable,
              disabled: this.mergedDisabled,
              size: this.mergedSize,
              theme: this.mergedTheme.peers.InternalSelection,
              labelField: this.labelField,
              valueField: this.valueField,
              themeOverrides: this.mergedTheme.peerOverrides.InternalSelection,
              loading: this.loading,
              focused: this.focused,
              onClick: this.handleTriggerClick,
              onDeleteOption: this.handleDeleteOption,
              onPatternInput: this.handlePatternInput,
              onClear: this.handleClear,
              onBlur: this.handleTriggerBlur,
              onFocus: this.handleTriggerFocus,
              onKeydown: this.handleKeydown,
              onPatternBlur: this.onTriggerInputBlur,
              onPatternFocus: this.onTriggerInputFocus,
              onResize: this.handleTriggerOrMenuResize,
              ignoreComposition: this.ignoreComposition
            }, {
              arrow: () => {
                var e, t;
                return [
                  (t = (e = this.$slots).arrow) === null || t === void 0 ? void 0 : t.call(e)
                ];
              }
            })
          }),
          g(ld, {
            ref: "followerRef",
            show: this.mergedShow,
            to: this.adjustedTo,
            teleportDisabled: this.adjustedTo === Or.tdkey,
            containerClass: this.namespace,
            width: this.consistentMenuWidth ? "target" : void 0,
            minWidth: "target",
            placement: this.placement
          }, {
            default: () => g(Ln, {
              name: "fade-in-scale-up-transition",
              appear: this.isMounted,
              onAfterLeave: this.handleMenuAfterLeave
            }, {
              default: () => {
                var e, t, n;
                return this.mergedShow || this.displayDirective === "show" ? ((e = this.onRender) === null || e === void 0 || e.call(this), $r(g(cC, Object.assign({}, this.menuProps, {
                  ref: "menuRef",
                  onResize: this.handleTriggerOrMenuResize,
                  inlineThemeDisabled: this.inlineThemeDisabled,
                  virtualScroll: this.consistentMenuWidth && this.virtualScroll,
                  class: [
                    `${this.mergedClsPrefix}-select-menu`,
                    this.themeClass,
                    (t = this.menuProps) === null || t === void 0 ? void 0 : t.class
                  ],
                  clsPrefix: this.mergedClsPrefix,
                  focusable: true,
                  labelField: this.labelField,
                  valueField: this.valueField,
                  autoPending: true,
                  nodeProps: this.nodeProps,
                  theme: this.mergedTheme.peers.InternalSelectMenu,
                  themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu,
                  treeMate: this.treeMate,
                  multiple: this.multiple,
                  size: this.menuSize,
                  renderOption: this.renderOption,
                  renderLabel: this.renderLabel,
                  value: this.mergedValue,
                  style: [
                    (n = this.menuProps) === null || n === void 0 ? void 0 : n.style,
                    this.cssVars
                  ],
                  onToggle: this.handleToggle,
                  onScroll: this.handleMenuScroll,
                  onFocus: this.handleMenuFocus,
                  onBlur: this.handleMenuBlur,
                  onKeydown: this.handleMenuKeydown,
                  onTabOut: this.handleMenuTabOut,
                  onMousedown: this.handleMenuMousedown,
                  show: this.mergedShow,
                  showCheckmark: this.showCheckmark,
                  resetMenuOnOptionsChange: this.resetMenuOnOptionsChange
                }), {
                  empty: () => {
                    var r, o;
                    return [
                      (o = (r = this.$slots).empty) === null || o === void 0 ? void 0 : o.call(r)
                    ];
                  },
                  header: () => {
                    var r, o;
                    return [
                      (o = (r = this.$slots).header) === null || o === void 0 ? void 0 : o.call(r)
                    ];
                  },
                  action: () => {
                    var r, o;
                    return [
                      (o = (r = this.$slots).action) === null || o === void 0 ? void 0 : o.call(r)
                    ];
                  }
                }), this.displayDirective === "show" ? [
                  [
                    zo,
                    this.mergedShow
                  ],
                  [
                    ul,
                    this.handleMenuClickOutside,
                    void 0,
                    {
                      capture: true
                    }
                  ]
                ] : [
                  [
                    ul,
                    this.handleMenuClickOutside,
                    void 0,
                    {
                      capture: true
                    }
                  ]
                ])) : null;
              }
            })
          })
        ]
      }));
    }
  });
  cI = {
    itemPaddingSmall: "0 4px",
    itemMarginSmall: "0 0 0 8px",
    itemMarginSmallRtl: "0 8px 0 0",
    itemPaddingMedium: "0 4px",
    itemMarginMedium: "0 0 0 8px",
    itemMarginMediumRtl: "0 8px 0 0",
    itemPaddingLarge: "0 4px",
    itemMarginLarge: "0 0 0 8px",
    itemMarginLargeRtl: "0 8px 0 0",
    buttonIconSizeSmall: "14px",
    buttonIconSizeMedium: "16px",
    buttonIconSizeLarge: "18px",
    inputWidthSmall: "60px",
    selectWidthSmall: "unset",
    inputMarginSmall: "0 0 0 8px",
    inputMarginSmallRtl: "0 8px 0 0",
    selectMarginSmall: "0 0 0 8px",
    prefixMarginSmall: "0 8px 0 0",
    suffixMarginSmall: "0 0 0 8px",
    inputWidthMedium: "60px",
    selectWidthMedium: "unset",
    inputMarginMedium: "0 0 0 8px",
    inputMarginMediumRtl: "0 8px 0 0",
    selectMarginMedium: "0 0 0 8px",
    prefixMarginMedium: "0 8px 0 0",
    suffixMarginMedium: "0 0 0 8px",
    inputWidthLarge: "60px",
    selectWidthLarge: "unset",
    inputMarginLarge: "0 0 0 8px",
    inputMarginLargeRtl: "0 8px 0 0",
    selectMarginLarge: "0 0 0 8px",
    prefixMarginLarge: "0 8px 0 0",
    suffixMarginLarge: "0 0 0 8px"
  };
  function VC(e) {
    const { textColor2: t, primaryColor: n, primaryColorHover: r, primaryColorPressed: o, inputColorDisabled: i, textColorDisabled: a, borderColor: l, borderRadius: s, fontSizeTiny: c, fontSizeSmall: u, fontSizeMedium: d, heightTiny: h, heightSmall: p, heightMedium: f } = e;
    return Object.assign(Object.assign({}, cI), {
      buttonColor: "#0000",
      buttonColorHover: "#0000",
      buttonColorPressed: "#0000",
      buttonBorder: `1px solid ${l}`,
      buttonBorderHover: `1px solid ${l}`,
      buttonBorderPressed: `1px solid ${l}`,
      buttonIconColor: t,
      buttonIconColorHover: t,
      buttonIconColorPressed: t,
      itemTextColor: t,
      itemTextColorHover: r,
      itemTextColorPressed: o,
      itemTextColorActive: n,
      itemTextColorDisabled: a,
      itemColor: "#0000",
      itemColorHover: "#0000",
      itemColorPressed: "#0000",
      itemColorActive: "#0000",
      itemColorActiveHover: "#0000",
      itemColorDisabled: i,
      itemBorder: "1px solid #0000",
      itemBorderHover: "1px solid #0000",
      itemBorderPressed: "1px solid #0000",
      itemBorderActive: `1px solid ${n}`,
      itemBorderDisabled: `1px solid ${l}`,
      itemBorderRadius: s,
      itemSizeSmall: h,
      itemSizeMedium: p,
      itemSizeLarge: f,
      itemFontSizeSmall: c,
      itemFontSizeMedium: u,
      itemFontSizeLarge: d,
      jumperFontSizeSmall: c,
      jumperFontSizeMedium: u,
      jumperFontSizeLarge: d,
      jumperTextColor: t,
      jumperTextColorDisabled: a
    });
  }
  const qC = {
    name: "Pagination",
    common: mt,
    peers: {
      Select: WC,
      Input: ym,
      Popselect: wm
    },
    self: VC
  }, GC = {
    name: "Pagination",
    common: Ue,
    peers: {
      Select: UC,
      Input: Fr,
      Popselect: NC
    },
    self(e) {
      const { primaryColor: t, opacity3: n } = e, r = Oe(t, {
        alpha: Number(n)
      }), o = VC(e);
      return o.itemBorderActive = `1px solid ${r}`, o.itemBorderDisabled = "1px solid #0000", o;
    }
  }, zb = `
 background: var(--n-item-color-hover);
 color: var(--n-item-text-color-hover);
 border: var(--n-item-border-hover);
`, Ob = [
    G("button", `
 background: var(--n-button-color-hover);
 border: var(--n-button-border-hover);
 color: var(--n-button-icon-color-hover);
 `)
  ], uI = A("pagination", `
 display: flex;
 vertical-align: middle;
 font-size: var(--n-item-font-size);
 flex-wrap: nowrap;
`, [
    A("pagination-prefix", `
 display: flex;
 align-items: center;
 margin: var(--n-prefix-margin);
 `),
    A("pagination-suffix", `
 display: flex;
 align-items: center;
 margin: var(--n-suffix-margin);
 `),
    W("> *:not(:first-child)", `
 margin: var(--n-item-margin);
 `),
    A("select", `
 width: var(--n-select-width);
 `),
    W("&.transition-disabled", [
      A("pagination-item", "transition: none!important;")
    ]),
    A("pagination-quick-jumper", `
 white-space: nowrap;
 display: flex;
 color: var(--n-jumper-text-color);
 transition: color .3s var(--n-bezier);
 align-items: center;
 font-size: var(--n-jumper-font-size);
 `, [
      A("input", `
 margin: var(--n-input-margin);
 width: var(--n-input-width);
 `)
    ]),
    A("pagination-item", `
 position: relative;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 display: flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;
 min-width: var(--n-item-size);
 height: var(--n-item-size);
 padding: var(--n-item-padding);
 background-color: var(--n-item-color);
 color: var(--n-item-text-color);
 border-radius: var(--n-item-border-radius);
 border: var(--n-item-border);
 fill: var(--n-button-icon-color);
 transition:
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 fill .3s var(--n-bezier);
 `, [
      G("button", `
 background: var(--n-button-color);
 color: var(--n-button-icon-color);
 border: var(--n-button-border);
 padding: 0;
 `, [
        A("base-icon", `
 font-size: var(--n-button-icon-size);
 `)
      ]),
      At("disabled", [
        G("hover", zb, Ob),
        W("&:hover", zb, Ob),
        W("&:active", `
 background: var(--n-item-color-pressed);
 color: var(--n-item-text-color-pressed);
 border: var(--n-item-border-pressed);
 `, [
          G("button", `
 background: var(--n-button-color-pressed);
 border: var(--n-button-border-pressed);
 color: var(--n-button-icon-color-pressed);
 `)
        ]),
        G("active", `
 background: var(--n-item-color-active);
 color: var(--n-item-text-color-active);
 border: var(--n-item-border-active);
 `, [
          W("&:hover", `
 background: var(--n-item-color-active-hover);
 `)
        ])
      ]),
      G("disabled", `
 cursor: not-allowed;
 color: var(--n-item-text-color-disabled);
 `, [
        G("active, button", `
 background-color: var(--n-item-color-disabled);
 border: var(--n-item-border-disabled);
 `)
      ])
    ]),
    G("disabled", `
 cursor: not-allowed;
 `, [
      A("pagination-quick-jumper", `
 color: var(--n-jumper-text-color-disabled);
 `)
    ]),
    G("simple", `
 display: flex;
 align-items: center;
 flex-wrap: nowrap;
 `, [
      A("pagination-quick-jumper", [
        A("input", `
 margin: 0;
 `)
      ])
    ])
  ]);
  function KC(e) {
    var t;
    if (!e) return 10;
    const { defaultPageSize: n } = e;
    if (n !== void 0) return n;
    const r = (t = e.pageSizes) === null || t === void 0 ? void 0 : t[0];
    return typeof r == "number" ? r : (r == null ? void 0 : r.value) || 10;
  }
  function dI(e, t, n, r) {
    let o = false, i = false, a = 1, l = t;
    if (t === 1) return {
      hasFastBackward: false,
      hasFastForward: false,
      fastForwardTo: l,
      fastBackwardTo: a,
      items: [
        {
          type: "page",
          label: 1,
          active: e === 1,
          mayBeFastBackward: false,
          mayBeFastForward: false
        }
      ]
    };
    if (t === 2) return {
      hasFastBackward: false,
      hasFastForward: false,
      fastForwardTo: l,
      fastBackwardTo: a,
      items: [
        {
          type: "page",
          label: 1,
          active: e === 1,
          mayBeFastBackward: false,
          mayBeFastForward: false
        },
        {
          type: "page",
          label: 2,
          active: e === 2,
          mayBeFastBackward: true,
          mayBeFastForward: false
        }
      ]
    };
    const s = 1, c = t;
    let u = e, d = e;
    const h = (n - 5) / 2;
    d += Math.ceil(h), d = Math.min(Math.max(d, s + n - 3), c - 2), u -= Math.floor(h), u = Math.max(Math.min(u, c - n + 3), s + 2);
    let p = false, f = false;
    u > s + 2 && (p = true), d < c - 2 && (f = true);
    const m = [];
    m.push({
      type: "page",
      label: 1,
      active: e === 1,
      mayBeFastBackward: false,
      mayBeFastForward: false
    }), p ? (o = true, a = u - 1, m.push({
      type: "fast-backward",
      active: false,
      label: void 0,
      options: r ? Ib(s + 1, u - 1) : null
    })) : c >= s + 1 && m.push({
      type: "page",
      label: s + 1,
      mayBeFastBackward: true,
      mayBeFastForward: false,
      active: e === s + 1
    });
    for (let b = u; b <= d; ++b) m.push({
      type: "page",
      label: b,
      mayBeFastBackward: false,
      mayBeFastForward: false,
      active: e === b
    });
    return f ? (i = true, l = d + 1, m.push({
      type: "fast-forward",
      active: false,
      label: void 0,
      options: r ? Ib(d + 1, c - 1) : null
    })) : d === c - 2 && m[m.length - 1].label !== c - 1 && m.push({
      type: "page",
      mayBeFastForward: true,
      mayBeFastBackward: false,
      label: c - 1,
      active: e === c - 1
    }), m[m.length - 1].label !== c && m.push({
      type: "page",
      mayBeFastForward: false,
      mayBeFastBackward: false,
      label: c,
      active: e === c
    }), {
      hasFastBackward: o,
      hasFastForward: i,
      fastBackwardTo: a,
      fastForwardTo: l,
      items: m
    };
  }
  function Ib(e, t) {
    const n = [];
    for (let r = e; r <= t; ++r) n.push({
      label: `${r}`,
      value: r
    });
    return n;
  }
  let fI, hI;
  fI = Object.assign(Object.assign({}, Fe.props), {
    simple: Boolean,
    page: Number,
    defaultPage: {
      type: Number,
      default: 1
    },
    itemCount: Number,
    pageCount: Number,
    defaultPageCount: {
      type: Number,
      default: 1
    },
    showSizePicker: Boolean,
    pageSize: Number,
    defaultPageSize: Number,
    pageSizes: {
      type: Array,
      default() {
        return [
          10
        ];
      }
    },
    showQuickJumper: Boolean,
    size: {
      type: String,
      default: "medium"
    },
    disabled: Boolean,
    pageSlot: {
      type: Number,
      default: 9
    },
    selectProps: Object,
    prev: Function,
    next: Function,
    goto: Function,
    prefix: Function,
    suffix: Function,
    label: Function,
    displayOrder: {
      type: Array,
      default: [
        "pages",
        "size-picker",
        "quick-jumper"
      ]
    },
    to: Or.propTo,
    showQuickJumpDropdown: {
      type: Boolean,
      default: true
    },
    "onUpdate:page": [
      Function,
      Array
    ],
    onUpdatePage: [
      Function,
      Array
    ],
    "onUpdate:pageSize": [
      Function,
      Array
    ],
    onUpdatePageSize: [
      Function,
      Array
    ],
    onPageSizeChange: [
      Function,
      Array
    ],
    onChange: [
      Function,
      Array
    ]
  });
  Sm = pe({
    name: "Pagination",
    props: fI,
    slots: Object,
    setup(e) {
      const { mergedComponentPropsRef: t, mergedClsPrefixRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = Fe("Pagination", "-pagination", uI, qC, e, n), { localeRef: a } = ma("Pagination"), l = L(null), s = L(e.defaultPage), c = L(KC(e)), u = mn($e(e, "page"), s), d = mn($e(e, "pageSize"), c), h = D(() => {
        const { itemCount: F } = e;
        if (F !== void 0) return Math.max(1, Math.ceil(F / d.value));
        const { pageCount: se } = e;
        return se !== void 0 ? Math.max(se, 1) : 1;
      }), p = L("");
      fn(() => {
        e.simple, p.value = String(u.value);
      });
      const f = L(false), m = L(false), b = L(false), v = L(false), y = () => {
        e.disabled || (f.value = true, U());
      }, w = () => {
        e.disabled || (f.value = false, U());
      }, x = () => {
        m.value = true, U();
      }, S = () => {
        m.value = false, U();
      }, _ = (F) => {
        ee(F);
      }, C = D(() => dI(u.value, h.value, e.pageSlot, e.showQuickJumpDropdown));
      fn(() => {
        C.value.hasFastBackward ? C.value.hasFastForward || (f.value = false, b.value = false) : (m.value = false, v.value = false);
      });
      const k = D(() => {
        const F = a.value.selectionSuffix;
        return e.pageSizes.map((se) => typeof se == "number" ? {
          label: `${se} / ${F}`,
          value: se
        } : se);
      }), R = D(() => {
        var F, se;
        return ((se = (F = t == null ? void 0 : t.value) === null || F === void 0 ? void 0 : F.Pagination) === null || se === void 0 ? void 0 : se.inputSize) || Wv(e.size);
      }), P = D(() => {
        var F, se;
        return ((se = (F = t == null ? void 0 : t.value) === null || F === void 0 ? void 0 : F.Pagination) === null || se === void 0 ? void 0 : se.selectSize) || Wv(e.size);
      }), B = D(() => (u.value - 1) * d.value), E = D(() => {
        const F = u.value * d.value - 1, { itemCount: se } = e;
        return se !== void 0 && F > se - 1 ? se - 1 : F;
      }), M = D(() => {
        const { itemCount: F } = e;
        return F !== void 0 ? F : (e.pageCount || 1) * d.value;
      }), z = rn("Pagination", o, n);
      function U() {
        sn(() => {
          var F;
          const { value: se } = l;
          se && (se.classList.add("transition-disabled"), (F = l.value) === null || F === void 0 || F.offsetWidth, se.classList.remove("transition-disabled"));
        });
      }
      function ee(F) {
        if (F === u.value) return;
        const { "onUpdate:page": se, onUpdatePage: ze, onChange: q, simple: J } = e;
        se && Te(se, F), ze && Te(ze, F), q && Te(q, F), s.value = F, J && (p.value = String(F));
      }
      function ne(F) {
        if (F === d.value) return;
        const { "onUpdate:pageSize": se, onUpdatePageSize: ze, onPageSizeChange: q } = e;
        se && Te(se, F), ze && Te(ze, F), q && Te(q, F), c.value = F, h.value < u.value && ee(h.value);
      }
      function ae() {
        if (e.disabled) return;
        const F = Math.min(u.value + 1, h.value);
        ee(F);
      }
      function ye() {
        if (e.disabled) return;
        const F = Math.max(u.value - 1, 1);
        ee(F);
      }
      function xe() {
        if (e.disabled) return;
        const F = Math.min(C.value.fastForwardTo, h.value);
        ee(F);
      }
      function re() {
        if (e.disabled) return;
        const F = Math.max(C.value.fastBackwardTo, 1);
        ee(F);
      }
      function Y(F) {
        ne(F);
      }
      function H() {
        const F = Number.parseInt(p.value);
        Number.isNaN(F) || (ee(Math.max(1, Math.min(F, h.value))), e.simple || (p.value = ""));
      }
      function oe() {
        H();
      }
      function ce(F) {
        if (!e.disabled) switch (F.type) {
          case "page":
            ee(F.label);
            break;
          case "fast-backward":
            re();
            break;
          case "fast-forward":
            xe();
            break;
        }
      }
      function be(F) {
        p.value = F.replace(/\D+/g, "");
      }
      fn(() => {
        u.value, d.value, U();
      });
      const ie = D(() => {
        const { size: F } = e, { self: { buttonBorder: se, buttonBorderHover: ze, buttonBorderPressed: q, buttonIconColor: J, buttonIconColorHover: le, buttonIconColorPressed: we, itemTextColor: ke, itemTextColorHover: _e, itemTextColorPressed: K, itemTextColorActive: N, itemTextColorDisabled: j, itemColor: X, itemColorHover: ge, itemColorPressed: te, itemColorActive: I, itemColorActiveHover: Z, itemColorDisabled: Ce, itemBorder: De, itemBorderHover: qe, itemBorderPressed: ut, itemBorderActive: Ze, itemBorderDisabled: rt, itemBorderRadius: Ne, jumperTextColor: bt, jumperTextColorDisabled: We, buttonColor: Ge, buttonColorHover: Q, buttonColorPressed: me, [Se("itemPadding", F)]: Ee, [Se("itemMargin", F)]: He, [Se("inputWidth", F)]: Ve, [Se("selectWidth", F)]: Ke, [Se("inputMargin", F)]: Xe, [Se("selectMargin", F)]: Qe, [Se("jumperFontSize", F)]: _t, [Se("prefixMargin", F)]: Mt, [Se("suffixMargin", F)]: ct, [Se("itemSize", F)]: on, [Se("buttonIconSize", F)]: Dn, [Se("itemFontSize", F)]: Sn, [`${Se("itemMargin", F)}Rtl`]: _n, [`${Se("inputMargin", F)}Rtl`]: $n }, common: { cubicBezierEaseInOut: Hn } } = i.value;
        return {
          "--n-prefix-margin": Mt,
          "--n-suffix-margin": ct,
          "--n-item-font-size": Sn,
          "--n-select-width": Ke,
          "--n-select-margin": Qe,
          "--n-input-width": Ve,
          "--n-input-margin": Xe,
          "--n-input-margin-rtl": $n,
          "--n-item-size": on,
          "--n-item-text-color": ke,
          "--n-item-text-color-disabled": j,
          "--n-item-text-color-hover": _e,
          "--n-item-text-color-active": N,
          "--n-item-text-color-pressed": K,
          "--n-item-color": X,
          "--n-item-color-hover": ge,
          "--n-item-color-disabled": Ce,
          "--n-item-color-active": I,
          "--n-item-color-active-hover": Z,
          "--n-item-color-pressed": te,
          "--n-item-border": De,
          "--n-item-border-hover": qe,
          "--n-item-border-disabled": rt,
          "--n-item-border-active": Ze,
          "--n-item-border-pressed": ut,
          "--n-item-padding": Ee,
          "--n-item-border-radius": Ne,
          "--n-bezier": Hn,
          "--n-jumper-font-size": _t,
          "--n-jumper-text-color": bt,
          "--n-jumper-text-color-disabled": We,
          "--n-item-margin": He,
          "--n-item-margin-rtl": _n,
          "--n-button-icon-size": Dn,
          "--n-button-icon-color": J,
          "--n-button-icon-color-hover": le,
          "--n-button-icon-color-pressed": we,
          "--n-button-color-hover": Q,
          "--n-button-color": Ge,
          "--n-button-color-pressed": me,
          "--n-button-border": se,
          "--n-button-border-hover": ze,
          "--n-button-border-pressed": q
        };
      }), fe = r ? xt("pagination", D(() => {
        let F = "";
        const { size: se } = e;
        return F += se[0], F;
      }), ie, e) : void 0;
      return {
        rtlEnabled: z,
        mergedClsPrefix: n,
        locale: a,
        selfRef: l,
        mergedPage: u,
        pageItems: D(() => C.value.items),
        mergedItemCount: M,
        jumperValue: p,
        pageSizeOptions: k,
        mergedPageSize: d,
        inputSize: R,
        selectSize: P,
        mergedTheme: i,
        mergedPageCount: h,
        startIndex: B,
        endIndex: E,
        showFastForwardMenu: b,
        showFastBackwardMenu: v,
        fastForwardActive: f,
        fastBackwardActive: m,
        handleMenuSelect: _,
        handleFastForwardMouseenter: y,
        handleFastForwardMouseleave: w,
        handleFastBackwardMouseenter: x,
        handleFastBackwardMouseleave: S,
        handleJumperInput: be,
        handleBackwardClick: ye,
        handleForwardClick: ae,
        handlePageItemClick: ce,
        handleSizePickerChange: Y,
        handleQuickJumperChange: oe,
        cssVars: r ? void 0 : ie,
        themeClass: fe == null ? void 0 : fe.themeClass,
        onRender: fe == null ? void 0 : fe.onRender
      };
    },
    render() {
      const { $slots: e, mergedClsPrefix: t, disabled: n, cssVars: r, mergedPage: o, mergedPageCount: i, pageItems: a, showSizePicker: l, showQuickJumper: s, mergedTheme: c, locale: u, inputSize: d, selectSize: h, mergedPageSize: p, pageSizeOptions: f, jumperValue: m, simple: b, prev: v, next: y, prefix: w, suffix: x, label: S, goto: _, handleJumperInput: C, handleSizePickerChange: k, handleBackwardClick: R, handlePageItemClick: P, handleForwardClick: B, handleQuickJumperChange: E, onRender: M } = this;
      M == null ? void 0 : M();
      const z = w || e.prefix, U = x || e.suffix, ee = v || e.prev, ne = y || e.next, ae = S || e.label;
      return g("div", {
        ref: "selfRef",
        class: [
          `${t}-pagination`,
          this.themeClass,
          this.rtlEnabled && `${t}-pagination--rtl`,
          n && `${t}-pagination--disabled`,
          b && `${t}-pagination--simple`
        ],
        style: r
      }, z ? g("div", {
        class: `${t}-pagination-prefix`
      }, z({
        page: o,
        pageSize: p,
        pageCount: i,
        startIndex: this.startIndex,
        endIndex: this.endIndex,
        itemCount: this.mergedItemCount
      })) : null, this.displayOrder.map((ye) => {
        switch (ye) {
          case "pages":
            return g(wt, null, g("div", {
              class: [
                `${t}-pagination-item`,
                !ee && `${t}-pagination-item--button`,
                (o <= 1 || o > i || n) && `${t}-pagination-item--disabled`
              ],
              onClick: R
            }, ee ? ee({
              page: o,
              pageSize: p,
              pageCount: i,
              startIndex: this.startIndex,
              endIndex: this.endIndex,
              itemCount: this.mergedItemCount
            }) : g(Jt, {
              clsPrefix: t
            }, {
              default: () => this.rtlEnabled ? g(yb, null) : g(gb, null)
            })), b ? g(wt, null, g("div", {
              class: `${t}-pagination-quick-jumper`
            }, g(Yr, {
              value: m,
              onUpdateValue: C,
              size: d,
              placeholder: "",
              disabled: n,
              theme: c.peers.Input,
              themeOverrides: c.peerOverrides.Input,
              onChange: E
            })), "\xA0/", " ", i) : a.map((xe, re) => {
              let Y, H, oe;
              const { type: ce } = xe;
              switch (ce) {
                case "page":
                  const ie = xe.label;
                  ae ? Y = ae({
                    type: "page",
                    node: ie,
                    active: xe.active
                  }) : Y = ie;
                  break;
                case "fast-forward":
                  const fe = this.fastForwardActive ? g(Jt, {
                    clsPrefix: t
                  }, {
                    default: () => this.rtlEnabled ? g(vb, null) : g(bb, null)
                  }) : g(Jt, {
                    clsPrefix: t
                  }, {
                    default: () => g(xb, null)
                  });
                  ae ? Y = ae({
                    type: "fast-forward",
                    node: fe,
                    active: this.fastForwardActive || this.showFastForwardMenu
                  }) : Y = fe, H = this.handleFastForwardMouseenter, oe = this.handleFastForwardMouseleave;
                  break;
                case "fast-backward":
                  const F = this.fastBackwardActive ? g(Jt, {
                    clsPrefix: t
                  }, {
                    default: () => this.rtlEnabled ? g(bb, null) : g(vb, null)
                  }) : g(Jt, {
                    clsPrefix: t
                  }, {
                    default: () => g(xb, null)
                  });
                  ae ? Y = ae({
                    type: "fast-backward",
                    node: F,
                    active: this.fastBackwardActive || this.showFastBackwardMenu
                  }) : Y = F, H = this.handleFastBackwardMouseenter, oe = this.handleFastBackwardMouseleave;
                  break;
              }
              const be = g("div", {
                key: re,
                class: [
                  `${t}-pagination-item`,
                  xe.active && `${t}-pagination-item--active`,
                  ce !== "page" && (ce === "fast-backward" && this.showFastBackwardMenu || ce === "fast-forward" && this.showFastForwardMenu) && `${t}-pagination-item--hover`,
                  n && `${t}-pagination-item--disabled`,
                  ce === "page" && `${t}-pagination-item--clickable`
                ],
                onClick: () => {
                  P(xe);
                },
                onMouseenter: H,
                onMouseleave: oe
              }, Y);
              if (ce === "page" && !xe.mayBeFastBackward && !xe.mayBeFastForward) return be;
              {
                const ie = xe.type === "page" ? xe.mayBeFastBackward ? "fast-backward" : "fast-forward" : xe.type;
                return xe.type !== "page" && !xe.options ? be : g(aI, {
                  to: this.to,
                  key: ie,
                  disabled: n,
                  trigger: "hover",
                  virtualScroll: true,
                  style: {
                    width: "60px"
                  },
                  theme: c.peers.Popselect,
                  themeOverrides: c.peerOverrides.Popselect,
                  builtinThemeOverrides: {
                    peers: {
                      InternalSelectMenu: {
                        height: "calc(var(--n-option-height) * 4.6)"
                      }
                    }
                  },
                  nodeProps: () => ({
                    style: {
                      justifyContent: "center"
                    }
                  }),
                  show: ce === "page" ? false : ce === "fast-backward" ? this.showFastBackwardMenu : this.showFastForwardMenu,
                  onUpdateShow: (fe) => {
                    ce !== "page" && (fe ? ce === "fast-backward" ? this.showFastBackwardMenu = fe : this.showFastForwardMenu = fe : (this.showFastBackwardMenu = false, this.showFastForwardMenu = false));
                  },
                  options: xe.type !== "page" && xe.options ? xe.options : [],
                  onUpdateValue: this.handleMenuSelect,
                  scrollable: true,
                  showCheckmark: false
                }, {
                  default: () => be
                });
              }
            }), g("div", {
              class: [
                `${t}-pagination-item`,
                !ne && `${t}-pagination-item--button`,
                {
                  [`${t}-pagination-item--disabled`]: o < 1 || o >= i || n
                }
              ],
              onClick: B
            }, ne ? ne({
              page: o,
              pageSize: p,
              pageCount: i,
              itemCount: this.mergedItemCount,
              startIndex: this.startIndex,
              endIndex: this.endIndex
            }) : g(Jt, {
              clsPrefix: t
            }, {
              default: () => this.rtlEnabled ? g(gb, null) : g(yb, null)
            })));
          case "size-picker":
            return !b && l ? g(Qs, Object.assign({
              consistentMenuWidth: false,
              placeholder: "",
              showCheckmark: false,
              to: this.to
            }, this.selectProps, {
              size: h,
              options: f,
              value: p,
              disabled: n,
              theme: c.peers.Select,
              themeOverrides: c.peerOverrides.Select,
              onUpdateValue: k
            })) : null;
          case "quick-jumper":
            return !b && s ? g("div", {
              class: `${t}-pagination-quick-jumper`
            }, _ ? _() : In(this.$slots.goto, () => [
              u.goto
            ]), g(Yr, {
              value: m,
              onUpdateValue: C,
              size: d,
              placeholder: "",
              disabled: n,
              theme: c.peers.Input,
              themeOverrides: c.peerOverrides.Input,
              onChange: E
            })) : null;
          default:
            return null;
        }
      }), U ? g("div", {
        class: `${t}-pagination-suffix`
      }, U({
        page: o,
        pageSize: p,
        pageCount: i,
        startIndex: this.startIndex,
        endIndex: this.endIndex,
        itemCount: this.mergedItemCount
      })) : null);
    }
  });
  hI = {
    padding: "4px 0",
    optionIconSizeSmall: "14px",
    optionIconSizeMedium: "16px",
    optionIconSizeLarge: "16px",
    optionIconSizeHuge: "18px",
    optionSuffixWidthSmall: "14px",
    optionSuffixWidthMedium: "14px",
    optionSuffixWidthLarge: "16px",
    optionSuffixWidthHuge: "16px",
    optionIconSuffixWidthSmall: "32px",
    optionIconSuffixWidthMedium: "32px",
    optionIconSuffixWidthLarge: "36px",
    optionIconSuffixWidthHuge: "36px",
    optionPrefixWidthSmall: "14px",
    optionPrefixWidthMedium: "14px",
    optionPrefixWidthLarge: "16px",
    optionPrefixWidthHuge: "16px",
    optionIconPrefixWidthSmall: "36px",
    optionIconPrefixWidthMedium: "36px",
    optionIconPrefixWidthLarge: "40px",
    optionIconPrefixWidthHuge: "40px"
  };
  function YC(e) {
    const { primaryColor: t, textColor2: n, dividerColor: r, hoverColor: o, popoverColor: i, invertedColor: a, borderRadius: l, fontSizeSmall: s, fontSizeMedium: c, fontSizeLarge: u, fontSizeHuge: d, heightSmall: h, heightMedium: p, heightLarge: f, heightHuge: m, textColor3: b, opacityDisabled: v } = e;
    return Object.assign(Object.assign({}, hI), {
      optionHeightSmall: h,
      optionHeightMedium: p,
      optionHeightLarge: f,
      optionHeightHuge: m,
      borderRadius: l,
      fontSizeSmall: s,
      fontSizeMedium: c,
      fontSizeLarge: u,
      fontSizeHuge: d,
      optionTextColor: n,
      optionTextColorHover: n,
      optionTextColorActive: t,
      optionTextColorChildActive: t,
      color: i,
      dividerColor: r,
      suffixColor: n,
      prefixColor: n,
      optionColorHover: o,
      optionColorActive: Oe(t, {
        alpha: 0.1
      }),
      groupHeaderTextColor: b,
      optionTextColorInverted: "#BBB",
      optionTextColorHoverInverted: "#FFF",
      optionTextColorActiveInverted: "#FFF",
      optionTextColorChildActiveInverted: "#FFF",
      colorInverted: a,
      dividerColorInverted: "#BBB",
      suffixColorInverted: "#BBB",
      prefixColorInverted: "#BBB",
      optionColorHoverInverted: t,
      optionColorActiveInverted: t,
      groupHeaderTextColorInverted: "#AAA",
      optionOpacityDisabled: v
    });
  }
  const _m = {
    name: "Dropdown",
    common: mt,
    peers: {
      Popover: Aa
    },
    self: YC
  }, km = {
    name: "Dropdown",
    common: Ue,
    peers: {
      Popover: Ea
    },
    self(e) {
      const { primaryColorSuppl: t, primaryColor: n, popoverColor: r } = e, o = YC(e);
      return o.colorInverted = r, o.optionColorActive = Oe(n, {
        alpha: 0.15
      }), o.optionColorActiveInverted = t, o.optionColorHoverInverted = t, o;
    }
  }, XC = {
    padding: "8px 14px"
  }, bd = {
    name: "Tooltip",
    common: Ue,
    peers: {
      Popover: Ea
    },
    self(e) {
      const { borderRadius: t, boxShadow2: n, popoverColor: r, textColor2: o } = e;
      return Object.assign(Object.assign({}, XC), {
        borderRadius: t,
        boxShadow: n,
        color: r,
        textColor: o
      });
    }
  };
  function pI(e) {
    const { borderRadius: t, boxShadow2: n, baseColor: r } = e;
    return Object.assign(Object.assign({}, XC), {
      borderRadius: t,
      boxShadow: n,
      color: Ye(r, "rgba(0, 0, 0, .85)"),
      textColor: r
    });
  }
  const Rm = {
    name: "Tooltip",
    common: mt,
    peers: {
      Popover: Aa
    },
    self: pI
  }, JC = {
    name: "Ellipsis",
    common: Ue,
    peers: {
      Tooltip: bd
    }
  }, ZC = {
    name: "Ellipsis",
    common: mt,
    peers: {
      Tooltip: Rm
    }
  }, QC = {
    radioSizeSmall: "14px",
    radioSizeMedium: "16px",
    radioSizeLarge: "18px",
    labelPadding: "0 8px",
    labelFontWeight: "400"
  }, e2 = {
    name: "Radio",
    common: Ue,
    self(e) {
      const { borderColor: t, primaryColor: n, baseColor: r, textColorDisabled: o, inputColorDisabled: i, textColor2: a, opacityDisabled: l, borderRadius: s, fontSizeSmall: c, fontSizeMedium: u, fontSizeLarge: d, heightSmall: h, heightMedium: p, heightLarge: f, lineHeight: m } = e;
      return Object.assign(Object.assign({}, QC), {
        labelLineHeight: m,
        buttonHeightSmall: h,
        buttonHeightMedium: p,
        buttonHeightLarge: f,
        fontSizeSmall: c,
        fontSizeMedium: u,
        fontSizeLarge: d,
        boxShadow: `inset 0 0 0 1px ${t}`,
        boxShadowActive: `inset 0 0 0 1px ${n}`,
        boxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n, {
          alpha: 0.3
        })}`,
        boxShadowHover: `inset 0 0 0 1px ${n}`,
        boxShadowDisabled: `inset 0 0 0 1px ${t}`,
        color: "#0000",
        colorDisabled: i,
        colorActive: "#0000",
        textColor: a,
        textColorDisabled: o,
        dotColorActive: n,
        dotColorDisabled: t,
        buttonBorderColor: t,
        buttonBorderColorActive: n,
        buttonBorderColorHover: n,
        buttonColor: "#0000",
        buttonColorActive: n,
        buttonTextColor: a,
        buttonTextColorActive: r,
        buttonTextColorHover: n,
        opacityDisabled: l,
        buttonBoxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n, {
          alpha: 0.3
        })}`,
        buttonBoxShadowHover: `inset 0 0 0 1px ${n}`,
        buttonBoxShadow: "inset 0 0 0 1px #0000",
        buttonBorderRadius: s
      });
    }
  };
  function mI(e) {
    const { borderColor: t, primaryColor: n, baseColor: r, textColorDisabled: o, inputColorDisabled: i, textColor2: a, opacityDisabled: l, borderRadius: s, fontSizeSmall: c, fontSizeMedium: u, fontSizeLarge: d, heightSmall: h, heightMedium: p, heightLarge: f, lineHeight: m } = e;
    return Object.assign(Object.assign({}, QC), {
      labelLineHeight: m,
      buttonHeightSmall: h,
      buttonHeightMedium: p,
      buttonHeightLarge: f,
      fontSizeSmall: c,
      fontSizeMedium: u,
      fontSizeLarge: d,
      boxShadow: `inset 0 0 0 1px ${t}`,
      boxShadowActive: `inset 0 0 0 1px ${n}`,
      boxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n, {
        alpha: 0.2
      })}`,
      boxShadowHover: `inset 0 0 0 1px ${n}`,
      boxShadowDisabled: `inset 0 0 0 1px ${t}`,
      color: r,
      colorDisabled: i,
      colorActive: "#0000",
      textColor: a,
      textColorDisabled: o,
      dotColorActive: n,
      dotColorDisabled: t,
      buttonBorderColor: t,
      buttonBorderColorActive: n,
      buttonBorderColorHover: t,
      buttonColor: r,
      buttonColorActive: r,
      buttonTextColor: a,
      buttonTextColorActive: n,
      buttonTextColorHover: n,
      opacityDisabled: l,
      buttonBoxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n, {
        alpha: 0.3
      })}`,
      buttonBoxShadowHover: "inset 0 0 0 1px #0000",
      buttonBoxShadow: "inset 0 0 0 1px #0000",
      buttonBorderRadius: s
    });
  }
  const Am = {
    name: "Radio",
    common: mt,
    self: mI
  }, gI = {
    thPaddingSmall: "8px",
    thPaddingMedium: "12px",
    thPaddingLarge: "12px",
    tdPaddingSmall: "8px",
    tdPaddingMedium: "12px",
    tdPaddingLarge: "12px",
    sorterSize: "15px",
    resizableContainerSize: "8px",
    resizableSize: "2px",
    filterSize: "15px",
    paginationMargin: "12px 0 0 0",
    emptyPadding: "48px 0",
    actionPadding: "8px 12px",
    actionButtonMargin: "0 8px 0 0"
  };
  function t2(e) {
    const { cardColor: t, modalColor: n, popoverColor: r, textColor2: o, textColor1: i, tableHeaderColor: a, tableColorHover: l, iconColor: s, primaryColor: c, fontWeightStrong: u, borderRadius: d, lineHeight: h, fontSizeSmall: p, fontSizeMedium: f, fontSizeLarge: m, dividerColor: b, heightSmall: v, opacityDisabled: y, tableColorStriped: w } = e;
    return Object.assign(Object.assign({}, gI), {
      actionDividerColor: b,
      lineHeight: h,
      borderRadius: d,
      fontSizeSmall: p,
      fontSizeMedium: f,
      fontSizeLarge: m,
      borderColor: Ye(t, b),
      tdColorHover: Ye(t, l),
      tdColorSorting: Ye(t, l),
      tdColorStriped: Ye(t, w),
      thColor: Ye(t, a),
      thColorHover: Ye(Ye(t, a), l),
      thColorSorting: Ye(Ye(t, a), l),
      tdColor: t,
      tdTextColor: o,
      thTextColor: i,
      thFontWeight: u,
      thButtonColorHover: l,
      thIconColor: s,
      thIconColorActive: c,
      borderColorModal: Ye(n, b),
      tdColorHoverModal: Ye(n, l),
      tdColorSortingModal: Ye(n, l),
      tdColorStripedModal: Ye(n, w),
      thColorModal: Ye(n, a),
      thColorHoverModal: Ye(Ye(n, a), l),
      thColorSortingModal: Ye(Ye(n, a), l),
      tdColorModal: n,
      borderColorPopover: Ye(r, b),
      tdColorHoverPopover: Ye(r, l),
      tdColorSortingPopover: Ye(r, l),
      tdColorStripedPopover: Ye(r, w),
      thColorPopover: Ye(r, a),
      thColorHoverPopover: Ye(Ye(r, a), l),
      thColorSortingPopover: Ye(Ye(r, a), l),
      tdColorPopover: r,
      boxShadowBefore: "inset -12px 0 8px -12px rgba(0, 0, 0, .18)",
      boxShadowAfter: "inset 12px 0 8px -12px rgba(0, 0, 0, .18)",
      loadingColor: c,
      loadingSize: v,
      opacityLoading: y
    });
  }
  const vI = {
    name: "DataTable",
    common: mt,
    peers: {
      Button: vd,
      Checkbox: IC,
      Radio: Am,
      Pagination: qC,
      Scrollbar: hi,
      Empty: pd,
      Popover: Aa,
      Ellipsis: ZC,
      Dropdown: _m
    },
    self: t2
  }, bI = {
    name: "DataTable",
    common: Ue,
    peers: {
      Button: xr,
      Checkbox: Pl,
      Radio: e2,
      Pagination: GC,
      Scrollbar: nr,
      Empty: Ra,
      Popover: Ea,
      Ellipsis: JC,
      Dropdown: km
    },
    self(e) {
      const t = t2(e);
      return t.boxShadowAfter = "inset 12px 0 8px -12px rgba(0, 0, 0, .36)", t.boxShadowBefore = "inset -12px 0 8px -12px rgba(0, 0, 0, .36)", t;
    }
  }, yI = Object.assign(Object.assign({}, Fe.props), {
    onUnstableColumnResize: Function,
    pagination: {
      type: [
        Object,
        Boolean
      ],
      default: false
    },
    paginateSinglePage: {
      type: Boolean,
      default: true
    },
    minHeight: [
      Number,
      String
    ],
    maxHeight: [
      Number,
      String
    ],
    columns: {
      type: Array,
      default: () => []
    },
    rowClassName: [
      String,
      Function
    ],
    rowProps: Function,
    rowKey: Function,
    summary: [
      Function
    ],
    data: {
      type: Array,
      default: () => []
    },
    loading: Boolean,
    bordered: {
      type: Boolean,
      default: void 0
    },
    bottomBordered: {
      type: Boolean,
      default: void 0
    },
    striped: Boolean,
    scrollX: [
      Number,
      String
    ],
    defaultCheckedRowKeys: {
      type: Array,
      default: () => []
    },
    checkedRowKeys: Array,
    singleLine: {
      type: Boolean,
      default: true
    },
    singleColumn: Boolean,
    size: {
      type: String,
      default: "medium"
    },
    remote: Boolean,
    defaultExpandedRowKeys: {
      type: Array,
      default: []
    },
    defaultExpandAll: Boolean,
    expandedRowKeys: Array,
    stickyExpandedRows: Boolean,
    virtualScroll: Boolean,
    virtualScrollX: Boolean,
    virtualScrollHeader: Boolean,
    headerHeight: {
      type: Number,
      default: 28
    },
    heightForRow: Function,
    minRowHeight: {
      type: Number,
      default: 28
    },
    tableLayout: {
      type: String,
      default: "auto"
    },
    allowCheckingNotLoaded: Boolean,
    cascade: {
      type: Boolean,
      default: true
    },
    childrenKey: {
      type: String,
      default: "children"
    },
    indent: {
      type: Number,
      default: 16
    },
    flexHeight: Boolean,
    summaryPlacement: {
      type: String,
      default: "bottom"
    },
    paginationBehaviorOnFilter: {
      type: String,
      default: "current"
    },
    filterIconPopoverProps: Object,
    scrollbarProps: Object,
    renderCell: Function,
    renderExpandIcon: Function,
    spinProps: {
      type: Object,
      default: {}
    },
    getCsvCell: Function,
    getCsvHeader: Function,
    onLoad: Function,
    "onUpdate:page": [
      Function,
      Array
    ],
    onUpdatePage: [
      Function,
      Array
    ],
    "onUpdate:pageSize": [
      Function,
      Array
    ],
    onUpdatePageSize: [
      Function,
      Array
    ],
    "onUpdate:sorter": [
      Function,
      Array
    ],
    onUpdateSorter: [
      Function,
      Array
    ],
    "onUpdate:filters": [
      Function,
      Array
    ],
    onUpdateFilters: [
      Function,
      Array
    ],
    "onUpdate:checkedRowKeys": [
      Function,
      Array
    ],
    onUpdateCheckedRowKeys: [
      Function,
      Array
    ],
    "onUpdate:expandedRowKeys": [
      Function,
      Array
    ],
    onUpdateExpandedRowKeys: [
      Function,
      Array
    ],
    onScroll: Function,
    onPageChange: [
      Function,
      Array
    ],
    onPageSizeChange: [
      Function,
      Array
    ],
    onSorterChange: [
      Function,
      Array
    ],
    onFiltersChange: [
      Function,
      Array
    ],
    onCheckedRowKeysChange: [
      Function,
      Array
    ]
  }), fo = "n-data-table", n2 = 40, r2 = 40;
  function Fb(e) {
    if (e.type === "selection") return e.width === void 0 ? n2 : pn(e.width);
    if (e.type === "expand") return e.width === void 0 ? r2 : pn(e.width);
    if (!("children" in e)) return typeof e.width == "string" ? pn(e.width) : e.width;
  }
  function xI(e) {
    var t, n;
    if (e.type === "selection") return Ft((t = e.width) !== null && t !== void 0 ? t : n2);
    if (e.type === "expand") return Ft((n = e.width) !== null && n !== void 0 ? n : r2);
    if (!("children" in e)) return Ft(e.width);
  }
  function Jr(e) {
    return e.type === "selection" ? "__n_selection__" : e.type === "expand" ? "__n_expand__" : e.key;
  }
  function Mb(e) {
    return e && (typeof e == "object" ? Object.assign({}, e) : e);
  }
  function wI(e) {
    return e === "ascend" ? 1 : e === "descend" ? -1 : 0;
  }
  function CI(e, t, n) {
    return n !== void 0 && (e = Math.min(e, typeof n == "number" ? n : Number.parseFloat(n))), t !== void 0 && (e = Math.max(e, typeof t == "number" ? t : Number.parseFloat(t))), e;
  }
  function SI(e, t) {
    if (t !== void 0) return {
      width: t,
      minWidth: t,
      maxWidth: t
    };
    const n = xI(e), { minWidth: r, maxWidth: o } = e;
    return {
      width: n,
      minWidth: Ft(r) || n,
      maxWidth: Ft(o)
    };
  }
  function _I(e, t, n) {
    return typeof n == "function" ? n(e, t) : n || "";
  }
  function kf(e) {
    return e.filterOptionValues !== void 0 || e.filterOptionValue === void 0 && e.defaultFilterOptionValues !== void 0;
  }
  function Rf(e) {
    return "children" in e ? false : !!e.sorter;
  }
  function o2(e) {
    return "children" in e && e.children.length ? false : !!e.resizable;
  }
  function Lb(e) {
    return "children" in e ? false : !!e.filter && (!!e.filterOptions || !!e.renderFilterMenu);
  }
  function Bb(e) {
    if (e) {
      if (e === "descend") return "ascend";
    } else return "descend";
    return false;
  }
  function kI(e, t) {
    if (e.sorter === void 0) return null;
    const { customNextSortOrder: n } = e;
    return t === null || t.columnKey !== e.key ? {
      columnKey: e.key,
      sorter: e.sorter,
      order: Bb(false)
    } : Object.assign(Object.assign({}, t), {
      order: (n || Bb)(t.order)
    });
  }
  function i2(e, t) {
    return t.find((n) => n.columnKey === e.key && n.order) !== void 0;
  }
  function RI(e) {
    return typeof e == "string" ? e.replace(/,/g, "\\,") : e == null ? "" : `${e}`.replace(/,/g, "\\,");
  }
  function AI(e, t, n, r) {
    const o = e.filter((l) => l.type !== "expand" && l.type !== "selection" && l.allowExport !== false), i = o.map((l) => r ? r(l) : l.title).join(","), a = t.map((l) => o.map((s) => n ? n(l[s.key], l, s) : RI(l[s.key])).join(","));
    return [
      i,
      ...a
    ].join(`
`);
  }
  const EI = pe({
    name: "DataTableBodyCheckbox",
    props: {
      rowKey: {
        type: [
          String,
          Number
        ],
        required: true
      },
      disabled: {
        type: Boolean,
        required: true
      },
      onUpdateChecked: {
        type: Function,
        required: true
      }
    },
    setup(e) {
      const { mergedCheckedRowKeySetRef: t, mergedInderminateRowKeySetRef: n } = je(fo);
      return () => {
        const { rowKey: r } = e;
        return g(Zs, {
          privateInsideTable: true,
          disabled: e.disabled,
          indeterminate: n.value.has(r),
          checked: t.value.has(r),
          onUpdateChecked: e.onUpdateChecked
        });
      };
    }
  }), TI = A("radio", `
 line-height: var(--n-label-line-height);
 outline: none;
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 align-items: flex-start;
 flex-wrap: nowrap;
 font-size: var(--n-font-size);
 word-break: break-word;
`, [
    G("checked", [
      V("dot", `
 background-color: var(--n-color-active);
 `)
    ]),
    V("dot-wrapper", `
 position: relative;
 flex-shrink: 0;
 flex-grow: 0;
 width: var(--n-radio-size);
 `),
    A("radio-input", `
 position: absolute;
 border: 0;
 width: 0;
 height: 0;
 opacity: 0;
 margin: 0;
 `),
    V("dot", `
 position: absolute;
 top: 50%;
 left: 0;
 transform: translateY(-50%);
 height: var(--n-radio-size);
 width: var(--n-radio-size);
 background: var(--n-color);
 box-shadow: var(--n-box-shadow);
 border-radius: 50%;
 transition:
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `, [
      W("&::before", `
 content: "";
 opacity: 0;
 position: absolute;
 left: 4px;
 top: 4px;
 height: calc(100% - 8px);
 width: calc(100% - 8px);
 border-radius: 50%;
 transform: scale(.8);
 background: var(--n-dot-color-active);
 transition: 
 opacity .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 transform .3s var(--n-bezier);
 `),
      G("checked", {
        boxShadow: "var(--n-box-shadow-active)"
      }, [
        W("&::before", `
 opacity: 1;
 transform: scale(1);
 `)
      ])
    ]),
    V("label", `
 color: var(--n-text-color);
 padding: var(--n-label-padding);
 font-weight: var(--n-label-font-weight);
 display: inline-block;
 transition: color .3s var(--n-bezier);
 `),
    At("disabled", `
 cursor: pointer;
 `, [
      W("&:hover", [
        V("dot", {
          boxShadow: "var(--n-box-shadow-hover)"
        })
      ]),
      G("focus", [
        W("&:not(:active)", [
          V("dot", {
            boxShadow: "var(--n-box-shadow-focus)"
          })
        ])
      ])
    ]),
    G("disabled", `
 cursor: not-allowed;
 `, [
      V("dot", {
        boxShadow: "var(--n-box-shadow-disabled)",
        backgroundColor: "var(--n-color-disabled)"
      }, [
        W("&::before", {
          backgroundColor: "var(--n-dot-color-disabled)"
        }),
        G("checked", `
 opacity: 1;
 `)
      ]),
      V("label", {
        color: "var(--n-text-color-disabled)"
      }),
      A("radio-input", `
 cursor: not-allowed;
 `)
    ])
  ]), a2 = {
    name: String,
    value: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: "on"
    },
    checked: {
      type: Boolean,
      default: void 0
    },
    defaultChecked: Boolean,
    disabled: {
      type: Boolean,
      default: void 0
    },
    label: String,
    size: String,
    onUpdateChecked: [
      Function,
      Array
    ],
    "onUpdate:checked": [
      Function,
      Array
    ],
    checkedValue: {
      type: Boolean,
      default: void 0
    }
  }, l2 = "n-radio-group";
  function s2(e) {
    const t = je(l2, null), n = Mo(e, {
      mergedSize(y) {
        const { size: w } = e;
        if (w !== void 0) return w;
        if (t) {
          const { mergedSizeRef: { value: x } } = t;
          if (x !== void 0) return x;
        }
        return y ? y.mergedSize.value : "medium";
      },
      mergedDisabled(y) {
        return !!(e.disabled || (t == null ? void 0 : t.disabledRef.value) || (y == null ? void 0 : y.disabled.value));
      }
    }), { mergedSizeRef: r, mergedDisabledRef: o } = n, i = L(null), a = L(null), l = L(e.defaultChecked), c = mn($e(e, "checked"), l), u = Ct(() => t ? t.valueRef.value === e.value : c.value), d = Ct(() => {
      const { name: y } = e;
      if (y !== void 0) return y;
      if (t) return t.nameRef.value;
    }), h = L(false);
    function p() {
      if (t) {
        const { doUpdateValue: y } = t, { value: w } = e;
        Te(y, w);
      } else {
        const { onUpdateChecked: y, "onUpdate:checked": w } = e, { nTriggerFormInput: x, nTriggerFormChange: S } = n;
        y && Te(y, true), w && Te(w, true), x(), S(), l.value = true;
      }
    }
    function f() {
      o.value || u.value || p();
    }
    function m() {
      f(), i.value && (i.value.checked = u.value);
    }
    function b() {
      h.value = false;
    }
    function v() {
      h.value = true;
    }
    return {
      mergedClsPrefix: t ? t.mergedClsPrefixRef : at(e).mergedClsPrefixRef,
      inputRef: i,
      labelRef: a,
      mergedName: d,
      mergedDisabled: o,
      renderSafeChecked: u,
      focus: h,
      mergedSize: r,
      handleRadioInputChange: m,
      handleRadioInputBlur: b,
      handleRadioInputFocus: v
    };
  }
  let PI, $I;
  PI = Object.assign(Object.assign({}, Fe.props), a2);
  c2 = pe({
    name: "Radio",
    props: PI,
    setup(e) {
      const t = s2(e), n = Fe("Radio", "-radio", TI, Am, e, t.mergedClsPrefix), r = D(() => {
        const { mergedSize: { value: c } } = t, { common: { cubicBezierEaseInOut: u }, self: { boxShadow: d, boxShadowActive: h, boxShadowDisabled: p, boxShadowFocus: f, boxShadowHover: m, color: b, colorDisabled: v, colorActive: y, textColor: w, textColorDisabled: x, dotColorActive: S, dotColorDisabled: _, labelPadding: C, labelLineHeight: k, labelFontWeight: R, [Se("fontSize", c)]: P, [Se("radioSize", c)]: B } } = n.value;
        return {
          "--n-bezier": u,
          "--n-label-line-height": k,
          "--n-label-font-weight": R,
          "--n-box-shadow": d,
          "--n-box-shadow-active": h,
          "--n-box-shadow-disabled": p,
          "--n-box-shadow-focus": f,
          "--n-box-shadow-hover": m,
          "--n-color": b,
          "--n-color-active": y,
          "--n-color-disabled": v,
          "--n-dot-color-active": S,
          "--n-dot-color-disabled": _,
          "--n-font-size": P,
          "--n-radio-size": B,
          "--n-text-color": w,
          "--n-text-color-disabled": x,
          "--n-label-padding": C
        };
      }), { inlineThemeDisabled: o, mergedClsPrefixRef: i, mergedRtlRef: a } = at(e), l = rn("Radio", a, i), s = o ? xt("radio", D(() => t.mergedSize.value[0]), r, e) : void 0;
      return Object.assign(t, {
        rtlEnabled: l,
        cssVars: o ? void 0 : r,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender
      });
    },
    render() {
      const { $slots: e, mergedClsPrefix: t, onRender: n, label: r } = this;
      return n == null ? void 0 : n(), g("label", {
        class: [
          `${t}-radio`,
          this.themeClass,
          this.rtlEnabled && `${t}-radio--rtl`,
          this.mergedDisabled && `${t}-radio--disabled`,
          this.renderSafeChecked && `${t}-radio--checked`,
          this.focus && `${t}-radio--focus`
        ],
        style: this.cssVars
      }, g("div", {
        class: `${t}-radio__dot-wrapper`
      }, "\xA0", g("div", {
        class: [
          `${t}-radio__dot`,
          this.renderSafeChecked && `${t}-radio__dot--checked`
        ]
      }), g("input", {
        ref: "inputRef",
        type: "radio",
        class: `${t}-radio-input`,
        value: this.value,
        name: this.mergedName,
        checked: this.renderSafeChecked,
        disabled: this.mergedDisabled,
        onChange: this.handleRadioInputChange,
        onFocus: this.handleRadioInputFocus,
        onBlur: this.handleRadioInputBlur
      })), Pt(e.default, (o) => !o && !r ? null : g("div", {
        ref: "labelRef",
        class: `${t}-radio__label`
      }, o || r)));
    }
  });
  DI = pe({
    name: "RadioButton",
    props: a2,
    setup: s2,
    render() {
      const { mergedClsPrefix: e } = this;
      return g("label", {
        class: [
          `${e}-radio-button`,
          this.mergedDisabled && `${e}-radio-button--disabled`,
          this.renderSafeChecked && `${e}-radio-button--checked`,
          this.focus && [
            `${e}-radio-button--focus`
          ]
        ]
      }, g("input", {
        ref: "inputRef",
        type: "radio",
        class: `${e}-radio-input`,
        value: this.value,
        name: this.mergedName,
        checked: this.renderSafeChecked,
        disabled: this.mergedDisabled,
        onChange: this.handleRadioInputChange,
        onFocus: this.handleRadioInputFocus,
        onBlur: this.handleRadioInputBlur
      }), g("div", {
        class: `${e}-radio-button__state-border`
      }), Pt(this.$slots.default, (t) => !t && !this.label ? null : g("div", {
        ref: "labelRef",
        class: `${e}-radio__label`
      }, t || this.label)));
    }
  });
  $I = A("radio-group", `
 display: inline-block;
 font-size: var(--n-font-size);
`, [
    V("splitor", `
 display: inline-block;
 vertical-align: bottom;
 width: 1px;
 transition:
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 background: var(--n-button-border-color);
 `, [
      G("checked", {
        backgroundColor: "var(--n-button-border-color-active)"
      }),
      G("disabled", {
        opacity: "var(--n-opacity-disabled)"
      })
    ]),
    G("button-group", `
 white-space: nowrap;
 height: var(--n-height);
 line-height: var(--n-height);
 `, [
      A("radio-button", {
        height: "var(--n-height)",
        lineHeight: "var(--n-height)"
      }),
      V("splitor", {
        height: "var(--n-height)"
      })
    ]),
    A("radio-button", `
 vertical-align: bottom;
 outline: none;
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 display: inline-block;
 box-sizing: border-box;
 padding-left: 14px;
 padding-right: 14px;
 white-space: nowrap;
 transition:
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 background: var(--n-button-color);
 color: var(--n-button-text-color);
 border-top: 1px solid var(--n-button-border-color);
 border-bottom: 1px solid var(--n-button-border-color);
 `, [
      A("radio-input", `
 pointer-events: none;
 position: absolute;
 border: 0;
 border-radius: inherit;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 opacity: 0;
 z-index: 1;
 `),
      V("state-border", `
 z-index: 1;
 pointer-events: none;
 position: absolute;
 box-shadow: var(--n-button-box-shadow);
 transition: box-shadow .3s var(--n-bezier);
 left: -1px;
 bottom: -1px;
 right: -1px;
 top: -1px;
 `),
      W("&:first-child", `
 border-top-left-radius: var(--n-button-border-radius);
 border-bottom-left-radius: var(--n-button-border-radius);
 border-left: 1px solid var(--n-button-border-color);
 `, [
        V("state-border", `
 border-top-left-radius: var(--n-button-border-radius);
 border-bottom-left-radius: var(--n-button-border-radius);
 `)
      ]),
      W("&:last-child", `
 border-top-right-radius: var(--n-button-border-radius);
 border-bottom-right-radius: var(--n-button-border-radius);
 border-right: 1px solid var(--n-button-border-color);
 `, [
        V("state-border", `
 border-top-right-radius: var(--n-button-border-radius);
 border-bottom-right-radius: var(--n-button-border-radius);
 `)
      ]),
      At("disabled", `
 cursor: pointer;
 `, [
        W("&:hover", [
          V("state-border", `
 transition: box-shadow .3s var(--n-bezier);
 box-shadow: var(--n-button-box-shadow-hover);
 `),
          At("checked", {
            color: "var(--n-button-text-color-hover)"
          })
        ]),
        G("focus", [
          W("&:not(:active)", [
            V("state-border", {
              boxShadow: "var(--n-button-box-shadow-focus)"
            })
          ])
        ])
      ]),
      G("checked", `
 background: var(--n-button-color-active);
 color: var(--n-button-text-color-active);
 border-color: var(--n-button-border-color-active);
 `),
      G("disabled", `
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `)
    ])
  ]);
  function zI(e, t, n) {
    var r;
    const o = [];
    let i = false;
    for (let a = 0; a < e.length; ++a) {
      const l = e[a], s = (r = l.type) === null || r === void 0 ? void 0 : r.name;
      s === "RadioButton" && (i = true);
      const c = l.props;
      if (s !== "RadioButton") {
        o.push(l);
        continue;
      }
      if (a === 0) o.push(l);
      else {
        const u = o[o.length - 1].props, d = t === u.value, h = u.disabled, p = t === c.value, f = c.disabled, m = (d ? 2 : 0) + (h ? 0 : 1), b = (p ? 2 : 0) + (f ? 0 : 1), v = {
          [`${n}-radio-group__splitor--disabled`]: h,
          [`${n}-radio-group__splitor--checked`]: d
        }, y = {
          [`${n}-radio-group__splitor--disabled`]: f,
          [`${n}-radio-group__splitor--checked`]: p
        }, w = m < b ? y : v;
        o.push(g("div", {
          class: [
            `${n}-radio-group__splitor`,
            w
          ]
        }), l);
      }
    }
    return {
      children: o,
      isButtonGroup: i
    };
  }
  let OI, II, FI, f2;
  OI = Object.assign(Object.assign({}, Fe.props), {
    name: String,
    value: [
      String,
      Number,
      Boolean
    ],
    defaultValue: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: null
    },
    size: String,
    disabled: {
      type: Boolean,
      default: void 0
    },
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ]
  });
  u2 = pe({
    name: "RadioGroup",
    props: OI,
    setup(e) {
      const t = L(null), { mergedSizeRef: n, mergedDisabledRef: r, nTriggerFormChange: o, nTriggerFormInput: i, nTriggerFormBlur: a, nTriggerFormFocus: l } = Mo(e), { mergedClsPrefixRef: s, inlineThemeDisabled: c, mergedRtlRef: u } = at(e), d = Fe("Radio", "-radio-group", $I, Am, e, s), h = L(e.defaultValue), f = mn($e(e, "value"), h);
      function m(S) {
        const { onUpdateValue: _, "onUpdate:value": C } = e;
        _ && Te(_, S), C && Te(C, S), h.value = S, o(), i();
      }
      function b(S) {
        const { value: _ } = t;
        _ && (_.contains(S.relatedTarget) || l());
      }
      function v(S) {
        const { value: _ } = t;
        _ && (_.contains(S.relatedTarget) || a());
      }
      ft(l2, {
        mergedClsPrefixRef: s,
        nameRef: $e(e, "name"),
        valueRef: f,
        disabledRef: r,
        mergedSizeRef: n,
        doUpdateValue: m
      });
      const y = rn("Radio", u, s), w = D(() => {
        const { value: S } = n, { common: { cubicBezierEaseInOut: _ }, self: { buttonBorderColor: C, buttonBorderColorActive: k, buttonBorderRadius: R, buttonBoxShadow: P, buttonBoxShadowFocus: B, buttonBoxShadowHover: E, buttonColor: M, buttonColorActive: z, buttonTextColor: U, buttonTextColorActive: ee, buttonTextColorHover: ne, opacityDisabled: ae, [Se("buttonHeight", S)]: ye, [Se("fontSize", S)]: xe } } = d.value;
        return {
          "--n-font-size": xe,
          "--n-bezier": _,
          "--n-button-border-color": C,
          "--n-button-border-color-active": k,
          "--n-button-border-radius": R,
          "--n-button-box-shadow": P,
          "--n-button-box-shadow-focus": B,
          "--n-button-box-shadow-hover": E,
          "--n-button-color": M,
          "--n-button-color-active": z,
          "--n-button-text-color": U,
          "--n-button-text-color-hover": ne,
          "--n-button-text-color-active": ee,
          "--n-height": ye,
          "--n-opacity-disabled": ae
        };
      }), x = c ? xt("radio-group", D(() => n.value[0]), w, e) : void 0;
      return {
        selfElRef: t,
        rtlEnabled: y,
        mergedClsPrefix: s,
        mergedValue: f,
        handleFocusout: v,
        handleFocusin: b,
        cssVars: c ? void 0 : w,
        themeClass: x == null ? void 0 : x.themeClass,
        onRender: x == null ? void 0 : x.onRender
      };
    },
    render() {
      var e;
      const { mergedValue: t, mergedClsPrefix: n, handleFocusin: r, handleFocusout: o } = this, { children: i, isButtonGroup: a } = zI(ro(sd(this)), t, n);
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        onFocusin: r,
        onFocusout: o,
        ref: "selfElRef",
        class: [
          `${n}-radio-group`,
          this.rtlEnabled && `${n}-radio-group--rtl`,
          this.themeClass,
          a && `${n}-radio-group--button-group`
        ],
        style: this.cssVars
      }, i);
    }
  });
  II = pe({
    name: "DataTableBodyRadio",
    props: {
      rowKey: {
        type: [
          String,
          Number
        ],
        required: true
      },
      disabled: {
        type: Boolean,
        required: true
      },
      onUpdateChecked: {
        type: Function,
        required: true
      }
    },
    setup(e) {
      const { mergedCheckedRowKeySetRef: t, componentId: n } = je(fo);
      return () => {
        const { rowKey: r } = e;
        return g(c2, {
          name: n,
          disabled: e.disabled,
          checked: t.value.has(r),
          onUpdateChecked: e.onUpdateChecked
        });
      };
    }
  });
  FI = Object.assign(Object.assign({}, ga), Fe.props);
  d2 = pe({
    name: "Tooltip",
    props: FI,
    slots: Object,
    __popover__: true,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e), n = Fe("Tooltip", "-tooltip", void 0, Rm, e, t), r = L(null);
      return Object.assign(Object.assign({}, {
        syncPosition() {
          r.value.syncPosition();
        },
        setShow(i) {
          r.value.setShow(i);
        }
      }), {
        popoverRef: r,
        mergedTheme: n,
        popoverThemeOverrides: D(() => n.value.self)
      });
    },
    render() {
      const { mergedTheme: e, internalExtraClass: t } = this;
      return g(Tl, Object.assign(Object.assign({}, this.$props), {
        theme: e.peers.Popover,
        themeOverrides: e.peerOverrides.Popover,
        builtinThemeOverrides: this.popoverThemeOverrides,
        internalExtraClass: t.concat("tooltip"),
        ref: "popoverRef"
      }), this.$slots);
    }
  });
  f2 = A("ellipsis", {
    overflow: "hidden"
  }, [
    At("line-clamp", `
 white-space: nowrap;
 display: inline-block;
 vertical-align: bottom;
 max-width: 100%;
 `),
    G("line-clamp", `
 display: -webkit-inline-box;
 -webkit-box-orient: vertical;
 `),
    G("cursor-pointer", `
 cursor: pointer;
 `)
  ]);
  function jh(e) {
    return `${e}-ellipsis--line-clamp`;
  }
  function Wh(e, t) {
    return `${e}-ellipsis--cursor-${t}`;
  }
  const h2 = Object.assign(Object.assign({}, Fe.props), {
    expandTrigger: String,
    lineClamp: [
      Number,
      String
    ],
    tooltip: {
      type: [
        Boolean,
        Object
      ],
      default: true
    }
  }), ec = pe({
    name: "Ellipsis",
    inheritAttrs: false,
    props: h2,
    slots: Object,
    setup(e, { slots: t, attrs: n }) {
      const r = _w(), o = Fe("Ellipsis", "-ellipsis", f2, ZC, e, r), i = L(null), a = L(null), l = L(null), s = L(false), c = D(() => {
        const { lineClamp: b } = e, { value: v } = s;
        return b !== void 0 ? {
          textOverflow: "",
          "-webkit-line-clamp": v ? "" : b
        } : {
          textOverflow: v ? "" : "ellipsis",
          "-webkit-line-clamp": ""
        };
      });
      function u() {
        let b = false;
        const { value: v } = s;
        if (v) return true;
        const { value: y } = i;
        if (y) {
          const { lineClamp: w } = e;
          if (p(y), w !== void 0) b = y.scrollHeight <= y.offsetHeight;
          else {
            const { value: x } = a;
            x && (b = x.getBoundingClientRect().width <= y.getBoundingClientRect().width);
          }
          f(y, b);
        }
        return b;
      }
      const d = D(() => e.expandTrigger === "click" ? () => {
        var b;
        const { value: v } = s;
        v && ((b = l.value) === null || b === void 0 || b.setShow(false)), s.value = !v;
      } : void 0);
      Vs(() => {
        var b;
        e.tooltip && ((b = l.value) === null || b === void 0 || b.setShow(false));
      });
      const h = () => g("span", Object.assign({}, Mn(n, {
        class: [
          `${r.value}-ellipsis`,
          e.lineClamp !== void 0 ? jh(r.value) : void 0,
          e.expandTrigger === "click" ? Wh(r.value, "pointer") : void 0
        ],
        style: c.value
      }), {
        ref: "triggerRef",
        onClick: d.value,
        onMouseenter: e.expandTrigger === "click" ? u : void 0
      }), e.lineClamp ? t : g("span", {
        ref: "triggerInnerRef"
      }, t));
      function p(b) {
        if (!b) return;
        const v = c.value, y = jh(r.value);
        e.lineClamp !== void 0 ? m(b, y, "add") : m(b, y, "remove");
        for (const w in v) b.style[w] !== v[w] && (b.style[w] = v[w]);
      }
      function f(b, v) {
        const y = Wh(r.value, "pointer");
        e.expandTrigger === "click" && !v ? m(b, y, "add") : m(b, y, "remove");
      }
      function m(b, v, y) {
        y === "add" ? b.classList.contains(v) || b.classList.add(v) : b.classList.contains(v) && b.classList.remove(v);
      }
      return {
        mergedTheme: o,
        triggerRef: i,
        triggerInnerRef: a,
        tooltipRef: l,
        handleClick: d,
        renderTrigger: h,
        getTooltipDisabled: u
      };
    },
    render() {
      var e;
      const { tooltip: t, renderTrigger: n, $slots: r } = this;
      if (t) {
        const { mergedTheme: o } = this;
        return g(d2, Object.assign({
          ref: "tooltipRef",
          placement: "top"
        }, t, {
          getDisabled: this.getTooltipDisabled,
          theme: o.peers.Tooltip,
          themeOverrides: o.peerOverrides.Tooltip
        }), {
          trigger: n,
          default: (e = r.tooltip) !== null && e !== void 0 ? e : r.default
        });
      } else return n();
    }
  }), MI = pe({
    name: "PerformantEllipsis",
    props: h2,
    inheritAttrs: false,
    setup(e, { attrs: t, slots: n }) {
      const r = L(false), o = _w();
      return Lo("-ellipsis", f2, o), {
        mouseEntered: r,
        renderTrigger: () => {
          const { lineClamp: a } = e, l = o.value;
          return g("span", Object.assign({}, Mn(t, {
            class: [
              `${l}-ellipsis`,
              a !== void 0 ? jh(l) : void 0,
              e.expandTrigger === "click" ? Wh(l, "pointer") : void 0
            ],
            style: a === void 0 ? {
              textOverflow: "ellipsis"
            } : {
              "-webkit-line-clamp": a
            }
          }), {
            onMouseenter: () => {
              r.value = true;
            }
          }), a ? n : g("span", null, n));
        }
      };
    },
    render() {
      return this.mouseEntered ? g(ec, Mn({}, this.$attrs, this.$props), this.$slots) : this.renderTrigger();
    }
  }), LI = pe({
    name: "DataTableCell",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      row: {
        type: Object,
        required: true
      },
      index: {
        type: Number,
        required: true
      },
      column: {
        type: Object,
        required: true
      },
      isSummary: Boolean,
      mergedTheme: {
        type: Object,
        required: true
      },
      renderCell: Function
    },
    render() {
      var e;
      const { isSummary: t, column: n, row: r, renderCell: o } = this;
      let i;
      const { render: a, key: l, ellipsis: s } = n;
      if (a && !t ? i = a(r, this.index) : t ? i = (e = r[l]) === null || e === void 0 ? void 0 : e.value : i = o ? o($s(r, l), r, n) : $s(r, l), s) if (typeof s == "object") {
        const { mergedTheme: c } = this;
        return n.ellipsisComponent === "performant-ellipsis" ? g(MI, Object.assign({}, s, {
          theme: c.peers.Ellipsis,
          themeOverrides: c.peerOverrides.Ellipsis
        }), {
          default: () => i
        }) : g(ec, Object.assign({}, s, {
          theme: c.peers.Ellipsis,
          themeOverrides: c.peerOverrides.Ellipsis
        }), {
          default: () => i
        });
      } else return g("span", {
        class: `${this.clsPrefix}-data-table-td__ellipsis`
      }, i);
      return i;
    }
  }), Nb = pe({
    name: "DataTableExpandTrigger",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      expanded: Boolean,
      loading: Boolean,
      onClick: {
        type: Function,
        required: true
      },
      renderExpandIcon: {
        type: Function
      },
      rowData: {
        type: Object,
        required: true
      }
    },
    render() {
      const { clsPrefix: e } = this;
      return g("div", {
        class: [
          `${e}-data-table-expand-trigger`,
          this.expanded && `${e}-data-table-expand-trigger--expanded`
        ],
        onClick: this.onClick,
        onMousedown: (t) => {
          t.preventDefault();
        }
      }, g(Sa, null, {
        default: () => this.loading ? g(Ii, {
          key: "loading",
          clsPrefix: this.clsPrefix,
          radius: 85,
          strokeWidth: 15,
          scale: 0.88
        }) : this.renderExpandIcon ? this.renderExpandIcon({
          expanded: this.expanded,
          rowData: this.rowData
        }) : g(Jt, {
          clsPrefix: e,
          key: "base-icon"
        }, {
          default: () => g(pm, null)
        })
      }));
    }
  }), BI = pe({
    name: "DataTableFilterMenu",
    props: {
      column: {
        type: Object,
        required: true
      },
      radioGroupName: {
        type: String,
        required: true
      },
      multiple: {
        type: Boolean,
        required: true
      },
      value: {
        type: [
          Array,
          String,
          Number
        ],
        default: null
      },
      options: {
        type: Array,
        required: true
      },
      onConfirm: {
        type: Function,
        required: true
      },
      onClear: {
        type: Function,
        required: true
      },
      onChange: {
        type: Function,
        required: true
      }
    },
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e), r = rn("DataTable", n, t), { mergedClsPrefixRef: o, mergedThemeRef: i, localeRef: a } = je(fo), l = L(e.value), s = D(() => {
        const { value: f } = l;
        return Array.isArray(f) ? f : null;
      }), c = D(() => {
        const { value: f } = l;
        return kf(e.column) ? Array.isArray(f) && f.length && f[0] || null : Array.isArray(f) ? null : f;
      });
      function u(f) {
        e.onChange(f);
      }
      function d(f) {
        e.multiple && Array.isArray(f) ? l.value = f : kf(e.column) && !Array.isArray(f) ? l.value = [
          f
        ] : l.value = f;
      }
      function h() {
        u(l.value), e.onConfirm();
      }
      function p() {
        e.multiple || kf(e.column) ? u([]) : u(null), e.onClear();
      }
      return {
        mergedClsPrefix: o,
        rtlEnabled: r,
        mergedTheme: i,
        locale: a,
        checkboxGroupValue: s,
        radioGroupValue: c,
        handleChange: d,
        handleConfirmClick: h,
        handleClearClick: p
      };
    },
    render() {
      const { mergedTheme: e, locale: t, mergedClsPrefix: n } = this;
      return g("div", {
        class: [
          `${n}-data-table-filter-menu`,
          this.rtlEnabled && `${n}-data-table-filter-menu--rtl`
        ]
      }, g(Bo, null, {
        default: () => {
          const { checkboxGroupValue: r, handleChange: o } = this;
          return this.multiple ? g(MO, {
            value: r,
            class: `${n}-data-table-filter-menu__group`,
            onUpdateValue: o
          }, {
            default: () => this.options.map((i) => g(Zs, {
              key: i.value,
              theme: e.peers.Checkbox,
              themeOverrides: e.peerOverrides.Checkbox,
              value: i.value
            }, {
              default: () => i.label
            }))
          }) : g(u2, {
            name: this.radioGroupName,
            class: `${n}-data-table-filter-menu__group`,
            value: this.radioGroupValue,
            onUpdateValue: this.handleChange
          }, {
            default: () => this.options.map((i) => g(c2, {
              key: i.value,
              value: i.value,
              theme: e.peers.Radio,
              themeOverrides: e.peerOverrides.Radio
            }, {
              default: () => i.label
            }))
          });
        }
      }), g("div", {
        class: `${n}-data-table-filter-menu__action`
      }, g(ht, {
        size: "tiny",
        theme: e.peers.Button,
        themeOverrides: e.peerOverrides.Button,
        onClick: this.handleClearClick
      }, {
        default: () => t.clear
      }), g(ht, {
        theme: e.peers.Button,
        themeOverrides: e.peerOverrides.Button,
        type: "primary",
        size: "tiny",
        onClick: this.handleConfirmClick
      }, {
        default: () => t.confirm
      })));
    }
  }), NI = pe({
    name: "DataTableRenderFilter",
    props: {
      render: {
        type: Function,
        required: true
      },
      active: {
        type: Boolean,
        default: false
      },
      show: {
        type: Boolean,
        default: false
      }
    },
    render() {
      const { render: e, active: t, show: n } = this;
      return e({
        active: t,
        show: n
      });
    }
  });
  function HI(e, t, n) {
    const r = Object.assign({}, e);
    return r[t] = n, r;
  }
  const jI = pe({
    name: "DataTableFilterButton",
    props: {
      column: {
        type: Object,
        required: true
      },
      options: {
        type: Array,
        default: () => []
      }
    },
    setup(e) {
      const { mergedComponentPropsRef: t } = at(), { mergedThemeRef: n, mergedClsPrefixRef: r, mergedFilterStateRef: o, filterMenuCssVarsRef: i, paginationBehaviorOnFilterRef: a, doUpdatePage: l, doUpdateFilters: s, filterIconPopoverPropsRef: c } = je(fo), u = L(false), d = o, h = D(() => e.column.filterMultiple !== false), p = D(() => {
        const w = d.value[e.column.key];
        if (w === void 0) {
          const { value: x } = h;
          return x ? [] : null;
        }
        return w;
      }), f = D(() => {
        const { value: w } = p;
        return Array.isArray(w) ? w.length > 0 : w !== null;
      }), m = D(() => {
        var w, x;
        return ((x = (w = t == null ? void 0 : t.value) === null || w === void 0 ? void 0 : w.DataTable) === null || x === void 0 ? void 0 : x.renderFilter) || e.column.renderFilter;
      });
      function b(w) {
        const x = HI(d.value, e.column.key, w);
        s(x, e.column), a.value === "first" && l(1);
      }
      function v() {
        u.value = false;
      }
      function y() {
        u.value = false;
      }
      return {
        mergedTheme: n,
        mergedClsPrefix: r,
        active: f,
        showPopover: u,
        mergedRenderFilter: m,
        filterIconPopoverProps: c,
        filterMultiple: h,
        mergedFilterValue: p,
        filterMenuCssVars: i,
        handleFilterChange: b,
        handleFilterMenuConfirm: y,
        handleFilterMenuCancel: v
      };
    },
    render() {
      const { mergedTheme: e, mergedClsPrefix: t, handleFilterMenuCancel: n, filterIconPopoverProps: r } = this;
      return g(Tl, Object.assign({
        show: this.showPopover,
        onUpdateShow: (o) => this.showPopover = o,
        trigger: "click",
        theme: e.peers.Popover,
        themeOverrides: e.peerOverrides.Popover,
        placement: "bottom"
      }, r, {
        style: {
          padding: 0
        }
      }), {
        trigger: () => {
          const { mergedRenderFilter: o } = this;
          if (o) return g(NI, {
            "data-data-table-filter": true,
            render: o,
            active: this.active,
            show: this.showPopover
          });
          const { renderFilterIcon: i } = this.column;
          return g("div", {
            "data-data-table-filter": true,
            class: [
              `${t}-data-table-filter`,
              {
                [`${t}-data-table-filter--active`]: this.active,
                [`${t}-data-table-filter--show`]: this.showPopover
              }
            ]
          }, i ? i({
            active: this.active,
            show: this.showPopover
          }) : g(Jt, {
            clsPrefix: t
          }, {
            default: () => g(fz, null)
          }));
        },
        default: () => {
          const { renderFilterMenu: o } = this.column;
          return o ? o({
            hide: n
          }) : g(BI, {
            style: this.filterMenuCssVars,
            radioGroupName: String(this.column.key),
            multiple: this.filterMultiple,
            value: this.mergedFilterValue,
            options: this.options,
            column: this.column,
            onChange: this.handleFilterChange,
            onClear: this.handleFilterMenuCancel,
            onConfirm: this.handleFilterMenuConfirm
          });
        }
      });
    }
  }), WI = pe({
    name: "ColumnResizeButton",
    props: {
      onResizeStart: Function,
      onResize: Function,
      onResizeEnd: Function
    },
    setup(e) {
      const { mergedClsPrefixRef: t } = je(fo), n = L(false);
      let r = 0;
      function o(s) {
        return s.clientX;
      }
      function i(s) {
        var c;
        s.preventDefault();
        const u = n.value;
        r = o(s), n.value = true, u || (Dt("mousemove", window, a), Dt("mouseup", window, l), (c = e.onResizeStart) === null || c === void 0 || c.call(e));
      }
      function a(s) {
        var c;
        (c = e.onResize) === null || c === void 0 || c.call(e, o(s) - r);
      }
      function l() {
        var s;
        n.value = false, (s = e.onResizeEnd) === null || s === void 0 || s.call(e), Rt("mousemove", window, a), Rt("mouseup", window, l);
      }
      return Zt(() => {
        Rt("mousemove", window, a), Rt("mouseup", window, l);
      }), {
        mergedClsPrefix: t,
        active: n,
        handleMousedown: i
      };
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g("span", {
        "data-data-table-resizable": true,
        class: [
          `${e}-data-table-resize-button`,
          this.active && `${e}-data-table-resize-button--active`
        ],
        onMousedown: this.handleMousedown
      });
    }
  }), UI = pe({
    name: "DataTableRenderSorter",
    props: {
      render: {
        type: Function,
        required: true
      },
      order: {
        type: [
          String,
          Boolean
        ],
        default: false
      }
    },
    render() {
      const { render: e, order: t } = this;
      return e({
        order: t
      });
    }
  }), VI = pe({
    name: "SortIcon",
    props: {
      column: {
        type: Object,
        required: true
      }
    },
    setup(e) {
      const { mergedComponentPropsRef: t } = at(), { mergedSortStateRef: n, mergedClsPrefixRef: r } = je(fo), o = D(() => n.value.find((s) => s.columnKey === e.column.key)), i = D(() => o.value !== void 0), a = D(() => {
        const { value: s } = o;
        return s && i.value ? s.order : false;
      }), l = D(() => {
        var s, c;
        return ((c = (s = t == null ? void 0 : t.value) === null || s === void 0 ? void 0 : s.DataTable) === null || c === void 0 ? void 0 : c.renderSorter) || e.column.renderSorter;
      });
      return {
        mergedClsPrefix: r,
        active: i,
        mergedSortOrder: a,
        mergedRenderSorter: l
      };
    },
    render() {
      const { mergedRenderSorter: e, mergedSortOrder: t, mergedClsPrefix: n } = this, { renderSorterIcon: r } = this.column;
      return e ? g(UI, {
        render: e,
        order: t
      }) : g("span", {
        class: [
          `${n}-data-table-sorter`,
          t === "ascend" && `${n}-data-table-sorter--asc`,
          t === "descend" && `${n}-data-table-sorter--desc`
        ]
      }, r ? r({
        order: t
      }) : g(Jt, {
        clsPrefix: n
      }, {
        default: () => g(rz, null)
      }));
    }
  }), Em = "n-dropdown-menu", yd = "n-dropdown", Hb = "n-dropdown-option", p2 = pe({
    name: "DropdownDivider",
    props: {
      clsPrefix: {
        type: String,
        required: true
      }
    },
    render() {
      return g("div", {
        class: `${this.clsPrefix}-dropdown-divider`
      });
    }
  }), qI = pe({
    name: "DropdownGroupHeader",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      tmNode: {
        type: Object,
        required: true
      }
    },
    setup() {
      const { showIconRef: e, hasSubmenuRef: t } = je(Em), { renderLabelRef: n, labelFieldRef: r, nodePropsRef: o, renderOptionRef: i } = je(yd);
      return {
        labelField: r,
        showIcon: e,
        hasSubmenu: t,
        renderLabel: n,
        nodeProps: o,
        renderOption: i
      };
    },
    render() {
      var e;
      const { clsPrefix: t, hasSubmenu: n, showIcon: r, nodeProps: o, renderLabel: i, renderOption: a } = this, { rawNode: l } = this.tmNode, s = g("div", Object.assign({
        class: `${t}-dropdown-option`
      }, o == null ? void 0 : o(l)), g("div", {
        class: `${t}-dropdown-option-body ${t}-dropdown-option-body--group`
      }, g("div", {
        "data-dropdown-option": true,
        class: [
          `${t}-dropdown-option-body__prefix`,
          r && `${t}-dropdown-option-body__prefix--show-icon`
        ]
      }, Xt(l.icon)), g("div", {
        class: `${t}-dropdown-option-body__label`,
        "data-dropdown-option": true
      }, i ? i(l) : Xt((e = l.title) !== null && e !== void 0 ? e : l[this.labelField])), g("div", {
        class: [
          `${t}-dropdown-option-body__suffix`,
          n && `${t}-dropdown-option-body__suffix--has-submenu`
        ],
        "data-dropdown-option": true
      })));
      return a ? a({
        node: s,
        option: l
      }) : s;
    }
  });
  function m2(e) {
    const { textColorBase: t, opacity1: n, opacity2: r, opacity3: o, opacity4: i, opacity5: a } = e;
    return {
      color: t,
      opacity1Depth: n,
      opacity2Depth: r,
      opacity3Depth: o,
      opacity4Depth: i,
      opacity5Depth: a
    };
  }
  let GI, KI, YI, XI;
  GI = {
    common: mt,
    self: m2
  };
  KI = {
    name: "Icon",
    common: Ue,
    self: m2
  };
  YI = A("icon", `
 height: 1em;
 width: 1em;
 line-height: 1em;
 text-align: center;
 display: inline-block;
 position: relative;
 fill: currentColor;
`, [
    G("color-transition", {
      transition: "color .3s var(--n-bezier)"
    }),
    G("depth", {
      color: "var(--n-color)"
    }, [
      W("svg", {
        opacity: "var(--n-opacity)",
        transition: "opacity .3s var(--n-bezier)"
      })
    ]),
    W("svg", {
      height: "1em",
      width: "1em"
    })
  ]);
  XI = Object.assign(Object.assign({}, Fe.props), {
    depth: [
      String,
      Number
    ],
    size: [
      Number,
      String
    ],
    color: String,
    component: [
      Object,
      Function
    ]
  });
  kn = pe({
    _n_icon__: true,
    name: "Icon",
    inheritAttrs: false,
    props: XI,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Icon", "-icon", YI, GI, e, t), o = D(() => {
        const { depth: a } = e, { common: { cubicBezierEaseInOut: l }, self: s } = r.value;
        if (a !== void 0) {
          const { color: c, [`opacity${a}Depth`]: u } = s;
          return {
            "--n-bezier": l,
            "--n-color": c,
            "--n-opacity": u
          };
        }
        return {
          "--n-bezier": l,
          "--n-color": "",
          "--n-opacity": ""
        };
      }), i = n ? xt("icon", D(() => `${e.depth || "d"}`), o, e) : void 0;
      return {
        mergedClsPrefix: t,
        mergedStyle: D(() => {
          const { size: a, color: l } = e;
          return {
            fontSize: Ft(a),
            color: l
          };
        }),
        cssVars: n ? void 0 : o,
        themeClass: i == null ? void 0 : i.themeClass,
        onRender: i == null ? void 0 : i.onRender
      };
    },
    render() {
      var e;
      const { $parent: t, depth: n, mergedClsPrefix: r, component: o, onRender: i, themeClass: a } = this;
      return !((e = t == null ? void 0 : t.$options) === null || e === void 0) && e._n_icon__ && lo("icon", "don't wrap `n-icon` inside `n-icon`"), i == null ? void 0 : i(), g("i", Mn(this.$attrs, {
        role: "img",
        class: [
          `${r}-icon`,
          a,
          {
            [`${r}-icon--depth`]: n,
            [`${r}-icon--color-transition`]: n !== void 0
          }
        ],
        style: [
          this.cssVars,
          this.mergedStyle
        ]
      }), o ? g(o) : this.$slots);
    }
  });
  function Uh(e, t) {
    return e.type === "submenu" || e.type === void 0 && e[t] !== void 0;
  }
  function JI(e) {
    return e.type === "group";
  }
  function g2(e) {
    return e.type === "divider";
  }
  function ZI(e) {
    return e.type === "render";
  }
  const v2 = pe({
    name: "DropdownOption",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      tmNode: {
        type: Object,
        required: true
      },
      parentKey: {
        type: [
          String,
          Number
        ],
        default: null
      },
      placement: {
        type: String,
        default: "right-start"
      },
      props: Object,
      scrollable: Boolean
    },
    setup(e) {
      const t = je(yd), { hoverKeyRef: n, keyboardKeyRef: r, lastToggledSubmenuKeyRef: o, pendingKeyPathRef: i, activeKeyPathRef: a, animatedRef: l, mergedShowRef: s, renderLabelRef: c, renderIconRef: u, labelFieldRef: d, childrenFieldRef: h, renderOptionRef: p, nodePropsRef: f, menuPropsRef: m } = t, b = je(Hb, null), v = je(Em), y = je(_l), w = D(() => e.tmNode.rawNode), x = D(() => {
        const { value: ne } = h;
        return Uh(e.tmNode.rawNode, ne);
      }), S = D(() => {
        const { disabled: ne } = e.tmNode;
        return ne;
      }), _ = D(() => {
        if (!x.value) return false;
        const { key: ne, disabled: ae } = e.tmNode;
        if (ae) return false;
        const { value: ye } = n, { value: xe } = r, { value: re } = o, { value: Y } = i;
        return ye !== null ? Y.includes(ne) : xe !== null ? Y.includes(ne) && Y[Y.length - 1] !== ne : re !== null ? Y.includes(ne) : false;
      }), C = D(() => r.value === null && !l.value), k = OE(_, 300, C), R = D(() => !!(b == null ? void 0 : b.enteringSubmenuRef.value)), P = L(false);
      ft(Hb, {
        enteringSubmenuRef: P
      });
      function B() {
        P.value = true;
      }
      function E() {
        P.value = false;
      }
      function M() {
        const { parentKey: ne, tmNode: ae } = e;
        ae.disabled || s.value && (o.value = ne, r.value = null, n.value = ae.key);
      }
      function z() {
        const { tmNode: ne } = e;
        ne.disabled || s.value && n.value !== ne.key && M();
      }
      function U(ne) {
        if (e.tmNode.disabled || !s.value) return;
        const { relatedTarget: ae } = ne;
        ae && !mr({
          target: ae
        }, "dropdownOption") && !mr({
          target: ae
        }, "scrollbarRail") && (n.value = null);
      }
      function ee() {
        const { value: ne } = x, { tmNode: ae } = e;
        s.value && !ne && !ae.disabled && (t.doSelect(ae.key, ae.rawNode), t.doUpdateShow(false));
      }
      return {
        labelField: d,
        renderLabel: c,
        renderIcon: u,
        siblingHasIcon: v.showIconRef,
        siblingHasSubmenu: v.hasSubmenuRef,
        menuProps: m,
        popoverBody: y,
        animated: l,
        mergedShowSubmenu: D(() => k.value && !R.value),
        rawNode: w,
        hasSubmenu: x,
        pending: Ct(() => {
          const { value: ne } = i, { key: ae } = e.tmNode;
          return ne.includes(ae);
        }),
        childActive: Ct(() => {
          const { value: ne } = a, { key: ae } = e.tmNode, ye = ne.findIndex((xe) => ae === xe);
          return ye === -1 ? false : ye < ne.length - 1;
        }),
        active: Ct(() => {
          const { value: ne } = a, { key: ae } = e.tmNode, ye = ne.findIndex((xe) => ae === xe);
          return ye === -1 ? false : ye === ne.length - 1;
        }),
        mergedDisabled: S,
        renderOption: p,
        nodeProps: f,
        handleClick: ee,
        handleMouseMove: z,
        handleMouseEnter: M,
        handleMouseLeave: U,
        handleSubmenuBeforeEnter: B,
        handleSubmenuAfterEnter: E
      };
    },
    render() {
      var e, t;
      const { animated: n, rawNode: r, mergedShowSubmenu: o, clsPrefix: i, siblingHasIcon: a, siblingHasSubmenu: l, renderLabel: s, renderIcon: c, renderOption: u, nodeProps: d, props: h, scrollable: p } = this;
      let f = null;
      if (o) {
        const y = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
        f = g(b2, Object.assign({}, y, {
          clsPrefix: i,
          scrollable: this.scrollable,
          tmNodes: this.tmNode.children,
          parentKey: this.tmNode.key
        }));
      }
      const m = {
        class: [
          `${i}-dropdown-option-body`,
          this.pending && `${i}-dropdown-option-body--pending`,
          this.active && `${i}-dropdown-option-body--active`,
          this.childActive && `${i}-dropdown-option-body--child-active`,
          this.mergedDisabled && `${i}-dropdown-option-body--disabled`
        ],
        onMousemove: this.handleMouseMove,
        onMouseenter: this.handleMouseEnter,
        onMouseleave: this.handleMouseLeave,
        onClick: this.handleClick
      }, b = d == null ? void 0 : d(r), v = g("div", Object.assign({
        class: [
          `${i}-dropdown-option`,
          b == null ? void 0 : b.class
        ],
        "data-dropdown-option": true
      }, b), g("div", Mn(m, h), [
        g("div", {
          class: [
            `${i}-dropdown-option-body__prefix`,
            a && `${i}-dropdown-option-body__prefix--show-icon`
          ]
        }, [
          c ? c(r) : Xt(r.icon)
        ]),
        g("div", {
          "data-dropdown-option": true,
          class: `${i}-dropdown-option-body__label`
        }, s ? s(r) : Xt((t = r[this.labelField]) !== null && t !== void 0 ? t : r.title)),
        g("div", {
          "data-dropdown-option": true,
          class: [
            `${i}-dropdown-option-body__suffix`,
            l && `${i}-dropdown-option-body__suffix--has-submenu`
          ]
        }, this.hasSubmenu ? g(kn, null, {
          default: () => g(pm, null)
        }) : null)
      ]), this.hasSubmenu ? g(nd, null, {
        default: () => [
          g(rd, null, {
            default: () => g("div", {
              class: `${i}-dropdown-offset-container`
            }, g(ld, {
              show: this.mergedShowSubmenu,
              placement: this.placement,
              to: p && this.popoverBody || void 0,
              teleportDisabled: !p
            }, {
              default: () => g("div", {
                class: `${i}-dropdown-menu-wrapper`
              }, n ? g(Ln, {
                onBeforeEnter: this.handleSubmenuBeforeEnter,
                onAfterEnter: this.handleSubmenuAfterEnter,
                name: "fade-in-scale-up-transition",
                appear: true
              }, {
                default: () => f
              }) : f)
            }))
          })
        ]
      }) : null);
      return u ? u({
        node: v,
        option: r
      }) : v;
    }
  }), QI = pe({
    name: "NDropdownGroup",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      tmNode: {
        type: Object,
        required: true
      },
      parentKey: {
        type: [
          String,
          Number
        ],
        default: null
      }
    },
    render() {
      const { tmNode: e, parentKey: t, clsPrefix: n } = this, { children: r } = e;
      return g(wt, null, g(qI, {
        clsPrefix: n,
        tmNode: e,
        key: e.key
      }), r == null ? void 0 : r.map((o) => {
        const { rawNode: i } = o;
        return i.show === false ? null : g2(i) ? g(p2, {
          clsPrefix: n,
          key: o.key
        }) : o.isGroup ? (lo("dropdown", "`group` node is not allowed to be put in `group` node."), null) : g(v2, {
          clsPrefix: n,
          tmNode: o,
          parentKey: t,
          key: o.key
        });
      }));
    }
  }), e6 = pe({
    name: "DropdownRenderOption",
    props: {
      tmNode: {
        type: Object,
        required: true
      }
    },
    render() {
      const { rawNode: { render: e, props: t } } = this.tmNode;
      return g("div", t, [
        e == null ? void 0 : e()
      ]);
    }
  }), b2 = pe({
    name: "DropdownMenu",
    props: {
      scrollable: Boolean,
      showArrow: Boolean,
      arrowStyle: [
        String,
        Object
      ],
      clsPrefix: {
        type: String,
        required: true
      },
      tmNodes: {
        type: Array,
        default: () => []
      },
      parentKey: {
        type: [
          String,
          Number
        ],
        default: null
      }
    },
    setup(e) {
      const { renderIconRef: t, childrenFieldRef: n } = je(yd);
      ft(Em, {
        showIconRef: D(() => {
          const o = t.value;
          return e.tmNodes.some((i) => {
            var a;
            if (i.isGroup) return (a = i.children) === null || a === void 0 ? void 0 : a.some(({ rawNode: s }) => o ? o(s) : s.icon);
            const { rawNode: l } = i;
            return o ? o(l) : l.icon;
          });
        }),
        hasSubmenuRef: D(() => {
          const { value: o } = n;
          return e.tmNodes.some((i) => {
            var a;
            if (i.isGroup) return (a = i.children) === null || a === void 0 ? void 0 : a.some(({ rawNode: s }) => Uh(s, o));
            const { rawNode: l } = i;
            return Uh(l, o);
          });
        })
      });
      const r = L(null);
      return ft(Ys, null), ft(Ks, null), ft(_l, r), {
        bodyRef: r
      };
    },
    render() {
      const { parentKey: e, clsPrefix: t, scrollable: n } = this, r = this.tmNodes.map((o) => {
        const { rawNode: i } = o;
        return i.show === false ? null : ZI(i) ? g(e6, {
          tmNode: o,
          key: o.key
        }) : g2(i) ? g(p2, {
          clsPrefix: t,
          key: o.key
        }) : JI(i) ? g(QI, {
          clsPrefix: t,
          tmNode: o,
          parentKey: e,
          key: o.key
        }) : g(v2, {
          clsPrefix: t,
          tmNode: o,
          parentKey: e,
          key: o.key,
          props: i.props,
          scrollable: n
        });
      });
      return g("div", {
        class: [
          `${t}-dropdown-menu`,
          n && `${t}-dropdown-menu--scrollable`
        ],
        ref: "bodyRef"
      }, n ? g(oC, {
        contentClass: `${t}-dropdown-menu__content`
      }, {
        default: () => r
      }) : r, this.showArrow ? fC({
        clsPrefix: t,
        arrowStyle: this.arrowStyle,
        arrowClass: void 0,
        arrowWrapperClass: void 0,
        arrowWrapperStyle: void 0
      }) : null);
    }
  }), t6 = A("dropdown-menu", `
 transform-origin: var(--v-transform-origin);
 background-color: var(--n-color);
 border-radius: var(--n-border-radius);
 box-shadow: var(--n-box-shadow);
 position: relative;
 transition:
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
`, [
    Oo(),
    A("dropdown-option", `
 position: relative;
 `, [
      W("a", `
 text-decoration: none;
 color: inherit;
 outline: none;
 `, [
        W("&::before", `
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)
      ]),
      A("dropdown-option-body", `
 display: flex;
 cursor: pointer;
 position: relative;
 height: var(--n-option-height);
 line-height: var(--n-option-height);
 font-size: var(--n-font-size);
 color: var(--n-option-text-color);
 transition: color .3s var(--n-bezier);
 `, [
        W("&::before", `
 content: "";
 position: absolute;
 top: 0;
 bottom: 0;
 left: 4px;
 right: 4px;
 transition: background-color .3s var(--n-bezier);
 border-radius: var(--n-border-radius);
 `),
        At("disabled", [
          G("pending", `
 color: var(--n-option-text-color-hover);
 `, [
            V("prefix, suffix", `
 color: var(--n-option-text-color-hover);
 `),
            W("&::before", "background-color: var(--n-option-color-hover);")
          ]),
          G("active", `
 color: var(--n-option-text-color-active);
 `, [
            V("prefix, suffix", `
 color: var(--n-option-text-color-active);
 `),
            W("&::before", "background-color: var(--n-option-color-active);")
          ]),
          G("child-active", `
 color: var(--n-option-text-color-child-active);
 `, [
            V("prefix, suffix", `
 color: var(--n-option-text-color-child-active);
 `)
          ])
        ]),
        G("disabled", `
 cursor: not-allowed;
 opacity: var(--n-option-opacity-disabled);
 `),
        G("group", `
 font-size: calc(var(--n-font-size) - 1px);
 color: var(--n-group-header-text-color);
 `, [
          V("prefix", `
 width: calc(var(--n-option-prefix-width) / 2);
 `, [
            G("show-icon", `
 width: calc(var(--n-option-icon-prefix-width) / 2);
 `)
          ])
        ]),
        V("prefix", `
 width: var(--n-option-prefix-width);
 display: flex;
 justify-content: center;
 align-items: center;
 color: var(--n-prefix-color);
 transition: color .3s var(--n-bezier);
 z-index: 1;
 `, [
          G("show-icon", `
 width: var(--n-option-icon-prefix-width);
 `),
          A("icon", `
 font-size: var(--n-option-icon-size);
 `)
        ]),
        V("label", `
 white-space: nowrap;
 flex: 1;
 z-index: 1;
 `),
        V("suffix", `
 box-sizing: border-box;
 flex-grow: 0;
 flex-shrink: 0;
 display: flex;
 justify-content: flex-end;
 align-items: center;
 min-width: var(--n-option-suffix-width);
 padding: 0 8px;
 transition: color .3s var(--n-bezier);
 color: var(--n-suffix-color);
 z-index: 1;
 `, [
          G("has-submenu", `
 width: var(--n-option-icon-suffix-width);
 `),
          A("icon", `
 font-size: var(--n-option-icon-size);
 `)
        ]),
        A("dropdown-menu", "pointer-events: all;")
      ]),
      A("dropdown-offset-container", `
 pointer-events: none;
 position: absolute;
 left: 0;
 right: 0;
 top: -4px;
 bottom: -4px;
 `)
    ]),
    A("dropdown-divider", `
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-divider-color);
 height: 1px;
 margin: 4px 0;
 `),
    A("dropdown-menu-wrapper", `
 transform-origin: var(--v-transform-origin);
 width: fit-content;
 `),
    W(">", [
      A("scrollbar", `
 height: inherit;
 max-height: inherit;
 `)
    ]),
    At("scrollable", `
 padding: var(--n-padding);
 `),
    G("scrollable", [
      V("content", `
 padding: var(--n-padding);
 `)
    ])
  ]), n6 = {
    animated: {
      type: Boolean,
      default: true
    },
    keyboard: {
      type: Boolean,
      default: true
    },
    size: {
      type: String,
      default: "medium"
    },
    inverted: Boolean,
    placement: {
      type: String,
      default: "bottom"
    },
    onSelect: [
      Function,
      Array
    ],
    options: {
      type: Array,
      default: () => []
    },
    menuProps: Function,
    showArrow: Boolean,
    renderLabel: Function,
    renderIcon: Function,
    renderOption: Function,
    nodeProps: Function,
    labelField: {
      type: String,
      default: "label"
    },
    keyField: {
      type: String,
      default: "key"
    },
    childrenField: {
      type: String,
      default: "children"
    },
    value: [
      String,
      Number
    ]
  }, r6 = Object.keys(ga), o6 = Object.assign(Object.assign(Object.assign({}, ga), n6), Fe.props), Tm = pe({
    name: "Dropdown",
    inheritAttrs: false,
    props: o6,
    setup(e) {
      const t = L(false), n = mn($e(e, "show"), t), r = D(() => {
        const { keyField: E, childrenField: M } = e;
        return ca(e.options, {
          getKey(z) {
            return z[E];
          },
          getDisabled(z) {
            return z.disabled === true;
          },
          getIgnored(z) {
            return z.type === "divider" || z.type === "render";
          },
          getChildren(z) {
            return z[M];
          }
        });
      }), o = D(() => r.value.treeNodes), i = L(null), a = L(null), l = L(null), s = D(() => {
        var E, M, z;
        return (z = (M = (E = i.value) !== null && E !== void 0 ? E : a.value) !== null && M !== void 0 ? M : l.value) !== null && z !== void 0 ? z : null;
      }), c = D(() => r.value.getPath(s.value).keyPath), u = D(() => r.value.getPath(e.value).keyPath), d = Ct(() => e.keyboard && n.value);
      DE({
        keydown: {
          ArrowUp: {
            prevent: true,
            handler: S
          },
          ArrowRight: {
            prevent: true,
            handler: x
          },
          ArrowDown: {
            prevent: true,
            handler: _
          },
          ArrowLeft: {
            prevent: true,
            handler: w
          },
          Enter: {
            prevent: true,
            handler: C
          },
          Escape: y
        }
      }, d);
      const { mergedClsPrefixRef: h, inlineThemeDisabled: p } = at(e), f = Fe("Dropdown", "-dropdown", t6, _m, e, h);
      ft(yd, {
        labelFieldRef: $e(e, "labelField"),
        childrenFieldRef: $e(e, "childrenField"),
        renderLabelRef: $e(e, "renderLabel"),
        renderIconRef: $e(e, "renderIcon"),
        hoverKeyRef: i,
        keyboardKeyRef: a,
        lastToggledSubmenuKeyRef: l,
        pendingKeyPathRef: c,
        activeKeyPathRef: u,
        animatedRef: $e(e, "animated"),
        mergedShowRef: n,
        nodePropsRef: $e(e, "nodeProps"),
        renderOptionRef: $e(e, "renderOption"),
        menuPropsRef: $e(e, "menuProps"),
        doSelect: m,
        doUpdateShow: b
      }), lt(n, (E) => {
        !e.animated && !E && v();
      });
      function m(E, M) {
        const { onSelect: z } = e;
        z && Te(z, E, M);
      }
      function b(E) {
        const { "onUpdate:show": M, onUpdateShow: z } = e;
        M && Te(M, E), z && Te(z, E), t.value = E;
      }
      function v() {
        i.value = null, a.value = null, l.value = null;
      }
      function y() {
        b(false);
      }
      function w() {
        R("left");
      }
      function x() {
        R("right");
      }
      function S() {
        R("up");
      }
      function _() {
        R("down");
      }
      function C() {
        const E = k();
        (E == null ? void 0 : E.isLeaf) && n.value && (m(E.key, E.rawNode), b(false));
      }
      function k() {
        var E;
        const { value: M } = r, { value: z } = s;
        return !M || z === null ? null : (E = M.getNode(z)) !== null && E !== void 0 ? E : null;
      }
      function R(E) {
        const { value: M } = s, { value: { getFirstAvailableNode: z } } = r;
        let U = null;
        if (M === null) {
          const ee = z();
          ee !== null && (U = ee.key);
        } else {
          const ee = k();
          if (ee) {
            let ne;
            switch (E) {
              case "down":
                ne = ee.getNext();
                break;
              case "up":
                ne = ee.getPrev();
                break;
              case "right":
                ne = ee.getChild();
                break;
              case "left":
                ne = ee.getParent();
                break;
            }
            ne && (U = ne.key);
          }
        }
        U !== null && (i.value = null, a.value = U);
      }
      const P = D(() => {
        const { size: E, inverted: M } = e, { common: { cubicBezierEaseInOut: z }, self: U } = f.value, { padding: ee, dividerColor: ne, borderRadius: ae, optionOpacityDisabled: ye, [Se("optionIconSuffixWidth", E)]: xe, [Se("optionSuffixWidth", E)]: re, [Se("optionIconPrefixWidth", E)]: Y, [Se("optionPrefixWidth", E)]: H, [Se("fontSize", E)]: oe, [Se("optionHeight", E)]: ce, [Se("optionIconSize", E)]: be } = U, ie = {
          "--n-bezier": z,
          "--n-font-size": oe,
          "--n-padding": ee,
          "--n-border-radius": ae,
          "--n-option-height": ce,
          "--n-option-prefix-width": H,
          "--n-option-icon-prefix-width": Y,
          "--n-option-suffix-width": re,
          "--n-option-icon-suffix-width": xe,
          "--n-option-icon-size": be,
          "--n-divider-color": ne,
          "--n-option-opacity-disabled": ye
        };
        return M ? (ie["--n-color"] = U.colorInverted, ie["--n-option-color-hover"] = U.optionColorHoverInverted, ie["--n-option-color-active"] = U.optionColorActiveInverted, ie["--n-option-text-color"] = U.optionTextColorInverted, ie["--n-option-text-color-hover"] = U.optionTextColorHoverInverted, ie["--n-option-text-color-active"] = U.optionTextColorActiveInverted, ie["--n-option-text-color-child-active"] = U.optionTextColorChildActiveInverted, ie["--n-prefix-color"] = U.prefixColorInverted, ie["--n-suffix-color"] = U.suffixColorInverted, ie["--n-group-header-text-color"] = U.groupHeaderTextColorInverted) : (ie["--n-color"] = U.color, ie["--n-option-color-hover"] = U.optionColorHover, ie["--n-option-color-active"] = U.optionColorActive, ie["--n-option-text-color"] = U.optionTextColor, ie["--n-option-text-color-hover"] = U.optionTextColorHover, ie["--n-option-text-color-active"] = U.optionTextColorActive, ie["--n-option-text-color-child-active"] = U.optionTextColorChildActive, ie["--n-prefix-color"] = U.prefixColor, ie["--n-suffix-color"] = U.suffixColor, ie["--n-group-header-text-color"] = U.groupHeaderTextColor), ie;
      }), B = p ? xt("dropdown", D(() => `${e.size[0]}${e.inverted ? "i" : ""}`), P, e) : void 0;
      return {
        mergedClsPrefix: h,
        mergedTheme: f,
        tmNodes: o,
        mergedShow: n,
        handleAfterLeave: () => {
          e.animated && v();
        },
        doUpdateShow: b,
        cssVars: p ? void 0 : P,
        themeClass: B == null ? void 0 : B.themeClass,
        onRender: B == null ? void 0 : B.onRender
      };
    },
    render() {
      const e = (r, o, i, a, l) => {
        var s;
        const { mergedClsPrefix: c, menuProps: u } = this;
        (s = this.onRender) === null || s === void 0 || s.call(this);
        const d = (u == null ? void 0 : u(void 0, this.tmNodes.map((p) => p.rawNode))) || {}, h = {
          ref: Sw(o),
          class: [
            r,
            `${c}-dropdown`,
            this.themeClass
          ],
          clsPrefix: c,
          tmNodes: this.tmNodes,
          style: [
            ...i,
            this.cssVars
          ],
          showArrow: this.showArrow,
          arrowStyle: this.arrowStyle,
          scrollable: this.scrollable,
          onMouseenter: a,
          onMouseleave: l
        };
        return g(b2, Mn(this.$attrs, h, d));
      }, { mergedTheme: t } = this, n = {
        show: this.mergedShow,
        theme: t.peers.Popover,
        themeOverrides: t.peerOverrides.Popover,
        internalOnAfterLeave: this.handleAfterLeave,
        internalRenderBody: e,
        onUpdateShow: this.doUpdateShow,
        "onUpdate:show": void 0
      };
      return g(Tl, Object.assign({}, cr(this.$props, r6), n), {
        trigger: () => {
          var r, o;
          return (o = (r = this.$slots).default) === null || o === void 0 ? void 0 : o.call(r);
        }
      });
    }
  }), y2 = "_n_all__", x2 = "_n_none__";
  function i6(e, t, n, r) {
    return e ? (o) => {
      for (const i of e) switch (o) {
        case y2:
          n(true);
          return;
        case x2:
          r(true);
          return;
        default:
          if (typeof i == "object" && i.key === o) {
            i.onSelect(t.value);
            return;
          }
      }
    } : () => {
    };
  }
  function a6(e, t) {
    return e ? e.map((n) => {
      switch (n) {
        case "all":
          return {
            label: t.checkTableAll,
            key: y2
          };
        case "none":
          return {
            label: t.uncheckTableAll,
            key: x2
          };
        default:
          return n;
      }
    }) : [];
  }
  const l6 = pe({
    name: "DataTableSelectionMenu",
    props: {
      clsPrefix: {
        type: String,
        required: true
      }
    },
    setup(e) {
      const { props: t, localeRef: n, checkOptionsRef: r, rawPaginatedDataRef: o, doCheckAll: i, doUncheckAll: a } = je(fo), l = D(() => i6(r.value, o, i, a)), s = D(() => a6(r.value, n.value));
      return () => {
        var c, u, d, h;
        const { clsPrefix: p } = e;
        return g(Tm, {
          theme: (u = (c = t.theme) === null || c === void 0 ? void 0 : c.peers) === null || u === void 0 ? void 0 : u.Dropdown,
          themeOverrides: (h = (d = t.themeOverrides) === null || d === void 0 ? void 0 : d.peers) === null || h === void 0 ? void 0 : h.Dropdown,
          options: s.value,
          onSelect: l.value
        }, {
          default: () => g(Jt, {
            clsPrefix: p,
            class: `${p}-data-table-check-extra`
          }, {
            default: () => g(eC, null)
          })
        });
      };
    }
  });
  function Af(e) {
    return typeof e.title == "function" ? e.title(e) : e.title;
  }
  const s6 = pe({
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      id: {
        type: String,
        required: true
      },
      cols: {
        type: Array,
        required: true
      },
      width: String
    },
    render() {
      const { clsPrefix: e, id: t, cols: n, width: r } = this;
      return g("table", {
        style: {
          tableLayout: "fixed",
          width: r
        },
        class: `${e}-data-table-table`
      }, g("colgroup", null, n.map((o) => g("col", {
        key: o.key,
        style: o.style
      }))), g("thead", {
        "data-n-id": t,
        class: `${e}-data-table-thead`
      }, this.$slots));
    }
  }), w2 = pe({
    name: "DataTableHeader",
    props: {
      discrete: {
        type: Boolean,
        default: true
      }
    },
    setup() {
      const { mergedClsPrefixRef: e, scrollXRef: t, fixedColumnLeftMapRef: n, fixedColumnRightMapRef: r, mergedCurrentPageRef: o, allRowsCheckedRef: i, someRowsCheckedRef: a, rowsRef: l, colsRef: s, mergedThemeRef: c, checkOptionsRef: u, mergedSortStateRef: d, componentId: h, mergedTableLayoutRef: p, headerCheckboxDisabledRef: f, virtualScrollHeaderRef: m, headerHeightRef: b, onUnstableColumnResize: v, doUpdateResizableWidth: y, handleTableHeaderScroll: w, deriveNextSorter: x, doUncheckAll: S, doCheckAll: _ } = je(fo), C = L(), k = L({});
      function R(U) {
        const ee = k.value[U];
        return ee == null ? void 0 : ee.getBoundingClientRect().width;
      }
      function P() {
        i.value ? S() : _();
      }
      function B(U, ee) {
        if (mr(U, "dataTableFilter") || mr(U, "dataTableResizable") || !Rf(ee)) return;
        const ne = d.value.find((ye) => ye.columnKey === ee.key) || null, ae = kI(ee, ne);
        x(ae);
      }
      const E = /* @__PURE__ */ new Map();
      function M(U) {
        E.set(U.key, R(U.key));
      }
      function z(U, ee) {
        const ne = E.get(U.key);
        if (ne === void 0) return;
        const ae = ne + ee, ye = CI(ae, U.minWidth, U.maxWidth);
        v(ae, ye, U, R), y(U, ye);
      }
      return {
        cellElsRef: k,
        componentId: h,
        mergedSortState: d,
        mergedClsPrefix: e,
        scrollX: t,
        fixedColumnLeftMap: n,
        fixedColumnRightMap: r,
        currentPage: o,
        allRowsChecked: i,
        someRowsChecked: a,
        rows: l,
        cols: s,
        mergedTheme: c,
        checkOptions: u,
        mergedTableLayout: p,
        headerCheckboxDisabled: f,
        headerHeight: b,
        virtualScrollHeader: m,
        virtualListRef: C,
        handleCheckboxUpdateChecked: P,
        handleColHeaderClick: B,
        handleTableHeaderScroll: w,
        handleColumnResizeStart: M,
        handleColumnResize: z
      };
    },
    render() {
      const { cellElsRef: e, mergedClsPrefix: t, fixedColumnLeftMap: n, fixedColumnRightMap: r, currentPage: o, allRowsChecked: i, someRowsChecked: a, rows: l, cols: s, mergedTheme: c, checkOptions: u, componentId: d, discrete: h, mergedTableLayout: p, headerCheckboxDisabled: f, mergedSortState: m, virtualScrollHeader: b, handleColHeaderClick: v, handleCheckboxUpdateChecked: y, handleColumnResizeStart: w, handleColumnResize: x } = this, S = (R, P, B) => R.map(({ column: E, colIndex: M, colSpan: z, rowSpan: U, isLast: ee }) => {
        var ne, ae;
        const ye = Jr(E), { ellipsis: xe } = E, re = () => E.type === "selection" ? E.multiple !== false ? g(wt, null, g(Zs, {
          key: o,
          privateInsideTable: true,
          checked: i,
          indeterminate: a,
          disabled: f,
          onUpdateChecked: y
        }), u ? g(l6, {
          clsPrefix: t
        }) : null) : null : g(wt, null, g("div", {
          class: `${t}-data-table-th__title-wrapper`
        }, g("div", {
          class: `${t}-data-table-th__title`
        }, xe === true || xe && !xe.tooltip ? g("div", {
          class: `${t}-data-table-th__ellipsis`
        }, Af(E)) : xe && typeof xe == "object" ? g(ec, Object.assign({}, xe, {
          theme: c.peers.Ellipsis,
          themeOverrides: c.peerOverrides.Ellipsis
        }), {
          default: () => Af(E)
        }) : Af(E)), Rf(E) ? g(VI, {
          column: E
        }) : null), Lb(E) ? g(jI, {
          column: E,
          options: E.filterOptions
        }) : null, o2(E) ? g(WI, {
          onResizeStart: () => {
            w(E);
          },
          onResize: (ce) => {
            x(E, ce);
          }
        }) : null), Y = ye in n, H = ye in r, oe = P && !E.fixed ? "div" : "th";
        return g(oe, {
          ref: (ce) => e[ye] = ce,
          key: ye,
          style: [
            P && !E.fixed ? {
              position: "absolute",
              left: tn(P(M)),
              top: 0,
              bottom: 0
            } : {
              left: tn((ne = n[ye]) === null || ne === void 0 ? void 0 : ne.start),
              right: tn((ae = r[ye]) === null || ae === void 0 ? void 0 : ae.start)
            },
            {
              width: tn(E.width),
              textAlign: E.titleAlign || E.align,
              height: B
            }
          ],
          colspan: z,
          rowspan: U,
          "data-col-key": ye,
          class: [
            `${t}-data-table-th`,
            (Y || H) && `${t}-data-table-th--fixed-${Y ? "left" : "right"}`,
            {
              [`${t}-data-table-th--sorting`]: i2(E, m),
              [`${t}-data-table-th--filterable`]: Lb(E),
              [`${t}-data-table-th--sortable`]: Rf(E),
              [`${t}-data-table-th--selection`]: E.type === "selection",
              [`${t}-data-table-th--last`]: ee
            },
            E.className
          ],
          onClick: E.type !== "selection" && E.type !== "expand" && !("children" in E) ? (ce) => {
            v(ce, E);
          } : void 0
        }, re());
      });
      if (b) {
        const { headerHeight: R } = this;
        let P = 0, B = 0;
        return s.forEach((E) => {
          E.column.fixed === "left" ? P++ : E.column.fixed === "right" && B++;
        }), g(tm, {
          ref: "virtualListRef",
          class: `${t}-data-table-base-table-header`,
          style: {
            height: tn(R)
          },
          onScroll: this.handleTableHeaderScroll,
          columns: s,
          itemSize: R,
          showScrollbar: false,
          items: [
            {}
          ],
          itemResizable: false,
          visibleItemsTag: s6,
          visibleItemsProps: {
            clsPrefix: t,
            id: d,
            cols: s,
            width: Ft(this.scrollX)
          },
          renderItemWithCols: ({ startColIndex: E, endColIndex: M, getLeft: z }) => {
            const U = s.map((ne, ae) => ({
              column: ne.column,
              isLast: ae === s.length - 1,
              colIndex: ne.index,
              colSpan: 1,
              rowSpan: 1
            })).filter(({ column: ne }, ae) => !!(E <= ae && ae <= M || ne.fixed)), ee = S(U, z, tn(R));
            return ee.splice(P, 0, g("th", {
              colspan: s.length - P - B,
              style: {
                pointerEvents: "none",
                visibility: "hidden",
                height: 0
              }
            })), g("tr", {
              style: {
                position: "relative"
              }
            }, ee);
          }
        }, {
          default: ({ renderedItemWithCols: E }) => E
        });
      }
      const _ = g("thead", {
        class: `${t}-data-table-thead`,
        "data-n-id": d
      }, l.map((R) => g("tr", {
        class: `${t}-data-table-tr`
      }, S(R, null, void 0))));
      if (!h) return _;
      const { handleTableHeaderScroll: C, scrollX: k } = this;
      return g("div", {
        class: `${t}-data-table-base-table-header`,
        onScroll: C
      }, g("table", {
        class: `${t}-data-table-table`,
        style: {
          minWidth: Ft(k),
          tableLayout: p
        }
      }, g("colgroup", null, s.map((R) => g("col", {
        key: R.key,
        style: R.style
      }))), _));
    }
  });
  function c6(e, t) {
    const n = [];
    function r(o, i) {
      o.forEach((a) => {
        a.children && t.has(a.key) ? (n.push({
          tmNode: a,
          striped: false,
          key: a.key,
          index: i
        }), r(a.children, i)) : n.push({
          key: a.key,
          tmNode: a,
          striped: false,
          index: i
        });
      });
    }
    return e.forEach((o) => {
      n.push(o);
      const { children: i } = o.tmNode;
      i && t.has(o.key) && r(i, o.index);
    }), n;
  }
  const u6 = pe({
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      id: {
        type: String,
        required: true
      },
      cols: {
        type: Array,
        required: true
      },
      onMouseenter: Function,
      onMouseleave: Function
    },
    render() {
      const { clsPrefix: e, id: t, cols: n, onMouseenter: r, onMouseleave: o } = this;
      return g("table", {
        style: {
          tableLayout: "fixed"
        },
        class: `${e}-data-table-table`,
        onMouseenter: r,
        onMouseleave: o
      }, g("colgroup", null, n.map((i) => g("col", {
        key: i.key,
        style: i.style
      }))), g("tbody", {
        "data-n-id": t,
        class: `${e}-data-table-tbody`
      }, this.$slots));
    }
  }), d6 = pe({
    name: "DataTableBody",
    props: {
      onResize: Function,
      showHeader: Boolean,
      flexHeight: Boolean,
      bodyStyle: Object
    },
    setup(e) {
      const { slots: t, bodyWidthRef: n, mergedExpandedRowKeysRef: r, mergedClsPrefixRef: o, mergedThemeRef: i, scrollXRef: a, colsRef: l, paginatedDataRef: s, rawPaginatedDataRef: c, fixedColumnLeftMapRef: u, fixedColumnRightMapRef: d, mergedCurrentPageRef: h, rowClassNameRef: p, leftActiveFixedColKeyRef: f, leftActiveFixedChildrenColKeysRef: m, rightActiveFixedColKeyRef: b, rightActiveFixedChildrenColKeysRef: v, renderExpandRef: y, hoverKeyRef: w, summaryRef: x, mergedSortStateRef: S, virtualScrollRef: _, virtualScrollXRef: C, heightForRowRef: k, minRowHeightRef: R, componentId: P, mergedTableLayoutRef: B, childTriggerColIndexRef: E, indentRef: M, rowPropsRef: z, maxHeightRef: U, stripedRef: ee, loadingRef: ne, onLoadRef: ae, loadingKeySetRef: ye, expandableRef: xe, stickyExpandedRowsRef: re, renderExpandIconRef: Y, summaryPlacementRef: H, treeMateRef: oe, scrollbarPropsRef: ce, setHeaderScrollLeft: be, doUpdateExpandedRowKeys: ie, handleTableBodyScroll: fe, doCheck: F, doUncheck: se, renderCell: ze } = je(fo), q = je(qr), J = L(null), le = L(null), we = L(null), ke = Ct(() => s.value.length === 0), _e = Ct(() => e.showHeader || !ke.value), K = Ct(() => e.showHeader || ke.value);
      let N = "";
      const j = D(() => new Set(r.value));
      function X(We) {
        var Ge;
        return (Ge = oe.value.getNode(We)) === null || Ge === void 0 ? void 0 : Ge.rawNode;
      }
      function ge(We, Ge, Q) {
        const me = X(We.key);
        if (!me) {
          lo("data-table", `fail to get row data with key ${We.key}`);
          return;
        }
        if (Q) {
          const Ee = s.value.findIndex((He) => He.key === N);
          if (Ee !== -1) {
            const He = s.value.findIndex((Qe) => Qe.key === We.key), Ve = Math.min(Ee, He), Ke = Math.max(Ee, He), Xe = [];
            s.value.slice(Ve, Ke + 1).forEach((Qe) => {
              Qe.disabled || Xe.push(Qe.key);
            }), Ge ? F(Xe, false, me) : se(Xe, me), N = We.key;
            return;
          }
        }
        Ge ? F(We.key, false, me) : se(We.key, me), N = We.key;
      }
      function te(We) {
        const Ge = X(We.key);
        if (!Ge) {
          lo("data-table", `fail to get row data with key ${We.key}`);
          return;
        }
        F(We.key, true, Ge);
      }
      function I() {
        if (!_e.value) {
          const { value: Ge } = we;
          return Ge || null;
        }
        if (_.value) return De();
        const { value: We } = J;
        return We ? We.containerRef : null;
      }
      function Z(We, Ge) {
        var Q;
        if (ye.value.has(We)) return;
        const { value: me } = r, Ee = me.indexOf(We), He = Array.from(me);
        ~Ee ? (He.splice(Ee, 1), ie(He)) : Ge && !Ge.isLeaf && !Ge.shallowLoaded ? (ye.value.add(We), (Q = ae.value) === null || Q === void 0 || Q.call(ae, Ge.rawNode).then(() => {
          const { value: Ve } = r, Ke = Array.from(Ve);
          ~Ke.indexOf(We) || Ke.push(We), ie(Ke);
        }).finally(() => {
          ye.value.delete(We);
        })) : (He.push(We), ie(He));
      }
      function Ce() {
        w.value = null;
      }
      function De() {
        const { value: We } = le;
        return (We == null ? void 0 : We.listElRef) || null;
      }
      function qe() {
        const { value: We } = le;
        return (We == null ? void 0 : We.itemsElRef) || null;
      }
      function ut(We) {
        var Ge;
        fe(We), (Ge = J.value) === null || Ge === void 0 || Ge.sync();
      }
      function Ze(We) {
        var Ge;
        const { onResize: Q } = e;
        Q && Q(We), (Ge = J.value) === null || Ge === void 0 || Ge.sync();
      }
      const rt = {
        getScrollContainer: I,
        scrollTo(We, Ge) {
          var Q, me;
          _.value ? (Q = le.value) === null || Q === void 0 || Q.scrollTo(We, Ge) : (me = J.value) === null || me === void 0 || me.scrollTo(We, Ge);
        }
      }, Ne = W([
        ({ props: We }) => {
          const Ge = (me) => me === null ? null : W(`[data-n-id="${We.componentId}"] [data-col-key="${me}"]::after`, {
            boxShadow: "var(--n-box-shadow-after)"
          }), Q = (me) => me === null ? null : W(`[data-n-id="${We.componentId}"] [data-col-key="${me}"]::before`, {
            boxShadow: "var(--n-box-shadow-before)"
          });
          return W([
            Ge(We.leftActiveFixedColKey),
            Q(We.rightActiveFixedColKey),
            We.leftActiveFixedChildrenColKeys.map((me) => Ge(me)),
            We.rightActiveFixedChildrenColKeys.map((me) => Q(me))
          ]);
        }
      ]);
      let bt = false;
      return fn(() => {
        const { value: We } = f, { value: Ge } = m, { value: Q } = b, { value: me } = v;
        if (!bt && We === null && Q === null) return;
        const Ee = {
          leftActiveFixedColKey: We,
          leftActiveFixedChildrenColKeys: Ge,
          rightActiveFixedColKey: Q,
          rightActiveFixedChildrenColKeys: me,
          componentId: P
        };
        Ne.mount({
          id: `n-${P}`,
          force: true,
          props: Ee,
          anchorMetaName: fl,
          parent: q == null ? void 0 : q.styleMountTarget
        }), bt = true;
      }), wl(() => {
        Ne.unmount({
          id: `n-${P}`,
          parent: q == null ? void 0 : q.styleMountTarget
        });
      }), Object.assign({
        bodyWidth: n,
        summaryPlacement: H,
        dataTableSlots: t,
        componentId: P,
        scrollbarInstRef: J,
        virtualListRef: le,
        emptyElRef: we,
        summary: x,
        mergedClsPrefix: o,
        mergedTheme: i,
        scrollX: a,
        cols: l,
        loading: ne,
        bodyShowHeaderOnly: K,
        shouldDisplaySomeTablePart: _e,
        empty: ke,
        paginatedDataAndInfo: D(() => {
          const { value: We } = ee;
          let Ge = false;
          return {
            data: s.value.map(We ? (me, Ee) => (me.isLeaf || (Ge = true), {
              tmNode: me,
              key: me.key,
              striped: Ee % 2 === 1,
              index: Ee
            }) : (me, Ee) => (me.isLeaf || (Ge = true), {
              tmNode: me,
              key: me.key,
              striped: false,
              index: Ee
            })),
            hasChildren: Ge
          };
        }),
        rawPaginatedData: c,
        fixedColumnLeftMap: u,
        fixedColumnRightMap: d,
        currentPage: h,
        rowClassName: p,
        renderExpand: y,
        mergedExpandedRowKeySet: j,
        hoverKey: w,
        mergedSortState: S,
        virtualScroll: _,
        virtualScrollX: C,
        heightForRow: k,
        minRowHeight: R,
        mergedTableLayout: B,
        childTriggerColIndex: E,
        indent: M,
        rowProps: z,
        maxHeight: U,
        loadingKeySet: ye,
        expandable: xe,
        stickyExpandedRows: re,
        renderExpandIcon: Y,
        scrollbarProps: ce,
        setHeaderScrollLeft: be,
        handleVirtualListScroll: ut,
        handleVirtualListResize: Ze,
        handleMouseleaveTable: Ce,
        virtualListContainer: De,
        virtualListContent: qe,
        handleTableBodyScroll: fe,
        handleCheckboxUpdateChecked: ge,
        handleRadioUpdateChecked: te,
        handleUpdateExpanded: Z,
        renderCell: ze
      }, rt);
    },
    render() {
      const { mergedTheme: e, scrollX: t, mergedClsPrefix: n, virtualScroll: r, maxHeight: o, mergedTableLayout: i, flexHeight: a, loadingKeySet: l, onResize: s, setHeaderScrollLeft: c } = this, u = t !== void 0 || o !== void 0 || a, d = !u && i === "auto", h = t !== void 0 || d, p = {
        minWidth: Ft(t) || "100%"
      };
      t && (p.width = "100%");
      const f = g(Bo, Object.assign({}, this.scrollbarProps, {
        ref: "scrollbarInstRef",
        scrollable: u || d,
        class: `${n}-data-table-base-table-body`,
        style: this.empty ? void 0 : this.bodyStyle,
        theme: e.peers.Scrollbar,
        themeOverrides: e.peerOverrides.Scrollbar,
        contentStyle: p,
        container: r ? this.virtualListContainer : void 0,
        content: r ? this.virtualListContent : void 0,
        horizontalRailStyle: {
          zIndex: 3
        },
        verticalRailStyle: {
          zIndex: 3
        },
        xScrollable: h,
        onScroll: r ? void 0 : this.handleTableBodyScroll,
        internalOnUpdateScrollLeft: c,
        onResize: s
      }), {
        default: () => {
          const m = {}, b = {}, { cols: v, paginatedDataAndInfo: y, mergedTheme: w, fixedColumnLeftMap: x, fixedColumnRightMap: S, currentPage: _, rowClassName: C, mergedSortState: k, mergedExpandedRowKeySet: R, stickyExpandedRows: P, componentId: B, childTriggerColIndex: E, expandable: M, rowProps: z, handleMouseleaveTable: U, renderExpand: ee, summary: ne, handleCheckboxUpdateChecked: ae, handleRadioUpdateChecked: ye, handleUpdateExpanded: xe, heightForRow: re, minRowHeight: Y, virtualScrollX: H } = this, { length: oe } = v;
          let ce;
          const { data: be, hasChildren: ie } = y, fe = ie ? c6(be, R) : be;
          if (ne) {
            const N = ne(this.rawPaginatedData);
            if (Array.isArray(N)) {
              const j = N.map((X, ge) => ({
                isSummaryRow: true,
                key: `__n_summary__${ge}`,
                tmNode: {
                  rawNode: X,
                  disabled: true
                },
                index: -1
              }));
              ce = this.summaryPlacement === "top" ? [
                ...j,
                ...fe
              ] : [
                ...fe,
                ...j
              ];
            } else {
              const j = {
                isSummaryRow: true,
                key: "__n_summary__",
                tmNode: {
                  rawNode: N,
                  disabled: true
                },
                index: -1
              };
              ce = this.summaryPlacement === "top" ? [
                j,
                ...fe
              ] : [
                ...fe,
                j
              ];
            }
          } else ce = fe;
          const F = ie ? {
            width: tn(this.indent)
          } : void 0, se = [];
          ce.forEach((N) => {
            ee && R.has(N.key) && (!M || M(N.tmNode.rawNode)) ? se.push(N, {
              isExpandedRow: true,
              key: `${N.key}-expand`,
              tmNode: N.tmNode,
              index: N.index
            }) : se.push(N);
          });
          const { length: ze } = se, q = {};
          be.forEach(({ tmNode: N }, j) => {
            q[j] = N.key;
          });
          const J = P ? this.bodyWidth : null, le = J === null ? void 0 : `${J}px`, we = this.virtualScrollX ? "div" : "td";
          let ke = 0, _e = 0;
          H && v.forEach((N) => {
            N.column.fixed === "left" ? ke++ : N.column.fixed === "right" && _e++;
          });
          const K = ({ rowInfo: N, displayedRowIndex: j, isVirtual: X, isVirtualX: ge, startColIndex: te, endColIndex: I, getLeft: Z }) => {
            const { index: Ce } = N;
            if ("isExpandedRow" in N) {
              const { tmNode: { key: He, rawNode: Ve } } = N;
              return g("tr", {
                class: `${n}-data-table-tr ${n}-data-table-tr--expanded`,
                key: `${He}__expand`
              }, g("td", {
                class: [
                  `${n}-data-table-td`,
                  `${n}-data-table-td--last-col`,
                  j + 1 === ze && `${n}-data-table-td--last-row`
                ],
                colspan: oe
              }, P ? g("div", {
                class: `${n}-data-table-expand`,
                style: {
                  width: le
                }
              }, ee(Ve, Ce)) : ee(Ve, Ce)));
            }
            const De = "isSummaryRow" in N, qe = !De && N.striped, { tmNode: ut, key: Ze } = N, { rawNode: rt } = ut, Ne = R.has(Ze), bt = z ? z(rt, Ce) : void 0, We = typeof C == "string" ? C : _I(rt, Ce, C), Ge = ge ? v.filter((He, Ve) => !!(te <= Ve && Ve <= I || He.column.fixed)) : v, Q = ge ? tn((re == null ? void 0 : re(rt, Ce)) || Y) : void 0, me = Ge.map((He) => {
              var Ve, Ke, Xe, Qe, _t;
              const Mt = He.index;
              if (j in m) {
                const zt = m[j], an = zt.indexOf(Mt);
                if (~an) return zt.splice(an, 1), null;
              }
              const { column: ct } = He, on = Jr(He), { rowSpan: Dn, colSpan: Sn } = ct, _n = De ? ((Ve = N.tmNode.rawNode[on]) === null || Ve === void 0 ? void 0 : Ve.colSpan) || 1 : Sn ? Sn(rt, Ce) : 1, $n = De ? ((Ke = N.tmNode.rawNode[on]) === null || Ke === void 0 ? void 0 : Ke.rowSpan) || 1 : Dn ? Dn(rt, Ce) : 1, Hn = Mt + _n === oe, qn = j + $n === ze, he = $n > 1;
              if (he && (b[j] = {
                [Mt]: []
              }), _n > 1 || he) for (let zt = j; zt < j + $n; ++zt) {
                he && b[j][Mt].push(q[zt]);
                for (let an = Mt; an < Mt + _n; ++an) zt === j && an === Mt || (zt in m ? m[zt].push(an) : m[zt] = [
                  an
                ]);
              }
              const Pe = he ? this.hoverKey : null, { cellProps: ot } = ct, St = ot == null ? void 0 : ot(rt, Ce), It = {
                "--indent-offset": ""
              }, Et = ct.fixed ? "td" : we;
              return g(Et, Object.assign({}, St, {
                key: on,
                style: [
                  {
                    textAlign: ct.align || void 0,
                    width: tn(ct.width)
                  },
                  ge && {
                    height: Q
                  },
                  ge && !ct.fixed ? {
                    position: "absolute",
                    left: tn(Z(Mt)),
                    top: 0,
                    bottom: 0
                  } : {
                    left: tn((Xe = x[on]) === null || Xe === void 0 ? void 0 : Xe.start),
                    right: tn((Qe = S[on]) === null || Qe === void 0 ? void 0 : Qe.start)
                  },
                  It,
                  (St == null ? void 0 : St.style) || ""
                ],
                colspan: _n,
                rowspan: X ? void 0 : $n,
                "data-col-key": on,
                class: [
                  `${n}-data-table-td`,
                  ct.className,
                  St == null ? void 0 : St.class,
                  De && `${n}-data-table-td--summary`,
                  Pe !== null && b[j][Mt].includes(Pe) && `${n}-data-table-td--hover`,
                  i2(ct, k) && `${n}-data-table-td--sorting`,
                  ct.fixed && `${n}-data-table-td--fixed-${ct.fixed}`,
                  ct.align && `${n}-data-table-td--${ct.align}-align`,
                  ct.type === "selection" && `${n}-data-table-td--selection`,
                  ct.type === "expand" && `${n}-data-table-td--expand`,
                  Hn && `${n}-data-table-td--last-col`,
                  qn && `${n}-data-table-td--last-row`
                ]
              }), ie && Mt === E ? [
                Yp(It["--indent-offset"] = De ? 0 : N.tmNode.level, g("div", {
                  class: `${n}-data-table-indent`,
                  style: F
                })),
                De || N.tmNode.isLeaf ? g("div", {
                  class: `${n}-data-table-expand-placeholder`
                }) : g(Nb, {
                  class: `${n}-data-table-expand-trigger`,
                  clsPrefix: n,
                  expanded: Ne,
                  rowData: rt,
                  renderExpandIcon: this.renderExpandIcon,
                  loading: l.has(N.key),
                  onClick: () => {
                    xe(Ze, N.tmNode);
                  }
                })
              ] : null, ct.type === "selection" ? De ? null : ct.multiple === false ? g(II, {
                key: _,
                rowKey: Ze,
                disabled: N.tmNode.disabled,
                onUpdateChecked: () => {
                  ye(N.tmNode);
                }
              }) : g(EI, {
                key: _,
                rowKey: Ze,
                disabled: N.tmNode.disabled,
                onUpdateChecked: (zt, an) => {
                  ae(N.tmNode, zt, an.shiftKey);
                }
              }) : ct.type === "expand" ? De ? null : !ct.expandable || !((_t = ct.expandable) === null || _t === void 0) && _t.call(ct, rt) ? g(Nb, {
                clsPrefix: n,
                rowData: rt,
                expanded: Ne,
                renderExpandIcon: this.renderExpandIcon,
                onClick: () => {
                  xe(Ze, null);
                }
              }) : null : g(LI, {
                clsPrefix: n,
                index: Ce,
                row: rt,
                column: ct,
                isSummary: De,
                mergedTheme: w,
                renderCell: this.renderCell
              }));
            });
            return ge && ke && _e && me.splice(ke, 0, g("td", {
              colspan: v.length - ke - _e,
              style: {
                pointerEvents: "none",
                visibility: "hidden",
                height: 0
              }
            })), g("tr", Object.assign({}, bt, {
              onMouseenter: (He) => {
                var Ve;
                this.hoverKey = Ze, (Ve = bt == null ? void 0 : bt.onMouseenter) === null || Ve === void 0 || Ve.call(bt, He);
              },
              key: Ze,
              class: [
                `${n}-data-table-tr`,
                De && `${n}-data-table-tr--summary`,
                qe && `${n}-data-table-tr--striped`,
                Ne && `${n}-data-table-tr--expanded`,
                We,
                bt == null ? void 0 : bt.class
              ],
              style: [
                bt == null ? void 0 : bt.style,
                ge && {
                  height: Q
                }
              ]
            }), me);
          };
          return r ? g(tm, {
            ref: "virtualListRef",
            items: se,
            itemSize: this.minRowHeight,
            visibleItemsTag: u6,
            visibleItemsProps: {
              clsPrefix: n,
              id: B,
              cols: v,
              onMouseleave: U
            },
            showScrollbar: false,
            onResize: this.handleVirtualListResize,
            onScroll: this.handleVirtualListScroll,
            itemsStyle: p,
            itemResizable: !H,
            columns: v,
            renderItemWithCols: H ? ({ itemIndex: N, item: j, startColIndex: X, endColIndex: ge, getLeft: te }) => K({
              displayedRowIndex: N,
              isVirtual: true,
              isVirtualX: true,
              rowInfo: j,
              startColIndex: X,
              endColIndex: ge,
              getLeft: te
            }) : void 0
          }, {
            default: ({ item: N, index: j, renderedItemWithCols: X }) => X || K({
              rowInfo: N,
              displayedRowIndex: j,
              isVirtual: true,
              isVirtualX: false,
              startColIndex: 0,
              endColIndex: 0,
              getLeft(ge) {
                return 0;
              }
            })
          }) : g("table", {
            class: `${n}-data-table-table`,
            onMouseleave: U,
            style: {
              tableLayout: this.mergedTableLayout
            }
          }, g("colgroup", null, v.map((N) => g("col", {
            key: N.key,
            style: N.style
          }))), this.showHeader ? g(w2, {
            discrete: false
          }) : null, this.empty ? null : g("tbody", {
            "data-n-id": B,
            class: `${n}-data-table-tbody`
          }, se.map((N, j) => K({
            rowInfo: N,
            displayedRowIndex: j,
            isVirtual: false,
            isVirtualX: false,
            startColIndex: -1,
            endColIndex: -1,
            getLeft(X) {
              return -1;
            }
          }))));
        }
      });
      if (this.empty) {
        const m = () => g("div", {
          class: [
            `${n}-data-table-empty`,
            this.loading && `${n}-data-table-empty--hide`
          ],
          style: this.bodyStyle,
          ref: "emptyElRef"
        }, In(this.dataTableSlots.empty, () => [
          g(gm, {
            theme: this.mergedTheme.peers.Empty,
            themeOverrides: this.mergedTheme.peerOverrides.Empty
          })
        ]));
        return this.shouldDisplaySomeTablePart ? g(wt, null, f, m()) : g(Vr, {
          onResize: this.onResize
        }, {
          default: m
        });
      }
      return f;
    }
  }), f6 = pe({
    name: "MainTable",
    setup() {
      const { mergedClsPrefixRef: e, rightFixedColumnsRef: t, leftFixedColumnsRef: n, bodyWidthRef: r, maxHeightRef: o, minHeightRef: i, flexHeightRef: a, virtualScrollHeaderRef: l, syncScrollState: s } = je(fo), c = L(null), u = L(null), d = L(null), h = L(!(n.value.length || t.value.length)), p = D(() => ({
        maxHeight: Ft(o.value),
        minHeight: Ft(i.value)
      }));
      function f(y) {
        r.value = y.contentRect.width, s(), h.value || (h.value = true);
      }
      function m() {
        var y;
        const { value: w } = c;
        return w ? l.value ? ((y = w.virtualListRef) === null || y === void 0 ? void 0 : y.listElRef) || null : w.$el : null;
      }
      function b() {
        const { value: y } = u;
        return y ? y.getScrollContainer() : null;
      }
      const v = {
        getBodyElement: b,
        getHeaderElement: m,
        scrollTo(y, w) {
          var x;
          (x = u.value) === null || x === void 0 || x.scrollTo(y, w);
        }
      };
      return fn(() => {
        const { value: y } = d;
        if (!y) return;
        const w = `${e.value}-data-table-base-table--transition-disabled`;
        h.value ? setTimeout(() => {
          y.classList.remove(w);
        }, 0) : y.classList.add(w);
      }), Object.assign({
        maxHeight: o,
        mergedClsPrefix: e,
        selfElRef: d,
        headerInstRef: c,
        bodyInstRef: u,
        bodyStyle: p,
        flexHeight: a,
        handleBodyResize: f
      }, v);
    },
    render() {
      const { mergedClsPrefix: e, maxHeight: t, flexHeight: n } = this, r = t === void 0 && !n;
      return g("div", {
        class: `${e}-data-table-base-table`,
        ref: "selfElRef"
      }, r ? null : g(w2, {
        ref: "headerInstRef"
      }), g(d6, {
        ref: "bodyInstRef",
        bodyStyle: this.bodyStyle,
        showHeader: r,
        flexHeight: n,
        onResize: this.handleBodyResize
      }));
    }
  }), jb = p6(), h6 = W([
    A("data-table", `
 width: 100%;
 font-size: var(--n-font-size);
 display: flex;
 flex-direction: column;
 position: relative;
 --n-merged-th-color: var(--n-th-color);
 --n-merged-td-color: var(--n-td-color);
 --n-merged-border-color: var(--n-border-color);
 --n-merged-th-color-hover: var(--n-th-color-hover);
 --n-merged-th-color-sorting: var(--n-th-color-sorting);
 --n-merged-td-color-hover: var(--n-td-color-hover);
 --n-merged-td-color-sorting: var(--n-td-color-sorting);
 --n-merged-td-color-striped: var(--n-td-color-striped);
 `, [
      A("data-table-wrapper", `
 flex-grow: 1;
 display: flex;
 flex-direction: column;
 `),
      G("flex-height", [
        W(">", [
          A("data-table-wrapper", [
            W(">", [
              A("data-table-base-table", `
 display: flex;
 flex-direction: column;
 flex-grow: 1;
 `, [
                W(">", [
                  A("data-table-base-table-body", "flex-basis: 0;", [
                    W("&:last-child", "flex-grow: 1;")
                  ])
                ])
              ])
            ])
          ])
        ])
      ]),
      W(">", [
        A("data-table-loading-wrapper", `
 color: var(--n-loading-color);
 font-size: var(--n-loading-size);
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 transition: color .3s var(--n-bezier);
 display: flex;
 align-items: center;
 justify-content: center;
 `, [
          Oo({
            originalTransform: "translateX(-50%) translateY(-50%)"
          })
        ])
      ]),
      A("data-table-expand-placeholder", `
 margin-right: 8px;
 display: inline-block;
 width: 16px;
 height: 1px;
 `),
      A("data-table-indent", `
 display: inline-block;
 height: 1px;
 `),
      A("data-table-expand-trigger", `
 display: inline-flex;
 margin-right: 8px;
 cursor: pointer;
 font-size: 16px;
 vertical-align: -0.2em;
 position: relative;
 width: 16px;
 height: 16px;
 color: var(--n-td-text-color);
 transition: color .3s var(--n-bezier);
 `, [
        G("expanded", [
          A("icon", "transform: rotate(90deg);", [
            kr({
              originalTransform: "rotate(90deg)"
            })
          ]),
          A("base-icon", "transform: rotate(90deg);", [
            kr({
              originalTransform: "rotate(90deg)"
            })
          ])
        ]),
        A("base-loading", `
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `, [
          kr()
        ]),
        A("icon", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `, [
          kr()
        ]),
        A("base-icon", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `, [
          kr()
        ])
      ]),
      A("data-table-thead", `
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-merged-th-color);
 `),
      A("data-table-tr", `
 position: relative;
 box-sizing: border-box;
 background-clip: padding-box;
 transition: background-color .3s var(--n-bezier);
 `, [
        A("data-table-expand", `
 position: sticky;
 left: 0;
 overflow: hidden;
 margin: calc(var(--n-th-padding) * -1);
 padding: var(--n-th-padding);
 box-sizing: border-box;
 `),
        G("striped", "background-color: var(--n-merged-td-color-striped);", [
          A("data-table-td", "background-color: var(--n-merged-td-color-striped);")
        ]),
        At("summary", [
          W("&:hover", "background-color: var(--n-merged-td-color-hover);", [
            W(">", [
              A("data-table-td", "background-color: var(--n-merged-td-color-hover);")
            ])
          ])
        ])
      ]),
      A("data-table-th", `
 padding: var(--n-th-padding);
 position: relative;
 text-align: start;
 box-sizing: border-box;
 background-color: var(--n-merged-th-color);
 border-color: var(--n-merged-border-color);
 border-bottom: 1px solid var(--n-merged-border-color);
 color: var(--n-th-text-color);
 transition:
 border-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 font-weight: var(--n-th-font-weight);
 `, [
        G("filterable", `
 padding-right: 36px;
 `, [
          G("sortable", `
 padding-right: calc(var(--n-th-padding) + 36px);
 `)
        ]),
        jb,
        G("selection", `
 padding: 0;
 text-align: center;
 line-height: 0;
 z-index: 3;
 `),
        V("title-wrapper", `
 display: flex;
 align-items: center;
 flex-wrap: nowrap;
 max-width: 100%;
 `, [
          V("title", `
 flex: 1;
 min-width: 0;
 `)
        ]),
        V("ellipsis", `
 display: inline-block;
 vertical-align: bottom;
 text-overflow: ellipsis;
 overflow: hidden;
 white-space: nowrap;
 max-width: 100%;
 `),
        G("hover", `
 background-color: var(--n-merged-th-color-hover);
 `),
        G("sorting", `
 background-color: var(--n-merged-th-color-sorting);
 `),
        G("sortable", `
 cursor: pointer;
 `, [
          V("ellipsis", `
 max-width: calc(100% - 18px);
 `),
          W("&:hover", `
 background-color: var(--n-merged-th-color-hover);
 `)
        ]),
        A("data-table-sorter", `
 height: var(--n-sorter-size);
 width: var(--n-sorter-size);
 margin-left: 4px;
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 vertical-align: -0.2em;
 color: var(--n-th-icon-color);
 transition: color .3s var(--n-bezier);
 `, [
          A("base-icon", "transition: transform .3s var(--n-bezier)"),
          G("desc", [
            A("base-icon", `
 transform: rotate(0deg);
 `)
          ]),
          G("asc", [
            A("base-icon", `
 transform: rotate(-180deg);
 `)
          ]),
          G("asc, desc", `
 color: var(--n-th-icon-color-active);
 `)
        ]),
        A("data-table-resize-button", `
 width: var(--n-resizable-container-size);
 position: absolute;
 top: 0;
 right: calc(var(--n-resizable-container-size) / 2);
 bottom: 0;
 cursor: col-resize;
 user-select: none;
 `, [
          W("&::after", `
 width: var(--n-resizable-size);
 height: 50%;
 position: absolute;
 top: 50%;
 left: calc(var(--n-resizable-container-size) / 2);
 bottom: 0;
 background-color: var(--n-merged-border-color);
 transform: translateY(-50%);
 transition: background-color .3s var(--n-bezier);
 z-index: 1;
 content: '';
 `),
          G("active", [
            W("&::after", ` 
 background-color: var(--n-th-icon-color-active);
 `)
          ]),
          W("&:hover::after", `
 background-color: var(--n-th-icon-color-active);
 `)
        ]),
        A("data-table-filter", `
 position: absolute;
 z-index: auto;
 right: 0;
 width: 36px;
 top: 0;
 bottom: 0;
 cursor: pointer;
 display: flex;
 justify-content: center;
 align-items: center;
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 font-size: var(--n-filter-size);
 color: var(--n-th-icon-color);
 `, [
          W("&:hover", `
 background-color: var(--n-th-button-color-hover);
 `),
          G("show", `
 background-color: var(--n-th-button-color-hover);
 `),
          G("active", `
 background-color: var(--n-th-button-color-hover);
 color: var(--n-th-icon-color-active);
 `)
        ])
      ]),
      A("data-table-td", `
 padding: var(--n-td-padding);
 text-align: start;
 box-sizing: border-box;
 border: none;
 background-color: var(--n-merged-td-color);
 color: var(--n-td-text-color);
 border-bottom: 1px solid var(--n-merged-border-color);
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `, [
        G("expand", [
          A("data-table-expand-trigger", `
 margin-right: 0;
 `)
        ]),
        G("last-row", `
 border-bottom: 0 solid var(--n-merged-border-color);
 `, [
          W("&::after", `
 bottom: 0 !important;
 `),
          W("&::before", `
 bottom: 0 !important;
 `)
        ]),
        G("summary", `
 background-color: var(--n-merged-th-color);
 `),
        G("hover", `
 background-color: var(--n-merged-td-color-hover);
 `),
        G("sorting", `
 background-color: var(--n-merged-td-color-sorting);
 `),
        V("ellipsis", `
 display: inline-block;
 text-overflow: ellipsis;
 overflow: hidden;
 white-space: nowrap;
 max-width: 100%;
 vertical-align: bottom;
 max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
 `),
        G("selection, expand", `
 text-align: center;
 padding: 0;
 line-height: 0;
 `),
        jb
      ]),
      A("data-table-empty", `
 box-sizing: border-box;
 padding: var(--n-empty-padding);
 flex-grow: 1;
 flex-shrink: 0;
 opacity: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: opacity .3s var(--n-bezier);
 `, [
        G("hide", `
 opacity: 0;
 `)
      ]),
      V("pagination", `
 margin: var(--n-pagination-margin);
 display: flex;
 justify-content: flex-end;
 `),
      A("data-table-wrapper", `
 position: relative;
 opacity: 1;
 transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
 border-top-left-radius: var(--n-border-radius);
 border-top-right-radius: var(--n-border-radius);
 line-height: var(--n-line-height);
 `),
      G("loading", [
        A("data-table-wrapper", `
 opacity: var(--n-opacity-loading);
 pointer-events: none;
 `)
      ]),
      G("single-column", [
        A("data-table-td", `
 border-bottom: 0 solid var(--n-merged-border-color);
 `, [
          W("&::after, &::before", `
 bottom: 0 !important;
 `)
        ])
      ]),
      At("single-line", [
        A("data-table-th", `
 border-right: 1px solid var(--n-merged-border-color);
 `, [
          G("last", `
 border-right: 0 solid var(--n-merged-border-color);
 `)
        ]),
        A("data-table-td", `
 border-right: 1px solid var(--n-merged-border-color);
 `, [
          G("last-col", `
 border-right: 0 solid var(--n-merged-border-color);
 `)
        ])
      ]),
      G("bordered", [
        A("data-table-wrapper", `
 border: 1px solid var(--n-merged-border-color);
 border-bottom-left-radius: var(--n-border-radius);
 border-bottom-right-radius: var(--n-border-radius);
 overflow: hidden;
 `)
      ]),
      A("data-table-base-table", [
        G("transition-disabled", [
          A("data-table-th", [
            W("&::after, &::before", "transition: none;")
          ]),
          A("data-table-td", [
            W("&::after, &::before", "transition: none;")
          ])
        ])
      ]),
      G("bottom-bordered", [
        A("data-table-td", [
          G("last-row", `
 border-bottom: 1px solid var(--n-merged-border-color);
 `)
        ])
      ]),
      A("data-table-table", `
 font-variant-numeric: tabular-nums;
 width: 100%;
 word-break: break-word;
 transition: background-color .3s var(--n-bezier);
 border-collapse: separate;
 border-spacing: 0;
 background-color: var(--n-merged-td-color);
 `),
      A("data-table-base-table-header", `
 border-top-left-radius: calc(var(--n-border-radius) - 1px);
 border-top-right-radius: calc(var(--n-border-radius) - 1px);
 z-index: 3;
 overflow: scroll;
 flex-shrink: 0;
 transition: border-color .3s var(--n-bezier);
 scrollbar-width: none;
 `, [
        W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", `
 display: none;
 width: 0;
 height: 0;
 `)
      ]),
      A("data-table-check-extra", `
 transition: color .3s var(--n-bezier);
 color: var(--n-th-icon-color);
 position: absolute;
 font-size: 14px;
 right: -4px;
 top: 50%;
 transform: translateY(-50%);
 z-index: 1;
 `)
    ]),
    A("data-table-filter-menu", [
      A("scrollbar", `
 max-height: 240px;
 `),
      V("group", `
 display: flex;
 flex-direction: column;
 padding: 12px 12px 0 12px;
 `, [
        A("checkbox", `
 margin-bottom: 12px;
 margin-right: 0;
 `),
        A("radio", `
 margin-bottom: 12px;
 margin-right: 0;
 `)
      ]),
      V("action", `
 padding: var(--n-action-padding);
 display: flex;
 flex-wrap: nowrap;
 justify-content: space-evenly;
 border-top: 1px solid var(--n-action-divider-color);
 `, [
        A("button", [
          W("&:not(:last-child)", `
 margin: var(--n-action-button-margin);
 `),
          W("&:last-child", `
 margin-right: 0;
 `)
        ])
      ]),
      A("divider", `
 margin: 0 !important;
 `)
    ]),
    ya(A("data-table", `
 --n-merged-th-color: var(--n-th-color-modal);
 --n-merged-td-color: var(--n-td-color-modal);
 --n-merged-border-color: var(--n-border-color-modal);
 --n-merged-th-color-hover: var(--n-th-color-hover-modal);
 --n-merged-td-color-hover: var(--n-td-color-hover-modal);
 --n-merged-th-color-sorting: var(--n-th-color-hover-modal);
 --n-merged-td-color-sorting: var(--n-td-color-hover-modal);
 --n-merged-td-color-striped: var(--n-td-color-striped-modal);
 `)),
    Sl(A("data-table", `
 --n-merged-th-color: var(--n-th-color-popover);
 --n-merged-td-color: var(--n-td-color-popover);
 --n-merged-border-color: var(--n-border-color-popover);
 --n-merged-th-color-hover: var(--n-th-color-hover-popover);
 --n-merged-td-color-hover: var(--n-td-color-hover-popover);
 --n-merged-th-color-sorting: var(--n-th-color-hover-popover);
 --n-merged-td-color-sorting: var(--n-td-color-hover-popover);
 --n-merged-td-color-striped: var(--n-td-color-striped-popover);
 `))
  ]);
  function p6() {
    return [
      G("fixed-left", `
 left: 0;
 position: sticky;
 z-index: 2;
 `, [
        W("&::after", `
 pointer-events: none;
 content: "";
 width: 36px;
 display: inline-block;
 position: absolute;
 top: 0;
 bottom: -1px;
 transition: box-shadow .2s var(--n-bezier);
 right: -36px;
 `)
      ]),
      G("fixed-right", `
 right: 0;
 position: sticky;
 z-index: 1;
 `, [
        W("&::before", `
 pointer-events: none;
 content: "";
 width: 36px;
 display: inline-block;
 position: absolute;
 top: 0;
 bottom: -1px;
 transition: box-shadow .2s var(--n-bezier);
 left: -36px;
 `)
      ])
    ];
  }
  function m6(e, t) {
    const { paginatedDataRef: n, treeMateRef: r, selectionColumnRef: o } = t, i = L(e.defaultCheckedRowKeys), a = D(() => {
      var S;
      const { checkedRowKeys: _ } = e, C = _ === void 0 ? i.value : _;
      return ((S = o.value) === null || S === void 0 ? void 0 : S.multiple) === false ? {
        checkedKeys: C.slice(0, 1),
        indeterminateKeys: []
      } : r.value.getCheckedKeys(C, {
        cascade: e.cascade,
        allowNotLoaded: e.allowCheckingNotLoaded
      });
    }), l = D(() => a.value.checkedKeys), s = D(() => a.value.indeterminateKeys), c = D(() => new Set(l.value)), u = D(() => new Set(s.value)), d = D(() => {
      const { value: S } = c;
      return n.value.reduce((_, C) => {
        const { key: k, disabled: R } = C;
        return _ + (!R && S.has(k) ? 1 : 0);
      }, 0);
    }), h = D(() => n.value.filter((S) => S.disabled).length), p = D(() => {
      const { length: S } = n.value, { value: _ } = u;
      return d.value > 0 && d.value < S - h.value || n.value.some((C) => _.has(C.key));
    }), f = D(() => {
      const { length: S } = n.value;
      return d.value !== 0 && d.value === S - h.value;
    }), m = D(() => n.value.length === 0);
    function b(S, _, C) {
      const { "onUpdate:checkedRowKeys": k, onUpdateCheckedRowKeys: R, onCheckedRowKeysChange: P } = e, B = [], { value: { getNode: E } } = r;
      S.forEach((M) => {
        var z;
        const U = (z = E(M)) === null || z === void 0 ? void 0 : z.rawNode;
        B.push(U);
      }), k && Te(k, S, B, {
        row: _,
        action: C
      }), R && Te(R, S, B, {
        row: _,
        action: C
      }), P && Te(P, S, B, {
        row: _,
        action: C
      }), i.value = S;
    }
    function v(S, _ = false, C) {
      if (!e.loading) {
        if (_) {
          b(Array.isArray(S) ? S.slice(0, 1) : [
            S
          ], C, "check");
          return;
        }
        b(r.value.check(S, l.value, {
          cascade: e.cascade,
          allowNotLoaded: e.allowCheckingNotLoaded
        }).checkedKeys, C, "check");
      }
    }
    function y(S, _) {
      e.loading || b(r.value.uncheck(S, l.value, {
        cascade: e.cascade,
        allowNotLoaded: e.allowCheckingNotLoaded
      }).checkedKeys, _, "uncheck");
    }
    function w(S = false) {
      const { value: _ } = o;
      if (!_ || e.loading) return;
      const C = [];
      (S ? r.value.treeNodes : n.value).forEach((k) => {
        k.disabled || C.push(k.key);
      }), b(r.value.check(C, l.value, {
        cascade: true,
        allowNotLoaded: e.allowCheckingNotLoaded
      }).checkedKeys, void 0, "checkAll");
    }
    function x(S = false) {
      const { value: _ } = o;
      if (!_ || e.loading) return;
      const C = [];
      (S ? r.value.treeNodes : n.value).forEach((k) => {
        k.disabled || C.push(k.key);
      }), b(r.value.uncheck(C, l.value, {
        cascade: true,
        allowNotLoaded: e.allowCheckingNotLoaded
      }).checkedKeys, void 0, "uncheckAll");
    }
    return {
      mergedCheckedRowKeySetRef: c,
      mergedCheckedRowKeysRef: l,
      mergedInderminateRowKeySetRef: u,
      someRowsCheckedRef: p,
      allRowsCheckedRef: f,
      headerCheckboxDisabledRef: m,
      doUpdateCheckedRowKeys: b,
      doCheckAll: w,
      doUncheckAll: x,
      doCheck: v,
      doUncheck: y
    };
  }
  function g6(e, t) {
    const n = Ct(() => {
      for (const c of e.columns) if (c.type === "expand") return c.renderExpand;
    }), r = Ct(() => {
      let c;
      for (const u of e.columns) if (u.type === "expand") {
        c = u.expandable;
        break;
      }
      return c;
    }), o = L(e.defaultExpandAll ? (n == null ? void 0 : n.value) ? (() => {
      const c = [];
      return t.value.treeNodes.forEach((u) => {
        var d;
        !((d = r.value) === null || d === void 0) && d.call(r, u.rawNode) && c.push(u.key);
      }), c;
    })() : t.value.getNonLeafKeys() : e.defaultExpandedRowKeys), i = $e(e, "expandedRowKeys"), a = $e(e, "stickyExpandedRows"), l = mn(i, o);
    function s(c) {
      const { onUpdateExpandedRowKeys: u, "onUpdate:expandedRowKeys": d } = e;
      u && Te(u, c), d && Te(d, c), o.value = c;
    }
    return {
      stickyExpandedRowsRef: a,
      mergedExpandedRowKeysRef: l,
      renderExpandRef: n,
      expandableRef: r,
      doUpdateExpandedRowKeys: s
    };
  }
  function v6(e, t) {
    const n = [], r = [], o = [], i = /* @__PURE__ */ new WeakMap();
    let a = -1, l = 0, s = false, c = 0;
    function u(h, p) {
      p > a && (n[p] = [], a = p), h.forEach((f) => {
        if ("children" in f) u(f.children, p + 1);
        else {
          const m = "key" in f ? f.key : void 0;
          r.push({
            key: Jr(f),
            style: SI(f, m !== void 0 ? Ft(t(m)) : void 0),
            column: f,
            index: c++,
            width: f.width === void 0 ? 128 : Number(f.width)
          }), l += 1, s || (s = !!f.ellipsis), o.push(f);
        }
      });
    }
    u(e, 0), c = 0;
    function d(h, p) {
      let f = 0;
      h.forEach((m) => {
        var b;
        if ("children" in m) {
          const v = c, y = {
            column: m,
            colIndex: c,
            colSpan: 0,
            rowSpan: 1,
            isLast: false
          };
          d(m.children, p + 1), m.children.forEach((w) => {
            var x, S;
            y.colSpan += (S = (x = i.get(w)) === null || x === void 0 ? void 0 : x.colSpan) !== null && S !== void 0 ? S : 0;
          }), v + y.colSpan === l && (y.isLast = true), i.set(m, y), n[p].push(y);
        } else {
          if (c < f) {
            c += 1;
            return;
          }
          let v = 1;
          "titleColSpan" in m && (v = (b = m.titleColSpan) !== null && b !== void 0 ? b : 1), v > 1 && (f = c + v);
          const y = c + v === l, w = {
            column: m,
            colSpan: v,
            colIndex: c,
            rowSpan: a - p + 1,
            isLast: y
          };
          i.set(m, w), n[p].push(w), c += 1;
        }
      });
    }
    return d(e, 0), {
      hasEllipsis: s,
      rows: n,
      cols: r,
      dataRelatedCols: o
    };
  }
  function b6(e, t) {
    const n = D(() => v6(e.columns, t));
    return {
      rowsRef: D(() => n.value.rows),
      colsRef: D(() => n.value.cols),
      hasEllipsisRef: D(() => n.value.hasEllipsis),
      dataRelatedColsRef: D(() => n.value.dataRelatedCols)
    };
  }
  function y6() {
    const e = L({});
    function t(o) {
      return e.value[o];
    }
    function n(o, i) {
      o2(o) && "key" in o && (e.value[o.key] = i);
    }
    function r() {
      e.value = {};
    }
    return {
      getResizableWidth: t,
      doUpdateResizableWidth: n,
      clearResizableWidth: r
    };
  }
  function x6(e, { mainTableInstRef: t, mergedCurrentPageRef: n, bodyWidthRef: r }) {
    let o = 0;
    const i = L(), a = L(null), l = L([]), s = L(null), c = L([]), u = D(() => Ft(e.scrollX)), d = D(() => e.columns.filter((R) => R.fixed === "left")), h = D(() => e.columns.filter((R) => R.fixed === "right")), p = D(() => {
      const R = {};
      let P = 0;
      function B(E) {
        E.forEach((M) => {
          const z = {
            start: P,
            end: 0
          };
          R[Jr(M)] = z, "children" in M ? (B(M.children), z.end = P) : (P += Fb(M) || 0, z.end = P);
        });
      }
      return B(d.value), R;
    }), f = D(() => {
      const R = {};
      let P = 0;
      function B(E) {
        for (let M = E.length - 1; M >= 0; --M) {
          const z = E[M], U = {
            start: P,
            end: 0
          };
          R[Jr(z)] = U, "children" in z ? (B(z.children), U.end = P) : (P += Fb(z) || 0, U.end = P);
        }
      }
      return B(h.value), R;
    });
    function m() {
      var R, P;
      const { value: B } = d;
      let E = 0;
      const { value: M } = p;
      let z = null;
      for (let U = 0; U < B.length; ++U) {
        const ee = Jr(B[U]);
        if (o > (((R = M[ee]) === null || R === void 0 ? void 0 : R.start) || 0) - E) z = ee, E = ((P = M[ee]) === null || P === void 0 ? void 0 : P.end) || 0;
        else break;
      }
      a.value = z;
    }
    function b() {
      l.value = [];
      let R = e.columns.find((P) => Jr(P) === a.value);
      for (; R && "children" in R; ) {
        const P = R.children.length;
        if (P === 0) break;
        const B = R.children[P - 1];
        l.value.push(Jr(B)), R = B;
      }
    }
    function v() {
      var R, P;
      const { value: B } = h, E = Number(e.scrollX), { value: M } = r;
      if (M === null) return;
      let z = 0, U = null;
      const { value: ee } = f;
      for (let ne = B.length - 1; ne >= 0; --ne) {
        const ae = Jr(B[ne]);
        if (Math.round(o + (((R = ee[ae]) === null || R === void 0 ? void 0 : R.start) || 0) + M - z) < E) U = ae, z = ((P = ee[ae]) === null || P === void 0 ? void 0 : P.end) || 0;
        else break;
      }
      s.value = U;
    }
    function y() {
      c.value = [];
      let R = e.columns.find((P) => Jr(P) === s.value);
      for (; R && "children" in R && R.children.length; ) {
        const P = R.children[0];
        c.value.push(Jr(P)), R = P;
      }
    }
    function w() {
      const R = t.value ? t.value.getHeaderElement() : null, P = t.value ? t.value.getBodyElement() : null;
      return {
        header: R,
        body: P
      };
    }
    function x() {
      const { body: R } = w();
      R && (R.scrollTop = 0);
    }
    function S() {
      i.value !== "body" ? Es(C) : i.value = void 0;
    }
    function _(R) {
      var P;
      (P = e.onScroll) === null || P === void 0 || P.call(e, R), i.value !== "head" ? Es(C) : i.value = void 0;
    }
    function C() {
      const { header: R, body: P } = w();
      if (!P) return;
      const { value: B } = r;
      if (B !== null) {
        if (e.maxHeight || e.flexHeight) {
          if (!R) return;
          const E = o - R.scrollLeft;
          i.value = E !== 0 ? "head" : "body", i.value === "head" ? (o = R.scrollLeft, P.scrollLeft = o) : (o = P.scrollLeft, R.scrollLeft = o);
        } else o = P.scrollLeft;
        m(), b(), v(), y();
      }
    }
    function k(R) {
      const { header: P } = w();
      P && (P.scrollLeft = R, C());
    }
    return lt(n, () => {
      x();
    }), {
      styleScrollXRef: u,
      fixedColumnLeftMapRef: p,
      fixedColumnRightMapRef: f,
      leftFixedColumnsRef: d,
      rightFixedColumnsRef: h,
      leftActiveFixedColKeyRef: a,
      leftActiveFixedChildrenColKeysRef: l,
      rightActiveFixedColKeyRef: s,
      rightActiveFixedChildrenColKeysRef: c,
      syncScrollState: C,
      handleTableBodyScroll: _,
      handleTableHeaderScroll: S,
      setHeaderScrollLeft: k
    };
  }
  function zc(e) {
    return typeof e == "object" && typeof e.multiple == "number" ? e.multiple : false;
  }
  function w6(e, t) {
    return t && (e === void 0 || e === "default" || typeof e == "object" && e.compare === "default") ? C6(t) : typeof e == "function" ? e : e && typeof e == "object" && e.compare && e.compare !== "default" ? e.compare : false;
  }
  function C6(e) {
    return (t, n) => {
      const r = t[e], o = n[e];
      return r == null ? o == null ? 0 : -1 : o == null ? 1 : typeof r == "number" && typeof o == "number" ? r - o : typeof r == "string" && typeof o == "string" ? r.localeCompare(o) : 0;
    };
  }
  function S6(e, { dataRelatedColsRef: t, filteredDataRef: n }) {
    const r = [];
    t.value.forEach((p) => {
      var f;
      p.sorter !== void 0 && h(r, {
        columnKey: p.key,
        sorter: p.sorter,
        order: (f = p.defaultSortOrder) !== null && f !== void 0 ? f : false
      });
    });
    const o = L(r), i = D(() => {
      const p = t.value.filter((b) => b.type !== "selection" && b.sorter !== void 0 && (b.sortOrder === "ascend" || b.sortOrder === "descend" || b.sortOrder === false)), f = p.filter((b) => b.sortOrder !== false);
      if (f.length) return f.map((b) => ({
        columnKey: b.key,
        order: b.sortOrder,
        sorter: b.sorter
      }));
      if (p.length) return [];
      const { value: m } = o;
      return Array.isArray(m) ? m : m ? [
        m
      ] : [];
    }), a = D(() => {
      const p = i.value.slice().sort((f, m) => {
        const b = zc(f.sorter) || 0;
        return (zc(m.sorter) || 0) - b;
      });
      return p.length ? n.value.slice().sort((m, b) => {
        let v = 0;
        return p.some((y) => {
          const { columnKey: w, sorter: x, order: S } = y, _ = w6(x, w);
          return _ && S && (v = _(m.rawNode, b.rawNode), v !== 0) ? (v = v * wI(S), true) : false;
        }), v;
      }) : n.value;
    });
    function l(p) {
      let f = i.value.slice();
      return p && zc(p.sorter) !== false ? (f = f.filter((m) => zc(m.sorter) !== false), h(f, p), f) : p || null;
    }
    function s(p) {
      const f = l(p);
      c(f);
    }
    function c(p) {
      const { "onUpdate:sorter": f, onUpdateSorter: m, onSorterChange: b } = e;
      f && Te(f, p), m && Te(m, p), b && Te(b, p), o.value = p;
    }
    function u(p, f = "ascend") {
      if (!p) d();
      else {
        const m = t.value.find((v) => v.type !== "selection" && v.type !== "expand" && v.key === p);
        if (!(m == null ? void 0 : m.sorter)) return;
        const b = m.sorter;
        s({
          columnKey: p,
          sorter: b,
          order: f
        });
      }
    }
    function d() {
      c(null);
    }
    function h(p, f) {
      const m = p.findIndex((b) => (f == null ? void 0 : f.columnKey) && b.columnKey === f.columnKey);
      m !== void 0 && m >= 0 ? p[m] = f : p.push(f);
    }
    return {
      clearSorter: d,
      sort: u,
      sortedDataRef: a,
      mergedSortStateRef: i,
      deriveNextSorter: s
    };
  }
  function _6(e, { dataRelatedColsRef: t }) {
    const n = D(() => {
      const re = (Y) => {
        for (let H = 0; H < Y.length; ++H) {
          const oe = Y[H];
          if ("children" in oe) return re(oe.children);
          if (oe.type === "selection") return oe;
        }
        return null;
      };
      return re(e.columns);
    }), r = D(() => {
      const { childrenKey: re } = e;
      return ca(e.data, {
        ignoreEmptyChildren: true,
        getKey: e.rowKey,
        getChildren: (Y) => Y[re],
        getDisabled: (Y) => {
          var H, oe;
          return !!(!((oe = (H = n.value) === null || H === void 0 ? void 0 : H.disabled) === null || oe === void 0) && oe.call(H, Y));
        }
      });
    }), o = Ct(() => {
      const { columns: re } = e, { length: Y } = re;
      let H = null;
      for (let oe = 0; oe < Y; ++oe) {
        const ce = re[oe];
        if (!ce.type && H === null && (H = oe), "tree" in ce && ce.tree) return oe;
      }
      return H || 0;
    }), i = L({}), { pagination: a } = e, l = L(a && a.defaultPage || 1), s = L(KC(a)), c = D(() => {
      const re = t.value.filter((oe) => oe.filterOptionValues !== void 0 || oe.filterOptionValue !== void 0), Y = {};
      return re.forEach((oe) => {
        var ce;
        oe.type === "selection" || oe.type === "expand" || (oe.filterOptionValues === void 0 ? Y[oe.key] = (ce = oe.filterOptionValue) !== null && ce !== void 0 ? ce : null : Y[oe.key] = oe.filterOptionValues);
      }), Object.assign(Mb(i.value), Y);
    }), u = D(() => {
      const re = c.value, { columns: Y } = e;
      function H(be) {
        return (ie, fe) => !!~String(fe[be]).indexOf(String(ie));
      }
      const { value: { treeNodes: oe } } = r, ce = [];
      return Y.forEach((be) => {
        be.type === "selection" || be.type === "expand" || "children" in be || ce.push([
          be.key,
          be
        ]);
      }), oe ? oe.filter((be) => {
        const { rawNode: ie } = be;
        for (const [fe, F] of ce) {
          let se = re[fe];
          if (se == null || (Array.isArray(se) || (se = [
            se
          ]), !se.length)) continue;
          const ze = F.filter === "default" ? H(fe) : F.filter;
          if (F && typeof ze == "function") if (F.filterMode === "and") {
            if (se.some((q) => !ze(q, ie))) return false;
          } else {
            if (se.some((q) => ze(q, ie))) continue;
            return false;
          }
        }
        return true;
      }) : [];
    }), { sortedDataRef: d, deriveNextSorter: h, mergedSortStateRef: p, sort: f, clearSorter: m } = S6(e, {
      dataRelatedColsRef: t,
      filteredDataRef: u
    });
    t.value.forEach((re) => {
      var Y;
      if (re.filter) {
        const H = re.defaultFilterOptionValues;
        re.filterMultiple ? i.value[re.key] = H || [] : H !== void 0 ? i.value[re.key] = H === null ? [] : H : i.value[re.key] = (Y = re.defaultFilterOptionValue) !== null && Y !== void 0 ? Y : null;
      }
    });
    const b = D(() => {
      const { pagination: re } = e;
      if (re !== false) return re.page;
    }), v = D(() => {
      const { pagination: re } = e;
      if (re !== false) return re.pageSize;
    }), y = mn(b, l), w = mn(v, s), x = Ct(() => {
      const re = y.value;
      return e.remote ? re : Math.max(1, Math.min(Math.ceil(u.value.length / w.value), re));
    }), S = D(() => {
      const { pagination: re } = e;
      if (re) {
        const { pageCount: Y } = re;
        if (Y !== void 0) return Y;
      }
    }), _ = D(() => {
      if (e.remote) return r.value.treeNodes;
      if (!e.pagination) return d.value;
      const re = w.value, Y = (x.value - 1) * re;
      return d.value.slice(Y, Y + re);
    }), C = D(() => _.value.map((re) => re.rawNode));
    function k(re) {
      const { pagination: Y } = e;
      if (Y) {
        const { onChange: H, "onUpdate:page": oe, onUpdatePage: ce } = Y;
        H && Te(H, re), ce && Te(ce, re), oe && Te(oe, re), E(re);
      }
    }
    function R(re) {
      const { pagination: Y } = e;
      if (Y) {
        const { onPageSizeChange: H, "onUpdate:pageSize": oe, onUpdatePageSize: ce } = Y;
        H && Te(H, re), ce && Te(ce, re), oe && Te(oe, re), M(re);
      }
    }
    const P = D(() => {
      if (e.remote) {
        const { pagination: re } = e;
        if (re) {
          const { itemCount: Y } = re;
          if (Y !== void 0) return Y;
        }
        return;
      }
      return u.value.length;
    }), B = D(() => Object.assign(Object.assign({}, e.pagination), {
      onChange: void 0,
      onUpdatePage: void 0,
      onUpdatePageSize: void 0,
      onPageSizeChange: void 0,
      "onUpdate:page": k,
      "onUpdate:pageSize": R,
      page: x.value,
      pageSize: w.value,
      pageCount: P.value === void 0 ? S.value : void 0,
      itemCount: P.value
    }));
    function E(re) {
      const { "onUpdate:page": Y, onPageChange: H, onUpdatePage: oe } = e;
      oe && Te(oe, re), Y && Te(Y, re), H && Te(H, re), l.value = re;
    }
    function M(re) {
      const { "onUpdate:pageSize": Y, onPageSizeChange: H, onUpdatePageSize: oe } = e;
      H && Te(H, re), oe && Te(oe, re), Y && Te(Y, re), s.value = re;
    }
    function z(re, Y) {
      const { onUpdateFilters: H, "onUpdate:filters": oe, onFiltersChange: ce } = e;
      H && Te(H, re, Y), oe && Te(oe, re, Y), ce && Te(ce, re, Y), i.value = re;
    }
    function U(re, Y, H, oe) {
      var ce;
      (ce = e.onUnstableColumnResize) === null || ce === void 0 || ce.call(e, re, Y, H, oe);
    }
    function ee(re) {
      E(re);
    }
    function ne() {
      ae();
    }
    function ae() {
      ye({});
    }
    function ye(re) {
      xe(re);
    }
    function xe(re) {
      re ? re && (i.value = Mb(re)) : i.value = {};
    }
    return {
      treeMateRef: r,
      mergedCurrentPageRef: x,
      mergedPaginationRef: B,
      paginatedDataRef: _,
      rawPaginatedDataRef: C,
      mergedFilterStateRef: c,
      mergedSortStateRef: p,
      hoverKeyRef: L(null),
      selectionColumnRef: n,
      childTriggerColIndexRef: o,
      doUpdateFilters: z,
      deriveNextSorter: h,
      doUpdatePageSize: M,
      doUpdatePage: E,
      onUnstableColumnResize: U,
      filter: xe,
      filters: ye,
      clearFilter: ne,
      clearFilters: ae,
      clearSorter: m,
      page: ee,
      sort: f
    };
  }
  let k6;
  tc = pe({
    name: "DataTable",
    alias: [
      "AdvancedTable"
    ],
    props: yI,
    slots: Object,
    setup(e, { slots: t }) {
      const { mergedBorderedRef: n, mergedClsPrefixRef: r, inlineThemeDisabled: o, mergedRtlRef: i } = at(e), a = rn("DataTable", i, r), l = D(() => {
        const { bottomBordered: Q } = e;
        return n.value ? false : Q !== void 0 ? Q : true;
      }), s = Fe("DataTable", "-data-table", h6, vI, e, r), c = L(null), u = L(null), { getResizableWidth: d, clearResizableWidth: h, doUpdateResizableWidth: p } = y6(), { rowsRef: f, colsRef: m, dataRelatedColsRef: b, hasEllipsisRef: v } = b6(e, d), { treeMateRef: y, mergedCurrentPageRef: w, paginatedDataRef: x, rawPaginatedDataRef: S, selectionColumnRef: _, hoverKeyRef: C, mergedPaginationRef: k, mergedFilterStateRef: R, mergedSortStateRef: P, childTriggerColIndexRef: B, doUpdatePage: E, doUpdateFilters: M, onUnstableColumnResize: z, deriveNextSorter: U, filter: ee, filters: ne, clearFilter: ae, clearFilters: ye, clearSorter: xe, page: re, sort: Y } = _6(e, {
        dataRelatedColsRef: b
      }), H = (Q) => {
        const { fileName: me = "data.csv", keepOriginalData: Ee = false } = Q || {}, He = Ee ? e.data : S.value, Ve = AI(e.columns, He, e.getCsvCell, e.getCsvHeader), Ke = new Blob([
          Ve
        ], {
          type: "text/csv;charset=utf-8"
        }), Xe = URL.createObjectURL(Ke);
        ET(Xe, me.endsWith(".csv") ? me : `${me}.csv`), URL.revokeObjectURL(Xe);
      }, { doCheckAll: oe, doUncheckAll: ce, doCheck: be, doUncheck: ie, headerCheckboxDisabledRef: fe, someRowsCheckedRef: F, allRowsCheckedRef: se, mergedCheckedRowKeySetRef: ze, mergedInderminateRowKeySetRef: q } = m6(e, {
        selectionColumnRef: _,
        treeMateRef: y,
        paginatedDataRef: x
      }), { stickyExpandedRowsRef: J, mergedExpandedRowKeysRef: le, renderExpandRef: we, expandableRef: ke, doUpdateExpandedRowKeys: _e } = g6(e, y), { handleTableBodyScroll: K, handleTableHeaderScroll: N, syncScrollState: j, setHeaderScrollLeft: X, leftActiveFixedColKeyRef: ge, leftActiveFixedChildrenColKeysRef: te, rightActiveFixedColKeyRef: I, rightActiveFixedChildrenColKeysRef: Z, leftFixedColumnsRef: Ce, rightFixedColumnsRef: De, fixedColumnLeftMapRef: qe, fixedColumnRightMapRef: ut } = x6(e, {
        bodyWidthRef: c,
        mainTableInstRef: u,
        mergedCurrentPageRef: w
      }), { localeRef: Ze } = ma("DataTable"), rt = D(() => e.virtualScroll || e.flexHeight || e.maxHeight !== void 0 || v.value ? "fixed" : e.tableLayout);
      ft(fo, {
        props: e,
        treeMateRef: y,
        renderExpandIconRef: $e(e, "renderExpandIcon"),
        loadingKeySetRef: L(/* @__PURE__ */ new Set()),
        slots: t,
        indentRef: $e(e, "indent"),
        childTriggerColIndexRef: B,
        bodyWidthRef: c,
        componentId: ai(),
        hoverKeyRef: C,
        mergedClsPrefixRef: r,
        mergedThemeRef: s,
        scrollXRef: D(() => e.scrollX),
        rowsRef: f,
        colsRef: m,
        paginatedDataRef: x,
        leftActiveFixedColKeyRef: ge,
        leftActiveFixedChildrenColKeysRef: te,
        rightActiveFixedColKeyRef: I,
        rightActiveFixedChildrenColKeysRef: Z,
        leftFixedColumnsRef: Ce,
        rightFixedColumnsRef: De,
        fixedColumnLeftMapRef: qe,
        fixedColumnRightMapRef: ut,
        mergedCurrentPageRef: w,
        someRowsCheckedRef: F,
        allRowsCheckedRef: se,
        mergedSortStateRef: P,
        mergedFilterStateRef: R,
        loadingRef: $e(e, "loading"),
        rowClassNameRef: $e(e, "rowClassName"),
        mergedCheckedRowKeySetRef: ze,
        mergedExpandedRowKeysRef: le,
        mergedInderminateRowKeySetRef: q,
        localeRef: Ze,
        expandableRef: ke,
        stickyExpandedRowsRef: J,
        rowKeyRef: $e(e, "rowKey"),
        renderExpandRef: we,
        summaryRef: $e(e, "summary"),
        virtualScrollRef: $e(e, "virtualScroll"),
        virtualScrollXRef: $e(e, "virtualScrollX"),
        heightForRowRef: $e(e, "heightForRow"),
        minRowHeightRef: $e(e, "minRowHeight"),
        virtualScrollHeaderRef: $e(e, "virtualScrollHeader"),
        headerHeightRef: $e(e, "headerHeight"),
        rowPropsRef: $e(e, "rowProps"),
        stripedRef: $e(e, "striped"),
        checkOptionsRef: D(() => {
          const { value: Q } = _;
          return Q == null ? void 0 : Q.options;
        }),
        rawPaginatedDataRef: S,
        filterMenuCssVarsRef: D(() => {
          const { self: { actionDividerColor: Q, actionPadding: me, actionButtonMargin: Ee } } = s.value;
          return {
            "--n-action-padding": me,
            "--n-action-button-margin": Ee,
            "--n-action-divider-color": Q
          };
        }),
        onLoadRef: $e(e, "onLoad"),
        mergedTableLayoutRef: rt,
        maxHeightRef: $e(e, "maxHeight"),
        minHeightRef: $e(e, "minHeight"),
        flexHeightRef: $e(e, "flexHeight"),
        headerCheckboxDisabledRef: fe,
        paginationBehaviorOnFilterRef: $e(e, "paginationBehaviorOnFilter"),
        summaryPlacementRef: $e(e, "summaryPlacement"),
        filterIconPopoverPropsRef: $e(e, "filterIconPopoverProps"),
        scrollbarPropsRef: $e(e, "scrollbarProps"),
        syncScrollState: j,
        doUpdatePage: E,
        doUpdateFilters: M,
        getResizableWidth: d,
        onUnstableColumnResize: z,
        clearResizableWidth: h,
        doUpdateResizableWidth: p,
        deriveNextSorter: U,
        doCheck: be,
        doUncheck: ie,
        doCheckAll: oe,
        doUncheckAll: ce,
        doUpdateExpandedRowKeys: _e,
        handleTableHeaderScroll: N,
        handleTableBodyScroll: K,
        setHeaderScrollLeft: X,
        renderCell: $e(e, "renderCell")
      });
      const Ne = {
        filter: ee,
        filters: ne,
        clearFilters: ye,
        clearSorter: xe,
        page: re,
        sort: Y,
        clearFilter: ae,
        downloadCsv: H,
        scrollTo: (Q, me) => {
          var Ee;
          (Ee = u.value) === null || Ee === void 0 || Ee.scrollTo(Q, me);
        }
      }, bt = D(() => {
        const { size: Q } = e, { common: { cubicBezierEaseInOut: me }, self: { borderColor: Ee, tdColorHover: He, tdColorSorting: Ve, tdColorSortingModal: Ke, tdColorSortingPopover: Xe, thColorSorting: Qe, thColorSortingModal: _t, thColorSortingPopover: Mt, thColor: ct, thColorHover: on, tdColor: Dn, tdTextColor: Sn, thTextColor: _n, thFontWeight: $n, thButtonColorHover: Hn, thIconColor: qn, thIconColorActive: he, filterSize: Pe, borderRadius: ot, lineHeight: St, tdColorModal: It, thColorModal: Et, borderColorModal: zt, thColorHoverModal: an, tdColorHoverModal: Gn, borderColorPopover: Mr, thColorPopover: Lr, tdColorPopover: Ho, tdColorHoverPopover: st, thColorHoverPopover: ue, paginationMargin: Le, emptyPadding: nt, boxShadowAfter: Vt, boxShadowBefore: cn, sorterSize: en, resizableContainerSize: Nn, resizableSize: Cr, loadingColor: mo, loadingSize: Ni, opacityLoading: xn, tdColorStriped: za, tdColorStripedModal: Oa, tdColorStripedPopover: Ld, [Se("fontSize", Q)]: Bd, [Se("thPadding", Q)]: Nd, [Se("tdPadding", Q)]: Hd } } = s.value;
        return {
          "--n-font-size": Bd,
          "--n-th-padding": Nd,
          "--n-td-padding": Hd,
          "--n-bezier": me,
          "--n-border-radius": ot,
          "--n-line-height": St,
          "--n-border-color": Ee,
          "--n-border-color-modal": zt,
          "--n-border-color-popover": Mr,
          "--n-th-color": ct,
          "--n-th-color-hover": on,
          "--n-th-color-modal": Et,
          "--n-th-color-hover-modal": an,
          "--n-th-color-popover": Lr,
          "--n-th-color-hover-popover": ue,
          "--n-td-color": Dn,
          "--n-td-color-hover": He,
          "--n-td-color-modal": It,
          "--n-td-color-hover-modal": Gn,
          "--n-td-color-popover": Ho,
          "--n-td-color-hover-popover": st,
          "--n-th-text-color": _n,
          "--n-td-text-color": Sn,
          "--n-th-font-weight": $n,
          "--n-th-button-color-hover": Hn,
          "--n-th-icon-color": qn,
          "--n-th-icon-color-active": he,
          "--n-filter-size": Pe,
          "--n-pagination-margin": Le,
          "--n-empty-padding": nt,
          "--n-box-shadow-before": cn,
          "--n-box-shadow-after": Vt,
          "--n-sorter-size": en,
          "--n-resizable-container-size": Nn,
          "--n-resizable-size": Cr,
          "--n-loading-size": Ni,
          "--n-loading-color": mo,
          "--n-opacity-loading": xn,
          "--n-td-color-striped": za,
          "--n-td-color-striped-modal": Oa,
          "--n-td-color-striped-popover": Ld,
          "--n-td-color-sorting": Ve,
          "--n-td-color-sorting-modal": Ke,
          "--n-td-color-sorting-popover": Xe,
          "--n-th-color-sorting": Qe,
          "--n-th-color-sorting-modal": _t,
          "--n-th-color-sorting-popover": Mt
        };
      }), We = o ? xt("data-table", D(() => e.size[0]), bt, e) : void 0, Ge = D(() => {
        if (!e.pagination) return false;
        if (e.paginateSinglePage) return true;
        const Q = k.value, { pageCount: me } = Q;
        return me !== void 0 ? me > 1 : Q.itemCount && Q.pageSize && Q.itemCount > Q.pageSize;
      });
      return Object.assign({
        mainTableInstRef: u,
        mergedClsPrefix: r,
        rtlEnabled: a,
        mergedTheme: s,
        paginatedData: x,
        mergedBordered: n,
        mergedBottomBordered: l,
        mergedPagination: k,
        mergedShowPagination: Ge,
        cssVars: o ? void 0 : bt,
        themeClass: We == null ? void 0 : We.themeClass,
        onRender: We == null ? void 0 : We.onRender
      }, Ne);
    },
    render() {
      const { mergedClsPrefix: e, themeClass: t, onRender: n, $slots: r, spinProps: o } = this;
      return n == null ? void 0 : n(), g("div", {
        class: [
          `${e}-data-table`,
          this.rtlEnabled && `${e}-data-table--rtl`,
          t,
          {
            [`${e}-data-table--bordered`]: this.mergedBordered,
            [`${e}-data-table--bottom-bordered`]: this.mergedBottomBordered,
            [`${e}-data-table--single-line`]: this.singleLine,
            [`${e}-data-table--single-column`]: this.singleColumn,
            [`${e}-data-table--loading`]: this.loading,
            [`${e}-data-table--flex-height`]: this.flexHeight
          }
        ],
        style: this.cssVars
      }, g("div", {
        class: `${e}-data-table-wrapper`
      }, g(f6, {
        ref: "mainTableInstRef"
      })), this.mergedShowPagination ? g("div", {
        class: `${e}-data-table__pagination`
      }, g(Sm, Object.assign({
        theme: this.mergedTheme.peers.Pagination,
        themeOverrides: this.mergedTheme.peerOverrides.Pagination,
        disabled: this.loading
      }, this.mergedPagination))) : null, g(Ln, {
        name: "fade-in-scale-up-transition"
      }, {
        default: () => this.loading ? g("div", {
          class: `${e}-data-table-loading-wrapper`
        }, In(r.loading, () => [
          g(Ii, Object.assign({
            clsPrefix: e,
            strokeWidth: 20
          }, o))
        ])) : null
      }));
    }
  });
  k6 = {
    itemFontSize: "12px",
    itemHeight: "36px",
    itemWidth: "52px",
    panelActionPadding: "8px 0"
  };
  function R6(e) {
    const { popoverColor: t, textColor2: n, primaryColor: r, hoverColor: o, dividerColor: i, opacityDisabled: a, boxShadow2: l, borderRadius: s, iconColor: c, iconColorDisabled: u } = e;
    return Object.assign(Object.assign({}, k6), {
      panelColor: t,
      panelBoxShadow: l,
      panelDividerColor: i,
      itemTextColor: n,
      itemTextColorActive: r,
      itemColorHover: o,
      itemOpacityDisabled: a,
      itemBorderRadius: s,
      borderRadius: s,
      iconColor: c,
      iconColorDisabled: u
    });
  }
  const C2 = {
    name: "TimePicker",
    common: Ue,
    peers: {
      Scrollbar: nr,
      Button: xr,
      Input: Fr
    },
    self: R6
  }, A6 = {
    itemSize: "24px",
    itemCellWidth: "38px",
    itemCellHeight: "32px",
    scrollItemWidth: "80px",
    scrollItemHeight: "40px",
    panelExtraFooterPadding: "8px 12px",
    panelActionPadding: "8px 12px",
    calendarTitlePadding: "0",
    calendarTitleHeight: "28px",
    arrowSize: "14px",
    panelHeaderPadding: "8px 12px",
    calendarDaysHeight: "32px",
    calendarTitleGridTempateColumns: "28px 28px 1fr 28px 28px",
    calendarLeftPaddingDate: "6px 12px 4px 12px",
    calendarLeftPaddingDatetime: "4px 12px",
    calendarLeftPaddingDaterange: "6px 12px 4px 12px",
    calendarLeftPaddingDatetimerange: "4px 12px",
    calendarLeftPaddingMonth: "0",
    calendarLeftPaddingYear: "0",
    calendarLeftPaddingQuarter: "0",
    calendarLeftPaddingMonthrange: "0",
    calendarLeftPaddingQuarterrange: "0",
    calendarLeftPaddingYearrange: "0",
    calendarLeftPaddingWeek: "6px 12px 4px 12px",
    calendarRightPaddingDate: "6px 12px 4px 12px",
    calendarRightPaddingDatetime: "4px 12px",
    calendarRightPaddingDaterange: "6px 12px 4px 12px",
    calendarRightPaddingDatetimerange: "4px 12px",
    calendarRightPaddingMonth: "0",
    calendarRightPaddingYear: "0",
    calendarRightPaddingQuarter: "0",
    calendarRightPaddingMonthrange: "0",
    calendarRightPaddingQuarterrange: "0",
    calendarRightPaddingYearrange: "0",
    calendarRightPaddingWeek: "0"
  };
  function E6(e) {
    const { hoverColor: t, fontSize: n, textColor2: r, textColorDisabled: o, popoverColor: i, primaryColor: a, borderRadiusSmall: l, iconColor: s, iconColorDisabled: c, textColor1: u, dividerColor: d, boxShadow2: h, borderRadius: p, fontWeightStrong: f } = e;
    return Object.assign(Object.assign({}, A6), {
      itemFontSize: n,
      calendarDaysFontSize: n,
      calendarTitleFontSize: n,
      itemTextColor: r,
      itemTextColorDisabled: o,
      itemTextColorActive: i,
      itemTextColorCurrent: a,
      itemColorIncluded: Oe(a, {
        alpha: 0.1
      }),
      itemColorHover: t,
      itemColorDisabled: t,
      itemColorActive: a,
      itemBorderRadius: l,
      panelColor: i,
      panelTextColor: r,
      arrowColor: s,
      calendarTitleTextColor: u,
      calendarTitleColorHover: t,
      calendarDaysTextColor: r,
      panelHeaderDividerColor: d,
      calendarDaysDividerColor: d,
      calendarDividerColor: d,
      panelActionDividerColor: d,
      panelBoxShadow: h,
      panelBorderRadius: p,
      calendarTitleFontWeight: f,
      scrollItemBorderRadius: p,
      iconColor: s,
      iconColorDisabled: c
    });
  }
  const T6 = {
    name: "DatePicker",
    common: Ue,
    peers: {
      Input: Fr,
      Button: xr,
      TimePicker: C2,
      Scrollbar: nr
    },
    self(e) {
      const { popoverColor: t, hoverColor: n, primaryColor: r } = e, o = E6(e);
      return o.itemColorDisabled = Ye(t, n), o.itemColorIncluded = Oe(r, {
        alpha: 0.15
      }), o.itemColorHover = Ye(t, n), o;
    }
  }, P6 = {
    thPaddingBorderedSmall: "8px 12px",
    thPaddingBorderedMedium: "12px 16px",
    thPaddingBorderedLarge: "16px 24px",
    thPaddingSmall: "0",
    thPaddingMedium: "0",
    thPaddingLarge: "0",
    tdPaddingBorderedSmall: "8px 12px",
    tdPaddingBorderedMedium: "12px 16px",
    tdPaddingBorderedLarge: "16px 24px",
    tdPaddingSmall: "0 0 8px 0",
    tdPaddingMedium: "0 0 12px 0",
    tdPaddingLarge: "0 0 16px 0"
  };
  function D6(e) {
    const { tableHeaderColor: t, textColor2: n, textColor1: r, cardColor: o, modalColor: i, popoverColor: a, dividerColor: l, borderRadius: s, fontWeightStrong: c, lineHeight: u, fontSizeSmall: d, fontSizeMedium: h, fontSizeLarge: p } = e;
    return Object.assign(Object.assign({}, P6), {
      lineHeight: u,
      fontSizeSmall: d,
      fontSizeMedium: h,
      fontSizeLarge: p,
      titleTextColor: r,
      thColor: Ye(o, t),
      thColorModal: Ye(i, t),
      thColorPopover: Ye(a, t),
      thTextColor: r,
      thFontWeight: c,
      tdTextColor: n,
      tdColor: o,
      tdColorModal: i,
      tdColorPopover: a,
      borderColor: Ye(o, l),
      borderColorModal: Ye(i, l),
      borderColorPopover: Ye(a, l),
      borderRadius: s
    });
  }
  const $6 = {
    name: "Descriptions",
    common: Ue,
    self: D6
  }, z6 = "n-dialog-provider", O6 = {
    titleFontSize: "18px",
    padding: "16px 28px 20px 28px",
    iconSize: "28px",
    actionSpace: "12px",
    contentMargin: "8px 0 16px 0",
    iconMargin: "0 4px 0 0",
    iconMarginIconTop: "4px 0 8px 0",
    closeSize: "22px",
    closeIconSize: "18px",
    closeMargin: "20px 26px 0 0",
    closeMarginIconTop: "10px 16px 0 0"
  };
  function S2(e) {
    const { textColor1: t, textColor2: n, modalColor: r, closeIconColor: o, closeIconColorHover: i, closeIconColorPressed: a, closeColorHover: l, closeColorPressed: s, infoColor: c, successColor: u, warningColor: d, errorColor: h, primaryColor: p, dividerColor: f, borderRadius: m, fontWeightStrong: b, lineHeight: v, fontSize: y } = e;
    return Object.assign(Object.assign({}, O6), {
      fontSize: y,
      lineHeight: v,
      border: `1px solid ${f}`,
      titleTextColor: t,
      textColor: n,
      color: r,
      closeColorHover: l,
      closeColorPressed: s,
      closeIconColor: o,
      closeIconColorHover: i,
      closeIconColorPressed: a,
      closeBorderRadius: m,
      iconColor: p,
      iconColorInfo: c,
      iconColorSuccess: u,
      iconColorWarning: d,
      iconColorError: h,
      borderRadius: m,
      titleFontWeight: b
    });
  }
  const _2 = {
    name: "Dialog",
    common: mt,
    peers: {
      Button: vd
    },
    self: S2
  }, k2 = {
    name: "Dialog",
    common: Ue,
    peers: {
      Button: xr
    },
    self: S2
  }, Pm = {
    icon: Function,
    type: {
      type: String,
      default: "default"
    },
    title: [
      String,
      Function
    ],
    closable: {
      type: Boolean,
      default: true
    },
    negativeText: String,
    positiveText: String,
    positiveButtonProps: Object,
    negativeButtonProps: Object,
    content: [
      String,
      Function
    ],
    action: Function,
    showIcon: {
      type: Boolean,
      default: true
    },
    loading: Boolean,
    bordered: Boolean,
    iconPlacement: String,
    titleClass: [
      String,
      Array
    ],
    titleStyle: [
      String,
      Object
    ],
    contentClass: [
      String,
      Array
    ],
    contentStyle: [
      String,
      Object
    ],
    actionClass: [
      String,
      Array
    ],
    actionStyle: [
      String,
      Object
    ],
    onPositiveClick: Function,
    onNegativeClick: Function,
    onClose: Function,
    closeFocusable: Boolean
  }, I6 = ur(Pm), F6 = W([
    A("dialog", `
 --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
 word-break: break-word;
 line-height: var(--n-line-height);
 position: relative;
 background: var(--n-color);
 color: var(--n-text-color);
 box-sizing: border-box;
 margin: auto;
 border-radius: var(--n-border-radius);
 padding: var(--n-padding);
 transition: 
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `, [
      V("icon", `
 color: var(--n-icon-color);
 `),
      G("bordered", `
 border: var(--n-border);
 `),
      G("icon-top", [
        V("close", `
 margin: var(--n-close-margin);
 `),
        V("icon", `
 margin: var(--n-icon-margin);
 `),
        V("content", `
 text-align: center;
 `),
        V("title", `
 justify-content: center;
 `),
        V("action", `
 justify-content: center;
 `)
      ]),
      G("icon-left", [
        V("icon", `
 margin: var(--n-icon-margin);
 `),
        G("closable", [
          V("title", `
 padding-right: calc(var(--n-close-size) + 6px);
 `)
        ])
      ]),
      V("close", `
 position: absolute;
 right: 0;
 top: 0;
 margin: var(--n-close-margin);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 z-index: 1;
 `),
      V("content", `
 font-size: var(--n-font-size);
 margin: var(--n-content-margin);
 position: relative;
 word-break: break-word;
 `, [
        G("last", "margin-bottom: 0;")
      ]),
      V("action", `
 display: flex;
 justify-content: flex-end;
 `, [
        W("> *:not(:last-child)", `
 margin-right: var(--n-action-space);
 `)
      ]),
      V("icon", `
 font-size: var(--n-icon-size);
 transition: color .3s var(--n-bezier);
 `),
      V("title", `
 transition: color .3s var(--n-bezier);
 display: flex;
 align-items: center;
 font-size: var(--n-title-font-size);
 font-weight: var(--n-title-font-weight);
 color: var(--n-title-text-color);
 `),
      A("dialog-icon-container", `
 display: flex;
 justify-content: center;
 `)
    ]),
    ya(A("dialog", `
 width: 446px;
 max-width: calc(100vw - 32px);
 `)),
    A("dialog", [
      jx(`
 width: 446px;
 max-width: calc(100vw - 32px);
 `)
    ])
  ]), M6 = {
    default: () => g(Ti, null),
    info: () => g(Ti, null),
    success: () => g(ka, null),
    warning: () => g(zi, null),
    error: () => g(_a, null)
  }, L6 = pe({
    name: "Dialog",
    alias: [
      "NimbusConfirmCard",
      "Confirm"
    ],
    props: Object.assign(Object.assign({}, Fe.props), Pm),
    slots: Object,
    setup(e) {
      const { mergedComponentPropsRef: t, mergedClsPrefixRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = rn("Dialog", o, n), a = D(() => {
        var p, f;
        const { iconPlacement: m } = e;
        return m || ((f = (p = t == null ? void 0 : t.value) === null || p === void 0 ? void 0 : p.Dialog) === null || f === void 0 ? void 0 : f.iconPlacement) || "left";
      });
      function l(p) {
        const { onPositiveClick: f } = e;
        f && f(p);
      }
      function s(p) {
        const { onNegativeClick: f } = e;
        f && f(p);
      }
      function c() {
        const { onClose: p } = e;
        p && p();
      }
      const u = Fe("Dialog", "-dialog", F6, _2, e, n), d = D(() => {
        const { type: p } = e, f = a.value, { common: { cubicBezierEaseInOut: m }, self: { fontSize: b, lineHeight: v, border: y, titleTextColor: w, textColor: x, color: S, closeBorderRadius: _, closeColorHover: C, closeColorPressed: k, closeIconColor: R, closeIconColorHover: P, closeIconColorPressed: B, closeIconSize: E, borderRadius: M, titleFontWeight: z, titleFontSize: U, padding: ee, iconSize: ne, actionSpace: ae, contentMargin: ye, closeSize: xe, [f === "top" ? "iconMarginIconTop" : "iconMargin"]: re, [f === "top" ? "closeMarginIconTop" : "closeMargin"]: Y, [Se("iconColor", p)]: H } } = u.value, oe = En(re);
        return {
          "--n-font-size": b,
          "--n-icon-color": H,
          "--n-bezier": m,
          "--n-close-margin": Y,
          "--n-icon-margin-top": oe.top,
          "--n-icon-margin-right": oe.right,
          "--n-icon-margin-bottom": oe.bottom,
          "--n-icon-margin-left": oe.left,
          "--n-icon-size": ne,
          "--n-close-size": xe,
          "--n-close-icon-size": E,
          "--n-close-border-radius": _,
          "--n-close-color-hover": C,
          "--n-close-color-pressed": k,
          "--n-close-icon-color": R,
          "--n-close-icon-color-hover": P,
          "--n-close-icon-color-pressed": B,
          "--n-color": S,
          "--n-text-color": x,
          "--n-border-radius": M,
          "--n-padding": ee,
          "--n-line-height": v,
          "--n-border": y,
          "--n-content-margin": ye,
          "--n-title-font-size": U,
          "--n-title-font-weight": z,
          "--n-title-text-color": w,
          "--n-action-space": ae
        };
      }), h = r ? xt("dialog", D(() => `${e.type[0]}${a.value[0]}`), d, e) : void 0;
      return {
        mergedClsPrefix: n,
        rtlEnabled: i,
        mergedIconPlacement: a,
        mergedTheme: u,
        handlePositiveClick: l,
        handleNegativeClick: s,
        handleCloseClick: c,
        cssVars: r ? void 0 : d,
        themeClass: h == null ? void 0 : h.themeClass,
        onRender: h == null ? void 0 : h.onRender
      };
    },
    render() {
      var e;
      const { bordered: t, mergedIconPlacement: n, cssVars: r, closable: o, showIcon: i, title: a, content: l, action: s, negativeText: c, positiveText: u, positiveButtonProps: d, negativeButtonProps: h, handlePositiveClick: p, handleNegativeClick: f, mergedTheme: m, loading: b, type: v, mergedClsPrefix: y } = this;
      (e = this.onRender) === null || e === void 0 || e.call(this);
      const w = i ? g(Jt, {
        clsPrefix: y,
        class: `${y}-dialog__icon`
      }, {
        default: () => Pt(this.$slots.icon, (S) => S || (this.icon ? Xt(this.icon) : M6[this.type]()))
      }) : null, x = Pt(this.$slots.action, (S) => S || u || c || s ? g("div", {
        class: [
          `${y}-dialog__action`,
          this.actionClass
        ],
        style: this.actionStyle
      }, S || (s ? [
        Xt(s)
      ] : [
        this.negativeText && g(ht, Object.assign({
          theme: m.peers.Button,
          themeOverrides: m.peerOverrides.Button,
          ghost: true,
          size: "small",
          onClick: f
        }, h), {
          default: () => Xt(this.negativeText)
        }),
        this.positiveText && g(ht, Object.assign({
          theme: m.peers.Button,
          themeOverrides: m.peerOverrides.Button,
          size: "small",
          type: v === "default" ? "primary" : v,
          disabled: b,
          loading: b,
          onClick: p
        }, d), {
          default: () => Xt(this.positiveText)
        })
      ])) : null);
      return g("div", {
        class: [
          `${y}-dialog`,
          this.themeClass,
          this.closable && `${y}-dialog--closable`,
          `${y}-dialog--icon-${n}`,
          t && `${y}-dialog--bordered`,
          this.rtlEnabled && `${y}-dialog--rtl`
        ],
        style: r,
        role: "dialog"
      }, o ? Pt(this.$slots.close, (S) => {
        const _ = [
          `${y}-dialog__close`,
          this.rtlEnabled && `${y}-dialog--rtl`
        ];
        return S ? g("div", {
          class: _
        }, S) : g(Oi, {
          focusable: this.closeFocusable,
          clsPrefix: y,
          class: _,
          onClick: this.handleCloseClick
        });
      }) : null, i && n === "top" ? g("div", {
        class: `${y}-dialog-icon-container`
      }, w) : null, g("div", {
        class: [
          `${y}-dialog__title`,
          this.titleClass
        ],
        style: this.titleStyle
      }, i && n === "left" ? w : null, In(this.$slots.header, () => [
        Xt(a)
      ])), g("div", {
        class: [
          `${y}-dialog__content`,
          x ? "" : `${y}-dialog__content--last`,
          this.contentClass
        ],
        style: this.contentStyle
      }, In(this.$slots.default, () => [
        Xt(l)
      ])), x);
    }
  });
  function R2(e) {
    const { modalColor: t, textColor2: n, boxShadow3: r } = e;
    return {
      color: t,
      textColor: n,
      boxShadow: r
    };
  }
  const B6 = {
    name: "Modal",
    common: mt,
    peers: {
      Scrollbar: hi,
      Dialog: _2,
      Card: $C
    },
    self: R2
  }, N6 = {
    name: "Modal",
    common: Ue,
    peers: {
      Scrollbar: nr,
      Dialog: k2,
      Card: zC
    },
    self: R2
  }, Vh = "n-draggable";
  function H6(e, t) {
    let n;
    const r = D(() => e.value !== false), o = D(() => r.value ? Vh : ""), i = D(() => {
      const s = e.value;
      return s === true || s === false ? true : s ? s.bounds !== "none" : true;
    });
    function a(s) {
      const c = s.querySelector(`.${Vh}`);
      if (!c || !o.value) return;
      let u = 0, d = 0, h = 0, p = 0, f = 0, m = 0, b;
      function v(x) {
        x.preventDefault(), b = x;
        const { x: S, y: _, right: C, bottom: k } = s.getBoundingClientRect();
        d = S, p = _, u = window.innerWidth - C, h = window.innerHeight - k;
        const { left: R, top: P } = s.style;
        f = +P.slice(0, -2), m = +R.slice(0, -2);
      }
      function y(x) {
        if (!b) return;
        const { clientX: S, clientY: _ } = b;
        let C = x.clientX - S, k = x.clientY - _;
        i.value && (C > u ? C = u : -C > d && (C = -d), k > h ? k = h : -k > p && (k = -p));
        const R = C + m, P = k + f;
        s.style.top = `${P}px`, s.style.left = `${R}px`;
      }
      function w() {
        b = void 0, t.onEnd(s);
      }
      Dt("mousedown", c, v), Dt("mousemove", window, y), Dt("mouseup", window, w), n = () => {
        Rt("mousedown", c, v), Dt("mousemove", window, y), Dt("mouseup", window, w);
      };
    }
    function l() {
      n && (n(), n = void 0);
    }
    return wl(l), {
      stopDrag: l,
      startDrag: a,
      draggableRef: r,
      draggableClassRef: o
    };
  }
  let Dm, j6, W6, U6, V6, q6, A2, E2, G6;
  Dm = Object.assign(Object.assign({}, xm), Pm);
  j6 = ur(Dm);
  W6 = pe({
    name: "ModalBody",
    inheritAttrs: false,
    slots: Object,
    props: Object.assign(Object.assign({
      show: {
        type: Boolean,
        required: true
      },
      preset: String,
      displayDirective: {
        type: String,
        required: true
      },
      trapFocus: {
        type: Boolean,
        default: true
      },
      autoFocus: {
        type: Boolean,
        default: true
      },
      blockScroll: Boolean,
      draggable: {
        type: [
          Boolean,
          Object
        ],
        default: false
      },
      maskHidden: Boolean
    }, Dm), {
      renderMask: Function,
      onClickoutside: Function,
      onBeforeLeave: {
        type: Function,
        required: true
      },
      onAfterLeave: {
        type: Function,
        required: true
      },
      onPositiveClick: {
        type: Function,
        required: true
      },
      onNegativeClick: {
        type: Function,
        required: true
      },
      onClose: {
        type: Function,
        required: true
      },
      onAfterEnter: Function,
      onEsc: Function
    }),
    setup(e) {
      const t = L(null), n = L(null), r = L(e.show), o = L(null), i = L(null), a = je(tw);
      let l = null;
      lt($e(e, "show"), (k) => {
        k && (l = a.getMousePosition());
      }, {
        immediate: true
      });
      const { stopDrag: s, startDrag: c, draggableRef: u, draggableClassRef: d } = H6($e(e, "draggable"), {
        onEnd: (k) => {
          m(k);
        }
      }), h = D(() => ti([
        e.titleClass,
        d.value
      ])), p = D(() => ti([
        e.headerClass,
        d.value
      ]));
      lt($e(e, "show"), (k) => {
        k && (r.value = true);
      }), ow(D(() => e.blockScroll && r.value));
      function f() {
        if (a.transformOriginRef.value === "center") return "";
        const { value: k } = o, { value: R } = i;
        if (k === null || R === null) return "";
        if (n.value) {
          const P = n.value.containerScrollTop;
          return `${k}px ${R + P}px`;
        }
        return "";
      }
      function m(k) {
        if (a.transformOriginRef.value === "center" || !l || !n.value) return;
        const R = n.value.containerScrollTop, { offsetLeft: P, offsetTop: B } = k, E = l.y, M = l.x;
        o.value = -(P - M), i.value = -(B - E - R), k.style.transformOrigin = f();
      }
      function b(k) {
        sn(() => {
          m(k);
        });
      }
      function v(k) {
        k.style.transformOrigin = f(), e.onBeforeLeave();
      }
      function y(k) {
        const R = k;
        u.value && c(R), e.onAfterEnter && e.onAfterEnter(R);
      }
      function w() {
        r.value = false, o.value = null, i.value = null, s(), e.onAfterLeave();
      }
      function x() {
        const { onClose: k } = e;
        k && k();
      }
      function S() {
        e.onNegativeClick();
      }
      function _() {
        e.onPositiveClick();
      }
      const C = L(null);
      return lt(C, (k) => {
        k && sn(() => {
          const R = k.el;
          R && t.value !== R && (t.value = R);
        });
      }), ft(Ys, t), ft(Ks, null), ft(_l, null), {
        mergedTheme: a.mergedThemeRef,
        appear: a.appearRef,
        isMounted: a.isMountedRef,
        mergedClsPrefix: a.mergedClsPrefixRef,
        bodyRef: t,
        scrollbarRef: n,
        draggableClass: d,
        displayed: r,
        childNodeRef: C,
        cardHeaderClass: p,
        dialogTitleClass: h,
        handlePositiveClick: _,
        handleNegativeClick: S,
        handleCloseClick: x,
        handleAfterEnter: y,
        handleAfterLeave: w,
        handleBeforeLeave: v,
        handleEnter: b
      };
    },
    render() {
      const { $slots: e, $attrs: t, handleEnter: n, handleAfterEnter: r, handleAfterLeave: o, handleBeforeLeave: i, preset: a, mergedClsPrefix: l } = this;
      let s = null;
      if (!a) {
        if (s = zT("default", e.default, {
          draggableClass: this.draggableClass
        }), !s) {
          lo("modal", "default slot is empty");
          return;
        }
        s = zr(s), s.props = Mn({
          class: `${l}-modal`
        }, t, s.props || {});
      }
      return this.displayDirective === "show" || this.displayed || this.show ? $r(g("div", {
        role: "none",
        class: [
          `${l}-modal-body-wrapper`,
          this.maskHidden && `${l}-modal-body-wrapper--mask-hidden`
        ]
      }, g(Bo, {
        ref: "scrollbarRef",
        theme: this.mergedTheme.peers.Scrollbar,
        themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
        contentClass: `${l}-modal-scroll-content`
      }, {
        default: () => {
          var c;
          return [
            (c = this.renderMask) === null || c === void 0 ? void 0 : c.call(this),
            g(nm, {
              disabled: !this.trapFocus || this.maskHidden,
              active: this.show,
              onEsc: this.onEsc,
              autoFocus: this.autoFocus
            }, {
              default: () => {
                var u;
                return g(Ln, {
                  name: "fade-in-scale-up-transition",
                  appear: (u = this.appear) !== null && u !== void 0 ? u : this.isMounted,
                  onEnter: n,
                  onAfterEnter: r,
                  onAfterLeave: o,
                  onBeforeLeave: i
                }, {
                  default: () => {
                    const d = [
                      [
                        zo,
                        this.show
                      ]
                    ], { onClickoutside: h } = this;
                    return h && d.push([
                      ul,
                      this.onClickoutside,
                      void 0,
                      {
                        capture: true
                      }
                    ]), $r(this.preset === "confirm" || this.preset === "dialog" ? g(L6, Object.assign({}, this.$attrs, {
                      class: [
                        `${l}-modal`,
                        this.$attrs.class
                      ],
                      ref: "bodyRef",
                      theme: this.mergedTheme.peers.Dialog,
                      themeOverrides: this.mergedTheme.peerOverrides.Dialog
                    }, cr(this.$props, I6), {
                      titleClass: this.dialogTitleClass,
                      "aria-modal": "true"
                    }), e) : this.preset === "card" ? g(wr, Object.assign({}, this.$attrs, {
                      ref: "bodyRef",
                      class: [
                        `${l}-modal`,
                        this.$attrs.class
                      ],
                      theme: this.mergedTheme.peers.Card,
                      themeOverrides: this.mergedTheme.peerOverrides.Card
                    }, cr(this.$props, TO), {
                      headerClass: this.cardHeaderClass,
                      "aria-modal": "true",
                      role: "dialog"
                    }), e) : this.childNodeRef = s, d);
                  }
                });
              }
            })
          ];
        }
      })), [
        [
          zo,
          this.displayDirective === "if" || this.displayed || this.show
        ]
      ]) : null;
    }
  });
  U6 = W([
    A("modal-container", `
 position: fixed;
 left: 0;
 top: 0;
 height: 0;
 width: 0;
 display: flex;
 `),
    A("modal-mask", `
 position: fixed;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 background-color: rgba(0, 0, 0, .4);
 `, [
      hd({
        enterDuration: ".25s",
        leaveDuration: ".25s",
        enterCubicBezier: "var(--n-bezier-ease-out)",
        leaveCubicBezier: "var(--n-bezier-ease-out)"
      })
    ]),
    A("modal-body-wrapper", `
 position: fixed;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 overflow: visible;
 `, [
      A("modal-scroll-content", `
 min-height: 100%;
 display: flex;
 position: relative;
 `),
      G("mask-hidden", "pointer-events: none;", [
        A("modal-scroll-content", [
          W("> *", `
 pointer-events: all;
 `)
        ])
      ])
    ]),
    A("modal", `
 position: relative;
 align-self: center;
 color: var(--n-text-color);
 margin: auto;
 box-shadow: var(--n-box-shadow);
 `, [
      Oo({
        duration: ".25s",
        enterScale: ".5"
      }),
      W(`.${Vh}`, `
 cursor: move;
 user-select: none;
 `)
    ])
  ]);
  V6 = Object.assign(Object.assign(Object.assign(Object.assign({}, Fe.props), {
    show: Boolean,
    showMask: {
      type: Boolean,
      default: true
    },
    maskClosable: {
      type: Boolean,
      default: true
    },
    preset: String,
    to: [
      String,
      Object
    ],
    displayDirective: {
      type: String,
      default: "if"
    },
    transformOrigin: {
      type: String,
      default: "mouse"
    },
    zIndex: Number,
    autoFocus: {
      type: Boolean,
      default: true
    },
    trapFocus: {
      type: Boolean,
      default: true
    },
    closeOnEsc: {
      type: Boolean,
      default: true
    },
    blockScroll: {
      type: Boolean,
      default: true
    }
  }), Dm), {
    draggable: [
      Boolean,
      Object
    ],
    onEsc: Function,
    "onUpdate:show": [
      Function,
      Array
    ],
    onUpdateShow: [
      Function,
      Array
    ],
    onAfterEnter: Function,
    onBeforeLeave: Function,
    onAfterLeave: Function,
    onClose: Function,
    onPositiveClick: Function,
    onNegativeClick: Function,
    onMaskClick: Function,
    internalDialog: Boolean,
    internalModal: Boolean,
    internalAppear: {
      type: Boolean,
      default: void 0
    },
    overlayStyle: [
      String,
      Object
    ],
    onBeforeHide: Function,
    onAfterHide: Function,
    onHide: Function,
    unstableShowMask: {
      type: Boolean,
      default: void 0
    }
  });
  No = pe({
    name: "Modal",
    inheritAttrs: false,
    props: V6,
    slots: Object,
    setup(e) {
      const t = L(null), { mergedClsPrefixRef: n, namespaceRef: r, inlineThemeDisabled: o } = at(e), i = Fe("Modal", "-modal", U6, B6, e, n), a = kE(64), l = SE(), s = Pi(), c = e.internalDialog ? je(z6, null) : null, u = e.internalModal ? je($E, null) : null, d = rw();
      function h(_) {
        const { onUpdateShow: C, "onUpdate:show": k, onHide: R } = e;
        C && Te(C, _), k && Te(k, _), R && !_ && R(_);
      }
      function p() {
        const { onClose: _ } = e;
        _ ? Promise.resolve(_()).then((C) => {
          C !== false && h(false);
        }) : h(false);
      }
      function f() {
        const { onPositiveClick: _ } = e;
        _ ? Promise.resolve(_()).then((C) => {
          C !== false && h(false);
        }) : h(false);
      }
      function m() {
        const { onNegativeClick: _ } = e;
        _ ? Promise.resolve(_()).then((C) => {
          C !== false && h(false);
        }) : h(false);
      }
      function b() {
        const { onBeforeLeave: _, onBeforeHide: C } = e;
        _ && Te(_), C && C();
      }
      function v() {
        const { onAfterLeave: _, onAfterHide: C } = e;
        _ && Te(_), C && C();
      }
      function y(_) {
        var C;
        const { onMaskClick: k } = e;
        k && k(_), e.maskClosable && !((C = t.value) === null || C === void 0) && C.contains(cl(_)) && h(false);
      }
      function w(_) {
        var C;
        (C = e.onEsc) === null || C === void 0 || C.call(e), e.show && e.closeOnEsc && Cw(_) && (d.value || h(false));
      }
      ft(tw, {
        getMousePosition: () => {
          const _ = c || u;
          if (_) {
            const { clickedRef: C, clickedPositionRef: k } = _;
            if (C.value && k.value) return k.value;
          }
          return a.value ? l.value : null;
        },
        mergedClsPrefixRef: n,
        mergedThemeRef: i,
        isMountedRef: s,
        appearRef: $e(e, "internalAppear"),
        transformOriginRef: $e(e, "transformOrigin")
      });
      const x = D(() => {
        const { common: { cubicBezierEaseOut: _ }, self: { boxShadow: C, color: k, textColor: R } } = i.value;
        return {
          "--n-bezier-ease-out": _,
          "--n-box-shadow": C,
          "--n-color": k,
          "--n-text-color": R
        };
      }), S = o ? xt("theme-class", void 0, x, e) : void 0;
      return {
        mergedClsPrefix: n,
        namespace: r,
        isMounted: s,
        containerRef: t,
        presetProps: D(() => cr(e, j6)),
        handleEsc: w,
        handleAfterLeave: v,
        handleClickoutside: y,
        handleBeforeLeave: b,
        doUpdateShow: h,
        handleNegativeClick: m,
        handlePositiveClick: f,
        handleCloseClick: p,
        cssVars: o ? void 0 : x,
        themeClass: S == null ? void 0 : S.themeClass,
        onRender: S == null ? void 0 : S.onRender
      };
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g(ad, {
        to: this.to,
        show: this.show
      }, {
        default: () => {
          var t;
          (t = this.onRender) === null || t === void 0 || t.call(this);
          const { showMask: n } = this;
          return $r(g("div", {
            role: "none",
            ref: "containerRef",
            class: [
              `${e}-modal-container`,
              this.themeClass,
              this.namespace
            ],
            style: this.cssVars
          }, g(W6, Object.assign({
            style: this.overlayStyle
          }, this.$attrs, {
            ref: "bodyWrapper",
            displayDirective: this.displayDirective,
            show: this.show,
            preset: this.preset,
            autoFocus: this.autoFocus,
            trapFocus: this.trapFocus,
            draggable: this.draggable,
            blockScroll: this.blockScroll,
            maskHidden: !n
          }, this.presetProps, {
            onEsc: this.handleEsc,
            onClose: this.handleCloseClick,
            onNegativeClick: this.handleNegativeClick,
            onPositiveClick: this.handlePositiveClick,
            onBeforeLeave: this.handleBeforeLeave,
            onAfterEnter: this.onAfterEnter,
            onAfterLeave: this.handleAfterLeave,
            onClickoutside: n ? void 0 : this.handleClickoutside,
            renderMask: n ? () => {
              var r;
              return g(Ln, {
                name: "fade-in-transition",
                key: "mask",
                appear: (r = this.internalAppear) !== null && r !== void 0 ? r : this.isMounted
              }, {
                default: () => this.show ? g("div", {
                  "aria-hidden": true,
                  ref: "containerRef",
                  class: `${e}-modal-mask`,
                  onClick: this.handleClickoutside
                }) : null
              });
            } : void 0
          }), this.$slots)), [
            [
              od,
              {
                zIndex: this.zIndex,
                enabled: this.show
              }
            ]
          ]);
        }
      });
    }
  });
  q6 = {
    name: "LoadingBar",
    common: Ue,
    self(e) {
      const { primaryColor: t } = e;
      return {
        colorError: "red",
        colorLoading: t,
        height: "2px"
      };
    }
  };
  A2 = "n-message-api";
  E2 = "n-message-provider";
  G6 = {
    margin: "0 0 8px 0",
    padding: "10px 20px",
    maxWidth: "720px",
    minWidth: "420px",
    iconMargin: "0 10px 0 0",
    closeMargin: "0 0 0 10px",
    closeSize: "20px",
    closeIconSize: "16px",
    iconSize: "20px",
    fontSize: "14px"
  };
  function T2(e) {
    const { textColor2: t, closeIconColor: n, closeIconColorHover: r, closeIconColorPressed: o, infoColor: i, successColor: a, errorColor: l, warningColor: s, popoverColor: c, boxShadow2: u, primaryColor: d, lineHeight: h, borderRadius: p, closeColorHover: f, closeColorPressed: m } = e;
    return Object.assign(Object.assign({}, G6), {
      closeBorderRadius: p,
      textColor: t,
      textColorInfo: t,
      textColorSuccess: t,
      textColorError: t,
      textColorWarning: t,
      textColorLoading: t,
      color: c,
      colorInfo: c,
      colorSuccess: c,
      colorError: c,
      colorWarning: c,
      colorLoading: c,
      boxShadow: u,
      boxShadowInfo: u,
      boxShadowSuccess: u,
      boxShadowError: u,
      boxShadowWarning: u,
      boxShadowLoading: u,
      iconColor: t,
      iconColorInfo: i,
      iconColorSuccess: a,
      iconColorWarning: s,
      iconColorError: l,
      iconColorLoading: d,
      closeColorHover: f,
      closeColorPressed: m,
      closeIconColor: n,
      closeIconColorHover: r,
      closeIconColorPressed: o,
      closeColorHoverInfo: f,
      closeColorPressedInfo: m,
      closeIconColorInfo: n,
      closeIconColorHoverInfo: r,
      closeIconColorPressedInfo: o,
      closeColorHoverSuccess: f,
      closeColorPressedSuccess: m,
      closeIconColorSuccess: n,
      closeIconColorHoverSuccess: r,
      closeIconColorPressedSuccess: o,
      closeColorHoverError: f,
      closeColorPressedError: m,
      closeIconColorError: n,
      closeIconColorHoverError: r,
      closeIconColorPressedError: o,
      closeColorHoverWarning: f,
      closeColorPressedWarning: m,
      closeIconColorWarning: n,
      closeIconColorHoverWarning: r,
      closeIconColorPressedWarning: o,
      closeColorHoverLoading: f,
      closeColorPressedLoading: m,
      closeIconColorLoading: n,
      closeIconColorHoverLoading: r,
      closeIconColorPressedLoading: o,
      loadingColor: d,
      lineHeight: h,
      borderRadius: p,
      border: "0"
    });
  }
  const K6 = {
    common: mt,
    self: T2
  }, Y6 = {
    name: "Message",
    common: Ue,
    self: T2
  }, P2 = {
    icon: Function,
    type: {
      type: String,
      default: "info"
    },
    content: [
      String,
      Number,
      Function
    ],
    showIcon: {
      type: Boolean,
      default: true
    },
    closable: Boolean,
    keepAliveOnHover: Boolean,
    onClose: Function,
    onMouseenter: Function,
    onMouseleave: Function
  }, X6 = W([
    A("message-wrapper", `
 margin: var(--n-margin);
 z-index: 0;
 transform-origin: top center;
 display: flex;
 `, [
      md({
        overflow: "visible",
        originalTransition: "transform .3s var(--n-bezier)",
        enterToProps: {
          transform: "scale(1)"
        },
        leaveToProps: {
          transform: "scale(0.85)"
        }
      })
    ]),
    A("message", `
 box-sizing: border-box;
 display: flex;
 align-items: center;
 transition:
 color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 transform .3s var(--n-bezier),
 margin-bottom .3s var(--n-bezier);
 padding: var(--n-padding);
 border-radius: var(--n-border-radius);
 border: var(--n-border);
 flex-wrap: nowrap;
 overflow: hidden;
 max-width: var(--n-max-width);
 color: var(--n-text-color);
 background-color: var(--n-color);
 box-shadow: var(--n-box-shadow);
 `, [
      V("content", `
 display: inline-block;
 line-height: var(--n-line-height);
 font-size: var(--n-font-size);
 `),
      V("icon", `
 position: relative;
 margin: var(--n-icon-margin);
 height: var(--n-icon-size);
 width: var(--n-icon-size);
 font-size: var(--n-icon-size);
 flex-shrink: 0;
 `, [
        [
          "default",
          "info",
          "success",
          "warning",
          "error",
          "loading"
        ].map((e) => G(`${e}-type`, [
          W("> *", `
 color: var(--n-icon-color-${e});
 transition: color .3s var(--n-bezier);
 `)
        ])),
        W("> *", `
 position: absolute;
 left: 0;
 top: 0;
 right: 0;
 bottom: 0;
 `, [
          kr()
        ])
      ]),
      V("close", `
 margin: var(--n-close-margin);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 flex-shrink: 0;
 `, [
        W("&:hover", `
 color: var(--n-close-icon-color-hover);
 `),
        W("&:active", `
 color: var(--n-close-icon-color-pressed);
 `)
      ])
    ]),
    A("message-container", `
 z-index: 6000;
 position: fixed;
 height: 0;
 overflow: visible;
 display: flex;
 flex-direction: column;
 align-items: center;
 `, [
      G("top", `
 top: 12px;
 left: 0;
 right: 0;
 `),
      G("top-left", `
 top: 12px;
 left: 12px;
 right: 0;
 align-items: flex-start;
 `),
      G("top-right", `
 top: 12px;
 left: 0;
 right: 12px;
 align-items: flex-end;
 `),
      G("bottom", `
 bottom: 4px;
 left: 0;
 right: 0;
 justify-content: flex-end;
 `),
      G("bottom-left", `
 bottom: 4px;
 left: 12px;
 right: 0;
 justify-content: flex-end;
 align-items: flex-start;
 `),
      G("bottom-right", `
 bottom: 4px;
 left: 0;
 right: 12px;
 justify-content: flex-end;
 align-items: flex-end;
 `)
    ])
  ]), J6 = {
    info: () => g(Ti, null),
    success: () => g(ka, null),
    warning: () => g(zi, null),
    error: () => g(_a, null),
    default: () => null
  }, Z6 = pe({
    name: "Message",
    props: Object.assign(Object.assign({}, P2), {
      render: Function
    }),
    setup(e) {
      const { inlineThemeDisabled: t, mergedRtlRef: n } = at(e), { props: r, mergedClsPrefixRef: o } = je(E2), i = rn("Message", n, o), a = Fe("Message", "-message", X6, K6, r, o), l = D(() => {
        const { type: c } = e, { common: { cubicBezierEaseInOut: u }, self: { padding: d, margin: h, maxWidth: p, iconMargin: f, closeMargin: m, closeSize: b, iconSize: v, fontSize: y, lineHeight: w, borderRadius: x, border: S, iconColorInfo: _, iconColorSuccess: C, iconColorWarning: k, iconColorError: R, iconColorLoading: P, closeIconSize: B, closeBorderRadius: E, [Se("textColor", c)]: M, [Se("boxShadow", c)]: z, [Se("color", c)]: U, [Se("closeColorHover", c)]: ee, [Se("closeColorPressed", c)]: ne, [Se("closeIconColor", c)]: ae, [Se("closeIconColorPressed", c)]: ye, [Se("closeIconColorHover", c)]: xe } } = a.value;
        return {
          "--n-bezier": u,
          "--n-margin": h,
          "--n-padding": d,
          "--n-max-width": p,
          "--n-font-size": y,
          "--n-icon-margin": f,
          "--n-icon-size": v,
          "--n-close-icon-size": B,
          "--n-close-border-radius": E,
          "--n-close-size": b,
          "--n-close-margin": m,
          "--n-text-color": M,
          "--n-color": U,
          "--n-box-shadow": z,
          "--n-icon-color-info": _,
          "--n-icon-color-success": C,
          "--n-icon-color-warning": k,
          "--n-icon-color-error": R,
          "--n-icon-color-loading": P,
          "--n-close-color-hover": ee,
          "--n-close-color-pressed": ne,
          "--n-close-icon-color": ae,
          "--n-close-icon-color-pressed": ye,
          "--n-close-icon-color-hover": xe,
          "--n-line-height": w,
          "--n-border-radius": x,
          "--n-border": S
        };
      }), s = t ? xt("message", D(() => e.type[0]), l, {}) : void 0;
      return {
        mergedClsPrefix: o,
        rtlEnabled: i,
        messageProviderProps: r,
        handleClose() {
          var c;
          (c = e.onClose) === null || c === void 0 || c.call(e);
        },
        cssVars: t ? void 0 : l,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender,
        placement: r.placement
      };
    },
    render() {
      const { render: e, type: t, closable: n, content: r, mergedClsPrefix: o, cssVars: i, themeClass: a, onRender: l, icon: s, handleClose: c, showIcon: u } = this;
      l == null ? void 0 : l();
      let d;
      return g("div", {
        class: [
          `${o}-message-wrapper`,
          a
        ],
        onMouseenter: this.onMouseenter,
        onMouseleave: this.onMouseleave,
        style: [
          {
            alignItems: this.placement.startsWith("top") ? "flex-start" : "flex-end"
          },
          i
        ]
      }, e ? e(this.$props) : g("div", {
        class: [
          `${o}-message ${o}-message--${t}-type`,
          this.rtlEnabled && `${o}-message--rtl`
        ]
      }, (d = Q6(s, t, o)) && u ? g("div", {
        class: `${o}-message__icon ${o}-message__icon--${t}-type`
      }, g(Sa, null, {
        default: () => d
      })) : null, g("div", {
        class: `${o}-message__content`
      }, Xt(r)), n ? g(Oi, {
        clsPrefix: o,
        class: `${o}-message__close`,
        onClick: c,
        absolute: true
      }) : null));
    }
  });
  function Q6(e, t, n) {
    if (typeof e == "function") return e();
    {
      const r = t === "loading" ? g(Ii, {
        clsPrefix: n,
        strokeWidth: 24,
        scale: 0.85
      }) : J6[t]();
      return r ? g(Jt, {
        clsPrefix: n,
        key: t
      }, {
        default: () => r
      }) : null;
    }
  }
  const eF = pe({
    name: "MessageEnvironment",
    props: Object.assign(Object.assign({}, P2), {
      duration: {
        type: Number,
        default: 3e3
      },
      onAfterLeave: Function,
      onLeave: Function,
      internalKey: {
        type: String,
        required: true
      },
      onInternalAfterLeave: Function,
      onHide: Function,
      onAfterHide: Function
    }),
    setup(e) {
      let t = null;
      const n = L(true);
      gt(() => {
        r();
      });
      function r() {
        const { duration: u } = e;
        u && (t = window.setTimeout(a, u));
      }
      function o(u) {
        u.currentTarget === u.target && t !== null && (window.clearTimeout(t), t = null);
      }
      function i(u) {
        u.currentTarget === u.target && r();
      }
      function a() {
        const { onHide: u } = e;
        n.value = false, t && (window.clearTimeout(t), t = null), u && u();
      }
      function l() {
        const { onClose: u } = e;
        u && u(), a();
      }
      function s() {
        const { onAfterLeave: u, onInternalAfterLeave: d, onAfterHide: h, internalKey: p } = e;
        u && u(), d && d(p), h && h();
      }
      function c() {
        a();
      }
      return {
        show: n,
        hide: a,
        handleClose: l,
        handleAfterLeave: s,
        handleMouseleave: i,
        handleMouseenter: o,
        deactivate: c
      };
    },
    render() {
      return g(El, {
        appear: true,
        onAfterLeave: this.handleAfterLeave,
        onLeave: this.onLeave
      }, {
        default: () => [
          this.show ? g(Z6, {
            content: this.content,
            type: this.type,
            icon: this.icon,
            showIcon: this.showIcon,
            closable: this.closable,
            onClose: this.handleClose,
            onMouseenter: this.keepAliveOnHover ? this.handleMouseenter : void 0,
            onMouseleave: this.keepAliveOnHover ? this.handleMouseleave : void 0
          }) : null
        ]
      });
    }
  }), tF = Object.assign(Object.assign({}, Fe.props), {
    to: [
      String,
      Object
    ],
    duration: {
      type: Number,
      default: 3e3
    },
    keepAliveOnHover: Boolean,
    max: Number,
    placement: {
      type: String,
      default: "top"
    },
    closable: Boolean,
    containerClass: String,
    containerStyle: [
      String,
      Object
    ]
  }), nF = pe({
    name: "MessageProvider",
    props: tF,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e), n = L([]), r = L({}), o = {
        create(s, c) {
          return i(s, Object.assign({
            type: "default"
          }, c));
        },
        info(s, c) {
          return i(s, Object.assign(Object.assign({}, c), {
            type: "info"
          }));
        },
        success(s, c) {
          return i(s, Object.assign(Object.assign({}, c), {
            type: "success"
          }));
        },
        warning(s, c) {
          return i(s, Object.assign(Object.assign({}, c), {
            type: "warning"
          }));
        },
        error(s, c) {
          return i(s, Object.assign(Object.assign({}, c), {
            type: "error"
          }));
        },
        loading(s, c) {
          return i(s, Object.assign(Object.assign({}, c), {
            type: "loading"
          }));
        },
        destroyAll: l
      };
      ft(E2, {
        props: e,
        mergedClsPrefixRef: t
      }), ft(A2, o);
      function i(s, c) {
        const u = ai(), d = ba(Object.assign(Object.assign({}, c), {
          content: s,
          key: u,
          destroy: () => {
            var p;
            (p = r.value[u]) === null || p === void 0 || p.hide();
          }
        })), { max: h } = e;
        return h && n.value.length >= h && n.value.shift(), n.value.push(d), d;
      }
      function a(s) {
        n.value.splice(n.value.findIndex((c) => c.key === s), 1), delete r.value[s];
      }
      function l() {
        Object.values(r.value).forEach((s) => {
          s.hide();
        });
      }
      return Object.assign({
        mergedClsPrefix: t,
        messageRefs: r,
        messageList: n,
        handleAfterLeave: a
      }, o);
    },
    render() {
      var e, t, n;
      return g(wt, null, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e), this.messageList.length ? g(Np, {
        to: (n = this.to) !== null && n !== void 0 ? n : "body"
      }, g("div", {
        class: [
          `${this.mergedClsPrefix}-message-container`,
          `${this.mergedClsPrefix}-message-container--${this.placement}`,
          this.containerClass
        ],
        key: "message-container",
        style: this.containerStyle
      }, this.messageList.map((r) => g(eF, Object.assign({
        ref: (o) => {
          o && (this.messageRefs[r.key] = o);
        },
        internalKey: r.key,
        onInternalAfterLeave: this.handleAfterLeave
      }, kl(r, [
        "destroy"
      ], void 0), {
        duration: r.duration === void 0 ? this.duration : r.duration,
        keepAliveOnHover: r.keepAliveOnHover === void 0 ? this.keepAliveOnHover : r.keepAliveOnHover,
        closable: r.closable === void 0 ? this.closable : r.closable
      }))))) : null);
    }
  });
  Pn = function() {
    const e = je(A2, null);
    return e === null && $i("use-message", "No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."), e;
  };
  const rF = {
    closeMargin: "16px 12px",
    closeSize: "20px",
    closeIconSize: "16px",
    width: "365px",
    padding: "16px",
    titleFontSize: "16px",
    metaFontSize: "12px",
    descriptionFontSize: "12px"
  };
  function D2(e) {
    const { textColor2: t, successColor: n, infoColor: r, warningColor: o, errorColor: i, popoverColor: a, closeIconColor: l, closeIconColorHover: s, closeIconColorPressed: c, closeColorHover: u, closeColorPressed: d, textColor1: h, textColor3: p, borderRadius: f, fontWeightStrong: m, boxShadow2: b, lineHeight: v, fontSize: y } = e;
    return Object.assign(Object.assign({}, rF), {
      borderRadius: f,
      lineHeight: v,
      fontSize: y,
      headerFontWeight: m,
      iconColor: t,
      iconColorSuccess: n,
      iconColorInfo: r,
      iconColorWarning: o,
      iconColorError: i,
      color: a,
      textColor: t,
      closeIconColor: l,
      closeIconColorHover: s,
      closeIconColorPressed: c,
      closeBorderRadius: f,
      closeColorHover: u,
      closeColorPressed: d,
      headerTextColor: h,
      descriptionTextColor: p,
      actionTextColor: t,
      boxShadow: b
    });
  }
  const oF = {
    name: "Notification",
    common: mt,
    peers: {
      Scrollbar: hi
    },
    self: D2
  }, iF = {
    name: "Notification",
    common: Ue,
    peers: {
      Scrollbar: nr
    },
    self: D2
  }, xd = "n-notification-provider", aF = pe({
    name: "NotificationContainer",
    props: {
      scrollable: {
        type: Boolean,
        required: true
      },
      placement: {
        type: String,
        required: true
      }
    },
    setup() {
      const { mergedThemeRef: e, mergedClsPrefixRef: t, wipTransitionCountRef: n } = je(xd), r = L(null);
      return fn(() => {
        var o, i;
        n.value > 0 ? (o = r == null ? void 0 : r.value) === null || o === void 0 || o.classList.add("transitioning") : (i = r == null ? void 0 : r.value) === null || i === void 0 || i.classList.remove("transitioning");
      }), {
        selfRef: r,
        mergedTheme: e,
        mergedClsPrefix: t,
        transitioning: n
      };
    },
    render() {
      const { $slots: e, scrollable: t, mergedClsPrefix: n, mergedTheme: r, placement: o } = this;
      return g("div", {
        ref: "selfRef",
        class: [
          `${n}-notification-container`,
          t && `${n}-notification-container--scrollable`,
          `${n}-notification-container--${o}`
        ]
      }, t ? g(Bo, {
        theme: r.peers.Scrollbar,
        themeOverrides: r.peerOverrides.Scrollbar,
        contentStyle: {
          overflow: "hidden"
        }
      }, e) : e);
    }
  }), lF = {
    info: () => g(Ti, null),
    success: () => g(ka, null),
    warning: () => g(zi, null),
    error: () => g(_a, null),
    default: () => null
  }, $m = {
    closable: {
      type: Boolean,
      default: true
    },
    type: {
      type: String,
      default: "default"
    },
    avatar: Function,
    title: [
      String,
      Function
    ],
    description: [
      String,
      Function
    ],
    content: [
      String,
      Function
    ],
    meta: [
      String,
      Function
    ],
    action: [
      String,
      Function
    ],
    onClose: {
      type: Function,
      required: true
    },
    keepAliveOnHover: Boolean,
    onMouseenter: Function,
    onMouseleave: Function
  }, sF = ur($m), cF = pe({
    name: "Notification",
    props: $m,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedThemeRef: n, props: r } = je(xd), { inlineThemeDisabled: o, mergedRtlRef: i } = at(), a = rn("Notification", i, t), l = D(() => {
        const { type: c } = e, { self: { color: u, textColor: d, closeIconColor: h, closeIconColorHover: p, closeIconColorPressed: f, headerTextColor: m, descriptionTextColor: b, actionTextColor: v, borderRadius: y, headerFontWeight: w, boxShadow: x, lineHeight: S, fontSize: _, closeMargin: C, closeSize: k, width: R, padding: P, closeIconSize: B, closeBorderRadius: E, closeColorHover: M, closeColorPressed: z, titleFontSize: U, metaFontSize: ee, descriptionFontSize: ne, [Se("iconColor", c)]: ae }, common: { cubicBezierEaseOut: ye, cubicBezierEaseIn: xe, cubicBezierEaseInOut: re } } = n.value, { left: Y, right: H, top: oe, bottom: ce } = En(P);
        return {
          "--n-color": u,
          "--n-font-size": _,
          "--n-text-color": d,
          "--n-description-text-color": b,
          "--n-action-text-color": v,
          "--n-title-text-color": m,
          "--n-title-font-weight": w,
          "--n-bezier": re,
          "--n-bezier-ease-out": ye,
          "--n-bezier-ease-in": xe,
          "--n-border-radius": y,
          "--n-box-shadow": x,
          "--n-close-border-radius": E,
          "--n-close-color-hover": M,
          "--n-close-color-pressed": z,
          "--n-close-icon-color": h,
          "--n-close-icon-color-hover": p,
          "--n-close-icon-color-pressed": f,
          "--n-line-height": S,
          "--n-icon-color": ae,
          "--n-close-margin": C,
          "--n-close-size": k,
          "--n-close-icon-size": B,
          "--n-width": R,
          "--n-padding-left": Y,
          "--n-padding-right": H,
          "--n-padding-top": oe,
          "--n-padding-bottom": ce,
          "--n-title-font-size": U,
          "--n-meta-font-size": ee,
          "--n-description-font-size": ne
        };
      }), s = o ? xt("notification", D(() => e.type[0]), l, r) : void 0;
      return {
        mergedClsPrefix: t,
        showAvatar: D(() => e.avatar || e.type !== "default"),
        handleCloseClick() {
          e.onClose();
        },
        rtlEnabled: a,
        cssVars: o ? void 0 : l,
        themeClass: s == null ? void 0 : s.themeClass,
        onRender: s == null ? void 0 : s.onRender
      };
    },
    render() {
      var e;
      const { mergedClsPrefix: t } = this;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${t}-notification-wrapper`,
          this.themeClass
        ],
        onMouseenter: this.onMouseenter,
        onMouseleave: this.onMouseleave,
        style: this.cssVars
      }, g("div", {
        class: [
          `${t}-notification`,
          this.rtlEnabled && `${t}-notification--rtl`,
          this.themeClass,
          {
            [`${t}-notification--closable`]: this.closable,
            [`${t}-notification--show-avatar`]: this.showAvatar
          }
        ],
        style: this.cssVars
      }, this.showAvatar ? g("div", {
        class: `${t}-notification__avatar`
      }, this.avatar ? Xt(this.avatar) : this.type !== "default" ? g(Jt, {
        clsPrefix: t
      }, {
        default: () => lF[this.type]()
      }) : null) : null, this.closable ? g(Oi, {
        clsPrefix: t,
        class: `${t}-notification__close`,
        onClick: this.handleCloseClick
      }) : null, g("div", {
        ref: "bodyRef",
        class: `${t}-notification-main`
      }, this.title ? g("div", {
        class: `${t}-notification-main__header`
      }, Xt(this.title)) : null, this.description ? g("div", {
        class: `${t}-notification-main__description`
      }, Xt(this.description)) : null, this.content ? g("pre", {
        class: `${t}-notification-main__content`
      }, Xt(this.content)) : null, this.meta || this.action ? g("div", {
        class: `${t}-notification-main-footer`
      }, this.meta ? g("div", {
        class: `${t}-notification-main-footer__meta`
      }, Xt(this.meta)) : null, this.action ? g("div", {
        class: `${t}-notification-main-footer__action`
      }, Xt(this.action)) : null) : null)));
    }
  }), uF = Object.assign(Object.assign({}, $m), {
    duration: Number,
    onClose: Function,
    onLeave: Function,
    onAfterEnter: Function,
    onAfterLeave: Function,
    onHide: Function,
    onAfterShow: Function,
    onAfterHide: Function
  }), dF = pe({
    name: "NotificationEnvironment",
    props: Object.assign(Object.assign({}, uF), {
      internalKey: {
        type: String,
        required: true
      },
      onInternalAfterLeave: {
        type: Function,
        required: true
      }
    }),
    setup(e) {
      const { wipTransitionCountRef: t } = je(xd), n = L(true);
      let r = null;
      function o() {
        n.value = false, r && window.clearTimeout(r);
      }
      function i(f) {
        t.value++, sn(() => {
          f.style.height = `${f.offsetHeight}px`, f.style.maxHeight = "0", f.style.transition = "none", f.offsetHeight, f.style.transition = "", f.style.maxHeight = f.style.height;
        });
      }
      function a(f) {
        t.value--, f.style.height = "", f.style.maxHeight = "";
        const { onAfterEnter: m, onAfterShow: b } = e;
        m && m(), b && b();
      }
      function l(f) {
        t.value++, f.style.maxHeight = `${f.offsetHeight}px`, f.style.height = `${f.offsetHeight}px`, f.offsetHeight;
      }
      function s(f) {
        const { onHide: m } = e;
        m && m(), f.style.maxHeight = "0", f.offsetHeight;
      }
      function c() {
        t.value--;
        const { onAfterLeave: f, onInternalAfterLeave: m, onAfterHide: b, internalKey: v } = e;
        f && f(), m(v), b && b();
      }
      function u() {
        const { duration: f } = e;
        f && (r = window.setTimeout(o, f));
      }
      function d(f) {
        f.currentTarget === f.target && r !== null && (window.clearTimeout(r), r = null);
      }
      function h(f) {
        f.currentTarget === f.target && u();
      }
      function p() {
        const { onClose: f } = e;
        f ? Promise.resolve(f()).then((m) => {
          m !== false && o();
        }) : o();
      }
      return gt(() => {
        e.duration && (r = window.setTimeout(o, e.duration));
      }), {
        show: n,
        hide: o,
        handleClose: p,
        handleAfterLeave: c,
        handleLeave: s,
        handleBeforeLeave: l,
        handleAfterEnter: a,
        handleBeforeEnter: i,
        handleMouseenter: d,
        handleMouseleave: h
      };
    },
    render() {
      return g(Ln, {
        name: "notification-transition",
        appear: true,
        onBeforeEnter: this.handleBeforeEnter,
        onAfterEnter: this.handleAfterEnter,
        onBeforeLeave: this.handleBeforeLeave,
        onLeave: this.handleLeave,
        onAfterLeave: this.handleAfterLeave
      }, {
        default: () => this.show ? g(cF, Object.assign({}, cr(this.$props, sF), {
          onClose: this.handleClose,
          onMouseenter: this.duration && this.keepAliveOnHover ? this.handleMouseenter : void 0,
          onMouseleave: this.duration && this.keepAliveOnHover ? this.handleMouseleave : void 0
        })) : null
      });
    }
  }), fF = W([
    A("notification-container", `
 z-index: 4000;
 position: fixed;
 overflow: visible;
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 `, [
      W(">", [
        A("scrollbar", `
 width: initial;
 overflow: visible;
 height: -moz-fit-content !important;
 height: fit-content !important;
 max-height: 100vh !important;
 `, [
          W(">", [
            A("scrollbar-container", `
 height: -moz-fit-content !important;
 height: fit-content !important;
 max-height: 100vh !important;
 `, [
              A("scrollbar-content", `
 padding-top: 12px;
 padding-bottom: 33px;
 `)
            ])
          ])
        ])
      ]),
      G("top, top-right, top-left", `
 top: 12px;
 `, [
        W("&.transitioning >", [
          A("scrollbar", [
            W(">", [
              A("scrollbar-container", `
 min-height: 100vh !important;
 `)
            ])
          ])
        ])
      ]),
      G("bottom, bottom-right, bottom-left", `
 bottom: 12px;
 `, [
        W(">", [
          A("scrollbar", [
            W(">", [
              A("scrollbar-container", [
                A("scrollbar-content", `
 padding-bottom: 12px;
 `)
              ])
            ])
          ])
        ]),
        A("notification-wrapper", `
 display: flex;
 align-items: flex-end;
 margin-bottom: 0;
 margin-top: 12px;
 `)
      ]),
      G("top, bottom", `
 left: 50%;
 transform: translateX(-50%);
 `, [
        A("notification-wrapper", [
          W("&.notification-transition-enter-from, &.notification-transition-leave-to", `
 transform: scale(0.85);
 `),
          W("&.notification-transition-leave-from, &.notification-transition-enter-to", `
 transform: scale(1);
 `)
        ])
      ]),
      G("top", [
        A("notification-wrapper", `
 transform-origin: top center;
 `)
      ]),
      G("bottom", [
        A("notification-wrapper", `
 transform-origin: bottom center;
 `)
      ]),
      G("top-right, bottom-right", [
        A("notification", `
 margin-left: 28px;
 margin-right: 16px;
 `)
      ]),
      G("top-left, bottom-left", [
        A("notification", `
 margin-left: 16px;
 margin-right: 28px;
 `)
      ]),
      G("top-right", `
 right: 0;
 `, [
        Oc("top-right")
      ]),
      G("top-left", `
 left: 0;
 `, [
        Oc("top-left")
      ]),
      G("bottom-right", `
 right: 0;
 `, [
        Oc("bottom-right")
      ]),
      G("bottom-left", `
 left: 0;
 `, [
        Oc("bottom-left")
      ]),
      G("scrollable", [
        G("top-right", `
 top: 0;
 `),
        G("top-left", `
 top: 0;
 `),
        G("bottom-right", `
 bottom: 0;
 `),
        G("bottom-left", `
 bottom: 0;
 `)
      ]),
      A("notification-wrapper", `
 margin-bottom: 12px;
 `, [
        W("&.notification-transition-enter-from, &.notification-transition-leave-to", `
 opacity: 0;
 margin-top: 0 !important;
 margin-bottom: 0 !important;
 `),
        W("&.notification-transition-leave-from, &.notification-transition-enter-to", `
 opacity: 1;
 `),
        W("&.notification-transition-leave-active", `
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 transform .3s var(--n-bezier-ease-in),
 max-height .3s var(--n-bezier),
 margin-top .3s linear,
 margin-bottom .3s linear,
 box-shadow .3s var(--n-bezier);
 `),
        W("&.notification-transition-enter-active", `
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 transform .3s var(--n-bezier-ease-out),
 max-height .3s var(--n-bezier),
 margin-top .3s linear,
 margin-bottom .3s linear,
 box-shadow .3s var(--n-bezier);
 `)
      ]),
      A("notification", `
 background-color: var(--n-color);
 color: var(--n-text-color);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 font-family: inherit;
 font-size: var(--n-font-size);
 font-weight: 400;
 position: relative;
 display: flex;
 overflow: hidden;
 flex-shrink: 0;
 padding-left: var(--n-padding-left);
 padding-right: var(--n-padding-right);
 width: var(--n-width);
 max-width: calc(100vw - 16px - 16px);
 border-radius: var(--n-border-radius);
 box-shadow: var(--n-box-shadow);
 box-sizing: border-box;
 opacity: 1;
 `, [
        V("avatar", [
          A("icon", `
 color: var(--n-icon-color);
 `),
          A("base-icon", `
 color: var(--n-icon-color);
 `)
        ]),
        G("show-avatar", [
          A("notification-main", `
 margin-left: 40px;
 width: calc(100% - 40px); 
 `)
        ]),
        G("closable", [
          A("notification-main", [
            W("> *:first-child", `
 padding-right: 20px;
 `)
          ]),
          V("close", `
 position: absolute;
 top: 0;
 right: 0;
 margin: var(--n-close-margin);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)
        ]),
        V("avatar", `
 position: absolute;
 top: var(--n-padding-top);
 left: var(--n-padding-left);
 width: 28px;
 height: 28px;
 font-size: 28px;
 display: flex;
 align-items: center;
 justify-content: center;
 `, [
          A("icon", "transition: color .3s var(--n-bezier);")
        ]),
        A("notification-main", `
 padding-top: var(--n-padding-top);
 padding-bottom: var(--n-padding-bottom);
 box-sizing: border-box;
 display: flex;
 flex-direction: column;
 margin-left: 8px;
 width: calc(100% - 8px);
 `, [
          A("notification-main-footer", `
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-top: 12px;
 `, [
            V("meta", `
 font-size: var(--n-meta-font-size);
 transition: color .3s var(--n-bezier-ease-out);
 color: var(--n-description-text-color);
 `),
            V("action", `
 cursor: pointer;
 transition: color .3s var(--n-bezier-ease-out);
 color: var(--n-action-text-color);
 `)
          ]),
          V("header", `
 font-weight: var(--n-title-font-weight);
 font-size: var(--n-title-font-size);
 transition: color .3s var(--n-bezier-ease-out);
 color: var(--n-title-text-color);
 `),
          V("description", `
 margin-top: 8px;
 font-size: var(--n-description-font-size);
 white-space: pre-wrap;
 word-wrap: break-word;
 transition: color .3s var(--n-bezier-ease-out);
 color: var(--n-description-text-color);
 `),
          V("content", `
 line-height: var(--n-line-height);
 margin: 12px 0 0 0;
 font-family: inherit;
 white-space: pre-wrap;
 word-wrap: break-word;
 transition: color .3s var(--n-bezier-ease-out);
 color: var(--n-text-color);
 `, [
            W("&:first-child", "margin: 0;")
          ])
        ])
      ])
    ])
  ]);
  function Oc(e) {
    const n = e.split("-")[1] === "left" ? "calc(-100%)" : "calc(100%)";
    return A("notification-wrapper", [
      W("&.notification-transition-enter-from, &.notification-transition-leave-to", `
 transform: translate(${n}, 0);
 `),
      W("&.notification-transition-leave-from, &.notification-transition-enter-to", `
 transform: translate(0, 0);
 `)
    ]);
  }
  const $2 = "n-notification-api", hF = Object.assign(Object.assign({}, Fe.props), {
    containerClass: String,
    containerStyle: [
      String,
      Object
    ],
    to: [
      String,
      Object
    ],
    scrollable: {
      type: Boolean,
      default: true
    },
    max: Number,
    placement: {
      type: String,
      default: "top-right"
    },
    keepAliveOnHover: Boolean
  }), pF = pe({
    name: "NotificationProvider",
    props: hF,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e), n = L([]), r = {}, o = /* @__PURE__ */ new Set();
      function i(p) {
        const f = ai(), m = () => {
          o.add(f), r[f] && r[f].hide();
        }, b = ba(Object.assign(Object.assign({}, p), {
          key: f,
          destroy: m,
          hide: m,
          deactivate: m
        })), { max: v } = e;
        if (v && n.value.length - o.size >= v) {
          let y = false, w = 0;
          for (const x of n.value) {
            if (!o.has(x.key)) {
              r[x.key] && (x.destroy(), y = true);
              break;
            }
            w++;
          }
          y || n.value.splice(w, 1);
        }
        return n.value.push(b), b;
      }
      const a = [
        "info",
        "success",
        "warning",
        "error"
      ].map((p) => (f) => i(Object.assign(Object.assign({}, f), {
        type: p
      })));
      function l(p) {
        o.delete(p), n.value.splice(n.value.findIndex((f) => f.key === p), 1);
      }
      const s = Fe("Notification", "-notification", fF, oF, e, t), c = {
        create: i,
        info: a[0],
        success: a[1],
        warning: a[2],
        error: a[3],
        open: d,
        destroyAll: h
      }, u = L(0);
      ft($2, c), ft(xd, {
        props: e,
        mergedClsPrefixRef: t,
        mergedThemeRef: s,
        wipTransitionCountRef: u
      });
      function d(p) {
        return i(p);
      }
      function h() {
        Object.values(n.value).forEach((p) => {
          p.hide();
        });
      }
      return Object.assign({
        mergedClsPrefix: t,
        notificationList: n,
        notificationRefs: r,
        handleAfterLeave: l
      }, c);
    },
    render() {
      var e, t, n;
      const { placement: r } = this;
      return g(wt, null, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e), this.notificationList.length ? g(Np, {
        to: (n = this.to) !== null && n !== void 0 ? n : "body"
      }, g(aF, {
        class: this.containerClass,
        style: this.containerStyle,
        scrollable: this.scrollable && r !== "top" && r !== "bottom",
        placement: r
      }, {
        default: () => this.notificationList.map((o) => g(dF, Object.assign({
          ref: (i) => {
            const a = o.key;
            i === null ? delete this.notificationRefs[a] : this.notificationRefs[a] = i;
          }
        }, kl(o, [
          "destroy",
          "hide",
          "deactivate"
        ]), {
          internalKey: o.key,
          onInternalAfterLeave: this.handleAfterLeave,
          keepAliveOnHover: o.keepAliveOnHover === void 0 ? this.keepAliveOnHover : o.keepAliveOnHover
        })))
      })) : null);
    }
  });
  function z2() {
    const e = je($2, null);
    return e === null && $i("use-notification", "No outer `n-notification-provider` found."), e;
  }
  function O2(e) {
    const { textColor1: t, dividerColor: n, fontWeightStrong: r } = e;
    return {
      textColor: t,
      color: n,
      fontWeight: r
    };
  }
  let mF, gF, vF, bF;
  mF = {
    common: mt,
    self: O2
  };
  gF = {
    name: "Divider",
    common: Ue,
    self: O2
  };
  vF = A("divider", `
 position: relative;
 display: flex;
 width: 100%;
 box-sizing: border-box;
 font-size: 16px;
 color: var(--n-text-color);
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
`, [
    At("vertical", `
 margin-top: 24px;
 margin-bottom: 24px;
 `, [
      At("no-title", `
 display: flex;
 align-items: center;
 `)
    ]),
    V("title", `
 display: flex;
 align-items: center;
 margin-left: 12px;
 margin-right: 12px;
 white-space: nowrap;
 font-weight: var(--n-font-weight);
 `),
    G("title-position-left", [
      V("line", [
        G("left", {
          width: "28px"
        })
      ])
    ]),
    G("title-position-right", [
      V("line", [
        G("right", {
          width: "28px"
        })
      ])
    ]),
    G("dashed", [
      V("line", `
 background-color: #0000;
 height: 0px;
 width: 100%;
 border-style: dashed;
 border-width: 1px 0 0;
 `)
    ]),
    G("vertical", `
 display: inline-block;
 height: 1em;
 margin: 0 8px;
 vertical-align: middle;
 width: 1px;
 `),
    V("line", `
 border: none;
 transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
 height: 1px;
 width: 100%;
 margin: 0;
 `),
    At("dashed", [
      V("line", {
        backgroundColor: "var(--n-color)"
      })
    ]),
    G("dashed", [
      V("line", {
        borderColor: "var(--n-color)"
      })
    ]),
    G("vertical", {
      backgroundColor: "var(--n-color)"
    })
  ]);
  bF = Object.assign(Object.assign({}, Fe.props), {
    titlePlacement: {
      type: String,
      default: "center"
    },
    dashed: Boolean,
    vertical: Boolean
  });
  zm = pe({
    name: "Divider",
    props: bF,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Divider", "-divider", vF, mF, e, t), o = D(() => {
        const { common: { cubicBezierEaseInOut: a }, self: { color: l, textColor: s, fontWeight: c } } = r.value;
        return {
          "--n-bezier": a,
          "--n-color": l,
          "--n-text-color": s,
          "--n-font-weight": c
        };
      }), i = n ? xt("divider", void 0, o, e) : void 0;
      return {
        mergedClsPrefix: t,
        cssVars: n ? void 0 : o,
        themeClass: i == null ? void 0 : i.themeClass,
        onRender: i == null ? void 0 : i.onRender
      };
    },
    render() {
      var e;
      const { $slots: t, titlePlacement: n, vertical: r, dashed: o, cssVars: i, mergedClsPrefix: a } = this;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        role: "separator",
        class: [
          `${a}-divider`,
          this.themeClass,
          {
            [`${a}-divider--vertical`]: r,
            [`${a}-divider--no-title`]: !t.default,
            [`${a}-divider--dashed`]: o,
            [`${a}-divider--title-position-${n}`]: t.default && n
          }
        ],
        style: i
      }, r ? null : g("div", {
        class: `${a}-divider__line ${a}-divider__line--left`
      }), !r && t.default ? g(wt, null, g("div", {
        class: `${a}-divider__title`
      }, this.$slots), g("div", {
        class: `${a}-divider__line ${a}-divider__line--right`
      })) : null);
    }
  });
  function I2(e) {
    const { modalColor: t, textColor1: n, textColor2: r, boxShadow3: o, lineHeight: i, fontWeightStrong: a, dividerColor: l, closeColorHover: s, closeColorPressed: c, closeIconColor: u, closeIconColorHover: d, closeIconColorPressed: h, borderRadius: p, primaryColorHover: f } = e;
    return {
      bodyPadding: "16px 24px",
      borderRadius: p,
      headerPadding: "16px 24px",
      footerPadding: "16px 24px",
      color: t,
      textColor: r,
      titleTextColor: n,
      titleFontSize: "18px",
      titleFontWeight: a,
      boxShadow: o,
      lineHeight: i,
      headerBorderBottom: `1px solid ${l}`,
      footerBorderTop: `1px solid ${l}`,
      closeIconColor: u,
      closeIconColorHover: d,
      closeIconColorPressed: h,
      closeSize: "22px",
      closeIconSize: "18px",
      closeColorHover: s,
      closeColorPressed: c,
      closeBorderRadius: p,
      resizableTriggerColorHover: f
    };
  }
  const yF = {
    name: "Drawer",
    common: mt,
    peers: {
      Scrollbar: hi
    },
    self: I2
  }, xF = {
    name: "Drawer",
    common: Ue,
    peers: {
      Scrollbar: nr
    },
    self: I2
  }, wF = pe({
    name: "NDrawerContent",
    inheritAttrs: false,
    props: {
      blockScroll: Boolean,
      show: {
        type: Boolean,
        default: void 0
      },
      displayDirective: {
        type: String,
        required: true
      },
      placement: {
        type: String,
        required: true
      },
      contentClass: String,
      contentStyle: [
        Object,
        String
      ],
      nativeScrollbar: {
        type: Boolean,
        required: true
      },
      scrollbarProps: Object,
      trapFocus: {
        type: Boolean,
        default: true
      },
      autoFocus: {
        type: Boolean,
        default: true
      },
      showMask: {
        type: [
          Boolean,
          String
        ],
        required: true
      },
      maxWidth: Number,
      maxHeight: Number,
      minWidth: Number,
      minHeight: Number,
      resizable: Boolean,
      onClickoutside: Function,
      onAfterLeave: Function,
      onAfterEnter: Function,
      onEsc: Function
    },
    setup(e) {
      const t = L(!!e.show), n = L(null), r = je(Zp);
      let o = 0, i = "", a = null;
      const l = L(false), s = L(false), c = D(() => e.placement === "top" || e.placement === "bottom"), { mergedClsPrefixRef: u, mergedRtlRef: d } = at(e), h = rn("Drawer", d, u), p = _, f = (R) => {
        s.value = true, o = c.value ? R.clientY : R.clientX, i = document.body.style.cursor, document.body.style.cursor = c.value ? "ns-resize" : "ew-resize", document.body.addEventListener("mousemove", S), document.body.addEventListener("mouseleave", p), document.body.addEventListener("mouseup", _);
      }, m = () => {
        a !== null && (window.clearTimeout(a), a = null), s.value ? l.value = true : a = window.setTimeout(() => {
          l.value = true;
        }, 300);
      }, b = () => {
        a !== null && (window.clearTimeout(a), a = null), l.value = false;
      }, { doUpdateHeight: v, doUpdateWidth: y } = r, w = (R) => {
        const { maxWidth: P } = e;
        if (P && R > P) return P;
        const { minWidth: B } = e;
        return B && R < B ? B : R;
      }, x = (R) => {
        const { maxHeight: P } = e;
        if (P && R > P) return P;
        const { minHeight: B } = e;
        return B && R < B ? B : R;
      };
      function S(R) {
        var P, B;
        if (s.value) if (c.value) {
          let E = ((P = n.value) === null || P === void 0 ? void 0 : P.offsetHeight) || 0;
          const M = o - R.clientY;
          E += e.placement === "bottom" ? M : -M, E = x(E), v(E), o = R.clientY;
        } else {
          let E = ((B = n.value) === null || B === void 0 ? void 0 : B.offsetWidth) || 0;
          const M = o - R.clientX;
          E += e.placement === "right" ? M : -M, E = w(E), y(E), o = R.clientX;
        }
      }
      function _() {
        s.value && (o = 0, s.value = false, document.body.style.cursor = i, document.body.removeEventListener("mousemove", S), document.body.removeEventListener("mouseup", _), document.body.removeEventListener("mouseleave", p));
      }
      fn(() => {
        e.show && (t.value = true);
      }), lt(() => e.show, (R) => {
        R || _();
      }), Zt(() => {
        _();
      });
      const C = D(() => {
        const { show: R } = e, P = [
          [
            zo,
            R
          ]
        ];
        return e.showMask || P.push([
          ul,
          e.onClickoutside,
          void 0,
          {
            capture: true
          }
        ]), P;
      });
      function k() {
        var R;
        t.value = false, (R = e.onAfterLeave) === null || R === void 0 || R.call(e);
      }
      return ow(D(() => e.blockScroll && t.value)), ft(Ks, n), ft(_l, null), ft(Ys, null), {
        bodyRef: n,
        rtlEnabled: h,
        mergedClsPrefix: r.mergedClsPrefixRef,
        isMounted: r.isMountedRef,
        mergedTheme: r.mergedThemeRef,
        displayed: t,
        transitionName: D(() => ({
          right: "slide-in-from-right-transition",
          left: "slide-in-from-left-transition",
          top: "slide-in-from-top-transition",
          bottom: "slide-in-from-bottom-transition"
        })[e.placement]),
        handleAfterLeave: k,
        bodyDirectives: C,
        handleMousedownResizeTrigger: f,
        handleMouseenterResizeTrigger: m,
        handleMouseleaveResizeTrigger: b,
        isDragging: s,
        isHoverOnResizeTrigger: l
      };
    },
    render() {
      const { $slots: e, mergedClsPrefix: t } = this;
      return this.displayDirective === "show" || this.displayed || this.show ? $r(g("div", {
        role: "none"
      }, g(nm, {
        disabled: !this.showMask || !this.trapFocus,
        active: this.show,
        autoFocus: this.autoFocus,
        onEsc: this.onEsc
      }, {
        default: () => g(Ln, {
          name: this.transitionName,
          appear: this.isMounted,
          onAfterEnter: this.onAfterEnter,
          onAfterLeave: this.handleAfterLeave
        }, {
          default: () => $r(g("div", Mn(this.$attrs, {
            role: "dialog",
            ref: "bodyRef",
            "aria-modal": "true",
            class: [
              `${t}-drawer`,
              this.rtlEnabled && `${t}-drawer--rtl`,
              `${t}-drawer--${this.placement}-placement`,
              this.isDragging && `${t}-drawer--unselectable`,
              this.nativeScrollbar && `${t}-drawer--native-scrollbar`
            ]
          }), [
            this.resizable ? g("div", {
              class: [
                `${t}-drawer__resize-trigger`,
                (this.isDragging || this.isHoverOnResizeTrigger) && `${t}-drawer__resize-trigger--hover`
              ],
              onMouseenter: this.handleMouseenterResizeTrigger,
              onMouseleave: this.handleMouseleaveResizeTrigger,
              onMousedown: this.handleMousedownResizeTrigger
            }) : null,
            this.nativeScrollbar ? g("div", {
              class: [
                `${t}-drawer-content-wrapper`,
                this.contentClass
              ],
              style: this.contentStyle,
              role: "none"
            }, e) : g(Bo, Object.assign({}, this.scrollbarProps, {
              contentStyle: this.contentStyle,
              contentClass: [
                `${t}-drawer-content-wrapper`,
                this.contentClass
              ],
              theme: this.mergedTheme.peers.Scrollbar,
              themeOverrides: this.mergedTheme.peerOverrides.Scrollbar
            }), e)
          ]), this.bodyDirectives)
        })
      })), [
        [
          zo,
          this.displayDirective === "if" || this.displayed || this.show
        ]
      ]) : null;
    }
  }), { cubicBezierEaseIn: CF, cubicBezierEaseOut: SF } = yr;
  function _F({ duration: e = "0.3s", leaveDuration: t = "0.2s", name: n = "slide-in-from-bottom" } = {}) {
    return [
      W(`&.${n}-transition-leave-active`, {
        transition: `transform ${t} ${CF}`
      }),
      W(`&.${n}-transition-enter-active`, {
        transition: `transform ${e} ${SF}`
      }),
      W(`&.${n}-transition-enter-to`, {
        transform: "translateY(0)"
      }),
      W(`&.${n}-transition-enter-from`, {
        transform: "translateY(100%)"
      }),
      W(`&.${n}-transition-leave-from`, {
        transform: "translateY(0)"
      }),
      W(`&.${n}-transition-leave-to`, {
        transform: "translateY(100%)"
      })
    ];
  }
  const { cubicBezierEaseIn: kF, cubicBezierEaseOut: RF } = yr;
  function AF({ duration: e = "0.3s", leaveDuration: t = "0.2s", name: n = "slide-in-from-left" } = {}) {
    return [
      W(`&.${n}-transition-leave-active`, {
        transition: `transform ${t} ${kF}`
      }),
      W(`&.${n}-transition-enter-active`, {
        transition: `transform ${e} ${RF}`
      }),
      W(`&.${n}-transition-enter-to`, {
        transform: "translateX(0)"
      }),
      W(`&.${n}-transition-enter-from`, {
        transform: "translateX(-100%)"
      }),
      W(`&.${n}-transition-leave-from`, {
        transform: "translateX(0)"
      }),
      W(`&.${n}-transition-leave-to`, {
        transform: "translateX(-100%)"
      })
    ];
  }
  const { cubicBezierEaseIn: EF, cubicBezierEaseOut: TF } = yr;
  function PF({ duration: e = "0.3s", leaveDuration: t = "0.2s", name: n = "slide-in-from-right" } = {}) {
    return [
      W(`&.${n}-transition-leave-active`, {
        transition: `transform ${t} ${EF}`
      }),
      W(`&.${n}-transition-enter-active`, {
        transition: `transform ${e} ${TF}`
      }),
      W(`&.${n}-transition-enter-to`, {
        transform: "translateX(0)"
      }),
      W(`&.${n}-transition-enter-from`, {
        transform: "translateX(100%)"
      }),
      W(`&.${n}-transition-leave-from`, {
        transform: "translateX(0)"
      }),
      W(`&.${n}-transition-leave-to`, {
        transform: "translateX(100%)"
      })
    ];
  }
  const { cubicBezierEaseIn: DF, cubicBezierEaseOut: $F } = yr;
  function zF({ duration: e = "0.3s", leaveDuration: t = "0.2s", name: n = "slide-in-from-top" } = {}) {
    return [
      W(`&.${n}-transition-leave-active`, {
        transition: `transform ${t} ${DF}`
      }),
      W(`&.${n}-transition-enter-active`, {
        transition: `transform ${e} ${$F}`
      }),
      W(`&.${n}-transition-enter-to`, {
        transform: "translateY(0)"
      }),
      W(`&.${n}-transition-enter-from`, {
        transform: "translateY(-100%)"
      }),
      W(`&.${n}-transition-leave-from`, {
        transform: "translateY(0)"
      }),
      W(`&.${n}-transition-leave-to`, {
        transform: "translateY(-100%)"
      })
    ];
  }
  const OF = W([
    A("drawer", `
 word-break: break-word;
 line-height: var(--n-line-height);
 position: absolute;
 pointer-events: all;
 box-shadow: var(--n-box-shadow);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 background-color: var(--n-color);
 color: var(--n-text-color);
 box-sizing: border-box;
 `, [
      PF(),
      AF(),
      zF(),
      _F(),
      G("unselectable", `
 user-select: none; 
 -webkit-user-select: none;
 `),
      G("native-scrollbar", [
        A("drawer-content-wrapper", `
 overflow: auto;
 height: 100%;
 `)
      ]),
      V("resize-trigger", `
 position: absolute;
 background-color: #0000;
 transition: background-color .3s var(--n-bezier);
 `, [
        G("hover", `
 background-color: var(--n-resize-trigger-color-hover);
 `)
      ]),
      A("drawer-content-wrapper", `
 box-sizing: border-box;
 `),
      A("drawer-content", `
 height: 100%;
 display: flex;
 flex-direction: column;
 `, [
        G("native-scrollbar", [
          A("drawer-body-content-wrapper", `
 height: 100%;
 overflow: auto;
 `)
        ]),
        A("drawer-body", `
 flex: 1 0 0;
 overflow: hidden;
 `),
        A("drawer-body-content-wrapper", `
 box-sizing: border-box;
 padding: var(--n-body-padding);
 `),
        A("drawer-header", `
 font-weight: var(--n-title-font-weight);
 line-height: 1;
 font-size: var(--n-title-font-size);
 color: var(--n-title-text-color);
 padding: var(--n-header-padding);
 transition: border .3s var(--n-bezier);
 border-bottom: 1px solid var(--n-divider-color);
 border-bottom: var(--n-header-border-bottom);
 display: flex;
 justify-content: space-between;
 align-items: center;
 `, [
          V("main", `
 flex: 1;
 `),
          V("close", `
 margin-left: 6px;
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)
        ]),
        A("drawer-footer", `
 display: flex;
 justify-content: flex-end;
 border-top: var(--n-footer-border-top);
 transition: border .3s var(--n-bezier);
 padding: var(--n-footer-padding);
 `)
      ]),
      G("right-placement", `
 top: 0;
 bottom: 0;
 right: 0;
 border-top-left-radius: var(--n-border-radius);
 border-bottom-left-radius: var(--n-border-radius);
 `, [
        V("resize-trigger", `
 width: 3px;
 height: 100%;
 top: 0;
 left: 0;
 transform: translateX(-1.5px);
 cursor: ew-resize;
 `)
      ]),
      G("left-placement", `
 top: 0;
 bottom: 0;
 left: 0;
 border-top-right-radius: var(--n-border-radius);
 border-bottom-right-radius: var(--n-border-radius);
 `, [
        V("resize-trigger", `
 width: 3px;
 height: 100%;
 top: 0;
 right: 0;
 transform: translateX(1.5px);
 cursor: ew-resize;
 `)
      ]),
      G("top-placement", `
 top: 0;
 left: 0;
 right: 0;
 border-bottom-left-radius: var(--n-border-radius);
 border-bottom-right-radius: var(--n-border-radius);
 `, [
        V("resize-trigger", `
 width: 100%;
 height: 3px;
 bottom: 0;
 left: 0;
 transform: translateY(1.5px);
 cursor: ns-resize;
 `)
      ]),
      G("bottom-placement", `
 left: 0;
 bottom: 0;
 right: 0;
 border-top-left-radius: var(--n-border-radius);
 border-top-right-radius: var(--n-border-radius);
 `, [
        V("resize-trigger", `
 width: 100%;
 height: 3px;
 top: 0;
 left: 0;
 transform: translateY(-1.5px);
 cursor: ns-resize;
 `)
      ])
    ]),
    W("body", [
      W(">", [
        A("drawer-container", `
 position: fixed;
 `)
      ])
    ]),
    A("drawer-container", `
 position: relative;
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 pointer-events: none;
 `, [
      W("> *", `
 pointer-events: all;
 `)
    ]),
    A("drawer-mask", `
 background-color: rgba(0, 0, 0, .3);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `, [
      G("invisible", `
 background-color: rgba(0, 0, 0, 0)
 `),
      hd({
        enterDuration: "0.2s",
        leaveDuration: "0.2s",
        enterCubicBezier: "var(--n-bezier-in)",
        leaveCubicBezier: "var(--n-bezier-out)"
      })
    ])
  ]), IF = Object.assign(Object.assign({}, Fe.props), {
    show: Boolean,
    width: [
      Number,
      String
    ],
    height: [
      Number,
      String
    ],
    placement: {
      type: String,
      default: "right"
    },
    maskClosable: {
      type: Boolean,
      default: true
    },
    showMask: {
      type: [
        Boolean,
        String
      ],
      default: true
    },
    to: [
      String,
      Object
    ],
    displayDirective: {
      type: String,
      default: "if"
    },
    nativeScrollbar: {
      type: Boolean,
      default: true
    },
    zIndex: Number,
    onMaskClick: Function,
    scrollbarProps: Object,
    contentClass: String,
    contentStyle: [
      Object,
      String
    ],
    trapFocus: {
      type: Boolean,
      default: true
    },
    onEsc: Function,
    autoFocus: {
      type: Boolean,
      default: true
    },
    closeOnEsc: {
      type: Boolean,
      default: true
    },
    blockScroll: {
      type: Boolean,
      default: true
    },
    maxWidth: Number,
    maxHeight: Number,
    minWidth: Number,
    minHeight: Number,
    resizable: Boolean,
    defaultWidth: {
      type: [
        Number,
        String
      ],
      default: 251
    },
    defaultHeight: {
      type: [
        Number,
        String
      ],
      default: 251
    },
    onUpdateWidth: [
      Function,
      Array
    ],
    onUpdateHeight: [
      Function,
      Array
    ],
    "onUpdate:width": [
      Function,
      Array
    ],
    "onUpdate:height": [
      Function,
      Array
    ],
    "onUpdate:show": [
      Function,
      Array
    ],
    onUpdateShow: [
      Function,
      Array
    ],
    onAfterEnter: Function,
    onAfterLeave: Function,
    drawerStyle: [
      String,
      Object
    ],
    drawerClass: String,
    target: null,
    onShow: Function,
    onHide: Function
  }), wd = pe({
    name: "Drawer",
    inheritAttrs: false,
    props: IF,
    setup(e) {
      const { mergedClsPrefixRef: t, namespaceRef: n, inlineThemeDisabled: r } = at(e), o = Pi(), i = Fe("Drawer", "-drawer", OF, yF, e, t), a = L(e.defaultWidth), l = L(e.defaultHeight), s = mn($e(e, "width"), a), c = mn($e(e, "height"), l), u = D(() => {
        const { placement: _ } = e;
        return _ === "top" || _ === "bottom" ? "" : Ft(s.value);
      }), d = D(() => {
        const { placement: _ } = e;
        return _ === "left" || _ === "right" ? "" : Ft(c.value);
      }), h = (_) => {
        const { onUpdateWidth: C, "onUpdate:width": k } = e;
        C && Te(C, _), k && Te(k, _), a.value = _;
      }, p = (_) => {
        const { onUpdateHeight: C, "onUpdate:width": k } = e;
        C && Te(C, _), k && Te(k, _), l.value = _;
      }, f = D(() => [
        {
          width: u.value,
          height: d.value
        },
        e.drawerStyle || ""
      ]);
      function m(_) {
        const { onMaskClick: C, maskClosable: k } = e;
        k && w(false), C && C(_);
      }
      function b(_) {
        m(_);
      }
      const v = rw();
      function y(_) {
        var C;
        (C = e.onEsc) === null || C === void 0 || C.call(e), e.show && e.closeOnEsc && Cw(_) && (v.value || w(false));
      }
      function w(_) {
        const { onHide: C, onUpdateShow: k, "onUpdate:show": R } = e;
        k && Te(k, _), R && Te(R, _), C && !_ && Te(C, _);
      }
      ft(Zp, {
        isMountedRef: o,
        mergedThemeRef: i,
        mergedClsPrefixRef: t,
        doUpdateShow: w,
        doUpdateHeight: p,
        doUpdateWidth: h
      });
      const x = D(() => {
        const { common: { cubicBezierEaseInOut: _, cubicBezierEaseIn: C, cubicBezierEaseOut: k }, self: { color: R, textColor: P, boxShadow: B, lineHeight: E, headerPadding: M, footerPadding: z, borderRadius: U, bodyPadding: ee, titleFontSize: ne, titleTextColor: ae, titleFontWeight: ye, headerBorderBottom: xe, footerBorderTop: re, closeIconColor: Y, closeIconColorHover: H, closeIconColorPressed: oe, closeColorHover: ce, closeColorPressed: be, closeIconSize: ie, closeSize: fe, closeBorderRadius: F, resizableTriggerColorHover: se } } = i.value;
        return {
          "--n-line-height": E,
          "--n-color": R,
          "--n-border-radius": U,
          "--n-text-color": P,
          "--n-box-shadow": B,
          "--n-bezier": _,
          "--n-bezier-out": k,
          "--n-bezier-in": C,
          "--n-header-padding": M,
          "--n-body-padding": ee,
          "--n-footer-padding": z,
          "--n-title-text-color": ae,
          "--n-title-font-size": ne,
          "--n-title-font-weight": ye,
          "--n-header-border-bottom": xe,
          "--n-footer-border-top": re,
          "--n-close-icon-color": Y,
          "--n-close-icon-color-hover": H,
          "--n-close-icon-color-pressed": oe,
          "--n-close-size": fe,
          "--n-close-color-hover": ce,
          "--n-close-color-pressed": be,
          "--n-close-icon-size": ie,
          "--n-close-border-radius": F,
          "--n-resize-trigger-color-hover": se
        };
      }), S = r ? xt("drawer", void 0, x, e) : void 0;
      return {
        mergedClsPrefix: t,
        namespace: n,
        mergedBodyStyle: f,
        handleOutsideClick: b,
        handleMaskClick: m,
        handleEsc: y,
        mergedTheme: i,
        cssVars: r ? void 0 : x,
        themeClass: S == null ? void 0 : S.themeClass,
        onRender: S == null ? void 0 : S.onRender,
        isMounted: o
      };
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g(ad, {
        to: this.to,
        show: this.show
      }, {
        default: () => {
          var t;
          return (t = this.onRender) === null || t === void 0 || t.call(this), $r(g("div", {
            class: [
              `${e}-drawer-container`,
              this.namespace,
              this.themeClass
            ],
            style: this.cssVars,
            role: "none"
          }, this.showMask ? g(Ln, {
            name: "fade-in-transition",
            appear: this.isMounted
          }, {
            default: () => this.show ? g("div", {
              "aria-hidden": true,
              class: [
                `${e}-drawer-mask`,
                this.showMask === "transparent" && `${e}-drawer-mask--invisible`
              ],
              onClick: this.handleMaskClick
            }) : null
          }) : null, g(wF, Object.assign({}, this.$attrs, {
            class: [
              this.drawerClass,
              this.$attrs.class
            ],
            style: [
              this.mergedBodyStyle,
              this.$attrs.style
            ],
            blockScroll: this.blockScroll,
            contentStyle: this.contentStyle,
            contentClass: this.contentClass,
            placement: this.placement,
            scrollbarProps: this.scrollbarProps,
            show: this.show,
            displayDirective: this.displayDirective,
            nativeScrollbar: this.nativeScrollbar,
            onAfterEnter: this.onAfterEnter,
            onAfterLeave: this.onAfterLeave,
            trapFocus: this.trapFocus,
            autoFocus: this.autoFocus,
            resizable: this.resizable,
            maxHeight: this.maxHeight,
            minHeight: this.minHeight,
            maxWidth: this.maxWidth,
            minWidth: this.minWidth,
            showMask: this.showMask,
            onEsc: this.handleEsc,
            onClickoutside: this.handleOutsideClick
          }), this.$slots)), [
            [
              od,
              {
                zIndex: this.zIndex,
                enabled: this.show
              }
            ]
          ]);
        }
      });
    }
  }), FF = {
    title: String,
    headerClass: String,
    headerStyle: [
      Object,
      String
    ],
    footerClass: String,
    footerStyle: [
      Object,
      String
    ],
    bodyClass: String,
    bodyStyle: [
      Object,
      String
    ],
    bodyContentClass: String,
    bodyContentStyle: [
      Object,
      String
    ],
    nativeScrollbar: {
      type: Boolean,
      default: true
    },
    scrollbarProps: Object,
    closable: Boolean
  }, Cd = pe({
    name: "DrawerContent",
    props: FF,
    slots: Object,
    setup() {
      const e = je(Zp, null);
      e || $i("drawer-content", "`n-drawer-content` must be placed inside `n-drawer`.");
      const { doUpdateShow: t } = e;
      function n() {
        t(false);
      }
      return {
        handleCloseClick: n,
        mergedTheme: e.mergedThemeRef,
        mergedClsPrefix: e.mergedClsPrefixRef
      };
    },
    render() {
      const { title: e, mergedClsPrefix: t, nativeScrollbar: n, mergedTheme: r, bodyClass: o, bodyStyle: i, bodyContentClass: a, bodyContentStyle: l, headerClass: s, headerStyle: c, footerClass: u, footerStyle: d, scrollbarProps: h, closable: p, $slots: f } = this;
      return g("div", {
        role: "none",
        class: [
          `${t}-drawer-content`,
          n && `${t}-drawer-content--native-scrollbar`
        ]
      }, f.header || e || p ? g("div", {
        class: [
          `${t}-drawer-header`,
          s
        ],
        style: c,
        role: "none"
      }, g("div", {
        class: `${t}-drawer-header__main`,
        role: "heading",
        "aria-level": "1"
      }, f.header !== void 0 ? f.header() : e), p && g(Oi, {
        onClick: this.handleCloseClick,
        clsPrefix: t,
        class: `${t}-drawer-header__close`,
        absolute: true
      })) : null, n ? g("div", {
        class: [
          `${t}-drawer-body`,
          o
        ],
        style: i,
        role: "none"
      }, g("div", {
        class: [
          `${t}-drawer-body-content-wrapper`,
          a
        ],
        style: l,
        role: "none"
      }, f)) : g(Bo, Object.assign({
        themeOverrides: r.peerOverrides.Scrollbar,
        theme: r.peers.Scrollbar
      }, h, {
        class: `${t}-drawer-body`,
        contentClass: [
          `${t}-drawer-body-content-wrapper`,
          a
        ],
        contentStyle: l
      }), f), f.footer ? g("div", {
        class: [
          `${t}-drawer-footer`,
          u
        ],
        style: d,
        role: "none"
      }, f.footer()) : null);
    }
  }), MF = {
    actionMargin: "0 0 0 20px",
    actionMarginRtl: "0 20px 0 0"
  }, LF = {
    name: "DynamicInput",
    common: Ue,
    peers: {
      Input: Fr,
      Button: xr
    },
    self() {
      return MF;
    }
  }, F2 = {
    gapSmall: "4px 8px",
    gapMedium: "8px 12px",
    gapLarge: "12px 16px"
  }, M2 = {
    name: "Space",
    self() {
      return F2;
    }
  };
  function BF() {
    return F2;
  }
  const NF = {
    self: BF
  };
  let Ef;
  function HF() {
    if (!ui) return true;
    if (Ef === void 0) {
      const e = document.createElement("div");
      e.style.display = "flex", e.style.flexDirection = "column", e.style.rowGap = "1px", e.appendChild(document.createElement("div")), e.appendChild(document.createElement("div")), document.body.appendChild(e);
      const t = e.scrollHeight === 1;
      return document.body.removeChild(e), Ef = t;
    }
    return Ef;
  }
  let jF, WF, UF, L2, VF;
  jF = Object.assign(Object.assign({}, Fe.props), {
    align: String,
    justify: {
      type: String,
      default: "start"
    },
    inline: Boolean,
    vertical: Boolean,
    reverse: Boolean,
    size: {
      type: [
        String,
        Number,
        Array
      ],
      default: "medium"
    },
    wrapItem: {
      type: Boolean,
      default: true
    },
    itemClass: String,
    itemStyle: [
      String,
      Object
    ],
    wrap: {
      type: Boolean,
      default: true
    },
    internalUseGap: {
      type: Boolean,
      default: void 0
    }
  });
  Ta = pe({
    name: "Space",
    props: jF,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e), r = Fe("Space", "-space", void 0, NF, e, t), o = rn("Space", n, t);
      return {
        useGap: HF(),
        rtlEnabled: o,
        mergedClsPrefix: t,
        margin: D(() => {
          const { size: i } = e;
          if (Array.isArray(i)) return {
            horizontal: i[0],
            vertical: i[1]
          };
          if (typeof i == "number") return {
            horizontal: i,
            vertical: i
          };
          const { self: { [Se("gap", i)]: a } } = r.value, { row: l, col: s } = Vx(a);
          return {
            horizontal: pn(s),
            vertical: pn(l)
          };
        })
      };
    },
    render() {
      const { vertical: e, reverse: t, align: n, inline: r, justify: o, itemClass: i, itemStyle: a, margin: l, wrap: s, mergedClsPrefix: c, rtlEnabled: u, useGap: d, wrapItem: h, internalUseGap: p } = this, f = ro(sd(this), false);
      if (!f.length) return null;
      const m = `${l.horizontal}px`, b = `${l.horizontal / 2}px`, v = `${l.vertical}px`, y = `${l.vertical / 2}px`, w = f.length - 1, x = o.startsWith("space-");
      return g("div", {
        role: "none",
        class: [
          `${c}-space`,
          u && `${c}-space--rtl`
        ],
        style: {
          display: r ? "inline-flex" : "flex",
          flexDirection: e && !t ? "column" : e && t ? "column-reverse" : !e && t ? "row-reverse" : "row",
          justifyContent: [
            "start",
            "end"
          ].includes(o) ? `flex-${o}` : o,
          flexWrap: !s || e ? "nowrap" : "wrap",
          marginTop: d || e ? "" : `-${y}`,
          marginBottom: d || e ? "" : `-${y}`,
          alignItems: n,
          gap: d ? `${l.vertical}px ${l.horizontal}px` : ""
        }
      }, !h && (d || p) ? f : f.map((S, _) => S.type === Rn ? S : g("div", {
        role: "none",
        class: i,
        style: [
          a,
          {
            maxWidth: "100%"
          },
          d ? "" : e ? {
            marginBottom: _ !== w ? v : ""
          } : u ? {
            marginLeft: x ? o === "space-between" && _ === w ? "" : b : _ !== w ? m : "",
            marginRight: x ? o === "space-between" && _ === 0 ? "" : b : "",
            paddingTop: y,
            paddingBottom: y
          } : {
            marginRight: x ? o === "space-between" && _ === w ? "" : b : _ !== w ? m : "",
            marginLeft: x ? o === "space-between" && _ === 0 ? "" : b : "",
            paddingTop: y,
            paddingBottom: y
          }
        ]
      }, S)));
    }
  });
  WF = {
    name: "DynamicTags",
    common: Ue,
    peers: {
      Input: Fr,
      Button: xr,
      Tag: pC,
      Space: M2
    },
    self() {
      return {
        inputWidth: "64px"
      };
    }
  };
  UF = {
    name: "Element",
    common: Ue
  };
  L2 = {
    gapSmall: "4px 8px",
    gapMedium: "8px 12px",
    gapLarge: "12px 16px"
  };
  VF = {
    name: "Flex",
    self() {
      return L2;
    }
  };
  function qF() {
    return L2;
  }
  let GF, KF, YF, XF;
  GF = {
    self: qF
  };
  KF = Object.assign(Object.assign({}, Fe.props), {
    align: String,
    justify: {
      type: String,
      default: "start"
    },
    inline: Boolean,
    vertical: Boolean,
    reverse: Boolean,
    size: {
      type: [
        String,
        Number,
        Array
      ],
      default: "medium"
    },
    wrap: {
      type: Boolean,
      default: true
    }
  });
  nc = pe({
    name: "Flex",
    props: KF,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e), r = Fe("Flex", "-flex", void 0, GF, e, t);
      return {
        rtlEnabled: rn("Flex", n, t),
        mergedClsPrefix: t,
        margin: D(() => {
          const { size: i } = e;
          if (Array.isArray(i)) return {
            horizontal: i[0],
            vertical: i[1]
          };
          if (typeof i == "number") return {
            horizontal: i,
            vertical: i
          };
          const { self: { [Se("gap", i)]: a } } = r.value, { row: l, col: s } = Vx(a);
          return {
            horizontal: pn(s),
            vertical: pn(l)
          };
        })
      };
    },
    render() {
      const { vertical: e, reverse: t, align: n, inline: r, justify: o, margin: i, wrap: a, mergedClsPrefix: l, rtlEnabled: s } = this, c = ro(sd(this), false);
      return c.length ? g("div", {
        role: "none",
        class: [
          `${l}-flex`,
          s && `${l}-flex--rtl`
        ],
        style: {
          display: r ? "inline-flex" : "flex",
          flexDirection: e && !t ? "column" : e && t ? "column-reverse" : !e && t ? "row-reverse" : "row",
          justifyContent: o,
          flexWrap: !a || e ? "nowrap" : "wrap",
          alignItems: n,
          gap: `${i.vertical}px ${i.horizontal}px`
        }
      }, c) : null;
    }
  });
  YF = {
    name: "ButtonGroup",
    common: Ue
  };
  XF = {
    feedbackPadding: "4px 0 0 2px",
    feedbackHeightSmall: "24px",
    feedbackHeightMedium: "24px",
    feedbackHeightLarge: "26px",
    feedbackFontSizeSmall: "13px",
    feedbackFontSizeMedium: "14px",
    feedbackFontSizeLarge: "14px",
    labelFontSizeLeftSmall: "14px",
    labelFontSizeLeftMedium: "14px",
    labelFontSizeLeftLarge: "15px",
    labelFontSizeTopSmall: "13px",
    labelFontSizeTopMedium: "14px",
    labelFontSizeTopLarge: "14px",
    labelHeightSmall: "24px",
    labelHeightMedium: "26px",
    labelHeightLarge: "28px",
    labelPaddingVertical: "0 0 6px 2px",
    labelPaddingHorizontal: "0 12px 0 0",
    labelTextAlignVertical: "left",
    labelTextAlignHorizontal: "right",
    labelFontWeight: "400"
  };
  function B2(e) {
    const { heightSmall: t, heightMedium: n, heightLarge: r, textColor1: o, errorColor: i, warningColor: a, lineHeight: l, textColor3: s } = e;
    return Object.assign(Object.assign({}, XF), {
      blankHeightSmall: t,
      blankHeightMedium: n,
      blankHeightLarge: r,
      lineHeight: l,
      labelTextColor: o,
      asteriskColor: i,
      feedbackTextColorError: i,
      feedbackTextColorWarning: a,
      feedbackTextColor: s
    });
  }
  const N2 = {
    common: mt,
    self: B2
  }, JF = {
    name: "Form",
    common: Ue,
    self: B2
  }, ZF = {
    name: "GradientText",
    common: Ue,
    self(e) {
      const { primaryColor: t, successColor: n, warningColor: r, errorColor: o, infoColor: i, primaryColorSuppl: a, successColorSuppl: l, warningColorSuppl: s, errorColorSuppl: c, infoColorSuppl: u, fontWeightStrong: d } = e;
      return {
        fontWeight: d,
        rotate: "252deg",
        colorStartPrimary: t,
        colorEndPrimary: a,
        colorStartInfo: i,
        colorEndInfo: u,
        colorStartWarning: r,
        colorEndWarning: s,
        colorStartError: o,
        colorEndError: c,
        colorStartSuccess: n,
        colorEndSuccess: l
      };
    }
  }, QF = {
    name: "InputNumber",
    common: Ue,
    peers: {
      Button: xr,
      Input: Fr
    },
    self(e) {
      const { textColorDisabled: t } = e;
      return {
        iconColorDisabled: t
      };
    }
  };
  function eM() {
    return {
      inputWidthSmall: "24px",
      inputWidthMedium: "30px",
      inputWidthLarge: "36px",
      gapSmall: "8px",
      gapMedium: "8px",
      gapLarge: "8px"
    };
  }
  const tM = {
    name: "InputOtp",
    common: Ue,
    peers: {
      Input: Fr
    },
    self: eM
  }, nM = {
    name: "Layout",
    common: Ue,
    peers: {
      Scrollbar: nr
    },
    self(e) {
      const { textColor2: t, bodyColor: n, popoverColor: r, cardColor: o, dividerColor: i, scrollbarColor: a, scrollbarColorHover: l } = e;
      return {
        textColor: t,
        textColorInverted: t,
        color: n,
        colorEmbedded: n,
        headerColor: o,
        headerColorInverted: o,
        footerColor: o,
        footerColorInverted: o,
        headerBorderColor: i,
        headerBorderColorInverted: i,
        footerBorderColor: i,
        footerBorderColorInverted: i,
        siderBorderColor: i,
        siderBorderColorInverted: i,
        siderColor: o,
        siderColorInverted: o,
        siderToggleButtonBorder: "1px solid transparent",
        siderToggleButtonColor: r,
        siderToggleButtonIconColor: t,
        siderToggleButtonIconColorInverted: t,
        siderToggleBarColor: Ye(n, a),
        siderToggleBarColorHover: Ye(n, l),
        __invertScrollbar: "false"
      };
    }
  };
  function rM(e) {
    const { baseColor: t, textColor2: n, bodyColor: r, cardColor: o, dividerColor: i, actionColor: a, scrollbarColor: l, scrollbarColorHover: s, invertedColor: c } = e;
    return {
      textColor: n,
      textColorInverted: "#FFF",
      color: r,
      colorEmbedded: a,
      headerColor: o,
      headerColorInverted: c,
      footerColor: a,
      footerColorInverted: c,
      headerBorderColor: i,
      headerBorderColorInverted: c,
      footerBorderColor: i,
      footerBorderColorInverted: c,
      siderBorderColor: i,
      siderBorderColorInverted: c,
      siderColor: o,
      siderColorInverted: c,
      siderToggleButtonBorder: `1px solid ${i}`,
      siderToggleButtonColor: t,
      siderToggleButtonIconColor: n,
      siderToggleButtonIconColorInverted: n,
      siderToggleBarColor: Ye(r, l),
      siderToggleBarColorHover: Ye(r, s),
      __invertScrollbar: "true"
    };
  }
  const oM = {
    name: "Layout",
    common: mt,
    peers: {
      Scrollbar: hi
    },
    self: rM
  }, iM = {
    name: "Row",
    common: Ue
  };
  function H2(e) {
    const { textColor2: t, cardColor: n, modalColor: r, popoverColor: o, dividerColor: i, borderRadius: a, fontSize: l, hoverColor: s } = e;
    return {
      textColor: t,
      color: n,
      colorHover: s,
      colorModal: r,
      colorHoverModal: Ye(r, s),
      colorPopover: o,
      colorHoverPopover: Ye(o, s),
      borderColor: i,
      borderColorModal: Ye(r, i),
      borderColorPopover: Ye(o, i),
      borderRadius: a,
      fontSize: l
    };
  }
  const aM = {
    common: mt,
    self: H2
  }, lM = {
    name: "List",
    common: Ue,
    self: H2
  }, sM = {
    name: "Log",
    common: Ue,
    peers: {
      Scrollbar: nr,
      Code: MC
    },
    self(e) {
      const { textColor2: t, inputColor: n, fontSize: r, primaryColor: o } = e;
      return {
        loaderFontSize: r,
        loaderTextColor: t,
        loaderColor: n,
        loaderBorder: "1px solid #0000",
        loadingColor: o
      };
    }
  }, cM = {
    name: "Mention",
    common: Ue,
    peers: {
      InternalSelectMenu: Js,
      Input: Fr
    },
    self(e) {
      const { boxShadow2: t } = e;
      return {
        menuBoxShadow: t
      };
    }
  };
  function uM(e, t, n, r) {
    return {
      itemColorHoverInverted: "#0000",
      itemColorActiveInverted: t,
      itemColorActiveHoverInverted: t,
      itemColorActiveCollapsedInverted: t,
      itemTextColorInverted: e,
      itemTextColorHoverInverted: n,
      itemTextColorChildActiveInverted: n,
      itemTextColorChildActiveHoverInverted: n,
      itemTextColorActiveInverted: n,
      itemTextColorActiveHoverInverted: n,
      itemTextColorHorizontalInverted: e,
      itemTextColorHoverHorizontalInverted: n,
      itemTextColorChildActiveHorizontalInverted: n,
      itemTextColorChildActiveHoverHorizontalInverted: n,
      itemTextColorActiveHorizontalInverted: n,
      itemTextColorActiveHoverHorizontalInverted: n,
      itemIconColorInverted: e,
      itemIconColorHoverInverted: n,
      itemIconColorActiveInverted: n,
      itemIconColorActiveHoverInverted: n,
      itemIconColorChildActiveInverted: n,
      itemIconColorChildActiveHoverInverted: n,
      itemIconColorCollapsedInverted: e,
      itemIconColorHorizontalInverted: e,
      itemIconColorHoverHorizontalInverted: n,
      itemIconColorActiveHorizontalInverted: n,
      itemIconColorActiveHoverHorizontalInverted: n,
      itemIconColorChildActiveHorizontalInverted: n,
      itemIconColorChildActiveHoverHorizontalInverted: n,
      arrowColorInverted: e,
      arrowColorHoverInverted: n,
      arrowColorActiveInverted: n,
      arrowColorActiveHoverInverted: n,
      arrowColorChildActiveInverted: n,
      arrowColorChildActiveHoverInverted: n,
      groupTextColorInverted: r
    };
  }
  function j2(e) {
    const { borderRadius: t, textColor3: n, primaryColor: r, textColor2: o, textColor1: i, fontSize: a, dividerColor: l, hoverColor: s, primaryColorHover: c } = e;
    return Object.assign({
      borderRadius: t,
      color: "#0000",
      groupTextColor: n,
      itemColorHover: s,
      itemColorActive: Oe(r, {
        alpha: 0.1
      }),
      itemColorActiveHover: Oe(r, {
        alpha: 0.1
      }),
      itemColorActiveCollapsed: Oe(r, {
        alpha: 0.1
      }),
      itemTextColor: o,
      itemTextColorHover: o,
      itemTextColorActive: r,
      itemTextColorActiveHover: r,
      itemTextColorChildActive: r,
      itemTextColorChildActiveHover: r,
      itemTextColorHorizontal: o,
      itemTextColorHoverHorizontal: c,
      itemTextColorActiveHorizontal: r,
      itemTextColorActiveHoverHorizontal: r,
      itemTextColorChildActiveHorizontal: r,
      itemTextColorChildActiveHoverHorizontal: r,
      itemIconColor: i,
      itemIconColorHover: i,
      itemIconColorActive: r,
      itemIconColorActiveHover: r,
      itemIconColorChildActive: r,
      itemIconColorChildActiveHover: r,
      itemIconColorCollapsed: i,
      itemIconColorHorizontal: i,
      itemIconColorHoverHorizontal: c,
      itemIconColorActiveHorizontal: r,
      itemIconColorActiveHoverHorizontal: r,
      itemIconColorChildActiveHorizontal: r,
      itemIconColorChildActiveHoverHorizontal: r,
      itemHeight: "42px",
      arrowColor: o,
      arrowColorHover: o,
      arrowColorActive: r,
      arrowColorActiveHover: r,
      arrowColorChildActive: r,
      arrowColorChildActiveHover: r,
      colorInverted: "#0000",
      borderColorHorizontal: "#0000",
      fontSize: a,
      dividerColor: l
    }, uM("#BBB", r, "#FFF", "#AAA"));
  }
  const dM = {
    name: "Menu",
    common: mt,
    peers: {
      Tooltip: Rm,
      Dropdown: _m
    },
    self: j2
  }, fM = {
    name: "Menu",
    common: Ue,
    peers: {
      Tooltip: bd,
      Dropdown: km
    },
    self(e) {
      const { primaryColor: t, primaryColorSuppl: n } = e, r = j2(e);
      return r.itemColorActive = Oe(t, {
        alpha: 0.15
      }), r.itemColorActiveHover = Oe(t, {
        alpha: 0.15
      }), r.itemColorActiveCollapsed = Oe(t, {
        alpha: 0.15
      }), r.itemColorActiveInverted = n, r.itemColorActiveHoverInverted = n, r.itemColorActiveCollapsedInverted = n, r;
    }
  }, hM = {
    titleFontSize: "18px",
    backSize: "22px"
  };
  function W2(e) {
    const { textColor1: t, textColor2: n, textColor3: r, fontSize: o, fontWeightStrong: i, primaryColorHover: a, primaryColorPressed: l } = e;
    return Object.assign(Object.assign({}, hM), {
      titleFontWeight: i,
      fontSize: o,
      titleTextColor: t,
      backColor: n,
      backColorHover: a,
      backColorPressed: l,
      subtitleTextColor: r
    });
  }
  const pM = {
    name: "PageHeader",
    common: mt,
    self: W2
  }, mM = {
    name: "PageHeader",
    common: Ue,
    self: W2
  }, gM = {
    iconSize: "22px"
  };
  function U2(e) {
    const { fontSize: t, warningColor: n } = e;
    return Object.assign(Object.assign({}, gM), {
      fontSize: t,
      iconColor: n
    });
  }
  const vM = {
    name: "Popconfirm",
    common: mt,
    peers: {
      Button: vd,
      Popover: Aa
    },
    self: U2
  }, bM = {
    name: "Popconfirm",
    common: Ue,
    peers: {
      Button: xr,
      Popover: Ea
    },
    self: U2
  };
  function V2(e) {
    const { infoColor: t, successColor: n, warningColor: r, errorColor: o, textColor2: i, progressRailColor: a, fontSize: l, fontWeight: s } = e;
    return {
      fontSize: l,
      fontSizeCircle: "28px",
      fontWeightCircle: s,
      railColor: a,
      railHeight: "8px",
      iconSizeCircle: "36px",
      iconSizeLine: "18px",
      iconColor: t,
      iconColorInfo: t,
      iconColorSuccess: n,
      iconColorWarning: r,
      iconColorError: o,
      textColorCircle: i,
      textColorLineInner: "rgb(255, 255, 255)",
      textColorLineOuter: i,
      fillColor: t,
      fillColorInfo: t,
      fillColorSuccess: n,
      fillColorWarning: r,
      fillColorError: o,
      lineBgProcessing: "linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"
    };
  }
  const yM = {
    common: mt,
    self: V2
  }, q2 = {
    name: "Progress",
    common: Ue,
    self(e) {
      const t = V2(e);
      return t.textColorLineInner = "rgb(0, 0, 0)", t.lineBgProcessing = "linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)", t;
    }
  }, xM = {
    name: "Rate",
    common: Ue,
    self(e) {
      const { railColor: t } = e;
      return {
        itemColor: t,
        itemColorActive: "#CCAA33",
        itemSize: "20px",
        sizeSmall: "16px",
        sizeMedium: "20px",
        sizeLarge: "24px"
      };
    }
  }, wM = {
    titleFontSizeSmall: "26px",
    titleFontSizeMedium: "32px",
    titleFontSizeLarge: "40px",
    titleFontSizeHuge: "48px",
    fontSizeSmall: "14px",
    fontSizeMedium: "14px",
    fontSizeLarge: "15px",
    fontSizeHuge: "16px",
    iconSizeSmall: "64px",
    iconSizeMedium: "80px",
    iconSizeLarge: "100px",
    iconSizeHuge: "125px",
    iconColor418: void 0,
    iconColor404: void 0,
    iconColor403: void 0,
    iconColor500: void 0
  };
  function G2(e) {
    const { textColor2: t, textColor1: n, errorColor: r, successColor: o, infoColor: i, warningColor: a, lineHeight: l, fontWeightStrong: s } = e;
    return Object.assign(Object.assign({}, wM), {
      lineHeight: l,
      titleFontWeight: s,
      titleTextColor: n,
      textColor: t,
      iconColorError: r,
      iconColorSuccess: o,
      iconColorInfo: i,
      iconColorWarning: a
    });
  }
  const CM = {
    common: mt,
    self: G2
  }, SM = {
    name: "Result",
    common: Ue,
    self: G2
  }, K2 = {
    railHeight: "4px",
    railWidthVertical: "4px",
    handleSize: "18px",
    dotHeight: "8px",
    dotWidth: "8px",
    dotBorderRadius: "4px"
  }, _M = {
    name: "Slider",
    common: Ue,
    self(e) {
      const t = "0 2px 8px 0 rgba(0, 0, 0, 0.12)", { railColor: n, modalColor: r, primaryColorSuppl: o, popoverColor: i, textColor2: a, cardColor: l, borderRadius: s, fontSize: c, opacityDisabled: u } = e;
      return Object.assign(Object.assign({}, K2), {
        fontSize: c,
        markFontSize: c,
        railColor: n,
        railColorHover: n,
        fillColor: o,
        fillColorHover: o,
        opacityDisabled: u,
        handleColor: "#FFF",
        dotColor: l,
        dotColorModal: r,
        dotColorPopover: i,
        handleBoxShadow: "0px 2px 4px 0 rgba(0, 0, 0, 0.4)",
        handleBoxShadowHover: "0px 2px 4px 0 rgba(0, 0, 0, 0.4)",
        handleBoxShadowActive: "0px 2px 4px 0 rgba(0, 0, 0, 0.4)",
        handleBoxShadowFocus: "0px 2px 4px 0 rgba(0, 0, 0, 0.4)",
        indicatorColor: i,
        indicatorBoxShadow: t,
        indicatorTextColor: a,
        indicatorBorderRadius: s,
        dotBorder: `2px solid ${n}`,
        dotBorderActive: `2px solid ${o}`,
        dotBoxShadow: ""
      });
    }
  };
  function kM(e) {
    const t = "rgba(0, 0, 0, .85)", n = "0 2px 8px 0 rgba(0, 0, 0, 0.12)", { railColor: r, primaryColor: o, baseColor: i, cardColor: a, modalColor: l, popoverColor: s, borderRadius: c, fontSize: u, opacityDisabled: d } = e;
    return Object.assign(Object.assign({}, K2), {
      fontSize: u,
      markFontSize: u,
      railColor: r,
      railColorHover: r,
      fillColor: o,
      fillColorHover: o,
      opacityDisabled: d,
      handleColor: "#FFF",
      dotColor: a,
      dotColorModal: l,
      dotColorPopover: s,
      handleBoxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",
      handleBoxShadowHover: "0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",
      handleBoxShadowActive: "0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",
      handleBoxShadowFocus: "0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",
      indicatorColor: t,
      indicatorBoxShadow: n,
      indicatorTextColor: i,
      indicatorBorderRadius: c,
      dotBorder: `2px solid ${r}`,
      dotBorderActive: `2px solid ${o}`,
      dotBoxShadow: ""
    });
  }
  const RM = {
    common: mt,
    self: kM
  };
  function Y2(e) {
    const { opacityDisabled: t, heightTiny: n, heightSmall: r, heightMedium: o, heightLarge: i, heightHuge: a, primaryColor: l, fontSize: s } = e;
    return {
      fontSize: s,
      textColor: l,
      sizeTiny: n,
      sizeSmall: r,
      sizeMedium: o,
      sizeLarge: i,
      sizeHuge: a,
      color: l,
      opacitySpinning: t
    };
  }
  const AM = {
    common: mt,
    self: Y2
  }, EM = {
    name: "Spin",
    common: Ue,
    self: Y2
  };
  function X2(e) {
    const { textColor2: t, textColor3: n, fontSize: r, fontWeight: o } = e;
    return {
      labelFontSize: r,
      labelFontWeight: o,
      valueFontWeight: o,
      valueFontSize: "24px",
      labelTextColor: n,
      valuePrefixTextColor: t,
      valueSuffixTextColor: t,
      valueTextColor: t
    };
  }
  let TM, PM;
  KX = {
    common: mt,
    self: X2
  };
  TM = {
    name: "Statistic",
    common: Ue,
    self: X2
  };
  PM = {
    stepHeaderFontSizeSmall: "14px",
    stepHeaderFontSizeMedium: "16px",
    indicatorIndexFontSizeSmall: "14px",
    indicatorIndexFontSizeMedium: "16px",
    indicatorSizeSmall: "22px",
    indicatorSizeMedium: "28px",
    indicatorIconSizeSmall: "14px",
    indicatorIconSizeMedium: "18px"
  };
  function DM(e) {
    const { fontWeightStrong: t, baseColor: n, textColorDisabled: r, primaryColor: o, errorColor: i, textColor1: a, textColor2: l } = e;
    return Object.assign(Object.assign({}, PM), {
      stepHeaderFontWeight: t,
      indicatorTextColorProcess: n,
      indicatorTextColorWait: r,
      indicatorTextColorFinish: o,
      indicatorTextColorError: i,
      indicatorBorderColorProcess: o,
      indicatorBorderColorWait: r,
      indicatorBorderColorFinish: o,
      indicatorBorderColorError: i,
      indicatorColorProcess: o,
      indicatorColorWait: "#0000",
      indicatorColorFinish: "#0000",
      indicatorColorError: "#0000",
      splitorColorProcess: r,
      splitorColorWait: r,
      splitorColorFinish: o,
      splitorColorError: r,
      headerTextColorProcess: a,
      headerTextColorWait: r,
      headerTextColorFinish: r,
      headerTextColorError: i,
      descriptionTextColorProcess: l,
      descriptionTextColorWait: r,
      descriptionTextColorFinish: r,
      descriptionTextColorError: i
    });
  }
  const $M = {
    name: "Steps",
    common: Ue,
    self: DM
  }, J2 = {
    buttonHeightSmall: "14px",
    buttonHeightMedium: "18px",
    buttonHeightLarge: "22px",
    buttonWidthSmall: "14px",
    buttonWidthMedium: "18px",
    buttonWidthLarge: "22px",
    buttonWidthPressedSmall: "20px",
    buttonWidthPressedMedium: "24px",
    buttonWidthPressedLarge: "28px",
    railHeightSmall: "18px",
    railHeightMedium: "22px",
    railHeightLarge: "26px",
    railWidthSmall: "32px",
    railWidthMedium: "40px",
    railWidthLarge: "48px"
  }, zM = {
    name: "Switch",
    common: Ue,
    self(e) {
      const { primaryColorSuppl: t, opacityDisabled: n, borderRadius: r, primaryColor: o, textColor2: i, baseColor: a } = e;
      return Object.assign(Object.assign({}, J2), {
        iconColor: a,
        textColor: i,
        loadingColor: t,
        opacityDisabled: n,
        railColor: "rgba(255, 255, 255, .20)",
        railColorActive: t,
        buttonBoxShadow: "0px 2px 4px 0 rgba(0, 0, 0, 0.4)",
        buttonColor: "#FFF",
        railBorderRadiusSmall: r,
        railBorderRadiusMedium: r,
        railBorderRadiusLarge: r,
        buttonBorderRadiusSmall: r,
        buttonBorderRadiusMedium: r,
        buttonBorderRadiusLarge: r,
        boxShadowFocus: `0 0 8px 0 ${Oe(o, {
          alpha: 0.3
        })}`
      });
    }
  };
  function OM(e) {
    const { primaryColor: t, opacityDisabled: n, borderRadius: r, textColor3: o } = e;
    return Object.assign(Object.assign({}, J2), {
      iconColor: o,
      textColor: "white",
      loadingColor: t,
      opacityDisabled: n,
      railColor: "rgba(0, 0, 0, .14)",
      railColorActive: t,
      buttonBoxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",
      buttonColor: "#FFF",
      railBorderRadiusSmall: r,
      railBorderRadiusMedium: r,
      railBorderRadiusLarge: r,
      buttonBorderRadiusSmall: r,
      buttonBorderRadiusMedium: r,
      buttonBorderRadiusLarge: r,
      boxShadowFocus: `0 0 0 2px ${Oe(t, {
        alpha: 0.2
      })}`
    });
  }
  const IM = {
    common: mt,
    self: OM
  }, FM = {
    thPaddingSmall: "6px",
    thPaddingMedium: "12px",
    thPaddingLarge: "12px",
    tdPaddingSmall: "6px",
    tdPaddingMedium: "12px",
    tdPaddingLarge: "12px"
  };
  function MM(e) {
    const { dividerColor: t, cardColor: n, modalColor: r, popoverColor: o, tableHeaderColor: i, tableColorStriped: a, textColor1: l, textColor2: s, borderRadius: c, fontWeightStrong: u, lineHeight: d, fontSizeSmall: h, fontSizeMedium: p, fontSizeLarge: f } = e;
    return Object.assign(Object.assign({}, FM), {
      fontSizeSmall: h,
      fontSizeMedium: p,
      fontSizeLarge: f,
      lineHeight: d,
      borderRadius: c,
      borderColor: Ye(n, t),
      borderColorModal: Ye(r, t),
      borderColorPopover: Ye(o, t),
      tdColor: n,
      tdColorModal: r,
      tdColorPopover: o,
      tdColorStriped: Ye(n, a),
      tdColorStripedModal: Ye(r, a),
      tdColorStripedPopover: Ye(o, a),
      thColor: Ye(n, i),
      thColorModal: Ye(r, i),
      thColorPopover: Ye(o, i),
      thTextColor: l,
      tdTextColor: s,
      thFontWeight: u
    });
  }
  const LM = {
    name: "Table",
    common: Ue,
    self: MM
  }, BM = {
    tabFontSizeSmall: "14px",
    tabFontSizeMedium: "14px",
    tabFontSizeLarge: "16px",
    tabGapSmallLine: "36px",
    tabGapMediumLine: "36px",
    tabGapLargeLine: "36px",
    tabGapSmallLineVertical: "8px",
    tabGapMediumLineVertical: "8px",
    tabGapLargeLineVertical: "8px",
    tabPaddingSmallLine: "6px 0",
    tabPaddingMediumLine: "10px 0",
    tabPaddingLargeLine: "14px 0",
    tabPaddingVerticalSmallLine: "6px 12px",
    tabPaddingVerticalMediumLine: "8px 16px",
    tabPaddingVerticalLargeLine: "10px 20px",
    tabGapSmallBar: "36px",
    tabGapMediumBar: "36px",
    tabGapLargeBar: "36px",
    tabGapSmallBarVertical: "8px",
    tabGapMediumBarVertical: "8px",
    tabGapLargeBarVertical: "8px",
    tabPaddingSmallBar: "4px 0",
    tabPaddingMediumBar: "6px 0",
    tabPaddingLargeBar: "10px 0",
    tabPaddingVerticalSmallBar: "6px 12px",
    tabPaddingVerticalMediumBar: "8px 16px",
    tabPaddingVerticalLargeBar: "10px 20px",
    tabGapSmallCard: "4px",
    tabGapMediumCard: "4px",
    tabGapLargeCard: "4px",
    tabGapSmallCardVertical: "4px",
    tabGapMediumCardVertical: "4px",
    tabGapLargeCardVertical: "4px",
    tabPaddingSmallCard: "8px 16px",
    tabPaddingMediumCard: "10px 20px",
    tabPaddingLargeCard: "12px 24px",
    tabPaddingSmallSegment: "4px 0",
    tabPaddingMediumSegment: "6px 0",
    tabPaddingLargeSegment: "8px 0",
    tabPaddingVerticalLargeSegment: "0 8px",
    tabPaddingVerticalSmallCard: "8px 12px",
    tabPaddingVerticalMediumCard: "10px 16px",
    tabPaddingVerticalLargeCard: "12px 20px",
    tabPaddingVerticalSmallSegment: "0 4px",
    tabPaddingVerticalMediumSegment: "0 6px",
    tabGapSmallSegment: "0",
    tabGapMediumSegment: "0",
    tabGapLargeSegment: "0",
    tabGapSmallSegmentVertical: "0",
    tabGapMediumSegmentVertical: "0",
    tabGapLargeSegmentVertical: "0",
    panePaddingSmall: "8px 0 0 0",
    panePaddingMedium: "12px 0 0 0",
    panePaddingLarge: "16px 0 0 0",
    closeSize: "18px",
    closeIconSize: "14px"
  };
  function Z2(e) {
    const { textColor2: t, primaryColor: n, textColorDisabled: r, closeIconColor: o, closeIconColorHover: i, closeIconColorPressed: a, closeColorHover: l, closeColorPressed: s, tabColor: c, baseColor: u, dividerColor: d, fontWeight: h, textColor1: p, borderRadius: f, fontSize: m, fontWeightStrong: b } = e;
    return Object.assign(Object.assign({}, BM), {
      colorSegment: c,
      tabFontSizeCard: m,
      tabTextColorLine: p,
      tabTextColorActiveLine: n,
      tabTextColorHoverLine: n,
      tabTextColorDisabledLine: r,
      tabTextColorSegment: p,
      tabTextColorActiveSegment: t,
      tabTextColorHoverSegment: t,
      tabTextColorDisabledSegment: r,
      tabTextColorBar: p,
      tabTextColorActiveBar: n,
      tabTextColorHoverBar: n,
      tabTextColorDisabledBar: r,
      tabTextColorCard: p,
      tabTextColorHoverCard: p,
      tabTextColorActiveCard: n,
      tabTextColorDisabledCard: r,
      barColor: n,
      closeIconColor: o,
      closeIconColorHover: i,
      closeIconColorPressed: a,
      closeColorHover: l,
      closeColorPressed: s,
      closeBorderRadius: f,
      tabColor: c,
      tabColorSegment: u,
      tabBorderColor: d,
      tabFontWeightActive: h,
      tabFontWeight: h,
      tabBorderRadius: f,
      paneTextColor: t,
      fontWeightStrong: b
    });
  }
  const NM = {
    common: mt,
    self: Z2
  }, HM = {
    name: "Tabs",
    common: Ue,
    self(e) {
      const t = Z2(e), { inputColor: n } = e;
      return t.colorSegment = n, t.tabColorSegment = n, t;
    }
  };
  function Q2(e) {
    const { textColor1: t, textColor2: n, fontWeightStrong: r, fontSize: o } = e;
    return {
      fontSize: o,
      titleTextColor: t,
      textColor: n,
      titleFontWeight: r
    };
  }
  const jM = {
    common: mt,
    self: Q2
  }, WM = {
    name: "Thing",
    common: Ue,
    self: Q2
  }, UM = {
    titleMarginMedium: "0 0 6px 0",
    titleMarginLarge: "-2px 0 6px 0",
    titleFontSizeMedium: "14px",
    titleFontSizeLarge: "16px",
    iconSizeMedium: "14px",
    iconSizeLarge: "14px"
  }, VM = {
    name: "Timeline",
    common: Ue,
    self(e) {
      const { textColor3: t, infoColorSuppl: n, errorColorSuppl: r, successColorSuppl: o, warningColorSuppl: i, textColor1: a, textColor2: l, railColor: s, fontWeightStrong: c, fontSize: u } = e;
      return Object.assign(Object.assign({}, UM), {
        contentFontSize: u,
        titleFontWeight: c,
        circleBorder: `2px solid ${t}`,
        circleBorderInfo: `2px solid ${n}`,
        circleBorderError: `2px solid ${r}`,
        circleBorderSuccess: `2px solid ${o}`,
        circleBorderWarning: `2px solid ${i}`,
        iconColor: t,
        iconColorInfo: n,
        iconColorError: r,
        iconColorSuccess: o,
        iconColorWarning: i,
        titleTextColor: a,
        contentTextColor: l,
        metaTextColor: t,
        lineColor: s
      });
    }
  }, qM = {
    extraFontSizeSmall: "12px",
    extraFontSizeMedium: "12px",
    extraFontSizeLarge: "14px",
    titleFontSizeSmall: "14px",
    titleFontSizeMedium: "16px",
    titleFontSizeLarge: "16px",
    closeSize: "20px",
    closeIconSize: "16px",
    headerHeightSmall: "44px",
    headerHeightMedium: "44px",
    headerHeightLarge: "50px"
  }, GM = {
    name: "Transfer",
    common: Ue,
    peers: {
      Checkbox: Pl,
      Scrollbar: nr,
      Input: Fr,
      Empty: Ra,
      Button: xr
    },
    self(e) {
      const { fontWeight: t, fontSizeLarge: n, fontSizeMedium: r, fontSizeSmall: o, heightLarge: i, heightMedium: a, borderRadius: l, inputColor: s, tableHeaderColor: c, textColor1: u, textColorDisabled: d, textColor2: h, textColor3: p, hoverColor: f, closeColorHover: m, closeColorPressed: b, closeIconColor: v, closeIconColorHover: y, closeIconColorPressed: w, dividerColor: x } = e;
      return Object.assign(Object.assign({}, qM), {
        itemHeightSmall: a,
        itemHeightMedium: a,
        itemHeightLarge: i,
        fontSizeSmall: o,
        fontSizeMedium: r,
        fontSizeLarge: n,
        borderRadius: l,
        dividerColor: x,
        borderColor: "#0000",
        listColor: s,
        headerColor: c,
        titleTextColor: u,
        titleTextColorDisabled: d,
        extraTextColor: p,
        extraTextColorDisabled: d,
        itemTextColor: h,
        itemTextColorDisabled: d,
        itemColorPending: f,
        titleFontWeight: t,
        closeColorHover: m,
        closeColorPressed: b,
        closeIconColor: v,
        closeIconColorHover: y,
        closeIconColorPressed: w
      });
    }
  };
  function KM(e) {
    const { borderRadiusSmall: t, dividerColor: n, hoverColor: r, pressedColor: o, primaryColor: i, textColor3: a, textColor2: l, textColorDisabled: s, fontSize: c } = e;
    return {
      fontSize: c,
      lineHeight: "1.5",
      nodeHeight: "30px",
      nodeWrapperPadding: "3px 0",
      nodeBorderRadius: t,
      nodeColorHover: r,
      nodeColorPressed: o,
      nodeColorActive: Oe(i, {
        alpha: 0.1
      }),
      arrowColor: a,
      nodeTextColor: l,
      nodeTextColorDisabled: s,
      loadingColor: i,
      dropMarkColor: i,
      lineColor: n
    };
  }
  const eS = {
    name: "Tree",
    common: Ue,
    peers: {
      Checkbox: Pl,
      Scrollbar: nr,
      Empty: Ra
    },
    self(e) {
      const { primaryColor: t } = e, n = KM(e);
      return n.nodeColorActive = Oe(t, {
        alpha: 0.15
      }), n;
    }
  }, YM = {
    name: "TreeSelect",
    common: Ue,
    peers: {
      Tree: eS,
      Empty: Ra,
      InternalSelection: bm
    }
  }, XM = {
    headerFontSize1: "30px",
    headerFontSize2: "22px",
    headerFontSize3: "18px",
    headerFontSize4: "16px",
    headerFontSize5: "16px",
    headerFontSize6: "16px",
    headerMargin1: "28px 0 20px 0",
    headerMargin2: "28px 0 20px 0",
    headerMargin3: "28px 0 20px 0",
    headerMargin4: "28px 0 18px 0",
    headerMargin5: "28px 0 18px 0",
    headerMargin6: "28px 0 18px 0",
    headerPrefixWidth1: "16px",
    headerPrefixWidth2: "16px",
    headerPrefixWidth3: "12px",
    headerPrefixWidth4: "12px",
    headerPrefixWidth5: "12px",
    headerPrefixWidth6: "12px",
    headerBarWidth1: "4px",
    headerBarWidth2: "4px",
    headerBarWidth3: "3px",
    headerBarWidth4: "3px",
    headerBarWidth5: "3px",
    headerBarWidth6: "3px",
    pMargin: "16px 0 16px 0",
    liMargin: ".25em 0 0 0",
    olPadding: "0 0 0 2em",
    ulPadding: "0 0 0 2em"
  };
  function tS(e) {
    const { primaryColor: t, textColor2: n, borderColor: r, lineHeight: o, fontSize: i, borderRadiusSmall: a, dividerColor: l, fontWeightStrong: s, textColor1: c, textColor3: u, infoColor: d, warningColor: h, errorColor: p, successColor: f, codeColor: m } = e;
    return Object.assign(Object.assign({}, XM), {
      aTextColor: t,
      blockquoteTextColor: n,
      blockquotePrefixColor: r,
      blockquoteLineHeight: o,
      blockquoteFontSize: i,
      codeBorderRadius: a,
      liTextColor: n,
      liLineHeight: o,
      liFontSize: i,
      hrColor: l,
      headerFontWeight: s,
      headerTextColor: c,
      pTextColor: n,
      pTextColor1Depth: c,
      pTextColor2Depth: n,
      pTextColor3Depth: u,
      pLineHeight: o,
      pFontSize: i,
      headerBarColor: t,
      headerBarColorPrimary: t,
      headerBarColorInfo: d,
      headerBarColorError: p,
      headerBarColorWarning: h,
      headerBarColorSuccess: f,
      textColor: n,
      textColor1Depth: c,
      textColor2Depth: n,
      textColor3Depth: u,
      textColorPrimary: t,
      textColorInfo: d,
      textColorSuccess: f,
      textColorWarning: h,
      textColorError: p,
      codeTextColor: n,
      codeColor: m,
      codeBorder: "1px solid #0000"
    });
  }
  const JM = {
    common: mt,
    self: tS
  }, ZM = {
    name: "Typography",
    common: Ue,
    self: tS
  };
  function QM(e) {
    const { iconColor: t, primaryColor: n, errorColor: r, textColor2: o, successColor: i, opacityDisabled: a, actionColor: l, borderColor: s, hoverColor: c, lineHeight: u, borderRadius: d, fontSize: h } = e;
    return {
      fontSize: h,
      lineHeight: u,
      borderRadius: d,
      draggerColor: l,
      draggerBorder: `1px dashed ${s}`,
      draggerBorderHover: `1px dashed ${n}`,
      itemColorHover: c,
      itemColorHoverError: Oe(r, {
        alpha: 0.06
      }),
      itemTextColor: o,
      itemTextColorError: r,
      itemTextColorSuccess: i,
      itemIconColor: t,
      itemDisabledOpacity: a,
      itemBorderImageCardError: `1px solid ${r}`,
      itemBorderImageCard: `1px solid ${s}`
    };
  }
  const eL = {
    name: "Upload",
    common: Ue,
    peers: {
      Button: xr,
      Progress: q2
    },
    self(e) {
      const { errorColor: t } = e, n = QM(e);
      return n.itemColorHoverError = Oe(t, {
        alpha: 0.09
      }), n;
    }
  }, tL = {
    name: "Watermark",
    common: Ue,
    self(e) {
      const { fontFamily: t } = e;
      return {
        fontFamily: t
      };
    }
  }, nL = {
    name: "FloatButton",
    common: Ue,
    self(e) {
      const { popoverColor: t, textColor2: n, buttonColor2Hover: r, buttonColor2Pressed: o, primaryColor: i, primaryColorHover: a, primaryColorPressed: l, baseColor: s, borderRadius: c } = e;
      return {
        color: t,
        textColor: n,
        boxShadow: "0 2px 8px 0px rgba(0, 0, 0, .12)",
        boxShadowHover: "0 2px 12px 0px rgba(0, 0, 0, .18)",
        boxShadowPressed: "0 2px 12px 0px rgba(0, 0, 0, .18)",
        colorHover: r,
        colorPressed: o,
        colorPrimary: i,
        colorPrimaryHover: a,
        colorPrimaryPressed: l,
        textColorPrimary: s,
        borderRadiusSquare: c
      };
    }
  }, rc = "n-form", nS = "n-form-item-insts", rL = A("form", [
    G("inline", `
 width: 100%;
 display: inline-flex;
 align-items: flex-start;
 align-content: space-around;
 `, [
      A("form-item", {
        width: "auto",
        marginRight: "18px"
      }, [
        W("&:last-child", {
          marginRight: 0
        })
      ])
    ])
  ]);
  var oL = function(e, t, n, r) {
    function o(i) {
      return i instanceof n ? i : new n(function(a) {
        a(i);
      });
    }
    return new (n || (n = Promise))(function(i, a) {
      function l(u) {
        try {
          c(r.next(u));
        } catch (d) {
          a(d);
        }
      }
      function s(u) {
        try {
          c(r.throw(u));
        } catch (d) {
          a(d);
        }
      }
      function c(u) {
        u.done ? i(u.value) : o(u.value).then(l, s);
      }
      c((r = r.apply(e, t || [])).next());
    });
  };
  let iL;
  iL = Object.assign(Object.assign({}, Fe.props), {
    inline: Boolean,
    labelWidth: [
      Number,
      String
    ],
    labelAlign: String,
    labelPlacement: {
      type: String,
      default: "top"
    },
    model: {
      type: Object,
      default: () => {
      }
    },
    rules: Object,
    disabled: Boolean,
    size: String,
    showRequireMark: {
      type: Boolean,
      default: void 0
    },
    requireMarkPlacement: String,
    showFeedback: {
      type: Boolean,
      default: true
    },
    onSubmit: {
      type: Function,
      default: (e) => {
        e.preventDefault();
      }
    },
    showLabel: {
      type: Boolean,
      default: void 0
    },
    validateMessages: Object
  });
  Om = pe({
    name: "Form",
    props: iL,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(e);
      Fe("Form", "-form", rL, N2, e, t);
      const n = {}, r = L(void 0), o = (s) => {
        const c = r.value;
        (c === void 0 || s >= c) && (r.value = s);
      };
      function i(s) {
        return oL(this, arguments, void 0, function* (c, u = () => true) {
          return yield new Promise((d, h) => {
            const p = [];
            for (const f of ur(n)) {
              const m = n[f];
              for (const b of m) b.path && p.push(b.internalValidate(null, u));
            }
            Promise.all(p).then((f) => {
              const m = f.some((y) => !y.valid), b = [], v = [];
              f.forEach((y) => {
                var w, x;
                !((w = y.errors) === null || w === void 0) && w.length && b.push(y.errors), !((x = y.warnings) === null || x === void 0) && x.length && v.push(y.warnings);
              }), c && c(b.length ? b : void 0, {
                warnings: v.length ? v : void 0
              }), m ? h(b.length ? b : void 0) : d({
                warnings: v.length ? v : void 0
              });
            });
          });
        });
      }
      function a() {
        for (const s of ur(n)) {
          const c = n[s];
          for (const u of c) u.restoreValidation();
        }
      }
      return ft(rc, {
        props: e,
        maxChildLabelWidthRef: r,
        deriveMaxChildLabelWidth: o
      }), ft(nS, {
        formItems: n
      }), Object.assign({
        validate: i,
        restoreValidation: a
      }, {
        mergedClsPrefix: t
      });
    },
    render() {
      const { mergedClsPrefix: e } = this;
      return g("form", {
        class: [
          `${e}-form`,
          this.inline && `${e}-form--inline`
        ],
        onSubmit: this.onSubmit
      }, this.$slots);
    }
  });
  function Ji() {
    return Ji = Object.assign ? Object.assign.bind() : function(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = arguments[t];
        for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
      }
      return e;
    }, Ji.apply(this, arguments);
  }
  function aL(e, t) {
    e.prototype = Object.create(t.prototype), e.prototype.constructor = e, zs(e, t);
  }
  function qh(e) {
    return qh = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
      return n.__proto__ || Object.getPrototypeOf(n);
    }, qh(e);
  }
  function zs(e, t) {
    return zs = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
      return r.__proto__ = o, r;
    }, zs(e, t);
  }
  function lL() {
    if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return false;
    if (typeof Proxy == "function") return true;
    try {
      return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
      })), true;
    } catch {
      return false;
    }
  }
  function eu(e, t, n) {
    return lL() ? eu = Reflect.construct.bind() : eu = function(o, i, a) {
      var l = [
        null
      ];
      l.push.apply(l, i);
      var s = Function.bind.apply(o, l), c = new s();
      return a && zs(c, a.prototype), c;
    }, eu.apply(null, arguments);
  }
  function sL(e) {
    return Function.toString.call(e).indexOf("[native code]") !== -1;
  }
  function Gh(e) {
    var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
    return Gh = function(r) {
      if (r === null || !sL(r)) return r;
      if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
      if (typeof t < "u") {
        if (t.has(r)) return t.get(r);
        t.set(r, o);
      }
      function o() {
        return eu(r, arguments, qh(this).constructor);
      }
      return o.prototype = Object.create(r.prototype, {
        constructor: {
          value: o,
          enumerable: false,
          writable: true,
          configurable: true
        }
      }), zs(o, r);
    }, Gh(e);
  }
  var cL = /%[sdj%]/g, uL = function() {
  };
  function Kh(e) {
    if (!e || !e.length) return null;
    var t = {};
    return e.forEach(function(n) {
      var r = n.field;
      t[r] = t[r] || [], t[r].push(n);
    }), t;
  }
  function Er(e) {
    for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
    var o = 0, i = n.length;
    if (typeof e == "function") return e.apply(null, n);
    if (typeof e == "string") {
      var a = e.replace(cL, function(l) {
        if (l === "%%") return "%";
        if (o >= i) return l;
        switch (l) {
          case "%s":
            return String(n[o++]);
          case "%d":
            return Number(n[o++]);
          case "%j":
            try {
              return JSON.stringify(n[o++]);
            } catch {
              return "[Circular]";
            }
            break;
          default:
            return l;
        }
      });
      return a;
    }
    return e;
  }
  function dL(e) {
    return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
  }
  function Bn(e, t) {
    return !!(e == null || t === "array" && Array.isArray(e) && !e.length || dL(t) && typeof e == "string" && !e);
  }
  function fL(e, t, n) {
    var r = [], o = 0, i = e.length;
    function a(l) {
      r.push.apply(r, l || []), o++, o === i && n(r);
    }
    e.forEach(function(l) {
      t(l, a);
    });
  }
  function Wb(e, t, n) {
    var r = 0, o = e.length;
    function i(a) {
      if (a && a.length) {
        n(a);
        return;
      }
      var l = r;
      r = r + 1, l < o ? t(e[l], i) : n([]);
    }
    i([]);
  }
  function hL(e) {
    var t = [];
    return Object.keys(e).forEach(function(n) {
      t.push.apply(t, e[n] || []);
    }), t;
  }
  var Ub = (function(e) {
    aL(t, e);
    function t(n, r) {
      var o;
      return o = e.call(this, "Async Validation Error") || this, o.errors = n, o.fields = r, o;
    }
    return t;
  })(Gh(Error));
  function pL(e, t, n, r, o) {
    if (t.first) {
      var i = new Promise(function(h, p) {
        var f = function(v) {
          return r(v), v.length ? p(new Ub(v, Kh(v))) : h(o);
        }, m = hL(e);
        Wb(m, n, f);
      });
      return i.catch(function(h) {
        return h;
      }), i;
    }
    var a = t.firstFields === true ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), s = l.length, c = 0, u = [], d = new Promise(function(h, p) {
      var f = function(b) {
        if (u.push.apply(u, b), c++, c === s) return r(u), u.length ? p(new Ub(u, Kh(u))) : h(o);
      };
      l.length || (r(u), h(o)), l.forEach(function(m) {
        var b = e[m];
        a.indexOf(m) !== -1 ? Wb(b, n, f) : fL(b, n, f);
      });
    });
    return d.catch(function(h) {
      return h;
    }), d;
  }
  function mL(e) {
    return !!(e && e.message !== void 0);
  }
  function gL(e, t) {
    for (var n = e, r = 0; r < t.length; r++) {
      if (n == null) return n;
      n = n[t[r]];
    }
    return n;
  }
  function Vb(e, t) {
    return function(n) {
      var r;
      return e.fullFields ? r = gL(t, e.fullFields) : r = t[n.field || e.fullField], mL(n) ? (n.field = n.field || e.fullField, n.fieldValue = r, n) : {
        message: typeof n == "function" ? n() : n,
        fieldValue: r,
        field: n.field || e.fullField
      };
    };
  }
  function qb(e, t) {
    if (t) {
      for (var n in t) if (t.hasOwnProperty(n)) {
        var r = t[n];
        typeof r == "object" && typeof e[n] == "object" ? e[n] = Ji({}, e[n], r) : e[n] = r;
      }
    }
    return e;
  }
  var rS = function(t, n, r, o, i, a) {
    t.required && (!r.hasOwnProperty(t.field) || Bn(n, a || t.type)) && o.push(Er(i.messages.required, t.fullField));
  }, vL = function(t, n, r, o, i) {
    (/^\s+$/.test(n) || n === "") && o.push(Er(i.messages.whitespace, t.fullField));
  }, Ic, bL = (function() {
    if (Ic) return Ic;
    var e = "[a-fA-F\\d:]", t = function(x) {
      return x && x.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
    }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", o = (`
(?:
(?:` + r + ":){7}(?:" + r + `|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:` + r + ":){6}(?:" + n + "|:" + r + `|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), i = new RegExp("(?:^" + n + "$)|(?:^" + o + "$)"), a = new RegExp("^" + n + "$"), l = new RegExp("^" + o + "$"), s = function(x) {
      return x && x.exact ? i : new RegExp("(?:" + t(x) + n + t(x) + ")|(?:" + t(x) + o + t(x) + ")", "g");
    };
    s.v4 = function(w) {
      return w && w.exact ? a : new RegExp("" + t(w) + n + t(w), "g");
    }, s.v6 = function(w) {
      return w && w.exact ? l : new RegExp("" + t(w) + o + t(w), "g");
    };
    var c = "(?:(?:[a-z]+:)?//)", u = "(?:\\S+(?::\\S*)?@)?", d = s.v4().source, h = s.v6().source, p = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", m = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", b = "(?::\\d{2,5})?", v = '(?:[/?#][^\\s"]*)?', y = "(?:" + c + "|www\\.)" + u + "(?:localhost|" + d + "|" + h + "|" + p + f + m + ")" + b + v;
    return Ic = new RegExp("(?:^" + y + "$)", "i"), Ic;
  }), Gb = {
    email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
    hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  }, rs = {
    integer: function(t) {
      return rs.number(t) && parseInt(t, 10) === t;
    },
    float: function(t) {
      return rs.number(t) && !rs.integer(t);
    },
    array: function(t) {
      return Array.isArray(t);
    },
    regexp: function(t) {
      if (t instanceof RegExp) return true;
      try {
        return !!new RegExp(t);
      } catch {
        return false;
      }
    },
    date: function(t) {
      return typeof t.getTime == "function" && typeof t.getMonth == "function" && typeof t.getYear == "function" && !isNaN(t.getTime());
    },
    number: function(t) {
      return isNaN(t) ? false : typeof t == "number";
    },
    object: function(t) {
      return typeof t == "object" && !rs.array(t);
    },
    method: function(t) {
      return typeof t == "function";
    },
    email: function(t) {
      return typeof t == "string" && t.length <= 320 && !!t.match(Gb.email);
    },
    url: function(t) {
      return typeof t == "string" && t.length <= 2048 && !!t.match(bL());
    },
    hex: function(t) {
      return typeof t == "string" && !!t.match(Gb.hex);
    }
  }, yL = function(t, n, r, o, i) {
    if (t.required && n === void 0) {
      rS(t, n, r, o, i);
      return;
    }
    var a = [
      "integer",
      "float",
      "array",
      "regexp",
      "object",
      "method",
      "email",
      "number",
      "date",
      "url",
      "hex"
    ], l = t.type;
    a.indexOf(l) > -1 ? rs[l](n) || o.push(Er(i.messages.types[l], t.fullField, t.type)) : l && typeof n !== t.type && o.push(Er(i.messages.types[l], t.fullField, t.type));
  }, xL = function(t, n, r, o, i) {
    var a = typeof t.len == "number", l = typeof t.min == "number", s = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = n, d = null, h = typeof n == "number", p = typeof n == "string", f = Array.isArray(n);
    if (h ? d = "number" : p ? d = "string" : f && (d = "array"), !d) return false;
    f && (u = n.length), p && (u = n.replace(c, "_").length), a ? u !== t.len && o.push(Er(i.messages[d].len, t.fullField, t.len)) : l && !s && u < t.min ? o.push(Er(i.messages[d].min, t.fullField, t.min)) : s && !l && u > t.max ? o.push(Er(i.messages[d].max, t.fullField, t.max)) : l && s && (u < t.min || u > t.max) && o.push(Er(i.messages[d].range, t.fullField, t.min, t.max));
  }, ja = "enum", wL = function(t, n, r, o, i) {
    t[ja] = Array.isArray(t[ja]) ? t[ja] : [], t[ja].indexOf(n) === -1 && o.push(Er(i.messages[ja], t.fullField, t[ja].join(", ")));
  }, CL = function(t, n, r, o, i) {
    if (t.pattern) {
      if (t.pattern instanceof RegExp) t.pattern.lastIndex = 0, t.pattern.test(n) || o.push(Er(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
      else if (typeof t.pattern == "string") {
        var a = new RegExp(t.pattern);
        a.test(n) || o.push(Er(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
      }
    }
  }, Ot = {
    required: rS,
    whitespace: vL,
    type: yL,
    range: xL,
    enum: wL,
    pattern: CL
  }, SL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n, "string") && !t.required) return r();
      Ot.required(t, n, o, a, i, "string"), Bn(n, "string") || (Ot.type(t, n, o, a, i), Ot.range(t, n, o, a, i), Ot.pattern(t, n, o, a, i), t.whitespace === true && Ot.whitespace(t, n, o, a, i));
    }
    r(a);
  }, _L = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && Ot.type(t, n, o, a, i);
    }
    r(a);
  }, kL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (n === "" && (n = void 0), Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && (Ot.type(t, n, o, a, i), Ot.range(t, n, o, a, i));
    }
    r(a);
  }, RL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && Ot.type(t, n, o, a, i);
    }
    r(a);
  }, AL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), Bn(n) || Ot.type(t, n, o, a, i);
    }
    r(a);
  }, EL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && (Ot.type(t, n, o, a, i), Ot.range(t, n, o, a, i));
    }
    r(a);
  }, TL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && (Ot.type(t, n, o, a, i), Ot.range(t, n, o, a, i));
    }
    r(a);
  }, PL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (n == null && !t.required) return r();
      Ot.required(t, n, o, a, i, "array"), n != null && (Ot.type(t, n, o, a, i), Ot.range(t, n, o, a, i));
    }
    r(a);
  }, DL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && Ot.type(t, n, o, a, i);
    }
    r(a);
  }, $L = "enum", zL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i), n !== void 0 && Ot[$L](t, n, o, a, i);
    }
    r(a);
  }, OL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n, "string") && !t.required) return r();
      Ot.required(t, n, o, a, i), Bn(n, "string") || Ot.pattern(t, n, o, a, i);
    }
    r(a);
  }, IL = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n, "date") && !t.required) return r();
      if (Ot.required(t, n, o, a, i), !Bn(n, "date")) {
        var s;
        n instanceof Date ? s = n : s = new Date(n), Ot.type(t, s, o, a, i), s && Ot.range(t, s.getTime(), o, a, i);
      }
    }
    r(a);
  }, FL = function(t, n, r, o, i) {
    var a = [], l = Array.isArray(n) ? "array" : typeof n;
    Ot.required(t, n, o, a, i, l), r(a);
  }, Tf = function(t, n, r, o, i) {
    var a = t.type, l = [], s = t.required || !t.required && o.hasOwnProperty(t.field);
    if (s) {
      if (Bn(n, a) && !t.required) return r();
      Ot.required(t, n, o, l, i, a), Bn(n, a) || Ot.type(t, n, o, l, i);
    }
    r(l);
  }, ML = function(t, n, r, o, i) {
    var a = [], l = t.required || !t.required && o.hasOwnProperty(t.field);
    if (l) {
      if (Bn(n) && !t.required) return r();
      Ot.required(t, n, o, a, i);
    }
    r(a);
  }, vs = {
    string: SL,
    method: _L,
    number: kL,
    boolean: RL,
    regexp: AL,
    integer: EL,
    float: TL,
    array: PL,
    object: DL,
    enum: zL,
    pattern: OL,
    date: IL,
    url: Tf,
    hex: Tf,
    email: Tf,
    required: FL,
    any: ML
  };
  function Yh() {
    return {
      default: "Validation error on field %s",
      required: "%s is required",
      enum: "%s must be one of %s",
      whitespace: "%s cannot be empty",
      date: {
        format: "%s date %s is invalid for format %s",
        parse: "%s date could not be parsed, %s is invalid ",
        invalid: "%s date %s is invalid"
      },
      types: {
        string: "%s is not a %s",
        method: "%s is not a %s (function)",
        array: "%s is not an %s",
        object: "%s is not an %s",
        number: "%s is not a %s",
        date: "%s is not a %s",
        boolean: "%s is not a %s",
        integer: "%s is not an %s",
        float: "%s is not a %s",
        regexp: "%s is not a valid %s",
        email: "%s is not a valid %s",
        url: "%s is not a valid %s",
        hex: "%s is not a valid %s"
      },
      string: {
        len: "%s must be exactly %s characters",
        min: "%s must be at least %s characters",
        max: "%s cannot be longer than %s characters",
        range: "%s must be between %s and %s characters"
      },
      number: {
        len: "%s must equal %s",
        min: "%s cannot be less than %s",
        max: "%s cannot be greater than %s",
        range: "%s must be between %s and %s"
      },
      array: {
        len: "%s must be exactly %s in length",
        min: "%s cannot be less than %s in length",
        max: "%s cannot be greater than %s in length",
        range: "%s must be between %s and %s in length"
      },
      pattern: {
        mismatch: "%s value %s does not match pattern %s"
      },
      clone: function() {
        var t = JSON.parse(JSON.stringify(this));
        return t.clone = this.clone, t;
      }
    };
  }
  var Xh = Yh(), hl = (function() {
    function e(n) {
      this.rules = null, this._messages = Xh, this.define(n);
    }
    var t = e.prototype;
    return t.define = function(r) {
      var o = this;
      if (!r) throw new Error("Cannot configure a schema with no rules");
      if (typeof r != "object" || Array.isArray(r)) throw new Error("Rules must be an object");
      this.rules = {}, Object.keys(r).forEach(function(i) {
        var a = r[i];
        o.rules[i] = Array.isArray(a) ? a : [
          a
        ];
      });
    }, t.messages = function(r) {
      return r && (this._messages = qb(Yh(), r)), this._messages;
    }, t.validate = function(r, o, i) {
      var a = this;
      o === void 0 && (o = {}), i === void 0 && (i = function() {
      });
      var l = r, s = o, c = i;
      if (typeof s == "function" && (c = s, s = {}), !this.rules || Object.keys(this.rules).length === 0) return c && c(null, l), Promise.resolve(l);
      function u(m) {
        var b = [], v = {};
        function y(x) {
          if (Array.isArray(x)) {
            var S;
            b = (S = b).concat.apply(S, x);
          } else b.push(x);
        }
        for (var w = 0; w < m.length; w++) y(m[w]);
        b.length ? (v = Kh(b), c(b, v)) : c(null, l);
      }
      if (s.messages) {
        var d = this.messages();
        d === Xh && (d = Yh()), qb(d, s.messages), s.messages = d;
      } else s.messages = this.messages();
      var h = {}, p = s.keys || Object.keys(this.rules);
      p.forEach(function(m) {
        var b = a.rules[m], v = l[m];
        b.forEach(function(y) {
          var w = y;
          typeof w.transform == "function" && (l === r && (l = Ji({}, l)), v = l[m] = w.transform(v)), typeof w == "function" ? w = {
            validator: w
          } : w = Ji({}, w), w.validator = a.getValidationMethod(w), w.validator && (w.field = m, w.fullField = w.fullField || m, w.type = a.getType(w), h[m] = h[m] || [], h[m].push({
            rule: w,
            value: v,
            source: l,
            field: m
          }));
        });
      });
      var f = {};
      return pL(h, s, function(m, b) {
        var _a2;
        var v = m.rule, y = (v.type === "object" || v.type === "array") && (typeof v.fields == "object" || typeof v.defaultField == "object");
        y = y && (v.required || !v.required && m.value), v.field = m.field;
        function w(_, C) {
          return Ji({}, C, {
            fullField: v.fullField + "." + _,
            fullFields: v.fullFields ? [].concat(v.fullFields, [
              _
            ]) : [
              _
            ]
          });
        }
        function x(_) {
          _ === void 0 && (_ = []);
          var C = Array.isArray(_) ? _ : [
            _
          ];
          !s.suppressWarning && C.length && e.warning("async-validator:", C), C.length && v.message !== void 0 && (C = [].concat(v.message));
          var k = C.map(Vb(v, l));
          if (s.first && k.length) return f[v.field] = 1, b(k);
          if (!y) b(k);
          else {
            if (v.required && !m.value) return v.message !== void 0 ? k = [].concat(v.message).map(Vb(v, l)) : s.error && (k = [
              s.error(v, Er(s.messages.required, v.field))
            ]), b(k);
            var R = {};
            v.defaultField && Object.keys(m.value).map(function(E) {
              R[E] = v.defaultField;
            }), R = Ji({}, R, m.rule.fields);
            var P = {};
            Object.keys(R).forEach(function(E) {
              var M = R[E], z = Array.isArray(M) ? M : [
                M
              ];
              P[E] = z.map(w.bind(null, E));
            });
            var B = new e(P);
            B.messages(s.messages), m.rule.options && (m.rule.options.messages = s.messages, m.rule.options.error = s.error), B.validate(m.value, m.rule.options || s, function(E) {
              var M = [];
              k && k.length && M.push.apply(M, k), E && E.length && M.push.apply(M, E), b(M.length ? M : null);
            });
          }
        }
        var S;
        if (v.asyncValidator) S = v.asyncValidator(v, m.value, x, m.source, s);
        else if (v.validator) {
          try {
            S = v.validator(v, m.value, x, m.source, s);
          } catch (_) {
            (_a2 = console.error) == null ? void 0 : _a2.call(console, _), s.suppressValidatorError || setTimeout(function() {
              throw _;
            }, 0), x(_.message);
          }
          S === true ? x() : S === false ? x(typeof v.message == "function" ? v.message(v.fullField || v.field) : v.message || (v.fullField || v.field) + " fails") : S instanceof Array ? x(S) : S instanceof Error && x(S.message);
        }
        S && S.then && S.then(function() {
          return x();
        }, function(_) {
          return x(_);
        });
      }, function(m) {
        u(m);
      }, l);
    }, t.getType = function(r) {
      if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !vs.hasOwnProperty(r.type)) throw new Error(Er("Unknown rule type %s", r.type));
      return r.type || "string";
    }, t.getValidationMethod = function(r) {
      if (typeof r.validator == "function") return r.validator;
      var o = Object.keys(r), i = o.indexOf("message");
      return i !== -1 && o.splice(i, 1), o.length === 1 && o[0] === "required" ? vs.required : vs[this.getType(r)] || void 0;
    }, e;
  })();
  hl.register = function(t, n) {
    if (typeof n != "function") throw new Error("Cannot register a validator by type, validator is not a function");
    vs[t] = n;
  };
  hl.warning = uL;
  hl.messages = Xh;
  hl.validators = vs;
  const { cubicBezierEaseInOut: Kb } = yr;
  function LL({ name: e = "fade-down", fromOffset: t = "-4px", enterDuration: n = ".3s", leaveDuration: r = ".3s", enterCubicBezier: o = Kb, leaveCubicBezier: i = Kb } = {}) {
    return [
      W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
        opacity: 0,
        transform: `translateY(${t})`
      }),
      W(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`, {
        opacity: 1,
        transform: "translateY(0)"
      }),
      W(`&.${e}-transition-leave-active`, {
        transition: `opacity ${r} ${i}, transform ${r} ${i}`
      }),
      W(`&.${e}-transition-enter-active`, {
        transition: `opacity ${n} ${o}, transform ${n} ${o}`
      })
    ];
  }
  const BL = A("form-item", `
 display: grid;
 line-height: var(--n-line-height);
`, [
    A("form-item-label", `
 grid-area: label;
 align-items: center;
 line-height: 1.25;
 text-align: var(--n-label-text-align);
 font-size: var(--n-label-font-size);
 min-height: var(--n-label-height);
 padding: var(--n-label-padding);
 color: var(--n-label-text-color);
 transition: color .3s var(--n-bezier);
 box-sizing: border-box;
 font-weight: var(--n-label-font-weight);
 `, [
      V("asterisk", `
 white-space: nowrap;
 user-select: none;
 -webkit-user-select: none;
 color: var(--n-asterisk-color);
 transition: color .3s var(--n-bezier);
 `),
      V("asterisk-placeholder", `
 grid-area: mark;
 user-select: none;
 -webkit-user-select: none;
 visibility: hidden; 
 `)
    ]),
    A("form-item-blank", `
 grid-area: blank;
 min-height: var(--n-blank-height);
 `),
    G("auto-label-width", [
      A("form-item-label", "white-space: nowrap;")
    ]),
    G("left-labelled", `
 grid-template-areas:
 "label blank"
 "label feedback";
 grid-template-columns: auto minmax(0, 1fr);
 grid-template-rows: auto 1fr;
 align-items: flex-start;
 `, [
      A("form-item-label", `
 display: grid;
 grid-template-columns: 1fr auto;
 min-height: var(--n-blank-height);
 height: auto;
 box-sizing: border-box;
 flex-shrink: 0;
 flex-grow: 0;
 `, [
        G("reverse-columns-space", `
 grid-template-columns: auto 1fr;
 `),
        G("left-mark", `
 grid-template-areas:
 "mark text"
 ". text";
 `),
        G("right-mark", `
 grid-template-areas: 
 "text mark"
 "text .";
 `),
        G("right-hanging-mark", `
 grid-template-areas: 
 "text mark"
 "text .";
 `),
        V("text", `
 grid-area: text; 
 `),
        V("asterisk", `
 grid-area: mark; 
 align-self: end;
 `)
      ])
    ]),
    G("top-labelled", `
 grid-template-areas:
 "label"
 "blank"
 "feedback";
 grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
 grid-template-columns: minmax(0, 100%);
 `, [
      G("no-label", `
 grid-template-areas:
 "blank"
 "feedback";
 grid-template-rows: 1fr;
 `),
      A("form-item-label", `
 display: flex;
 align-items: flex-start;
 justify-content: var(--n-label-text-align);
 `)
    ]),
    A("form-item-blank", `
 box-sizing: border-box;
 display: flex;
 align-items: center;
 position: relative;
 `),
    A("form-item-feedback-wrapper", `
 grid-area: feedback;
 box-sizing: border-box;
 min-height: var(--n-feedback-height);
 font-size: var(--n-feedback-font-size);
 line-height: 1.25;
 transform-origin: top left;
 `, [
      W("&:not(:empty)", `
 padding: var(--n-feedback-padding);
 `),
      A("form-item-feedback", {
        transition: "color .3s var(--n-bezier)",
        color: "var(--n-feedback-text-color)"
      }, [
        G("warning", {
          color: "var(--n-feedback-text-color-warning)"
        }),
        G("error", {
          color: "var(--n-feedback-text-color-error)"
        }),
        LL({
          fromOffset: "-3px",
          enterDuration: ".3s",
          leaveDuration: ".2s"
        })
      ])
    ])
  ]);
  function NL(e) {
    const t = je(rc, null);
    return {
      mergedSize: D(() => e.size !== void 0 ? e.size : (t == null ? void 0 : t.props.size) !== void 0 ? t.props.size : "medium")
    };
  }
  function HL(e) {
    const t = je(rc, null), n = D(() => {
      const { labelPlacement: f } = e;
      return f !== void 0 ? f : (t == null ? void 0 : t.props.labelPlacement) ? t.props.labelPlacement : "top";
    }), r = D(() => n.value === "left" && (e.labelWidth === "auto" || (t == null ? void 0 : t.props.labelWidth) === "auto")), o = D(() => {
      if (n.value === "top") return;
      const { labelWidth: f } = e;
      if (f !== void 0 && f !== "auto") return Ft(f);
      if (r.value) {
        const m = t == null ? void 0 : t.maxChildLabelWidthRef.value;
        return m !== void 0 ? Ft(m) : void 0;
      }
      if ((t == null ? void 0 : t.props.labelWidth) !== void 0) return Ft(t.props.labelWidth);
    }), i = D(() => {
      const { labelAlign: f } = e;
      if (f) return f;
      if (t == null ? void 0 : t.props.labelAlign) return t.props.labelAlign;
    }), a = D(() => {
      var f;
      return [
        (f = e.labelProps) === null || f === void 0 ? void 0 : f.style,
        e.labelStyle,
        {
          width: o.value
        }
      ];
    }), l = D(() => {
      const { showRequireMark: f } = e;
      return f !== void 0 ? f : t == null ? void 0 : t.props.showRequireMark;
    }), s = D(() => {
      const { requireMarkPlacement: f } = e;
      return f !== void 0 ? f : (t == null ? void 0 : t.props.requireMarkPlacement) || "right";
    }), c = L(false), u = L(false), d = D(() => {
      const { validationStatus: f } = e;
      if (f !== void 0) return f;
      if (c.value) return "error";
      if (u.value) return "warning";
    }), h = D(() => {
      const { showFeedback: f } = e;
      return f !== void 0 ? f : (t == null ? void 0 : t.props.showFeedback) !== void 0 ? t.props.showFeedback : true;
    }), p = D(() => {
      const { showLabel: f } = e;
      return f !== void 0 ? f : (t == null ? void 0 : t.props.showLabel) !== void 0 ? t.props.showLabel : true;
    });
    return {
      validationErrored: c,
      validationWarned: u,
      mergedLabelStyle: a,
      mergedLabelPlacement: n,
      mergedLabelAlign: i,
      mergedShowRequireMark: l,
      mergedRequireMarkPlacement: s,
      mergedValidationStatus: d,
      mergedShowFeedback: h,
      mergedShowLabel: p,
      isAutoLabelWidth: r
    };
  }
  function jL(e) {
    const t = je(rc, null), n = D(() => {
      const { rulePath: a } = e;
      if (a !== void 0) return a;
      const { path: l } = e;
      if (l !== void 0) return l;
    }), r = D(() => {
      const a = [], { rule: l } = e;
      if (l !== void 0 && (Array.isArray(l) ? a.push(...l) : a.push(l)), t) {
        const { rules: s } = t.props, { value: c } = n;
        if (s !== void 0 && c !== void 0) {
          const u = $s(s, c);
          u !== void 0 && (Array.isArray(u) ? a.push(...u) : a.push(u));
        }
      }
      return a;
    }), o = D(() => r.value.some((a) => a.required)), i = D(() => o.value || e.required);
    return {
      mergedRules: r,
      mergedRequired: i
    };
  }
  var Yb = function(e, t, n, r) {
    function o(i) {
      return i instanceof n ? i : new n(function(a) {
        a(i);
      });
    }
    return new (n || (n = Promise))(function(i, a) {
      function l(u) {
        try {
          c(r.next(u));
        } catch (d) {
          a(d);
        }
      }
      function s(u) {
        try {
          c(r.throw(u));
        } catch (d) {
          a(d);
        }
      }
      function c(u) {
        u.done ? i(u.value) : o(u.value).then(l, s);
      }
      c((r = r.apply(e, t || [])).next());
    });
  };
  const Im = Object.assign(Object.assign({}, Fe.props), {
    label: String,
    labelWidth: [
      Number,
      String
    ],
    labelStyle: [
      String,
      Object
    ],
    labelAlign: String,
    labelPlacement: String,
    path: String,
    first: Boolean,
    rulePath: String,
    required: Boolean,
    showRequireMark: {
      type: Boolean,
      default: void 0
    },
    requireMarkPlacement: String,
    showFeedback: {
      type: Boolean,
      default: void 0
    },
    rule: [
      Object,
      Array
    ],
    size: String,
    ignorePathChange: Boolean,
    validationStatus: String,
    feedback: String,
    feedbackClass: String,
    feedbackStyle: [
      String,
      Object
    ],
    showLabel: {
      type: Boolean,
      default: void 0
    },
    labelProps: Object,
    contentClass: String,
    contentStyle: [
      String,
      Object
    ]
  }), WL = ur(Im);
  function Xb(e, t) {
    return (...n) => {
      try {
        const r = e(...n);
        return !t && (typeof r == "boolean" || r instanceof Error || Array.isArray(r)) || (r == null ? void 0 : r.then) ? r : (r === void 0 || lo("form-item/validate", `You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t ? "`Promise`" : "`boolean`, `Error` or `Promise`"} typed value instead.`), true);
      } catch (r) {
        lo("form-item/validate", "An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."), console.error(r);
        return;
      }
    };
  }
  let UL, VL, oS, Mm, qL, Lm, KL, Bm, XL, JL, Jb, iS, aS, ZL, QL, e9, t9, n9, lS, Pf, r9, o9;
  Fm = pe({
    name: "FormItem",
    props: Im,
    setup(e) {
      zE(nS, "formItems", $e(e, "path"));
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = je(rc, null), o = NL(e), i = HL(e), { validationErrored: a, validationWarned: l } = i, { mergedRequired: s, mergedRules: c } = jL(e), { mergedSize: u } = o, { mergedLabelPlacement: d, mergedLabelAlign: h, mergedRequireMarkPlacement: p } = i, f = L([]), m = L(ai()), b = r ? $e(r.props, "disabled") : L(false), v = Fe("Form", "-form-item", BL, N2, e, t);
      lt($e(e, "path"), () => {
        e.ignorePathChange || y();
      });
      function y() {
        f.value = [], a.value = false, l.value = false, e.feedback && (m.value = ai());
      }
      const w = (...z) => Yb(this, [
        ...z
      ], void 0, function* (U = null, ee = () => true, ne = {
        suppressWarning: true
      }) {
        const { path: ae } = e;
        ne ? ne.first || (ne.first = e.first) : ne = {};
        const { value: ye } = c, xe = r ? $s(r.props.model, ae || "") : void 0, re = {}, Y = {}, H = (U ? ye.filter((q) => Array.isArray(q.trigger) ? q.trigger.includes(U) : q.trigger === U) : ye).filter(ee).map((q, J) => {
          const le = Object.assign({}, q);
          if (le.validator && (le.validator = Xb(le.validator, false)), le.asyncValidator && (le.asyncValidator = Xb(le.asyncValidator, true)), le.renderMessage) {
            const we = `__renderMessage__${J}`;
            Y[we] = le.message, le.message = we, re[we] = le.renderMessage;
          }
          return le;
        }), oe = H.filter((q) => q.level !== "warning"), ce = H.filter((q) => q.level === "warning"), be = {
          valid: true,
          errors: void 0,
          warnings: void 0
        };
        if (!H.length) return be;
        const ie = ae ?? "__n_no_path__", fe = new hl({
          [ie]: oe
        }), F = new hl({
          [ie]: ce
        }), { validateMessages: se } = (r == null ? void 0 : r.props) || {};
        se && (fe.messages(se), F.messages(se));
        const ze = (q) => {
          f.value = q.map((J) => {
            const le = (J == null ? void 0 : J.message) || "";
            return {
              key: le,
              render: () => le.startsWith("__renderMessage__") ? re[le]() : le
            };
          }), q.forEach((J) => {
            var le;
            !((le = J.message) === null || le === void 0) && le.startsWith("__renderMessage__") && (J.message = Y[J.message]);
          });
        };
        if (oe.length) {
          const q = yield new Promise((J) => {
            fe.validate({
              [ie]: xe
            }, ne, J);
          });
          (q == null ? void 0 : q.length) && (be.valid = false, be.errors = q, ze(q));
        }
        if (ce.length && !be.errors) {
          const q = yield new Promise((J) => {
            F.validate({
              [ie]: xe
            }, ne, J);
          });
          (q == null ? void 0 : q.length) && (ze(q), be.warnings = q);
        }
        return !be.errors && !be.warnings ? y() : (a.value = !!be.errors, l.value = !!be.warnings), be;
      });
      function x() {
        w("blur");
      }
      function S() {
        w("change");
      }
      function _() {
        w("focus");
      }
      function C() {
        w("input");
      }
      function k(z, U) {
        return Yb(this, void 0, void 0, function* () {
          let ee, ne, ae, ye;
          return typeof z == "string" ? (ee = z, ne = U) : z !== null && typeof z == "object" && (ee = z.trigger, ne = z.callback, ae = z.shouldRuleBeApplied, ye = z.options), yield new Promise((xe, re) => {
            w(ee, ae, ye).then(({ valid: Y, errors: H, warnings: oe }) => {
              Y ? (ne && ne(void 0, {
                warnings: oe
              }), xe({
                warnings: oe
              })) : (ne && ne(H, {
                warnings: oe
              }), re(H));
            });
          });
        });
      }
      ft(Dh, {
        path: $e(e, "path"),
        disabled: b,
        mergedSize: o.mergedSize,
        mergedValidationStatus: i.mergedValidationStatus,
        restoreValidation: y,
        handleContentBlur: x,
        handleContentChange: S,
        handleContentFocus: _,
        handleContentInput: C
      });
      const R = {
        validate: k,
        restoreValidation: y,
        internalValidate: w
      }, P = L(null);
      gt(() => {
        if (!i.isAutoLabelWidth.value) return;
        const z = P.value;
        if (z !== null) {
          const U = z.style.whiteSpace;
          z.style.whiteSpace = "nowrap", z.style.width = "", r == null ? void 0 : r.deriveMaxChildLabelWidth(Number(getComputedStyle(z).width.slice(0, -2))), z.style.whiteSpace = U;
        }
      });
      const B = D(() => {
        var z;
        const { value: U } = u, { value: ee } = d, ne = ee === "top" ? "vertical" : "horizontal", { common: { cubicBezierEaseInOut: ae }, self: { labelTextColor: ye, asteriskColor: xe, lineHeight: re, feedbackTextColor: Y, feedbackTextColorWarning: H, feedbackTextColorError: oe, feedbackPadding: ce, labelFontWeight: be, [Se("labelHeight", U)]: ie, [Se("blankHeight", U)]: fe, [Se("feedbackFontSize", U)]: F, [Se("feedbackHeight", U)]: se, [Se("labelPadding", ne)]: ze, [Se("labelTextAlign", ne)]: q, [Se(Se("labelFontSize", ee), U)]: J } } = v.value;
        let le = (z = h.value) !== null && z !== void 0 ? z : q;
        return ee === "top" && (le = le === "right" ? "flex-end" : "flex-start"), {
          "--n-bezier": ae,
          "--n-line-height": re,
          "--n-blank-height": fe,
          "--n-label-font-size": J,
          "--n-label-text-align": le,
          "--n-label-height": ie,
          "--n-label-padding": ze,
          "--n-label-font-weight": be,
          "--n-asterisk-color": xe,
          "--n-label-text-color": ye,
          "--n-feedback-padding": ce,
          "--n-feedback-font-size": F,
          "--n-feedback-height": se,
          "--n-feedback-text-color": Y,
          "--n-feedback-text-color-warning": H,
          "--n-feedback-text-color-error": oe
        };
      }), E = n ? xt("form-item", D(() => {
        var z;
        return `${u.value[0]}${d.value[0]}${((z = h.value) === null || z === void 0 ? void 0 : z[0]) || ""}`;
      }), B, e) : void 0, M = D(() => d.value === "left" && p.value === "left" && h.value === "left");
      return Object.assign(Object.assign(Object.assign(Object.assign({
        labelElementRef: P,
        mergedClsPrefix: t,
        mergedRequired: s,
        feedbackId: m,
        renderExplains: f,
        reverseColSpace: M
      }, i), o), R), {
        cssVars: n ? void 0 : B,
        themeClass: E == null ? void 0 : E.themeClass,
        onRender: E == null ? void 0 : E.onRender
      });
    },
    render() {
      const { $slots: e, mergedClsPrefix: t, mergedShowLabel: n, mergedShowRequireMark: r, mergedRequireMarkPlacement: o, onRender: i } = this, a = r !== void 0 ? r : this.mergedRequired;
      i == null ? void 0 : i();
      const l = () => {
        const s = this.$slots.label ? this.$slots.label() : this.label;
        if (!s) return null;
        const c = g("span", {
          class: `${t}-form-item-label__text`
        }, s), u = a ? g("span", {
          class: `${t}-form-item-label__asterisk`
        }, o !== "left" ? "\xA0*" : "*\xA0") : o === "right-hanging" && g("span", {
          class: `${t}-form-item-label__asterisk-placeholder`
        }, "\xA0*"), { labelProps: d } = this;
        return g("label", Object.assign({}, d, {
          class: [
            d == null ? void 0 : d.class,
            `${t}-form-item-label`,
            `${t}-form-item-label--${o}-mark`,
            this.reverseColSpace && `${t}-form-item-label--reverse-columns-space`
          ],
          style: this.mergedLabelStyle,
          ref: "labelElementRef"
        }), o === "left" ? [
          u,
          c
        ] : [
          c,
          u
        ]);
      };
      return g("div", {
        class: [
          `${t}-form-item`,
          this.themeClass,
          `${t}-form-item--${this.mergedSize}-size`,
          `${t}-form-item--${this.mergedLabelPlacement}-labelled`,
          this.isAutoLabelWidth && `${t}-form-item--auto-label-width`,
          !n && `${t}-form-item--no-label`
        ],
        style: this.cssVars
      }, n && l(), g("div", {
        class: [
          `${t}-form-item-blank`,
          this.contentClass,
          this.mergedValidationStatus && `${t}-form-item-blank--${this.mergedValidationStatus}`
        ],
        style: this.contentStyle
      }, e), this.mergedShowFeedback ? g("div", {
        key: this.feedbackId,
        style: this.feedbackStyle,
        class: [
          `${t}-form-item-feedback-wrapper`,
          this.feedbackClass
        ]
      }, g(Ln, {
        name: "fade-down-transition",
        mode: "out-in"
      }, {
        default: () => {
          const { mergedValidationStatus: s } = this;
          return Pt(e.feedback, (c) => {
            var u;
            const { feedback: d } = this, h = c || d ? g("div", {
              key: "__feedback__",
              class: `${t}-form-item-feedback__line`
            }, c || d) : this.renderExplains.length ? (u = this.renderExplains) === null || u === void 0 ? void 0 : u.map(({ key: p, render: f }) => g("div", {
              key: p,
              class: `${t}-form-item-feedback__line`
            }, f())) : null;
            return h ? s === "warning" ? g("div", {
              key: "controlled-warning",
              class: `${t}-form-item-feedback ${t}-form-item-feedback--warning`
            }, h) : s === "error" ? g("div", {
              key: "controlled-error",
              class: `${t}-form-item-feedback ${t}-form-item-feedback--error`
            }, h) : s === "success" ? g("div", {
              key: "controlled-success",
              class: `${t}-form-item-feedback ${t}-form-item-feedback--success`
            }, h) : g("div", {
              key: "controlled-default",
              class: `${t}-form-item-feedback`
            }, h) : null;
          });
        }
      })) : null);
    }
  });
  UL = Yp(24, null).map((e, t) => {
    const n = t + 1, r = `calc(100% / 24 * ${n})`;
    return [
      G(`${n}-span`, {
        width: r
      }),
      G(`${n}-offset`, {
        marginLeft: r
      }),
      G(`${n}-push`, {
        left: r
      }),
      G(`${n}-pull`, {
        right: r
      })
    ];
  });
  VL = W([
    A("row", {
      width: "100%",
      display: "flex",
      flexWrap: "wrap"
    }),
    A("col", {
      verticalAlign: "top",
      boxSizing: "border-box",
      display: "inline-block",
      position: "relative",
      zIndex: "auto"
    }, [
      V("box", {
        position: "relative",
        zIndex: "auto",
        width: "100%",
        height: "100%"
      }),
      UL
    ])
  ]);
  oS = "n-row";
  Mm = {
    gutter: {
      type: [
        Array,
        Number,
        String
      ],
      default: 0
    },
    alignItems: String,
    justifyContent: String
  };
  qL = ur(Mm);
  GL = pe({
    name: "Row",
    props: Mm,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n } = at(e);
      Lo("-legacy-grid", VL, t);
      const r = rn("Row", n, t), o = Ct(() => {
        const { gutter: a } = e;
        return Array.isArray(a) && a[1] || 0;
      }), i = Ct(() => {
        const { gutter: a } = e;
        return Array.isArray(a) ? a[0] : Number(a);
      });
      return ft(oS, {
        mergedClsPrefixRef: t,
        gutterRef: $e(e, "gutter"),
        verticalGutterRef: o,
        horizontalGutterRef: i
      }), {
        mergedClsPrefix: t,
        rtlEnabled: r,
        styleMargin: Ct(() => `-${Ft(o.value, {
          c: 0.5
        })} -${Ft(i.value, {
          c: 0.5
        })}`),
        styleWidth: Ct(() => `calc(100% + ${Ft(i.value)})`)
      };
    },
    render() {
      return g("div", {
        class: [
          `${this.mergedClsPrefix}-row`,
          this.rtlEnabled && `${this.mergedClsPrefix}-row--rtl`
        ],
        style: {
          margin: this.styleMargin,
          width: this.styleWidth,
          alignItems: this.alignItems,
          justifyContent: this.justifyContent
        }
      }, this.$slots);
    }
  });
  Lm = {
    span: {
      type: [
        String,
        Number
      ],
      default: 1
    },
    push: {
      type: [
        String,
        Number
      ],
      default: 0
    },
    pull: {
      type: [
        String,
        Number
      ],
      default: 0
    },
    offset: {
      type: [
        String,
        Number
      ],
      default: 0
    }
  };
  KL = ur(Lm);
  YL = pe({
    name: "Col",
    props: Lm,
    setup(e) {
      const t = je(oS, null);
      return t || $i("col", "`n-col` must be placed inside `n-row`."), {
        mergedClsPrefix: t.mergedClsPrefixRef,
        gutter: t.gutterRef,
        stylePadding: D(() => `${Ft(t.verticalGutterRef.value, {
          c: 0.5
        })} ${Ft(t.horizontalGutterRef.value, {
          c: 0.5
        })}`),
        mergedPush: D(() => Number(e.push) - Number(e.pull))
      };
    },
    render() {
      const { $slots: e, span: t, mergedPush: n, offset: r, stylePadding: o, gutter: i, mergedClsPrefix: a } = this;
      return g("div", {
        class: [
          `${a}-col`,
          {
            [`${a}-col--${t}-span`]: true,
            [`${a}-col--${n}-push`]: n > 0,
            [`${a}-col--${-n}-pull`]: n < 0,
            [`${a}-col--${r}-offset`]: r
          }
        ],
        style: {
          padding: o
        }
      }, i ? g("div", null, e) : e);
    }
  });
  Bm = Object.assign(Object.assign({}, Lm), Im);
  XL = ur(Bm);
  JL = pe({
    name: "FormItemCol",
    props: Bm,
    setup() {
      const e = L(null);
      return {
        formItemInstRef: e,
        validate: (...r) => {
          const { value: o } = e;
          if (o) return o.validate(...r);
        },
        restoreValidation: () => {
          const { value: r } = e;
          r && r.restoreValidation();
        }
      };
    },
    render() {
      return g(YL, cr(this.$props, KL), {
        default: () => {
          const e = cr(this.$props, WL);
          return g(Fm, Object.assign({
            ref: "formItemInstRef"
          }, e), this.$slots);
        }
      });
    }
  });
  Jb = 1;
  iS = "n-grid";
  aS = 1;
  ZL = {
    span: {
      type: [
        Number,
        String
      ],
      default: aS
    },
    offset: {
      type: [
        Number,
        String
      ],
      default: 0
    },
    suffix: Boolean,
    privateOffset: Number,
    privateSpan: Number,
    privateColStart: Number,
    privateShow: {
      type: Boolean,
      default: true
    }
  };
  QL = pe({
    __GRID_ITEM__: true,
    name: "GridItem",
    alias: [
      "Gi"
    ],
    props: ZL,
    setup() {
      const { isSsrRef: e, xGapRef: t, itemStyleRef: n, overflowRef: r, layoutShiftDisabledRef: o } = je(iS), i = Vn();
      return {
        overflow: r,
        itemStyle: n,
        layoutShiftDisabled: o,
        mergedXGap: D(() => tn(t.value || 0)),
        deriveStyle: () => {
          e.value;
          const { privateSpan: a = aS, privateShow: l = true, privateColStart: s = void 0, privateOffset: c = 0 } = i.vnode.props, { value: u } = t, d = tn(u || 0);
          return {
            display: l ? "" : "none",
            gridColumn: `${s ?? `span ${a}`} / span ${a}`,
            marginLeft: c ? `calc((100% - (${a} - 1) * ${d}) / ${a} * ${c} + ${d} * ${c})` : ""
          };
        }
      };
    },
    render() {
      var e, t;
      if (this.layoutShiftDisabled) {
        const { span: n, offset: r, mergedXGap: o } = this;
        return g("div", {
          style: {
            gridColumn: `span ${n} / span ${n}`,
            marginLeft: r ? `calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})` : ""
          }
        }, this.$slots);
      }
      return g("div", {
        style: [
          this.itemStyle,
          this.deriveStyle()
        ]
      }, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e, {
        overflow: this.overflow
      }));
    }
  });
  e9 = Object.assign(Object.assign({}, Mm), Bm);
  oc = pe({
    name: "FormItemRow",
    props: e9,
    setup() {
      const e = L(null);
      return {
        formItemColInstRef: e,
        validate: (...r) => {
          const { value: o } = e;
          if (o) return o.validate(...r);
        },
        restoreValidation: () => {
          const { value: r } = e;
          r && r.restoreValidation();
        }
      };
    },
    render() {
      return g(GL, cr(this.$props, qL), {
        default: () => {
          const e = cr(this.$props, XL);
          return g(JL, Object.assign(Object.assign({
            ref: "formItemColInstRef"
          }, e), {
            span: 24
          }), this.$slots);
        }
      });
    }
  });
  t9 = pe({
    name: "GlobalStyle",
    setup() {
      if (typeof document > "u") return;
      const e = je(qr, null), { body: t } = document, { style: n } = t;
      let r = false, o = true;
      ci(() => {
        fn(() => {
          var i, a;
          const { textColor2: l, fontSize: s, fontFamily: c, bodyColor: u, cubicBezierEaseInOut: d, lineHeight: h } = e ? Xa({}, ((i = e.mergedThemeRef.value) === null || i === void 0 ? void 0 : i.common) || mt, (a = e.mergedThemeOverridesRef.value) === null || a === void 0 ? void 0 : a.common) : mt;
          if (r || !t.hasAttribute("n-styled")) {
            n.setProperty("-webkit-text-size-adjust", "100%"), n.setProperty("-webkit-tap-highlight-color", "transparent"), n.padding = "0", n.margin = "0", n.backgroundColor = u, n.color = l, n.fontSize = s, n.fontFamily = c, n.lineHeight = h;
            const p = `color .3s ${d}, background-color .3s ${d}`;
            o ? setTimeout(() => {
              n.transition = p;
            }, 0) : n.transition = p, t.setAttribute("n-styled", ""), r = true, o = false;
          }
        });
      }), wl(() => {
        r && t.removeAttribute("n-styled");
      });
    },
    render() {
      return null;
    }
  });
  n9 = {
    xs: 0,
    s: 640,
    m: 1024,
    l: 1280,
    xl: 1536,
    xxl: 1920
  };
  lS = 24;
  Pf = "__ssr__";
  r9 = {
    layoutShiftDisabled: Boolean,
    responsive: {
      type: [
        String,
        Boolean
      ],
      default: "self"
    },
    cols: {
      type: [
        Number,
        String
      ],
      default: lS
    },
    itemResponsive: Boolean,
    collapsed: Boolean,
    collapsedRows: {
      type: Number,
      default: 1
    },
    itemStyle: [
      Object,
      String
    ],
    xGap: {
      type: [
        Number,
        String
      ],
      default: 0
    },
    yGap: {
      type: [
        Number,
        String
      ],
      default: 0
    }
  };
  o9 = pe({
    name: "Grid",
    inheritAttrs: false,
    props: r9,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedBreakpointsRef: n } = at(e), r = /^\d+$/, o = L(void 0), i = Qx((n == null ? void 0 : n.value) || n9), a = Ct(() => !!(e.itemResponsive || !r.test(e.cols.toString()) || !r.test(e.xGap.toString()) || !r.test(e.yGap.toString()))), l = D(() => {
        if (a.value) return e.responsive === "self" ? o.value : i.value;
      }), s = Ct(() => {
        var v;
        return (v = Number(Fa(e.cols.toString(), l.value))) !== null && v !== void 0 ? v : lS;
      }), c = Ct(() => Fa(e.xGap.toString(), l.value)), u = Ct(() => Fa(e.yGap.toString(), l.value)), d = (v) => {
        o.value = v.contentRect.width;
      }, h = (v) => {
        Es(d, v);
      }, p = L(false), f = D(() => {
        if (e.responsive === "self") return h;
      }), m = L(false), b = L();
      return gt(() => {
        const { value: v } = b;
        v && v.hasAttribute(Pf) && (v.removeAttribute(Pf), m.value = true);
      }), ft(iS, {
        layoutShiftDisabledRef: $e(e, "layoutShiftDisabled"),
        isSsrRef: m,
        itemStyleRef: $e(e, "itemStyle"),
        xGapRef: c,
        overflowRef: p
      }), {
        isSsr: !ui,
        contentEl: b,
        mergedClsPrefix: t,
        style: D(() => e.layoutShiftDisabled ? {
          width: "100%",
          display: "grid",
          gridTemplateColumns: `repeat(${e.cols}, minmax(0, 1fr))`,
          columnGap: tn(e.xGap),
          rowGap: tn(e.yGap)
        } : {
          width: "100%",
          display: "grid",
          gridTemplateColumns: `repeat(${s.value}, minmax(0, 1fr))`,
          columnGap: tn(c.value),
          rowGap: tn(u.value)
        }),
        isResponsive: a,
        responsiveQuery: l,
        responsiveCols: s,
        handleResize: f,
        overflow: p
      };
    },
    render() {
      if (this.layoutShiftDisabled) return g("div", Mn({
        ref: "contentEl",
        class: `${this.mergedClsPrefix}-grid`,
        style: this.style
      }, this.$attrs), this.$slots);
      const e = () => {
        var t, n, r, o, i, a, l;
        this.overflow = false;
        const s = ro(sd(this)), c = [], { collapsed: u, collapsedRows: d, responsiveCols: h, responsiveQuery: p } = this;
        s.forEach((y) => {
          var w, x, S, _, C;
          if (((w = y == null ? void 0 : y.type) === null || w === void 0 ? void 0 : w.__GRID_ITEM__) !== true) return;
          if (OT(y)) {
            const P = zr(y);
            P.props ? P.props.privateShow = false : P.props = {
              privateShow: false
            }, c.push({
              child: P,
              rawChildSpan: 0
            });
            return;
          }
          y.dirs = ((x = y.dirs) === null || x === void 0 ? void 0 : x.filter(({ dir: P }) => P !== zo)) || null, ((S = y.dirs) === null || S === void 0 ? void 0 : S.length) === 0 && (y.dirs = null);
          const k = zr(y), R = Number((C = Fa((_ = k.props) === null || _ === void 0 ? void 0 : _.span, p)) !== null && C !== void 0 ? C : Jb);
          R !== 0 && c.push({
            child: k,
            rawChildSpan: R
          });
        });
        let f = 0;
        const m = (t = c[c.length - 1]) === null || t === void 0 ? void 0 : t.child;
        if (m == null ? void 0 : m.props) {
          const y = (n = m.props) === null || n === void 0 ? void 0 : n.suffix;
          y !== void 0 && y !== false && (f = Number((o = Fa((r = m.props) === null || r === void 0 ? void 0 : r.span, p)) !== null && o !== void 0 ? o : Jb), m.props.privateSpan = f, m.props.privateColStart = h + 1 - f, m.props.privateShow = (i = m.props.privateShow) !== null && i !== void 0 ? i : true);
        }
        let b = 0, v = false;
        for (const { child: y, rawChildSpan: w } of c) {
          if (v && (this.overflow = true), !v) {
            const x = Number((l = Fa((a = y.props) === null || a === void 0 ? void 0 : a.offset, p)) !== null && l !== void 0 ? l : 0), S = Math.min(w + x, h);
            if (y.props ? (y.props.privateSpan = S, y.props.privateOffset = x) : y.props = {
              privateSpan: S,
              privateOffset: x
            }, u) {
              const _ = b % h;
              S + _ > h && (b += h - _), S + b + f > d * h ? v = true : b += S;
            }
          }
          v && (y.props ? y.props.privateShow !== true && (y.props.privateShow = false) : y.props = {
            privateShow: false
          });
        }
        return g("div", Mn({
          ref: "contentEl",
          class: `${this.mergedClsPrefix}-grid`,
          style: this.style,
          [Pf]: this.isSsr || void 0
        }, this.$attrs), c.map(({ child: y }) => y));
      };
      return this.isResponsive && this.responsive === "self" ? g(Vr, {
        onResize: this.handleResize
      }, {
        default: e
      }) : e();
    }
  });
  function i9(e) {
    const { borderRadius: t, fontSizeMini: n, fontSizeTiny: r, fontSizeSmall: o, fontWeight: i, textColor2: a, cardColor: l, buttonColor2Hover: s } = e;
    return {
      activeColors: [
        "#9be9a8",
        "#40c463",
        "#30a14e",
        "#216e39"
      ],
      borderRadius: t,
      borderColor: l,
      textColor: a,
      mininumColor: s,
      fontWeight: i,
      loadingColorStart: "rgba(0, 0, 0, 0.06)",
      loadingColorEnd: "rgba(0, 0, 0, 0.12)",
      rectSizeSmall: "10px",
      rectSizeMedium: "11px",
      rectSizeLarge: "12px",
      borderRadiusSmall: "2px",
      borderRadiusMedium: "2px",
      borderRadiusLarge: "2px",
      xGapSmall: "2px",
      xGapMedium: "3px",
      xGapLarge: "3px",
      yGapSmall: "2px",
      yGapMedium: "3px",
      yGapLarge: "3px",
      fontSizeSmall: r,
      fontSizeMedium: n,
      fontSizeLarge: o
    };
  }
  const a9 = {
    name: "Heatmap",
    common: Ue,
    self(e) {
      const t = i9(e);
      return Object.assign(Object.assign({}, t), {
        activeColors: [
          "#0d4429",
          "#006d32",
          "#26a641",
          "#39d353"
        ],
        mininumColor: "rgba(255, 255, 255, 0.1)",
        loadingColorStart: "rgba(255, 255, 255, 0.12)",
        loadingColorEnd: "rgba(255, 255, 255, 0.18)"
      });
    }
  };
  function l9(e) {
    const { primaryColor: t, baseColor: n } = e;
    return {
      color: t,
      iconColor: n
    };
  }
  const s9 = {
    name: "IconWrapper",
    common: Ue,
    self: l9
  }, c9 = {
    name: "Image",
    common: Ue,
    peers: {
      Tooltip: bd
    },
    self: (e) => {
      const { textColor2: t } = e;
      return {
        toolbarIconColor: t,
        toolbarColor: "rgba(0, 0, 0, .35)",
        toolbarBoxShadow: "none",
        toolbarBorderRadius: "24px"
      };
    }
  }, u9 = "n-layout-sider", d9 = {
    type: String,
    default: "static"
  }, f9 = A("layout", `
 color: var(--n-text-color);
 background-color: var(--n-color);
 box-sizing: border-box;
 position: relative;
 z-index: auto;
 flex: auto;
 overflow: hidden;
 transition:
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
`, [
    A("layout-scroll-container", `
 overflow-x: hidden;
 box-sizing: border-box;
 height: 100%;
 `),
    G("absolute-positioned", `
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)
  ]), h9 = {
    embedded: Boolean,
    position: d9,
    nativeScrollbar: {
      type: Boolean,
      default: true
    },
    scrollbarProps: Object,
    onScroll: Function,
    contentClass: String,
    contentStyle: {
      type: [
        String,
        Object
      ],
      default: ""
    },
    hasSider: Boolean,
    siderPlacement: {
      type: String,
      default: "left"
    }
  }, p9 = "n-layout";
  function m9(e) {
    return pe({
      name: "Layout",
      props: Object.assign(Object.assign({}, Fe.props), h9),
      setup(t) {
        const n = L(null), r = L(null), { mergedClsPrefixRef: o, inlineThemeDisabled: i } = at(t), a = Fe("Layout", "-layout", f9, oM, t, o);
        function l(m, b) {
          if (t.nativeScrollbar) {
            const { value: v } = n;
            v && (b === void 0 ? v.scrollTo(m) : v.scrollTo(m, b));
          } else {
            const { value: v } = r;
            v && v.scrollTo(m, b);
          }
        }
        ft(p9, t);
        let s = 0, c = 0;
        const u = (m) => {
          var b;
          const v = m.target;
          s = v.scrollLeft, c = v.scrollTop, (b = t.onScroll) === null || b === void 0 || b.call(t, m);
        };
        iw(() => {
          if (t.nativeScrollbar) {
            const m = n.value;
            m && (m.scrollTop = c, m.scrollLeft = s);
          }
        });
        const d = {
          display: "flex",
          flexWrap: "nowrap",
          width: "100%",
          flexDirection: "row"
        }, h = {
          scrollTo: l
        }, p = D(() => {
          const { common: { cubicBezierEaseInOut: m }, self: b } = a.value;
          return {
            "--n-bezier": m,
            "--n-color": t.embedded ? b.colorEmbedded : b.color,
            "--n-text-color": b.textColor
          };
        }), f = i ? xt("layout", D(() => t.embedded ? "e" : ""), p, t) : void 0;
        return Object.assign({
          mergedClsPrefix: o,
          scrollableElRef: n,
          scrollbarInstRef: r,
          hasSiderStyle: d,
          mergedTheme: a,
          handleNativeElScroll: u,
          cssVars: i ? void 0 : p,
          themeClass: f == null ? void 0 : f.themeClass,
          onRender: f == null ? void 0 : f.onRender
        }, h);
      },
      render() {
        var t;
        const { mergedClsPrefix: n, hasSider: r } = this;
        (t = this.onRender) === null || t === void 0 || t.call(this);
        const o = r ? this.hasSiderStyle : void 0, i = [
          this.themeClass,
          e,
          `${n}-layout`,
          `${n}-layout--${this.position}-positioned`
        ];
        return g("div", {
          class: i,
          style: this.cssVars
        }, this.nativeScrollbar ? g("div", {
          ref: "scrollableElRef",
          class: [
            `${n}-layout-scroll-container`,
            this.contentClass
          ],
          style: [
            this.contentStyle,
            o
          ],
          onScroll: this.handleNativeElScroll
        }, this.$slots) : g(Bo, Object.assign({}, this.scrollbarProps, {
          onScroll: this.onScroll,
          ref: "scrollbarInstRef",
          theme: this.mergedTheme.peers.Scrollbar,
          themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
          contentClass: this.contentClass,
          contentStyle: [
            this.contentStyle,
            o
          ]
        }), this.$slots));
      }
    });
  }
  const g9 = m9(false), v9 = {
    extraFontSize: "12px",
    width: "440px"
  }, b9 = {
    name: "Transfer",
    common: Ue,
    peers: {
      Checkbox: Pl,
      Scrollbar: nr,
      Input: Fr,
      Empty: Ra,
      Button: xr
    },
    self(e) {
      const { iconColorDisabled: t, iconColor: n, fontWeight: r, fontSizeLarge: o, fontSizeMedium: i, fontSizeSmall: a, heightLarge: l, heightMedium: s, heightSmall: c, borderRadius: u, inputColor: d, tableHeaderColor: h, textColor1: p, textColorDisabled: f, textColor2: m, hoverColor: b } = e;
      return Object.assign(Object.assign({}, v9), {
        itemHeightSmall: c,
        itemHeightMedium: s,
        itemHeightLarge: l,
        fontSizeSmall: a,
        fontSizeMedium: i,
        fontSizeLarge: o,
        borderRadius: u,
        borderColor: "#0000",
        listColor: d,
        headerColor: h,
        titleTextColor: p,
        titleTextColorDisabled: f,
        extraTextColor: m,
        filterDividerColor: "#0000",
        itemTextColor: m,
        itemTextColorDisabled: f,
        itemColorPending: b,
        titleFontWeight: r,
        iconColor: n,
        iconColorDisabled: t
      });
    }
  }, y9 = W([
    A("list", `
 --n-merged-border-color: var(--n-border-color);
 --n-merged-color: var(--n-color);
 --n-merged-color-hover: var(--n-color-hover);
 margin: 0;
 font-size: var(--n-font-size);
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 padding: 0;
 list-style-type: none;
 color: var(--n-text-color);
 background-color: var(--n-merged-color);
 `, [
      G("show-divider", [
        A("list-item", [
          W("&:not(:last-child)", [
            V("divider", `
 background-color: var(--n-merged-border-color);
 `)
          ])
        ])
      ]),
      G("clickable", [
        A("list-item", `
 cursor: pointer;
 `)
      ]),
      G("bordered", `
 border: 1px solid var(--n-merged-border-color);
 border-radius: var(--n-border-radius);
 `),
      G("hoverable", [
        A("list-item", `
 border-radius: var(--n-border-radius);
 `, [
          W("&:hover", `
 background-color: var(--n-merged-color-hover);
 `, [
            V("divider", `
 background-color: transparent;
 `)
          ])
        ])
      ]),
      G("bordered, hoverable", [
        A("list-item", `
 padding: 12px 20px;
 `),
        V("header, footer", `
 padding: 12px 20px;
 `)
      ]),
      V("header, footer", `
 padding: 12px 0;
 box-sizing: border-box;
 transition: border-color .3s var(--n-bezier);
 `, [
        W("&:not(:last-child)", `
 border-bottom: 1px solid var(--n-merged-border-color);
 `)
      ]),
      A("list-item", `
 position: relative;
 padding: 12px 0; 
 box-sizing: border-box;
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 transition:
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `, [
        V("prefix", `
 margin-right: 20px;
 flex: 0;
 `),
        V("suffix", `
 margin-left: 20px;
 flex: 0;
 `),
        V("main", `
 flex: 1;
 `),
        V("divider", `
 height: 1px;
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: transparent;
 transition: background-color .3s var(--n-bezier);
 pointer-events: none;
 `)
      ])
    ]),
    ya(A("list", `
 --n-merged-color-hover: var(--n-color-hover-modal);
 --n-merged-color: var(--n-color-modal);
 --n-merged-border-color: var(--n-border-color-modal);
 `)),
    Sl(A("list", `
 --n-merged-color-hover: var(--n-color-hover-popover);
 --n-merged-color: var(--n-color-popover);
 --n-merged-border-color: var(--n-border-color-popover);
 `))
  ]), x9 = Object.assign(Object.assign({}, Fe.props), {
    size: {
      type: String,
      default: "medium"
    },
    bordered: Boolean,
    clickable: Boolean,
    hoverable: Boolean,
    showDivider: {
      type: Boolean,
      default: true
    }
  }), sS = "n-list", Nm = pe({
    name: "List",
    props: x9,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n, mergedRtlRef: r } = at(e), o = rn("List", r, t), i = Fe("List", "-list", y9, aM, e, t);
      ft(sS, {
        showDividerRef: $e(e, "showDivider"),
        mergedClsPrefixRef: t
      });
      const a = D(() => {
        const { common: { cubicBezierEaseInOut: s }, self: { fontSize: c, textColor: u, color: d, colorModal: h, colorPopover: p, borderColor: f, borderColorModal: m, borderColorPopover: b, borderRadius: v, colorHover: y, colorHoverModal: w, colorHoverPopover: x } } = i.value;
        return {
          "--n-font-size": c,
          "--n-bezier": s,
          "--n-text-color": u,
          "--n-color": d,
          "--n-border-radius": v,
          "--n-border-color": f,
          "--n-border-color-modal": m,
          "--n-border-color-popover": b,
          "--n-color-modal": h,
          "--n-color-popover": p,
          "--n-color-hover": y,
          "--n-color-hover-modal": w,
          "--n-color-hover-popover": x
        };
      }), l = n ? xt("list", void 0, a, e) : void 0;
      return {
        mergedClsPrefix: t,
        rtlEnabled: o,
        cssVars: n ? void 0 : a,
        themeClass: l == null ? void 0 : l.themeClass,
        onRender: l == null ? void 0 : l.onRender
      };
    },
    render() {
      var e;
      const { $slots: t, mergedClsPrefix: n, onRender: r } = this;
      return r == null ? void 0 : r(), g("ul", {
        class: [
          `${n}-list`,
          this.rtlEnabled && `${n}-list--rtl`,
          this.bordered && `${n}-list--bordered`,
          this.showDivider && `${n}-list--show-divider`,
          this.hoverable && `${n}-list--hoverable`,
          this.clickable && `${n}-list--clickable`,
          this.themeClass
        ],
        style: this.cssVars
      }, t.header ? g("div", {
        class: `${n}-list__header`
      }, t.header()) : null, (e = t.default) === null || e === void 0 ? void 0 : e.call(t), t.footer ? g("div", {
        class: `${n}-list__footer`
      }, t.footer()) : null);
    }
  }), Hm = pe({
    name: "ListItem",
    slots: Object,
    setup() {
      const e = je(sS, null);
      return e || $i("list-item", "`n-list-item` must be placed in `n-list`."), {
        showDivider: e.showDividerRef,
        mergedClsPrefix: e.mergedClsPrefixRef
      };
    },
    render() {
      const { $slots: e, mergedClsPrefix: t } = this;
      return g("li", {
        class: `${t}-list-item`
      }, e.prefix ? g("div", {
        class: `${t}-list-item__prefix`
      }, e.prefix()) : null, e.default ? g("div", {
        class: `${t}-list-item__main`
      }, e) : null, e.suffix ? g("div", {
        class: `${t}-list-item__suffix`
      }, e.suffix()) : null, this.showDivider && g("div", {
        class: `${t}-list-item__divider`
      }));
    }
  });
  function w9() {
    return {};
  }
  const C9 = {
    name: "Marquee",
    common: Ue,
    self: w9
  }, ic = "n-menu", cS = "n-submenu", jm = "n-menu-item-group", Zb = [
    W("&::before", "background-color: var(--n-item-color-hover);"),
    V("arrow", `
 color: var(--n-arrow-color-hover);
 `),
    V("icon", `
 color: var(--n-item-icon-color-hover);
 `),
    A("menu-item-content-header", `
 color: var(--n-item-text-color-hover);
 `, [
      W("a", `
 color: var(--n-item-text-color-hover);
 `),
      V("extra", `
 color: var(--n-item-text-color-hover);
 `)
    ])
  ], Qb = [
    V("icon", `
 color: var(--n-item-icon-color-hover-horizontal);
 `),
    A("menu-item-content-header", `
 color: var(--n-item-text-color-hover-horizontal);
 `, [
      W("a", `
 color: var(--n-item-text-color-hover-horizontal);
 `),
      V("extra", `
 color: var(--n-item-text-color-hover-horizontal);
 `)
    ])
  ], S9 = W([
    A("menu", `
 background-color: var(--n-color);
 color: var(--n-item-text-color);
 overflow: hidden;
 transition: background-color .3s var(--n-bezier);
 box-sizing: border-box;
 font-size: var(--n-font-size);
 padding-bottom: 6px;
 `, [
      G("horizontal", `
 max-width: 100%;
 width: 100%;
 display: flex;
 overflow: hidden;
 padding-bottom: 0;
 `, [
        A("submenu", "margin: 0;"),
        A("menu-item", "margin: 0;"),
        A("menu-item-content", `
 padding: 0 20px;
 border-bottom: 2px solid #0000;
 `, [
          W("&::before", "display: none;"),
          G("selected", "border-bottom: 2px solid var(--n-border-color-horizontal)")
        ]),
        A("menu-item-content", [
          G("selected", [
            V("icon", "color: var(--n-item-icon-color-active-horizontal);"),
            A("menu-item-content-header", `
 color: var(--n-item-text-color-active-horizontal);
 `, [
              W("a", "color: var(--n-item-text-color-active-horizontal);"),
              V("extra", "color: var(--n-item-text-color-active-horizontal);")
            ])
          ]),
          G("child-active", `
 border-bottom: 2px solid var(--n-border-color-horizontal);
 `, [
            A("menu-item-content-header", `
 color: var(--n-item-text-color-child-active-horizontal);
 `, [
              W("a", `
 color: var(--n-item-text-color-child-active-horizontal);
 `),
              V("extra", `
 color: var(--n-item-text-color-child-active-horizontal);
 `)
            ]),
            V("icon", `
 color: var(--n-item-icon-color-child-active-horizontal);
 `)
          ]),
          At("disabled", [
            At("selected, child-active", [
              W("&:focus-within", Qb)
            ]),
            G("selected", [
              Vi(null, [
                V("icon", "color: var(--n-item-icon-color-active-hover-horizontal);"),
                A("menu-item-content-header", `
 color: var(--n-item-text-color-active-hover-horizontal);
 `, [
                  W("a", "color: var(--n-item-text-color-active-hover-horizontal);"),
                  V("extra", "color: var(--n-item-text-color-active-hover-horizontal);")
                ])
              ])
            ]),
            G("child-active", [
              Vi(null, [
                V("icon", "color: var(--n-item-icon-color-child-active-hover-horizontal);"),
                A("menu-item-content-header", `
 color: var(--n-item-text-color-child-active-hover-horizontal);
 `, [
                  W("a", "color: var(--n-item-text-color-child-active-hover-horizontal);"),
                  V("extra", "color: var(--n-item-text-color-child-active-hover-horizontal);")
                ])
              ])
            ]),
            Vi("border-bottom: 2px solid var(--n-border-color-horizontal);", Qb)
          ]),
          A("menu-item-content-header", [
            W("a", "color: var(--n-item-text-color-horizontal);")
          ])
        ])
      ]),
      At("responsive", [
        A("menu-item-content-header", `
 overflow: hidden;
 text-overflow: ellipsis;
 `)
      ]),
      G("collapsed", [
        A("menu-item-content", [
          G("selected", [
            W("&::before", `
 background-color: var(--n-item-color-active-collapsed) !important;
 `)
          ]),
          A("menu-item-content-header", "opacity: 0;"),
          V("arrow", "opacity: 0;"),
          V("icon", "color: var(--n-item-icon-color-collapsed);")
        ])
      ]),
      A("menu-item", `
 height: var(--n-item-height);
 margin-top: 6px;
 position: relative;
 `),
      A("menu-item-content", `
 box-sizing: border-box;
 line-height: 1.75;
 height: 100%;
 display: grid;
 grid-template-areas: "icon content arrow";
 grid-template-columns: auto 1fr auto;
 align-items: center;
 cursor: pointer;
 position: relative;
 padding-right: 18px;
 transition:
 background-color .3s var(--n-bezier),
 padding-left .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `, [
        W("> *", "z-index: 1;"),
        W("&::before", `
 z-index: auto;
 content: "";
 background-color: #0000;
 position: absolute;
 left: 8px;
 right: 8px;
 top: 0;
 bottom: 0;
 pointer-events: none;
 border-radius: var(--n-border-radius);
 transition: background-color .3s var(--n-bezier);
 `),
        G("disabled", `
 opacity: .45;
 cursor: not-allowed;
 `),
        G("collapsed", [
          V("arrow", "transform: rotate(0);")
        ]),
        G("selected", [
          W("&::before", "background-color: var(--n-item-color-active);"),
          V("arrow", "color: var(--n-arrow-color-active);"),
          V("icon", "color: var(--n-item-icon-color-active);"),
          A("menu-item-content-header", `
 color: var(--n-item-text-color-active);
 `, [
            W("a", "color: var(--n-item-text-color-active);"),
            V("extra", "color: var(--n-item-text-color-active);")
          ])
        ]),
        G("child-active", [
          A("menu-item-content-header", `
 color: var(--n-item-text-color-child-active);
 `, [
            W("a", `
 color: var(--n-item-text-color-child-active);
 `),
            V("extra", `
 color: var(--n-item-text-color-child-active);
 `)
          ]),
          V("arrow", `
 color: var(--n-arrow-color-child-active);
 `),
          V("icon", `
 color: var(--n-item-icon-color-child-active);
 `)
        ]),
        At("disabled", [
          At("selected, child-active", [
            W("&:focus-within", Zb)
          ]),
          G("selected", [
            Vi(null, [
              V("arrow", "color: var(--n-arrow-color-active-hover);"),
              V("icon", "color: var(--n-item-icon-color-active-hover);"),
              A("menu-item-content-header", `
 color: var(--n-item-text-color-active-hover);
 `, [
                W("a", "color: var(--n-item-text-color-active-hover);"),
                V("extra", "color: var(--n-item-text-color-active-hover);")
              ])
            ])
          ]),
          G("child-active", [
            Vi(null, [
              V("arrow", "color: var(--n-arrow-color-child-active-hover);"),
              V("icon", "color: var(--n-item-icon-color-child-active-hover);"),
              A("menu-item-content-header", `
 color: var(--n-item-text-color-child-active-hover);
 `, [
                W("a", "color: var(--n-item-text-color-child-active-hover);"),
                V("extra", "color: var(--n-item-text-color-child-active-hover);")
              ])
            ])
          ]),
          G("selected", [
            Vi(null, [
              W("&::before", "background-color: var(--n-item-color-active-hover);")
            ])
          ]),
          Vi(null, Zb)
        ]),
        V("icon", `
 grid-area: icon;
 color: var(--n-item-icon-color);
 transition:
 color .3s var(--n-bezier),
 font-size .3s var(--n-bezier),
 margin-right .3s var(--n-bezier);
 box-sizing: content-box;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 `),
        V("arrow", `
 grid-area: arrow;
 font-size: 16px;
 color: var(--n-arrow-color);
 transform: rotate(180deg);
 opacity: 1;
 transition:
 color .3s var(--n-bezier),
 transform 0.2s var(--n-bezier),
 opacity 0.2s var(--n-bezier);
 `),
        A("menu-item-content-header", `
 grid-area: content;
 transition:
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 opacity: 1;
 white-space: nowrap;
 color: var(--n-item-text-color);
 `, [
          W("a", `
 outline: none;
 text-decoration: none;
 transition: color .3s var(--n-bezier);
 color: var(--n-item-text-color);
 `, [
            W("&::before", `
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)
          ]),
          V("extra", `
 font-size: .93em;
 color: var(--n-group-text-color);
 transition: color .3s var(--n-bezier);
 `)
        ])
      ]),
      A("submenu", `
 cursor: pointer;
 position: relative;
 margin-top: 6px;
 `, [
        A("menu-item-content", `
 height: var(--n-item-height);
 `),
        A("submenu-children", `
 overflow: hidden;
 padding: 0;
 `, [
          md({
            duration: ".2s"
          })
        ])
      ]),
      A("menu-item-group", [
        A("menu-item-group-title", `
 margin-top: 6px;
 color: var(--n-group-text-color);
 cursor: default;
 font-size: .93em;
 height: 36px;
 display: flex;
 align-items: center;
 transition:
 padding-left .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)
      ])
    ]),
    A("menu-tooltip", [
      W("a", `
 color: inherit;
 text-decoration: none;
 `)
    ]),
    A("menu-divider", `
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-divider-color);
 height: 1px;
 margin: 6px 18px;
 `)
  ]);
  function Vi(e, t) {
    return [
      G("hover", e, t),
      W("&:hover", e, t)
    ];
  }
  const uS = pe({
    name: "MenuOptionContent",
    props: {
      collapsed: Boolean,
      disabled: Boolean,
      title: [
        String,
        Function
      ],
      icon: Function,
      extra: [
        String,
        Function
      ],
      showArrow: Boolean,
      childActive: Boolean,
      hover: Boolean,
      paddingLeft: Number,
      selected: Boolean,
      maxIconSize: {
        type: Number,
        required: true
      },
      activeIconSize: {
        type: Number,
        required: true
      },
      iconMarginRight: {
        type: Number,
        required: true
      },
      clsPrefix: {
        type: String,
        required: true
      },
      onClick: Function,
      tmNode: {
        type: Object,
        required: true
      },
      isEllipsisPlaceholder: Boolean
    },
    setup(e) {
      const { props: t } = je(ic);
      return {
        menuProps: t,
        style: D(() => {
          const { paddingLeft: n } = e;
          return {
            paddingLeft: n && `${n}px`
          };
        }),
        iconStyle: D(() => {
          const { maxIconSize: n, activeIconSize: r, iconMarginRight: o } = e;
          return {
            width: `${n}px`,
            height: `${n}px`,
            fontSize: `${r}px`,
            marginRight: `${o}px`
          };
        })
      };
    },
    render() {
      const { clsPrefix: e, tmNode: t, menuProps: { renderIcon: n, renderLabel: r, renderExtra: o, expandIcon: i } } = this, a = n ? n(t.rawNode) : Xt(this.icon);
      return g("div", {
        onClick: (l) => {
          var s;
          (s = this.onClick) === null || s === void 0 || s.call(this, l);
        },
        role: "none",
        class: [
          `${e}-menu-item-content`,
          {
            [`${e}-menu-item-content--selected`]: this.selected,
            [`${e}-menu-item-content--collapsed`]: this.collapsed,
            [`${e}-menu-item-content--child-active`]: this.childActive,
            [`${e}-menu-item-content--disabled`]: this.disabled,
            [`${e}-menu-item-content--hover`]: this.hover
          }
        ],
        style: this.style
      }, a && g("div", {
        class: `${e}-menu-item-content__icon`,
        style: this.iconStyle,
        role: "none"
      }, [
        a
      ]), g("div", {
        class: `${e}-menu-item-content-header`,
        role: "none"
      }, this.isEllipsisPlaceholder ? this.title : r ? r(t.rawNode) : Xt(this.title), this.extra || o ? g("span", {
        class: `${e}-menu-item-content-header__extra`
      }, " ", o ? o(t.rawNode) : Xt(this.extra)) : null), this.showArrow ? g(Jt, {
        ariaHidden: true,
        class: `${e}-menu-item-content__arrow`,
        clsPrefix: e
      }, {
        default: () => i ? i(t.rawNode) : g(iz, null)
      }) : null);
    }
  }), Fc = 8;
  function Wm(e) {
    const t = je(ic), { props: n, mergedCollapsedRef: r } = t, o = je(cS, null), i = je(jm, null), a = D(() => n.mode === "horizontal"), l = D(() => a.value ? n.dropdownPlacement : "tmNodes" in e ? "right-start" : "right"), s = D(() => {
      var h;
      return Math.max((h = n.collapsedIconSize) !== null && h !== void 0 ? h : n.iconSize, n.iconSize);
    }), c = D(() => {
      var h;
      return !a.value && e.root && r.value && (h = n.collapsedIconSize) !== null && h !== void 0 ? h : n.iconSize;
    }), u = D(() => {
      if (a.value) return;
      const { collapsedWidth: h, indent: p, rootIndent: f } = n, { root: m, isGroup: b } = e, v = f === void 0 ? p : f;
      return m ? r.value ? h / 2 - s.value / 2 : v : i && typeof i.paddingLeftRef.value == "number" ? p / 2 + i.paddingLeftRef.value : o && typeof o.paddingLeftRef.value == "number" ? (b ? p / 2 : p) + o.paddingLeftRef.value : 0;
    }), d = D(() => {
      const { collapsedWidth: h, indent: p, rootIndent: f } = n, { value: m } = s, { root: b } = e;
      return a.value || !b || !r.value ? Fc : (f === void 0 ? p : f) + m + Fc - (h + m) / 2;
    });
    return {
      dropdownPlacement: l,
      activeIconSize: c,
      maxIconSize: s,
      paddingLeft: u,
      iconMarginRight: d,
      NMenu: t,
      NSubmenu: o,
      NMenuOptionGroup: i
    };
  }
  const Um = {
    internalKey: {
      type: [
        String,
        Number
      ],
      required: true
    },
    root: Boolean,
    isGroup: Boolean,
    level: {
      type: Number,
      required: true
    },
    title: [
      String,
      Function
    ],
    extra: [
      String,
      Function
    ]
  }, _9 = pe({
    name: "MenuDivider",
    setup() {
      const e = je(ic), { mergedClsPrefixRef: t, isHorizontalRef: n } = e;
      return () => n.value ? null : g("div", {
        class: `${t.value}-menu-divider`
      });
    }
  }), dS = Object.assign(Object.assign({}, Um), {
    tmNode: {
      type: Object,
      required: true
    },
    disabled: Boolean,
    icon: Function,
    onClick: Function
  }), k9 = ur(dS), R9 = pe({
    name: "MenuOption",
    props: dS,
    setup(e) {
      const t = Wm(e), { NSubmenu: n, NMenu: r, NMenuOptionGroup: o } = t, { props: i, mergedClsPrefixRef: a, mergedCollapsedRef: l } = r, s = n ? n.mergedDisabledRef : o ? o.mergedDisabledRef : {
        value: false
      }, c = D(() => s.value || e.disabled);
      function u(h) {
        const { onClick: p } = e;
        p && p(h);
      }
      function d(h) {
        c.value || (r.doSelect(e.internalKey, e.tmNode.rawNode), u(h));
      }
      return {
        mergedClsPrefix: a,
        dropdownPlacement: t.dropdownPlacement,
        paddingLeft: t.paddingLeft,
        iconMarginRight: t.iconMarginRight,
        maxIconSize: t.maxIconSize,
        activeIconSize: t.activeIconSize,
        mergedTheme: r.mergedThemeRef,
        menuProps: i,
        dropdownEnabled: Ct(() => e.root && l.value && i.mode !== "horizontal" && !c.value),
        selected: Ct(() => r.mergedValueRef.value === e.internalKey),
        mergedDisabled: c,
        handleClick: d
      };
    },
    render() {
      const { mergedClsPrefix: e, mergedTheme: t, tmNode: n, menuProps: { renderLabel: r, nodeProps: o } } = this, i = o == null ? void 0 : o(n.rawNode);
      return g("div", Object.assign({}, i, {
        role: "menuitem",
        class: [
          `${e}-menu-item`,
          i == null ? void 0 : i.class
        ]
      }), g(d2, {
        theme: t.peers.Tooltip,
        themeOverrides: t.peerOverrides.Tooltip,
        trigger: "hover",
        placement: this.dropdownPlacement,
        disabled: !this.dropdownEnabled || this.title === void 0,
        internalExtraClass: [
          "menu-tooltip"
        ]
      }, {
        default: () => r ? r(n.rawNode) : Xt(this.title),
        trigger: () => g(uS, {
          tmNode: n,
          clsPrefix: e,
          paddingLeft: this.paddingLeft,
          iconMarginRight: this.iconMarginRight,
          maxIconSize: this.maxIconSize,
          activeIconSize: this.activeIconSize,
          selected: this.selected,
          title: this.title,
          extra: this.extra,
          disabled: this.mergedDisabled,
          icon: this.icon,
          onClick: this.handleClick
        })
      }));
    }
  }), fS = Object.assign(Object.assign({}, Um), {
    tmNode: {
      type: Object,
      required: true
    },
    tmNodes: {
      type: Array,
      required: true
    }
  }), A9 = ur(fS), E9 = pe({
    name: "MenuOptionGroup",
    props: fS,
    setup(e) {
      const t = Wm(e), { NSubmenu: n } = t, r = D(() => (n == null ? void 0 : n.mergedDisabledRef.value) ? true : e.tmNode.disabled);
      ft(jm, {
        paddingLeftRef: t.paddingLeft,
        mergedDisabledRef: r
      });
      const { mergedClsPrefixRef: o, props: i } = je(ic);
      return function() {
        const { value: a } = o, l = t.paddingLeft.value, { nodeProps: s } = i, c = s == null ? void 0 : s(e.tmNode.rawNode);
        return g("div", {
          class: `${a}-menu-item-group`,
          role: "group"
        }, g("div", Object.assign({}, c, {
          class: [
            `${a}-menu-item-group-title`,
            c == null ? void 0 : c.class
          ],
          style: [
            (c == null ? void 0 : c.style) || "",
            l !== void 0 ? `padding-left: ${l}px;` : ""
          ]
        }), Xt(e.title), e.extra ? g(wt, null, " ", Xt(e.extra)) : null), g("div", null, e.tmNodes.map((u) => Vm(u, i))));
      };
    }
  });
  function Jh(e) {
    return e.type === "divider" || e.type === "render";
  }
  function T9(e) {
    return e.type === "divider";
  }
  function Vm(e, t) {
    const { rawNode: n } = e, { show: r } = n;
    if (r === false) return null;
    if (Jh(n)) return T9(n) ? g(_9, Object.assign({
      key: e.key
    }, n.props)) : null;
    const { labelField: o } = t, { key: i, level: a, isGroup: l } = e, s = Object.assign(Object.assign({}, n), {
      title: n.title || n[o],
      extra: n.titleExtra || n.extra,
      key: i,
      internalKey: i,
      level: a,
      root: a === 0,
      isGroup: l
    });
    return e.children ? e.isGroup ? g(E9, cr(s, A9, {
      tmNode: e,
      tmNodes: e.children,
      key: i
    })) : g(Zh, cr(s, P9, {
      key: i,
      rawNodes: n[t.childrenField],
      tmNodes: e.children,
      tmNode: e
    })) : g(R9, cr(s, k9, {
      key: i,
      tmNode: e
    }));
  }
  let hS, P9, Zh, D9, z9, O9, I9, pS, mS, e0, F9, M9, L9, B9, N9, H9, j9;
  hS = Object.assign(Object.assign({}, Um), {
    rawNodes: {
      type: Array,
      default: () => []
    },
    tmNodes: {
      type: Array,
      default: () => []
    },
    tmNode: {
      type: Object,
      required: true
    },
    disabled: Boolean,
    icon: Function,
    onClick: Function,
    domId: String,
    virtualChildActive: {
      type: Boolean,
      default: void 0
    },
    isEllipsisPlaceholder: Boolean
  });
  P9 = ur(hS);
  Zh = pe({
    name: "Submenu",
    props: hS,
    setup(e) {
      const t = Wm(e), { NMenu: n, NSubmenu: r } = t, { props: o, mergedCollapsedRef: i, mergedThemeRef: a } = n, l = D(() => {
        const { disabled: h } = e;
        return (r == null ? void 0 : r.mergedDisabledRef.value) || o.disabled ? true : h;
      }), s = L(false);
      ft(cS, {
        paddingLeftRef: t.paddingLeft,
        mergedDisabledRef: l
      }), ft(jm, null);
      function c() {
        const { onClick: h } = e;
        h && h();
      }
      function u() {
        l.value || (i.value || n.toggleExpand(e.internalKey), c());
      }
      function d(h) {
        s.value = h;
      }
      return {
        menuProps: o,
        mergedTheme: a,
        doSelect: n.doSelect,
        inverted: n.invertedRef,
        isHorizontal: n.isHorizontalRef,
        mergedClsPrefix: n.mergedClsPrefixRef,
        maxIconSize: t.maxIconSize,
        activeIconSize: t.activeIconSize,
        iconMarginRight: t.iconMarginRight,
        dropdownPlacement: t.dropdownPlacement,
        dropdownShow: s,
        paddingLeft: t.paddingLeft,
        mergedDisabled: l,
        mergedValue: n.mergedValueRef,
        childActive: Ct(() => {
          var h;
          return (h = e.virtualChildActive) !== null && h !== void 0 ? h : n.activePathRef.value.includes(e.internalKey);
        }),
        collapsed: D(() => o.mode === "horizontal" ? false : i.value ? true : !n.mergedExpandedKeysRef.value.includes(e.internalKey)),
        dropdownEnabled: D(() => !l.value && (o.mode === "horizontal" || i.value)),
        handlePopoverShowChange: d,
        handleClick: u
      };
    },
    render() {
      var e;
      const { mergedClsPrefix: t, menuProps: { renderIcon: n, renderLabel: r } } = this, o = () => {
        const { isHorizontal: a, paddingLeft: l, collapsed: s, mergedDisabled: c, maxIconSize: u, activeIconSize: d, title: h, childActive: p, icon: f, handleClick: m, menuProps: { nodeProps: b }, dropdownShow: v, iconMarginRight: y, tmNode: w, mergedClsPrefix: x, isEllipsisPlaceholder: S, extra: _ } = this, C = b == null ? void 0 : b(w.rawNode);
        return g("div", Object.assign({}, C, {
          class: [
            `${x}-menu-item`,
            C == null ? void 0 : C.class
          ],
          role: "menuitem"
        }), g(uS, {
          tmNode: w,
          paddingLeft: l,
          collapsed: s,
          disabled: c,
          iconMarginRight: y,
          maxIconSize: u,
          activeIconSize: d,
          title: h,
          extra: _,
          showArrow: !a,
          childActive: p,
          clsPrefix: x,
          icon: f,
          hover: v,
          onClick: m,
          isEllipsisPlaceholder: S
        }));
      }, i = () => g(El, null, {
        default: () => {
          const { tmNodes: a, collapsed: l } = this;
          return l ? null : g("div", {
            class: `${t}-submenu-children`,
            role: "menu"
          }, a.map((s) => Vm(s, this.menuProps)));
        }
      });
      return this.root ? g(Tm, Object.assign({
        size: "large",
        trigger: "hover"
      }, (e = this.menuProps) === null || e === void 0 ? void 0 : e.dropdownProps, {
        themeOverrides: this.mergedTheme.peerOverrides.Dropdown,
        theme: this.mergedTheme.peers.Dropdown,
        builtinThemeOverrides: {
          fontSizeLarge: "14px",
          optionIconSizeLarge: "18px"
        },
        value: this.mergedValue,
        disabled: !this.dropdownEnabled,
        placement: this.dropdownPlacement,
        keyField: this.menuProps.keyField,
        labelField: this.menuProps.labelField,
        childrenField: this.menuProps.childrenField,
        onUpdateShow: this.handlePopoverShowChange,
        options: this.rawNodes,
        onSelect: this.doSelect,
        inverted: this.inverted,
        renderIcon: n,
        renderLabel: r
      }), {
        default: () => g("div", {
          class: `${t}-submenu`,
          role: "menu",
          "aria-expanded": !this.collapsed,
          id: this.domId
        }, o(), this.isHorizontal ? null : i())
      }) : g("div", {
        class: `${t}-submenu`,
        role: "menu",
        "aria-expanded": !this.collapsed,
        id: this.domId
      }, o(), i());
    }
  });
  D9 = Object.assign(Object.assign({}, Fe.props), {
    options: {
      type: Array,
      default: () => []
    },
    collapsed: {
      type: Boolean,
      default: void 0
    },
    collapsedWidth: {
      type: Number,
      default: 48
    },
    iconSize: {
      type: Number,
      default: 20
    },
    collapsedIconSize: {
      type: Number,
      default: 24
    },
    rootIndent: Number,
    indent: {
      type: Number,
      default: 32
    },
    labelField: {
      type: String,
      default: "label"
    },
    keyField: {
      type: String,
      default: "key"
    },
    childrenField: {
      type: String,
      default: "children"
    },
    disabledField: {
      type: String,
      default: "disabled"
    },
    defaultExpandAll: Boolean,
    defaultExpandedKeys: Array,
    expandedKeys: Array,
    value: [
      String,
      Number
    ],
    defaultValue: {
      type: [
        String,
        Number
      ],
      default: null
    },
    mode: {
      type: String,
      default: "vertical"
    },
    watchProps: {
      type: Array,
      default: void 0
    },
    disabled: Boolean,
    show: {
      type: Boolean,
      default: true
    },
    inverted: Boolean,
    "onUpdate:expandedKeys": [
      Function,
      Array
    ],
    onUpdateExpandedKeys: [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    "onUpdate:value": [
      Function,
      Array
    ],
    expandIcon: Function,
    renderIcon: Function,
    renderLabel: Function,
    renderExtra: Function,
    dropdownProps: Object,
    accordion: Boolean,
    nodeProps: Function,
    dropdownPlacement: {
      type: String,
      default: "bottom"
    },
    responsive: Boolean,
    items: Array,
    onOpenNamesChange: [
      Function,
      Array
    ],
    onSelect: [
      Function,
      Array
    ],
    onExpandedNamesChange: [
      Function,
      Array
    ],
    expandedNames: Array,
    defaultExpandedNames: Array
  });
  $9 = pe({
    name: "Menu",
    inheritAttrs: false,
    props: D9,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Menu", "-menu", S9, dM, e, t), o = je(u9, null), i = D(() => {
        var re;
        const { collapsed: Y } = e;
        if (Y !== void 0) return Y;
        if (o) {
          const { collapseModeRef: H, collapsedRef: oe } = o;
          if (H.value === "width") return (re = oe.value) !== null && re !== void 0 ? re : false;
        }
        return false;
      }), a = D(() => {
        const { keyField: re, childrenField: Y, disabledField: H } = e;
        return ca(e.items || e.options, {
          getIgnored(oe) {
            return Jh(oe);
          },
          getChildren(oe) {
            return oe[Y];
          },
          getDisabled(oe) {
            return oe[H];
          },
          getKey(oe) {
            var ce;
            return (ce = oe[re]) !== null && ce !== void 0 ? ce : oe.name;
          }
        });
      }), l = D(() => new Set(a.value.treeNodes.map((re) => re.key))), { watchProps: s } = e, c = L(null);
      (s == null ? void 0 : s.includes("defaultValue")) ? fn(() => {
        c.value = e.defaultValue;
      }) : c.value = e.defaultValue;
      const d = mn($e(e, "value"), c), h = L([]), p = () => {
        h.value = e.defaultExpandAll ? a.value.getNonLeafKeys() : e.defaultExpandedNames || e.defaultExpandedKeys || a.value.getPath(d.value, {
          includeSelf: false
        }).keyPath;
      };
      (s == null ? void 0 : s.includes("defaultExpandedKeys")) ? fn(p) : p();
      const f = ha(e, [
        "expandedNames",
        "expandedKeys"
      ]), m = mn(f, h), b = D(() => a.value.treeNodes), v = D(() => a.value.getPath(d.value).keyPath);
      ft(ic, {
        props: e,
        mergedCollapsedRef: i,
        mergedThemeRef: r,
        mergedValueRef: d,
        mergedExpandedKeysRef: m,
        activePathRef: v,
        mergedClsPrefixRef: t,
        isHorizontalRef: D(() => e.mode === "horizontal"),
        invertedRef: $e(e, "inverted"),
        doSelect: y,
        toggleExpand: x
      });
      function y(re, Y) {
        const { "onUpdate:value": H, onUpdateValue: oe, onSelect: ce } = e;
        oe && Te(oe, re, Y), H && Te(H, re, Y), ce && Te(ce, re, Y), c.value = re;
      }
      function w(re) {
        const { "onUpdate:expandedKeys": Y, onUpdateExpandedKeys: H, onExpandedNamesChange: oe, onOpenNamesChange: ce } = e;
        Y && Te(Y, re), H && Te(H, re), oe && Te(oe, re), ce && Te(ce, re), h.value = re;
      }
      function x(re) {
        const Y = Array.from(m.value), H = Y.findIndex((oe) => oe === re);
        if (~H) Y.splice(H, 1);
        else {
          if (e.accordion && l.value.has(re)) {
            const oe = Y.findIndex((ce) => l.value.has(ce));
            oe > -1 && Y.splice(oe, 1);
          }
          Y.push(re);
        }
        w(Y);
      }
      const S = (re) => {
        const Y = a.value.getPath(re ?? d.value, {
          includeSelf: false
        }).keyPath;
        if (!Y.length) return;
        const H = Array.from(m.value), oe = /* @__PURE__ */ new Set([
          ...H,
          ...Y
        ]);
        e.accordion && l.value.forEach((ce) => {
          oe.has(ce) && !Y.includes(ce) && oe.delete(ce);
        }), w(Array.from(oe));
      }, _ = D(() => {
        const { inverted: re } = e, { common: { cubicBezierEaseInOut: Y }, self: H } = r.value, { borderRadius: oe, borderColorHorizontal: ce, fontSize: be, itemHeight: ie, dividerColor: fe } = H, F = {
          "--n-divider-color": fe,
          "--n-bezier": Y,
          "--n-font-size": be,
          "--n-border-color-horizontal": ce,
          "--n-border-radius": oe,
          "--n-item-height": ie
        };
        return re ? (F["--n-group-text-color"] = H.groupTextColorInverted, F["--n-color"] = H.colorInverted, F["--n-item-text-color"] = H.itemTextColorInverted, F["--n-item-text-color-hover"] = H.itemTextColorHoverInverted, F["--n-item-text-color-active"] = H.itemTextColorActiveInverted, F["--n-item-text-color-child-active"] = H.itemTextColorChildActiveInverted, F["--n-item-text-color-child-active-hover"] = H.itemTextColorChildActiveInverted, F["--n-item-text-color-active-hover"] = H.itemTextColorActiveHoverInverted, F["--n-item-icon-color"] = H.itemIconColorInverted, F["--n-item-icon-color-hover"] = H.itemIconColorHoverInverted, F["--n-item-icon-color-active"] = H.itemIconColorActiveInverted, F["--n-item-icon-color-active-hover"] = H.itemIconColorActiveHoverInverted, F["--n-item-icon-color-child-active"] = H.itemIconColorChildActiveInverted, F["--n-item-icon-color-child-active-hover"] = H.itemIconColorChildActiveHoverInverted, F["--n-item-icon-color-collapsed"] = H.itemIconColorCollapsedInverted, F["--n-item-text-color-horizontal"] = H.itemTextColorHorizontalInverted, F["--n-item-text-color-hover-horizontal"] = H.itemTextColorHoverHorizontalInverted, F["--n-item-text-color-active-horizontal"] = H.itemTextColorActiveHorizontalInverted, F["--n-item-text-color-child-active-horizontal"] = H.itemTextColorChildActiveHorizontalInverted, F["--n-item-text-color-child-active-hover-horizontal"] = H.itemTextColorChildActiveHoverHorizontalInverted, F["--n-item-text-color-active-hover-horizontal"] = H.itemTextColorActiveHoverHorizontalInverted, F["--n-item-icon-color-horizontal"] = H.itemIconColorHorizontalInverted, F["--n-item-icon-color-hover-horizontal"] = H.itemIconColorHoverHorizontalInverted, F["--n-item-icon-color-active-horizontal"] = H.itemIconColorActiveHorizontalInverted, F["--n-item-icon-color-active-hover-horizontal"] = H.itemIconColorActiveHoverHorizontalInverted, F["--n-item-icon-color-child-active-horizontal"] = H.itemIconColorChildActiveHorizontalInverted, F["--n-item-icon-color-child-active-hover-horizontal"] = H.itemIconColorChildActiveHoverHorizontalInverted, F["--n-arrow-color"] = H.arrowColorInverted, F["--n-arrow-color-hover"] = H.arrowColorHoverInverted, F["--n-arrow-color-active"] = H.arrowColorActiveInverted, F["--n-arrow-color-active-hover"] = H.arrowColorActiveHoverInverted, F["--n-arrow-color-child-active"] = H.arrowColorChildActiveInverted, F["--n-arrow-color-child-active-hover"] = H.arrowColorChildActiveHoverInverted, F["--n-item-color-hover"] = H.itemColorHoverInverted, F["--n-item-color-active"] = H.itemColorActiveInverted, F["--n-item-color-active-hover"] = H.itemColorActiveHoverInverted, F["--n-item-color-active-collapsed"] = H.itemColorActiveCollapsedInverted) : (F["--n-group-text-color"] = H.groupTextColor, F["--n-color"] = H.color, F["--n-item-text-color"] = H.itemTextColor, F["--n-item-text-color-hover"] = H.itemTextColorHover, F["--n-item-text-color-active"] = H.itemTextColorActive, F["--n-item-text-color-child-active"] = H.itemTextColorChildActive, F["--n-item-text-color-child-active-hover"] = H.itemTextColorChildActiveHover, F["--n-item-text-color-active-hover"] = H.itemTextColorActiveHover, F["--n-item-icon-color"] = H.itemIconColor, F["--n-item-icon-color-hover"] = H.itemIconColorHover, F["--n-item-icon-color-active"] = H.itemIconColorActive, F["--n-item-icon-color-active-hover"] = H.itemIconColorActiveHover, F["--n-item-icon-color-child-active"] = H.itemIconColorChildActive, F["--n-item-icon-color-child-active-hover"] = H.itemIconColorChildActiveHover, F["--n-item-icon-color-collapsed"] = H.itemIconColorCollapsed, F["--n-item-text-color-horizontal"] = H.itemTextColorHorizontal, F["--n-item-text-color-hover-horizontal"] = H.itemTextColorHoverHorizontal, F["--n-item-text-color-active-horizontal"] = H.itemTextColorActiveHorizontal, F["--n-item-text-color-child-active-horizontal"] = H.itemTextColorChildActiveHorizontal, F["--n-item-text-color-child-active-hover-horizontal"] = H.itemTextColorChildActiveHoverHorizontal, F["--n-item-text-color-active-hover-horizontal"] = H.itemTextColorActiveHoverHorizontal, F["--n-item-icon-color-horizontal"] = H.itemIconColorHorizontal, F["--n-item-icon-color-hover-horizontal"] = H.itemIconColorHoverHorizontal, F["--n-item-icon-color-active-horizontal"] = H.itemIconColorActiveHorizontal, F["--n-item-icon-color-active-hover-horizontal"] = H.itemIconColorActiveHoverHorizontal, F["--n-item-icon-color-child-active-horizontal"] = H.itemIconColorChildActiveHorizontal, F["--n-item-icon-color-child-active-hover-horizontal"] = H.itemIconColorChildActiveHoverHorizontal, F["--n-arrow-color"] = H.arrowColor, F["--n-arrow-color-hover"] = H.arrowColorHover, F["--n-arrow-color-active"] = H.arrowColorActive, F["--n-arrow-color-active-hover"] = H.arrowColorActiveHover, F["--n-arrow-color-child-active"] = H.arrowColorChildActive, F["--n-arrow-color-child-active-hover"] = H.arrowColorChildActiveHover, F["--n-item-color-hover"] = H.itemColorHover, F["--n-item-color-active"] = H.itemColorActive, F["--n-item-color-active-hover"] = H.itemColorActiveHover, F["--n-item-color-active-collapsed"] = H.itemColorActiveCollapsed), F;
      }), C = n ? xt("menu", D(() => e.inverted ? "a" : "b"), _, e) : void 0, k = ai(), R = L(null), P = L(null);
      let B = true;
      const E = () => {
        var re;
        B ? B = false : (re = R.value) === null || re === void 0 || re.sync({
          showAllItemsBeforeCalculate: true
        });
      };
      function M() {
        return document.getElementById(k);
      }
      const z = L(-1);
      function U(re) {
        z.value = e.options.length - re;
      }
      function ee(re) {
        re || (z.value = -1);
      }
      const ne = D(() => {
        const re = z.value;
        return {
          children: re === -1 ? [] : e.options.slice(re)
        };
      }), ae = D(() => {
        const { childrenField: re, disabledField: Y, keyField: H } = e;
        return ca([
          ne.value
        ], {
          getIgnored(oe) {
            return Jh(oe);
          },
          getChildren(oe) {
            return oe[re];
          },
          getDisabled(oe) {
            return oe[Y];
          },
          getKey(oe) {
            var ce;
            return (ce = oe[H]) !== null && ce !== void 0 ? ce : oe.name;
          }
        });
      }), ye = D(() => ca([
        {}
      ]).treeNodes[0]);
      function xe() {
        var re;
        if (z.value === -1) return g(Zh, {
          root: true,
          level: 0,
          key: "__ellpisisGroupPlaceholder__",
          internalKey: "__ellpisisGroupPlaceholder__",
          title: "\xB7\xB7\xB7",
          tmNode: ye.value,
          domId: k,
          isEllipsisPlaceholder: true
        });
        const Y = ae.value.treeNodes[0], H = v.value, oe = !!(!((re = Y.children) === null || re === void 0) && re.some((ce) => H.includes(ce.key)));
        return g(Zh, {
          level: 0,
          root: true,
          key: "__ellpisisGroup__",
          internalKey: "__ellpisisGroup__",
          title: "\xB7\xB7\xB7",
          virtualChildActive: oe,
          tmNode: Y,
          domId: k,
          rawNodes: Y.rawNode.children || [],
          tmNodes: Y.children || [],
          isEllipsisPlaceholder: true
        });
      }
      return {
        mergedClsPrefix: t,
        controlledExpandedKeys: f,
        uncontrolledExpanededKeys: h,
        mergedExpandedKeys: m,
        uncontrolledValue: c,
        mergedValue: d,
        activePath: v,
        tmNodes: b,
        mergedTheme: r,
        mergedCollapsed: i,
        cssVars: n ? void 0 : _,
        themeClass: C == null ? void 0 : C.themeClass,
        overflowRef: R,
        counterRef: P,
        updateCounter: () => {
        },
        onResize: E,
        onUpdateOverflow: ee,
        onUpdateCount: U,
        renderCounter: xe,
        getCounter: M,
        onRender: C == null ? void 0 : C.onRender,
        showOption: S,
        deriveResponsiveState: E
      };
    },
    render() {
      const { mergedClsPrefix: e, mode: t, themeClass: n, onRender: r } = this;
      r == null ? void 0 : r();
      const o = () => this.tmNodes.map((s) => Vm(s, this.$props)), a = t === "horizontal" && this.responsive, l = () => g("div", Mn(this.$attrs, {
        role: t === "horizontal" ? "menubar" : "menu",
        class: [
          `${e}-menu`,
          n,
          `${e}-menu--${t}`,
          a && `${e}-menu--responsive`,
          this.mergedCollapsed && `${e}-menu--collapsed`
        ],
        style: this.cssVars
      }), a ? g(Ah, {
        ref: "overflowRef",
        onUpdateOverflow: this.onUpdateOverflow,
        getCounter: this.getCounter,
        onUpdateCount: this.onUpdateCount,
        updateCounter: this.updateCounter,
        style: {
          width: "100%",
          display: "flex",
          overflow: "hidden"
        }
      }, {
        default: o,
        counter: this.renderCounter
      }) : o());
      return a ? g(Vr, {
        onResize: this.onResize
      }, {
        default: l
      }) : l();
    }
  });
  z9 = W([
    A("page-header-header", `
 margin-bottom: 20px;
 `),
    A("page-header", `
 display: flex;
 align-items: center;
 justify-content: space-between;
 line-height: 1.5;
 font-size: var(--n-font-size);
 `, [
      V("main", `
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 `),
      V("back", `
 display: flex;
 margin-right: 16px;
 font-size: var(--n-back-size);
 cursor: pointer;
 color: var(--n-back-color);
 transition: color .3s var(--n-bezier);
 `, [
        W("&:hover", "color: var(--n-back-color-hover);"),
        W("&:active", "color: var(--n-back-color-pressed);")
      ]),
      V("avatar", `
 display: flex;
 margin-right: 12px
 `),
      V("title", `
 margin-right: 16px;
 transition: color .3s var(--n-bezier);
 font-size: var(--n-title-font-size);
 font-weight: var(--n-title-font-weight);
 color: var(--n-title-text-color);
 `),
      V("subtitle", `
 font-size: 14px;
 transition: color .3s var(--n-bezier);
 color: var(--n-subtitle-text-color);
 `)
    ]),
    A("page-header-content", `
 font-size: var(--n-font-size);
 `, [
      W("&:not(:first-child)", "margin-top: 20px;")
    ]),
    A("page-header-footer", `
 font-size: var(--n-font-size);
 `, [
      W("&:not(:first-child)", "margin-top: 20px;")
    ])
  ]);
  O9 = Object.assign(Object.assign({}, Fe.props), {
    title: String,
    subtitle: String,
    extra: String,
    onBack: Function
  });
  I9 = pe({
    name: "PageHeader",
    props: O9,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, mergedRtlRef: n, inlineThemeDisabled: r } = at(e), o = Fe("PageHeader", "-page-header", z9, pM, e, t), i = rn("PageHeader", n, t), a = D(() => {
        const { self: { titleTextColor: s, subtitleTextColor: c, backColor: u, fontSize: d, titleFontSize: h, backSize: p, titleFontWeight: f, backColorHover: m, backColorPressed: b }, common: { cubicBezierEaseInOut: v } } = o.value;
        return {
          "--n-title-text-color": s,
          "--n-title-font-size": h,
          "--n-title-font-weight": f,
          "--n-font-size": d,
          "--n-back-size": p,
          "--n-subtitle-text-color": c,
          "--n-back-color": u,
          "--n-back-color-hover": m,
          "--n-back-color-pressed": b,
          "--n-bezier": v
        };
      }), l = r ? xt("page-header", void 0, a, e) : void 0;
      return {
        rtlEnabled: i,
        mergedClsPrefix: t,
        cssVars: r ? void 0 : a,
        themeClass: l == null ? void 0 : l.themeClass,
        onRender: l == null ? void 0 : l.onRender
      };
    },
    render() {
      var e;
      const { onBack: t, title: n, subtitle: r, extra: o, mergedClsPrefix: i, cssVars: a, $slots: l } = this;
      (e = this.onRender) === null || e === void 0 || e.call(this);
      const { title: s, subtitle: c, extra: u, default: d, header: h, avatar: p, footer: f, back: m } = l, b = t, v = n || s, y = r || c, w = o || u;
      return g("div", {
        style: a,
        class: [
          `${i}-page-header-wrapper`,
          this.themeClass,
          this.rtlEnabled && `${i}-page-header-wrapper--rtl`
        ]
      }, h ? g("div", {
        class: `${i}-page-header-header`,
        key: "breadcrumb"
      }, h()) : null, (b || p || v || y || w) && g("div", {
        class: `${i}-page-header`,
        key: "header"
      }, g("div", {
        class: `${i}-page-header__main`,
        key: "back"
      }, b ? g("div", {
        class: `${i}-page-header__back`,
        onClick: t
      }, m ? m() : g(Jt, {
        clsPrefix: i
      }, {
        default: () => g(nz, null)
      })) : null, p ? g("div", {
        class: `${i}-page-header__avatar`
      }, p()) : null, v ? g("div", {
        class: `${i}-page-header__title`,
        key: "title"
      }, n || s()) : null, y ? g("div", {
        class: `${i}-page-header__subtitle`,
        key: "subtitle"
      }, r || c()) : null), w ? g("div", {
        class: `${i}-page-header__extra`
      }, o || u()) : null), d ? g("div", {
        class: `${i}-page-header-content`,
        key: "content"
      }, d()) : null, f ? g("div", {
        class: `${i}-page-header-footer`,
        key: "footer"
      }, f()) : null);
    }
  });
  pS = "n-popconfirm";
  mS = {
    positiveText: String,
    negativeText: String,
    showIcon: {
      type: Boolean,
      default: true
    },
    onPositiveClick: {
      type: Function,
      required: true
    },
    onNegativeClick: {
      type: Function,
      required: true
    }
  };
  e0 = ur(mS);
  F9 = pe({
    name: "NPopconfirmPanel",
    props: mS,
    setup(e) {
      const { localeRef: t } = ma("Popconfirm"), { inlineThemeDisabled: n } = at(), { mergedClsPrefixRef: r, mergedThemeRef: o, props: i } = je(pS), a = D(() => {
        const { common: { cubicBezierEaseInOut: s }, self: { fontSize: c, iconSize: u, iconColor: d } } = o.value;
        return {
          "--n-bezier": s,
          "--n-font-size": c,
          "--n-icon-size": u,
          "--n-icon-color": d
        };
      }), l = n ? xt("popconfirm-panel", void 0, a, i) : void 0;
      return Object.assign(Object.assign({}, ma("Popconfirm")), {
        mergedClsPrefix: r,
        cssVars: n ? void 0 : a,
        localizedPositiveText: D(() => e.positiveText || t.value.positiveText),
        localizedNegativeText: D(() => e.negativeText || t.value.negativeText),
        positiveButtonProps: $e(i, "positiveButtonProps"),
        negativeButtonProps: $e(i, "negativeButtonProps"),
        handlePositiveClick(s) {
          e.onPositiveClick(s);
        },
        handleNegativeClick(s) {
          e.onNegativeClick(s);
        },
        themeClass: l == null ? void 0 : l.themeClass,
        onRender: l == null ? void 0 : l.onRender
      });
    },
    render() {
      var e;
      const { mergedClsPrefix: t, showIcon: n, $slots: r } = this, o = In(r.action, () => this.negativeText === null && this.positiveText === null ? [] : [
        this.negativeText !== null && g(ht, Object.assign({
          size: "small",
          onClick: this.handleNegativeClick
        }, this.negativeButtonProps), {
          default: () => this.localizedNegativeText
        }),
        this.positiveText !== null && g(ht, Object.assign({
          size: "small",
          type: "primary",
          onClick: this.handlePositiveClick
        }, this.positiveButtonProps), {
          default: () => this.localizedPositiveText
        })
      ]);
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${t}-popconfirm__panel`,
          this.themeClass
        ],
        style: this.cssVars
      }, Pt(r.default, (i) => n || i ? g("div", {
        class: `${t}-popconfirm__body`
      }, n ? g("div", {
        class: `${t}-popconfirm__icon`
      }, In(r.icon, () => [
        g(Jt, {
          clsPrefix: t
        }, {
          default: () => g(zi, null)
        })
      ])) : null, i) : null), o ? g("div", {
        class: [
          `${t}-popconfirm__action`
        ]
      }, o) : null);
    }
  });
  M9 = A("popconfirm", [
    V("body", `
 font-size: var(--n-font-size);
 display: flex;
 align-items: center;
 flex-wrap: nowrap;
 position: relative;
 `, [
      V("icon", `
 display: flex;
 font-size: var(--n-icon-size);
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 margin: 0 8px 0 0;
 `)
    ]),
    V("action", `
 display: flex;
 justify-content: flex-end;
 `, [
      W("&:not(:first-child)", "margin-top: 8px"),
      A("button", [
        W("&:not(:last-child)", "margin-right: 8px;")
      ])
    ])
  ]);
  L9 = Object.assign(Object.assign(Object.assign({}, Fe.props), ga), {
    positiveText: String,
    negativeText: String,
    showIcon: {
      type: Boolean,
      default: true
    },
    trigger: {
      type: String,
      default: "click"
    },
    positiveButtonProps: Object,
    negativeButtonProps: Object,
    onPositiveClick: Function,
    onNegativeClick: Function
  });
  so = pe({
    name: "Popconfirm",
    props: L9,
    slots: Object,
    __popover__: true,
    setup(e) {
      const { mergedClsPrefixRef: t } = at(), n = Fe("Popconfirm", "-popconfirm", M9, vM, e, t), r = L(null);
      function o(l) {
        var s;
        if (!(!((s = r.value) === null || s === void 0) && s.getMergedShow())) return;
        const { onPositiveClick: c, "onUpdate:show": u } = e;
        Promise.resolve(c ? c(l) : true).then((d) => {
          var h;
          d !== false && ((h = r.value) === null || h === void 0 || h.setShow(false), u && Te(u, false));
        });
      }
      function i(l) {
        var s;
        if (!(!((s = r.value) === null || s === void 0) && s.getMergedShow())) return;
        const { onNegativeClick: c, "onUpdate:show": u } = e;
        Promise.resolve(c ? c(l) : true).then((d) => {
          var h;
          d !== false && ((h = r.value) === null || h === void 0 || h.setShow(false), u && Te(u, false));
        });
      }
      return ft(pS, {
        mergedThemeRef: n,
        mergedClsPrefixRef: t,
        props: e
      }), {
        setShow(l) {
          var s;
          (s = r.value) === null || s === void 0 || s.setShow(l);
        },
        syncPosition() {
          var l;
          (l = r.value) === null || l === void 0 || l.syncPosition();
        },
        mergedTheme: n,
        popoverInstRef: r,
        handlePositiveClick: o,
        handleNegativeClick: i
      };
    },
    render() {
      const { $slots: e, $props: t, mergedTheme: n } = this;
      return g(Tl, Object.assign({}, kl(t, e0), {
        theme: n.peers.Popover,
        themeOverrides: n.peerOverrides.Popover,
        internalExtraClass: [
          "popconfirm"
        ],
        ref: "popoverInstRef"
      }), {
        trigger: e.trigger,
        default: () => {
          const r = cr(t, e0);
          return g(F9, Object.assign({}, r, {
            onPositiveClick: this.handlePositiveClick,
            onNegativeClick: this.handleNegativeClick
          }), e);
        }
      });
    }
  });
  B9 = {
    success: g(ka, null),
    error: g(_a, null),
    warning: g(zi, null),
    info: g(Ti, null)
  };
  N9 = pe({
    name: "ProgressCircle",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      status: {
        type: String,
        required: true
      },
      strokeWidth: {
        type: Number,
        required: true
      },
      fillColor: [
        String,
        Object
      ],
      railColor: String,
      railStyle: [
        String,
        Object
      ],
      percentage: {
        type: Number,
        default: 0
      },
      offsetDegree: {
        type: Number,
        default: 0
      },
      showIndicator: {
        type: Boolean,
        required: true
      },
      indicatorTextColor: String,
      unit: String,
      viewBoxWidth: {
        type: Number,
        required: true
      },
      gapDegree: {
        type: Number,
        required: true
      },
      gapOffsetDegree: {
        type: Number,
        default: 0
      }
    },
    setup(e, { slots: t }) {
      const n = D(() => {
        const i = "gradient", { fillColor: a } = e;
        return typeof a == "object" ? `${i}-${sl(JSON.stringify(a))}` : i;
      });
      function r(i, a, l, s) {
        const { gapDegree: c, viewBoxWidth: u, strokeWidth: d } = e, h = 50, p = 0, f = h, m = 0, b = 2 * h, v = 50 + d / 2, y = `M ${v},${v} m ${p},${f}
      a ${h},${h} 0 1 1 ${m},${-b}
      a ${h},${h} 0 1 1 ${-m},${b}`, w = Math.PI * 2 * h, x = {
          stroke: s === "rail" ? l : typeof e.fillColor == "object" ? `url(#${n.value})` : l,
          strokeDasharray: `${Math.min(i, 100) / 100 * (w - c)}px ${u * 8}px`,
          strokeDashoffset: `-${c / 2}px`,
          transformOrigin: a ? "center" : void 0,
          transform: a ? `rotate(${a}deg)` : void 0
        };
        return {
          pathString: y,
          pathStyle: x
        };
      }
      const o = () => {
        const i = typeof e.fillColor == "object", a = i ? e.fillColor.stops[0] : "", l = i ? e.fillColor.stops[1] : "";
        return i && g("defs", null, g("linearGradient", {
          id: n.value,
          x1: "0%",
          y1: "100%",
          x2: "100%",
          y2: "0%"
        }, g("stop", {
          offset: "0%",
          "stop-color": a
        }), g("stop", {
          offset: "100%",
          "stop-color": l
        })));
      };
      return () => {
        const { fillColor: i, railColor: a, strokeWidth: l, offsetDegree: s, status: c, percentage: u, showIndicator: d, indicatorTextColor: h, unit: p, gapOffsetDegree: f, clsPrefix: m } = e, { pathString: b, pathStyle: v } = r(100, 0, a, "rail"), { pathString: y, pathStyle: w } = r(u, s, i, "fill"), x = 100 + l;
        return g("div", {
          class: `${m}-progress-content`,
          role: "none"
        }, g("div", {
          class: `${m}-progress-graph`,
          "aria-hidden": true
        }, g("div", {
          class: `${m}-progress-graph-circle`,
          style: {
            transform: f ? `rotate(${f}deg)` : void 0
          }
        }, g("svg", {
          viewBox: `0 0 ${x} ${x}`
        }, o(), g("g", null, g("path", {
          class: `${m}-progress-graph-circle-rail`,
          d: b,
          "stroke-width": l,
          "stroke-linecap": "round",
          fill: "none",
          style: v
        })), g("g", null, g("path", {
          class: [
            `${m}-progress-graph-circle-fill`,
            u === 0 && `${m}-progress-graph-circle-fill--empty`
          ],
          d: y,
          "stroke-width": l,
          "stroke-linecap": "round",
          fill: "none",
          style: w
        }))))), d ? g("div", null, t.default ? g("div", {
          class: `${m}-progress-custom-content`,
          role: "none"
        }, t.default()) : c !== "default" ? g("div", {
          class: `${m}-progress-icon`,
          "aria-hidden": true
        }, g(Jt, {
          clsPrefix: m
        }, {
          default: () => B9[c]
        })) : g("div", {
          class: `${m}-progress-text`,
          style: {
            color: h
          },
          role: "none"
        }, g("span", {
          class: `${m}-progress-text__percentage`
        }, u), g("span", {
          class: `${m}-progress-text__unit`
        }, p))) : null);
      };
    }
  });
  H9 = {
    success: g(ka, null),
    error: g(_a, null),
    warning: g(zi, null),
    info: g(Ti, null)
  };
  j9 = pe({
    name: "ProgressLine",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      percentage: {
        type: Number,
        default: 0
      },
      railColor: String,
      railStyle: [
        String,
        Object
      ],
      fillColor: [
        String,
        Object
      ],
      status: {
        type: String,
        required: true
      },
      indicatorPlacement: {
        type: String,
        required: true
      },
      indicatorTextColor: String,
      unit: {
        type: String,
        default: "%"
      },
      processing: {
        type: Boolean,
        required: true
      },
      showIndicator: {
        type: Boolean,
        required: true
      },
      height: [
        String,
        Number
      ],
      railBorderRadius: [
        String,
        Number
      ],
      fillBorderRadius: [
        String,
        Number
      ]
    },
    setup(e, { slots: t }) {
      const n = D(() => Ft(e.height)), r = D(() => {
        var a, l;
        return typeof e.fillColor == "object" ? `linear-gradient(to right, ${(a = e.fillColor) === null || a === void 0 ? void 0 : a.stops[0]} , ${(l = e.fillColor) === null || l === void 0 ? void 0 : l.stops[1]})` : e.fillColor;
      }), o = D(() => e.railBorderRadius !== void 0 ? Ft(e.railBorderRadius) : e.height !== void 0 ? Ft(e.height, {
        c: 0.5
      }) : ""), i = D(() => e.fillBorderRadius !== void 0 ? Ft(e.fillBorderRadius) : e.railBorderRadius !== void 0 ? Ft(e.railBorderRadius) : e.height !== void 0 ? Ft(e.height, {
        c: 0.5
      }) : "");
      return () => {
        const { indicatorPlacement: a, railColor: l, railStyle: s, percentage: c, unit: u, indicatorTextColor: d, status: h, showIndicator: p, processing: f, clsPrefix: m } = e;
        return g("div", {
          class: `${m}-progress-content`,
          role: "none"
        }, g("div", {
          class: `${m}-progress-graph`,
          "aria-hidden": true
        }, g("div", {
          class: [
            `${m}-progress-graph-line`,
            {
              [`${m}-progress-graph-line--indicator-${a}`]: true
            }
          ]
        }, g("div", {
          class: `${m}-progress-graph-line-rail`,
          style: [
            {
              backgroundColor: l,
              height: n.value,
              borderRadius: o.value
            },
            s
          ]
        }, g("div", {
          class: [
            `${m}-progress-graph-line-fill`,
            f && `${m}-progress-graph-line-fill--processing`
          ],
          style: {
            maxWidth: `${e.percentage}%`,
            background: r.value,
            height: n.value,
            lineHeight: n.value,
            borderRadius: i.value
          }
        }, a === "inside" ? g("div", {
          class: `${m}-progress-graph-line-indicator`,
          style: {
            color: d
          }
        }, t.default ? t.default() : `${c}${u}`) : null)))), p && a === "outside" ? g("div", null, t.default ? g("div", {
          class: `${m}-progress-custom-content`,
          style: {
            color: d
          },
          role: "none"
        }, t.default()) : h === "default" ? g("div", {
          role: "none",
          class: `${m}-progress-icon ${m}-progress-icon--as-text`,
          style: {
            color: d
          }
        }, c, u) : g("div", {
          class: `${m}-progress-icon`,
          "aria-hidden": true
        }, g(Jt, {
          clsPrefix: m
        }, {
          default: () => H9[h]
        }))) : null);
      };
    }
  });
  function t0(e, t, n = 100) {
    return `m ${n / 2} ${n / 2 - e} a ${e} ${e} 0 1 1 0 ${2 * e} a ${e} ${e} 0 1 1 0 -${2 * e}`;
  }
  let W9, U9, V9, G9;
  W9 = pe({
    name: "ProgressMultipleCircle",
    props: {
      clsPrefix: {
        type: String,
        required: true
      },
      viewBoxWidth: {
        type: Number,
        required: true
      },
      percentage: {
        type: Array,
        default: [
          0
        ]
      },
      strokeWidth: {
        type: Number,
        required: true
      },
      circleGap: {
        type: Number,
        required: true
      },
      showIndicator: {
        type: Boolean,
        required: true
      },
      fillColor: {
        type: Array,
        default: () => []
      },
      railColor: {
        type: Array,
        default: () => []
      },
      railStyle: {
        type: Array,
        default: () => []
      }
    },
    setup(e, { slots: t }) {
      const n = D(() => e.percentage.map((i, a) => `${Math.PI * i / 100 * (e.viewBoxWidth / 2 - e.strokeWidth / 2 * (1 + 2 * a) - e.circleGap * a) * 2}, ${e.viewBoxWidth * 8}`)), r = (o, i) => {
        const a = e.fillColor[i], l = typeof a == "object" ? a.stops[0] : "", s = typeof a == "object" ? a.stops[1] : "";
        return typeof e.fillColor[i] == "object" && g("linearGradient", {
          id: `gradient-${i}`,
          x1: "100%",
          y1: "0%",
          x2: "0%",
          y2: "100%"
        }, g("stop", {
          offset: "0%",
          "stop-color": l
        }), g("stop", {
          offset: "100%",
          "stop-color": s
        }));
      };
      return () => {
        const { viewBoxWidth: o, strokeWidth: i, circleGap: a, showIndicator: l, fillColor: s, railColor: c, railStyle: u, percentage: d, clsPrefix: h } = e;
        return g("div", {
          class: `${h}-progress-content`,
          role: "none"
        }, g("div", {
          class: `${h}-progress-graph`,
          "aria-hidden": true
        }, g("div", {
          class: `${h}-progress-graph-circle`
        }, g("svg", {
          viewBox: `0 0 ${o} ${o}`
        }, g("defs", null, d.map((p, f) => r(p, f))), d.map((p, f) => g("g", {
          key: f
        }, g("path", {
          class: `${h}-progress-graph-circle-rail`,
          d: t0(o / 2 - i / 2 * (1 + 2 * f) - a * f, i, o),
          "stroke-width": i,
          "stroke-linecap": "round",
          fill: "none",
          style: [
            {
              strokeDashoffset: 0,
              stroke: c[f]
            },
            u[f]
          ]
        }), g("path", {
          class: [
            `${h}-progress-graph-circle-fill`,
            p === 0 && `${h}-progress-graph-circle-fill--empty`
          ],
          d: t0(o / 2 - i / 2 * (1 + 2 * f) - a * f, i, o),
          "stroke-width": i,
          "stroke-linecap": "round",
          fill: "none",
          style: {
            strokeDasharray: n.value[f],
            strokeDashoffset: 0,
            stroke: typeof s[f] == "object" ? `url(#gradient-${f})` : s[f]
          }
        })))))), l && t.default ? g("div", null, g("div", {
          class: `${h}-progress-text`
        }, t.default())) : null);
      };
    }
  });
  U9 = W([
    A("progress", {
      display: "inline-block"
    }, [
      A("progress-icon", `
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 `),
      G("line", `
 width: 100%;
 display: block;
 `, [
        A("progress-content", `
 display: flex;
 align-items: center;
 `, [
          A("progress-graph", {
            flex: 1
          })
        ]),
        A("progress-custom-content", {
          marginLeft: "14px"
        }),
        A("progress-icon", `
 width: 30px;
 padding-left: 14px;
 height: var(--n-icon-size-line);
 line-height: var(--n-icon-size-line);
 font-size: var(--n-icon-size-line);
 `, [
          G("as-text", `
 color: var(--n-text-color-line-outer);
 text-align: center;
 width: 40px;
 font-size: var(--n-font-size);
 padding-left: 4px;
 transition: color .3s var(--n-bezier);
 `)
        ])
      ]),
      G("circle, dashboard", {
        width: "120px"
      }, [
        A("progress-custom-content", `
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 display: flex;
 align-items: center;
 justify-content: center;
 `),
        A("progress-text", `
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 display: flex;
 align-items: center;
 color: inherit;
 font-size: var(--n-font-size-circle);
 color: var(--n-text-color-circle);
 font-weight: var(--n-font-weight-circle);
 transition: color .3s var(--n-bezier);
 white-space: nowrap;
 `),
        A("progress-icon", `
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 display: flex;
 align-items: center;
 color: var(--n-icon-color);
 font-size: var(--n-icon-size-circle);
 `)
      ]),
      G("multiple-circle", `
 width: 200px;
 color: inherit;
 `, [
        A("progress-text", `
 font-weight: var(--n-font-weight-circle);
 color: var(--n-text-color-circle);
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translateX(-50%) translateY(-50%);
 display: flex;
 align-items: center;
 justify-content: center;
 transition: color .3s var(--n-bezier);
 `)
      ]),
      A("progress-content", {
        position: "relative"
      }),
      A("progress-graph", {
        position: "relative"
      }, [
        A("progress-graph-circle", [
          W("svg", {
            verticalAlign: "bottom"
          }),
          A("progress-graph-circle-fill", `
 stroke: var(--n-fill-color);
 transition:
 opacity .3s var(--n-bezier),
 stroke .3s var(--n-bezier),
 stroke-dasharray .3s var(--n-bezier);
 `, [
            G("empty", {
              opacity: 0
            })
          ]),
          A("progress-graph-circle-rail", `
 transition: stroke .3s var(--n-bezier);
 overflow: hidden;
 stroke: var(--n-rail-color);
 `)
        ]),
        A("progress-graph-line", [
          G("indicator-inside", [
            A("progress-graph-line-rail", `
 height: 16px;
 line-height: 16px;
 border-radius: 10px;
 `, [
              A("progress-graph-line-fill", `
 height: inherit;
 border-radius: 10px;
 `),
              A("progress-graph-line-indicator", `
 background: #0000;
 white-space: nowrap;
 text-align: right;
 margin-left: 14px;
 margin-right: 14px;
 height: inherit;
 font-size: 12px;
 color: var(--n-text-color-line-inner);
 transition: color .3s var(--n-bezier);
 `)
            ])
          ]),
          G("indicator-inside-label", `
 height: 16px;
 display: flex;
 align-items: center;
 `, [
            A("progress-graph-line-rail", `
 flex: 1;
 transition: background-color .3s var(--n-bezier);
 `),
            A("progress-graph-line-indicator", `
 background: var(--n-fill-color);
 font-size: 12px;
 transform: translateZ(0);
 display: flex;
 vertical-align: middle;
 height: 16px;
 line-height: 16px;
 padding: 0 10px;
 border-radius: 10px;
 position: absolute;
 white-space: nowrap;
 color: var(--n-text-color-line-inner);
 transition:
 right .2s var(--n-bezier),
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 `)
          ]),
          A("progress-graph-line-rail", `
 position: relative;
 overflow: hidden;
 height: var(--n-rail-height);
 border-radius: 5px;
 background-color: var(--n-rail-color);
 transition: background-color .3s var(--n-bezier);
 `, [
            A("progress-graph-line-fill", `
 background: var(--n-fill-color);
 position: relative;
 border-radius: 5px;
 height: inherit;
 width: 100%;
 max-width: 0%;
 transition:
 background-color .3s var(--n-bezier),
 max-width .2s var(--n-bezier);
 `, [
              G("processing", [
                W("&::after", `
 content: "";
 background-image: var(--n-line-bg-processing);
 animation: progress-processing-animation 2s var(--n-bezier) infinite;
 `)
              ])
            ])
          ])
        ])
      ])
    ]),
    W("@keyframes progress-processing-animation", `
 0% {
 position: absolute;
 left: 0;
 top: 0;
 bottom: 0;
 right: 100%;
 opacity: 1;
 }
 66% {
 position: absolute;
 left: 0;
 top: 0;
 bottom: 0;
 right: 0;
 opacity: 0;
 }
 100% {
 position: absolute;
 left: 0;
 top: 0;
 bottom: 0;
 right: 0;
 opacity: 0;
 }
 `)
  ]);
  V9 = Object.assign(Object.assign({}, Fe.props), {
    processing: Boolean,
    type: {
      type: String,
      default: "line"
    },
    gapDegree: Number,
    gapOffsetDegree: Number,
    status: {
      type: String,
      default: "default"
    },
    railColor: [
      String,
      Array
    ],
    railStyle: [
      String,
      Array
    ],
    color: [
      String,
      Array,
      Object
    ],
    viewBoxWidth: {
      type: Number,
      default: 100
    },
    strokeWidth: {
      type: Number,
      default: 7
    },
    percentage: [
      Number,
      Array
    ],
    unit: {
      type: String,
      default: "%"
    },
    showIndicator: {
      type: Boolean,
      default: true
    },
    indicatorPosition: {
      type: String,
      default: "outside"
    },
    indicatorPlacement: {
      type: String,
      default: "outside"
    },
    indicatorTextColor: String,
    circleGap: {
      type: Number,
      default: 1
    },
    height: Number,
    borderRadius: [
      String,
      Number
    ],
    fillBorderRadius: [
      String,
      Number
    ],
    offsetDegree: Number
  });
  q9 = pe({
    name: "Progress",
    props: V9,
    setup(e) {
      const t = D(() => e.indicatorPlacement || e.indicatorPosition), n = D(() => {
        if (e.gapDegree || e.gapDegree === 0) return e.gapDegree;
        if (e.type === "dashboard") return 75;
      }), { mergedClsPrefixRef: r, inlineThemeDisabled: o } = at(e), i = Fe("Progress", "-progress", U9, yM, e, r), a = D(() => {
        const { status: s } = e, { common: { cubicBezierEaseInOut: c }, self: { fontSize: u, fontSizeCircle: d, railColor: h, railHeight: p, iconSizeCircle: f, iconSizeLine: m, textColorCircle: b, textColorLineInner: v, textColorLineOuter: y, lineBgProcessing: w, fontWeightCircle: x, [Se("iconColor", s)]: S, [Se("fillColor", s)]: _ } } = i.value;
        return {
          "--n-bezier": c,
          "--n-fill-color": _,
          "--n-font-size": u,
          "--n-font-size-circle": d,
          "--n-font-weight-circle": x,
          "--n-icon-color": S,
          "--n-icon-size-circle": f,
          "--n-icon-size-line": m,
          "--n-line-bg-processing": w,
          "--n-rail-color": h,
          "--n-rail-height": p,
          "--n-text-color-circle": b,
          "--n-text-color-line-inner": v,
          "--n-text-color-line-outer": y
        };
      }), l = o ? xt("progress", D(() => e.status[0]), a, e) : void 0;
      return {
        mergedClsPrefix: r,
        mergedIndicatorPlacement: t,
        gapDeg: n,
        cssVars: o ? void 0 : a,
        themeClass: l == null ? void 0 : l.themeClass,
        onRender: l == null ? void 0 : l.onRender
      };
    },
    render() {
      const { type: e, cssVars: t, indicatorTextColor: n, showIndicator: r, status: o, railColor: i, railStyle: a, color: l, percentage: s, viewBoxWidth: c, strokeWidth: u, mergedIndicatorPlacement: d, unit: h, borderRadius: p, fillBorderRadius: f, height: m, processing: b, circleGap: v, mergedClsPrefix: y, gapDeg: w, gapOffsetDegree: x, themeClass: S, $slots: _, onRender: C } = this;
      return C == null ? void 0 : C(), g("div", {
        class: [
          S,
          `${y}-progress`,
          `${y}-progress--${e}`,
          `${y}-progress--${o}`
        ],
        style: t,
        "aria-valuemax": 100,
        "aria-valuemin": 0,
        "aria-valuenow": s,
        role: e === "circle" || e === "line" || e === "dashboard" ? "progressbar" : "none"
      }, e === "circle" || e === "dashboard" ? g(N9, {
        clsPrefix: y,
        status: o,
        showIndicator: r,
        indicatorTextColor: n,
        railColor: i,
        fillColor: l,
        railStyle: a,
        offsetDegree: this.offsetDegree,
        percentage: s,
        viewBoxWidth: c,
        strokeWidth: u,
        gapDegree: w === void 0 ? e === "dashboard" ? 75 : 0 : w,
        gapOffsetDegree: x,
        unit: h
      }, _) : e === "line" ? g(j9, {
        clsPrefix: y,
        status: o,
        showIndicator: r,
        indicatorTextColor: n,
        railColor: i,
        fillColor: l,
        railStyle: a,
        percentage: s,
        processing: b,
        indicatorPlacement: d,
        unit: h,
        fillBorderRadius: f,
        railBorderRadius: p,
        height: m
      }, _) : e === "multiple-circle" ? g(W9, {
        clsPrefix: y,
        strokeWidth: u,
        railColor: i,
        fillColor: l,
        railStyle: a,
        viewBoxWidth: c,
        percentage: s,
        showIndicator: r,
        circleGap: v
      }, _) : null);
    }
  });
  G9 = {
    name: "QrCode",
    common: Ue,
    self: (e) => ({
      borderRadius: e.borderRadius
    })
  };
  function K9() {
    return g("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 36 36"
    }, g("path", {
      fill: "#EF9645",
      d: "M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"
    }), g("path", {
      fill: "#FFDC5D",
      d: "M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"
    }));
  }
  function Y9() {
    return g("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 36 36"
    }, g("circle", {
      fill: "#FFCB4C",
      cx: "18",
      cy: "17.018",
      r: "17"
    }), g("path", {
      fill: "#65471B",
      d: "M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"
    }), g("ellipse", {
      fill: "#65471B",
      cx: "13.119",
      cy: "11.174",
      rx: "2.125",
      ry: "2.656"
    }), g("ellipse", {
      fill: "#65471B",
      cx: "24.375",
      cy: "12.236",
      rx: "2.125",
      ry: "2.656"
    }), g("path", {
      fill: "#F19020",
      d: "M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"
    }), g("path", {
      fill: "#65471B",
      d: "M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"
    }));
  }
  function X9() {
    return g("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 36 36"
    }, g("ellipse", {
      fill: "#292F33",
      cx: "18",
      cy: "26",
      rx: "18",
      ry: "10"
    }), g("ellipse", {
      fill: "#66757F",
      cx: "18",
      cy: "24",
      rx: "18",
      ry: "10"
    }), g("path", {
      fill: "#E1E8ED",
      d: "M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"
    }), g("path", {
      fill: "#77B255",
      d: "M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"
    }), g("ellipse", {
      fill: "#A6D388",
      cx: "18",
      cy: "13",
      rx: "15",
      ry: "7"
    }), g("path", {
      d: "M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",
      fill: "#5C913B"
    }));
  }
  function J9() {
    return g("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 36 36"
    }, g("path", {
      fill: "#FFCC4D",
      d: "M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"
    }), g("ellipse", {
      fill: "#664500",
      cx: "18",
      cy: "27",
      rx: "5",
      ry: "6"
    }), g("path", {
      fill: "#664500",
      d: "M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"
    }));
  }
  let Z9, Q9, eB, tB;
  Z9 = A("result", `
 color: var(--n-text-color);
 line-height: var(--n-line-height);
 font-size: var(--n-font-size);
 transition:
 color .3s var(--n-bezier);
`, [
    A("result-icon", `
 display: flex;
 justify-content: center;
 transition: color .3s var(--n-bezier);
 `, [
      V("status-image", `
 font-size: var(--n-icon-size);
 width: 1em;
 height: 1em;
 `),
      A("base-icon", `
 color: var(--n-icon-color);
 font-size: var(--n-icon-size);
 `)
    ]),
    A("result-content", {
      marginTop: "24px"
    }),
    A("result-footer", `
 margin-top: 24px;
 text-align: center;
 `),
    A("result-header", [
      V("title", `
 margin-top: 16px;
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 text-align: center;
 color: var(--n-title-text-color);
 font-size: var(--n-title-font-size);
 `),
      V("description", `
 margin-top: 4px;
 text-align: center;
 font-size: var(--n-font-size);
 `)
    ])
  ]);
  Q9 = {
    403: K9,
    404: Y9,
    418: X9,
    500: J9,
    info: () => g(Ti, null),
    success: () => g(ka, null),
    warning: () => g(zi, null),
    error: () => g(_a, null)
  };
  eB = Object.assign(Object.assign({}, Fe.props), {
    size: {
      type: String,
      default: "medium"
    },
    status: {
      type: String,
      default: "info"
    },
    title: String,
    description: String
  });
  Sd = pe({
    name: "Result",
    props: eB,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Result", "-result", Z9, CM, e, t), o = D(() => {
        const { size: a, status: l } = e, { common: { cubicBezierEaseInOut: s }, self: { textColor: c, lineHeight: u, titleTextColor: d, titleFontWeight: h, [Se("iconColor", l)]: p, [Se("fontSize", a)]: f, [Se("titleFontSize", a)]: m, [Se("iconSize", a)]: b } } = r.value;
        return {
          "--n-bezier": s,
          "--n-font-size": f,
          "--n-icon-size": b,
          "--n-line-height": u,
          "--n-text-color": c,
          "--n-title-font-size": m,
          "--n-title-font-weight": h,
          "--n-title-text-color": d,
          "--n-icon-color": p || ""
        };
      }), i = n ? xt("result", D(() => {
        const { size: a, status: l } = e;
        let s = "";
        return a && (s += a[0]), l && (s += l[0]), s;
      }), o, e) : void 0;
      return {
        mergedClsPrefix: t,
        cssVars: n ? void 0 : o,
        themeClass: i == null ? void 0 : i.themeClass,
        onRender: i == null ? void 0 : i.onRender
      };
    },
    render() {
      var e;
      const { status: t, $slots: n, mergedClsPrefix: r, onRender: o } = this;
      return o == null ? void 0 : o(), g("div", {
        class: [
          `${r}-result`,
          this.themeClass
        ],
        style: this.cssVars
      }, g("div", {
        class: `${r}-result-icon`
      }, ((e = n.icon) === null || e === void 0 ? void 0 : e.call(n)) || g(Jt, {
        clsPrefix: r
      }, {
        default: () => Q9[t]()
      })), g("div", {
        class: `${r}-result-header`
      }, this.title ? g("div", {
        class: `${r}-result-header__title`
      }, this.title) : null, this.description ? g("div", {
        class: `${r}-result-header__description`
      }, this.description) : null), n.default && g("div", {
        class: `${r}-result-content`
      }, n), n.footer && g("div", {
        class: `${r}-result-footer`
      }, n.footer()));
    }
  });
  tB = {
    name: "Skeleton",
    common: Ue,
    self(e) {
      const { heightSmall: t, heightMedium: n, heightLarge: r, borderRadius: o } = e;
      return {
        color: "rgba(255, 255, 255, 0.12)",
        colorEnd: "rgba(255, 255, 255, 0.18)",
        borderRadius: o,
        heightSmall: t,
        heightMedium: n,
        heightLarge: r
      };
    }
  };
  function nB(e) {
    const { heightSmall: t, heightMedium: n, heightLarge: r, borderRadius: o } = e;
    return {
      color: "#eee",
      colorEnd: "#ddd",
      borderRadius: o,
      heightSmall: t,
      heightMedium: n,
      heightLarge: r
    };
  }
  const rB = {
    common: mt,
    self: nB
  }, oB = W([
    A("skeleton", `
 height: 1em;
 width: 100%;
 transition:
 --n-color-start .3s var(--n-bezier),
 --n-color-end .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
 background-color: var(--n-color-start);
 `),
    W("@keyframes skeleton-loading", `
 0% {
 background: var(--n-color-start);
 }
 40% {
 background: var(--n-color-end);
 }
 80% {
 background: var(--n-color-start);
 }
 100% {
 background: var(--n-color-start);
 }
 `)
  ]), iB = Object.assign(Object.assign({}, Fe.props), {
    text: Boolean,
    round: Boolean,
    circle: Boolean,
    height: [
      String,
      Number
    ],
    width: [
      String,
      Number
    ],
    size: String,
    repeat: {
      type: Number,
      default: 1
    },
    animated: {
      type: Boolean,
      default: true
    },
    sharp: {
      type: Boolean,
      default: true
    }
  }), gS = pe({
    name: "Skeleton",
    inheritAttrs: false,
    props: iB,
    setup(e) {
      IE();
      const { mergedClsPrefixRef: t } = at(e), n = Fe("Skeleton", "-skeleton", oB, rB, e, t);
      return {
        mergedClsPrefix: t,
        style: D(() => {
          var r, o;
          const i = n.value, { common: { cubicBezierEaseInOut: a } } = i, l = i.self, { color: s, colorEnd: c, borderRadius: u } = l;
          let d;
          const { circle: h, sharp: p, round: f, width: m, height: b, size: v, text: y, animated: w } = e;
          v !== void 0 && (d = l[Se("height", v)]);
          const x = h ? (r = m ?? b) !== null && r !== void 0 ? r : d : m, S = (o = h ? m ?? b : b) !== null && o !== void 0 ? o : d;
          return {
            display: y ? "inline-block" : "",
            verticalAlign: y ? "-0.125em" : "",
            borderRadius: h ? "50%" : f ? "4096px" : p ? "" : u,
            width: typeof x == "number" ? tn(x) : x,
            height: typeof S == "number" ? tn(S) : S,
            animation: w ? "" : "none",
            "--n-bezier": a,
            "--n-color-start": s,
            "--n-color-end": c
          };
        })
      };
    },
    render() {
      const { repeat: e, style: t, mergedClsPrefix: n, $attrs: r } = this, o = g("div", Mn({
        class: `${n}-skeleton`,
        style: t
      }, r));
      return e > 1 ? g(wt, null, Yp(e, null).map((i) => [
        o,
        `
`
      ])) : o;
    }
  }), aB = W([
    A("slider", `
 display: block;
 padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
 position: relative;
 z-index: 0;
 width: 100%;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 `, [
      G("reverse", [
        A("slider-handles", [
          A("slider-handle-wrapper", `
 transform: translate(50%, -50%);
 `)
        ]),
        A("slider-dots", [
          A("slider-dot", `
 transform: translateX(50%, -50%);
 `)
        ]),
        G("vertical", [
          A("slider-handles", [
            A("slider-handle-wrapper", `
 transform: translate(-50%, -50%);
 `)
          ]),
          A("slider-marks", [
            A("slider-mark", `
 transform: translateY(calc(-50% + var(--n-dot-height) / 2));
 `)
          ]),
          A("slider-dots", [
            A("slider-dot", `
 transform: translateX(-50%) translateY(0);
 `)
          ])
        ])
      ]),
      G("vertical", `
 box-sizing: content-box;
 padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
 width: var(--n-rail-width-vertical);
 height: 100%;
 `, [
        A("slider-handles", `
 top: calc(var(--n-handle-size) / 2);
 right: 0;
 bottom: calc(var(--n-handle-size) / 2);
 left: 0;
 `, [
          A("slider-handle-wrapper", `
 top: unset;
 left: 50%;
 transform: translate(-50%, 50%);
 `)
        ]),
        A("slider-rail", `
 height: 100%;
 `, [
          V("fill", `
 top: unset;
 right: 0;
 bottom: unset;
 left: 0;
 `)
        ]),
        G("with-mark", `
 width: var(--n-rail-width-vertical);
 margin: 0 32px 0 8px;
 `),
        A("slider-marks", `
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 22px;
 font-size: var(--n-mark-font-size);
 `, [
          A("slider-mark", `
 transform: translateY(50%);
 white-space: nowrap;
 `)
        ]),
        A("slider-dots", `
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 50%;
 `, [
          A("slider-dot", `
 transform: translateX(-50%) translateY(50%);
 `)
        ])
      ]),
      G("disabled", `
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `, [
        A("slider-handle", `
 cursor: not-allowed;
 `)
      ]),
      G("with-mark", `
 width: 100%;
 margin: 8px 0 32px 0;
 `),
      W("&:hover", [
        A("slider-rail", {
          backgroundColor: "var(--n-rail-color-hover)"
        }, [
          V("fill", {
            backgroundColor: "var(--n-fill-color-hover)"
          })
        ]),
        A("slider-handle", {
          boxShadow: "var(--n-handle-box-shadow-hover)"
        })
      ]),
      G("active", [
        A("slider-rail", {
          backgroundColor: "var(--n-rail-color-hover)"
        }, [
          V("fill", {
            backgroundColor: "var(--n-fill-color-hover)"
          })
        ]),
        A("slider-handle", {
          boxShadow: "var(--n-handle-box-shadow-hover)"
        })
      ]),
      A("slider-marks", `
 position: absolute;
 top: 18px;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `, [
        A("slider-mark", `
 position: absolute;
 transform: translateX(-50%);
 white-space: nowrap;
 `)
      ]),
      A("slider-rail", `
 width: 100%;
 position: relative;
 height: var(--n-rail-height);
 background-color: var(--n-rail-color);
 transition: background-color .3s var(--n-bezier);
 border-radius: calc(var(--n-rail-height) / 2);
 `, [
        V("fill", `
 position: absolute;
 top: 0;
 bottom: 0;
 border-radius: calc(var(--n-rail-height) / 2);
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-fill-color);
 `)
      ]),
      A("slider-handles", `
 position: absolute;
 top: 0;
 right: calc(var(--n-handle-size) / 2);
 bottom: 0;
 left: calc(var(--n-handle-size) / 2);
 `, [
        A("slider-handle-wrapper", `
 outline: none;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 cursor: pointer;
 display: flex;
 `, [
          A("slider-handle", `
 height: var(--n-handle-size);
 width: var(--n-handle-size);
 border-radius: 50%;
 overflow: hidden;
 transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
 background-color: var(--n-handle-color);
 box-shadow: var(--n-handle-box-shadow);
 `, [
            W("&:hover", `
 box-shadow: var(--n-handle-box-shadow-hover);
 `)
          ]),
          W("&:focus", [
            A("slider-handle", `
 box-shadow: var(--n-handle-box-shadow-focus);
 `, [
              W("&:hover", `
 box-shadow: var(--n-handle-box-shadow-active);
 `)
            ])
          ])
        ])
      ]),
      A("slider-dots", `
 position: absolute;
 top: 50%;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `, [
        G("transition-disabled", [
          A("slider-dot", "transition: none;")
        ]),
        A("slider-dot", `
 transition:
 border-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 position: absolute;
 transform: translate(-50%, -50%);
 height: var(--n-dot-height);
 width: var(--n-dot-width);
 border-radius: var(--n-dot-border-radius);
 overflow: hidden;
 box-sizing: border-box;
 border: var(--n-dot-border);
 background-color: var(--n-dot-color);
 `, [
          G("active", "border: var(--n-dot-border-active);")
        ])
      ])
    ]),
    A("slider-handle-indicator", `
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `, [
      Oo()
    ]),
    A("slider-handle-indicator", `
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `, [
      G("top", `
 margin-bottom: 12px;
 `),
      G("right", `
 margin-left: 12px;
 `),
      G("bottom", `
 margin-top: 12px;
 `),
      G("left", `
 margin-right: 12px;
 `),
      Oo()
    ]),
    ya(A("slider", [
      A("slider-dot", "background-color: var(--n-dot-color-modal);")
    ])),
    Sl(A("slider", [
      A("slider-dot", "background-color: var(--n-dot-color-popover);")
    ]))
  ]);
  function n0(e) {
    return window.TouchEvent && e instanceof window.TouchEvent;
  }
  function r0() {
    const e = /* @__PURE__ */ new Map(), t = (n) => (r) => {
      e.set(n, r);
    };
    return Y1(() => {
      e.clear();
    }), [
      e,
      t
    ];
  }
  const lB = 0, sB = Object.assign(Object.assign({}, Fe.props), {
    to: Or.propTo,
    defaultValue: {
      type: [
        Number,
        Array
      ],
      default: 0
    },
    marks: Object,
    disabled: {
      type: Boolean,
      default: void 0
    },
    formatTooltip: Function,
    keyboard: {
      type: Boolean,
      default: true
    },
    min: {
      type: Number,
      default: 0
    },
    max: {
      type: Number,
      default: 100
    },
    step: {
      type: [
        Number,
        String
      ],
      default: 1
    },
    range: Boolean,
    value: [
      Number,
      Array
    ],
    placement: String,
    showTooltip: {
      type: Boolean,
      default: void 0
    },
    tooltip: {
      type: Boolean,
      default: true
    },
    vertical: Boolean,
    reverse: Boolean,
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    onDragstart: [
      Function
    ],
    onDragend: [
      Function
    ]
  }), cB = pe({
    name: "Slider",
    props: sB,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, namespaceRef: n, inlineThemeDisabled: r } = at(e), o = Fe("Slider", "-slider", aB, RM, e, t), i = L(null), [a, l] = r0(), [s, c] = r0(), u = L(/* @__PURE__ */ new Set()), d = Mo(e), { mergedDisabledRef: h } = d, p = D(() => {
        const { step: te } = e;
        if (Number(te) <= 0 || te === "mark") return 0;
        const I = te.toString();
        let Z = 0;
        return I.includes(".") && (Z = I.length - I.indexOf(".") - 1), Z;
      }), f = L(e.defaultValue), b = mn($e(e, "value"), f), v = D(() => {
        const { value: te } = b;
        return (e.range ? te : [
          te
        ]).map(Y);
      }), y = D(() => v.value.length > 2), w = D(() => e.placement === void 0 ? e.vertical ? "right" : "top" : e.placement), x = D(() => {
        const { marks: te } = e;
        return te ? Object.keys(te).map(Number.parseFloat) : null;
      }), S = L(-1), _ = L(-1), C = L(-1), k = L(false), R = L(false), P = D(() => {
        const { vertical: te, reverse: I } = e;
        return te ? I ? "top" : "bottom" : I ? "right" : "left";
      }), B = D(() => {
        if (y.value) return;
        const te = v.value, I = H(e.range ? Math.min(...te) : e.min), Z = H(e.range ? Math.max(...te) : te[0]), { value: Ce } = P;
        return e.vertical ? {
          [Ce]: `${I}%`,
          height: `${Z - I}%`
        } : {
          [Ce]: `${I}%`,
          width: `${Z - I}%`
        };
      }), E = D(() => {
        const te = [], { marks: I } = e;
        if (I) {
          const Z = v.value.slice();
          Z.sort((Ze, rt) => Ze - rt);
          const { value: Ce } = P, { value: De } = y, { range: qe } = e, ut = De ? () => false : (Ze) => qe ? Ze >= Z[0] && Ze <= Z[Z.length - 1] : Ze <= Z[0];
          for (const Ze of Object.keys(I)) {
            const rt = Number(Ze);
            te.push({
              active: ut(rt),
              key: rt,
              label: I[Ze],
              style: {
                [Ce]: `${H(rt)}%`
              }
            });
          }
        }
        return te;
      });
      function M(te, I) {
        const Z = H(te), { value: Ce } = P;
        return {
          [Ce]: `${Z}%`,
          zIndex: I === S.value ? 1 : 0
        };
      }
      function z(te) {
        return e.showTooltip || C.value === te || S.value === te && k.value;
      }
      function U(te) {
        return k.value ? !(S.value === te && _.value === te) : true;
      }
      function ee(te) {
        var I;
        ~te && (S.value = te, (I = a.get(te)) === null || I === void 0 || I.focus());
      }
      function ne() {
        s.forEach((te, I) => {
          z(I) && te.syncPosition();
        });
      }
      function ae(te) {
        const { "onUpdate:value": I, onUpdateValue: Z } = e, { nTriggerFormInput: Ce, nTriggerFormChange: De } = d;
        Z && Te(Z, te), I && Te(I, te), f.value = te, Ce(), De();
      }
      function ye(te) {
        const { range: I } = e;
        if (I) {
          if (Array.isArray(te)) {
            const { value: Z } = v;
            te.join() !== Z.join() && ae(te);
          }
        } else Array.isArray(te) || v.value[0] !== te && ae(te);
      }
      function xe(te, I) {
        if (e.range) {
          const Z = v.value.slice();
          Z.splice(I, 1, te), ye(Z);
        } else ye(te);
      }
      function re(te, I, Z) {
        const Ce = Z !== void 0;
        Z || (Z = te - I > 0 ? 1 : -1);
        const De = x.value || [], { step: qe } = e;
        if (qe === "mark") {
          const rt = be(te, De.concat(I), Ce ? Z : void 0);
          return rt ? rt.value : I;
        }
        if (qe <= 0) return I;
        const { value: ut } = p;
        let Ze;
        if (Ce) {
          const rt = Number((I / qe).toFixed(ut)), Ne = Math.floor(rt), bt = rt > Ne ? Ne : Ne - 1, We = rt < Ne ? Ne : Ne + 1;
          Ze = be(I, [
            Number((bt * qe).toFixed(ut)),
            Number((We * qe).toFixed(ut)),
            ...De
          ], Z);
        } else {
          const rt = ce(te);
          Ze = be(te, [
            ...De,
            rt
          ]);
        }
        return Ze ? Y(Ze.value) : I;
      }
      function Y(te) {
        return Math.min(e.max, Math.max(e.min, te));
      }
      function H(te) {
        const { max: I, min: Z } = e;
        return (te - Z) / (I - Z) * 100;
      }
      function oe(te) {
        const { max: I, min: Z } = e;
        return Z + (I - Z) * te;
      }
      function ce(te) {
        const { step: I, min: Z } = e;
        if (Number(I) <= 0 || I === "mark") return te;
        const Ce = Math.round((te - Z) / I) * I + Z;
        return Number(Ce.toFixed(p.value));
      }
      function be(te, I = x.value, Z) {
        if (!(I == null ? void 0 : I.length)) return null;
        let Ce = null, De = -1;
        for (; ++De < I.length; ) {
          const qe = I[De] - te, ut = Math.abs(qe);
          (Z === void 0 || qe * Z > 0) && (Ce === null || ut < Ce.distance) && (Ce = {
            index: De,
            distance: ut,
            value: I[De]
          });
        }
        return Ce;
      }
      function ie(te) {
        const I = i.value;
        if (!I) return;
        const Z = n0(te) ? te.touches[0] : te, Ce = I.getBoundingClientRect();
        let De;
        return e.vertical ? De = (Ce.bottom - Z.clientY) / Ce.height : De = (Z.clientX - Ce.left) / Ce.width, e.reverse && (De = 1 - De), oe(De);
      }
      function fe(te) {
        if (h.value || !e.keyboard) return;
        const { vertical: I, reverse: Z } = e;
        switch (te.key) {
          case "ArrowUp":
            te.preventDefault(), F(I && Z ? -1 : 1);
            break;
          case "ArrowRight":
            te.preventDefault(), F(!I && Z ? -1 : 1);
            break;
          case "ArrowDown":
            te.preventDefault(), F(I && Z ? 1 : -1);
            break;
          case "ArrowLeft":
            te.preventDefault(), F(!I && Z ? 1 : -1);
            break;
        }
      }
      function F(te) {
        const I = S.value;
        if (I === -1) return;
        const { step: Z } = e, Ce = v.value[I], De = Number(Z) <= 0 || Z === "mark" ? Ce : Ce + Z * te;
        xe(re(De, Ce, te > 0 ? 1 : -1), I);
      }
      function se(te) {
        var I, Z;
        if (h.value || !n0(te) && te.button !== lB) return;
        const Ce = ie(te);
        if (Ce === void 0) return;
        const De = v.value.slice(), qe = e.range ? (Z = (I = be(Ce, De)) === null || I === void 0 ? void 0 : I.index) !== null && Z !== void 0 ? Z : -1 : 0;
        qe !== -1 && (te.preventDefault(), ee(qe), ze(), xe(re(Ce, v.value[qe]), qe));
      }
      function ze() {
        k.value || (k.value = true, e.onDragstart && Te(e.onDragstart), Dt("touchend", document, le), Dt("mouseup", document, le), Dt("touchmove", document, J), Dt("mousemove", document, J));
      }
      function q() {
        k.value && (k.value = false, e.onDragend && Te(e.onDragend), Rt("touchend", document, le), Rt("mouseup", document, le), Rt("touchmove", document, J), Rt("mousemove", document, J));
      }
      function J(te) {
        const { value: I } = S;
        if (!k.value || I === -1) {
          q();
          return;
        }
        const Z = ie(te);
        Z !== void 0 && xe(re(Z, v.value[I]), I);
      }
      function le() {
        q();
      }
      function we(te) {
        S.value = te, h.value || (C.value = te);
      }
      function ke(te) {
        S.value === te && (S.value = -1, q()), C.value === te && (C.value = -1);
      }
      function _e(te) {
        C.value = te;
      }
      function K(te) {
        C.value === te && (C.value = -1);
      }
      lt(S, (te, I) => {
        sn(() => _.value = I);
      }), lt(b, () => {
        if (e.marks) {
          if (R.value) return;
          R.value = true, sn(() => {
            R.value = false;
          });
        }
        sn(ne);
      }), Zt(() => {
        q();
      });
      const N = D(() => {
        const { self: { markFontSize: te, railColor: I, railColorHover: Z, fillColor: Ce, fillColorHover: De, handleColor: qe, opacityDisabled: ut, dotColor: Ze, dotColorModal: rt, handleBoxShadow: Ne, handleBoxShadowHover: bt, handleBoxShadowActive: We, handleBoxShadowFocus: Ge, dotBorder: Q, dotBoxShadow: me, railHeight: Ee, railWidthVertical: He, handleSize: Ve, dotHeight: Ke, dotWidth: Xe, dotBorderRadius: Qe, fontSize: _t, dotBorderActive: Mt, dotColorPopover: ct }, common: { cubicBezierEaseInOut: on } } = o.value;
        return {
          "--n-bezier": on,
          "--n-dot-border": Q,
          "--n-dot-border-active": Mt,
          "--n-dot-border-radius": Qe,
          "--n-dot-box-shadow": me,
          "--n-dot-color": Ze,
          "--n-dot-color-modal": rt,
          "--n-dot-color-popover": ct,
          "--n-dot-height": Ke,
          "--n-dot-width": Xe,
          "--n-fill-color": Ce,
          "--n-fill-color-hover": De,
          "--n-font-size": _t,
          "--n-handle-box-shadow": Ne,
          "--n-handle-box-shadow-active": We,
          "--n-handle-box-shadow-focus": Ge,
          "--n-handle-box-shadow-hover": bt,
          "--n-handle-color": qe,
          "--n-handle-size": Ve,
          "--n-opacity-disabled": ut,
          "--n-rail-color": I,
          "--n-rail-color-hover": Z,
          "--n-rail-height": Ee,
          "--n-rail-width-vertical": He,
          "--n-mark-font-size": te
        };
      }), j = r ? xt("slider", void 0, N, e) : void 0, X = D(() => {
        const { self: { fontSize: te, indicatorColor: I, indicatorBoxShadow: Z, indicatorTextColor: Ce, indicatorBorderRadius: De } } = o.value;
        return {
          "--n-font-size": te,
          "--n-indicator-border-radius": De,
          "--n-indicator-box-shadow": Z,
          "--n-indicator-color": I,
          "--n-indicator-text-color": Ce
        };
      }), ge = r ? xt("slider-indicator", void 0, X, e) : void 0;
      return {
        mergedClsPrefix: t,
        namespace: n,
        uncontrolledValue: f,
        mergedValue: b,
        mergedDisabled: h,
        mergedPlacement: w,
        isMounted: Pi(),
        adjustedTo: Or(e),
        dotTransitionDisabled: R,
        markInfos: E,
        isShowTooltip: z,
        shouldKeepTooltipTransition: U,
        handleRailRef: i,
        setHandleRefs: l,
        setFollowerRefs: c,
        fillStyle: B,
        getHandleStyle: M,
        activeIndex: S,
        arrifiedValues: v,
        followerEnabledIndexSet: u,
        handleRailMouseDown: se,
        handleHandleFocus: we,
        handleHandleBlur: ke,
        handleHandleMouseEnter: _e,
        handleHandleMouseLeave: K,
        handleRailKeyDown: fe,
        indicatorCssVars: r ? void 0 : X,
        indicatorThemeClass: ge == null ? void 0 : ge.themeClass,
        indicatorOnRender: ge == null ? void 0 : ge.onRender,
        cssVars: r ? void 0 : N,
        themeClass: j == null ? void 0 : j.themeClass,
        onRender: j == null ? void 0 : j.onRender
      };
    },
    render() {
      var e;
      const { mergedClsPrefix: t, themeClass: n, formatTooltip: r } = this;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${t}-slider`,
          n,
          {
            [`${t}-slider--disabled`]: this.mergedDisabled,
            [`${t}-slider--active`]: this.activeIndex !== -1,
            [`${t}-slider--with-mark`]: this.marks,
            [`${t}-slider--vertical`]: this.vertical,
            [`${t}-slider--reverse`]: this.reverse
          }
        ],
        style: this.cssVars,
        onKeydown: this.handleRailKeyDown,
        onMousedown: this.handleRailMouseDown,
        onTouchstart: this.handleRailMouseDown
      }, g("div", {
        class: `${t}-slider-rail`
      }, g("div", {
        class: `${t}-slider-rail__fill`,
        style: this.fillStyle
      }), this.marks ? g("div", {
        class: [
          `${t}-slider-dots`,
          this.dotTransitionDisabled && `${t}-slider-dots--transition-disabled`
        ]
      }, this.markInfos.map((o) => g("div", {
        key: o.key,
        class: [
          `${t}-slider-dot`,
          {
            [`${t}-slider-dot--active`]: o.active
          }
        ],
        style: o.style
      }))) : null, g("div", {
        ref: "handleRailRef",
        class: `${t}-slider-handles`
      }, this.arrifiedValues.map((o, i) => {
        const a = this.isShowTooltip(i);
        return g(nd, null, {
          default: () => [
            g(rd, null, {
              default: () => g("div", {
                ref: this.setHandleRefs(i),
                class: `${t}-slider-handle-wrapper`,
                tabindex: this.mergedDisabled ? -1 : 0,
                role: "slider",
                "aria-valuenow": o,
                "aria-valuemin": this.min,
                "aria-valuemax": this.max,
                "aria-orientation": this.vertical ? "vertical" : "horizontal",
                "aria-disabled": this.disabled,
                style: this.getHandleStyle(o, i),
                onFocus: () => {
                  this.handleHandleFocus(i);
                },
                onBlur: () => {
                  this.handleHandleBlur(i);
                },
                onMouseenter: () => {
                  this.handleHandleMouseEnter(i);
                },
                onMouseleave: () => {
                  this.handleHandleMouseLeave(i);
                }
              }, In(this.$slots.thumb, () => [
                g("div", {
                  class: `${t}-slider-handle`
                })
              ]))
            }),
            this.tooltip && g(ld, {
              ref: this.setFollowerRefs(i),
              show: a,
              to: this.adjustedTo,
              enabled: this.showTooltip && !this.range || this.followerEnabledIndexSet.has(i),
              teleportDisabled: this.adjustedTo === Or.tdkey,
              placement: this.mergedPlacement,
              containerClass: this.namespace
            }, {
              default: () => g(Ln, {
                name: "fade-in-scale-up-transition",
                appear: this.isMounted,
                css: this.shouldKeepTooltipTransition(i),
                onEnter: () => {
                  this.followerEnabledIndexSet.add(i);
                },
                onAfterLeave: () => {
                  this.followerEnabledIndexSet.delete(i);
                }
              }, {
                default: () => {
                  var l;
                  return a ? ((l = this.indicatorOnRender) === null || l === void 0 || l.call(this), g("div", {
                    class: [
                      `${t}-slider-handle-indicator`,
                      this.indicatorThemeClass,
                      `${t}-slider-handle-indicator--${this.mergedPlacement}`
                    ],
                    style: this.indicatorCssVars
                  }, typeof r == "function" ? r(o) : o)) : null;
                }
              })
            })
          ]
        });
      })), this.marks ? g("div", {
        class: `${t}-slider-marks`
      }, this.markInfos.map((o) => g("div", {
        key: o.key,
        class: `${t}-slider-mark`,
        style: o.style
      }, typeof o.label == "function" ? o.label() : o.label))) : null));
    }
  }), uB = W([
    W("@keyframes spin-rotate", `
 from {
 transform: rotate(0);
 }
 to {
 transform: rotate(360deg);
 }
 `),
    A("spin-container", `
 position: relative;
 `, [
      A("spin-body", `
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 `, [
        hd()
      ])
    ]),
    A("spin-body", `
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 `),
    A("spin", `
 display: inline-flex;
 height: var(--n-size);
 width: var(--n-size);
 font-size: var(--n-size);
 color: var(--n-color);
 `, [
      G("rotate", `
 animation: spin-rotate 2s linear infinite;
 `)
    ]),
    A("spin-description", `
 display: inline-block;
 font-size: var(--n-font-size);
 color: var(--n-text-color);
 transition: color .3s var(--n-bezier);
 margin-top: 8px;
 `),
    A("spin-content", `
 opacity: 1;
 transition: opacity .3s var(--n-bezier);
 pointer-events: all;
 `, [
      G("spinning", `
 user-select: none;
 -webkit-user-select: none;
 pointer-events: none;
 opacity: var(--n-opacity-spinning);
 `)
    ])
  ]), dB = {
    small: 20,
    medium: 18,
    large: 16
  }, fB = Object.assign(Object.assign({}, Fe.props), {
    contentClass: String,
    contentStyle: [
      Object,
      String
    ],
    description: String,
    stroke: String,
    size: {
      type: [
        String,
        Number
      ],
      default: "medium"
    },
    show: {
      type: Boolean,
      default: true
    },
    strokeWidth: Number,
    rotate: {
      type: Boolean,
      default: true
    },
    spinning: {
      type: Boolean,
      validator: () => true,
      default: void 0
    },
    delay: Number
  }), _d = pe({
    name: "Spin",
    props: fB,
    slots: Object,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Spin", "-spin", uB, AM, e, t), o = D(() => {
        const { size: s } = e, { common: { cubicBezierEaseInOut: c }, self: u } = r.value, { opacitySpinning: d, color: h, textColor: p } = u, f = typeof s == "number" ? tn(s) : u[Se("size", s)];
        return {
          "--n-bezier": c,
          "--n-opacity-spinning": d,
          "--n-size": f,
          "--n-color": h,
          "--n-text-color": p
        };
      }), i = n ? xt("spin", D(() => {
        const { size: s } = e;
        return typeof s == "number" ? String(s) : s[0];
      }), o, e) : void 0, a = ha(e, [
        "spinning",
        "show"
      ]), l = L(false);
      return fn((s) => {
        let c;
        if (a.value) {
          const { delay: u } = e;
          if (u) {
            c = window.setTimeout(() => {
              l.value = true;
            }, u), s(() => {
              clearTimeout(c);
            });
            return;
          }
        }
        l.value = a.value;
      }), {
        mergedClsPrefix: t,
        active: l,
        mergedStrokeWidth: D(() => {
          const { strokeWidth: s } = e;
          if (s !== void 0) return s;
          const { size: c } = e;
          return dB[typeof c == "number" ? "medium" : c];
        }),
        cssVars: n ? void 0 : o,
        themeClass: i == null ? void 0 : i.themeClass,
        onRender: i == null ? void 0 : i.onRender
      };
    },
    render() {
      var e, t;
      const { $slots: n, mergedClsPrefix: r, description: o } = this, i = n.icon && this.rotate, a = (o || n.description) && g("div", {
        class: `${r}-spin-description`
      }, o || ((e = n.description) === null || e === void 0 ? void 0 : e.call(n))), l = n.icon ? g("div", {
        class: [
          `${r}-spin-body`,
          this.themeClass
        ]
      }, g("div", {
        class: [
          `${r}-spin`,
          i && `${r}-spin--rotate`
        ],
        style: n.default ? "" : this.cssVars
      }, n.icon()), a) : g("div", {
        class: [
          `${r}-spin-body`,
          this.themeClass
        ]
      }, g(Ii, {
        clsPrefix: r,
        style: n.default ? "" : this.cssVars,
        stroke: this.stroke,
        "stroke-width": this.mergedStrokeWidth,
        class: `${r}-spin`
      }), a);
      return (t = this.onRender) === null || t === void 0 || t.call(this), n.default ? g("div", {
        class: [
          `${r}-spin-container`,
          this.themeClass
        ],
        style: this.cssVars
      }, g("div", {
        class: [
          `${r}-spin-content`,
          this.active && `${r}-spin-content--spinning`,
          this.contentClass
        ],
        style: this.contentStyle
      }, n), g(Ln, {
        name: "fade-in-transition"
      }, {
        default: () => this.active ? l : null
      })) : l;
    }
  }), hB = {
    name: "Split",
    common: Ue
  };
  function pB(e) {
    const { primaryColorHover: t, borderColor: n } = e;
    return {
      resizableTriggerColorHover: t,
      resizableTriggerColor: n
    };
  }
  const mB = {
    common: mt,
    self: pB
  }, gB = A("split", `
 display: flex;
 width: 100%;
 height: 100%;
`, [
    G("horizontal", `
 flex-direction: row;
 `),
    G("vertical", `
 flex-direction: column;
 `),
    A("split-pane-1", `
 overflow: hidden;
 `),
    A("split-pane-2", `
 overflow: hidden;
 flex: 1;
 `),
    V("resize-trigger", `
 background-color: var(--n-resize-trigger-color);
 transition: background-color .3s var(--n-bezier);
 `, [
      G("hover", `
 background-color: var(--n-resize-trigger-color-hover);
 `),
      W("&:hover", `
 background-color: var(--n-resize-trigger-color-hover);
 `)
    ])
  ]), vB = Object.assign(Object.assign({}, Fe.props), {
    direction: {
      type: String,
      default: "horizontal"
    },
    resizeTriggerSize: {
      type: Number,
      default: 3
    },
    disabled: Boolean,
    defaultSize: {
      type: [
        String,
        Number
      ],
      default: 0.5
    },
    "onUpdate:size": [
      Function,
      Array
    ],
    onUpdateSize: [
      Function,
      Array
    ],
    size: [
      String,
      Number
    ],
    min: {
      type: [
        String,
        Number
      ],
      default: 0
    },
    max: {
      type: [
        String,
        Number
      ],
      default: 1
    },
    pane1Class: String,
    pane1Style: [
      Object,
      String
    ],
    pane2Class: String,
    pane2Style: [
      Object,
      String
    ],
    onDragStart: Function,
    onDragMove: Function,
    onDragEnd: Function,
    watchProps: Array
  }), vS = pe({
    name: "Split",
    props: vB,
    slots: Object,
    setup(e) {
      var t;
      const { mergedClsPrefixRef: n, inlineThemeDisabled: r } = at(e), o = Fe("Split", "-split", gB, mB, e, n), i = D(() => {
        const { common: { cubicBezierEaseInOut: w }, self: { resizableTriggerColor: x, resizableTriggerColorHover: S } } = o.value;
        return {
          "--n-bezier": w,
          "--n-resize-trigger-color": x,
          "--n-resize-trigger-color-hover": S
        };
      }), a = L(null), l = L(false), s = $e(e, "size"), c = L(e.defaultSize);
      !((t = e.watchProps) === null || t === void 0) && t.includes("defaultSize") && fn(() => c.value = e.defaultSize);
      const u = (w) => {
        const x = e["onUpdate:size"];
        e.onUpdateSize && Te(e.onUpdateSize, w), x && Te(x, w), c.value = w;
      }, d = mn(s, c), h = D(() => {
        const w = d.value;
        if (typeof w == "string") return {
          flex: `0 0 ${w}`
        };
        if (typeof w == "number") {
          const x = w * 100;
          return {
            flex: `0 0 calc(${x}% - ${e.resizeTriggerSize * x / 100}px)`
          };
        }
      }), p = D(() => e.direction === "horizontal" ? {
        width: `${e.resizeTriggerSize}px`,
        height: "100%"
      } : {
        width: "100%",
        height: `${e.resizeTriggerSize}px`
      }), f = D(() => {
        const w = e.direction === "horizontal";
        return {
          width: w ? `${e.resizeTriggerSize}px` : "",
          height: w ? "" : `${e.resizeTriggerSize}px`,
          cursor: e.direction === "horizontal" ? "col-resize" : "row-resize"
        };
      });
      let m = 0;
      const b = (w) => {
        w.preventDefault(), l.value = true, e.onDragStart && e.onDragStart(w);
        const x = "mousemove", S = "mouseup", _ = (R) => {
          v(R), e.onDragMove && e.onDragMove(R);
        }, C = () => {
          Rt(x, document, _), Rt(S, document, C), l.value = false, e.onDragEnd && e.onDragEnd(w), document.body.style.cursor = "";
        };
        document.body.style.cursor = f.value.cursor, Dt(x, document, _), Dt(S, document, C);
        const k = a.value;
        if (k) {
          const R = k.getBoundingClientRect();
          e.direction === "horizontal" ? m = w.clientX - R.left : m = R.top - w.clientY;
        }
        v(w);
      };
      function v(w) {
        var x, S;
        const _ = (S = (x = a.value) === null || x === void 0 ? void 0 : x.parentElement) === null || S === void 0 ? void 0 : S.getBoundingClientRect();
        if (!_) return;
        const { direction: C } = e, k = _.width - e.resizeTriggerSize, R = _.height - e.resizeTriggerSize, P = C === "horizontal" ? k : R, B = C === "horizontal" ? w.clientX - _.left - m : w.clientY - _.top + m, { min: E, max: M } = e, z = typeof E == "string" ? pn(E) : E * P, U = typeof M == "string" ? pn(M) : M * P;
        let ee = B;
        ee = Math.max(ee, z), ee = Math.min(ee, U, P), typeof d.value == "string" ? u(`${ee}px`) : u(ee / P);
      }
      const y = r ? xt("split", void 0, i, e) : void 0;
      return {
        themeClass: y == null ? void 0 : y.themeClass,
        onRender: y == null ? void 0 : y.onRender,
        cssVars: r ? void 0 : i,
        resizeTriggerElRef: a,
        isDragging: l,
        mergedClsPrefix: n,
        resizeTriggerWrapperStyle: f,
        resizeTriggerStyle: p,
        handleMouseDown: b,
        firstPaneStyle: h
      };
    },
    render() {
      var e, t, n, r, o;
      return (e = this.onRender) === null || e === void 0 || e.call(this), g("div", {
        class: [
          `${this.mergedClsPrefix}-split`,
          `${this.mergedClsPrefix}-split--${this.direction}`,
          this.themeClass
        ],
        style: this.cssVars
      }, g("div", {
        class: [
          `${this.mergedClsPrefix}-split-pane-1`,
          this.pane1Class
        ],
        style: [
          this.firstPaneStyle,
          this.pane1Style
        ]
      }, (n = (t = this.$slots)[1]) === null || n === void 0 ? void 0 : n.call(t)), !this.disabled && g("div", {
        ref: "resizeTriggerElRef",
        class: `${this.mergedClsPrefix}-split__resize-trigger-wrapper`,
        style: this.resizeTriggerWrapperStyle,
        onMousedown: this.handleMouseDown
      }, In(this.$slots["resize-trigger"], () => [
        g("div", {
          style: this.resizeTriggerStyle,
          class: [
            `${this.mergedClsPrefix}-split__resize-trigger`,
            this.isDragging && `${this.mergedClsPrefix}-split__resize-trigger--hover`
          ]
        })
      ])), g("div", {
        class: [
          `${this.mergedClsPrefix}-split-pane-2`,
          this.pane2Class
        ],
        style: this.pane2Style
      }, (o = (r = this.$slots)[2]) === null || o === void 0 ? void 0 : o.call(r)));
    }
  }), bB = A("switch", `
 height: var(--n-height);
 min-width: var(--n-width);
 vertical-align: middle;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 outline: none;
 justify-content: center;
 align-items: center;
`, [
    V("children-placeholder", `
 height: var(--n-rail-height);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 pointer-events: none;
 visibility: hidden;
 `),
    V("rail-placeholder", `
 display: flex;
 flex-wrap: none;
 `),
    V("button-placeholder", `
 width: calc(1.75 * var(--n-rail-height));
 height: var(--n-rail-height);
 `),
    A("base-loading", `
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 font-size: calc(var(--n-button-width) - 4px);
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 `, [
      kr({
        left: "50%",
        top: "50%",
        originalTransform: "translateX(-50%) translateY(-50%)"
      })
    ]),
    V("checked, unchecked", `
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 box-sizing: border-box;
 position: absolute;
 white-space: nowrap;
 top: 0;
 bottom: 0;
 display: flex;
 align-items: center;
 line-height: 1;
 `),
    V("checked", `
 right: 0;
 padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),
    V("unchecked", `
 left: 0;
 justify-content: flex-end;
 padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),
    W("&:focus", [
      V("rail", `
 box-shadow: var(--n-box-shadow-focus);
 `)
    ]),
    G("round", [
      V("rail", "border-radius: calc(var(--n-rail-height) / 2);", [
        V("button", "border-radius: calc(var(--n-button-height) / 2);")
      ])
    ]),
    At("disabled", [
      At("icon", [
        G("rubber-band", [
          G("pressed", [
            V("rail", [
              V("button", "max-width: var(--n-button-width-pressed);")
            ])
          ]),
          V("rail", [
            W("&:active", [
              V("button", "max-width: var(--n-button-width-pressed);")
            ])
          ]),
          G("active", [
            G("pressed", [
              V("rail", [
                V("button", "left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")
              ])
            ]),
            V("rail", [
              W("&:active", [
                V("button", "left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")
              ])
            ])
          ])
        ])
      ])
    ]),
    G("active", [
      V("rail", [
        V("button", "left: calc(100% - var(--n-button-width) - var(--n-offset))")
      ])
    ]),
    V("rail", `
 overflow: hidden;
 height: var(--n-rail-height);
 min-width: var(--n-rail-width);
 border-radius: var(--n-rail-border-radius);
 cursor: pointer;
 position: relative;
 transition:
 opacity .3s var(--n-bezier),
 background .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-rail-color);
 `, [
      V("button-icon", `
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 font-size: calc(var(--n-button-height) - 4px);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 `, [
        kr()
      ]),
      V("button", `
 align-items: center; 
 top: var(--n-offset);
 left: var(--n-offset);
 height: var(--n-button-height);
 width: var(--n-button-width-pressed);
 max-width: var(--n-button-width);
 border-radius: var(--n-button-border-radius);
 background-color: var(--n-button-color);
 box-shadow: var(--n-button-box-shadow);
 box-sizing: border-box;
 cursor: inherit;
 content: "";
 position: absolute;
 transition:
 background-color .3s var(--n-bezier),
 left .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 max-width .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `)
    ]),
    G("active", [
      V("rail", "background-color: var(--n-rail-color-active);")
    ]),
    G("loading", [
      V("rail", `
 cursor: wait;
 `)
    ]),
    G("disabled", [
      V("rail", `
 cursor: not-allowed;
 opacity: .5;
 `)
    ])
  ]), yB = Object.assign(Object.assign({}, Fe.props), {
    size: {
      type: String,
      default: "medium"
    },
    value: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: void 0
    },
    loading: Boolean,
    defaultValue: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: false
    },
    disabled: {
      type: Boolean,
      default: void 0
    },
    round: {
      type: Boolean,
      default: true
    },
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    checkedValue: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: true
    },
    uncheckedValue: {
      type: [
        String,
        Number,
        Boolean
      ],
      default: false
    },
    railStyle: Function,
    rubberBand: {
      type: Boolean,
      default: true
    },
    onChange: [
      Function,
      Array
    ]
  });
  let Vl;
  let qm, bS, xB, Qh, wB, Df, CB;
  kd = pe({
    name: "Switch",
    props: yB,
    slots: Object,
    setup(e) {
      Vl === void 0 && (typeof CSS < "u" ? typeof CSS.supports < "u" ? Vl = CSS.supports("width", "max(1px)") : Vl = false : Vl = true);
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Switch", "-switch", bB, IM, e, t), o = Mo(e), { mergedSizeRef: i, mergedDisabledRef: a } = o, l = L(e.defaultValue), c = mn($e(e, "value"), l), u = D(() => c.value === e.checkedValue), d = L(false), h = L(false), p = D(() => {
        const { railStyle: k } = e;
        if (k) return k({
          focused: h.value,
          checked: u.value
        });
      });
      function f(k) {
        const { "onUpdate:value": R, onChange: P, onUpdateValue: B } = e, { nTriggerFormInput: E, nTriggerFormChange: M } = o;
        R && Te(R, k), B && Te(B, k), P && Te(P, k), l.value = k, E(), M();
      }
      function m() {
        const { nTriggerFormFocus: k } = o;
        k();
      }
      function b() {
        const { nTriggerFormBlur: k } = o;
        k();
      }
      function v() {
        e.loading || a.value || (c.value !== e.checkedValue ? f(e.checkedValue) : f(e.uncheckedValue));
      }
      function y() {
        h.value = true, m();
      }
      function w() {
        h.value = false, b(), d.value = false;
      }
      function x(k) {
        e.loading || a.value || k.key === " " && (c.value !== e.checkedValue ? f(e.checkedValue) : f(e.uncheckedValue), d.value = false);
      }
      function S(k) {
        e.loading || a.value || k.key === " " && (k.preventDefault(), d.value = true);
      }
      const _ = D(() => {
        const { value: k } = i, { self: { opacityDisabled: R, railColor: P, railColorActive: B, buttonBoxShadow: E, buttonColor: M, boxShadowFocus: z, loadingColor: U, textColor: ee, iconColor: ne, [Se("buttonHeight", k)]: ae, [Se("buttonWidth", k)]: ye, [Se("buttonWidthPressed", k)]: xe, [Se("railHeight", k)]: re, [Se("railWidth", k)]: Y, [Se("railBorderRadius", k)]: H, [Se("buttonBorderRadius", k)]: oe }, common: { cubicBezierEaseInOut: ce } } = r.value;
        let be, ie, fe;
        return Vl ? (be = `calc((${re} - ${ae}) / 2)`, ie = `max(${re}, ${ae})`, fe = `max(${Y}, calc(${Y} + ${ae} - ${re}))`) : (be = tn((pn(re) - pn(ae)) / 2), ie = tn(Math.max(pn(re), pn(ae))), fe = pn(re) > pn(ae) ? Y : tn(pn(Y) + pn(ae) - pn(re))), {
          "--n-bezier": ce,
          "--n-button-border-radius": oe,
          "--n-button-box-shadow": E,
          "--n-button-color": M,
          "--n-button-width": ye,
          "--n-button-width-pressed": xe,
          "--n-button-height": ae,
          "--n-height": ie,
          "--n-offset": be,
          "--n-opacity-disabled": R,
          "--n-rail-border-radius": H,
          "--n-rail-color": P,
          "--n-rail-color-active": B,
          "--n-rail-height": re,
          "--n-rail-width": Y,
          "--n-width": fe,
          "--n-box-shadow-focus": z,
          "--n-loading-color": U,
          "--n-text-color": ee,
          "--n-icon-color": ne
        };
      }), C = n ? xt("switch", D(() => i.value[0]), _, e) : void 0;
      return {
        handleClick: v,
        handleBlur: w,
        handleFocus: y,
        handleKeyup: x,
        handleKeydown: S,
        mergedRailStyle: p,
        pressed: d,
        mergedClsPrefix: t,
        mergedValue: c,
        checked: u,
        mergedDisabled: a,
        cssVars: n ? void 0 : _,
        themeClass: C == null ? void 0 : C.themeClass,
        onRender: C == null ? void 0 : C.onRender
      };
    },
    render() {
      const { mergedClsPrefix: e, mergedDisabled: t, checked: n, mergedRailStyle: r, onRender: o, $slots: i } = this;
      o == null ? void 0 : o();
      const { checked: a, unchecked: l, icon: s, "checked-icon": c, "unchecked-icon": u } = i, d = !(sa(s) && sa(c) && sa(u));
      return g("div", {
        role: "switch",
        "aria-checked": n,
        class: [
          `${e}-switch`,
          this.themeClass,
          d && `${e}-switch--icon`,
          n && `${e}-switch--active`,
          t && `${e}-switch--disabled`,
          this.round && `${e}-switch--round`,
          this.loading && `${e}-switch--loading`,
          this.pressed && `${e}-switch--pressed`,
          this.rubberBand && `${e}-switch--rubber-band`
        ],
        tabindex: this.mergedDisabled ? void 0 : 0,
        style: this.cssVars,
        onClick: this.handleClick,
        onFocus: this.handleFocus,
        onBlur: this.handleBlur,
        onKeyup: this.handleKeyup,
        onKeydown: this.handleKeydown
      }, g("div", {
        class: `${e}-switch__rail`,
        "aria-hidden": "true",
        style: r
      }, Pt(a, (h) => Pt(l, (p) => h || p ? g("div", {
        "aria-hidden": true,
        class: `${e}-switch__children-placeholder`
      }, g("div", {
        class: `${e}-switch__rail-placeholder`
      }, g("div", {
        class: `${e}-switch__button-placeholder`
      }), h), g("div", {
        class: `${e}-switch__rail-placeholder`
      }, g("div", {
        class: `${e}-switch__button-placeholder`
      }), p)) : null)), g("div", {
        class: `${e}-switch__button`
      }, Pt(s, (h) => Pt(c, (p) => Pt(u, (f) => g(Sa, null, {
        default: () => this.loading ? g(Ii, {
          key: "loading",
          clsPrefix: e,
          strokeWidth: 20
        }) : this.checked && (p || h) ? g("div", {
          class: `${e}-switch__button-icon`,
          key: p ? "checked-icon" : "icon"
        }, p || h) : !this.checked && (f || h) ? g("div", {
          class: `${e}-switch__button-icon`,
          key: f ? "unchecked-icon" : "icon"
        }, f || h) : null
      })))), Pt(a, (h) => h && g("div", {
        key: "checked",
        class: `${e}-switch__checked`
      }, h)), Pt(l, (h) => h && g("div", {
        key: "unchecked",
        class: `${e}-switch__unchecked`
      }, h)))));
    }
  });
  qm = "n-tabs";
  bS = {
    tab: [
      String,
      Number,
      Object,
      Function
    ],
    name: {
      type: [
        String,
        Number
      ],
      required: true
    },
    disabled: Boolean,
    displayDirective: {
      type: String,
      default: "if"
    },
    closable: {
      type: Boolean,
      default: void 0
    },
    tabProps: Object,
    label: [
      String,
      Number,
      Object,
      Function
    ]
  };
  Pa = pe({
    __TAB_PANE__: true,
    name: "TabPane",
    alias: [
      "TabPanel"
    ],
    props: bS,
    slots: Object,
    setup(e) {
      const t = je(qm, null);
      return t || $i("tab-pane", "`n-tab-pane` must be placed inside `n-tabs`."), {
        style: t.paneStyleRef,
        class: t.paneClassRef,
        mergedClsPrefix: t.mergedClsPrefixRef
      };
    },
    render() {
      return g("div", {
        class: [
          `${this.mergedClsPrefix}-tab-pane`,
          this.class
        ],
        style: this.style
      }, this.$slots);
    }
  });
  xB = Object.assign({
    internalLeftPadded: Boolean,
    internalAddable: Boolean,
    internalCreatedByPane: Boolean
  }, kl(bS, [
    "displayDirective"
  ]));
  Qh = pe({
    __TAB__: true,
    inheritAttrs: false,
    name: "Tab",
    props: xB,
    setup(e) {
      const { mergedClsPrefixRef: t, valueRef: n, typeRef: r, closableRef: o, tabStyleRef: i, addTabStyleRef: a, tabClassRef: l, addTabClassRef: s, tabChangeIdRef: c, onBeforeLeaveRef: u, triggerRef: d, handleAdd: h, activateTab: p, handleClose: f } = je(qm);
      return {
        trigger: d,
        mergedClosable: D(() => {
          if (e.internalAddable) return false;
          const { closable: m } = e;
          return m === void 0 ? o.value : m;
        }),
        style: i,
        addStyle: a,
        tabClass: l,
        addTabClass: s,
        clsPrefix: t,
        value: n,
        type: r,
        handleClose(m) {
          m.stopPropagation(), !e.disabled && f(e.name);
        },
        activateTab() {
          if (e.disabled) return;
          if (e.internalAddable) {
            h();
            return;
          }
          const { name: m } = e, b = ++c.id;
          if (m !== n.value) {
            const { value: v } = u;
            v ? Promise.resolve(v(e.name, n.value)).then((y) => {
              y && c.id === b && p(m);
            }) : p(m);
          }
        }
      };
    },
    render() {
      const { internalAddable: e, clsPrefix: t, name: n, disabled: r, label: o, tab: i, value: a, mergedClosable: l, trigger: s, $slots: { default: c } } = this, u = o ?? i;
      return g("div", {
        class: `${t}-tabs-tab-wrapper`
      }, this.internalLeftPadded ? g("div", {
        class: `${t}-tabs-tab-pad`
      }) : null, g("div", Object.assign({
        key: n,
        "data-name": n,
        "data-disabled": r ? true : void 0
      }, Mn({
        class: [
          `${t}-tabs-tab`,
          a === n && `${t}-tabs-tab--active`,
          r && `${t}-tabs-tab--disabled`,
          l && `${t}-tabs-tab--closable`,
          e && `${t}-tabs-tab--addable`,
          e ? this.addTabClass : this.tabClass
        ],
        onClick: s === "click" ? this.activateTab : void 0,
        onMouseenter: s === "hover" ? this.activateTab : void 0,
        style: e ? this.addStyle : this.style
      }, this.internalCreatedByPane ? this.tabProps || {} : this.$attrs)), g("span", {
        class: `${t}-tabs-tab__label`
      }, e ? g(wt, null, g("div", {
        class: `${t}-tabs-tab__height-placeholder`
      }, "\xA0"), g(Jt, {
        clsPrefix: t
      }, {
        default: () => g(tz, null)
      })) : c ? c() : typeof u == "object" ? u : Xt(u ?? n)), l && this.type === "card" ? g(Oi, {
        clsPrefix: t,
        class: `${t}-tabs-tab__close`,
        onClick: this.handleClose,
        disabled: r
      }) : null));
    }
  });
  wB = A("tabs", `
 box-sizing: border-box;
 width: 100%;
 display: flex;
 flex-direction: column;
 transition:
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
`, [
    G("segment-type", [
      A("tabs-rail", [
        W("&.transition-disabled", [
          A("tabs-capsule", `
 transition: none;
 `)
        ])
      ])
    ]),
    G("top", [
      A("tab-pane", `
 padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
 `)
    ]),
    G("left", [
      A("tab-pane", `
 padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
 `)
    ]),
    G("left, right", `
 flex-direction: row;
 `, [
      A("tabs-bar", `
 width: 2px;
 right: 0;
 transition:
 top .2s var(--n-bezier),
 max-height .2s var(--n-bezier),
 background-color .3s var(--n-bezier);
 `),
      A("tabs-tab", `
 padding: var(--n-tab-padding-vertical); 
 `)
    ]),
    G("right", `
 flex-direction: row-reverse;
 `, [
      A("tab-pane", `
 padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
 `),
      A("tabs-bar", `
 left: 0;
 `)
    ]),
    G("bottom", `
 flex-direction: column-reverse;
 justify-content: flex-end;
 `, [
      A("tab-pane", `
 padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
 `),
      A("tabs-bar", `
 top: 0;
 `)
    ]),
    A("tabs-rail", `
 position: relative;
 padding: 3px;
 border-radius: var(--n-tab-border-radius);
 width: 100%;
 background-color: var(--n-color-segment);
 transition: background-color .3s var(--n-bezier);
 display: flex;
 align-items: center;
 `, [
      A("tabs-capsule", `
 border-radius: var(--n-tab-border-radius);
 position: absolute;
 pointer-events: none;
 background-color: var(--n-tab-color-segment);
 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
 transition: transform 0.3s var(--n-bezier);
 `),
      A("tabs-tab-wrapper", `
 flex-basis: 0;
 flex-grow: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 `, [
        A("tabs-tab", `
 overflow: hidden;
 border-radius: var(--n-tab-border-radius);
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 `, [
          G("active", `
 font-weight: var(--n-font-weight-strong);
 color: var(--n-tab-text-color-active);
 `),
          W("&:hover", `
 color: var(--n-tab-text-color-hover);
 `)
        ])
      ])
    ]),
    G("flex", [
      A("tabs-nav", `
 width: 100%;
 position: relative;
 `, [
        A("tabs-wrapper", `
 width: 100%;
 `, [
          A("tabs-tab", `
 margin-right: 0;
 `)
        ])
      ])
    ]),
    A("tabs-nav", `
 box-sizing: border-box;
 line-height: 1.5;
 display: flex;
 transition: border-color .3s var(--n-bezier);
 `, [
      V("prefix, suffix", `
 display: flex;
 align-items: center;
 `),
      V("prefix", "padding-right: 16px;"),
      V("suffix", "padding-left: 16px;")
    ]),
    G("top, bottom", [
      W(">", [
        A("tabs-nav", [
          A("tabs-nav-scroll-wrapper", [
            W("&::before", `
 top: 0;
 bottom: 0;
 left: 0;
 width: 20px;
 `),
            W("&::after", `
 top: 0;
 bottom: 0;
 right: 0;
 width: 20px;
 `),
            G("shadow-start", [
              W("&::before", `
 box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
 `)
            ]),
            G("shadow-end", [
              W("&::after", `
 box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
 `)
            ])
          ])
        ])
      ])
    ]),
    G("left, right", [
      A("tabs-nav-scroll-content", `
 flex-direction: column;
 `),
      W(">", [
        A("tabs-nav", [
          A("tabs-nav-scroll-wrapper", [
            W("&::before", `
 top: 0;
 left: 0;
 right: 0;
 height: 20px;
 `),
            W("&::after", `
 bottom: 0;
 left: 0;
 right: 0;
 height: 20px;
 `),
            G("shadow-start", [
              W("&::before", `
 box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
 `)
            ]),
            G("shadow-end", [
              W("&::after", `
 box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
 `)
            ])
          ])
        ])
      ])
    ]),
    A("tabs-nav-scroll-wrapper", `
 flex: 1;
 position: relative;
 overflow: hidden;
 `, [
      A("tabs-nav-y-scroll", `
 height: 100%;
 width: 100%;
 overflow-y: auto; 
 scrollbar-width: none;
 `, [
        W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb", `
 width: 0;
 height: 0;
 display: none;
 `)
      ]),
      W("&::before, &::after", `
 transition: box-shadow .3s var(--n-bezier);
 pointer-events: none;
 content: "";
 position: absolute;
 z-index: 1;
 `)
    ]),
    A("tabs-nav-scroll-content", `
 display: flex;
 position: relative;
 min-width: 100%;
 min-height: 100%;
 width: fit-content;
 box-sizing: border-box;
 `),
    A("tabs-wrapper", `
 display: inline-flex;
 flex-wrap: nowrap;
 position: relative;
 `),
    A("tabs-tab-wrapper", `
 display: flex;
 flex-wrap: nowrap;
 flex-shrink: 0;
 flex-grow: 0;
 `),
    A("tabs-tab", `
 cursor: pointer;
 white-space: nowrap;
 flex-wrap: nowrap;
 display: inline-flex;
 align-items: center;
 color: var(--n-tab-text-color);
 font-size: var(--n-tab-font-size);
 background-clip: padding-box;
 padding: var(--n-tab-padding);
 transition:
 box-shadow .3s var(--n-bezier),
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `, [
      G("disabled", {
        cursor: "not-allowed"
      }),
      V("close", `
 margin-left: 6px;
 transition:
 background-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `),
      V("label", `
 display: flex;
 align-items: center;
 z-index: 1;
 `)
    ]),
    A("tabs-bar", `
 position: absolute;
 bottom: 0;
 height: 2px;
 border-radius: 1px;
 background-color: var(--n-bar-color);
 transition:
 left .2s var(--n-bezier),
 max-width .2s var(--n-bezier),
 opacity .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 `, [
      W("&.transition-disabled", `
 transition: none;
 `),
      G("disabled", `
 background-color: var(--n-tab-text-color-disabled)
 `)
    ]),
    A("tabs-pane-wrapper", `
 position: relative;
 overflow: hidden;
 transition: max-height .2s var(--n-bezier);
 `),
    A("tab-pane", `
 color: var(--n-pane-text-color);
 width: 100%;
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 opacity .2s var(--n-bezier);
 left: 0;
 right: 0;
 top: 0;
 `, [
      W("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active", `
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 transform .2s var(--n-bezier),
 opacity .2s var(--n-bezier);
 `),
      W("&.next-transition-leave-active, &.prev-transition-leave-active", `
 position: absolute;
 `),
      W("&.next-transition-enter-from, &.prev-transition-leave-to", `
 transform: translateX(32px);
 opacity: 0;
 `),
      W("&.next-transition-leave-to, &.prev-transition-enter-from", `
 transform: translateX(-32px);
 opacity: 0;
 `),
      W("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to", `
 transform: translateX(0);
 opacity: 1;
 `)
    ]),
    A("tabs-tab-pad", `
 box-sizing: border-box;
 width: var(--n-tab-gap);
 flex-grow: 0;
 flex-shrink: 0;
 `),
    G("line-type, bar-type", [
      A("tabs-tab", `
 font-weight: var(--n-tab-font-weight);
 box-sizing: border-box;
 vertical-align: bottom;
 `, [
        W("&:hover", {
          color: "var(--n-tab-text-color-hover)"
        }),
        G("active", `
 color: var(--n-tab-text-color-active);
 font-weight: var(--n-tab-font-weight-active);
 `),
        G("disabled", {
          color: "var(--n-tab-text-color-disabled)"
        })
      ])
    ]),
    A("tabs-nav", [
      G("line-type", [
        G("top", [
          V("prefix, suffix", `
 border-bottom: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-nav-scroll-content", `
 border-bottom: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-bar", `
 bottom: -1px;
 `)
        ]),
        G("left", [
          V("prefix, suffix", `
 border-right: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-nav-scroll-content", `
 border-right: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-bar", `
 right: -1px;
 `)
        ]),
        G("right", [
          V("prefix, suffix", `
 border-left: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-nav-scroll-content", `
 border-left: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-bar", `
 left: -1px;
 `)
        ]),
        G("bottom", [
          V("prefix, suffix", `
 border-top: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-nav-scroll-content", `
 border-top: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-bar", `
 top: -1px;
 `)
        ]),
        V("prefix, suffix", `
 transition: border-color .3s var(--n-bezier);
 `),
        A("tabs-nav-scroll-content", `
 transition: border-color .3s var(--n-bezier);
 `),
        A("tabs-bar", `
 border-radius: 0;
 `)
      ]),
      G("card-type", [
        V("prefix, suffix", `
 transition: border-color .3s var(--n-bezier);
 `),
        A("tabs-pad", `
 flex-grow: 1;
 transition: border-color .3s var(--n-bezier);
 `),
        A("tabs-tab-pad", `
 transition: border-color .3s var(--n-bezier);
 `),
        A("tabs-tab", `
 font-weight: var(--n-tab-font-weight);
 border: 1px solid var(--n-tab-border-color);
 background-color: var(--n-tab-color);
 box-sizing: border-box;
 position: relative;
 vertical-align: bottom;
 display: flex;
 justify-content: space-between;
 font-size: var(--n-tab-font-size);
 color: var(--n-tab-text-color);
 `, [
          G("addable", `
 padding-left: 8px;
 padding-right: 8px;
 font-size: 16px;
 justify-content: center;
 `, [
            V("height-placeholder", `
 width: 0;
 font-size: var(--n-tab-font-size);
 `),
            At("disabled", [
              W("&:hover", `
 color: var(--n-tab-text-color-hover);
 `)
            ])
          ]),
          G("closable", "padding-right: 8px;"),
          G("active", `
 background-color: #0000;
 font-weight: var(--n-tab-font-weight-active);
 color: var(--n-tab-text-color-active);
 `),
          G("disabled", "color: var(--n-tab-text-color-disabled);")
        ])
      ]),
      G("left, right", `
 flex-direction: column; 
 `, [
        V("prefix, suffix", `
 padding: var(--n-tab-padding-vertical);
 `),
        A("tabs-wrapper", `
 flex-direction: column;
 `),
        A("tabs-tab-wrapper", `
 flex-direction: column;
 `, [
          A("tabs-tab-pad", `
 height: var(--n-tab-gap-vertical);
 width: 100%;
 `)
        ])
      ]),
      G("top", [
        G("card-type", [
          A("tabs-scroll-padding", "border-bottom: 1px solid var(--n-tab-border-color);"),
          V("prefix, suffix", `
 border-bottom: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-tab", `
 border-top-left-radius: var(--n-tab-border-radius);
 border-top-right-radius: var(--n-tab-border-radius);
 `, [
            G("active", `
 border-bottom: 1px solid #0000;
 `)
          ]),
          A("tabs-tab-pad", `
 border-bottom: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-pad", `
 border-bottom: 1px solid var(--n-tab-border-color);
 `)
        ])
      ]),
      G("left", [
        G("card-type", [
          A("tabs-scroll-padding", "border-right: 1px solid var(--n-tab-border-color);"),
          V("prefix, suffix", `
 border-right: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-tab", `
 border-top-left-radius: var(--n-tab-border-radius);
 border-bottom-left-radius: var(--n-tab-border-radius);
 `, [
            G("active", `
 border-right: 1px solid #0000;
 `)
          ]),
          A("tabs-tab-pad", `
 border-right: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-pad", `
 border-right: 1px solid var(--n-tab-border-color);
 `)
        ])
      ]),
      G("right", [
        G("card-type", [
          A("tabs-scroll-padding", "border-left: 1px solid var(--n-tab-border-color);"),
          V("prefix, suffix", `
 border-left: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-tab", `
 border-top-right-radius: var(--n-tab-border-radius);
 border-bottom-right-radius: var(--n-tab-border-radius);
 `, [
            G("active", `
 border-left: 1px solid #0000;
 `)
          ]),
          A("tabs-tab-pad", `
 border-left: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-pad", `
 border-left: 1px solid var(--n-tab-border-color);
 `)
        ])
      ]),
      G("bottom", [
        G("card-type", [
          A("tabs-scroll-padding", "border-top: 1px solid var(--n-tab-border-color);"),
          V("prefix, suffix", `
 border-top: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-tab", `
 border-bottom-left-radius: var(--n-tab-border-radius);
 border-bottom-right-radius: var(--n-tab-border-radius);
 `, [
            G("active", `
 border-top: 1px solid #0000;
 `)
          ]),
          A("tabs-tab-pad", `
 border-top: 1px solid var(--n-tab-border-color);
 `),
          A("tabs-pad", `
 border-top: 1px solid var(--n-tab-border-color);
 `)
        ])
      ])
    ])
  ]);
  Df = X$;
  CB = Object.assign(Object.assign({}, Fe.props), {
    value: [
      String,
      Number
    ],
    defaultValue: [
      String,
      Number
    ],
    trigger: {
      type: String,
      default: "click"
    },
    type: {
      type: String,
      default: "bar"
    },
    closable: Boolean,
    justifyContent: String,
    size: {
      type: String,
      default: "medium"
    },
    placement: {
      type: String,
      default: "top"
    },
    tabStyle: [
      String,
      Object
    ],
    tabClass: String,
    addTabStyle: [
      String,
      Object
    ],
    addTabClass: String,
    barWidth: Number,
    paneClass: String,
    paneStyle: [
      String,
      Object
    ],
    paneWrapperClass: String,
    paneWrapperStyle: [
      String,
      Object
    ],
    addable: [
      Boolean,
      Object
    ],
    tabsPadding: {
      type: Number,
      default: 0
    },
    animated: Boolean,
    onBeforeLeave: Function,
    onAdd: Function,
    "onUpdate:value": [
      Function,
      Array
    ],
    onUpdateValue: [
      Function,
      Array
    ],
    onClose: [
      Function,
      Array
    ],
    labelSize: String,
    activeName: [
      String,
      Number
    ],
    onActiveNameChange: [
      Function,
      Array
    ]
  });
  Da = pe({
    name: "Tabs",
    props: CB,
    slots: Object,
    setup(e, { slots: t }) {
      var n, r, o, i;
      const { mergedClsPrefixRef: a, inlineThemeDisabled: l } = at(e), s = Fe("Tabs", "-tabs", wB, NM, e, a), c = L(null), u = L(null), d = L(null), h = L(null), p = L(null), f = L(null), m = L(true), b = L(true), v = ha(e, [
        "labelSize",
        "size"
      ]), y = ha(e, [
        "activeName",
        "value"
      ]), w = L((r = (n = y.value) !== null && n !== void 0 ? n : e.defaultValue) !== null && r !== void 0 ? r : t.default ? (i = (o = ro(t.default())[0]) === null || o === void 0 ? void 0 : o.props) === null || i === void 0 ? void 0 : i.name : null), x = mn(y, w), S = {
        id: 0
      }, _ = D(() => {
        if (!(!e.justifyContent || e.type === "card")) return {
          display: "flex",
          justifyContent: e.justifyContent
        };
      });
      lt(x, () => {
        S.id = 0, B(), E();
      });
      function C() {
        var j;
        const { value: X } = x;
        return X === null ? null : (j = c.value) === null || j === void 0 ? void 0 : j.querySelector(`[data-name="${X}"]`);
      }
      function k(j) {
        if (e.type === "card") return;
        const { value: X } = u;
        if (!X) return;
        const ge = X.style.opacity === "0";
        if (j) {
          const te = `${a.value}-tabs-bar--disabled`, { barWidth: I, placement: Z } = e;
          if (j.dataset.disabled === "true" ? X.classList.add(te) : X.classList.remove(te), [
            "top",
            "bottom"
          ].includes(Z)) {
            if (P([
              "top",
              "maxHeight",
              "height"
            ]), typeof I == "number" && j.offsetWidth >= I) {
              const Ce = Math.floor((j.offsetWidth - I) / 2) + j.offsetLeft;
              X.style.left = `${Ce}px`, X.style.maxWidth = `${I}px`;
            } else X.style.left = `${j.offsetLeft}px`, X.style.maxWidth = `${j.offsetWidth}px`;
            X.style.width = "8192px", ge && (X.style.transition = "none"), X.offsetWidth, ge && (X.style.transition = "", X.style.opacity = "1");
          } else {
            if (P([
              "left",
              "maxWidth",
              "width"
            ]), typeof I == "number" && j.offsetHeight >= I) {
              const Ce = Math.floor((j.offsetHeight - I) / 2) + j.offsetTop;
              X.style.top = `${Ce}px`, X.style.maxHeight = `${I}px`;
            } else X.style.top = `${j.offsetTop}px`, X.style.maxHeight = `${j.offsetHeight}px`;
            X.style.height = "8192px", ge && (X.style.transition = "none"), X.offsetHeight, ge && (X.style.transition = "", X.style.opacity = "1");
          }
        }
      }
      function R() {
        if (e.type === "card") return;
        const { value: j } = u;
        j && (j.style.opacity = "0");
      }
      function P(j) {
        const { value: X } = u;
        if (X) for (const ge of j) X.style[ge] = "";
      }
      function B() {
        if (e.type === "card") return;
        const j = C();
        j ? k(j) : R();
      }
      function E() {
        var j;
        const X = (j = p.value) === null || j === void 0 ? void 0 : j.$el;
        if (!X) return;
        const ge = C();
        if (!ge) return;
        const { scrollLeft: te, offsetWidth: I } = X, { offsetLeft: Z, offsetWidth: Ce } = ge;
        te > Z ? X.scrollTo({
          top: 0,
          left: Z,
          behavior: "smooth"
        }) : Z + Ce > te + I && X.scrollTo({
          top: 0,
          left: Z + Ce - I,
          behavior: "smooth"
        });
      }
      const M = L(null);
      let z = 0, U = null;
      function ee(j) {
        const X = M.value;
        if (X) {
          z = j.getBoundingClientRect().height;
          const ge = `${z}px`, te = () => {
            X.style.height = ge, X.style.maxHeight = ge;
          };
          U ? (te(), U(), U = null) : U = te;
        }
      }
      function ne(j) {
        const X = M.value;
        if (X) {
          const ge = j.getBoundingClientRect().height, te = () => {
            document.body.offsetHeight, X.style.maxHeight = `${ge}px`, X.style.height = `${Math.max(z, ge)}px`;
          };
          U ? (U(), U = null, te()) : U = te;
        }
      }
      function ae() {
        const j = M.value;
        if (j) {
          j.style.maxHeight = "", j.style.height = "";
          const { paneWrapperStyle: X } = e;
          if (typeof X == "string") j.style.cssText = X;
          else if (X) {
            const { maxHeight: ge, height: te } = X;
            ge !== void 0 && (j.style.maxHeight = ge), te !== void 0 && (j.style.height = te);
          }
        }
      }
      const ye = {
        value: []
      }, xe = L("next");
      function re(j) {
        const X = x.value;
        let ge = "next";
        for (const te of ye.value) {
          if (te === X) break;
          if (te === j) {
            ge = "prev";
            break;
          }
        }
        xe.value = ge, Y(j);
      }
      function Y(j) {
        const { onActiveNameChange: X, onUpdateValue: ge, "onUpdate:value": te } = e;
        X && Te(X, j), ge && Te(ge, j), te && Te(te, j), w.value = j;
      }
      function H(j) {
        const { onClose: X } = e;
        X && Te(X, j);
      }
      function oe() {
        const { value: j } = u;
        if (!j) return;
        const X = "transition-disabled";
        j.classList.add(X), B(), j.classList.remove(X);
      }
      const ce = L(null);
      function be({ transitionDisabled: j }) {
        const X = c.value;
        if (!X) return;
        j && X.classList.add("transition-disabled");
        const ge = C();
        ge && ce.value && (ce.value.style.width = `${ge.offsetWidth}px`, ce.value.style.height = `${ge.offsetHeight}px`, ce.value.style.transform = `translateX(${ge.offsetLeft - pn(getComputedStyle(X).paddingLeft)}px)`, j && ce.value.offsetWidth), j && X.classList.remove("transition-disabled");
      }
      lt([
        x
      ], () => {
        e.type === "segment" && sn(() => {
          be({
            transitionDisabled: false
          });
        });
      }), gt(() => {
        e.type === "segment" && be({
          transitionDisabled: true
        });
      });
      let ie = 0;
      function fe(j) {
        var X;
        if (j.contentRect.width === 0 && j.contentRect.height === 0 || ie === j.contentRect.width) return;
        ie = j.contentRect.width;
        const { type: ge } = e;
        if ((ge === "line" || ge === "bar") && oe(), ge !== "segment") {
          const { placement: te } = e;
          le((te === "top" || te === "bottom" ? (X = p.value) === null || X === void 0 ? void 0 : X.$el : f.value) || null);
        }
      }
      const F = Df(fe, 64);
      lt([
        () => e.justifyContent,
        () => e.size
      ], () => {
        sn(() => {
          const { type: j } = e;
          (j === "line" || j === "bar") && oe();
        });
      });
      const se = L(false);
      function ze(j) {
        var X;
        const { target: ge, contentRect: { width: te, height: I } } = j, Z = ge.parentElement.parentElement.offsetWidth, Ce = ge.parentElement.parentElement.offsetHeight, { placement: De } = e;
        if (!se.value) De === "top" || De === "bottom" ? Z < te && (se.value = true) : Ce < I && (se.value = true);
        else {
          const { value: qe } = h;
          if (!qe) return;
          De === "top" || De === "bottom" ? Z - te > qe.$el.offsetWidth && (se.value = false) : Ce - I > qe.$el.offsetHeight && (se.value = false);
        }
        le(((X = p.value) === null || X === void 0 ? void 0 : X.$el) || null);
      }
      const q = Df(ze, 64);
      function J() {
        const { onAdd: j } = e;
        j && j(), sn(() => {
          const X = C(), { value: ge } = p;
          !X || !ge || ge.scrollTo({
            left: X.offsetLeft,
            top: 0,
            behavior: "smooth"
          });
        });
      }
      function le(j) {
        if (!j) return;
        const { placement: X } = e;
        if (X === "top" || X === "bottom") {
          const { scrollLeft: ge, scrollWidth: te, offsetWidth: I } = j;
          m.value = ge <= 0, b.value = ge + I >= te;
        } else {
          const { scrollTop: ge, scrollHeight: te, offsetHeight: I } = j;
          m.value = ge <= 0, b.value = ge + I >= te;
        }
      }
      const we = Df((j) => {
        le(j.target);
      }, 64);
      ft(qm, {
        triggerRef: $e(e, "trigger"),
        tabStyleRef: $e(e, "tabStyle"),
        tabClassRef: $e(e, "tabClass"),
        addTabStyleRef: $e(e, "addTabStyle"),
        addTabClassRef: $e(e, "addTabClass"),
        paneClassRef: $e(e, "paneClass"),
        paneStyleRef: $e(e, "paneStyle"),
        mergedClsPrefixRef: a,
        typeRef: $e(e, "type"),
        closableRef: $e(e, "closable"),
        valueRef: x,
        tabChangeIdRef: S,
        onBeforeLeaveRef: $e(e, "onBeforeLeave"),
        activateTab: re,
        handleClose: H,
        handleAdd: J
      }), Zx(() => {
        B(), E();
      }), fn(() => {
        const { value: j } = d;
        if (!j) return;
        const { value: X } = a, ge = `${X}-tabs-nav-scroll-wrapper--shadow-start`, te = `${X}-tabs-nav-scroll-wrapper--shadow-end`;
        m.value ? j.classList.remove(ge) : j.classList.add(ge), b.value ? j.classList.remove(te) : j.classList.add(te);
      });
      const ke = {
        syncBarPosition: () => {
          B();
        }
      }, _e = () => {
        be({
          transitionDisabled: true
        });
      }, K = D(() => {
        const { value: j } = v, { type: X } = e, ge = {
          card: "Card",
          bar: "Bar",
          line: "Line",
          segment: "Segment"
        }[X], te = `${j}${ge}`, { self: { barColor: I, closeIconColor: Z, closeIconColorHover: Ce, closeIconColorPressed: De, tabColor: qe, tabBorderColor: ut, paneTextColor: Ze, tabFontWeight: rt, tabBorderRadius: Ne, tabFontWeightActive: bt, colorSegment: We, fontWeightStrong: Ge, tabColorSegment: Q, closeSize: me, closeIconSize: Ee, closeColorHover: He, closeColorPressed: Ve, closeBorderRadius: Ke, [Se("panePadding", j)]: Xe, [Se("tabPadding", te)]: Qe, [Se("tabPaddingVertical", te)]: _t, [Se("tabGap", te)]: Mt, [Se("tabGap", `${te}Vertical`)]: ct, [Se("tabTextColor", X)]: on, [Se("tabTextColorActive", X)]: Dn, [Se("tabTextColorHover", X)]: Sn, [Se("tabTextColorDisabled", X)]: _n, [Se("tabFontSize", j)]: $n }, common: { cubicBezierEaseInOut: Hn } } = s.value;
        return {
          "--n-bezier": Hn,
          "--n-color-segment": We,
          "--n-bar-color": I,
          "--n-tab-font-size": $n,
          "--n-tab-text-color": on,
          "--n-tab-text-color-active": Dn,
          "--n-tab-text-color-disabled": _n,
          "--n-tab-text-color-hover": Sn,
          "--n-pane-text-color": Ze,
          "--n-tab-border-color": ut,
          "--n-tab-border-radius": Ne,
          "--n-close-size": me,
          "--n-close-icon-size": Ee,
          "--n-close-color-hover": He,
          "--n-close-color-pressed": Ve,
          "--n-close-border-radius": Ke,
          "--n-close-icon-color": Z,
          "--n-close-icon-color-hover": Ce,
          "--n-close-icon-color-pressed": De,
          "--n-tab-color": qe,
          "--n-tab-font-weight": rt,
          "--n-tab-font-weight-active": bt,
          "--n-tab-padding": Qe,
          "--n-tab-padding-vertical": _t,
          "--n-tab-gap": Mt,
          "--n-tab-gap-vertical": ct,
          "--n-pane-padding-left": En(Xe, "left"),
          "--n-pane-padding-right": En(Xe, "right"),
          "--n-pane-padding-top": En(Xe, "top"),
          "--n-pane-padding-bottom": En(Xe, "bottom"),
          "--n-font-weight-strong": Ge,
          "--n-tab-color-segment": Q
        };
      }), N = l ? xt("tabs", D(() => `${v.value[0]}${e.type[0]}`), K, e) : void 0;
      return Object.assign({
        mergedClsPrefix: a,
        mergedValue: x,
        renderedNames: /* @__PURE__ */ new Set(),
        segmentCapsuleElRef: ce,
        tabsPaneWrapperRef: M,
        tabsElRef: c,
        barElRef: u,
        addTabInstRef: h,
        xScrollInstRef: p,
        scrollWrapperElRef: d,
        addTabFixed: se,
        tabWrapperStyle: _,
        handleNavResize: F,
        mergedSize: v,
        handleScroll: we,
        handleTabsResize: q,
        cssVars: l ? void 0 : K,
        themeClass: N == null ? void 0 : N.themeClass,
        animationDirection: xe,
        renderNameListRef: ye,
        yScrollElRef: f,
        handleSegmentResize: _e,
        onAnimationBeforeLeave: ee,
        onAnimationEnter: ne,
        onAnimationAfterEnter: ae,
        onRender: N == null ? void 0 : N.onRender
      }, ke);
    },
    render() {
      const { mergedClsPrefix: e, type: t, placement: n, addTabFixed: r, addable: o, mergedSize: i, renderNameListRef: a, onRender: l, paneWrapperClass: s, paneWrapperStyle: c, $slots: { default: u, prefix: d, suffix: h } } = this;
      l == null ? void 0 : l();
      const p = u ? ro(u()).filter((S) => S.type.__TAB_PANE__ === true) : [], f = u ? ro(u()).filter((S) => S.type.__TAB__ === true) : [], m = !f.length, b = t === "card", v = t === "segment", y = !b && !v && this.justifyContent;
      a.value = [];
      const w = () => {
        const S = g("div", {
          style: this.tabWrapperStyle,
          class: `${e}-tabs-wrapper`
        }, y ? null : g("div", {
          class: `${e}-tabs-scroll-padding`,
          style: n === "top" || n === "bottom" ? {
            width: `${this.tabsPadding}px`
          } : {
            height: `${this.tabsPadding}px`
          }
        }), m ? p.map((_, C) => (a.value.push(_.props.name), $f(g(Qh, Object.assign({}, _.props, {
          internalCreatedByPane: true,
          internalLeftPadded: C !== 0 && (!y || y === "center" || y === "start" || y === "end")
        }), _.children ? {
          default: _.children.tab
        } : void 0)))) : f.map((_, C) => (a.value.push(_.props.name), $f(C !== 0 && !y ? a0(_) : _))), !r && o && b ? i0(o, (m ? p.length : f.length) !== 0) : null, y ? null : g("div", {
          class: `${e}-tabs-scroll-padding`,
          style: {
            width: `${this.tabsPadding}px`
          }
        }));
        return g("div", {
          ref: "tabsElRef",
          class: `${e}-tabs-nav-scroll-content`
        }, b && o ? g(Vr, {
          onResize: this.handleTabsResize
        }, {
          default: () => S
        }) : S, b ? g("div", {
          class: `${e}-tabs-pad`
        }) : null, b ? null : g("div", {
          ref: "barElRef",
          class: `${e}-tabs-bar`
        }));
      }, x = v ? "top" : n;
      return g("div", {
        class: [
          `${e}-tabs`,
          this.themeClass,
          `${e}-tabs--${t}-type`,
          `${e}-tabs--${i}-size`,
          y && `${e}-tabs--flex`,
          `${e}-tabs--${x}`
        ],
        style: this.cssVars
      }, g("div", {
        class: [
          `${e}-tabs-nav--${t}-type`,
          `${e}-tabs-nav--${x}`,
          `${e}-tabs-nav`
        ]
      }, Pt(d, (S) => S && g("div", {
        class: `${e}-tabs-nav__prefix`
      }, S)), v ? g(Vr, {
        onResize: this.handleSegmentResize
      }, {
        default: () => g("div", {
          class: `${e}-tabs-rail`,
          ref: "tabsElRef"
        }, g("div", {
          class: `${e}-tabs-capsule`,
          ref: "segmentCapsuleElRef"
        }, g("div", {
          class: `${e}-tabs-wrapper`
        }, g("div", {
          class: `${e}-tabs-tab`
        }))), m ? p.map((S, _) => (a.value.push(S.props.name), g(Qh, Object.assign({}, S.props, {
          internalCreatedByPane: true,
          internalLeftPadded: _ !== 0
        }), S.children ? {
          default: S.children.tab
        } : void 0))) : f.map((S, _) => (a.value.push(S.props.name), _ === 0 ? S : a0(S))))
      }) : g(Vr, {
        onResize: this.handleNavResize
      }, {
        default: () => g("div", {
          class: `${e}-tabs-nav-scroll-wrapper`,
          ref: "scrollWrapperElRef"
        }, [
          "top",
          "bottom"
        ].includes(x) ? g(_T, {
          ref: "xScrollInstRef",
          onScroll: this.handleScroll
        }, {
          default: w
        }) : g("div", {
          class: `${e}-tabs-nav-y-scroll`,
          onScroll: this.handleScroll,
          ref: "yScrollElRef"
        }, w()))
      }), r && o && b ? i0(o, true) : null, Pt(h, (S) => S && g("div", {
        class: `${e}-tabs-nav__suffix`
      }, S))), m && (this.animated && (x === "top" || x === "bottom") ? g("div", {
        ref: "tabsPaneWrapperRef",
        style: c,
        class: [
          `${e}-tabs-pane-wrapper`,
          s
        ]
      }, o0(p, this.mergedValue, this.renderedNames, this.onAnimationBeforeLeave, this.onAnimationEnter, this.onAnimationAfterEnter, this.animationDirection)) : o0(p, this.mergedValue, this.renderedNames)));
    }
  });
  function o0(e, t, n, r, o, i, a) {
    const l = [];
    return e.forEach((s) => {
      const { name: c, displayDirective: u, "display-directive": d } = s.props, h = (f) => u === f || d === f, p = t === c;
      if (s.key !== void 0 && (s.key = c), p || h("show") || h("show:lazy") && n.has(c)) {
        n.has(c) || n.add(c);
        const f = !h("if");
        l.push(f ? $r(s, [
          [
            zo,
            p
          ]
        ]) : s);
      }
    }), a ? g(Kp, {
      name: `${a}-transition`,
      onBeforeLeave: r,
      onEnter: o,
      onAfterEnter: i
    }, {
      default: () => l
    }) : l;
  }
  function i0(e, t) {
    return g(Qh, {
      ref: "addTabInstRef",
      key: "__addable",
      name: "__addable",
      internalCreatedByPane: true,
      internalAddable: true,
      internalLeftPadded: t,
      disabled: typeof e == "object" && e.disabled
    });
  }
  function a0(e) {
    const t = zr(e);
    return t.props ? t.props.internalLeftPadded = true : t.props = {
      internalLeftPadded: true
    }, t;
  }
  function $f(e) {
    return Array.isArray(e.dynamicProps) ? e.dynamicProps.includes("internalLeftPadded") || e.dynamicProps.push("internalLeftPadded") : e.dynamicProps = [
      "internalLeftPadded"
    ], e;
  }
  let SB, _B, Gm, kB, RB, AB, EB, TB, PB;
  SB = A("thing", `
 display: flex;
 transition: color .3s var(--n-bezier);
 font-size: var(--n-font-size);
 color: var(--n-text-color);
`, [
    A("thing-avatar", `
 margin-right: 12px;
 margin-top: 2px;
 `),
    A("thing-avatar-header-wrapper", `
 display: flex;
 flex-wrap: nowrap;
 `, [
      A("thing-header-wrapper", `
 flex: 1;
 `)
    ]),
    A("thing-main", `
 flex-grow: 1;
 `, [
      A("thing-header", `
 display: flex;
 margin-bottom: 4px;
 justify-content: space-between;
 align-items: center;
 `, [
        V("title", `
 font-size: 16px;
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 color: var(--n-title-text-color);
 `)
      ]),
      V("description", [
        W("&:not(:last-child)", `
 margin-bottom: 4px;
 `)
      ]),
      V("content", [
        W("&:not(:first-child)", `
 margin-top: 12px;
 `)
      ]),
      V("footer", [
        W("&:not(:first-child)", `
 margin-top: 12px;
 `)
      ]),
      V("action", [
        W("&:not(:first-child)", `
 margin-top: 12px;
 `)
      ])
    ])
  ]);
  _B = Object.assign(Object.assign({}, Fe.props), {
    title: String,
    titleExtra: String,
    description: String,
    descriptionClass: String,
    descriptionStyle: [
      String,
      Object
    ],
    content: String,
    contentClass: String,
    contentStyle: [
      String,
      Object
    ],
    contentIndented: Boolean
  });
  Gm = pe({
    name: "Thing",
    props: _B,
    slots: Object,
    setup(e, { slots: t }) {
      const { mergedClsPrefixRef: n, inlineThemeDisabled: r, mergedRtlRef: o } = at(e), i = Fe("Thing", "-thing", SB, jM, e, n), a = rn("Thing", o, n), l = D(() => {
        const { self: { titleTextColor: c, textColor: u, titleFontWeight: d, fontSize: h }, common: { cubicBezierEaseInOut: p } } = i.value;
        return {
          "--n-bezier": p,
          "--n-font-size": h,
          "--n-text-color": u,
          "--n-title-font-weight": d,
          "--n-title-text-color": c
        };
      }), s = r ? xt("thing", void 0, l, e) : void 0;
      return () => {
        var c;
        const { value: u } = n, d = a ? a.value : false;
        return (c = s == null ? void 0 : s.onRender) === null || c === void 0 || c.call(s), g("div", {
          class: [
            `${u}-thing`,
            s == null ? void 0 : s.themeClass,
            d && `${u}-thing--rtl`
          ],
          style: r ? void 0 : l.value
        }, t.avatar && e.contentIndented ? g("div", {
          class: `${u}-thing-avatar`
        }, t.avatar()) : null, g("div", {
          class: `${u}-thing-main`
        }, !e.contentIndented && (t.header || e.title || t["header-extra"] || e.titleExtra || t.avatar) ? g("div", {
          class: `${u}-thing-avatar-header-wrapper`
        }, t.avatar ? g("div", {
          class: `${u}-thing-avatar`
        }, t.avatar()) : null, t.header || e.title || t["header-extra"] || e.titleExtra ? g("div", {
          class: `${u}-thing-header-wrapper`
        }, g("div", {
          class: `${u}-thing-header`
        }, t.header || e.title ? g("div", {
          class: `${u}-thing-header__title`
        }, t.header ? t.header() : e.title) : null, t["header-extra"] || e.titleExtra ? g("div", {
          class: `${u}-thing-header__extra`
        }, t["header-extra"] ? t["header-extra"]() : e.titleExtra) : null), t.description || e.description ? g("div", {
          class: [
            `${u}-thing-main__description`,
            e.descriptionClass
          ],
          style: e.descriptionStyle
        }, t.description ? t.description() : e.description) : null) : null) : g(wt, null, t.header || e.title || t["header-extra"] || e.titleExtra ? g("div", {
          class: `${u}-thing-header`
        }, t.header || e.title ? g("div", {
          class: `${u}-thing-header__title`
        }, t.header ? t.header() : e.title) : null, t["header-extra"] || e.titleExtra ? g("div", {
          class: `${u}-thing-header__extra`
        }, t["header-extra"] ? t["header-extra"]() : e.titleExtra) : null) : null, t.description || e.description ? g("div", {
          class: [
            `${u}-thing-main__description`,
            e.descriptionClass
          ],
          style: e.descriptionStyle
        }, t.description ? t.description() : e.description) : null), t.default || e.content ? g("div", {
          class: [
            `${u}-thing-main__content`,
            e.contentClass
          ],
          style: e.contentStyle
        }, t.default ? t.default() : e.content) : null, t.footer ? g("div", {
          class: `${u}-thing-main__footer`
        }, t.footer()) : null, t.action ? g("div", {
          class: `${u}-thing-main__action`
        }, t.action()) : null));
      };
    }
  });
  kB = A("text", `
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
`, [
    G("strong", `
 font-weight: var(--n-font-weight-strong);
 `),
    G("italic", {
      fontStyle: "italic"
    }),
    G("underline", {
      textDecoration: "underline"
    }),
    G("code", `
 line-height: 1.4;
 display: inline-block;
 font-family: var(--n-font-famliy-mono);
 transition: 
 color .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 box-sizing: border-box;
 padding: .05em .35em 0 .35em;
 border-radius: var(--n-code-border-radius);
 font-size: .9em;
 color: var(--n-code-text-color);
 background-color: var(--n-code-color);
 border: var(--n-code-border);
 `)
  ]);
  RB = Object.assign(Object.assign({}, Fe.props), {
    code: Boolean,
    type: {
      type: String,
      default: "default"
    },
    delete: Boolean,
    strong: Boolean,
    italic: Boolean,
    underline: Boolean,
    depth: [
      String,
      Number
    ],
    tag: String,
    as: {
      type: String,
      validator: () => true,
      default: void 0
    }
  });
  Km = pe({
    name: "Text",
    props: RB,
    setup(e) {
      const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = at(e), r = Fe("Typography", "-text", kB, JM, e, t), o = D(() => {
        const { depth: a, type: l } = e, s = l === "default" ? a === void 0 ? "textColor" : `textColor${a}Depth` : Se("textColor", l), { common: { fontWeightStrong: c, fontFamilyMono: u, cubicBezierEaseInOut: d }, self: { codeTextColor: h, codeBorderRadius: p, codeColor: f, codeBorder: m, [s]: b } } = r.value;
        return {
          "--n-bezier": d,
          "--n-text-color": b,
          "--n-font-weight-strong": c,
          "--n-font-famliy-mono": u,
          "--n-code-border-radius": p,
          "--n-code-text-color": h,
          "--n-code-color": f,
          "--n-code-border": m
        };
      }), i = n ? xt("text", D(() => `${e.type[0]}${e.depth || ""}`), o, e) : void 0;
      return {
        mergedClsPrefix: t,
        compitableTag: ha(e, [
          "as",
          "tag"
        ]),
        cssVars: n ? void 0 : o,
        themeClass: i == null ? void 0 : i.themeClass,
        onRender: i == null ? void 0 : i.onRender
      };
    },
    render() {
      var e, t, n;
      const { mergedClsPrefix: r } = this;
      (e = this.onRender) === null || e === void 0 || e.call(this);
      const o = [
        `${r}-text`,
        this.themeClass,
        {
          [`${r}-text--code`]: this.code,
          [`${r}-text--delete`]: this.delete,
          [`${r}-text--strong`]: this.strong,
          [`${r}-text--italic`]: this.italic,
          [`${r}-text--underline`]: this.underline
        }
      ], i = (n = (t = this.$slots).default) === null || n === void 0 ? void 0 : n.call(t);
      return this.code ? g("code", {
        class: o,
        style: this.cssVars
      }, this.delete ? g("del", null, i) : i) : this.delete ? g("del", {
        class: o,
        style: this.cssVars
      }, i) : g(this.compitableTag || "span", {
        class: o,
        style: this.cssVars
      }, i);
    }
  });
  AB = () => ({});
  EB = {
    name: "Equation",
    common: Ue,
    self: AB
  };
  TB = {
    name: "FloatButtonGroup",
    common: Ue,
    self(e) {
      const { popoverColor: t, dividerColor: n, borderRadius: r } = e;
      return {
        color: t,
        buttonBorderColor: n,
        borderRadiusSquare: r,
        boxShadow: "0 2px 8px 0px rgba(0, 0, 0, .12)"
      };
    }
  };
  PB = {
    name: "dark",
    common: Ue,
    Alert: C8,
    Anchor: D8,
    AutoComplete: K8,
    Avatar: EC,
    AvatarGroup: oO,
    BackTop: iO,
    Badge: fO,
    Breadcrumb: yO,
    Button: xr,
    ButtonGroup: YF,
    Calendar: RO,
    Card: zC,
    Carousel: $O,
    Cascader: IO,
    Checkbox: Pl,
    Code: MC,
    Collapse: WO,
    CollapseTransition: JO,
    ColorPicker: QO,
    DataTable: bI,
    DatePicker: T6,
    Descriptions: $6,
    Dialog: k2,
    Divider: gF,
    Drawer: xF,
    Dropdown: km,
    DynamicInput: LF,
    DynamicTags: WF,
    Element: UF,
    Empty: Ra,
    Ellipsis: JC,
    Equation: EB,
    Flex: VF,
    Form: JF,
    GradientText: ZF,
    Heatmap: a9,
    Icon: KI,
    IconWrapper: s9,
    Image: c9,
    Input: Fr,
    InputNumber: QF,
    InputOtp: tM,
    LegacyTransfer: b9,
    Layout: nM,
    List: lM,
    LoadingBar: q6,
    Log: sM,
    Menu: fM,
    Mention: cM,
    Message: Y6,
    Modal: N6,
    Notification: iF,
    PageHeader: mM,
    Pagination: GC,
    Popconfirm: bM,
    Popover: Ea,
    Popselect: NC,
    Progress: q2,
    QrCode: G9,
    Radio: e2,
    Rate: xM,
    Result: SM,
    Row: iM,
    Scrollbar: nr,
    Select: UC,
    Skeleton: tB,
    Slider: _M,
    Space: M2,
    Spin: EM,
    Statistic: TM,
    Steps: $M,
    Switch: zM,
    Table: LM,
    Tabs: HM,
    Tag: pC,
    Thing: WM,
    TimePicker: C2,
    Timeline: VM,
    Tooltip: bd,
    Transfer: GM,
    Tree: eS,
    TreeSelect: YM,
    Typography: ZM,
    Upload: eL,
    Watermark: tL,
    Split: hB,
    FloatButton: nL,
    FloatButtonGroup: TB,
    Marquee: C9
  };
  function DB(e = {}) {
    const t = [];
    let n = -1;
    const r = (o = false) => ({
      get(i, a, l) {
        if (!o) {
          const s = Reflect.get(i, a, l);
          if (typeof s < "u") return s;
          n++, t[n] = [];
        }
        return t[n].push({
          type: "get",
          key: a
        }), new Proxy(() => {
        }, r(true));
      },
      apply(i, a, l) {
        t[n].push({
          type: "apply",
          key: "",
          args: l
        });
      }
    });
    return {
      proxy: new Proxy(e || {}, r()),
      stack: t
    };
  }
  function $B(e) {
    const t = {
      get(n, r, o) {
        const i = Reflect.get(n, r, o);
        return typeof i == "object" ? new Proxy(i, t) : i;
      },
      apply(n, r, o) {
        Reflect.apply(n, r, o);
      }
    };
    return new Proxy(e, t);
  }
  function zB(e, t) {
    t.forEach((n) => {
      let r = e, o = e;
      n.forEach(({ type: i, key: a, args: l }) => {
        i === "get" ? (o = r, r = r[a]) : i === "apply" && (r = r.call(o, ...l));
      });
    });
  }
  function OB(e) {
    return e.key || e.src || (typeof e.innerHTML == "string" ? e.innerHTML : "");
  }
  const IB = [
    "preconnect",
    "dns-prefetch"
  ];
  function FB(e, t, n) {
    var _a2, _b2, _c2;
    const r = typeof t == "string" ? {
      src: t
    } : t, o = n || {}, i = OB(r), a = (_a2 = e._scripts) == null ? void 0 : _a2[i];
    if (a) return a.setupTriggerHandler(o.trigger), a;
    (_b2 = o.beforeInit) == null ? void 0 : _b2.call(o);
    const l = (f) => {
      h.status = f, e.hooks.callHook("script:updated", p);
    };
    pA.forEach((f) => {
      const m = f, b = typeof r[m] == "function" ? r[m].bind(o.eventContext) : null;
      r[m] = (v) => {
        l(f === "onload" ? "loaded" : f === "onerror" ? "error" : "loading"), b == null ? void 0 : b(v);
      };
    });
    const s = {
      loaded: [],
      error: []
    }, c = /* @__PURE__ */ new Set(), u = (f, m, b) => {
      if (!e.ssr) {
        if (b == null ? void 0 : b.key) {
          const v = `${b == null ? void 0 : b.key}:${b.key}`;
          if (c.has(v)) return;
          c.add(v);
        }
        if (s[f]) {
          const v = s[f].push(m);
          return () => {
            var _a3;
            return (_a3 = s[f]) == null ? void 0 : _a3.splice(v - 1, 1);
          };
        }
        return m(h.instance), () => {
        };
      }
    }, d = new Promise((f) => {
      if (e.ssr) return;
      const m = (v) => requestAnimationFrame(() => f(v)), b = e.hooks.hook("script:updated", ({ script: v }) => {
        const y = v.status;
        if (v.id === i && (y === "loaded" || y === "error")) {
          if (y === "loaded") if (typeof o.use == "function") {
            const w = o.use();
            w && m(w);
          } else m({});
          else y === "error" && f(false);
          b();
        }
      });
    }), h = {
      _loadPromise: d,
      instance: !e.ssr && ((_c2 = o == null ? void 0 : o.use) == null ? void 0 : _c2.call(o)) || null,
      proxy: null,
      id: i,
      status: "awaitingLoad",
      remove() {
        var _a3, _b3, _c3, _d2;
        return (_a3 = h._triggerAbortControllers) == null ? void 0 : _a3.forEach((f) => f.abort()), (_b3 = h._triggerAbortControllers) == null ? void 0 : _b3.clear(), h._triggerPromises = [], (_c3 = h._warmupEl) == null ? void 0 : _c3.dispose(), h.entry ? (h.entry.dispose(), h.entry = void 0, l("removed"), (_d2 = e._scripts) == null ? true : delete _d2[i], true) : false;
      },
      warmup(f) {
        const { src: m } = r, b = !m.startsWith("/") || m.startsWith("//"), v = f && IB.includes(f);
        let y = m;
        if (!f || v && !b) return;
        if (v) {
          const x = new URL(m);
          y = `${x.protocol}//${x.host}`;
        }
        const w = {
          href: y,
          rel: f,
          crossorigin: typeof r.crossorigin < "u" ? r.crossorigin : b ? "anonymous" : void 0,
          referrerpolicy: typeof r.referrerpolicy < "u" ? r.referrerpolicy : b ? "no-referrer" : void 0,
          fetchpriority: typeof r.fetchpriority < "u" ? r.fetchpriority : "low",
          integrity: r.integrity,
          as: f === "preload" ? "script" : void 0
        };
        return h._warmupEl = e.push({
          link: [
            w
          ]
        }, {
          head: e,
          tagPriority: "high"
        }), h._warmupEl;
      },
      load(f) {
        var _a3, _b3;
        if ((_a3 = h._triggerAbortControllers) == null ? void 0 : _a3.forEach((m) => m.abort()), (_b3 = h._triggerAbortControllers) == null ? void 0 : _b3.clear(), h._triggerPromises = [], !h.entry) {
          l("loading");
          const m = {
            defer: true,
            fetchpriority: "low"
          };
          r.src && (r.src.startsWith("http") || r.src.startsWith("//")) && (m.crossorigin = "anonymous", m.referrerpolicy = "no-referrer"), h.entry = e.push({
            script: [
              {
                ...m,
                ...r
              }
            ]
          }, o);
        }
        return f && u("loaded", f), d;
      },
      onLoaded(f, m) {
        return u("loaded", f, m);
      },
      onError(f, m) {
        return u("error", f, m);
      },
      setupTriggerHandler(f) {
        if (h.status === "awaitingLoad") if ((typeof f > "u" || f === "client") && !e.ssr || f === "server") h.load();
        else if (f instanceof Promise) {
          if (e.ssr) return;
          const m = new AbortController();
          h._triggerAbortControllers = h._triggerAbortControllers || /* @__PURE__ */ new Set(), h._triggerAbortControllers.add(m);
          const b = new Promise((y) => {
            m.signal.addEventListener("abort", () => {
              var _a3;
              (_a3 = h._triggerAbortControllers) == null ? void 0 : _a3.delete(m), y();
            });
          });
          h._triggerAbortController = m, h._triggerPromises = h._triggerPromises || [];
          const v = h._triggerPromises.push(Promise.race([
            f.then((y) => typeof y > "u" || y ? h.load : void 0),
            b
          ]).catch(() => {
          }).then((y) => {
            y == null ? void 0 : y();
          }).finally(() => {
            var _a3;
            (_a3 = h._triggerPromises) == null ? void 0 : _a3.splice(v, 1);
          }));
        } else typeof f == "function" && f(h.load);
      },
      _cbs: s
    };
    d.then((f) => {
      var _a3, _b3;
      f !== false ? (h.instance = f, (_a3 = s.loaded) == null ? void 0 : _a3.forEach((m) => m(f)), s.loaded = null) : ((_b3 = s.error) == null ? void 0 : _b3.forEach((m) => m()), s.error = null);
    });
    const p = {
      script: h
    };
    if (h.setupTriggerHandler(o.trigger), o.use) {
      const { proxy: f, stack: m } = DB(e.ssr ? {} : o.use() || {});
      h.proxy = f, h.onLoaded((b) => {
        zB(b, m), h.proxy = $B(b);
      });
    }
    return !o.warmupStrategy && (typeof o.trigger > "u" || o.trigger === "client") && (o.warmupStrategy = "preload"), o.warmupStrategy && h.warmup(o.warmupStrategy), e._scripts = Object.assign(e._scripts || {}, {
      [i]: h
    }), h;
  }
  function MB(e, t) {
    if (!t) return;
    const n = (o, i) => {
      if (!e._cbs[o]) return i(e.instance), () => {
      };
      let a = e._cbs[o].push(i);
      const l = () => {
        var _a2;
        a && ((_a2 = e._cbs[o]) == null ? void 0 : _a2.splice(a - 1, 1), a = null);
      };
      return ih(l), l;
    };
    e.onLoaded = (o) => n("loaded", o), e.onError = (o) => n("error", o);
    const r = e._triggerAbortController;
    ih(() => {
      r == null ? void 0 : r.abort();
    });
  }
  function LB(e, t) {
    const n = typeof e == "string" ? {
      src: e
    } : e, r = {}, o = (r == null ? void 0 : r.head) || Ix();
    r.head = o;
    const i = Vn();
    if (r.eventContext = i, i && typeof r.trigger > "u") r.trigger = gt;
    else if (kt(r.trigger) || typeof r.trigger == "function" && r.trigger.length === 0) {
      const l = r.trigger;
      let s;
      r.trigger = new Promise((c) => {
        s = lt(l, (u) => {
          u && c(true);
        }, {
          immediate: true
        }), ih(() => c(false), true);
      }).then((c) => (s == null ? void 0 : s(), c));
    }
    o._scriptStatusWatcher = o._scriptStatusWatcher || o.hooks.hook("script:updated", ({ script: l }) => {
      l._statusRef && (l._statusRef.value = l.status);
    });
    const a = FB(o, n, r);
    return a._statusRef = a._statusRef || L(a.status), MB(a, i), new Proxy(a, {
      get(l, s, c) {
        return Reflect.get(l, s === "status" ? "_statusRef" : s, c);
      }
    });
  }
  function BB(e, t) {
    typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
  }
  const Du = typeof window < "u", Mi = (e, t = false) => t ? Symbol.for(e) : Symbol(e), NB = (e, t, n) => HB({
    l: e,
    k: t,
    s: n
  }), HB = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), An = (e) => typeof e == "number" && isFinite(e), jB = (e) => Ym(e) === "[object Date]", pl = (e) => Ym(e) === "[object RegExp]", Rd = (e) => $t(e) && Object.keys(e).length === 0, Fn = Object.assign, WB = Object.create, nn = (e = null) => WB(e);
  let l0;
  const Zi = () => l0 || (l0 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : nn());
  function s0(e) {
    return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
  }
  function c0(e) {
    return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
  }
  function UB(e) {
    return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, o, i) => `${o}="${c0(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, o, i) => `${o}='${c0(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [
      /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
      /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
    ].forEach((r) => {
      e = e.replace(r, "$1javascript&#58;");
    }), e;
  }
  const VB = Object.prototype.hasOwnProperty;
  function Qr(e, t) {
    return VB.call(e, t);
  }
  const vn = Array.isArray, dn = (e) => typeof e == "function", et = (e) => typeof e == "string", Nt = (e) => typeof e == "boolean", Wt = (e) => e !== null && typeof e == "object", qB = (e) => Wt(e) && dn(e.then) && dn(e.catch), yS = Object.prototype.toString, Ym = (e) => yS.call(e), $t = (e) => Ym(e) === "[object Object]", GB = (e) => e == null ? "" : vn(e) || $t(e) && e.toString === yS ? JSON.stringify(e, null, 2) : String(e);
  function Xm(e, t = "") {
    return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
  }
  const Mc = (e) => !Wt(e) || vn(e);
  function tu(e, t) {
    if (Mc(e) || Mc(t)) throw new Error("Invalid value");
    const n = [
      {
        src: e,
        des: t
      }
    ];
    for (; n.length; ) {
      const { src: r, des: o } = n.pop();
      Object.keys(r).forEach((i) => {
        i !== "__proto__" && (Wt(r[i]) && !Wt(o[i]) && (o[i] = Array.isArray(r[i]) ? [] : nn()), Mc(o[i]) || Mc(r[i]) ? o[i] = r[i] : n.push({
          src: r[i],
          des: o[i]
        }));
      });
    }
  }
  function KB(e, t, n) {
    return {
      line: e,
      column: t,
      offset: n
    };
  }
  function ep(e, t, n) {
    return {
      start: e,
      end: t
    };
  }
  const Kt = {
    EXPECTED_TOKEN: 1,
    INVALID_TOKEN_IN_PLACEHOLDER: 2,
    UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
    UNKNOWN_ESCAPE_SEQUENCE: 4,
    INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
    UNBALANCED_CLOSING_BRACE: 6,
    UNTERMINATED_CLOSING_BRACE: 7,
    EMPTY_PLACEHOLDER: 8,
    NOT_ALLOW_NEST_PLACEHOLDER: 9,
    INVALID_LINKED_FORMAT: 10,
    MUST_HAVE_MESSAGES_IN_PLURAL: 11,
    UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
    UNEXPECTED_EMPTY_LINKED_KEY: 13,
    UNEXPECTED_LEXICAL_ANALYSIS: 14
  }, YB = 17;
  function Ad(e, t, n = {}) {
    const { domain: r, messages: o, args: i } = n, a = e, l = new SyntaxError(String(a));
    return l.code = e, t && (l.location = t), l.domain = r, l;
  }
  function XB(e) {
    throw e;
  }
  const yo = " ", JB = "\r", Yn = `
`, ZB = "\u2028", QB = "\u2029";
  function eN(e) {
    const t = e;
    let n = 0, r = 1, o = 1, i = 0;
    const a = (C) => t[C] === JB && t[C + 1] === Yn, l = (C) => t[C] === Yn, s = (C) => t[C] === QB, c = (C) => t[C] === ZB, u = (C) => a(C) || l(C) || s(C) || c(C), d = () => n, h = () => r, p = () => o, f = () => i, m = (C) => a(C) || s(C) || c(C) ? Yn : t[C], b = () => m(n), v = () => m(n + i);
    function y() {
      return i = 0, u(n) && (r++, o = 0), a(n) && n++, n++, o++, t[n];
    }
    function w() {
      return a(n + i) && i++, i++, t[n + i];
    }
    function x() {
      n = 0, r = 1, o = 1, i = 0;
    }
    function S(C = 0) {
      i = C;
    }
    function _() {
      const C = n + i;
      for (; C !== n; ) y();
      i = 0;
    }
    return {
      index: d,
      line: h,
      column: p,
      peekOffset: f,
      charAt: m,
      currentChar: b,
      currentPeek: v,
      next: y,
      peek: w,
      reset: x,
      resetPeek: S,
      skipToPeek: _
    };
  }
  const Vo = void 0, tN = ".", u0 = "'", nN = "tokenizer";
  function rN(e, t = {}) {
    const n = t.location !== false, r = eN(e), o = () => r.index(), i = () => KB(r.line(), r.column(), r.index()), a = i(), l = o(), s = {
      currentType: 13,
      offset: l,
      startLoc: a,
      endLoc: a,
      lastType: 13,
      lastOffset: l,
      lastStartLoc: a,
      lastEndLoc: a,
      braceNest: 0,
      inLinked: false,
      text: ""
    }, c = () => s, { onError: u } = t;
    function d(K, N, j, ...X) {
      const ge = c();
      if (N.column += j, N.offset += j, u) {
        const te = n ? ep(ge.startLoc, N) : null, I = Ad(K, te, {
          domain: nN,
          args: X
        });
        u(I);
      }
    }
    function h(K, N, j) {
      K.endLoc = i(), K.currentType = N;
      const X = {
        type: N
      };
      return n && (X.loc = ep(K.startLoc, K.endLoc)), j != null && (X.value = j), X;
    }
    const p = (K) => h(K, 13);
    function f(K, N) {
      return K.currentChar() === N ? (K.next(), N) : (d(Kt.EXPECTED_TOKEN, i(), 0, N), "");
    }
    function m(K) {
      let N = "";
      for (; K.currentPeek() === yo || K.currentPeek() === Yn; ) N += K.currentPeek(), K.peek();
      return N;
    }
    function b(K) {
      const N = m(K);
      return K.skipToPeek(), N;
    }
    function v(K) {
      if (K === Vo) return false;
      const N = K.charCodeAt(0);
      return N >= 97 && N <= 122 || N >= 65 && N <= 90 || N === 95;
    }
    function y(K) {
      if (K === Vo) return false;
      const N = K.charCodeAt(0);
      return N >= 48 && N <= 57;
    }
    function w(K, N) {
      const { currentType: j } = N;
      if (j !== 2) return false;
      m(K);
      const X = v(K.currentPeek());
      return K.resetPeek(), X;
    }
    function x(K, N) {
      const { currentType: j } = N;
      if (j !== 2) return false;
      m(K);
      const X = K.currentPeek() === "-" ? K.peek() : K.currentPeek(), ge = y(X);
      return K.resetPeek(), ge;
    }
    function S(K, N) {
      const { currentType: j } = N;
      if (j !== 2) return false;
      m(K);
      const X = K.currentPeek() === u0;
      return K.resetPeek(), X;
    }
    function _(K, N) {
      const { currentType: j } = N;
      if (j !== 7) return false;
      m(K);
      const X = K.currentPeek() === ".";
      return K.resetPeek(), X;
    }
    function C(K, N) {
      const { currentType: j } = N;
      if (j !== 8) return false;
      m(K);
      const X = v(K.currentPeek());
      return K.resetPeek(), X;
    }
    function k(K, N) {
      const { currentType: j } = N;
      if (!(j === 7 || j === 11)) return false;
      m(K);
      const X = K.currentPeek() === ":";
      return K.resetPeek(), X;
    }
    function R(K, N) {
      const { currentType: j } = N;
      if (j !== 9) return false;
      const X = () => {
        const te = K.currentPeek();
        return te === "{" ? v(K.peek()) : te === "@" || te === "|" || te === ":" || te === "." || te === yo || !te ? false : te === Yn ? (K.peek(), X()) : B(K, false);
      }, ge = X();
      return K.resetPeek(), ge;
    }
    function P(K) {
      m(K);
      const N = K.currentPeek() === "|";
      return K.resetPeek(), N;
    }
    function B(K, N = true) {
      const j = (ge = false, te = "") => {
        const I = K.currentPeek();
        return I === "{" || I === "@" || !I ? ge : I === "|" ? !(te === yo || te === Yn) : I === yo ? (K.peek(), j(true, yo)) : I === Yn ? (K.peek(), j(true, Yn)) : true;
      }, X = j();
      return N && K.resetPeek(), X;
    }
    function E(K, N) {
      const j = K.currentChar();
      return j === Vo ? Vo : N(j) ? (K.next(), j) : null;
    }
    function M(K) {
      const N = K.charCodeAt(0);
      return N >= 97 && N <= 122 || N >= 65 && N <= 90 || N >= 48 && N <= 57 || N === 95 || N === 36;
    }
    function z(K) {
      return E(K, M);
    }
    function U(K) {
      const N = K.charCodeAt(0);
      return N >= 97 && N <= 122 || N >= 65 && N <= 90 || N >= 48 && N <= 57 || N === 95 || N === 36 || N === 45;
    }
    function ee(K) {
      return E(K, U);
    }
    function ne(K) {
      const N = K.charCodeAt(0);
      return N >= 48 && N <= 57;
    }
    function ae(K) {
      return E(K, ne);
    }
    function ye(K) {
      const N = K.charCodeAt(0);
      return N >= 48 && N <= 57 || N >= 65 && N <= 70 || N >= 97 && N <= 102;
    }
    function xe(K) {
      return E(K, ye);
    }
    function re(K) {
      let N = "", j = "";
      for (; N = ae(K); ) j += N;
      return j;
    }
    function Y(K) {
      let N = "";
      for (; ; ) {
        const j = K.currentChar();
        if (j === "{" || j === "}" || j === "@" || j === "|" || !j) break;
        if (j === yo || j === Yn) if (B(K)) N += j, K.next();
        else {
          if (P(K)) break;
          N += j, K.next();
        }
        else N += j, K.next();
      }
      return N;
    }
    function H(K) {
      b(K);
      let N = "", j = "";
      for (; N = ee(K); ) j += N;
      const X = K.currentChar();
      if (X && X !== "}" && X !== Vo && X !== yo && X !== Yn && X !== "\u3000") {
        const ge = se(K);
        return d(Kt.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, j + ge), j + ge;
      }
      return K.currentChar() === Vo && d(Kt.UNTERMINATED_CLOSING_BRACE, i(), 0), j;
    }
    function oe(K) {
      b(K);
      let N = "";
      return K.currentChar() === "-" ? (K.next(), N += `-${re(K)}`) : N += re(K), K.currentChar() === Vo && d(Kt.UNTERMINATED_CLOSING_BRACE, i(), 0), N;
    }
    function ce(K) {
      return K !== u0 && K !== Yn;
    }
    function be(K) {
      b(K), f(K, "'");
      let N = "", j = "";
      for (; N = E(K, ce); ) N === "\\" ? j += ie(K) : j += N;
      const X = K.currentChar();
      return X === Yn || X === Vo ? (d(Kt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), X === Yn && (K.next(), f(K, "'")), j) : (f(K, "'"), j);
    }
    function ie(K) {
      const N = K.currentChar();
      switch (N) {
        case "\\":
        case "'":
          return K.next(), `\\${N}`;
        case "u":
          return fe(K, N, 4);
        case "U":
          return fe(K, N, 6);
        default:
          return d(Kt.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, N), "";
      }
    }
    function fe(K, N, j) {
      f(K, N);
      let X = "";
      for (let ge = 0; ge < j; ge++) {
        const te = xe(K);
        if (!te) {
          d(Kt.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${N}${X}${K.currentChar()}`);
          break;
        }
        X += te;
      }
      return `\\${N}${X}`;
    }
    function F(K) {
      return K !== "{" && K !== "}" && K !== yo && K !== Yn;
    }
    function se(K) {
      b(K);
      let N = "", j = "";
      for (; N = E(K, F); ) j += N;
      return j;
    }
    function ze(K) {
      let N = "", j = "";
      for (; N = z(K); ) j += N;
      return j;
    }
    function q(K) {
      const N = (j) => {
        const X = K.currentChar();
        return X === "{" || X === "@" || X === "|" || X === "(" || X === ")" || !X || X === yo ? j : (j += X, K.next(), N(j));
      };
      return N("");
    }
    function J(K) {
      b(K);
      const N = f(K, "|");
      return b(K), N;
    }
    function le(K, N) {
      let j = null;
      switch (K.currentChar()) {
        case "{":
          return N.braceNest >= 1 && d(Kt.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), K.next(), j = h(N, 2, "{"), b(K), N.braceNest++, j;
        case "}":
          return N.braceNest > 0 && N.currentType === 2 && d(Kt.EMPTY_PLACEHOLDER, i(), 0), K.next(), j = h(N, 3, "}"), N.braceNest--, N.braceNest > 0 && b(K), N.inLinked && N.braceNest === 0 && (N.inLinked = false), j;
        case "@":
          return N.braceNest > 0 && d(Kt.UNTERMINATED_CLOSING_BRACE, i(), 0), j = we(K, N) || p(N), N.braceNest = 0, j;
        default: {
          let ge = true, te = true, I = true;
          if (P(K)) return N.braceNest > 0 && d(Kt.UNTERMINATED_CLOSING_BRACE, i(), 0), j = h(N, 1, J(K)), N.braceNest = 0, N.inLinked = false, j;
          if (N.braceNest > 0 && (N.currentType === 4 || N.currentType === 5 || N.currentType === 6)) return d(Kt.UNTERMINATED_CLOSING_BRACE, i(), 0), N.braceNest = 0, ke(K, N);
          if (ge = w(K, N)) return j = h(N, 4, H(K)), b(K), j;
          if (te = x(K, N)) return j = h(N, 5, oe(K)), b(K), j;
          if (I = S(K, N)) return j = h(N, 6, be(K)), b(K), j;
          if (!ge && !te && !I) return j = h(N, 12, se(K)), d(Kt.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, j.value), b(K), j;
          break;
        }
      }
      return j;
    }
    function we(K, N) {
      const { currentType: j } = N;
      let X = null;
      const ge = K.currentChar();
      switch ((j === 7 || j === 8 || j === 11 || j === 9) && (ge === Yn || ge === yo) && d(Kt.INVALID_LINKED_FORMAT, i(), 0), ge) {
        case "@":
          return K.next(), X = h(N, 7, "@"), N.inLinked = true, X;
        case ".":
          return b(K), K.next(), h(N, 8, ".");
        case ":":
          return b(K), K.next(), h(N, 9, ":");
        default:
          return P(K) ? (X = h(N, 1, J(K)), N.braceNest = 0, N.inLinked = false, X) : _(K, N) || k(K, N) ? (b(K), we(K, N)) : C(K, N) ? (b(K), h(N, 11, ze(K))) : R(K, N) ? (b(K), ge === "{" ? le(K, N) || X : h(N, 10, q(K))) : (j === 7 && d(Kt.INVALID_LINKED_FORMAT, i(), 0), N.braceNest = 0, N.inLinked = false, ke(K, N));
      }
    }
    function ke(K, N) {
      let j = {
        type: 13
      };
      if (N.braceNest > 0) return le(K, N) || p(N);
      if (N.inLinked) return we(K, N) || p(N);
      switch (K.currentChar()) {
        case "{":
          return le(K, N) || p(N);
        case "}":
          return d(Kt.UNBALANCED_CLOSING_BRACE, i(), 0), K.next(), h(N, 3, "}");
        case "@":
          return we(K, N) || p(N);
        default: {
          if (P(K)) return j = h(N, 1, J(K)), N.braceNest = 0, N.inLinked = false, j;
          if (B(K)) return h(N, 0, Y(K));
          break;
        }
      }
      return j;
    }
    function _e() {
      const { currentType: K, offset: N, startLoc: j, endLoc: X } = s;
      return s.lastType = K, s.lastOffset = N, s.lastStartLoc = j, s.lastEndLoc = X, s.offset = o(), s.startLoc = i(), r.currentChar() === Vo ? h(s, 13) : ke(r, s);
    }
    return {
      nextToken: _e,
      currentOffset: o,
      currentPosition: i,
      context: c
    };
  }
  const oN = "parser", iN = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
  function aN(e, t, n) {
    switch (e) {
      case "\\\\":
        return "\\";
      case "\\'":
        return "'";
      default: {
        const r = parseInt(t || n, 16);
        return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "\uFFFD";
      }
    }
  }
  function lN(e = {}) {
    const t = e.location !== false, { onError: n } = e;
    function r(v, y, w, x, ...S) {
      const _ = v.currentPosition();
      if (_.offset += x, _.column += x, n) {
        const C = t ? ep(w, _) : null, k = Ad(y, C, {
          domain: oN,
          args: S
        });
        n(k);
      }
    }
    function o(v, y, w) {
      const x = {
        type: v
      };
      return t && (x.start = y, x.end = y, x.loc = {
        start: w,
        end: w
      }), x;
    }
    function i(v, y, w, x) {
      t && (v.end = y, v.loc && (v.loc.end = w));
    }
    function a(v, y) {
      const w = v.context(), x = o(3, w.offset, w.startLoc);
      return x.value = y, i(x, v.currentOffset(), v.currentPosition()), x;
    }
    function l(v, y) {
      const w = v.context(), { lastOffset: x, lastStartLoc: S } = w, _ = o(5, x, S);
      return _.index = parseInt(y, 10), v.nextToken(), i(_, v.currentOffset(), v.currentPosition()), _;
    }
    function s(v, y) {
      const w = v.context(), { lastOffset: x, lastStartLoc: S } = w, _ = o(4, x, S);
      return _.key = y, v.nextToken(), i(_, v.currentOffset(), v.currentPosition()), _;
    }
    function c(v, y) {
      const w = v.context(), { lastOffset: x, lastStartLoc: S } = w, _ = o(9, x, S);
      return _.value = y.replace(iN, aN), v.nextToken(), i(_, v.currentOffset(), v.currentPosition()), _;
    }
    function u(v) {
      const y = v.nextToken(), w = v.context(), { lastOffset: x, lastStartLoc: S } = w, _ = o(8, x, S);
      return y.type !== 11 ? (r(v, Kt.UNEXPECTED_EMPTY_LINKED_MODIFIER, w.lastStartLoc, 0), _.value = "", i(_, x, S), {
        nextConsumeToken: y,
        node: _
      }) : (y.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, xo(y)), _.value = y.value || "", i(_, v.currentOffset(), v.currentPosition()), {
        node: _
      });
    }
    function d(v, y) {
      const w = v.context(), x = o(7, w.offset, w.startLoc);
      return x.value = y, i(x, v.currentOffset(), v.currentPosition()), x;
    }
    function h(v) {
      const y = v.context(), w = o(6, y.offset, y.startLoc);
      let x = v.nextToken();
      if (x.type === 8) {
        const S = u(v);
        w.modifier = S.node, x = S.nextConsumeToken || v.nextToken();
      }
      switch (x.type !== 9 && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(x)), x = v.nextToken(), x.type === 2 && (x = v.nextToken()), x.type) {
        case 10:
          x.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(x)), w.key = d(v, x.value || "");
          break;
        case 4:
          x.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(x)), w.key = s(v, x.value || "");
          break;
        case 5:
          x.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(x)), w.key = l(v, x.value || "");
          break;
        case 6:
          x.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(x)), w.key = c(v, x.value || "");
          break;
        default: {
          r(v, Kt.UNEXPECTED_EMPTY_LINKED_KEY, y.lastStartLoc, 0);
          const S = v.context(), _ = o(7, S.offset, S.startLoc);
          return _.value = "", i(_, S.offset, S.startLoc), w.key = _, i(w, S.offset, S.startLoc), {
            nextConsumeToken: x,
            node: w
          };
        }
      }
      return i(w, v.currentOffset(), v.currentPosition()), {
        node: w
      };
    }
    function p(v) {
      const y = v.context(), w = y.currentType === 1 ? v.currentOffset() : y.offset, x = y.currentType === 1 ? y.endLoc : y.startLoc, S = o(2, w, x);
      S.items = [];
      let _ = null;
      do {
        const R = _ || v.nextToken();
        switch (_ = null, R.type) {
          case 0:
            R.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(R)), S.items.push(a(v, R.value || ""));
            break;
          case 5:
            R.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(R)), S.items.push(l(v, R.value || ""));
            break;
          case 4:
            R.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(R)), S.items.push(s(v, R.value || ""));
            break;
          case 6:
            R.value == null && r(v, Kt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, xo(R)), S.items.push(c(v, R.value || ""));
            break;
          case 7: {
            const P = h(v);
            S.items.push(P.node), _ = P.nextConsumeToken || null;
            break;
          }
        }
      } while (y.currentType !== 13 && y.currentType !== 1);
      const C = y.currentType === 1 ? y.lastOffset : v.currentOffset(), k = y.currentType === 1 ? y.lastEndLoc : v.currentPosition();
      return i(S, C, k), S;
    }
    function f(v, y, w, x) {
      const S = v.context();
      let _ = x.items.length === 0;
      const C = o(1, y, w);
      C.cases = [], C.cases.push(x);
      do {
        const k = p(v);
        _ || (_ = k.items.length === 0), C.cases.push(k);
      } while (S.currentType !== 13);
      return _ && r(v, Kt.MUST_HAVE_MESSAGES_IN_PLURAL, w, 0), i(C, v.currentOffset(), v.currentPosition()), C;
    }
    function m(v) {
      const y = v.context(), { offset: w, startLoc: x } = y, S = p(v);
      return y.currentType === 13 ? S : f(v, w, x, S);
    }
    function b(v) {
      const y = rN(v, Fn({}, e)), w = y.context(), x = o(0, w.offset, w.startLoc);
      return t && x.loc && (x.loc.source = v), x.body = m(y), e.onCacheKey && (x.cacheKey = e.onCacheKey(v)), w.currentType !== 13 && r(y, Kt.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, v[w.offset] || ""), i(x, y.currentOffset(), y.currentPosition()), x;
    }
    return {
      parse: b
    };
  }
  function xo(e) {
    if (e.type === 13) return "EOF";
    const t = (e.value || "").replace(/\r?\n/gu, "\\n");
    return t.length > 10 ? t.slice(0, 9) + "\u2026" : t;
  }
  function sN(e, t = {}) {
    const n = {
      ast: e,
      helpers: /* @__PURE__ */ new Set()
    };
    return {
      context: () => n,
      helper: (i) => (n.helpers.add(i), i)
    };
  }
  function d0(e, t) {
    for (let n = 0; n < e.length; n++) Jm(e[n], t);
  }
  function Jm(e, t) {
    switch (e.type) {
      case 1:
        d0(e.cases, t), t.helper("plural");
        break;
      case 2:
        d0(e.items, t);
        break;
      case 6: {
        Jm(e.key, t), t.helper("linked"), t.helper("type");
        break;
      }
      case 5:
        t.helper("interpolate"), t.helper("list");
        break;
      case 4:
        t.helper("interpolate"), t.helper("named");
        break;
    }
  }
  function cN(e, t = {}) {
    const n = sN(e);
    n.helper("normalize"), e.body && Jm(e.body, n);
    const r = n.context();
    e.helpers = Array.from(r.helpers);
  }
  function uN(e) {
    const t = e.body;
    return t.type === 2 ? f0(t) : t.cases.forEach((n) => f0(n)), e;
  }
  function f0(e) {
    if (e.items.length === 1) {
      const t = e.items[0];
      (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
    } else {
      const t = [];
      for (let n = 0; n < e.items.length; n++) {
        const r = e.items[n];
        if (!(r.type === 3 || r.type === 9) || r.value == null) break;
        t.push(r.value);
      }
      if (t.length === e.items.length) {
        e.static = Xm(t);
        for (let n = 0; n < e.items.length; n++) {
          const r = e.items[n];
          (r.type === 3 || r.type === 9) && delete r.value;
        }
      }
    }
  }
  function Ga(e) {
    switch (e.t = e.type, e.type) {
      case 0: {
        const t = e;
        Ga(t.body), t.b = t.body, delete t.body;
        break;
      }
      case 1: {
        const t = e, n = t.cases;
        for (let r = 0; r < n.length; r++) Ga(n[r]);
        t.c = n, delete t.cases;
        break;
      }
      case 2: {
        const t = e, n = t.items;
        for (let r = 0; r < n.length; r++) Ga(n[r]);
        t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
        break;
      }
      case 3:
      case 9:
      case 8:
      case 7: {
        const t = e;
        t.value && (t.v = t.value, delete t.value);
        break;
      }
      case 6: {
        const t = e;
        Ga(t.key), t.k = t.key, delete t.key, t.modifier && (Ga(t.modifier), t.m = t.modifier, delete t.modifier);
        break;
      }
      case 5: {
        const t = e;
        t.i = t.index, delete t.index;
        break;
      }
      case 4: {
        const t = e;
        t.k = t.key, delete t.key;
        break;
      }
    }
    delete e.type;
  }
  function dN(e, t) {
    const { filename: n, breakLineCode: r, needIndent: o } = t, i = t.location !== false, a = {
      filename: n,
      code: "",
      column: 1,
      line: 1,
      offset: 0,
      map: void 0,
      breakLineCode: r,
      needIndent: o,
      indentLevel: 0
    };
    i && e.loc && (a.source = e.loc.source);
    const l = () => a;
    function s(m, b) {
      a.code += m;
    }
    function c(m, b = true) {
      const v = b ? r : "";
      s(o ? v + "  ".repeat(m) : v);
    }
    function u(m = true) {
      const b = ++a.indentLevel;
      m && c(b);
    }
    function d(m = true) {
      const b = --a.indentLevel;
      m && c(b);
    }
    function h() {
      c(a.indentLevel);
    }
    return {
      context: l,
      push: s,
      indent: u,
      deindent: d,
      newline: h,
      helper: (m) => `_${m}`,
      needIndent: () => a.needIndent
    };
  }
  function fN(e, t) {
    const { helper: n } = e;
    e.push(`${n("linked")}(`), ml(e, t.key), t.modifier ? (e.push(", "), ml(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
  }
  function hN(e, t) {
    const { helper: n, needIndent: r } = e;
    e.push(`${n("normalize")}([`), e.indent(r());
    const o = t.items.length;
    for (let i = 0; i < o && (ml(e, t.items[i]), i !== o - 1); i++) e.push(", ");
    e.deindent(r()), e.push("])");
  }
  function pN(e, t) {
    const { helper: n, needIndent: r } = e;
    if (t.cases.length > 1) {
      e.push(`${n("plural")}([`), e.indent(r());
      const o = t.cases.length;
      for (let i = 0; i < o && (ml(e, t.cases[i]), i !== o - 1); i++) e.push(", ");
      e.deindent(r()), e.push("])");
    }
  }
  function mN(e, t) {
    t.body ? ml(e, t.body) : e.push("null");
  }
  function ml(e, t) {
    const { helper: n } = e;
    switch (t.type) {
      case 0:
        mN(e, t);
        break;
      case 1:
        pN(e, t);
        break;
      case 2:
        hN(e, t);
        break;
      case 6:
        fN(e, t);
        break;
      case 8:
        e.push(JSON.stringify(t.value), t);
        break;
      case 7:
        e.push(JSON.stringify(t.value), t);
        break;
      case 5:
        e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t);
        break;
      case 4:
        e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
        break;
      case 9:
        e.push(JSON.stringify(t.value), t);
        break;
      case 3:
        e.push(JSON.stringify(t.value), t);
        break;
    }
  }
  const gN = (e, t = {}) => {
    const n = et(t.mode) ? t.mode : "normal", r = et(t.filename) ? t.filename : "message.intl";
    t.sourceMap;
    const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
`, i = t.needIndent ? t.needIndent : n !== "arrow", a = e.helpers || [], l = dN(e, {
      filename: r,
      breakLineCode: o,
      needIndent: i
    });
    l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(i), a.length > 0 && (l.push(`const { ${Xm(a.map((u) => `${u}: _${u}`), ", ")} } = ctx`), l.newline()), l.push("return "), ml(l, e), l.deindent(i), l.push("}"), delete e.helpers;
    const { code: s, map: c } = l.context();
    return {
      ast: e,
      code: s,
      map: c ? c.toJSON() : void 0
    };
  };
  function vN(e, t = {}) {
    const n = Fn({}, t), r = !!n.jit, o = !!n.minify, i = n.optimize == null ? true : n.optimize, l = lN(n).parse(e);
    return r ? (i && uN(l), o && Ga(l), {
      ast: l,
      code: ""
    }) : (cN(l, n), gN(l, n));
  }
  function bN() {
    typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Zi().__INTLIFY_PROD_DEVTOOLS__ = false), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Zi().__INTLIFY_DROP_MESSAGE_COMPILER__ = false);
  }
  function $o(e) {
    return Wt(e) && Zm(e) === 0 && (Qr(e, "b") || Qr(e, "body"));
  }
  const xS = [
    "b",
    "body"
  ];
  function yN(e) {
    return Li(e, xS);
  }
  const wS = [
    "c",
    "cases"
  ];
  function xN(e) {
    return Li(e, wS, []);
  }
  const CS = [
    "s",
    "static"
  ];
  function wN(e) {
    return Li(e, CS);
  }
  const SS = [
    "i",
    "items"
  ];
  function CN(e) {
    return Li(e, SS, []);
  }
  const _S = [
    "t",
    "type"
  ];
  function Zm(e) {
    return Li(e, _S);
  }
  const kS = [
    "v",
    "value"
  ];
  function Lc(e, t) {
    const n = Li(e, kS);
    if (n != null) return n;
    throw Os(t);
  }
  const RS = [
    "m",
    "modifier"
  ];
  function SN(e) {
    return Li(e, RS);
  }
  const AS = [
    "k",
    "key"
  ];
  function _N(e) {
    const t = Li(e, AS);
    if (t) return t;
    throw Os(6);
  }
  function Li(e, t, n) {
    for (let r = 0; r < t.length; r++) {
      const o = t[r];
      if (Qr(e, o) && e[o] != null) return e[o];
    }
    return n;
  }
  const ES = [
    ...xS,
    ...wS,
    ...CS,
    ...SS,
    ...AS,
    ...RS,
    ...kS,
    ..._S
  ];
  function Os(e) {
    return new Error(`unhandled node type: ${e}`);
  }
  function zf(e) {
    return (n) => kN(n, e);
  }
  function kN(e, t) {
    const n = yN(t);
    if (n == null) throw Os(0);
    if (Zm(n) === 1) {
      const i = xN(n);
      return e.plural(i.reduce((a, l) => [
        ...a,
        h0(e, l)
      ], []));
    } else return h0(e, n);
  }
  function h0(e, t) {
    const n = wN(t);
    if (n != null) return e.type === "text" ? n : e.normalize([
      n
    ]);
    {
      const r = CN(t).reduce((o, i) => [
        ...o,
        tp(e, i)
      ], []);
      return e.normalize(r);
    }
  }
  function tp(e, t) {
    const n = Zm(t);
    switch (n) {
      case 3:
        return Lc(t, n);
      case 9:
        return Lc(t, n);
      case 4: {
        const r = t;
        if (Qr(r, "k") && r.k) return e.interpolate(e.named(r.k));
        if (Qr(r, "key") && r.key) return e.interpolate(e.named(r.key));
        throw Os(n);
      }
      case 5: {
        const r = t;
        if (Qr(r, "i") && An(r.i)) return e.interpolate(e.list(r.i));
        if (Qr(r, "index") && An(r.index)) return e.interpolate(e.list(r.index));
        throw Os(n);
      }
      case 6: {
        const r = t, o = SN(r), i = _N(r);
        return e.linked(tp(e, i), o ? tp(e, o) : void 0, e.type);
      }
      case 7:
        return Lc(t, n);
      case 8:
        return Lc(t, n);
      default:
        throw new Error(`unhandled node on format message part: ${n}`);
    }
  }
  const RN = (e) => e;
  let Bc = nn();
  function AN(e, t = {}) {
    let n = false;
    const r = t.onError || XB;
    return t.onError = (o) => {
      n = true, r(o);
    }, {
      ...vN(e, t),
      detectError: n
    };
  }
  function EN(e, t) {
    if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && et(e)) {
      Nt(t.warnHtmlMessage) && t.warnHtmlMessage;
      const r = (t.onCacheKey || RN)(e), o = Bc[r];
      if (o) return o;
      const { ast: i, detectError: a } = AN(e, {
        ...t,
        location: false,
        jit: true
      }), l = zf(i);
      return a ? l : Bc[r] = l;
    } else {
      const n = e.cacheKey;
      if (n) {
        const r = Bc[n];
        return r || (Bc[n] = zf(e));
      } else return zf(e);
    }
  }
  let Is = null;
  function TN(e) {
    Is = e;
  }
  function PN(e, t, n) {
    Is && Is.emit("i18n:init", {
      timestamp: Date.now(),
      i18n: e,
      version: t,
      meta: n
    });
  }
  const DN = $N("function:translate");
  function $N(e) {
    return (t) => Is && Is.emit(e, t);
  }
  const Zo = {
    INVALID_ARGUMENT: YB,
    INVALID_DATE_ARGUMENT: 18,
    INVALID_ISO_DATE_ARGUMENT: 19,
    NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
    NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
    NOT_SUPPORT_LOCALE_TYPE: 23
  }, zN = 24;
  function Qo(e) {
    return Ad(e, null, void 0);
  }
  function Qm(e, t) {
    return t.locale != null ? p0(t.locale) : p0(e.locale);
  }
  let Of;
  function p0(e) {
    if (et(e)) return e;
    if (dn(e)) {
      if (e.resolvedOnce && Of != null) return Of;
      if (e.constructor.name === "Function") {
        const t = e();
        if (qB(t)) throw Qo(Zo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
        return Of = t;
      } else throw Qo(Zo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
    } else throw Qo(Zo.NOT_SUPPORT_LOCALE_TYPE);
  }
  function ON(e, t, n) {
    return [
      .../* @__PURE__ */ new Set([
        n,
        ...vn(t) ? t : Wt(t) ? Object.keys(t) : et(t) ? [
          t
        ] : [
          n
        ]
      ])
    ];
  }
  function TS(e, t, n) {
    const r = et(n) ? n : Fs, o = e;
    o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
    let i = o.__localeChainCache.get(r);
    if (!i) {
      i = [];
      let a = [
        n
      ];
      for (; vn(a); ) a = m0(i, a, t);
      const l = vn(t) || !$t(t) ? t : t.default ? t.default : null;
      a = et(l) ? [
        l
      ] : l, vn(a) && m0(i, a, false), o.__localeChainCache.set(r, i);
    }
    return i;
  }
  function m0(e, t, n) {
    let r = true;
    for (let o = 0; o < t.length && Nt(r); o++) {
      const i = t[o];
      et(i) && (r = IN(e, t[o], n));
    }
    return r;
  }
  function IN(e, t, n) {
    let r;
    const o = t.split("-");
    do {
      const i = o.join("-");
      r = FN(e, i, n), o.splice(-1, 1);
    } while (o.length && r === true);
    return r;
  }
  function FN(e, t, n) {
    let r = false;
    if (!e.includes(t) && (r = true, t)) {
      r = t[t.length - 1] !== "!";
      const o = t.replace(/!/g, "");
      e.push(o), (vn(n) || $t(n)) && n[o] && (r = n[o]);
    }
    return r;
  }
  const Bi = [];
  Bi[0] = {
    w: [
      0
    ],
    i: [
      3,
      0
    ],
    "[": [
      4
    ],
    o: [
      7
    ]
  };
  Bi[1] = {
    w: [
      1
    ],
    ".": [
      2
    ],
    "[": [
      4
    ],
    o: [
      7
    ]
  };
  Bi[2] = {
    w: [
      2
    ],
    i: [
      3,
      0
    ],
    0: [
      3,
      0
    ]
  };
  Bi[3] = {
    i: [
      3,
      0
    ],
    0: [
      3,
      0
    ],
    w: [
      1,
      1
    ],
    ".": [
      2,
      1
    ],
    "[": [
      4,
      1
    ],
    o: [
      7,
      1
    ]
  };
  Bi[4] = {
    "'": [
      5,
      0
    ],
    '"': [
      6,
      0
    ],
    "[": [
      4,
      2
    ],
    "]": [
      1,
      3
    ],
    o: 8,
    l: [
      4,
      0
    ]
  };
  Bi[5] = {
    "'": [
      4,
      0
    ],
    o: 8,
    l: [
      5,
      0
    ]
  };
  Bi[6] = {
    '"': [
      4,
      0
    ],
    o: 8,
    l: [
      6,
      0
    ]
  };
  const MN = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
  function LN(e) {
    return MN.test(e);
  }
  function BN(e) {
    const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
    return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
  }
  function NN(e) {
    if (e == null) return "o";
    switch (e.charCodeAt(0)) {
      case 91:
      case 93:
      case 46:
      case 34:
      case 39:
        return e;
      case 95:
      case 36:
      case 45:
        return "i";
      case 9:
      case 10:
      case 13:
      case 160:
      case 65279:
      case 8232:
      case 8233:
        return "w";
    }
    return "i";
  }
  function HN(e) {
    const t = e.trim();
    return e.charAt(0) === "0" && isNaN(parseInt(e)) ? false : LN(t) ? BN(t) : "*" + t;
  }
  function jN(e) {
    const t = [];
    let n = -1, r = 0, o = 0, i, a, l, s, c, u, d;
    const h = [];
    h[0] = () => {
      a === void 0 ? a = l : a += l;
    }, h[1] = () => {
      a !== void 0 && (t.push(a), a = void 0);
    }, h[2] = () => {
      h[0](), o++;
    }, h[3] = () => {
      if (o > 0) o--, r = 4, h[0]();
      else {
        if (o = 0, a === void 0 || (a = HN(a), a === false)) return false;
        h[1]();
      }
    };
    function p() {
      const f = e[n + 1];
      if (r === 5 && f === "'" || r === 6 && f === '"') return n++, l = "\\" + f, h[0](), true;
    }
    for (; r !== null; ) if (n++, i = e[n], !(i === "\\" && p())) {
      if (s = NN(i), d = Bi[r], c = d[s] || d.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (u = h[c[1]], u && (l = i, u() === false)))) return;
      if (r === 7) return t;
    }
  }
  const g0 = /* @__PURE__ */ new Map();
  function WN(e, t) {
    return Wt(e) ? e[t] : null;
  }
  function UN(e, t) {
    if (!Wt(e)) return null;
    let n = g0.get(t);
    if (n || (n = jN(t), n && g0.set(t, n)), !n) return null;
    const r = n.length;
    let o = e, i = 0;
    for (; i < r; ) {
      const a = n[i];
      if (ES.includes(a) && $o(o)) return null;
      const l = o[a];
      if (l === void 0 || dn(o)) return null;
      o = l, i++;
    }
    return o;
  }
  const VN = "11.2.8", Ed = -1, Fs = "en-US", v0 = "", b0 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
  function qN() {
    return {
      upper: (e, t) => t === "text" && et(e) ? e.toUpperCase() : t === "vnode" && Wt(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
      lower: (e, t) => t === "text" && et(e) ? e.toLowerCase() : t === "vnode" && Wt(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
      capitalize: (e, t) => t === "text" && et(e) ? b0(e) : t === "vnode" && Wt(e) && "__v_isVNode" in e ? b0(e.children) : e
    };
  }
  let PS;
  function GN(e) {
    PS = e;
  }
  let DS;
  function KN(e) {
    DS = e;
  }
  let $S;
  function YN(e) {
    $S = e;
  }
  let zS = null;
  const XN = (e) => {
    zS = e;
  }, JN = () => zS;
  let OS = null;
  const y0 = (e) => {
    OS = e;
  }, ZN = () => OS;
  let x0 = 0;
  function QN(e = {}) {
    const t = dn(e.onWarn) ? e.onWarn : BB, n = et(e.version) ? e.version : VN, r = et(e.locale) || dn(e.locale) ? e.locale : Fs, o = dn(r) ? Fs : r, i = vn(e.fallbackLocale) || $t(e.fallbackLocale) || et(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : o, a = $t(e.messages) ? e.messages : If(o), l = $t(e.datetimeFormats) ? e.datetimeFormats : If(o), s = $t(e.numberFormats) ? e.numberFormats : If(o), c = Fn(nn(), e.modifiers, qN()), u = e.pluralRules || nn(), d = dn(e.missing) ? e.missing : null, h = Nt(e.missingWarn) || pl(e.missingWarn) ? e.missingWarn : true, p = Nt(e.fallbackWarn) || pl(e.fallbackWarn) ? e.fallbackWarn : true, f = !!e.fallbackFormat, m = !!e.unresolving, b = dn(e.postTranslation) ? e.postTranslation : null, v = $t(e.processor) ? e.processor : null, y = Nt(e.warnHtmlMessage) ? e.warnHtmlMessage : true, w = !!e.escapeParameter, x = dn(e.messageCompiler) ? e.messageCompiler : PS, S = dn(e.messageResolver) ? e.messageResolver : DS || WN, _ = dn(e.localeFallbacker) ? e.localeFallbacker : $S || ON, C = Wt(e.fallbackContext) ? e.fallbackContext : void 0, k = e, R = Wt(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), P = Wt(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), B = Wt(k.__meta) ? k.__meta : {};
    x0++;
    const E = {
      version: n,
      cid: x0,
      locale: r,
      fallbackLocale: i,
      messages: a,
      modifiers: c,
      pluralRules: u,
      missing: d,
      missingWarn: h,
      fallbackWarn: p,
      fallbackFormat: f,
      unresolving: m,
      postTranslation: b,
      processor: v,
      warnHtmlMessage: y,
      escapeParameter: w,
      messageCompiler: x,
      messageResolver: S,
      localeFallbacker: _,
      fallbackContext: C,
      onWarn: t,
      __meta: B
    };
    return E.datetimeFormats = l, E.numberFormats = s, E.__datetimeFormatters = R, E.__numberFormatters = P, __INTLIFY_PROD_DEVTOOLS__ && PN(E, n, B), E;
  }
  const If = (e) => ({
    [e]: nn()
  });
  function eg(e, t, n, r, o) {
    const { missing: i, onWarn: a } = e;
    if (i !== null) {
      const l = i(e, n, t, o);
      return et(l) ? l : t;
    } else return t;
  }
  function ql(e, t, n) {
    const r = e;
    r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
  }
  function e7(e, t) {
    return e === t ? false : e.split("-")[0] === t.split("-")[0];
  }
  function t7(e, t) {
    const n = t.indexOf(e);
    if (n === -1) return false;
    for (let r = n + 1; r < t.length; r++) if (e7(e, t[r])) return true;
    return false;
  }
  function w0(e, ...t) {
    const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: i, localeFallbacker: a } = e, { __datetimeFormatters: l } = e, [s, c, u, d] = np(...t), h = Nt(u.missingWarn) ? u.missingWarn : e.missingWarn;
    Nt(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
    const p = !!u.part, f = Qm(e, u), m = a(e, o, f);
    if (!et(s) || s === "") return new Intl.DateTimeFormat(f, d).format(c);
    let b = {}, v, y = null;
    const w = "datetime format";
    for (let _ = 0; _ < m.length && (v = m[_], b = n[v] || {}, y = b[s], !$t(y)); _++) eg(e, s, v, h, w);
    if (!$t(y) || !et(v)) return r ? Ed : s;
    let x = `${v}__${s}`;
    Rd(d) || (x = `${x}__${JSON.stringify(d)}`);
    let S = l.get(x);
    return S || (S = new Intl.DateTimeFormat(v, Fn({}, y, d)), l.set(x, S)), p ? S.formatToParts(c) : S.format(c);
  }
  const IS = [
    "localeMatcher",
    "weekday",
    "era",
    "year",
    "month",
    "day",
    "hour",
    "minute",
    "second",
    "timeZoneName",
    "formatMatcher",
    "hour12",
    "timeZone",
    "dateStyle",
    "timeStyle",
    "calendar",
    "dayPeriod",
    "numberingSystem",
    "hourCycle",
    "fractionalSecondDigits"
  ];
  function np(...e) {
    const [t, n, r, o] = e, i = nn();
    let a = nn(), l;
    if (et(t)) {
      const s = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
      if (!s) throw Qo(Zo.INVALID_ISO_DATE_ARGUMENT);
      const c = s[3] ? s[3].trim().startsWith("T") ? `${s[1].trim()}${s[3].trim()}` : `${s[1].trim()}T${s[3].trim()}` : s[1].trim();
      l = new Date(c);
      try {
        l.toISOString();
      } catch {
        throw Qo(Zo.INVALID_ISO_DATE_ARGUMENT);
      }
    } else if (jB(t)) {
      if (isNaN(t.getTime())) throw Qo(Zo.INVALID_DATE_ARGUMENT);
      l = t;
    } else if (An(t)) l = t;
    else throw Qo(Zo.INVALID_ARGUMENT);
    return et(n) ? i.key = n : $t(n) && Object.keys(n).forEach((s) => {
      IS.includes(s) ? a[s] = n[s] : i[s] = n[s];
    }), et(r) ? i.locale = r : $t(r) && (a = r), $t(o) && (a = o), [
      i.key || "",
      l,
      i,
      a
    ];
  }
  function C0(e, t, n) {
    const r = e;
    for (const o in n) {
      const i = `${t}__${o}`;
      r.__datetimeFormatters.has(i) && r.__datetimeFormatters.delete(i);
    }
  }
  function S0(e, ...t) {
    const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: i, localeFallbacker: a } = e, { __numberFormatters: l } = e, [s, c, u, d] = rp(...t), h = Nt(u.missingWarn) ? u.missingWarn : e.missingWarn;
    Nt(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
    const p = !!u.part, f = Qm(e, u), m = a(e, o, f);
    if (!et(s) || s === "") return new Intl.NumberFormat(f, d).format(c);
    let b = {}, v, y = null;
    const w = "number format";
    for (let _ = 0; _ < m.length && (v = m[_], b = n[v] || {}, y = b[s], !$t(y)); _++) eg(e, s, v, h, w);
    if (!$t(y) || !et(v)) return r ? Ed : s;
    let x = `${v}__${s}`;
    Rd(d) || (x = `${x}__${JSON.stringify(d)}`);
    let S = l.get(x);
    return S || (S = new Intl.NumberFormat(v, Fn({}, y, d)), l.set(x, S)), p ? S.formatToParts(c) : S.format(c);
  }
  const FS = [
    "localeMatcher",
    "style",
    "currency",
    "currencyDisplay",
    "currencySign",
    "useGrouping",
    "minimumIntegerDigits",
    "minimumFractionDigits",
    "maximumFractionDigits",
    "minimumSignificantDigits",
    "maximumSignificantDigits",
    "compactDisplay",
    "notation",
    "signDisplay",
    "unit",
    "unitDisplay",
    "roundingMode",
    "roundingPriority",
    "roundingIncrement",
    "trailingZeroDisplay"
  ];
  function rp(...e) {
    const [t, n, r, o] = e, i = nn();
    let a = nn();
    if (!An(t)) throw Qo(Zo.INVALID_ARGUMENT);
    const l = t;
    return et(n) ? i.key = n : $t(n) && Object.keys(n).forEach((s) => {
      FS.includes(s) ? a[s] = n[s] : i[s] = n[s];
    }), et(r) ? i.locale = r : $t(r) && (a = r), $t(o) && (a = o), [
      i.key || "",
      l,
      i,
      a
    ];
  }
  function _0(e, t, n) {
    const r = e;
    for (const o in n) {
      const i = `${t}__${o}`;
      r.__numberFormatters.has(i) && r.__numberFormatters.delete(i);
    }
  }
  const n7 = (e) => e, r7 = (e) => "", o7 = "text", i7 = (e) => e.length === 0 ? "" : Xm(e), a7 = GB;
  function k0(e, t) {
    return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
  }
  function l7(e) {
    const t = An(e.pluralIndex) ? e.pluralIndex : -1;
    return e.named && (An(e.named.count) || An(e.named.n)) ? An(e.named.count) ? e.named.count : An(e.named.n) ? e.named.n : t : t;
  }
  function s7(e, t) {
    t.count || (t.count = e), t.n || (t.n = e);
  }
  function c7(e = {}) {
    const t = e.locale, n = l7(e), r = Wt(e.pluralRules) && et(t) && dn(e.pluralRules[t]) ? e.pluralRules[t] : k0, o = Wt(e.pluralRules) && et(t) && dn(e.pluralRules[t]) ? k0 : void 0, i = (v) => v[r(n, v.length, o)], a = e.list || [], l = (v) => a[v], s = e.named || nn();
    An(e.pluralIndex) && s7(n, s);
    const c = (v) => s[v];
    function u(v, y) {
      const w = dn(e.messages) ? e.messages(v, !!y) : Wt(e.messages) ? e.messages[v] : false;
      return w || (e.parent ? e.parent.message(v) : r7);
    }
    const d = (v) => e.modifiers ? e.modifiers[v] : n7, h = $t(e.processor) && dn(e.processor.normalize) ? e.processor.normalize : i7, p = $t(e.processor) && dn(e.processor.interpolate) ? e.processor.interpolate : a7, f = $t(e.processor) && et(e.processor.type) ? e.processor.type : o7, b = {
      list: l,
      named: c,
      plural: i,
      linked: (v, ...y) => {
        const [w, x] = y;
        let S = "text", _ = "";
        y.length === 1 ? Wt(w) ? (_ = w.modifier || _, S = w.type || S) : et(w) && (_ = w || _) : y.length === 2 && (et(w) && (_ = w || _), et(x) && (S = x || S));
        const C = u(v, true)(b), k = S === "vnode" && vn(C) && _ ? C[0] : C;
        return _ ? d(_)(k, S) : k;
      },
      message: u,
      type: f,
      interpolate: p,
      normalize: h,
      values: Fn(nn(), a, s)
    };
    return b;
  }
  const R0 = () => "", Ur = (e) => dn(e);
  function A0(e, ...t) {
    const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: i, fallbackLocale: a, messages: l } = e, [s, c] = op(...t), u = Nt(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Nt(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = Nt(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, f = et(c.default) || Nt(c.default) ? Nt(c.default) ? i ? s : () => s : c.default : n ? i ? s : () => s : null, m = n || f != null && (et(f) || dn(f)), b = Qm(e, c);
    h && u7(c);
    let [v, y, w] = p ? [
      s,
      b,
      l[b] || nn()
    ] : MS(e, s, b, a, d, u), x = v, S = s;
    if (!p && !(et(x) || $o(x) || Ur(x)) && m && (x = f, S = x), !p && (!(et(x) || $o(x) || Ur(x)) || !et(y))) return o ? Ed : s;
    let _ = false;
    const C = () => {
      _ = true;
    }, k = Ur(x) ? x : LS(e, s, y, x, S, C);
    if (_) return x;
    const R = h7(e, y, w, c), P = c7(R), B = d7(e, k, P);
    let E = r ? r(B, s) : B;
    if (h && et(E) && (E = UB(E)), __INTLIFY_PROD_DEVTOOLS__) {
      const M = {
        timestamp: Date.now(),
        key: et(s) ? s : Ur(x) ? x.key : "",
        locale: y || (Ur(x) ? x.locale : ""),
        format: et(x) ? x : Ur(x) ? x.source : "",
        message: E
      };
      M.meta = Fn({}, e.__meta, JN() || {}), DN(M);
    }
    return E;
  }
  function u7(e) {
    vn(e.list) ? e.list = e.list.map((t) => et(t) ? s0(t) : t) : Wt(e.named) && Object.keys(e.named).forEach((t) => {
      et(e.named[t]) && (e.named[t] = s0(e.named[t]));
    });
  }
  function MS(e, t, n, r, o, i) {
    const { messages: a, onWarn: l, messageResolver: s, localeFallbacker: c } = e, u = c(e, r, n);
    let d = nn(), h, p = null;
    const f = "translate";
    for (let m = 0; m < u.length && (h = u[m], d = a[h] || nn(), (p = s(d, t)) === null && (p = d[t]), !(et(p) || $o(p) || Ur(p))); m++) if (!t7(h, u)) {
      const b = eg(e, t, h, i, f);
      b !== t && (p = b);
    }
    return [
      p,
      h,
      d
    ];
  }
  function LS(e, t, n, r, o, i) {
    const { messageCompiler: a, warnHtmlMessage: l } = e;
    if (Ur(r)) {
      const c = r;
      return c.locale = c.locale || n, c.key = c.key || t, c;
    }
    if (a == null) {
      const c = (() => r);
      return c.locale = n, c.key = t, c;
    }
    const s = a(r, f7(e, n, o, r, l, i));
    return s.locale = n, s.key = t, s.source = r, s;
  }
  function d7(e, t, n) {
    return t(n);
  }
  function op(...e) {
    const [t, n, r] = e, o = nn();
    if (!et(t) && !An(t) && !Ur(t) && !$o(t)) throw Qo(Zo.INVALID_ARGUMENT);
    const i = An(t) ? String(t) : (Ur(t), t);
    return An(n) ? o.plural = n : et(n) ? o.default = n : $t(n) && !Rd(n) ? o.named = n : vn(n) && (o.list = n), An(r) ? o.plural = r : et(r) ? o.default = r : $t(r) && Fn(o, r), [
      i,
      o
    ];
  }
  function f7(e, t, n, r, o, i) {
    return {
      locale: t,
      key: n,
      warnHtmlMessage: o,
      onError: (a) => {
        throw i && i(a), a;
      },
      onCacheKey: (a) => NB(t, n, a)
    };
  }
  function h7(e, t, n, r) {
    const { modifiers: o, pluralRules: i, messageResolver: a, fallbackLocale: l, fallbackWarn: s, missingWarn: c, fallbackContext: u } = e, h = {
      locale: t,
      modifiers: o,
      pluralRules: i,
      messages: (p, f) => {
        let m = a(n, p);
        if (m == null && (u || f)) {
          const [, , b] = MS(u || e, p, t, l, s, c);
          m = a(b, p);
        }
        if (et(m) || $o(m)) {
          let b = false;
          const y = LS(e, p, t, m, p, () => {
            b = true;
          });
          return b ? R0 : y;
        } else return Ur(m) ? m : R0;
      }
    };
    return e.processor && (h.processor = e.processor), r.list && (h.list = r.list), r.named && (h.named = r.named), An(r.plural) && (h.pluralIndex = r.plural), h;
  }
  bN();
  const p7 = "11.2.8";
  function m7() {
    typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Zi().__VUE_I18N_FULL_INSTALL__ = true), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Zi().__VUE_I18N_LEGACY_API__ = true), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Zi().__INTLIFY_DROP_MESSAGE_COMPILER__ = false), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Zi().__INTLIFY_PROD_DEVTOOLS__ = false);
  }
  const br = {
    UNEXPECTED_RETURN_TYPE: zN,
    INVALID_ARGUMENT: 25,
    MUST_BE_CALL_SETUP_TOP: 26,
    NOT_INSTALLED: 27,
    REQUIRED_VALUE: 28,
    INVALID_VALUE: 29,
    NOT_INSTALLED_WITH_PROVIDE: 31,
    UNEXPECTED_ERROR: 32
  };
  function Ir(e, ...t) {
    return Ad(e, null, void 0);
  }
  const ip = Mi("__translateVNode"), ap = Mi("__datetimeParts"), lp = Mi("__numberParts"), BS = Mi("__setPluralRules"), NS = Mi("__injectWithOption"), sp = Mi("__dispose");
  function Ms(e) {
    if (!Wt(e) || $o(e)) return e;
    for (const t in e) if (Qr(e, t)) if (!t.includes(".")) Wt(e[t]) && Ms(e[t]);
    else {
      const n = t.split("."), r = n.length - 1;
      let o = e, i = false;
      for (let a = 0; a < r; a++) {
        if (n[a] === "__proto__") throw new Error(`unsafe key: ${n[a]}`);
        if (n[a] in o || (o[n[a]] = nn()), !Wt(o[n[a]])) {
          i = true;
          break;
        }
        o = o[n[a]];
      }
      if (i || ($o(o) ? ES.includes(n[r]) || delete e[t] : (o[n[r]] = e[t], delete e[t])), !$o(o)) {
        const a = o[n[r]];
        Wt(a) && Ms(a);
      }
    }
    return e;
  }
  function tg(e, t) {
    const { messages: n, __i18n: r, messageResolver: o, flatJson: i } = t, a = $t(n) ? n : vn(r) ? nn() : {
      [e]: nn()
    };
    if (vn(r) && r.forEach((l) => {
      if ("locale" in l && "resource" in l) {
        const { locale: s, resource: c } = l;
        s ? (a[s] = a[s] || nn(), tu(c, a[s])) : tu(c, a);
      } else et(l) && tu(JSON.parse(l), a);
    }), o == null && i) for (const l in a) Qr(a, l) && Ms(a[l]);
    return a;
  }
  function HS(e) {
    return e.type;
  }
  function jS(e, t, n) {
    let r = Wt(t.messages) ? t.messages : nn();
    "__i18nGlobal" in n && (r = tg(e.locale.value, {
      messages: r,
      __i18n: n.__i18nGlobal
    }));
    const o = Object.keys(r);
    o.length && o.forEach((i) => {
      e.mergeLocaleMessage(i, r[i]);
    });
    {
      if (Wt(t.datetimeFormats)) {
        const i = Object.keys(t.datetimeFormats);
        i.length && i.forEach((a) => {
          e.mergeDateTimeFormat(a, t.datetimeFormats[a]);
        });
      }
      if (Wt(t.numberFormats)) {
        const i = Object.keys(t.numberFormats);
        i.length && i.forEach((a) => {
          e.mergeNumberFormat(a, t.numberFormats[a]);
        });
      }
    }
  }
  function E0(e) {
    return T(Cl, null, e, 0);
  }
  function Ls() {
    return Vn();
  }
  const T0 = "__INTLIFY_META__", P0 = () => [], g7 = () => false;
  let D0 = 0;
  function $0(e) {
    return ((t, n, r, o) => e(n, r, Ls() || void 0, o));
  }
  const v7 = () => {
    const e = Ls();
    let t = null;
    return e && (t = HS(e)[T0]) ? {
      [T0]: t
    } : null;
  };
  function ng(e = {}) {
    const { __root: t, __injectWithOption: n } = e, r = t === void 0, o = e.flatJson, i = Du ? L : Po;
    let a = Nt(e.inheritLocale) ? e.inheritLocale : true;
    const l = i(t && a ? t.locale.value : et(e.locale) ? e.locale : Fs), s = i(t && a ? t.fallbackLocale.value : et(e.fallbackLocale) || vn(e.fallbackLocale) || $t(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : l.value), c = i(tg(l.value, e)), u = i($t(e.datetimeFormats) ? e.datetimeFormats : {
      [l.value]: {}
    }), d = i($t(e.numberFormats) ? e.numberFormats : {
      [l.value]: {}
    });
    let h = t ? t.missingWarn : Nt(e.missingWarn) || pl(e.missingWarn) ? e.missingWarn : true, p = t ? t.fallbackWarn : Nt(e.fallbackWarn) || pl(e.fallbackWarn) ? e.fallbackWarn : true, f = t ? t.fallbackRoot : Nt(e.fallbackRoot) ? e.fallbackRoot : true, m = !!e.fallbackFormat, b = dn(e.missing) ? e.missing : null, v = dn(e.missing) ? $0(e.missing) : null, y = dn(e.postTranslation) ? e.postTranslation : null, w = t ? t.warnHtmlMessage : Nt(e.warnHtmlMessage) ? e.warnHtmlMessage : true, x = !!e.escapeParameter;
    const S = t ? t.modifiers : $t(e.modifiers) ? e.modifiers : {};
    let _ = e.pluralRules || t && t.pluralRules, C;
    C = (() => {
      r && y0(null);
      const I = {
        version: p7,
        locale: l.value,
        fallbackLocale: s.value,
        messages: c.value,
        modifiers: S,
        pluralRules: _,
        missing: v === null ? void 0 : v,
        missingWarn: h,
        fallbackWarn: p,
        fallbackFormat: m,
        unresolving: true,
        postTranslation: y === null ? void 0 : y,
        warnHtmlMessage: w,
        escapeParameter: x,
        messageResolver: e.messageResolver,
        messageCompiler: e.messageCompiler,
        __meta: {
          framework: "vue"
        }
      };
      I.datetimeFormats = u.value, I.numberFormats = d.value, I.__datetimeFormatters = $t(C) ? C.__datetimeFormatters : void 0, I.__numberFormatters = $t(C) ? C.__numberFormatters : void 0;
      const Z = QN(I);
      return r && y0(Z), Z;
    })(), ql(C, l.value, s.value);
    function R() {
      return [
        l.value,
        s.value,
        c.value,
        u.value,
        d.value
      ];
    }
    const P = D({
      get: () => l.value,
      set: (I) => {
        C.locale = I, l.value = I;
      }
    }), B = D({
      get: () => s.value,
      set: (I) => {
        C.fallbackLocale = I, s.value = I, ql(C, l.value, I);
      }
    }), E = D(() => c.value), M = D(() => u.value), z = D(() => d.value);
    function U() {
      return dn(y) ? y : null;
    }
    function ee(I) {
      y = I, C.postTranslation = I;
    }
    function ne() {
      return b;
    }
    function ae(I) {
      I !== null && (v = $0(I)), b = I, C.missing = v;
    }
    const ye = (I, Z, Ce, De, qe, ut) => {
      R();
      let Ze;
      try {
        __INTLIFY_PROD_DEVTOOLS__, r || (C.fallbackContext = t ? ZN() : void 0), Ze = I(C);
      } finally {
        __INTLIFY_PROD_DEVTOOLS__, r || (C.fallbackContext = void 0);
      }
      if (Ce !== "translate exists" && An(Ze) && Ze === Ed || Ce === "translate exists" && !Ze) {
        const [rt, Ne] = Z();
        return t && f ? De(t) : qe(rt);
      } else {
        if (ut(Ze)) return Ze;
        throw Ir(br.UNEXPECTED_RETURN_TYPE);
      }
    };
    function xe(...I) {
      return ye((Z) => Reflect.apply(A0, null, [
        Z,
        ...I
      ]), () => op(...I), "translate", (Z) => Reflect.apply(Z.t, Z, [
        ...I
      ]), (Z) => Z, (Z) => et(Z));
    }
    function re(...I) {
      const [Z, Ce, De] = I;
      if (De && !Wt(De)) throw Ir(br.INVALID_ARGUMENT);
      return xe(Z, Ce, Fn({
        resolvedMessage: true
      }, De || {}));
    }
    function Y(...I) {
      return ye((Z) => Reflect.apply(w0, null, [
        Z,
        ...I
      ]), () => np(...I), "datetime format", (Z) => Reflect.apply(Z.d, Z, [
        ...I
      ]), () => v0, (Z) => et(Z) || vn(Z));
    }
    function H(...I) {
      return ye((Z) => Reflect.apply(S0, null, [
        Z,
        ...I
      ]), () => rp(...I), "number format", (Z) => Reflect.apply(Z.n, Z, [
        ...I
      ]), () => v0, (Z) => et(Z) || vn(Z));
    }
    function oe(I) {
      return I.map((Z) => et(Z) || An(Z) || Nt(Z) ? E0(String(Z)) : Z);
    }
    const be = {
      normalize: oe,
      interpolate: (I) => I,
      type: "vnode"
    };
    function ie(...I) {
      return ye((Z) => {
        let Ce;
        const De = Z;
        try {
          De.processor = be, Ce = Reflect.apply(A0, null, [
            De,
            ...I
          ]);
        } finally {
          De.processor = null;
        }
        return Ce;
      }, () => op(...I), "translate", (Z) => Z[ip](...I), (Z) => [
        E0(Z)
      ], (Z) => vn(Z));
    }
    function fe(...I) {
      return ye((Z) => Reflect.apply(S0, null, [
        Z,
        ...I
      ]), () => rp(...I), "number format", (Z) => Z[lp](...I), P0, (Z) => et(Z) || vn(Z));
    }
    function F(...I) {
      return ye((Z) => Reflect.apply(w0, null, [
        Z,
        ...I
      ]), () => np(...I), "datetime format", (Z) => Z[ap](...I), P0, (Z) => et(Z) || vn(Z));
    }
    function se(I) {
      _ = I, C.pluralRules = _;
    }
    function ze(I, Z) {
      return ye(() => {
        if (!I) return false;
        const Ce = et(Z) ? Z : l.value, De = le(Ce), qe = C.messageResolver(De, I);
        return $o(qe) || Ur(qe) || et(qe);
      }, () => [
        I
      ], "translate exists", (Ce) => Reflect.apply(Ce.te, Ce, [
        I,
        Z
      ]), g7, (Ce) => Nt(Ce));
    }
    function q(I) {
      let Z = null;
      const Ce = TS(C, s.value, l.value);
      for (let De = 0; De < Ce.length; De++) {
        const qe = c.value[Ce[De]] || {}, ut = C.messageResolver(qe, I);
        if (ut != null) {
          Z = ut;
          break;
        }
      }
      return Z;
    }
    function J(I) {
      const Z = q(I);
      return Z ?? (t ? t.tm(I) || {} : {});
    }
    function le(I) {
      return c.value[I] || {};
    }
    function we(I, Z) {
      if (o) {
        const Ce = {
          [I]: Z
        };
        for (const De in Ce) Qr(Ce, De) && Ms(Ce[De]);
        Z = Ce[I];
      }
      c.value[I] = Z, C.messages = c.value;
    }
    function ke(I, Z) {
      c.value[I] = c.value[I] || {};
      const Ce = {
        [I]: Z
      };
      if (o) for (const De in Ce) Qr(Ce, De) && Ms(Ce[De]);
      Z = Ce[I], tu(Z, c.value[I]), C.messages = c.value;
    }
    function _e(I) {
      return u.value[I] || {};
    }
    function K(I, Z) {
      u.value[I] = Z, C.datetimeFormats = u.value, C0(C, I, Z);
    }
    function N(I, Z) {
      u.value[I] = Fn(u.value[I] || {}, Z), C.datetimeFormats = u.value, C0(C, I, Z);
    }
    function j(I) {
      return d.value[I] || {};
    }
    function X(I, Z) {
      d.value[I] = Z, C.numberFormats = d.value, _0(C, I, Z);
    }
    function ge(I, Z) {
      d.value[I] = Fn(d.value[I] || {}, Z), C.numberFormats = d.value, _0(C, I, Z);
    }
    D0++, t && Du && (lt(t.locale, (I) => {
      a && (l.value = I, C.locale = I, ql(C, l.value, s.value));
    }), lt(t.fallbackLocale, (I) => {
      a && (s.value = I, C.fallbackLocale = I, ql(C, l.value, s.value));
    }));
    const te = {
      id: D0,
      locale: P,
      fallbackLocale: B,
      get inheritLocale() {
        return a;
      },
      set inheritLocale(I) {
        a = I, I && t && (l.value = t.locale.value, s.value = t.fallbackLocale.value, ql(C, l.value, s.value));
      },
      get availableLocales() {
        return Object.keys(c.value).sort();
      },
      messages: E,
      get modifiers() {
        return S;
      },
      get pluralRules() {
        return _ || {};
      },
      get isGlobal() {
        return r;
      },
      get missingWarn() {
        return h;
      },
      set missingWarn(I) {
        h = I, C.missingWarn = h;
      },
      get fallbackWarn() {
        return p;
      },
      set fallbackWarn(I) {
        p = I, C.fallbackWarn = p;
      },
      get fallbackRoot() {
        return f;
      },
      set fallbackRoot(I) {
        f = I;
      },
      get fallbackFormat() {
        return m;
      },
      set fallbackFormat(I) {
        m = I, C.fallbackFormat = m;
      },
      get warnHtmlMessage() {
        return w;
      },
      set warnHtmlMessage(I) {
        w = I, C.warnHtmlMessage = I;
      },
      get escapeParameter() {
        return x;
      },
      set escapeParameter(I) {
        x = I, C.escapeParameter = I;
      },
      t: xe,
      getLocaleMessage: le,
      setLocaleMessage: we,
      mergeLocaleMessage: ke,
      getPostTranslationHandler: U,
      setPostTranslationHandler: ee,
      getMissingHandler: ne,
      setMissingHandler: ae,
      [BS]: se
    };
    return te.datetimeFormats = M, te.numberFormats = z, te.rt = re, te.te = ze, te.tm = J, te.d = Y, te.n = H, te.getDateTimeFormat = _e, te.setDateTimeFormat = K, te.mergeDateTimeFormat = N, te.getNumberFormat = j, te.setNumberFormat = X, te.mergeNumberFormat = ge, te[NS] = n, te[ip] = ie, te[ap] = F, te[lp] = fe, te;
  }
  function b7(e) {
    const t = et(e.locale) ? e.locale : Fs, n = et(e.fallbackLocale) || vn(e.fallbackLocale) || $t(e.fallbackLocale) || e.fallbackLocale === false ? e.fallbackLocale : t, r = dn(e.missing) ? e.missing : void 0, o = Nt(e.silentTranslationWarn) || pl(e.silentTranslationWarn) ? !e.silentTranslationWarn : true, i = Nt(e.silentFallbackWarn) || pl(e.silentFallbackWarn) ? !e.silentFallbackWarn : true, a = Nt(e.fallbackRoot) ? e.fallbackRoot : true, l = !!e.formatFallbackMessages, s = $t(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, u = dn(e.postTranslation) ? e.postTranslation : void 0, d = et(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : true, h = !!e.escapeParameterHtml, p = Nt(e.sync) ? e.sync : true;
    let f = e.messages;
    if ($t(e.sharedMessages)) {
      const S = e.sharedMessages;
      f = Object.keys(S).reduce((C, k) => {
        const R = C[k] || (C[k] = {});
        return Fn(R, S[k]), C;
      }, f || {});
    }
    const { __i18n: m, __root: b, __injectWithOption: v } = e, y = e.datetimeFormats, w = e.numberFormats, x = e.flatJson;
    return {
      locale: t,
      fallbackLocale: n,
      messages: f,
      flatJson: x,
      datetimeFormats: y,
      numberFormats: w,
      missing: r,
      missingWarn: o,
      fallbackWarn: i,
      fallbackRoot: a,
      fallbackFormat: l,
      modifiers: s,
      pluralRules: c,
      postTranslation: u,
      warnHtmlMessage: d,
      escapeParameter: h,
      messageResolver: e.messageResolver,
      inheritLocale: p,
      __i18n: m,
      __root: b,
      __injectWithOption: v
    };
  }
  function cp(e = {}) {
    const t = ng(b7(e)), { __extender: n } = e, r = {
      id: t.id,
      get locale() {
        return t.locale.value;
      },
      set locale(o) {
        t.locale.value = o;
      },
      get fallbackLocale() {
        return t.fallbackLocale.value;
      },
      set fallbackLocale(o) {
        t.fallbackLocale.value = o;
      },
      get messages() {
        return t.messages.value;
      },
      get datetimeFormats() {
        return t.datetimeFormats.value;
      },
      get numberFormats() {
        return t.numberFormats.value;
      },
      get availableLocales() {
        return t.availableLocales;
      },
      get missing() {
        return t.getMissingHandler();
      },
      set missing(o) {
        t.setMissingHandler(o);
      },
      get silentTranslationWarn() {
        return Nt(t.missingWarn) ? !t.missingWarn : t.missingWarn;
      },
      set silentTranslationWarn(o) {
        t.missingWarn = Nt(o) ? !o : o;
      },
      get silentFallbackWarn() {
        return Nt(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
      },
      set silentFallbackWarn(o) {
        t.fallbackWarn = Nt(o) ? !o : o;
      },
      get modifiers() {
        return t.modifiers;
      },
      get formatFallbackMessages() {
        return t.fallbackFormat;
      },
      set formatFallbackMessages(o) {
        t.fallbackFormat = o;
      },
      get postTranslation() {
        return t.getPostTranslationHandler();
      },
      set postTranslation(o) {
        t.setPostTranslationHandler(o);
      },
      get sync() {
        return t.inheritLocale;
      },
      set sync(o) {
        t.inheritLocale = o;
      },
      get warnHtmlInMessage() {
        return t.warnHtmlMessage ? "warn" : "off";
      },
      set warnHtmlInMessage(o) {
        t.warnHtmlMessage = o !== "off";
      },
      get escapeParameterHtml() {
        return t.escapeParameter;
      },
      set escapeParameterHtml(o) {
        t.escapeParameter = o;
      },
      get pluralizationRules() {
        return t.pluralRules || {};
      },
      __composer: t,
      t(...o) {
        return Reflect.apply(t.t, t, [
          ...o
        ]);
      },
      rt(...o) {
        return Reflect.apply(t.rt, t, [
          ...o
        ]);
      },
      te(o, i) {
        return t.te(o, i);
      },
      tm(o) {
        return t.tm(o);
      },
      getLocaleMessage(o) {
        return t.getLocaleMessage(o);
      },
      setLocaleMessage(o, i) {
        t.setLocaleMessage(o, i);
      },
      mergeLocaleMessage(o, i) {
        t.mergeLocaleMessage(o, i);
      },
      d(...o) {
        return Reflect.apply(t.d, t, [
          ...o
        ]);
      },
      getDateTimeFormat(o) {
        return t.getDateTimeFormat(o);
      },
      setDateTimeFormat(o, i) {
        t.setDateTimeFormat(o, i);
      },
      mergeDateTimeFormat(o, i) {
        t.mergeDateTimeFormat(o, i);
      },
      n(...o) {
        return Reflect.apply(t.n, t, [
          ...o
        ]);
      },
      getNumberFormat(o) {
        return t.getNumberFormat(o);
      },
      setNumberFormat(o, i) {
        t.setNumberFormat(o, i);
      },
      mergeNumberFormat(o, i) {
        t.mergeNumberFormat(o, i);
      }
    };
    return r.__extender = n, r;
  }
  function y7(e, t, n) {
    return {
      beforeCreate() {
        const r = Ls();
        if (!r) throw Ir(br.UNEXPECTED_ERROR);
        const o = this.$options;
        if (o.i18n) {
          const i = o.i18n;
          if (o.__i18n && (i.__i18n = o.__i18n), i.__root = t, this === this.$root) this.$i18n = z0(e, i);
          else {
            i.__injectWithOption = true, i.__extender = n.__vueI18nExtend, this.$i18n = cp(i);
            const a = this.$i18n;
            a.__extender && (a.__disposer = a.__extender(this.$i18n));
          }
        } else if (o.__i18n) if (this === this.$root) this.$i18n = z0(e, o);
        else {
          this.$i18n = cp({
            __i18n: o.__i18n,
            __injectWithOption: true,
            __extender: n.__vueI18nExtend,
            __root: t
          });
          const i = this.$i18n;
          i.__extender && (i.__disposer = i.__extender(this.$i18n));
        }
        else this.$i18n = e;
        o.__i18nGlobal && jS(t, o, o), this.$t = (...i) => this.$i18n.t(...i), this.$rt = (...i) => this.$i18n.rt(...i), this.$te = (i, a) => this.$i18n.te(i, a), this.$d = (...i) => this.$i18n.d(...i), this.$n = (...i) => this.$i18n.n(...i), this.$tm = (i) => this.$i18n.tm(i), n.__setInstance(r, this.$i18n);
      },
      mounted() {
      },
      unmounted() {
        const r = Ls();
        if (!r) throw Ir(br.UNEXPECTED_ERROR);
        const o = this.$i18n;
        delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, o.__disposer && (o.__disposer(), delete o.__disposer, delete o.__extender), n.__deleteInstance(r), delete this.$i18n;
      }
    };
  }
  function z0(e, t) {
    e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[BS](t.pluralizationRules || e.pluralizationRules);
    const n = tg(e.locale, {
      messages: t.messages,
      __i18n: t.__i18n
    });
    return Object.keys(n).forEach((r) => e.mergeLocaleMessage(r, n[r])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((r) => e.mergeDateTimeFormat(r, t.datetimeFormats[r])), t.numberFormats && Object.keys(t.numberFormats).forEach((r) => e.mergeNumberFormat(r, t.numberFormats[r])), e;
  }
  const rg = {
    tag: {
      type: [
        String,
        Object
      ]
    },
    locale: {
      type: String
    },
    scope: {
      type: String,
      validator: (e) => e === "parent" || e === "global",
      default: "parent"
    },
    i18n: {
      type: Object
    }
  };
  function x7({ slots: e }, t) {
    return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => [
      ...r,
      ...o.type === wt ? o.children : [
        o
      ]
    ], []) : t.reduce((n, r) => {
      const o = e[r];
      return o && (n[r] = o()), n;
    }, nn());
  }
  function WS() {
    return wt;
  }
  const w7 = pe({
    name: "i18n-t",
    props: Fn({
      keypath: {
        type: String,
        required: true
      },
      plural: {
        type: [
          Number,
          String
        ],
        validator: (e) => An(e) || !isNaN(e)
      }
    }, rg),
    setup(e, t) {
      const { slots: n, attrs: r } = t, o = e.i18n || Ht({
        useScope: e.scope,
        __useComponent: true
      });
      return () => {
        const i = Object.keys(n).filter((d) => d[0] !== "_"), a = nn();
        e.locale && (a.locale = e.locale), e.plural !== void 0 && (a.plural = et(e.plural) ? +e.plural : e.plural);
        const l = x7(t, i), s = o[ip](e.keypath, l, a), c = Fn(nn(), r), u = et(e.tag) || Wt(e.tag) ? e.tag : WS();
        return g(u, c, s);
      };
    }
  }), O0 = w7;
  function C7(e) {
    return vn(e) && !et(e[0]);
  }
  function US(e, t, n, r) {
    const { slots: o, attrs: i } = t;
    return () => {
      const a = {
        part: true
      };
      let l = nn();
      e.locale && (a.locale = e.locale), et(e.format) ? a.key = e.format : Wt(e.format) && (et(e.format.key) && (a.key = e.format.key), l = Object.keys(e.format).reduce((h, p) => n.includes(p) ? Fn(nn(), h, {
        [p]: e.format[p]
      }) : h, nn()));
      const s = r(e.value, a, l);
      let c = [
        a.key
      ];
      vn(s) ? c = s.map((h, p) => {
        const f = o[h.type], m = f ? f({
          [h.type]: h.value,
          index: p,
          parts: s
        }) : [
          h.value
        ];
        return C7(m) && (m[0].key = `${h.type}-${p}`), m;
      }) : et(s) && (c = [
        s
      ]);
      const u = Fn(nn(), i), d = et(e.tag) || Wt(e.tag) ? e.tag : WS();
      return g(d, u, c);
    };
  }
  const S7 = pe({
    name: "i18n-n",
    props: Fn({
      value: {
        type: Number,
        required: true
      },
      format: {
        type: [
          String,
          Object
        ]
      }
    }, rg),
    setup(e, t) {
      const n = e.i18n || Ht({
        useScope: e.scope,
        __useComponent: true
      });
      return US(e, t, FS, (...r) => n[lp](...r));
    }
  }), I0 = S7;
  function _7(e, t) {
    const n = e;
    if (e.mode === "composition") return n.__getInstance(t) || e.global;
    {
      const r = n.__getInstance(t);
      return r != null ? r.__composer : e.global.__composer;
    }
  }
  function k7(e) {
    const t = (a) => {
      const { instance: l, value: s } = a;
      if (!l || !l.$) throw Ir(br.UNEXPECTED_ERROR);
      const c = _7(e, l.$), u = F0(s);
      return [
        Reflect.apply(c.t, c, [
          ...M0(u)
        ]),
        c
      ];
    };
    return {
      created: (a, l) => {
        const [s, c] = t(l);
        Du && e.global === c && (a.__i18nWatcher = lt(c.locale, () => {
          l.instance && l.instance.$forceUpdate();
        })), a.__composer = c, a.textContent = s;
      },
      unmounted: (a) => {
        Du && a.__i18nWatcher && (a.__i18nWatcher(), a.__i18nWatcher = void 0, delete a.__i18nWatcher), a.__composer && (a.__composer = void 0, delete a.__composer);
      },
      beforeUpdate: (a, { value: l }) => {
        if (a.__composer) {
          const s = a.__composer, c = F0(l);
          a.textContent = Reflect.apply(s.t, s, [
            ...M0(c)
          ]);
        }
      },
      getSSRProps: (a) => {
        const [l] = t(a);
        return {
          textContent: l
        };
      }
    };
  }
  function F0(e) {
    if (et(e)) return {
      path: e
    };
    if ($t(e)) {
      if (!("path" in e)) throw Ir(br.REQUIRED_VALUE, "path");
      return e;
    } else throw Ir(br.INVALID_VALUE);
  }
  function M0(e) {
    const { path: t, locale: n, args: r, choice: o, plural: i } = e, a = {}, l = r || {};
    return et(n) && (a.locale = n), An(o) && (a.plural = o), An(i) && (a.plural = i), [
      t,
      l,
      a
    ];
  }
  function R7(e, t, ...n) {
    const r = $t(n[0]) ? n[0] : {};
    (!Nt(r.globalInstall) || r.globalInstall) && ([
      O0.name,
      "I18nT"
    ].forEach((i) => e.component(i, O0)), [
      I0.name,
      "I18nN"
    ].forEach((i) => e.component(i, I0)), [
      B0.name,
      "I18nD"
    ].forEach((i) => e.component(i, B0))), e.directive("t", k7(t));
  }
  const A7 = Mi("global-vue-i18n");
  function E7(e = {}) {
    const t = __VUE_I18N_LEGACY_API__ && Nt(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, n = Nt(e.globalInjection) ? e.globalInjection : true, r = /* @__PURE__ */ new Map(), [o, i] = T7(e, t), a = Mi("");
    function l(d) {
      return r.get(d) || null;
    }
    function s(d, h) {
      r.set(d, h);
    }
    function c(d) {
      r.delete(d);
    }
    const u = {
      get mode() {
        return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
      },
      async install(d, ...h) {
        if (d.__VUE_I18N_SYMBOL__ = a, d.provide(d.__VUE_I18N_SYMBOL__, u), $t(h[0])) {
          const m = h[0];
          u.__composerExtend = m.__composerExtend, u.__vueI18nExtend = m.__vueI18nExtend;
        }
        let p = null;
        !t && n && (p = M7(d, u.global)), __VUE_I18N_FULL_INSTALL__ && R7(d, u, ...h), __VUE_I18N_LEGACY_API__ && t && d.mixin(y7(i, i.__composer, u));
        const f = d.unmount;
        d.unmount = () => {
          p && p(), u.dispose(), f();
        };
      },
      get global() {
        return i;
      },
      dispose() {
        o.stop();
      },
      __instances: r,
      __getInstance: l,
      __setInstance: s,
      __deleteInstance: c
    };
    return u;
  }
  Ht = function(e = {}) {
    const t = Ls();
    if (t == null) throw Ir(br.MUST_BE_CALL_SETUP_TOP);
    if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw Ir(br.NOT_INSTALLED);
    const n = P7(t), r = $7(n), o = HS(t), i = D7(e, o);
    if (i === "global") return jS(r, e, o), r;
    if (i === "parent") {
      let s = z7(n, t, e.__useComponent);
      return s == null && (s = r), s;
    }
    const a = n;
    let l = a.__getInstance(t);
    if (l == null) {
      const s = Fn({}, e);
      "__i18n" in o && (s.__i18n = o.__i18n), r && (s.__root = r), l = ng(s), a.__composerExtend && (l[sp] = a.__composerExtend(l)), I7(a, t, l), a.__setInstance(t, l);
    }
    return l;
  };
  function T7(e, t) {
    const n = p1(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => cp(e)) : n.run(() => ng(e));
    if (r == null) throw Ir(br.UNEXPECTED_ERROR);
    return [
      n,
      r
    ];
  }
  function P7(e) {
    const t = je(e.isCE ? A7 : e.appContext.app.__VUE_I18N_SYMBOL__);
    if (!t) throw Ir(e.isCE ? br.NOT_INSTALLED_WITH_PROVIDE : br.UNEXPECTED_ERROR);
    return t;
  }
  function D7(e, t) {
    return Rd(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
  }
  function $7(e) {
    return e.mode === "composition" ? e.global : e.global.__composer;
  }
  function z7(e, t, n = false) {
    let r = null;
    const o = t.root;
    let i = O7(t, n);
    for (; i != null; ) {
      const a = e;
      if (e.mode === "composition") r = a.__getInstance(i);
      else if (__VUE_I18N_LEGACY_API__) {
        const l = a.__getInstance(i);
        l != null && (r = l.__composer, n && r && !r[NS] && (r = null));
      }
      if (r != null || o === i) break;
      i = i.parent;
    }
    return r;
  }
  function O7(e, t = false) {
    return e == null ? null : t && e.vnode.ctx || e.parent;
  }
  function I7(e, t, n) {
    gt(() => {
    }, t), wl(() => {
      const r = n;
      e.__deleteInstance(t);
      const o = r[sp];
      o && (o(), delete r[sp]);
    }, t);
  }
  const F7 = [
    "locale",
    "fallbackLocale",
    "availableLocales"
  ], L0 = [
    "t",
    "rt",
    "d",
    "n",
    "tm",
    "te"
  ];
  function M7(e, t) {
    const n = /* @__PURE__ */ Object.create(null);
    return F7.forEach((o) => {
      const i = Object.getOwnPropertyDescriptor(t, o);
      if (!i) throw Ir(br.UNEXPECTED_ERROR);
      const a = kt(i.value) ? {
        get() {
          return i.value.value;
        },
        set(l) {
          i.value.value = l;
        }
      } : {
        get() {
          return i.get && i.get();
        }
      };
      Object.defineProperty(n, o, a);
    }), e.config.globalProperties.$i18n = n, L0.forEach((o) => {
      const i = Object.getOwnPropertyDescriptor(t, o);
      if (!i || !i.value) throw Ir(br.UNEXPECTED_ERROR);
      Object.defineProperty(e.config.globalProperties, `$${o}`, i);
    }), () => {
      delete e.config.globalProperties.$i18n, L0.forEach((o) => {
        delete e.config.globalProperties[`$${o}`];
      });
    };
  }
  const L7 = pe({
    name: "i18n-d",
    props: Fn({
      value: {
        type: [
          Number,
          Date
        ],
        required: true
      },
      format: {
        type: [
          String,
          Object
        ]
      }
    }, rg),
    setup(e, t) {
      const n = e.i18n || Ht({
        useScope: e.scope,
        __useComponent: true
      });
      return US(e, t, IS, (...r) => n[ap](...r));
    }
  }), B0 = L7;
  m7();
  GN(EN);
  KN(UN);
  YN(TS);
  if (__INTLIFY_PROD_DEVTOOLS__) {
    const e = Zi();
    e.__INTLIFY__ = true, TN(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
  }
  function B7(e) {
    let t = false, n;
    const r = p1(true);
    return ((...o) => (t || (n = r.run(() => e(...o)), t = true), n));
  }
  const Ff = /* @__PURE__ */ new WeakMap(), N7 = (...e) => {
    var t;
    const n = e[0], r = (t = Vn()) === null || t === void 0 ? void 0 : t.proxy, o = r ?? m1();
    if (o == null && !Bp()) throw new Error("injectLocal must be called in setup");
    return o && Ff.has(o) && n in Ff.get(o) ? Ff.get(o)[n] : je(...e);
  }, H7 = typeof window < "u" && typeof document < "u";
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
  const j7 = Object.prototype.toString, W7 = (e) => j7.call(e) === "[object Object]", U7 = () => {
  };
  function VS(...e) {
    if (e.length !== 1) return $e(...e);
    const t = e[0];
    return typeof t == "function" ? Dr(z1(() => ({
      get: t,
      set: U7
    }))) : L(t);
  }
  function V7(e, t) {
    function n(...r) {
      return new Promise((o, i) => {
        Promise.resolve(e(() => t.apply(this, r), {
          fn: t,
          thisArg: this,
          args: r
        })).then(o).catch(i);
      });
    }
    return n;
  }
  const qS = (e) => e();
  function q7(e = qS, t = {}) {
    const { initialState: n = "active" } = t, r = VS(n === "active");
    function o() {
      r.value = false;
    }
    function i() {
      r.value = true;
    }
    return {
      isActive: Dr(r),
      pause: o,
      resume: i,
      eventFilter: (...l) => {
        r.value && e(...l);
      }
    };
  }
  function N0(e) {
    return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
  }
  function Mf(e) {
    return Array.isArray(e) ? e : [
      e
    ];
  }
  function G7(e) {
    return Vn();
  }
  function K7(e, t, n = {}) {
    const { eventFilter: r = qS, ...o } = n;
    return lt(e, V7(r, t), o);
  }
  function Y7(e, t, n = {}) {
    const { eventFilter: r, initialState: o = "active", ...i } = n, { eventFilter: a, pause: l, resume: s, isActive: c } = q7(r, {
      initialState: o
    });
    return {
      stop: K7(e, t, {
        ...i,
        eventFilter: a
      }),
      pause: l,
      resume: s,
      isActive: c
    };
  }
  function GS(e, t = true, n) {
    G7() ? gt(e, n) : t ? e() : sn(e);
  }
  function X7(e = false, t = {}) {
    const { truthyValue: n = true, falsyValue: r = false } = t, o = kt(e), i = Po(e);
    function a(l) {
      if (arguments.length) return i.value = l, i.value;
      {
        const s = no(n);
        return i.value = i.value === s ? no(r) : s, i.value;
      }
    }
    return o ? a : [
      i,
      a
    ];
  }
  function J7(e, t, n) {
    return lt(e, t, {
      ...n,
      immediate: true
    });
  }
  const ei = H7 ? window : void 0;
  function KS(e) {
    var t;
    const n = no(e);
    return (t = n == null ? void 0 : n.$el) !== null && t !== void 0 ? t : n;
  }
  function up(...e) {
    const t = (r, o, i, a) => (r.addEventListener(o, i, a), () => r.removeEventListener(o, i, a)), n = D(() => {
      const r = Mf(no(e[0])).filter((o) => o != null);
      return r.every((o) => typeof o != "string") ? r : void 0;
    });
    return J7(() => {
      var r, o;
      return [
        (r = (o = n.value) === null || o === void 0 ? void 0 : o.map((i) => KS(i))) !== null && r !== void 0 ? r : [
          ei
        ].filter((i) => i != null),
        Mf(no(n.value ? e[1] : e[0])),
        Mf(O(n.value ? e[2] : e[1])),
        no(n.value ? e[3] : e[2])
      ];
    }, ([r, o, i, a], l, s) => {
      if (!(r == null ? void 0 : r.length) || !(o == null ? void 0 : o.length) || !(i == null ? void 0 : i.length)) return;
      const c = W7(a) ? {
        ...a
      } : a, u = r.flatMap((d) => o.flatMap((h) => i.map((p) => t(d, h, p, c))));
      s(() => {
        u.forEach((d) => d());
      });
    }, {
      flush: "post"
    });
  }
  function Z7() {
    const e = Po(false), t = Vn();
    return t && gt(() => {
      e.value = true;
    }, t), e;
  }
  function Q7(e) {
    const t = Z7();
    return D(() => (t.value, !!e()));
  }
  const eH = /* @__PURE__ */ Symbol("vueuse-ssr-width");
  function tH() {
    const e = Bp() ? N7(eH, null) : null;
    return typeof e == "number" ? e : void 0;
  }
  function nH(e, t = {}) {
    const { window: n = ei, ssrWidth: r = tH() } = t, o = Q7(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), i = Po(typeof r == "number"), a = Po(), l = Po(false), s = (c) => {
      l.value = c.matches;
    };
    return fn(() => {
      if (i.value) {
        i.value = !o.value, l.value = no(e).split(",").some((c) => {
          const u = c.includes("not all"), d = c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), h = c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
          let p = !!(d || h);
          return d && p && (p = r >= N0(d[1])), h && p && (p = r <= N0(h[1])), u ? !p : p;
        });
        return;
      }
      o.value && (a.value = n.matchMedia(no(e)), l.value = a.value.matches);
    }), up(a, "change", s, {
      passive: true
    }), D(() => l.value);
  }
  const Nc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hc = "__vueuse_ssr_handlers__", rH = oH();
  function oH() {
    return Hc in Nc || (Nc[Hc] = Nc[Hc] || {}), Nc[Hc];
  }
  function YS(e, t) {
    return rH[e] || t;
  }
  function iH(e) {
    return nH("(prefers-color-scheme: dark)", e);
  }
  function aH(e) {
    return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
  }
  const lH = {
    boolean: {
      read: (e) => e === "true",
      write: (e) => String(e)
    },
    object: {
      read: (e) => JSON.parse(e),
      write: (e) => JSON.stringify(e)
    },
    number: {
      read: (e) => Number.parseFloat(e),
      write: (e) => String(e)
    },
    any: {
      read: (e) => e,
      write: (e) => String(e)
    },
    string: {
      read: (e) => e,
      write: (e) => String(e)
    },
    map: {
      read: (e) => new Map(JSON.parse(e)),
      write: (e) => JSON.stringify(Array.from(e.entries()))
    },
    set: {
      read: (e) => new Set(JSON.parse(e)),
      write: (e) => JSON.stringify(Array.from(e))
    },
    date: {
      read: (e) => new Date(e),
      write: (e) => e.toISOString()
    }
  }, H0 = "vueuse-storage";
  function ar(e, t, n, r = {}) {
    var o;
    const { flush: i = "pre", deep: a = true, listenToStorageChanges: l = true, writeDefaults: s = true, mergeDefaults: c = false, shallow: u, window: d = ei, eventFilter: h, onError: p = (z) => {
      console.error(z);
    }, initOnMounted: f } = r, m = (u ? Po : L)(typeof t == "function" ? t() : t), b = D(() => no(e));
    if (!n) try {
      n = YS("getDefaultStorage", () => ei == null ? void 0 : ei.localStorage)();
    } catch (z) {
      p(z);
    }
    if (!n) return m;
    const v = no(t), y = aH(v), w = (o = r.serializer) !== null && o !== void 0 ? o : lH[y], { pause: x, resume: S } = Y7(m, (z) => P(z), {
      flush: i,
      deep: a,
      eventFilter: h
    });
    lt(b, () => E(), {
      flush: i
    });
    let _ = false;
    const C = (z) => {
      f && !_ || E(z);
    }, k = (z) => {
      f && !_ || M(z);
    };
    d && l && (n instanceof Storage ? up(d, "storage", C, {
      passive: true
    }) : up(d, H0, k)), f ? GS(() => {
      _ = true, E();
    }) : E();
    function R(z, U) {
      if (d) {
        const ee = {
          key: b.value,
          oldValue: z,
          newValue: U,
          storageArea: n
        };
        d.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", ee) : new CustomEvent(H0, {
          detail: ee
        }));
      }
    }
    function P(z) {
      try {
        const U = n.getItem(b.value);
        if (z == null) R(U, null), n.removeItem(b.value);
        else {
          const ee = w.write(z);
          U !== ee && (n.setItem(b.value, ee), R(U, ee));
        }
      } catch (U) {
        p(U);
      }
    }
    function B(z) {
      const U = z ? z.newValue : n.getItem(b.value);
      if (U == null) return s && v != null && n.setItem(b.value, w.write(v)), v;
      if (!z && c) {
        const ee = w.read(U);
        return typeof c == "function" ? c(ee, v) : y === "object" && !Array.isArray(ee) ? {
          ...v,
          ...ee
        } : ee;
      } else return typeof U != "string" ? U : w.read(U);
    }
    function E(z) {
      if (!(z && z.storageArea !== n)) {
        if (z && z.key == null) {
          m.value = v;
          return;
        }
        if (!(z && z.key !== b.value)) {
          x();
          try {
            const U = w.write(m.value);
            (z === void 0 || (z == null ? void 0 : z.newValue) !== U) && (m.value = B(z));
          } catch (U) {
            p(U);
          } finally {
            z ? sn(S) : S();
          }
        }
      }
    }
    function M(z) {
      E(z.detail);
    }
    return m;
  }
  const sH = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
  function cH(e = {}) {
    const { selector: t = "html", attribute: n = "class", initialValue: r = "auto", window: o = ei, storage: i, storageKey: a = "vueuse-color-scheme", listenToStorageChanges: l = true, storageRef: s, emitAuto: c, disableTransition: u = true } = e, d = {
      auto: "",
      light: "light",
      dark: "dark",
      ...e.modes || {}
    }, h = iH({
      window: o
    }), p = D(() => h.value ? "dark" : "light"), f = s || (a == null ? VS(r) : ar(a, r, i, {
      window: o,
      listenToStorageChanges: l
    })), m = D(() => f.value === "auto" ? p.value : f.value), b = YS("updateHTMLAttrs", (x, S, _) => {
      const C = typeof x == "string" ? o == null ? void 0 : o.document.querySelector(x) : KS(x);
      if (!C) return;
      const k = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set();
      let P = null;
      if (S === "class") {
        const E = _.split(/\s/g);
        Object.values(d).flatMap((M) => (M || "").split(/\s/g)).filter(Boolean).forEach((M) => {
          E.includes(M) ? k.add(M) : R.add(M);
        });
      } else P = {
        key: S,
        value: _
      };
      if (k.size === 0 && R.size === 0 && P === null) return;
      let B;
      u && (B = o.document.createElement("style"), B.appendChild(document.createTextNode(sH)), o.document.head.appendChild(B));
      for (const E of k) C.classList.add(E);
      for (const E of R) C.classList.remove(E);
      P && C.setAttribute(P.key, P.value), u && (o.getComputedStyle(B).opacity, document.head.removeChild(B));
    });
    function v(x) {
      var S;
      b(t, n, (S = d[x]) !== null && S !== void 0 ? S : x);
    }
    function y(x) {
      e.onChanged ? e.onChanged(x, v) : v(x);
    }
    lt(m, y, {
      flush: "post",
      immediate: true
    }), GS(() => y(m.value));
    const w = D({
      get() {
        return c ? f.value : m.value;
      },
      set(x) {
        f.value = x;
      }
    });
    return Object.assign(w, {
      store: f,
      system: p,
      state: m
    });
  }
  function uH(e = {}) {
    const { valueDark: t = "dark", valueLight: n = "" } = e, r = cH({
      ...e,
      onChanged: (i, a) => {
        var l;
        e.onChanged ? (l = e.onChanged) === null || l === void 0 || l.call(e, i === "dark", a, i) : a(i);
      },
      modes: {
        dark: t,
        light: n
      }
    }), o = D(() => r.system.value);
    return D({
      get() {
        return r.value === "dark";
      },
      set(i) {
        const a = i ? "dark" : "light";
        o.value === a ? r.value = "auto" : r.value = a;
      }
    });
  }
  function $u(e, t, n = {}) {
    const { window: r = ei } = n;
    return ar(e, t, r == null ? void 0 : r.localStorage, n);
  }
  qi = function(e, t, n = {}) {
    const { window: r = ei } = n;
    return ar(e, t, r == null ? void 0 : r.sessionStorage, n);
  };
  Qt = B7(() => {
    var _a2, _b2, _c2;
    const e = uH(), t = X7(e), n = L(false), r = $u("announcement", ""), o = $u("useSimpleIndex", false), i = L({
      fetched: false,
      title: "",
      announcement: "",
      alwaysShowAnnouncement: false,
      prefix: "",
      addressRegex: "",
      needAuth: false,
      adminContact: "",
      enableUserCreateEmail: false,
      disableAnonymousUserCreateEmail: false,
      disableCustomAddressName: false,
      enableUserDeleteEmail: false,
      enableAutoReply: false,
      enableIndexAbout: false,
      defaultDomains: [],
      domains: [],
      copyright: "Dream Hunter",
      cfTurnstileSiteKey: "",
      enableWebhook: false,
      isS3Enabled: false,
      enableSendMail: false,
      showGithub: true,
      disableAdminPasswordCheck: false,
      enableAddressPassword: false,
      statusUrl: ""
    }), a = L({
      fetched: false,
      send_balance: 0,
      address: "",
      auto_reply: {
        subject: "",
        message: "",
        enabled: false,
        source_prefix: "",
        name: ""
      }
    }), l = qi("sendMailModel", {
      fromName: "",
      toName: "",
      toMail: "",
      subject: "",
      contentType: "text",
      content: ""
    }), s = L(false), c = L(false), u = L(false), d = ar("auth", ""), h = ar("adminAuth", ""), p = ar("jwt", ""), f = qi("addressPassword", ""), m = qi("adminTab", "account"), b = L(""), v = L(""), y = ar("mailboxSplitSize", 0.25), w = ar("useIframeShowMail", false), x = ar("preferShowTextMail", false), S = ar("userJwt", ""), _ = qi("userTab", "address_management"), C = qi("indexTab", "mailbox"), k = ar("globalTabplacement", "top"), R = ar("useSideMargin", true), P = ar("useUTCDate", false), B = ar("autoRefresh", false), E = ar("configAutoRefreshInterval", 60), M = L({
      fetched: false,
      enable: false,
      enableMailVerify: false,
      oauth2ClientIDs: []
    }), z = L({
      fetched: false,
      user_email: "",
      user_id: 0,
      is_admin: false,
      access_token: null,
      new_user_token: null,
      user_role: null
    }), U = D(() => !!h.value || z.value.is_admin || i.value.disableAdminPasswordCheck), ee = L(((_a2 = window.Telegram) == null ? void 0 : _a2.WebApp) || {}), ne = L(!!((_c2 = (_b2 = window.Telegram) == null ? void 0 : _b2.WebApp) == null ? void 0 : _c2.initData)), ae = qi("userOauth2SessionState", ""), ye = qi("userOauth2SessionClientID", "");
    return {
      isDark: e,
      toggleDark: t,
      loading: n,
      settings: a,
      sendMailModel: l,
      announcement: r,
      openSettings: i,
      showAuth: s,
      showAddressCredential: c,
      auth: d,
      jwt: p,
      adminAuth: h,
      showAdminAuth: u,
      adminTab: m,
      adminMailTabAddress: b,
      adminSendBoxTabAddress: v,
      mailboxSplitSize: y,
      useIframeShowMail: w,
      preferShowTextMail: x,
      userJwt: S,
      userTab: _,
      indexTab: C,
      userOpenSettings: M,
      userSettings: z,
      globalTabplacement: k,
      useSideMargin: R,
      useUTCDate: P,
      autoRefresh: B,
      configAutoRefreshInterval: E,
      telegramApp: ee,
      isTelegram: ne,
      showAdminPage: U,
      userOauth2SessionState: ae,
      userOauth2SessionClientID: ye,
      useSimpleIndex: o,
      addressPassword: f,
      browserFingerprint: L("")
    };
  });
  function Dl() {
    const e = PE();
    return Ct(() => e.value === "xs");
  }
  const Ka = typeof document < "u";
  function XS(e) {
    return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
  }
  function dH(e) {
    return e.__esModule || e[Symbol.toStringTag] === "Module" || e.default && XS(e.default);
  }
  const Gt = Object.assign;
  function Lf(e, t) {
    const n = {};
    for (const r in t) {
      const o = t[r];
      n[r] = co(o) ? o.map(e) : e(o);
    }
    return n;
  }
  const bs = () => {
  }, co = Array.isArray;
  function j0(e, t) {
    const n = {};
    for (const r in e) n[r] = r in t ? t[r] : e[r];
    return n;
  }
  const JS = /#/g, fH = /&/g, hH = /\//g, pH = /=/g, mH = /\?/g, ZS = /\+/g, gH = /%5B/g, vH = /%5D/g, QS = /%5E/g, bH = /%60/g, e_ = /%7B/g, yH = /%7C/g, t_ = /%7D/g, xH = /%20/g;
  function og(e) {
    return e == null ? "" : encodeURI("" + e).replace(yH, "|").replace(gH, "[").replace(vH, "]");
  }
  function wH(e) {
    return og(e).replace(e_, "{").replace(t_, "}").replace(QS, "^");
  }
  function dp(e) {
    return og(e).replace(ZS, "%2B").replace(xH, "+").replace(JS, "%23").replace(fH, "%26").replace(bH, "`").replace(e_, "{").replace(t_, "}").replace(QS, "^");
  }
  function CH(e) {
    return dp(e).replace(pH, "%3D");
  }
  function SH(e) {
    return og(e).replace(JS, "%23").replace(mH, "%3F");
  }
  function _H(e) {
    return SH(e).replace(hH, "%2F");
  }
  function Bs(e) {
    if (e == null) return null;
    try {
      return decodeURIComponent("" + e);
    } catch {
    }
    return "" + e;
  }
  const kH = /\/$/, RH = (e) => e.replace(kH, "");
  function Bf(e, t, n = "/") {
    let r, o = {}, i = "", a = "";
    const l = t.indexOf("#");
    let s = t.indexOf("?");
    return s = l >= 0 && s > l ? -1 : s, s >= 0 && (r = t.slice(0, s), i = t.slice(s, l > 0 ? l : t.length), o = e(i.slice(1))), l >= 0 && (r = r || t.slice(0, l), a = t.slice(l, t.length)), r = PH(r ?? t, n), {
      fullPath: r + i + a,
      path: r,
      query: o,
      hash: Bs(a)
    };
  }
  function AH(e, t) {
    const n = t.query ? e(t.query) : "";
    return t.path + (n && "?") + n + (t.hash || "");
  }
  function W0(e, t) {
    return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
  }
  function EH(e, t, n) {
    const r = t.matched.length - 1, o = n.matched.length - 1;
    return r > -1 && r === o && gl(t.matched[r], n.matched[o]) && n_(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
  }
  function gl(e, t) {
    return (e.aliasOf || e) === (t.aliasOf || t);
  }
  function n_(e, t) {
    if (Object.keys(e).length !== Object.keys(t).length) return false;
    for (var n in e) if (!TH(e[n], t[n])) return false;
    return true;
  }
  function TH(e, t) {
    return co(e) ? U0(e, t) : co(t) ? U0(t, e) : (e == null ? void 0 : e.valueOf()) === (t == null ? void 0 : t.valueOf());
  }
  function U0(e, t) {
    return co(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
  }
  function PH(e, t) {
    if (e.startsWith("/")) return e;
    if (!e) return t;
    const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
    (o === ".." || o === ".") && r.push("");
    let i = n.length - 1, a, l;
    for (a = 0; a < r.length; a++) if (l = r[a], l !== ".") if (l === "..") i > 1 && i--;
    else break;
    return n.slice(0, i).join("/") + "/" + r.slice(a).join("/");
  }
  const vi = {
    path: "/",
    name: void 0,
    params: {},
    query: {},
    hash: "",
    fullPath: "/",
    matched: [],
    meta: {},
    redirectedFrom: void 0
  };
  let fp = (function(e) {
    return e.pop = "pop", e.push = "push", e;
  })({}), Nf = (function(e) {
    return e.back = "back", e.forward = "forward", e.unknown = "", e;
  })({});
  function DH(e) {
    if (!e) if (Ka) {
      const t = document.querySelector("base");
      e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
    } else e = "/";
    return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), RH(e);
  }
  const $H = /^[^#]+#/;
  function zH(e, t) {
    return e.replace($H, "#") + t;
  }
  function OH(e, t) {
    const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
    return {
      behavior: t.behavior,
      left: r.left - n.left - (t.left || 0),
      top: r.top - n.top - (t.top || 0)
    };
  }
  const Td = () => ({
    left: window.scrollX,
    top: window.scrollY
  });
  function IH(e) {
    let t;
    if ("el" in e) {
      const n = e.el, r = typeof n == "string" && n.startsWith("#"), o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
      if (!o) return;
      t = OH(o, e);
    } else t = e;
    "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
  }
  function V0(e, t) {
    return (history.state ? history.state.position - t : -1) + e;
  }
  const hp = /* @__PURE__ */ new Map();
  function FH(e, t) {
    hp.set(e, t);
  }
  function MH(e) {
    const t = hp.get(e);
    return hp.delete(e), t;
  }
  function LH(e) {
    return typeof e == "string" || e && typeof e == "object";
  }
  function r_(e) {
    return typeof e == "string" || typeof e == "symbol";
  }
  let gn = (function(e) {
    return e[e.MATCHER_NOT_FOUND = 1] = "MATCHER_NOT_FOUND", e[e.NAVIGATION_GUARD_REDIRECT = 2] = "NAVIGATION_GUARD_REDIRECT", e[e.NAVIGATION_ABORTED = 4] = "NAVIGATION_ABORTED", e[e.NAVIGATION_CANCELLED = 8] = "NAVIGATION_CANCELLED", e[e.NAVIGATION_DUPLICATED = 16] = "NAVIGATION_DUPLICATED", e;
  })({});
  const o_ = /* @__PURE__ */ Symbol("");
  gn.MATCHER_NOT_FOUND + "", gn.NAVIGATION_GUARD_REDIRECT + "", gn.NAVIGATION_ABORTED + "", gn.NAVIGATION_CANCELLED + "", gn.NAVIGATION_DUPLICATED + "";
  function vl(e, t) {
    return Gt(new Error(), {
      type: e,
      [o_]: true
    }, t);
  }
  function qo(e, t) {
    return e instanceof Error && o_ in e && (t == null || !!(e.type & t));
  }
  const BH = [
    "params",
    "query",
    "hash"
  ];
  function NH(e) {
    if (typeof e == "string") return e;
    if (e.path != null) return e.path;
    const t = {};
    for (const n of BH) n in e && (t[n] = e[n]);
    return JSON.stringify(t, null, 2);
  }
  function HH(e) {
    const t = {};
    if (e === "" || e === "?") return t;
    const n = (e[0] === "?" ? e.slice(1) : e).split("&");
    for (let r = 0; r < n.length; ++r) {
      const o = n[r].replace(ZS, " "), i = o.indexOf("="), a = Bs(i < 0 ? o : o.slice(0, i)), l = i < 0 ? null : Bs(o.slice(i + 1));
      if (a in t) {
        let s = t[a];
        co(s) || (s = t[a] = [
          s
        ]), s.push(l);
      } else t[a] = l;
    }
    return t;
  }
  function q0(e) {
    let t = "";
    for (let n in e) {
      const r = e[n];
      if (n = CH(n), r == null) {
        r !== void 0 && (t += (t.length ? "&" : "") + n);
        continue;
      }
      (co(r) ? r.map((o) => o && dp(o)) : [
        r && dp(r)
      ]).forEach((o) => {
        o !== void 0 && (t += (t.length ? "&" : "") + n, o != null && (t += "=" + o));
      });
    }
    return t;
  }
  function jH(e) {
    const t = {};
    for (const n in e) {
      const r = e[n];
      r !== void 0 && (t[n] = co(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
    }
    return t;
  }
  const WH = /* @__PURE__ */ Symbol(""), G0 = /* @__PURE__ */ Symbol(""), Pd = /* @__PURE__ */ Symbol(""), ig = /* @__PURE__ */ Symbol(""), pp = /* @__PURE__ */ Symbol("");
  function Gl() {
    let e = [];
    function t(r) {
      return e.push(r), () => {
        const o = e.indexOf(r);
        o > -1 && e.splice(o, 1);
      };
    }
    function n() {
      e = [];
    }
    return {
      add: t,
      list: () => e.slice(),
      reset: n
    };
  }
  function Si(e, t, n, r, o, i = (a) => a()) {
    const a = r && (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
    return () => new Promise((l, s) => {
      const c = (h) => {
        h === false ? s(vl(gn.NAVIGATION_ABORTED, {
          from: n,
          to: t
        })) : h instanceof Error ? s(h) : LH(h) ? s(vl(gn.NAVIGATION_GUARD_REDIRECT, {
          from: t,
          to: h
        })) : (a && r.enterCallbacks[o] === a && typeof h == "function" && a.push(h), l());
      }, u = i(() => e.call(r && r.instances[o], t, n, c));
      let d = Promise.resolve(u);
      e.length < 3 && (d = d.then(c)), d.catch((h) => s(h));
    });
  }
  function Hf(e, t, n, r, o = (i) => i()) {
    const i = [];
    for (const a of e) for (const l in a.components) {
      let s = a.components[l];
      if (!(t !== "beforeRouteEnter" && !a.instances[l])) if (XS(s)) {
        const c = (s.__vccOpts || s)[t];
        c && i.push(Si(c, n, r, a, l, o));
      } else {
        let c = s();
        i.push(() => c.then((u) => {
          if (!u) throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);
          const d = dH(u) ? u.default : u;
          a.mods[l] = u, a.components[l] = d;
          const h = (d.__vccOpts || d)[t];
          return h && Si(h, n, r, a, l, o)();
        }));
      }
    }
    return i;
  }
  function UH(e, t) {
    const n = [], r = [], o = [], i = Math.max(t.matched.length, e.matched.length);
    for (let a = 0; a < i; a++) {
      const l = t.matched[a];
      l && (e.matched.find((c) => gl(c, l)) ? r.push(l) : n.push(l));
      const s = e.matched[a];
      s && (t.matched.find((c) => gl(c, s)) || o.push(s));
    }
    return [
      n,
      r,
      o
    ];
  }
  let VH = () => location.protocol + "//" + location.host;
  function i_(e, t) {
    const { pathname: n, search: r, hash: o } = t, i = e.indexOf("#");
    if (i > -1) {
      let a = o.includes(e.slice(i)) ? e.slice(i).length : 1, l = o.slice(a);
      return l[0] !== "/" && (l = "/" + l), W0(l, "");
    }
    return W0(n, e) + r + o;
  }
  function qH(e, t, n, r) {
    let o = [], i = [], a = null;
    const l = ({ state: h }) => {
      const p = i_(e, location), f = n.value, m = t.value;
      let b = 0;
      if (h) {
        if (n.value = p, t.value = h, a && a === f) {
          a = null;
          return;
        }
        b = m ? h.position - m.position : 0;
      } else r(p);
      o.forEach((v) => {
        v(n.value, f, {
          delta: b,
          type: fp.pop,
          direction: b ? b > 0 ? Nf.forward : Nf.back : Nf.unknown
        });
      });
    };
    function s() {
      a = n.value;
    }
    function c(h) {
      o.push(h);
      const p = () => {
        const f = o.indexOf(h);
        f > -1 && o.splice(f, 1);
      };
      return i.push(p), p;
    }
    function u() {
      if (document.visibilityState === "hidden") {
        const { history: h } = window;
        if (!h.state) return;
        h.replaceState(Gt({}, h.state, {
          scroll: Td()
        }), "");
      }
    }
    function d() {
      for (const h of i) h();
      i = [], window.removeEventListener("popstate", l), window.removeEventListener("pagehide", u), document.removeEventListener("visibilitychange", u);
    }
    return window.addEventListener("popstate", l), window.addEventListener("pagehide", u), document.addEventListener("visibilitychange", u), {
      pauseListeners: s,
      listen: c,
      destroy: d
    };
  }
  function K0(e, t, n, r = false, o = false) {
    return {
      back: e,
      current: t,
      forward: n,
      replaced: r,
      position: window.history.length,
      scroll: o ? Td() : null
    };
  }
  function GH(e) {
    const { history: t, location: n } = window, r = {
      value: i_(e, n)
    }, o = {
      value: t.state
    };
    o.value || i(r.value, {
      back: null,
      current: r.value,
      forward: null,
      position: t.length - 1,
      replaced: true,
      scroll: null
    }, true);
    function i(s, c, u) {
      const d = e.indexOf("#"), h = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + s : VH() + e + s;
      try {
        t[u ? "replaceState" : "pushState"](c, "", h), o.value = c;
      } catch (p) {
        console.error(p), n[u ? "replace" : "assign"](h);
      }
    }
    function a(s, c) {
      i(s, Gt({}, t.state, K0(o.value.back, s, o.value.forward, true), c, {
        position: o.value.position
      }), true), r.value = s;
    }
    function l(s, c) {
      const u = Gt({}, o.value, t.state, {
        forward: s,
        scroll: Td()
      });
      i(u.current, u, true), i(s, Gt({}, K0(r.value, s, null), {
        position: u.position + 1
      }, c), false), r.value = s;
    }
    return {
      location: r,
      state: o,
      push: l,
      replace: a
    };
  }
  function KH(e) {
    e = DH(e);
    const t = GH(e), n = qH(e, t.state, t.location, t.replace);
    function r(i, a = true) {
      a || n.pauseListeners(), history.go(i);
    }
    const o = Gt({
      location: "",
      base: e,
      go: r,
      createHref: zH.bind(null, e)
    }, t, n);
    return Object.defineProperty(o, "location", {
      enumerable: true,
      get: () => t.location.value
    }), Object.defineProperty(o, "state", {
      enumerable: true,
      get: () => t.state.value
    }), o;
  }
  let Qi = (function(e) {
    return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.Group = 2] = "Group", e;
  })({});
  var On = (function(e) {
    return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.ParamRegExp = 2] = "ParamRegExp", e[e.ParamRegExpEnd = 3] = "ParamRegExpEnd", e[e.EscapeNext = 4] = "EscapeNext", e;
  })(On || {});
  const YH = {
    type: Qi.Static,
    value: ""
  }, XH = /[a-zA-Z0-9_]/;
  function JH(e) {
    if (!e) return [
      []
    ];
    if (e === "/") return [
      [
        YH
      ]
    ];
    if (!e.startsWith("/")) throw new Error(`Invalid path "${e}"`);
    function t(p) {
      throw new Error(`ERR (${n})/"${c}": ${p}`);
    }
    let n = On.Static, r = n;
    const o = [];
    let i;
    function a() {
      i && o.push(i), i = [];
    }
    let l = 0, s, c = "", u = "";
    function d() {
      c && (n === On.Static ? i.push({
        type: Qi.Static,
        value: c
      }) : n === On.Param || n === On.ParamRegExp || n === On.ParamRegExpEnd ? (i.length > 1 && (s === "*" || s === "+") && t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`), i.push({
        type: Qi.Param,
        value: c,
        regexp: u,
        repeatable: s === "*" || s === "+",
        optional: s === "*" || s === "?"
      })) : t("Invalid state to consume buffer"), c = "");
    }
    function h() {
      c += s;
    }
    for (; l < e.length; ) {
      if (s = e[l++], s === "\\" && n !== On.ParamRegExp) {
        r = n, n = On.EscapeNext;
        continue;
      }
      switch (n) {
        case On.Static:
          s === "/" ? (c && d(), a()) : s === ":" ? (d(), n = On.Param) : h();
          break;
        case On.EscapeNext:
          h(), n = r;
          break;
        case On.Param:
          s === "(" ? n = On.ParamRegExp : XH.test(s) ? h() : (d(), n = On.Static, s !== "*" && s !== "?" && s !== "+" && l--);
          break;
        case On.ParamRegExp:
          s === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + s : n = On.ParamRegExpEnd : u += s;
          break;
        case On.ParamRegExpEnd:
          d(), n = On.Static, s !== "*" && s !== "?" && s !== "+" && l--, u = "";
          break;
        default:
          t("Unknown state");
          break;
      }
    }
    return n === On.ParamRegExp && t(`Unfinished custom RegExp for param "${c}"`), d(), a(), o;
  }
  const Y0 = "[^/]+?", ZH = {
    sensitive: false,
    strict: false,
    start: true,
    end: true
  };
  var lr = (function(e) {
    return e[e._multiplier = 10] = "_multiplier", e[e.Root = 90] = "Root", e[e.Segment = 40] = "Segment", e[e.SubSegment = 30] = "SubSegment", e[e.Static = 40] = "Static", e[e.Dynamic = 20] = "Dynamic", e[e.BonusCustomRegExp = 10] = "BonusCustomRegExp", e[e.BonusWildcard = -50] = "BonusWildcard", e[e.BonusRepeatable = -20] = "BonusRepeatable", e[e.BonusOptional = -8] = "BonusOptional", e[e.BonusStrict = 0.7000000000000001] = "BonusStrict", e[e.BonusCaseSensitive = 0.25] = "BonusCaseSensitive", e;
  })(lr || {});
  const QH = /[.+*?^${}()[\]/\\]/g;
  function ej(e, t) {
    const n = Gt({}, ZH, t), r = [];
    let o = n.start ? "^" : "";
    const i = [];
    for (const c of e) {
      const u = c.length ? [] : [
        lr.Root
      ];
      n.strict && !c.length && (o += "/");
      for (let d = 0; d < c.length; d++) {
        const h = c[d];
        let p = lr.Segment + (n.sensitive ? lr.BonusCaseSensitive : 0);
        if (h.type === Qi.Static) d || (o += "/"), o += h.value.replace(QH, "\\$&"), p += lr.Static;
        else if (h.type === Qi.Param) {
          const { value: f, repeatable: m, optional: b, regexp: v } = h;
          i.push({
            name: f,
            repeatable: m,
            optional: b
          });
          const y = v || Y0;
          if (y !== Y0) {
            p += lr.BonusCustomRegExp;
            try {
              `${y}`;
            } catch (x) {
              throw new Error(`Invalid custom RegExp for param "${f}" (${y}): ` + x.message);
            }
          }
          let w = m ? `((?:${y})(?:/(?:${y}))*)` : `(${y})`;
          d || (w = b && c.length < 2 ? `(?:/${w})` : "/" + w), b && (w += "?"), o += w, p += lr.Dynamic, b && (p += lr.BonusOptional), m && (p += lr.BonusRepeatable), y === ".*" && (p += lr.BonusWildcard);
        }
        u.push(p);
      }
      r.push(u);
    }
    if (n.strict && n.end) {
      const c = r.length - 1;
      r[c][r[c].length - 1] += lr.BonusStrict;
    }
    n.strict || (o += "/?"), n.end ? o += "$" : n.strict && !o.endsWith("/") && (o += "(?:/|$)");
    const a = new RegExp(o, n.sensitive ? "" : "i");
    function l(c) {
      const u = c.match(a), d = {};
      if (!u) return null;
      for (let h = 1; h < u.length; h++) {
        const p = u[h] || "", f = i[h - 1];
        d[f.name] = p && f.repeatable ? p.split("/") : p;
      }
      return d;
    }
    function s(c) {
      let u = "", d = false;
      for (const h of e) {
        (!d || !u.endsWith("/")) && (u += "/"), d = false;
        for (const p of h) if (p.type === Qi.Static) u += p.value;
        else if (p.type === Qi.Param) {
          const { value: f, repeatable: m, optional: b } = p, v = f in c ? c[f] : "";
          if (co(v) && !m) throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);
          const y = co(v) ? v.join("/") : v;
          if (!y) if (b) h.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : d = true);
          else throw new Error(`Missing required param "${f}"`);
          u += y;
        }
      }
      return u || "/";
    }
    return {
      re: a,
      score: r,
      keys: i,
      parse: l,
      stringify: s
    };
  }
  function tj(e, t) {
    let n = 0;
    for (; n < e.length && n < t.length; ) {
      const r = t[n] - e[n];
      if (r) return r;
      n++;
    }
    return e.length < t.length ? e.length === 1 && e[0] === lr.Static + lr.Segment ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === lr.Static + lr.Segment ? 1 : -1 : 0;
  }
  function a_(e, t) {
    let n = 0;
    const r = e.score, o = t.score;
    for (; n < r.length && n < o.length; ) {
      const i = tj(r[n], o[n]);
      if (i) return i;
      n++;
    }
    if (Math.abs(o.length - r.length) === 1) {
      if (X0(r)) return 1;
      if (X0(o)) return -1;
    }
    return o.length - r.length;
  }
  function X0(e) {
    const t = e[e.length - 1];
    return e.length > 0 && t[t.length - 1] < 0;
  }
  const nj = {
    strict: false,
    end: true,
    sensitive: false
  };
  function rj(e, t, n) {
    const r = ej(JH(e.path), n), o = Gt(r, {
      record: e,
      parent: t,
      children: [],
      alias: []
    });
    return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
  }
  function oj(e, t) {
    const n = [], r = /* @__PURE__ */ new Map();
    t = j0(nj, t);
    function o(d) {
      return r.get(d);
    }
    function i(d, h, p) {
      const f = !p, m = Z0(d);
      m.aliasOf = p && p.record;
      const b = j0(t, d), v = [
        m
      ];
      if ("alias" in d) {
        const x = typeof d.alias == "string" ? [
          d.alias
        ] : d.alias;
        for (const S of x) v.push(Z0(Gt({}, m, {
          components: p ? p.record.components : m.components,
          path: S,
          aliasOf: p ? p.record : m
        })));
      }
      let y, w;
      for (const x of v) {
        const { path: S } = x;
        if (h && S[0] !== "/") {
          const _ = h.record.path, C = _[_.length - 1] === "/" ? "" : "/";
          x.path = h.record.path + (S && C + S);
        }
        if (y = rj(x, h, b), p ? p.alias.push(y) : (w = w || y, w !== y && w.alias.push(y), f && d.name && !Q0(y) && a(d.name)), l_(y) && s(y), m.children) {
          const _ = m.children;
          for (let C = 0; C < _.length; C++) i(_[C], y, p && p.children[C]);
        }
        p = p || y;
      }
      return w ? () => {
        a(w);
      } : bs;
    }
    function a(d) {
      if (r_(d)) {
        const h = r.get(d);
        h && (r.delete(d), n.splice(n.indexOf(h), 1), h.children.forEach(a), h.alias.forEach(a));
      } else {
        const h = n.indexOf(d);
        h > -1 && (n.splice(h, 1), d.record.name && r.delete(d.record.name), d.children.forEach(a), d.alias.forEach(a));
      }
    }
    function l() {
      return n;
    }
    function s(d) {
      const h = lj(d, n);
      n.splice(h, 0, d), d.record.name && !Q0(d) && r.set(d.record.name, d);
    }
    function c(d, h) {
      let p, f = {}, m, b;
      if ("name" in d && d.name) {
        if (p = r.get(d.name), !p) throw vl(gn.MATCHER_NOT_FOUND, {
          location: d
        });
        b = p.record.name, f = Gt(J0(h.params, p.keys.filter((w) => !w.optional).concat(p.parent ? p.parent.keys.filter((w) => w.optional) : []).map((w) => w.name)), d.params && J0(d.params, p.keys.map((w) => w.name))), m = p.stringify(f);
      } else if (d.path != null) m = d.path, p = n.find((w) => w.re.test(m)), p && (f = p.parse(m), b = p.record.name);
      else {
        if (p = h.name ? r.get(h.name) : n.find((w) => w.re.test(h.path)), !p) throw vl(gn.MATCHER_NOT_FOUND, {
          location: d,
          currentLocation: h
        });
        b = p.record.name, f = Gt({}, h.params, d.params), m = p.stringify(f);
      }
      const v = [];
      let y = p;
      for (; y; ) v.unshift(y.record), y = y.parent;
      return {
        name: b,
        path: m,
        params: f,
        matched: v,
        meta: aj(v)
      };
    }
    e.forEach((d) => i(d));
    function u() {
      n.length = 0, r.clear();
    }
    return {
      addRoute: i,
      resolve: c,
      removeRoute: a,
      clearRoutes: u,
      getRoutes: l,
      getRecordMatcher: o
    };
  }
  function J0(e, t) {
    const n = {};
    for (const r of t) r in e && (n[r] = e[r]);
    return n;
  }
  function Z0(e) {
    const t = {
      path: e.path,
      redirect: e.redirect,
      name: e.name,
      meta: e.meta || {},
      aliasOf: e.aliasOf,
      beforeEnter: e.beforeEnter,
      props: ij(e),
      children: e.children || [],
      instances: {},
      leaveGuards: /* @__PURE__ */ new Set(),
      updateGuards: /* @__PURE__ */ new Set(),
      enterCallbacks: {},
      components: "components" in e ? e.components || null : e.component && {
        default: e.component
      }
    };
    return Object.defineProperty(t, "mods", {
      value: {}
    }), t;
  }
  function ij(e) {
    const t = {}, n = e.props || false;
    if ("component" in e) t.default = n;
    else for (const r in e.components) t[r] = typeof n == "object" ? n[r] : n;
    return t;
  }
  function Q0(e) {
    for (; e; ) {
      if (e.record.aliasOf) return true;
      e = e.parent;
    }
    return false;
  }
  function aj(e) {
    return e.reduce((t, n) => Gt(t, n.meta), {});
  }
  function lj(e, t) {
    let n = 0, r = t.length;
    for (; n !== r; ) {
      const i = n + r >> 1;
      a_(e, t[i]) < 0 ? r = i : n = i + 1;
    }
    const o = sj(e);
    return o && (r = t.lastIndexOf(o, r - 1)), r;
  }
  function sj(e) {
    let t = e;
    for (; t = t.parent; ) if (l_(t) && a_(e, t) === 0) return t;
  }
  function l_({ record: e }) {
    return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
  }
  function ey(e) {
    const t = je(Pd), n = je(ig), r = D(() => {
      const s = O(e.to);
      return t.resolve(s);
    }), o = D(() => {
      const { matched: s } = r.value, { length: c } = s, u = s[c - 1], d = n.matched;
      if (!u || !d.length) return -1;
      const h = d.findIndex(gl.bind(null, u));
      if (h > -1) return h;
      const p = ty(s[c - 2]);
      return c > 1 && ty(u) === p && d[d.length - 1].path !== p ? d.findIndex(gl.bind(null, s[c - 2])) : h;
    }), i = D(() => o.value > -1 && hj(n.params, r.value.params)), a = D(() => o.value > -1 && o.value === n.matched.length - 1 && n_(n.params, r.value.params));
    function l(s = {}) {
      if (fj(s)) {
        const c = t[O(e.replace) ? "replace" : "push"](O(e.to)).catch(bs);
        return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => c), c;
      }
      return Promise.resolve();
    }
    return {
      route: r,
      href: D(() => r.value.href),
      isActive: i,
      isExactActive: a,
      navigate: l
    };
  }
  function cj(e) {
    return e.length === 1 ? e[0] : e;
  }
  const uj = pe({
    name: "RouterLink",
    compatConfig: {
      MODE: 3
    },
    props: {
      to: {
        type: [
          String,
          Object
        ],
        required: true
      },
      replace: Boolean,
      activeClass: String,
      exactActiveClass: String,
      custom: Boolean,
      ariaCurrentValue: {
        type: String,
        default: "page"
      },
      viewTransition: Boolean
    },
    useLink: ey,
    setup(e, { slots: t }) {
      const n = ba(ey(e)), { options: r } = je(Pd), o = D(() => ({
        [ny(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
        [ny(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
      }));
      return () => {
        const i = t.default && cj(t.default(n));
        return e.custom ? i : g("a", {
          "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
          href: n.href,
          onClick: n.navigate,
          class: o.value
        }, i);
      };
    }
  }), dj = uj;
  function fj(e) {
    if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
      if (e.currentTarget && e.currentTarget.getAttribute) {
        const t = e.currentTarget.getAttribute("target");
        if (/\b_blank\b/i.test(t)) return;
      }
      return e.preventDefault && e.preventDefault(), true;
    }
  }
  function hj(e, t) {
    for (const n in t) {
      const r = t[n], o = e[n];
      if (typeof r == "string") {
        if (r !== o) return false;
      } else if (!co(o) || o.length !== r.length || r.some((i, a) => i.valueOf() !== o[a].valueOf())) return false;
    }
    return true;
  }
  function ty(e) {
    return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
  }
  const ny = (e, t, n) => e ?? t ?? n, pj = pe({
    name: "RouterView",
    inheritAttrs: false,
    props: {
      name: {
        type: String,
        default: "default"
      },
      route: Object
    },
    compatConfig: {
      MODE: 3
    },
    setup(e, { attrs: t, slots: n }) {
      const r = je(pp), o = D(() => e.route || r.value), i = je(G0, 0), a = D(() => {
        let c = O(i);
        const { matched: u } = o.value;
        let d;
        for (; (d = u[c]) && !d.components; ) c++;
        return c;
      }), l = D(() => o.value.matched[a.value]);
      ft(G0, D(() => a.value + 1)), ft(WH, l), ft(pp, o);
      const s = L();
      return lt(() => [
        s.value,
        l.value,
        e.name
      ], ([c, u, d], [h, p, f]) => {
        u && (u.instances[d] = c, p && p !== u && c && c === h && (u.leaveGuards.size || (u.leaveGuards = p.leaveGuards), u.updateGuards.size || (u.updateGuards = p.updateGuards))), c && u && (!p || !gl(u, p) || !h) && (u.enterCallbacks[d] || []).forEach((m) => m(c));
      }, {
        flush: "post"
      }), () => {
        const c = o.value, u = e.name, d = l.value, h = d && d.components[u];
        if (!h) return ry(n.default, {
          Component: h,
          route: c
        });
        const p = d.props[u], f = p ? p === true ? c.params : typeof p == "function" ? p(c) : p : null, b = g(h, Gt({}, f, t, {
          onVnodeUnmounted: (v) => {
            v.component.isUnmounted && (d.instances[u] = null);
          },
          ref: s
        }));
        return ry(n.default, {
          Component: b,
          route: c
        }) || b;
      };
    }
  });
  function ry(e, t) {
    if (!e) return null;
    const n = e(t);
    return n.length === 1 ? n[0] : n;
  }
  const mj = pj;
  function gj(e) {
    const t = oj(e.routes, e), n = e.parseQuery || HH, r = e.stringifyQuery || q0, o = e.history, i = Gl(), a = Gl(), l = Gl(), s = Po(vi);
    let c = vi;
    Ka && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
    const u = Lf.bind(null, (ie) => "" + ie), d = Lf.bind(null, _H), h = Lf.bind(null, Bs);
    function p(ie, fe) {
      let F, se;
      return r_(ie) ? (F = t.getRecordMatcher(ie), se = fe) : se = ie, t.addRoute(se, F);
    }
    function f(ie) {
      const fe = t.getRecordMatcher(ie);
      fe && t.removeRoute(fe);
    }
    function m() {
      return t.getRoutes().map((ie) => ie.record);
    }
    function b(ie) {
      return !!t.getRecordMatcher(ie);
    }
    function v(ie, fe) {
      if (fe = Gt({}, fe || s.value), typeof ie == "string") {
        const le = Bf(n, ie, fe.path), we = t.resolve({
          path: le.path
        }, fe), ke = o.createHref(le.fullPath);
        return Gt(le, we, {
          params: h(we.params),
          hash: Bs(le.hash),
          redirectedFrom: void 0,
          href: ke
        });
      }
      let F;
      if (ie.path != null) F = Gt({}, ie, {
        path: Bf(n, ie.path, fe.path).path
      });
      else {
        const le = Gt({}, ie.params);
        for (const we in le) le[we] == null && delete le[we];
        F = Gt({}, ie, {
          params: d(le)
        }), fe.params = d(fe.params);
      }
      const se = t.resolve(F, fe), ze = ie.hash || "";
      se.params = u(h(se.params));
      const q = AH(r, Gt({}, ie, {
        hash: wH(ze),
        path: se.path
      })), J = o.createHref(q);
      return Gt({
        fullPath: q,
        hash: ze,
        query: r === q0 ? jH(ie.query) : ie.query || {}
      }, se, {
        redirectedFrom: void 0,
        href: J
      });
    }
    function y(ie) {
      return typeof ie == "string" ? Bf(n, ie, s.value.path) : Gt({}, ie);
    }
    function w(ie, fe) {
      if (c !== ie) return vl(gn.NAVIGATION_CANCELLED, {
        from: fe,
        to: ie
      });
    }
    function x(ie) {
      return C(ie);
    }
    function S(ie) {
      return x(Gt(y(ie), {
        replace: true
      }));
    }
    function _(ie, fe) {
      const F = ie.matched[ie.matched.length - 1];
      if (F && F.redirect) {
        const { redirect: se } = F;
        let ze = typeof se == "function" ? se(ie, fe) : se;
        return typeof ze == "string" && (ze = ze.includes("?") || ze.includes("#") ? ze = y(ze) : {
          path: ze
        }, ze.params = {}), Gt({
          query: ie.query,
          hash: ie.hash,
          params: ze.path != null ? {} : ie.params
        }, ze);
      }
    }
    function C(ie, fe) {
      const F = c = v(ie), se = s.value, ze = ie.state, q = ie.force, J = ie.replace === true, le = _(F, se);
      if (le) return C(Gt(y(le), {
        state: typeof le == "object" ? Gt({}, ze, le.state) : ze,
        force: q,
        replace: J
      }), fe || F);
      const we = F;
      we.redirectedFrom = fe;
      let ke;
      return !q && EH(r, se, F) && (ke = vl(gn.NAVIGATION_DUPLICATED, {
        to: we,
        from: se
      }), re(se, se, true, false)), (ke ? Promise.resolve(ke) : P(we, se)).catch((_e) => qo(_e) ? qo(_e, gn.NAVIGATION_GUARD_REDIRECT) ? _e : xe(_e) : ae(_e, we, se)).then((_e) => {
        if (_e) {
          if (qo(_e, gn.NAVIGATION_GUARD_REDIRECT)) return C(Gt({
            replace: J
          }, y(_e.to), {
            state: typeof _e.to == "object" ? Gt({}, ze, _e.to.state) : ze,
            force: q
          }), fe || we);
        } else _e = E(we, se, true, J, ze);
        return B(we, se, _e), _e;
      });
    }
    function k(ie, fe) {
      const F = w(ie, fe);
      return F ? Promise.reject(F) : Promise.resolve();
    }
    function R(ie) {
      const fe = oe.values().next().value;
      return fe && typeof fe.runWithContext == "function" ? fe.runWithContext(ie) : ie();
    }
    function P(ie, fe) {
      let F;
      const [se, ze, q] = UH(ie, fe);
      F = Hf(se.reverse(), "beforeRouteLeave", ie, fe);
      for (const le of se) le.leaveGuards.forEach((we) => {
        F.push(Si(we, ie, fe));
      });
      const J = k.bind(null, ie, fe);
      return F.push(J), be(F).then(() => {
        F = [];
        for (const le of i.list()) F.push(Si(le, ie, fe));
        return F.push(J), be(F);
      }).then(() => {
        F = Hf(ze, "beforeRouteUpdate", ie, fe);
        for (const le of ze) le.updateGuards.forEach((we) => {
          F.push(Si(we, ie, fe));
        });
        return F.push(J), be(F);
      }).then(() => {
        F = [];
        for (const le of q) if (le.beforeEnter) if (co(le.beforeEnter)) for (const we of le.beforeEnter) F.push(Si(we, ie, fe));
        else F.push(Si(le.beforeEnter, ie, fe));
        return F.push(J), be(F);
      }).then(() => (ie.matched.forEach((le) => le.enterCallbacks = {}), F = Hf(q, "beforeRouteEnter", ie, fe, R), F.push(J), be(F))).then(() => {
        F = [];
        for (const le of a.list()) F.push(Si(le, ie, fe));
        return F.push(J), be(F);
      }).catch((le) => qo(le, gn.NAVIGATION_CANCELLED) ? le : Promise.reject(le));
    }
    function B(ie, fe, F) {
      l.list().forEach((se) => R(() => se(ie, fe, F)));
    }
    function E(ie, fe, F, se, ze) {
      const q = w(ie, fe);
      if (q) return q;
      const J = fe === vi, le = Ka ? history.state : {};
      F && (se || J ? o.replace(ie.fullPath, Gt({
        scroll: J && le && le.scroll
      }, ze)) : o.push(ie.fullPath, ze)), s.value = ie, re(ie, fe, F, J), xe();
    }
    let M;
    function z() {
      M || (M = o.listen((ie, fe, F) => {
        if (!ce.listening) return;
        const se = v(ie), ze = _(se, ce.currentRoute.value);
        if (ze) {
          C(Gt(ze, {
            replace: true,
            force: true
          }), se).catch(bs);
          return;
        }
        c = se;
        const q = s.value;
        Ka && FH(V0(q.fullPath, F.delta), Td()), P(se, q).catch((J) => qo(J, gn.NAVIGATION_ABORTED | gn.NAVIGATION_CANCELLED) ? J : qo(J, gn.NAVIGATION_GUARD_REDIRECT) ? (C(Gt(y(J.to), {
          force: true
        }), se).then((le) => {
          qo(le, gn.NAVIGATION_ABORTED | gn.NAVIGATION_DUPLICATED) && !F.delta && F.type === fp.pop && o.go(-1, false);
        }).catch(bs), Promise.reject()) : (F.delta && o.go(-F.delta, false), ae(J, se, q))).then((J) => {
          J = J || E(se, q, false), J && (F.delta && !qo(J, gn.NAVIGATION_CANCELLED) ? o.go(-F.delta, false) : F.type === fp.pop && qo(J, gn.NAVIGATION_ABORTED | gn.NAVIGATION_DUPLICATED) && o.go(-1, false)), B(se, q, J);
        }).catch(bs);
      }));
    }
    let U = Gl(), ee = Gl(), ne;
    function ae(ie, fe, F) {
      xe(ie);
      const se = ee.list();
      return se.length ? se.forEach((ze) => ze(ie, fe, F)) : console.error(ie), Promise.reject(ie);
    }
    function ye() {
      return ne && s.value !== vi ? Promise.resolve() : new Promise((ie, fe) => {
        U.add([
          ie,
          fe
        ]);
      });
    }
    function xe(ie) {
      return ne || (ne = !ie, z(), U.list().forEach(([fe, F]) => ie ? F(ie) : fe()), U.reset()), ie;
    }
    function re(ie, fe, F, se) {
      const { scrollBehavior: ze } = e;
      if (!Ka || !ze) return Promise.resolve();
      const q = !F && MH(V0(ie.fullPath, 0)) || (se || !F) && history.state && history.state.scroll || null;
      return sn().then(() => ze(ie, fe, q)).then((J) => J && IH(J)).catch((J) => ae(J, ie, fe));
    }
    const Y = (ie) => o.go(ie);
    let H;
    const oe = /* @__PURE__ */ new Set(), ce = {
      currentRoute: s,
      listening: true,
      addRoute: p,
      removeRoute: f,
      clearRoutes: t.clearRoutes,
      hasRoute: b,
      getRoutes: m,
      resolve: v,
      options: e,
      push: x,
      replace: S,
      go: Y,
      back: () => Y(-1),
      forward: () => Y(1),
      beforeEach: i.add,
      beforeResolve: a.add,
      afterEach: l.add,
      onError: ee.add,
      isReady: ye,
      install(ie) {
        ie.component("RouterLink", dj), ie.component("RouterView", mj), ie.config.globalProperties.$router = ce, Object.defineProperty(ie.config.globalProperties, "$route", {
          enumerable: true,
          get: () => O(s)
        }), Ka && !H && s.value === vi && (H = true, x(o.location).catch((se) => {
        }));
        const fe = {};
        for (const se in vi) Object.defineProperty(fe, se, {
          get: () => s.value[se],
          enumerable: true
        });
        ie.provide(Pd, ce), ie.provide(ig, P1(fe)), ie.provide(pp, s);
        const F = ie.unmount;
        oe.add(ie), ie.unmount = function() {
          oe.delete(ie), oe.size < 1 && (c = vi, M && M(), M = null, s.value = vi, H = false, ne = false), F();
        };
      }
    };
    function be(ie) {
      return ie.reduce((fe, F) => fe.then(() => R(F)), Promise.resolve());
    }
    return ce;
  }
  $a = function() {
    return je(Pd);
  };
  ag = function(e) {
    return je(ig);
  };
  let vj, bj, yj, s_, xj, c_, wj, zu, Cj, Sj, _j, kj, Rj, Aj, Ej, Tj, Pj, Dj, $j, zj, Oj, Ij, Fj, Mj, Lj, Bj, Nj, Hj, jj, Wj, Uj, Vj, qj, jc, Gj, Yj, Xj, Jj, oy, Zj, Qj, eW, tW, nW, rW, oW, iW, aW, lW, sW, cW, uW, dW, fW, u_, hW, pW, mW, gW, vW, bW, yW;
  vj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  bj = pe({
    name: "AdminPanelSettingsFilled",
    render: function(t, n) {
      return de(), Ie("svg", vj, n[0] || (n[0] = [
        Me("path", {
          d: "M17 11c.34 0 .67.04 1 .09V6.27L10.5 3L3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82c.55-.13 1.08-.32 1.6-.55c-.69-.98-1.1-2.17-1.1-3.45c0-3.31 2.69-6 6-6z",
          fill: "currentColor"
        }, null, -1),
        Me("path", {
          d: "M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12s-1.12-.51-1.12-1.12s.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17c.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  yj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  s_ = pe({
    name: "ArrowBackIosNewFilled",
    render: function(t, n) {
      return de(), Ie("svg", yj, n[0] || (n[0] = [
        Me("path", {
          d: "M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  xj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  c_ = pe({
    name: "ArrowForwardIosFilled",
    render: function(t, n) {
      return de(), Ie("svg", xj, n[0] || (n[0] = [
        Me("path", {
          d: "M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  wj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  zu = pe({
    name: "CloudDownloadRound",
    render: function(t, n) {
      return de(), Ie("svg", wj, n[0] || (n[0] = [
        Me("path", {
          d: "M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.65-4.96zM17 13l-4.65 4.65c-.2.2-.51.2-.71 0L7 13h3V9h4v4h3z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Cj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Sj = pe({
    name: "CodeRound",
    render: function(t, n) {
      return de(), Ie("svg", Cj, n[0] || (n[0] = [
        Me("path", {
          d: "M8.7 15.9L4.8 12l3.9-3.9a.984.984 0 0 0 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59a.996.996 0 0 0 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0a.984.984 0 0 0 0-1.4zm6.6 0l3.9-3.9l-3.9-3.9a.984.984 0 0 1 0-1.4a.984.984 0 0 1 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6a.984.984 0 0 1-1.4 0a.984.984 0 0 1 0-1.4z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  _j = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  kj = pe({
    name: "ContentCopyFilled",
    render: function(t, n) {
      return de(), Ie("svg", _j, n[0] || (n[0] = [
        Me("path", {
          d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Rj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Aj = pe({
    name: "ContentCopyOutlined",
    render: function(t, n) {
      return de(), Ie("svg", Rj, n[0] || (n[0] = [
        Me("path", {
          d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Ej = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Tj = pe({
    name: "DarkModeFilled",
    render: function(t, n) {
      return de(), Ie("svg", Ej, n[0] || (n[0] = [
        Me("path", {
          d: "M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Pj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Dj = pe({
    name: "EmailOutlined",
    render: function(t, n) {
      return de(), Ie("svg", Pj, n[0] || (n[0] = [
        Me("path", {
          d: "M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5l-8-5h16zm0 12H4V8l8 5l8-5v10z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  $j = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  zj = pe({
    name: "ExitToAppFilled",
    render: function(t, n) {
      return de(), Ie("svg", $j, n[0] || (n[0] = [
        Me("path", {
          d: "M10.09 15.59L11.5 17l5-5l-5-5l-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Oj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Ij = pe({
    name: "ForwardFilled",
    render: function(t, n) {
      return de(), Ie("svg", Oj, n[0] || (n[0] = [
        Me("path", {
          d: "M12 8V4l8 8l-8 8v-4H4V8z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Fj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Mj = pe({
    name: "FullscreenExitOutlined",
    render: function(t, n) {
      return de(), Ie("svg", Fj, n[0] || (n[0] = [
        Me("path", {
          d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Lj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Bj = pe({
    name: "FullscreenRound",
    render: function(t, n) {
      return de(), Ie("svg", Lj, n[0] || (n[0] = [
        Me("path", {
          d: "M6 14c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1H7v-2c0-.55-.45-1-1-1zm0-4c.55 0 1-.45 1-1V7h2c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm11 7h-2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1s-1 .45-1 1v2zM14 6c0 .55.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1V6c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Nj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Hj = pe({
    name: "InboxRound",
    render: function(t, n) {
      return de(), Ie("svg", Nj, n[0] || (n[0] = [
        Me("path", {
          d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v9h-3.56c-.36 0-.68.19-.86.5c-.52.9-1.47 1.5-2.58 1.5s-2.06-.6-2.58-1.5a1 1 0 0 0-.86-.5H5V5h14z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  jj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Wj = pe({
    name: "KeyFilled",
    render: function(t, n) {
      return de(), Ie("svg", jj, n[0] || (n[0] = [
        Me("path", {
          d: "M21 10h-8.35A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H13l2 2l2-2l2 2l4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3s3 1.35 3 3s-1.35 3-3 3z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Uj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Vj = pe({
    name: "LightModeFilled",
    render: function(t, n) {
      return de(), Ie("svg", Uj, n[0] || (n[0] = [
        Me("path", {
          d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  qj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  jc = pe({
    name: "LinkRound",
    render: function(t, n) {
      return de(), Ie("svg", qj, n[0] || (n[0] = [
        Me("path", {
          d: "M17 7h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c1.65 0 3 1.35 3 3s-1.35 3-3 3h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-9 5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1zm2 3H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h3c.55 0 1-.45 1-1s-.45-1-1-1H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h3c.55 0 1-.45 1-1s-.45-1-1-1z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Gj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Kj = pe({
    name: "MenuFilled",
    render: function(t, n) {
      return de(), Ie("svg", Gj, n[0] || (n[0] = [
        Me("path", {
          d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Yj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Xj = pe({
    name: "MonitorHeartFilled",
    render: function(t, n) {
      return de(), Ie("svg", Yj, n[0] || (n[0] = [
        Me("path", {
          d: "M15.11 12.45L14 10.24l-3.11 6.21c-.16.34-.51.55-.89.55s-.73-.21-.89-.55L7.38 13H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5h-6c-.38 0-.73-.21-.89-.55z",
          fill: "currentColor"
        }, null, -1),
        Me("path", {
          d: "M20 4H4c-1.1 0-2 .9-2 2v5h6c.38 0 .73.21.89.55L10 13.76l3.11-6.21c.34-.68 1.45-.68 1.79 0L16.62 11H22V6c0-1.1-.9-2-2-2z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Jj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  oy = pe({
    name: "NewLabelOutlined",
    render: function(t, n) {
      return de(), Ie("svg", Jj, n[0] || (n[0] = [
        Me("path", {
          d: "M21 12l-4.37 6.16c-.37.52-.98.84-1.63.84h-3v-2h3l3.55-5L15 7H5v3H3V7c0-1.1.9-2 2-2h10c.65 0 1.26.31 1.63.84L21 12zm-11 3H7v-3H5v3H2v2h3v3h2v-3h3v-2z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  Zj = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  Qj = pe({
    name: "RefreshFilled",
    render: function(t, n) {
      return de(), Ie("svg", Zj, n[0] || (n[0] = [
        Me("path", {
          d: "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  eW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  tW = pe({
    name: "ReplyFilled",
    render: function(t, n) {
      return de(), Ie("svg", eW, n[0] || (n[0] = [
        Me("path", {
          d: "M10 9V5l-7 7l7 7v-4.1c5 0 8.5 1.6 11 5.1c-1-5-4-10-11-11z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  nW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  rW = pe({
    name: "SendRound",
    render: function(t, n) {
      return de(), Ie("svg", nW, n[0] || (n[0] = [
        Me("path", {
          d: "M3.4 20.4l17.45-7.48a1 1 0 0 0 0-1.84L3.4 3.6a.993.993 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12L2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  oW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 24 24"
  };
  iW = pe({
    name: "SettingsFilled",
    render: function(t, n) {
      return de(), Ie("svg", oW, n[0] || (n[0] = [
        Me("path", {
          d: "M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  aW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 448 512"
  };
  lW = pe({
    name: "Copy",
    render: function(t, n) {
      return de(), Ie("svg", aW, n[0] || (n[0] = [
        Me("path", {
          d: "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  sW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 640 512"
  };
  cW = pe({
    name: "Discord",
    render: function(t, n) {
      return de(), Ie("svg", sW, n[0] || (n[0] = [
        Me("path", {
          d: "M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485.065 485.065 0 0 0 404.081 32.03a1.816 1.816 0 0 0-1.923.91a337.461 337.461 0 0 0-14.9 30.6a447.848 447.848 0 0 0-134.426 0a309.541 309.541 0 0 0-15.135-30.6a1.89 1.89 0 0 0-1.924-.91a483.689 483.689 0 0 0-119.688 37.107a1.712 1.712 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.016 2.016 0 0 0 .765 1.375a487.666 487.666 0 0 0 146.825 74.189a1.9 1.9 0 0 0 2.063-.676A348.2 348.2 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588a321.173 321.173 0 0 1-45.868-21.853a1.885 1.885 0 0 1-.185-3.126a251.047 251.047 0 0 0 9.109-7.137a1.819 1.819 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.812 1.812 0 0 1 1.924.233a234.533 234.533 0 0 0 9.132 7.16a1.884 1.884 0 0 1-.162 3.126a301.407 301.407 0 0 1-45.89 21.83a1.875 1.875 0 0 0-1 2.611a391.055 391.055 0 0 0 30.014 48.815a1.864 1.864 0 0 0 2.063.7A486.048 486.048 0 0 0 610.7 405.729a1.882 1.882 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541zM222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239c0 32.654-23.41 59.241-52.843 59.241zm195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239c0 32.654-23.177 59.241-52.844 59.241z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  uW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 512 512"
  };
  dW = pe({
    name: "ExchangeAlt",
    render: function(t, n) {
      return de(), Ie("svg", uW, n[0] || (n[0] = [
        Me("path", {
          d: "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  fW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 480 512"
  };
  u_ = pe({
    name: "GithubAlt",
    render: function(t, n) {
      return de(), Ie("svg", fW, n[0] || (n[0] = [
        Me("path", {
          d: "M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1s10.9-55.1 36.7-55.1s36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95c-37.9 76.6-142.1 74.8-216.7 74.8c-75.8 0-186.2 2.7-225.6-74.8c-14.6-29-20.2-63.1-20.2-95c0-41.9 13.9-81.5 41.5-113.6c-5.2-15.8-7.7-32.4-7.7-48.8c0-21.5 4.9-32.3 14.6-51.8c45.3 0 74.3 9 108.8 36c29-6.9 58.8-10 88.7-10c27 0 54.2 2.9 80.4 9.2c34-26.7 63-35.2 107.8-35.2c9.8 19.5 14.6 30.3 14.6 51.8c0 16.4-2.6 32.7-7.7 48.2c27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6c-18.9 0-37 3.4-56 6c-14.9 2.3-29.8 3.2-45.1 3.2c-15.2 0-30.1-.9-45.1-3.2c-18.7-2.6-37-6-56-6c-46.8 0-73.5 38.7-73.5 82.6c0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1s36.7-34.2 36.7-55.1s-10.9-55.1-36.7-55.1z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  hW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 576 512"
  };
  pW = pe({
    name: "Home",
    render: function(t, n) {
      return de(), Ie("svg", hW, n[0] || (n[0] = [
        Me("path", {
          d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  mW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 640 512"
  };
  gW = pe({
    name: "Language",
    render: function(t, n) {
      return de(), Ie("svg", mW, n[0] || (n[0] = [
        Me("path", {
          d: "M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9c8.4 6.4 17.1 12.5 26.1 18c5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3c-12.6-7.8-24.5-16.1-35.4-24.9c-10.9 8.7-22.7 17.1-35.4 24.9c-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2c9.3-5.7 18-11.7 26.1-18c-7.9-8.4-14.9-17-21-25.7c-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9l7.3-4.3c5.4-3.2 12.4-1.7 16 3.4c5 7 10.8 14 17.4 20.9c13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  vW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 496 512"
  };
  bW = pe({
    name: "Telegram",
    render: function(t, n) {
      return de(), Ie("svg", vW, n[0] || (n[0] = [
        Me("path", {
          d: "M248 8C111 8 0 119 0 256s111 248 248 248s248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7l-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1l114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4l-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  yW = {
    xmlns: "http://www.w3.org/2000/svg",
    "xmlns:xlink": "http://www.w3.org/1999/xlink",
    viewBox: "0 0 448 512"
  };
  d_ = pe({
    name: "User",
    render: function(t, n) {
      return de(), Ie("svg", yW, n[0] || (n[0] = [
        Me("path", {
          d: "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z",
          fill: "currentColor"
        }, null, -1)
      ]));
    }
  });
  function f_(e, t) {
    return function() {
      return e.apply(t, arguments);
    };
  }
  const { toString: xW } = Object.prototype, { getPrototypeOf: lg } = Object, { iterator: Dd, toStringTag: h_ } = Symbol, $d = /* @__PURE__ */ ((e) => (t) => {
    const n = xW.call(t);
    return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
  })(/* @__PURE__ */ Object.create(null)), ho = (e) => (e = e.toLowerCase(), (t) => $d(t) === e), zd = (e) => (t) => typeof t === e, { isArray: $l } = Array, bl = zd("undefined");
  function ac(e) {
    return e !== null && !bl(e) && e.constructor !== null && !bl(e.constructor) && gr(e.constructor.isBuffer) && e.constructor.isBuffer(e);
  }
  const p_ = ho("ArrayBuffer");
  function wW(e) {
    let t;
    return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && p_(e.buffer), t;
  }
  const CW = zd("string"), gr = zd("function"), m_ = zd("number"), lc = (e) => e !== null && typeof e == "object", SW = (e) => e === true || e === false, nu = (e) => {
    if ($d(e) !== "object") return false;
    const t = lg(e);
    return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(h_ in e) && !(Dd in e);
  }, _W = (e) => {
    if (!lc(e) || ac(e)) return false;
    try {
      return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
    } catch {
      return false;
    }
  }, kW = ho("Date"), RW = ho("File"), AW = (e) => !!(e && typeof e.uri < "u"), EW = (e) => e && typeof e.getParts < "u", TW = ho("Blob"), PW = ho("FileList"), DW = (e) => lc(e) && gr(e.pipe);
  function $W() {
    return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
  }
  const iy = $W(), ay = typeof iy.FormData < "u" ? iy.FormData : void 0, zW = (e) => {
    let t;
    return e && (ay && e instanceof ay || gr(e.append) && ((t = $d(e)) === "formdata" || t === "object" && gr(e.toString) && e.toString() === "[object FormData]"));
  }, OW = ho("URLSearchParams"), [IW, FW, MW, LW] = [
    "ReadableStream",
    "Request",
    "Response",
    "Headers"
  ].map(ho), BW = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  function sc(e, t, { allOwnKeys: n = false } = {}) {
    if (e === null || typeof e > "u") return;
    let r, o;
    if (typeof e != "object" && (e = [
      e
    ]), $l(e)) for (r = 0, o = e.length; r < o; r++) t.call(null, e[r], r, e);
    else {
      if (ac(e)) return;
      const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
      let l;
      for (r = 0; r < a; r++) l = i[r], t.call(null, e[l], l, e);
    }
  }
  function g_(e, t) {
    if (ac(e)) return null;
    t = t.toLowerCase();
    const n = Object.keys(e);
    let r = n.length, o;
    for (; r-- > 0; ) if (o = n[r], t === o.toLowerCase()) return o;
    return null;
  }
  const ea = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, v_ = (e) => !bl(e) && e !== ea;
  function mp() {
    const { caseless: e, skipUndefined: t } = v_(this) && this || {}, n = {}, r = (o, i) => {
      if (i === "__proto__" || i === "constructor" || i === "prototype") return;
      const a = e && g_(n, i) || i;
      nu(n[a]) && nu(o) ? n[a] = mp(n[a], o) : nu(o) ? n[a] = mp({}, o) : $l(o) ? n[a] = o.slice() : (!t || !bl(o)) && (n[a] = o);
    };
    for (let o = 0, i = arguments.length; o < i; o++) arguments[o] && sc(arguments[o], r);
    return n;
  }
  const NW = (e, t, n, { allOwnKeys: r } = {}) => (sc(t, (o, i) => {
    n && gr(o) ? Object.defineProperty(e, i, {
      value: f_(o, n),
      writable: true,
      enumerable: true,
      configurable: true
    }) : Object.defineProperty(e, i, {
      value: o,
      writable: true,
      enumerable: true,
      configurable: true
    });
  }, {
    allOwnKeys: r
  }), e), HW = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jW = (e, t, n, r) => {
    e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
      value: e,
      writable: true,
      enumerable: false,
      configurable: true
    }), Object.defineProperty(e, "super", {
      value: t.prototype
    }), n && Object.assign(e.prototype, n);
  }, WW = (e, t, n, r) => {
    let o, i, a;
    const l = {};
    if (t = t || {}, e == null) return t;
    do {
      for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; ) a = o[i], (!r || r(a, e, t)) && !l[a] && (t[a] = e[a], l[a] = true);
      e = n !== false && lg(e);
    } while (e && (!n || n(e, t)) && e !== Object.prototype);
    return t;
  }, UW = (e, t, n) => {
    e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
    const r = e.indexOf(t, n);
    return r !== -1 && r === n;
  }, VW = (e) => {
    if (!e) return null;
    if ($l(e)) return e;
    let t = e.length;
    if (!m_(t)) return null;
    const n = new Array(t);
    for (; t-- > 0; ) n[t] = e[t];
    return n;
  }, qW = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && lg(Uint8Array)), GW = (e, t) => {
    const r = (e && e[Dd]).call(e);
    let o;
    for (; (o = r.next()) && !o.done; ) {
      const i = o.value;
      t.call(e, i[0], i[1]);
    }
  }, KW = (e, t) => {
    let n;
    const r = [];
    for (; (n = e.exec(t)) !== null; ) r.push(n);
    return r;
  }, YW = ho("HTMLFormElement"), XW = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, o) {
    return r.toUpperCase() + o;
  }), ly = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), JW = ho("RegExp"), b_ = (e, t) => {
    const n = Object.getOwnPropertyDescriptors(e), r = {};
    sc(n, (o, i) => {
      let a;
      (a = t(o, i, e)) !== false && (r[i] = a || o);
    }), Object.defineProperties(e, r);
  }, ZW = (e) => {
    b_(e, (t, n) => {
      if (gr(e) && [
        "arguments",
        "caller",
        "callee"
      ].indexOf(n) !== -1) return false;
      const r = e[n];
      if (gr(r)) {
        if (t.enumerable = false, "writable" in t) {
          t.writable = false;
          return;
        }
        t.set || (t.set = () => {
          throw Error("Can not rewrite read-only method '" + n + "'");
        });
      }
    });
  }, QW = (e, t) => {
    const n = {}, r = (o) => {
      o.forEach((i) => {
        n[i] = true;
      });
    };
    return $l(e) ? r(e) : r(String(e).split(t)), n;
  }, eU = () => {
  }, tU = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
  function nU(e) {
    return !!(e && gr(e.append) && e[h_] === "FormData" && e[Dd]);
  }
  const rU = (e) => {
    const t = new Array(10), n = (r, o) => {
      if (lc(r)) {
        if (t.indexOf(r) >= 0) return;
        if (ac(r)) return r;
        if (!("toJSON" in r)) {
          t[o] = r;
          const i = $l(r) ? [] : {};
          return sc(r, (a, l) => {
            const s = n(a, o + 1);
            !bl(s) && (i[l] = s);
          }), t[o] = void 0, i;
        }
      }
      return r;
    };
    return n(e, 0);
  }, oU = ho("AsyncFunction"), iU = (e) => e && (lc(e) || gr(e)) && gr(e.then) && gr(e.catch), y_ = ((e, t) => e ? setImmediate : t ? ((n, r) => (ea.addEventListener("message", ({ source: o, data: i }) => {
    o === ea && i === n && r.length && r.shift()();
  }, false), (o) => {
    r.push(o), ea.postMessage(n, "*");
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", gr(ea.postMessage)), aU = typeof queueMicrotask < "u" ? queueMicrotask.bind(ea) : typeof process < "u" && process.nextTick || y_, lU = (e) => e != null && gr(e[Dd]), Re = {
    isArray: $l,
    isArrayBuffer: p_,
    isBuffer: ac,
    isFormData: zW,
    isArrayBufferView: wW,
    isString: CW,
    isNumber: m_,
    isBoolean: SW,
    isObject: lc,
    isPlainObject: nu,
    isEmptyObject: _W,
    isReadableStream: IW,
    isRequest: FW,
    isResponse: MW,
    isHeaders: LW,
    isUndefined: bl,
    isDate: kW,
    isFile: RW,
    isReactNativeBlob: AW,
    isReactNative: EW,
    isBlob: TW,
    isRegExp: JW,
    isFunction: gr,
    isStream: DW,
    isURLSearchParams: OW,
    isTypedArray: qW,
    isFileList: PW,
    forEach: sc,
    merge: mp,
    extend: NW,
    trim: BW,
    stripBOM: HW,
    inherits: jW,
    toFlatObject: WW,
    kindOf: $d,
    kindOfTest: ho,
    endsWith: UW,
    toArray: VW,
    forEachEntry: GW,
    matchAll: KW,
    isHTMLForm: YW,
    hasOwnProperty: ly,
    hasOwnProp: ly,
    reduceDescriptors: b_,
    freezeMethods: ZW,
    toObjectSet: QW,
    toCamelCase: XW,
    noop: eU,
    toFiniteNumber: tU,
    findKey: g_,
    global: ea,
    isContextDefined: v_,
    isSpecCompliantForm: nU,
    toJSONObject: rU,
    isAsyncFn: oU,
    isThenable: iU,
    setImmediate: y_,
    asap: aU,
    isIterable: lU
  };
  let vt = class x_ extends Error {
    static from(t, n, r, o, i, a) {
      const l = new x_(t.message, n || t.code, r, o, i);
      return l.cause = t, l.name = t.name, t.status != null && l.status == null && (l.status = t.status), a && Object.assign(l, a), l;
    }
    constructor(t, n, r, o, i) {
      super(t), Object.defineProperty(this, "message", {
        value: t,
        enumerable: true,
        writable: true,
        configurable: true
      }), this.name = "AxiosError", this.isAxiosError = true, n && (this.code = n), r && (this.config = r), o && (this.request = o), i && (this.response = i, this.status = i.status);
    }
    toJSON() {
      return {
        message: this.message,
        name: this.name,
        description: this.description,
        number: this.number,
        fileName: this.fileName,
        lineNumber: this.lineNumber,
        columnNumber: this.columnNumber,
        stack: this.stack,
        config: Re.toJSONObject(this.config),
        code: this.code,
        status: this.status
      };
    }
  };
  vt.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
  vt.ERR_BAD_OPTION = "ERR_BAD_OPTION";
  vt.ECONNABORTED = "ECONNABORTED";
  vt.ETIMEDOUT = "ETIMEDOUT";
  vt.ERR_NETWORK = "ERR_NETWORK";
  vt.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
  vt.ERR_DEPRECATED = "ERR_DEPRECATED";
  vt.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
  vt.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
  vt.ERR_CANCELED = "ERR_CANCELED";
  vt.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
  vt.ERR_INVALID_URL = "ERR_INVALID_URL";
  const sU = null;
  function gp(e) {
    return Re.isPlainObject(e) || Re.isArray(e);
  }
  function w_(e) {
    return Re.endsWith(e, "[]") ? e.slice(0, -2) : e;
  }
  function jf(e, t, n) {
    return e ? e.concat(t).map(function(o, i) {
      return o = w_(o), !n && i ? "[" + o + "]" : o;
    }).join(n ? "." : "") : t;
  }
  function cU(e) {
    return Re.isArray(e) && !e.some(gp);
  }
  const uU = Re.toFlatObject(Re, {}, null, function(t) {
    return /^is[A-Z]/.test(t);
  });
  function Od(e, t, n) {
    if (!Re.isObject(e)) throw new TypeError("target must be an object");
    t = t || new FormData(), n = Re.toFlatObject(n, {
      metaTokens: true,
      dots: false,
      indexes: false
    }, false, function(m, b) {
      return !Re.isUndefined(b[m]);
    });
    const r = n.metaTokens, o = n.visitor || u, i = n.dots, a = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && Re.isSpecCompliantForm(t);
    if (!Re.isFunction(o)) throw new TypeError("visitor must be a function");
    function c(f) {
      if (f === null) return "";
      if (Re.isDate(f)) return f.toISOString();
      if (Re.isBoolean(f)) return f.toString();
      if (!s && Re.isBlob(f)) throw new vt("Blob is not supported. Use a Buffer instead.");
      return Re.isArrayBuffer(f) || Re.isTypedArray(f) ? s && typeof Blob == "function" ? new Blob([
        f
      ]) : Buffer.from(f) : f;
    }
    function u(f, m, b) {
      let v = f;
      if (Re.isReactNative(t) && Re.isReactNativeBlob(f)) return t.append(jf(b, m, i), c(f)), false;
      if (f && !b && typeof f == "object") {
        if (Re.endsWith(m, "{}")) m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
        else if (Re.isArray(f) && cU(f) || (Re.isFileList(f) || Re.endsWith(m, "[]")) && (v = Re.toArray(f))) return m = w_(m), v.forEach(function(w, x) {
          !(Re.isUndefined(w) || w === null) && t.append(a === true ? jf([
            m
          ], x, i) : a === null ? m : m + "[]", c(w));
        }), false;
      }
      return gp(f) ? true : (t.append(jf(b, m, i), c(f)), false);
    }
    const d = [], h = Object.assign(uU, {
      defaultVisitor: u,
      convertValue: c,
      isVisitable: gp
    });
    function p(f, m) {
      if (!Re.isUndefined(f)) {
        if (d.indexOf(f) !== -1) throw Error("Circular reference detected in " + m.join("."));
        d.push(f), Re.forEach(f, function(v, y) {
          (!(Re.isUndefined(v) || v === null) && o.call(t, v, Re.isString(y) ? y.trim() : y, m, h)) === true && p(v, m ? m.concat(y) : [
            y
          ]);
        }), d.pop();
      }
    }
    if (!Re.isObject(e)) throw new TypeError("data must be an object");
    return p(e), t;
  }
  function sy(e) {
    const t = {
      "!": "%21",
      "'": "%27",
      "(": "%28",
      ")": "%29",
      "~": "%7E",
      "%20": "+",
      "%00": "\0"
    };
    return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
      return t[r];
    });
  }
  function sg(e, t) {
    this._pairs = [], e && Od(e, this, t);
  }
  const C_ = sg.prototype;
  C_.append = function(t, n) {
    this._pairs.push([
      t,
      n
    ]);
  };
  C_.toString = function(t) {
    const n = t ? function(r) {
      return t.call(this, r, sy);
    } : sy;
    return this._pairs.map(function(o) {
      return n(o[0]) + "=" + n(o[1]);
    }, "").join("&");
  };
  function dU(e) {
    return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
  }
  function S_(e, t, n) {
    if (!t) return e;
    const r = n && n.encode || dU, o = Re.isFunction(n) ? {
      serialize: n
    } : n, i = o && o.serialize;
    let a;
    if (i ? a = i(t, o) : a = Re.isURLSearchParams(t) ? t.toString() : new sg(t, o).toString(r), a) {
      const l = e.indexOf("#");
      l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
    }
    return e;
  }
  class cy {
    constructor() {
      this.handlers = [];
    }
    use(t, n, r) {
      return this.handlers.push({
        fulfilled: t,
        rejected: n,
        synchronous: r ? r.synchronous : false,
        runWhen: r ? r.runWhen : null
      }), this.handlers.length - 1;
    }
    eject(t) {
      this.handlers[t] && (this.handlers[t] = null);
    }
    clear() {
      this.handlers && (this.handlers = []);
    }
    forEach(t) {
      Re.forEach(this.handlers, function(r) {
        r !== null && t(r);
      });
    }
  }
  const cg = {
    silentJSONParsing: true,
    forcedJSONParsing: true,
    clarifyTimeoutError: false,
    legacyInterceptorReqResOrdering: true
  }, fU = typeof URLSearchParams < "u" ? URLSearchParams : sg, hU = typeof FormData < "u" ? FormData : null, pU = typeof Blob < "u" ? Blob : null, mU = {
    isBrowser: true,
    classes: {
      URLSearchParams: fU,
      FormData: hU,
      Blob: pU
    },
    protocols: [
      "http",
      "https",
      "file",
      "blob",
      "url",
      "data"
    ]
  }, ug = typeof window < "u" && typeof document < "u", vp = typeof navigator == "object" && navigator || void 0, gU = ug && (!vp || [
    "ReactNative",
    "NativeScript",
    "NS"
  ].indexOf(vp.product) < 0), vU = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", bU = ug && window.location.href || "http://localhost", yU = Object.freeze(Object.defineProperty({
    __proto__: null,
    hasBrowserEnv: ug,
    hasStandardBrowserEnv: gU,
    hasStandardBrowserWebWorkerEnv: vU,
    navigator: vp,
    origin: bU
  }, Symbol.toStringTag, {
    value: "Module"
  })), tr = {
    ...yU,
    ...mU
  };
  function xU(e, t) {
    return Od(e, new tr.classes.URLSearchParams(), {
      visitor: function(n, r, o, i) {
        return tr.isNode && Re.isBuffer(n) ? (this.append(r, n.toString("base64")), false) : i.defaultVisitor.apply(this, arguments);
      },
      ...t
    });
  }
  function wU(e) {
    return Re.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
  }
  function CU(e) {
    const t = {}, n = Object.keys(e);
    let r;
    const o = n.length;
    let i;
    for (r = 0; r < o; r++) i = n[r], t[i] = e[i];
    return t;
  }
  function __(e) {
    function t(n, r, o, i) {
      let a = n[i++];
      if (a === "__proto__") return true;
      const l = Number.isFinite(+a), s = i >= n.length;
      return a = !a && Re.isArray(o) ? o.length : a, s ? (Re.hasOwnProp(o, a) ? o[a] = [
        o[a],
        r
      ] : o[a] = r, !l) : ((!o[a] || !Re.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && Re.isArray(o[a]) && (o[a] = CU(o[a])), !l);
    }
    if (Re.isFormData(e) && Re.isFunction(e.entries)) {
      const n = {};
      return Re.forEachEntry(e, (r, o) => {
        t(wU(r), o, n, 0);
      }), n;
    }
    return null;
  }
  function SU(e, t, n) {
    if (Re.isString(e)) try {
      return (t || JSON.parse)(e), Re.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError") throw r;
    }
    return (n || JSON.stringify)(e);
  }
  const cc = {
    transitional: cg,
    adapter: [
      "xhr",
      "http",
      "fetch"
    ],
    transformRequest: [
      function(t, n) {
        const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = Re.isObject(t);
        if (i && Re.isHTMLForm(t) && (t = new FormData(t)), Re.isFormData(t)) return o ? JSON.stringify(__(t)) : t;
        if (Re.isArrayBuffer(t) || Re.isBuffer(t) || Re.isStream(t) || Re.isFile(t) || Re.isBlob(t) || Re.isReadableStream(t)) return t;
        if (Re.isArrayBufferView(t)) return t.buffer;
        if (Re.isURLSearchParams(t)) return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", false), t.toString();
        let l;
        if (i) {
          if (r.indexOf("application/x-www-form-urlencoded") > -1) return xU(t, this.formSerializer).toString();
          if ((l = Re.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
            const s = this.env && this.env.FormData;
            return Od(l ? {
              "files[]": t
            } : t, s && new s(), this.formSerializer);
          }
        }
        return i || o ? (n.setContentType("application/json", false), SU(t)) : t;
      }
    ],
    transformResponse: [
      function(t) {
        const n = this.transitional || cc.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
        if (Re.isResponse(t) || Re.isReadableStream(t)) return t;
        if (t && Re.isString(t) && (r && !this.responseType || o)) {
          const a = !(n && n.silentJSONParsing) && o;
          try {
            return JSON.parse(t, this.parseReviver);
          } catch (l) {
            if (a) throw l.name === "SyntaxError" ? vt.from(l, vt.ERR_BAD_RESPONSE, this, null, this.response) : l;
          }
        }
        return t;
      }
    ],
    timeout: 0,
    xsrfCookieName: "XSRF-TOKEN",
    xsrfHeaderName: "X-XSRF-TOKEN",
    maxContentLength: -1,
    maxBodyLength: -1,
    env: {
      FormData: tr.classes.FormData,
      Blob: tr.classes.Blob
    },
    validateStatus: function(t) {
      return t >= 200 && t < 300;
    },
    headers: {
      common: {
        Accept: "application/json, text/plain, */*",
        "Content-Type": void 0
      }
    }
  };
  Re.forEach([
    "delete",
    "get",
    "head",
    "post",
    "put",
    "patch"
  ], (e) => {
    cc.headers[e] = {};
  });
  const _U = Re.toObjectSet([
    "age",
    "authorization",
    "content-length",
    "content-type",
    "etag",
    "expires",
    "from",
    "host",
    "if-modified-since",
    "if-unmodified-since",
    "last-modified",
    "location",
    "max-forwards",
    "proxy-authorization",
    "referer",
    "retry-after",
    "user-agent"
  ]), kU = (e) => {
    const t = {};
    let n, r, o;
    return e && e.split(`
`).forEach(function(a) {
      o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && _U[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [
        r
      ] : t[n] = t[n] ? t[n] + ", " + r : r);
    }), t;
  }, uy = /* @__PURE__ */ Symbol("internals");
  function Kl(e) {
    return e && String(e).trim().toLowerCase();
  }
  function ru(e) {
    return e === false || e == null ? e : Re.isArray(e) ? e.map(ru) : String(e);
  }
  function RU(e) {
    const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
    let r;
    for (; r = n.exec(e); ) t[r[1]] = r[2];
    return t;
  }
  const AU = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
  function Wf(e, t, n, r, o) {
    if (Re.isFunction(r)) return r.call(this, t, n);
    if (o && (t = n), !!Re.isString(t)) {
      if (Re.isString(r)) return t.indexOf(r) !== -1;
      if (Re.isRegExp(r)) return r.test(t);
    }
  }
  function EU(e) {
    return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
  }
  function TU(e, t) {
    const n = Re.toCamelCase(" " + t);
    [
      "get",
      "set",
      "has"
    ].forEach((r) => {
      Object.defineProperty(e, r + n, {
        value: function(o, i, a) {
          return this[r].call(this, t, o, i, a);
        },
        configurable: true
      });
    });
  }
  let vr = class {
    constructor(t) {
      t && this.set(t);
    }
    set(t, n, r) {
      const o = this;
      function i(l, s, c) {
        const u = Kl(s);
        if (!u) throw new Error("header name must be a non-empty string");
        const d = Re.findKey(o, u);
        (!d || o[d] === void 0 || c === true || c === void 0 && o[d] !== false) && (o[d || s] = ru(l));
      }
      const a = (l, s) => Re.forEach(l, (c, u) => i(c, u, s));
      if (Re.isPlainObject(t) || t instanceof this.constructor) a(t, n);
      else if (Re.isString(t) && (t = t.trim()) && !AU(t)) a(kU(t), n);
      else if (Re.isObject(t) && Re.isIterable(t)) {
        let l = {}, s, c;
        for (const u of t) {
          if (!Re.isArray(u)) throw TypeError("Object iterator must return a key-value pair");
          l[c = u[0]] = (s = l[c]) ? Re.isArray(s) ? [
            ...s,
            u[1]
          ] : [
            s,
            u[1]
          ] : u[1];
        }
        a(l, n);
      } else t != null && i(n, t, r);
      return this;
    }
    get(t, n) {
      if (t = Kl(t), t) {
        const r = Re.findKey(this, t);
        if (r) {
          const o = this[r];
          if (!n) return o;
          if (n === true) return RU(o);
          if (Re.isFunction(n)) return n.call(this, o, r);
          if (Re.isRegExp(n)) return n.exec(o);
          throw new TypeError("parser must be boolean|regexp|function");
        }
      }
    }
    has(t, n) {
      if (t = Kl(t), t) {
        const r = Re.findKey(this, t);
        return !!(r && this[r] !== void 0 && (!n || Wf(this, this[r], r, n)));
      }
      return false;
    }
    delete(t, n) {
      const r = this;
      let o = false;
      function i(a) {
        if (a = Kl(a), a) {
          const l = Re.findKey(r, a);
          l && (!n || Wf(r, r[l], l, n)) && (delete r[l], o = true);
        }
      }
      return Re.isArray(t) ? t.forEach(i) : i(t), o;
    }
    clear(t) {
      const n = Object.keys(this);
      let r = n.length, o = false;
      for (; r--; ) {
        const i = n[r];
        (!t || Wf(this, this[i], i, t, true)) && (delete this[i], o = true);
      }
      return o;
    }
    normalize(t) {
      const n = this, r = {};
      return Re.forEach(this, (o, i) => {
        const a = Re.findKey(r, i);
        if (a) {
          n[a] = ru(o), delete n[i];
          return;
        }
        const l = t ? EU(i) : String(i).trim();
        l !== i && delete n[i], n[l] = ru(o), r[l] = true;
      }), this;
    }
    concat(...t) {
      return this.constructor.concat(this, ...t);
    }
    toJSON(t) {
      const n = /* @__PURE__ */ Object.create(null);
      return Re.forEach(this, (r, o) => {
        r != null && r !== false && (n[o] = t && Re.isArray(r) ? r.join(", ") : r);
      }), n;
    }
    [Symbol.iterator]() {
      return Object.entries(this.toJSON())[Symbol.iterator]();
    }
    toString() {
      return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
    }
    getSetCookie() {
      return this.get("set-cookie") || [];
    }
    get [Symbol.toStringTag]() {
      return "AxiosHeaders";
    }
    static from(t) {
      return t instanceof this ? t : new this(t);
    }
    static concat(t, ...n) {
      const r = new this(t);
      return n.forEach((o) => r.set(o)), r;
    }
    static accessor(t) {
      const r = (this[uy] = this[uy] = {
        accessors: {}
      }).accessors, o = this.prototype;
      function i(a) {
        const l = Kl(a);
        r[l] || (TU(o, a), r[l] = true);
      }
      return Re.isArray(t) ? t.forEach(i) : i(t), this;
    }
  };
  vr.accessor([
    "Content-Type",
    "Content-Length",
    "Accept",
    "Accept-Encoding",
    "User-Agent",
    "Authorization"
  ]);
  Re.reduceDescriptors(vr.prototype, ({ value: e }, t) => {
    let n = t[0].toUpperCase() + t.slice(1);
    return {
      get: () => e,
      set(r) {
        this[n] = r;
      }
    };
  });
  Re.freezeMethods(vr);
  function Uf(e, t) {
    const n = this || cc, r = t || n, o = vr.from(r.headers);
    let i = r.data;
    return Re.forEach(e, function(l) {
      i = l.call(n, i, o.normalize(), t ? t.status : void 0);
    }), o.normalize(), i;
  }
  function k_(e) {
    return !!(e && e.__CANCEL__);
  }
  let uc = class extends vt {
    constructor(t, n, r) {
      super(t ?? "canceled", vt.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = true;
    }
  };
  function R_(e, t, n) {
    const r = n.config.validateStatus;
    !n.status || !r || r(n.status) ? e(n) : t(new vt("Request failed with status code " + n.status, [
      vt.ERR_BAD_REQUEST,
      vt.ERR_BAD_RESPONSE
    ][Math.floor(n.status / 100) - 4], n.config, n.request, n));
  }
  function PU(e) {
    const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
    return t && t[1] || "";
  }
  function DU(e, t) {
    e = e || 10;
    const n = new Array(e), r = new Array(e);
    let o = 0, i = 0, a;
    return t = t !== void 0 ? t : 1e3, function(s) {
      const c = Date.now(), u = r[i];
      a || (a = c), n[o] = s, r[o] = c;
      let d = i, h = 0;
      for (; d !== o; ) h += n[d++], d = d % e;
      if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - a < t) return;
      const p = u && c - u;
      return p ? Math.round(h * 1e3 / p) : void 0;
    };
  }
  function $U(e, t) {
    let n = 0, r = 1e3 / t, o, i;
    const a = (c, u = Date.now()) => {
      n = u, o = null, i && (clearTimeout(i), i = null), e(...c);
    };
    return [
      (...c) => {
        const u = Date.now(), d = u - n;
        d >= r ? a(c, u) : (o = c, i || (i = setTimeout(() => {
          i = null, a(o);
        }, r - d)));
      },
      () => o && a(o)
    ];
  }
  const Ou = (e, t, n = 3) => {
    let r = 0;
    const o = DU(50, 250);
    return $U((i) => {
      const a = i.loaded, l = i.lengthComputable ? i.total : void 0, s = a - r, c = o(s), u = a <= l;
      r = a;
      const d = {
        loaded: a,
        total: l,
        progress: l ? a / l : void 0,
        bytes: s,
        rate: c || void 0,
        estimated: c && l && u ? (l - a) / c : void 0,
        event: i,
        lengthComputable: l != null,
        [t ? "download" : "upload"]: true
      };
      e(d);
    }, n);
  }, dy = (e, t) => {
    const n = e != null;
    return [
      (r) => t[0]({
        lengthComputable: n,
        total: e,
        loaded: r
      }),
      t[1]
    ];
  }, fy = (e) => (...t) => Re.asap(() => e(...t)), zU = tr.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, tr.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(tr.origin), tr.navigator && /(msie|trident)/i.test(tr.navigator.userAgent)) : () => true, OU = tr.hasStandardBrowserEnv ? {
    write(e, t, n, r, o, i, a) {
      if (typeof document > "u") return;
      const l = [
        `${e}=${encodeURIComponent(t)}`
      ];
      Re.isNumber(n) && l.push(`expires=${new Date(n).toUTCString()}`), Re.isString(r) && l.push(`path=${r}`), Re.isString(o) && l.push(`domain=${o}`), i === true && l.push("secure"), Re.isString(a) && l.push(`SameSite=${a}`), document.cookie = l.join("; ");
    },
    read(e) {
      if (typeof document > "u") return null;
      const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
      return t ? decodeURIComponent(t[1]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5, "/");
    }
  } : {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  };
  function IU(e) {
    return typeof e != "string" ? false : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
  }
  function FU(e, t) {
    return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
  }
  function A_(e, t, n) {
    let r = !IU(t);
    return e && (r || n == false) ? FU(e, t) : t;
  }
  const hy = (e) => e instanceof vr ? {
    ...e
  } : e;
  function va(e, t) {
    t = t || {};
    const n = {};
    function r(c, u, d, h) {
      return Re.isPlainObject(c) && Re.isPlainObject(u) ? Re.merge.call({
        caseless: h
      }, c, u) : Re.isPlainObject(u) ? Re.merge({}, u) : Re.isArray(u) ? u.slice() : u;
    }
    function o(c, u, d, h) {
      if (Re.isUndefined(u)) {
        if (!Re.isUndefined(c)) return r(void 0, c, d, h);
      } else return r(c, u, d, h);
    }
    function i(c, u) {
      if (!Re.isUndefined(u)) return r(void 0, u);
    }
    function a(c, u) {
      if (Re.isUndefined(u)) {
        if (!Re.isUndefined(c)) return r(void 0, c);
      } else return r(void 0, u);
    }
    function l(c, u, d) {
      if (d in t) return r(c, u);
      if (d in e) return r(void 0, c);
    }
    const s = {
      url: i,
      method: i,
      data: i,
      baseURL: a,
      transformRequest: a,
      transformResponse: a,
      paramsSerializer: a,
      timeout: a,
      timeoutMessage: a,
      withCredentials: a,
      withXSRFToken: a,
      adapter: a,
      responseType: a,
      xsrfCookieName: a,
      xsrfHeaderName: a,
      onUploadProgress: a,
      onDownloadProgress: a,
      decompress: a,
      maxContentLength: a,
      maxBodyLength: a,
      beforeRedirect: a,
      transport: a,
      httpAgent: a,
      httpsAgent: a,
      cancelToken: a,
      socketPath: a,
      responseEncoding: a,
      validateStatus: l,
      headers: (c, u, d) => o(hy(c), hy(u), d, true)
    };
    return Re.forEach(Object.keys({
      ...e,
      ...t
    }), function(u) {
      if (u === "__proto__" || u === "constructor" || u === "prototype") return;
      const d = Re.hasOwnProp(s, u) ? s[u] : o, h = d(e[u], t[u], u);
      Re.isUndefined(h) && d !== l || (n[u] = h);
    }), n;
  }
  const E_ = (e) => {
    const t = va({}, e);
    let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: a, auth: l } = t;
    if (t.headers = a = vr.from(a), t.url = S_(A_(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && a.set("Authorization", "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))), Re.isFormData(n)) {
      if (tr.hasStandardBrowserEnv || tr.hasStandardBrowserWebWorkerEnv) a.setContentType(void 0);
      else if (Re.isFunction(n.getHeaders)) {
        const s = n.getHeaders(), c = [
          "content-type",
          "content-length"
        ];
        Object.entries(s).forEach(([u, d]) => {
          c.includes(u.toLowerCase()) && a.set(u, d);
        });
      }
    }
    if (tr.hasStandardBrowserEnv && (r && Re.isFunction(r) && (r = r(t)), r || r !== false && zU(t.url))) {
      const s = o && i && OU.read(i);
      s && a.set(o, s);
    }
    return t;
  }, MU = typeof XMLHttpRequest < "u", LU = MU && function(e) {
    return new Promise(function(n, r) {
      const o = E_(e);
      let i = o.data;
      const a = vr.from(o.headers).normalize();
      let { responseType: l, onUploadProgress: s, onDownloadProgress: c } = o, u, d, h, p, f;
      function m() {
        p && p(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
      }
      let b = new XMLHttpRequest();
      b.open(o.method.toUpperCase(), o.url, true), b.timeout = o.timeout;
      function v() {
        if (!b) return;
        const w = vr.from("getAllResponseHeaders" in b && b.getAllResponseHeaders()), S = {
          data: !l || l === "text" || l === "json" ? b.responseText : b.response,
          status: b.status,
          statusText: b.statusText,
          headers: w,
          config: e,
          request: b
        };
        R_(function(C) {
          n(C), m();
        }, function(C) {
          r(C), m();
        }, S), b = null;
      }
      "onloadend" in b ? b.onloadend = v : b.onreadystatechange = function() {
        !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(v);
      }, b.onabort = function() {
        b && (r(new vt("Request aborted", vt.ECONNABORTED, e, b)), b = null);
      }, b.onerror = function(x) {
        const S = x && x.message ? x.message : "Network Error", _ = new vt(S, vt.ERR_NETWORK, e, b);
        _.event = x || null, r(_), b = null;
      }, b.ontimeout = function() {
        let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
        const S = o.transitional || cg;
        o.timeoutErrorMessage && (x = o.timeoutErrorMessage), r(new vt(x, S.clarifyTimeoutError ? vt.ETIMEDOUT : vt.ECONNABORTED, e, b)), b = null;
      }, i === void 0 && a.setContentType(null), "setRequestHeader" in b && Re.forEach(a.toJSON(), function(x, S) {
        b.setRequestHeader(S, x);
      }), Re.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), l && l !== "json" && (b.responseType = o.responseType), c && ([h, f] = Ou(c, true), b.addEventListener("progress", h)), s && b.upload && ([d, p] = Ou(s), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (u = (w) => {
        b && (r(!w || w.type ? new uc(null, e, b) : w), b.abort(), b = null);
      }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
      const y = PU(o.url);
      if (y && tr.protocols.indexOf(y) === -1) {
        r(new vt("Unsupported protocol " + y + ":", vt.ERR_BAD_REQUEST, e));
        return;
      }
      b.send(i || null);
    });
  }, BU = (e, t) => {
    const { length: n } = e = e ? e.filter(Boolean) : [];
    if (t || n) {
      let r = new AbortController(), o;
      const i = function(c) {
        if (!o) {
          o = true, l();
          const u = c instanceof Error ? c : this.reason;
          r.abort(u instanceof vt ? u : new uc(u instanceof Error ? u.message : u));
        }
      };
      let a = t && setTimeout(() => {
        a = null, i(new vt(`timeout of ${t}ms exceeded`, vt.ETIMEDOUT));
      }, t);
      const l = () => {
        e && (a && clearTimeout(a), a = null, e.forEach((c) => {
          c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
        }), e = null);
      };
      e.forEach((c) => c.addEventListener("abort", i));
      const { signal: s } = r;
      return s.unsubscribe = () => Re.asap(l), s;
    }
  }, NU = function* (e, t) {
    let n = e.byteLength;
    if (n < t) {
      yield e;
      return;
    }
    let r = 0, o;
    for (; r < n; ) o = r + t, yield e.slice(r, o), r = o;
  }, HU = async function* (e, t) {
    for await (const n of jU(e)) yield* NU(n, t);
  }, jU = async function* (e) {
    if (e[Symbol.asyncIterator]) {
      yield* e;
      return;
    }
    const t = e.getReader();
    try {
      for (; ; ) {
        const { done: n, value: r } = await t.read();
        if (n) break;
        yield r;
      }
    } finally {
      await t.cancel();
    }
  }, py = (e, t, n, r) => {
    const o = HU(e, t);
    let i = 0, a, l = (s) => {
      a || (a = true, r && r(s));
    };
    return new ReadableStream({
      async pull(s) {
        try {
          const { done: c, value: u } = await o.next();
          if (c) {
            l(), s.close();
            return;
          }
          let d = u.byteLength;
          if (n) {
            let h = i += d;
            n(h);
          }
          s.enqueue(new Uint8Array(u));
        } catch (c) {
          throw l(c), c;
        }
      },
      cancel(s) {
        return l(s), o.return();
      }
    }, {
      highWaterMark: 2
    });
  }, my = 64 * 1024, { isFunction: Wc } = Re, WU = (({ Request: e, Response: t }) => ({
    Request: e,
    Response: t
  }))(Re.global), { ReadableStream: gy, TextEncoder: vy } = Re.global, by = (e, ...t) => {
    try {
      return !!e(...t);
    } catch {
      return false;
    }
  }, UU = (e) => {
    e = Re.merge.call({
      skipUndefined: true
    }, WU, e);
    const { fetch: t, Request: n, Response: r } = e, o = t ? Wc(t) : typeof fetch == "function", i = Wc(n), a = Wc(r);
    if (!o) return false;
    const l = o && Wc(gy), s = o && (typeof vy == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new vy()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), c = i && l && by(() => {
      let f = false;
      const m = new n(tr.origin, {
        body: new gy(),
        method: "POST",
        get duplex() {
          return f = true, "half";
        }
      }).headers.has("Content-Type");
      return f && !m;
    }), u = a && l && by(() => Re.isReadableStream(new r("").body)), d = {
      stream: u && ((f) => f.body)
    };
    o && [
      "text",
      "arrayBuffer",
      "blob",
      "formData",
      "stream"
    ].forEach((f) => {
      !d[f] && (d[f] = (m, b) => {
        let v = m && m[f];
        if (v) return v.call(m);
        throw new vt(`Response type '${f}' is not supported`, vt.ERR_NOT_SUPPORT, b);
      });
    });
    const h = async (f) => {
      if (f == null) return 0;
      if (Re.isBlob(f)) return f.size;
      if (Re.isSpecCompliantForm(f)) return (await new n(tr.origin, {
        method: "POST",
        body: f
      }).arrayBuffer()).byteLength;
      if (Re.isArrayBufferView(f) || Re.isArrayBuffer(f)) return f.byteLength;
      if (Re.isURLSearchParams(f) && (f = f + ""), Re.isString(f)) return (await s(f)).byteLength;
    }, p = async (f, m) => {
      const b = Re.toFiniteNumber(f.getContentLength());
      return b ?? h(m);
    };
    return async (f) => {
      let { url: m, method: b, data: v, signal: y, cancelToken: w, timeout: x, onDownloadProgress: S, onUploadProgress: _, responseType: C, headers: k, withCredentials: R = "same-origin", fetchOptions: P } = E_(f), B = t || fetch;
      C = C ? (C + "").toLowerCase() : "text";
      let E = BU([
        y,
        w && w.toAbortSignal()
      ], x), M = null;
      const z = E && E.unsubscribe && (() => {
        E.unsubscribe();
      });
      let U;
      try {
        if (_ && c && b !== "get" && b !== "head" && (U = await p(k, v)) !== 0) {
          let re = new n(m, {
            method: "POST",
            body: v,
            duplex: "half"
          }), Y;
          if (Re.isFormData(v) && (Y = re.headers.get("content-type")) && k.setContentType(Y), re.body) {
            const [H, oe] = dy(U, Ou(fy(_)));
            v = py(re.body, my, H, oe);
          }
        }
        Re.isString(R) || (R = R ? "include" : "omit");
        const ee = i && "credentials" in n.prototype, ne = {
          ...P,
          signal: E,
          method: b.toUpperCase(),
          headers: k.normalize().toJSON(),
          body: v,
          duplex: "half",
          credentials: ee ? R : void 0
        };
        M = i && new n(m, ne);
        let ae = await (i ? B(M, P) : B(m, ne));
        const ye = u && (C === "stream" || C === "response");
        if (u && (S || ye && z)) {
          const re = {};
          [
            "status",
            "statusText",
            "headers"
          ].forEach((ce) => {
            re[ce] = ae[ce];
          });
          const Y = Re.toFiniteNumber(ae.headers.get("content-length")), [H, oe] = S && dy(Y, Ou(fy(S), true)) || [];
          ae = new r(py(ae.body, my, H, () => {
            oe && oe(), z && z();
          }), re);
        }
        C = C || "text";
        let xe = await d[Re.findKey(d, C) || "text"](ae, f);
        return !ye && z && z(), await new Promise((re, Y) => {
          R_(re, Y, {
            data: xe,
            headers: vr.from(ae.headers),
            status: ae.status,
            statusText: ae.statusText,
            config: f,
            request: M
          });
        });
      } catch (ee) {
        throw z && z(), ee && ee.name === "TypeError" && /Load failed|fetch/i.test(ee.message) ? Object.assign(new vt("Network Error", vt.ERR_NETWORK, f, M, ee && ee.response), {
          cause: ee.cause || ee
        }) : vt.from(ee, ee && ee.code, f, M, ee && ee.response);
      }
    };
  }, VU = /* @__PURE__ */ new Map(), T_ = (e) => {
    let t = e && e.env || {};
    const { fetch: n, Request: r, Response: o } = t, i = [
      r,
      o,
      n
    ];
    let a = i.length, l = a, s, c, u = VU;
    for (; l--; ) s = i[l], c = u.get(s), c === void 0 && u.set(s, c = l ? /* @__PURE__ */ new Map() : UU(t)), u = c;
    return c;
  };
  T_();
  const dg = {
    http: sU,
    xhr: LU,
    fetch: {
      get: T_
    }
  };
  Re.forEach(dg, (e, t) => {
    if (e) {
      try {
        Object.defineProperty(e, "name", {
          value: t
        });
      } catch {
      }
      Object.defineProperty(e, "adapterName", {
        value: t
      });
    }
  });
  const yy = (e) => `- ${e}`, qU = (e) => Re.isFunction(e) || e === null || e === false;
  function GU(e, t) {
    e = Re.isArray(e) ? e : [
      e
    ];
    const { length: n } = e;
    let r, o;
    const i = {};
    for (let a = 0; a < n; a++) {
      r = e[a];
      let l;
      if (o = r, !qU(r) && (o = dg[(l = String(r)).toLowerCase()], o === void 0)) throw new vt(`Unknown adapter '${l}'`);
      if (o && (Re.isFunction(o) || (o = o.get(t)))) break;
      i[l || "#" + a] = o;
    }
    if (!o) {
      const a = Object.entries(i).map(([s, c]) => `adapter ${s} ` + (c === false ? "is not supported by the environment" : "is not available in the build"));
      let l = n ? a.length > 1 ? `since :
` + a.map(yy).join(`
`) : " " + yy(a[0]) : "as no adapter specified";
      throw new vt("There is no suitable adapter to dispatch the request " + l, "ERR_NOT_SUPPORT");
    }
    return o;
  }
  const P_ = {
    getAdapter: GU,
    adapters: dg
  };
  function Vf(e) {
    if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new uc(null, e);
  }
  function xy(e) {
    return Vf(e), e.headers = vr.from(e.headers), e.data = Uf.call(e, e.transformRequest), [
      "post",
      "put",
      "patch"
    ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", false), P_.getAdapter(e.adapter || cc.adapter, e)(e).then(function(r) {
      return Vf(e), r.data = Uf.call(e, e.transformResponse, r), r.headers = vr.from(r.headers), r;
    }, function(r) {
      return k_(r) || (Vf(e), r && r.response && (r.response.data = Uf.call(e, e.transformResponse, r.response), r.response.headers = vr.from(r.response.headers))), Promise.reject(r);
    });
  }
  const D_ = "1.13.6", Id = {};
  [
    "object",
    "boolean",
    "number",
    "function",
    "string",
    "symbol"
  ].forEach((e, t) => {
    Id[e] = function(r) {
      return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
    };
  });
  const wy = {};
  Id.transitional = function(t, n, r) {
    function o(i, a) {
      return "[Axios v" + D_ + "] Transitional option '" + i + "'" + a + (r ? ". " + r : "");
    }
    return (i, a, l) => {
      if (t === false) throw new vt(o(a, " has been removed" + (n ? " in " + n : "")), vt.ERR_DEPRECATED);
      return n && !wy[a] && (wy[a] = true, console.warn(o(a, " has been deprecated since v" + n + " and will be removed in the near future"))), t ? t(i, a, l) : true;
    };
  };
  Id.spelling = function(t) {
    return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), true);
  };
  function KU(e, t, n) {
    if (typeof e != "object") throw new vt("options must be an object", vt.ERR_BAD_OPTION_VALUE);
    const r = Object.keys(e);
    let o = r.length;
    for (; o-- > 0; ) {
      const i = r[o], a = t[i];
      if (a) {
        const l = e[i], s = l === void 0 || a(l, i, e);
        if (s !== true) throw new vt("option " + i + " must be " + s, vt.ERR_BAD_OPTION_VALUE);
        continue;
      }
      if (n !== true) throw new vt("Unknown option " + i, vt.ERR_BAD_OPTION);
    }
  }
  const ou = {
    assertOptions: KU,
    validators: Id
  }, Hr = ou.validators;
  let ua = class {
    constructor(t) {
      this.defaults = t || {}, this.interceptors = {
        request: new cy(),
        response: new cy()
      };
    }
    async request(t, n) {
      try {
        return await this._request(t, n);
      } catch (r) {
        if (r instanceof Error) {
          let o = {};
          Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
          const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
          try {
            r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + i) : r.stack = i;
          } catch {
          }
        }
        throw r;
      }
    }
    _request(t, n) {
      typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = va(this.defaults, n);
      const { transitional: r, paramsSerializer: o, headers: i } = n;
      r !== void 0 && ou.assertOptions(r, {
        silentJSONParsing: Hr.transitional(Hr.boolean),
        forcedJSONParsing: Hr.transitional(Hr.boolean),
        clarifyTimeoutError: Hr.transitional(Hr.boolean),
        legacyInterceptorReqResOrdering: Hr.transitional(Hr.boolean)
      }, false), o != null && (Re.isFunction(o) ? n.paramsSerializer = {
        serialize: o
      } : ou.assertOptions(o, {
        encode: Hr.function,
        serialize: Hr.function
      }, true)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = true), ou.assertOptions(n, {
        baseUrl: Hr.spelling("baseURL"),
        withXsrfToken: Hr.spelling("withXSRFToken")
      }, true), n.method = (n.method || this.defaults.method || "get").toLowerCase();
      let a = i && Re.merge(i.common, i[n.method]);
      i && Re.forEach([
        "delete",
        "get",
        "head",
        "post",
        "put",
        "patch",
        "common"
      ], (f) => {
        delete i[f];
      }), n.headers = vr.concat(a, i);
      const l = [];
      let s = true;
      this.interceptors.request.forEach(function(m) {
        if (typeof m.runWhen == "function" && m.runWhen(n) === false) return;
        s = s && m.synchronous;
        const b = n.transitional || cg;
        b && b.legacyInterceptorReqResOrdering ? l.unshift(m.fulfilled, m.rejected) : l.push(m.fulfilled, m.rejected);
      });
      const c = [];
      this.interceptors.response.forEach(function(m) {
        c.push(m.fulfilled, m.rejected);
      });
      let u, d = 0, h;
      if (!s) {
        const f = [
          xy.bind(this),
          void 0
        ];
        for (f.unshift(...l), f.push(...c), h = f.length, u = Promise.resolve(n); d < h; ) u = u.then(f[d++], f[d++]);
        return u;
      }
      h = l.length;
      let p = n;
      for (; d < h; ) {
        const f = l[d++], m = l[d++];
        try {
          p = f(p);
        } catch (b) {
          m.call(this, b);
          break;
        }
      }
      try {
        u = xy.call(this, p);
      } catch (f) {
        return Promise.reject(f);
      }
      for (d = 0, h = c.length; d < h; ) u = u.then(c[d++], c[d++]);
      return u;
    }
    getUri(t) {
      t = va(this.defaults, t);
      const n = A_(t.baseURL, t.url, t.allowAbsoluteUrls);
      return S_(n, t.params, t.paramsSerializer);
    }
  };
  Re.forEach([
    "delete",
    "get",
    "head",
    "options"
  ], function(t) {
    ua.prototype[t] = function(n, r) {
      return this.request(va(r || {}, {
        method: t,
        url: n,
        data: (r || {}).data
      }));
    };
  });
  Re.forEach([
    "post",
    "put",
    "patch"
  ], function(t) {
    function n(r) {
      return function(i, a, l) {
        return this.request(va(l || {}, {
          method: t,
          headers: r ? {
            "Content-Type": "multipart/form-data"
          } : {},
          url: i,
          data: a
        }));
      };
    }
    ua.prototype[t] = n(), ua.prototype[t + "Form"] = n(true);
  });
  let YU = class $_ {
    constructor(t) {
      if (typeof t != "function") throw new TypeError("executor must be a function.");
      let n;
      this.promise = new Promise(function(i) {
        n = i;
      });
      const r = this;
      this.promise.then((o) => {
        if (!r._listeners) return;
        let i = r._listeners.length;
        for (; i-- > 0; ) r._listeners[i](o);
        r._listeners = null;
      }), this.promise.then = (o) => {
        let i;
        const a = new Promise((l) => {
          r.subscribe(l), i = l;
        }).then(o);
        return a.cancel = function() {
          r.unsubscribe(i);
        }, a;
      }, t(function(i, a, l) {
        r.reason || (r.reason = new uc(i, a, l), n(r.reason));
      });
    }
    throwIfRequested() {
      if (this.reason) throw this.reason;
    }
    subscribe(t) {
      if (this.reason) {
        t(this.reason);
        return;
      }
      this._listeners ? this._listeners.push(t) : this._listeners = [
        t
      ];
    }
    unsubscribe(t) {
      if (!this._listeners) return;
      const n = this._listeners.indexOf(t);
      n !== -1 && this._listeners.splice(n, 1);
    }
    toAbortSignal() {
      const t = new AbortController(), n = (r) => {
        t.abort(r);
      };
      return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
    }
    static source() {
      let t;
      return {
        token: new $_(function(o) {
          t = o;
        }),
        cancel: t
      };
    }
  };
  function XU(e) {
    return function(n) {
      return e.apply(null, n);
    };
  }
  function JU(e) {
    return Re.isObject(e) && e.isAxiosError === true;
  }
  const bp = {
    Continue: 100,
    SwitchingProtocols: 101,
    Processing: 102,
    EarlyHints: 103,
    Ok: 200,
    Created: 201,
    Accepted: 202,
    NonAuthoritativeInformation: 203,
    NoContent: 204,
    ResetContent: 205,
    PartialContent: 206,
    MultiStatus: 207,
    AlreadyReported: 208,
    ImUsed: 226,
    MultipleChoices: 300,
    MovedPermanently: 301,
    Found: 302,
    SeeOther: 303,
    NotModified: 304,
    UseProxy: 305,
    Unused: 306,
    TemporaryRedirect: 307,
    PermanentRedirect: 308,
    BadRequest: 400,
    Unauthorized: 401,
    PaymentRequired: 402,
    Forbidden: 403,
    NotFound: 404,
    MethodNotAllowed: 405,
    NotAcceptable: 406,
    ProxyAuthenticationRequired: 407,
    RequestTimeout: 408,
    Conflict: 409,
    Gone: 410,
    LengthRequired: 411,
    PreconditionFailed: 412,
    PayloadTooLarge: 413,
    UriTooLong: 414,
    UnsupportedMediaType: 415,
    RangeNotSatisfiable: 416,
    ExpectationFailed: 417,
    ImATeapot: 418,
    MisdirectedRequest: 421,
    UnprocessableEntity: 422,
    Locked: 423,
    FailedDependency: 424,
    TooEarly: 425,
    UpgradeRequired: 426,
    PreconditionRequired: 428,
    TooManyRequests: 429,
    RequestHeaderFieldsTooLarge: 431,
    UnavailableForLegalReasons: 451,
    InternalServerError: 500,
    NotImplemented: 501,
    BadGateway: 502,
    ServiceUnavailable: 503,
    GatewayTimeout: 504,
    HttpVersionNotSupported: 505,
    VariantAlsoNegotiates: 506,
    InsufficientStorage: 507,
    LoopDetected: 508,
    NotExtended: 510,
    NetworkAuthenticationRequired: 511,
    WebServerIsDown: 521,
    ConnectionTimedOut: 522,
    OriginIsUnreachable: 523,
    TimeoutOccurred: 524,
    SslHandshakeFailed: 525,
    InvalidSslCertificate: 526
  };
  Object.entries(bp).forEach(([e, t]) => {
    bp[t] = e;
  });
  function z_(e) {
    const t = new ua(e), n = f_(ua.prototype.request, t);
    return Re.extend(n, ua.prototype, t, {
      allOwnKeys: true
    }), Re.extend(n, t, null, {
      allOwnKeys: true
    }), n.create = function(o) {
      return z_(va(e, o));
    }, n;
  }
  const Cn = z_(cc);
  Cn.Axios = ua;
  Cn.CanceledError = uc;
  Cn.CancelToken = YU;
  Cn.isCancel = k_;
  Cn.VERSION = D_;
  Cn.toFormData = Od;
  Cn.AxiosError = vt;
  Cn.Cancel = Cn.CanceledError;
  Cn.all = function(t) {
    return Promise.all(t);
  };
  Cn.spread = XU;
  Cn.isAxiosError = JU;
  Cn.mergeConfig = va;
  Cn.AxiosHeaders = vr;
  Cn.formToJSON = (e) => __(Re.isHTMLForm(e) ? new FormData(e) : e);
  Cn.getAdapter = P_.getAdapter;
  Cn.HttpStatusCode = bp;
  Cn.default = Cn;
  const { Axios: ZX, AxiosError: QX, CanceledError: eJ, isCancel: tJ, CancelToken: nJ, VERSION: rJ, all: oJ, Cancel: iJ, isAxiosError: aJ, spread: lJ, toFormData: sJ, AxiosHeaders: cJ, HttpStatusCode: uJ, formToJSON: dJ, getAdapter: fJ, mergeConfig: hJ } = Cn, Iu = E7({
    legacy: false,
    locale: "zh",
    fallbackLocale: "en"
  });
  var O_ = "5.1.0";
  function Fu(e, t) {
    return new Promise((n) => setTimeout(n, e, t));
  }
  function ZU() {
    return new Promise((e) => {
      const t = new MessageChannel();
      t.port1.onmessage = () => e(), t.port2.postMessage(null);
    });
  }
  function QU(e, t = 1 / 0) {
    const { requestIdleCallback: n } = window;
    return n ? new Promise((r) => n.call(window, () => r(), {
      timeout: t
    })) : Fu(Math.min(e, t));
  }
  function I_(e) {
    return !!e && typeof e.then == "function";
  }
  function Cy(e, t) {
    try {
      const n = e();
      I_(n) ? n.then((r) => t(true, r), (r) => t(false, r)) : t(true, n);
    } catch (n) {
      t(false, n);
    }
  }
  async function Sy(e, t, n = 16) {
    const r = Array(e.length);
    let o = Date.now();
    for (let i = 0; i < e.length; ++i) {
      r[i] = t(e[i], i);
      const a = Date.now();
      a >= o + n && (o = a, await ZU());
    }
    return r;
  }
  function Ns(e) {
    return e.then(void 0, () => {
    }), e;
  }
  function eV(e, t) {
    for (let n = 0, r = e.length; n < r; ++n) if (e[n] === t) return true;
    return false;
  }
  function tV(e, t) {
    return !eV(e, t);
  }
  function fg(e) {
    return parseInt(e);
  }
  function Zr(e) {
    return parseFloat(e);
  }
  function Yo(e, t) {
    return typeof e == "number" && isNaN(e) ? t : e;
  }
  function Un(e) {
    return e.reduce((t, n) => t + (n ? 1 : 0), 0);
  }
  function F_(e, t = 1) {
    if (Math.abs(t) >= 1) return Math.round(e / t) * t;
    {
      const n = 1 / t;
      return Math.round(e * n) / n;
    }
  }
  function nV(e) {
    var t, n;
    const r = `Unexpected syntax '${e}'`, o = /^\s*([a-z-]*)(.*)$/i.exec(e), i = o[1] || void 0, a = {}, l = /([.:#][\w-]+|\[.+?\])/gi, s = (c, u) => {
      a[c] = a[c] || [], a[c].push(u);
    };
    for (; ; ) {
      const c = l.exec(o[2]);
      if (!c) break;
      const u = c[0];
      switch (u[0]) {
        case ".":
          s("class", u.slice(1));
          break;
        case "#":
          s("id", u.slice(1));
          break;
        case "[": {
          const d = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);
          if (d) s(d[1], (n = (t = d[4]) !== null && t !== void 0 ? t : d[5]) !== null && n !== void 0 ? n : "");
          else throw new Error(r);
          break;
        }
        default:
          throw new Error(r);
      }
    }
    return [
      i,
      a
    ];
  }
  function rV(e) {
    const t = new Uint8Array(e.length);
    for (let n = 0; n < e.length; n++) {
      const r = e.charCodeAt(n);
      if (r > 127) return new TextEncoder().encode(e);
      t[n] = r;
    }
    return t;
  }
  function bi(e, t) {
    const n = e[0] >>> 16, r = e[0] & 65535, o = e[1] >>> 16, i = e[1] & 65535, a = t[0] >>> 16, l = t[0] & 65535, s = t[1] >>> 16, c = t[1] & 65535;
    let u = 0, d = 0, h = 0, p = 0;
    p += i + c, h += p >>> 16, p &= 65535, h += o + s, d += h >>> 16, h &= 65535, d += r + l, u += d >>> 16, d &= 65535, u += n + a, u &= 65535, e[0] = u << 16 | d, e[1] = h << 16 | p;
  }
  function jr(e, t) {
    const n = e[0] >>> 16, r = e[0] & 65535, o = e[1] >>> 16, i = e[1] & 65535, a = t[0] >>> 16, l = t[0] & 65535, s = t[1] >>> 16, c = t[1] & 65535;
    let u = 0, d = 0, h = 0, p = 0;
    p += i * c, h += p >>> 16, p &= 65535, h += o * c, d += h >>> 16, h &= 65535, h += i * s, d += h >>> 16, h &= 65535, d += r * c, u += d >>> 16, d &= 65535, d += o * s, u += d >>> 16, d &= 65535, d += i * l, u += d >>> 16, d &= 65535, u += n * c + r * s + o * l + i * a, u &= 65535, e[0] = u << 16 | d, e[1] = h << 16 | p;
  }
  function Wa(e, t) {
    const n = e[0];
    t %= 64, t === 32 ? (e[0] = e[1], e[1] = n) : t < 32 ? (e[0] = n << t | e[1] >>> 32 - t, e[1] = e[1] << t | n >>> 32 - t) : (t -= 32, e[0] = e[1] << t | n >>> 32 - t, e[1] = n << t | e[1] >>> 32 - t);
  }
  function Sr(e, t) {
    t %= 64, t !== 0 && (t < 32 ? (e[0] = e[1] >>> 32 - t, e[1] = e[1] << t) : (e[0] = e[1] << t - 32, e[1] = 0));
  }
  function hn(e, t) {
    e[0] ^= t[0], e[1] ^= t[1];
  }
  const oV = [
    4283543511,
    3981806797
  ], iV = [
    3301882366,
    444984403
  ];
  function _y(e) {
    const t = [
      0,
      e[0] >>> 1
    ];
    hn(e, t), jr(e, oV), t[1] = e[0] >>> 1, hn(e, t), jr(e, iV), t[1] = e[0] >>> 1, hn(e, t);
  }
  const Uc = [
    2277735313,
    289559509
  ], Vc = [
    1291169091,
    658871167
  ], ky = [
    0,
    5
  ], aV = [
    0,
    1390208809
  ], lV = [
    0,
    944331445
  ];
  function sV(e, t) {
    const n = rV(e);
    t = t || 0;
    const r = [
      0,
      n.length
    ], o = r[1] % 16, i = r[1] - o, a = [
      0,
      t
    ], l = [
      0,
      t
    ], s = [
      0,
      0
    ], c = [
      0,
      0
    ];
    let u;
    for (u = 0; u < i; u = u + 16) s[0] = n[u + 4] | n[u + 5] << 8 | n[u + 6] << 16 | n[u + 7] << 24, s[1] = n[u] | n[u + 1] << 8 | n[u + 2] << 16 | n[u + 3] << 24, c[0] = n[u + 12] | n[u + 13] << 8 | n[u + 14] << 16 | n[u + 15] << 24, c[1] = n[u + 8] | n[u + 9] << 8 | n[u + 10] << 16 | n[u + 11] << 24, jr(s, Uc), Wa(s, 31), jr(s, Vc), hn(a, s), Wa(a, 27), bi(a, l), jr(a, ky), bi(a, aV), jr(c, Vc), Wa(c, 33), jr(c, Uc), hn(l, c), Wa(l, 31), bi(l, a), jr(l, ky), bi(l, lV);
    s[0] = 0, s[1] = 0, c[0] = 0, c[1] = 0;
    const d = [
      0,
      0
    ];
    switch (o) {
      case 15:
        d[1] = n[u + 14], Sr(d, 48), hn(c, d);
      case 14:
        d[1] = n[u + 13], Sr(d, 40), hn(c, d);
      case 13:
        d[1] = n[u + 12], Sr(d, 32), hn(c, d);
      case 12:
        d[1] = n[u + 11], Sr(d, 24), hn(c, d);
      case 11:
        d[1] = n[u + 10], Sr(d, 16), hn(c, d);
      case 10:
        d[1] = n[u + 9], Sr(d, 8), hn(c, d);
      case 9:
        d[1] = n[u + 8], hn(c, d), jr(c, Vc), Wa(c, 33), jr(c, Uc), hn(l, c);
      case 8:
        d[1] = n[u + 7], Sr(d, 56), hn(s, d);
      case 7:
        d[1] = n[u + 6], Sr(d, 48), hn(s, d);
      case 6:
        d[1] = n[u + 5], Sr(d, 40), hn(s, d);
      case 5:
        d[1] = n[u + 4], Sr(d, 32), hn(s, d);
      case 4:
        d[1] = n[u + 3], Sr(d, 24), hn(s, d);
      case 3:
        d[1] = n[u + 2], Sr(d, 16), hn(s, d);
      case 2:
        d[1] = n[u + 1], Sr(d, 8), hn(s, d);
      case 1:
        d[1] = n[u], hn(s, d), jr(s, Uc), Wa(s, 31), jr(s, Vc), hn(a, s);
    }
    return hn(a, r), hn(l, r), bi(a, l), bi(l, a), _y(a), _y(l), bi(a, l), bi(l, a), ("00000000" + (a[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (l[1] >>> 0).toString(16)).slice(-8);
  }
  function cV(e) {
    var t;
    return {
      name: e.name,
      message: e.message,
      stack: (t = e.stack) === null || t === void 0 ? void 0 : t.split(`
`),
      ...e
    };
  }
  function uV(e) {
    return /^function\s.*?\{\s*\[native code]\s*}$/.test(String(e));
  }
  function dV(e) {
    return typeof e != "function";
  }
  function fV(e, t) {
    const n = Ns(new Promise((r) => {
      const o = Date.now();
      Cy(e.bind(null, t), (...i) => {
        const a = Date.now() - o;
        if (!i[0]) return r(() => ({
          error: i[1],
          duration: a
        }));
        const l = i[1];
        if (dV(l)) return r(() => ({
          value: l,
          duration: a
        }));
        r(() => new Promise((s) => {
          const c = Date.now();
          Cy(l, (...u) => {
            const d = a + Date.now() - c;
            if (!u[0]) return s({
              error: u[1],
              duration: d
            });
            s({
              value: u[1],
              duration: d
            });
          });
        }));
      });
    }));
    return function() {
      return n.then((o) => o());
    };
  }
  function hV(e, t, n, r) {
    const o = Object.keys(e).filter((a) => tV(n, a)), i = Ns(Sy(o, (a) => fV(e[a], t), r));
    return async function() {
      const l = await i, s = await Sy(l, (d) => Ns(d()), r), c = await Promise.all(s), u = {};
      for (let d = 0; d < o.length; ++d) u[o[d]] = c[d];
      return u;
    };
  }
  function M_() {
    const e = window, t = navigator;
    return Un([
      "MSCSSMatrix" in e,
      "msSetImmediate" in e,
      "msIndexedDB" in e,
      "msMaxTouchPoints" in t,
      "msPointerEnabled" in t
    ]) >= 4;
  }
  function pV() {
    const e = window, t = navigator;
    return Un([
      "msWriteProfilerMark" in e,
      "MSStream" in e,
      "msLaunchUri" in t,
      "msSaveBlob" in t
    ]) >= 3 && !M_();
  }
  function dc() {
    const e = window, t = navigator;
    return Un([
      "webkitPersistentStorage" in t,
      "webkitTemporaryStorage" in t,
      (t.vendor || "").indexOf("Google") === 0,
      "webkitResolveLocalFileSystemURL" in e,
      "BatteryManager" in e,
      "webkitMediaStream" in e,
      "webkitSpeechGrammar" in e
    ]) >= 5;
  }
  function po() {
    const e = window, t = navigator;
    return Un([
      "ApplePayError" in e,
      "CSSPrimitiveValue" in e,
      "Counter" in e,
      t.vendor.indexOf("Apple") === 0,
      "RGBColor" in e,
      "WebKitMediaKeys" in e
    ]) >= 4;
  }
  function hg() {
    const e = window, { HTMLElement: t, Document: n } = e;
    return Un([
      "safari" in e,
      !("ongestureend" in e),
      !("TouchEvent" in e),
      !("orientation" in e),
      t && !("autocapitalize" in t.prototype),
      n && "pointerLockElement" in n.prototype
    ]) >= 4;
  }
  function fc() {
    const e = window;
    return uV(e.print) && String(e.browser) === "[object WebPageNamespace]";
  }
  function hc() {
    var e, t;
    const n = window;
    return Un([
      "buildID" in navigator,
      "MozAppearance" in ((t = (e = document.documentElement) === null || e === void 0 ? void 0 : e.style) !== null && t !== void 0 ? t : {}),
      "onmozfullscreenchange" in n,
      "mozInnerScreenX" in n,
      "CSSMozDocumentRule" in n,
      "CanvasCaptureMediaStream" in n
    ]) >= 4;
  }
  function mV() {
    const e = window, t = navigator, { CSS: n } = e;
    return Un([
      "userActivation" in t,
      n.supports("color", "light-dark(#000, #fff)"),
      n.supports("height", "1lh"),
      "globalPrivacyControl" in t
    ]) >= 3;
  }
  function L_() {
    const { CSS: e } = window;
    return Un([
      e.supports("selector(::details-content)"),
      e.supports("selector(::before::marker)"),
      e.supports("selector(::after::marker)"),
      !("locale" in CompositionEvent.prototype)
    ]) >= 3;
  }
  function gV() {
    const e = window;
    return Un([
      !("MediaSettingsRange" in e),
      "RTCEncodedAudioFrame" in e,
      "" + e.Intl == "[object Intl]",
      "" + e.Reflect == "[object Reflect]"
    ]) >= 3;
  }
  function vV() {
    const e = window, { URLPattern: t } = e;
    return Un([
      "union" in Set.prototype,
      "Iterator" in e,
      t && "hasRegExpGroups" in t.prototype,
      "RGB8" in WebGLRenderingContext.prototype
    ]) >= 3;
  }
  function bV() {
    const e = window;
    return Un([
      "DOMRectList" in e,
      "RTCPeerConnectionIceEvent" in e,
      "SVGGeometryElement" in e,
      "ontransitioncancel" in e
    ]) >= 3;
  }
  function pc() {
    const e = window, t = navigator, { CSS: n, HTMLButtonElement: r } = e;
    return Un([
      !("getStorageUpdates" in t),
      r && "popover" in r.prototype,
      "CSSCounterStyleRule" in e,
      n.supports("font-size-adjust: ex-height 0.5"),
      n.supports("text-transform: full-width")
    ]) >= 4;
  }
  function yV() {
    if (navigator.platform === "iPad") return true;
    const e = screen, t = e.width / e.height;
    return Un([
      "MediaSource" in window,
      !!Element.prototype.webkitRequestFullscreen,
      t > 0.65 && t < 1.53
    ]) >= 2;
  }
  function xV() {
    const e = document;
    return e.fullscreenElement || e.msFullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || null;
  }
  function wV() {
    const e = document;
    return (e.exitFullscreen || e.msExitFullscreen || e.mozCancelFullScreen || e.webkitExitFullscreen).call(e);
  }
  function pg() {
    const e = dc(), t = hc(), n = window, r = navigator, o = "connection";
    return e ? Un([
      !("SharedWorker" in n),
      r[o] && "ontypechange" in r[o],
      !("sinkId" in new Audio())
    ]) >= 2 : t ? Un([
      "onorientationchange" in n,
      "orientation" in n,
      /android/i.test(r.appVersion)
    ]) >= 2 : false;
  }
  function CV() {
    const e = navigator, t = window, n = Audio.prototype, { visualViewport: r } = t;
    return Un([
      "srLatency" in n,
      "srChannelCount" in n,
      "devicePosture" in e,
      r && "segments" in r,
      "getTextInformation" in Image.prototype
    ]) >= 3;
  }
  function SV() {
    return RV() ? -4 : _V();
  }
  function _V() {
    const e = window, t = e.OfflineAudioContext || e.webkitOfflineAudioContext;
    if (!t) return -2;
    if (kV()) return -1;
    const n = 4500, r = 5e3, o = new t(1, r, 44100), i = o.createOscillator();
    i.type = "triangle", i.frequency.value = 1e4;
    const a = o.createDynamicsCompressor();
    a.threshold.value = -50, a.knee.value = 40, a.ratio.value = 12, a.attack.value = 0, a.release.value = 0.25, i.connect(a), a.connect(o.destination), i.start(0);
    const [l, s] = AV(o), c = Ns(l.then((u) => EV(u.getChannelData(0).subarray(n)), (u) => {
      if (u.name === "timeout" || u.name === "suspended") return -3;
      throw u;
    }));
    return () => (s(), c);
  }
  function kV() {
    return po() && !hg() && !bV();
  }
  function RV() {
    return po() && pc() && fc() || dc() && CV() && vV();
  }
  function AV(e) {
    let i = () => {
    };
    return [
      new Promise((l, s) => {
        let c = false, u = 0, d = 0;
        e.oncomplete = (f) => l(f.renderedBuffer);
        const h = () => {
          setTimeout(() => s(Ry("timeout")), Math.min(500, d + 5e3 - Date.now()));
        }, p = () => {
          try {
            const f = e.startRendering();
            switch (I_(f) && Ns(f), e.state) {
              case "running":
                d = Date.now(), c && h();
                break;
              case "suspended":
                document.hidden || u++, c && u >= 3 ? s(Ry("suspended")) : setTimeout(p, 500);
                break;
            }
          } catch (f) {
            s(f);
          }
        };
        p(), i = () => {
          c || (c = true, d > 0 && h());
        };
      }),
      i
    ];
  }
  function EV(e) {
    let t = 0;
    for (let n = 0; n < e.length; ++n) t += Math.abs(e[n]);
    return t;
  }
  function Ry(e) {
    const t = new Error(e);
    return t.name = e, t;
  }
  async function B_(e, t, n = 50) {
    var r, o, i;
    const a = document;
    for (; !a.body; ) await Fu(n);
    const l = a.createElement("iframe");
    try {
      for (await new Promise((s, c) => {
        let u = false;
        const d = () => {
          u = true, s();
        }, h = (m) => {
          u = true, c(m);
        };
        l.onload = d, l.onerror = h;
        const { style: p } = l;
        p.setProperty("display", "block", "important"), p.position = "absolute", p.top = "0", p.left = "0", p.visibility = "hidden", t && "srcdoc" in l ? l.srcdoc = t : l.src = "about:blank", a.body.appendChild(l);
        const f = () => {
          var m, b;
          u || (((b = (m = l.contentWindow) === null || m === void 0 ? void 0 : m.document) === null || b === void 0 ? void 0 : b.readyState) === "complete" ? d() : setTimeout(f, 10));
        };
        f();
      }); !(!((o = (r = l.contentWindow) === null || r === void 0 ? void 0 : r.document) === null || o === void 0) && o.body); ) await Fu(n);
      return await e(l, l.contentWindow);
    } finally {
      (i = l.parentNode) === null || i === void 0 || i.removeChild(l);
    }
  }
  function TV(e) {
    const [t, n] = nV(e), r = document.createElement(t ?? "div");
    for (const o of Object.keys(n)) {
      const i = n[o].join(" ");
      o === "style" ? PV(r.style, i) : r.setAttribute(o, i);
    }
    return r;
  }
  function PV(e, t) {
    for (const n of t.split(";")) {
      const r = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);
      if (r) {
        const [, o, i, , a] = r;
        e.setProperty(o, i, a || "");
      }
    }
  }
  function DV() {
    let e = window;
    for (; ; ) {
      const t = e.parent;
      if (!t || t === e) return false;
      try {
        if (t.location.origin !== e.location.origin) return true;
      } catch (n) {
        if (n instanceof Error && n.name === "SecurityError") return true;
        throw n;
      }
      e = t;
    }
  }
  const $V = "mmMwWLliI0O&1", zV = "48px", Ua = [
    "monospace",
    "sans-serif",
    "serif"
  ], Ay = [
    "sans-serif-thin",
    "ARNO PRO",
    "Agency FB",
    "Arabic Typesetting",
    "Arial Unicode MS",
    "AvantGarde Bk BT",
    "BankGothic Md BT",
    "Batang",
    "Bitstream Vera Sans Mono",
    "Calibri",
    "Century",
    "Century Gothic",
    "Clarendon",
    "EUROSTILE",
    "Franklin Gothic",
    "Futura Bk BT",
    "Futura Md BT",
    "GOTHAM",
    "Gill Sans",
    "HELV",
    "Haettenschweiler",
    "Helvetica Neue",
    "Humanst521 BT",
    "Leelawadee",
    "Letter Gothic",
    "Levenim MT",
    "Lucida Bright",
    "Lucida Sans",
    "Menlo",
    "MS Mincho",
    "MS Outlook",
    "MS Reference Specialty",
    "MS UI Gothic",
    "MT Extra",
    "MYRIAD PRO",
    "Marlett",
    "Meiryo UI",
    "Microsoft Uighur",
    "Minion Pro",
    "Monotype Corsiva",
    "PMingLiU",
    "Pristina",
    "SCRIPTINA",
    "Segoe UI Light",
    "Serifa",
    "SimHei",
    "Small Fonts",
    "Staccato222 BT",
    "TRAJAN PRO",
    "Univers CE 55 Medium",
    "Vrinda",
    "ZWAdobeF"
  ];
  function OV() {
    return B_(async (e, { document: t }) => {
      const n = t.body;
      n.style.fontSize = zV;
      const r = t.createElement("div");
      r.style.setProperty("visibility", "hidden", "important");
      const o = {}, i = {}, a = (p) => {
        const f = t.createElement("span"), { style: m } = f;
        return m.position = "absolute", m.top = "0", m.left = "0", m.fontFamily = p, f.textContent = $V, r.appendChild(f), f;
      }, l = (p, f) => a(`'${p}',${f}`), s = () => Ua.map(a), c = () => {
        const p = {};
        for (const f of Ay) p[f] = Ua.map((m) => l(f, m));
        return p;
      }, u = (p) => Ua.some((f, m) => p[m].offsetWidth !== o[f] || p[m].offsetHeight !== i[f]), d = s(), h = c();
      n.appendChild(r);
      for (let p = 0; p < Ua.length; p++) o[Ua[p]] = d[p].offsetWidth, i[Ua[p]] = d[p].offsetHeight;
      return Ay.filter((p) => u(h[p]));
    });
  }
  function IV() {
    const e = navigator.plugins;
    if (!e) return;
    const t = [];
    for (let n = 0; n < e.length; ++n) {
      const r = e[n];
      if (!r) continue;
      const o = [];
      for (let i = 0; i < r.length; ++i) {
        const a = r[i];
        o.push({
          type: a.type,
          suffixes: a.suffixes
        });
      }
      t.push({
        name: r.name,
        description: r.description,
        mimeTypes: o
      });
    }
    return t;
  }
  function FV() {
    return MV(UV());
  }
  function MV(e) {
    let t = false, n, r;
    const [o, i] = LV();
    return BV(o, i) ? (t = NV(i), e ? n = r = "skipped" : [n, r] = HV(o, i)) : n = r = "unsupported", {
      winding: t,
      geometry: n,
      text: r
    };
  }
  function LV() {
    const e = document.createElement("canvas");
    return e.width = 1, e.height = 1, [
      e,
      e.getContext("2d")
    ];
  }
  function BV(e, t) {
    return !!(t && e.toDataURL);
  }
  function NV(e) {
    return e.rect(0, 0, 10, 10), e.rect(2, 2, 6, 6), !e.isPointInPath(5, 5, "evenodd");
  }
  function HV(e, t) {
    jV(e, t);
    const n = qf(e), r = qf(e);
    return n !== r ? [
      "unstable",
      "unstable"
    ] : (WV(e, t), [
      qf(e),
      n
    ]);
  }
  function jV(e, t) {
    e.width = 240, e.height = 60, t.textBaseline = "alphabetic", t.fillStyle = "#f60", t.fillRect(100, 1, 62, 20), t.fillStyle = "#069", t.font = '11pt "Times New Roman"';
    const n = "Cwm fjordbank gly \u{1F603}";
    t.fillText(n, 2, 15), t.fillStyle = "rgba(102, 204, 0, 0.2)", t.font = "18pt Arial", t.fillText(n, 4, 45);
  }
  function WV(e, t) {
    e.width = 122, e.height = 110, t.globalCompositeOperation = "multiply";
    for (const [n, r, o] of [
      [
        "#f2f",
        40,
        40
      ],
      [
        "#2ff",
        80,
        40
      ],
      [
        "#ff2",
        60,
        80
      ]
    ]) t.fillStyle = n, t.beginPath(), t.arc(r, o, 40, 0, Math.PI * 2, true), t.closePath(), t.fill();
    t.fillStyle = "#f9c", t.arc(60, 60, 60, 0, Math.PI * 2, true), t.arc(60, 60, 20, 0, Math.PI * 2, true), t.fill("evenodd");
  }
  function qf(e) {
    return e.toDataURL();
  }
  function UV() {
    const e = po() && pc() && fc(), t = hc() && mV();
    return e || t;
  }
  function VV() {
    const e = navigator;
    let t = 0, n;
    e.maxTouchPoints !== void 0 ? t = fg(e.maxTouchPoints) : e.msMaxTouchPoints !== void 0 && (t = e.msMaxTouchPoints);
    try {
      document.createEvent("TouchEvent"), n = true;
    } catch {
      n = false;
    }
    const r = "ontouchstart" in window;
    return {
      maxTouchPoints: t,
      touchEvent: n,
      touchStart: r
    };
  }
  function qV() {
    return navigator.oscpu;
  }
  function GV() {
    const e = navigator, t = [], n = e.language || e.userLanguage || e.browserLanguage || e.systemLanguage;
    if (n !== void 0 && t.push([
      n
    ]), Array.isArray(e.languages)) dc() && gV() || t.push(e.languages);
    else if (typeof e.languages == "string") {
      const r = e.languages;
      r && t.push(r.split(","));
    }
    return t;
  }
  function KV() {
    return window.screen.colorDepth;
  }
  function YV() {
    return Yo(Zr(navigator.deviceMemory), void 0);
  }
  function XV() {
    if (!(po() && pc() && fc())) return JV();
  }
  function JV() {
    const e = screen, t = (r) => Yo(fg(r), null), n = [
      t(e.width),
      t(e.height)
    ];
    return n.sort().reverse(), n;
  }
  const ZV = 2500, QV = 10;
  let iu, Gf;
  function eq() {
    if (Gf !== void 0) return;
    const e = () => {
      const t = yp();
      xp(t) ? Gf = setTimeout(e, ZV) : (iu = t, Gf = void 0);
    };
    e();
  }
  function tq() {
    return eq(), async () => {
      let e = yp();
      if (xp(e)) {
        if (iu) return [
          ...iu
        ];
        xV() && (await wV(), e = yp());
      }
      return xp(e) || (iu = e), e;
    };
  }
  function nq() {
    const e = po() && pc() && fc(), t = hc() && L_();
    if (e || t) return () => Promise.resolve(void 0);
    const n = tq();
    return async () => {
      const r = await n(), o = (i) => i === null ? null : F_(i, QV);
      return [
        o(r[0]),
        o(r[1]),
        o(r[2]),
        o(r[3])
      ];
    };
  }
  function yp() {
    const e = screen;
    return [
      Yo(Zr(e.availTop), null),
      Yo(Zr(e.width) - Zr(e.availWidth) - Yo(Zr(e.availLeft), 0), null),
      Yo(Zr(e.height) - Zr(e.availHeight) - Yo(Zr(e.availTop), 0), null),
      Yo(Zr(e.availLeft), null)
    ];
  }
  function xp(e) {
    for (let t = 0; t < 4; ++t) if (e[t]) return false;
    return true;
  }
  function rq() {
    const e = oq();
    return e !== void 0 && hc() && L_() ? e >= 8 ? 8 : 4 : e;
  }
  function oq() {
    return Yo(fg(navigator.hardwareConcurrency), void 0);
  }
  function iq() {
    var e;
    const t = (e = window.Intl) === null || e === void 0 ? void 0 : e.DateTimeFormat;
    if (t) {
      const r = new t().resolvedOptions().timeZone;
      if (r) return r;
    }
    const n = -aq();
    return `UTC${n >= 0 ? "+" : ""}${n}`;
  }
  function aq() {
    const e = (/* @__PURE__ */ new Date()).getFullYear();
    return Math.max(Zr(new Date(e, 0, 1).getTimezoneOffset()), Zr(new Date(e, 6, 1).getTimezoneOffset()));
  }
  function lq() {
    try {
      return !!window.sessionStorage;
    } catch {
      return true;
    }
  }
  function sq() {
    try {
      return !!window.localStorage;
    } catch {
      return true;
    }
  }
  function cq() {
    if (!(M_() || pV())) try {
      return !!window.indexedDB;
    } catch {
      return true;
    }
  }
  function uq() {
    return !!window.openDatabase;
  }
  function dq() {
    return navigator.cpuClass;
  }
  function fq() {
    const { platform: e } = navigator;
    return e === "MacIntel" && po() && !hg() ? yV() ? "iPad" : "iPhone" : e;
  }
  function hq() {
    return navigator.vendor || "";
  }
  function pq() {
    const e = [];
    for (const t of [
      "chrome",
      "safari",
      "__crWeb",
      "__gCrWeb",
      "yandex",
      "__yb",
      "__ybro",
      "__firefox__",
      "__edgeTrackingPreventionStatistics",
      "webkit",
      "oprt",
      "samsungAr",
      "ucweb",
      "UCShellJava",
      "puffinDevice"
    ]) {
      const n = window[t];
      n && typeof n == "object" && e.push(t);
    }
    return e.sort();
  }
  function mq() {
    const e = document;
    try {
      e.cookie = "cookietest=1; SameSite=Strict;";
      const t = e.cookie.indexOf("cookietest=") !== -1;
      return e.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", t;
    } catch {
      return false;
    }
  }
  function gq() {
    const e = atob;
    return {
      abpIndo: [
        "#Iklan-Melayang",
        "#Kolom-Iklan-728",
        "#SidebarIklan-wrapper",
        '[title="ALIENBOLA" i]',
        e("I0JveC1CYW5uZXItYWRz")
      ],
      abpvn: [
        ".quangcao",
        "#mobileCatfish",
        e("LmNsb3NlLWFkcw=="),
        '[id^="bn_bottom_fixed_"]',
        "#pmadv"
      ],
      adBlockFinland: [
        ".mainostila",
        e("LnNwb25zb3JpdA=="),
        ".ylamainos",
        e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),
        e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")
      ],
      adBlockPersian: [
        "#navbar_notice_50",
        ".kadr",
        'TABLE[width="140px"]',
        "#divAgahi",
        e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")
      ],
      adBlockWarningRemoval: [
        "#adblock-honeypot",
        ".adblocker-root",
        ".wp_adblock_detect",
        e("LmhlYWRlci1ibG9ja2VkLWFk"),
        e("I2FkX2Jsb2NrZXI=")
      ],
      adGuardAnnoyances: [
        ".hs-sosyal",
        "#cookieconsentdiv",
        'div[class^="app_gdpr"]',
        ".as-oil",
        '[data-cypress="soft-push-notification-modal"]'
      ],
      adGuardBase: [
        ".BetterJsPopOverlay",
        e("I2FkXzMwMFgyNTA="),
        e("I2Jhbm5lcmZsb2F0MjI="),
        e("I2NhbXBhaWduLWJhbm5lcg=="),
        e("I0FkLUNvbnRlbnQ=")
      ],
      adGuardChinese: [
        e("LlppX2FkX2FfSA=="),
        e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),
        "#widget-quan",
        e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),
        e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")
      ],
      adGuardFrench: [
        "#pavePub",
        e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),
        ".mobile_adhesion",
        ".widgetadv",
        e("LmFkc19iYW4=")
      ],
      adGuardGerman: [
        'aside[data-portal-id="leaderboard"]'
      ],
      adGuardJapanese: [
        "#kauli_yad_1",
        e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),
        e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),
        e("LmFkZ29vZ2xl"),
        e("Ll9faXNib29zdFJldHVybkFk")
      ],
      adGuardMobile: [
        e("YW1wLWF1dG8tYWRz"),
        e("LmFtcF9hZA=="),
        'amp-embed[type="24smi"]',
        "#mgid_iframe1",
        e("I2FkX2ludmlld19hcmVh")
      ],
      adGuardRussian: [
        e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),
        e("LnJlY2xhbWE="),
        'div[id^="smi2adblock"]',
        e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),
        "#psyduckpockeball"
      ],
      adGuardSocial: [
        e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),
        e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),
        ".etsy-tweet",
        "#inlineShare",
        ".popup-social"
      ],
      adGuardSpanishPortuguese: [
        "#barraPublicidade",
        "#Publicidade",
        "#publiEspecial",
        "#queTooltip",
        ".cnt-publi"
      ],
      adGuardTrackingProtection: [
        "#qoo-counter",
        e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),
        e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),
        e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),
        "#top100counter"
      ],
      adGuardTurkish: [
        "#backkapat",
        e("I3Jla2xhbWk="),
        e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),
        e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),
        e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")
      ],
      bulgarian: [
        e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),
        "#ea_intext_div",
        ".lapni-pop-over",
        "#xenium_hot_offers"
      ],
      easyList: [
        ".yb-floorad",
        e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),
        e("LnRyYWZmaWNqdW5reS1hZA=="),
        ".textad_headline",
        e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")
      ],
      easyListChina: [
        e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),
        e("LmZyb250cGFnZUFkdk0="),
        "#taotaole",
        "#aafoot.top_box",
        ".cfa_popup"
      ],
      easyListCookie: [
        ".ezmob-footer",
        ".cc-CookieWarning",
        "[data-cookie-number]",
        e("LmF3LWNvb2tpZS1iYW5uZXI="),
        ".sygnal24-gdpr-modal-wrap"
      ],
      easyListCzechSlovak: [
        "#onlajny-stickers",
        e("I3Jla2xhbW5pLWJveA=="),
        e("LnJla2xhbWEtbWVnYWJvYXJk"),
        ".sklik",
        e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")
      ],
      easyListDutch: [
        e("I2FkdmVydGVudGll"),
        e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),
        ".adstekst",
        e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),
        "#semilo-lrectangle"
      ],
      easyListGermany: [
        "#SSpotIMPopSlider",
        e("LnNwb25zb3JsaW5rZ3J1ZW4="),
        e("I3dlcmJ1bmdza3k="),
        e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),
        e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")
      ],
      easyListItaly: [
        e("LmJveF9hZHZfYW5udW5jaQ=="),
        ".sb-box-pubbliredazionale",
        e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),
        e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),
        e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")
      ],
      easyListLithuania: [
        e("LnJla2xhbW9zX3RhcnBhcw=="),
        e("LnJla2xhbW9zX251b3JvZG9z"),
        e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),
        e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),
        e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")
      ],
      estonian: [
        e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")
      ],
      fanboyAnnoyances: [
        "#ac-lre-player",
        ".navigate-to-top",
        "#subscribe_popup",
        ".newsletter_holder",
        "#back-top"
      ],
      fanboyAntiFacebook: [
        ".util-bar-module-firefly-visible"
      ],
      fanboyEnhancedTrackers: [
        ".open.pushModal",
        "#issuem-leaky-paywall-articles-zero-remaining-nag",
        "#sovrn_container",
        'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',
        ".BlockNag__Card"
      ],
      fanboySocial: [
        "#FollowUs",
        "#meteored_share",
        "#social_follow",
        ".article-sharer",
        ".community__social-desc"
      ],
      frellwitSwedish: [
        e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),
        e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),
        "article.category-samarbete",
        e("ZGl2LmhvbGlkQWRz"),
        "ul.adsmodern"
      ],
      greekAdBlock: [
        e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),
        e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),
        e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),
        "DIV.agores300",
        "TABLE.advright"
      ],
      hungarian: [
        "#cemp_doboz",
        ".optimonk-iframe-container",
        e("LmFkX19tYWlu"),
        e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),
        "#hirdetesek_box"
      ],
      iDontCareAboutCookies: [
        '.alert-info[data-block-track*="CookieNotice"]',
        ".ModuleTemplateCookieIndicator",
        ".o--cookies--container",
        "#cookies-policy-sticky",
        "#stickyCookieBar"
      ],
      icelandicAbp: [
        e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")
      ],
      latvian: [
        e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),
        e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")
      ],
      listKr: [
        e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),
        e("I2xpdmVyZUFkV3JhcHBlcg=="),
        e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),
        e("aW5zLmZhc3R2aWV3LWFk"),
        ".revenue_unit_item.dable"
      ],
      listeAr: [
        e("LmdlbWluaUxCMUFk"),
        ".right-and-left-sponsers",
        e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),
        e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),
        e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")
      ],
      listeFr: [
        e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),
        e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),
        e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),
        ".site-pub-interstitiel",
        'div[id^="crt-"][data-criteo-id]'
      ],
      officialPolish: [
        "#ceneo-placeholder-ceneo-12",
        e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),
        e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),
        e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),
        e("ZGl2I3NrYXBpZWNfYWQ=")
      ],
      ro: [
        e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),
        e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),
        e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),
        e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),
        'a[href^="/url/"]'
      ],
      ruAd: [
        e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),
        e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),
        e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),
        "#pgeldiz",
        ".yandex-rtb-block"
      ],
      thaiAds: [
        "a[href*=macau-uta-popup]",
        e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),
        e("LmFkczMwMHM="),
        ".bumq",
        ".img-kosana"
      ],
      webAnnoyancesUltralist: [
        "#mod-social-share-2",
        "#social-tools",
        e("LmN0cGwtZnVsbGJhbm5lcg=="),
        ".zergnet-recommend",
        ".yt.btn-link.btn-md.btn"
      ]
    };
  }
  async function vq({ debug: e } = {}) {
    if (!bq()) return;
    const t = gq(), n = Object.keys(t), r = [].concat(...n.map((a) => t[a])), o = await yq(r);
    e && xq(t, o);
    const i = n.filter((a) => {
      const l = t[a];
      return Un(l.map((c) => o[c])) > l.length * 0.6;
    });
    return i.sort(), i;
  }
  function bq() {
    return po() || pg();
  }
  async function yq(e) {
    var t;
    const n = document, r = n.createElement("div"), o = new Array(e.length), i = {};
    Ey(r);
    for (let a = 0; a < e.length; ++a) {
      const l = TV(e[a]);
      l.tagName === "DIALOG" && l.show();
      const s = n.createElement("div");
      Ey(s), s.appendChild(l), r.appendChild(s), o[a] = l;
    }
    for (; !n.body; ) await Fu(50);
    n.body.appendChild(r);
    try {
      for (let a = 0; a < e.length; ++a) o[a].offsetParent || (i[e[a]] = true);
    } finally {
      (t = r.parentNode) === null || t === void 0 || t.removeChild(r);
    }
    return i;
  }
  function Ey(e) {
    e.style.setProperty("visibility", "hidden", "important"), e.style.setProperty("display", "block", "important");
  }
  function xq(e, t) {
    let n = "DOM blockers debug:\n```";
    for (const r of Object.keys(e)) {
      n += `
${r}:`;
      for (const o of e[r]) n += `
  ${t[o] ? "\u{1F6AB}" : "\u27A1\uFE0F"} ${o}`;
    }
    console.log(`${n}
\`\`\``);
  }
  function wq() {
    for (const e of [
      "rec2020",
      "p3",
      "srgb"
    ]) if (matchMedia(`(color-gamut: ${e})`).matches) return e;
  }
  function Cq() {
    if (Ty("inverted")) return true;
    if (Ty("none")) return false;
  }
  function Ty(e) {
    return matchMedia(`(inverted-colors: ${e})`).matches;
  }
  function Sq() {
    if (Py("active")) return true;
    if (Py("none")) return false;
  }
  function Py(e) {
    return matchMedia(`(forced-colors: ${e})`).matches;
  }
  const _q = 100;
  function kq() {
    if (matchMedia("(min-monochrome: 0)").matches) {
      for (let e = 0; e <= _q; ++e) if (matchMedia(`(max-monochrome: ${e})`).matches) return e;
      throw new Error("Too high value");
    }
  }
  function Rq() {
    if (Va("no-preference")) return 0;
    if (Va("high") || Va("more")) return 1;
    if (Va("low") || Va("less")) return -1;
    if (Va("forced")) return 10;
  }
  function Va(e) {
    return matchMedia(`(prefers-contrast: ${e})`).matches;
  }
  function Aq() {
    if (Dy("reduce")) return true;
    if (Dy("no-preference")) return false;
  }
  function Dy(e) {
    return matchMedia(`(prefers-reduced-motion: ${e})`).matches;
  }
  function Eq() {
    if ($y("reduce")) return true;
    if ($y("no-preference")) return false;
  }
  function $y(e) {
    return matchMedia(`(prefers-reduced-transparency: ${e})`).matches;
  }
  function Tq() {
    if (zy("high")) return true;
    if (zy("standard")) return false;
  }
  function zy(e) {
    return matchMedia(`(dynamic-range: ${e})`).matches;
  }
  const qt = Math, rr = () => 0;
  function Pq() {
    const e = qt.acos || rr, t = qt.acosh || rr, n = qt.asin || rr, r = qt.asinh || rr, o = qt.atanh || rr, i = qt.atan || rr, a = qt.sin || rr, l = qt.sinh || rr, s = qt.cos || rr, c = qt.cosh || rr, u = qt.tan || rr, d = qt.tanh || rr, h = qt.exp || rr, p = qt.expm1 || rr, f = qt.log1p || rr, m = (k) => qt.pow(qt.PI, k), b = (k) => qt.log(k + qt.sqrt(k * k - 1)), v = (k) => qt.log(k + qt.sqrt(k * k + 1)), y = (k) => qt.log((1 + k) / (1 - k)) / 2, w = (k) => qt.exp(k) - 1 / qt.exp(k) / 2, x = (k) => (qt.exp(k) + 1 / qt.exp(k)) / 2, S = (k) => qt.exp(k) - 1, _ = (k) => (qt.exp(2 * k) - 1) / (qt.exp(2 * k) + 1), C = (k) => qt.log(1 + k);
    return {
      acos: e(0.12312423423423424),
      acosh: t(1e308),
      acoshPf: b(1e154),
      asin: n(0.12312423423423424),
      asinh: r(1),
      asinhPf: v(1),
      atanh: o(0.5),
      atanhPf: y(0.5),
      atan: i(0.5),
      sin: a(-1e300),
      sinh: l(1),
      sinhPf: w(1),
      cos: s(10.000000000123),
      cosh: c(1),
      coshPf: x(1),
      tan: u(-1e300),
      tanh: d(1),
      tanhPf: _(1),
      exp: h(1),
      expm1: p(1),
      expm1Pf: S(1),
      log1p: f(10),
      log1pPf: C(10),
      powPI: m(-100)
    };
  }
  const Dq = "mmMwWLliI0fiflO&1", Kf = {
    default: [],
    apple: [
      {
        font: "-apple-system-body"
      }
    ],
    serif: [
      {
        fontFamily: "serif"
      }
    ],
    sans: [
      {
        fontFamily: "sans-serif"
      }
    ],
    mono: [
      {
        fontFamily: "monospace"
      }
    ],
    min: [
      {
        fontSize: "1px"
      }
    ],
    system: [
      {
        fontFamily: "system-ui"
      }
    ]
  };
  function $q() {
    return zq((e, t) => {
      const n = {}, r = {};
      for (const o of Object.keys(Kf)) {
        const [i = {}, a = Dq] = Kf[o], l = e.createElement("span");
        l.textContent = a, l.style.whiteSpace = "nowrap";
        for (const s of Object.keys(i)) {
          const c = i[s];
          c !== void 0 && (l.style[s] = c);
        }
        n[o] = l, t.append(e.createElement("br"), l);
      }
      for (const o of Object.keys(Kf)) r[o] = n[o].getBoundingClientRect().width;
      return r;
    });
  }
  function zq(e, t = 4e3) {
    return B_((n, r) => {
      const o = r.document, i = o.body, a = i.style;
      a.width = `${t}px`, a.webkitTextSizeAdjust = a.textSizeAdjust = "none", dc() ? i.style.zoom = `${1 / r.devicePixelRatio}` : po() && (i.style.zoom = "reset");
      const l = o.createElement("div");
      return l.textContent = [
        ...Array(t / 20 << 0)
      ].map(() => "word").join(" "), i.appendChild(l), e(o, i);
    }, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
  }
  function Oq() {
    return navigator.pdfViewerEnabled;
  }
  function Iq() {
    const e = new Float32Array(1), t = new Uint8Array(e.buffer);
    return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
  }
  function Fq() {
    const { ApplePaySession: e } = window;
    if (typeof (e == null ? void 0 : e.canMakePayments) != "function") return -1;
    if (Mq()) return -3;
    try {
      return e.canMakePayments() ? 1 : 0;
    } catch (t) {
      return Lq(t);
    }
  }
  const Mq = DV;
  function Lq(e) {
    if (e instanceof Error && e.name === "InvalidAccessError" && /\bfrom\b.*\binsecure\b/i.test(e.message)) return -2;
    throw e;
  }
  function Bq() {
    var e;
    const t = document.createElement("a"), n = (e = t.attributionSourceId) !== null && e !== void 0 ? e : t.attributionsourceid;
    return n === void 0 ? void 0 : String(n);
  }
  const N_ = -1, H_ = -2, Nq = /* @__PURE__ */ new Set([
    10752,
    2849,
    2884,
    2885,
    2886,
    2928,
    2929,
    2930,
    2931,
    2932,
    2960,
    2961,
    2962,
    2963,
    2964,
    2965,
    2966,
    2967,
    2968,
    2978,
    3024,
    3042,
    3088,
    3089,
    3106,
    3107,
    32773,
    32777,
    32777,
    32823,
    32824,
    32936,
    32937,
    32938,
    32939,
    32968,
    32969,
    32970,
    32971,
    3317,
    33170,
    3333,
    3379,
    3386,
    33901,
    33902,
    34016,
    34024,
    34076,
    3408,
    3410,
    3411,
    3412,
    3413,
    3414,
    3415,
    34467,
    34816,
    34817,
    34818,
    34819,
    34877,
    34921,
    34930,
    35660,
    35661,
    35724,
    35738,
    35739,
    36003,
    36004,
    36005,
    36347,
    36348,
    36349,
    37440,
    37441,
    37443,
    7936,
    7937,
    7938
  ]), Hq = /* @__PURE__ */ new Set([
    34047,
    35723,
    36063,
    34852,
    34853,
    34854,
    34229,
    36392,
    36795,
    38449
  ]), jq = [
    "FRAGMENT_SHADER",
    "VERTEX_SHADER"
  ], Wq = [
    "LOW_FLOAT",
    "MEDIUM_FLOAT",
    "HIGH_FLOAT",
    "LOW_INT",
    "MEDIUM_INT",
    "HIGH_INT"
  ], j_ = "WEBGL_debug_renderer_info", Uq = "WEBGL_polygon_mode";
  function Vq({ cache: e }) {
    var t, n, r, o, i, a;
    const l = W_(e);
    if (!l) return N_;
    if (!V_(l)) return H_;
    const s = U_() ? null : l.getExtension(j_);
    return {
      version: ((t = l.getParameter(l.VERSION)) === null || t === void 0 ? void 0 : t.toString()) || "",
      vendor: ((n = l.getParameter(l.VENDOR)) === null || n === void 0 ? void 0 : n.toString()) || "",
      vendorUnmasked: s ? (r = l.getParameter(s.UNMASKED_VENDOR_WEBGL)) === null || r === void 0 ? void 0 : r.toString() : "",
      renderer: ((o = l.getParameter(l.RENDERER)) === null || o === void 0 ? void 0 : o.toString()) || "",
      rendererUnmasked: s ? (i = l.getParameter(s.UNMASKED_RENDERER_WEBGL)) === null || i === void 0 ? void 0 : i.toString() : "",
      shadingLanguageVersion: ((a = l.getParameter(l.SHADING_LANGUAGE_VERSION)) === null || a === void 0 ? void 0 : a.toString()) || ""
    };
  }
  function qq({ cache: e }) {
    const t = W_(e);
    if (!t) return N_;
    if (!V_(t)) return H_;
    const n = t.getSupportedExtensions(), r = t.getContextAttributes(), o = [], i = [], a = [], l = [], s = [];
    if (r) for (const u of Object.keys(r)) i.push(`${u}=${r[u]}`);
    const c = Oy(t);
    for (const u of c) {
      const d = t[u];
      a.push(`${u}=${d}${Nq.has(d) ? `=${t.getParameter(d)}` : ""}`);
    }
    if (n) for (const u of n) {
      if (u === j_ && U_() || u === Uq && Yq()) continue;
      const d = t.getExtension(u);
      if (!d) {
        o.push(u);
        continue;
      }
      for (const h of Oy(d)) {
        const p = d[h];
        l.push(`${h}=${p}${Hq.has(p) ? `=${t.getParameter(p)}` : ""}`);
      }
    }
    for (const u of jq) for (const d of Wq) {
      const h = Gq(t, u, d);
      s.push(`${u}.${d}=${h.join(",")}`);
    }
    return l.sort(), a.sort(), {
      contextAttributes: i,
      parameters: a,
      shaderPrecisions: s,
      extensions: n,
      extensionParameters: l,
      unsupportedExtensions: o
    };
  }
  function W_(e) {
    if (e.webgl) return e.webgl.context;
    const t = document.createElement("canvas");
    let n;
    t.addEventListener("webglCreateContextError", () => n = void 0);
    for (const r of [
      "webgl",
      "experimental-webgl"
    ]) {
      try {
        n = t.getContext(r);
      } catch {
      }
      if (n) break;
    }
    return e.webgl = {
      context: n
    }, n;
  }
  function Gq(e, t, n) {
    const r = e.getShaderPrecisionFormat(e[t], e[n]);
    return r ? [
      r.rangeMin,
      r.rangeMax,
      r.precision
    ] : [];
  }
  function Oy(e) {
    return Object.keys(e.__proto__).filter(Kq);
  }
  function Kq(e) {
    return typeof e == "string" && !e.match(/[^A-Z0-9_x]/);
  }
  function U_() {
    return hc();
  }
  function Yq() {
    return dc() || po();
  }
  function V_(e) {
    return typeof e.getParameter == "function";
  }
  function Xq() {
    if (!(pg() || po())) return -2;
    if (!window.AudioContext) return -1;
    const t = new AudioContext().baseLatency;
    return t == null ? -1 : isFinite(t) ? t : -3;
  }
  function Jq() {
    if (!window.Intl) return -1;
    const e = window.Intl.DateTimeFormat;
    if (!e) return -2;
    const t = e().resolvedOptions().locale;
    return !t && t !== "" ? -3 : t;
  }
  const Zq = {
    fonts: OV,
    domBlockers: vq,
    fontPreferences: $q,
    audio: SV,
    screenFrame: nq,
    canvas: FV,
    osCpu: qV,
    languages: GV,
    colorDepth: KV,
    deviceMemory: YV,
    screenResolution: XV,
    hardwareConcurrency: rq,
    timezone: iq,
    sessionStorage: lq,
    localStorage: sq,
    indexedDB: cq,
    openDatabase: uq,
    cpuClass: dq,
    platform: fq,
    plugins: IV,
    touchSupport: VV,
    vendor: hq,
    vendorFlavors: pq,
    cookiesEnabled: mq,
    colorGamut: wq,
    invertedColors: Cq,
    forcedColors: Sq,
    monochrome: kq,
    contrast: Rq,
    reducedMotion: Aq,
    reducedTransparency: Eq,
    hdr: Tq,
    math: Pq,
    pdfViewerEnabled: Oq,
    architecture: Iq,
    applePay: Fq,
    privateClickMeasurement: Bq,
    audioBaseLatency: Xq,
    dateTimeLocale: Jq,
    webGlBasics: Vq,
    webGlExtensions: qq
  };
  function Qq(e) {
    return hV(Zq, e, []);
  }
  const eG = "$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";
  function tG(e) {
    const t = nG(e), n = rG(t);
    return {
      score: t,
      comment: eG.replace(/\$/g, `${n}`)
    };
  }
  function nG(e) {
    if (pg()) return 0.4;
    if (po()) return hg() && !(pc() && fc()) ? 0.5 : 0.3;
    const t = "value" in e.platform ? e.platform.value : "";
    return /^Win/.test(t) ? 0.6 : /^Mac/.test(t) ? 0.5 : 0.7;
  }
  function rG(e) {
    return F_(0.99 + 0.01 * e, 1e-4);
  }
  function oG(e) {
    let t = "";
    for (const n of Object.keys(e).sort()) {
      const r = e[n], o = "error" in r ? "error" : JSON.stringify(r.value);
      t += `${t ? "|" : ""}${n.replace(/([:|\\])/g, "\\$1")}:${o}`;
    }
    return t;
  }
  function q_(e) {
    return JSON.stringify(e, (t, n) => n instanceof Error ? cV(n) : n, 2);
  }
  function G_(e) {
    return sV(oG(e));
  }
  function iG(e) {
    let t;
    const n = tG(e);
    return {
      get visitorId() {
        return t === void 0 && (t = G_(this.components)), t;
      },
      set visitorId(r) {
        t = r;
      },
      confidence: n,
      components: e,
      version: O_
    };
  }
  function aG(e = 50) {
    return QU(e, e * 2);
  }
  function lG(e, t) {
    const n = Date.now();
    return {
      async get(r) {
        const o = Date.now(), i = await e(), a = iG(i);
        return (t || (r == null ? void 0 : r.debug)) && console.log(`Copy the text below to get the debug data:

\`\`\`
version: ${a.version}
userAgent: ${navigator.userAgent}
timeBetweenLoadAndGet: ${o - n}
visitorId: ${a.visitorId}
components: ${q_(i)}
\`\`\``), a;
      }
    };
  }
  function sG() {
    if (!(window.__fpjs_d_m || Math.random() >= 1e-3)) try {
      const e = new XMLHttpRequest();
      e.open("get", `https://m1.openfpcdn.io/fingerprintjs/v${O_}/npm-monitoring`, true), e.send();
    } catch (e) {
      console.error(e);
    }
  }
  async function cG(e = {}) {
    const { delayFallback: t, debug: n, monitoring: r = true } = e;
    r && sG(), await aG(t);
    const o = Qq({
      cache: {},
      debug: n
    });
    return lG(o, n);
  }
  var uG = {
    load: cG,
    hashComponents: G_,
    componentsToDebugString: q_
  };
  let Yl, dG, fG, Iy, hG, au, Fy, Co, My, Ya, Yf, K_, pG, mG, Mu, gG, mc, vG, bG, yG, xG, wG, CG, SG, _G, kG, RG, AG, EG, TG, PG, DG, $G, zG, OG, IG, FG, MG, LG, Ly, NG, HG, wp, jG, WG, UG, VG, qG, GG, zl, By, KG, YG, XG, Cp;
  ({ browserFingerprint: Yl } = Qt());
  dG = async () => {
    if (Yl.value) return Yl.value;
    try {
      const t = await (await uG.load()).get();
      return Yl.value = t.visitorId, Yl.value;
    } catch (e) {
      console.error("Failed to get fingerprint:", e);
      const t = "ERROR";
      return Yl.value = t, t;
    }
  };
  fG = "https://apimail.5xu.li";
  ({ loading: Iy, auth: hG, jwt: au, settings: Fy, openSettings: Co, userOpenSettings: My, userSettings: Ya, announcement: Yf, showAuth: K_, adminAuth: pG, showAdminAuth: mG, userJwt: Mu } = Qt());
  gG = Cn.create({
    baseURL: fG,
    timeout: 3e4,
    validateStatus: (e) => e >= 200 && e <= 500
  });
  mc = async (e, t = {}) => {
    Iy.value = true;
    try {
      const n = await dG(), r = await gG.request(e, {
        method: t.method || "GET",
        data: t.body || null,
        headers: {
          "x-lang": Iu.global.locale.value,
          "x-user-token": t.userJwt || Mu.value,
          "x-user-access-token": Ya.value.access_token,
          "x-custom-auth": hG.value,
          "x-admin-auth": pG.value,
          "x-fingerprint": n,
          Authorization: `Bearer ${au.value}`,
          "Content-Type": "application/json"
        }
      });
      if (r.status === 401 && e.startsWith("/admin") && (mG.value = true), r.status === 401 && Co.value.needAuth && (K_.value = true), r.status >= 300) throw new Error(`[${r.status}]: ${r.data}` || "error");
      return r.data;
    } catch (n) {
      throw n.response ? new Error(`Code ${n.response.status}: ${n.response.data}` || "error") : n;
    } finally {
      Iy.value = false;
    }
  };
  vG = async (e, t) => {
    var _a2;
    try {
      const n = await it.fetch("/open_api/settings"), r = n.domainLabels || [];
      ((_a2 = n.domains) == null ? void 0 : _a2.length) < 1 && e.error("No domains found, please check your worker settings"), Object.assign(Co.value, {
        ...n,
        title: n.title || "",
        prefix: n.prefix || "",
        minAddressLen: n.minAddressLen || 1,
        maxAddressLen: n.maxAddressLen || 30,
        needAuth: n.needAuth || false,
        defaultDomains: n.defaultDomains || [],
        domains: n.domains.map((o, i) => ({
          label: r.length > i ? r[i] : o,
          value: o
        })),
        adminContact: n.adminContact || "",
        enableUserCreateEmail: n.enableUserCreateEmail || false,
        disableAnonymousUserCreateEmail: n.disableAnonymousUserCreateEmail || false,
        disableCustomAddressName: n.disableCustomAddressName || false,
        enableUserDeleteEmail: n.enableUserDeleteEmail || false,
        enableAutoReply: n.enableAutoReply || false,
        enableIndexAbout: n.enableIndexAbout || false,
        copyright: n.copyright || Co.value.copyright,
        cfTurnstileSiteKey: n.cfTurnstileSiteKey || "",
        enableWebhook: n.enableWebhook || false,
        isS3Enabled: n.isS3Enabled || false,
        enableAddressPassword: n.enableAddressPassword || false,
        statusUrl: n.statusUrl || ""
      }), Co.value.needAuth && (K_.value = true), Co.value.announcement && !Co.value.fetched && (Co.value.announcement != Yf.value || Co.value.alwaysShowAnnouncement) && (Yf.value = Co.value.announcement, t.info({
        content: () => g("div", {
          innerHTML: Yf.value
        })
      }));
    } catch (n) {
      e.error(n.message || "error");
    } finally {
      Co.value.fetched = true;
    }
  };
  bG = async () => {
    try {
      if (typeof au.value != "string" || au.value.trim() === "" || au.value === "undefined") return "";
      const e = await mc("/api/settings");
      Fy.value = {
        address: e.address,
        auto_reply: e.auto_reply,
        send_balance: e.send_balance
      };
    } finally {
      Fy.value.fetched = true;
    }
  };
  yG = async (e) => {
    try {
      const t = await it.fetch("/user_api/open_settings");
      Object.assign(My.value, t);
    } catch (t) {
      e.error(t.message || "fetch settings failed");
    } finally {
      My.value.fetched = true;
    }
  };
  xG = async (e) => {
    try {
      if (!Mu.value) return;
      const t = await it.fetch("/user_api/settings");
      if (Object.assign(Ya.value, t), Ya.value.new_user_token) try {
        await it.fetch("/user_api/settings", {
          userJwt: Ya.value.new_user_token
        }), Mu.value = Ya.value.new_user_token, console.log("User JWT updated successfully");
      } catch (n) {
        console.error("Failed to update user JWT", n);
      }
    } catch (t) {
      e == null ? void 0 : e.error(t.message || "error");
    } finally {
      Ya.value.fetched = true;
    }
  };
  wG = async (e) => {
    try {
      const { jwt: t } = await mc(`/admin/show_password/${e}`);
      return t;
    } catch (t) {
      throw t;
    }
  };
  CG = async (e) => {
    try {
      await mc(`/admin/delete_address/${e}`, {
        method: "DELETE"
      });
    } catch (t) {
      throw t;
    }
  };
  SG = async () => {
    if (Mu.value) try {
      await mc("/user_api/bind_address", {
        method: "POST"
      });
    } catch (e) {
      throw e;
    }
  };
  it = {
    fetch: mc,
    getSettings: bG,
    getOpenSettings: vG,
    getUserOpenSettings: yG,
    getUserSettings: xG,
    adminShowAddressCredential: wG,
    adminDeleteAddress: CG,
    bindUserAddress: SG
  };
  Lu = async (e) => {
    const t = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(e));
    return Array.from(new Uint8Array(t)).map((r) => r.toString(16).padStart(2, "0")).join("");
  };
  eo = (e, t) => !t || t === "zh" ? e : `/${t}${e}`;
  ta = (e, t) => {
    const n = `${e} UTC`;
    if (t) return n;
    try {
      const r = new Date(n);
      return isNaN(r.getTime()) ? n : r.toLocaleString();
    } catch (r) {
      console.error(r);
    }
    return n;
  };
  yn = (e, t) => {
    const n = e.__vccOpts || e;
    for (const [r, o] of t) n[r] = o;
    return n;
  };
  _G = {
    __name: "Header",
    setup(e) {
      const t = Pn(), n = z2(), { toggleDark: r, isDark: o, isTelegram: i, showAdminPage: a, showAuth: l, auth: s, loading: c, openSettings: u, userSettings: d } = Qt(), h = ag(), p = $a(), f = Dl(), m = L(false), b = D(() => h.path.includes("user") ? "user" : h.path.includes("admin") ? "admin" : "home"), v = async () => {
        try {
          location.reload();
        } catch (R) {
          t.error(R.message || "error");
        }
      }, y = async (R) => {
        R == "zh" ? await p.push(h.fullPath.replace("/en", "")) : await p.push(`/${R}${h.fullPath}`);
      }, { locale: w, t: x } = Ht({
        messages: {
          en: {
            title: "Cloudflare Temp Email",
            dark: "Dark",
            light: "Light",
            accessHeader: "Access Password",
            accessTip: "Please enter the correct access password",
            home: "Home",
            menu: "Menu",
            user: "User",
            status: "Status",
            ok: "OK"
          },
          zh: {
            title: "Cloudflare \u4E34\u65F6\u90AE\u4EF6",
            dark: "\u6697\u8272",
            light: "\u4EAE\u8272",
            accessHeader: "\u8BBF\u95EE\u5BC6\u7801",
            accessTip: "\u8BF7\u8F93\u5165\u7AD9\u70B9\u8BBF\u95EE\u5BC6\u7801",
            home: "\u4E3B\u9875",
            menu: "\u83DC\u5355",
            user: "\u7528\u6237",
            status: "\u72B6\u6001",
            ok: "\u786E\u5B9A"
          }
        }
      }), S = "v1.4.0", _ = D(() => {
        var _a2, _b2;
        return [
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              type: b.value == "home" ? "primary" : "default",
              style: "width: 100%",
              onClick: async () => {
                await p.push(eo("/", w.value)), m.value = false;
              }
            }, {
              default: () => x("home"),
              icon: () => g(kn, {
                component: pW
              })
            }),
            key: "home"
          },
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              type: b.value == "user" ? "primary" : "default",
              style: "width: 100%",
              onClick: async () => {
                await p.push(eo("/user", w.value)), m.value = false;
              }
            }, {
              default: () => x("user"),
              icon: () => g(kn, {
                component: d_
              })
            }),
            key: "user",
            show: !i.value
          },
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              type: b.value == "admin" ? "primary" : "default",
              style: "width: 100%",
              onClick: async () => {
                c.value = true, await p.push(eo("/admin", w.value)), c.value = false, m.value = false;
              }
            }, {
              default: () => "Admin",
              icon: () => g(kn, {
                component: bj
              })
            }),
            show: a.value,
            key: "admin"
          },
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              style: "width: 100%",
              onClick: () => {
                r(), m.value = false;
              }
            }, {
              default: () => o.value ? x("light") : x("dark"),
              icon: () => g(kn, {
                component: o.value ? Vj : Tj
              })
            }),
            key: "theme"
          },
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              style: "width: 100%",
              onClick: async () => {
                w.value == "zh" ? await y("en") : await y("zh"), m.value = false;
              }
            }, {
              default: () => w.value == "zh" ? "English" : "\u4E2D\u6587",
              icon: () => g(kn, {
                component: gW
              })
            }),
            key: "lang"
          },
          {
            label: () => {
              var _a3;
              return g(ht, {
                text: true,
                size: "small",
                style: "width: 100%",
                tag: "a",
                target: "_blank",
                href: (_a3 = u.value) == null ? void 0 : _a3.statusUrl
              }, {
                default: () => x("status"),
                icon: () => g(kn, {
                  component: Xj
                })
              });
            },
            show: !!((_a2 = u.value) == null ? void 0 : _a2.statusUrl),
            key: "status"
          },
          {
            label: () => g(ht, {
              text: true,
              size: "small",
              style: "width: 100%",
              tag: "a",
              target: "_blank",
              href: "https://github.com/dreamhunter2333/cloudflare_temp_email"
            }, {
              default: () => S || "Github",
              icon: () => g(kn, {
                component: u_
              })
            }),
            show: (_b2 = u.value) == null ? void 0 : _b2.showGithub,
            key: "github"
          }
        ];
      });
      PA({
        title: () => u.value.title || x("title"),
        meta: [
          {
            name: "description",
            content: u.value.description || x("title")
          }
        ]
      });
      const C = L(0), k = async () => {
        if (h.path.includes("admin")) {
          C.value = 0;
          return;
        }
        C.value >= 5 ? (C.value = 0, t.info("Change to admin Page"), c.value = true, await p.push(eo("/admin", w.value)), c.value = false) : C.value++, C.value > 0 && t.info(`Click ${5 - C.value + 1} times to enter the admin page`);
      };
      return gt(async () => {
        await it.getOpenSettings(t, n), d.value.user_id || await it.getUserSettings(t);
      }), (R, P) => {
        const B = nO, E = $9, M = kn, z = ht, U = Ta, ee = I9, ne = Cd, ae = wd, ye = Yr, xe = No;
        return de(), Ie("div", null, [
          T(ee, null, {
            title: $(() => [
              Me("h3", null, ve(O(u).title || O(x)("title")), 1)
            ]),
            avatar: $(() => [
              Me("div", {
                onClick: k
              }, [
                T(B, {
                  style: {
                    "margin-left": "10px"
                  },
                  src: "/logo.svg"
                })
              ])
            ]),
            extra: $(() => [
              T(U, null, {
                default: $(() => [
                  O(f) ? (de(), Be(z, {
                    key: 1,
                    text: true,
                    onClick: P[0] || (P[0] = (re) => m.value = !m.value),
                    style: {
                      "margin-right": "10px"
                    }
                  }, {
                    icon: $(() => [
                      T(M, {
                        component: O(Kj)
                      }, null, 8, [
                        "component"
                      ])
                    ]),
                    default: $(() => [
                      Ae(" " + ve(O(x)("menu")), 1)
                    ]),
                    _: 1
                  })) : (de(), Be(E, {
                    key: 0,
                    mode: "horizontal",
                    options: _.value,
                    responsive: ""
                  }, null, 8, [
                    "options"
                  ]))
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          T(ae, {
            show: m.value,
            "onUpdate:show": P[1] || (P[1] = (re) => m.value = re),
            placement: "top",
            style: {
              height: "100vh"
            }
          }, {
            default: $(() => [
              T(ne, {
                title: O(x)("menu"),
                closable: ""
              }, {
                default: $(() => [
                  T(E, {
                    options: _.value
                  }, null, 8, [
                    "options"
                  ])
                ]),
                _: 1
              }, 8, [
                "title"
              ])
            ]),
            _: 1
          }, 8, [
            "show"
          ]),
          T(xe, {
            show: O(l),
            "onUpdate:show": P[3] || (P[3] = (re) => kt(l) ? l.value = re : null),
            closable: false,
            closeOnEsc: false,
            maskClosable: false,
            preset: "dialog",
            title: O(x)("accessHeader")
          }, {
            action: $(() => [
              T(z, {
                loading: O(c),
                onClick: v,
                type: "primary"
              }, {
                default: $(() => [
                  Ae(ve(O(x)("ok")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(x)("accessTip")), 1),
              T(ye, {
                value: O(s),
                "onUpdate:value": P[2] || (P[2] = (re) => kt(s) ? s.value = re : null),
                type: "password",
                "show-password-on": "click"
              }, null, 8, [
                "value"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ]);
      };
    }
  };
  kG = yn(_G, [
    [
      "__scopeId",
      "data-v-8006b645"
    ]
  ]);
  RG = {
    style: {
      "text-align": "center",
      padding: "20px"
    }
  };
  AG = [
    "innerHTML"
  ];
  EG = {
    __name: "Footer",
    setup(e) {
      const { openSettings: t } = Qt(), { t: n } = Ht({
        messages: {
          en: {
            copyright: "Copyright"
          },
          zh: {
            copyright: "\u7248\u6743\u6240\u6709"
          }
        }
      });
      return (r, o) => {
        const i = zm, a = Km, l = Ta;
        return de(), Ie("div", null, [
          T(i, {
            class: "footer-divider"
          }),
          Me("div", RG, [
            T(l, {
              justify: "center"
            }, {
              default: $(() => [
                T(a, {
                  depth: "3"
                }, {
                  default: $(() => [
                    Ae(ve(O(n)("copyright")) + " \xA9 2023-" + ve((/* @__PURE__ */ new Date()).getFullYear()), 1)
                  ]),
                  _: 1
                }),
                T(a, {
                  depth: "3"
                }, {
                  default: $(() => [
                    Me("div", {
                      innerHTML: O(t).copyright
                    }, null, 8, AG)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ])
        ]);
      };
    }
  };
  TG = yn(EG, [
    [
      "__scopeId",
      "data-v-d9827d3e"
    ]
  ]);
  PG = {
    key: 0,
    class: "side"
  };
  DG = [
    "data-ad-client",
    "data-ad-slot"
  ];
  $G = {
    class: "main"
  };
  zG = {
    key: 0,
    class: "side"
  };
  OG = [
    "data-ad-client",
    "data-ad-slot"
  ];
  IG = {
    __name: "App",
    setup(e) {
      const { isDark: t, loading: n, useSideMargin: r, telegramApp: o, isTelegram: i } = Qt(), a = void 0, l = void 0, { locale: s } = Ht({}), c = D(() => t.value ? PB : null), u = D(() => s.value == "zh" ? MT : null), d = Dl(), h = D(() => !d.value && r.value), p = D(() => !d.value && a), f = D(() => p.value ? 8 : 12);
      return p.value && LB({
        src: `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${a}`,
        async: true,
        crossorigin: "anonymous"
      }), gt(async () => {
        try {
          await it.getUserSettings();
        } catch (m) {
          console.error(m);
        }
        document.querySelector('script[src="https://static.cloudflareinsights.com/beacon.min.js"]'), p.value && ((window.adsbygoogle = window.adsbygoogle || []).push({}), (window.adsbygoogle = window.adsbygoogle || []).push({}));
      }), (m, b) => {
        const v = QL, y = L3("router-view"), w = g9, x = Ta, S = o9, _ = dO, C = nF, k = pF, R = _d, P = tI;
        return de(), Be(P, {
          locale: u.value,
          theme: c.value
        }, {
          default: $(() => [
            T(O(t9)),
            T(R, {
              description: "loading...",
              show: O(n)
            }, {
              default: $(() => [
                T(k, {
                  "container-style": "margin-top: 60px;"
                }, {
                  default: $(() => [
                    T(C, {
                      "container-style": "margin-top: 20px;"
                    }, {
                      default: $(() => [
                        T(S, {
                          "x-gap": "12",
                          cols: f.value
                        }, {
                          default: $(() => [
                            h.value ? (de(), Be(v, {
                              key: 0,
                              span: "1"
                            }, {
                              default: $(() => [
                                p.value ? (de(), Ie("div", PG, [
                                  Me("ins", {
                                    class: "adsbygoogle",
                                    style: {
                                      display: "block"
                                    },
                                    "data-ad-client": O(a),
                                    "data-ad-slot": O(l),
                                    "data-ad-format": "auto",
                                    "data-full-width-responsive": "true"
                                  }, null, 8, DG)
                                ])) : tt("", true)
                              ]),
                              _: 1
                            })) : tt("", true),
                            T(v, {
                              span: h.value ? f.value - 2 : f.value
                            }, {
                              default: $(() => [
                                Me("div", $G, [
                                  T(x, {
                                    vertical: ""
                                  }, {
                                    default: $(() => [
                                      T(w, {
                                        style: {
                                          "min-height": "80vh"
                                        }
                                      }, {
                                        default: $(() => [
                                          T(kG),
                                          T(y)
                                        ]),
                                        _: 1
                                      }),
                                      T(TG)
                                    ]),
                                    _: 1
                                  })
                                ])
                              ]),
                              _: 1
                            }, 8, [
                              "span"
                            ]),
                            h.value ? (de(), Be(v, {
                              key: 1,
                              span: "1"
                            }, {
                              default: $(() => [
                                p.value ? (de(), Ie("div", zG, [
                                  Me("ins", {
                                    class: "adsbygoogle",
                                    style: {
                                      display: "block"
                                    },
                                    "data-ad-client": O(a),
                                    "data-ad-slot": O(l),
                                    "data-ad-format": "auto",
                                    "data-full-width-responsive": "true"
                                  }, null, 8, OG)
                                ])) : tt("", true)
                              ]),
                              _: 1
                            })) : tt("", true)
                          ]),
                          _: 1
                        }, 8, [
                          "cols"
                        ]),
                        T(_)
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, [
              "show"
            ])
          ]),
          _: 1
        }, 8, [
          "locale",
          "theme"
        ]);
      };
    }
  };
  FG = yn(IG, [
    [
      "__scopeId",
      "data-v-2ffec98f"
    ]
  ]);
  MG = "modulepreload";
  LG = function(e) {
    return "/" + e;
  };
  Ly = {};
  yl = function(t, n, r) {
    let o = Promise.resolve();
    if (n && n.length > 0) {
      let s = function(c) {
        return Promise.all(c.map((u) => Promise.resolve(u).then((d) => ({
          status: "fulfilled",
          value: d
        }), (d) => ({
          status: "rejected",
          reason: d
        }))));
      };
      document.getElementsByTagName("link");
      const a = document.querySelector("meta[property=csp-nonce]"), l = (a == null ? void 0 : a.nonce) || (a == null ? void 0 : a.getAttribute("nonce"));
      o = s(n.map((c) => {
        if (c = LG(c), c in Ly) return;
        Ly[c] = true;
        const u = c.endsWith(".css"), d = u ? '[rel="stylesheet"]' : "";
        if (document.querySelector(`link[href="${c}"]${d}`)) return;
        const h = document.createElement("link");
        if (h.rel = u ? "stylesheet" : MG, u || (h.as = "script"), h.crossOrigin = "", h.href = c, l && h.setAttribute("nonce", l), document.head.appendChild(h), u) return new Promise((p, f) => {
          h.addEventListener("load", p), h.addEventListener("error", () => f(new Error(`Unable to preload CSS for ${c}`)));
        });
      }));
    }
    function i(a) {
      const l = new Event("vite:preloadError", {
        cancelable: true
      });
      if (l.payload = a, window.dispatchEvent(l), !l.defaultPrevented) throw a;
    }
    return o.then((a) => {
      for (const l of a || []) l.status === "rejected" && i(l.reason);
      return t().catch(i);
    });
  };
  BG = {
    __name: "AdminContact",
    setup(e) {
      const { openSettings: t } = Qt(), { t: n } = Ht({
        messages: {
          en: {
            adminContact: "If you need help, please contact the administrator ({msg})"
          },
          zh: {
            adminContact: "\u5982\u679C\u4F60\u9700\u8981\u5E2E\u52A9\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458 ({msg})"
          }
        }
      });
      return (r, o) => {
        const i = Fi;
        return O(t).adminContact ? (de(), Be(i, {
          key: 0,
          "show-icon": false,
          bordered: false
        }, {
          default: $(() => [
            Me("span", null, ve(O(n)("adminContact", {
              msg: O(t).adminContact
            })), 1)
          ]),
          _: 1
        })) : tt("", true);
      };
    }
  };
  NG = {
    key: 0,
    class: "center"
  };
  HG = {
    __name: "Turnstile",
    props: {
      value: {},
      valueModifiers: {}
    },
    emits: [
      "update:value"
    ],
    setup(e) {
      const { openSettings: t, isDark: n } = Qt(), r = Y3(e, "value"), { locale: o, t: i } = Ht({
        messages: {
          en: {
            refresh: "Refresh"
          },
          zh: {
            refresh: "\u5237\u65B0"
          }
        }
      }), a = L(""), l = L(false), s = async (c) => {
        if (t.value.cfTurnstileSiteKey) {
          l.value = true;
          try {
            let u = document.getElementById("cf-turnstile"), d = 100;
            for (; !u && d-- > 0; ) u = document.getElementById("cf-turnstile"), await new Promise((h) => setTimeout(h, 10));
            for (d = 100; !window.turnstile && d-- > 0; ) await new Promise((h) => setTimeout(h, 10));
            c && a.value && window.turnstile.remove(a.value), a.value = window.turnstile.render("#cf-turnstile", {
              sitekey: t.value.cfTurnstileSiteKey,
              language: o.value == "zh" ? "zh-CN" : "en-US",
              theme: n.value ? "dark" : "light",
              callback: function(h) {
                r.value = h;
              }
            });
          } finally {
            l.value = false;
          }
        }
      };
      return lt(n, async (c) => {
        s(true);
      }, {
        immediate: true
      }), gt(() => {
        r.value = "", s(true);
      }), (c, u) => {
        const d = ht, h = nc, p = oc, f = _d;
        return O(t).cfTurnstileSiteKey ? (de(), Ie("div", NG, [
          T(f, {
            description: "loading...",
            show: l.value
          }, {
            default: $(() => [
              T(p, null, {
                default: $(() => [
                  T(h, {
                    vertical: ""
                  }, {
                    default: $(() => [
                      u[1] || (u[1] = Me("div", {
                        id: "cf-turnstile"
                      }, null, -1)),
                      T(d, {
                        text: "",
                        onClick: u[0] || (u[0] = (m) => s(true))
                      }, {
                        default: $(() => [
                          Ae(ve(O(i)("refresh")), 1)
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "show"
          ])
        ])) : tt("", true);
      };
    }
  };
  wp = yn(HG, [
    [
      "__scopeId",
      "data-v-bf056655"
    ]
  ]);
  jG = {
    key: 0
  };
  WG = {
    key: 1
  };
  UG = {
    class: "switch-login-button"
  };
  VG = {
    key: 0
  };
  qG = {
    key: 1
  };
  GG = {
    __name: "Login",
    props: {
      bindUserAddress: {
        type: Function,
        default: async () => {
          await it.bindUserAddress();
        },
        required: true
      },
      newAddressPath: {
        type: Function,
        default: async (e, t, n) => await it.fetch("/api/new_address", {
          method: "POST",
          body: JSON.stringify({
            name: e,
            domain: t,
            cf_token: n
          })
        }),
        required: true
      }
    },
    setup(e) {
      const t = e, n = Pn(), r = z2(), o = $a(), { jwt: i, loading: a, openSettings: l, showAddressCredential: s, userSettings: c, addressPassword: u } = Qt(), d = L("signin"), h = L(""), p = L(""), f = L(""), m = L(""), b = L("credential"), v = L(""), y = L(""), w = () => {
        var _a2;
        ((_a2 = l.value) == null ? void 0 : _a2.enableAddressPassword) ? b.value = "password" : b.value = "credential";
      }, x = async () => {
        if (b.value === "password") {
          if (!v.value || !y.value) {
            n.error(_("emailPasswordRequired"));
            return;
          }
          try {
            const U = await it.fetch("/api/address_login", {
              method: "POST",
              body: JSON.stringify({
                email: v.value,
                password: await Lu(y.value)
              })
            });
            i.value = U.jwt, await it.getSettings();
            try {
              await t.bindUserAddress();
            } catch (ee) {
              n.error(`${_("bindUserAddressError")}: ${ee.message}`);
            }
            await o.push(eo("/", S.value));
          } catch (U) {
            n.error(U.message || "error");
          }
          return;
        }
        if (!h.value) {
          n.error(_("credentialInput"));
          return;
        }
        try {
          i.value = h.value, await it.getSettings();
          try {
            await t.bindUserAddress();
          } catch (U) {
            n.error(`${_("bindUserAddressError")}: ${U.message}`);
          }
          await o.push(eo("/", S.value));
        } catch (U) {
          n.error(U.message || "error");
        }
      }, { locale: S, t: _ } = Ht({
        messages: {
          en: {
            login: "Login",
            loginAndBind: "Login and Bind",
            pleaseGetNewEmail: 'Please login or click "Get New Email" button to get a new email address',
            getNewEmail: "Create New Email",
            getNewEmailTip1: "Please input the email you want to use. only allow: ",
            getNewEmailTip2: "Levaing it blank will generate a random email address.",
            getNewEmailTip3: "You can choose a domain from the dropdown list.",
            credential: "Email Address Credential",
            ok: "OK",
            generateName: "Generate Fake Name",
            help: "Help",
            credentialInput: "Please input the Mail Address Credential",
            bindUserInfo: "Logged in user, login without binding email or create new email address will bind to current user",
            bindUserAddressError: "Error when bind email address to user",
            autoGeneratedName: "Auto-generated name",
            passwordLogin: "Password Login",
            credentialLogin: "Credential Login",
            email: "Email",
            password: "Password",
            emailPasswordRequired: "Email and password are required"
          },
          zh: {
            login: "\u767B\u5F55",
            loginAndBind: "\u767B\u5F55\u5E76\u7ED1\u5B9A",
            pleaseGetNewEmail: '\u8BF7"\u767B\u5F55"\u6216\u70B9\u51FB "\u6CE8\u518C\u65B0\u90AE\u7BB1" \u6309\u94AE\u6765\u83B7\u53D6\u4E00\u4E2A\u65B0\u7684\u90AE\u7BB1\u5730\u5740',
            getNewEmail: "\u521B\u5EFA\u65B0\u90AE\u7BB1",
            getNewEmailTip1: "\u8BF7\u8F93\u5165\u4F60\u60F3\u8981\u4F7F\u7528\u7684\u90AE\u7BB1\u5730\u5740, \u53EA\u5141\u8BB8: ",
            getNewEmailTip2: "\u7559\u7A7A\u5C06\u4F1A\u751F\u6210\u4E00\u4E2A\u968F\u673A\u7684\u90AE\u7BB1\u5730\u5740\u3002",
            getNewEmailTip3: "\u4F60\u53EF\u4EE5\u4ECE\u4E0B\u62C9\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u57DF\u540D\u3002",
            credential: "\u90AE\u7BB1\u5730\u5740\u51ED\u636E",
            ok: "\u786E\u5B9A",
            generateName: "\u751F\u6210\u968F\u673A\u540D\u5B57",
            help: "\u5E2E\u52A9",
            credentialInput: "\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\u51ED\u636E",
            bindUserInfo: "\u5DF2\u767B\u5F55\u7528\u6237, \u767B\u5F55\u672A\u7ED1\u5B9A\u90AE\u7BB1\u6216\u521B\u5EFA\u65B0\u90AE\u7BB1\u5730\u5740\u5C06\u7ED1\u5B9A\u5230\u5F53\u524D\u7528\u6237",
            bindUserAddressError: "\u7ED1\u5B9A\u90AE\u7BB1\u5730\u5740\u5230\u7528\u6237\u65F6\u9519\u8BEF",
            autoGeneratedName: "\u81EA\u52A8\u751F\u6210\u540D\u79F0",
            passwordLogin: "\u5BC6\u7801\u767B\u5F55",
            credentialLogin: "\u51ED\u636E\u767B\u5F55",
            email: "\u90AE\u7BB1",
            password: "\u5BC6\u7801",
            emailPasswordRequired: "\u90AE\u7BB1\u548C\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A"
          }
        }
      }), C = D(() => c.value.user_email ? _("loginAndBind") : _("login")), k = D(() => {
        try {
          if (l.value.addressRegex) return new RegExp(l.value.addressRegex, "g");
        } catch (U) {
          console.error(U), n.error(`Invalid addressRegex: ${l.value.addressRegex}`);
        }
        return /[^a-z0-9]/g;
      }), R = L(false), P = async () => {
        try {
          R.value = true;
          const { faker: U } = await yl(async () => {
            const { faker: ee } = await import("https://esm.sh/@faker-js/faker").then(async (m10) => {
              await m10.__tla;
              return m10;
            });
            return {
              faker: ee
            };
          }, []);
          p.value = U.internet.email().split("@")[0].replace(/\s+/g, ".").replace(/\.{2,}/g, ".").replace(k.value, "").toLowerCase(), p.value.length > l.value.maxAddressLen && (p.value = p.value.slice(0, l.value.maxAddressLen));
        } catch (U) {
          n.error(U.message || "error");
        } finally {
          R.value = false;
        }
      }, B = async () => {
        try {
          const U = l.value.disableCustomAddressName ? "" : p.value, ee = await t.newAddressPath(U, f.value, m.value);
          i.value = ee.jwt, u.value = ee.password || "", await it.getSettings(), await o.push(eo("/", S.value)), s.value = true;
          try {
            await t.bindUserAddress();
          } catch (ne) {
            n.error(`${_("bindUserAddressError")}: ${ne.message}`);
          }
        } catch (U) {
          n.error(U.message || "error");
        }
      }, E = D(() => {
        var _a2;
        return ((_a2 = c.value) == null ? void 0 : _a2.user_role) ? c.value.user_role.prefix || "" : l.value.prefix;
      }), M = D(() => {
        if (c.value.user_role) {
          const U = c.value.user_role.domains;
          return U ? l.value.domains.filter((ee) => U.includes(ee.value)) : l.value.domains;
        }
        return l.value.defaultDomains ? l.value.domains.filter((U) => l.value.defaultDomains.includes(U.value)) : l.value.domains;
      }), z = D(() => l.value.disableAnonymousUserCreateEmail && !c.value.user_email ? false : l.value.enableUserCreateEmail);
      return gt(async () => {
        var _a2;
        (!l.value.domains || l.value.domains.length === 0) && await it.getOpenSettings(n, r), f.value = M.value ? (_a2 = M.value[0]) == null ? void 0 : _a2.value : "", w();
      }), (U, ee) => {
        const ne = Fi, ae = Yr, ye = oc, xe = ht, re = kn, Y = Om, H = Pa, oe = U8, ce = Qs, be = gd, ie = _d, fe = Da;
        return de(), Ie("div", null, [
          O(c).user_email ? (de(), Be(ne, {
            key: 0,
            "show-icon": false,
            bordered: false,
            closable: ""
          }, {
            default: $(() => [
              Me("span", null, ve(O(_)("bindUserInfo")), 1)
            ]),
            _: 1
          })) : tt("", true),
          O(l).fetched ? (de(), Be(fe, {
            key: 1,
            value: d.value,
            "onUpdate:value": ee[8] || (ee[8] = (F) => d.value = F),
            size: "large",
            "justify-content": "space-evenly"
          }, {
            default: $(() => [
              T(H, {
                name: "signin",
                tab: C.value
              }, {
                default: $(() => [
                  T(Y, null, {
                    default: $(() => {
                      var _a2;
                      return [
                        b.value === "password" ? (de(), Ie("div", jG, [
                          T(ye, {
                            label: O(_)("email"),
                            required: ""
                          }, {
                            default: $(() => [
                              T(ae, {
                                value: v.value,
                                "onUpdate:value": ee[0] || (ee[0] = (F) => v.value = F)
                              }, null, 8, [
                                "value"
                              ])
                            ]),
                            _: 1
                          }, 8, [
                            "label"
                          ]),
                          T(ye, {
                            label: O(_)("password"),
                            required: ""
                          }, {
                            default: $(() => [
                              T(ae, {
                                value: y.value,
                                "onUpdate:value": ee[1] || (ee[1] = (F) => y.value = F),
                                type: "password",
                                "show-password-on": "click"
                              }, null, 8, [
                                "value"
                              ])
                            ]),
                            _: 1
                          }, 8, [
                            "label"
                          ])
                        ])) : (de(), Ie("div", WG, [
                          T(ye, {
                            label: O(_)("credential"),
                            required: ""
                          }, {
                            default: $(() => [
                              T(ae, {
                                value: h.value,
                                "onUpdate:value": ee[2] || (ee[2] = (F) => h.value = F),
                                type: "textarea",
                                autosize: {
                                  minRows: 3
                                }
                              }, null, 8, [
                                "value"
                              ])
                            ]),
                            _: 1
                          }, 8, [
                            "label"
                          ])
                        ])),
                        Me("div", UG, [
                          ((_a2 = O(l)) == null ? void 0 : _a2.enableAddressPassword) ? (de(), Be(xe, {
                            key: 0,
                            onClick: ee[3] || (ee[3] = (F) => b.value === "password" ? b.value = "credential" : b.value = "password"),
                            type: "info",
                            quaternary: "",
                            size: "tiny"
                          }, {
                            default: $(() => [
                              Ae(ve(b.value === "password" ? O(_)("credentialLogin") : O(_)("passwordLogin")), 1)
                            ]),
                            _: 1
                          })) : tt("", true)
                        ]),
                        T(xe, {
                          onClick: x,
                          loading: O(a),
                          type: "primary",
                          block: "",
                          secondary: "",
                          strong: ""
                        }, {
                          icon: $(() => [
                            T(re, {
                              component: O(Dj)
                            }, null, 8, [
                              "component"
                            ])
                          ]),
                          default: $(() => [
                            Ae(" " + ve(C.value), 1)
                          ]),
                          _: 1
                        }, 8, [
                          "loading"
                        ]),
                        z.value ? (de(), Be(xe, {
                          key: 2,
                          onClick: ee[4] || (ee[4] = (F) => d.value = "register"),
                          block: "",
                          secondary: "",
                          strong: ""
                        }, {
                          icon: $(() => [
                            T(re, {
                              component: O(oy)
                            }, null, 8, [
                              "component"
                            ])
                          ]),
                          default: $(() => [
                            Ae(" " + ve(O(_)("getNewEmail")), 1)
                          ]),
                          _: 1
                        })) : tt("", true)
                      ];
                    }),
                    _: 1
                  })
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              z.value ? (de(), Be(H, {
                key: 0,
                name: "register",
                tab: O(_)("getNewEmail")
              }, {
                default: $(() => [
                  T(ie, {
                    show: R.value
                  }, {
                    default: $(() => [
                      T(Y, null, {
                        default: $(() => [
                          Me("span", null, [
                            O(l).disableCustomAddressName ? tt("", true) : (de(), Ie("p", VG, ve(O(_)("getNewEmailTip1") + k.value.source), 1)),
                            O(l).disableCustomAddressName ? tt("", true) : (de(), Ie("p", qG, ve(O(_)("getNewEmailTip2")), 1)),
                            Me("p", null, ve(O(_)("getNewEmailTip3")), 1)
                          ]),
                          O(l).disableCustomAddressName ? tt("", true) : (de(), Be(xe, {
                            key: 0,
                            onClick: P,
                            style: {
                              "margin-bottom": "10px"
                            }
                          }, {
                            default: $(() => [
                              Ae(ve(O(_)("generateName")), 1)
                            ]),
                            _: 1
                          })),
                          T(be, null, {
                            default: $(() => [
                              E.value ? (de(), Be(oe, {
                                key: 0
                              }, {
                                default: $(() => [
                                  Ae(ve(E.value), 1)
                                ]),
                                _: 1
                              })) : tt("", true),
                              O(l).disableCustomAddressName ? (de(), Be(ae, {
                                key: 2,
                                value: O(_)("autoGeneratedName"),
                                disabled: ""
                              }, null, 8, [
                                "value"
                              ])) : (de(), Be(ae, {
                                key: 1,
                                value: p.value,
                                "onUpdate:value": ee[5] || (ee[5] = (F) => p.value = F),
                                "show-count": "",
                                minlength: O(l).minAddressLen,
                                maxlength: O(l).maxAddressLen
                              }, null, 8, [
                                "value",
                                "minlength",
                                "maxlength"
                              ])),
                              T(oe, null, {
                                default: $(() => [
                                  ...ee[9] || (ee[9] = [
                                    Ae("@", -1)
                                  ])
                                ]),
                                _: 1
                              }),
                              T(ce, {
                                value: f.value,
                                "onUpdate:value": ee[6] || (ee[6] = (F) => f.value = F),
                                "consistent-menu-width": false,
                                options: M.value
                              }, null, 8, [
                                "value",
                                "options"
                              ])
                            ]),
                            _: 1
                          }),
                          T(wp, {
                            value: m.value,
                            "onUpdate:value": ee[7] || (ee[7] = (F) => m.value = F)
                          }, null, 8, [
                            "value"
                          ]),
                          T(xe, {
                            type: "primary",
                            block: "",
                            secondary: "",
                            strong: "",
                            onClick: B,
                            loading: O(a)
                          }, {
                            icon: $(() => [
                              T(re, {
                                component: O(oy)
                              }, null, 8, [
                                "component"
                              ])
                            ]),
                            default: $(() => [
                              Ae(" " + ve(O(_)("getNewEmail")), 1)
                            ]),
                            _: 1
                          }, 8, [
                            "loading"
                          ])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, [
                    "show"
                  ])
                ]),
                _: 1
              }, 8, [
                "tab"
              ])) : tt("", true),
              T(H, {
                name: "help",
                tab: O(_)("help")
              }, {
                default: $(() => [
                  T(ne, {
                    "show-icon": false,
                    bordered: false
                  }, {
                    default: $(() => [
                      Me("span", null, ve(O(_)("pleaseGetNewEmail")), 1)
                    ]),
                    _: 1
                  }),
                  T(BG)
                ]),
                _: 1
              }, 8, [
                "tab"
              ])
            ]),
            _: 1
          }, 8, [
            "value"
          ])) : tt("", true)
        ]);
      };
    }
  };
  zl = yn(GG, [
    [
      "__scopeId",
      "data-v-09845092"
    ]
  ]);
  By = pe({
    __name: "TelegramAddress",
    setup(e) {
      const { jwt: t, telegramApp: n } = Qt(), r = Pn(), { t: o } = Ht({
        messages: {
          en: {
            success: "success",
            address: "Address",
            actions: "Actions",
            changeMailAddress: "Change Mail Address",
            unbindMailAddress: "Unbind Mail Address",
            bind: "Bind",
            bindAddressSuccess: "Bind Address Success"
          },
          zh: {
            success: "\u6210\u529F",
            address: "\u5730\u5740",
            actions: "\u64CD\u4F5C",
            changeMailAddress: "\u5207\u6362\u90AE\u7BB1\u5730\u5740",
            unbindMailAddress: "\u89E3\u7ED1\u90AE\u7BB1\u5730\u5740",
            bind: "\u7ED1\u5B9A",
            bindAddressSuccess: "\u7ED1\u5B9A\u5730\u5740\u6210\u529F"
          }
        }
      }), i = L([]), a = async () => {
        try {
          i.value = await it.fetch("/telegram/get_bind_address", {
            method: "POST",
            body: JSON.stringify({
              initData: n.value.initData
            })
          });
        } catch (u) {
          r.error(u.message || "error");
        }
      }, l = async (u, d, h) => await it.fetch("/telegram/new_address", {
        method: "POST",
        body: JSON.stringify({
          initData: n.value.initData,
          address: `${u}@${d}`,
          cf_token: h
        })
      }), s = async () => {
        try {
          await it.fetch("/telegram/bind_address", {
            method: "POST",
            body: JSON.stringify({
              initData: n.value.initData,
              jwt: t.value
            })
          }), r.success(o("bindAddressSuccess"));
        } catch (u) {
          r.error(u.message || "error");
        }
      }, c = [
        {
          title: o("address"),
          key: "address"
        },
        {
          title: o("actions"),
          key: "actions",
          render(u) {
            return g("div", [
              g(so, {
                onPositiveClick: () => {
                  t.value = u.jwt, location.reload();
                }
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "primary"
                }, {
                  default: () => o("changeMailAddress")
                }),
                default: () => `${o("changeMailAddress")}?`
              }),
              g(so, {
                onPositiveClick: () => {
                  it.fetch("/telegram/unbind_address", {
                    method: "POST",
                    body: JSON.stringify({
                      initData: n.value.initData,
                      address: u.address
                    })
                  }), t.value = "", location.reload();
                }
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "warning"
                }, {
                  default: () => o("unbindMailAddress")
                }),
                default: () => `${o("unbindMailAddress")}?`
              })
            ]);
          }
        }
      ];
      return gt(async () => {
        var _a2;
        !((_a2 = n.value) == null ? void 0 : _a2.initData) || i.value.length > 0 || await a();
      }), (u, d) => {
        const h = tc, p = Pa, f = Da;
        return de(), Ie("div", null, [
          T(f, {
            type: "segment"
          }, {
            default: $(() => [
              T(p, {
                name: "address",
                tab: O(o)("address")
              }, {
                default: $(() => [
                  T(h, {
                    columns: c,
                    data: i.value,
                    bordered: false,
                    embedded: ""
                  }, null, 8, [
                    "data"
                  ])
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(p, {
                name: "bind",
                tab: O(o)("bind")
              }, {
                default: $(() => [
                  T(zl, {
                    newAddressPath: l,
                    bindUserAddress: s
                  })
                ]),
                _: 1
              }, 8, [
                "tab"
              ])
            ]),
            _: 1
          })
        ]);
      };
    }
  });
  KG = pe({
    __name: "LocalAddress",
    setup(e) {
      const { jwt: t } = Qt(), n = Pn(), { t: r } = Ht({
        messages: {
          en: {
            tip: "These addresses are stored in your browser, maybe loss if you clear the browser cache.",
            success: "success",
            address: "Address",
            actions: "Actions",
            changeMailAddress: "Change Mail Address",
            unbindMailAddress: "Unbind Mail Address credential",
            create_or_bind: "Create or Bind",
            bindAddressSuccess: "Bind Address Success"
          },
          zh: {
            tip: "\u8FD9\u4E9B\u5730\u5740\u5B58\u50A8\u5728\u60A8\u7684\u6D4F\u89C8\u5668\u4E2D\uFF0C\u5982\u679C\u60A8\u6E05\u9664\u6D4F\u89C8\u5668\u7F13\u5B58\uFF0C\u53EF\u80FD\u4F1A\u4E22\u5931\u3002",
            success: "\u6210\u529F",
            address: "\u5730\u5740",
            actions: "\u64CD\u4F5C",
            changeMailAddress: "\u5207\u6362\u90AE\u7BB1\u5730\u5740",
            unbindMailAddress: "\u89E3\u7ED1\u90AE\u7BB1\u5730\u5740",
            create_or_bind: "\u521B\u5EFA\u6216\u7ED1\u5B9A",
            bindAddressSuccess: "\u7ED1\u5B9A\u5730\u5740\u6210\u529F"
          }
        }
      }), o = L("address"), i = $u("LocalAddressCache", []), a = D(() => (i.value.includes(t.value) || i.value.push(t.value), i.value.map((c) => {
        try {
          return {
            valid: true,
            address: JSON.parse(decodeURIComponent(atob(c.split(".")[1].replace(/-/g, "+").replace(/_/g, "/")))).address,
            jwt: c
          };
        } catch {
          return {
            valid: false,
            address: `invalid jwt [${c}]`,
            jwt: c
          };
        }
      }))), l = async () => {
        try {
          i.value.includes(t.value) || i.value.push(t.value), o.value = "address", n.success(r("bindAddressSuccess"));
        } catch (c) {
          n.error(c.message || "error");
        }
      }, s = [
        {
          title: r("address"),
          key: "address"
        },
        {
          title: r("actions"),
          key: "actions",
          render(c) {
            return g("div", [
              g(so, {
                onPositiveClick: () => {
                  t.value = c.jwt, location.reload();
                }
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "primary"
                }, {
                  default: () => r("changeMailAddress")
                }),
                default: () => `${r("changeMailAddress")}?`
              }),
              g(so, {
                onPositiveClick: () => {
                  t.value !== c.jwt && (i.value = i.value.filter((u) => u !== c.jwt));
                }
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  disabled: t.value === c.jwt,
                  type: "warning"
                }, {
                  default: () => r("unbindMailAddress")
                }),
                default: () => `${r("unbindMailAddress")}?`
              })
            ]);
          }
        }
      ];
      return (c, u) => {
        const d = Fi, h = tc, p = Pa, f = Da;
        return de(), Ie("div", null, [
          T(d, {
            type: "warning",
            "show-icon": false,
            bordered: false
          }, {
            default: $(() => [
              Me("span", null, ve(O(r)("tip")), 1)
            ]),
            _: 1
          }),
          T(f, {
            type: "segment",
            value: o.value,
            "onUpdate:value": u[0] || (u[0] = (m) => o.value = m)
          }, {
            default: $(() => [
              T(p, {
                name: "address",
                tab: O(r)("address")
              }, {
                default: $(() => [
                  T(h, {
                    columns: s,
                    data: a.value,
                    bordered: false,
                    embedded: ""
                  }, null, 8, [
                    "data"
                  ])
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(p, {
                name: "create_or_bind",
                tab: O(r)("create_or_bind")
              }, {
                default: $(() => [
                  T(zl, {
                    bindUserAddress: l
                  })
                ]),
                _: 1
              }, 8, [
                "tab"
              ])
            ]),
            _: 1
          }, 8, [
            "value"
          ])
        ]);
      };
    }
  });
  YG = {
    style: {
      overflow: "auto"
    }
  };
  XG = {
    __name: "AddressManagement",
    setup(e) {
      const { jwt: t } = Qt(), n = Pn(), r = $a(), { locale: o, t: i } = Ht({
        messages: {
          en: {
            success: "success",
            name: "Name",
            mail_count: "Mail Count",
            send_count: "Send Count",
            actions: "Actions",
            changeMailAddress: "Change Address",
            unbindAddress: "Unbind Address",
            unbindAddressTip: "Before unbinding, please switch to this email address and save the email address credential.",
            transferAddress: "Transfer Address",
            targetUserEmail: "Target User Email",
            transferAddressTip: "Transfer address to another user will remove the address from your account and transfer it to another user. Are you sure to transfer the address?",
            address: "Address",
            create_or_bind: "Create or Bind"
          },
          zh: {
            success: "\u6210\u529F",
            name: "\u540D\u79F0",
            mail_count: "\u90AE\u4EF6\u6570\u91CF",
            send_count: "\u53D1\u9001\u6570\u91CF",
            actions: "\u64CD\u4F5C",
            changeMailAddress: "\u5207\u6362\u5730\u5740",
            unbindAddress: "\u89E3\u7ED1\u5730\u5740",
            unbindAddressTip: "\u89E3\u7ED1\u524D\u8BF7\u5207\u6362\u5230\u6B64\u90AE\u7BB1\u5730\u5740\u5E76\u4FDD\u5B58\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1\u3002",
            transferAddress: "\u8F6C\u79FB\u5730\u5740",
            targetUserEmail: "\u76EE\u6807\u7528\u6237\u90AE\u7BB1",
            transferAddressTip: "\u8F6C\u79FB\u5730\u5740\u5230\u5176\u4ED6\u7528\u6237\u5C06\u4F1A\u4ECE\u4F60\u7684\u8D26\u6237\u4E2D\u79FB\u9664\u6B64\u5730\u5740\u5E76\u8F6C\u79FB\u7ED9\u5176\u4ED6\u7528\u6237\u3002\u786E\u5B9A\u8981\u8F6C\u79FB\u5730\u5740\u5417\uFF1F",
            address: "\u5730\u5740",
            create_or_bind: "\u521B\u5EFA\u6216\u7ED1\u5B9A"
          }
        }
      }), a = L([]), l = L(false), s = L(""), c = L(0), u = L(""), d = async (b) => {
        try {
          const v = await it.fetch(`/user_api/bind_address_jwt/${b}`);
          if (n.success(i("changeMailAddress") + " " + i("success")), !v.jwt) {
            n.error("jwt not found");
            return;
          }
          t.value = v.jwt, await r.push(eo("/", o.value)), location.reload();
        } catch (v) {
          console.log(v), n.error(v.message || "error");
        }
      }, h = async (b) => {
        try {
          const v = await it.fetch("/user_api/unbind_address", {
            method: "POST",
            body: JSON.stringify({
              address_id: b
            })
          });
          n.success(i("unbindAddress") + " " + i("success")), await f();
        } catch (v) {
          console.log(v), n.error(v.message || "error");
        }
      }, p = async () => {
        if (!u.value) {
          n.error("targetUserEmail is required");
          return;
        }
        if (!c.value) {
          n.error("currentAddressId is required");
          return;
        }
        try {
          const b = await it.fetch("/user_api/transfer_address", {
            method: "POST",
            body: JSON.stringify({
              address_id: c.value,
              target_user_email: u.value
            })
          });
          n.success(i("transferAddress") + " " + i("success")), await f(), l.value = false, c.value = 0, s.value = "", u.value = "";
        } catch (b) {
          console.log(b), n.error(b.message || "error");
        }
      }, f = async () => {
        try {
          const { results: b } = await it.fetch("/user_api/bind_address");
          a.value = b;
        } catch (b) {
          console.log(b), n.error(b.message || "error");
        }
      }, m = [
        {
          title: i("name"),
          key: "name"
        },
        {
          title: i("mail_count"),
          key: "mail_count",
          render(b) {
            return g(Db, {
              value: b.mail_count,
              "show-zero": true,
              max: 99,
              type: "success"
            });
          }
        },
        {
          title: i("send_count"),
          key: "send_count",
          render(b) {
            return g(Db, {
              value: b.send_count,
              "show-zero": true,
              max: 99,
              type: "success"
            });
          }
        },
        {
          title: i("actions"),
          key: "actions",
          render(b) {
            return g("div", [
              g(so, {
                onPositiveClick: () => d(b.id)
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "primary"
                }, {
                  default: () => i("changeMailAddress")
                }),
                default: () => `${i("changeMailAddress")}?`
              }),
              g(ht, {
                tertiary: true,
                type: "primary",
                onClick: () => {
                  c.value = b.id, s.value = b.name, l.value = true;
                }
              }, {
                default: () => i("transferAddress")
              }),
              g(so, {
                onPositiveClick: () => h(b.id)
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "error"
                }, {
                  default: () => i("unbindAddress")
                }),
                default: () => i("unbindAddressTip")
              })
            ]);
          }
        }
      ];
      return gt(async () => {
        await f();
      }), (b, v) => {
        const y = Yr, w = No, x = tc, S = Pa, _ = Da;
        return de(), Ie("div", null, [
          T(w, {
            show: l.value,
            "onUpdate:show": v[1] || (v[1] = (C) => l.value = C),
            preset: "dialog",
            title: O(i)("transferAddress")
          }, {
            action: $(() => [
              T(O(ht), {
                loading: b.loading,
                onClick: p,
                size: "small",
                tertiary: "",
                type: "error"
              }, {
                default: $(() => [
                  Ae(ve(O(i)("transferAddress")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("span", null, [
                Me("p", null, ve(O(i)("transferAddressTip")), 1),
                Me("p", null, ve(O(i)("transferAddress") + ": " + s.value), 1),
                T(y, {
                  value: u.value,
                  "onUpdate:value": v[0] || (v[0] = (C) => u.value = C),
                  placeholder: O(i)("targetUserEmail")
                }, null, 8, [
                  "value",
                  "placeholder"
                ])
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(_, {
            type: "segment"
          }, {
            default: $(() => [
              T(S, {
                name: "address",
                tab: O(i)("address")
              }, {
                default: $(() => [
                  Me("div", YG, [
                    T(x, {
                      columns: m,
                      data: a.value,
                      bordered: false,
                      embedded: ""
                    }, null, 8, [
                      "data"
                    ])
                  ])
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(S, {
                name: "create_or_bind",
                tab: O(i)("create_or_bind")
              }, {
                default: $(() => [
                  T(zl)
                ]),
                _: 1
              }, 8, [
                "tab"
              ])
            ]),
            _: 1
          })
        ]);
      };
    }
  };
  Cp = yn(XG, [
    [
      "__scopeId",
      "data-v-2af033d1"
    ]
  ]);
  pJ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  JG = function(e) {
    return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  };
  var lu = {
    exports: {}
  };
  var ZG = lu.exports, Ny;
  function QG() {
    return Ny || (Ny = 1, (function(e, t) {
      (function(r, o) {
        e.exports = o();
      })(ZG, function() {
        return (function() {
          var n = {
            686: (function(i, a, l) {
              l.d(a, {
                default: function() {
                  return re;
                }
              });
              var s = l(279), c = l.n(s), u = l(370), d = l.n(u), h = l(817), p = l.n(h);
              function f(Y) {
                try {
                  return document.execCommand(Y);
                } catch {
                  return false;
                }
              }
              var m = function(H) {
                var oe = p()(H);
                return f("cut"), oe;
              }, b = m;
              function v(Y) {
                var H = document.documentElement.getAttribute("dir") === "rtl", oe = document.createElement("textarea");
                oe.style.fontSize = "12pt", oe.style.border = "0", oe.style.padding = "0", oe.style.margin = "0", oe.style.position = "absolute", oe.style[H ? "right" : "left"] = "-9999px";
                var ce = window.pageYOffset || document.documentElement.scrollTop;
                return oe.style.top = "".concat(ce, "px"), oe.setAttribute("readonly", ""), oe.value = Y, oe;
              }
              var y = function(H, oe) {
                var ce = v(H);
                oe.container.appendChild(ce);
                var be = p()(ce);
                return f("copy"), ce.remove(), be;
              }, w = function(H) {
                var oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
                  container: document.body
                }, ce = "";
                return typeof H == "string" ? ce = y(H, oe) : H instanceof HTMLInputElement && ![
                  "text",
                  "search",
                  "url",
                  "tel",
                  "password"
                ].includes(H == null ? void 0 : H.type) ? ce = y(H.value, oe) : (ce = p()(H), f("copy")), ce;
              }, x = w;
              function S(Y) {
                "@babel/helpers - typeof";
                return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? S = function(oe) {
                  return typeof oe;
                } : S = function(oe) {
                  return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe;
                }, S(Y);
              }
              var _ = function() {
                var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = H.action, ce = oe === void 0 ? "copy" : oe, be = H.container, ie = H.target, fe = H.text;
                if (ce !== "copy" && ce !== "cut") throw new Error('Invalid "action" value, use either "copy" or "cut"');
                if (ie !== void 0) if (ie && S(ie) === "object" && ie.nodeType === 1) {
                  if (ce === "copy" && ie.hasAttribute("disabled")) throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
                  if (ce === "cut" && (ie.hasAttribute("readonly") || ie.hasAttribute("disabled"))) throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
                } else throw new Error('Invalid "target" value, use a valid Element');
                if (fe) return x(fe, {
                  container: be
                });
                if (ie) return ce === "cut" ? b(ie) : x(ie, {
                  container: be
                });
              }, C = _;
              function k(Y) {
                "@babel/helpers - typeof";
                return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? k = function(oe) {
                  return typeof oe;
                } : k = function(oe) {
                  return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe;
                }, k(Y);
              }
              function R(Y, H) {
                if (!(Y instanceof H)) throw new TypeError("Cannot call a class as a function");
              }
              function P(Y, H) {
                for (var oe = 0; oe < H.length; oe++) {
                  var ce = H[oe];
                  ce.enumerable = ce.enumerable || false, ce.configurable = true, "value" in ce && (ce.writable = true), Object.defineProperty(Y, ce.key, ce);
                }
              }
              function B(Y, H, oe) {
                return H && P(Y.prototype, H), oe && P(Y, oe), Y;
              }
              function E(Y, H) {
                if (typeof H != "function" && H !== null) throw new TypeError("Super expression must either be null or a function");
                Y.prototype = Object.create(H && H.prototype, {
                  constructor: {
                    value: Y,
                    writable: true,
                    configurable: true
                  }
                }), H && M(Y, H);
              }
              function M(Y, H) {
                return M = Object.setPrototypeOf || function(ce, be) {
                  return ce.__proto__ = be, ce;
                }, M(Y, H);
              }
              function z(Y) {
                var H = ne();
                return function() {
                  var ce = ae(Y), be;
                  if (H) {
                    var ie = ae(this).constructor;
                    be = Reflect.construct(ce, arguments, ie);
                  } else be = ce.apply(this, arguments);
                  return U(this, be);
                };
              }
              function U(Y, H) {
                return H && (k(H) === "object" || typeof H == "function") ? H : ee(Y);
              }
              function ee(Y) {
                if (Y === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
                return Y;
              }
              function ne() {
                if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return false;
                if (typeof Proxy == "function") return true;
                try {
                  return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
                  })), true;
                } catch {
                  return false;
                }
              }
              function ae(Y) {
                return ae = Object.setPrototypeOf ? Object.getPrototypeOf : function(oe) {
                  return oe.__proto__ || Object.getPrototypeOf(oe);
                }, ae(Y);
              }
              function ye(Y, H) {
                var oe = "data-clipboard-".concat(Y);
                if (H.hasAttribute(oe)) return H.getAttribute(oe);
              }
              var xe = (function(Y) {
                E(oe, Y);
                var H = z(oe);
                function oe(ce, be) {
                  var ie;
                  return R(this, oe), ie = H.call(this), ie.resolveOptions(be), ie.listenClick(ce), ie;
                }
                return B(oe, [
                  {
                    key: "resolveOptions",
                    value: function() {
                      var be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
                      this.action = typeof be.action == "function" ? be.action : this.defaultAction, this.target = typeof be.target == "function" ? be.target : this.defaultTarget, this.text = typeof be.text == "function" ? be.text : this.defaultText, this.container = k(be.container) === "object" ? be.container : document.body;
                    }
                  },
                  {
                    key: "listenClick",
                    value: function(be) {
                      var ie = this;
                      this.listener = d()(be, "click", function(fe) {
                        return ie.onClick(fe);
                      });
                    }
                  },
                  {
                    key: "onClick",
                    value: function(be) {
                      var ie = be.delegateTarget || be.currentTarget, fe = this.action(ie) || "copy", F = C({
                        action: fe,
                        container: this.container,
                        target: this.target(ie),
                        text: this.text(ie)
                      });
                      this.emit(F ? "success" : "error", {
                        action: fe,
                        text: F,
                        trigger: ie,
                        clearSelection: function() {
                          ie && ie.focus(), window.getSelection().removeAllRanges();
                        }
                      });
                    }
                  },
                  {
                    key: "defaultAction",
                    value: function(be) {
                      return ye("action", be);
                    }
                  },
                  {
                    key: "defaultTarget",
                    value: function(be) {
                      var ie = ye("target", be);
                      if (ie) return document.querySelector(ie);
                    }
                  },
                  {
                    key: "defaultText",
                    value: function(be) {
                      return ye("text", be);
                    }
                  },
                  {
                    key: "destroy",
                    value: function() {
                      this.listener.destroy();
                    }
                  }
                ], [
                  {
                    key: "copy",
                    value: function(be) {
                      var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
                        container: document.body
                      };
                      return x(be, ie);
                    }
                  },
                  {
                    key: "cut",
                    value: function(be) {
                      return b(be);
                    }
                  },
                  {
                    key: "isSupported",
                    value: function() {
                      var be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [
                        "copy",
                        "cut"
                      ], ie = typeof be == "string" ? [
                        be
                      ] : be, fe = !!document.queryCommandSupported;
                      return ie.forEach(function(F) {
                        fe = fe && !!document.queryCommandSupported(F);
                      }), fe;
                    }
                  }
                ]), oe;
              })(c()), re = xe;
            }),
            828: (function(i) {
              var a = 9;
              if (typeof Element < "u" && !Element.prototype.matches) {
                var l = Element.prototype;
                l.matches = l.matchesSelector || l.mozMatchesSelector || l.msMatchesSelector || l.oMatchesSelector || l.webkitMatchesSelector;
              }
              function s(c, u) {
                for (; c && c.nodeType !== a; ) {
                  if (typeof c.matches == "function" && c.matches(u)) return c;
                  c = c.parentNode;
                }
              }
              i.exports = s;
            }),
            438: (function(i, a, l) {
              var s = l(828);
              function c(h, p, f, m, b) {
                var v = d.apply(this, arguments);
                return h.addEventListener(f, v, b), {
                  destroy: function() {
                    h.removeEventListener(f, v, b);
                  }
                };
              }
              function u(h, p, f, m, b) {
                return typeof h.addEventListener == "function" ? c.apply(null, arguments) : typeof f == "function" ? c.bind(null, document).apply(null, arguments) : (typeof h == "string" && (h = document.querySelectorAll(h)), Array.prototype.map.call(h, function(v) {
                  return c(v, p, f, m, b);
                }));
              }
              function d(h, p, f, m) {
                return function(b) {
                  b.delegateTarget = s(b.target, p), b.delegateTarget && m.call(h, b);
                };
              }
              i.exports = u;
            }),
            879: (function(i, a) {
              a.node = function(l) {
                return l !== void 0 && l instanceof HTMLElement && l.nodeType === 1;
              }, a.nodeList = function(l) {
                var s = Object.prototype.toString.call(l);
                return l !== void 0 && (s === "[object NodeList]" || s === "[object HTMLCollection]") && "length" in l && (l.length === 0 || a.node(l[0]));
              }, a.string = function(l) {
                return typeof l == "string" || l instanceof String;
              }, a.fn = function(l) {
                var s = Object.prototype.toString.call(l);
                return s === "[object Function]";
              };
            }),
            370: (function(i, a, l) {
              var s = l(879), c = l(438);
              function u(f, m, b) {
                if (!f && !m && !b) throw new Error("Missing required arguments");
                if (!s.string(m)) throw new TypeError("Second argument must be a String");
                if (!s.fn(b)) throw new TypeError("Third argument must be a Function");
                if (s.node(f)) return d(f, m, b);
                if (s.nodeList(f)) return h(f, m, b);
                if (s.string(f)) return p(f, m, b);
                throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
              }
              function d(f, m, b) {
                return f.addEventListener(m, b), {
                  destroy: function() {
                    f.removeEventListener(m, b);
                  }
                };
              }
              function h(f, m, b) {
                return Array.prototype.forEach.call(f, function(v) {
                  v.addEventListener(m, b);
                }), {
                  destroy: function() {
                    Array.prototype.forEach.call(f, function(v) {
                      v.removeEventListener(m, b);
                    });
                  }
                };
              }
              function p(f, m, b) {
                return c(document.body, f, m, b);
              }
              i.exports = u;
            }),
            817: (function(i) {
              function a(l) {
                var s;
                if (l.nodeName === "SELECT") l.focus(), s = l.value;
                else if (l.nodeName === "INPUT" || l.nodeName === "TEXTAREA") {
                  var c = l.hasAttribute("readonly");
                  c || l.setAttribute("readonly", ""), l.select(), l.setSelectionRange(0, l.value.length), c || l.removeAttribute("readonly"), s = l.value;
                } else {
                  l.hasAttribute("contenteditable") && l.focus();
                  var u = window.getSelection(), d = document.createRange();
                  d.selectNodeContents(l), u.removeAllRanges(), u.addRange(d), s = u.toString();
                }
                return s;
              }
              i.exports = a;
            }),
            279: (function(i) {
              function a() {
              }
              a.prototype = {
                on: function(l, s, c) {
                  var u = this.e || (this.e = {});
                  return (u[l] || (u[l] = [])).push({
                    fn: s,
                    ctx: c
                  }), this;
                },
                once: function(l, s, c) {
                  var u = this;
                  function d() {
                    u.off(l, d), s.apply(c, arguments);
                  }
                  return d._ = s, this.on(l, d, c);
                },
                emit: function(l) {
                  var s = [].slice.call(arguments, 1), c = ((this.e || (this.e = {}))[l] || []).slice(), u = 0, d = c.length;
                  for (u; u < d; u++) c[u].fn.apply(c[u].ctx, s);
                  return this;
                },
                off: function(l, s) {
                  var c = this.e || (this.e = {}), u = c[l], d = [];
                  if (u && s) for (var h = 0, p = u.length; h < p; h++) u[h].fn !== s && u[h].fn._ !== s && d.push(u[h]);
                  return d.length ? c[l] = d : delete c[l], this;
                }
              }, i.exports = a, i.exports.TinyEmitter = a;
            })
          }, r = {};
          function o(i) {
            if (r[i]) return r[i].exports;
            var a = r[i] = {
              exports: {}
            };
            return n[i](a, a.exports, o), a.exports;
          }
          return (function() {
            o.n = function(i) {
              var a = i && i.__esModule ? function() {
                return i.default;
              } : function() {
                return i;
              };
              return o.d(a, {
                a
              }), a;
            };
          })(), (function() {
            o.d = function(i, a) {
              for (var l in a) o.o(a, l) && !o.o(i, l) && Object.defineProperty(i, l, {
                enumerable: true,
                get: a[l]
              });
            };
          })(), (function() {
            o.o = function(i, a) {
              return Object.prototype.hasOwnProperty.call(i, a);
            };
          })(), o(686);
        })().default;
      });
    })(lu)), lu.exports;
  }
  var eK = QG();
  const tK = JG(eK), nK = (e) => ({
    toClipboard(t, n) {
      return new Promise((r, o) => {
        const i = document.createElement("button"), a = new tK(i, {
          text: () => t,
          action: () => "copy",
          container: n !== void 0 ? n : document.body
        });
        a.on("success", (l) => {
          a.destroy(), r(l);
        }), a.on("error", (l) => {
          a.destroy(), o(l);
        }), document.body.appendChild(i), i.click(), document.body.removeChild(i);
      });
    }
  }), rK = {
    __name: "AddressSelect",
    props: {
      showCopy: {
        type: Boolean,
        default: true
      },
      size: {
        type: String,
        default: "small"
      }
    },
    setup(e) {
      const t = Pn(), { toClipboard: n } = nK(), { jwt: r, settings: o, userJwt: i, isTelegram: a, openSettings: l, telegramApp: s } = Qt(), { t: c } = Ht({
        messages: {
          en: {
            userAddresses: "User Addresses",
            localAddresses: "Local Addresses",
            address: "Address",
            copy: "Copy",
            copied: "Copied"
          },
          zh: {
            userAddresses: "\u7528\u6237\u5730\u5740",
            localAddresses: "\u672C\u5730\u5730\u5740",
            address: "\u5730\u5740",
            copy: "\u590D\u5236",
            copied: "\u5DF2\u590D\u5236"
          }
        }
      }), u = L([]), d = L(null), h = L(false), p = $u("LocalAddressCache", []), f = /* @__PURE__ */ new Map(), m = (k) => {
        var _a2;
        if (!k) return k;
        const R = k.split("@")[1], P = (_a2 = l.value.domains.find((B) => B.value === R)) == null ? void 0 : _a2.label;
        return P ? k.replace("@" + R, `@${P}`) : k;
      }, b = (k) => {
        try {
          return JSON.parse(decodeURIComponent(atob(k.split(".")[1].replace(/-/g, "+").replace(/_/g, "/")))).address;
        } catch {
          return null;
        }
      }, v = (k, R, P, B) => {
        if (f.has(k)) {
          const M = f.get(k);
          return M.scope = R, M.payload = P, M.address = B, M;
        }
        const E = {
          key: k,
          scope: R,
          payload: P,
          address: B
        };
        return f.set(k, E), E;
      }, y = (k = /* @__PURE__ */ new Set()) => (typeof r.value == "string" && r.value && !p.value.includes(r.value) && p.value.push(r.value), p.value.map((P) => {
        const B = b(P);
        if (!B || k.has(B)) return null;
        const E = m(B), M = `local:${P}`, z = {
          label: E,
          value: v(M, "local", P, B),
          address: B
        };
        return o.value.address && B === o.value.address && (d.value = z.value), z;
      }).filter(Boolean)), w = async () => {
        const k = [];
        try {
          const { results: R } = await it.fetch("/user_api/bind_address");
          for (const P of R || []) {
            const B = P.address || P.name;
            if (!B) continue;
            const E = m(B), M = `user:${P.id}`, z = {
              label: E,
              value: v(M, "user", String(P.id), B),
              address: B
            };
            o.value.address && B === o.value.address && (d.value = z.value), k.push(z);
          }
        } catch (R) {
          t.error(R.message || "error");
        }
        return k;
      }, x = async () => {
        const k = [];
        try {
          const R = await it.fetch("/telegram/get_bind_address", {
            method: "POST",
            body: JSON.stringify({
              initData: s.value.initData
            })
          });
          for (const P of R || []) {
            if (!(P == null ? void 0 : P.address) || !(P == null ? void 0 : P.jwt)) continue;
            const B = m(P.address), E = `tg:${P.jwt}`, M = {
              label: B,
              value: v(E, "tg", P.jwt, P.address),
              address: P.address
            };
            o.value.address && P.address === o.value.address && (d.value = M.value), k.push(M);
          }
        } catch (R) {
          t.error(R.message || "error");
        }
        return k;
      }, S = async () => {
        h.value = true, d.value = null;
        try {
          if (a.value) {
            const R = await x();
            u.value = R;
            return;
          }
          const k = [];
          if (i.value) {
            const R = await w();
            R.length > 0 && k.push({
              type: "group",
              label: c("userAddresses"),
              children: R
            });
            const P = new Set(R.map((E) => E.address)), B = y(P);
            B.length > 0 && k.push({
              type: "group",
              label: c("localAddresses"),
              children: B
            });
          } else {
            const R = y();
            R.length > 0 && k.push({
              type: "group",
              label: c("localAddresses"),
              children: R
            });
          }
          u.value = k;
        } finally {
          h.value = false;
        }
      }, _ = async (k) => {
        if (k) {
          if (k.scope === "local" || k.scope === "tg") {
            r.value = k.payload, location.reload();
            return;
          }
          if (k.scope === "user") try {
            const R = await it.fetch(`/user_api/bind_address_jwt/${k.payload}`);
            if (!(R == null ? void 0 : R.jwt)) {
              t.error("jwt not found");
              return;
            }
            r.value = R.jwt, location.reload();
          } catch (R) {
            t.error(R.message || "error");
          }
        }
      }, C = async () => {
        try {
          await n(o.value.address), t.success(c("copied"));
        } catch (k) {
          t.error(k.message || "error");
        }
      };
      return gt(async () => {
        await S();
      }), lt([
        i,
        a,
        () => o.value.address
      ], async () => {
        await S();
      }), (k, R) => {
        const P = Qs, B = kn, E = ht, M = nc;
        return de(), Be(M, {
          class: "address-row",
          align: "center",
          justify: "center",
          wrap: true
        }, {
          default: $(() => [
            T(P, {
              value: d.value,
              "onUpdate:value": [
                R[0] || (R[0] = (z) => d.value = z),
                _
              ],
              options: u.value,
              size: e.size,
              filterable: "",
              loading: h.value,
              placeholder: O(c)("address"),
              class: "address-select"
            }, null, 8, [
              "value",
              "options",
              "size",
              "loading",
              "placeholder"
            ]),
            Wp(k.$slots, "actions", {}, void 0, true),
            e.showCopy ? (de(), Be(E, {
              key: 0,
              class: "address-copy",
              onClick: C,
              size: e.size,
              tertiary: "",
              type: "primary"
            }, {
              default: $(() => [
                T(B, {
                  component: O(lW)
                }, null, 8, [
                  "component"
                ]),
                Ae(" " + ve(O(c)("copy")), 1)
              ]),
              _: 1
            }, 8, [
              "size"
            ])) : tt("", true)
          ]),
          _: 3
        });
      };
    }
  }, Y_ = yn(rK, [
    [
      "__scopeId",
      "data-v-335af9ba"
    ]
  ]), oK = {
    key: 1
  }, iK = {
    key: 2
  }, aK = {
    key: 3,
    class: "center"
  }, lK = {
    key: 4,
    class: "center"
  }, sK = {
    __name: "AddressBar",
    setup(e) {
      const t = $a(), { jwt: n, settings: r, showAddressCredential: o, userJwt: i, isTelegram: a, addressPassword: l } = Qt(), { locale: s, t: c } = Ht({
        messages: {
          en: {
            ok: "OK",
            fetchAddressError: "Mail address credential is invalid or account not exist, it may be network connection issue, please try again later.",
            addressCredential: "Mail Address Credential",
            linkWithAddressCredential: "Open to auto login email link",
            addressCredentialTip: "Please copy the Mail Address Credential and you can use it to login to your email account.",
            addressPassword: "Address Password",
            userLogin: "User Login",
            addressManage: "Manage"
          },
          zh: {
            ok: "\u786E\u5B9A",
            fetchAddressError: "\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1\u65E0\u6548\u6216\u90AE\u7BB1\u5730\u5740\u4E0D\u5B58\u5728\uFF0C\u4E5F\u53EF\u80FD\u662F\u7F51\u7EDC\u8FDE\u63A5\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u5C1D\u8BD5\u3002",
            addressCredential: "\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1",
            linkWithAddressCredential: "\u6253\u5F00\u5373\u53EF\u81EA\u52A8\u767B\u5F55\u90AE\u7BB1\u7684\u94FE\u63A5",
            addressCredentialTip: "\u8BF7\u590D\u5236\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u5B83\u767B\u5F55\u4F60\u7684\u90AE\u7BB1\u3002",
            addressPassword: "\u5730\u5740\u5BC6\u7801",
            userLogin: "\u7528\u6237\u767B\u5F55",
            addressManage: "\u5730\u5740\u7BA1\u7406"
          }
        }
      }), u = L(false), d = () => `${window.location.origin}/?jwt=${n.value}`, h = async () => {
        await t.push(eo("/user", s.value));
      };
      return gt(async () => {
        await it.getSettings();
      }), (p, f) => {
        const m = gS, b = wr, v = kn, y = ht, w = Fi, x = zm, S = YO, _ = qO, C = No;
        return de(), Ie("div", null, [
          O(r).fetched ? O(r).address ? (de(), Ie("div", oK, [
            T(w, {
              type: "info",
              "show-icon": false,
              bordered: false
            }, {
              default: $(() => [
                T(Y_, null, {
                  actions: $(() => [
                    T(y, {
                      class: "address-manage",
                      size: "small",
                      tertiary: "",
                      type: "primary",
                      onClick: f[0] || (f[0] = (k) => u.value = true)
                    }, {
                      default: $(() => [
                        T(v, {
                          component: O(dW)
                        }, null, 8, [
                          "component"
                        ]),
                        Ae(" " + ve(O(c)("addressManage")), 1)
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ])) : O(a) ? (de(), Ie("div", iK, [
            T(By)
          ])) : O(i) ? (de(), Ie("div", aK, [
            T(b, {
              bordered: false,
              embedded: "",
              style: {
                "max-width": "900px",
                width: "100%"
              }
            }, {
              default: $(() => [
                T(Cp)
              ]),
              _: 1
            })
          ])) : (de(), Ie("div", lK, [
            T(b, {
              bordered: false,
              embedded: "",
              style: {
                "max-width": "600px"
              }
            }, {
              default: $(() => [
                O(n) ? (de(), Be(w, {
                  key: 0,
                  type: "warning",
                  "show-icon": false,
                  bordered: false,
                  closable: ""
                }, {
                  default: $(() => [
                    Me("span", null, ve(O(c)("fetchAddressError")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                T(zl),
                T(x),
                T(y, {
                  onClick: h,
                  type: "primary",
                  block: "",
                  secondary: "",
                  strong: ""
                }, {
                  icon: $(() => [
                    T(v, {
                      component: O(d_)
                    }, null, 8, [
                      "component"
                    ])
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(c)("userLogin")), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ])) : (de(), Be(b, {
            key: 0,
            bordered: false,
            embedded: ""
          }, {
            default: $(() => [
              T(m, {
                style: {
                  height: "50vh"
                }
              })
            ]),
            _: 1
          })),
          T(C, {
            show: O(o),
            "onUpdate:show": f[1] || (f[1] = (k) => kt(o) ? o.value = k : null),
            preset: "dialog",
            title: O(c)("addressCredential")
          }, {
            default: $(() => [
              Me("span", null, [
                Me("p", null, ve(O(c)("addressCredentialTip")), 1)
              ]),
              T(b, {
                embedded: ""
              }, {
                default: $(() => [
                  Me("b", null, ve(O(n)), 1)
                ]),
                _: 1
              }),
              O(l) ? (de(), Be(b, {
                key: 0,
                embedded: ""
              }, {
                default: $(() => [
                  Me("p", null, [
                    Me("b", null, ve(O(r).address), 1)
                  ]),
                  Me("p", null, [
                    Ae(ve(O(c)("addressPassword")) + ": ", 1),
                    Me("b", null, ve(O(l)), 1)
                  ])
                ]),
                _: 1
              })) : tt("", true),
              T(b, {
                embedded: ""
              }, {
                default: $(() => [
                  T(_, null, {
                    default: $(() => [
                      T(S, {
                        title: O(c)("linkWithAddressCredential")
                      }, {
                        default: $(() => [
                          T(b, {
                            embedded: ""
                          }, {
                            default: $(() => [
                              Me("b", null, ve(d()), 1)
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      }, 8, [
                        "title"
                      ])
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(C, {
            show: u.value,
            "onUpdate:show": f[2] || (f[2] = (k) => u.value = k),
            preset: "card",
            title: O(c)("addressManage")
          }, {
            default: $(() => [
              O(a) ? (de(), Be(By, {
                key: 0
              })) : O(i) ? (de(), Be(Cp, {
                key: 1
              })) : (de(), Be(KG, {
                key: 2
              }))
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ]);
      };
    }
  }, cK = yn(sK, [
    [
      "__scopeId",
      "data-v-33992ef1"
    ]
  ]), xl = new TextEncoder(), Hy = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", os = new Uint8Array(256);
  for (var qc = 0; qc < Hy.length; qc++) os[Hy.charCodeAt(qc)] = qc;
  function Sp(e) {
    let t = Math.ceil(e.length / 4) * 3;
    const n = e.length;
    let r = 0;
    e.length % 4 === 3 ? t-- : e.length % 4 === 2 ? t -= 2 : e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
    const o = new ArrayBuffer(t), i = new Uint8Array(o);
    for (let a = 0; a < n; a += 4) {
      let l = os[e.charCodeAt(a)], s = os[e.charCodeAt(a + 1)], c = os[e.charCodeAt(a + 2)], u = os[e.charCodeAt(a + 3)];
      i[r++] = l << 2 | s >> 4, i[r++] = (s & 15) << 4 | c >> 2, i[r++] = (c & 3) << 6 | u & 63;
    }
    return o;
  }
  function ys(e) {
    e = e || "utf8";
    let t;
    try {
      t = new TextDecoder(e);
    } catch {
      t = new TextDecoder("windows-1252");
    }
    return t;
  }
  async function Fd(e) {
    if ("arrayBuffer" in e) return await e.arrayBuffer();
    const t = new FileReader();
    return new Promise((n, r) => {
      t.onload = function(o) {
        n(o.target.result);
      }, t.onerror = function(o) {
        r(t.error);
      }, t.readAsArrayBuffer(e);
    });
  }
  function jy(e) {
    return e >= 48 && e <= 57 || e >= 97 && e <= 102 || e >= 65 && e <= 70 ? String.fromCharCode(e) : false;
  }
  function uK(e, t, n) {
    let r = e.indexOf("*");
    r >= 0 && (e = e.substr(0, r)), t = t.toUpperCase();
    let o;
    if (t === "Q") {
      n = n.replace(/=\s+([0-9a-fA-F])/g, "=$1").replace(/[_\s]/g, " ");
      let i = xl.encode(n), a = [];
      for (let s = 0, c = i.length; s < c; s++) {
        let u = i[s];
        if (s <= c - 2 && u === 61) {
          let d = jy(i[s + 1]), h = jy(i[s + 2]);
          if (d && h) {
            let p = parseInt(d + h, 16);
            a.push(p), s += 2;
            continue;
          }
        }
        a.push(u);
      }
      o = new ArrayBuffer(a.length);
      let l = new DataView(o);
      for (let s = 0, c = a.length; s < c; s++) l.setUint8(s, a[s]);
    } else t === "B" ? o = Sp(n.replace(/[^a-zA-Z0-9\+\/=]+/g, "")) : o = xl.encode(n);
    return ys(e).decode(o);
  }
  function xs(e) {
    let t = true;
    for (; ; ) {
      let n = (e || "").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g, (r, o, i, a, l) => t && i === l && a.length % 4 === 0 && !/=$/.test(a) ? o + "__\0JOIN\0__" : r).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g, (r, o, i, a) => t && i === a ? o + "__\0JOIN\0__" : r).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g, "").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g, "$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g, (r, o, i, a) => uK(o, i, a));
      if (t && n.indexOf("\uFFFD") >= 0) t = false;
      else return n;
    }
  }
  function dK(e, t) {
    t = t || "utf-8";
    let n = [];
    for (let i = 0; i < e.length; i++) {
      let a = e.charAt(i);
      if (a === "%" && /^[a-f0-9]{2}/i.test(e.substr(i + 1, 2))) {
        let l = e.substr(i + 1, 2);
        i += 2, n.push(parseInt(l, 16));
      } else if (a.charCodeAt(0) > 126) {
        a = xl.encode(a);
        for (let l = 0; l < a.length; l++) n.push(a[l]);
      } else n.push(a.charCodeAt(0));
    }
    const r = new ArrayBuffer(n.length), o = new DataView(r);
    for (let i = 0, a = n.length; i < a; i++) o.setUint8(i, n[i]);
    return ys(t).decode(r);
  }
  function fK(e) {
    let t = /* @__PURE__ */ new Map();
    Object.keys(e.params).forEach((n) => {
      let r = n.match(/\*((\d+)\*?)?$/);
      if (!r) return;
      let o = n.substr(0, r.index).toLowerCase(), i = Number(r[2]) || 0, a;
      t.has(o) ? a = t.get(o) : (a = {
        charset: false,
        values: []
      }, t.set(o, a));
      let l = e.params[n];
      i === 0 && r[0].charAt(r[0].length - 1) === "*" && (r = l.match(/^([^']*)'[^']*'(.*)$/)) && (a.charset = r[1] || "utf-8", l = r[2]), a.values.push({
        nr: i,
        value: l
      }), delete e.params[n];
    }), t.forEach((n, r) => {
      e.params[r] = dK(n.values.sort((o, i) => o.nr - i.nr).map((o) => o.value).join(""), n.charset);
    });
  }
  class hK {
    constructor() {
      this.chunks = [];
    }
    update(t) {
      this.chunks.push(t), this.chunks.push(`
`);
    }
    finalize() {
      return Fd(new Blob(this.chunks, {
        type: "application/octet-stream"
      }));
    }
  }
  class pK {
    constructor(t) {
      t = t || {}, this.decoder = t.decoder || new TextDecoder(), this.maxChunkSize = 100 * 1024, this.chunks = [], this.remainder = "";
    }
    update(t) {
      let n = this.decoder.decode(t);
      if (/[^a-zA-Z0-9+\/]/.test(n) && (n = n.replace(/[^a-zA-Z0-9+\/]+/g, "")), this.remainder += n, this.remainder.length >= this.maxChunkSize) {
        let r = Math.floor(this.remainder.length / 4) * 4, o;
        r === this.remainder.length ? (o = this.remainder, this.remainder = "") : (o = this.remainder.substr(0, r), this.remainder = this.remainder.substr(r)), o.length && this.chunks.push(Sp(o));
      }
    }
    finalize() {
      return this.remainder && !/^=+$/.test(this.remainder) && this.chunks.push(Sp(this.remainder)), Fd(new Blob(this.chunks, {
        type: "application/octet-stream"
      }));
    }
  }
  const Wy = /^=[a-f0-9]{2}$/i, mK = /(?==[a-f0-9]{2})/i, gK = /=\r?\n/g, vK = /=[a-fA-F0-9]?$/;
  class bK {
    constructor(t) {
      t = t || {}, this.decoder = t.decoder || new TextDecoder(), this.maxChunkSize = 100 * 1024, this.remainder = "", this.chunks = [];
    }
    decodeQPBytes(t) {
      let n = new ArrayBuffer(t.length), r = new DataView(n);
      for (let o = 0, i = t.length; o < i; o++) r.setUint8(o, parseInt(t[o], 16));
      return n;
    }
    decodeChunks(t) {
      t = t.replace(gK, "");
      let n = t.split(mK), r = [];
      for (let o of n) {
        if (o.charAt(0) !== "=") {
          r.length && (this.chunks.push(this.decodeQPBytes(r)), r = []), this.chunks.push(o);
          continue;
        }
        if (o.length === 3) {
          Wy.test(o) ? r.push(o.substr(1)) : (r.length && (this.chunks.push(this.decodeQPBytes(r)), r = []), this.chunks.push(o));
          continue;
        }
        if (o.length > 3) {
          const i = o.substr(0, 3);
          Wy.test(i) ? (r.push(o.substr(1, 2)), this.chunks.push(this.decodeQPBytes(r)), r = [], o = o.substr(3), this.chunks.push(o)) : (r.length && (this.chunks.push(this.decodeQPBytes(r)), r = []), this.chunks.push(o));
        }
      }
      r.length && (this.chunks.push(this.decodeQPBytes(r)), r = []);
    }
    update(t) {
      let n = this.decoder.decode(t) + `
`;
      if (n = this.remainder + n, n.length < this.maxChunkSize) {
        this.remainder = n;
        return;
      }
      this.remainder = "";
      let r = n.match(vK);
      if (r) {
        if (r.index === 0) {
          this.remainder = n;
          return;
        }
        this.remainder = n.substr(r.index), n = n.substr(0, r.index);
      }
      this.decodeChunks(n);
    }
    finalize() {
      return this.remainder.length && (this.decodeChunks(this.remainder), this.remainder = ""), Fd(new Blob(this.chunks, {
        type: "application/octet-stream"
      }));
    }
  }
  class Uy {
    constructor(t) {
      if (this.options = t || {}, this.postalMime = this.options.postalMime, this.root = !!this.options.parentNode, this.childNodes = [], this.options.parentNode) {
        if (this.parentNode = this.options.parentNode, this.depth = this.parentNode.depth + 1, this.depth > this.options.maxNestingDepth) throw new Error(`Maximum MIME nesting depth of ${this.options.maxNestingDepth} levels exceeded`);
        this.options.parentNode.childNodes.push(this);
      } else this.depth = 0;
      this.state = "header", this.headerLines = [], this.headerSize = 0;
      const r = (this.options.parentMultipartType || null) === "digest" ? "message/rfc822" : "text/plain";
      this.contentType = {
        value: r,
        default: true
      }, this.contentTransferEncoding = {
        value: "8bit"
      }, this.contentDisposition = {
        value: ""
      }, this.headers = [], this.contentDecoder = false;
    }
    setupContentDecoder(t) {
      /base64/i.test(t) ? this.contentDecoder = new pK() : /quoted-printable/i.test(t) ? this.contentDecoder = new bK({
        decoder: ys(this.contentType.parsed.params.charset)
      }) : this.contentDecoder = new hK();
    }
    async finalize() {
      if (this.state === "finished") return;
      this.state === "header" && this.processHeaders();
      let t = this.postalMime.boundaries;
      for (let n = t.length - 1; n >= 0; n--) if (t[n].node === this) {
        t.splice(n, 1);
        break;
      }
      await this.finalizeChildNodes(), this.content = this.contentDecoder ? await this.contentDecoder.finalize() : null, this.state = "finished";
    }
    async finalizeChildNodes() {
      for (let t of this.childNodes) await t.finalize();
    }
    stripComments(t) {
      let n = "", r = 0, o = false, i = false;
      for (let a = 0; a < t.length; a++) {
        const l = t.charAt(a);
        if (o) {
          r === 0 && (n += l), o = false;
          continue;
        }
        if (l === "\\") {
          o = true, r === 0 && (n += l);
          continue;
        }
        if (l === '"' && r === 0) {
          i = !i, n += l;
          continue;
        }
        if (!i) {
          if (l === "(") {
            r++;
            continue;
          }
          if (l === ")" && r > 0) {
            r--;
            continue;
          }
        }
        r === 0 && (n += l);
      }
      return n;
    }
    parseStructuredHeader(t) {
      t = this.stripComments(t);
      let n = {
        value: false,
        params: {}
      }, r = false, o = "", i = "value", a = false, l = false, s;
      for (let c = 0, u = t.length; c < u; c++) switch (s = t.charAt(c), i) {
        case "key":
          if (s === "=") {
            r = o.trim().toLowerCase(), i = "value", o = "";
            break;
          }
          o += s;
          break;
        case "value":
          if (l) o += s;
          else if (s === "\\") {
            l = true;
            continue;
          } else a && s === a ? a = false : !a && s === '"' ? a = s : !a && s === ";" ? (r === false ? n.value = o.trim() : n.params[r] = o.trim(), i = "key", o = "") : o += s;
          l = false;
          break;
      }
      return o = o.trim(), i === "value" ? r === false ? n.value = o : n.params[r] = o : o && (n.params[o.toLowerCase()] = ""), n.value && (n.value = n.value.toLowerCase()), fK(n), n;
    }
    decodeFlowedText(t, n) {
      return t.split(/\r?\n/).reduce((r, o) => / $/.test(r) && !/(^|\n)-- $/.test(r) ? n ? r.slice(0, -1) + o : r + o : r + `
` + o).replace(/^ /gm, "");
    }
    getTextContent() {
      if (!this.content) return "";
      let t = ys(this.contentType.parsed.params.charset).decode(this.content);
      return /^flowed$/i.test(this.contentType.parsed.params.format) && (t = this.decodeFlowedText(t, /^yes$/i.test(this.contentType.parsed.params.delsp))), t;
    }
    processHeaders() {
      for (let t = this.headerLines.length - 1; t >= 0; t--) {
        let n = this.headerLines[t];
        t && /^\s/.test(n) && (this.headerLines[t - 1] += `
` + n, this.headerLines.splice(t, 1));
      }
      this.rawHeaderLines = [];
      for (let t = this.headerLines.length - 1; t >= 0; t--) {
        let n = this.headerLines[t], r = n.indexOf(":"), o = r < 0 ? n.trim() : n.substr(0, r).trim();
        this.rawHeaderLines.push({
          key: o.toLowerCase(),
          line: n
        });
        let i = n.replace(/\s+/g, " ");
        r = i.indexOf(":");
        let a = r < 0 ? i.trim() : i.substr(0, r).trim(), l = r < 0 ? "" : i.substr(r + 1).trim();
        switch (this.headers.push({
          key: a.toLowerCase(),
          originalKey: a,
          value: l
        }), a.toLowerCase()) {
          case "content-type":
            this.contentType.default && (this.contentType = {
              value: l,
              parsed: {}
            });
            break;
          case "content-transfer-encoding":
            this.contentTransferEncoding = {
              value: l,
              parsed: {}
            };
            break;
          case "content-disposition":
            this.contentDisposition = {
              value: l,
              parsed: {}
            };
            break;
          case "content-id":
            this.contentId = l;
            break;
          case "content-description":
            this.contentDescription = l;
            break;
        }
      }
      this.contentType.parsed = this.parseStructuredHeader(this.contentType.value), this.contentType.multipart = /^multipart\//i.test(this.contentType.parsed.value) ? this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/") + 1) : false, this.contentType.multipart && this.contentType.parsed.params.boundary && this.postalMime.boundaries.push({
        value: xl.encode(this.contentType.parsed.params.boundary),
        node: this
      }), this.contentDisposition.parsed = this.parseStructuredHeader(this.contentDisposition.value), this.contentTransferEncoding.encoding = this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(), this.setupContentDecoder(this.contentTransferEncoding.encoding);
    }
    feed(t) {
      switch (this.state) {
        case "header":
          if (!t.length) return this.state = "body", this.processHeaders();
          if (this.headerSize += t.length, this.headerSize > this.options.maxHeadersSize) throw new Error(`Maximum header size of ${this.options.maxHeadersSize} bytes exceeded`);
          this.headerLines.push(ys().decode(t));
          break;
        case "body":
          this.contentDecoder.update(t);
      }
    }
  }
  const Vy = {
    "&AElig": "\xC6",
    "&AElig;": "\xC6",
    "&AMP": "&",
    "&AMP;": "&",
    "&Aacute": "\xC1",
    "&Aacute;": "\xC1",
    "&Abreve;": "\u0102",
    "&Acirc": "\xC2",
    "&Acirc;": "\xC2",
    "&Acy;": "\u0410",
    "&Afr;": "\u{1D504}",
    "&Agrave": "\xC0",
    "&Agrave;": "\xC0",
    "&Alpha;": "\u0391",
    "&Amacr;": "\u0100",
    "&And;": "\u2A53",
    "&Aogon;": "\u0104",
    "&Aopf;": "\u{1D538}",
    "&ApplyFunction;": "\u2061",
    "&Aring": "\xC5",
    "&Aring;": "\xC5",
    "&Ascr;": "\u{1D49C}",
    "&Assign;": "\u2254",
    "&Atilde": "\xC3",
    "&Atilde;": "\xC3",
    "&Auml": "\xC4",
    "&Auml;": "\xC4",
    "&Backslash;": "\u2216",
    "&Barv;": "\u2AE7",
    "&Barwed;": "\u2306",
    "&Bcy;": "\u0411",
    "&Because;": "\u2235",
    "&Bernoullis;": "\u212C",
    "&Beta;": "\u0392",
    "&Bfr;": "\u{1D505}",
    "&Bopf;": "\u{1D539}",
    "&Breve;": "\u02D8",
    "&Bscr;": "\u212C",
    "&Bumpeq;": "\u224E",
    "&CHcy;": "\u0427",
    "&COPY": "\xA9",
    "&COPY;": "\xA9",
    "&Cacute;": "\u0106",
    "&Cap;": "\u22D2",
    "&CapitalDifferentialD;": "\u2145",
    "&Cayleys;": "\u212D",
    "&Ccaron;": "\u010C",
    "&Ccedil": "\xC7",
    "&Ccedil;": "\xC7",
    "&Ccirc;": "\u0108",
    "&Cconint;": "\u2230",
    "&Cdot;": "\u010A",
    "&Cedilla;": "\xB8",
    "&CenterDot;": "\xB7",
    "&Cfr;": "\u212D",
    "&Chi;": "\u03A7",
    "&CircleDot;": "\u2299",
    "&CircleMinus;": "\u2296",
    "&CirclePlus;": "\u2295",
    "&CircleTimes;": "\u2297",
    "&ClockwiseContourIntegral;": "\u2232",
    "&CloseCurlyDoubleQuote;": "\u201D",
    "&CloseCurlyQuote;": "\u2019",
    "&Colon;": "\u2237",
    "&Colone;": "\u2A74",
    "&Congruent;": "\u2261",
    "&Conint;": "\u222F",
    "&ContourIntegral;": "\u222E",
    "&Copf;": "\u2102",
    "&Coproduct;": "\u2210",
    "&CounterClockwiseContourIntegral;": "\u2233",
    "&Cross;": "\u2A2F",
    "&Cscr;": "\u{1D49E}",
    "&Cup;": "\u22D3",
    "&CupCap;": "\u224D",
    "&DD;": "\u2145",
    "&DDotrahd;": "\u2911",
    "&DJcy;": "\u0402",
    "&DScy;": "\u0405",
    "&DZcy;": "\u040F",
    "&Dagger;": "\u2021",
    "&Darr;": "\u21A1",
    "&Dashv;": "\u2AE4",
    "&Dcaron;": "\u010E",
    "&Dcy;": "\u0414",
    "&Del;": "\u2207",
    "&Delta;": "\u0394",
    "&Dfr;": "\u{1D507}",
    "&DiacriticalAcute;": "\xB4",
    "&DiacriticalDot;": "\u02D9",
    "&DiacriticalDoubleAcute;": "\u02DD",
    "&DiacriticalGrave;": "`",
    "&DiacriticalTilde;": "\u02DC",
    "&Diamond;": "\u22C4",
    "&DifferentialD;": "\u2146",
    "&Dopf;": "\u{1D53B}",
    "&Dot;": "\xA8",
    "&DotDot;": "\u20DC",
    "&DotEqual;": "\u2250",
    "&DoubleContourIntegral;": "\u222F",
    "&DoubleDot;": "\xA8",
    "&DoubleDownArrow;": "\u21D3",
    "&DoubleLeftArrow;": "\u21D0",
    "&DoubleLeftRightArrow;": "\u21D4",
    "&DoubleLeftTee;": "\u2AE4",
    "&DoubleLongLeftArrow;": "\u27F8",
    "&DoubleLongLeftRightArrow;": "\u27FA",
    "&DoubleLongRightArrow;": "\u27F9",
    "&DoubleRightArrow;": "\u21D2",
    "&DoubleRightTee;": "\u22A8",
    "&DoubleUpArrow;": "\u21D1",
    "&DoubleUpDownArrow;": "\u21D5",
    "&DoubleVerticalBar;": "\u2225",
    "&DownArrow;": "\u2193",
    "&DownArrowBar;": "\u2913",
    "&DownArrowUpArrow;": "\u21F5",
    "&DownBreve;": "\u0311",
    "&DownLeftRightVector;": "\u2950",
    "&DownLeftTeeVector;": "\u295E",
    "&DownLeftVector;": "\u21BD",
    "&DownLeftVectorBar;": "\u2956",
    "&DownRightTeeVector;": "\u295F",
    "&DownRightVector;": "\u21C1",
    "&DownRightVectorBar;": "\u2957",
    "&DownTee;": "\u22A4",
    "&DownTeeArrow;": "\u21A7",
    "&Downarrow;": "\u21D3",
    "&Dscr;": "\u{1D49F}",
    "&Dstrok;": "\u0110",
    "&ENG;": "\u014A",
    "&ETH": "\xD0",
    "&ETH;": "\xD0",
    "&Eacute": "\xC9",
    "&Eacute;": "\xC9",
    "&Ecaron;": "\u011A",
    "&Ecirc": "\xCA",
    "&Ecirc;": "\xCA",
    "&Ecy;": "\u042D",
    "&Edot;": "\u0116",
    "&Efr;": "\u{1D508}",
    "&Egrave": "\xC8",
    "&Egrave;": "\xC8",
    "&Element;": "\u2208",
    "&Emacr;": "\u0112",
    "&EmptySmallSquare;": "\u25FB",
    "&EmptyVerySmallSquare;": "\u25AB",
    "&Eogon;": "\u0118",
    "&Eopf;": "\u{1D53C}",
    "&Epsilon;": "\u0395",
    "&Equal;": "\u2A75",
    "&EqualTilde;": "\u2242",
    "&Equilibrium;": "\u21CC",
    "&Escr;": "\u2130",
    "&Esim;": "\u2A73",
    "&Eta;": "\u0397",
    "&Euml": "\xCB",
    "&Euml;": "\xCB",
    "&Exists;": "\u2203",
    "&ExponentialE;": "\u2147",
    "&Fcy;": "\u0424",
    "&Ffr;": "\u{1D509}",
    "&FilledSmallSquare;": "\u25FC",
    "&FilledVerySmallSquare;": "\u25AA",
    "&Fopf;": "\u{1D53D}",
    "&ForAll;": "\u2200",
    "&Fouriertrf;": "\u2131",
    "&Fscr;": "\u2131",
    "&GJcy;": "\u0403",
    "&GT": ">",
    "&GT;": ">",
    "&Gamma;": "\u0393",
    "&Gammad;": "\u03DC",
    "&Gbreve;": "\u011E",
    "&Gcedil;": "\u0122",
    "&Gcirc;": "\u011C",
    "&Gcy;": "\u0413",
    "&Gdot;": "\u0120",
    "&Gfr;": "\u{1D50A}",
    "&Gg;": "\u22D9",
    "&Gopf;": "\u{1D53E}",
    "&GreaterEqual;": "\u2265",
    "&GreaterEqualLess;": "\u22DB",
    "&GreaterFullEqual;": "\u2267",
    "&GreaterGreater;": "\u2AA2",
    "&GreaterLess;": "\u2277",
    "&GreaterSlantEqual;": "\u2A7E",
    "&GreaterTilde;": "\u2273",
    "&Gscr;": "\u{1D4A2}",
    "&Gt;": "\u226B",
    "&HARDcy;": "\u042A",
    "&Hacek;": "\u02C7",
    "&Hat;": "^",
    "&Hcirc;": "\u0124",
    "&Hfr;": "\u210C",
    "&HilbertSpace;": "\u210B",
    "&Hopf;": "\u210D",
    "&HorizontalLine;": "\u2500",
    "&Hscr;": "\u210B",
    "&Hstrok;": "\u0126",
    "&HumpDownHump;": "\u224E",
    "&HumpEqual;": "\u224F",
    "&IEcy;": "\u0415",
    "&IJlig;": "\u0132",
    "&IOcy;": "\u0401",
    "&Iacute": "\xCD",
    "&Iacute;": "\xCD",
    "&Icirc": "\xCE",
    "&Icirc;": "\xCE",
    "&Icy;": "\u0418",
    "&Idot;": "\u0130",
    "&Ifr;": "\u2111",
    "&Igrave": "\xCC",
    "&Igrave;": "\xCC",
    "&Im;": "\u2111",
    "&Imacr;": "\u012A",
    "&ImaginaryI;": "\u2148",
    "&Implies;": "\u21D2",
    "&Int;": "\u222C",
    "&Integral;": "\u222B",
    "&Intersection;": "\u22C2",
    "&InvisibleComma;": "\u2063",
    "&InvisibleTimes;": "\u2062",
    "&Iogon;": "\u012E",
    "&Iopf;": "\u{1D540}",
    "&Iota;": "\u0399",
    "&Iscr;": "\u2110",
    "&Itilde;": "\u0128",
    "&Iukcy;": "\u0406",
    "&Iuml": "\xCF",
    "&Iuml;": "\xCF",
    "&Jcirc;": "\u0134",
    "&Jcy;": "\u0419",
    "&Jfr;": "\u{1D50D}",
    "&Jopf;": "\u{1D541}",
    "&Jscr;": "\u{1D4A5}",
    "&Jsercy;": "\u0408",
    "&Jukcy;": "\u0404",
    "&KHcy;": "\u0425",
    "&KJcy;": "\u040C",
    "&Kappa;": "\u039A",
    "&Kcedil;": "\u0136",
    "&Kcy;": "\u041A",
    "&Kfr;": "\u{1D50E}",
    "&Kopf;": "\u{1D542}",
    "&Kscr;": "\u{1D4A6}",
    "&LJcy;": "\u0409",
    "&LT": "<",
    "&LT;": "<",
    "&Lacute;": "\u0139",
    "&Lambda;": "\u039B",
    "&Lang;": "\u27EA",
    "&Laplacetrf;": "\u2112",
    "&Larr;": "\u219E",
    "&Lcaron;": "\u013D",
    "&Lcedil;": "\u013B",
    "&Lcy;": "\u041B",
    "&LeftAngleBracket;": "\u27E8",
    "&LeftArrow;": "\u2190",
    "&LeftArrowBar;": "\u21E4",
    "&LeftArrowRightArrow;": "\u21C6",
    "&LeftCeiling;": "\u2308",
    "&LeftDoubleBracket;": "\u27E6",
    "&LeftDownTeeVector;": "\u2961",
    "&LeftDownVector;": "\u21C3",
    "&LeftDownVectorBar;": "\u2959",
    "&LeftFloor;": "\u230A",
    "&LeftRightArrow;": "\u2194",
    "&LeftRightVector;": "\u294E",
    "&LeftTee;": "\u22A3",
    "&LeftTeeArrow;": "\u21A4",
    "&LeftTeeVector;": "\u295A",
    "&LeftTriangle;": "\u22B2",
    "&LeftTriangleBar;": "\u29CF",
    "&LeftTriangleEqual;": "\u22B4",
    "&LeftUpDownVector;": "\u2951",
    "&LeftUpTeeVector;": "\u2960",
    "&LeftUpVector;": "\u21BF",
    "&LeftUpVectorBar;": "\u2958",
    "&LeftVector;": "\u21BC",
    "&LeftVectorBar;": "\u2952",
    "&Leftarrow;": "\u21D0",
    "&Leftrightarrow;": "\u21D4",
    "&LessEqualGreater;": "\u22DA",
    "&LessFullEqual;": "\u2266",
    "&LessGreater;": "\u2276",
    "&LessLess;": "\u2AA1",
    "&LessSlantEqual;": "\u2A7D",
    "&LessTilde;": "\u2272",
    "&Lfr;": "\u{1D50F}",
    "&Ll;": "\u22D8",
    "&Lleftarrow;": "\u21DA",
    "&Lmidot;": "\u013F",
    "&LongLeftArrow;": "\u27F5",
    "&LongLeftRightArrow;": "\u27F7",
    "&LongRightArrow;": "\u27F6",
    "&Longleftarrow;": "\u27F8",
    "&Longleftrightarrow;": "\u27FA",
    "&Longrightarrow;": "\u27F9",
    "&Lopf;": "\u{1D543}",
    "&LowerLeftArrow;": "\u2199",
    "&LowerRightArrow;": "\u2198",
    "&Lscr;": "\u2112",
    "&Lsh;": "\u21B0",
    "&Lstrok;": "\u0141",
    "&Lt;": "\u226A",
    "&Map;": "\u2905",
    "&Mcy;": "\u041C",
    "&MediumSpace;": "\u205F",
    "&Mellintrf;": "\u2133",
    "&Mfr;": "\u{1D510}",
    "&MinusPlus;": "\u2213",
    "&Mopf;": "\u{1D544}",
    "&Mscr;": "\u2133",
    "&Mu;": "\u039C",
    "&NJcy;": "\u040A",
    "&Nacute;": "\u0143",
    "&Ncaron;": "\u0147",
    "&Ncedil;": "\u0145",
    "&Ncy;": "\u041D",
    "&NegativeMediumSpace;": "\u200B",
    "&NegativeThickSpace;": "\u200B",
    "&NegativeThinSpace;": "\u200B",
    "&NegativeVeryThinSpace;": "\u200B",
    "&NestedGreaterGreater;": "\u226B",
    "&NestedLessLess;": "\u226A",
    "&NewLine;": `
`,
    "&Nfr;": "\u{1D511}",
    "&NoBreak;": "\u2060",
    "&NonBreakingSpace;": "\xA0",
    "&Nopf;": "\u2115",
    "&Not;": "\u2AEC",
    "&NotCongruent;": "\u2262",
    "&NotCupCap;": "\u226D",
    "&NotDoubleVerticalBar;": "\u2226",
    "&NotElement;": "\u2209",
    "&NotEqual;": "\u2260",
    "&NotEqualTilde;": "\u2242\u0338",
    "&NotExists;": "\u2204",
    "&NotGreater;": "\u226F",
    "&NotGreaterEqual;": "\u2271",
    "&NotGreaterFullEqual;": "\u2267\u0338",
    "&NotGreaterGreater;": "\u226B\u0338",
    "&NotGreaterLess;": "\u2279",
    "&NotGreaterSlantEqual;": "\u2A7E\u0338",
    "&NotGreaterTilde;": "\u2275",
    "&NotHumpDownHump;": "\u224E\u0338",
    "&NotHumpEqual;": "\u224F\u0338",
    "&NotLeftTriangle;": "\u22EA",
    "&NotLeftTriangleBar;": "\u29CF\u0338",
    "&NotLeftTriangleEqual;": "\u22EC",
    "&NotLess;": "\u226E",
    "&NotLessEqual;": "\u2270",
    "&NotLessGreater;": "\u2278",
    "&NotLessLess;": "\u226A\u0338",
    "&NotLessSlantEqual;": "\u2A7D\u0338",
    "&NotLessTilde;": "\u2274",
    "&NotNestedGreaterGreater;": "\u2AA2\u0338",
    "&NotNestedLessLess;": "\u2AA1\u0338",
    "&NotPrecedes;": "\u2280",
    "&NotPrecedesEqual;": "\u2AAF\u0338",
    "&NotPrecedesSlantEqual;": "\u22E0",
    "&NotReverseElement;": "\u220C",
    "&NotRightTriangle;": "\u22EB",
    "&NotRightTriangleBar;": "\u29D0\u0338",
    "&NotRightTriangleEqual;": "\u22ED",
    "&NotSquareSubset;": "\u228F\u0338",
    "&NotSquareSubsetEqual;": "\u22E2",
    "&NotSquareSuperset;": "\u2290\u0338",
    "&NotSquareSupersetEqual;": "\u22E3",
    "&NotSubset;": "\u2282\u20D2",
    "&NotSubsetEqual;": "\u2288",
    "&NotSucceeds;": "\u2281",
    "&NotSucceedsEqual;": "\u2AB0\u0338",
    "&NotSucceedsSlantEqual;": "\u22E1",
    "&NotSucceedsTilde;": "\u227F\u0338",
    "&NotSuperset;": "\u2283\u20D2",
    "&NotSupersetEqual;": "\u2289",
    "&NotTilde;": "\u2241",
    "&NotTildeEqual;": "\u2244",
    "&NotTildeFullEqual;": "\u2247",
    "&NotTildeTilde;": "\u2249",
    "&NotVerticalBar;": "\u2224",
    "&Nscr;": "\u{1D4A9}",
    "&Ntilde": "\xD1",
    "&Ntilde;": "\xD1",
    "&Nu;": "\u039D",
    "&OElig;": "\u0152",
    "&Oacute": "\xD3",
    "&Oacute;": "\xD3",
    "&Ocirc": "\xD4",
    "&Ocirc;": "\xD4",
    "&Ocy;": "\u041E",
    "&Odblac;": "\u0150",
    "&Ofr;": "\u{1D512}",
    "&Ograve": "\xD2",
    "&Ograve;": "\xD2",
    "&Omacr;": "\u014C",
    "&Omega;": "\u03A9",
    "&Omicron;": "\u039F",
    "&Oopf;": "\u{1D546}",
    "&OpenCurlyDoubleQuote;": "\u201C",
    "&OpenCurlyQuote;": "\u2018",
    "&Or;": "\u2A54",
    "&Oscr;": "\u{1D4AA}",
    "&Oslash": "\xD8",
    "&Oslash;": "\xD8",
    "&Otilde": "\xD5",
    "&Otilde;": "\xD5",
    "&Otimes;": "\u2A37",
    "&Ouml": "\xD6",
    "&Ouml;": "\xD6",
    "&OverBar;": "\u203E",
    "&OverBrace;": "\u23DE",
    "&OverBracket;": "\u23B4",
    "&OverParenthesis;": "\u23DC",
    "&PartialD;": "\u2202",
    "&Pcy;": "\u041F",
    "&Pfr;": "\u{1D513}",
    "&Phi;": "\u03A6",
    "&Pi;": "\u03A0",
    "&PlusMinus;": "\xB1",
    "&Poincareplane;": "\u210C",
    "&Popf;": "\u2119",
    "&Pr;": "\u2ABB",
    "&Precedes;": "\u227A",
    "&PrecedesEqual;": "\u2AAF",
    "&PrecedesSlantEqual;": "\u227C",
    "&PrecedesTilde;": "\u227E",
    "&Prime;": "\u2033",
    "&Product;": "\u220F",
    "&Proportion;": "\u2237",
    "&Proportional;": "\u221D",
    "&Pscr;": "\u{1D4AB}",
    "&Psi;": "\u03A8",
    "&QUOT": '"',
    "&QUOT;": '"',
    "&Qfr;": "\u{1D514}",
    "&Qopf;": "\u211A",
    "&Qscr;": "\u{1D4AC}",
    "&RBarr;": "\u2910",
    "&REG": "\xAE",
    "&REG;": "\xAE",
    "&Racute;": "\u0154",
    "&Rang;": "\u27EB",
    "&Rarr;": "\u21A0",
    "&Rarrtl;": "\u2916",
    "&Rcaron;": "\u0158",
    "&Rcedil;": "\u0156",
    "&Rcy;": "\u0420",
    "&Re;": "\u211C",
    "&ReverseElement;": "\u220B",
    "&ReverseEquilibrium;": "\u21CB",
    "&ReverseUpEquilibrium;": "\u296F",
    "&Rfr;": "\u211C",
    "&Rho;": "\u03A1",
    "&RightAngleBracket;": "\u27E9",
    "&RightArrow;": "\u2192",
    "&RightArrowBar;": "\u21E5",
    "&RightArrowLeftArrow;": "\u21C4",
    "&RightCeiling;": "\u2309",
    "&RightDoubleBracket;": "\u27E7",
    "&RightDownTeeVector;": "\u295D",
    "&RightDownVector;": "\u21C2",
    "&RightDownVectorBar;": "\u2955",
    "&RightFloor;": "\u230B",
    "&RightTee;": "\u22A2",
    "&RightTeeArrow;": "\u21A6",
    "&RightTeeVector;": "\u295B",
    "&RightTriangle;": "\u22B3",
    "&RightTriangleBar;": "\u29D0",
    "&RightTriangleEqual;": "\u22B5",
    "&RightUpDownVector;": "\u294F",
    "&RightUpTeeVector;": "\u295C",
    "&RightUpVector;": "\u21BE",
    "&RightUpVectorBar;": "\u2954",
    "&RightVector;": "\u21C0",
    "&RightVectorBar;": "\u2953",
    "&Rightarrow;": "\u21D2",
    "&Ropf;": "\u211D",
    "&RoundImplies;": "\u2970",
    "&Rrightarrow;": "\u21DB",
    "&Rscr;": "\u211B",
    "&Rsh;": "\u21B1",
    "&RuleDelayed;": "\u29F4",
    "&SHCHcy;": "\u0429",
    "&SHcy;": "\u0428",
    "&SOFTcy;": "\u042C",
    "&Sacute;": "\u015A",
    "&Sc;": "\u2ABC",
    "&Scaron;": "\u0160",
    "&Scedil;": "\u015E",
    "&Scirc;": "\u015C",
    "&Scy;": "\u0421",
    "&Sfr;": "\u{1D516}",
    "&ShortDownArrow;": "\u2193",
    "&ShortLeftArrow;": "\u2190",
    "&ShortRightArrow;": "\u2192",
    "&ShortUpArrow;": "\u2191",
    "&Sigma;": "\u03A3",
    "&SmallCircle;": "\u2218",
    "&Sopf;": "\u{1D54A}",
    "&Sqrt;": "\u221A",
    "&Square;": "\u25A1",
    "&SquareIntersection;": "\u2293",
    "&SquareSubset;": "\u228F",
    "&SquareSubsetEqual;": "\u2291",
    "&SquareSuperset;": "\u2290",
    "&SquareSupersetEqual;": "\u2292",
    "&SquareUnion;": "\u2294",
    "&Sscr;": "\u{1D4AE}",
    "&Star;": "\u22C6",
    "&Sub;": "\u22D0",
    "&Subset;": "\u22D0",
    "&SubsetEqual;": "\u2286",
    "&Succeeds;": "\u227B",
    "&SucceedsEqual;": "\u2AB0",
    "&SucceedsSlantEqual;": "\u227D",
    "&SucceedsTilde;": "\u227F",
    "&SuchThat;": "\u220B",
    "&Sum;": "\u2211",
    "&Sup;": "\u22D1",
    "&Superset;": "\u2283",
    "&SupersetEqual;": "\u2287",
    "&Supset;": "\u22D1",
    "&THORN": "\xDE",
    "&THORN;": "\xDE",
    "&TRADE;": "\u2122",
    "&TSHcy;": "\u040B",
    "&TScy;": "\u0426",
    "&Tab;": "	",
    "&Tau;": "\u03A4",
    "&Tcaron;": "\u0164",
    "&Tcedil;": "\u0162",
    "&Tcy;": "\u0422",
    "&Tfr;": "\u{1D517}",
    "&Therefore;": "\u2234",
    "&Theta;": "\u0398",
    "&ThickSpace;": "\u205F\u200A",
    "&ThinSpace;": "\u2009",
    "&Tilde;": "\u223C",
    "&TildeEqual;": "\u2243",
    "&TildeFullEqual;": "\u2245",
    "&TildeTilde;": "\u2248",
    "&Topf;": "\u{1D54B}",
    "&TripleDot;": "\u20DB",
    "&Tscr;": "\u{1D4AF}",
    "&Tstrok;": "\u0166",
    "&Uacute": "\xDA",
    "&Uacute;": "\xDA",
    "&Uarr;": "\u219F",
    "&Uarrocir;": "\u2949",
    "&Ubrcy;": "\u040E",
    "&Ubreve;": "\u016C",
    "&Ucirc": "\xDB",
    "&Ucirc;": "\xDB",
    "&Ucy;": "\u0423",
    "&Udblac;": "\u0170",
    "&Ufr;": "\u{1D518}",
    "&Ugrave": "\xD9",
    "&Ugrave;": "\xD9",
    "&Umacr;": "\u016A",
    "&UnderBar;": "_",
    "&UnderBrace;": "\u23DF",
    "&UnderBracket;": "\u23B5",
    "&UnderParenthesis;": "\u23DD",
    "&Union;": "\u22C3",
    "&UnionPlus;": "\u228E",
    "&Uogon;": "\u0172",
    "&Uopf;": "\u{1D54C}",
    "&UpArrow;": "\u2191",
    "&UpArrowBar;": "\u2912",
    "&UpArrowDownArrow;": "\u21C5",
    "&UpDownArrow;": "\u2195",
    "&UpEquilibrium;": "\u296E",
    "&UpTee;": "\u22A5",
    "&UpTeeArrow;": "\u21A5",
    "&Uparrow;": "\u21D1",
    "&Updownarrow;": "\u21D5",
    "&UpperLeftArrow;": "\u2196",
    "&UpperRightArrow;": "\u2197",
    "&Upsi;": "\u03D2",
    "&Upsilon;": "\u03A5",
    "&Uring;": "\u016E",
    "&Uscr;": "\u{1D4B0}",
    "&Utilde;": "\u0168",
    "&Uuml": "\xDC",
    "&Uuml;": "\xDC",
    "&VDash;": "\u22AB",
    "&Vbar;": "\u2AEB",
    "&Vcy;": "\u0412",
    "&Vdash;": "\u22A9",
    "&Vdashl;": "\u2AE6",
    "&Vee;": "\u22C1",
    "&Verbar;": "\u2016",
    "&Vert;": "\u2016",
    "&VerticalBar;": "\u2223",
    "&VerticalLine;": "|",
    "&VerticalSeparator;": "\u2758",
    "&VerticalTilde;": "\u2240",
    "&VeryThinSpace;": "\u200A",
    "&Vfr;": "\u{1D519}",
    "&Vopf;": "\u{1D54D}",
    "&Vscr;": "\u{1D4B1}",
    "&Vvdash;": "\u22AA",
    "&Wcirc;": "\u0174",
    "&Wedge;": "\u22C0",
    "&Wfr;": "\u{1D51A}",
    "&Wopf;": "\u{1D54E}",
    "&Wscr;": "\u{1D4B2}",
    "&Xfr;": "\u{1D51B}",
    "&Xi;": "\u039E",
    "&Xopf;": "\u{1D54F}",
    "&Xscr;": "\u{1D4B3}",
    "&YAcy;": "\u042F",
    "&YIcy;": "\u0407",
    "&YUcy;": "\u042E",
    "&Yacute": "\xDD",
    "&Yacute;": "\xDD",
    "&Ycirc;": "\u0176",
    "&Ycy;": "\u042B",
    "&Yfr;": "\u{1D51C}",
    "&Yopf;": "\u{1D550}",
    "&Yscr;": "\u{1D4B4}",
    "&Yuml;": "\u0178",
    "&ZHcy;": "\u0416",
    "&Zacute;": "\u0179",
    "&Zcaron;": "\u017D",
    "&Zcy;": "\u0417",
    "&Zdot;": "\u017B",
    "&ZeroWidthSpace;": "\u200B",
    "&Zeta;": "\u0396",
    "&Zfr;": "\u2128",
    "&Zopf;": "\u2124",
    "&Zscr;": "\u{1D4B5}",
    "&aacute": "\xE1",
    "&aacute;": "\xE1",
    "&abreve;": "\u0103",
    "&ac;": "\u223E",
    "&acE;": "\u223E\u0333",
    "&acd;": "\u223F",
    "&acirc": "\xE2",
    "&acirc;": "\xE2",
    "&acute": "\xB4",
    "&acute;": "\xB4",
    "&acy;": "\u0430",
    "&aelig": "\xE6",
    "&aelig;": "\xE6",
    "&af;": "\u2061",
    "&afr;": "\u{1D51E}",
    "&agrave": "\xE0",
    "&agrave;": "\xE0",
    "&alefsym;": "\u2135",
    "&aleph;": "\u2135",
    "&alpha;": "\u03B1",
    "&amacr;": "\u0101",
    "&amalg;": "\u2A3F",
    "&amp": "&",
    "&amp;": "&",
    "&and;": "\u2227",
    "&andand;": "\u2A55",
    "&andd;": "\u2A5C",
    "&andslope;": "\u2A58",
    "&andv;": "\u2A5A",
    "&ang;": "\u2220",
    "&ange;": "\u29A4",
    "&angle;": "\u2220",
    "&angmsd;": "\u2221",
    "&angmsdaa;": "\u29A8",
    "&angmsdab;": "\u29A9",
    "&angmsdac;": "\u29AA",
    "&angmsdad;": "\u29AB",
    "&angmsdae;": "\u29AC",
    "&angmsdaf;": "\u29AD",
    "&angmsdag;": "\u29AE",
    "&angmsdah;": "\u29AF",
    "&angrt;": "\u221F",
    "&angrtvb;": "\u22BE",
    "&angrtvbd;": "\u299D",
    "&angsph;": "\u2222",
    "&angst;": "\xC5",
    "&angzarr;": "\u237C",
    "&aogon;": "\u0105",
    "&aopf;": "\u{1D552}",
    "&ap;": "\u2248",
    "&apE;": "\u2A70",
    "&apacir;": "\u2A6F",
    "&ape;": "\u224A",
    "&apid;": "\u224B",
    "&apos;": "'",
    "&approx;": "\u2248",
    "&approxeq;": "\u224A",
    "&aring": "\xE5",
    "&aring;": "\xE5",
    "&ascr;": "\u{1D4B6}",
    "&ast;": "*",
    "&asymp;": "\u2248",
    "&asympeq;": "\u224D",
    "&atilde": "\xE3",
    "&atilde;": "\xE3",
    "&auml": "\xE4",
    "&auml;": "\xE4",
    "&awconint;": "\u2233",
    "&awint;": "\u2A11",
    "&bNot;": "\u2AED",
    "&backcong;": "\u224C",
    "&backepsilon;": "\u03F6",
    "&backprime;": "\u2035",
    "&backsim;": "\u223D",
    "&backsimeq;": "\u22CD",
    "&barvee;": "\u22BD",
    "&barwed;": "\u2305",
    "&barwedge;": "\u2305",
    "&bbrk;": "\u23B5",
    "&bbrktbrk;": "\u23B6",
    "&bcong;": "\u224C",
    "&bcy;": "\u0431",
    "&bdquo;": "\u201E",
    "&becaus;": "\u2235",
    "&because;": "\u2235",
    "&bemptyv;": "\u29B0",
    "&bepsi;": "\u03F6",
    "&bernou;": "\u212C",
    "&beta;": "\u03B2",
    "&beth;": "\u2136",
    "&between;": "\u226C",
    "&bfr;": "\u{1D51F}",
    "&bigcap;": "\u22C2",
    "&bigcirc;": "\u25EF",
    "&bigcup;": "\u22C3",
    "&bigodot;": "\u2A00",
    "&bigoplus;": "\u2A01",
    "&bigotimes;": "\u2A02",
    "&bigsqcup;": "\u2A06",
    "&bigstar;": "\u2605",
    "&bigtriangledown;": "\u25BD",
    "&bigtriangleup;": "\u25B3",
    "&biguplus;": "\u2A04",
    "&bigvee;": "\u22C1",
    "&bigwedge;": "\u22C0",
    "&bkarow;": "\u290D",
    "&blacklozenge;": "\u29EB",
    "&blacksquare;": "\u25AA",
    "&blacktriangle;": "\u25B4",
    "&blacktriangledown;": "\u25BE",
    "&blacktriangleleft;": "\u25C2",
    "&blacktriangleright;": "\u25B8",
    "&blank;": "\u2423",
    "&blk12;": "\u2592",
    "&blk14;": "\u2591",
    "&blk34;": "\u2593",
    "&block;": "\u2588",
    "&bne;": "=\u20E5",
    "&bnequiv;": "\u2261\u20E5",
    "&bnot;": "\u2310",
    "&bopf;": "\u{1D553}",
    "&bot;": "\u22A5",
    "&bottom;": "\u22A5",
    "&bowtie;": "\u22C8",
    "&boxDL;": "\u2557",
    "&boxDR;": "\u2554",
    "&boxDl;": "\u2556",
    "&boxDr;": "\u2553",
    "&boxH;": "\u2550",
    "&boxHD;": "\u2566",
    "&boxHU;": "\u2569",
    "&boxHd;": "\u2564",
    "&boxHu;": "\u2567",
    "&boxUL;": "\u255D",
    "&boxUR;": "\u255A",
    "&boxUl;": "\u255C",
    "&boxUr;": "\u2559",
    "&boxV;": "\u2551",
    "&boxVH;": "\u256C",
    "&boxVL;": "\u2563",
    "&boxVR;": "\u2560",
    "&boxVh;": "\u256B",
    "&boxVl;": "\u2562",
    "&boxVr;": "\u255F",
    "&boxbox;": "\u29C9",
    "&boxdL;": "\u2555",
    "&boxdR;": "\u2552",
    "&boxdl;": "\u2510",
    "&boxdr;": "\u250C",
    "&boxh;": "\u2500",
    "&boxhD;": "\u2565",
    "&boxhU;": "\u2568",
    "&boxhd;": "\u252C",
    "&boxhu;": "\u2534",
    "&boxminus;": "\u229F",
    "&boxplus;": "\u229E",
    "&boxtimes;": "\u22A0",
    "&boxuL;": "\u255B",
    "&boxuR;": "\u2558",
    "&boxul;": "\u2518",
    "&boxur;": "\u2514",
    "&boxv;": "\u2502",
    "&boxvH;": "\u256A",
    "&boxvL;": "\u2561",
    "&boxvR;": "\u255E",
    "&boxvh;": "\u253C",
    "&boxvl;": "\u2524",
    "&boxvr;": "\u251C",
    "&bprime;": "\u2035",
    "&breve;": "\u02D8",
    "&brvbar": "\xA6",
    "&brvbar;": "\xA6",
    "&bscr;": "\u{1D4B7}",
    "&bsemi;": "\u204F",
    "&bsim;": "\u223D",
    "&bsime;": "\u22CD",
    "&bsol;": "\\",
    "&bsolb;": "\u29C5",
    "&bsolhsub;": "\u27C8",
    "&bull;": "\u2022",
    "&bullet;": "\u2022",
    "&bump;": "\u224E",
    "&bumpE;": "\u2AAE",
    "&bumpe;": "\u224F",
    "&bumpeq;": "\u224F",
    "&cacute;": "\u0107",
    "&cap;": "\u2229",
    "&capand;": "\u2A44",
    "&capbrcup;": "\u2A49",
    "&capcap;": "\u2A4B",
    "&capcup;": "\u2A47",
    "&capdot;": "\u2A40",
    "&caps;": "\u2229\uFE00",
    "&caret;": "\u2041",
    "&caron;": "\u02C7",
    "&ccaps;": "\u2A4D",
    "&ccaron;": "\u010D",
    "&ccedil": "\xE7",
    "&ccedil;": "\xE7",
    "&ccirc;": "\u0109",
    "&ccups;": "\u2A4C",
    "&ccupssm;": "\u2A50",
    "&cdot;": "\u010B",
    "&cedil": "\xB8",
    "&cedil;": "\xB8",
    "&cemptyv;": "\u29B2",
    "&cent": "\xA2",
    "&cent;": "\xA2",
    "&centerdot;": "\xB7",
    "&cfr;": "\u{1D520}",
    "&chcy;": "\u0447",
    "&check;": "\u2713",
    "&checkmark;": "\u2713",
    "&chi;": "\u03C7",
    "&cir;": "\u25CB",
    "&cirE;": "\u29C3",
    "&circ;": "\u02C6",
    "&circeq;": "\u2257",
    "&circlearrowleft;": "\u21BA",
    "&circlearrowright;": "\u21BB",
    "&circledR;": "\xAE",
    "&circledS;": "\u24C8",
    "&circledast;": "\u229B",
    "&circledcirc;": "\u229A",
    "&circleddash;": "\u229D",
    "&cire;": "\u2257",
    "&cirfnint;": "\u2A10",
    "&cirmid;": "\u2AEF",
    "&cirscir;": "\u29C2",
    "&clubs;": "\u2663",
    "&clubsuit;": "\u2663",
    "&colon;": ":",
    "&colone;": "\u2254",
    "&coloneq;": "\u2254",
    "&comma;": ",",
    "&commat;": "@",
    "&comp;": "\u2201",
    "&compfn;": "\u2218",
    "&complement;": "\u2201",
    "&complexes;": "\u2102",
    "&cong;": "\u2245",
    "&congdot;": "\u2A6D",
    "&conint;": "\u222E",
    "&copf;": "\u{1D554}",
    "&coprod;": "\u2210",
    "&copy": "\xA9",
    "&copy;": "\xA9",
    "&copysr;": "\u2117",
    "&crarr;": "\u21B5",
    "&cross;": "\u2717",
    "&cscr;": "\u{1D4B8}",
    "&csub;": "\u2ACF",
    "&csube;": "\u2AD1",
    "&csup;": "\u2AD0",
    "&csupe;": "\u2AD2",
    "&ctdot;": "\u22EF",
    "&cudarrl;": "\u2938",
    "&cudarrr;": "\u2935",
    "&cuepr;": "\u22DE",
    "&cuesc;": "\u22DF",
    "&cularr;": "\u21B6",
    "&cularrp;": "\u293D",
    "&cup;": "\u222A",
    "&cupbrcap;": "\u2A48",
    "&cupcap;": "\u2A46",
    "&cupcup;": "\u2A4A",
    "&cupdot;": "\u228D",
    "&cupor;": "\u2A45",
    "&cups;": "\u222A\uFE00",
    "&curarr;": "\u21B7",
    "&curarrm;": "\u293C",
    "&curlyeqprec;": "\u22DE",
    "&curlyeqsucc;": "\u22DF",
    "&curlyvee;": "\u22CE",
    "&curlywedge;": "\u22CF",
    "&curren": "\xA4",
    "&curren;": "\xA4",
    "&curvearrowleft;": "\u21B6",
    "&curvearrowright;": "\u21B7",
    "&cuvee;": "\u22CE",
    "&cuwed;": "\u22CF",
    "&cwconint;": "\u2232",
    "&cwint;": "\u2231",
    "&cylcty;": "\u232D",
    "&dArr;": "\u21D3",
    "&dHar;": "\u2965",
    "&dagger;": "\u2020",
    "&daleth;": "\u2138",
    "&darr;": "\u2193",
    "&dash;": "\u2010",
    "&dashv;": "\u22A3",
    "&dbkarow;": "\u290F",
    "&dblac;": "\u02DD",
    "&dcaron;": "\u010F",
    "&dcy;": "\u0434",
    "&dd;": "\u2146",
    "&ddagger;": "\u2021",
    "&ddarr;": "\u21CA",
    "&ddotseq;": "\u2A77",
    "&deg": "\xB0",
    "&deg;": "\xB0",
    "&delta;": "\u03B4",
    "&demptyv;": "\u29B1",
    "&dfisht;": "\u297F",
    "&dfr;": "\u{1D521}",
    "&dharl;": "\u21C3",
    "&dharr;": "\u21C2",
    "&diam;": "\u22C4",
    "&diamond;": "\u22C4",
    "&diamondsuit;": "\u2666",
    "&diams;": "\u2666",
    "&die;": "\xA8",
    "&digamma;": "\u03DD",
    "&disin;": "\u22F2",
    "&div;": "\xF7",
    "&divide": "\xF7",
    "&divide;": "\xF7",
    "&divideontimes;": "\u22C7",
    "&divonx;": "\u22C7",
    "&djcy;": "\u0452",
    "&dlcorn;": "\u231E",
    "&dlcrop;": "\u230D",
    "&dollar;": "$",
    "&dopf;": "\u{1D555}",
    "&dot;": "\u02D9",
    "&doteq;": "\u2250",
    "&doteqdot;": "\u2251",
    "&dotminus;": "\u2238",
    "&dotplus;": "\u2214",
    "&dotsquare;": "\u22A1",
    "&doublebarwedge;": "\u2306",
    "&downarrow;": "\u2193",
    "&downdownarrows;": "\u21CA",
    "&downharpoonleft;": "\u21C3",
    "&downharpoonright;": "\u21C2",
    "&drbkarow;": "\u2910",
    "&drcorn;": "\u231F",
    "&drcrop;": "\u230C",
    "&dscr;": "\u{1D4B9}",
    "&dscy;": "\u0455",
    "&dsol;": "\u29F6",
    "&dstrok;": "\u0111",
    "&dtdot;": "\u22F1",
    "&dtri;": "\u25BF",
    "&dtrif;": "\u25BE",
    "&duarr;": "\u21F5",
    "&duhar;": "\u296F",
    "&dwangle;": "\u29A6",
    "&dzcy;": "\u045F",
    "&dzigrarr;": "\u27FF",
    "&eDDot;": "\u2A77",
    "&eDot;": "\u2251",
    "&eacute": "\xE9",
    "&eacute;": "\xE9",
    "&easter;": "\u2A6E",
    "&ecaron;": "\u011B",
    "&ecir;": "\u2256",
    "&ecirc": "\xEA",
    "&ecirc;": "\xEA",
    "&ecolon;": "\u2255",
    "&ecy;": "\u044D",
    "&edot;": "\u0117",
    "&ee;": "\u2147",
    "&efDot;": "\u2252",
    "&efr;": "\u{1D522}",
    "&eg;": "\u2A9A",
    "&egrave": "\xE8",
    "&egrave;": "\xE8",
    "&egs;": "\u2A96",
    "&egsdot;": "\u2A98",
    "&el;": "\u2A99",
    "&elinters;": "\u23E7",
    "&ell;": "\u2113",
    "&els;": "\u2A95",
    "&elsdot;": "\u2A97",
    "&emacr;": "\u0113",
    "&empty;": "\u2205",
    "&emptyset;": "\u2205",
    "&emptyv;": "\u2205",
    "&emsp13;": "\u2004",
    "&emsp14;": "\u2005",
    "&emsp;": "\u2003",
    "&eng;": "\u014B",
    "&ensp;": "\u2002",
    "&eogon;": "\u0119",
    "&eopf;": "\u{1D556}",
    "&epar;": "\u22D5",
    "&eparsl;": "\u29E3",
    "&eplus;": "\u2A71",
    "&epsi;": "\u03B5",
    "&epsilon;": "\u03B5",
    "&epsiv;": "\u03F5",
    "&eqcirc;": "\u2256",
    "&eqcolon;": "\u2255",
    "&eqsim;": "\u2242",
    "&eqslantgtr;": "\u2A96",
    "&eqslantless;": "\u2A95",
    "&equals;": "=",
    "&equest;": "\u225F",
    "&equiv;": "\u2261",
    "&equivDD;": "\u2A78",
    "&eqvparsl;": "\u29E5",
    "&erDot;": "\u2253",
    "&erarr;": "\u2971",
    "&escr;": "\u212F",
    "&esdot;": "\u2250",
    "&esim;": "\u2242",
    "&eta;": "\u03B7",
    "&eth": "\xF0",
    "&eth;": "\xF0",
    "&euml": "\xEB",
    "&euml;": "\xEB",
    "&euro;": "\u20AC",
    "&excl;": "!",
    "&exist;": "\u2203",
    "&expectation;": "\u2130",
    "&exponentiale;": "\u2147",
    "&fallingdotseq;": "\u2252",
    "&fcy;": "\u0444",
    "&female;": "\u2640",
    "&ffilig;": "\uFB03",
    "&fflig;": "\uFB00",
    "&ffllig;": "\uFB04",
    "&ffr;": "\u{1D523}",
    "&filig;": "\uFB01",
    "&fjlig;": "fj",
    "&flat;": "\u266D",
    "&fllig;": "\uFB02",
    "&fltns;": "\u25B1",
    "&fnof;": "\u0192",
    "&fopf;": "\u{1D557}",
    "&forall;": "\u2200",
    "&fork;": "\u22D4",
    "&forkv;": "\u2AD9",
    "&fpartint;": "\u2A0D",
    "&frac12": "\xBD",
    "&frac12;": "\xBD",
    "&frac13;": "\u2153",
    "&frac14": "\xBC",
    "&frac14;": "\xBC",
    "&frac15;": "\u2155",
    "&frac16;": "\u2159",
    "&frac18;": "\u215B",
    "&frac23;": "\u2154",
    "&frac25;": "\u2156",
    "&frac34": "\xBE",
    "&frac34;": "\xBE",
    "&frac35;": "\u2157",
    "&frac38;": "\u215C",
    "&frac45;": "\u2158",
    "&frac56;": "\u215A",
    "&frac58;": "\u215D",
    "&frac78;": "\u215E",
    "&frasl;": "\u2044",
    "&frown;": "\u2322",
    "&fscr;": "\u{1D4BB}",
    "&gE;": "\u2267",
    "&gEl;": "\u2A8C",
    "&gacute;": "\u01F5",
    "&gamma;": "\u03B3",
    "&gammad;": "\u03DD",
    "&gap;": "\u2A86",
    "&gbreve;": "\u011F",
    "&gcirc;": "\u011D",
    "&gcy;": "\u0433",
    "&gdot;": "\u0121",
    "&ge;": "\u2265",
    "&gel;": "\u22DB",
    "&geq;": "\u2265",
    "&geqq;": "\u2267",
    "&geqslant;": "\u2A7E",
    "&ges;": "\u2A7E",
    "&gescc;": "\u2AA9",
    "&gesdot;": "\u2A80",
    "&gesdoto;": "\u2A82",
    "&gesdotol;": "\u2A84",
    "&gesl;": "\u22DB\uFE00",
    "&gesles;": "\u2A94",
    "&gfr;": "\u{1D524}",
    "&gg;": "\u226B",
    "&ggg;": "\u22D9",
    "&gimel;": "\u2137",
    "&gjcy;": "\u0453",
    "&gl;": "\u2277",
    "&glE;": "\u2A92",
    "&gla;": "\u2AA5",
    "&glj;": "\u2AA4",
    "&gnE;": "\u2269",
    "&gnap;": "\u2A8A",
    "&gnapprox;": "\u2A8A",
    "&gne;": "\u2A88",
    "&gneq;": "\u2A88",
    "&gneqq;": "\u2269",
    "&gnsim;": "\u22E7",
    "&gopf;": "\u{1D558}",
    "&grave;": "`",
    "&gscr;": "\u210A",
    "&gsim;": "\u2273",
    "&gsime;": "\u2A8E",
    "&gsiml;": "\u2A90",
    "&gt": ">",
    "&gt;": ">",
    "&gtcc;": "\u2AA7",
    "&gtcir;": "\u2A7A",
    "&gtdot;": "\u22D7",
    "&gtlPar;": "\u2995",
    "&gtquest;": "\u2A7C",
    "&gtrapprox;": "\u2A86",
    "&gtrarr;": "\u2978",
    "&gtrdot;": "\u22D7",
    "&gtreqless;": "\u22DB",
    "&gtreqqless;": "\u2A8C",
    "&gtrless;": "\u2277",
    "&gtrsim;": "\u2273",
    "&gvertneqq;": "\u2269\uFE00",
    "&gvnE;": "\u2269\uFE00",
    "&hArr;": "\u21D4",
    "&hairsp;": "\u200A",
    "&half;": "\xBD",
    "&hamilt;": "\u210B",
    "&hardcy;": "\u044A",
    "&harr;": "\u2194",
    "&harrcir;": "\u2948",
    "&harrw;": "\u21AD",
    "&hbar;": "\u210F",
    "&hcirc;": "\u0125",
    "&hearts;": "\u2665",
    "&heartsuit;": "\u2665",
    "&hellip;": "\u2026",
    "&hercon;": "\u22B9",
    "&hfr;": "\u{1D525}",
    "&hksearow;": "\u2925",
    "&hkswarow;": "\u2926",
    "&hoarr;": "\u21FF",
    "&homtht;": "\u223B",
    "&hookleftarrow;": "\u21A9",
    "&hookrightarrow;": "\u21AA",
    "&hopf;": "\u{1D559}",
    "&horbar;": "\u2015",
    "&hscr;": "\u{1D4BD}",
    "&hslash;": "\u210F",
    "&hstrok;": "\u0127",
    "&hybull;": "\u2043",
    "&hyphen;": "\u2010",
    "&iacute": "\xED",
    "&iacute;": "\xED",
    "&ic;": "\u2063",
    "&icirc": "\xEE",
    "&icirc;": "\xEE",
    "&icy;": "\u0438",
    "&iecy;": "\u0435",
    "&iexcl": "\xA1",
    "&iexcl;": "\xA1",
    "&iff;": "\u21D4",
    "&ifr;": "\u{1D526}",
    "&igrave": "\xEC",
    "&igrave;": "\xEC",
    "&ii;": "\u2148",
    "&iiiint;": "\u2A0C",
    "&iiint;": "\u222D",
    "&iinfin;": "\u29DC",
    "&iiota;": "\u2129",
    "&ijlig;": "\u0133",
    "&imacr;": "\u012B",
    "&image;": "\u2111",
    "&imagline;": "\u2110",
    "&imagpart;": "\u2111",
    "&imath;": "\u0131",
    "&imof;": "\u22B7",
    "&imped;": "\u01B5",
    "&in;": "\u2208",
    "&incare;": "\u2105",
    "&infin;": "\u221E",
    "&infintie;": "\u29DD",
    "&inodot;": "\u0131",
    "&int;": "\u222B",
    "&intcal;": "\u22BA",
    "&integers;": "\u2124",
    "&intercal;": "\u22BA",
    "&intlarhk;": "\u2A17",
    "&intprod;": "\u2A3C",
    "&iocy;": "\u0451",
    "&iogon;": "\u012F",
    "&iopf;": "\u{1D55A}",
    "&iota;": "\u03B9",
    "&iprod;": "\u2A3C",
    "&iquest": "\xBF",
    "&iquest;": "\xBF",
    "&iscr;": "\u{1D4BE}",
    "&isin;": "\u2208",
    "&isinE;": "\u22F9",
    "&isindot;": "\u22F5",
    "&isins;": "\u22F4",
    "&isinsv;": "\u22F3",
    "&isinv;": "\u2208",
    "&it;": "\u2062",
    "&itilde;": "\u0129",
    "&iukcy;": "\u0456",
    "&iuml": "\xEF",
    "&iuml;": "\xEF",
    "&jcirc;": "\u0135",
    "&jcy;": "\u0439",
    "&jfr;": "\u{1D527}",
    "&jmath;": "\u0237",
    "&jopf;": "\u{1D55B}",
    "&jscr;": "\u{1D4BF}",
    "&jsercy;": "\u0458",
    "&jukcy;": "\u0454",
    "&kappa;": "\u03BA",
    "&kappav;": "\u03F0",
    "&kcedil;": "\u0137",
    "&kcy;": "\u043A",
    "&kfr;": "\u{1D528}",
    "&kgreen;": "\u0138",
    "&khcy;": "\u0445",
    "&kjcy;": "\u045C",
    "&kopf;": "\u{1D55C}",
    "&kscr;": "\u{1D4C0}",
    "&lAarr;": "\u21DA",
    "&lArr;": "\u21D0",
    "&lAtail;": "\u291B",
    "&lBarr;": "\u290E",
    "&lE;": "\u2266",
    "&lEg;": "\u2A8B",
    "&lHar;": "\u2962",
    "&lacute;": "\u013A",
    "&laemptyv;": "\u29B4",
    "&lagran;": "\u2112",
    "&lambda;": "\u03BB",
    "&lang;": "\u27E8",
    "&langd;": "\u2991",
    "&langle;": "\u27E8",
    "&lap;": "\u2A85",
    "&laquo": "\xAB",
    "&laquo;": "\xAB",
    "&larr;": "\u2190",
    "&larrb;": "\u21E4",
    "&larrbfs;": "\u291F",
    "&larrfs;": "\u291D",
    "&larrhk;": "\u21A9",
    "&larrlp;": "\u21AB",
    "&larrpl;": "\u2939",
    "&larrsim;": "\u2973",
    "&larrtl;": "\u21A2",
    "&lat;": "\u2AAB",
    "&latail;": "\u2919",
    "&late;": "\u2AAD",
    "&lates;": "\u2AAD\uFE00",
    "&lbarr;": "\u290C",
    "&lbbrk;": "\u2772",
    "&lbrace;": "{",
    "&lbrack;": "[",
    "&lbrke;": "\u298B",
    "&lbrksld;": "\u298F",
    "&lbrkslu;": "\u298D",
    "&lcaron;": "\u013E",
    "&lcedil;": "\u013C",
    "&lceil;": "\u2308",
    "&lcub;": "{",
    "&lcy;": "\u043B",
    "&ldca;": "\u2936",
    "&ldquo;": "\u201C",
    "&ldquor;": "\u201E",
    "&ldrdhar;": "\u2967",
    "&ldrushar;": "\u294B",
    "&ldsh;": "\u21B2",
    "&le;": "\u2264",
    "&leftarrow;": "\u2190",
    "&leftarrowtail;": "\u21A2",
    "&leftharpoondown;": "\u21BD",
    "&leftharpoonup;": "\u21BC",
    "&leftleftarrows;": "\u21C7",
    "&leftrightarrow;": "\u2194",
    "&leftrightarrows;": "\u21C6",
    "&leftrightharpoons;": "\u21CB",
    "&leftrightsquigarrow;": "\u21AD",
    "&leftthreetimes;": "\u22CB",
    "&leg;": "\u22DA",
    "&leq;": "\u2264",
    "&leqq;": "\u2266",
    "&leqslant;": "\u2A7D",
    "&les;": "\u2A7D",
    "&lescc;": "\u2AA8",
    "&lesdot;": "\u2A7F",
    "&lesdoto;": "\u2A81",
    "&lesdotor;": "\u2A83",
    "&lesg;": "\u22DA\uFE00",
    "&lesges;": "\u2A93",
    "&lessapprox;": "\u2A85",
    "&lessdot;": "\u22D6",
    "&lesseqgtr;": "\u22DA",
    "&lesseqqgtr;": "\u2A8B",
    "&lessgtr;": "\u2276",
    "&lesssim;": "\u2272",
    "&lfisht;": "\u297C",
    "&lfloor;": "\u230A",
    "&lfr;": "\u{1D529}",
    "&lg;": "\u2276",
    "&lgE;": "\u2A91",
    "&lhard;": "\u21BD",
    "&lharu;": "\u21BC",
    "&lharul;": "\u296A",
    "&lhblk;": "\u2584",
    "&ljcy;": "\u0459",
    "&ll;": "\u226A",
    "&llarr;": "\u21C7",
    "&llcorner;": "\u231E",
    "&llhard;": "\u296B",
    "&lltri;": "\u25FA",
    "&lmidot;": "\u0140",
    "&lmoust;": "\u23B0",
    "&lmoustache;": "\u23B0",
    "&lnE;": "\u2268",
    "&lnap;": "\u2A89",
    "&lnapprox;": "\u2A89",
    "&lne;": "\u2A87",
    "&lneq;": "\u2A87",
    "&lneqq;": "\u2268",
    "&lnsim;": "\u22E6",
    "&loang;": "\u27EC",
    "&loarr;": "\u21FD",
    "&lobrk;": "\u27E6",
    "&longleftarrow;": "\u27F5",
    "&longleftrightarrow;": "\u27F7",
    "&longmapsto;": "\u27FC",
    "&longrightarrow;": "\u27F6",
    "&looparrowleft;": "\u21AB",
    "&looparrowright;": "\u21AC",
    "&lopar;": "\u2985",
    "&lopf;": "\u{1D55D}",
    "&loplus;": "\u2A2D",
    "&lotimes;": "\u2A34",
    "&lowast;": "\u2217",
    "&lowbar;": "_",
    "&loz;": "\u25CA",
    "&lozenge;": "\u25CA",
    "&lozf;": "\u29EB",
    "&lpar;": "(",
    "&lparlt;": "\u2993",
    "&lrarr;": "\u21C6",
    "&lrcorner;": "\u231F",
    "&lrhar;": "\u21CB",
    "&lrhard;": "\u296D",
    "&lrm;": "\u200E",
    "&lrtri;": "\u22BF",
    "&lsaquo;": "\u2039",
    "&lscr;": "\u{1D4C1}",
    "&lsh;": "\u21B0",
    "&lsim;": "\u2272",
    "&lsime;": "\u2A8D",
    "&lsimg;": "\u2A8F",
    "&lsqb;": "[",
    "&lsquo;": "\u2018",
    "&lsquor;": "\u201A",
    "&lstrok;": "\u0142",
    "&lt": "<",
    "&lt;": "<",
    "&ltcc;": "\u2AA6",
    "&ltcir;": "\u2A79",
    "&ltdot;": "\u22D6",
    "&lthree;": "\u22CB",
    "&ltimes;": "\u22C9",
    "&ltlarr;": "\u2976",
    "&ltquest;": "\u2A7B",
    "&ltrPar;": "\u2996",
    "&ltri;": "\u25C3",
    "&ltrie;": "\u22B4",
    "&ltrif;": "\u25C2",
    "&lurdshar;": "\u294A",
    "&luruhar;": "\u2966",
    "&lvertneqq;": "\u2268\uFE00",
    "&lvnE;": "\u2268\uFE00",
    "&mDDot;": "\u223A",
    "&macr": "\xAF",
    "&macr;": "\xAF",
    "&male;": "\u2642",
    "&malt;": "\u2720",
    "&maltese;": "\u2720",
    "&map;": "\u21A6",
    "&mapsto;": "\u21A6",
    "&mapstodown;": "\u21A7",
    "&mapstoleft;": "\u21A4",
    "&mapstoup;": "\u21A5",
    "&marker;": "\u25AE",
    "&mcomma;": "\u2A29",
    "&mcy;": "\u043C",
    "&mdash;": "\u2014",
    "&measuredangle;": "\u2221",
    "&mfr;": "\u{1D52A}",
    "&mho;": "\u2127",
    "&micro": "\xB5",
    "&micro;": "\xB5",
    "&mid;": "\u2223",
    "&midast;": "*",
    "&midcir;": "\u2AF0",
    "&middot": "\xB7",
    "&middot;": "\xB7",
    "&minus;": "\u2212",
    "&minusb;": "\u229F",
    "&minusd;": "\u2238",
    "&minusdu;": "\u2A2A",
    "&mlcp;": "\u2ADB",
    "&mldr;": "\u2026",
    "&mnplus;": "\u2213",
    "&models;": "\u22A7",
    "&mopf;": "\u{1D55E}",
    "&mp;": "\u2213",
    "&mscr;": "\u{1D4C2}",
    "&mstpos;": "\u223E",
    "&mu;": "\u03BC",
    "&multimap;": "\u22B8",
    "&mumap;": "\u22B8",
    "&nGg;": "\u22D9\u0338",
    "&nGt;": "\u226B\u20D2",
    "&nGtv;": "\u226B\u0338",
    "&nLeftarrow;": "\u21CD",
    "&nLeftrightarrow;": "\u21CE",
    "&nLl;": "\u22D8\u0338",
    "&nLt;": "\u226A\u20D2",
    "&nLtv;": "\u226A\u0338",
    "&nRightarrow;": "\u21CF",
    "&nVDash;": "\u22AF",
    "&nVdash;": "\u22AE",
    "&nabla;": "\u2207",
    "&nacute;": "\u0144",
    "&nang;": "\u2220\u20D2",
    "&nap;": "\u2249",
    "&napE;": "\u2A70\u0338",
    "&napid;": "\u224B\u0338",
    "&napos;": "\u0149",
    "&napprox;": "\u2249",
    "&natur;": "\u266E",
    "&natural;": "\u266E",
    "&naturals;": "\u2115",
    "&nbsp": "\xA0",
    "&nbsp;": "\xA0",
    "&nbump;": "\u224E\u0338",
    "&nbumpe;": "\u224F\u0338",
    "&ncap;": "\u2A43",
    "&ncaron;": "\u0148",
    "&ncedil;": "\u0146",
    "&ncong;": "\u2247",
    "&ncongdot;": "\u2A6D\u0338",
    "&ncup;": "\u2A42",
    "&ncy;": "\u043D",
    "&ndash;": "\u2013",
    "&ne;": "\u2260",
    "&neArr;": "\u21D7",
    "&nearhk;": "\u2924",
    "&nearr;": "\u2197",
    "&nearrow;": "\u2197",
    "&nedot;": "\u2250\u0338",
    "&nequiv;": "\u2262",
    "&nesear;": "\u2928",
    "&nesim;": "\u2242\u0338",
    "&nexist;": "\u2204",
    "&nexists;": "\u2204",
    "&nfr;": "\u{1D52B}",
    "&ngE;": "\u2267\u0338",
    "&nge;": "\u2271",
    "&ngeq;": "\u2271",
    "&ngeqq;": "\u2267\u0338",
    "&ngeqslant;": "\u2A7E\u0338",
    "&nges;": "\u2A7E\u0338",
    "&ngsim;": "\u2275",
    "&ngt;": "\u226F",
    "&ngtr;": "\u226F",
    "&nhArr;": "\u21CE",
    "&nharr;": "\u21AE",
    "&nhpar;": "\u2AF2",
    "&ni;": "\u220B",
    "&nis;": "\u22FC",
    "&nisd;": "\u22FA",
    "&niv;": "\u220B",
    "&njcy;": "\u045A",
    "&nlArr;": "\u21CD",
    "&nlE;": "\u2266\u0338",
    "&nlarr;": "\u219A",
    "&nldr;": "\u2025",
    "&nle;": "\u2270",
    "&nleftarrow;": "\u219A",
    "&nleftrightarrow;": "\u21AE",
    "&nleq;": "\u2270",
    "&nleqq;": "\u2266\u0338",
    "&nleqslant;": "\u2A7D\u0338",
    "&nles;": "\u2A7D\u0338",
    "&nless;": "\u226E",
    "&nlsim;": "\u2274",
    "&nlt;": "\u226E",
    "&nltri;": "\u22EA",
    "&nltrie;": "\u22EC",
    "&nmid;": "\u2224",
    "&nopf;": "\u{1D55F}",
    "&not": "\xAC",
    "&not;": "\xAC",
    "&notin;": "\u2209",
    "&notinE;": "\u22F9\u0338",
    "&notindot;": "\u22F5\u0338",
    "&notinva;": "\u2209",
    "&notinvb;": "\u22F7",
    "&notinvc;": "\u22F6",
    "&notni;": "\u220C",
    "&notniva;": "\u220C",
    "&notnivb;": "\u22FE",
    "&notnivc;": "\u22FD",
    "&npar;": "\u2226",
    "&nparallel;": "\u2226",
    "&nparsl;": "\u2AFD\u20E5",
    "&npart;": "\u2202\u0338",
    "&npolint;": "\u2A14",
    "&npr;": "\u2280",
    "&nprcue;": "\u22E0",
    "&npre;": "\u2AAF\u0338",
    "&nprec;": "\u2280",
    "&npreceq;": "\u2AAF\u0338",
    "&nrArr;": "\u21CF",
    "&nrarr;": "\u219B",
    "&nrarrc;": "\u2933\u0338",
    "&nrarrw;": "\u219D\u0338",
    "&nrightarrow;": "\u219B",
    "&nrtri;": "\u22EB",
    "&nrtrie;": "\u22ED",
    "&nsc;": "\u2281",
    "&nsccue;": "\u22E1",
    "&nsce;": "\u2AB0\u0338",
    "&nscr;": "\u{1D4C3}",
    "&nshortmid;": "\u2224",
    "&nshortparallel;": "\u2226",
    "&nsim;": "\u2241",
    "&nsime;": "\u2244",
    "&nsimeq;": "\u2244",
    "&nsmid;": "\u2224",
    "&nspar;": "\u2226",
    "&nsqsube;": "\u22E2",
    "&nsqsupe;": "\u22E3",
    "&nsub;": "\u2284",
    "&nsubE;": "\u2AC5\u0338",
    "&nsube;": "\u2288",
    "&nsubset;": "\u2282\u20D2",
    "&nsubseteq;": "\u2288",
    "&nsubseteqq;": "\u2AC5\u0338",
    "&nsucc;": "\u2281",
    "&nsucceq;": "\u2AB0\u0338",
    "&nsup;": "\u2285",
    "&nsupE;": "\u2AC6\u0338",
    "&nsupe;": "\u2289",
    "&nsupset;": "\u2283\u20D2",
    "&nsupseteq;": "\u2289",
    "&nsupseteqq;": "\u2AC6\u0338",
    "&ntgl;": "\u2279",
    "&ntilde": "\xF1",
    "&ntilde;": "\xF1",
    "&ntlg;": "\u2278",
    "&ntriangleleft;": "\u22EA",
    "&ntrianglelefteq;": "\u22EC",
    "&ntriangleright;": "\u22EB",
    "&ntrianglerighteq;": "\u22ED",
    "&nu;": "\u03BD",
    "&num;": "#",
    "&numero;": "\u2116",
    "&numsp;": "\u2007",
    "&nvDash;": "\u22AD",
    "&nvHarr;": "\u2904",
    "&nvap;": "\u224D\u20D2",
    "&nvdash;": "\u22AC",
    "&nvge;": "\u2265\u20D2",
    "&nvgt;": ">\u20D2",
    "&nvinfin;": "\u29DE",
    "&nvlArr;": "\u2902",
    "&nvle;": "\u2264\u20D2",
    "&nvlt;": "<\u20D2",
    "&nvltrie;": "\u22B4\u20D2",
    "&nvrArr;": "\u2903",
    "&nvrtrie;": "\u22B5\u20D2",
    "&nvsim;": "\u223C\u20D2",
    "&nwArr;": "\u21D6",
    "&nwarhk;": "\u2923",
    "&nwarr;": "\u2196",
    "&nwarrow;": "\u2196",
    "&nwnear;": "\u2927",
    "&oS;": "\u24C8",
    "&oacute": "\xF3",
    "&oacute;": "\xF3",
    "&oast;": "\u229B",
    "&ocir;": "\u229A",
    "&ocirc": "\xF4",
    "&ocirc;": "\xF4",
    "&ocy;": "\u043E",
    "&odash;": "\u229D",
    "&odblac;": "\u0151",
    "&odiv;": "\u2A38",
    "&odot;": "\u2299",
    "&odsold;": "\u29BC",
    "&oelig;": "\u0153",
    "&ofcir;": "\u29BF",
    "&ofr;": "\u{1D52C}",
    "&ogon;": "\u02DB",
    "&ograve": "\xF2",
    "&ograve;": "\xF2",
    "&ogt;": "\u29C1",
    "&ohbar;": "\u29B5",
    "&ohm;": "\u03A9",
    "&oint;": "\u222E",
    "&olarr;": "\u21BA",
    "&olcir;": "\u29BE",
    "&olcross;": "\u29BB",
    "&oline;": "\u203E",
    "&olt;": "\u29C0",
    "&omacr;": "\u014D",
    "&omega;": "\u03C9",
    "&omicron;": "\u03BF",
    "&omid;": "\u29B6",
    "&ominus;": "\u2296",
    "&oopf;": "\u{1D560}",
    "&opar;": "\u29B7",
    "&operp;": "\u29B9",
    "&oplus;": "\u2295",
    "&or;": "\u2228",
    "&orarr;": "\u21BB",
    "&ord;": "\u2A5D",
    "&order;": "\u2134",
    "&orderof;": "\u2134",
    "&ordf": "\xAA",
    "&ordf;": "\xAA",
    "&ordm": "\xBA",
    "&ordm;": "\xBA",
    "&origof;": "\u22B6",
    "&oror;": "\u2A56",
    "&orslope;": "\u2A57",
    "&orv;": "\u2A5B",
    "&oscr;": "\u2134",
    "&oslash": "\xF8",
    "&oslash;": "\xF8",
    "&osol;": "\u2298",
    "&otilde": "\xF5",
    "&otilde;": "\xF5",
    "&otimes;": "\u2297",
    "&otimesas;": "\u2A36",
    "&ouml": "\xF6",
    "&ouml;": "\xF6",
    "&ovbar;": "\u233D",
    "&par;": "\u2225",
    "&para": "\xB6",
    "&para;": "\xB6",
    "&parallel;": "\u2225",
    "&parsim;": "\u2AF3",
    "&parsl;": "\u2AFD",
    "&part;": "\u2202",
    "&pcy;": "\u043F",
    "&percnt;": "%",
    "&period;": ".",
    "&permil;": "\u2030",
    "&perp;": "\u22A5",
    "&pertenk;": "\u2031",
    "&pfr;": "\u{1D52D}",
    "&phi;": "\u03C6",
    "&phiv;": "\u03D5",
    "&phmmat;": "\u2133",
    "&phone;": "\u260E",
    "&pi;": "\u03C0",
    "&pitchfork;": "\u22D4",
    "&piv;": "\u03D6",
    "&planck;": "\u210F",
    "&planckh;": "\u210E",
    "&plankv;": "\u210F",
    "&plus;": "+",
    "&plusacir;": "\u2A23",
    "&plusb;": "\u229E",
    "&pluscir;": "\u2A22",
    "&plusdo;": "\u2214",
    "&plusdu;": "\u2A25",
    "&pluse;": "\u2A72",
    "&plusmn": "\xB1",
    "&plusmn;": "\xB1",
    "&plussim;": "\u2A26",
    "&plustwo;": "\u2A27",
    "&pm;": "\xB1",
    "&pointint;": "\u2A15",
    "&popf;": "\u{1D561}",
    "&pound": "\xA3",
    "&pound;": "\xA3",
    "&pr;": "\u227A",
    "&prE;": "\u2AB3",
    "&prap;": "\u2AB7",
    "&prcue;": "\u227C",
    "&pre;": "\u2AAF",
    "&prec;": "\u227A",
    "&precapprox;": "\u2AB7",
    "&preccurlyeq;": "\u227C",
    "&preceq;": "\u2AAF",
    "&precnapprox;": "\u2AB9",
    "&precneqq;": "\u2AB5",
    "&precnsim;": "\u22E8",
    "&precsim;": "\u227E",
    "&prime;": "\u2032",
    "&primes;": "\u2119",
    "&prnE;": "\u2AB5",
    "&prnap;": "\u2AB9",
    "&prnsim;": "\u22E8",
    "&prod;": "\u220F",
    "&profalar;": "\u232E",
    "&profline;": "\u2312",
    "&profsurf;": "\u2313",
    "&prop;": "\u221D",
    "&propto;": "\u221D",
    "&prsim;": "\u227E",
    "&prurel;": "\u22B0",
    "&pscr;": "\u{1D4C5}",
    "&psi;": "\u03C8",
    "&puncsp;": "\u2008",
    "&qfr;": "\u{1D52E}",
    "&qint;": "\u2A0C",
    "&qopf;": "\u{1D562}",
    "&qprime;": "\u2057",
    "&qscr;": "\u{1D4C6}",
    "&quaternions;": "\u210D",
    "&quatint;": "\u2A16",
    "&quest;": "?",
    "&questeq;": "\u225F",
    "&quot": '"',
    "&quot;": '"',
    "&rAarr;": "\u21DB",
    "&rArr;": "\u21D2",
    "&rAtail;": "\u291C",
    "&rBarr;": "\u290F",
    "&rHar;": "\u2964",
    "&race;": "\u223D\u0331",
    "&racute;": "\u0155",
    "&radic;": "\u221A",
    "&raemptyv;": "\u29B3",
    "&rang;": "\u27E9",
    "&rangd;": "\u2992",
    "&range;": "\u29A5",
    "&rangle;": "\u27E9",
    "&raquo": "\xBB",
    "&raquo;": "\xBB",
    "&rarr;": "\u2192",
    "&rarrap;": "\u2975",
    "&rarrb;": "\u21E5",
    "&rarrbfs;": "\u2920",
    "&rarrc;": "\u2933",
    "&rarrfs;": "\u291E",
    "&rarrhk;": "\u21AA",
    "&rarrlp;": "\u21AC",
    "&rarrpl;": "\u2945",
    "&rarrsim;": "\u2974",
    "&rarrtl;": "\u21A3",
    "&rarrw;": "\u219D",
    "&ratail;": "\u291A",
    "&ratio;": "\u2236",
    "&rationals;": "\u211A",
    "&rbarr;": "\u290D",
    "&rbbrk;": "\u2773",
    "&rbrace;": "}",
    "&rbrack;": "]",
    "&rbrke;": "\u298C",
    "&rbrksld;": "\u298E",
    "&rbrkslu;": "\u2990",
    "&rcaron;": "\u0159",
    "&rcedil;": "\u0157",
    "&rceil;": "\u2309",
    "&rcub;": "}",
    "&rcy;": "\u0440",
    "&rdca;": "\u2937",
    "&rdldhar;": "\u2969",
    "&rdquo;": "\u201D",
    "&rdquor;": "\u201D",
    "&rdsh;": "\u21B3",
    "&real;": "\u211C",
    "&realine;": "\u211B",
    "&realpart;": "\u211C",
    "&reals;": "\u211D",
    "&rect;": "\u25AD",
    "&reg": "\xAE",
    "&reg;": "\xAE",
    "&rfisht;": "\u297D",
    "&rfloor;": "\u230B",
    "&rfr;": "\u{1D52F}",
    "&rhard;": "\u21C1",
    "&rharu;": "\u21C0",
    "&rharul;": "\u296C",
    "&rho;": "\u03C1",
    "&rhov;": "\u03F1",
    "&rightarrow;": "\u2192",
    "&rightarrowtail;": "\u21A3",
    "&rightharpoondown;": "\u21C1",
    "&rightharpoonup;": "\u21C0",
    "&rightleftarrows;": "\u21C4",
    "&rightleftharpoons;": "\u21CC",
    "&rightrightarrows;": "\u21C9",
    "&rightsquigarrow;": "\u219D",
    "&rightthreetimes;": "\u22CC",
    "&ring;": "\u02DA",
    "&risingdotseq;": "\u2253",
    "&rlarr;": "\u21C4",
    "&rlhar;": "\u21CC",
    "&rlm;": "\u200F",
    "&rmoust;": "\u23B1",
    "&rmoustache;": "\u23B1",
    "&rnmid;": "\u2AEE",
    "&roang;": "\u27ED",
    "&roarr;": "\u21FE",
    "&robrk;": "\u27E7",
    "&ropar;": "\u2986",
    "&ropf;": "\u{1D563}",
    "&roplus;": "\u2A2E",
    "&rotimes;": "\u2A35",
    "&rpar;": ")",
    "&rpargt;": "\u2994",
    "&rppolint;": "\u2A12",
    "&rrarr;": "\u21C9",
    "&rsaquo;": "\u203A",
    "&rscr;": "\u{1D4C7}",
    "&rsh;": "\u21B1",
    "&rsqb;": "]",
    "&rsquo;": "\u2019",
    "&rsquor;": "\u2019",
    "&rthree;": "\u22CC",
    "&rtimes;": "\u22CA",
    "&rtri;": "\u25B9",
    "&rtrie;": "\u22B5",
    "&rtrif;": "\u25B8",
    "&rtriltri;": "\u29CE",
    "&ruluhar;": "\u2968",
    "&rx;": "\u211E",
    "&sacute;": "\u015B",
    "&sbquo;": "\u201A",
    "&sc;": "\u227B",
    "&scE;": "\u2AB4",
    "&scap;": "\u2AB8",
    "&scaron;": "\u0161",
    "&sccue;": "\u227D",
    "&sce;": "\u2AB0",
    "&scedil;": "\u015F",
    "&scirc;": "\u015D",
    "&scnE;": "\u2AB6",
    "&scnap;": "\u2ABA",
    "&scnsim;": "\u22E9",
    "&scpolint;": "\u2A13",
    "&scsim;": "\u227F",
    "&scy;": "\u0441",
    "&sdot;": "\u22C5",
    "&sdotb;": "\u22A1",
    "&sdote;": "\u2A66",
    "&seArr;": "\u21D8",
    "&searhk;": "\u2925",
    "&searr;": "\u2198",
    "&searrow;": "\u2198",
    "&sect": "\xA7",
    "&sect;": "\xA7",
    "&semi;": ";",
    "&seswar;": "\u2929",
    "&setminus;": "\u2216",
    "&setmn;": "\u2216",
    "&sext;": "\u2736",
    "&sfr;": "\u{1D530}",
    "&sfrown;": "\u2322",
    "&sharp;": "\u266F",
    "&shchcy;": "\u0449",
    "&shcy;": "\u0448",
    "&shortmid;": "\u2223",
    "&shortparallel;": "\u2225",
    "&shy": "\xAD",
    "&shy;": "\xAD",
    "&sigma;": "\u03C3",
    "&sigmaf;": "\u03C2",
    "&sigmav;": "\u03C2",
    "&sim;": "\u223C",
    "&simdot;": "\u2A6A",
    "&sime;": "\u2243",
    "&simeq;": "\u2243",
    "&simg;": "\u2A9E",
    "&simgE;": "\u2AA0",
    "&siml;": "\u2A9D",
    "&simlE;": "\u2A9F",
    "&simne;": "\u2246",
    "&simplus;": "\u2A24",
    "&simrarr;": "\u2972",
    "&slarr;": "\u2190",
    "&smallsetminus;": "\u2216",
    "&smashp;": "\u2A33",
    "&smeparsl;": "\u29E4",
    "&smid;": "\u2223",
    "&smile;": "\u2323",
    "&smt;": "\u2AAA",
    "&smte;": "\u2AAC",
    "&smtes;": "\u2AAC\uFE00",
    "&softcy;": "\u044C",
    "&sol;": "/",
    "&solb;": "\u29C4",
    "&solbar;": "\u233F",
    "&sopf;": "\u{1D564}",
    "&spades;": "\u2660",
    "&spadesuit;": "\u2660",
    "&spar;": "\u2225",
    "&sqcap;": "\u2293",
    "&sqcaps;": "\u2293\uFE00",
    "&sqcup;": "\u2294",
    "&sqcups;": "\u2294\uFE00",
    "&sqsub;": "\u228F",
    "&sqsube;": "\u2291",
    "&sqsubset;": "\u228F",
    "&sqsubseteq;": "\u2291",
    "&sqsup;": "\u2290",
    "&sqsupe;": "\u2292",
    "&sqsupset;": "\u2290",
    "&sqsupseteq;": "\u2292",
    "&squ;": "\u25A1",
    "&square;": "\u25A1",
    "&squarf;": "\u25AA",
    "&squf;": "\u25AA",
    "&srarr;": "\u2192",
    "&sscr;": "\u{1D4C8}",
    "&ssetmn;": "\u2216",
    "&ssmile;": "\u2323",
    "&sstarf;": "\u22C6",
    "&star;": "\u2606",
    "&starf;": "\u2605",
    "&straightepsilon;": "\u03F5",
    "&straightphi;": "\u03D5",
    "&strns;": "\xAF",
    "&sub;": "\u2282",
    "&subE;": "\u2AC5",
    "&subdot;": "\u2ABD",
    "&sube;": "\u2286",
    "&subedot;": "\u2AC3",
    "&submult;": "\u2AC1",
    "&subnE;": "\u2ACB",
    "&subne;": "\u228A",
    "&subplus;": "\u2ABF",
    "&subrarr;": "\u2979",
    "&subset;": "\u2282",
    "&subseteq;": "\u2286",
    "&subseteqq;": "\u2AC5",
    "&subsetneq;": "\u228A",
    "&subsetneqq;": "\u2ACB",
    "&subsim;": "\u2AC7",
    "&subsub;": "\u2AD5",
    "&subsup;": "\u2AD3",
    "&succ;": "\u227B",
    "&succapprox;": "\u2AB8",
    "&succcurlyeq;": "\u227D",
    "&succeq;": "\u2AB0",
    "&succnapprox;": "\u2ABA",
    "&succneqq;": "\u2AB6",
    "&succnsim;": "\u22E9",
    "&succsim;": "\u227F",
    "&sum;": "\u2211",
    "&sung;": "\u266A",
    "&sup1": "\xB9",
    "&sup1;": "\xB9",
    "&sup2": "\xB2",
    "&sup2;": "\xB2",
    "&sup3": "\xB3",
    "&sup3;": "\xB3",
    "&sup;": "\u2283",
    "&supE;": "\u2AC6",
    "&supdot;": "\u2ABE",
    "&supdsub;": "\u2AD8",
    "&supe;": "\u2287",
    "&supedot;": "\u2AC4",
    "&suphsol;": "\u27C9",
    "&suphsub;": "\u2AD7",
    "&suplarr;": "\u297B",
    "&supmult;": "\u2AC2",
    "&supnE;": "\u2ACC",
    "&supne;": "\u228B",
    "&supplus;": "\u2AC0",
    "&supset;": "\u2283",
    "&supseteq;": "\u2287",
    "&supseteqq;": "\u2AC6",
    "&supsetneq;": "\u228B",
    "&supsetneqq;": "\u2ACC",
    "&supsim;": "\u2AC8",
    "&supsub;": "\u2AD4",
    "&supsup;": "\u2AD6",
    "&swArr;": "\u21D9",
    "&swarhk;": "\u2926",
    "&swarr;": "\u2199",
    "&swarrow;": "\u2199",
    "&swnwar;": "\u292A",
    "&szlig": "\xDF",
    "&szlig;": "\xDF",
    "&target;": "\u2316",
    "&tau;": "\u03C4",
    "&tbrk;": "\u23B4",
    "&tcaron;": "\u0165",
    "&tcedil;": "\u0163",
    "&tcy;": "\u0442",
    "&tdot;": "\u20DB",
    "&telrec;": "\u2315",
    "&tfr;": "\u{1D531}",
    "&there4;": "\u2234",
    "&therefore;": "\u2234",
    "&theta;": "\u03B8",
    "&thetasym;": "\u03D1",
    "&thetav;": "\u03D1",
    "&thickapprox;": "\u2248",
    "&thicksim;": "\u223C",
    "&thinsp;": "\u2009",
    "&thkap;": "\u2248",
    "&thksim;": "\u223C",
    "&thorn": "\xFE",
    "&thorn;": "\xFE",
    "&tilde;": "\u02DC",
    "&times": "\xD7",
    "&times;": "\xD7",
    "&timesb;": "\u22A0",
    "&timesbar;": "\u2A31",
    "&timesd;": "\u2A30",
    "&tint;": "\u222D",
    "&toea;": "\u2928",
    "&top;": "\u22A4",
    "&topbot;": "\u2336",
    "&topcir;": "\u2AF1",
    "&topf;": "\u{1D565}",
    "&topfork;": "\u2ADA",
    "&tosa;": "\u2929",
    "&tprime;": "\u2034",
    "&trade;": "\u2122",
    "&triangle;": "\u25B5",
    "&triangledown;": "\u25BF",
    "&triangleleft;": "\u25C3",
    "&trianglelefteq;": "\u22B4",
    "&triangleq;": "\u225C",
    "&triangleright;": "\u25B9",
    "&trianglerighteq;": "\u22B5",
    "&tridot;": "\u25EC",
    "&trie;": "\u225C",
    "&triminus;": "\u2A3A",
    "&triplus;": "\u2A39",
    "&trisb;": "\u29CD",
    "&tritime;": "\u2A3B",
    "&trpezium;": "\u23E2",
    "&tscr;": "\u{1D4C9}",
    "&tscy;": "\u0446",
    "&tshcy;": "\u045B",
    "&tstrok;": "\u0167",
    "&twixt;": "\u226C",
    "&twoheadleftarrow;": "\u219E",
    "&twoheadrightarrow;": "\u21A0",
    "&uArr;": "\u21D1",
    "&uHar;": "\u2963",
    "&uacute": "\xFA",
    "&uacute;": "\xFA",
    "&uarr;": "\u2191",
    "&ubrcy;": "\u045E",
    "&ubreve;": "\u016D",
    "&ucirc": "\xFB",
    "&ucirc;": "\xFB",
    "&ucy;": "\u0443",
    "&udarr;": "\u21C5",
    "&udblac;": "\u0171",
    "&udhar;": "\u296E",
    "&ufisht;": "\u297E",
    "&ufr;": "\u{1D532}",
    "&ugrave": "\xF9",
    "&ugrave;": "\xF9",
    "&uharl;": "\u21BF",
    "&uharr;": "\u21BE",
    "&uhblk;": "\u2580",
    "&ulcorn;": "\u231C",
    "&ulcorner;": "\u231C",
    "&ulcrop;": "\u230F",
    "&ultri;": "\u25F8",
    "&umacr;": "\u016B",
    "&uml": "\xA8",
    "&uml;": "\xA8",
    "&uogon;": "\u0173",
    "&uopf;": "\u{1D566}",
    "&uparrow;": "\u2191",
    "&updownarrow;": "\u2195",
    "&upharpoonleft;": "\u21BF",
    "&upharpoonright;": "\u21BE",
    "&uplus;": "\u228E",
    "&upsi;": "\u03C5",
    "&upsih;": "\u03D2",
    "&upsilon;": "\u03C5",
    "&upuparrows;": "\u21C8",
    "&urcorn;": "\u231D",
    "&urcorner;": "\u231D",
    "&urcrop;": "\u230E",
    "&uring;": "\u016F",
    "&urtri;": "\u25F9",
    "&uscr;": "\u{1D4CA}",
    "&utdot;": "\u22F0",
    "&utilde;": "\u0169",
    "&utri;": "\u25B5",
    "&utrif;": "\u25B4",
    "&uuarr;": "\u21C8",
    "&uuml": "\xFC",
    "&uuml;": "\xFC",
    "&uwangle;": "\u29A7",
    "&vArr;": "\u21D5",
    "&vBar;": "\u2AE8",
    "&vBarv;": "\u2AE9",
    "&vDash;": "\u22A8",
    "&vangrt;": "\u299C",
    "&varepsilon;": "\u03F5",
    "&varkappa;": "\u03F0",
    "&varnothing;": "\u2205",
    "&varphi;": "\u03D5",
    "&varpi;": "\u03D6",
    "&varpropto;": "\u221D",
    "&varr;": "\u2195",
    "&varrho;": "\u03F1",
    "&varsigma;": "\u03C2",
    "&varsubsetneq;": "\u228A\uFE00",
    "&varsubsetneqq;": "\u2ACB\uFE00",
    "&varsupsetneq;": "\u228B\uFE00",
    "&varsupsetneqq;": "\u2ACC\uFE00",
    "&vartheta;": "\u03D1",
    "&vartriangleleft;": "\u22B2",
    "&vartriangleright;": "\u22B3",
    "&vcy;": "\u0432",
    "&vdash;": "\u22A2",
    "&vee;": "\u2228",
    "&veebar;": "\u22BB",
    "&veeeq;": "\u225A",
    "&vellip;": "\u22EE",
    "&verbar;": "|",
    "&vert;": "|",
    "&vfr;": "\u{1D533}",
    "&vltri;": "\u22B2",
    "&vnsub;": "\u2282\u20D2",
    "&vnsup;": "\u2283\u20D2",
    "&vopf;": "\u{1D567}",
    "&vprop;": "\u221D",
    "&vrtri;": "\u22B3",
    "&vscr;": "\u{1D4CB}",
    "&vsubnE;": "\u2ACB\uFE00",
    "&vsubne;": "\u228A\uFE00",
    "&vsupnE;": "\u2ACC\uFE00",
    "&vsupne;": "\u228B\uFE00",
    "&vzigzag;": "\u299A",
    "&wcirc;": "\u0175",
    "&wedbar;": "\u2A5F",
    "&wedge;": "\u2227",
    "&wedgeq;": "\u2259",
    "&weierp;": "\u2118",
    "&wfr;": "\u{1D534}",
    "&wopf;": "\u{1D568}",
    "&wp;": "\u2118",
    "&wr;": "\u2240",
    "&wreath;": "\u2240",
    "&wscr;": "\u{1D4CC}",
    "&xcap;": "\u22C2",
    "&xcirc;": "\u25EF",
    "&xcup;": "\u22C3",
    "&xdtri;": "\u25BD",
    "&xfr;": "\u{1D535}",
    "&xhArr;": "\u27FA",
    "&xharr;": "\u27F7",
    "&xi;": "\u03BE",
    "&xlArr;": "\u27F8",
    "&xlarr;": "\u27F5",
    "&xmap;": "\u27FC",
    "&xnis;": "\u22FB",
    "&xodot;": "\u2A00",
    "&xopf;": "\u{1D569}",
    "&xoplus;": "\u2A01",
    "&xotime;": "\u2A02",
    "&xrArr;": "\u27F9",
    "&xrarr;": "\u27F6",
    "&xscr;": "\u{1D4CD}",
    "&xsqcup;": "\u2A06",
    "&xuplus;": "\u2A04",
    "&xutri;": "\u25B3",
    "&xvee;": "\u22C1",
    "&xwedge;": "\u22C0",
    "&yacute": "\xFD",
    "&yacute;": "\xFD",
    "&yacy;": "\u044F",
    "&ycirc;": "\u0177",
    "&ycy;": "\u044B",
    "&yen": "\xA5",
    "&yen;": "\xA5",
    "&yfr;": "\u{1D536}",
    "&yicy;": "\u0457",
    "&yopf;": "\u{1D56A}",
    "&yscr;": "\u{1D4CE}",
    "&yucy;": "\u044E",
    "&yuml": "\xFF",
    "&yuml;": "\xFF",
    "&zacute;": "\u017A",
    "&zcaron;": "\u017E",
    "&zcy;": "\u0437",
    "&zdot;": "\u017C",
    "&zeetrf;": "\u2128",
    "&zeta;": "\u03B6",
    "&zfr;": "\u{1D537}",
    "&zhcy;": "\u0436",
    "&zigrarr;": "\u21DD",
    "&zopf;": "\u{1D56B}",
    "&zscr;": "\u{1D4CF}",
    "&zwj;": "\u200D",
    "&zwnj;": "\u200C"
  };
  function yK(e) {
    return e.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi, (t, n) => {
      if (typeof Vy[t] == "string") return Vy[t];
      if (n.charAt(0) !== "#" || t.charAt(t.length - 1) !== ";") return t;
      let r;
      n.charAt(1) === "x" ? r = parseInt(n.substr(2), 16) : r = parseInt(n.substr(1), 10);
      var o = "";
      return r >= 55296 && r <= 57343 || r > 1114111 ? "\uFFFD" : (r > 65535 && (r -= 65536, o += String.fromCharCode(r >>> 10 & 1023 | 55296), r = 56320 | r & 1023), o += String.fromCharCode(r), o);
    });
  }
  function da(e) {
    return e.trim().replace(/[<>"'?&]/g, (t) => {
      let n = t.charCodeAt(0).toString(16);
      return n.length < 2 && (n = "0" + n), "&#x" + n.toUpperCase() + ";";
    });
  }
  function xK(e) {
    return "<div>" + da(e).replace(/\n/g, "<br />") + "</div>";
  }
  function wK(e) {
    return e = e.replace(/\r?\n/g, "").replace(/<\!\-\-.*?\-\->/gi, " ").replace(/<br\b[^>]*>/gi, `
`).replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi, `

`).replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi, " ").replace(/^.*<body\b[^>]*>/i, "").replace(/^.*<\/head\b[^>]*>/i, "").replace(/^.*<\!doctype\b[^>]*>/i, "").replace(/<\/body\b[^>]*>.*$/i, "").replace(/<\/html\b[^>]*>.*$/i, "").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi, " ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi, "").replace(/<li\b[^>]*>[\n\u0001\s]*/gi, "* ").replace(/<hr\b[^>]*>/g, `
-------------
`).replace(/<[^>]*>/g, " ").replace(/\u0001/g, `
`).replace(/[ \t]+/g, " ").replace(/^\s+$/gm, "").replace(/\n\n+/g, `

`).replace(/^\n+/, `
`).replace(/\n+$/, `
`), e = yK(e), e;
  }
  function X_(e) {
    return [].concat(e.name || []).concat(e.name ? `<${e.address}>` : e.address).join(" ");
  }
  function Xf(e) {
    let t = [], n = (r, o) => {
      if (o && t.push(", "), r.group) {
        let i = `${r.name}:`, a = ";";
        t.push(i), r.group.forEach(n), t.push(a);
      } else t.push(X_(r));
    };
    return e.forEach(n), t.join("");
  }
  function J_(e) {
    return `<a href="mailto:${da(e.address)}" class="postal-email-address">${da(e.name || `<${e.address}>`)}</a>`;
  }
  function Jf(e) {
    let t = [], n = (r, o) => {
      if (o && t.push('<span class="postal-email-address-separator">, </span>'), r.group) {
        let i = `<span class="postal-email-address-group">${da(r.name)}:</span>`, a = '<span class="postal-email-address-group">;</span>';
        t.push(i), r.group.forEach(n), t.push(a);
      } else t.push(J_(r));
    };
    return e.forEach(n), t.join(" ");
  }
  function CK(e, t, n) {
    e = (e || "").toString(), t = t || 76;
    let r = 0, o = e.length, i = "", a, l;
    for (; r < o; ) {
      if (a = e.substr(r, t), a.length < t) {
        i += a;
        break;
      }
      if (l = a.match(/^[^\n\r]*(\r?\n|\r)/)) {
        a = l[0], i += a, r += a.length;
        continue;
      } else (l = a.match(/(\s+)[^\s]*$/)) && l[0].length - (l[1] || "").length < a.length ? a = a.substr(0, a.length - (l[0].length - (l[1] || "").length)) : (l = e.substr(r + a.length).match(/^[^\s]+(\s*)/)) && (a = a + l[0].substr(0, l[0].length - 0));
      i += a, r += a.length, r < o && (i += `\r
`);
    }
    return i;
  }
  function qy(e) {
    let t = [];
    if (e.from && t.push({
      key: "From",
      val: X_(e.from)
    }), e.subject && t.push({
      key: "Subject",
      val: e.subject
    }), e.date) {
      let a = {
        year: "numeric",
        month: "numeric",
        day: "numeric",
        hour: "numeric",
        minute: "numeric",
        second: "numeric",
        hour12: false
      }, l = typeof Intl > "u" ? e.date : new Intl.DateTimeFormat("default", a).format(new Date(e.date));
      t.push({
        key: "Date",
        val: l
      });
    }
    e.to && e.to.length && t.push({
      key: "To",
      val: Xf(e.to)
    }), e.cc && e.cc.length && t.push({
      key: "Cc",
      val: Xf(e.cc)
    }), e.bcc && e.bcc.length && t.push({
      key: "Bcc",
      val: Xf(e.bcc)
    });
    let n = t.map((a) => a.key.length).reduce((a, l) => l > a ? l : a, 0);
    t = t.flatMap((a) => {
      let l = n - a.key.length, s = `${a.key}: ${" ".repeat(l)}`, c = `${" ".repeat(a.key.length + 1)} ${" ".repeat(l)}`;
      return CK(a.val, 80).split(/\r?\n/).map((d) => d.trim()).map((d, h) => `${h ? c : s}${d}`);
    });
    let r = t.map((a) => a.length).reduce((a, l) => l > a ? l : a, 0), o = "-".repeat(r);
    return `
${o}
${t.join(`
`)}
${o}
`;
  }
  function Gy(e) {
    let t = [];
    if (e.from && t.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${J_(e.from)}</div>`), e.subject && t.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${da(e.subject)}</div>`), e.date) {
      let r = {
        year: "numeric",
        month: "numeric",
        day: "numeric",
        hour: "numeric",
        minute: "numeric",
        second: "numeric",
        hour12: false
      }, o = typeof Intl > "u" ? e.date : new Intl.DateTimeFormat("default", r).format(new Date(e.date));
      t.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${da(e.date)}">${da(o)}</div>`);
    }
    return e.to && e.to.length && t.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${Jf(e.to)}</div>`), e.cc && e.cc.length && t.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${Jf(e.cc)}</div>`), e.bcc && e.bcc.length && t.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${Jf(e.bcc)}</div>`), `<div class="postal-email-header">${t.length ? '<div class="postal-email-header-row">' : ""}${t.join(`</div>
<div class="postal-email-header-row">`)}${t.length ? "</div>" : ""}</div>`;
  }
  function SK(e, t) {
    let n = false, r = "text", o, i = [], a = {
      address: [],
      comment: [],
      group: [],
      text: [],
      textWasQuoted: []
    }, l, s, c = false;
    for (l = 0, s = e.length; l < s; l++) {
      let u = e[l], d = l ? e[l - 1] : null;
      if (u.type === "operator") switch (u.value) {
        case "<":
          r = "address", c = false;
          break;
        case "(":
          r = "comment", c = false;
          break;
        case ":":
          r = "group", n = true, c = false;
          break;
        case '"':
          c = !c, r = "text";
          break;
        default:
          r = "text", c = false;
          break;
      }
      else u.value && (r === "address" && (u.value = u.value.replace(/^[^<]*<\s*/, "")), d && d.noBreak && a[r].length ? (a[r][a[r].length - 1] += u.value, r === "text" && c && (a.textWasQuoted[a.textWasQuoted.length - 1] = true)) : (a[r].push(u.value), r === "text" && a.textWasQuoted.push(c)));
    }
    if (!a.text.length && a.comment.length && (a.text = a.comment, a.comment = []), n) {
      a.text = a.text.join(" ");
      let u = [];
      a.group.length && ws(a.group.join(","), {
        _depth: t + 1
      }).forEach((h) => {
        h.group ? u = u.concat(h.group) : u.push(h);
      }), i.push({
        name: xs(a.text || o && o.name),
        group: u
      });
    } else {
      if (!a.address.length && a.text.length) {
        for (l = a.text.length - 1; l >= 0; l--) if (!a.textWasQuoted[l] && a.text[l].match(/^[^@\s]+@[^@\s]+$/)) {
          a.address = a.text.splice(l, 1), a.textWasQuoted.splice(l, 1);
          break;
        }
        let u = function(d) {
          return a.address.length ? d : (a.address = [
            d.trim()
          ], " ");
        };
        if (!a.address.length) for (l = a.text.length - 1; l >= 0 && !(!a.textWasQuoted[l] && (a.text[l] = a.text[l].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/, u).trim(), a.address.length)); l--) ;
      }
      if (!a.text.length && a.comment.length && (a.text = a.comment, a.comment = []), a.address.length > 1 && (a.text = a.text.concat(a.address.splice(1))), a.text = a.text.join(" "), a.address = a.address.join(" "), !a.address && /^=\?[^=]+?=$/.test(a.text.trim())) {
        const u = ws(xs(a.text));
        if (u && u.length) return u;
      }
      if (!a.address && n) return [];
      o = {
        address: a.address || a.text || "",
        name: xs(a.text || a.address || "")
      }, o.address === o.name && ((o.address || "").match(/@/) ? o.name = "" : o.address = ""), i.push(o);
    }
    return i;
  }
  class _K {
    constructor(t) {
      this.str = (t || "").toString(), this.operatorCurrent = "", this.operatorExpecting = "", this.node = null, this.escaped = false, this.list = [], this.operators = {
        '"': '"',
        "(": ")",
        "<": ">",
        ",": "",
        ":": ";",
        ";": ""
      };
    }
    tokenize() {
      let t = [];
      for (let n = 0, r = this.str.length; n < r; n++) {
        let o = this.str.charAt(n), i = n < r - 1 ? this.str.charAt(n + 1) : null;
        this.checkChar(o, i);
      }
      return this.list.forEach((n) => {
        n.value = (n.value || "").toString().trim(), n.value && t.push(n);
      }), t;
    }
    checkChar(t, n) {
      if (!this.escaped) {
        if (t === this.operatorExpecting) {
          this.node = {
            type: "operator",
            value: t
          }, n && ![
            " ",
            "	",
            "\r",
            `
`,
            ",",
            ";"
          ].includes(n) && (this.node.noBreak = true), this.list.push(this.node), this.node = null, this.operatorExpecting = "", this.escaped = false;
          return;
        } else if (!this.operatorExpecting && t in this.operators) {
          this.node = {
            type: "operator",
            value: t
          }, this.list.push(this.node), this.node = null, this.operatorExpecting = this.operators[t], this.escaped = false;
          return;
        } else if ([
          '"',
          "'"
        ].includes(this.operatorExpecting) && t === "\\") {
          this.escaped = true;
          return;
        }
      }
      this.node || (this.node = {
        type: "text",
        value: ""
      }, this.list.push(this.node)), t === `
` && (t = " "), (t.charCodeAt(0) >= 33 || [
        " ",
        "	"
      ].includes(t)) && (this.node.value += t), this.escaped = false;
    }
  }
  const kK = 50;
  function ws(e, t) {
    t = t || {};
    let n = t._depth || 0;
    if (n > kK) return [];
    let o = new _K(e).tokenize(), i = [], a = [], l = [];
    if (o.forEach((s) => {
      s.type === "operator" && (s.value === "," || s.value === ";") ? (a.length && i.push(a), a = []) : a.push(s);
    }), a.length && i.push(a), i.forEach((s) => {
      s = SK(s, n), s.length && (l = l.concat(s));
    }), t.flatten) {
      let s = [], c = (u) => {
        u.forEach((d) => {
          if (d.group) return c(d.group);
          s.push(d);
        });
      };
      return c(l), s;
    }
    return l;
  }
  function RK(e) {
    for (var t = "", n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = new Uint8Array(e), o = r.byteLength, i = o % 3, a = o - i, l, s, c, u, d, h = 0; h < a; h = h + 3) d = r[h] << 16 | r[h + 1] << 8 | r[h + 2], l = (d & 16515072) >> 18, s = (d & 258048) >> 12, c = (d & 4032) >> 6, u = d & 63, t += n[l] + n[s] + n[c] + n[u];
    return i == 1 ? (d = r[a], l = (d & 252) >> 2, s = (d & 3) << 4, t += n[l] + n[s] + "==") : i == 2 && (d = r[a] << 8 | r[a + 1], l = (d & 64512) >> 10, s = (d & 1008) >> 4, c = (d & 15) << 2, t += n[l] + n[s] + n[c] + "="), t;
  }
  const AK = 256, EK = 2 * 1024 * 1024;
  class Bu {
    static parse(t, n) {
      return new Bu(n).parse(t);
    }
    constructor(t) {
      this.options = t || {}, this.mimeOptions = {
        maxNestingDepth: this.options.maxNestingDepth || AK,
        maxHeadersSize: this.options.maxHeadersSize || EK
      }, this.root = this.currentNode = new Uy({
        postalMime: this,
        ...this.mimeOptions
      }), this.boundaries = [], this.textContent = {}, this.attachments = [], this.attachmentEncoding = (this.options.attachmentEncoding || "").toString().replace(/[-_\s]/g, "").trim().toLowerCase() || "arraybuffer", this.started = false;
    }
    async finalize() {
      await this.root.finalize();
    }
    async processLine(t, n) {
      let r = this.boundaries;
      if (r.length && t.length > 2 && t[0] === 45 && t[1] === 45) for (let o = r.length - 1; o >= 0; o--) {
        let i = r[o];
        if (t.length < i.value.length + 2) continue;
        let a = true;
        for (let u = 0; u < i.value.length; u++) if (t[u + 2] !== i.value[u]) {
          a = false;
          break;
        }
        if (!a) continue;
        let l = i.value.length + 2, s = false;
        t.length >= i.value.length + 4 && t[i.value.length + 2] === 45 && t[i.value.length + 3] === 45 && (s = true, l = i.value.length + 4);
        let c = true;
        for (let u = l; u < t.length; u++) if (t[u] !== 32 && t[u] !== 9) {
          c = false;
          break;
        }
        if (c) return s ? (await i.node.finalize(), this.currentNode = i.node.parentNode || this.root) : (await i.node.finalizeChildNodes(), this.currentNode = new Uy({
          postalMime: this,
          parentNode: i.node,
          parentMultipartType: i.node.contentType.multipart,
          ...this.mimeOptions
        })), n ? this.finalize() : void 0;
      }
      if (this.currentNode.feed(t), n) return this.finalize();
    }
    readLine() {
      let t = this.readPos, n = this.readPos, r = () => ({
        bytes: new Uint8Array(this.buf, t, n - t),
        done: this.readPos >= this.av.length
      });
      for (; this.readPos < this.av.length; ) {
        const o = this.av[this.readPos++];
        if (o !== 13 && o !== 10 && (n = this.readPos), o === 10) return r();
      }
      return r();
    }
    async processNodeTree() {
      let t = {}, n = /* @__PURE__ */ new Set(), r = this.textMap = /* @__PURE__ */ new Map(), o = this.forceRfc822Attachments(), i = async (a, l, s) => {
        var _a2, _b2, _c2, _d2, _e;
        if (l = l || false, s = s || false, a.contentType.multipart) a.contentType.multipart === "alternative" ? l = a : a.contentType.multipart === "related" && (s = a);
        else if (this.isInlineMessageRfc822(a) && !o) {
          const c = new Bu();
          a.subMessage = await c.parse(a.content), r.has(a) || r.set(a, {});
          let u = r.get(a);
          (a.subMessage.text || !a.subMessage.html) && (u.plain = u.plain || [], u.plain.push({
            type: "subMessage",
            value: a.subMessage
          }), n.add("plain")), a.subMessage.html && (u.html = u.html || [], u.html.push({
            type: "subMessage",
            value: a.subMessage
          }), n.add("html")), c.textMap && c.textMap.forEach((d, h) => {
            r.set(h, d);
          });
          for (let d of a.subMessage.attachments || []) this.attachments.push(d);
        } else if (this.isInlineTextNode(a)) {
          let c = a.contentType.parsed.value.substr(a.contentType.parsed.value.indexOf("/") + 1), u = l || a;
          r.has(u) || r.set(u, {});
          let d = r.get(u);
          d[c] = d[c] || [], d[c].push({
            type: "text",
            value: a.getTextContent()
          }), n.add(c);
        } else if (a.content) {
          const c = ((_c2 = (_b2 = (_a2 = a.contentDisposition) == null ? void 0 : _a2.parsed) == null ? void 0 : _b2.params) == null ? void 0 : _c2.filename) || a.contentType.parsed.params.name || null, u = {
            filename: c ? xs(c) : null,
            mimeType: a.contentType.parsed.value,
            disposition: ((_e = (_d2 = a.contentDisposition) == null ? void 0 : _d2.parsed) == null ? void 0 : _e.value) || null
          };
          switch (s && a.contentId && (u.related = true), a.contentDescription && (u.description = a.contentDescription), a.contentId && (u.contentId = a.contentId), a.contentType.parsed.value) {
            case "text/calendar":
            case "application/ics": {
              a.contentType.parsed.params.method && (u.method = a.contentType.parsed.params.method.toString().toUpperCase().trim());
              const d = a.getTextContent().replace(/\r?\n/g, `
`).replace(/\n*$/, `
`);
              u.content = xl.encode(d);
              break;
            }
            default:
              u.content = a.content;
          }
          this.attachments.push(u);
        }
        for (let c of a.childNodes) await i(c, l, s);
      };
      await i(this.root, false, []), r.forEach((a) => {
        n.forEach((l) => {
          if (t[l] || (t[l] = []), a[l]) a[l].forEach((s) => {
            switch (s.type) {
              case "text":
                t[l].push(s.value);
                break;
              case "subMessage":
                switch (l) {
                  case "html":
                    t[l].push(Gy(s.value));
                    break;
                  case "plain":
                    t[l].push(qy(s.value));
                    break;
                }
                break;
            }
          });
          else {
            let s;
            switch (l) {
              case "html":
                s = "plain";
                break;
              case "plain":
                s = "html";
                break;
            }
            (a[s] || []).forEach((c) => {
              switch (c.type) {
                case "text":
                  switch (l) {
                    case "html":
                      t[l].push(xK(c.value));
                      break;
                    case "plain":
                      t[l].push(wK(c.value));
                      break;
                  }
                  break;
                case "subMessage":
                  switch (l) {
                    case "html":
                      t[l].push(Gy(c.value));
                      break;
                    case "plain":
                      t[l].push(qy(c.value));
                      break;
                  }
                  break;
              }
            });
          }
        });
      }), Object.keys(t).forEach((a) => {
        t[a] = t[a].join(`
`);
      }), this.textContent = t;
    }
    isInlineTextNode(t) {
      var _a2, _b2, _c2;
      if (((_b2 = (_a2 = t.contentDisposition) == null ? void 0 : _a2.parsed) == null ? void 0 : _b2.value) === "attachment") return false;
      switch ((_c2 = t.contentType.parsed) == null ? void 0 : _c2.value) {
        case "text/html":
        case "text/plain":
          return true;
        default:
          return false;
      }
    }
    isInlineMessageRfc822(t) {
      var _a2, _b2, _c2;
      return ((_a2 = t.contentType.parsed) == null ? void 0 : _a2.value) !== "message/rfc822" ? false : (((_c2 = (_b2 = t.contentDisposition) == null ? void 0 : _b2.parsed) == null ? void 0 : _c2.value) || (this.options.rfc822Attachments ? "attachment" : "inline")) === "inline";
    }
    forceRfc822Attachments() {
      if (this.options.forceRfc822Attachments) return true;
      let t = false, n = (r) => {
        r.contentType.multipart || r.contentType.parsed && [
          "message/delivery-status",
          "message/feedback-report"
        ].includes(r.contentType.parsed.value) && (t = true);
        for (let o of r.childNodes) n(o);
      };
      return n(this.root), t;
    }
    async resolveStream(t) {
      let n = 0, r = [];
      const o = t.getReader();
      for (; ; ) {
        const { done: l, value: s } = await o.read();
        if (l) break;
        r.push(s), n += s.length;
      }
      const i = new Uint8Array(n);
      let a = 0;
      for (let l of r) i.set(l, a), a += l.length;
      return i;
    }
    async parse(t) {
      var _a2, _b2;
      if (this.started) throw new Error("Can not reuse parser, create a new PostalMime object");
      for (this.started = true, t && typeof t.getReader == "function" && (t = await this.resolveStream(t)), t = t || new ArrayBuffer(0), typeof t == "string" && (t = xl.encode(t)), (t instanceof Blob || Object.prototype.toString.call(t) === "[object Blob]") && (t = await Fd(t)), t.buffer instanceof ArrayBuffer && (t = new Uint8Array(t).buffer), this.buf = t, this.av = new Uint8Array(t), this.readPos = 0; this.readPos < this.av.length; ) {
        const o = this.readLine();
        await this.processLine(o.bytes, o.done);
      }
      await this.processNodeTree();
      const n = {
        headers: this.root.headers.map((o) => ({
          key: o.key,
          value: o.value
        })).reverse()
      };
      for (const o of [
        "from",
        "sender"
      ]) {
        const i = this.root.headers.find((a) => a.key === o);
        if (i && i.value) {
          const a = ws(i.value);
          a && a.length && (n[o] = a[0]);
        }
      }
      for (const o of [
        "delivered-to",
        "return-path"
      ]) {
        const i = this.root.headers.find((a) => a.key === o);
        if (i && i.value) {
          const a = ws(i.value);
          if (a && a.length && a[0].address) {
            const l = o.replace(/\-(.)/g, (s, c) => c.toUpperCase());
            n[l] = a[0].address;
          }
        }
      }
      for (const o of [
        "to",
        "cc",
        "bcc",
        "reply-to"
      ]) {
        const i = this.root.headers.filter((l) => l.key === o);
        let a = [];
        if (i.filter((l) => l && l.value).map((l) => ws(l.value)).forEach((l) => a = a.concat(l || [])), a && a.length) {
          const l = o.replace(/\-(.)/g, (s, c) => c.toUpperCase());
          n[l] = a;
        }
      }
      for (const o of [
        "subject",
        "message-id",
        "in-reply-to",
        "references"
      ]) {
        const i = this.root.headers.find((a) => a.key === o);
        if (i && i.value) {
          const a = o.replace(/\-(.)/g, (l, s) => s.toUpperCase());
          n[a] = xs(i.value);
        }
      }
      let r = this.root.headers.find((o) => o.key === "date");
      if (r) {
        let o = new Date(r.value);
        !o || o.toString() === "Invalid Date" ? o = r.value : o = o.toISOString(), n.date = o;
      }
      switch (((_a2 = this.textContent) == null ? void 0 : _a2.html) && (n.html = this.textContent.html), ((_b2 = this.textContent) == null ? void 0 : _b2.plain) && (n.text = this.textContent.plain), n.attachments = this.attachments, n.headerLines = (this.root.rawHeaderLines || []).slice().reverse(), this.attachmentEncoding) {
        case "arraybuffer":
          break;
        case "base64":
          for (let i of n.attachments || []) (i == null ? void 0 : i.content) && (i.content = RK(i.content), i.encoding = "base64");
          break;
        case "utf8":
          let o = new TextDecoder("utf8");
          for (let i of n.attachments || []) (i == null ? void 0 : i.content) && (i.content = o.decode(i.content), i.encoding = "utf8");
          break;
        default:
          throw new Error("Unknwon attachment encoding");
      }
      return n;
    }
  }
  function Ky(e) {
    const t = e === 0 ? 0 : Math.floor(Math.log(e) / Math.log(1024));
    return parseFloat((e / Math.pow(1024, t)).toFixed(2)) + " " + [
      "B",
      "KB",
      "MB",
      "GB",
      "TB"
    ][t];
  }
  Z_ = async function(e) {
    var _a2, _b2;
    e.originalSource = e.source;
    try {
      const { parse_message: t } = await yl(async () => {
        const { parse_message: r } = await import("./mail_parser_wasm-DCfoRg1W.js").then(async (m) => {
          await m.__tla;
          return m;
        });
        return {
          parse_message: r
        };
      }, []), n = t(e.raw);
      e.source = n.sender || e.source, e.subject = n.subject || "", e.message = n.body_html || n.text || "", e.text = n.text || "", e.attachments = ((_a2 = n.attachments) == null ? void 0 : _a2.map((r) => {
        var _a3;
        const o = new Blob([
          r.content
        ], {
          type: r.content_type || "application/octet-stream"
        }), i = URL.createObjectURL(o);
        return r.content_id && r.content_id.length > 0 && (e.message = e.message.replace(`cid:${r.content_id}`, i)), {
          id: r.content_id || Math.random().toString(36).substring(2, 15),
          filename: r.filename || r.content_id || "",
          size: Ky(((_a3 = r.content) == null ? void 0 : _a3.length) || 0),
          url: i,
          blob: o
        };
      })) || [];
    } catch (t) {
      console.log("Error parsing email with mail-parser-wasm"), console.error(t);
    }
    if (e.subject && e.subject.length > 0 && e.message && e.message.length > 0) return e;
    try {
      const t = await Bu.parse(e.raw);
      e.source = t.from.address || e.source, t.from.address && t.from.name && (e.source = `${t.from.name} <${t.from.address}>`), e.subject = t.subject || "No Subject", e.message = t.html || t.text || e.raw, e.text = t.text || "", e.attachments = ((_b2 = t.attachments) == null ? void 0 : _b2.map((n) => {
        var _a3;
        const r = new Blob([
          n.content
        ], {
          type: n.mimeType || "application/octet-stream"
        }), o = URL.createObjectURL(r);
        return n.contentId && n.contentId.length > 0 && (e.message = e.message.replace(`cid:${n.contentId}`, o)), {
          id: n.contentId || Math.random().toString(36).substring(2, 15),
          filename: n.filename || n.contentId || "",
          size: Ky(((_a3 = n.content) == null ? void 0 : _a3.length) || 0),
          url: o,
          blob: r
        };
      })) || [];
    } catch (t) {
      console.log("Error parsing email with PostalMime"), console.error(t), e.subject = "No Subject", e.message = e.raw;
    }
    return e;
  };
  function TK(e) {
    return URL.createObjectURL(new Blob([
      e
    ], {
      type: "text/plain"
    }));
  }
  const { entries: Q_, setPrototypeOf: Yy, isFrozen: PK, getPrototypeOf: DK, getOwnPropertyDescriptor: $K } = Object;
  let { freeze: dr, seal: Xr, create: su } = Object, { apply: _p, construct: kp } = typeof Reflect < "u" && Reflect;
  dr || (dr = function(t) {
    return t;
  });
  Xr || (Xr = function(t) {
    return t;
  });
  _p || (_p = function(t, n) {
    for (var r = arguments.length, o = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++) o[i - 2] = arguments[i];
    return t.apply(n, o);
  });
  kp || (kp = function(t) {
    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
    return new t(...r);
  });
  const Gc = fr(Array.prototype.forEach), zK = fr(Array.prototype.lastIndexOf), Xy = fr(Array.prototype.pop), Xl = fr(Array.prototype.push), OK = fr(Array.prototype.splice), cu = fr(String.prototype.toLowerCase), Zf = fr(String.prototype.toString), Qf = fr(String.prototype.match), Jl = fr(String.prototype.replace), IK = fr(String.prototype.indexOf), FK = fr(String.prototype.trim), _r = fr(Object.prototype.hasOwnProperty), or = fr(RegExp.prototype.test), Zl = MK(TypeError);
  function fr(e) {
    return function(t) {
      t instanceof RegExp && (t.lastIndex = 0);
      for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
      return _p(e, t, r);
    };
  }
  function MK(e) {
    return function() {
      for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
      return kp(e, n);
    };
  }
  function Tt(e, t) {
    let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : cu;
    Yy && Yy(e, null);
    let r = t.length;
    for (; r--; ) {
      let o = t[r];
      if (typeof o == "string") {
        const i = n(o);
        i !== o && (PK(t) || (t[r] = i), o = i);
      }
      e[o] = true;
    }
    return e;
  }
  function LK(e) {
    for (let t = 0; t < e.length; t++) _r(e, t) || (e[t] = null);
    return e;
  }
  function So(e) {
    const t = su(null);
    for (const [n, r] of Q_(e)) _r(e, n) && (Array.isArray(r) ? t[n] = LK(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = So(r) : t[n] = r);
    return t;
  }
  function Ql(e, t) {
    for (; e !== null; ) {
      const r = $K(e, t);
      if (r) {
        if (r.get) return fr(r.get);
        if (typeof r.value == "function") return fr(r.value);
      }
      e = DK(e);
    }
    function n() {
      return null;
    }
    return n;
  }
  const Jy = dr([
    "a",
    "abbr",
    "acronym",
    "address",
    "area",
    "article",
    "aside",
    "audio",
    "b",
    "bdi",
    "bdo",
    "big",
    "blink",
    "blockquote",
    "body",
    "br",
    "button",
    "canvas",
    "caption",
    "center",
    "cite",
    "code",
    "col",
    "colgroup",
    "content",
    "data",
    "datalist",
    "dd",
    "decorator",
    "del",
    "details",
    "dfn",
    "dialog",
    "dir",
    "div",
    "dl",
    "dt",
    "element",
    "em",
    "fieldset",
    "figcaption",
    "figure",
    "font",
    "footer",
    "form",
    "h1",
    "h2",
    "h3",
    "h4",
    "h5",
    "h6",
    "head",
    "header",
    "hgroup",
    "hr",
    "html",
    "i",
    "img",
    "input",
    "ins",
    "kbd",
    "label",
    "legend",
    "li",
    "main",
    "map",
    "mark",
    "marquee",
    "menu",
    "menuitem",
    "meter",
    "nav",
    "nobr",
    "ol",
    "optgroup",
    "option",
    "output",
    "p",
    "picture",
    "pre",
    "progress",
    "q",
    "rp",
    "rt",
    "ruby",
    "s",
    "samp",
    "search",
    "section",
    "select",
    "shadow",
    "slot",
    "small",
    "source",
    "spacer",
    "span",
    "strike",
    "strong",
    "style",
    "sub",
    "summary",
    "sup",
    "table",
    "tbody",
    "td",
    "template",
    "textarea",
    "tfoot",
    "th",
    "thead",
    "time",
    "tr",
    "track",
    "tt",
    "u",
    "ul",
    "var",
    "video",
    "wbr"
  ]), eh = dr([
    "svg",
    "a",
    "altglyph",
    "altglyphdef",
    "altglyphitem",
    "animatecolor",
    "animatemotion",
    "animatetransform",
    "circle",
    "clippath",
    "defs",
    "desc",
    "ellipse",
    "enterkeyhint",
    "exportparts",
    "filter",
    "font",
    "g",
    "glyph",
    "glyphref",
    "hkern",
    "image",
    "inputmode",
    "line",
    "lineargradient",
    "marker",
    "mask",
    "metadata",
    "mpath",
    "part",
    "path",
    "pattern",
    "polygon",
    "polyline",
    "radialgradient",
    "rect",
    "stop",
    "style",
    "switch",
    "symbol",
    "text",
    "textpath",
    "title",
    "tref",
    "tspan",
    "view",
    "vkern"
  ]), th = dr([
    "feBlend",
    "feColorMatrix",
    "feComponentTransfer",
    "feComposite",
    "feConvolveMatrix",
    "feDiffuseLighting",
    "feDisplacementMap",
    "feDistantLight",
    "feDropShadow",
    "feFlood",
    "feFuncA",
    "feFuncB",
    "feFuncG",
    "feFuncR",
    "feGaussianBlur",
    "feImage",
    "feMerge",
    "feMergeNode",
    "feMorphology",
    "feOffset",
    "fePointLight",
    "feSpecularLighting",
    "feSpotLight",
    "feTile",
    "feTurbulence"
  ]), BK = dr([
    "animate",
    "color-profile",
    "cursor",
    "discard",
    "font-face",
    "font-face-format",
    "font-face-name",
    "font-face-src",
    "font-face-uri",
    "foreignobject",
    "hatch",
    "hatchpath",
    "mesh",
    "meshgradient",
    "meshpatch",
    "meshrow",
    "missing-glyph",
    "script",
    "set",
    "solidcolor",
    "unknown",
    "use"
  ]), nh = dr([
    "math",
    "menclose",
    "merror",
    "mfenced",
    "mfrac",
    "mglyph",
    "mi",
    "mlabeledtr",
    "mmultiscripts",
    "mn",
    "mo",
    "mover",
    "mpadded",
    "mphantom",
    "mroot",
    "mrow",
    "ms",
    "mspace",
    "msqrt",
    "mstyle",
    "msub",
    "msup",
    "msubsup",
    "mtable",
    "mtd",
    "mtext",
    "mtr",
    "munder",
    "munderover",
    "mprescripts"
  ]), NK = dr([
    "maction",
    "maligngroup",
    "malignmark",
    "mlongdiv",
    "mscarries",
    "mscarry",
    "msgroup",
    "mstack",
    "msline",
    "msrow",
    "semantics",
    "annotation",
    "annotation-xml",
    "mprescripts",
    "none"
  ]), Zy = dr([
    "#text"
  ]), Qy = dr([
    "accept",
    "action",
    "align",
    "alt",
    "autocapitalize",
    "autocomplete",
    "autopictureinpicture",
    "autoplay",
    "background",
    "bgcolor",
    "border",
    "capture",
    "cellpadding",
    "cellspacing",
    "checked",
    "cite",
    "class",
    "clear",
    "color",
    "cols",
    "colspan",
    "controls",
    "controlslist",
    "coords",
    "crossorigin",
    "datetime",
    "decoding",
    "default",
    "dir",
    "disabled",
    "disablepictureinpicture",
    "disableremoteplayback",
    "download",
    "draggable",
    "enctype",
    "enterkeyhint",
    "exportparts",
    "face",
    "for",
    "headers",
    "height",
    "hidden",
    "high",
    "href",
    "hreflang",
    "id",
    "inert",
    "inputmode",
    "integrity",
    "ismap",
    "kind",
    "label",
    "lang",
    "list",
    "loading",
    "loop",
    "low",
    "max",
    "maxlength",
    "media",
    "method",
    "min",
    "minlength",
    "multiple",
    "muted",
    "name",
    "nonce",
    "noshade",
    "novalidate",
    "nowrap",
    "open",
    "optimum",
    "part",
    "pattern",
    "placeholder",
    "playsinline",
    "popover",
    "popovertarget",
    "popovertargetaction",
    "poster",
    "preload",
    "pubdate",
    "radiogroup",
    "readonly",
    "rel",
    "required",
    "rev",
    "reversed",
    "role",
    "rows",
    "rowspan",
    "spellcheck",
    "scope",
    "selected",
    "shape",
    "size",
    "sizes",
    "slot",
    "span",
    "srclang",
    "start",
    "src",
    "srcset",
    "step",
    "style",
    "summary",
    "tabindex",
    "title",
    "translate",
    "type",
    "usemap",
    "valign",
    "value",
    "width",
    "wrap",
    "xmlns",
    "slot"
  ]), rh = dr([
    "accent-height",
    "accumulate",
    "additive",
    "alignment-baseline",
    "amplitude",
    "ascent",
    "attributename",
    "attributetype",
    "azimuth",
    "basefrequency",
    "baseline-shift",
    "begin",
    "bias",
    "by",
    "class",
    "clip",
    "clippathunits",
    "clip-path",
    "clip-rule",
    "color",
    "color-interpolation",
    "color-interpolation-filters",
    "color-profile",
    "color-rendering",
    "cx",
    "cy",
    "d",
    "dx",
    "dy",
    "diffuseconstant",
    "direction",
    "display",
    "divisor",
    "dur",
    "edgemode",
    "elevation",
    "end",
    "exponent",
    "fill",
    "fill-opacity",
    "fill-rule",
    "filter",
    "filterunits",
    "flood-color",
    "flood-opacity",
    "font-family",
    "font-size",
    "font-size-adjust",
    "font-stretch",
    "font-style",
    "font-variant",
    "font-weight",
    "fx",
    "fy",
    "g1",
    "g2",
    "glyph-name",
    "glyphref",
    "gradientunits",
    "gradienttransform",
    "height",
    "href",
    "id",
    "image-rendering",
    "in",
    "in2",
    "intercept",
    "k",
    "k1",
    "k2",
    "k3",
    "k4",
    "kerning",
    "keypoints",
    "keysplines",
    "keytimes",
    "lang",
    "lengthadjust",
    "letter-spacing",
    "kernelmatrix",
    "kernelunitlength",
    "lighting-color",
    "local",
    "marker-end",
    "marker-mid",
    "marker-start",
    "markerheight",
    "markerunits",
    "markerwidth",
    "maskcontentunits",
    "maskunits",
    "max",
    "mask",
    "mask-type",
    "media",
    "method",
    "mode",
    "min",
    "name",
    "numoctaves",
    "offset",
    "operator",
    "opacity",
    "order",
    "orient",
    "orientation",
    "origin",
    "overflow",
    "paint-order",
    "path",
    "pathlength",
    "patterncontentunits",
    "patterntransform",
    "patternunits",
    "points",
    "preservealpha",
    "preserveaspectratio",
    "primitiveunits",
    "r",
    "rx",
    "ry",
    "radius",
    "refx",
    "refy",
    "repeatcount",
    "repeatdur",
    "restart",
    "result",
    "rotate",
    "scale",
    "seed",
    "shape-rendering",
    "slope",
    "specularconstant",
    "specularexponent",
    "spreadmethod",
    "startoffset",
    "stddeviation",
    "stitchtiles",
    "stop-color",
    "stop-opacity",
    "stroke-dasharray",
    "stroke-dashoffset",
    "stroke-linecap",
    "stroke-linejoin",
    "stroke-miterlimit",
    "stroke-opacity",
    "stroke",
    "stroke-width",
    "style",
    "surfacescale",
    "systemlanguage",
    "tabindex",
    "tablevalues",
    "targetx",
    "targety",
    "transform",
    "transform-origin",
    "text-anchor",
    "text-decoration",
    "text-rendering",
    "textlength",
    "type",
    "u1",
    "u2",
    "unicode",
    "values",
    "viewbox",
    "visibility",
    "version",
    "vert-adv-y",
    "vert-origin-x",
    "vert-origin-y",
    "width",
    "word-spacing",
    "wrap",
    "writing-mode",
    "xchannelselector",
    "ychannelselector",
    "x",
    "x1",
    "x2",
    "xmlns",
    "y",
    "y1",
    "y2",
    "z",
    "zoomandpan"
  ]), e1 = dr([
    "accent",
    "accentunder",
    "align",
    "bevelled",
    "close",
    "columnsalign",
    "columnlines",
    "columnspan",
    "denomalign",
    "depth",
    "dir",
    "display",
    "displaystyle",
    "encoding",
    "fence",
    "frame",
    "height",
    "href",
    "id",
    "largeop",
    "length",
    "linethickness",
    "lspace",
    "lquote",
    "mathbackground",
    "mathcolor",
    "mathsize",
    "mathvariant",
    "maxsize",
    "minsize",
    "movablelimits",
    "notation",
    "numalign",
    "open",
    "rowalign",
    "rowlines",
    "rowspacing",
    "rowspan",
    "rspace",
    "rquote",
    "scriptlevel",
    "scriptminsize",
    "scriptsizemultiplier",
    "selection",
    "separator",
    "separators",
    "stretchy",
    "subscriptshift",
    "supscriptshift",
    "symmetric",
    "voffset",
    "width",
    "xmlns"
  ]), Kc = dr([
    "xlink:href",
    "xml:id",
    "xlink:title",
    "xml:space",
    "xmlns:xlink"
  ]), HK = Xr(/\{\{[\w\W]*|[\w\W]*\}\}/gm), jK = Xr(/<%[\w\W]*|[\w\W]*%>/gm), WK = Xr(/\$\{[\w\W]*/gm), UK = Xr(/^data-[\-\w.\u00B7-\uFFFF]+$/), VK = Xr(/^aria-[\-\w]+$/), ek = Xr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), qK = Xr(/^(?:\w+script|data):/i), GK = Xr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), tk = Xr(/^html$/i), KK = Xr(/^[a-z][.\w]*(-[.\w]+)+$/i);
  var t1 = Object.freeze({
    __proto__: null,
    ARIA_ATTR: VK,
    ATTR_WHITESPACE: GK,
    CUSTOM_ELEMENT: KK,
    DATA_ATTR: UK,
    DOCTYPE_NAME: tk,
    ERB_EXPR: jK,
    IS_ALLOWED_URI: ek,
    IS_SCRIPT_OR_DATA: qK,
    MUSTACHE_EXPR: HK,
    TMPLIT_EXPR: WK
  });
  const es = {
    element: 1,
    text: 3,
    progressingInstruction: 7,
    comment: 8,
    document: 9
  }, YK = function() {
    return typeof window > "u" ? null : window;
  }, XK = function(t, n) {
    if (typeof t != "object" || typeof t.createPolicy != "function") return null;
    let r = null;
    const o = "data-tt-policy-suffix";
    n && n.hasAttribute(o) && (r = n.getAttribute(o));
    const i = "dompurify" + (r ? "#" + r : "");
    try {
      return t.createPolicy(i, {
        createHTML(a) {
          return a;
        },
        createScriptURL(a) {
          return a;
        }
      });
    } catch {
      return console.warn("TrustedTypes policy " + i + " could not be created."), null;
    }
  }, n1 = function() {
    return {
      afterSanitizeAttributes: [],
      afterSanitizeElements: [],
      afterSanitizeShadowDOM: [],
      beforeSanitizeAttributes: [],
      beforeSanitizeElements: [],
      beforeSanitizeShadowDOM: [],
      uponSanitizeAttribute: [],
      uponSanitizeElement: [],
      uponSanitizeShadowNode: []
    };
  };
  function nk() {
    let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : YK();
    const t = (st) => nk(st);
    if (t.version = "3.3.2", t.removed = [], !e || !e.document || e.document.nodeType !== es.document || !e.Element) return t.isSupported = false, t;
    let { document: n } = e;
    const r = n, o = r.currentScript, { DocumentFragment: i, HTMLTemplateElement: a, Node: l, Element: s, NodeFilter: c, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: h, trustedTypes: p } = e, f = s.prototype, m = Ql(f, "cloneNode"), b = Ql(f, "remove"), v = Ql(f, "nextSibling"), y = Ql(f, "childNodes"), w = Ql(f, "parentNode");
    if (typeof a == "function") {
      const st = n.createElement("template");
      st.content && st.content.ownerDocument && (n = st.content.ownerDocument);
    }
    let x, S = "";
    const { implementation: _, createNodeIterator: C, createDocumentFragment: k, getElementsByTagName: R } = n, { importNode: P } = r;
    let B = n1();
    t.isSupported = typeof Q_ == "function" && typeof w == "function" && _ && _.createHTMLDocument !== void 0;
    const { MUSTACHE_EXPR: E, ERB_EXPR: M, TMPLIT_EXPR: z, DATA_ATTR: U, ARIA_ATTR: ee, IS_SCRIPT_OR_DATA: ne, ATTR_WHITESPACE: ae, CUSTOM_ELEMENT: ye } = t1;
    let { IS_ALLOWED_URI: xe } = t1, re = null;
    const Y = Tt({}, [
      ...Jy,
      ...eh,
      ...th,
      ...nh,
      ...Zy
    ]);
    let H = null;
    const oe = Tt({}, [
      ...Qy,
      ...rh,
      ...e1,
      ...Kc
    ]);
    let ce = Object.seal(su(null, {
      tagNameCheck: {
        writable: true,
        configurable: false,
        enumerable: true,
        value: null
      },
      attributeNameCheck: {
        writable: true,
        configurable: false,
        enumerable: true,
        value: null
      },
      allowCustomizedBuiltInElements: {
        writable: true,
        configurable: false,
        enumerable: true,
        value: false
      }
    })), be = null, ie = null;
    const fe = Object.seal(su(null, {
      tagCheck: {
        writable: true,
        configurable: false,
        enumerable: true,
        value: null
      },
      attributeCheck: {
        writable: true,
        configurable: false,
        enumerable: true,
        value: null
      }
    }));
    let F = true, se = true, ze = false, q = true, J = false, le = true, we = false, ke = false, _e = false, K = false, N = false, j = false, X = true, ge = false;
    const te = "user-content-";
    let I = true, Z = false, Ce = {}, De = null;
    const qe = Tt({}, [
      "annotation-xml",
      "audio",
      "colgroup",
      "desc",
      "foreignobject",
      "head",
      "iframe",
      "math",
      "mi",
      "mn",
      "mo",
      "ms",
      "mtext",
      "noembed",
      "noframes",
      "noscript",
      "plaintext",
      "script",
      "style",
      "svg",
      "template",
      "thead",
      "title",
      "video",
      "xmp"
    ]);
    let ut = null;
    const Ze = Tt({}, [
      "audio",
      "video",
      "img",
      "source",
      "image",
      "track"
    ]);
    let rt = null;
    const Ne = Tt({}, [
      "alt",
      "class",
      "for",
      "id",
      "label",
      "name",
      "pattern",
      "placeholder",
      "role",
      "summary",
      "title",
      "value",
      "style",
      "xmlns"
    ]), bt = "http://www.w3.org/1998/Math/MathML", We = "http://www.w3.org/2000/svg", Ge = "http://www.w3.org/1999/xhtml";
    let Q = Ge, me = false, Ee = null;
    const He = Tt({}, [
      bt,
      We,
      Ge
    ], Zf);
    let Ve = Tt({}, [
      "mi",
      "mo",
      "mn",
      "ms",
      "mtext"
    ]), Ke = Tt({}, [
      "annotation-xml"
    ]);
    const Xe = Tt({}, [
      "title",
      "style",
      "font",
      "a",
      "script"
    ]);
    let Qe = null;
    const _t = [
      "application/xhtml+xml",
      "text/html"
    ], Mt = "text/html";
    let ct = null, on = null;
    const Dn = n.createElement("form"), Sn = function(ue) {
      return ue instanceof RegExp || ue instanceof Function;
    }, _n = function() {
      let ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      if (!(on && on === ue)) {
        if ((!ue || typeof ue != "object") && (ue = {}), ue = So(ue), Qe = _t.indexOf(ue.PARSER_MEDIA_TYPE) === -1 ? Mt : ue.PARSER_MEDIA_TYPE, ct = Qe === "application/xhtml+xml" ? Zf : cu, re = _r(ue, "ALLOWED_TAGS") ? Tt({}, ue.ALLOWED_TAGS, ct) : Y, H = _r(ue, "ALLOWED_ATTR") ? Tt({}, ue.ALLOWED_ATTR, ct) : oe, Ee = _r(ue, "ALLOWED_NAMESPACES") ? Tt({}, ue.ALLOWED_NAMESPACES, Zf) : He, rt = _r(ue, "ADD_URI_SAFE_ATTR") ? Tt(So(Ne), ue.ADD_URI_SAFE_ATTR, ct) : Ne, ut = _r(ue, "ADD_DATA_URI_TAGS") ? Tt(So(Ze), ue.ADD_DATA_URI_TAGS, ct) : Ze, De = _r(ue, "FORBID_CONTENTS") ? Tt({}, ue.FORBID_CONTENTS, ct) : qe, be = _r(ue, "FORBID_TAGS") ? Tt({}, ue.FORBID_TAGS, ct) : So({}), ie = _r(ue, "FORBID_ATTR") ? Tt({}, ue.FORBID_ATTR, ct) : So({}), Ce = _r(ue, "USE_PROFILES") ? ue.USE_PROFILES : false, F = ue.ALLOW_ARIA_ATTR !== false, se = ue.ALLOW_DATA_ATTR !== false, ze = ue.ALLOW_UNKNOWN_PROTOCOLS || false, q = ue.ALLOW_SELF_CLOSE_IN_ATTR !== false, J = ue.SAFE_FOR_TEMPLATES || false, le = ue.SAFE_FOR_XML !== false, we = ue.WHOLE_DOCUMENT || false, K = ue.RETURN_DOM || false, N = ue.RETURN_DOM_FRAGMENT || false, j = ue.RETURN_TRUSTED_TYPE || false, _e = ue.FORCE_BODY || false, X = ue.SANITIZE_DOM !== false, ge = ue.SANITIZE_NAMED_PROPS || false, I = ue.KEEP_CONTENT !== false, Z = ue.IN_PLACE || false, xe = ue.ALLOWED_URI_REGEXP || ek, Q = ue.NAMESPACE || Ge, Ve = ue.MATHML_TEXT_INTEGRATION_POINTS || Ve, Ke = ue.HTML_INTEGRATION_POINTS || Ke, ce = ue.CUSTOM_ELEMENT_HANDLING || {}, ue.CUSTOM_ELEMENT_HANDLING && Sn(ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ce.tagNameCheck = ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ue.CUSTOM_ELEMENT_HANDLING && Sn(ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ce.attributeNameCheck = ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ue.CUSTOM_ELEMENT_HANDLING && typeof ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ce.allowCustomizedBuiltInElements = ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), J && (se = false), N && (K = true), Ce && (re = Tt({}, Zy), H = su(null), Ce.html === true && (Tt(re, Jy), Tt(H, Qy)), Ce.svg === true && (Tt(re, eh), Tt(H, rh), Tt(H, Kc)), Ce.svgFilters === true && (Tt(re, th), Tt(H, rh), Tt(H, Kc)), Ce.mathMl === true && (Tt(re, nh), Tt(H, e1), Tt(H, Kc))), _r(ue, "ADD_TAGS") || (fe.tagCheck = null), _r(ue, "ADD_ATTR") || (fe.attributeCheck = null), ue.ADD_TAGS && (typeof ue.ADD_TAGS == "function" ? fe.tagCheck = ue.ADD_TAGS : (re === Y && (re = So(re)), Tt(re, ue.ADD_TAGS, ct))), ue.ADD_ATTR && (typeof ue.ADD_ATTR == "function" ? fe.attributeCheck = ue.ADD_ATTR : (H === oe && (H = So(H)), Tt(H, ue.ADD_ATTR, ct))), ue.ADD_URI_SAFE_ATTR && Tt(rt, ue.ADD_URI_SAFE_ATTR, ct), ue.FORBID_CONTENTS && (De === qe && (De = So(De)), Tt(De, ue.FORBID_CONTENTS, ct)), ue.ADD_FORBID_CONTENTS && (De === qe && (De = So(De)), Tt(De, ue.ADD_FORBID_CONTENTS, ct)), I && (re["#text"] = true), we && Tt(re, [
          "html",
          "head",
          "body"
        ]), re.table && (Tt(re, [
          "tbody"
        ]), delete be.tbody), ue.TRUSTED_TYPES_POLICY) {
          if (typeof ue.TRUSTED_TYPES_POLICY.createHTML != "function") throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
          if (typeof ue.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
          x = ue.TRUSTED_TYPES_POLICY, S = x.createHTML("");
        } else x === void 0 && (x = XK(p, o)), x !== null && typeof S == "string" && (S = x.createHTML(""));
        dr && dr(ue), on = ue;
      }
    }, $n = Tt({}, [
      ...eh,
      ...th,
      ...BK
    ]), Hn = Tt({}, [
      ...nh,
      ...NK
    ]), qn = function(ue) {
      let Le = w(ue);
      (!Le || !Le.tagName) && (Le = {
        namespaceURI: Q,
        tagName: "template"
      });
      const nt = cu(ue.tagName), Vt = cu(Le.tagName);
      return Ee[ue.namespaceURI] ? ue.namespaceURI === We ? Le.namespaceURI === Ge ? nt === "svg" : Le.namespaceURI === bt ? nt === "svg" && (Vt === "annotation-xml" || Ve[Vt]) : !!$n[nt] : ue.namespaceURI === bt ? Le.namespaceURI === Ge ? nt === "math" : Le.namespaceURI === We ? nt === "math" && Ke[Vt] : !!Hn[nt] : ue.namespaceURI === Ge ? Le.namespaceURI === We && !Ke[Vt] || Le.namespaceURI === bt && !Ve[Vt] ? false : !Hn[nt] && (Xe[nt] || !$n[nt]) : !!(Qe === "application/xhtml+xml" && Ee[ue.namespaceURI]) : false;
    }, he = function(ue) {
      Xl(t.removed, {
        element: ue
      });
      try {
        w(ue).removeChild(ue);
      } catch {
        b(ue);
      }
    }, Pe = function(ue, Le) {
      try {
        Xl(t.removed, {
          attribute: Le.getAttributeNode(ue),
          from: Le
        });
      } catch {
        Xl(t.removed, {
          attribute: null,
          from: Le
        });
      }
      if (Le.removeAttribute(ue), ue === "is") if (K || N) try {
        he(Le);
      } catch {
      }
      else try {
        Le.setAttribute(ue, "");
      } catch {
      }
    }, ot = function(ue) {
      let Le = null, nt = null;
      if (_e) ue = "<remove></remove>" + ue;
      else {
        const en = Qf(ue, /^[\r\n\t ]+/);
        nt = en && en[0];
      }
      Qe === "application/xhtml+xml" && Q === Ge && (ue = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + ue + "</body></html>");
      const Vt = x ? x.createHTML(ue) : ue;
      if (Q === Ge) try {
        Le = new h().parseFromString(Vt, Qe);
      } catch {
      }
      if (!Le || !Le.documentElement) {
        Le = _.createDocument(Q, "template", null);
        try {
          Le.documentElement.innerHTML = me ? S : Vt;
        } catch {
        }
      }
      const cn = Le.body || Le.documentElement;
      return ue && nt && cn.insertBefore(n.createTextNode(nt), cn.childNodes[0] || null), Q === Ge ? R.call(Le, we ? "html" : "body")[0] : we ? Le.documentElement : cn;
    }, St = function(ue) {
      return C.call(ue.ownerDocument || ue, ue, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
    }, It = function(ue) {
      return ue instanceof d && (typeof ue.nodeName != "string" || typeof ue.textContent != "string" || typeof ue.removeChild != "function" || !(ue.attributes instanceof u) || typeof ue.removeAttribute != "function" || typeof ue.setAttribute != "function" || typeof ue.namespaceURI != "string" || typeof ue.insertBefore != "function" || typeof ue.hasChildNodes != "function");
    }, Et = function(ue) {
      return typeof l == "function" && ue instanceof l;
    };
    function zt(st, ue, Le) {
      Gc(st, (nt) => {
        nt.call(t, ue, Le, on);
      });
    }
    const an = function(ue) {
      let Le = null;
      if (zt(B.beforeSanitizeElements, ue, null), It(ue)) return he(ue), true;
      const nt = ct(ue.nodeName);
      if (zt(B.uponSanitizeElement, ue, {
        tagName: nt,
        allowedTags: re
      }), le && ue.hasChildNodes() && !Et(ue.firstElementChild) && or(/<[/\w!]/g, ue.innerHTML) && or(/<[/\w!]/g, ue.textContent) || ue.nodeType === es.progressingInstruction || le && ue.nodeType === es.comment && or(/<[/\w]/g, ue.data)) return he(ue), true;
      if (!(fe.tagCheck instanceof Function && fe.tagCheck(nt)) && (!re[nt] || be[nt])) {
        if (!be[nt] && Mr(nt) && (ce.tagNameCheck instanceof RegExp && or(ce.tagNameCheck, nt) || ce.tagNameCheck instanceof Function && ce.tagNameCheck(nt))) return false;
        if (I && !De[nt]) {
          const Vt = w(ue) || ue.parentNode, cn = y(ue) || ue.childNodes;
          if (cn && Vt) {
            const en = cn.length;
            for (let Nn = en - 1; Nn >= 0; --Nn) {
              const Cr = m(cn[Nn], true);
              Cr.__removalCount = (ue.__removalCount || 0) + 1, Vt.insertBefore(Cr, v(ue));
            }
          }
        }
        return he(ue), true;
      }
      return ue instanceof s && !qn(ue) || (nt === "noscript" || nt === "noembed" || nt === "noframes") && or(/<\/no(script|embed|frames)/i, ue.innerHTML) ? (he(ue), true) : (J && ue.nodeType === es.text && (Le = ue.textContent, Gc([
        E,
        M,
        z
      ], (Vt) => {
        Le = Jl(Le, Vt, " ");
      }), ue.textContent !== Le && (Xl(t.removed, {
        element: ue.cloneNode()
      }), ue.textContent = Le)), zt(B.afterSanitizeElements, ue, null), false);
    }, Gn = function(ue, Le, nt) {
      if (ie[Le] || X && (Le === "id" || Le === "name") && (nt in n || nt in Dn)) return false;
      if (!(se && !ie[Le] && or(U, Le))) {
        if (!(F && or(ee, Le))) {
          if (!(fe.attributeCheck instanceof Function && fe.attributeCheck(Le, ue))) {
            if (!H[Le] || ie[Le]) {
              if (!(Mr(ue) && (ce.tagNameCheck instanceof RegExp && or(ce.tagNameCheck, ue) || ce.tagNameCheck instanceof Function && ce.tagNameCheck(ue)) && (ce.attributeNameCheck instanceof RegExp && or(ce.attributeNameCheck, Le) || ce.attributeNameCheck instanceof Function && ce.attributeNameCheck(Le, ue)) || Le === "is" && ce.allowCustomizedBuiltInElements && (ce.tagNameCheck instanceof RegExp && or(ce.tagNameCheck, nt) || ce.tagNameCheck instanceof Function && ce.tagNameCheck(nt)))) return false;
            } else if (!rt[Le]) {
              if (!or(xe, Jl(nt, ae, ""))) {
                if (!((Le === "src" || Le === "xlink:href" || Le === "href") && ue !== "script" && IK(nt, "data:") === 0 && ut[ue])) {
                  if (!(ze && !or(ne, Jl(nt, ae, "")))) {
                    if (nt) return false;
                  }
                }
              }
            }
          }
        }
      }
      return true;
    }, Mr = function(ue) {
      return ue !== "annotation-xml" && Qf(ue, ye);
    }, Lr = function(ue) {
      zt(B.beforeSanitizeAttributes, ue, null);
      const { attributes: Le } = ue;
      if (!Le || It(ue)) return;
      const nt = {
        attrName: "",
        attrValue: "",
        keepAttr: true,
        allowedAttributes: H,
        forceKeepAttr: void 0
      };
      let Vt = Le.length;
      for (; Vt--; ) {
        const cn = Le[Vt], { name: en, namespaceURI: Nn, value: Cr } = cn, mo = ct(en), Ni = Cr;
        let xn = en === "value" ? Ni : FK(Ni);
        if (nt.attrName = mo, nt.attrValue = xn, nt.keepAttr = true, nt.forceKeepAttr = void 0, zt(B.uponSanitizeAttribute, ue, nt), xn = nt.attrValue, ge && (mo === "id" || mo === "name") && (Pe(en, ue), xn = te + xn), le && or(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, xn)) {
          Pe(en, ue);
          continue;
        }
        if (mo === "attributename" && Qf(xn, "href")) {
          Pe(en, ue);
          continue;
        }
        if (nt.forceKeepAttr) continue;
        if (!nt.keepAttr) {
          Pe(en, ue);
          continue;
        }
        if (!q && or(/\/>/i, xn)) {
          Pe(en, ue);
          continue;
        }
        J && Gc([
          E,
          M,
          z
        ], (Oa) => {
          xn = Jl(xn, Oa, " ");
        });
        const za = ct(ue.nodeName);
        if (!Gn(za, mo, xn)) {
          Pe(en, ue);
          continue;
        }
        if (x && typeof p == "object" && typeof p.getAttributeType == "function" && !Nn) switch (p.getAttributeType(za, mo)) {
          case "TrustedHTML": {
            xn = x.createHTML(xn);
            break;
          }
          case "TrustedScriptURL": {
            xn = x.createScriptURL(xn);
            break;
          }
        }
        if (xn !== Ni) try {
          Nn ? ue.setAttributeNS(Nn, en, xn) : ue.setAttribute(en, xn), It(ue) ? he(ue) : Xy(t.removed);
        } catch {
          Pe(en, ue);
        }
      }
      zt(B.afterSanitizeAttributes, ue, null);
    }, Ho = function st(ue) {
      let Le = null;
      const nt = St(ue);
      for (zt(B.beforeSanitizeShadowDOM, ue, null); Le = nt.nextNode(); ) zt(B.uponSanitizeShadowNode, Le, null), an(Le), Lr(Le), Le.content instanceof i && st(Le.content);
      zt(B.afterSanitizeShadowDOM, ue, null);
    };
    return t.sanitize = function(st) {
      let ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Le = null, nt = null, Vt = null, cn = null;
      if (me = !st, me && (st = "<!-->"), typeof st != "string" && !Et(st)) if (typeof st.toString == "function") {
        if (st = st.toString(), typeof st != "string") throw Zl("dirty is not a string, aborting");
      } else throw Zl("toString is not a function");
      if (!t.isSupported) return st;
      if (ke || _n(ue), t.removed = [], typeof st == "string" && (Z = false), Z) {
        if (st.nodeName) {
          const Cr = ct(st.nodeName);
          if (!re[Cr] || be[Cr]) throw Zl("root node is forbidden and cannot be sanitized in-place");
        }
      } else if (st instanceof l) Le = ot("<!---->"), nt = Le.ownerDocument.importNode(st, true), nt.nodeType === es.element && nt.nodeName === "BODY" || nt.nodeName === "HTML" ? Le = nt : Le.appendChild(nt);
      else {
        if (!K && !J && !we && st.indexOf("<") === -1) return x && j ? x.createHTML(st) : st;
        if (Le = ot(st), !Le) return K ? null : j ? S : "";
      }
      Le && _e && he(Le.firstChild);
      const en = St(Z ? st : Le);
      for (; Vt = en.nextNode(); ) an(Vt), Lr(Vt), Vt.content instanceof i && Ho(Vt.content);
      if (Z) return st;
      if (K) {
        if (N) for (cn = k.call(Le.ownerDocument); Le.firstChild; ) cn.appendChild(Le.firstChild);
        else cn = Le;
        return (H.shadowroot || H.shadowrootmode) && (cn = P.call(r, cn, true)), cn;
      }
      let Nn = we ? Le.outerHTML : Le.innerHTML;
      return we && re["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && or(tk, Le.ownerDocument.doctype.name) && (Nn = "<!DOCTYPE " + Le.ownerDocument.doctype.name + `>
` + Nn), J && Gc([
        E,
        M,
        z
      ], (Cr) => {
        Nn = Jl(Nn, Cr, " ");
      }), x && j ? x.createHTML(Nn) : Nn;
    }, t.setConfig = function() {
      let st = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      _n(st), ke = true;
    }, t.clearConfig = function() {
      on = null, ke = false;
    }, t.isValidAttribute = function(st, ue, Le) {
      on || _n({});
      const nt = ct(st), Vt = ct(ue);
      return Gn(nt, Vt, Le);
    }, t.addHook = function(st, ue) {
      typeof ue == "function" && Xl(B[st], ue);
    }, t.removeHook = function(st, ue) {
      if (ue !== void 0) {
        const Le = zK(B[st], ue);
        return Le === -1 ? void 0 : OK(B[st], Le, 1)[0];
      }
      return Xy(B[st]);
    }, t.removeHooks = function(st) {
      B[st] = [];
    }, t.removeAllHooks = function() {
      B = n1();
    }, t;
  }
  var JK = nk();
  function ZK(e) {
    return String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
  }
  function rk(e) {
    return e.message ? JK.sanitize(e.message) : e.text ? ZK(e.text) : "";
  }
  function QK(e, t) {
    const n = /(.+?) <(.+?)>/;
    let r = e.originalSource || "", o = "";
    const i = n.exec(e.source);
    i && (o = i[1], r = i[2]);
    const a = rk(e);
    return {
      toName: o,
      toMail: r,
      subject: `${t}: ${e.subject}`,
      contentType: e.message ? "html" : "rich",
      content: a ? `<p><br></p><blockquote>${a}</blockquote><p><br></p>` : ""
    };
  }
  function eY(e, t) {
    return {
      subject: `${t}: ${e.subject}`,
      contentType: e.message ? "html" : "text",
      content: rk(e)
    };
  }
  let tY, r1, nY, rY, Rp, oY, iY, aY, lY, sY, cY, Ap, uY, dY, fY, hY, pY, mY, gY, vY, bY, yY, xY, wY, CY, SY, _Y, kY, RY, AY, EY, TY, PY, DY, $Y, zY, IY, FY, MY, LY, BY, NY, HY, ik, jY, WY, VY, qY, GY, YY, XY, JY, ZY, QY, tX, nX, rX, oX, iX, aX, lX, sX, cX, uX, dX, fX, hX, pX, mX, gX;
  tY = [
    "innerHTML"
  ];
  r1 = {
    __name: "ShadowHtmlComponent",
    props: {
      htmlContent: {
        type: String,
        required: true
      },
      isDark: {
        type: Boolean,
        default: false
      }
    },
    setup(e) {
      const t = e, n = L(null);
      let r = null;
      const o = L(false), i = () => {
        if (!(!n.value && !o.value)) try {
          if (o.value) return;
          if (!r && n.value) try {
            r = n.value.attachShadow({
              mode: "open"
            });
          } catch (a) {
            console.warn("Shadow DOM not supported, falling back to v-html:", a), o.value = true;
            return;
          }
          if (r) {
            const a = t.isDark ? `<style>
                    :host { color: #e0e0e0; }
                    a { color: #A8C7FA; }
                   </style>` : "";
            r.innerHTML = a + t.htmlContent;
          }
        } catch (a) {
          console.error("Failed to render Shadow DOM, falling back to v-html:", a), o.value = true;
        }
      };
      return gt(() => {
        if (typeof Element.prototype.attachShadow != "function") {
          console.warn("Shadow DOM is not supported in this browser, using v-html fallback"), o.value = true;
          return;
        }
        i();
      }), Zt(() => {
        r && (r.innerHTML = ""), r = null;
      }), lt(() => [
        t.htmlContent,
        t.isDark
      ], () => {
        i();
      }, {
        flush: "post"
      }), (a, l) => o.value ? (de(), Ie("div", {
        key: 0,
        innerHTML: e.htmlContent
      }, null, 8, tY)) : (de(), Ie("div", {
        key: 1,
        ref_key: "shadowHost",
        ref: n
      }, null, 512));
    }
  };
  nY = {
    key: 0,
    class: "ai-extract-info"
  };
  rY = {
    __name: "AiExtractInfo",
    props: {
      metadata: {
        type: String,
        default: null
      },
      compact: {
        type: Boolean,
        default: false
      }
    },
    setup(e) {
      const t = Pn(), { isDark: n } = Qt(), r = D(() => n.value ? {
        colorSuccess: "rgba(168, 199, 250, 0.15)",
        borderSuccess: "1px solid rgba(168, 199, 250, 0.3)",
        iconColorSuccess: "#A8C7FA",
        titleTextColorSuccess: "#A8C7FA"
      } : {}), o = D(() => n.value ? {
        colorSuccess: "rgba(168, 199, 250, 0.15)",
        borderSuccess: "1px solid rgba(168, 199, 250, 0.3)",
        textColorSuccess: "#A8C7FA"
      } : {}), { t: i } = Ht({
        messages: {
          en: {
            authCode: "Verification Code",
            authLink: "Authentication Link",
            serviceLink: "Service Link",
            subscriptionLink: "Subscription Link",
            otherLink: "Other Link",
            copySuccess: "Copied successfully",
            copyFailed: "Copy failed",
            open: "Open"
          },
          zh: {
            authCode: "\u9A8C\u8BC1\u7801",
            authLink: "\u8BA4\u8BC1\u94FE\u63A5",
            serviceLink: "\u670D\u52A1\u94FE\u63A5",
            subscriptionLink: "\u8BA2\u9605\u94FE\u63A5",
            otherLink: "\u5176\u4ED6\u94FE\u63A5",
            copySuccess: "\u590D\u5236\u6210\u529F",
            copyFailed: "\u590D\u5236\u5931\u8D25",
            open: "\u6253\u5F00"
          }
        }
      }), a = e, l = D(() => {
        if (!a.metadata) return null;
        try {
          return JSON.parse(a.metadata).ai_extract || null;
        } catch {
          return null;
        }
      }), s = D(() => l.value && {
        auth_code: i("authCode"),
        auth_link: i("authLink"),
        service_link: i("serviceLink"),
        subscription_link: i("subscriptionLink"),
        other_link: i("otherLink")
      }[l.value.type] || ""), c = D(() => l.value && {
        auth_code: Sj,
        auth_link: jc,
        service_link: jc,
        subscription_link: jc,
        other_link: jc
      }[l.value.type] || null), u = D(() => l.value && l.value.type !== "auth_code"), d = D(() => l.value ? l.value.type === "auth_code" ? l.value.result : l.value.result_text || l.value.result : ""), h = async () => {
        try {
          await navigator.clipboard.writeText(l.value.result), t.success(i("copySuccess"));
        } catch {
          t.error(i("copyFailed"));
        }
      }, p = () => {
        u.value && l.value.result && window.open(l.value.result, "_blank");
      };
      return (f, m) => {
        const b = kn, v = Km, y = ec, w = ht, x = Ta, S = Fi, _ = ki;
        return l.value && l.value.result ? (de(), Ie("div", nY, [
          e.compact ? (de(), Be(_, {
            key: 1,
            type: "success",
            onClick: h,
            style: {
              cursor: "pointer"
            },
            size: "small",
            "theme-overrides": o.value
          }, {
            icon: $(() => [
              T(b, {
                component: c.value
              }, null, 8, [
                "component"
              ])
            ]),
            default: $(() => [
              T(y, {
                style: {
                  "max-width": "150px"
                }
              }, {
                default: $(() => [
                  Ae(ve(s.value) + ": " + ve(d.value), 1)
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "theme-overrides"
          ])) : (de(), Be(S, {
            key: 0,
            type: "success",
            closable: "",
            "theme-overrides": r.value
          }, {
            icon: $(() => [
              T(b, {
                component: c.value
              }, null, 8, [
                "component"
              ])
            ]),
            header: $(() => [
              Ae(ve(s.value), 1)
            ]),
            default: $(() => [
              T(x, {
                align: "center"
              }, {
                default: $(() => [
                  l.value.type === "auth_code" ? (de(), Be(v, {
                    key: 0,
                    strong: "",
                    style: {
                      "font-size": "18px",
                      "font-family": "monospace"
                    }
                  }, {
                    default: $(() => [
                      Ae(ve(l.value.result), 1)
                    ]),
                    _: 1
                  })) : (de(), Be(y, {
                    key: 1,
                    style: {
                      "max-width": "400px"
                    }
                  }, {
                    default: $(() => [
                      Ae(ve(d.value), 1)
                    ]),
                    _: 1
                  })),
                  T(w, {
                    size: "small",
                    onClick: h,
                    tertiary: ""
                  }, {
                    icon: $(() => [
                      T(b, {
                        component: O(Aj)
                      }, null, 8, [
                        "component"
                      ])
                    ]),
                    _: 1
                  }),
                  u.value ? (de(), Be(w, {
                    key: 2,
                    size: "small",
                    onClick: p,
                    tertiary: "",
                    type: "primary"
                  }, {
                    default: $(() => [
                      Ae(ve(O(i)("open")), 1)
                    ]),
                    _: 1
                  })) : tt("", true)
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "theme-overrides"
          ]))
        ])) : tt("", true);
      };
    }
  };
  Rp = yn(rY, [
    [
      "__scopeId",
      "data-v-c2dbe356"
    ]
  ]);
  oY = {
    class: "mail-content-renderer"
  };
  iY = {
    key: 0,
    class: "mail-text"
  };
  aY = [
    "srcdoc"
  ];
  lY = {
    key: 0,
    class: "mail-text"
  };
  sY = [
    "srcdoc"
  ];
  cY = {
    __name: "MailContentRenderer",
    props: {
      mail: {
        type: Object,
        required: true
      },
      showEMailTo: {
        type: Boolean,
        default: true
      },
      enableUserDeleteEmail: {
        type: Boolean,
        default: false
      },
      showReply: {
        type: Boolean,
        default: false
      },
      showSaveS3: {
        type: Boolean,
        default: false
      },
      onDelete: {
        type: Function,
        default: () => {
        }
      },
      onReply: {
        type: Function,
        default: () => {
        }
      },
      onForward: {
        type: Function,
        default: () => {
        }
      },
      onSaveToS3: {
        type: Function,
        default: () => {
        }
      }
    },
    setup(e) {
      const { preferShowTextMail: t, useIframeShowMail: n, useUTCDate: r, isDark: o } = Qt(), { t: i } = Ht({
        messages: {
          en: {
            delete: "Delete",
            deleteMailTip: "Are you sure you want to delete mail?",
            attachments: "View Attachments",
            downloadMail: "Download Mail",
            reply: "Reply",
            forward: "Forward",
            showTextMail: "Show Text Mail",
            showHtmlMail: "Show HTML Mail",
            saveToS3: "Save to S3",
            size: "Size",
            fullscreen: "Fullscreen"
          },
          zh: {
            delete: "\u5220\u9664",
            deleteMailTip: "\u786E\u5B9A\u8981\u5220\u9664\u90AE\u4EF6\u5417?",
            attachments: "\u67E5\u770B\u9644\u4EF6",
            downloadMail: "\u4E0B\u8F7D\u90AE\u4EF6",
            reply: "\u56DE\u590D",
            forward: "\u8F6C\u53D1",
            showTextMail: "\u663E\u793A\u7EAF\u6587\u672C\u90AE\u4EF6",
            showHtmlMail: "\u663E\u793AHTML\u90AE\u4EF6",
            saveToS3: "\u4FDD\u5B58\u5230S3",
            size: "\u5927\u5C0F",
            fullscreen: "\u5168\u5C4F"
          }
        }
      }), a = e, l = L(t.value), s = L(false), c = L([]), u = L(false), d = L(false), h = () => {
        a.onDelete();
      }, p = () => {
        c.value = a.mail.attachments, s.value = true;
      }, f = () => {
        a.onReply();
      }, m = () => {
        a.onForward();
      }, b = async (v, y) => {
        u.value = true;
        try {
          await a.onSaveToS3(v, y);
        } finally {
          u.value = false;
        }
      };
      return (v, y) => {
        const w = ki, x = ht, S = so, _ = kn, C = Ta, k = Cd, R = wd, P = Gm, B = Hm, E = Nm, M = _d, z = No;
        return de(), Ie(wt, null, [
          Me("div", oY, [
            T(C, null, {
              default: $(() => [
                T(w, {
                  type: "info"
                }, {
                  default: $(() => [
                    Ae(" ID: " + ve(e.mail.id), 1)
                  ]),
                  _: 1
                }),
                T(w, {
                  type: "info"
                }, {
                  default: $(() => [
                    Ae(ve(O(ta)(e.mail.created_at, O(r).value)), 1)
                  ]),
                  _: 1
                }),
                T(w, {
                  type: "info"
                }, {
                  default: $(() => [
                    Ae(" FROM: " + ve(e.mail.source), 1)
                  ]),
                  _: 1
                }),
                e.showEMailTo ? (de(), Be(w, {
                  key: 0,
                  type: "info"
                }, {
                  default: $(() => [
                    Ae(" TO: " + ve(e.mail.address), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                e.enableUserDeleteEmail ? (de(), Be(S, {
                  key: 1,
                  onPositiveClick: h
                }, {
                  trigger: $(() => [
                    T(x, {
                      tertiary: "",
                      type: "error",
                      size: "small"
                    }, {
                      default: $(() => [
                        Ae(ve(O(i)("delete")), 1)
                      ]),
                      _: 1
                    })
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(i)("deleteMailTip")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                e.mail.attachments && e.mail.attachments.length > 0 ? (de(), Be(x, {
                  key: 2,
                  size: "small",
                  tertiary: "",
                  type: "info",
                  onClick: p
                }, {
                  default: $(() => [
                    Ae(ve(O(i)("attachments")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                T(x, {
                  tag: "a",
                  target: "_blank",
                  tertiary: "",
                  type: "info",
                  size: "small",
                  download: e.mail.id + ".eml",
                  href: O(TK)(e.mail.raw)
                }, {
                  icon: $(() => [
                    T(_, {
                      component: O(zu)
                    }, null, 8, [
                      "component"
                    ])
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(i)("downloadMail")), 1)
                  ]),
                  _: 1
                }, 8, [
                  "download",
                  "href"
                ]),
                e.showReply ? (de(), Be(x, {
                  key: 3,
                  size: "small",
                  tertiary: "",
                  type: "info",
                  onClick: f
                }, {
                  icon: $(() => [
                    T(_, {
                      component: O(tW)
                    }, null, 8, [
                      "component"
                    ])
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(i)("reply")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                e.showReply ? (de(), Be(x, {
                  key: 4,
                  size: "small",
                  tertiary: "",
                  type: "info",
                  onClick: m
                }, {
                  icon: $(() => [
                    T(_, {
                      component: O(Ij)
                    }, null, 8, [
                      "component"
                    ])
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(i)("forward")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                T(x, {
                  size: "small",
                  tertiary: "",
                  type: "info",
                  onClick: y[0] || (y[0] = (U) => l.value = !l.value)
                }, {
                  default: $(() => [
                    Ae(ve(l.value ? O(i)("showHtmlMail") : O(i)("showTextMail")), 1)
                  ]),
                  _: 1
                }),
                T(x, {
                  size: "small",
                  tertiary: "",
                  type: "info",
                  onClick: y[1] || (y[1] = (U) => d.value = true)
                }, {
                  icon: $(() => [
                    T(_, {
                      component: O(Bj)
                    }, null, 8, [
                      "component"
                    ])
                  ]),
                  default: $(() => [
                    Ae(" " + ve(O(i)("fullscreen")), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            T(Rp, {
              metadata: e.mail.metadata
            }, null, 8, [
              "metadata"
            ]),
            Me("div", {
              class: ti([
                "mail-content",
                {
                  "dark-mode": O(o)
                }
              ])
            }, [
              l.value ? (de(), Ie("pre", iY, ve(e.mail.text), 1)) : O(n) ? (de(), Ie("iframe", {
                key: 1,
                srcdoc: e.mail.message,
                class: "mail-iframe"
              }, null, 8, aY)) : (de(), Be(r1, {
                key: e.mail.id,
                htmlContent: e.mail.message,
                isDark: O(o),
                class: "mail-html"
              }, null, 8, [
                "htmlContent",
                "isDark"
              ]))
            ], 2)
          ]),
          T(R, {
            show: d.value,
            "onUpdate:show": y[2] || (y[2] = (U) => d.value = U),
            width: "100%",
            placement: "bottom",
            "trap-focus": false,
            "block-scroll": false,
            style: {
              height: "100vh"
            }
          }, {
            default: $(() => [
              T(k, {
                title: e.mail.subject,
                closable: ""
              }, {
                default: $(() => [
                  Me("div", {
                    class: ti([
                      "fullscreen-mail-content",
                      {
                        "dark-mode": O(o)
                      }
                    ])
                  }, [
                    l.value ? (de(), Ie("pre", lY, ve(e.mail.text), 1)) : O(n) ? (de(), Ie("iframe", {
                      key: 1,
                      srcdoc: e.mail.message,
                      class: "mail-iframe"
                    }, null, 8, sY)) : (de(), Be(r1, {
                      key: e.mail.id,
                      htmlContent: e.mail.message,
                      isDark: O(o),
                      class: "mail-html"
                    }, null, 8, [
                      "htmlContent",
                      "isDark"
                    ]))
                  ], 2)
                ]),
                _: 1
              }, 8, [
                "title"
              ])
            ]),
            _: 1
          }, 8, [
            "show"
          ]),
          T(z, {
            show: s.value,
            "onUpdate:show": y[4] || (y[4] = (U) => s.value = U),
            preset: "dialog",
            title: "Dialog"
          }, {
            header: $(() => [
              Me("div", null, ve(O(i)("attachments")), 1)
            ]),
            default: $(() => [
              T(M, {
                show: u.value,
                "onUpdate:show": y[3] || (y[3] = (U) => u.value = U)
              }, {
                default: $(() => [
                  T(E, {
                    hoverable: "",
                    clickable: ""
                  }, {
                    default: $(() => [
                      (de(true), Ie(wt, null, ol(c.value, (U) => (de(), Be(B, {
                        key: U.id
                      }, {
                        suffix: $(() => [
                          T(x, {
                            tag: "a",
                            target: "_blank",
                            tertiary: "",
                            type: "info",
                            size: "small",
                            download: U.filename,
                            href: U.url
                          }, {
                            default: $(() => [
                              T(_, {
                                component: O(zu)
                              }, null, 8, [
                                "component"
                              ])
                            ]),
                            _: 1
                          }, 8, [
                            "download",
                            "href"
                          ])
                        ]),
                        default: $(() => [
                          T(P, {
                            class: "center",
                            title: U.filename
                          }, {
                            description: $(() => [
                              T(C, null, {
                                default: $(() => [
                                  T(w, {
                                    type: "info"
                                  }, {
                                    default: $(() => [
                                      Ae(" Size: " + ve(U.size), 1)
                                    ]),
                                    _: 2
                                  }, 1024),
                                  e.showSaveS3 ? (de(), Be(x, {
                                    key: 0,
                                    onClick: (ee) => b(U.filename, U.blob),
                                    ghost: "",
                                    type: "info",
                                    size: "small"
                                  }, {
                                    default: $(() => [
                                      Ae(ve(O(i)("saveToS3")), 1)
                                    ]),
                                    _: 1
                                  }, 8, [
                                    "onClick"
                                  ])) : tt("", true)
                                ]),
                                _: 2
                              }, 1024)
                            ]),
                            _: 2
                          }, 1032, [
                            "title"
                          ])
                        ]),
                        _: 2
                      }, 1024))), 128))
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }, 8, [
                "show"
              ])
            ]),
            _: 1
          }, 8, [
            "show"
          ])
        ], 64);
      };
    }
  };
  Ap = yn(cY, [
    [
      "__scopeId",
      "data-v-d503cbff"
    ]
  ]);
  uY = {
    key: 0,
    class: "left"
  };
  dY = {
    style: {
      "margin-bottom": "10px"
    }
  };
  fY = {
    style: {
      overflow: "auto",
      "min-height": "60vh",
      "max-height": "100vh"
    }
  };
  hY = {
    key: 0,
    style: {
      margin: "8px"
    }
  };
  pY = {
    key: 1,
    class: "left"
  };
  mY = {
    key: 0,
    style: {
      padding: "0 10px",
      "margin-top": "8px",
      "margin-bottom": "10px"
    }
  };
  gY = {
    style: {
      overflow: "auto",
      "min-height": "60vh",
      "max-height": "100vh"
    }
  };
  vY = {
    style: {
      "text-align": "center"
    }
  };
  bY = {
    __name: "MailBox",
    props: {
      enableUserDeleteEmail: {
        type: Boolean,
        default: false,
        required: false
      },
      showEMailTo: {
        type: Boolean,
        default: true,
        required: false
      },
      fetchMailData: {
        type: Function,
        default: () => {
        },
        required: true
      },
      deleteMail: {
        type: Function,
        default: () => {
        },
        required: false
      },
      showReply: {
        type: Boolean,
        default: false,
        required: false
      },
      showSaveS3: {
        type: Boolean,
        default: false,
        required: false
      },
      saveToS3: {
        type: Function,
        default: (e, t, n) => {
        },
        required: false
      },
      showFilterInput: {
        type: Boolean,
        default: false,
        required: false
      }
    },
    setup(e) {
      const t = Pn(), n = Dl(), r = e, o = L(""), { isDark: i, mailboxSplitSize: a, indexTab: l, loading: s, useUTCDate: c, autoRefresh: u, configAutoRefreshInterval: d, sendMailModel: h } = Qt(), p = L(d.value), f = L([]), m = L(null), b = L(0), v = L(1), y = L(20), w = D(() => {
        if (!o.value || o.value.trim() === "") return f.value;
        const F = o.value.toLowerCase();
        return f.value.filter((se) => [
          se.subject || "",
          se.text || "",
          se.message || ""
        ].map((q) => q.toLowerCase()).some((q) => q.includes(F)));
      }), x = D(() => k.value ? w.value.findIndex((se) => se.id === k.value.id) > 0 || v.value > 1 : false), S = D(() => k.value ? w.value.findIndex((se) => se.id === k.value.id) < w.value.length - 1 || b.value > v.value * y.value : false), _ = async () => {
        if (!x.value) return;
        const F = w.value.findIndex((se) => se.id === k.value.id);
        F > 0 ? k.value = w.value[F - 1] : v.value > 1 && (v.value--, await ee(), w.value.length > 0 && (k.value = w.value[w.value.length - 1]));
      }, C = async () => {
        if (!S.value) return;
        const F = w.value.findIndex((se) => se.id === k.value.id);
        F < w.value.length - 1 ? k.value = w.value[F + 1] : b.value > v.value * y.value && (v.value++, await ee(), w.value.length > 0 && (k.value = w.value[0]));
      }, k = L(null), R = L(false), P = L(false), B = L(false), E = L({}), M = L({
        percentage: 0,
        tip: "0/0"
      }), { t: z } = Ht({
        messages: {
          en: {
            success: "Success",
            autoRefresh: "Auto Refresh",
            refreshAfter: "Refresh After {msg} Seconds",
            refresh: "Refresh",
            attachments: "Show Attachments",
            downloadMail: "Download Mail",
            pleaseSelectMail: "Please select mail",
            emptyInbox: "Your inbox is empty",
            delete: "Delete",
            deleteMailTip: "Are you sure you want to delete mail?",
            reply: "Reply",
            forwardMail: "Forward",
            showTextMail: "Show Text Mail",
            showHtmlMail: "Show Html Mail",
            saveToS3: "Save to S3",
            multiAction: "Multi Action",
            cancelMultiAction: "Cancel Multi Action",
            selectAll: "Select All of This Page",
            unselectAll: "Unselect All",
            prevMail: "Previous",
            nextMail: "Next",
            keywordQueryTip: "Filter current page",
            query: "Query"
          },
          zh: {
            success: "\u6210\u529F",
            autoRefresh: "\u81EA\u52A8\u5237\u65B0",
            refreshAfter: "{msg}\u79D2\u540E\u5237\u65B0",
            refresh: "\u5237\u65B0",
            downloadMail: "\u4E0B\u8F7D\u90AE\u4EF6",
            attachments: "\u67E5\u770B\u9644\u4EF6",
            pleaseSelectMail: "\u8BF7\u9009\u62E9\u90AE\u4EF6",
            emptyInbox: "\u6536\u4EF6\u7BB1\u4E3A\u7A7A",
            delete: "\u5220\u9664",
            deleteMailTip: "\u786E\u5B9A\u8981\u5220\u9664\u90AE\u4EF6\u5417?",
            reply: "\u56DE\u590D",
            forwardMail: "\u8F6C\u53D1",
            showTextMail: "\u663E\u793A\u7EAF\u6587\u672C\u90AE\u4EF6",
            showHtmlMail: "\u663E\u793AHTML\u90AE\u4EF6",
            saveToS3: "\u4FDD\u5B58\u5230S3",
            multiAction: "\u591A\u9009",
            cancelMultiAction: "\u53D6\u6D88\u591A\u9009",
            selectAll: "\u5168\u9009\u672C\u9875",
            unselectAll: "\u53D6\u6D88\u5168\u9009",
            prevMail: "\u4E0A\u4E00\u5C01",
            nextMail: "\u4E0B\u4E00\u5C01",
            keywordQueryTip: "\u8FC7\u6EE4\u5F53\u524D\u9875",
            query: "\u67E5\u8BE2"
          }
        }
      }), U = async (F) => {
        p.value = d.value, F ? (clearInterval(m.value), m.value = setInterval(async () => {
          s.value || (p.value--, p.value <= 0 && (p.value = d.value, await ne()));
        }, 1e3)) : (clearInterval(m.value), m.value = null);
      };
      lt(u, async (F, se) => {
        U(F);
      }, {
        immediate: true
      }), lt([
        v,
        y
      ], async ([F, se], [ze, q]) => {
        (F !== ze || se !== q) && await ee();
      });
      const ee = async () => {
        try {
          const { results: F, count: se } = await r.fetchMailData(y.value, (v.value - 1) * y.value);
          s.value = true, f.value = await Promise.all(F.map(async (ze) => (ze.checked = false, await Z_(ze)))), se > 0 && (b.value = se), k.value = null, !n.value && w.value.length > 0 && (k.value = w.value[0]);
        } catch (F) {
          t.error(F.message || "error"), console.error(F);
        } finally {
          s.value = false;
        }
      }, ne = async () => {
        v.value = 1, await ee();
      }, ae = async (F) => {
        if (R.value) {
          F.checked = !F.checked;
          return;
        }
        k.value = F;
      }, ye = (F) => k.value && F.id == k.value.id ? i.value ? "overlay overlay-dark-backgroud" : "overlay overlay-light-backgroud" : "", xe = async () => {
        try {
          await r.deleteMail(k.value.id), t.success(z("success")), k.value = null, await ee();
        } catch (F) {
          t.error(F.message || "error");
        }
      }, re = async () => {
        Object.assign(h.value, QK(k.value, z("reply"))), l.value = "sendmail";
      }, Y = async () => {
        Object.assign(h.value, eY(k.value, z("forwardMail"))), l.value = "sendmail";
      }, H = (F) => {
        a.value = F;
      }, oe = async (F, se) => {
        await r.saveToS3(k.value.id, F, se);
      }, ce = (F) => {
        F ? (w.value.forEach((se) => {
          se.checked = false;
        }), R.value = true) : (R.value = false, w.value.forEach((se) => {
          se.checked = false;
        }));
      }, be = (F) => {
        w.value.forEach((se) => {
          se.checked = F;
        });
      }, ie = async () => {
        try {
          s.value = true;
          const F = w.value.filter((se) => se.checked);
          if (F.length === 0) {
            t.error(z("pleaseSelectMail"));
            return;
          }
          M.value = {
            percentage: 0,
            tip: `0/${F.length}`
          };
          for (const [se, ze] of F.entries()) await r.deleteMail(ze.id), B.value = true, M.value = {
            percentage: Math.floor((se + 1) / F.length * 100),
            tip: `${se + 1}/${F.length}`
          };
          t.success(z("success")), await ee();
        } catch (F) {
          t.error(F.message || "error");
        } finally {
          s.value = false, B.value = true;
        }
      }, fe = async () => {
        try {
          s.value = true;
          const F = w.value.filter((J) => J.checked);
          if (F.length === 0) {
            t.error(z("pleaseSelectMail"));
            return;
          }
          const ze = (await yl(() => import("./jszip.min-CeOOLoxS.js").then((J) => J.j), [])).default, q = new ze();
          for (const J of F) q.file(`${J.id}.eml`, J.raw);
          E.value = {
            url: URL.createObjectURL(await q.generateAsync({
              type: "blob"
            })),
            filename: `mails-${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}.zip`
          }, P.value = true;
        } catch (F) {
          t.error(F.message || "error");
        } finally {
          s.value = false;
        }
      };
      return gt(async () => {
        await ee();
      }), Zt(() => {
        clearInterval(m.value);
      }), (F, se) => {
        const ze = ht, q = so, J = kn, le = Ta, we = Sm, ke = kd, _e = Yr, K = Zs, N = ki, j = ec, X = Gm, ge = Hm, te = Nm, I = nc, Z = wr, Ce = Sd, De = vS, qe = Cd, ut = wd, Ze = No, rt = q9;
        return de(), Ie("div", null, [
          O(n) ? (de(), Ie("div", pY, [
            T(le, {
              justify: "space-around",
              align: "center",
              wrap: false,
              style: {
                display: "flex",
                "align-items": "center"
              }
            }, {
              default: $(() => [
                T(we, {
                  page: v.value,
                  "onUpdate:page": se[8] || (se[8] = (Ne) => v.value = Ne),
                  "page-size": y.value,
                  "onUpdate:pageSize": se[9] || (se[9] = (Ne) => y.value = Ne),
                  "item-count": b.value,
                  simple: "",
                  size: "small"
                }, null, 8, [
                  "page",
                  "page-size",
                  "item-count"
                ]),
                T(ke, {
                  value: O(u),
                  "onUpdate:value": se[10] || (se[10] = (Ne) => kt(u) ? u.value = Ne : null),
                  size: "small",
                  round: false
                }, {
                  checked: $(() => [
                    Ae(ve(O(z)("refreshAfter", {
                      msg: p.value
                    })), 1)
                  ]),
                  unchecked: $(() => [
                    Ae(ve(O(z)("autoRefresh")), 1)
                  ]),
                  _: 1
                }, 8, [
                  "value"
                ]),
                T(ze, {
                  onClick: ne,
                  tertiary: "",
                  size: "small",
                  type: "primary"
                }, {
                  default: $(() => [
                    Ae(ve(O(z)("refresh")), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            e.showFilterInput ? (de(), Ie("div", mY, [
              T(_e, {
                value: o.value,
                "onUpdate:value": se[11] || (se[11] = (Ne) => o.value = Ne),
                placeholder: O(z)("keywordQueryTip"),
                size: "small",
                clearable: ""
              }, null, 8, [
                "value",
                "placeholder"
              ])
            ])) : tt("", true),
            Me("div", gY, [
              T(te, {
                hoverable: "",
                clickable: ""
              }, {
                default: $(() => [
                  (de(true), Ie(wt, null, ol(w.value, (Ne) => (de(), Be(ge, {
                    key: Ne.id,
                    onClick: () => ae(Ne)
                  }, {
                    default: $(() => [
                      T(X, {
                        title: Ne.subject
                      }, {
                        description: $(() => [
                          T(N, {
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(" ID: " + ve(Ne.id), 1)
                            ]),
                            _: 2
                          }, 1024),
                          T(N, {
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(ve(O(ta)(Ne.created_at, O(c))), 1)
                            ]),
                            _: 2
                          }, 1024),
                          T(N, {
                            type: "info"
                          }, {
                            default: $(() => [
                              T(j, {
                                style: {
                                  "max-width": "240px"
                                }
                              }, {
                                default: $(() => [
                                  Ae(ve(e.showEMailTo ? "FROM: " + Ne.source : Ne.source), 1)
                                ]),
                                _: 2
                              }, 1024)
                            ]),
                            _: 2
                          }, 1024),
                          e.showEMailTo ? (de(), Be(N, {
                            key: 0,
                            type: "info"
                          }, {
                            default: $(() => [
                              T(j, {
                                style: {
                                  "max-width": "240px"
                                }
                              }, {
                                default: $(() => [
                                  Ae(" TO: " + ve(Ne.address), 1)
                                ]),
                                _: 2
                              }, 1024)
                            ]),
                            _: 2
                          }, 1024)) : tt("", true),
                          T(Rp, {
                            metadata: Ne.metadata,
                            compact: ""
                          }, null, 8, [
                            "metadata"
                          ])
                        ]),
                        _: 2
                      }, 1032, [
                        "title"
                      ])
                    ]),
                    _: 2
                  }, 1032, [
                    "onClick"
                  ]))), 128))
                ]),
                _: 1
              })
            ]),
            T(ut, {
              show: k.value,
              "onUpdate:show": se[12] || (se[12] = (Ne) => k.value = Ne),
              width: "100%",
              placement: "bottom",
              "trap-focus": false,
              "block-scroll": false,
              style: {
                height: "80vh"
              }
            }, {
              default: $(() => [
                T(qe, {
                  title: k.value ? k.value.subject : "",
                  closable: ""
                }, {
                  default: $(() => [
                    T(Z, {
                      bordered: false,
                      embedded: "",
                      style: {
                        overflow: "auto"
                      }
                    }, {
                      default: $(() => [
                        T(Ap, {
                          mail: k.value,
                          showEMailTo: e.showEMailTo,
                          enableUserDeleteEmail: e.enableUserDeleteEmail,
                          showReply: e.showReply,
                          showSaveS3: e.showSaveS3,
                          useUTCDate: O(c),
                          onDelete: xe,
                          onReply: re,
                          onForward: Y,
                          onSaveToS3: oe
                        }, null, 8, [
                          "mail",
                          "showEMailTo",
                          "enableUserDeleteEmail",
                          "showReply",
                          "showSaveS3",
                          "useUTCDate"
                        ])
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }, 8, [
                  "title"
                ])
              ]),
              _: 1
            }, 8, [
              "show"
            ])
          ])) : (de(), Ie("div", uY, [
            Me("div", dY, [
              R.value ? (de(), Be(le, {
                key: 0,
                align: "center"
              }, {
                default: $(() => [
                  T(ze, {
                    onClick: se[0] || (se[0] = (Ne) => ce(false)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(z)("cancelMultiAction")), 1)
                    ]),
                    _: 1
                  }),
                  T(ze, {
                    onClick: se[1] || (se[1] = (Ne) => be(true)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(z)("selectAll")), 1)
                    ]),
                    _: 1
                  }),
                  T(ze, {
                    onClick: se[2] || (se[2] = (Ne) => be(false)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(z)("unselectAll")), 1)
                    ]),
                    _: 1
                  }),
                  e.enableUserDeleteEmail ? (de(), Be(q, {
                    key: 0,
                    onPositiveClick: ie
                  }, {
                    trigger: $(() => [
                      T(ze, {
                        tertiary: "",
                        type: "error"
                      }, {
                        default: $(() => [
                          Ae(ve(O(z)("delete")), 1)
                        ]),
                        _: 1
                      })
                    ]),
                    default: $(() => [
                      Ae(" " + ve(O(z)("deleteMailTip")), 1)
                    ]),
                    _: 1
                  })) : tt("", true),
                  T(ze, {
                    onClick: fe,
                    tertiary: "",
                    type: "info"
                  }, {
                    icon: $(() => [
                      T(J, {
                        component: O(zu)
                      }, null, 8, [
                        "component"
                      ])
                    ]),
                    default: $(() => [
                      Ae(" " + ve(O(z)("downloadMail")), 1)
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })) : (de(), Be(le, {
                key: 1,
                align: "center"
              }, {
                default: $(() => [
                  T(ze, {
                    onClick: se[3] || (se[3] = (Ne) => ce(true)),
                    type: "primary",
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(z)("multiAction")), 1)
                    ]),
                    _: 1
                  }),
                  T(we, {
                    page: v.value,
                    "onUpdate:page": se[4] || (se[4] = (Ne) => v.value = Ne),
                    "page-size": y.value,
                    "onUpdate:pageSize": se[5] || (se[5] = (Ne) => y.value = Ne),
                    "item-count": b.value,
                    "page-sizes": [
                      20,
                      50,
                      100
                    ],
                    "show-size-picker": ""
                  }, null, 8, [
                    "page",
                    "page-size",
                    "item-count"
                  ]),
                  T(ke, {
                    value: O(u),
                    "onUpdate:value": se[6] || (se[6] = (Ne) => kt(u) ? u.value = Ne : null),
                    round: false
                  }, {
                    checked: $(() => [
                      Ae(ve(O(z)("refreshAfter", {
                        msg: p.value
                      })), 1)
                    ]),
                    unchecked: $(() => [
                      Ae(ve(O(z)("autoRefresh")), 1)
                    ]),
                    _: 1
                  }, 8, [
                    "value"
                  ]),
                  T(ze, {
                    onClick: ne,
                    type: "primary",
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(z)("refresh")), 1)
                    ]),
                    _: 1
                  }),
                  e.showFilterInput ? (de(), Be(_e, {
                    key: 0,
                    value: o.value,
                    "onUpdate:value": se[7] || (se[7] = (Ne) => o.value = Ne),
                    placeholder: O(z)("keywordQueryTip"),
                    style: {
                      width: "200px",
                      display: "flex",
                      "align-items": "center"
                    },
                    clearable: ""
                  }, null, 8, [
                    "value",
                    "placeholder"
                  ])) : tt("", true)
                ]),
                _: 1
              }))
            ]),
            T(De, {
              class: "left",
              direction: "horizontal",
              max: 0.75,
              min: 0.25,
              "default-size": O(a),
              "on-update:size": H
            }, {
              1: $(() => [
                Me("div", fY, [
                  T(te, {
                    hoverable: "",
                    clickable: ""
                  }, {
                    default: $(() => [
                      (de(true), Ie(wt, null, ol(w.value, (Ne) => (de(), Be(ge, {
                        key: Ne.id,
                        onClick: () => ae(Ne),
                        class: ti(ye(Ne))
                      }, Zu({
                        default: $(() => [
                          T(X, {
                            title: Ne.subject
                          }, {
                            description: $(() => [
                              T(N, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(" ID: " + ve(Ne.id), 1)
                                ]),
                                _: 2
                              }, 1024),
                              T(N, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(ve(O(ta)(Ne.created_at, O(c))), 1)
                                ]),
                                _: 2
                              }, 1024),
                              T(N, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  T(j, {
                                    style: {
                                      "max-width": "240px"
                                    }
                                  }, {
                                    default: $(() => [
                                      Ae(ve(e.showEMailTo ? "FROM: " + Ne.source : Ne.source), 1)
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                _: 2
                              }, 1024),
                              e.showEMailTo ? (de(), Be(N, {
                                key: 0,
                                type: "info"
                              }, {
                                default: $(() => [
                                  T(j, {
                                    style: {
                                      "max-width": "240px"
                                    }
                                  }, {
                                    default: $(() => [
                                      Ae(" TO: " + ve(Ne.address), 1)
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                _: 2
                              }, 1024)) : tt("", true),
                              T(Rp, {
                                metadata: Ne.metadata,
                                compact: ""
                              }, null, 8, [
                                "metadata"
                              ])
                            ]),
                            _: 2
                          }, 1032, [
                            "title"
                          ])
                        ]),
                        _: 2
                      }, [
                        R.value ? {
                          name: "prefix",
                          fn: $(() => [
                            T(K, {
                              checked: Ne.checked,
                              "onUpdate:checked": (bt) => Ne.checked = bt
                            }, null, 8, [
                              "checked",
                              "onUpdate:checked"
                            ])
                          ]),
                          key: "0"
                        } : void 0
                      ]), 1032, [
                        "onClick",
                        "class"
                      ]))), 128))
                    ]),
                    _: 1
                  })
                ])
              ]),
              2: $(() => [
                k.value ? (de(), Ie("div", hY, [
                  T(I, {
                    justify: "space-between"
                  }, {
                    default: $(() => [
                      T(ze, {
                        onClick: _,
                        disabled: !x.value,
                        text: "",
                        size: "small"
                      }, {
                        icon: $(() => [
                          T(J, null, {
                            default: $(() => [
                              T(O(s_))
                            ]),
                            _: 1
                          })
                        ]),
                        default: $(() => [
                          Ae(" " + ve(O(z)("prevMail")), 1)
                        ]),
                        _: 1
                      }, 8, [
                        "disabled"
                      ]),
                      T(ze, {
                        onClick: C,
                        disabled: !S.value,
                        text: "",
                        size: "small",
                        "icon-placement": "right"
                      }, {
                        icon: $(() => [
                          T(J, null, {
                            default: $(() => [
                              T(O(c_))
                            ]),
                            _: 1
                          })
                        ]),
                        default: $(() => [
                          Ae(" " + ve(O(z)("nextMail")), 1)
                        ]),
                        _: 1
                      }, 8, [
                        "disabled"
                      ])
                    ]),
                    _: 1
                  })
                ])) : tt("", true),
                k.value ? (de(), Be(Z, {
                  key: 1,
                  bordered: false,
                  embedded: "",
                  class: "mail-item",
                  title: k.value.subject,
                  style: {
                    overflow: "auto",
                    "max-height": "100vh"
                  }
                }, {
                  default: $(() => [
                    T(Ap, {
                      mail: k.value,
                      showEMailTo: e.showEMailTo,
                      enableUserDeleteEmail: e.enableUserDeleteEmail,
                      showReply: e.showReply,
                      showSaveS3: e.showSaveS3,
                      onDelete: xe,
                      onReply: re,
                      onForward: Y,
                      onSaveToS3: oe
                    }, null, 8, [
                      "mail",
                      "showEMailTo",
                      "enableUserDeleteEmail",
                      "showReply",
                      "showSaveS3"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "title"
                ])) : (de(), Be(Z, {
                  key: 2,
                  bordered: false,
                  embedded: "",
                  class: "mail-item"
                }, {
                  default: $(() => [
                    T(Ce, {
                      status: "info",
                      title: b.value === 0 ? O(z)("emptyInbox") : O(z)("pleaseSelectMail")
                    }, {
                      icon: $(() => [
                        T(J, {
                          component: O(Hj),
                          size: 100
                        }, null, 8, [
                          "component"
                        ])
                      ]),
                      _: 1
                    }, 8, [
                      "title"
                    ])
                  ]),
                  _: 1
                }))
              ]),
              _: 1
            }, 8, [
              "default-size"
            ])
          ])),
          T(Ze, {
            show: P.value,
            "onUpdate:show": se[13] || (se[13] = (Ne) => P.value = Ne),
            preset: "dialog",
            title: O(z)("downloadMail")
          }, {
            default: $(() => [
              T(N, {
                type: "info"
              }, {
                default: $(() => [
                  Ae(ve(E.value.filename), 1)
                ]),
                _: 1
              }),
              T(ze, {
                tag: "a",
                target: "_blank",
                tertiary: "",
                type: "info",
                size: "small",
                download: E.value.filename,
                href: E.value.url
              }, {
                default: $(() => [
                  T(J, {
                    component: O(zu)
                  }, null, 8, [
                    "component"
                  ]),
                  Ae(" " + ve(O(z)("downloadMail") + " zip"), 1)
                ]),
                _: 1
              }, 8, [
                "download",
                "href"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(Ze, {
            show: B.value,
            "onUpdate:show": se[14] || (se[14] = (Ne) => B.value = Ne),
            preset: "dialog",
            title: O(z)("delete") + O(z)("success"),
            "negative-text": "OK"
          }, {
            default: $(() => [
              T(le, {
                justify: "center"
              }, {
                default: $(() => [
                  T(rt, {
                    type: "circle",
                    status: "error",
                    percentage: M.value.percentage
                  }, {
                    default: $(() => [
                      Me("span", vY, ve(M.value.tip), 1)
                    ]),
                    _: 1
                  }, 8, [
                    "percentage"
                  ])
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ]);
      };
    }
  };
  ok = yn(bY, [
    [
      "__scopeId",
      "data-v-d1585b00"
    ]
  ]);
  yY = {
    key: 0,
    class: "left"
  };
  xY = {
    style: {
      "margin-bottom": "10px"
    }
  };
  wY = {
    style: {
      display: "inline-block",
      "margin-right": "10px"
    }
  };
  CY = {
    style: {
      overflow: "auto",
      "min-height": "60vh",
      "max-height": "100vh"
    }
  };
  SY = {
    key: 0,
    style: {
      "margin-top": "10px"
    }
  };
  _Y = {
    key: 1,
    style: {
      "margin-top": "10px"
    }
  };
  kY = [
    "innerHTML"
  ];
  RY = {
    key: 1,
    class: "left"
  };
  AY = {
    class: "center"
  };
  EY = {
    style: {
      display: "inline-block",
      "margin-right": "10px"
    }
  };
  TY = {
    style: {
      overflow: "auto",
      "min-height": "60vh",
      "max-height": "100vh"
    }
  };
  PY = {
    key: 0,
    style: {
      "margin-top": "10px"
    }
  };
  DY = {
    key: 1,
    style: {
      "margin-top": "10px"
    }
  };
  $Y = [
    "innerHTML"
  ];
  zY = {
    __name: "SendBox",
    props: {
      enableUserDeleteEmail: {
        type: Boolean,
        default: false,
        required: false
      },
      showEMailFrom: {
        type: Boolean,
        default: false
      },
      fetchMailData: {
        type: Function,
        default: () => {
        },
        required: true
      },
      deleteMail: {
        type: Function,
        default: () => {
        },
        required: false
      }
    },
    setup(e) {
      const t = Pn(), n = Dl(), r = e, { isDark: o, mailboxSplitSize: i, loading: a, useUTCDate: l } = Qt(), s = L([]), c = L(0), u = L(1), d = L(20), h = L(null), p = L(false), f = L(false), m = L(false), b = L({
        percentage: 0,
        tip: "0/0"
      }), { t: v } = Ht({
        messages: {
          en: {
            success: "Success",
            refresh: "Refresh",
            showCode: "Change View Original Code",
            pleaseSelectMail: "Please select a mail to view.",
            emptySent: "No sent emails",
            delete: "Delete",
            deleteMailTip: "Are you sure you want to delete mail?",
            multiAction: "Multi Action",
            cancelMultiAction: "Cancel Multi Action",
            selectAll: "Select All of This Page",
            unselectAll: "Unselect All"
          },
          zh: {
            success: "\u6210\u529F",
            refresh: "\u5237\u65B0",
            showCode: "\u5207\u6362\u67E5\u770B\u5143\u6570\u636E",
            pleaseSelectMail: "\u8BF7\u9009\u62E9\u4E00\u5C01\u90AE\u4EF6\u67E5\u770B\u3002",
            emptySent: "\u53D1\u4EF6\u7BB1\u4E3A\u7A7A",
            delete: "\u5220\u9664",
            deleteMailTip: "\u786E\u5B9A\u8981\u5220\u9664\u90AE\u4EF6\u5417?",
            multiAction: "\u591A\u9009",
            cancelMultiAction: "\u53D6\u6D88\u591A\u9009",
            selectAll: "\u5168\u9009\u672C\u9875",
            unselectAll: "\u53D6\u6D88\u5168\u9009"
          }
        }
      });
      lt([
        u,
        d
      ], async ([B, E], [M, z]) => {
        (B !== M || E !== z) && await y();
      });
      const y = async () => {
        try {
          const { results: B, count: E } = await r.fetchMailData(d.value, (u.value - 1) * d.value);
          s.value = B.map((M) => {
            var _a2, _b2, _c2;
            try {
              const z = JSON.parse(M.raw);
              z.version == "v2" ? (M.to_mail = z.to_name ? `${z.to_name} <${z.to_mail}>` : z.to_mail, M.subject = z.subject, M.is_html = z.is_html, M.content = z.content, M.raw = JSON.stringify(z, null, 2)) : (M.to_mail = (_a2 = z == null ? void 0 : z.personalizations) == null ? void 0 : _a2.map((U) => {
                var _a3;
                return (_a3 = U.to) == null ? void 0 : _a3.map((ee) => ee.email).join(",");
              }).join(";"), M.subject = z.subject, M.is_html = ((_b2 = z.content[0]) == null ? void 0 : _b2.type) != "text/plain", M.content = (_c2 = z.content[0]) == null ? void 0 : _c2.value, M.raw = JSON.stringify(z, null, 2));
            } catch (z) {
              console.log(z);
            }
            return M;
          }), E > 0 && (c.value = E), !n.value && !h.value && s.value.length > 0 && (h.value = s.value[0]);
        } catch (B) {
          t.error(B.message || "error"), console.error(B);
        }
      }, w = async (B) => {
        h.value = B;
      }, x = (B) => h.value && B.id == h.value.id ? o.value ? "overlay overlay-dark-backgroud" : "overlay overlay-light-backgroud" : "", S = (B) => {
        i.value = B;
      }, _ = async () => {
        try {
          await r.deleteMail(h.value.id), t.success(v("success")), h.value = null, await y();
        } catch (B) {
          t.error(B.message || "error");
        }
      }, C = D(() => r.enableUserDeleteEmail), k = (B) => {
        B ? (s.value.forEach((E) => {
          E.checked = false;
        }), f.value = true) : (f.value = false, s.value.forEach((E) => {
          E.checked = false;
        }));
      }, R = (B) => {
        s.value.forEach((E) => {
          E.checked = B;
        });
      }, P = async () => {
        try {
          a.value = true;
          const B = s.value.filter((E) => E.checked);
          if (B.length === 0) {
            t.error(v("pleaseSelectMail"));
            return;
          }
          b.value = {
            percentage: 0,
            tip: `0/${B.length}`
          };
          for (const [E, M] of B.entries()) await r.deleteMail(M.id), m.value = true, b.value = {
            percentage: Math.floor((E + 1) / B.length * 100),
            tip: `${E + 1}/${B.length}`
          };
          t.success(v("success")), await y();
        } catch (B) {
          t.error(B.message || "error");
        } finally {
          a.value = false, m.value = true;
        }
      };
      return gt(async () => {
        await y();
      }), (B, E) => {
        const M = ht, z = so, U = Ta, ee = Sm, ne = Zs, ae = ki, ye = Gm, xe = Hm, re = Nm, Y = wr, H = kn, oe = Sd, ce = vS, be = Cd, ie = wd;
        return de(), Ie("div", null, [
          O(n) ? (de(), Ie("div", RY, [
            Me("div", AY, [
              Me("div", EY, [
                T(ee, {
                  page: u.value,
                  "onUpdate:page": E[7] || (E[7] = (fe) => u.value = fe),
                  "page-size": d.value,
                  "onUpdate:pageSize": E[8] || (E[8] = (fe) => d.value = fe),
                  "item-count": c.value,
                  simple: "",
                  size: "small"
                }, null, 8, [
                  "page",
                  "page-size",
                  "item-count"
                ])
              ]),
              T(M, {
                onClick: y,
                size: "small",
                type: "primary"
              }, {
                default: $(() => [
                  Ae(ve(O(v)("refresh")), 1)
                ]),
                _: 1
              })
            ]),
            Me("div", TY, [
              T(re, {
                hoverable: "",
                clickable: ""
              }, {
                default: $(() => [
                  (de(true), Ie(wt, null, ol(s.value, (fe) => (de(), Be(xe, {
                    key: fe.id,
                    onClick: () => w(fe)
                  }, {
                    default: $(() => [
                      T(ye, {
                        title: fe.subject
                      }, {
                        description: $(() => [
                          T(ae, {
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(" ID: " + ve(fe.id), 1)
                            ]),
                            _: 2
                          }, 1024),
                          T(ae, {
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(ve(O(ta)(fe.created_at, O(l))), 1)
                            ]),
                            _: 2
                          }, 1024),
                          e.showEMailFrom ? (de(), Be(ae, {
                            key: 0,
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(" FROM: " + ve(fe.address), 1)
                            ]),
                            _: 2
                          }, 1024)) : tt("", true),
                          T(ae, {
                            type: "info"
                          }, {
                            default: $(() => [
                              Ae(" TO: " + ve(fe.to_mail), 1)
                            ]),
                            _: 2
                          }, 1024)
                        ]),
                        _: 2
                      }, 1032, [
                        "title"
                      ])
                    ]),
                    _: 2
                  }, 1032, [
                    "onClick"
                  ]))), 128))
                ]),
                _: 1
              })
            ]),
            T(ie, {
              show: h.value,
              "onUpdate:show": E[10] || (E[10] = (fe) => h.value = fe),
              width: "100%",
              placement: "bottom",
              "trap-focus": false,
              "block-scroll": false,
              style: {
                height: "80vh"
              }
            }, {
              default: $(() => [
                T(be, {
                  title: h.value ? h.value.subject : "",
                  closable: ""
                }, {
                  default: $(() => [
                    T(Y, {
                      bordered: false,
                      embedded: "",
                      style: {
                        overflow: "auto"
                      }
                    }, {
                      default: $(() => [
                        T(U, null, {
                          default: $(() => [
                            T(ae, {
                              type: "info"
                            }, {
                              default: $(() => [
                                Ae(" ID: " + ve(h.value.id), 1)
                              ]),
                              _: 1
                            }),
                            T(ae, {
                              type: "info"
                            }, {
                              default: $(() => [
                                Ae(ve(O(ta)(h.value.created_at, O(l))), 1)
                              ]),
                              _: 1
                            }),
                            T(ae, {
                              type: "info"
                            }, {
                              default: $(() => [
                                Ae(" FROM: " + ve(h.value.address), 1)
                              ]),
                              _: 1
                            }),
                            T(ae, {
                              type: "info"
                            }, {
                              default: $(() => [
                                Ae(" TO: " + ve(h.value.to_mail), 1)
                              ]),
                              _: 1
                            }),
                            T(M, {
                              size: "small",
                              tertiary: "",
                              type: "info",
                              onClick: E[9] || (E[9] = (fe) => p.value = !p.value)
                            }, {
                              default: $(() => [
                                Ae(ve(O(v)("showCode")), 1)
                              ]),
                              _: 1
                            }),
                            e.enableUserDeleteEmail ? (de(), Be(z, {
                              key: 0,
                              onPositiveClick: _
                            }, {
                              trigger: $(() => [
                                T(M, {
                                  tertiary: "",
                                  type: "error",
                                  size: "small"
                                }, {
                                  default: $(() => [
                                    Ae(ve(O(v)("delete")), 1)
                                  ]),
                                  _: 1
                                })
                              ]),
                              default: $(() => [
                                Ae(" " + ve(O(v)("deleteMailTip")), 1)
                              ]),
                              _: 1
                            })) : tt("", true)
                          ]),
                          _: 1
                        }),
                        p.value ? (de(), Ie("pre", PY, ve(h.value.raw), 1)) : h.value.is_html ? (de(), Ie("div", {
                          key: 2,
                          innerHTML: h.value.content,
                          style: {
                            "margin-top": "10px"
                          }
                        }, null, 8, $Y)) : (de(), Ie("pre", DY, ve(h.value.content), 1))
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }, 8, [
                  "title"
                ])
              ]),
              _: 1
            }, 8, [
              "show"
            ])
          ])) : (de(), Ie("div", yY, [
            Me("div", xY, [
              f.value ? (de(), Be(U, {
                key: 0
              }, {
                default: $(() => [
                  T(M, {
                    onClick: E[0] || (E[0] = (fe) => k(false)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(v)("cancelMultiAction")), 1)
                    ]),
                    _: 1
                  }),
                  T(M, {
                    onClick: E[1] || (E[1] = (fe) => R(true)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(v)("selectAll")), 1)
                    ]),
                    _: 1
                  }),
                  T(M, {
                    onClick: E[2] || (E[2] = (fe) => R(false)),
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(v)("unselectAll")), 1)
                    ]),
                    _: 1
                  }),
                  e.enableUserDeleteEmail ? (de(), Be(z, {
                    key: 0,
                    onPositiveClick: P
                  }, {
                    trigger: $(() => [
                      T(M, {
                        tertiary: "",
                        type: "error"
                      }, {
                        default: $(() => [
                          Ae(ve(O(v)("delete")), 1)
                        ]),
                        _: 1
                      })
                    ]),
                    default: $(() => [
                      Ae(" " + ve(O(v)("deleteMailTip")), 1)
                    ]),
                    _: 1
                  })) : tt("", true)
                ]),
                _: 1
              })) : (de(), Be(U, {
                key: 1
              }, {
                default: $(() => [
                  C.value ? (de(), Be(M, {
                    key: 0,
                    onClick: E[3] || (E[3] = (fe) => k(true)),
                    type: "primary",
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(v)("multiAction")), 1)
                    ]),
                    _: 1
                  })) : tt("", true),
                  Me("div", wY, [
                    T(ee, {
                      page: u.value,
                      "onUpdate:page": E[4] || (E[4] = (fe) => u.value = fe),
                      "page-size": d.value,
                      "onUpdate:pageSize": E[5] || (E[5] = (fe) => d.value = fe),
                      "item-count": c.value,
                      "page-sizes": [
                        20,
                        50,
                        100
                      ],
                      "show-size-picker": ""
                    }, null, 8, [
                      "page",
                      "page-size",
                      "item-count"
                    ])
                  ]),
                  T(M, {
                    onClick: y,
                    type: "primary",
                    tertiary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(v)("refresh")), 1)
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }))
            ]),
            T(ce, {
              direction: "horizontal",
              max: 0.75,
              min: 0.25,
              "default-size": O(i),
              "on-update:size": S
            }, {
              1: $(() => [
                Me("div", CY, [
                  T(re, {
                    hoverable: "",
                    clickable: ""
                  }, {
                    default: $(() => [
                      (de(true), Ie(wt, null, ol(s.value, (fe) => (de(), Be(xe, {
                        key: fe.id,
                        onClick: () => w(fe),
                        class: ti(x(fe))
                      }, Zu({
                        default: $(() => [
                          T(ye, {
                            title: fe.subject
                          }, {
                            description: $(() => [
                              T(ae, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(" ID: " + ve(fe.id), 1)
                                ]),
                                _: 2
                              }, 1024),
                              T(ae, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(ve(O(ta)(fe.created_at, O(l))), 1)
                                ]),
                                _: 2
                              }, 1024),
                              e.showEMailFrom ? (de(), Be(ae, {
                                key: 0,
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(" FROM: " + ve(fe.address), 1)
                                ]),
                                _: 2
                              }, 1024)) : tt("", true),
                              T(ae, {
                                type: "info"
                              }, {
                                default: $(() => [
                                  Ae(" TO: " + ve(fe.to_mail), 1)
                                ]),
                                _: 2
                              }, 1024)
                            ]),
                            _: 2
                          }, 1032, [
                            "title"
                          ])
                        ]),
                        _: 2
                      }, [
                        f.value ? {
                          name: "prefix",
                          fn: $(() => [
                            T(ne, {
                              checked: fe.checked,
                              "onUpdate:checked": (F) => fe.checked = F
                            }, null, 8, [
                              "checked",
                              "onUpdate:checked"
                            ])
                          ]),
                          key: "0"
                        } : void 0
                      ]), 1032, [
                        "onClick",
                        "class"
                      ]))), 128))
                    ]),
                    _: 1
                  })
                ])
              ]),
              2: $(() => [
                h.value ? (de(), Be(Y, {
                  key: 0,
                  bordered: false,
                  embedded: "",
                  class: "mail-item",
                  title: h.value.subject,
                  style: {
                    overflow: "auto",
                    "max-height": "100vh"
                  }
                }, {
                  default: $(() => [
                    T(U, null, {
                      default: $(() => [
                        T(ae, {
                          type: "info"
                        }, {
                          default: $(() => [
                            Ae(" ID: " + ve(h.value.id), 1)
                          ]),
                          _: 1
                        }),
                        T(ae, {
                          type: "info"
                        }, {
                          default: $(() => [
                            Ae(ve(O(ta)(h.value.created_at, O(l))), 1)
                          ]),
                          _: 1
                        }),
                        T(ae, {
                          type: "info"
                        }, {
                          default: $(() => [
                            Ae(" FROM: " + ve(h.value.address), 1)
                          ]),
                          _: 1
                        }),
                        T(ae, {
                          type: "info"
                        }, {
                          default: $(() => [
                            Ae(" TO: " + ve(h.value.to_mail), 1)
                          ]),
                          _: 1
                        }),
                        T(M, {
                          size: "small",
                          tertiary: "",
                          type: "info",
                          onClick: E[6] || (E[6] = (fe) => p.value = !p.value)
                        }, {
                          default: $(() => [
                            Ae(ve(O(v)("showCode")), 1)
                          ]),
                          _: 1
                        }),
                        e.enableUserDeleteEmail ? (de(), Be(z, {
                          key: 0,
                          onPositiveClick: _
                        }, {
                          trigger: $(() => [
                            T(M, {
                              tertiary: "",
                              type: "error",
                              size: "small"
                            }, {
                              default: $(() => [
                                Ae(ve(O(v)("delete")), 1)
                              ]),
                              _: 1
                            })
                          ]),
                          default: $(() => [
                            Ae(" " + ve(O(v)("deleteMailTip")), 1)
                          ]),
                          _: 1
                        })) : tt("", true)
                      ]),
                      _: 1
                    }),
                    p.value ? (de(), Ie("pre", SY, ve(h.value.raw), 1)) : h.value.is_html ? (de(), Ie("div", {
                      key: 2,
                      innerHTML: h.value.content,
                      style: {
                        "margin-top": "10px"
                      }
                    }, null, 8, kY)) : (de(), Ie("pre", _Y, ve(h.value.content), 1))
                  ]),
                  _: 1
                }, 8, [
                  "title"
                ])) : (de(), Be(Y, {
                  key: 1,
                  bordered: false,
                  embedded: "",
                  class: "mail-item"
                }, {
                  default: $(() => [
                    T(oe, {
                      status: "info",
                      title: c.value === 0 ? O(v)("emptySent") : O(v)("pleaseSelectMail")
                    }, {
                      icon: $(() => [
                        T(H, {
                          component: O(rW),
                          size: 100
                        }, null, 8, [
                          "component"
                        ])
                      ]),
                      _: 1
                    }, 8, [
                      "title"
                    ])
                  ]),
                  _: 1
                }))
              ]),
              _: 1
            }, 8, [
              "default-size"
            ])
          ]))
        ]);
      };
    }
  };
  OY = yn(zY, [
    [
      "__scopeId",
      "data-v-56d1af9f"
    ]
  ]);
  IY = {
    class: "center"
  };
  FY = {
    class: "right"
  };
  MY = {
    class: "left"
  };
  LY = {
    __name: "AutoReply",
    setup(e) {
      const t = Pn(), n = L(""), r = L(false), o = L(""), i = L(""), a = L(""), { settings: l } = Qt(), { t: s } = Ht({
        locale: "zh",
        messages: {
          en: {
            success: "Success",
            settings: "Settings",
            sourcePrefix: "Source Mail Prefix",
            name: "Name",
            enableAutoReply: "Enable Auto Reply",
            subject: "Subject",
            autoReply: "Auto Reply",
            save: "Save"
          },
          zh: {
            success: "\u6210\u529F",
            settings: "\u8BBE\u7F6E",
            sourcePrefix: "\u6765\u6E90\u90AE\u4EF6\u524D\u7F00",
            name: "\u540D\u79F0",
            enableAutoReply: "\u542F\u7528\u81EA\u52A8\u56DE\u590D",
            subject: "\u4E3B\u9898",
            autoReply: "\u81EA\u52A8\u56DE\u590D",
            save: "\u4FDD\u5B58"
          }
        }
      }), c = async () => {
        try {
          const d = await it.fetch("/api/auto_reply");
          n.value = d.source_prefix || "", r.value = d.enabled || false, a.value = d.name || "", o.value = d.message || "", i.value = d.subject || "";
        } catch (d) {
          t.error(d.message || "error");
        }
      }, u = async () => {
        try {
          await it.fetch("/api/auto_reply", {
            method: "POST",
            body: JSON.stringify({
              auto_reply: {
                enabled: r.value,
                source_prefix: n.value,
                name: a.value,
                message: o.value,
                subject: i.value
              }
            })
          }), t.success(s("success"));
        } catch (d) {
          t.error(d.message || "error");
        }
      };
      return gt(async () => {
        await c();
      }), (d, h) => {
        const p = ht, f = kd, m = Fm, b = Yr, v = wr;
        return de(), Ie("div", IY, [
          O(l).address ? (de(), Be(v, {
            key: 0,
            bordered: false,
            embedded: "",
            title: O(s)("settings")
          }, {
            default: $(() => [
              Me("div", FY, [
                T(p, {
                  type: "primary",
                  onClick: u
                }, {
                  default: $(() => [
                    Ae(ve(O(s)("save")), 1)
                  ]),
                  _: 1
                })
              ]),
              Me("div", MY, [
                T(m, {
                  label: O(s)("enableAutoReply"),
                  "label-placement": "left"
                }, {
                  default: $(() => [
                    T(f, {
                      value: r.value,
                      "onUpdate:value": h[0] || (h[0] = (y) => r.value = y)
                    }, null, 8, [
                      "value"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "label"
                ]),
                T(m, {
                  label: O(s)("name"),
                  "label-placement": "left"
                }, {
                  default: $(() => [
                    T(b, {
                      disabled: !r.value,
                      value: a.value,
                      "onUpdate:value": h[1] || (h[1] = (y) => a.value = y)
                    }, null, 8, [
                      "disabled",
                      "value"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "label"
                ]),
                T(m, {
                  label: O(s)("sourcePrefix"),
                  "label-placement": "left"
                }, {
                  default: $(() => [
                    T(b, {
                      disabled: !r.value,
                      value: n.value,
                      "onUpdate:value": h[2] || (h[2] = (y) => n.value = y)
                    }, null, 8, [
                      "disabled",
                      "value"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "label"
                ]),
                T(m, {
                  label: O(s)("subject"),
                  "label-placement": "left"
                }, {
                  default: $(() => [
                    T(b, {
                      disabled: !r.value,
                      value: i.value,
                      "onUpdate:value": h[3] || (h[3] = (y) => i.value = y)
                    }, null, 8, [
                      "disabled",
                      "value"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "label"
                ]),
                T(m, {
                  label: O(s)("autoReply"),
                  "label-placement": "left"
                }, {
                  default: $(() => [
                    T(b, {
                      disabled: !r.value,
                      type: "textarea",
                      value: o.value,
                      "onUpdate:value": h[4] || (h[4] = (y) => o.value = y)
                    }, null, 8, [
                      "disabled",
                      "value"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "label"
                ])
              ])
            ]),
            _: 1
          }, 8, [
            "title"
          ])) : tt("", true)
        ]);
      };
    }
  };
  BY = yn(LY, [
    [
      "__scopeId",
      "data-v-e3028e17"
    ]
  ]);
  NY = {
    key: 0,
    class: "center"
  };
  HY = {
    __name: "AccountSettings",
    setup(e) {
      const { jwt: t, settings: n, showAddressCredential: r, loading: o, openSettings: i } = Qt(), a = $a(), l = Pn(), s = L(false), c = L(false), u = L(false), d = L(false), h = L(false), p = L(""), f = L(""), { locale: m, t: b } = Ht({
        messages: {
          en: {
            logout: "Logout",
            deleteAccount: "Delete Account",
            showAddressCredential: "Show Address Credential",
            logoutConfirm: "Are you sure to logout?",
            deleteAccount: "Delete Account",
            deleteAccountConfirm: "Are you sure to delete your account and all emails for this account?",
            clearInbox: "Clear Inbox",
            clearSentItems: "Clear Sent Items",
            clearInboxConfirm: "Are you sure to clear all emails in your inbox?",
            clearSentItemsConfirm: "Are you sure to clear all emails in your sent items?",
            success: "Success",
            changePassword: "Change Password",
            newPassword: "New Password",
            confirmPassword: "Confirm Password",
            passwordMismatch: "Passwords do not match",
            passwordChanged: "Password changed successfully"
          },
          zh: {
            logout: "\u9000\u51FA\u767B\u5F55",
            deleteAccount: "\u5220\u9664\u8D26\u6237",
            showAddressCredential: "\u67E5\u770B\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1",
            logoutConfirm: "\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F",
            deleteAccount: "\u5220\u9664\u8D26\u6237",
            deleteAccountConfirm: "\u786E\u5B9A\u8981\u5220\u9664\u4F60\u7684\u8D26\u6237\u548C\u5176\u4E2D\u7684\u6240\u6709\u90AE\u4EF6\u5417?",
            clearInbox: "\u6E05\u7A7A\u6536\u4EF6\u7BB1",
            clearSentItems: "\u6E05\u7A7A\u53D1\u4EF6\u7BB1",
            clearInboxConfirm: "\u786E\u5B9A\u8981\u6E05\u7A7A\u4F60\u6536\u4EF6\u7BB1\u4E2D\u7684\u6240\u6709\u90AE\u4EF6\u5417\uFF1F",
            clearSentItemsConfirm: "\u786E\u5B9A\u8981\u6E05\u7A7A\u4F60\u53D1\u4EF6\u7BB1\u4E2D\u7684\u6240\u6709\u90AE\u4EF6\u5417\uFF1F",
            success: "\u6210\u529F",
            changePassword: "\u4FEE\u6539\u5BC6\u7801",
            newPassword: "\u65B0\u5BC6\u7801",
            confirmPassword: "\u786E\u8BA4\u5BC6\u7801",
            passwordMismatch: "\u5BC6\u7801\u4E0D\u5339\u914D",
            passwordChanged: "\u5BC6\u7801\u4FEE\u6539\u6210\u529F"
          }
        }
      }), v = async () => {
        t.value = "", await a.push(eo("/", m.value)), location.reload();
      }, y = async () => {
        try {
          await it.fetch("/api/delete_address", {
            method: "DELETE"
          }), t.value = "", await a.push(eo("/", m.value)), location.reload();
        } catch (_) {
          l.error(_.message || "error");
        }
      }, w = async () => {
        try {
          await it.fetch("/api/clear_inbox", {
            method: "DELETE"
          }), l.success(b("success"));
        } catch (_) {
          l.error(_.message || "error");
        } finally {
          u.value = false;
        }
      }, x = async () => {
        try {
          await it.fetch("/api/clear_sent_items", {
            method: "DELETE"
          }), l.success(b("success"));
        } catch (_) {
          l.error(_.message || "error");
        } finally {
          d.value = false;
        }
      }, S = async () => {
        if (p.value !== f.value) {
          l.error(b("passwordMismatch"));
          return;
        }
        try {
          await it.fetch("/api/address_change_password", {
            method: "POST",
            body: JSON.stringify({
              new_password: await Lu(p.value)
            })
          }), l.success(b("passwordChanged")), p.value = "", f.value = "", h.value = false;
        } catch (_) {
          l.error(_.message || "error");
        }
      };
      return (_, C) => {
        const k = ht, R = wr, P = No, B = Yr, E = Fm, M = Om;
        return O(n).address ? (de(), Ie("div", NY, [
          T(R, {
            bordered: false,
            embedded: ""
          }, {
            default: $(() => {
              var _a2;
              return [
                T(k, {
                  onClick: C[0] || (C[0] = (z) => r.value = true),
                  type: "primary",
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("showAddressCredential")), 1)
                  ]),
                  _: 1
                }),
                ((_a2 = O(i)) == null ? void 0 : _a2.enableAddressPassword) ? (de(), Be(k, {
                  key: 0,
                  onClick: C[1] || (C[1] = (z) => h.value = true),
                  type: "info",
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("changePassword")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                O(i).enableUserDeleteEmail ? (de(), Be(k, {
                  key: 1,
                  onClick: C[2] || (C[2] = (z) => u.value = true),
                  type: "warning",
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("clearInbox")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                O(i).enableUserDeleteEmail ? (de(), Be(k, {
                  key: 2,
                  onClick: C[3] || (C[3] = (z) => d.value = true),
                  type: "warning",
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("clearSentItems")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                T(k, {
                  onClick: C[4] || (C[4] = (z) => s.value = true),
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("logout")), 1)
                  ]),
                  _: 1
                }),
                O(i).enableUserDeleteEmail ? (de(), Be(k, {
                  key: 3,
                  onClick: C[5] || (C[5] = (z) => c.value = true),
                  type: "error",
                  secondary: "",
                  block: "",
                  strong: ""
                }, {
                  default: $(() => [
                    Ae(ve(O(b)("deleteAccount")), 1)
                  ]),
                  _: 1
                })) : tt("", true)
              ];
            }),
            _: 1
          }),
          T(P, {
            show: s.value,
            "onUpdate:show": C[6] || (C[6] = (z) => s.value = z),
            preset: "dialog",
            title: O(b)("logout")
          }, {
            action: $(() => [
              T(k, {
                loading: O(o),
                onClick: v,
                size: "small",
                tertiary: "",
                type: "warning"
              }, {
                default: $(() => [
                  Ae(ve(O(b)("logout")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(b)("logoutConfirm")), 1)
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(P, {
            show: c.value,
            "onUpdate:show": C[7] || (C[7] = (z) => c.value = z),
            preset: "dialog",
            title: O(b)("deleteAccount")
          }, {
            action: $(() => [
              T(k, {
                loading: O(o),
                onClick: y,
                size: "small",
                tertiary: "",
                type: "error"
              }, {
                default: $(() => [
                  Ae(ve(O(b)("deleteAccount")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(b)("deleteAccountConfirm")), 1)
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(P, {
            show: u.value,
            "onUpdate:show": C[8] || (C[8] = (z) => u.value = z),
            preset: "dialog",
            title: O(b)("clearInbox")
          }, {
            action: $(() => [
              T(k, {
                loading: O(o),
                onClick: w,
                size: "small",
                tertiary: "",
                type: "warning"
              }, {
                default: $(() => [
                  Ae(ve(O(b)("clearInbox")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(b)("clearInboxConfirm")), 1)
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(P, {
            show: d.value,
            "onUpdate:show": C[9] || (C[9] = (z) => d.value = z),
            preset: "dialog",
            title: O(b)("clearSentItems")
          }, {
            action: $(() => [
              T(k, {
                loading: O(o),
                onClick: x,
                size: "small",
                tertiary: "",
                type: "warning"
              }, {
                default: $(() => [
                  Ae(ve(O(b)("clearSentItems")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(b)("clearSentItemsConfirm")), 1)
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(P, {
            show: h.value,
            "onUpdate:show": C[12] || (C[12] = (z) => h.value = z),
            preset: "dialog",
            title: O(b)("changePassword")
          }, {
            action: $(() => [
              T(k, {
                loading: O(o),
                onClick: S,
                size: "small",
                tertiary: "",
                type: "info"
              }, {
                default: $(() => [
                  Ae(ve(O(b)("changePassword")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              T(M, {
                model: {
                  newPassword: p.value,
                  confirmPassword: f.value
                }
              }, {
                default: $(() => [
                  T(E, {
                    label: O(b)("newPassword")
                  }, {
                    default: $(() => [
                      T(B, {
                        value: p.value,
                        "onUpdate:value": C[10] || (C[10] = (z) => p.value = z),
                        type: "password",
                        placeholder: "",
                        "show-password-on": "click"
                      }, null, 8, [
                        "value"
                      ])
                    ]),
                    _: 1
                  }, 8, [
                    "label"
                  ]),
                  T(E, {
                    label: O(b)("confirmPassword")
                  }, {
                    default: $(() => [
                      T(B, {
                        value: f.value,
                        "onUpdate:value": C[11] || (C[11] = (z) => f.value = z),
                        type: "password",
                        placeholder: "",
                        "show-password-on": "click"
                      }, null, 8, [
                        "value"
                      ])
                    ]),
                    _: 1
                  }, 8, [
                    "label"
                  ])
                ]),
                _: 1
              }, 8, [
                "model"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ])) : tt("", true);
      };
    }
  };
  ik = yn(HY, [
    [
      "__scopeId",
      "data-v-0ba80a16"
    ]
  ]);
  jY = {
    class: "center"
  };
  WY = {
    __name: "Appearance",
    props: {
      showUseSimpleIndex: {
        type: Boolean,
        default: false
      }
    },
    setup(e) {
      const t = e, { mailboxSplitSize: n, useIframeShowMail: r, preferShowTextMail: o, configAutoRefreshInterval: i, globalTabplacement: a, useSideMargin: l, useUTCDate: s, useSimpleIndex: c } = Qt(), u = Dl(), { t: d } = Ht({
        messages: {
          en: {
            useSimpleIndex: "Use Simple Index",
            mailboxSplitSize: "Mailbox Split Size",
            useIframeShowMail: "Use iframe Show HTML Mail",
            preferShowTextMail: "Display text Mail by default",
            useSideMargin: "Turn on the side margins on the left and right sides of the page",
            globalTabplacement: "Global Tab Placement",
            left: "left",
            top: "top",
            right: "right",
            bottom: "bottom",
            useUTCDate: "Use UTC Date",
            autoRefreshInterval: "Auto Refresh Interval(Sec)"
          },
          zh: {
            useSimpleIndex: "\u4F7F\u7528\u6781\u7B80\u4E3B\u9875",
            mailboxSplitSize: "\u90AE\u7BB1\u754C\u9762\u5206\u680F\u5927\u5C0F",
            preferShowTextMail: "\u9ED8\u8BA4\u4EE5\u6587\u672C\u663E\u793A\u90AE\u4EF6",
            useIframeShowMail: "\u4F7F\u7528iframe\u663E\u793AHTML\u90AE\u4EF6",
            globalTabplacement: "\u5168\u5C40\u9009\u9879\u5361\u4F4D\u7F6E",
            useSideMargin: "\u5F00\u542F\u9875\u9762\u5DE6\u53F3\u4E24\u4FA7\u4FA7\u8FB9\u8DDD",
            left: "\u5DE6\u4FA7",
            top: "\u9876\u90E8",
            right: "\u53F3\u4FA7",
            bottom: "\u5E95\u90E8",
            useUTCDate: "\u4F7F\u7528 UTC \u65F6\u95F4",
            autoRefreshInterval: "\u81EA\u52A8\u5237\u65B0\u95F4\u9694(\u79D2)"
          }
        }
      });
      return (h, p) => {
        const f = cB, m = oc, b = kd, v = DI, y = u2, w = wr;
        return de(), Ie("div", jY, [
          T(w, {
            bordered: false,
            embedded: ""
          }, {
            default: $(() => [
              O(u) ? tt("", true) : (de(), Be(m, {
                key: 0,
                label: O(d)("mailboxSplitSize")
              }, {
                default: $(() => [
                  T(f, {
                    value: O(n),
                    "onUpdate:value": p[0] || (p[0] = (x) => kt(n) ? n.value = x : null),
                    min: 0.25,
                    max: 0.75,
                    step: 0.01,
                    marks: {
                      0.25: "0.25",
                      0.5: "0.5",
                      0.75: "0.75"
                    }
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ])),
              T(m, {
                label: O(d)("autoRefreshInterval")
              }, {
                default: $(() => [
                  T(f, {
                    value: O(i),
                    "onUpdate:value": p[1] || (p[1] = (x) => kt(i) ? i.value = x : null),
                    min: 30,
                    max: 300,
                    step: 1,
                    marks: {
                      60: "60",
                      120: "120",
                      180: "180",
                      240: "240"
                    }
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ]),
              t.showUseSimpleIndex ? (de(), Be(m, {
                key: 1,
                label: O(d)("useSimpleIndex")
              }, {
                default: $(() => [
                  T(b, {
                    value: O(c),
                    "onUpdate:value": p[2] || (p[2] = (x) => kt(c) ? c.value = x : null),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ])) : tt("", true),
              T(m, {
                label: O(d)("preferShowTextMail")
              }, {
                default: $(() => [
                  T(b, {
                    value: O(o),
                    "onUpdate:value": p[3] || (p[3] = (x) => kt(o) ? o.value = x : null),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ]),
              T(m, {
                label: O(d)("useIframeShowMail")
              }, {
                default: $(() => [
                  T(b, {
                    value: O(r),
                    "onUpdate:value": p[4] || (p[4] = (x) => kt(r) ? r.value = x : null),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ]),
              T(m, {
                label: O(d)("useUTCDate")
              }, {
                default: $(() => [
                  T(b, {
                    value: O(s),
                    "onUpdate:value": p[5] || (p[5] = (x) => kt(s) ? s.value = x : null),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ]),
              O(u) ? tt("", true) : (de(), Be(m, {
                key: 2,
                label: O(d)("useSideMargin")
              }, {
                default: $(() => [
                  T(b, {
                    value: O(l),
                    "onUpdate:value": p[6] || (p[6] = (x) => kt(l) ? l.value = x : null),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ])),
              T(m, {
                label: O(d)("globalTabplacement")
              }, {
                default: $(() => [
                  T(y, {
                    value: O(a),
                    "onUpdate:value": p[7] || (p[7] = (x) => kt(a) ? a.value = x : null)
                  }, {
                    default: $(() => [
                      T(v, {
                        value: "top",
                        label: O(d)("top")
                      }, null, 8, [
                        "label"
                      ]),
                      T(v, {
                        value: "left",
                        label: O(d)("left")
                      }, null, 8, [
                        "label"
                      ]),
                      T(v, {
                        value: "right",
                        label: O(d)("right")
                      }, null, 8, [
                        "label"
                      ]),
                      T(v, {
                        value: "bottom",
                        label: O(d)("bottom")
                      }, null, 8, [
                        "label"
                      ])
                    ]),
                    _: 1
                  }, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ])
            ]),
            _: 1
          })
        ]);
      };
    }
  };
  UY = yn(WY, [
    [
      "__scopeId",
      "data-v-d45c959c"
    ]
  ]);
  VY = {
    class: "center"
  };
  qY = {
    key: 0
  };
  GY = pe({
    __name: "WebhookComponent",
    props: {
      fetchData: {
        type: Function,
        default: () => {
        },
        required: true
      },
      saveSettings: {
        type: Function,
        default: (e) => {
        },
        required: true
      },
      testSettings: {
        type: Function,
        default: (e) => {
        },
        required: true
      }
    },
    setup(e) {
      const t = e, n = Pn(), { t: r } = Ht({
        messages: {
          en: {
            successTip: "Success",
            test: "Test",
            save: "Save",
            notEnabled: "Webhook is not enabled for you",
            urlMissing: "URL is required",
            enable: "Enable",
            presets: "Presets",
            fillInDemoTip: "Please modify the URL and other settings to your own"
          },
          zh: {
            successTip: "\u6210\u529F",
            test: "\u6D4B\u8BD5",
            save: "\u4FDD\u5B58",
            notEnabled: "Webhook \u672A\u5F00\u542F\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u5F00\u542F",
            urlMissing: "URL \u4E0D\u80FD\u4E3A\u7A7A",
            enable: "\u542F\u7528",
            presets: "\u793A\u4F8B\u6A21\u677F",
            fillInDemoTip: "\u8BF7\u4FEE\u6539URL\u548C\u5176\u4ED6\u8BBE\u7F6E\u4E3A\u60A8\u81EA\u5DF1\u7684\u914D\u7F6E"
          }
        }
      });
      class o {
        constructor() {
          __publicField(this, "enabled", false);
          __publicField(this, "url", "");
          __publicField(this, "method", "POST");
          __publicField(this, "headers", JSON.stringify({}, null, 2));
          __publicField(this, "body", JSON.stringify({}, null, 2));
        }
      }
      const i = [
        {
          name: "Message Pusher",
          doc: "https://github.com/songquanpeng/message-pusher",
          settings: {
            enabled: true,
            url: "https://msgpusher.com/push/username",
            method: "POST",
            headers: JSON.stringify({
              "Content-Type": "application/json"
            }, null, 2),
            body: JSON.stringify({
              token: "token",
              title: "${subject}",
              description: "${subject}",
              content: `*\${subject}*

From: \${from}
To: \${to}

\${parsedText}
`
            }, null, 2)
          }
        },
        {
          name: "Bark",
          doc: "https://github.com/Finb/Bark",
          settings: {
            enabled: true,
            url: "https://api.day.app/YOUR_KEY",
            method: "POST",
            headers: JSON.stringify({
              "Content-Type": "application/json"
            }, null, 2),
            body: JSON.stringify({
              title: "${subject}",
              body: "From: ${from}\nTo: ${to}\n\n${parsedText}",
              group: "email"
            }, null, 2)
          }
        },
        {
          name: "ntfy",
          doc: "https://docs.ntfy.sh/publish/",
          settings: {
            enabled: true,
            url: "https://ntfy.sh/YOUR_TOPIC",
            method: "POST",
            headers: JSON.stringify({
              "Content-Type": "application/json"
            }, null, 2),
            body: JSON.stringify({
              topic: "YOUR_TOPIC",
              title: "${subject}",
              message: "From: ${from}\nTo: ${to}\n\n${parsedText}",
              tags: [
                "envelope"
              ]
            }, null, 2)
          }
        }
      ], a = i.map((p, f) => ({
        label: p.name,
        key: f
      })), l = (p) => {
        const f = i[p];
        if (!f) {
          n.error("Invalid preset");
          return;
        }
        Object.assign(s.value, f.settings), n.success(r("fillInDemoTip")), window.open(f.doc, "_blank", "noopener,noreferrer");
      }, s = L(new o()), c = L(false), u = async () => {
        try {
          const p = await t.fetchData();
          Object.assign(s.value, p), c.value = true;
        } catch (p) {
          n.error(p.message || "error");
        }
      }, d = async () => {
        if (!s.value.url) {
          n.error(r("urlMissing"));
          return;
        }
        try {
          await t.saveSettings(s.value), n.success(r("successTip"));
        } catch (p) {
          n.error(p.message || "error");
        }
      }, h = async () => {
        if (!s.value.url) {
          n.error(r("urlMissing"));
          return;
        }
        try {
          await t.testSettings(s.value), n.success(r("successTip"));
        } catch (p) {
          n.error(p.message || "error");
        }
      };
      return gt(async () => {
        await u();
      }), (p, f) => {
        const m = ht, b = Tm, v = nc, y = kd, w = oc, x = Yr, S = Qs, _ = wr, C = Sd;
        return de(), Ie("div", VY, [
          c.value ? (de(), Be(_, {
            key: 0,
            bordered: false,
            embedded: "",
            style: {
              "max-width": "800px",
              overflow: "auto"
            }
          }, {
            default: $(() => [
              T(v, {
                justify: "end"
              }, {
                default: $(() => [
                  T(b, {
                    options: O(a),
                    onSelect: l
                  }, {
                    default: $(() => [
                      T(m, {
                        secondary: ""
                      }, {
                        default: $(() => [
                          Ae(ve(O(r)("presets")), 1)
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, [
                    "options"
                  ]),
                  s.value.enabled ? (de(), Be(m, {
                    key: 0,
                    onClick: h,
                    secondary: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(r)("test")), 1)
                    ]),
                    _: 1
                  })) : tt("", true),
                  T(m, {
                    onClick: d,
                    type: "primary"
                  }, {
                    default: $(() => [
                      Ae(ve(O(r)("save")), 1)
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }),
              T(w, {
                label: O(r)("enable")
              }, {
                default: $(() => [
                  T(y, {
                    value: s.value.enabled,
                    "onUpdate:value": f[0] || (f[0] = (k) => s.value.enabled = k),
                    round: false
                  }, null, 8, [
                    "value"
                  ])
                ]),
                _: 1
              }, 8, [
                "label"
              ]),
              s.value.enabled ? (de(), Ie("div", qY, [
                T(w, {
                  label: "URL"
                }, {
                  default: $(() => [
                    T(x, {
                      value: s.value.url,
                      "onUpdate:value": f[1] || (f[1] = (k) => s.value.url = k)
                    }, null, 8, [
                      "value"
                    ])
                  ]),
                  _: 1
                }),
                T(w, {
                  label: "METHOD"
                }, {
                  default: $(() => [
                    T(S, {
                      value: s.value.method,
                      "onUpdate:value": f[2] || (f[2] = (k) => s.value.method = k),
                      tag: "",
                      options: [
                        {
                          label: "POST",
                          value: "POST"
                        }
                      ]
                    }, null, 8, [
                      "value"
                    ])
                  ]),
                  _: 1
                }),
                T(w, {
                  label: "HEADERS"
                }, {
                  default: $(() => [
                    T(x, {
                      value: s.value.headers,
                      "onUpdate:value": f[3] || (f[3] = (k) => s.value.headers = k),
                      type: "textarea",
                      autosize: {
                        minRows: 3
                      }
                    }, null, 8, [
                      "value"
                    ])
                  ]),
                  _: 1
                }),
                T(w, {
                  label: "BODY"
                }, {
                  default: $(() => [
                    T(x, {
                      value: s.value.body,
                      "onUpdate:value": f[4] || (f[4] = (k) => s.value.body = k),
                      type: "textarea",
                      autosize: {
                        minRows: 3
                      }
                    }, null, 8, [
                      "value"
                    ])
                  ]),
                  _: 1
                })
              ])) : tt("", true)
            ]),
            _: 1
          })) : (de(), Be(C, {
            key: 1,
            status: "404",
            title: O(r)("notEnabled")
          }, null, 8, [
            "title"
          ]))
        ]);
      };
    }
  });
  KY = yn(GY, [
    [
      "__scopeId",
      "data-v-f7229ace"
    ]
  ]);
  YY = pe({
    __name: "Webhook",
    setup(e) {
      const t = async () => await it.fetch("/api/webhook/settings"), n = async (o) => {
        await it.fetch("/api/webhook/settings", {
          method: "POST",
          body: JSON.stringify(o)
        });
      }, r = async (o) => {
        await it.fetch("/api/webhook/test", {
          method: "POST",
          body: JSON.stringify(o)
        });
      };
      return (o, i) => (de(), Be(KY, {
        fetchData: t,
        saveSettings: n,
        testSettings: r
      }));
    }
  });
  XY = {
    __name: "Attachment",
    setup(e) {
      const t = Pn(), { t: n } = Ht({
        messages: {
          en: {
            download: "Download",
            action: "Action",
            delete: "Delete",
            deleteConfirm: "Are you sure to delete this attachment?",
            deleteSuccess: "Deleted successfully"
          },
          zh: {
            download: "\u4E0B\u8F7D",
            action: "\u64CD\u4F5C",
            delete: "\u5220\u9664",
            deleteConfirm: "\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9644\u4EF6\u5417\uFF1F",
            deleteSuccess: "\u5220\u9664\u6210\u529F"
          }
        }
      }), r = L([]), o = L(false), i = L({}), a = L(""), l = async () => {
        try {
          const { results: c } = await it.fetch("/api/attachment/list");
          r.value = c;
        } catch (c) {
          console.log(c), t.error(c.message || "error");
        }
      }, s = [
        {
          title: "key",
          key: "key"
        },
        {
          title: n("action"),
          key: "actions",
          render(c) {
            return g("div", [
              g(ht, {
                type: "success",
                tertiary: true,
                onClick: async () => {
                  try {
                    const { url: u } = await it.fetch("/api/attachment/get_url", {
                      method: "POST",
                      body: JSON.stringify({
                        key: c.key
                      })
                    });
                    a.value = u, i.value = c, o.value = true;
                  } catch (u) {
                    console.error(u), t.error(u.message || "error");
                  }
                }
              }, {
                default: () => n("download")
              }),
              g(so, {
                onPositiveClick: async () => {
                  try {
                    await it.fetch("/api/attachment/delete", {
                      method: "POST",
                      body: JSON.stringify({
                        key: c.key
                      })
                    }), t.success(n("deleteSuccess")), await l();
                  } catch (u) {
                    console.error(u), t.error(u.message || "error");
                  }
                }
              }, {
                trigger: () => g(ht, {
                  tertiary: true,
                  type: "error"
                }, {
                  default: () => n("delete")
                }),
                default: () => n("deleteConfirm")
              })
            ]);
          }
        }
      ];
      return gt(async () => {
        await l();
      }), (c, u) => {
        const d = ki, h = ht, p = No, f = tc;
        return de(), Ie("div", null, [
          T(p, {
            show: o.value,
            "onUpdate:show": u[0] || (u[0] = (m) => o.value = m),
            preset: "dialog",
            title: O(n)("download")
          }, {
            default: $(() => [
              T(d, {
                type: "info"
              }, {
                default: $(() => [
                  Ae(ve(i.value.key), 1)
                ]),
                _: 1
              }),
              T(h, {
                tag: "a",
                target: "_blank",
                tertiary: "",
                type: "info",
                size: "small",
                download: i.value.key.replace("/", "_"),
                href: a.value
              }, {
                default: $(() => [
                  Ae(ve(O(n)("download")), 1)
                ]),
                _: 1
              }, 8, [
                "download",
                "href"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(f, {
            columns: s,
            data: r.value,
            bordered: false,
            embedded: ""
          }, null, 8, [
            "data"
          ])
        ]);
      };
    }
  };
  JY = {
    class: "center"
  };
  ZY = [
    "innerHTML"
  ];
  QY = {
    __name: "About",
    setup(e) {
      const { announcement: t } = Qt();
      return (n, r) => {
        const o = kn, i = ht, a = wr;
        return de(), Ie("div", JY, [
          T(a, {
            bordered: false,
            embedded: ""
          }, {
            default: $(() => [
              Me("div", {
                innerHTML: O(t)
              }, null, 8, ZY),
              T(i, {
                tag: "a",
                target: "_blank",
                href: "https://github.com/dreamhunter2333/cloudflare_temp_email"
              }, {
                icon: $(() => [
                  T(o, {
                    component: O(u_)
                  }, null, 8, [
                    "component"
                  ])
                ]),
                default: $(() => [
                  r[0] || (r[0] = Ae(" Github ", -1))
                ]),
                _: 1
              }),
              T(i, {
                tag: "a",
                target: "_blank",
                href: "https://discord.gg/dQEwTWhA6Q"
              }, {
                icon: $(() => [
                  T(o, {
                    component: O(cW)
                  }, null, 8, [
                    "component"
                  ])
                ]),
                default: $(() => [
                  r[1] || (r[1] = Ae(" Discord ", -1))
                ]),
                _: 1
              }),
              T(i, {
                tag: "a",
                target: "_blank",
                href: "https://t.me/cloudflare_temp_email"
              }, {
                icon: $(() => [
                  T(o, {
                    component: O(bW)
                  }, null, 8, [
                    "component"
                  ])
                ]),
                default: $(() => [
                  r[2] || (r[2] = Ae(" Telegram ", -1))
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]);
      };
    }
  };
  eX = yn(QY, [
    [
      "__scopeId",
      "data-v-709bfb8d"
    ]
  ]);
  tX = {
    class: "center"
  };
  nX = {
    key: 0
  };
  rX = {
    key: 1
  };
  oX = {
    style: {
      "text-align": "center",
      "margin-bottom": "16px",
      "font-size": "18px"
    }
  };
  iX = {
    key: 0,
    style: {
      "text-align": "center",
      "margin-top": "12px"
    }
  };
  aX = {
    key: 0
  };
  lX = {
    key: 1,
    class: "no-mail"
  };
  sX = {
    key: 2
  };
  cX = {
    key: 0
  };
  uX = {
    style: {
      "margin-top": "16px"
    }
  };
  dX = {
    __name: "SimpleIndex",
    setup(e) {
      const { jwt: t, settings: n, useSimpleIndex: r, showAddressCredential: o, openSettings: i, loading: a } = Qt(), l = Pn(), s = L(1), c = L(0), u = L(null), d = L(false), h = L(60), p = L(null), { t: f } = Ht({
        messages: {
          en: {
            exitSimpleIndex: "Exit Simple",
            copyAddress: "Copy",
            addressCopied: "Address copied successfully",
            refreshMails: "Refresh",
            noMails: "No mails found",
            prevPage: "Previous",
            nextPage: "Next",
            refreshSuccess: "Mails refreshed successfully",
            mailCount: "{current} / {total} emails",
            accountSettings: "Account Settings",
            addressCredential: "Mail Address Credential",
            addressCredentialTip: "Please copy the Mail Address Credential and you can use it to login",
            deleteSuccess: "Mail deleted successfully",
            refreshAfter: "Refresh After {msg} Seconds"
          },
          zh: {
            exitSimpleIndex: "\u9000\u51FA\u6781\u7B80",
            copyAddress: "\u590D\u5236",
            addressCopied: "\u5730\u5740\u590D\u5236\u6210\u529F",
            refreshMails: "\u5237\u65B0",
            noMails: "\u6682\u65E0\u90AE\u4EF6",
            prevPage: "\u4E0A\u4E00\u9875",
            nextPage: "\u4E0B\u4E00\u9875",
            refreshSuccess: "\u90AE\u4EF6\u5237\u65B0\u6210\u529F",
            mailCount: "{current} / {total} \u5C01\u90AE\u4EF6",
            accountSettings: "\u8D26\u6237\u8BBE\u7F6E",
            addressCredential: "\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1",
            addressCredentialTip: "\u8BF7\u590D\u5236\u90AE\u7BB1\u5730\u5740\u51ED\u8BC1\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u5B83\u767B\u5F55\u4F60\u7684\u90AE\u7BB1\u3002",
            deleteSuccess: "\u90AE\u4EF6\u5220\u9664\u6210\u529F",
            refreshAfter: "{msg}\u79D2\u540E\u5237\u65B0"
          }
        }
      }), m = async () => {
        try {
          await navigator.clipboard.writeText(n.value.address), l.success(f("addressCopied"));
        } catch {
          l.error("\u590D\u5236\u5931\u8D25");
        }
      }, b = async () => {
        if (n.value.address) try {
          const { results: P, count: B } = await it.fetch(`/api/mails?limit=1&offset=${s.value - 1}`);
          c.value = B > 0 ? B : c.value;
          const E = P && P.length > 0 ? P[0] : null;
          u.value = E ? await Z_(E) : null;
        } catch (P) {
          console.error("Failed to fetch mails:", P), l.error("\u83B7\u53D6\u90AE\u4EF6\u5931\u8D25");
        }
      }, v = async () => {
        if (u.value) try {
          await it.fetch(`/api/mails/${u.value.id}`, {
            method: "DELETE"
          }), l.success(f("deleteSuccess")), u.value = null, await y();
        } catch (P) {
          console.error("Failed to delete mail:", P), l.error("\u5220\u9664\u90AE\u4EF6\u5931\u8D25");
        }
      }, y = async () => {
        a.value || (s.value = 1, d.value = false, h.value = 60, await b(), l.success(f("refreshSuccess")));
      }, w = D(() => s.value), x = D(() => Math.max(1, c.value)), S = D(() => s.value > 1), _ = D(() => s.value < x.value), C = D(() => s.value === 1), k = async () => {
        S.value && s.value--;
      }, R = async () => {
        _.value && s.value++;
      };
      return lt(s, () => {
        b();
      }), gt(async () => {
        await it.getSettings(), await b(), p.value = setInterval(async () => {
          if (!C.value) {
            h.value = 60;
            return;
          }
          --h.value <= 0 && await y();
        }, 1e3);
      }), Zt(() => {
        clearInterval(p.value);
      }), (P, B) => {
        const E = wr, M = kn, z = ht, U = nc, ee = Km, ne = gm, ae = No;
        return de(), Ie("div", tX, [
          O(n).address ? (de(), Ie("div", rX, [
            T(E, {
              bordered: false,
              embedded: ""
            }, {
              default: $(() => [
                Me("div", oX, [
                  T(Y_, {
                    showCopy: false,
                    size: "small"
                  })
                ]),
                T(U, {
                  justify: "center"
                }, {
                  default: $(() => [
                    T(z, {
                      onClick: y,
                      loading: O(a),
                      type: "primary",
                      tertiary: "",
                      size: "small"
                    }, {
                      icon: $(() => [
                        T(M, null, {
                          default: $(() => [
                            T(O(Qj))
                          ]),
                          _: 1
                        })
                      ]),
                      default: $(() => [
                        Ae(" " + ve(O(f)("refreshMails")), 1)
                      ]),
                      _: 1
                    }, 8, [
                      "loading"
                    ]),
                    T(z, {
                      onClick: m,
                      tertiary: "",
                      size: "small"
                    }, {
                      icon: $(() => [
                        T(M, null, {
                          default: $(() => [
                            T(O(kj))
                          ]),
                          _: 1
                        })
                      ]),
                      default: $(() => [
                        Ae(" " + ve(O(f)("copyAddress")), 1)
                      ]),
                      _: 1
                    }),
                    T(z, {
                      onClick: B[0] || (B[0] = (ye) => r.value = false),
                      tertiary: "",
                      size: "small"
                    }, {
                      icon: $(() => [
                        T(M, null, {
                          default: $(() => [
                            T(O(zj))
                          ]),
                          _: 1
                        })
                      ]),
                      default: $(() => [
                        Ae(" " + ve(O(f)("exitSimpleIndex")), 1)
                      ]),
                      _: 1
                    }),
                    T(z, {
                      onClick: B[1] || (B[1] = (ye) => d.value = true),
                      tertiary: "",
                      size: "small"
                    }, {
                      icon: $(() => [
                        T(M, null, {
                          default: $(() => [
                            T(O(iW))
                          ]),
                          _: 1
                        })
                      ]),
                      default: $(() => [
                        Ae(" " + ve(O(f)("accountSettings")), 1)
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                }),
                C.value ? (de(), Ie("div", iX, [
                  T(ee, {
                    depth: "3",
                    size: "12"
                  }, {
                    default: $(() => [
                      Ae(ve(O(f)("refreshAfter", {
                        msg: Math.max(0, h.value)
                      })), 1)
                    ]),
                    _: 1
                  })
                ])) : tt("", true)
              ]),
              _: 1
            }),
            d.value ? (de(), Be(E, {
              key: 0,
              bordered: false,
              embedded: "",
              closable: "",
              onClose: B[2] || (B[2] = (ye) => d.value = false),
              title: O(f)("accountSettings")
            }, {
              default: $(() => [
                T(ik)
              ]),
              _: 1
            }, 8, [
              "title"
            ])) : (de(), Be(E, {
              key: 1,
              bordered: false,
              embedded: "",
              style: {
                "text-align": "left"
              }
            }, {
              default: $(() => [
                c.value > 1 ? (de(), Ie("div", aX, [
                  T(U, {
                    justify: "space-between"
                  }, {
                    default: $(() => [
                      T(z, {
                        onClick: k,
                        disabled: !S.value,
                        text: "",
                        size: "small"
                      }, {
                        icon: $(() => [
                          T(M, null, {
                            default: $(() => [
                              T(O(s_))
                            ]),
                            _: 1
                          })
                        ]),
                        default: $(() => [
                          Ae(" " + ve(O(f)("prevPage")), 1)
                        ]),
                        _: 1
                      }, 8, [
                        "disabled"
                      ]),
                      T(ee, {
                        size: "small"
                      }, {
                        default: $(() => [
                          Ae(ve(O(f)("mailCount", {
                            current: w.value,
                            total: c.value
                          })), 1)
                        ]),
                        _: 1
                      }),
                      T(z, {
                        onClick: R,
                        disabled: !_.value,
                        text: "",
                        size: "small",
                        "icon-placement": "right"
                      }, {
                        icon: $(() => [
                          T(M, null, {
                            default: $(() => [
                              T(O(c_))
                            ]),
                            _: 1
                          })
                        ]),
                        default: $(() => [
                          Ae(" " + ve(O(f)("nextPage")), 1)
                        ]),
                        _: 1
                      }, 8, [
                        "disabled"
                      ])
                    ]),
                    _: 1
                  })
                ])) : tt("", true),
                u.value ? (de(), Ie("div", sX, [
                  u.value.subject ? (de(), Ie("h3", cX, ve(u.value.subject), 1)) : tt("", true),
                  Me("div", uX, [
                    T(Ap, {
                      mail: u.value,
                      showEMailTo: false,
                      showReply: false,
                      enableUserDeleteEmail: O(i).enableUserDeleteEmail,
                      showSaveS3: false,
                      onDelete: v
                    }, null, 8, [
                      "mail",
                      "enableUserDeleteEmail"
                    ])
                  ])
                ])) : (de(), Ie("div", lX, [
                  T(ne, {
                    description: O(f)("noMails")
                  }, null, 8, [
                    "description"
                  ])
                ]))
              ]),
              _: 1
            }))
          ])) : (de(), Ie("div", nX, [
            T(E, {
              bordered: false,
              embedded: ""
            }, {
              default: $(() => [
                T(zl)
              ]),
              _: 1
            })
          ])),
          T(ae, {
            show: O(o),
            "onUpdate:show": B[3] || (B[3] = (ye) => kt(o) ? o.value = ye : null),
            preset: "dialog",
            title: O(f)("addressCredential")
          }, {
            default: $(() => [
              Me("span", null, [
                Me("p", null, ve(O(f)("addressCredentialTip")), 1)
              ]),
              T(E, {
                embedded: ""
              }, {
                default: $(() => [
                  Me("b", null, ve(O(t)), 1)
                ]),
                _: 1
              })
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ]);
      };
    }
  };
  fX = yn(dX, [
    [
      "__scopeId",
      "data-v-bae9495d"
    ]
  ]);
  hX = {
    key: 0
  };
  pX = {
    key: 1
  };
  mX = {
    key: 0,
    style: {
      "margin-bottom": "10px"
    }
  };
  gX = {
    __name: "Index",
    setup(e) {
      const { loading: t, settings: n, openSettings: r, indexTab: o, globalTabplacement: i, useSimpleIndex: a } = Qt(), l = Pn(), s = ag(), c = Dl(), u = D3(() => (t.value = true, yl(() => import("./SendMail-BZn2VeiJ.js"), __vite__mapDeps([0,1,2,3])).finally(() => t.value = false))), { t: d } = Ht({
        messages: {
          en: {
            mailbox: "Mail Box",
            sendbox: "Send Box",
            sendmail: "Send Mail",
            auto_reply: "Auto Reply",
            accountSettings: "Account Settings",
            appearance: "Appearance",
            about: "About",
            s3Attachment: "S3 Attachment",
            saveToS3Success: "save to s3 success",
            webhookSettings: "Webhook Settings",
            query: "Query",
            enterSimpleMode: "Simple Mode"
          },
          zh: {
            mailbox: "\u6536\u4EF6\u7BB1",
            sendbox: "\u53D1\u4EF6\u7BB1",
            sendmail: "\u53D1\u9001\u90AE\u4EF6",
            auto_reply: "\u81EA\u52A8\u56DE\u590D",
            accountSettings: "\u8D26\u6237",
            appearance: "\u5916\u89C2",
            about: "\u5173\u4E8E",
            s3Attachment: "S3\u9644\u4EF6",
            saveToS3Success: "\u4FDD\u5B58\u5230s3\u6210\u529F",
            webhookSettings: "Webhook \u8BBE\u7F6E",
            query: "\u67E5\u8BE2",
            enterSimpleMode: "\u6781\u7B80\u6A21\u5F0F"
          }
        }
      }), h = async (S, _) => {
        if (y.value > 0) {
          const C = await it.fetch(`/api/mail/${y.value}`);
          return C ? {
            results: [
              C
            ],
            count: 1
          } : {
            results: [],
            count: 0
          };
        }
        return await it.fetch(`/api/mails?limit=${S}&offset=${_}`);
      }, p = async (S) => {
        await it.fetch(`/api/mails/${S}`, {
          method: "DELETE"
        });
      }, f = async (S) => {
        await it.fetch(`/api/sendbox/${S}`, {
          method: "DELETE"
        });
      }, m = async (S, _) => await it.fetch(`/api/sendbox?limit=${S}&offset=${_}`), b = async (S, _, C) => {
        try {
          const { url: k } = await it.fetch("/api/attachment/put_url", {
            method: "POST",
            body: JSON.stringify({
              key: `${S}/${_}`
            })
          }), R = new FormData();
          R.append(_, C), await fetch(k, {
            method: "PUT",
            body: R
          }), l.success(d("saveToS3Success"));
        } catch (k) {
          console.error(k), l.error(k.message || "save to s3 error");
        }
      }, v = L(""), y = L(""), w = L(false), x = () => {
        v.value = Date.now();
      };
      return lt(s, () => {
        s.query.mail_id || (w.value = false, y.value = "", x());
      }), gt(() => {
        s.query.mail_id && (w.value = true, y.value = s.query.mail_id, x());
      }), (S, _) => {
        const C = kn, k = ht, R = Yr, P = gd, B = Pa, E = Da;
        return de(), Ie("div", null, [
          O(a) ? (de(), Ie("div", hX, [
            T(fX)
          ])) : (de(), Ie("div", pX, [
            T(cK),
            O(n).address ? (de(), Be(E, {
              key: 0,
              type: "card",
              value: O(o),
              "onUpdate:value": _[2] || (_[2] = (M) => kt(o) ? o.value = M : null),
              placement: O(i)
            }, Zu({
              default: $(() => [
                T(B, {
                  name: "mailbox",
                  tab: O(d)("mailbox")
                }, {
                  default: $(() => [
                    O(w) ? (de(), Ie("div", mX, [
                      T(P, null, {
                        default: $(() => [
                          T(R, {
                            value: O(y),
                            "onUpdate:value": _[1] || (_[1] = (M) => kt(y) ? y.value = M : null)
                          }, null, 8, [
                            "value"
                          ]),
                          T(k, {
                            onClick: x,
                            type: "primary",
                            tertiary: ""
                          }, {
                            default: $(() => [
                              Ae(ve(O(d)("query")), 1)
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      })
                    ])) : tt("", true),
                    (de(), Be(ok, {
                      key: O(v),
                      showEMailTo: false,
                      showReply: O(r).enableSendMail,
                      showSaveS3: O(r).isS3Enabled,
                      saveToS3: b,
                      enableUserDeleteEmail: O(r).enableUserDeleteEmail,
                      fetchMailData: h,
                      deleteMail: p,
                      showFilterInput: true
                    }, null, 8, [
                      "showReply",
                      "showSaveS3",
                      "enableUserDeleteEmail"
                    ]))
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ]),
                O(r).enableSendMail ? (de(), Be(B, {
                  key: 0,
                  name: "sendbox",
                  tab: O(d)("sendbox")
                }, {
                  default: $(() => [
                    T(OY, {
                      fetchMailData: m,
                      enableUserDeleteEmail: O(r).enableUserDeleteEmail,
                      deleteMail: f
                    }, null, 8, [
                      "enableUserDeleteEmail"
                    ])
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true),
                O(r).enableSendMail ? (de(), Be(B, {
                  key: 1,
                  name: "sendmail",
                  tab: O(d)("sendmail")
                }, {
                  default: $(() => [
                    T(O(u))
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true),
                T(B, {
                  name: "accountSettings",
                  tab: O(d)("accountSettings")
                }, {
                  default: $(() => [
                    T(ik)
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ]),
                T(B, {
                  name: "appearance",
                  tab: O(d)("appearance")
                }, {
                  default: $(() => [
                    T(UY, {
                      showUseSimpleIndex: true
                    })
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ]),
                O(r).enableAutoReply ? (de(), Be(B, {
                  key: 2,
                  name: "auto_reply",
                  tab: O(d)("auto_reply")
                }, {
                  default: $(() => [
                    T(BY)
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true),
                O(r).enableWebhook ? (de(), Be(B, {
                  key: 3,
                  name: "webhook",
                  tab: O(d)("webhookSettings")
                }, {
                  default: $(() => [
                    T(YY)
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true),
                O(r).isS3Enabled ? (de(), Be(B, {
                  key: 4,
                  name: "s3_attachment",
                  tab: O(d)("s3Attachment")
                }, {
                  default: $(() => [
                    T(XY)
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true),
                O(r).enableIndexAbout ? (de(), Be(B, {
                  key: 5,
                  name: "about",
                  tab: O(d)("about")
                }, {
                  default: $(() => [
                    T(eX)
                  ]),
                  _: 1
                }, 8, [
                  "tab"
                ])) : tt("", true)
              ]),
              _: 2
            }, [
              O(c) ? void 0 : {
                name: "prefix",
                fn: $(() => [
                  T(k, {
                    onClick: _[0] || (_[0] = (M) => a.value = true),
                    tertiary: "",
                    size: "small"
                  }, {
                    icon: $(() => [
                      T(C, null, {
                        default: $(() => [
                          T(O(Mj))
                        ]),
                        _: 1
                      })
                    ]),
                    default: $(() => [
                      Ae(" " + ve(O(d)("enterSimpleMode")), 1)
                    ]),
                    _: 1
                  })
                ]),
                key: "0"
              }
            ]), 1032, [
              "value",
              "placement"
            ])) : tt("", true)
          ]))
        ]);
      };
    }
  };
  function Ao(e) {
    const t = new Uint8Array(e);
    let n = "";
    for (const o of t) n += String.fromCharCode(o);
    return btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
  }
  function Nu(e) {
    const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = (4 - t.length % 4) % 4, r = t.padEnd(t.length + n, "="), o = atob(r), i = new ArrayBuffer(o.length), a = new Uint8Array(i);
    for (let l = 0; l < o.length; l++) a[l] = o.charCodeAt(l);
    return i;
  }
  function mg() {
    return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
  }
  function ak(e) {
    const { id: t } = e;
    return {
      ...e,
      id: Nu(t),
      transports: e.transports
    };
  }
  function lk(e) {
    return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
  }
  class Jn extends Error {
    constructor({ message: t, code: n, cause: r, name: o }) {
      super(t, {
        cause: r
      }), this.name = o ?? r.name, this.code = n;
    }
  }
  function vX({ error: e, options: t }) {
    var _a2, _b2;
    const { publicKey: n } = t;
    if (!n) throw Error("options was missing required publicKey property");
    if (e.name === "AbortError") {
      if (t.signal instanceof AbortSignal) return new Jn({
        message: "Registration ceremony was sent an abort signal",
        code: "ERROR_CEREMONY_ABORTED",
        cause: e
      });
    } else if (e.name === "ConstraintError") {
      if (((_a2 = n.authenticatorSelection) == null ? void 0 : _a2.requireResidentKey) === true) return new Jn({
        message: "Discoverable credentials were required but no available authenticator supported it",
        code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
        cause: e
      });
      if (((_b2 = n.authenticatorSelection) == null ? void 0 : _b2.userVerification) === "required") return new Jn({
        message: "User verification was required but no available authenticator supported it",
        code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
        cause: e
      });
    } else {
      if (e.name === "InvalidStateError") return new Jn({
        message: "The authenticator was previously registered",
        code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
        cause: e
      });
      if (e.name === "NotAllowedError") return new Jn({
        message: e.message,
        code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
        cause: e
      });
      if (e.name === "NotSupportedError") return n.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new Jn({
        message: 'No entry in pubKeyCredParams was of type "public-key"',
        code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
        cause: e
      }) : new Jn({
        message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
        code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
        cause: e
      });
      if (e.name === "SecurityError") {
        const r = window.location.hostname;
        if (lk(r)) {
          if (n.rp.id !== r) return new Jn({
            message: `The RP ID "${n.rp.id}" is invalid for this domain`,
            code: "ERROR_INVALID_RP_ID",
            cause: e
          });
        } else return new Jn({
          message: `${window.location.hostname} is an invalid domain`,
          code: "ERROR_INVALID_DOMAIN",
          cause: e
        });
      } else if (e.name === "TypeError") {
        if (n.user.id.byteLength < 1 || n.user.id.byteLength > 64) return new Jn({
          message: "User ID was not between 1 and 64 characters",
          code: "ERROR_INVALID_USER_ID_LENGTH",
          cause: e
        });
      } else if (e.name === "UnknownError") return new Jn({
        message: "The authenticator was unable to process the specified options, or could not create a new credential",
        code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
        cause: e
      });
    }
    return e;
  }
  class bX {
    createNewAbortSignal() {
      if (this.controller) {
        const n = new Error("Cancelling existing WebAuthn API call for new one");
        n.name = "AbortError", this.controller.abort(n);
      }
      const t = new AbortController();
      return this.controller = t, t.signal;
    }
    cancelCeremony() {
      if (this.controller) {
        const t = new Error("Manually cancelling existing WebAuthn API call");
        t.name = "AbortError", this.controller.abort(t), this.controller = void 0;
      }
    }
  }
  const sk = new bX(), yX = [
    "cross-platform",
    "platform"
  ];
  function ck(e) {
    if (e && !(yX.indexOf(e) < 0)) return e;
  }
  async function xX(e) {
    var _a2;
    if (!mg()) throw new Error("WebAuthn is not supported in this browser");
    const n = {
      publicKey: {
        ...e,
        challenge: Nu(e.challenge),
        user: {
          ...e.user,
          id: Nu(e.user.id)
        },
        excludeCredentials: (_a2 = e.excludeCredentials) == null ? void 0 : _a2.map(ak)
      }
    };
    n.signal = sk.createNewAbortSignal();
    let r;
    try {
      r = await navigator.credentials.create(n);
    } catch (h) {
      throw vX({
        error: h,
        options: n
      });
    }
    if (!r) throw new Error("Registration was not completed");
    const { id: o, rawId: i, response: a, type: l } = r;
    let s;
    typeof a.getTransports == "function" && (s = a.getTransports());
    let c;
    if (typeof a.getPublicKeyAlgorithm == "function") try {
      c = a.getPublicKeyAlgorithm();
    } catch (h) {
      oh("getPublicKeyAlgorithm()", h);
    }
    let u;
    if (typeof a.getPublicKey == "function") try {
      const h = a.getPublicKey();
      h !== null && (u = Ao(h));
    } catch (h) {
      oh("getPublicKey()", h);
    }
    let d;
    if (typeof a.getAuthenticatorData == "function") try {
      d = Ao(a.getAuthenticatorData());
    } catch (h) {
      oh("getAuthenticatorData()", h);
    }
    return {
      id: o,
      rawId: Ao(i),
      response: {
        attestationObject: Ao(a.attestationObject),
        clientDataJSON: Ao(a.clientDataJSON),
        transports: s,
        publicKeyAlgorithm: c,
        publicKey: u,
        authenticatorData: d
      },
      type: l,
      clientExtensionResults: r.getClientExtensionResults(),
      authenticatorAttachment: ck(r.authenticatorAttachment)
    };
  }
  function oh(e, t) {
    console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
`, t);
  }
  function wX() {
    if (!mg()) return new Promise((t) => t(false));
    const e = window.PublicKeyCredential;
    return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(false)) : e.isConditionalMediationAvailable();
  }
  function CX({ error: e, options: t }) {
    const { publicKey: n } = t;
    if (!n) throw Error("options was missing required publicKey property");
    if (e.name === "AbortError") {
      if (t.signal instanceof AbortSignal) return new Jn({
        message: "Authentication ceremony was sent an abort signal",
        code: "ERROR_CEREMONY_ABORTED",
        cause: e
      });
    } else {
      if (e.name === "NotAllowedError") return new Jn({
        message: e.message,
        code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
        cause: e
      });
      if (e.name === "SecurityError") {
        const r = window.location.hostname;
        if (lk(r)) {
          if (n.rpId !== r) return new Jn({
            message: `The RP ID "${n.rpId}" is invalid for this domain`,
            code: "ERROR_INVALID_RP_ID",
            cause: e
          });
        } else return new Jn({
          message: `${window.location.hostname} is an invalid domain`,
          code: "ERROR_INVALID_DOMAIN",
          cause: e
        });
      } else if (e.name === "UnknownError") return new Jn({
        message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
        code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
        cause: e
      });
    }
    return e;
  }
  async function SX(e, t = false) {
    var _a2, _b2;
    if (!mg()) throw new Error("WebAuthn is not supported in this browser");
    let n;
    ((_a2 = e.allowCredentials) == null ? void 0 : _a2.length) !== 0 && (n = (_b2 = e.allowCredentials) == null ? void 0 : _b2.map(ak));
    const r = {
      ...e,
      challenge: Nu(e.challenge),
      allowCredentials: n
    }, o = {};
    if (t) {
      if (!await wX()) throw Error("Browser does not support WebAuthn autofill");
      if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1) throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
      o.mediation = "conditional", r.allowCredentials = [];
    }
    o.publicKey = r, o.signal = sk.createNewAbortSignal();
    let i;
    try {
      i = await navigator.credentials.get(o);
    } catch (d) {
      throw CX({
        error: d,
        options: o
      });
    }
    if (!i) throw new Error("Authentication was not completed");
    const { id: a, rawId: l, response: s, type: c } = i;
    let u;
    return s.userHandle && (u = Ao(s.userHandle)), {
      id: a,
      rawId: Ao(l),
      response: {
        authenticatorData: Ao(s.authenticatorData),
        clientDataJSON: Ao(s.clientDataJSON),
        signature: Ao(s.signature),
        userHandle: u
      },
      type: c,
      clientExtensionResults: i.getClientExtensionResults(),
      authenticatorAttachment: ck(i.authenticatorAttachment)
    };
  }
  const _X = {
    key: 0,
    class: "center"
  }, kX = {
    __name: "UserSettings",
    setup(e) {
      const { userJwt: t, userSettings: n } = Qt(), r = Pn(), o = L(false), i = L(false), a = L(""), l = L(false), s = L(false), c = L(null), u = L(""), { t: d } = Ht({
        messages: {
          en: {
            logout: "Logout",
            logoutConfirm: "Are you sure you want to logout?",
            passordTip: "The server will only receive the hash value of the password, and will not receive the plaintext password, so it cannot view or retrieve your password. If the administrator enables email verification, you can reset the password in incognito mode",
            createPasskey: "Create Passkey",
            showPasskeyList: "Show Passkey List",
            passkeyCreated: "Passkey created successfully",
            passkeyNamePlaceholder: "Please enter the passkey name or leave it empty to generate a random one",
            renamePasskey: "Rename Passkey",
            deletePasskey: "Delete Passkey",
            passkey_name: "Passkey Name",
            created_at: "Created At",
            updated_at: "Updated At",
            actions: "Actions",
            renamePasskey: "Rename Passkey",
            renamePasskeyNamePlaceholder: "Please enter the new passkey name"
          },
          zh: {
            logout: "\u9000\u51FA\u767B\u5F55",
            logoutConfirm: "\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F",
            passordTip: "\u670D\u52A1\u5668\u53EA\u4F1A\u63A5\u6536\u5230\u5BC6\u7801\u7684\u54C8\u5E0C\u503C\uFF0C\u4E0D\u4F1A\u63A5\u6536\u5230\u660E\u6587\u5BC6\u7801\uFF0C\u56E0\u6B64\u65E0\u6CD5\u67E5\u770B\u6216\u8005\u627E\u56DE\u60A8\u7684\u5BC6\u7801, \u5982\u679C\u7BA1\u7406\u5458\u542F\u7528\u4E86\u90AE\u4EF6\u9A8C\u8BC1\u60A8\u53EF\u4EE5\u5728\u65E0\u75D5\u6A21\u5F0F\u91CD\u7F6E\u5BC6\u7801",
            createPasskey: "\u521B\u5EFA Passkey",
            showPasskeyList: "\u67E5\u770B Passkey \u5217\u8868",
            passkeyCreated: "Passkey \u521B\u5EFA\u6210\u529F",
            passkeyNamePlaceholder: "\u8BF7\u8F93\u5165 Passkey \u540D\u79F0\u6216\u8005\u7559\u7A7A\u81EA\u52A8\u751F\u6210",
            renamePasskey: "\u91CD\u547D\u540D Passkey",
            deletePasskey: "\u5220\u9664 Passkey",
            passkey_name: "Passkey \u540D\u79F0",
            created_at: "\u521B\u5EFA\u65F6\u95F4",
            updated_at: "\u66F4\u65B0\u65F6\u95F4",
            actions: "\u64CD\u4F5C",
            renamePasskey: "\u91CD\u547D\u540D Passkey",
            renamePasskeyNamePlaceholder: "\u8BF7\u8F93\u5165\u65B0\u7684 Passkey \u540D\u79F0"
          }
        }
      }), h = async () => {
        t.value = "", location.reload();
      }, p = async () => {
        var _a2;
        try {
          const y = await it.fetch("/user_api/passkey/register_request", {
            method: "POST",
            body: JSON.stringify({
              domain: location.hostname
            })
          }), w = await xX(y);
          await it.fetch("/user_api/passkey/register_response", {
            method: "POST",
            body: JSON.stringify({
              origin: location.origin,
              passkey_name: a.value || (((_a2 = window.navigator.userAgentData) == null ? void 0 : _a2.platform) || "Unknown") + ": " + Math.random().toString(36).substring(7),
              credential: w
            })
          }), r.success(d("passkeyCreated"));
        } catch (y) {
          console.error(y), r.error(y.message);
        } finally {
          a.value = "", i.value = false;
        }
      }, f = [
        {
          title: "Passkey ID",
          key: "passkey_id"
        },
        {
          title: d("passkey_name"),
          key: "passkey_name"
        },
        {
          title: d("created_at"),
          key: "created_at"
        },
        {
          title: d("updated_at"),
          key: "updated_at"
        },
        {
          title: d("actions"),
          key: "actions",
          render(y) {
            return g("div", [
              [
                g(ht, {
                  tertiary: true,
                  type: "primary",
                  onClick: () => {
                    s.value = true, c.value = y.passkey_id;
                  }
                }, {
                  default: () => d("renamePasskey")
                }),
                g(so, {
                  onPositiveClick: async () => {
                    try {
                      await it.fetch(`/user_api/passkey/${y.passkey_id}`, {
                        method: "DELETE"
                      }), await b();
                    } catch (w) {
                      console.error(w), r.error(w.message);
                    }
                  }
                }, {
                  trigger: () => g(ht, {
                    tertiary: true,
                    type: "error"
                  }, {
                    default: () => d("deletePasskey")
                  }),
                  default: () => `${d("deletePasskey")}?`
                })
              ]
            ]);
          }
        }
      ], m = L([]), b = async () => {
        try {
          const y = await it.fetch("/user_api/passkey");
          m.value = y;
        } catch (y) {
          console.error(y), r.error(y.message);
        }
      }, v = async () => {
        try {
          await it.fetch("/user_api/passkey/rename", {
            method: "POST",
            body: JSON.stringify({
              passkey_name: u.value,
              passkey_id: c.value
            })
          }), await b();
        } catch (y) {
          console.error(y), r.error(y.message);
        } finally {
          u.value = "", s.value = false;
        }
      };
      return (y, w) => {
        const x = Fi, S = wr, _ = Yr, C = No, k = tc;
        return O(n).user_email ? (de(), Ie("div", _X, [
          T(S, {
            bordered: false,
            embedded: ""
          }, {
            default: $(() => [
              T(O(ht), {
                onClick: w[0] || (w[0] = (R) => {
                  l.value = true, b();
                }),
                secondary: "",
                block: "",
                strong: ""
              }, {
                default: $(() => [
                  Ae(ve(O(d)("showPasskeyList")), 1)
                ]),
                _: 1
              }),
              T(O(ht), {
                onClick: w[1] || (w[1] = (R) => i.value = true),
                type: "primary",
                secondary: "",
                block: "",
                strong: ""
              }, {
                default: $(() => [
                  Ae(ve(O(d)("createPasskey")), 1)
                ]),
                _: 1
              }),
              T(x, {
                "show-icon": false,
                bordered: false
              }, {
                default: $(() => [
                  Me("span", null, ve(O(d)("passordTip")), 1)
                ]),
                _: 1
              }),
              T(O(ht), {
                onClick: w[2] || (w[2] = (R) => o.value = true),
                secondary: "",
                block: "",
                strong: ""
              }, {
                default: $(() => [
                  Ae(ve(O(d)("logout")), 1)
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          T(C, {
            show: i.value,
            "onUpdate:show": w[4] || (w[4] = (R) => i.value = R),
            preset: "dialog",
            title: O(d)("createPasskey")
          }, {
            action: $(() => [
              T(O(ht), {
                loading: y.loading,
                onClick: p,
                size: "small",
                tertiary: "",
                type: "primary"
              }, {
                default: $(() => [
                  Ae(ve(O(d)("createPasskey")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              T(_, {
                value: a.value,
                "onUpdate:value": w[3] || (w[3] = (R) => a.value = R),
                placeholder: O(d)("passkeyNamePlaceholder")
              }, null, 8, [
                "value",
                "placeholder"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(C, {
            show: s.value,
            "onUpdate:show": w[6] || (w[6] = (R) => s.value = R),
            preset: "dialog",
            title: O(d)("renamePasskey")
          }, {
            action: $(() => [
              T(O(ht), {
                loading: y.loading,
                onClick: v,
                size: "small",
                tertiary: "",
                type: "primary"
              }, {
                default: $(() => [
                  Ae(ve(O(d)("renamePasskey")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              T(_, {
                value: u.value,
                "onUpdate:value": w[5] || (w[5] = (R) => u.value = R),
                placeholder: O(d)("renamePasskeyNamePlaceholder")
              }, null, 8, [
                "value",
                "placeholder"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(C, {
            show: l.value,
            "onUpdate:show": w[7] || (w[7] = (R) => l.value = R),
            preset: "card",
            title: O(d)("showPasskeyList")
          }, {
            default: $(() => [
              T(k, {
                columns: f,
                data: m.value,
                bordered: false,
                embedded: ""
              }, null, 8, [
                "data"
              ])
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ]),
          T(C, {
            show: o.value,
            "onUpdate:show": w[8] || (w[8] = (R) => o.value = R),
            preset: "dialog",
            title: O(d)("logout")
          }, {
            action: $(() => [
              T(O(ht), {
                loading: y.loading,
                onClick: h,
                size: "small",
                tertiary: "",
                type: "warning"
              }, {
                default: $(() => [
                  Ae(ve(O(d)("logout")), 1)
                ]),
                _: 1
              }, 8, [
                "loading"
              ])
            ]),
            default: $(() => [
              Me("p", null, ve(O(d)("logoutConfirm")), 1)
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ])) : tt("", true);
      };
    }
  }, RX = yn(kX, [
    [
      "__scopeId",
      "data-v-128c1f0f"
    ]
  ]), AX = {
    class: "center"
  }, EX = [
    "innerHTML"
  ], TX = {
    __name: "UserLogin",
    setup(e) {
      const { userJwt: t, userOpenSettings: n, openSettings: r, userOauth2SessionState: o, userOauth2SessionClientID: i } = Qt(), a = Pn(), { t: l } = Ht({
        messages: {
          en: {
            login: "Login",
            register: "Register",
            email: "Email",
            password: "Password",
            verifyCode: "Verification Code",
            verifyCodeSent: "Verification Code Sent, expires in {timeout} seconds",
            waitforVerifyCode: "Wait for {timeout} seconds",
            sendVerificationCode: "Send Verification Code",
            forgotPassword: "Forgot Password",
            cannotForgotPassword: "Mail verification is disabled or register is disabled, cannot reset password, please contact administrator",
            resetPassword: "Reset Password",
            pleaseInput: "Please input email and password",
            pleaseInputEmail: "Please input email",
            pleaseInputCode: "Please input code",
            pleaseCompleteTurnstile: "Please complete turnstile",
            pleaseLogin: "Please login",
            loginWithPasskey: "Login with Passkey",
            loginWith: "Login with {provider}"
          },
          zh: {
            login: "\u767B\u5F55",
            register: "\u6CE8\u518C",
            email: "\u90AE\u7BB1",
            password: "\u5BC6\u7801",
            verifyCode: "\u9A8C\u8BC1\u7801",
            sendVerificationCode: "\u53D1\u9001\u9A8C\u8BC1\u7801",
            verifyCodeSent: "\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001, {timeout} \u79D2\u540E\u5931\u6548",
            waitforVerifyCode: "\u7B49\u5F85{timeout}\u79D2",
            forgotPassword: "\u5FD8\u8BB0\u5BC6\u7801",
            cannotForgotPassword: "\u672A\u5F00\u542F\u90AE\u7BB1\u9A8C\u8BC1\u6216\u672A\u5F00\u542F\u6CE8\u518C\u529F\u80FD\uFF0C\u65E0\u6CD5\u91CD\u7F6E\u5BC6\u7801\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",
            resetPassword: "\u91CD\u7F6E\u5BC6\u7801",
            pleaseInput: "\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u5BC6\u7801",
            pleaseInputEmail: "\u8BF7\u8F93\u5165\u90AE\u7BB1",
            pleaseInputCode: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",
            pleaseCompleteTurnstile: "\u8BF7\u5B8C\u6210\u4EBA\u673A\u9A8C\u8BC1",
            pleaseLogin: "\u8BF7\u767B\u5F55",
            loginWithPasskey: "\u4F7F\u7528 Passkey \u767B\u5F55",
            loginWith: "\u4F7F\u7528 {provider} \u767B\u5F55"
          }
        }
      }), s = L("signin"), c = L(false), u = L({
        email: "",
        password: "",
        code: ""
      }), d = L(""), h = async () => {
        if (!u.value.email || !u.value.password) {
          a.error(l("pleaseInput"));
          return;
        }
        try {
          const x = await it.fetch("/user_api/login", {
            method: "POST",
            body: JSON.stringify({
              email: u.value.email,
              password: await Lu(u.value.password)
            })
          });
          t.value = x.jwt, location.reload();
        } catch (x) {
          a.error(x.message || "login failed");
        }
      }, p = L(0), f = L(0), m = () => !p.value || p.value < (/* @__PURE__ */ new Date()).getTime() ? 0 : Math.round((p.value - (/* @__PURE__ */ new Date()).getTime()) / 1e3), b = async () => {
        if (!u.value.email) {
          a.error(l("pleaseInputEmail"));
          return;
        }
        if (r.value.cfTurnstileSiteKey && !d.value && n.value.enableMailVerify) {
          a.error(l("pleaseCompleteTurnstile"));
          return;
        }
        try {
          const x = await it.fetch("/user_api/verify_code", {
            method: "POST",
            body: JSON.stringify({
              email: u.value.email,
              cf_token: d.value
            })
          });
          if (x && x.expirationTtl) {
            a.success(l("verifyCodeSent", {
              timeout: x.expirationTtl
            })), p.value = (/* @__PURE__ */ new Date()).getTime() + x.expirationTtl * 1e3;
            const S = setInterval(() => {
              f.value = m(), f.value <= 0 && (clearInterval(S), f.value = 0);
            }, 1e3);
          }
        } catch (x) {
          a.error(x.message || "send verification code failed");
        }
      }, v = async () => {
        if (!u.value.email || !u.value.password) {
          a.error(l("pleaseInput"));
          return;
        }
        if (!u.value.code && n.value.enableMailVerify) {
          a.error(l("pleaseInputCode"));
          return;
        }
        try {
          await it.fetch("/user_api/register", {
            method: "POST",
            body: JSON.stringify({
              email: u.value.email,
              password: await Lu(u.value.password),
              code: u.value.code
            }),
            message: a
          }) && (s.value = "signin", a.success(l("pleaseLogin"))), c.value = false;
        } catch (x) {
          a.error(x.message || "register failed");
        }
      }, y = async () => {
        try {
          const x = await it.fetch("/user_api/passkey/authenticate_request", {
            method: "POST",
            body: JSON.stringify({
              domain: location.hostname
            })
          }), S = await SX(x), _ = await it.fetch("/user_api/passkey/authenticate_response", {
            method: "POST",
            body: JSON.stringify({
              origin: location.origin,
              domain: location.hostname,
              credential: S
            })
          });
          t.value = _.jwt, location.reload();
        } catch (x) {
          console.error(x), a.error(x.message);
        }
      }, w = async (x) => {
        try {
          i.value = x, o.value = Math.random().toString(36).substring(2);
          const S = await it.fetch(`/user_api/oauth2/login_url?clientID=${x}&state=${o.value}`);
          location.href = S.url;
        } catch (S) {
          a.error(S.message || "login failed");
        }
      };
      return gt(async () => {
      }), (x, S) => {
        const _ = Yr, C = oc, k = ht, R = zm, P = kn, B = Om, E = Pa, M = gd, z = Da, U = Fi, ee = No;
        return de(), Ie("div", AX, [
          O(n).fetched ? (de(), Be(z, {
            key: 0,
            value: s.value,
            "onUpdate:value": S[7] || (S[7] = (ne) => s.value = ne),
            size: "large",
            "justify-content": "space-evenly"
          }, {
            default: $(() => [
              T(E, {
                name: "signin",
                tab: O(l)("login")
              }, {
                default: $(() => [
                  T(B, null, {
                    default: $(() => [
                      T(C, {
                        label: O(l)("email"),
                        required: ""
                      }, {
                        default: $(() => [
                          T(_, {
                            value: u.value.email,
                            "onUpdate:value": S[0] || (S[0] = (ne) => u.value.email = ne)
                          }, null, 8, [
                            "value"
                          ])
                        ]),
                        _: 1
                      }, 8, [
                        "label"
                      ]),
                      T(C, {
                        label: O(l)("password"),
                        required: ""
                      }, {
                        default: $(() => [
                          T(_, {
                            value: u.value.password,
                            "onUpdate:value": S[1] || (S[1] = (ne) => u.value.password = ne),
                            type: "password",
                            "show-password-on": "click"
                          }, null, 8, [
                            "value"
                          ])
                        ]),
                        _: 1
                      }, 8, [
                        "label"
                      ]),
                      T(k, {
                        onClick: h,
                        type: "primary",
                        block: "",
                        secondary: "",
                        strong: ""
                      }, {
                        default: $(() => [
                          Ae(ve(O(l)("login")), 1)
                        ]),
                        _: 1
                      }),
                      T(k, {
                        onClick: S[2] || (S[2] = (ne) => c.value = true),
                        type: "info",
                        quaternary: "",
                        size: "tiny"
                      }, {
                        default: $(() => [
                          Ae(ve(O(l)("forgotPassword")), 1)
                        ]),
                        _: 1
                      }),
                      T(R),
                      T(k, {
                        onClick: y,
                        type: "primary",
                        block: "",
                        secondary: "",
                        strong: ""
                      }, {
                        icon: $(() => [
                          T(P, {
                            component: O(Wj)
                          }, null, 8, [
                            "component"
                          ])
                        ]),
                        default: $(() => [
                          Ae(" " + ve(O(l)("loginWithPasskey")), 1)
                        ]),
                        _: 1
                      }),
                      (de(true), Ie(wt, null, ol(O(n).oauth2ClientIDs, (ne) => (de(), Be(k, {
                        onClick: (ae) => w(ne.clientID),
                        key: ne.clientID,
                        block: "",
                        secondary: "",
                        strong: ""
                      }, Zu({
                        default: $(() => [
                          Ae(" " + ve(O(l)("loginWith", {
                            provider: ne.name
                          })), 1)
                        ]),
                        _: 2
                      }, [
                        ne.icon ? {
                          name: "icon",
                          fn: $(() => [
                            Me("span", {
                              class: "oauth2-icon",
                              innerHTML: ne.icon
                            }, null, 8, EX)
                          ]),
                          key: "0"
                        } : void 0
                      ]), 1032, [
                        "onClick"
                      ]))), 128))
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              O(n).enable ? (de(), Be(E, {
                key: 0,
                name: "signup",
                tab: O(l)("register")
              }, {
                default: $(() => [
                  T(B, null, {
                    default: $(() => [
                      T(C, {
                        label: O(l)("email"),
                        required: ""
                      }, {
                        default: $(() => [
                          T(_, {
                            value: u.value.email,
                            "onUpdate:value": S[3] || (S[3] = (ne) => u.value.email = ne)
                          }, null, 8, [
                            "value"
                          ])
                        ]),
                        _: 1
                      }, 8, [
                        "label"
                      ]),
                      T(C, {
                        label: O(l)("password"),
                        required: ""
                      }, {
                        default: $(() => [
                          T(_, {
                            value: u.value.password,
                            "onUpdate:value": S[4] || (S[4] = (ne) => u.value.password = ne),
                            type: "password",
                            "show-password-on": "click"
                          }, null, 8, [
                            "value"
                          ])
                        ]),
                        _: 1
                      }, 8, [
                        "label"
                      ]),
                      O(n).enableMailVerify ? (de(), Be(wp, {
                        key: 0,
                        value: d.value,
                        "onUpdate:value": S[5] || (S[5] = (ne) => d.value = ne)
                      }, null, 8, [
                        "value"
                      ])) : tt("", true),
                      O(n).enableMailVerify ? (de(), Be(C, {
                        key: 1,
                        label: O(l)("verifyCode"),
                        required: ""
                      }, {
                        default: $(() => [
                          T(M, null, {
                            default: $(() => [
                              T(_, {
                                value: u.value.code,
                                "onUpdate:value": S[6] || (S[6] = (ne) => u.value.code = ne)
                              }, null, 8, [
                                "value"
                              ]),
                              T(k, {
                                onClick: b,
                                style: {
                                  "margin-bottom": "0"
                                },
                                type: "primary",
                                ghost: "",
                                disabled: f.value > 0
                              }, {
                                default: $(() => [
                                  Ae(ve(f.value > 0 ? O(l)("waitforVerifyCode", {
                                    timeout: f.value
                                  }) : O(l)("sendVerificationCode")), 1)
                                ]),
                                _: 1
                              }, 8, [
                                "disabled"
                              ])
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      }, 8, [
                        "label"
                      ])) : tt("", true)
                    ]),
                    _: 1
                  }),
                  T(k, {
                    onClick: v,
                    type: "primary",
                    block: "",
                    secondary: "",
                    strong: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(l)("register")), 1)
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }, 8, [
                "tab"
              ])) : tt("", true)
            ]),
            _: 1
          }, 8, [
            "value"
          ])) : tt("", true),
          T(ee, {
            show: c.value,
            "onUpdate:show": S[12] || (S[12] = (ne) => c.value = ne),
            style: {
              "max-width": "600px"
            },
            preset: "card",
            title: O(l)("forgotPassword")
          }, {
            default: $(() => [
              O(n).enable && O(n).enableMailVerify ? (de(), Be(B, {
                key: 0
              }, {
                default: $(() => [
                  T(C, {
                    label: O(l)("email"),
                    required: ""
                  }, {
                    default: $(() => [
                      T(_, {
                        value: u.value.email,
                        "onUpdate:value": S[8] || (S[8] = (ne) => u.value.email = ne)
                      }, null, 8, [
                        "value"
                      ])
                    ]),
                    _: 1
                  }, 8, [
                    "label"
                  ]),
                  T(C, {
                    label: O(l)("password"),
                    required: ""
                  }, {
                    default: $(() => [
                      T(_, {
                        value: u.value.password,
                        "onUpdate:value": S[9] || (S[9] = (ne) => u.value.password = ne),
                        type: "password",
                        "show-password-on": "click"
                      }, null, 8, [
                        "value"
                      ])
                    ]),
                    _: 1
                  }, 8, [
                    "label"
                  ]),
                  T(wp, {
                    value: d.value,
                    "onUpdate:value": S[10] || (S[10] = (ne) => d.value = ne)
                  }, null, 8, [
                    "value"
                  ]),
                  T(C, {
                    label: O(l)("verifyCode"),
                    required: ""
                  }, {
                    default: $(() => [
                      T(M, null, {
                        default: $(() => [
                          T(_, {
                            value: u.value.code,
                            "onUpdate:value": S[11] || (S[11] = (ne) => u.value.code = ne)
                          }, null, 8, [
                            "value"
                          ]),
                          T(k, {
                            onClick: b,
                            style: {
                              "margin-bottom": "0"
                            },
                            type: "primary",
                            ghost: "",
                            disabled: f.value > 0
                          }, {
                            default: $(() => [
                              Ae(ve(f.value > 0 ? O(l)("waitforVerifyCode", {
                                timeout: f.value
                              }) : O(l)("sendVerificationCode")), 1)
                            ]),
                            _: 1
                          }, 8, [
                            "disabled"
                          ])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, [
                    "label"
                  ]),
                  T(k, {
                    onClick: v,
                    type: "primary",
                    block: "",
                    secondary: "",
                    strong: ""
                  }, {
                    default: $(() => [
                      Ae(ve(O(l)("resetPassword")), 1)
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })) : (de(), Be(U, {
                key: 1,
                "show-icon": false,
                bordered: false
              }, {
                default: $(() => [
                  Me("span", null, ve(O(l)("cannotForgotPassword")), 1)
                ]),
                _: 1
              }))
            ]),
            _: 1
          }, 8, [
            "show",
            "title"
          ])
        ]);
      };
    }
  }, PX = yn(TX, [
    [
      "__scopeId",
      "data-v-1bb19ba3"
    ]
  ]), DX = {
    key: 1
  }, $X = {
    key: 2,
    class: "center"
  }, zX = {
    __name: "UserBar",
    setup(e) {
      const t = Pn();
      $a();
      const { userSettings: n, userJwt: r, userOpenSettings: o } = Qt(), { t: i } = Ht({
        messages: {
          en: {
            currentUser: "Current Login User",
            fetchUserSettingsError: "Login password is invalid or account not exist, it may be network connection issue, please try again later."
          },
          zh: {
            currentUser: "\u5F53\u524D\u767B\u5F55\u7528\u6237",
            fetchUserSettingsError: "\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u8D26\u53F7\u4E0D\u5B58\u5728\uFF0C\u4E5F\u53EF\u80FD\u662F\u7F51\u7EDC\u8FDE\u63A5\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u5C1D\u8BD5\u3002"
          }
        }
      });
      return gt(async () => {
        await it.getUserOpenSettings(t), n.value.user_id || await it.getUserSettings(t);
      }), (a, l) => {
        const s = gS, c = wr, u = Fi;
        return de(), Ie("div", null, [
          O(n).fetched ? O(n).user_email ? (de(), Ie("div", DX, [
            T(u, {
              type: "success",
              "show-icon": false,
              bordered: false
            }, {
              default: $(() => [
                Me("span", null, [
                  Me("b", null, [
                    Ae(ve(O(i)("currentUser")) + " ", 1),
                    Me("b", null, ve(O(n).user_email), 1)
                  ])
                ])
              ]),
              _: 1
            })
          ])) : (de(), Ie("div", $X, [
            T(c, {
              bordered: false,
              embedded: "",
              style: {
                "max-width": "600px"
              }
            }, {
              default: $(() => [
                O(r) ? (de(), Be(u, {
                  key: 0,
                  type: "warning",
                  "show-icon": false,
                  bordered: false,
                  closable: ""
                }, {
                  default: $(() => [
                    Me("span", null, ve(O(i)("fetchUserSettingsError")), 1)
                  ]),
                  _: 1
                })) : tt("", true),
                T(PX)
              ]),
              _: 1
            })
          ])) : (de(), Be(c, {
            key: 0,
            bordered: false,
            embedded: ""
          }, {
            default: $(() => [
              T(s, {
                style: {
                  height: "50vh"
                }
              })
            ]),
            _: 1
          }))
        ]);
      };
    }
  }, OX = yn(zX, [
    [
      "__scopeId",
      "data-v-7936a6f0"
    ]
  ]), IX = {
    key: 0,
    class: "center"
  }, FX = {
    __name: "BindAddress",
    setup(e) {
      const { userJwt: t, userSettings: n } = Qt(), { t: r } = Ht({
        messages: {
          en: {
            logout: "Logout"
          },
          zh: {
            logout: "\u9000\u51FA\u767B\u5F55"
          }
        }
      }), o = async () => {
      };
      return gt(async () => {
        await o();
      }), (i, a) => {
        const l = wr;
        return O(n).user_email ? (de(), Ie("div", IX, [
          T(l, {
            bordered: false,
            embedded: "",
            style: {
              "max-width": "600px"
            }
          }, {
            default: $(() => [
              T(zl)
            ]),
            _: 1
          })
        ])) : tt("", true);
      };
    }
  }, MX = yn(FX, [
    [
      "__scopeId",
      "data-v-83781169"
    ]
  ]), LX = {
    style: {
      "margin-top": "10px"
    }
  }, BX = {
    __name: "UserMailBox",
    setup(e) {
      const t = Pn(), { t: n } = Ht({
        messages: {
          en: {
            addressQueryTip: "Leave blank to query all addresses",
            query: "Query"
          },
          zh: {
            addressQueryTip: "\u7559\u7A7A\u67E5\u8BE2\u6240\u6709\u5730\u5740",
            query: "\u67E5\u8BE2"
          }
        }
      }), r = L(""), o = L(), i = L([]), a = () => {
        o.value = o.value ? o.value.trim() : o.value, r.value = Date.now();
      }, l = async (u, d) => await it.fetch(`/user_api/mails?limit=${u}&offset=${d}` + (o.value ? `&address=${o.value}` : "")), s = async () => {
        try {
          const { results: u } = await it.fetch("/user_api/bind_address");
          i.value = u.map((d) => ({
            label: d.name,
            value: d.name
          }));
        } catch (u) {
          console.log(u), t.error(u.message || "error");
        }
      }, c = async (u) => {
        await it.fetch(`/user_api/mails/${u}`, {
          method: "DELETE"
        });
      };
      return lt(o, async (u) => {
        a();
      }), gt(() => {
        s();
      }), (u, d) => {
        const h = Qs, p = ht, f = gd;
        return de(), Ie("div", LX, [
          T(f, null, {
            default: $(() => [
              T(h, {
                value: o.value,
                "onUpdate:value": d[0] || (d[0] = (m) => o.value = m),
                options: i.value,
                clearable: "",
                placeholder: O(n)("addressQueryTip")
              }, null, 8, [
                "value",
                "options",
                "placeholder"
              ]),
              T(p, {
                onClick: a,
                type: "primary",
                tertiary: ""
              }, {
                default: $(() => [
                  Ae(ve(O(n)("query")), 1)
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          d[1] || (d[1] = Me("div", {
            style: {
              "margin-top": "10px"
            }
          }, null, -1)),
          (de(), Be(ok, {
            key: r.value,
            enableUserDeleteEmail: true,
            fetchMailData: l,
            deleteMail: c,
            showFilterInput: true
          }))
        ]);
      };
    }
  }, NX = {
    __name: "User",
    setup(e) {
      const { userTab: t, globalTabplacement: n, userSettings: r } = Qt(), { t: o } = Ht({
        messages: {
          en: {
            address_management: "Address Management",
            user_mail_box_tab: "Mail Box",
            user_settings: "User Settings",
            bind_address: "Bind Mail Address"
          },
          zh: {
            address_management: "\u5730\u5740\u7BA1\u7406",
            user_mail_box_tab: "\u6536\u4EF6\u7BB1",
            user_settings: "\u7528\u6237\u8BBE\u7F6E",
            bind_address: "\u7ED1\u5B9A\u90AE\u7BB1\u5730\u5740"
          }
        }
      });
      return (i, a) => {
        const l = Pa, s = Da;
        return de(), Ie("div", null, [
          T(OX),
          O(r).user_email ? (de(), Be(s, {
            key: 0,
            type: "card",
            value: O(t),
            "onUpdate:value": a[0] || (a[0] = (c) => kt(t) ? t.value = c : null),
            placement: O(n)
          }, {
            default: $(() => [
              T(l, {
                name: "address_management",
                tab: O(o)("address_management")
              }, {
                default: $(() => [
                  T(Cp)
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(l, {
                name: "user_mail_box_tab",
                tab: O(o)("user_mail_box_tab")
              }, {
                default: $(() => [
                  T(BX)
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(l, {
                name: "user_settings",
                tab: O(o)("user_settings")
              }, {
                default: $(() => [
                  T(RX)
                ]),
                _: 1
              }, 8, [
                "tab"
              ]),
              T(l, {
                name: "bind_address",
                tab: O(o)("bind_address")
              }, {
                default: $(() => [
                  T(MX)
                ]),
                _: 1
              }, 8, [
                "tab"
              ])
            ]),
            _: 1
          }, 8, [
            "value",
            "placement"
          ])) : tt("", true)
        ]);
      };
    }
  }, HX = {
    __name: "UserOauth2Callback",
    setup(e) {
      const { userJwt: t, userOauth2SessionState: n, userOauth2SessionClientID: r } = Qt(), o = Pn(), i = ag(), a = $a(), l = L(""), { t: s } = Ht({
        messages: {
          en: {
            logging: "Logging in...",
            stateNotMatch: "state not match"
          },
          zh: {
            logging: "\u767B\u5F55\u4E2D...",
            stateNotMatch: "state \u4E0D\u5339\u914D"
          }
        }
      });
      return gt(async () => {
        if (i.query.state != n.value) {
          console.error("state not match"), o.error(s("stateNotMatch"));
          return;
        }
        const u = i.query.code;
        if (!u) {
          console.error("code not found"), o.error("code not found");
          return;
        }
        try {
          const d = await it.fetch("/user_api/oauth2/callback", {
            method: "POST",
            body: JSON.stringify({
              code: u,
              clientID: r.value
            })
          });
          t.value = d.jwt, a.push("/user");
        } catch (d) {
          console.error(d), o.error(d.message || "error");
        }
      }), (c, u) => {
        const d = Sd, h = wr;
        return de(), Be(h, {
          bordered: false,
          embedded: ""
        }, {
          default: $(() => [
            T(d, {
              status: "info",
              title: O(s)("logging"),
              description: l.value
            }, null, 8, [
              "title",
              "description"
            ])
          ]),
          _: 1
        });
      };
    }
  }, { jwt: jX } = Qt(), uk = gj({
    history: KH(),
    routes: [
      {
        path: "/",
        alias: "/:lang/",
        component: gX
      },
      {
        path: "/user",
        alias: "/:lang/user",
        component: NX
      },
      {
        path: "/user/oauth2/callback",
        alias: "/:lang/user/oauth2/callback",
        component: HX
      },
      {
        path: "/admin",
        alias: "/:lang/admin",
        component: () => yl(() => import("./Admin-BC2FD85r.js").then(async (m) => {
          await m.__tla;
          return m;
        }), __vite__mapDeps([4,5]))
      },
      {
        path: "/telegram_mail",
        alias: "/:lang/telegram_mail",
        component: () => yl(() => import("./Mail-QoAjapmb.js"), __vite__mapDeps([6,7]))
      },
      {
        name: "not-found",
        path: "/:pathMatch(.*)*",
        redirect: "/"
      }
    ]
  });
  uk.beforeEach((e, t, n) => {
    e.params.lang && [
      "en",
      "zh"
    ].includes(e.params.lang) ? Iu.global.locale.value = e.params.lang : Iu.global.locale.value = "zh", e.query.jwt && (jX.value = e.query.jwt), n();
  });
  const WX = $A(), Md = nA(FG);
  Md.use(Iu);
  Md.use(uk);
  Md.use(WX);
  Md.mount("#app");
})();
export {
  Sm as $,
  tz as A,
  KX as B,
  xt as C,
  de as D,
  Ie as E,
  Me as F,
  yn as G,
  Qt as H,
  Pn as I,
  Ht as J,
  ht as K,
  so as L,
  it as M,
  Jt as N,
  gt as O,
  T as P,
  $ as Q,
  ve as R,
  O as S,
  Fm as T,
  Zs as U,
  Ae as V,
  No as W,
  GX as X,
  UX as Y,
  gd as Z,
  Yr as _,
  __tla,
  mt as a,
  tc as a0,
  GL as a1,
  YL as a2,
  kn as a3,
  d_ as a4,
  wr as a5,
  kt as a6,
  OY as a7,
  Db as a8,
  $9 as a9,
  Pa as aA,
  Sd as aB,
  KY as aC,
  $a as aD,
  UY as aE,
  eX as aF,
  D3 as aG,
  eo as aH,
  yl as aI,
  Z_ as aJ,
  ag as aK,
  ta as aL,
  Zt as aM,
  BG as aN,
  Po as aO,
  pJ as aP,
  JG as aQ,
  qi as aR,
  Bt as aS,
  fn as aT,
  Kj as aa,
  Be as ab,
  ki as ac,
  Ta as ad,
  tt as ae,
  q9 as af,
  qO as ag,
  YO as ah,
  oc as ai,
  kd as aj,
  U8 as ak,
  Qs as al,
  u2 as am,
  c2 as an,
  Fi as ao,
  nc as ap,
  Km as aq,
  wt as ar,
  Om as as,
  Lu as at,
  DI as au,
  zm as av,
  ol as aw,
  d2 as ax,
  ok as ay,
  Da as az,
  vd as b,
  qX as c,
  pe as d,
  W as e,
  A as f,
  Fe as g,
  g as h,
  ym as i,
  ma as j,
  Mo as k,
  L as l,
  mn as m,
  Ct as n,
  rn as o,
  D as p,
  In as q,
  Pt as r,
  Te as s,
  sn as t,
  at as u,
  Dt as v,
  lt as w,
  ii as x,
  $e as y,
  V as z
};
