UNPKG

jadq-x-vue

Version:

Craft AI-driven interfaces effortlessly

39,332 lines 1.14 MB
var nS = Object.defineProperty;
var oS = (e, t, n) => t in e ? nS(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var So = (e, t, n) => oS(e, typeof t != "symbol" ? t + "" : t, n);
import { computed as w, inject as Ce, provide as $e, defineComponent as q, watch as ee, unref as se, shallowRef as K, triggerRef as Jt, Fragment as Te, isVNode as Et, Comment as rS, Text as Ev, reactive as Be, getCurrentInstance as lt, onMounted as be, onUpdated as po, onUnmounted as Fn, ref as Z, watchEffect as we, onBeforeUnmount as Le, createVNode as m, h as lo, Transition as Xt, withDirectives as en, resolveDirective as iS, cloneVNode as si, nextTick as De, toRef as Oe, withModifiers as of, vShow as pn, onBeforeMount as aS, Teleport as Ga, createTextVNode as _r, isRef as lS, toRefs as Uc, toRaw as At, render as Vr, onBeforeUpdate as Av, TransitionGroup as ci, createApp as sS, useSlots as Nt, mergeProps as Ge, toValue as Re, mergeDefaults as ot, useAttrs as Mv, watchPostEffect as cS, renderList as uS, getCurrentScope as dS, onScopeDispose as fS, createElementBlock as Rv, openBlock as Dv, createElementVNode as Xo } from "vue";
const Tn = function() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return t;
}, pS = function() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return t;
}, Ln = (e) => {
  const t = e;
  return t.install = function(n) {
    n.component(t.displayName || t.name, e);
  }, e;
};
function Wr() {
  return {
    type: [Function, Array]
  };
}
function xe(e) {
  return {
    type: Object,
    default: e
  };
}
function Ie(e) {
  return {
    type: Boolean,
    default: e
  };
}
function ge(e) {
  return {
    type: Function,
    default: e
  };
}
function et(e, t) {
  return {
    validator: () => !0,
    default: e
  };
}
function Ko(e) {
  return {
    type: Array,
    default: e
  };
}
function Xe(e) {
  return {
    type: String,
    default: e
  };
}
function it(e, t) {
  return e ? {
    type: e,
    default: t
  } : et(t);
}
const qc = "anticon", Fv = Symbol("GlobalFormContextKey"), mS = (e) => {
  $e(Fv, e);
}, gS = () => Ce(Fv, {
  validateMessages: w(() => {
  })
}), vS = () => ({
  iconPrefixCls: String,
  getTargetContainer: {
    type: Function
  },
  getPopupContainer: {
    type: Function
  },
  prefixCls: String,
  getPrefixCls: {
    type: Function
  },
  renderEmpty: {
    type: Function
  },
  transformCellText: {
    type: Function
  },
  csp: xe(),
  input: xe(),
  autoInsertSpaceInButton: {
    type: Boolean,
    default: void 0
  },
  locale: xe(),
  pageHeader: xe(),
  componentSize: {
    type: String
  },
  componentDisabled: {
    type: Boolean,
    default: void 0
  },
  direction: {
    type: String,
    default: "ltr"
  },
  space: xe(),
  virtual: {
    type: Boolean,
    default: void 0
  },
  dropdownMatchSelectWidth: {
    type: [Number, Boolean],
    default: !0
  },
  form: xe(),
  pagination: xe(),
  theme: xe(),
  select: xe(),
  wave: xe()
}), Yc = Symbol("configProvider"), Lv = {
  getPrefixCls: (e, t) => t || (e ? `ant-${e}` : "ant"),
  iconPrefixCls: w(() => qc),
  getPopupContainer: w(() => () => document.body),
  direction: w(() => "ltr")
}, ui = () => Ce(Yc, Lv), hS = (e) => $e(Yc, e), yS = "ant";
function pt() {
  const { getPrefixCls: e, direction: t, csp: n, iconPrefixCls: o, theme: r } = ui();
  return {
    theme: r,
    getPrefixCls: e,
    direction: t,
    csp: n,
    iconPrefixCls: o
  };
}
function dt(e, t) {
  const n = /* @__PURE__ */ Object.create(null);
  for (const o in e)
    t.includes(o) || Object.defineProperty(n, o, { enumerable: !0, get: () => e[o] });
  return n;
}
const bS = (e) => {
  const t = e;
  return t.install = function(n) {
    n.component(t.displayName || t.name, e);
  }, e;
};
function mn(e) {
  return { type: Object, default: e };
}
function zl(e) {
  return { type: Boolean, default: e };
}
function SS(e, t) {
  const n = { validator: () => !0, default: e };
  return n;
}
function rf(e) {
  return { type: Array, default: e };
}
function af(e) {
  return { type: String, default: e };
}
function CS(e, t) {
  return e ? { type: e, default: t } : SS(t);
}
const Nv = Symbol("XProviderContext"), Bs = K(), $S = (e) => {
  $e(Nv, e), ee(
    e,
    () => {
      Bs.value = se(e), Jt(Bs);
    },
    { immediate: !0, deep: !0 }
  );
}, wS = () => Ce(
  Nv,
  w(() => Bs.value || {})
), xS = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return $S(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
});
function kr(e) {
  "@babel/helpers - typeof";
  return kr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
    return typeof t;
  } : function(t) {
    return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
  }, kr(e);
}
function OS(e, t) {
  if (kr(e) != "object" || !e) return e;
  var n = e[Symbol.toPrimitive];
  if (n !== void 0) {
    var o = n.call(e, t);
    if (kr(o) != "object") return o;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (t === "string" ? String : Number)(e);
}
function PS(e) {
  var t = OS(e, "string");
  return kr(t) == "symbol" ? t : t + "";
}
function ht(e, t, n) {
  return (t = PS(t)) in e ? Object.defineProperty(e, t, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = n, e;
}
function lf(e, t) {
  var n = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    t && (o = o.filter(function(r) {
      return Object.getOwnPropertyDescriptor(e, r).enumerable;
    })), n.push.apply(n, o);
  }
  return n;
}
function z(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? arguments[t] : {};
    t % 2 ? lf(Object(n), !0).forEach(function(o) {
      ht(e, o, n[o]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lf(Object(n)).forEach(function(o) {
      Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
    });
  }
  return e;
}
function h() {
  return h = Object.assign ? Object.assign.bind() : function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
    }
    return e;
  }, h.apply(null, arguments);
}
const IS = (e) => typeof e == "function", TS = Array.isArray, ES = (e) => typeof e == "string", AS = (e) => e !== null && typeof e == "object", MS = /^on[^a-z]/, RS = (e) => MS.test(e), jv = (e) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (n) => t[n] || (t[n] = e(n));
}, DS = /-(\w)/g, zv = jv((e) => e.replace(DS, (t, n) => n ? n.toUpperCase() : "")), FS = /\B([A-Z])/g, LS = jv((e) => e.replace(FS, "-$1").toLowerCase()), NS = Object.prototype.hasOwnProperty, sf = (e, t) => NS.call(e, t);
function jS(e, t, n, o) {
  const r = e[n];
  if (r != null) {
    const i = sf(r, "default");
    if (i && o === void 0) {
      const a = r.default;
      o = r.type !== Function && IS(a) ? a() : a;
    }
    r.type === Boolean && (!sf(t, n) && !i ? o = !1 : o === "" && (o = !0));
  }
  return o;
}
function Mo(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
  return typeof e == "function" ? e(t) : e ?? n;
}
function zS(e) {
  let t;
  const n = new Promise((r) => {
    t = e(() => {
      r(!0);
    });
  }), o = () => {
    t == null || t();
  };
  return o.then = (r, i) => n.then(r, i), o.promise = n, o;
}
function ie() {
  const e = [];
  for (let t = 0; t < arguments.length; t++) {
    const n = t < 0 || arguments.length <= t ? void 0 : arguments[t];
    if (n) {
      if (ES(n))
        e.push(n);
      else if (TS(n))
        for (let o = 0; o < n.length; o++) {
          const r = ie(n[o]);
          r && e.push(r);
        }
      else if (AS(n))
        for (const o in n)
          n[o] && e.push(o);
    }
  }
  return e.join(" ");
}
var Bv = (function() {
  if (typeof Map < "u")
    return Map;
  function e(t, n) {
    var o = -1;
    return t.some(function(r, i) {
      return r[0] === n ? (o = i, !0) : !1;
    }), o;
  }
  return (
    /** @class */
    (function() {
      function t() {
        this.__entries__ = [];
      }
      return Object.defineProperty(t.prototype, "size", {
        /**
         * @returns {boolean}
         */
        get: function() {
          return this.__entries__.length;
        },
        enumerable: !0,
        configurable: !0
      }), t.prototype.get = function(n) {
        var o = e(this.__entries__, n), r = this.__entries__[o];
        return r && r[1];
      }, t.prototype.set = function(n, o) {
        var r = e(this.__entries__, n);
        ~r ? this.__entries__[r][1] = o : this.__entries__.push([n, o]);
      }, t.prototype.delete = function(n) {
        var o = this.__entries__, r = e(o, n);
        ~r && o.splice(r, 1);
      }, t.prototype.has = function(n) {
        return !!~e(this.__entries__, n);
      }, t.prototype.clear = function() {
        this.__entries__.splice(0);
      }, t.prototype.forEach = function(n, o) {
        o === void 0 && (o = null);
        for (var r = 0, i = this.__entries__; r < i.length; r++) {
          var a = i[r];
          n.call(o, a[1], a[0]);
        }
      }, t;
    })()
  );
})(), Hs = typeof window < "u" && typeof document < "u" && window.document === document, ba = (function() {
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
})(), BS = (function() {
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ba) : function(e) {
    return setTimeout(function() {
      return e(Date.now());
    }, 1e3 / 60);
  };
})(), HS = 2;
function _S(e, t) {
  var n = !1, o = !1, r = 0;
  function i() {
    n && (n = !1, e()), o && l();
  }
  function a() {
    BS(i);
  }
  function l() {
    var s = Date.now();
    if (n) {
      if (s - r < HS)
        return;
      o = !0;
    } else
      n = !0, o = !1, setTimeout(a, t);
    r = s;
  }
  return l;
}
var VS = 20, WS = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], kS = typeof MutationObserver < "u", XS = (
  /** @class */
  (function() {
    function e() {
      this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = _S(this.refresh.bind(this), VS);
    }
    return e.prototype.addObserver = function(t) {
      ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
    }, e.prototype.removeObserver = function(t) {
      var n = this.observers_, o = n.indexOf(t);
      ~o && n.splice(o, 1), !n.length && this.connected_ && this.disconnect_();
    }, e.prototype.refresh = function() {
      var t = this.updateObservers_();
      t && this.refresh();
    }, e.prototype.updateObservers_ = function() {
      var t = this.observers_.filter(function(n) {
        return n.gatherActive(), n.hasActive();
      });
      return t.forEach(function(n) {
        return n.broadcastActive();
      }), t.length > 0;
    }, e.prototype.connect_ = function() {
      !Hs || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), kS ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
        attributes: !0,
        childList: !0,
        characterData: !0,
        subtree: !0
      })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
    }, e.prototype.disconnect_ = function() {
      !Hs || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
    }, e.prototype.onTransitionEnd_ = function(t) {
      var n = t.propertyName, o = n === void 0 ? "" : n, r = WS.some(function(i) {
        return !!~o.indexOf(i);
      });
      r && this.refresh();
    }, e.getInstance = function() {
      return this.instance_ || (this.instance_ = new e()), this.instance_;
    }, e.instance_ = null, e;
  })()
), Hv = (function(e, t) {
  for (var n = 0, o = Object.keys(t); n < o.length; n++) {
    var r = o[n];
    Object.defineProperty(e, r, {
      value: t[r],
      enumerable: !1,
      writable: !1,
      configurable: !0
    });
  }
  return e;
}), Go = (function(e) {
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
  return t || ba;
}), _v = Ua(0, 0, 0, 0);
function Sa(e) {
  return parseFloat(e) || 0;
}
function cf(e) {
  for (var t = [], n = 1; n < arguments.length; n++)
    t[n - 1] = arguments[n];
  return t.reduce(function(o, r) {
    var i = e["border-" + r + "-width"];
    return o + Sa(i);
  }, 0);
}
function KS(e) {
  for (var t = ["top", "right", "bottom", "left"], n = {}, o = 0, r = t; o < r.length; o++) {
    var i = r[o], a = e["padding-" + i];
    n[i] = Sa(a);
  }
  return n;
}
function GS(e) {
  var t = e.getBBox();
  return Ua(0, 0, t.width, t.height);
}
function US(e) {
  var t = e.clientWidth, n = e.clientHeight;
  if (!t && !n)
    return _v;
  var o = Go(e).getComputedStyle(e), r = KS(o), i = r.left + r.right, a = r.top + r.bottom, l = Sa(o.width), s = Sa(o.height);
  if (o.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= cf(o, "left", "right") + i), Math.round(s + a) !== n && (s -= cf(o, "top", "bottom") + a)), !YS(e)) {
    var c = Math.round(l + i) - t, u = Math.round(s + a) - n;
    Math.abs(c) !== 1 && (l -= c), Math.abs(u) !== 1 && (s -= u);
  }
  return Ua(r.left, r.top, l, s);
}
var qS = /* @__PURE__ */ (function() {
  return typeof SVGGraphicsElement < "u" ? function(e) {
    return e instanceof Go(e).SVGGraphicsElement;
  } : function(e) {
    return e instanceof Go(e).SVGElement && typeof e.getBBox == "function";
  };
})();
function YS(e) {
  return e === Go(e).document.documentElement;
}
function ZS(e) {
  return Hs ? qS(e) ? GS(e) : US(e) : _v;
}
function QS(e) {
  var t = e.x, n = e.y, o = e.width, r = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(i.prototype);
  return Hv(a, {
    x: t,
    y: n,
    width: o,
    height: r,
    top: n,
    right: t + o,
    bottom: r + n,
    left: t
  }), a;
}
function Ua(e, t, n, o) {
  return { x: e, y: t, width: n, height: o };
}
var JS = (
  /** @class */
  (function() {
    function e(t) {
      this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Ua(0, 0, 0, 0), this.target = t;
    }
    return e.prototype.isActive = function() {
      var t = ZS(this.target);
      return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
    }, e.prototype.broadcastRect = function() {
      var t = this.contentRect_;
      return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
    }, e;
  })()
), eC = (
  /** @class */
  /* @__PURE__ */ (function() {
    function e(t, n) {
      var o = QS(n);
      Hv(this, { target: t, contentRect: o });
    }
    return e;
  })()
), tC = (
  /** @class */
  (function() {
    function e(t, n, o) {
      if (this.activeObservations_ = [], this.observations_ = new Bv(), typeof t != "function")
        throw new TypeError("The callback provided as parameter 1 is not a function.");
      this.callback_ = t, this.controller_ = n, this.callbackCtx_ = o;
    }
    return e.prototype.observe = function(t) {
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      if (!(typeof Element > "u" || !(Element instanceof Object))) {
        if (!(t instanceof Go(t).Element))
          throw new TypeError('parameter 1 is not of type "Element".');
        var n = this.observations_;
        n.has(t) || (n.set(t, new JS(t)), this.controller_.addObserver(this), this.controller_.refresh());
      }
    }, e.prototype.unobserve = function(t) {
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      if (!(typeof Element > "u" || !(Element instanceof Object))) {
        if (!(t instanceof Go(t).Element))
          throw new TypeError('parameter 1 is not of type "Element".');
        var n = this.observations_;
        n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
      }
    }, e.prototype.disconnect = function() {
      this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
    }, e.prototype.gatherActive = function() {
      var t = this;
      this.clearActive(), this.observations_.forEach(function(n) {
        n.isActive() && t.activeObservations_.push(n);
      });
    }, e.prototype.broadcastActive = function() {
      if (this.hasActive()) {
        var t = this.callbackCtx_, n = this.activeObservations_.map(function(o) {
          return new eC(o.target, o.broadcastRect());
        });
        this.callback_.call(t, n, t), this.clearActive();
      }
    }, e.prototype.clearActive = function() {
      this.activeObservations_.splice(0);
    }, e.prototype.hasActive = function() {
      return this.activeObservations_.length > 0;
    }, e;
  })()
), Vv = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Bv(), Wv = (
  /** @class */
  /* @__PURE__ */ (function() {
    function e(t) {
      if (!(this instanceof e))
        throw new TypeError("Cannot call a class as a function.");
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      var n = XS.getInstance(), o = new tC(t, n, this);
      Vv.set(this, o);
    }
    return e;
  })()
);
[
  "observe",
  "unobserve",
  "disconnect"
].forEach(function(e) {
  Wv.prototype[e] = function() {
    var t;
    return (t = Vv.get(this))[e].apply(t, arguments);
  };
});
var kv = (function() {
  return typeof ba.ResizeObserver < "u" ? ba.ResizeObserver : Wv;
})();
const _s = (e) => e != null && e !== "", Ze = (e, t) => {
  const n = h({}, e);
  return Object.keys(t).forEach((o) => {
    const r = n[o];
    if (r)
      r.type || r.default ? r.default = t[o] : r.def ? r.def(t[o]) : n[o] = {
        type: r,
        default: t[o]
      };
    else
      throw new Error(`not have ${o} prop`);
  }), n;
}, nC = (e) => {
  const t = Object.keys(e), n = {}, o = {}, r = {};
  for (let i = 0, a = t.length; i < a; i++) {
    const l = t[i];
    RS(l) ? (n[l[2].toLowerCase() + l.slice(3)] = e[l], o[l] = e[l]) : r[l] = e[l];
  }
  return {
    onEvents: o,
    events: n,
    extraAttrs: r
  };
}, oC = function() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  const n = {}, o = /;(?![^(]*\))/g, r = /:(.+)/;
  return typeof e == "object" ? e : (e.split(o).forEach(function(i) {
    if (i) {
      const a = i.split(r);
      if (a.length > 1) {
        const l = t ? zv(a[0].trim()) : a[0].trim();
        n[l] = a[1].trim();
      }
    }
  }), n);
}, rC = (e, t) => e[t] !== void 0, Xv = Symbol("skipFlatten"), tt = function() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
  const n = Array.isArray(e) ? e : [e], o = [];
  return n.forEach((r) => {
    Array.isArray(r) ? o.push(...tt(r, t)) : r && r.type === Te ? r.key === Xv ? o.push(r) : o.push(...tt(r.children, t)) : r && Et(r) ? t && !Kv(r) ? o.push(r) : t || o.push(r) : _s(r) && o.push(r);
  }), o;
}, iC = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  if (Et(e))
    return e.type === Te ? t === "default" ? tt(e.children) : [] : e.children && e.children[t] ? tt(e.children[t](n)) : [];
  {
    const o = e.$slots[t] && e.$slots[t](n);
    return tt(o);
  }
}, Ht = (e) => {
  var t;
  let n = ((t = e == null ? void 0 : e.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e);
  for (; n && !n.tagName; )
    n = n.nextSibling;
  return n;
}, aC = (e) => {
  const t = {};
  if (e.$ && e.$.vnode) {
    const n = e.$.vnode.props || {};
    Object.keys(e.$props).forEach((o) => {
      const r = e.$props[o], i = LS(o);
      (r !== void 0 || i in n) && (t[o] = r);
    });
  } else if (Et(e) && typeof e.type == "object") {
    const n = e.props || {}, o = {};
    Object.keys(n).forEach((i) => {
      o[zv(i)] = n[i];
    });
    const r = e.type.props || {};
    Object.keys(r).forEach((i) => {
      const a = jS(r, o, i, o[i]);
      (a !== void 0 || i in o) && (t[i] = a);
    });
  }
  return t;
}, lC = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, r;
  if (e.$) {
    const i = e[t];
    if (i !== void 0)
      return typeof i == "function" && o ? i(n) : i;
    r = e.$slots[t], r = o && r ? r(n) : r;
  } else if (Et(e)) {
    const i = e.props && e.props[t];
    if (i !== void 0 && e.props !== null)
      return typeof i == "function" && o ? i(n) : i;
    e.type === Te ? r = e.children : e.children && e.children[t] && (r = e.children[t], r = o && r ? r(n) : r);
  }
  return Array.isArray(r) && (r = tt(r), r = r.length === 1 ? r[0] : r, r = r.length === 0 ? void 0 : r), r;
};
function uf() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {};
  return e.$ ? n = h(h({}, n), e.$attrs) : n = h(h({}, n), e.props), nC(n)[t ? "onEvents" : "events"];
}
function sC(e, t) {
  let o = ((Et(e) ? e.props : e.$attrs) || {}).style || {};
  return typeof o == "string" && (o = oC(o, t)), o;
}
function cC(e) {
  return e.length === 1 && e[0].type === Te;
}
function Kv(e) {
  return e && (e.type === rS || e.type === Te && e.children.length === 0 || e.type === Ev && e.children.trim() === "");
}
function Mt() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  const t = [];
  return e.forEach((n) => {
    Array.isArray(n) ? t.push(...n) : (n == null ? void 0 : n.type) === Te ? t.push(...Mt(n.children)) : t.push(n);
  }), t.filter((n) => !Kv(n));
}
function Rt(e) {
  return Array.isArray(e) && e.length === 1 && (e = e[0]), e && e.__v_isVNode && typeof e.type != "symbol";
}
function di(e, t) {
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
  var o, r;
  return (o = t[n]) !== null && o !== void 0 ? o : (r = e[n]) === null || r === void 0 ? void 0 : r.call(e);
}
const rr = q({
  compatConfig: {
    MODE: 3
  },
  name: "ResizeObserver",
  props: {
    disabled: Boolean,
    onResize: Function
  },
  emits: ["resize"],
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = Be({
      width: 0,
      height: 0,
      offsetHeight: 0,
      offsetWidth: 0
    });
    let r = null, i = null;
    const a = () => {
      i && (i.disconnect(), i = null);
    }, l = (u) => {
      const {
        onResize: d
      } = e, f = u[0].target, {
        width: p,
        height: y
      } = f.getBoundingClientRect(), {
        offsetWidth: g,
        offsetHeight: v
      } = f, b = Math.floor(p), O = Math.floor(y);
      if (o.width !== b || o.height !== O || o.offsetWidth !== g || o.offsetHeight !== v) {
        const C = {
          width: b,
          height: O,
          offsetWidth: g,
          offsetHeight: v
        };
        h(o, C), d && Promise.resolve().then(() => {
          d(h(h({}, C), {
            offsetWidth: g,
            offsetHeight: v
          }), f);
        });
      }
    }, s = lt(), c = () => {
      const {
        disabled: u
      } = e;
      if (u) {
        a();
        return;
      }
      const d = Ht(s);
      d !== r && (a(), r = d), !i && d && (i = new kv(l), i.observe(d));
    };
    return be(() => {
      c();
    }), po(() => {
      c();
    }), Fn(() => {
      a();
    }), ee(() => e.disabled, () => {
      c();
    }, {
      flush: "post"
    }), () => {
      var u;
      return (u = n.default) === null || u === void 0 ? void 0 : u.call(n)[0];
    };
  }
});
let Gv = (e) => setTimeout(e, 16), Uv = (e) => clearTimeout(e);
typeof window < "u" && "requestAnimationFrame" in window && (Gv = (e) => window.requestAnimationFrame(e), Uv = (e) => window.cancelAnimationFrame(e));
let df = 0;
const Zc = /* @__PURE__ */ new Map();
function qv(e) {
  Zc.delete(e);
}
function Ae(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
  df += 1;
  const n = df;
  function o(r) {
    if (r === 0)
      qv(n), e();
    else {
      const i = Gv(() => {
        o(r - 1);
      });
      Zc.set(n, i);
    }
  }
  return o(t), n;
}
Ae.cancel = (e) => {
  const t = Zc.get(e);
  return qv(t), Uv(t);
};
let st = !1;
try {
  const e = Object.defineProperty({}, "passive", {
    get() {
      st = !0;
    }
  });
  window.addEventListener("testPassive", null, e), window.removeEventListener("testPassive", null, e);
} catch {
}
function Bt(e, t, n, o) {
  if (e && e.addEventListener) {
    let r = o;
    r === void 0 && st && (t === "touchstart" || t === "touchmove" || t === "wheel") && (r = {
      passive: !1
    }), e.addEventListener(t, n, r);
  }
  return {
    remove: () => {
      e && e.removeEventListener && e.removeEventListener(t, n);
    }
  };
}
const Yv = Symbol("DisabledContextKey"), mo = () => Ce(Yv, Z(void 0)), Zv = (e) => {
  const t = mo();
  return $e(Yv, w(() => {
    var n;
    return (n = e.value) !== null && n !== void 0 ? n : t.value;
  })), e;
}, uC = {
  // Options.jsx
  items_per_page: "/ page",
  jump_to: "Go to",
  jump_to_confirm: "confirm",
  page: "",
  // Pagination.jsx
  prev_page: "Previous Page",
  next_page: "Next Page",
  prev_5: "Previous 5 Pages",
  next_5: "Next 5 Pages",
  prev_3: "Previous 3 Pages",
  next_3: "Next 3 Pages"
}, dC = {
  locale: "en_US",
  today: "Today",
  now: "Now",
  backToToday: "Back to today",
  ok: "Ok",
  clear: "Clear",
  month: "Month",
  year: "Year",
  timeSelect: "select time",
  dateSelect: "select date",
  weekSelect: "Choose a week",
  monthSelect: "Choose a month",
  yearSelect: "Choose a year",
  decadeSelect: "Choose a decade",
  yearFormat: "YYYY",
  dateFormat: "M/D/YYYY",
  dayFormat: "D",
  dateTimeFormat: "M/D/YYYY HH:mm:ss",
  monthBeforeYear: !0,
  previousMonth: "Previous month (PageUp)",
  nextMonth: "Next month (PageDown)",
  previousYear: "Last year (Control + left)",
  nextYear: "Next year (Control + right)",
  previousDecade: "Last decade",
  nextDecade: "Next decade",
  previousCentury: "Last century",
  nextCentury: "Next century"
}, Qv = {
  placeholder: "Select time",
  rangePlaceholder: ["Start time", "End time"]
}, ff = {
  lang: h({
    placeholder: "Select date",
    yearPlaceholder: "Select year",
    quarterPlaceholder: "Select quarter",
    monthPlaceholder: "Select month",
    weekPlaceholder: "Select week",
    rangePlaceholder: ["Start date", "End date"],
    rangeYearPlaceholder: ["Start year", "End year"],
    rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
    rangeMonthPlaceholder: ["Start month", "End month"],
    rangeWeekPlaceholder: ["Start week", "End week"]
  }, dC),
  timePickerLocale: h({}, Qv)
}, gt = "${label} is not a valid ${type}", cn = {
  locale: "en",
  Pagination: uC,
  DatePicker: ff,
  TimePicker: Qv,
  Calendar: ff,
  global: {
    placeholder: "Please select"
  },
  Table: {
    filterTitle: "Filter menu",
    filterConfirm: "OK",
    filterReset: "Reset",
    filterEmptyText: "No filters",
    filterCheckall: "Select all items",
    filterSearchPlaceholder: "Search in filters",
    emptyText: "No data",
    selectAll: "Select current page",
    selectInvert: "Invert current page",
    selectNone: "Clear all data",
    selectionAll: "Select all data",
    sortTitle: "Sort",
    expand: "Expand row",
    collapse: "Collapse row",
    triggerDesc: "Click to sort descending",
    triggerAsc: "Click to sort ascending",
    cancelSort: "Click to cancel sorting"
  },
  Tour: {
    Next: "Next",
    Previous: "Previous",
    Finish: "Finish"
  },
  Modal: {
    okText: "OK",
    cancelText: "Cancel",
    justOkText: "OK"
  },
  Popconfirm: {
    okText: "OK",
    cancelText: "Cancel"
  },
  Transfer: {
    titles: ["", ""],
    searchPlaceholder: "Search here",
    itemUnit: "item",
    itemsUnit: "items",
    remove: "Remove",
    selectCurrent: "Select current page",
    removeCurrent: "Remove current page",
    selectAll: "Select all data",
    removeAll: "Remove all data",
    selectInvert: "Invert current page"
  },
  Upload: {
    uploading: "Uploading...",
    removeFile: "Remove file",
    uploadError: "Upload error",
    previewFile: "Preview file",
    downloadFile: "Download file"
  },
  Empty: {
    description: "No data"
  },
  Icon: {
    icon: "icon"
  },
  Text: {
    edit: "Edit",
    copy: "Copy",
    copied: "Copied",
    expand: "Expand"
  },
  PageHeader: {
    back: "Back"
  },
  Form: {
    optional: "(optional)",
    defaultValidateMessages: {
      default: "Field validation error for ${label}",
      required: "Please enter ${label}",
      enum: "${label} must be one of [${enum}]",
      whitespace: "${label} cannot be a blank character",
      date: {
        format: "${label} date format is invalid",
        parse: "${label} cannot be converted to a date",
        invalid: "${label} is an invalid date"
      },
      types: {
        string: gt,
        method: gt,
        array: gt,
        object: gt,
        number: gt,
        date: gt,
        boolean: gt,
        integer: gt,
        float: gt,
        regexp: gt,
        email: gt,
        url: gt,
        hex: gt
      },
      string: {
        len: "${label} must be ${len} characters",
        min: "${label} must be at least ${min} characters",
        max: "${label} must be up to ${max} characters",
        range: "${label} must be between ${min}-${max} characters"
      },
      number: {
        len: "${label} must be equal to ${len}",
        min: "${label} must be minimum ${min}",
        max: "${label} must be maximum ${max}",
        range: "${label} must be between ${min}-${max}"
      },
      array: {
        len: "Must be ${len} ${label}",
        min: "At least ${min} ${label}",
        max: "At most ${max} ${label}",
        range: "The amount of ${label} must be between ${min}-${max}"
      },
      pattern: {
        mismatch: "${label} does not match the pattern ${pattern}"
      }
    }
  },
  Image: {
    preview: "Preview"
  },
  QRCode: {
    expired: "QR code expired",
    refresh: "Refresh",
    scanned: "Scanned"
  }
}, Qc = q({
  compatConfig: {
    MODE: 3
  },
  name: "LocaleReceiver",
  props: {
    componentName: String,
    defaultLocale: {
      type: [Object, Function]
    },
    children: {
      type: Function
    }
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = Ce("localeData", {}), r = w(() => {
      const {
        componentName: a = "global",
        defaultLocale: l
      } = e, s = l || cn[a || "global"], {
        antLocale: c
      } = o, u = a && c ? c[a] : {};
      return h(h({}, typeof s == "function" ? s() : s), u || {});
    }), i = w(() => {
      const {
        antLocale: a
      } = o, l = a && a.locale;
      return a && a.exist && !l ? cn.locale : l;
    });
    return () => {
      const a = e.children || n.default, {
        antLocale: l
      } = o;
      return a == null ? void 0 : a(r.value, i.value, l);
    };
  }
});
function Jv(e, t, n) {
  const o = Ce("localeData", {});
  return [w(() => {
    const {
      antLocale: i
    } = o, a = se(t) || cn[e || "global"], l = e && i ? i[e] : {};
    return h(h(h({}, typeof a == "function" ? a() : a), l || {}), se(n) || {});
  })];
}
function ir(e) {
  for (var t = 0, n, o = 0, r = e.length; r >= 4; ++o, r -= 4)
    n = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, n = /* Math.imul(k, m): */
    (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
    n >>> 24, t = /* Math.imul(k, m): */
    (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
    (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
  switch (r) {
    case 3:
      t ^= (e.charCodeAt(o + 2) & 255) << 16;
    case 2:
      t ^= (e.charCodeAt(o + 1) & 255) << 8;
    case 1:
      t ^= e.charCodeAt(o) & 255, t = /* Math.imul(h, m): */
      (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
  }
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
}
const pf = "%";
let fC = class {
  constructor(t) {
    this.cache = /* @__PURE__ */ new Map(), this.instanceId = t;
  }
  get(t) {
    return this.cache.get(Array.isArray(t) ? t.join(pf) : t) || null;
  }
  update(t, n) {
    const o = Array.isArray(t) ? t.join(pf) : t, r = this.cache.get(o), i = n(r);
    i === null ? this.cache.delete(o) : this.cache.set(o, i);
  }
};
const eh = "data-token-hash", to = "data-css-hash", Ro = "__cssinjs_instance__";
function Xr() {
  const e = Math.random().toString(12).slice(2);
  if (typeof document < "u" && document.head && document.body) {
    const t = document.body.querySelectorAll(`style[${to}]`) || [], {
      firstChild: n
    } = document.head;
    Array.from(t).forEach((r) => {
      r[Ro] = r[Ro] || e, r[Ro] === e && document.head.insertBefore(r, n);
    });
    const o = {};
    Array.from(document.querySelectorAll(`style[${to}]`)).forEach((r) => {
      var i;
      const a = r.getAttribute(to);
      o[a] ? r[Ro] === e && ((i = r.parentNode) === null || i === void 0 || i.removeChild(r)) : o[a] = !0;
    });
  }
  return new fC(e);
}
const th = Symbol("StyleContextKey"), pC = () => {
  var e, t, n;
  const o = lt();
  let r;
  if (o && o.appContext) {
    const i = (n = (t = (e = o.appContext) === null || e === void 0 ? void 0 : e.config) === null || t === void 0 ? void 0 : t.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__;
    i ? r = i : (r = Xr(), o.appContext.config.globalProperties && (o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r));
  } else
    r = Xr();
  return r;
}, nh = {
  cache: Xr(),
  defaultCache: !0,
  hashPriority: "low"
}, qa = () => {
  const e = pC();
  return Ce(th, K(h(h({}, nh), {
    cache: e
  })));
}, mC = (e) => {
  const t = qa(), n = K(h(h({}, nh), {
    cache: Xr()
  }));
  return ee([() => se(e), t], () => {
    const o = h({}, t.value), r = se(e);
    Object.keys(r).forEach((a) => {
      const l = r[a];
      r[a] !== void 0 && (o[a] = l);
    });
    const {
      cache: i
    } = r;
    o.cache = o.cache || Xr(), o.defaultCache = !i && t.value.defaultCache, n.value = o;
  }, {
    immediate: !0
  }), $e(th, n), n;
}, gC = () => ({
  autoClear: Ie(),
  /** @private Test only. Not work in production. */
  mock: Xe(),
  /**
   * Only set when you need ssr to extract style on you own.
   * If not provided, it will auto create <style /> on the end of Provider in server side.
   */
  cache: xe(),
  /** Tell children that this context is default generated context */
  defaultCache: Ie(),
  /** Use `:where` selector to reduce hashId css selector priority */
  hashPriority: Xe(),
  /** Tell cssinjs where to inject style in */
  container: it(),
  /** Component wil render inline  `<style />` for fallback in SSR. Not recommend. */
  ssrInline: Ie(),
  /** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
  transformers: Ko(),
  /**
   * Linters to lint css before inject in document.
   * Styles will be linted after transforming.
   * Please note that `linters` do not support dynamic update.
   */
  linters: Ko()
}), vC = Ln(q({
  name: "AStyleProvider",
  inheritAttrs: !1,
  props: gC(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    return mC(e), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
}));
function oh(e, t, n, o) {
  const r = qa(), i = K(""), a = K();
  we(() => {
    i.value = [e, ...t.value].join("%");
  });
  const l = (s) => {
    r.value.cache.update(s, (c) => {
      const [u = 0, d] = c || [];
      return u - 1 === 0 ? (o == null || o(d, !1), null) : [u - 1, d];
    });
  };
  return ee(i, (s, c) => {
    c && l(c), r.value.cache.update(s, (u) => {
      const [d = 0, f] = u || [], y = f || n();
      return [d + 1, y];
    }), a.value = r.value.cache.get(i.value)[1];
  }, {
    immediate: !0
  }), Le(() => {
    l(i.value);
  }), a;
}
function Ct() {
  return !!(typeof window < "u" && window.document && window.document.createElement);
}
function Cn(e, t) {
  return e && e.contains ? e.contains(t) : !1;
}
const mf = "data-vc-order", hC = "vc-util-key", Vs = /* @__PURE__ */ new Map();
function rh() {
  let {
    mark: e
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  return e ? e.startsWith("data-") ? e : `data-${e}` : hC;
}
function Ya(e) {
  return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
}
function yC(e) {
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
}
function ih(e) {
  return Array.from((Vs.get(e) || e).children).filter((t) => t.tagName === "STYLE");
}
function ah(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  if (!Ct())
    return null;
  const {
    csp: n,
    prepend: o
  } = t, r = document.createElement("style");
  r.setAttribute(mf, yC(o)), n != null && n.nonce && (r.nonce = n == null ? void 0 : n.nonce), r.innerHTML = e;
  const i = Ya(t), {
    firstChild: a
  } = i;
  if (o) {
    if (o === "queue") {
      const l = ih(i).filter((s) => ["prepend", "prependQueue"].includes(s.getAttribute(mf)));
      if (l.length)
        return i.insertBefore(r, l[l.length - 1].nextSibling), r;
    }
    i.insertBefore(r, a);
  } else
    i.appendChild(r);
  return r;
}
function lh(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  const n = Ya(t);
  return ih(n).find((o) => o.getAttribute(rh(t)) === e);
}
function Ca(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  const n = lh(e, t);
  n && Ya(t).removeChild(n);
}
function bC(e, t) {
  const n = Vs.get(e);
  if (!n || !Cn(document, n)) {
    const o = ah("", t), {
      parentNode: r
    } = o;
    Vs.set(e, r), e.removeChild(o);
  }
}
function Kr(e, t) {
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  var o, r, i;
  const a = Ya(n);
  bC(a, n);
  const l = lh(t, n);
  if (l)
    return !((o = n.csp) === null || o === void 0) && o.nonce && l.nonce !== ((r = n.csp) === null || r === void 0 ? void 0 : r.nonce) && (l.nonce = (i = n.csp) === null || i === void 0 ? void 0 : i.nonce), l.innerHTML !== e && (l.innerHTML = e), l;
  const s = ah(e, n);
  return s.setAttribute(rh(n), t), s;
}
function SC(e, t) {
  if (e.length !== t.length)
    return !1;
  for (let n = 0; n < e.length; n++)
    if (e[n] !== t[n])
      return !1;
  return !0;
}
let Jc = class Ws {
  constructor() {
    this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
  }
  size() {
    return this.keys.length;
  }
  internalGet(t) {
    let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o = {
      map: this.cache
    };
    return t.forEach((r) => {
      var i;
      o ? o = (i = o == null ? void 0 : o.map) === null || i === void 0 ? void 0 : i.get(r) : o = void 0;
    }), o != null && o.value && n && (o.value[1] = this.cacheCallTimes++), o == null ? void 0 : o.value;
  }
  get(t) {
    var n;
    return (n = this.internalGet(t, !0)) === null || n === void 0 ? void 0 : n[0];
  }
  has(t) {
    return !!this.internalGet(t);
  }
  set(t, n) {
    if (!this.has(t)) {
      if (this.size() + 1 > Ws.MAX_CACHE_SIZE + Ws.MAX_CACHE_OFFSET) {
        const [r] = this.keys.reduce((i, a) => {
          const [, l] = i;
          return this.internalGet(a)[1] < l ? [a, this.internalGet(a)[1]] : i;
        }, [this.keys[0], this.cacheCallTimes]);
        this.delete(r);
      }
      this.keys.push(t);
    }
    let o = this.cache;
    t.forEach((r, i) => {
      if (i === t.length - 1)
        o.set(r, {
          value: [n, this.cacheCallTimes++]
        });
      else {
        const a = o.get(r);
        a ? a.map || (a.map = /* @__PURE__ */ new Map()) : o.set(r, {
          map: /* @__PURE__ */ new Map()
        }), o = o.get(r).map;
      }
    });
  }
  deleteByPath(t, n) {
    var o;
    const r = t.get(n[0]);
    if (n.length === 1)
      return r.map ? t.set(n[0], {
        map: r.map
      }) : t.delete(n[0]), (o = r.value) === null || o === void 0 ? void 0 : o[0];
    const i = this.deleteByPath(r.map, n.slice(1));
    return (!r.map || r.map.size === 0) && !r.value && t.delete(n[0]), i;
  }
  delete(t) {
    if (this.has(t))
      return this.keys = this.keys.filter((n) => !SC(n, t)), this.deleteByPath(this.cache, t);
  }
};
Jc.MAX_CACHE_SIZE = 20;
Jc.MAX_CACHE_OFFSET = 5;
let gf = {};
function CC(e, t) {
}
function $C(e, t, n) {
  !t && !gf[n] && (gf[n] = !0);
}
function wC(e, t) {
  $C(CC, e, t);
}
function xC() {
}
let so = xC, vf = 0, sh = class {
  constructor(t) {
    this.derivatives = Array.isArray(t) ? t : [t], this.id = vf, t.length === 0 && so(t.length > 0), vf += 1;
  }
  getDerivativeToken(t) {
    return this.derivatives.reduce((n, o) => o(t, n), void 0);
  }
};
const Bl = new Jc();
function ch(e) {
  const t = Array.isArray(e) ? e : [e];
  return Bl.has(t) || Bl.set(t, new sh(t)), Bl.get(t);
}
const hf = /* @__PURE__ */ new WeakMap();
function $a(e) {
  let t = hf.get(e) || "";
  return t || (Object.keys(e).forEach((n) => {
    const o = e[n];
    t += n, o instanceof sh ? t += o.id : o && typeof o == "object" ? t += $a(o) : t += o;
  }), hf.set(e, t)), t;
}
function OC(e, t) {
  return ir(`${t}_${$a(e)}`);
}
const Er = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), uh = "_bAmBoO_";
function PC(e, t, n) {
  var o, r;
  if (Ct()) {
    Kr(e, Er);
    const i = document.createElement("div");
    i.style.position = "fixed", i.style.left = "0", i.style.top = "0", t == null || t(i), document.body.appendChild(i);
    const a = n ? n(i) : (o = getComputedStyle(i).content) === null || o === void 0 ? void 0 : o.includes(uh);
    return (r = i.parentNode) === null || r === void 0 || r.removeChild(i), Ca(Er), a;
  }
  return !1;
}
let Hl;
function IC() {
  return Hl === void 0 && (Hl = PC(`@layer ${Er} { .${Er} { content: "${uh}"!important; } }`, (e) => {
    e.className = Er;
  })), Hl;
}
const yf = {}, TC = "css", Kn = /* @__PURE__ */ new Map();
function EC(e) {
  Kn.set(e, (Kn.get(e) || 0) + 1);
}
function AC(e, t) {
  typeof document < "u" && document.querySelectorAll(`style[${eh}="${e}"]`).forEach((o) => {
    var r;
    o[Ro] === t && ((r = o.parentNode) === null || r === void 0 || r.removeChild(o));
  });
}
const MC = 0;
function RC(e, t) {
  Kn.set(e, (Kn.get(e) || 0) - 1);
  const n = Array.from(Kn.keys()), o = n.filter((r) => (Kn.get(r) || 0) <= 0);
  n.length - o.length > MC && o.forEach((r) => {
    AC(r, t), Kn.delete(r);
  });
}
const DC = (e, t, n, o) => {
  const r = n.getDerivativeToken(e);
  let i = h(h({}, r), t);
  return o && (i = o(i)), i;
};
function FC(e, t) {
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Z({});
  const o = qa(), r = w(() => h({}, ...t.value)), i = w(() => $a(r.value)), a = w(() => $a(n.value.override || yf));
  return oh("token", w(() => [n.value.salt || "", e.value.id, i.value, a.value]), () => {
    const {
      salt: s = "",
      override: c = yf,
      formatToken: u,
      getComputedToken: d
    } = n.value, f = d ? d(r.value, c, e.value) : DC(r.value, c, e.value, u), p = OC(f, s);
    f._tokenKey = p, EC(p);
    const y = `${TC}-${ir(p)}`;
    return f._hashId = y, [f, y];
  }, (s) => {
    var c;
    RC(s[0]._tokenKey, (c = o.value) === null || c === void 0 ? void 0 : c.cache.instanceId);
  });
}
var LC = {
  animationIterationCount: 1,
  aspectRatio: 1,
  borderImageOutset: 1,
  borderImageSlice: 1,
  borderImageWidth: 1,
  boxFlex: 1,
  boxFlexGroup: 1,
  boxOrdinalGroup: 1,
  columnCount: 1,
  columns: 1,
  flex: 1,
  flexGrow: 1,
  flexPositive: 1,
  flexShrink: 1,
  flexNegative: 1,
  flexOrder: 1,
  gridRow: 1,
  gridRowEnd: 1,
  gridRowSpan: 1,
  gridRowStart: 1,
  gridColumn: 1,
  gridColumnEnd: 1,
  gridColumnSpan: 1,
  gridColumnStart: 1,
  msGridRow: 1,
  msGridRowSpan: 1,
  msGridColumn: 1,
  msGridColumnSpan: 1,
  fontWeight: 1,
  lineHeight: 1,
  opacity: 1,
  order: 1,
  orphans: 1,
  tabSize: 1,
  widows: 1,
  zIndex: 1,
  zoom: 1,
  WebkitLineClamp: 1,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
}, dh = "comm", fh = "rule", ph = "decl", NC = "@import", jC = "@namespace", zC = "@keyframes", BC = "@layer", mh = Math.abs, eu = String.fromCharCode;
function gh(e) {
  return e.trim();
}
function na(e, t, n) {
  return e.replace(t, n);
}
function HC(e, t, n) {
  return e.indexOf(t, n);
}
function zo(e, t) {
  return e.charCodeAt(t) | 0;
}
function Uo(e, t, n) {
  return e.slice(t, n);
}
function Ut(e) {
  return e.length;
}
function _C(e) {
  return e.length;
}
function Ai(e, t) {
  return t.push(e), e;
}
var Za = 1, qo = 1, vh = 0, Dt = 0, Ke = 0, ar = "";
function tu(e, t, n, o, r, i, a, l) {
  return { value: e, root: t, parent: n, type: o, props: r, children: i, line: Za, column: qo, length: a, return: "", siblings: l };
}
function VC() {
  return Ke;
}
function WC() {
  return Ke = Dt > 0 ? zo(ar, --Dt) : 0, qo--, Ke === 10 && (qo = 1, Za--), Ke;
}
function _t() {
  return Ke = Dt < vh ? zo(ar, Dt++) : 0, qo++, Ke === 10 && (qo = 1, Za++), Ke;
}
function $n() {
  return zo(ar, Dt);
}
function oa() {
  return Dt;
}
function Qa(e, t) {
  return Uo(ar, e, t);
}
function Gr(e) {
  switch (e) {
    // \0 \t \n \r \s whitespace token
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    // ! + , / > @ ~ isolate token
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    // ; { } breakpoint token
    case 59:
    case 123:
    case 125:
      return 4;
    // : accompanied token
    case 58:
      return 3;
    // " ' ( [ opening delimit token
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    // ) ] closing delimit token
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
function kC(e) {
  return Za = qo = 1, vh = Ut(ar = e), Dt = 0, [];
}
function XC(e) {
  return ar = "", e;
}
function _l(e) {
  return gh(Qa(Dt - 1, ks(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function KC(e) {
  for (; (Ke = $n()) && Ke < 33; )
    _t();
  return Gr(e) > 2 || Gr(Ke) > 3 ? "" : " ";
}
function GC(e, t) {
  for (; --t && _t() && !(Ke < 48 || Ke > 102 || Ke > 57 && Ke < 65 || Ke > 70 && Ke < 97); )
    ;
  return Qa(e, oa() + (t < 6 && $n() == 32 && _t() == 32));
}
function ks(e) {
  for (; _t(); )
    switch (Ke) {
      // ] ) " '
      case e:
        return Dt;
      // " '
      case 34:
      case 39:
        e !== 34 && e !== 39 && ks(Ke);
        break;
      // (
      case 40:
        e === 41 && ks(e);
        break;
      // \
      case 92:
        _t();
        break;
    }
  return Dt;
}
function UC(e, t) {
  for (; _t() && e + Ke !== 57; )
    if (e + Ke === 84 && $n() === 47)
      break;
  return "/*" + Qa(t, Dt - 1) + "*" + eu(e === 47 ? e : _t());
}
function qC(e) {
  for (; !Gr($n()); )
    _t();
  return Qa(e, Dt);
}
function hh(e) {
  return XC(ra("", null, null, null, [""], e = kC(e), 0, [0], e));
}
function ra(e, t, n, o, r, i, a, l, s) {
  for (var c = 0, u = 0, d = a, f = 0, p = 0, y = 0, g = 1, v = 1, b = 1, O = 0, C = "", x = r, S = i, P = o, $ = C; v; )
    switch (y = O, O = _t()) {
      // (
      case 40:
        if (y != 108 && zo($, d - 1) == 58) {
          HC($ += na(_l(O), "&", "&\f"), "&\f", mh(c ? l[c - 1] : 0)) != -1 && (b = -1);
          break;
        }
      // " ' [
      case 34:
      case 39:
      case 91:
        $ += _l(O);
        break;
      // \t \n \r \s
      case 9:
      case 10:
      case 13:
      case 32:
        $ += KC(y);
        break;
      // \
      case 92:
        $ += GC(oa() - 1, 7);
        continue;
      // /
      case 47:
        switch ($n()) {
          case 42:
          case 47:
            Ai(YC(UC(_t(), oa()), t, n, s), s), (Gr(y || 1) == 5 || Gr($n() || 1) == 5) && Ut($) && Uo($, -1, void 0) !== " " && ($ += " ");
            break;
          default:
            $ += "/";
        }
        break;
      // {
      case 123 * g:
        l[c++] = Ut($) * b;
      // } ; \0
      case 125 * g:
      case 59:
      case 0:
        switch (O) {
          // \0 }
          case 0:
          case 125:
            v = 0;
          // ;
          case 59 + u:
            b == -1 && ($ = na($, /\f/g, "")), p > 0 && (Ut($) - d || g === 0 && y === 47) && Ai(p > 32 ? Sf($ + ";", o, n, d - 1, s) : Sf(na($, " ", "") + ";", o, n, d - 2, s), s);
            break;
          // @ ;
          case 59:
            $ += ";";
          // { rule/at-rule
          default:
            if (Ai(P = bf($, t, n, c, u, r, l, C, x = [], S = [], d, i), i), O === 123)
              if (u === 0)
                ra($, t, P, P, x, i, d, l, S);
              else {
                switch (f) {
                  // c(ontainer)
                  case 99:
                    if (zo($, 3) === 110) break;
                  // l(ayer)
                  case 108:
                    if (zo($, 2) === 97) break;
                  default:
                    u = 0;
                  // d(ocument) m(edia) s(upports)
                  case 100:
                  case 109:
                  case 115:
                }
                u ? ra(e, P, P, o && Ai(bf(e, P, P, 0, 0, r, l, C, r, x = [], d, S), S), r, S, d, l, o ? x : S) : ra($, P, P, P, [""], S, 0, l, S);
              }
        }
        c = u = p = 0, g = b = 1, C = $ = "", d = a;
        break;
      // :
      case 58:
        d = 1 + Ut($), p = y;
      default:
        if (g < 1) {
          if (O == 123)
            --g;
          else if (O == 125 && g++ == 0 && WC() == 125)
            continue;
        }
        switch ($ += eu(O), O * g) {
          // &
          case 38:
            b = u > 0 ? 1 : ($ += "\f", -1);
            break;
          // ,
          case 44:
            l[c++] = (Ut($) - 1) * b, b = 1;
            break;
          // @
          case 64:
            $n() === 45 && ($ += _l(_t())), f = $n(), u = d = Ut(C = $ += qC(oa())), O++;
            break;
          // -
          case 45:
            y === 45 && Ut($) == 2 && (g = 0);
        }
    }
  return i;
}
function bf(e, t, n, o, r, i, a, l, s, c, u, d) {
  for (var f = r - 1, p = r === 0 ? i : [""], y = _C(p), g = 0, v = 0, b = 0; g < o; ++g)
    for (var O = 0, C = Uo(e, f + 1, f = mh(v = a[g])), x = e; O < y; ++O)
      (x = gh(v > 0 ? p[O] + " " + C : na(C, /&\f/g, p[O]))) && (s[b++] = x);
  return tu(e, t, n, r === 0 ? fh : l, s, c, u, d);
}
function YC(e, t, n, o) {
  return tu(e, t, n, dh, eu(VC()), Uo(e, 2, -2), 0, o);
}
function Sf(e, t, n, o, r) {
  return tu(e, t, n, ph, Uo(e, 0, o), Uo(e, o + 1, -1), o, r);
}
function wa(e, t) {
  for (var n = "", o = 0; o < e.length; o++)
    n += t(e[o], o, e, t) || "";
  return n;
}
function yh(e, t, n, o) {
  switch (e.type) {
    case BC:
      if (e.children.length) break;
    case NC:
    case jC:
    case ph:
      return e.return = e.return || e.value;
    case dh:
      return "";
    case zC:
      return e.return = e.value + "{" + wa(e.children, o) + "}";
    case fh:
      if (!Ut(e.value = e.props.join(","))) return "";
  }
  return Ut(n = wa(e.children, o)) ? e.return = e.value + "{" + n + "}" : "";
}
const Cf = "data-ant-cssinjs-cache-path", ZC = "_FILE_STYLE__";
let no, bh = !0;
function QC() {
  var e;
  if (!no && (no = {}, Ct())) {
    const t = document.createElement("div");
    t.className = Cf, t.style.position = "fixed", t.style.visibility = "hidden", t.style.top = "-9999px", document.body.appendChild(t);
    let n = getComputedStyle(t).content || "";
    n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((r) => {
      const [i, a] = r.split(":");
      no[i] = a;
    });
    const o = document.querySelector(`style[${Cf}]`);
    o && (bh = !1, (e = o.parentNode) === null || e === void 0 || e.removeChild(o)), document.body.removeChild(t);
  }
}
function JC(e) {
  return QC(), !!no[e];
}
function e$(e) {
  const t = no[e];
  let n = null;
  if (t && Ct())
    if (bh)
      n = ZC;
    else {
      const o = document.querySelector(`style[${to}="${no[e]}"]`);
      o ? n = o.innerHTML : delete no[e];
    }
  return [n, t];
}
const $f = Ct(), t$ = "_skip_check_", Sh = "_multi_value_";
function wf(e) {
  return wa(hh(e), yh).replace(/\{%%%\:[^;];}/g, ";");
}
function n$(e) {
  return typeof e == "object" && e && (t$ in e || Sh in e);
}
function o$(e, t, n) {
  if (!t)
    return e;
  const o = `.${t}`, r = n === "low" ? `:where(${o})` : o;
  return e.split(",").map((a) => {
    var l;
    const s = a.trim().split(/\s+/);
    let c = s[0] || "";
    const u = ((l = c.match(/^\w+/)) === null || l === void 0 ? void 0 : l[0]) || "";
    return c = `${u}${r}${c.slice(u.length)}`, [c, ...s.slice(1)].join(" ");
  }).join(",");
}
const xf = /* @__PURE__ */ new Set(), Xs = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
    root: n,
    injectHash: o,
    parentSelectors: r
  } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
    root: !0,
    parentSelectors: []
  };
  const {
    hashId: i,
    layer: a,
    path: l,
    hashPriority: s,
    transformers: c = [],
    linters: u = []
  } = t;
  let d = "", f = {};
  function p(v) {
    const b = v.getName(i);
    if (!f[b]) {
      const [O] = Xs(v.style, t, {
        root: !1,
        parentSelectors: r
      });
      f[b] = `@keyframes ${v.getName(i)}${O}`;
    }
  }
  function y(v) {
    let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
    return v.forEach((O) => {
      Array.isArray(O) ? y(O, b) : O && b.push(O);
    }), b;
  }
  if (y(Array.isArray(e) ? e : [e]).forEach((v) => {
    const b = typeof v == "string" && !n ? {} : v;
    if (typeof b == "string")
      d += `${b}
`;
    else if (b._keyframe)
      p(b);
    else {
      const O = c.reduce((C, x) => {
        var S;
        return ((S = x == null ? void 0 : x.visit) === null || S === void 0 ? void 0 : S.call(x, C)) || C;
      }, b);
      Object.keys(O).forEach((C) => {
        var x;
        const S = O[C];
        if (typeof S == "object" && S && (C !== "animationName" || !S._keyframe) && !n$(S)) {
          let P = !1, $ = C.trim(), T = !1;
          (n || o) && i ? $.startsWith("@") ? P = !0 : $ = o$(C, i, s) : n && !i && ($ === "&" || $ === "") && ($ = "", T = !0);
          const [E, M] = Xs(S, t, {
            root: T,
            injectHash: P,
            parentSelectors: [...r, $]
          });
          f = h(h({}, f), M), d += `${$}${E}`;
        } else {
          let P = function(T, E) {
            const M = T.replace(/[A-Z]/g, (N) => `-${N.toLowerCase()}`);
            let R = E;
            !LC[T] && typeof R == "number" && R !== 0 && (R = `${R}px`), T === "animationName" && (E != null && E._keyframe) && (p(E), R = E.getName(i)), d += `${M}:${R};`;
          };
          const $ = (x = S == null ? void 0 : S.value) !== null && x !== void 0 ? x : S;
          typeof S == "object" && (S != null && S[Sh]) && Array.isArray($) ? $.forEach((T) => {
            P(C, T);
          }) : P(C, $);
        }
      });
    }
  }), !n)
    d = `{${d}}`;
  else if (a && IC()) {
    const v = a.split(",");
    d = `@layer ${v[v.length - 1].trim()} {${d}}`, v.length > 1 && (d = `@layer ${a}{%%%:%}${d}`);
  }
  return [d, f];
};
function r$(e, t) {
  return ir(`${e.join("%")}${t}`);
}
function Ks(e, t) {
  const n = qa(), o = w(() => e.value.token._tokenKey), r = w(() => [o.value, ...e.value.path]);
  let i = $f;
  return oh(
    "style",
    r,
    // Create cache if needed
    () => {
      const {
        path: a,
        hashId: l,
        layer: s,
        nonce: c,
        clientOnly: u,
        order: d = 0
      } = e.value, f = r.value.join("|");
      if (JC(f)) {
        const [$, T] = e$(f);
        if ($)
          return [$, o.value, T, {}, u, d];
      }
      const p = t(), {
        hashPriority: y,
        container: g,
        transformers: v,
        linters: b,
        cache: O
      } = n.value, [C, x] = Xs(p, {
        hashId: l,
        hashPriority: y,
        layer: s,
        path: a.join("-"),
        transformers: v,
        linters: b
      }), S = wf(C), P = r$(r.value, S);
      if (i) {
        const $ = {
          mark: to,
          prepend: "queue",
          attachTo: g,
          priority: d
        }, T = typeof c == "function" ? c() : c;
        T && ($.csp = {
          nonce: T
        });
        const E = Kr(S, P, $);
        E[Ro] = O.instanceId, E.setAttribute(eh, o.value), Object.keys(x).forEach((M) => {
          xf.has(M) || (xf.add(M), Kr(wf(x[M]), `_effect-${M}`, {
            mark: to,
            prepend: "queue",
            attachTo: g
          }));
        });
      }
      return [S, o.value, P, x, u, d];
    },
    // Remove cache if no need
    (a, l) => {
      let [, , s] = a;
      (l || n.value.autoClear) && $f && Ca(s, {
        mark: to
      });
    }
  ), (a) => a;
}
let Se = class {
  constructor(t, n) {
    this._keyframe = !0, this.name = t, this.style = n;
  }
  getName() {
    let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
    return t ? `${t}-${this.name}` : this.name;
  }
};
function Co(e) {
  return e.notSplit = !0, e;
}
Co(["borderTop", "borderBottom"]), Co(["borderTop"]), Co(["borderBottom"]), Co(["borderLeft", "borderRight"]), Co(["borderLeft"]), Co(["borderRight"]);
const i$ = "4.2.6", Ur = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
function nt(e, t) {
  a$(e) && (e = "100%");
  var n = l$(e);
  return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
}
function Mi(e) {
  return Math.min(1, Math.max(0, e));
}
function a$(e) {
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
}
function l$(e) {
  return typeof e == "string" && e.indexOf("%") !== -1;
}
function Ch(e) {
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
}
function Ri(e) {
  return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
}
function Jn(e) {
  return e.length === 1 ? "0" + e : String(e);
}
function s$(e, t, n) {
  return {
    r: nt(e, 255) * 255,
    g: nt(t, 255) * 255,
    b: nt(n, 255) * 255
  };
}
function Of(e, t, n) {
  e = nt(e, 255), t = nt(t, 255), n = nt(n, 255);
  var o = Math.max(e, t, n), r = Math.min(e, t, n), i = 0, a = 0, l = (o + r) / 2;
  if (o === r)
    a = 0, i = 0;
  else {
    var s = o - r;
    switch (a = l > 0.5 ? s / (2 - o - r) : s / (o + r), o) {
      case e:
        i = (t - n) / s + (t < n ? 6 : 0);
        break;
      case t:
        i = (n - e) / s + 2;
        break;
      case n:
        i = (e - t) / s + 4;
        break;
    }
    i /= 6;
  }
  return { h: i, s: a, l };
}
function Vl(e, t, n) {
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
function c$(e, t, n) {
  var o, r, i;
  if (e = nt(e, 360), t = nt(t, 100), n = nt(n, 100), t === 0)
    r = n, i = n, o = n;
  else {
    var a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
    o = Vl(l, a, e + 1 / 3), r = Vl(l, a, e), i = Vl(l, a, e - 1 / 3);
  }
  return { r: o * 255, g: r * 255, b: i * 255 };
}
function Gs(e, t, n) {
  e = nt(e, 255), t = nt(t, 255), n = nt(n, 255);
  var o = Math.max(e, t, n), r = Math.min(e, t, n), i = 0, a = o, l = o - r, s = o === 0 ? 0 : l / o;
  if (o === r)
    i = 0;
  else {
    switch (o) {
      case e:
        i = (t - n) / l + (t < n ? 6 : 0);
        break;
      case t:
        i = (n - e) / l + 2;
        break;
      case n:
        i = (e - t) / l + 4;
        break;
    }
    i /= 6;
  }
  return { h: i, s, v: a };
}
function u$(e, t, n) {
  e = nt(e, 360) * 6, t = nt(t, 100), n = nt(n, 100);
  var o = Math.floor(e), r = e - o, i = n * (1 - t), a = n * (1 - r * t), l = n * (1 - (1 - r) * t), s = o % 6, c = [n, a, i, i, l, n][s], u = [l, n, n, a, i, i][s], d = [i, i, l, n, n, a][s];
  return { r: c * 255, g: u * 255, b: d * 255 };
}
function Us(e, t, n, o) {
  var r = [
    Jn(Math.round(e).toString(16)),
    Jn(Math.round(t).toString(16)),
    Jn(Math.round(n).toString(16))
  ];
  return o && r[0].startsWith(r[0].charAt(1)) && r[1].startsWith(r[1].charAt(1)) && r[2].startsWith(r[2].charAt(1)) ? r[0].charAt(0) + r[1].charAt(0) + r[2].charAt(0) : r.join("");
}
function d$(e, t, n, o, r) {
  var i = [
    Jn(Math.round(e).toString(16)),
    Jn(Math.round(t).toString(16)),
    Jn(Math.round(n).toString(16)),
    Jn(f$(o))
  ];
  return r && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
}
function f$(e) {
  return Math.round(parseFloat(e) * 255).toString(16);
}
function Pf(e) {
  return yt(e) / 255;
}
function yt(e) {
  return parseInt(e, 16);
}
function p$(e) {
  return {
    r: e >> 16,
    g: (e & 65280) >> 8,
    b: e & 255
  };
}
var qs = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkgrey: "#a9a9a9",
  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: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  goldenrod: "#daa520",
  gold: "#ffd700",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  grey: "#808080",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavenderblush: "#fff0f5",
  lavender: "#e6e6fa",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightgrey: "#d3d3d3",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightslategrey: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  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: "#ff0000",
  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: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32"
};
function Eo(e) {
  var t = { r: 0, g: 0, b: 0 }, n = 1, o = null, r = null, i = null, a = !1, l = !1;
  return typeof e == "string" && (e = v$(e)), typeof e == "object" && (on(e.r) && on(e.g) && on(e.b) ? (t = s$(e.r, e.g, e.b), a = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : on(e.h) && on(e.s) && on(e.v) ? (o = Ri(e.s), r = Ri(e.v), t = u$(e.h, o, r), a = !0, l = "hsv") : on(e.h) && on(e.s) && on(e.l) && (o = Ri(e.s), i = Ri(e.l), t = c$(e.h, o, i), a = !0, l = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Ch(n), {
    ok: a,
    format: e.format || l,
    r: Math.min(255, Math.max(t.r, 0)),
    g: Math.min(255, Math.max(t.g, 0)),
    b: Math.min(255, Math.max(t.b, 0)),
    a: n
  };
}
var m$ = "[-\\+]?\\d+%?", g$ = "[-\\+]?\\d*\\.\\d+%?", wn = "(?:".concat(g$, ")|(?:").concat(m$, ")"), Wl = "[\\s|\\(]+(".concat(wn, ")[,|\\s]+(").concat(wn, ")[,|\\s]+(").concat(wn, ")\\s*\\)?"), kl = "[\\s|\\(]+(".concat(wn, ")[,|\\s]+(").concat(wn, ")[,|\\s]+(").concat(wn, ")[,|\\s]+(").concat(wn, ")\\s*\\)?"), zt = {
  CSS_UNIT: new RegExp(wn),
  rgb: new RegExp("rgb" + Wl),
  rgba: new RegExp("rgba" + kl),
  hsl: new RegExp("hsl" + Wl),
  hsla: new RegExp("hsla" + kl),
  hsv: new RegExp("hsv" + Wl),
  hsva: new RegExp("hsva" + kl),
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function v$(e) {
  if (e = e.trim().toLowerCase(), e.length === 0)
    return !1;
  var t = !1;
  if (qs[e])
    e = qs[e], t = !0;
  else if (e === "transparent")
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  var n = zt.rgb.exec(e);
  return n ? { r: n[1], g: n[2], b: n[3] } : (n = zt.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = zt.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = zt.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = zt.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = zt.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = zt.hex8.exec(e), n ? {
    r: yt(n[1]),
    g: yt(n[2]),
    b: yt(n[3]),
    a: Pf(n[4]),
    format: t ? "name" : "hex8"
  } : (n = zt.hex6.exec(e), n ? {
    r: yt(n[1]),
    g: yt(n[2]),
    b: yt(n[3]),
    format: t ? "name" : "hex"
  } : (n = zt.hex4.exec(e), n ? {
    r: yt(n[1] + n[1]),
    g: yt(n[2] + n[2]),
    b: yt(n[3] + n[3]),
    a: Pf(n[4] + n[4]),
    format: t ? "name" : "hex8"
  } : (n = zt.hex3.exec(e), n ? {
    r: yt(n[1] + n[1]),
    g: yt(n[2] + n[2]),
    b: yt(n[3] + n[3]),
    format: t ? "name" : "hex"
  } : !1)))))))));
}
function on(e) {
  return !!zt.CSS_UNIT.exec(String(e));
}
var Fe = (
  /** @class */
  (function() {
    function e(t, n) {
      t === void 0 && (t = ""), n === void 0 && (n = {});
      var o;
      if (t instanceof e)
        return t;
      typeof t == "number" && (t = p$(t)), this.originalInput = t;
      var r = Eo(t);
      this.originalInput = t, this.r = r.r, this.g = r.g, this.b = r.b, this.a = r.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (o = n.format) !== null && o !== void 0 ? o : r.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = r.ok;
    }
    return e.prototype.isDark = function() {
      return this.getBrightness() < 128;
    }, e.prototype.isLight = function() {
      return !this.isDark();
    }, e.prototype.getBrightness = function() {
      var t = this.toRgb();
      return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
    }, e.prototype.getLuminance = function() {
      var t = this.toRgb(), n, o, r, i = t.r / 255, a = t.g / 255, l = t.b / 255;
      return i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), a <= 0.03928 ? o = a / 12.92 : o = Math.pow((a + 0.055) / 1.055, 2.4), l <= 0.03928 ? r = l / 12.92 : r = Math.pow((l + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * o + 0.0722 * r;
    }, e.prototype.getAlpha = function() {
      return this.a;
    }, e.prototype.setAlpha = function(t) {
      return this.a = Ch(t), this.roundA = Math.round(100 * this.a) / 100, this;
    }, e.prototype.isMonochrome = function() {
      var t = this.toHsl().s;
      return t === 0;
    }, e.prototype.toHsv = function() {
      var t = Gs(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
    }, e.prototype.toHsvString = function() {
      var t = Gs(this.r, this.g, this.b), n = Math.round(t.h * 360), o = Math.round(t.s * 100), r = Math.round(t.v * 100);
      return this.a === 1 ? "hsv(".concat(n, ", ").concat(o, "%, ").concat(r, "%)") : "hsva(".concat(n, ", ").concat(o, "%, ").concat(r, "%, ").concat(this.roundA, ")");
    }, e.prototype.toHsl = function() {
      var t = Of(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
    }, e.prototype.toHslString = function() {
      var t = Of(this.r, this.g, this.b), n = Math.round(t.h * 360), o = Math.round(t.s * 100), r = Math.round(t.l * 100);
      return this.a === 1 ? "hsl(".concat(n, ", ").concat(o, "%, ").concat(r, "%)") : "hsla(".concat(n, ", ").concat(o, "%, ").concat(r, "%, ").concat(this.roundA, ")");
    }, e.prototype.toHex = function(t) {
      return t === void 0 && (t = !1), Us(this.r, this.g, this.b, t);
    }, e.prototype.toHexString = function(t) {
      return t === void 0 && (t = !1), "#" + this.toHex(t);
    }, e.prototype.toHex8 = function(t) {
      return t === void 0 && (t = !1), d$(this.r, this.g, this.b, this.a, t);
    }, e.prototype.toHex8String = function(t) {
      return t === void 0 && (t = !1), "#" + this.toHex8(t);
    }, e.prototype.toHexShortString = function(t) {
      return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
    }, e.prototype.toRgb = function() {
      return {
        r: Math.round(this.r),
        g: Math.round(this.g),
        b: Math.round(this.b),
        a: this.a
      };
    }, e.prototype.toRgbString = function() {
      var t = Math.round(this.r), n = Math.round(this.g), o = Math.round(this.b);
      return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(o, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(o, ", ").concat(this.roundA, ")");
    }, e.prototype.toPercentageRgb = function() {
      var t = function(n) {
        return "".concat(Math.round(nt(n, 255) * 100), "%");
      };
      return {
        r: t(this.r),
        g: t(this.g),
        b: t(this.b),
        a: this.a
      };
    }, e.prototype.toPercentageRgbString = function() {
      var t = function(n) {
        return Math.round(nt(n, 255) * 100);
      };
      return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
    }, e.prototype.toName = function() {
      if (this.a === 0)
        return "transparent";
      if (this.a < 1)
        return !1;
      for (var t = "#" + Us(this.r, this.g, this.b, !1), n = 0, o = Object.entries(qs); n < o.length; n++) {
        var r = o[n], i = r[0], a = r[1];
        if (t === a)
          return i;
      }
      return !1;
    }, e.prototype.toString = function(t) {
      var n = !!t;
      t = t ?? this.format;
      var o = !1, r = this.a < 1 && this.a >= 0, i = !n && r && (t.startsWith("hex") || t === "name");
      return i ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (o = this.toRgbString()), t === "prgb" && (o = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (o = this.toHexString()), t === "hex3" && (o = this.toHexString(!0)), t === "hex4" && (o = this.toHex8String(!0)), t === "hex8" && (o = this.toHex8String()), t === "name" && (o = this.toName()), t === "hsl" && (o = this.toHslString()), t === "hsv" && (o = this.toHsvString()), o || this.toHexString());
    }, e.prototype.toNumber = function() {
      return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
    }, e.prototype.clone = function() {
      return new e(this.toString());
    }, e.prototype.lighten = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.l += t / 100, n.l = Mi(n.l), new e(n);
    }, e.prototype.brighten = function(t) {
      t === void 0 && (t = 10);
      var n = this.toRgb();
      return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100)))), new e(n);
    }, e.prototype.darken = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.l -= t / 100, n.l = Mi(n.l), new e(n);
    }, e.prototype.tint = function(t) {
      return t === void 0 && (t = 10), this.mix("white", t);
    }, e.prototype.shade = function(t) {
      return t === void 0 && (t = 10), this.mix("black", t);
    }, e.prototype.desaturate = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.s -= t / 100, n.s = Mi(n.s), new e(n);
    }, e.prototype.saturate = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.s += t / 100, n.s = Mi(n.s), new e(n);
    }, e.prototype.greyscale = function() {
      return this.desaturate(100);
    }, e.prototype.spin = function(t) {
      var n = this.toHsl(), o = (n.h + t) % 360;
      return n.h = o < 0 ? 360 + o : o, new e(n);
    }, e.prototype.mix = function(t, n) {
      n === void 0 && (n = 50);
      var o = this.toRgb(), r = new e(t).toRgb(), i = n / 100, a = {
        r: (r.r - o.r) * i + o.r,
        g: (r.g - o.g) * i + o.g,
        b: (r.b - o.b) * i + o.b,
        a: (r.a - o.a) * i + o.a
      };
      return new e(a);
    }, e.prototype.analogous = function(t, n) {
      t === void 0 && (t = 6), n === void 0 && (n = 30);
      var o = this.toHsl(), r = 360 / n, i = [this];
      for (o.h = (o.h - (r * t >> 1) + 720) % 360; --t; )
        o.h = (o.h + r) % 360, i.push(new e(o));
      return i;
    }, e.prototype.complement = function() {
      var t = this.toHsl();
      return t.h = (t.h + 180) % 360, new e(t);
    }, e.prototype.monochromatic = function(t) {
      t === void 0 && (t = 6);
      for (var n = this.toHsv(), o = n.h, r = n.s, i = n.v, a = [], l = 1 / t; t--; )
        a.push(new e({ h: o, s: r, v: i })), i = (i + l) % 1;
      return a;
    }, e.prototype.splitcomplement = function() {
      var t = this.toHsl(), n = t.h;
      return [
        this,
        new e({ h: (n + 72) % 360, s: t.s, l: t.l }),
        new e({ h: (n + 216) % 360, s: t.s, l: t.l })
      ];
    }, e.prototype.onBackground = function(t) {
      var n = this.toRgb(), o = new e(t).toRgb(), r = n.a + o.a * (1 - n.a);
      return new e({
        r: (n.r * n.a + o.r * o.a * (1 - n.a)) / r,
        g: (n.g * n.a + o.g * o.a * (1 - n.a)) / r,
        b: (n.b * n.a + o.b * o.a * (1 - n.a)) / r,
        a: r
      });
    }, e.prototype.triad = function() {
      return this.polyad(3);
    }, e.prototype.tetrad = function() {
      return this.polyad(4);
    }, e.prototype.polyad = function(t) {
      for (var n = this.toHsl(), o = n.h, r = [this], i = 360 / t, a = 1; a < t; a++)
        r.push(new e({ h: (o + a * i) % 360, s: n.s, l: n.l }));
      return r;
    }, e.prototype.equals = function(t) {
      return this.toRgbString() === new e(t).toRgbString();
    }, e;
  })()
), Di = 2, If = 0.16, h$ = 0.05, y$ = 0.05, b$ = 0.15, $h = 5, wh = 4, S$ = [{
  index: 7,
  opacity: 0.15
}, {
  index: 6,
  opacity: 0.25
}, {
  index: 5,
  opacity: 0.3
}, {
  index: 5,
  opacity: 0.45
}, {
  index: 5,
  opacity: 0.65
}, {
  index: 5,
  opacity: 0.85
}, {
  index: 4,
  opacity: 0.9
}, {
  index: 3,
  opacity: 0.95
}, {
  index: 2,
  opacity: 0.97
}, {
  index: 1,
  opacity: 0.98
}];
function Tf(e) {
  var t = e.r, n = e.g, o = e.b, r = Gs(t, n, o);
  return {
    h: r.h * 360,
    s: r.s,
    v: r.v
  };
}
function Fi(e) {
  var t = e.r, n = e.g, o = e.b;
  return "#".concat(Us(t, n, o, !1));
}
function C$(e, t, n) {
  var o = n / 100, r = {
    r: (t.r - e.r) * o + e.r,
    g: (t.g - e.g) * o + e.g,
    b: (t.b - e.b) * o + e.b
  };
  return r;
}
function Ef(e, t, n) {
  var o;
  return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? o = n ? Math.round(e.h) - Di * t : Math.round(e.h) + Di * t : o = n ? Math.round(e.h) + Di * t : Math.round(e.h) - Di * t, o < 0 ? o += 360 : o >= 360 && (o -= 360), o;
}
function Af(e, t, n) {
  if (e.h === 0 && e.s === 0)
    return e.s;
  var o;
  return n ? o = e.s - If * t : t === wh ? o = e.s + If : o = e.s + h$ * t, o > 1 && (o = 1), n && t === $h && o > 0.1 && (o = 0.1), o < 0.06 && (o = 0.06), Number(o.toFixed(2));
}
function Mf(e, t, n) {
  var o;
  return n ? o = e.v + y$ * t : o = e.v - b$ * t, o > 1 && (o = 1), Number(o.toFixed(2));
}
function un(e) {
  for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], o = Eo(e), r = $h; r > 0; r -= 1) {
    var i = Tf(o), a = Fi(Eo({
      h: Ef(i, r, !0),
      s: Af(i, r, !0),
      v: Mf(i, r, !0)
    }));
    n.push(a);
  }
  n.push(Fi(o));
  for (var l = 1; l <= wh; l += 1) {
    var s = Tf(o), c = Fi(Eo({
      h: Ef(s, l),
      s: Af(s, l),
      v: Mf(s, l)
    }));
    n.push(c);
  }
  return t.theme === "dark" ? S$.map(function(u) {
    var d = u.index, f = u.opacity, p = Fi(C$(Eo(t.backgroundColor || "#141414"), Eo(n[d]), f * 100));
    return p;
  }) : n;
}
var Bo = {
  red: "#F5222D",
  volcano: "#FA541C",
  orange: "#FA8C16",
  gold: "#FAAD14",
  yellow: "#FADB14",
  lime: "#A0D911",
  green: "#52C41A",
  cyan: "#13C2C2",
  blue: "#1890FF",
  geekblue: "#2F54EB",
  purple: "#722ED1",
  magenta: "#EB2F96",
  grey: "#666666"
}, at = {}, Xl = {};
Object.keys(Bo).forEach(function(e) {
  at[e] = un(Bo[e]), at[e].primary = at[e][5], Xl[e] = un(Bo[e], {
    theme: "dark",
    backgroundColor: "#141414"
  }), Xl[e].primary = Xl[e][5];
});
at.red;
at.volcano;
var $$ = at.gold;
at.orange;
at.yellow;
at.lime;
at.green;
at.cyan;
var w$ = at.blue;
at.geekblue;
at.purple;
at.magenta;
at.grey;
const xh = (e) => {
  const {
    controlHeight: t
  } = e;
  return {
    controlHeightSM: t * 0.75,
    controlHeightXS: t * 0.5,
    controlHeightLG: t * 1.25
  };
};
function x$(e) {
  const {
    sizeUnit: t,
    sizeStep: n
  } = e;
  return {
    sizeXXL: t * (n + 8),
    sizeXL: t * (n + 4),
    sizeLG: t * (n + 2),
    sizeMD: t * (n + 1),
    sizeMS: t * n,
    size: t * n,
    sizeSM: t * (n - 1),
    sizeXS: t * (n - 2),
    sizeXXS: t * (n - 3)
    // 4
  };
}
const nu = {
  blue: "#1677ff",
  purple: "#722ED1",
  cyan: "#13C2C2",
  green: "#52C41A",
  magenta: "#EB2F96",
  pink: "#eb2f96",
  red: "#F5222D",
  orange: "#FA8C16",
  yellow: "#FADB14",
  volcano: "#FA541C",
  geekblue: "#2F54EB",
  gold: "#FAAD14",
  lime: "#A0D911"
}, Ja = h(h({}, nu), {
  // Color
  colorPrimary: "#1677ff",
  colorSuccess: "#52c41a",
  colorWarning: "#faad14",
  colorError: "#ff4d4f",
  colorInfo: "#1677ff",
  colorTextBase: "",
  colorBgBase: "",
  // Font
  fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,
  fontSize: 14,
  // Line
  lineWidth: 1,
  lineType: "solid",
  // Motion
  motionUnit: 0.1,
  motionBase: 0,
  motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
  motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
  motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
  motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
  motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
  motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
  motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
  motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
  // Radius
  borderRadius: 6,
  // Size
  sizeUnit: 4,
  sizeStep: 4,
  sizePopupArrow: 16,
  // Control Base
  controlHeight: 32,
  // zIndex
  zIndexBase: 0,
  zIndexPopupBase: 1e3,
  // Image
  opacityImage: 1,
  // Wireframe
  wireframe: !1
});
function Oh(e, t) {
  let {
    generateColorPalettes: n,
    generateNeutralColorPalettes: o
  } = t;
  const {
    colorSuccess: r,
    colorWarning: i,
    colorError: a,
    colorInfo: l,
    colorPrimary: s,
    colorBgBase: c,
    colorTextBase: u
  } = e, d = n(s), f = n(r), p = n(i), y = n(a), g = n(l), v = o(c, u);
  return h(h({}, v), {
    colorPrimaryBg: d[1],
    colorPrimaryBgHover: d[2],
    colorPrimaryBorder: d[3],
    colorPrimaryBorderHover: d[4],
    colorPrimaryHover: d[5],
    colorPrimary: d[6],
    colorPrimaryActive: d[7],
    colorPrimaryTextHover: d[8],
    colorPrimaryText: d[9],
    colorPrimaryTextActive: d[10],
    colorSuccessBg: f[1],
    colorSuccessBgHover: f[2],
    colorSuccessBorder: f[3],
    colorSuccessBorderHover: f[4],
    colorSuccessHover: f[4],
    colorSuccess: f[6],
    colorSuccessActive: f[7],
    colorSuccessTextHover: f[8],
    colorSuccessText: f[9],
    colorSuccessTextActive: f[10],
    colorErrorBg: y[1],
    colorErrorBgHover: y[2],
    colorErrorBorder: y[3],
    colorErrorBorderHover: y[4],
    colorErrorHover: y[5],
    colorError: y[6],
    colorErrorActive: y[7],
    colorErrorTextHover: y[8],
    colorErrorText: y[9],
    colorErrorTextActive: y[10],
    colorWarningBg: p[1],
    colorWarningBgHover: p[2],
    colorWarningBorder: p[3],
    colorWarningBorderHover: p[4],
    colorWarningHover: p[4],
    colorWarning: p[6],
    colorWarningActive: p[7],
    colorWarningTextHover: p[8],
    colorWarningText: p[9],
    colorWarningTextActive: p[10],
    colorInfoBg: g[1],
    colorInfoBgHover: g[2],
    colorInfoBorder: g[3],
    colorInfoBorderHover: g[4],
    colorInfoHover: g[4],
    colorInfo: g[6],
    colorInfoActive: g[7],
    colorInfoTextHover: g[8],
    colorInfoText: g[9],
    colorInfoTextActive: g[10],
    colorBgMask: new Fe("#000").setAlpha(0.45).toRgbString(),
    colorWhite: "#fff"
  });
}
const O$ = (e) => {
  let t = e, n = e, o = e, r = e;
  return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? n = 4 : e < 8 && e >= 7 ? n = 5 : e < 14 && e >= 8 ? n = 6 : e < 16 && e >= 14 ? n = 7 : e >= 16 && (n = 8), e < 6 && e >= 2 ? o = 1 : e >= 6 && (o = 2), e > 4 && e < 8 ? r = 4 : e >= 8 && (r = 6), {
    borderRadius: e > 16 ? 16 : e,
    borderRadiusXS: o,
    borderRadiusSM: n,
    borderRadiusLG: t,
    borderRadiusOuter: r
  };
};
function P$(e) {
  const {
    motionUnit: t,
    motionBase: n,
    borderRadius: o,
    lineWidth: r
  } = e;
  return h({
    // motion
    motionDurationFast: `${(n + t).toFixed(1)}s`,
    motionDurationMid: `${(n + t * 2).toFixed(1)}s`,
    motionDurationSlow: `${(n + t * 3).toFixed(1)}s`,
    // line
    lineWidthBold: r + 1
  }, O$(o));
}
const rn = (e, t) => new Fe(e).setAlpha(t).toRgbString(), gr = (e, t) => new Fe(e).darken(t).toHexString(), I$ = (e) => {
  const t = un(e);
  return {
    1: t[0],
    2: t[1],
    3: t[2],
    4: t[3],
    5: t[4],
    6: t[5],
    7: t[6],
    8: t[4],
    9: t[5],
    10: t[6]
    // 8: colors[7],
    // 9: colors[8],
    // 10: colors[9],
  };
}, T$ = (e, t) => {
  const n = e || "#fff", o = t || "#000";
  return {
    colorBgBase: n,
    colorTextBase: o,
    colorText: rn(o, 0.88),
    colorTextSecondary: rn(o, 0.65),
    colorTextTertiary: rn(o, 0.45),
    colorTextQuaternary: rn(o, 0.25),
    colorFill: rn(o, 0.15),
    colorFillSecondary: rn(o, 0.06),
    colorFillTertiary: rn(o, 0.04),
    colorFillQuaternary: rn(o, 0.02),
    colorBgLayout: gr(n, 4),
    colorBgContainer: gr(n, 0),
    colorBgElevated: gr(n, 0),
    colorBgSpotlight: rn(o, 0.85),
    colorBorder: gr(n, 15),
    colorBorderSecondary: gr(n, 6)
  };
};
function E$(e) {
  const t = new Array(10).fill(null).map((n, o) => {
    const r = o - 1, i = e * Math.pow(2.71828, r / 5), a = o > 1 ? Math.floor(i) : Math.ceil(i);
    return Math.floor(a / 2) * 2;
  });
  return t[1] = e, t.map((n) => {
    const o = n + 8;
    return {
      size: n,
      lineHeight: o / n
    };
  });
}
const Ph = (e) => {
  const t = E$(e), n = t.map((r) => r.size), o = t.map((r) => r.lineHeight);
  return {
    fontSizeSM: n[0],
    fontSize: n[1],
    fontSizeLG: n[2],
    fontSizeXL: n[3],
    fontSizeHeading1: n[6],
    fontSizeHeading2: n[5],
    fontSizeHeading3: n[4],
    fontSizeHeading4: n[3],
    fontSizeHeading5: n[2],
    lineHeight: o[1],
    lineHeightLG: o[2],
    lineHeightSM: o[0],
    lineHeightHeading1: o[6],
    lineHeightHeading2: o[5],
    lineHeightHeading3: o[4],
    lineHeightHeading4: o[3],
    lineHeightHeading5: o[2]
  };
};
function el(e) {
  const t = Object.keys(nu).map((n) => {
    const o = un(e[n]);
    return new Array(10).fill(1).reduce((r, i, a) => (r[`${n}-${a + 1}`] = o[a], r), {});
  }).reduce((n, o) => (n = h(h({}, n), o), n), {});
  return h(h(h(h(h(h(h({}, e), t), Oh(e, {
    generateColorPalettes: I$,
    generateNeutralColorPalettes: T$
  })), Ph(e.fontSize)), x$(e)), xh(e)), P$(e));
}
function Kl(e) {
  return e >= 0 && e <= 255;
}
function Li(e, t) {
  const {
    r: n,
    g: o,
    b: r,
    a: i
  } = new Fe(e).toRgb();
  if (i < 1)
    return e;
  const {
    r: a,
    g: l,
    b: s
  } = new Fe(t).toRgb();
  for (let c = 0.01; c <= 1; c += 0.01) {
    const u = Math.round((n - a * (1 - c)) / c), d = Math.round((o - l * (1 - c)) / c), f = Math.round((r - s * (1 - c)) / c);
    if (Kl(u) && Kl(d) && Kl(f))
      return new Fe({
        r: u,
        g: d,
        b: f,
        a: Math.round(c * 100) / 100
      }).toRgbString();
  }
  return new Fe({
    r: n,
    g: o,
    b: r,
    a: 1
  }).toRgbString();
}
var A$ = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function Ih(e) {
  const {
    override: t
  } = e, n = A$(e, ["override"]), o = h({}, t);
  Object.keys(Ja).forEach((p) => {
    delete o[p];
  });
  const r = h(h({}, n), o), i = 480, a = 576, l = 768, s = 992, c = 1200, u = 1600, d = 2e3;
  return h(h(h({}, r), {
    colorLink: r.colorInfoText,
    colorLinkHover: r.colorInfoHover,
    colorLinkActive: r.colorInfoActive,
    // ============== Background ============== //
    colorFillContent: r.colorFillSecondary,
    colorFillContentHover: r.colorFill,
    colorFillAlter: r.colorFillQuaternary,
    colorBgContainerDisabled: r.colorFillTertiary,
    // ============== Split ============== //
    colorBorderBg: r.colorBgContainer,
    colorSplit: Li(r.colorBorderSecondary, r.colorBgContainer),
    // ============== Text ============== //
    colorTextPlaceholder: r.colorTextQuaternary,
    colorTextDisabled: r.colorTextQuaternary,
    colorTextHeading: r.colorText,
    colorTextLabel: r.colorTextSecondary,
    colorTextDescription: r.colorTextTertiary,
    colorTextLightSolid: r.colorWhite,
    colorHighlight: r.colorError,
    colorBgTextHover: r.colorFillSecondary,
    colorBgTextActive: r.colorFill,
    colorIcon: r.colorTextTertiary,
    colorIconHover: r.colorText,
    colorErrorOutline: Li(r.colorErrorBg, r.colorBgContainer),
    colorWarningOutline: Li(r.colorWarningBg, r.colorBgContainer),
    // Font
    fontSizeIcon: r.fontSizeSM,
    // Control
    lineWidth: r.lineWidth,
    controlOutlineWidth: r.lineWidth * 2,
    // Checkbox size and expand icon size
    controlInteractiveSize: r.controlHeight / 2,
    controlItemBgHover: r.colorFillTertiary,
    controlItemBgActive: r.colorPrimaryBg,
    controlItemBgActiveHover: r.colorPrimaryBgHover,
    controlItemBgActiveDisabled: r.colorFill,
    controlTmpOutline: r.colorFillQuaternary,
    controlOutline: Li(r.colorPrimaryBg, r.colorBgContainer),
    lineType: r.lineType,
    borderRadius: r.borderRadius,
    borderRadiusXS: r.borderRadiusXS,
    borderRadiusSM: r.borderRadiusSM,
    borderRadiusLG: r.borderRadiusLG,
    fontWeightStrong: 600,
    opacityLoading: 0.65,
    linkDecoration: "none",
    linkHoverDecoration: "none",
    linkFocusDecoration: "none",
    controlPaddingHorizontal: 12,
    controlPaddingHorizontalSM: 8,
    paddingXXS: r.sizeXXS,
    paddingXS: r.sizeXS,
    paddingSM: r.sizeSM,
    padding: r.size,
    paddingMD: r.sizeMD,
    paddingLG: r.sizeLG,
    paddingXL: r.sizeXL,
    paddingContentHorizontalLG: r.sizeLG,
    paddingContentVerticalLG: r.sizeMS,
    paddingContentHorizontal: r.sizeMS,
    paddingContentVertical: r.sizeSM,
    paddingContentHorizontalSM: r.size,
    paddingContentVerticalSM: r.sizeXS,
    marginXXS: r.sizeXXS,
    marginXS: r.sizeXS,
    marginSM: r.sizeSM,
    margin: r.size,
    marginMD: r.sizeMD,
    marginLG: r.sizeLG,
    marginXL: r.sizeXL,
    marginXXL: r.sizeXXL,
    boxShadow: `
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,
    boxShadowSecondary: `
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,
    boxShadowTertiary: `
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,
    screenXS: i,
    screenXSMin: i,
    screenXSMax: a - 1,
    screenSM: a,
    screenSMMin: a,
    screenSMMax: l - 1,
    screenMD: l,
    screenMDMin: l,
    screenMDMax: s - 1,
    screenLG: s,
    screenLGMin: s,
    screenLGMax: c - 1,
    screenXL: c,
    screenXLMin: c,
    screenXLMax: u - 1,
    screenXXL: u,
    screenXXLMin: u,
    screenXXLMax: d - 1,
    screenXXXL: d,
    screenXXXLMin: d,
    // FIXME: component box-shadow, should be removed
    boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
    boxShadowCard: `
      0 1px 2px -2px ${new Fe("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Fe("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Fe("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,
    boxShadowDrawerRight: `
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,
    boxShadowDrawerLeft: `
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,
    boxShadowDrawerUp: `
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,
    boxShadowDrawerDown: `
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,
    boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
    boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
    boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
    boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
  }), o);
}
const Th = (e) => ({
  // FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
  // And Typography use this to generate link style which should not do this.
  color: e.colorLink,
  textDecoration: "none",
  outline: "none",
  cursor: "pointer",
  transition: `color ${e.motionDurationSlow}`,
  "&:focus, &:hover": {
    color: e.colorLinkHover
  },
  "&:active": {
    color: e.colorLinkActive
  }
}), Eh = (e, t, n, o, r) => {
  const i = e / 2, a = 0, l = i, s = n * 1 / Math.sqrt(2), c = i - n * (1 - 1 / Math.sqrt(2)), u = i - t * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + t * (1 / Math.sqrt(2)), f = 2 * i - u, p = d, y = 2 * i - s, g = c, v = 2 * i - a, b = l, O = i * Math.sqrt(2) + n * (Math.sqrt(2) - 2), C = n * (Math.sqrt(2) - 1);
  return {
    pointerEvents: "none",
    width: e,
    height: e,
    overflow: "hidden",
    "&::after": {
      content: '""',
      position: "absolute",
      width: O,
      height: O,
      bottom: 0,
      insetInline: 0,
      margin: "auto",
      borderRadius: {
        _skip_check_: !0,
        value: `0 0 ${t}px 0`
      },
      transform: "translateY(50%) rotate(-135deg)",
      boxShadow: r,
      zIndex: 0,
      background: "transparent"
    },
    "&::before": {
      position: "absolute",
      bottom: 0,
      insetInlineStart: 0,
      width: e,
      height: e / 2,
      background: o,
      clipPath: {
        _multi_value_: !0,
        value: [`polygon(${C}px 100%, 50% ${C}px, ${2 * i - C}px 100%, ${C}px 100%)`, `path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${p} L ${y} ${g} A ${n} ${n} 0 0 0 ${v} ${b} Z')`]
      },
      content: '""'
    }
  };
};
function M$(e, t) {
  return Ur.reduce((n, o) => {
    const r = e[`${o}-1`], i = e[`${o}-3`], a = e[`${o}-6`], l = e[`${o}-7`];
    return h(h({}, n), t(o, {
      lightColor: r,
      lightBorderColor: i,
      darkColor: a,
      textColor: l
    }));
  }, {});
}
const En = {
  overflow: "hidden",
  whiteSpace: "nowrap",
  textOverflow: "ellipsis"
}, Ue = (e) => ({
  boxSizing: "border-box",
  margin: 0,
  padding: 0,
  color: e.colorText,
  fontSize: e.fontSize,
  // font-variant: @font-variant-base;
  lineHeight: e.lineHeight,
  listStyle: "none",
  // font-feature-settings: @font-feature-settings-base;
  fontFamily: e.fontFamily
}), tl = () => ({
  display: "inline-flex",
  alignItems: "center",
  color: "inherit",
  fontStyle: "normal",
  lineHeight: 0,
  textAlign: "center",
  textTransform: "none",
  // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
  verticalAlign: "-0.125em",
  textRendering: "optimizeLegibility",
  "-webkit-font-smoothing": "antialiased",
  "-moz-osx-font-smoothing": "grayscale",
  "> *": {
    lineHeight: 1
  },
  svg: {
    display: "inline-block"
  }
}), qr = () => ({
  // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
  "&::before": {
    display: "table",
    content: '""'
  },
  "&::after": {
    // https://github.com/ant-design/ant-design/issues/21864
    display: "table",
    clear: "both",
    content: '""'
  }
}), R$ = (e) => ({
  a: {
    color: e.colorLink,
    textDecoration: e.linkDecoration,
    backgroundColor: "transparent",
    outline: "none",
    cursor: "pointer",
    transition: `color ${e.motionDurationSlow}`,
    "-webkit-text-decoration-skip": "objects",
    "&:hover": {
      color: e.colorLinkHover
    },
    "&:active": {
      color: e.colorLinkActive
    },
    "&:active,\n  &:hover": {
      textDecoration: e.linkHoverDecoration,
      outline: 0
    },
    // https://github.com/ant-design/ant-design/issues/22503
    "&:focus": {
      textDecoration: e.linkFocusDecoration,
      outline: 0
    },
    "&[disabled]": {
      color: e.colorTextDisabled,
      cursor: "not-allowed"
    }
  }
}), D$ = (e, t) => {
  const {
    fontFamily: n,
    fontSize: o
  } = e, r = `[class^="${t}"], [class*=" ${t}"]`;
  return {
    [r]: {
      fontFamily: n,
      fontSize: o,
      boxSizing: "border-box",
      "&::before, &::after": {
        boxSizing: "border-box"
      },
      [r]: {
        boxSizing: "border-box",
        "&::before, &::after": {
          boxSizing: "border-box"
        }
      }
    }
  };
}, ou = (e) => ({
  outline: `${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,
  outlineOffset: 1,
  transition: "outline-offset 0s, outline 0s"
}), Ys = (e) => ({
  "&:focus-visible": h({}, ou(e))
});
function We(e, t, n) {
  return (o) => {
    const r = w(() => o == null ? void 0 : o.value), [i, a, l] = go(), {
      getPrefixCls: s,
      iconPrefixCls: c
    } = ui(), u = w(() => s()), d = w(() => ({
      theme: i.value,
      token: a.value,
      hashId: l.value,
      path: ["Shared", u.value]
    }));
    Ks(d, () => [{
      // Link
      "&": R$(a.value)
    }]);
    const f = w(() => ({
      theme: i.value,
      token: a.value,
      hashId: l.value,
      path: [e, r.value, c.value]
    }));
    return [Ks(f, () => {
      const {
        token: p,
        flush: y
      } = L$(a.value), g = typeof n == "function" ? n(p) : n, v = h(h({}, g), a.value[e]), b = `.${r.value}`, O = Me(p, {
        componentCls: b,
        prefixCls: r.value,
        iconCls: `.${c.value}`,
        antCls: `.${u.value}`
      }, v), C = t(O, {
        hashId: l.value,
        prefixCls: r.value,
        rootPrefixCls: u.value,
        iconPrefixCls: c.value,
        overrideComponentToken: a.value[e]
      });
      return y(e, v), [D$(a.value, r.value), C];
    }), l];
  };
}
const Ah = typeof CSSINJS_STATISTIC < "u";
let Zs = !0;
function Me() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  if (!Ah)
    return h({}, ...t);
  Zs = !1;
  const o = {};
  return t.forEach((r) => {
    Object.keys(r).forEach((a) => {
      Object.defineProperty(o, a, {
        configurable: !0,
        enumerable: !0,
        get: () => r[a]
      });
    });
  }), Zs = !0, o;
}
function F$() {
}
function L$(e) {
  let t, n = e, o = F$;
  return Ah && (t = /* @__PURE__ */ new Set(), n = new Proxy(e, {
    get(r, i) {
      return Zs && t.add(i), r[i];
    }
  }), o = (r, i) => {
    Array.from(t);
  }), {
    token: n,
    keys: t,
    flush: o
  };
}
const N$ = ch(el), xa = {
  token: Ja,
  hashed: !0
}, Mh = Symbol("DesignTokenContext"), Qs = K(), j$ = (e) => {
  $e(Mh, e), ee(e, () => {
    Qs.value = se(e), Jt(Qs);
  }, {
    immediate: !0,
    deep: !0
  });
}, z$ = q({
  props: {
    value: xe()
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    return j$(w(() => e.value)), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
});
function go() {
  const e = Ce(Mh, w(() => Qs.value || xa)), t = w(() => `${i$}-${e.value.hashed || ""}`), n = w(() => e.value.theme || N$), o = FC(n, w(() => [Ja, e.value.token]), w(() => ({
    salt: t.value,
    override: h({
      override: e.value.token
    }, e.value.components),
    formatToken: Ih
  })));
  return [n, w(() => o.value[0]), w(() => e.value.hashed ? o.value[1] : "")];
}
const ru = q({
  compatConfig: {
    MODE: 3
  },
  setup() {
    const [, e] = go(), t = w(() => new Fe(e.value.colorBgBase).toHsl().l < 0.5 ? {
      opacity: 0.65
    } : {});
    return () => m("svg", {
      style: t.value,
      width: "184",
      height: "152",
      viewBox: "0 0 184 152",
      xmlns: "http://www.w3.org/2000/svg"
    }, [m("g", {
      fill: "none",
      "fill-rule": "evenodd"
    }, [m("g", {
      transform: "translate(24 31.67)"
    }, [m("ellipse", {
      "fill-opacity": ".8",
      fill: "#F5F5F7",
      cx: "67.797",
      cy: "106.89",
      rx: "67.797",
      ry: "12.668"
    }, null), m("path", {
      d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
      fill: "#AEB8C2"
    }, null), m("path", {
      d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
      fill: "url(#linearGradient-1)",
      transform: "translate(13.56)"
    }, null), m("path", {
      d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
      fill: "#F5F5F7"
    }, null), m("path", {
      d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
      fill: "#DCE0E6"
    }, null)]), m("path", {
      d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
      fill: "#DCE0E6"
    }, null), m("g", {
      transform: "translate(149.65 15.383)",
      fill: "#FFF"
    }, [m("ellipse", {
      cx: "20.654",
      cy: "3.167",
      rx: "2.849",
      ry: "2.815"
    }, null), m("path", {
      d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
    }, null)])])]);
  }
});
ru.PRESENTED_IMAGE_DEFAULT = !0;
const Rh = q({
  compatConfig: {
    MODE: 3
  },
  setup() {
    const [, e] = go(), t = w(() => {
      const {
        colorFill: n,
        colorFillTertiary: o,
        colorFillQuaternary: r,
        colorBgContainer: i
      } = e.value;
      return {
        borderColor: new Fe(n).onBackground(i).toHexString(),
        shadowColor: new Fe(o).onBackground(i).toHexString(),
        contentColor: new Fe(r).onBackground(i).toHexString()
      };
    });
    return () => m("svg", {
      width: "64",
      height: "41",
      viewBox: "0 0 64 41",
      xmlns: "http://www.w3.org/2000/svg"
    }, [m("g", {
      transform: "translate(0 1)",
      fill: "none",
      "fill-rule": "evenodd"
    }, [m("ellipse", {
      fill: t.value.shadowColor,
      cx: "32",
      cy: "33",
      rx: "32",
      ry: "7"
    }, null), m("g", {
      "fill-rule": "nonzero",
      stroke: t.value.borderColor
    }, [m("path", {
      d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
    }, null), m("path", {
      d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
      fill: t.value.contentColor
    }, null)])])]);
  }
});
Rh.PRESENTED_IMAGE_SIMPLE = !0;
const B$ = (e) => {
  const {
    componentCls: t,
    margin: n,
    marginXS: o,
    marginXL: r,
    fontSize: i,
    lineHeight: a
  } = e;
  return {
    [t]: {
      marginInline: o,
      fontSize: i,
      lineHeight: a,
      textAlign: "center",
      // 原来 &-image 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
      [`${t}-image`]: {
        height: e.emptyImgHeight,
        marginBottom: o,
        opacity: e.opacityImage,
        img: {
          height: "100%"
        },
        svg: {
          height: "100%",
          margin: "auto"
        }
      },
      // 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
      [`${t}-footer`]: {
        marginTop: n
      },
      "&-normal": {
        marginBlock: r,
        color: e.colorTextDisabled,
        [`${t}-image`]: {
          height: e.emptyImgHeightMD
        }
      },
      "&-small": {
        marginBlock: o,
        color: e.colorTextDisabled,
        [`${t}-image`]: {
          height: e.emptyImgHeightSM
        }
      }
    }
  };
}, H$ = We("Empty", (e) => {
  const {
    componentCls: t,
    controlHeightLG: n
  } = e, o = Me(e, {
    emptyImgCls: `${t}-img`,
    emptyImgHeight: n * 2.5,
    emptyImgHeightMD: n,
    emptyImgHeightSM: n * 0.875
  });
  return [B$(o)];
});
var _$ = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const V$ = () => ({
  prefixCls: String,
  imageStyle: xe(),
  image: et(),
  description: et()
}), iu = q({
  name: "AEmpty",
  compatConfig: {
    MODE: 3
  },
  inheritAttrs: !1,
  props: V$(),
  setup(e, t) {
    let {
      slots: n = {},
      attrs: o
    } = t;
    const {
      direction: r,
      prefixCls: i
    } = Ee("empty", e), [a, l] = H$(i);
    return () => {
      var s, c;
      const u = i.value, d = h(h({}, e), o), {
        image: f = ((s = n.image) === null || s === void 0 ? void 0 : s.call(n)) || lo(ru),
        description: p = ((c = n.description) === null || c === void 0 ? void 0 : c.call(n)) || void 0,
        imageStyle: y,
        class: g = ""
      } = d, v = _$(d, ["image", "description", "imageStyle", "class"]), b = typeof f == "function" ? f() : f, O = typeof b == "object" && "type" in b && b.type.PRESENTED_IMAGE_SIMPLE;
      return a(m(Qc, {
        componentName: "Empty",
        children: (C) => {
          const x = typeof p < "u" ? p : C.description, S = typeof x == "string" ? x : "empty";
          let P = null;
          return typeof b == "string" ? P = m("img", {
            alt: S,
            src: b
          }, null) : P = b, m("div", z({
            class: ie(u, g, l.value, {
              [`${u}-normal`]: O,
              [`${u}-rtl`]: r.value === "rtl"
            })
          }, v), [m("div", {
            class: `${u}-image`,
            style: y
          }, [P]), x && m("p", {
            class: `${u}-description`
          }, [x]), n.default && m("div", {
            class: `${u}-footer`
          }, [Mt(n.default())])]);
        }
      }, null));
    };
  }
});
iu.PRESENTED_IMAGE_DEFAULT = () => lo(ru);
iu.PRESENTED_IMAGE_SIMPLE = () => lo(Rh);
const vr = Ln(iu), Dh = (e) => {
  const {
    prefixCls: t
  } = Ee("empty", e);
  return ((o) => {
    switch (o) {
      case "Table":
      case "List":
        return m(vr, {
          image: vr.PRESENTED_IMAGE_SIMPLE
        }, null);
      case "Select":
      case "TreeSelect":
      case "Cascader":
      case "Transfer":
      case "Mentions":
        return m(vr, {
          image: vr.PRESENTED_IMAGE_SIMPLE,
          class: `${t.value}-small`
        }, null);
      default:
        return m(vr, null, null);
    }
  })(e.componentName);
};
function W$(e) {
  return m(Dh, {
    componentName: e
  }, null);
}
const Fh = Symbol("SizeContextKey"), Lh = () => Ce(Fh, Z(void 0)), Nh = (e) => {
  const t = Lh();
  return $e(Fh, w(() => e.value || t.value)), e;
}, Ee = ((e, t) => {
  const n = Lh(), o = mo(), r = Ce(Yc, h(h({}, Lv), {
    renderEmpty: ($) => lo(Dh, {
      componentName: $
    })
  })), i = w(() => r.getPrefixCls(e, t.prefixCls)), a = w(() => {
    var $, T;
    return ($ = t.direction) !== null && $ !== void 0 ? $ : (T = r.direction) === null || T === void 0 ? void 0 : T.value;
  }), l = w(() => {
    var $;
    return ($ = t.iconPrefixCls) !== null && $ !== void 0 ? $ : r.iconPrefixCls.value;
  }), s = w(() => r.getPrefixCls()), c = w(() => {
    var $;
    return ($ = r.autoInsertSpaceInButton) === null || $ === void 0 ? void 0 : $.value;
  }), u = r.renderEmpty, d = r.space, f = r.pageHeader, p = r.form, y = w(() => {
    var $, T;
    return ($ = t.getTargetContainer) !== null && $ !== void 0 ? $ : (T = r.getTargetContainer) === null || T === void 0 ? void 0 : T.value;
  }), g = w(() => {
    var $, T, E;
    return (T = ($ = t.getContainer) !== null && $ !== void 0 ? $ : t.getPopupContainer) !== null && T !== void 0 ? T : (E = r.getPopupContainer) === null || E === void 0 ? void 0 : E.value;
  }), v = w(() => {
    var $, T;
    return ($ = t.dropdownMatchSelectWidth) !== null && $ !== void 0 ? $ : (T = r.dropdownMatchSelectWidth) === null || T === void 0 ? void 0 : T.value;
  }), b = w(() => {
    var $;
    return (t.virtual === void 0 ? (($ = r.virtual) === null || $ === void 0 ? void 0 : $.value) !== !1 : t.virtual !== !1) && v.value !== !1;
  }), O = w(() => t.size || n.value), C = w(() => {
    var $, T, E;
    return ($ = t.autocomplete) !== null && $ !== void 0 ? $ : (E = (T = r.input) === null || T === void 0 ? void 0 : T.value) === null || E === void 0 ? void 0 : E.autocomplete;
  }), x = w(() => {
    var $;
    return ($ = t.disabled) !== null && $ !== void 0 ? $ : o.value;
  }), S = w(() => {
    var $;
    return ($ = t.csp) !== null && $ !== void 0 ? $ : r.csp;
  }), P = w(() => {
    var $, T;
    return ($ = t.wave) !== null && $ !== void 0 ? $ : (T = r.wave) === null || T === void 0 ? void 0 : T.value;
  });
  return {
    configProvider: r,
    prefixCls: i,
    direction: a,
    size: O,
    getTargetContainer: y,
    getPopupContainer: g,
    space: d,
    pageHeader: f,
    form: p,
    autoInsertSpaceInButton: c,
    renderEmpty: u,
    virtual: b,
    dropdownMatchSelectWidth: v,
    rootPrefixCls: s,
    getPrefixCls: r.getPrefixCls,
    autocomplete: C,
    csp: S,
    iconPrefixCls: l,
    disabled: x,
    select: r.select,
    wave: P
  };
});
function _e(e, t) {
  const n = h({}, e);
  for (let o = 0; o < t.length; o += 1) {
    const r = t[o];
    delete n[r];
  }
  return n;
}
function Rf(e) {
  return typeof e == "object" && e != null && e.nodeType === 1;
}
function Df(e, t) {
  return (!t || e !== "hidden") && e !== "visible" && e !== "clip";
}
function Gl(e, t) {
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
    var n = getComputedStyle(e, null);
    return Df(n.overflowY, t) || Df(n.overflowX, t) || (function(o) {
      var r = (function(i) {
        if (!i.ownerDocument || !i.ownerDocument.defaultView) return null;
        try {
          return i.ownerDocument.defaultView.frameElement;
        } catch {
          return null;
        }
      })(o);
      return !!r && (r.clientHeight < o.scrollHeight || r.clientWidth < o.scrollWidth);
    })(e);
  }
  return !1;
}
function Ni(e, t, n, o, r, i, a, l) {
  return i < e && a > t || i > e && a < t ? 0 : i <= e && l <= n || a >= t && l >= n ? i - e - o : a > t && l < n || i < e && l > n ? a - t + r : 0;
}
var Ff = function(e, t) {
  var n = window, o = t.scrollMode, r = t.block, i = t.inline, a = t.boundary, l = t.skipOverflowHiddenElements, s = typeof a == "function" ? a : function(ae) {
    return ae !== a;
  };
  if (!Rf(e)) throw new TypeError("Invalid target");
  for (var c, u, d = document.scrollingElement || document.documentElement, f = [], p = e; Rf(p) && s(p); ) {
    if ((p = (u = (c = p).parentElement) == null ? c.getRootNode().host || null : u) === d) {
      f.push(p);
      break;
    }
    p != null && p === document.body && Gl(p) && !Gl(document.documentElement) || p != null && Gl(p, l) && f.push(p);
  }
  for (var y = n.visualViewport ? n.visualViewport.width : innerWidth, g = n.visualViewport ? n.visualViewport.height : innerHeight, v = window.scrollX || pageXOffset, b = window.scrollY || pageYOffset, O = e.getBoundingClientRect(), C = O.height, x = O.width, S = O.top, P = O.right, $ = O.bottom, T = O.left, E = r === "start" || r === "nearest" ? S : r === "end" ? $ : S + C / 2, M = i === "center" ? T + x / 2 : i === "end" ? P : T, R = [], N = 0; N < f.length; N++) {
    var F = f[N], H = F.getBoundingClientRect(), I = H.height, A = H.width, j = H.top, L = H.right, D = H.bottom, _ = H.left;
    if (o === "if-needed" && S >= 0 && T >= 0 && $ <= g && P <= y && S >= j && $ <= D && T >= _ && P <= L) return R;
    var V = getComputedStyle(F), J = parseInt(V.borderLeftWidth, 10), oe = parseInt(V.borderTopWidth, 10), re = parseInt(V.borderRightWidth, 10), Q = parseInt(V.borderBottomWidth, 10), U = 0, k = 0, ne = "offsetWidth" in F ? F.offsetWidth - F.clientWidth - J - re : 0, X = "offsetHeight" in F ? F.offsetHeight - F.clientHeight - oe - Q : 0, B = "offsetWidth" in F ? F.offsetWidth === 0 ? 0 : A / F.offsetWidth : 0, W = "offsetHeight" in F ? F.offsetHeight === 0 ? 0 : I / F.offsetHeight : 0;
    if (d === F) U = r === "start" ? E : r === "end" ? E - g : r === "nearest" ? Ni(b, b + g, g, oe, Q, b + E, b + E + C, C) : E - g / 2, k = i === "start" ? M : i === "center" ? M - y / 2 : i === "end" ? M - y : Ni(v, v + y, y, J, re, v + M, v + M + x, x), U = Math.max(0, U + b), k = Math.max(0, k + v);
    else {
      U = r === "start" ? E - j - oe : r === "end" ? E - D + Q + X : r === "nearest" ? Ni(j, D, I, oe, Q + X, E, E + C, C) : E - (j + I / 2) + X / 2, k = i === "start" ? M - _ - J : i === "center" ? M - (_ + A / 2) + ne / 2 : i === "end" ? M - L + re + ne : Ni(_, L, A, J, re + ne, M, M + x, x);
      var Y = F.scrollLeft, te = F.scrollTop;
      E += te - (U = Math.max(0, Math.min(te + U / W, F.scrollHeight - I / W + X))), M += Y - (k = Math.max(0, Math.min(Y + k / B, F.scrollWidth - A / B + ne)));
    }
    R.push({ el: F, top: U, left: k });
  }
  return R;
};
function jh(e) {
  return e === Object(e) && Object.keys(e).length !== 0;
}
function k$(e, t) {
  t === void 0 && (t = "auto");
  var n = "scrollBehavior" in document.body.style;
  e.forEach(function(o) {
    var r = o.el, i = o.top, a = o.left;
    r.scroll && n ? r.scroll({
      top: i,
      left: a,
      behavior: t
    }) : (r.scrollTop = i, r.scrollLeft = a);
  });
}
function X$(e) {
  return e === !1 ? {
    block: "end",
    inline: "nearest"
  } : jh(e) ? e : {
    block: "start",
    inline: "nearest"
  };
}
function K$(e, t) {
  var n = e.isConnected || e.ownerDocument.documentElement.contains(e);
  if (jh(t) && typeof t.behavior == "function")
    return t.behavior(n ? Ff(e, t) : []);
  if (n) {
    var o = X$(t);
    return k$(Ff(e, o), o.behavior);
  }
}
function G$(e, t) {
  for (var n = 0; n < t.length; n++) {
    var o = t[n];
    o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
  }
}
function zh(e, t, n) {
  return n && G$(e, n), e;
}
function ia() {
  return (ia = Object.assign || function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
    }
    return e;
  }).apply(this, arguments);
}
function Bh(e, t) {
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
}
function Hh(e, t) {
  if (e == null) return {};
  var n, o, r = {}, i = Object.keys(e);
  for (o = 0; o < i.length; o++) t.indexOf(n = i[o]) >= 0 || (r[n] = e[n]);
  return r;
}
function Lf(e) {
  return ((t = e) != null && typeof t == "object" && Array.isArray(t) === !1) == 1 && Object.prototype.toString.call(e) === "[object Object]";
  var t;
}
var _h = Object.prototype, Vh = _h.toString, U$ = _h.hasOwnProperty, Wh = /^\s*function (\w+)/;
function Nf(e) {
  var t, n = (t = e == null ? void 0 : e.type) !== null && t !== void 0 ? t : e;
  if (n) {
    var o = n.toString().match(Wh);
    return o ? o[1] : "";
  }
  return "";
}
var co = function(e) {
  var t, n;
  return Lf(e) !== !1 && typeof (t = e.constructor) == "function" && Lf(n = t.prototype) !== !1 && n.hasOwnProperty("isPrototypeOf") !== !1;
}, q$ = function(e) {
  return e;
}, St = q$, Yr = function(e, t) {
  return U$.call(e, t);
}, Y$ = Number.isInteger || function(e) {
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
}, Yo = Array.isArray || function(e) {
  return Vh.call(e) === "[object Array]";
}, Zo = function(e) {
  return Vh.call(e) === "[object Function]";
}, Oa = function(e) {
  return co(e) && Yr(e, "_vueTypes_name");
}, kh = function(e) {
  return co(e) && (Yr(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(function(t) {
    return Yr(e, t);
  }));
};
function au(e, t) {
  return Object.defineProperty(e.bind(t), "__original", { value: e });
}
function vo(e, t, n) {
  var o, r = !0, i = "";
  o = co(e) ? e : { type: e };
  var a = Oa(o) ? o._vueTypes_name + " - " : "";
  if (kh(o) && o.type !== null) {
    if (o.type === void 0 || o.type === !0 || !o.required && t === void 0) return r;
    Yo(o.type) ? (r = o.type.some(function(d) {
      return vo(d, t) === !0;
    }), i = o.type.map(function(d) {
      return Nf(d);
    }).join(" or ")) : r = (i = Nf(o)) === "Array" ? Yo(t) : i === "Object" ? co(t) : i === "String" || i === "Number" || i === "Boolean" || i === "Function" ? (function(d) {
      if (d == null) return "";
      var f = d.constructor.toString().match(Wh);
      return f ? f[1] : "";
    })(t) === i : t instanceof o.type;
  }
  if (!r) {
    var l = a + 'value "' + t + '" should be of type "' + i + '"';
    return l;
  }
  if (Yr(o, "validator") && Zo(o.validator)) {
    var s = St, c = [];
    if (St = function(d) {
      c.push(d);
    }, r = o.validator(t), St = s, !r) {
      var u = (c.length > 1 ? "* " : "") + c.join(`
* `);
      return c.length = 0, u;
    }
  }
  return r;
}
function $t(e, t) {
  var n = Object.defineProperties(t, { _vueTypes_name: { value: e, writable: !0 }, isRequired: { get: function() {
    return this.required = !0, this;
  } }, def: { value: function(r) {
    return r !== void 0 || this.default ? Zo(r) || vo(this, r) === !0 ? (this.default = Yo(r) ? function() {
      return [].concat(r);
    } : co(r) ? function() {
      return Object.assign({}, r);
    } : r, this) : (St(this._vueTypes_name + ' - invalid default value: "' + r + '"'), this) : this;
  } } }), o = n.validator;
  return Zo(o) && (n.validator = au(o, n)), n;
}
function Qt(e, t) {
  var n = $t(e, t);
  return Object.defineProperty(n, "validate", { value: function(o) {
    return Zo(this.validator) && St(this._vueTypes_name + ` - calling .validate() will overwrite the current custom validator function. Validator info:
` + JSON.stringify(this)), this.validator = au(o, this), this;
  } });
}
function jf(e, t, n) {
  var o, r, i = (o = t, r = {}, Object.getOwnPropertyNames(o).forEach(function(d) {
    r[d] = Object.getOwnPropertyDescriptor(o, d);
  }), Object.defineProperties({}, r));
  if (i._vueTypes_name = e, !co(n)) return i;
  var a, l, s = n.validator, c = Hh(n, ["validator"]);
  if (Zo(s)) {
    var u = i.validator;
    u && (u = (l = (a = u).__original) !== null && l !== void 0 ? l : a), i.validator = au(u ? function(d) {
      return u.call(this, d) && s.call(this, d);
    } : s, i);
  }
  return Object.assign(i, c);
}
function nl(e) {
  return e.replace(/^(?!\s*$)/gm, "  ");
}
var Z$ = function() {
  return Qt("any", {});
}, Q$ = function() {
  return Qt("function", { type: Function });
}, J$ = function() {
  return Qt("boolean", { type: Boolean });
}, ew = function() {
  return Qt("string", { type: String });
}, tw = function() {
  return Qt("number", { type: Number });
}, nw = function() {
  return Qt("array", { type: Array });
}, ow = function() {
  return Qt("object", { type: Object });
}, rw = function() {
  return $t("integer", { type: Number, validator: function(e) {
    return Y$(e);
  } });
}, iw = function() {
  return $t("symbol", { validator: function(e) {
    return typeof e == "symbol";
  } });
};
function aw(e, t) {
  if (t === void 0 && (t = "custom validation failed"), typeof e != "function") throw new TypeError("[VueTypes error]: You must provide a function as argument");
  return $t(e.name || "<<anonymous function>>", { validator: function(n) {
    var o = e(n);
    return o || St(this._vueTypes_name + " - " + t), o;
  } });
}
function lw(e) {
  if (!Yo(e)) throw new TypeError("[VueTypes error]: You must provide an array as argument.");
  var t = 'oneOf - value should be one of "' + e.join('", "') + '".', n = e.reduce(function(o, r) {
    if (r != null) {
      var i = r.constructor;
      o.indexOf(i) === -1 && o.push(i);
    }
    return o;
  }, []);
  return $t("oneOf", { type: n.length > 0 ? n : void 0, validator: function(o) {
    var r = e.indexOf(o) !== -1;
    return r || St(t), r;
  } });
}
function sw(e) {
  if (!Yo(e)) throw new TypeError("[VueTypes error]: You must provide an array as argument");
  for (var t = !1, n = [], o = 0; o < e.length; o += 1) {
    var r = e[o];
    if (kh(r)) {
      if (Oa(r) && r._vueTypes_name === "oneOf") {
        n = n.concat(r.type);
        continue;
      }
      if (Zo(r.validator) && (t = !0), r.type !== !0 && r.type) {
        n = n.concat(r.type);
        continue;
      }
    }
    n.push(r);
  }
  return n = n.filter(function(i, a) {
    return n.indexOf(i) === a;
  }), $t("oneOfType", t ? { type: n, validator: function(i) {
    var a = [], l = e.some(function(s) {
      var c = vo(Oa(s) && s._vueTypes_name === "oneOf" ? s.type || null : s, i);
      return typeof c == "string" && a.push(c), c === !0;
    });
    return l || St("oneOfType - provided value does not match any of the " + a.length + ` passed-in validators:
` + nl(a.join(`
`))), l;
  } } : { type: n });
}
function cw(e) {
  return $t("arrayOf", { type: Array, validator: function(t) {
    var n, o = t.every(function(r) {
      return (n = vo(e, r)) === !0;
    });
    return o || St(`arrayOf - value validation error:
` + nl(n)), o;
  } });
}
function uw(e) {
  return $t("instanceOf", { type: e });
}
function dw(e) {
  return $t("objectOf", { type: Object, validator: function(t) {
    var n, o = Object.keys(t).every(function(r) {
      return (n = vo(e, t[r])) === !0;
    });
    return o || St(`objectOf - value validation error:
` + nl(n)), o;
  } });
}
function fw(e) {
  var t = Object.keys(e), n = t.filter(function(r) {
    var i;
    return !!(!((i = e[r]) === null || i === void 0) && i.required);
  }), o = $t("shape", { type: Object, validator: function(r) {
    var i = this;
    if (!co(r)) return !1;
    var a = Object.keys(r);
    if (n.length > 0 && n.some(function(s) {
      return a.indexOf(s) === -1;
    })) {
      var l = n.filter(function(s) {
        return a.indexOf(s) === -1;
      });
      return St(l.length === 1 ? 'shape - required property "' + l[0] + '" is not defined.' : 'shape - required properties "' + l.join('", "') + '" are not defined.'), !1;
    }
    return a.every(function(s) {
      if (t.indexOf(s) === -1) return i._vueTypes_isLoose === !0 || (St('shape - shape definition does not include a "' + s + '" property. Allowed keys: "' + t.join('", "') + '".'), !1);
      var c = vo(e[s], r[s]);
      return typeof c == "string" && St('shape - "' + s + `" property validation error:
 ` + nl(c)), c === !0;
    });
  } });
  return Object.defineProperty(o, "_vueTypes_isLoose", { writable: !0, value: !1 }), Object.defineProperty(o, "loose", { get: function() {
    return this._vueTypes_isLoose = !0, this;
  } }), o;
}
var Gt = (function() {
  function e() {
  }
  return e.extend = function(t) {
    var n = this;
    if (Yo(t)) return t.forEach(function(d) {
      return n.extend(d);
    }), this;
    var o = t.name, r = t.validate, i = r !== void 0 && r, a = t.getter, l = a !== void 0 && a, s = Hh(t, ["name", "validate", "getter"]);
    if (Yr(this, o)) throw new TypeError('[VueTypes error]: Type "' + o + '" already defined');
    var c, u = s.type;
    return Oa(u) ? (delete s.type, Object.defineProperty(this, o, l ? { get: function() {
      return jf(o, u, s);
    } } : { value: function() {
      var d, f = jf(o, u, s);
      return f.validator && (f.validator = (d = f.validator).bind.apply(d, [f].concat([].slice.call(arguments)))), f;
    } })) : (c = l ? { get: function() {
      var d = Object.assign({}, s);
      return i ? Qt(o, d) : $t(o, d);
    }, enumerable: !0 } : { value: function() {
      var d, f, p = Object.assign({}, s);
      return d = i ? Qt(o, p) : $t(o, p), p.validator && (d.validator = (f = p.validator).bind.apply(f, [d].concat([].slice.call(arguments)))), d;
    }, enumerable: !0 }, Object.defineProperty(this, o, c));
  }, zh(e, null, [{ key: "any", get: function() {
    return Z$();
  } }, { key: "func", get: function() {
    return Q$().def(this.defaults.func);
  } }, { key: "bool", get: function() {
    return J$().def(this.defaults.bool);
  } }, { key: "string", get: function() {
    return ew().def(this.defaults.string);
  } }, { key: "number", get: function() {
    return tw().def(this.defaults.number);
  } }, { key: "array", get: function() {
    return nw().def(this.defaults.array);
  } }, { key: "object", get: function() {
    return ow().def(this.defaults.object);
  } }, { key: "integer", get: function() {
    return rw().def(this.defaults.integer);
  } }, { key: "symbol", get: function() {
    return iw();
  } }]), e;
})();
function Xh(e) {
  var t;
  return e === void 0 && (e = { func: function() {
  }, bool: !0, string: "", number: 0, array: function() {
    return [];
  }, object: function() {
    return {};
  }, integer: 0 }), (t = (function(n) {
    function o() {
      return n.apply(this, arguments) || this;
    }
    return Bh(o, n), zh(o, null, [{ key: "sensibleDefaults", get: function() {
      return ia({}, this.defaults);
    }, set: function(r) {
      this.defaults = r !== !1 ? ia({}, r !== !0 ? r : e) : {};
    } }]), o;
  })(Gt)).defaults = ia({}, e), t;
}
Gt.defaults = {}, Gt.custom = aw, Gt.oneOf = lw, Gt.instanceOf = uw, Gt.oneOfType = sw, Gt.arrayOf = cw, Gt.objectOf = dw, Gt.shape = fw, Gt.utils = { validate: function(e, t) {
  return vo(t, e) === !0;
}, toType: function(e, t, n) {
  return n === void 0 && (n = !1), n ? Qt(e, t) : $t(e, t);
} };
(function(e) {
  function t() {
    return e.apply(this, arguments) || this;
  }
  return Bh(t, e), t;
})(Xh());
const G = Xh({
  func: void 0,
  bool: void 0,
  string: void 0,
  number: void 0,
  array: void 0,
  object: void 0,
  integer: void 0
});
G.extend([{
  name: "looseBool",
  getter: !0,
  type: Boolean,
  default: void 0
}, {
  name: "style",
  getter: !0,
  type: [String, Object],
  default: void 0
}, {
  name: "VueNode",
  getter: !0,
  type: null
}]);
const Tt = ((e, t, n) => {
  wC(e, `[ant-design-vue: ${t}] ${n}`);
});
function zf(e, t) {
  const {
    key: n
  } = e;
  let o;
  return "value" in e && ({
    value: o
  } = e), n ?? (o !== void 0 ? o : `rc-index-key-${t}`);
}
function Kh(e, t) {
  const {
    label: n,
    value: o,
    options: r
  } = e || {};
  return {
    label: n || (t ? "children" : "label"),
    value: o || "value",
    options: r || "options"
  };
}
function pw(e) {
  let {
    fieldNames: t,
    childrenAsData: n
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  const o = [], {
    label: r,
    value: i,
    options: a
  } = Kh(t, !1);
  function l(s, c) {
    s.forEach((u) => {
      const d = u[r];
      if (c || !(a in u)) {
        const f = u[i];
        o.push({
          key: zf(u, o.length),
          groupOption: c,
          data: u,
          label: d,
          value: f
        });
      } else {
        let f = d;
        f === void 0 && n && (f = u.label), o.push({
          key: zf(u, o.length),
          group: !0,
          data: u,
          label: f
        }), l(u[a], !0);
      }
    });
  }
  return l(e, !1), o;
}
function Js(e) {
  const t = h({}, e);
  return "props" in t || Object.defineProperty(t, "props", {
    get() {
      return t;
    }
  }), t;
}
function mw(e, t) {
  if (!t || !t.length)
    return null;
  let n = !1;
  function o(i, a) {
    let [l, ...s] = a;
    if (!l)
      return [i];
    const c = i.split(l);
    return n = n || c.length > 1, c.reduce((u, d) => [...u, ...o(d, s)], []).filter((u) => u);
  }
  const r = o(e, t);
  return n ? r : null;
}
function gw() {
  return "";
}
function vw(e) {
  return e ? e.ownerDocument : window.document;
}
function Gh() {
}
const hw = () => ({
  action: G.oneOfType([G.string, G.arrayOf(G.string)]).def([]),
  showAction: G.any.def([]),
  hideAction: G.any.def([]),
  getPopupClassNameFromAlign: G.any.def(gw),
  onPopupVisibleChange: Function,
  afterPopupVisibleChange: G.func.def(Gh),
  popup: G.any,
  arrow: G.bool.def(!0),
  popupStyle: {
    type: Object,
    default: void 0
  },
  prefixCls: G.string.def("rc-trigger-popup"),
  popupClassName: G.string.def(""),
  popupPlacement: String,
  builtinPlacements: G.object,
  popupTransitionName: String,
  popupAnimation: G.any,
  mouseEnterDelay: G.number.def(0),
  mouseLeaveDelay: G.number.def(0.1),
  zIndex: Number,
  focusDelay: G.number.def(0),
  blurDelay: G.number.def(0.15),
  getPopupContainer: Function,
  getDocument: G.func.def(vw),
  forceRender: {
    type: Boolean,
    default: void 0
  },
  destroyPopupOnHide: {
    type: Boolean,
    default: !1
  },
  mask: {
    type: Boolean,
    default: !1
  },
  maskClosable: {
    type: Boolean,
    default: !0
  },
  // onPopupAlign: PropTypes.func.def(noop),
  popupAlign: G.object.def(() => ({})),
  popupVisible: {
    type: Boolean,
    default: void 0
  },
  defaultPopupVisible: {
    type: Boolean,
    default: !1
  },
  maskTransitionName: String,
  maskAnimation: String,
  stretch: String,
  alignPoint: {
    type: Boolean,
    default: void 0
  },
  autoDestroy: {
    type: Boolean,
    default: !1
  },
  mobile: Object,
  getTriggerDOMNode: Function
}), lu = {
  visible: Boolean,
  prefixCls: String,
  zIndex: Number,
  destroyPopupOnHide: Boolean,
  forceRender: Boolean,
  arrow: {
    type: Boolean,
    default: !0
  },
  // Legacy Motion
  animation: [String, Object],
  transitionName: String,
  // Measure
  stretch: {
    type: String
  },
  // Align
  align: {
    type: Object
  },
  point: {
    type: Object
  },
  getRootDomNode: {
    type: Function
  },
  getClassNameFromAlign: {
    type: Function
  },
  onAlign: {
    type: Function
  },
  onMouseenter: {
    type: Function
  },
  onMouseleave: {
    type: Function
  },
  onMousedown: {
    type: Function
  },
  onTouchstart: {
    type: Function
  }
}, yw = h(h({}, lu), {
  mobile: {
    type: Object
  }
}), bw = h(h({}, lu), {
  mask: Boolean,
  mobile: {
    type: Object
  },
  maskAnimation: String,
  maskTransitionName: String
});
function su(e) {
  let {
    prefixCls: t,
    animation: n,
    transitionName: o
  } = e;
  return n ? {
    name: `${t}-${n}`
  } : o ? {
    name: o
  } : {};
}
function Uh(e) {
  const {
    prefixCls: t,
    visible: n,
    zIndex: o,
    mask: r,
    maskAnimation: i,
    maskTransitionName: a
  } = e;
  if (!r)
    return null;
  let l = {};
  return (a || i) && (l = su({
    prefixCls: t,
    transitionName: a,
    animation: i
  })), m(Xt, z({
    appear: !0
  }, l), {
    default: () => [en(m("div", {
      style: {
        zIndex: o
      },
      class: `${t}-mask`
    }, null), [[iS("if"), n]])]
  });
}
Uh.displayName = "Mask";
const Sw = q({
  compatConfig: {
    MODE: 3
  },
  name: "MobilePopupInner",
  inheritAttrs: !1,
  props: yw,
  emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
  setup(e, t) {
    let {
      expose: n,
      slots: o
    } = t;
    const r = Z();
    return n({
      forceAlign: () => {
      },
      getElement: () => r.value
    }), () => {
      var i;
      const {
        zIndex: a,
        visible: l,
        prefixCls: s,
        mobile: {
          popupClassName: c,
          popupStyle: u,
          popupMotion: d = {},
          popupRender: f
        } = {}
      } = e, p = h({
        zIndex: a
      }, u);
      let y = tt((i = o.default) === null || i === void 0 ? void 0 : i.call(o));
      y.length > 1 && (y = m("div", {
        class: `${s}-content`
      }, [y])), f && (y = f(y));
      const g = ie(s, c);
      return m(Xt, z({
        ref: r
      }, d), {
        default: () => [l ? m("div", {
          class: g,
          style: p
        }, [y]) : null]
      });
    };
  }
});
var Cw = function(e, t, n, o) {
  function r(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(o.next(u));
      } catch (d) {
        a(d);
      }
    }
    function s(u) {
      try {
        c(o.throw(u));
      } catch (d) {
        a(d);
      }
    }
    function c(u) {
      u.done ? i(u.value) : r(u.value).then(l, s);
    }
    c((o = o.apply(e, t || [])).next());
  });
};
const Bf = ["measure", "align", null, "motion"], $w = ((e, t) => {
  const n = K(null), o = K(), r = K(!1);
  function i(s) {
    r.value || (n.value = s);
  }
  function a() {
    Ae.cancel(o.value);
  }
  function l(s) {
    a(), o.value = Ae(() => {
      let c = n.value;
      switch (n.value) {
        case "align":
          c = "motion";
          break;
        case "motion":
          c = "stable";
          break;
      }
      i(c), s == null || s();
    });
  }
  return ee(e, () => {
    i("measure");
  }, {
    immediate: !0,
    flush: "post"
  }), be(() => {
    ee(n, () => {
      switch (n.value) {
        case "measure":
          t();
          break;
      }
      n.value && (o.value = Ae(() => Cw(void 0, void 0, void 0, function* () {
        const s = Bf.indexOf(n.value), c = Bf[s + 1];
        c && s !== -1 && i(c);
      })));
    }, {
      immediate: !0,
      flush: "post"
    });
  }), Le(() => {
    r.value = !0, a();
  }), [n, l];
}), ww = ((e) => {
  const t = K({
    width: 0,
    height: 0
  });
  function n(r) {
    t.value = {
      width: r.offsetWidth,
      height: r.offsetHeight
    };
  }
  return [w(() => {
    const r = {};
    if (e.value) {
      const {
        width: i,
        height: a
      } = t.value;
      e.value.indexOf("height") !== -1 && a ? r.height = `${a}px` : e.value.indexOf("minHeight") !== -1 && a && (r.minHeight = `${a}px`), e.value.indexOf("width") !== -1 && i ? r.width = `${i}px` : e.value.indexOf("minWidth") !== -1 && i && (r.minWidth = `${i}px`);
    }
    return r;
  }), n];
});
function Hf(e, t) {
  var n = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    t && (o = o.filter(function(r) {
      return Object.getOwnPropertyDescriptor(e, r).enumerable;
    })), n.push.apply(n, o);
  }
  return n;
}
function _f(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? arguments[t] : {};
    t % 2 ? Hf(Object(n), !0).forEach(function(o) {
      xw(e, o, n[o]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hf(Object(n)).forEach(function(o) {
      Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
    });
  }
  return e;
}
function ec(e) {
  "@babel/helpers - typeof";
  return ec = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
    return typeof t;
  } : function(t) {
    return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
  }, ec(e);
}
function xw(e, t, n) {
  return t in e ? Object.defineProperty(e, t, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = n, e;
}
var hr, Ow = {
  Webkit: "-webkit-",
  Moz: "-moz-",
  // IE did it wrong again ...
  ms: "-ms-",
  O: "-o-"
};
function Pa() {
  if (hr !== void 0)
    return hr;
  hr = "";
  var e = document.createElement("p").style, t = "Transform";
  for (var n in Ow)
    n + t in e && (hr = n);
  return hr;
}
function qh() {
  return Pa() ? "".concat(Pa(), "TransitionProperty") : "transitionProperty";
}
function ol() {
  return Pa() ? "".concat(Pa(), "Transform") : "transform";
}
function Vf(e, t) {
  var n = qh();
  n && (e.style[n] = t, n !== "transitionProperty" && (e.style.transitionProperty = t));
}
function Ul(e, t) {
  var n = ol();
  n && (e.style[n] = t, n !== "transform" && (e.style.transform = t));
}
function Pw(e) {
  return e.style.transitionProperty || e.style[qh()];
}
function Iw(e) {
  var t = window.getComputedStyle(e, null), n = t.getPropertyValue("transform") || t.getPropertyValue(ol());
  if (n && n !== "none") {
    var o = n.replace(/[^0-9\-.,]/g, "").split(",");
    return {
      x: parseFloat(o[12] || o[4], 0),
      y: parseFloat(o[13] || o[5], 0)
    };
  }
  return {
    x: 0,
    y: 0
  };
}
var Tw = /matrix\((.*)\)/, Ew = /matrix3d\((.*)\)/;
function Aw(e, t) {
  var n = window.getComputedStyle(e, null), o = n.getPropertyValue("transform") || n.getPropertyValue(ol());
  if (o && o !== "none") {
    var r, i = o.match(Tw);
    if (i)
      i = i[1], r = i.split(",").map(function(l) {
        return parseFloat(l, 10);
      }), r[4] = t.x, r[5] = t.y, Ul(e, "matrix(".concat(r.join(","), ")"));
    else {
      var a = o.match(Ew)[1];
      r = a.split(",").map(function(l) {
        return parseFloat(l, 10);
      }), r[12] = t.x, r[13] = t.y, Ul(e, "matrix3d(".concat(r.join(","), ")"));
    }
  } else
    Ul(e, "translateX(".concat(t.x, "px) translateY(").concat(t.y, "px) translateZ(0)"));
}
var Mw = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, fi;
function Wf(e) {
  var t = e.style.display;
  e.style.display = "none", e.offsetHeight, e.style.display = t;
}
function Ho(e, t, n) {
  var o = n;
  if (ec(t) === "object") {
    for (var r in t)
      t.hasOwnProperty(r) && Ho(e, r, t[r]);
    return;
  }
  if (typeof o < "u") {
    typeof o == "number" && (o = "".concat(o, "px")), e.style[t] = o;
    return;
  }
  return fi(e, t);
}
function Rw(e) {
  var t, n, o, r = e.ownerDocument, i = r.body, a = r && r.documentElement;
  return t = e.getBoundingClientRect(), n = Math.floor(t.left), o = Math.floor(t.top), n -= a.clientLeft || i.clientLeft || 0, o -= a.clientTop || i.clientTop || 0, {
    left: n,
    top: o
  };
}
function Yh(e, t) {
  var n = e["page".concat(t ? "Y" : "X", "Offset")], o = "scroll".concat(t ? "Top" : "Left");
  if (typeof n != "number") {
    var r = e.document;
    n = r.documentElement[o], typeof n != "number" && (n = r.body[o]);
  }
  return n;
}
function Zh(e) {
  return Yh(e);
}
function Qh(e) {
  return Yh(e, !0);
}
function Zr(e) {
  var t = Rw(e), n = e.ownerDocument, o = n.defaultView || n.parentWindow;
  return t.left += Zh(o), t.top += Qh(o), t;
}
function cu(e) {
  return e != null && e == e.window;
}
function Jh(e) {
  return cu(e) ? e.document : e.nodeType === 9 ? e : e.ownerDocument;
}
function Dw(e, t, n) {
  var o = n, r = "", i = Jh(e);
  return o = o || i.defaultView.getComputedStyle(e, null), o && (r = o.getPropertyValue(t) || o[t]), r;
}
var Fw = new RegExp("^(".concat(Mw, ")(?!px)[a-z%]+$"), "i"), Lw = /^(top|right|bottom|left)$/, ql = "currentStyle", Yl = "runtimeStyle", Vn = "left", Nw = "px";
function jw(e, t) {
  var n = e[ql] && e[ql][t];
  if (Fw.test(n) && !Lw.test(t)) {
    var o = e.style, r = o[Vn], i = e[Yl][Vn];
    e[Yl][Vn] = e[ql][Vn], o[Vn] = t === "fontSize" ? "1em" : n || 0, n = o.pixelLeft + Nw, o[Vn] = r, e[Yl][Vn] = i;
  }
  return n === "" ? "auto" : n;
}
typeof window < "u" && (fi = window.getComputedStyle ? Dw : jw);
function ji(e, t) {
  return e === "left" ? t.useCssRight ? "right" : e : t.useCssBottom ? "bottom" : e;
}
function kf(e) {
  if (e === "left")
    return "right";
  if (e === "right")
    return "left";
  if (e === "top")
    return "bottom";
  if (e === "bottom")
    return "top";
}
function Xf(e, t, n) {
  Ho(e, "position") === "static" && (e.style.position = "relative");
  var o = -999, r = -999, i = ji("left", n), a = ji("top", n), l = kf(i), s = kf(a);
  i !== "left" && (o = 999), a !== "top" && (r = 999);
  var c = "", u = Zr(e);
  ("left" in t || "top" in t) && (c = Pw(e) || "", Vf(e, "none")), "left" in t && (e.style[l] = "", e.style[i] = "".concat(o, "px")), "top" in t && (e.style[s] = "", e.style[a] = "".concat(r, "px")), Wf(e);
  var d = Zr(e), f = {};
  for (var p in t)
    if (t.hasOwnProperty(p)) {
      var y = ji(p, n), g = p === "left" ? o : r, v = u[p] - d[p];
      y === p ? f[y] = g + v : f[y] = g - v;
    }
  Ho(e, f), Wf(e), ("left" in t || "top" in t) && Vf(e, c);
  var b = {};
  for (var O in t)
    if (t.hasOwnProperty(O)) {
      var C = ji(O, n), x = t[O] - u[O];
      O === C ? b[C] = f[C] + x : b[C] = f[C] - x;
    }
  Ho(e, b);
}
function zw(e, t) {
  var n = Zr(e), o = Iw(e), r = {
    x: o.x,
    y: o.y
  };
  "left" in t && (r.x = o.x + t.left - n.left), "top" in t && (r.y = o.y + t.top - n.top), Aw(e, r);
}
function Bw(e, t, n) {
  if (n.ignoreShake) {
    var o = Zr(e), r = o.left.toFixed(0), i = o.top.toFixed(0), a = t.left.toFixed(0), l = t.top.toFixed(0);
    if (r === a && i === l)
      return;
  }
  n.useCssRight || n.useCssBottom ? Xf(e, t, n) : n.useCssTransform && ol() in document.body.style ? zw(e, t) : Xf(e, t, n);
}
function uu(e, t) {
  for (var n = 0; n < e.length; n++)
    t(e[n]);
}
function e0(e) {
  return fi(e, "boxSizing") === "border-box";
}
var Hw = ["margin", "border", "padding"], tc = -1, _w = 2, nc = 1, Vw = 0;
function Ww(e, t, n) {
  var o = {}, r = e.style, i;
  for (i in t)
    t.hasOwnProperty(i) && (o[i] = r[i], r[i] = t[i]);
  n.call(e);
  for (i in t)
    t.hasOwnProperty(i) && (r[i] = o[i]);
}
function wr(e, t, n) {
  var o = 0, r, i, a;
  for (i = 0; i < t.length; i++)
    if (r = t[i], r)
      for (a = 0; a < n.length; a++) {
        var l = void 0;
        r === "border" ? l = "".concat(r).concat(n[a], "Width") : l = r + n[a], o += parseFloat(fi(e, l)) || 0;
      }
  return o;
}
var Yt = {
  getParent: function(t) {
    var n = t;
    do
      n.nodeType === 11 && n.host ? n = n.host : n = n.parentNode;
    while (n && n.nodeType !== 1 && n.nodeType !== 9);
    return n;
  }
};
uu(["Width", "Height"], function(e) {
  Yt["doc".concat(e)] = function(t) {
    var n = t.document;
    return Math.max(
      // firefox chrome documentElement.scrollHeight< body.scrollHeight
      // ie standard mode : documentElement.scrollHeight> body.scrollHeight
      n.documentElement["scroll".concat(e)],
      // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
      n.body["scroll".concat(e)],
      Yt["viewport".concat(e)](n)
    );
  }, Yt["viewport".concat(e)] = function(t) {
    var n = "client".concat(e), o = t.document, r = o.body, i = o.documentElement, a = i[n];
    return o.compatMode === "CSS1Compat" && a || r && r[n] || a;
  };
});
function Kf(e, t, n) {
  var o = n;
  if (cu(e))
    return t === "width" ? Yt.viewportWidth(e) : Yt.viewportHeight(e);
  if (e.nodeType === 9)
    return t === "width" ? Yt.docWidth(e) : Yt.docHeight(e);
  var r = t === "width" ? ["Left", "Right"] : ["Top", "Bottom"], i = Math.floor(t === "width" ? e.getBoundingClientRect().width : e.getBoundingClientRect().height), a = e0(e), l = 0;
  (i == null || i <= 0) && (i = void 0, l = fi(e, t), (l == null || Number(l) < 0) && (l = e.style[t] || 0), l = Math.floor(parseFloat(l)) || 0), o === void 0 && (o = a ? nc : tc);
  var s = i !== void 0 || a, c = i || l;
  return o === tc ? s ? c - wr(e, ["border", "padding"], r) : l : s ? o === nc ? c : c + (o === _w ? -wr(e, ["border"], r) : wr(e, ["margin"], r)) : l + wr(e, Hw.slice(o), r);
}
var kw = {
  position: "absolute",
  visibility: "hidden",
  display: "block"
};
function Gf() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  var o, r = t[0];
  return r.offsetWidth !== 0 ? o = Kf.apply(void 0, t) : Ww(r, kw, function() {
    o = Kf.apply(void 0, t);
  }), o;
}
uu(["width", "height"], function(e) {
  var t = e.charAt(0).toUpperCase() + e.slice(1);
  Yt["outer".concat(t)] = function(o, r) {
    return o && Gf(o, e, r ? Vw : nc);
  };
  var n = e === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
  Yt[e] = function(o, r) {
    var i = r;
    if (i !== void 0) {
      if (o) {
        var a = e0(o);
        return a && (i += wr(o, ["padding", "border"], n)), Ho(o, e, i);
      }
      return;
    }
    return o && Gf(o, e, tc);
  };
});
function t0(e, t) {
  for (var n in t)
    t.hasOwnProperty(n) && (e[n] = t[n]);
  return e;
}
var ye = {
  getWindow: function(t) {
    if (t && t.document && t.setTimeout)
      return t;
    var n = t.ownerDocument || t;
    return n.defaultView || n.parentWindow;
  },
  getDocument: Jh,
  offset: function(t, n, o) {
    if (typeof n < "u")
      Bw(t, n, o || {});
    else
      return Zr(t);
  },
  isWindow: cu,
  each: uu,
  css: Ho,
  clone: function(t) {
    var n, o = {};
    for (n in t)
      t.hasOwnProperty(n) && (o[n] = t[n]);
    var r = t.overflow;
    if (r)
      for (n in t)
        t.hasOwnProperty(n) && (o.overflow[n] = t.overflow[n]);
    return o;
  },
  mix: t0,
  getWindowScrollLeft: function(t) {
    return Zh(t);
  },
  getWindowScrollTop: function(t) {
    return Qh(t);
  },
  merge: function() {
    for (var t = {}, n = 0; n < arguments.length; n++)
      ye.mix(t, n < 0 || arguments.length <= n ? void 0 : arguments[n]);
    return t;
  },
  viewportWidth: 0,
  viewportHeight: 0
};
t0(ye, Yt);
var Zl = ye.getParent;
function oc(e) {
  if (ye.isWindow(e) || e.nodeType === 9)
    return null;
  var t = ye.getDocument(e), n = t.body, o, r = ye.css(e, "position"), i = r === "fixed" || r === "absolute";
  if (!i)
    return e.nodeName.toLowerCase() === "html" ? null : Zl(e);
  for (o = Zl(e); o && o !== n && o.nodeType !== 9; o = Zl(o))
    if (r = ye.css(o, "position"), r !== "static")
      return o;
  return null;
}
var Uf = ye.getParent;
function Xw(e) {
  if (ye.isWindow(e) || e.nodeType === 9)
    return !1;
  var t = ye.getDocument(e), n = t.body, o = null;
  for (
    o = Uf(e);
    // 修复元素位于 document.documentElement 下导致崩溃问题
    o && o !== n && o !== t;
    o = Uf(o)
  ) {
    var r = ye.css(o, "position");
    if (r === "fixed")
      return !0;
  }
  return !1;
}
function du(e, t) {
  for (var n = {
    left: 0,
    right: 1 / 0,
    top: 0,
    bottom: 1 / 0
  }, o = oc(e), r = ye.getDocument(e), i = r.defaultView || r.parentWindow, a = r.body, l = r.documentElement; o; ) {
    if ((navigator.userAgent.indexOf("MSIE") === -1 || o.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
    // viewport. In some browsers, el.offsetParent may be
    // document.documentElement, so check for that too.
    o !== a && o !== l && ye.css(o, "overflow") !== "visible") {
      var s = ye.offset(o);
      s.left += o.clientLeft, s.top += o.clientTop, n.top = Math.max(n.top, s.top), n.right = Math.min(
        n.right,
        // consider area without scrollBar
        s.left + o.clientWidth
      ), n.bottom = Math.min(n.bottom, s.top + o.clientHeight), n.left = Math.max(n.left, s.left);
    } else if (o === a || o === l)
      break;
    o = oc(o);
  }
  var c = null;
  if (!ye.isWindow(e) && e.nodeType !== 9) {
    c = e.style.position;
    var u = ye.css(e, "position");
    u === "absolute" && (e.style.position = "fixed");
  }
  var d = ye.getWindowScrollLeft(i), f = ye.getWindowScrollTop(i), p = ye.viewportWidth(i), y = ye.viewportHeight(i), g = l.scrollWidth, v = l.scrollHeight, b = window.getComputedStyle(a);
  if (b.overflowX === "hidden" && (g = i.innerWidth), b.overflowY === "hidden" && (v = i.innerHeight), e.style && (e.style.position = c), t || Xw(e))
    n.left = Math.max(n.left, d), n.top = Math.max(n.top, f), n.right = Math.min(n.right, d + p), n.bottom = Math.min(n.bottom, f + y);
  else {
    var O = Math.max(g, d + p);
    n.right = Math.min(n.right, O);
    var C = Math.max(v, f + y);
    n.bottom = Math.min(n.bottom, C);
  }
  return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left ? n : null;
}
function Kw(e, t, n, o) {
  var r = ye.clone(e), i = {
    width: t.width,
    height: t.height
  };
  return o.adjustX && r.left < n.left && (r.left = n.left), o.resizeWidth && r.left >= n.left && r.left + i.width > n.right && (i.width -= r.left + i.width - n.right), o.adjustX && r.left + i.width > n.right && (r.left = Math.max(n.right - i.width, n.left)), o.adjustY && r.top < n.top && (r.top = n.top), o.resizeHeight && r.top >= n.top && r.top + i.height > n.bottom && (i.height -= r.top + i.height - n.bottom), o.adjustY && r.top + i.height > n.bottom && (r.top = Math.max(n.bottom - i.height, n.top)), ye.mix(r, i);
}
function fu(e) {
  var t, n, o;
  if (!ye.isWindow(e) && e.nodeType !== 9)
    t = ye.offset(e), n = ye.outerWidth(e), o = ye.outerHeight(e);
  else {
    var r = ye.getWindow(e);
    t = {
      left: ye.getWindowScrollLeft(r),
      top: ye.getWindowScrollTop(r)
    }, n = ye.viewportWidth(r), o = ye.viewportHeight(r);
  }
  return t.width = n, t.height = o, t;
}
function qf(e, t) {
  var n = t.charAt(0), o = t.charAt(1), r = e.width, i = e.height, a = e.left, l = e.top;
  return n === "c" ? l += i / 2 : n === "b" && (l += i), o === "c" ? a += r / 2 : o === "r" && (a += r), {
    left: a,
    top: l
  };
}
function zi(e, t, n, o, r) {
  var i = qf(t, n[1]), a = qf(e, n[0]), l = [a.left - i.left, a.top - i.top];
  return {
    left: Math.round(e.left - l[0] + o[0] - r[0]),
    top: Math.round(e.top - l[1] + o[1] - r[1])
  };
}
function Yf(e, t, n) {
  return e.left < n.left || e.left + t.width > n.right;
}
function Zf(e, t, n) {
  return e.top < n.top || e.top + t.height > n.bottom;
}
function Gw(e, t, n) {
  return e.left > n.right || e.left + t.width < n.left;
}
function Uw(e, t, n) {
  return e.top > n.bottom || e.top + t.height < n.top;
}
function Bi(e, t, n) {
  var o = [];
  return ye.each(e, function(r) {
    o.push(r.replace(t, function(i) {
      return n[i];
    }));
  }), o;
}
function Hi(e, t) {
  return e[t] = -e[t], e;
}
function Qf(e, t) {
  var n;
  return /%$/.test(e) ? n = parseInt(e.substring(0, e.length - 1), 10) / 100 * t : n = parseInt(e, 10), n || 0;
}
function Jf(e, t) {
  e[0] = Qf(e[0], t.width), e[1] = Qf(e[1], t.height);
}
function n0(e, t, n, o) {
  var r = n.points, i = n.offset || [0, 0], a = n.targetOffset || [0, 0], l = n.overflow, s = n.source || e;
  i = [].concat(i), a = [].concat(a), l = l || {};
  var c = {}, u = 0, d = !!(l && l.alwaysByViewport), f = du(s, d), p = fu(s);
  Jf(i, p), Jf(a, t);
  var y = zi(p, t, r, i, a), g = ye.merge(p, y);
  if (f && (l.adjustX || l.adjustY) && o) {
    if (l.adjustX && Yf(y, p, f)) {
      var v = Bi(r, /[lr]/gi, {
        l: "r",
        r: "l"
      }), b = Hi(i, 0), O = Hi(a, 0), C = zi(p, t, v, b, O);
      Gw(C, p, f) || (u = 1, r = v, i = b, a = O);
    }
    if (l.adjustY && Zf(y, p, f)) {
      var x = Bi(r, /[tb]/gi, {
        t: "b",
        b: "t"
      }), S = Hi(i, 1), P = Hi(a, 1), $ = zi(p, t, x, S, P);
      Uw($, p, f) || (u = 1, r = x, i = S, a = P);
    }
    u && (y = zi(p, t, r, i, a), ye.mix(g, y));
    var T = Yf(y, p, f), E = Zf(y, p, f);
    if (T || E) {
      var M = r;
      T && (M = Bi(r, /[lr]/gi, {
        l: "r",
        r: "l"
      })), E && (M = Bi(r, /[tb]/gi, {
        t: "b",
        b: "t"
      })), r = M, i = n.offset || [0, 0], a = n.targetOffset || [0, 0];
    }
    c.adjustX = l.adjustX && T, c.adjustY = l.adjustY && E, (c.adjustX || c.adjustY) && (g = Kw(y, p, f, c));
  }
  return g.width !== p.width && ye.css(s, "width", ye.width(s) + g.width - p.width), g.height !== p.height && ye.css(s, "height", ye.height(s) + g.height - p.height), ye.offset(s, {
    left: g.left,
    top: g.top
  }, {
    useCssRight: n.useCssRight,
    useCssBottom: n.useCssBottom,
    useCssTransform: n.useCssTransform,
    ignoreShake: n.ignoreShake
  }), {
    points: r,
    offset: i,
    targetOffset: a,
    overflow: c
  };
}
function qw(e, t) {
  var n = du(e, t), o = fu(e);
  return !n || o.left + o.width <= n.left || o.top + o.height <= n.top || o.left >= n.right || o.top >= n.bottom;
}
function pu(e, t, n) {
  var o = n.target || t, r = fu(o), i = !qw(o, n.overflow && n.overflow.alwaysByViewport);
  return n0(e, r, n, i);
}
pu.__getOffsetParent = oc;
pu.__getVisibleRectForElement = du;
function Yw(e, t, n) {
  var o, r, i = ye.getDocument(e), a = i.defaultView || i.parentWindow, l = ye.getWindowScrollLeft(a), s = ye.getWindowScrollTop(a), c = ye.viewportWidth(a), u = ye.viewportHeight(a);
  "pageX" in t ? o = t.pageX : o = l + t.clientX, "pageY" in t ? r = t.pageY : r = s + t.clientY;
  var d = {
    left: o,
    top: r,
    width: 0,
    height: 0
  }, f = o >= 0 && o <= l + c && r >= 0 && r <= s + u, p = [n.points[0], "cc"];
  return n0(e, d, _f(_f({}, n), {}, {
    points: p
  }), f);
}
function He(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, r = e;
  if (Array.isArray(e) && (r = Mt(e)[0]), !r)
    return null;
  const i = si(r, t, o);
  return i.props = n ? h(h({}, i.props), t) : i.props, so(typeof i.props.class != "object"), i;
}
const o0 = ((e) => {
  if (!e)
    return !1;
  if (e.offsetParent)
    return !0;
  if (e.getBBox) {
    const t = e.getBBox();
    if (t.width || t.height)
      return !0;
  }
  if (e.getBoundingClientRect) {
    const t = e.getBoundingClientRect();
    if (t.width || t.height)
      return !0;
  }
  return !1;
});
function Zw(e, t) {
  return e === t ? !0 : !e || !t ? !1 : "pageX" in t && "pageY" in t ? e.pageX === t.pageX && e.pageY === t.pageY : "clientX" in t && "clientY" in t ? e.clientX === t.clientX && e.clientY === t.clientY : !1;
}
function Qw(e, t) {
  e !== document.activeElement && Cn(t, e) && typeof e.focus == "function" && e.focus();
}
function ep(e, t) {
  let n = null, o = null;
  function r(a) {
    let [{
      target: l
    }] = a;
    if (!document.documentElement.contains(l)) return;
    const {
      width: s,
      height: c
    } = l.getBoundingClientRect(), u = Math.floor(s), d = Math.floor(c);
    (n !== u || o !== d) && Promise.resolve().then(() => {
      t({
        width: u,
        height: d
      });
    }), n = u, o = d;
  }
  const i = new kv(r);
  return e && i.observe(e), () => {
    i.disconnect();
  };
}
const Jw = ((e, t) => {
  let n = !1, o = null;
  function r() {
    clearTimeout(o);
  }
  function i(a) {
    if (!n || a === !0) {
      if (e() === !1)
        return;
      n = !0, r(), o = setTimeout(() => {
        n = !1;
      }, t.value);
    } else
      r(), o = setTimeout(() => {
        n = !1, i();
      }, t.value);
  }
  return [i, () => {
    n = !1, r();
  }];
});
function ex() {
  this.__data__ = [], this.size = 0;
}
function mu(e, t) {
  return e === t || e !== e && t !== t;
}
function rl(e, t) {
  for (var n = e.length; n--; )
    if (mu(e[n][0], t))
      return n;
  return -1;
}
var tx = Array.prototype, nx = tx.splice;
function ox(e) {
  var t = this.__data__, n = rl(t, e);
  if (n < 0)
    return !1;
  var o = t.length - 1;
  return n == o ? t.pop() : nx.call(t, n, 1), --this.size, !0;
}
function rx(e) {
  var t = this.__data__, n = rl(t, e);
  return n < 0 ? void 0 : t[n][1];
}
function ix(e) {
  return rl(this.__data__, e) > -1;
}
function ax(e, t) {
  var n = this.__data__, o = rl(n, e);
  return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
}
function gn(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var o = e[t];
    this.set(o[0], o[1]);
  }
}
gn.prototype.clear = ex;
gn.prototype.delete = ox;
gn.prototype.get = rx;
gn.prototype.has = ix;
gn.prototype.set = ax;
function lx() {
  this.__data__ = new gn(), this.size = 0;
}
function sx(e) {
  var t = this.__data__, n = t.delete(e);
  return this.size = t.size, n;
}
function cx(e) {
  return this.__data__.get(e);
}
function ux(e) {
  return this.__data__.has(e);
}
var r0 = typeof global == "object" && global && global.Object === Object && global, dx = typeof self == "object" && self && self.Object === Object && self, Kt = r0 || dx || Function("return this")(), Ft = Kt.Symbol, i0 = Object.prototype, fx = i0.hasOwnProperty, px = i0.toString, yr = Ft ? Ft.toStringTag : void 0;
function mx(e) {
  var t = fx.call(e, yr), n = e[yr];
  try {
    e[yr] = void 0;
    var o = !0;
  } catch {
  }
  var r = px.call(e);
  return o && (t ? e[yr] = n : delete e[yr]), r;
}
var gx = Object.prototype, vx = gx.toString;
function hx(e) {
  return vx.call(e);
}
var yx = "[object Null]", bx = "[object Undefined]", tp = Ft ? Ft.toStringTag : void 0;
function Nn(e) {
  return e == null ? e === void 0 ? bx : yx : tp && tp in Object(e) ? mx(e) : hx(e);
}
function dn(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
var Sx = "[object AsyncFunction]", Cx = "[object Function]", $x = "[object GeneratorFunction]", wx = "[object Proxy]";
function a0(e) {
  if (!dn(e))
    return !1;
  var t = Nn(e);
  return t == Cx || t == $x || t == Sx || t == wx;
}
var Ql = Kt["__core-js_shared__"], np = (function() {
  var e = /[^.]+$/.exec(Ql && Ql.keys && Ql.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
})();
function xx(e) {
  return !!np && np in e;
}
var Ox = Function.prototype, Px = Ox.toString;
function ho(e) {
  if (e != null) {
    try {
      return Px.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var Ix = /[\\^$.*+?()[\]{}|]/g, Tx = /^\[object .+?Constructor\]$/, Ex = Function.prototype, Ax = Object.prototype, Mx = Ex.toString, Rx = Ax.hasOwnProperty, Dx = RegExp(
  "^" + Mx.call(Rx).replace(Ix, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function Fx(e) {
  if (!dn(e) || xx(e))
    return !1;
  var t = a0(e) ? Dx : Tx;
  return t.test(ho(e));
}
function Lx(e, t) {
  return e == null ? void 0 : e[t];
}
function yo(e, t) {
  var n = Lx(e, t);
  return Fx(n) ? n : void 0;
}
var Qr = yo(Kt, "Map"), Jr = yo(Object, "create");
function Nx() {
  this.__data__ = Jr ? Jr(null) : {}, this.size = 0;
}
function jx(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var zx = "__lodash_hash_undefined__", Bx = Object.prototype, Hx = Bx.hasOwnProperty;
function _x(e) {
  var t = this.__data__;
  if (Jr) {
    var n = t[e];
    return n === zx ? void 0 : n;
  }
  return Hx.call(t, e) ? t[e] : void 0;
}
var Vx = Object.prototype, Wx = Vx.hasOwnProperty;
function kx(e) {
  var t = this.__data__;
  return Jr ? t[e] !== void 0 : Wx.call(t, e);
}
var Xx = "__lodash_hash_undefined__";
function Kx(e, t) {
  var n = this.__data__;
  return this.size += this.has(e) ? 0 : 1, n[e] = Jr && t === void 0 ? Xx : t, this;
}
function uo(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var o = e[t];
    this.set(o[0], o[1]);
  }
}
uo.prototype.clear = Nx;
uo.prototype.delete = jx;
uo.prototype.get = _x;
uo.prototype.has = kx;
uo.prototype.set = Kx;
function Gx() {
  this.size = 0, this.__data__ = {
    hash: new uo(),
    map: new (Qr || gn)(),
    string: new uo()
  };
}
function Ux(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function il(e, t) {
  var n = e.__data__;
  return Ux(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function qx(e) {
  var t = il(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
function Yx(e) {
  return il(this, e).get(e);
}
function Zx(e) {
  return il(this, e).has(e);
}
function Qx(e, t) {
  var n = il(this, e), o = n.size;
  return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
}
function vn(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var o = e[t];
    this.set(o[0], o[1]);
  }
}
vn.prototype.clear = Gx;
vn.prototype.delete = qx;
vn.prototype.get = Yx;
vn.prototype.has = Zx;
vn.prototype.set = Qx;
var Jx = 200;
function e2(e, t) {
  var n = this.__data__;
  if (n instanceof gn) {
    var o = n.__data__;
    if (!Qr || o.length < Jx - 1)
      return o.push([e, t]), this.size = ++n.size, this;
    n = this.__data__ = new vn(o);
  }
  return n.set(e, t), this.size = n.size, this;
}
function Zt(e) {
  var t = this.__data__ = new gn(e);
  this.size = t.size;
}
Zt.prototype.clear = lx;
Zt.prototype.delete = sx;
Zt.prototype.get = cx;
Zt.prototype.has = ux;
Zt.prototype.set = e2;
var t2 = "__lodash_hash_undefined__";
function n2(e) {
  return this.__data__.set(e, t2), this;
}
function o2(e) {
  return this.__data__.has(e);
}
function Qo(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.__data__ = new vn(); ++t < n; )
    this.add(e[t]);
}
Qo.prototype.add = Qo.prototype.push = n2;
Qo.prototype.has = o2;
function r2(e, t) {
  for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
    if (t(e[n], n, e))
      return !0;
  return !1;
}
function Ia(e, t) {
  return e.has(t);
}
var i2 = 1, a2 = 2;
function l0(e, t, n, o, r, i) {
  var a = n & i2, l = e.length, s = t.length;
  if (l != s && !(a && s > l))
    return !1;
  var c = i.get(e), u = i.get(t);
  if (c && u)
    return c == t && u == e;
  var d = -1, f = !0, p = n & a2 ? new Qo() : void 0;
  for (i.set(e, t), i.set(t, e); ++d < l; ) {
    var y = e[d], g = t[d];
    if (o)
      var v = a ? o(g, y, d, t, e, i) : o(y, g, d, e, t, i);
    if (v !== void 0) {
      if (v)
        continue;
      f = !1;
      break;
    }
    if (p) {
      if (!r2(t, function(b, O) {
        if (!Ia(p, O) && (y === b || r(y, b, n, o, i)))
          return p.push(O);
      })) {
        f = !1;
        break;
      }
    } else if (!(y === g || r(y, g, n, o, i))) {
      f = !1;
      break;
    }
  }
  return i.delete(e), i.delete(t), f;
}
var Ta = Kt.Uint8Array;
function l2(e) {
  var t = -1, n = Array(e.size);
  return e.forEach(function(o, r) {
    n[++t] = [r, o];
  }), n;
}
function gu(e) {
  var t = -1, n = Array(e.size);
  return e.forEach(function(o) {
    n[++t] = o;
  }), n;
}
var s2 = 1, c2 = 2, u2 = "[object Boolean]", d2 = "[object Date]", f2 = "[object Error]", p2 = "[object Map]", m2 = "[object Number]", g2 = "[object RegExp]", v2 = "[object Set]", h2 = "[object String]", y2 = "[object Symbol]", b2 = "[object ArrayBuffer]", S2 = "[object DataView]", op = Ft ? Ft.prototype : void 0, Jl = op ? op.valueOf : void 0;
function C2(e, t, n, o, r, i, a) {
  switch (n) {
    case S2:
      if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
        return !1;
      e = e.buffer, t = t.buffer;
    case b2:
      return !(e.byteLength != t.byteLength || !i(new Ta(e), new Ta(t)));
    case u2:
    case d2:
    case m2:
      return mu(+e, +t);
    case f2:
      return e.name == t.name && e.message == t.message;
    case g2:
    case h2:
      return e == t + "";
    case p2:
      var l = l2;
    case v2:
      var s = o & s2;
      if (l || (l = gu), e.size != t.size && !s)
        return !1;
      var c = a.get(e);
      if (c)
        return c == t;
      o |= c2, a.set(e, t);
      var u = l0(l(e), l(t), o, r, i, a);
      return a.delete(e), u;
    case y2:
      if (Jl)
        return Jl.call(e) == Jl.call(t);
  }
  return !1;
}
function vu(e, t) {
  for (var n = -1, o = t.length, r = e.length; ++n < o; )
    e[r + n] = t[n];
  return e;
}
var wt = Array.isArray;
function s0(e, t, n) {
  var o = t(e);
  return wt(e) ? o : vu(o, n(e));
}
function $2(e, t) {
  for (var n = -1, o = e == null ? 0 : e.length, r = 0, i = []; ++n < o; ) {
    var a = e[n];
    t(a, n, e) && (i[r++] = a);
  }
  return i;
}
function c0() {
  return [];
}
var w2 = Object.prototype, x2 = w2.propertyIsEnumerable, rp = Object.getOwnPropertySymbols, hu = rp ? function(e) {
  return e == null ? [] : (e = Object(e), $2(rp(e), function(t) {
    return x2.call(e, t);
  }));
} : c0;
function O2(e, t) {
  for (var n = -1, o = Array(e); ++n < e; )
    o[n] = t(n);
  return o;
}
function Wt(e) {
  return e != null && typeof e == "object";
}
var P2 = "[object Arguments]";
function ip(e) {
  return Wt(e) && Nn(e) == P2;
}
var u0 = Object.prototype, I2 = u0.hasOwnProperty, T2 = u0.propertyIsEnumerable, al = ip(/* @__PURE__ */ (function() {
  return arguments;
})()) ? ip : function(e) {
  return Wt(e) && I2.call(e, "callee") && !T2.call(e, "callee");
};
function E2() {
  return !1;
}
var d0 = typeof exports == "object" && exports && !exports.nodeType && exports, ap = d0 && typeof module == "object" && module && !module.nodeType && module, A2 = ap && ap.exports === d0, lp = A2 ? Kt.Buffer : void 0, M2 = lp ? lp.isBuffer : void 0, ei = M2 || E2, R2 = 9007199254740991, D2 = /^(?:0|[1-9]\d*)$/;
function f0(e, t) {
  var n = typeof e;
  return t = t ?? R2, !!t && (n == "number" || n != "symbol" && D2.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var F2 = 9007199254740991;
function yu(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= F2;
}
var L2 = "[object Arguments]", N2 = "[object Array]", j2 = "[object Boolean]", z2 = "[object Date]", B2 = "[object Error]", H2 = "[object Function]", _2 = "[object Map]", V2 = "[object Number]", W2 = "[object Object]", k2 = "[object RegExp]", X2 = "[object Set]", K2 = "[object String]", G2 = "[object WeakMap]", U2 = "[object ArrayBuffer]", q2 = "[object DataView]", Y2 = "[object Float32Array]", Z2 = "[object Float64Array]", Q2 = "[object Int8Array]", J2 = "[object Int16Array]", eO = "[object Int32Array]", tO = "[object Uint8Array]", nO = "[object Uint8ClampedArray]", oO = "[object Uint16Array]", rO = "[object Uint32Array]", ze = {};
ze[Y2] = ze[Z2] = ze[Q2] = ze[J2] = ze[eO] = ze[tO] = ze[nO] = ze[oO] = ze[rO] = !0;
ze[L2] = ze[N2] = ze[U2] = ze[j2] = ze[q2] = ze[z2] = ze[B2] = ze[H2] = ze[_2] = ze[V2] = ze[W2] = ze[k2] = ze[X2] = ze[K2] = ze[G2] = !1;
function iO(e) {
  return Wt(e) && yu(e.length) && !!ze[Nn(e)];
}
function bu(e) {
  return function(t) {
    return e(t);
  };
}
var p0 = typeof exports == "object" && exports && !exports.nodeType && exports, Ar = p0 && typeof module == "object" && module && !module.nodeType && module, aO = Ar && Ar.exports === p0, es = aO && r0.process, Jo = (function() {
  try {
    var e = Ar && Ar.require && Ar.require("util").types;
    return e || es && es.binding && es.binding("util");
  } catch {
  }
})(), sp = Jo && Jo.isTypedArray, Su = sp ? bu(sp) : iO, lO = Object.prototype, sO = lO.hasOwnProperty;
function m0(e, t) {
  var n = wt(e), o = !n && al(e), r = !n && !o && ei(e), i = !n && !o && !r && Su(e), a = n || o || r || i, l = a ? O2(e.length, String) : [], s = l.length;
  for (var c in e)
    (t || sO.call(e, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
    (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    r && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
    f0(c, s))) && l.push(c);
  return l;
}
var cO = Object.prototype;
function ll(e) {
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || cO;
  return e === n;
}
function g0(e, t) {
  return function(n) {
    return e(t(n));
  };
}
var uO = g0(Object.keys, Object), dO = Object.prototype, fO = dO.hasOwnProperty;
function v0(e) {
  if (!ll(e))
    return uO(e);
  var t = [];
  for (var n in Object(e))
    fO.call(e, n) && n != "constructor" && t.push(n);
  return t;
}
function lr(e) {
  return e != null && yu(e.length) && !a0(e);
}
function sr(e) {
  return lr(e) ? m0(e) : v0(e);
}
function rc(e) {
  return s0(e, sr, hu);
}
var pO = 1, mO = Object.prototype, gO = mO.hasOwnProperty;
function vO(e, t, n, o, r, i) {
  var a = n & pO, l = rc(e), s = l.length, c = rc(t), u = c.length;
  if (s != u && !a)
    return !1;
  for (var d = s; d--; ) {
    var f = l[d];
    if (!(a ? f in t : gO.call(t, f)))
      return !1;
  }
  var p = i.get(e), y = i.get(t);
  if (p && y)
    return p == t && y == e;
  var g = !0;
  i.set(e, t), i.set(t, e);
  for (var v = a; ++d < s; ) {
    f = l[d];
    var b = e[f], O = t[f];
    if (o)
      var C = a ? o(O, b, f, t, e, i) : o(b, O, f, e, t, i);
    if (!(C === void 0 ? b === O || r(b, O, n, o, i) : C)) {
      g = !1;
      break;
    }
    v || (v = f == "constructor");
  }
  if (g && !v) {
    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) && (g = !1);
  }
  return i.delete(e), i.delete(t), g;
}
var ic = yo(Kt, "DataView"), ac = yo(Kt, "Promise"), _o = yo(Kt, "Set"), lc = yo(Kt, "WeakMap"), cp = "[object Map]", hO = "[object Object]", up = "[object Promise]", dp = "[object Set]", fp = "[object WeakMap]", pp = "[object DataView]", yO = ho(ic), bO = ho(Qr), SO = ho(ac), CO = ho(_o), $O = ho(lc), It = Nn;
(ic && It(new ic(new ArrayBuffer(1))) != pp || Qr && It(new Qr()) != cp || ac && It(ac.resolve()) != up || _o && It(new _o()) != dp || lc && It(new lc()) != fp) && (It = function(e) {
  var t = Nn(e), n = t == hO ? e.constructor : void 0, o = n ? ho(n) : "";
  if (o)
    switch (o) {
      case yO:
        return pp;
      case bO:
        return cp;
      case SO:
        return up;
      case CO:
        return dp;
      case $O:
        return fp;
    }
  return t;
});
var wO = 1, mp = "[object Arguments]", gp = "[object Array]", _i = "[object Object]", xO = Object.prototype, vp = xO.hasOwnProperty;
function OO(e, t, n, o, r, i) {
  var a = wt(e), l = wt(t), s = a ? gp : It(e), c = l ? gp : It(t);
  s = s == mp ? _i : s, c = c == mp ? _i : c;
  var u = s == _i, d = c == _i, f = s == c;
  if (f && ei(e)) {
    if (!ei(t))
      return !1;
    a = !0, u = !1;
  }
  if (f && !u)
    return i || (i = new Zt()), a || Su(e) ? l0(e, t, n, o, r, i) : C2(e, t, s, n, o, r, i);
  if (!(n & wO)) {
    var p = u && vp.call(e, "__wrapped__"), y = d && vp.call(t, "__wrapped__");
    if (p || y) {
      var g = p ? e.value() : e, v = y ? t.value() : t;
      return i || (i = new Zt()), r(g, v, n, o, i);
    }
  }
  return f ? (i || (i = new Zt()), vO(e, t, n, o, r, i)) : !1;
}
function sl(e, t, n, o, r) {
  return e === t ? !0 : e == null || t == null || !Wt(e) && !Wt(t) ? e !== e && t !== t : OO(e, t, n, o, sl, r);
}
function Cu(e, t) {
  return sl(e, t);
}
const PO = {
  align: Object,
  target: [Object, Function],
  onAlign: Function,
  monitorBufferTime: Number,
  monitorWindowResize: Boolean,
  disabled: Boolean
};
function hp(e) {
  return typeof e != "function" ? null : e();
}
function yp(e) {
  return typeof e != "object" || !e ? null : e;
}
const IO = q({
  compatConfig: {
    MODE: 3
  },
  name: "Align",
  props: PO,
  emits: ["align"],
  setup(e, t) {
    let {
      expose: n,
      slots: o
    } = t;
    const r = Z({}), i = Z(), [a, l] = Jw(() => {
      const {
        disabled: f,
        target: p,
        align: y,
        onAlign: g
      } = e;
      if (!f && p && i.value) {
        const v = i.value;
        let b;
        const O = hp(p), C = yp(p);
        r.value.element = O, r.value.point = C, r.value.align = y;
        const {
          activeElement: x
        } = document;
        return O && o0(O) ? b = pu(v, O, y) : C && (b = Yw(v, C, y)), Qw(x, v), g && b && g(v, b), !0;
      }
      return !1;
    }, w(() => e.monitorBufferTime)), s = Z({
      cancel: () => {
      }
    }), c = Z({
      cancel: () => {
      }
    }), u = () => {
      const f = e.target, p = hp(f), y = yp(f);
      i.value !== c.value.element && (c.value.cancel(), c.value.element = i.value, c.value.cancel = ep(i.value, a)), (r.value.element !== p || !Zw(r.value.point, y) || !Cu(r.value.align, e.align)) && (a(), s.value.element !== p && (s.value.cancel(), s.value.element = p, s.value.cancel = ep(p, a)));
    };
    be(() => {
      De(() => {
        u();
      });
    }), po(() => {
      De(() => {
        u();
      });
    }), ee(() => e.disabled, (f) => {
      f ? l() : a();
    }, {
      immediate: !0,
      flush: "post"
    });
    const d = Z(null);
    return ee(() => e.monitorWindowResize, (f) => {
      f ? d.value || (d.value = Bt(window, "resize", a)) : d.value && (d.value.remove(), d.value = null);
    }, {
      flush: "post"
    }), Fn(() => {
      s.value.cancel(), c.value.cancel(), d.value && d.value.remove(), l();
    }), n({
      forceAlign: () => a(!0)
    }), () => {
      const f = o == null ? void 0 : o.default();
      return f ? He(f[0], {
        ref: i
      }, !0, !0) : null;
    };
  }
});
Tn("bottomLeft", "bottomRight", "topLeft", "topRight");
const TO = (e) => e !== void 0 && (e === "topLeft" || e === "topRight") ? "slide-down" : "slide-up", cr = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  return h(e ? {
    name: e,
    appear: !0,
    // type: 'animation',
    // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
    // appearActiveClass: `antdv-base-transtion`,
    // appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
    enterFromClass: `${e}-enter ${e}-enter-prepare ${e}-enter-start`,
    enterActiveClass: `${e}-enter ${e}-enter-prepare`,
    enterToClass: `${e}-enter ${e}-enter-active`,
    leaveFromClass: ` ${e}-leave`,
    leaveActiveClass: `${e}-leave ${e}-leave-active`,
    leaveToClass: `${e}-leave ${e}-leave-active`
  } : {
    css: !1
  }, t);
}, cl = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  return h(e ? {
    name: e,
    appear: !0,
    // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
    appearActiveClass: `${e}`,
    appearToClass: `${e}-appear ${e}-appear-active`,
    enterFromClass: `${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,
    enterActiveClass: `${e}`,
    enterToClass: `${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,
    leaveActiveClass: `${e} ${e}-leave`,
    leaveToClass: `${e}-leave-active`
  } : {
    css: !1
  }, t);
}, An = (e, t, n) => n !== void 0 ? n : `${e}-${t}`, EO = q({
  compatConfig: {
    MODE: 3
  },
  name: "PopupInner",
  inheritAttrs: !1,
  props: lu,
  emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
  setup(e, t) {
    let {
      expose: n,
      attrs: o,
      slots: r
    } = t;
    const i = K(), a = K(), l = K(), [s, c] = ww(Oe(e, "stretch")), u = () => {
      e.stretch && c(e.getRootDomNode());
    }, d = K(!1);
    let f;
    ee(() => e.visible, (P) => {
      clearTimeout(f), P ? f = setTimeout(() => {
        d.value = e.visible;
      }) : d.value = !1;
    }, {
      immediate: !0
    });
    const [p, y] = $w(d, u), g = K(), v = () => e.point ? e.point : e.getRootDomNode, b = () => {
      var P;
      (P = i.value) === null || P === void 0 || P.forceAlign();
    }, O = (P, $) => {
      var T;
      const E = e.getClassNameFromAlign($), M = l.value;
      l.value !== E && (l.value = E), p.value === "align" && (M !== E ? Promise.resolve().then(() => {
        b();
      }) : y(() => {
        var R;
        (R = g.value) === null || R === void 0 || R.call(g);
      }), (T = e.onAlign) === null || T === void 0 || T.call(e, P, $));
    }, C = w(() => {
      const P = typeof e.animation == "object" ? e.animation : su(e);
      return ["onAfterEnter", "onAfterLeave"].forEach(($) => {
        const T = P[$];
        P[$] = (E) => {
          y(), p.value = "stable", T == null || T(E);
        };
      }), P;
    }), x = () => new Promise((P) => {
      g.value = P;
    });
    ee([C, p], () => {
      !C.value && p.value === "motion" && y();
    }, {
      immediate: !0
    }), n({
      forceAlign: b,
      getElement: () => a.value.$el || a.value
    });
    const S = w(() => {
      var P;
      return !(!((P = e.align) === null || P === void 0) && P.points && (p.value === "align" || p.value === "stable"));
    });
    return () => {
      var P;
      const {
        zIndex: $,
        align: T,
        prefixCls: E,
        destroyPopupOnHide: M,
        onMouseenter: R,
        onMouseleave: N,
        onTouchstart: F = () => {
        },
        onMousedown: H
      } = e, I = p.value, A = [h(h({}, s.value), {
        zIndex: $,
        opacity: I === "motion" || I === "stable" || !d.value ? null : 0,
        // pointerEvents: statusValue === 'stable' ? null : 'none',
        pointerEvents: !d.value && I !== "stable" ? "none" : null
      }), o.style];
      let j = tt((P = r.default) === null || P === void 0 ? void 0 : P.call(r, {
        visible: e.visible
      }));
      j.length > 1 && (j = m("div", {
        class: `${E}-content`
      }, [j]));
      const L = ie(E, o.class, l.value, !e.arrow && `${E}-arrow-hidden`), _ = d.value || !e.visible ? cr(C.value.name, C.value) : {};
      return m(Xt, z(z({
        ref: a
      }, _), {}, {
        onBeforeEnter: x
      }), {
        default: () => !M || e.visible ? en(m(IO, {
          target: v(),
          key: "popup",
          ref: i,
          monitorWindowResize: !0,
          disabled: S.value,
          align: T,
          onAlign: O
        }, {
          default: () => m("div", {
            class: L,
            onMouseenter: R,
            onMouseleave: N,
            onMousedown: of(H, ["capture"]),
            [st ? "onTouchstartPassive" : "onTouchstart"]: of(F, ["capture"]),
            style: A
          }, [j])
        }), [[pn, d.value]]) : null
      });
    };
  }
}), AO = q({
  compatConfig: {
    MODE: 3
  },
  name: "Popup",
  inheritAttrs: !1,
  props: bw,
  setup(e, t) {
    let {
      attrs: n,
      slots: o,
      expose: r
    } = t;
    const i = K(!1), a = K(!1), l = K(), s = K();
    return ee([() => e.visible, () => e.mobile], () => {
      i.value = e.visible, e.visible && e.mobile && (a.value = !0);
    }, {
      immediate: !0,
      flush: "post"
    }), r({
      forceAlign: () => {
        var c;
        (c = l.value) === null || c === void 0 || c.forceAlign();
      },
      getElement: () => {
        var c;
        return (c = l.value) === null || c === void 0 ? void 0 : c.getElement();
      }
    }), () => {
      const c = h(h(h({}, e), n), {
        visible: i.value
      }), u = a.value ? m(Sw, z(z({}, c), {}, {
        mobile: e.mobile,
        ref: l
      }), {
        default: o.default
      }) : m(EO, z(z({}, c), {}, {
        ref: l
      }), {
        default: o.default
      });
      return m("div", {
        ref: s
      }, [m(Uh, c, null), u]);
    };
  }
});
function MO(e, t, n) {
  return n ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1];
}
function bp(e, t, n) {
  const o = e[t] || {};
  return h(h({}, o), n);
}
function RO(e, t, n, o) {
  const {
    points: r
  } = n, i = Object.keys(e);
  for (let a = 0; a < i.length; a += 1) {
    const l = i[a];
    if (MO(e[l].points, r, o))
      return `${t}-placement-${l}`;
  }
  return "";
}
const DO = {
  methods: {
    setState() {
      let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = typeof e == "function" ? e(this.$data, this.$props) : e;
      if (this.getDerivedStateFromProps) {
        const o = this.getDerivedStateFromProps(aC(this), h(h({}, this.$data), n));
        if (o === null)
          return;
        n = h(h({}, n), o || {});
      }
      h(this.$data, n), this._.isMounted && this.$forceUpdate(), De(() => {
        t && t();
      });
    },
    __emit() {
      const e = [].slice.call(arguments, 0);
      let t = e[0];
      t = `on${t[0].toUpperCase()}${t.substring(1)}`;
      const n = this.$props[t] || this.$attrs[t];
      if (e.length && n)
        if (Array.isArray(n))
          for (let o = 0, r = n.length; o < r; o++)
            n[o](...e.slice(1));
        else
          n(...e.slice(1));
    }
  }
}, h0 = Symbol("PortalContextKey"), $u = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
    inTriggerContext: !0
  };
  $e(h0, {
    inTriggerContext: t.inTriggerContext,
    shouldRender: w(() => {
      const {
        sPopupVisible: n,
        popupRef: o,
        forceRender: r,
        autoDestroy: i
      } = e || {};
      let a = !1;
      return (n || o || r) && (a = !0), !n && i && (a = !1), a;
    })
  });
}, FO = () => {
  $u({}, {
    inTriggerContext: !1
  });
  const e = Ce(h0, {
    shouldRender: w(() => !1),
    inTriggerContext: !1
  });
  return {
    shouldRender: w(() => e.shouldRender.value || e.inTriggerContext === !1)
  };
}, y0 = q({
  compatConfig: {
    MODE: 3
  },
  name: "Portal",
  inheritAttrs: !1,
  props: {
    getContainer: G.func.isRequired,
    didUpdate: Function
  },
  setup(e, t) {
    let {
      slots: n
    } = t, o = !0, r;
    const {
      shouldRender: i
    } = FO();
    function a() {
      i.value && (r = e.getContainer());
    }
    aS(() => {
      o = !1, a();
    }), be(() => {
      r || a();
    });
    const l = ee(i, () => {
      i.value && !r && (r = e.getContainer()), r && l();
    });
    return po(() => {
      De(() => {
        var s;
        i.value && ((s = e.didUpdate) === null || s === void 0 || s.call(e, e));
      });
    }), () => {
      var s;
      return i.value ? o ? (s = n.default) === null || s === void 0 ? void 0 : s.call(n) : r ? m(Ga, {
        to: r
      }, n) : null : null;
    };
  }
});
let ts;
function LO(e) {
  if (typeof document > "u")
    return 0;
  if (ts === void 0) {
    const t = document.createElement("div");
    t.style.width = "100%", t.style.height = "200px";
    const n = document.createElement("div"), o = n.style;
    o.position = "absolute", o.top = "0", o.left = "0", o.pointerEvents = "none", o.visibility = "hidden", o.width = "200px", o.height = "150px", o.overflow = "hidden", n.appendChild(t), document.body.appendChild(n);
    const r = t.offsetWidth;
    n.style.overflow = "scroll";
    let i = t.offsetWidth;
    r === i && (i = n.clientWidth), document.body.removeChild(n), ts = r - i;
  }
  return ts;
}
const NO = `vc-util-locker-${Date.now()}`;
let Sp = 0;
function jO() {
  return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
}
function zO(e) {
  const t = w(() => !!e && !!e.value);
  Sp += 1;
  const n = `${NO}_${Sp}`;
  we((o) => {
    if (Ct()) {
      if (t.value) {
        const r = LO(), i = jO();
        Kr(`
html body {
  overflow-y: hidden;
  ${i ? `width: calc(100% - ${r}px);` : ""}
}`, n);
      } else
        Ca(n);
      o(() => {
        Ca(n);
      });
    }
  }, {
    flush: "post"
  });
}
let Wn = 0;
const aa = Ct(), Cp = (e) => {
  if (!aa)
    return null;
  if (e) {
    if (typeof e == "string")
      return document.querySelectorAll(e)[0];
    if (typeof e == "function")
      return e();
    if (typeof e == "object" && e instanceof window.HTMLElement)
      return e;
  }
  return document.body;
}, b0 = q({
  compatConfig: {
    MODE: 3
  },
  name: "PortalWrapper",
  inheritAttrs: !1,
  props: {
    wrapperClassName: String,
    forceRender: {
      type: Boolean,
      default: void 0
    },
    getContainer: G.any,
    visible: {
      type: Boolean,
      default: void 0
    },
    autoLock: Ie(),
    didUpdate: Function
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = K(), r = K(), i = K(), a = K(1), l = Ct() && document.createElement("div"), s = () => {
      var p, y;
      o.value === l && ((y = (p = o.value) === null || p === void 0 ? void 0 : p.parentNode) === null || y === void 0 || y.removeChild(o.value)), o.value = null;
    };
    let c = null;
    const u = function() {
      return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) || o.value && !o.value.parentNode ? (c = Cp(e.getContainer), c ? (c.appendChild(o.value), !0) : !1) : !0;
    }, d = () => aa ? (o.value || (o.value = l, u(!0)), f(), o.value) : null, f = () => {
      const {
        wrapperClassName: p
      } = e;
      o.value && p && p !== o.value.className && (o.value.className = p);
    };
    return po(() => {
      f(), u();
    }), zO(w(() => e.autoLock && e.visible && Ct() && (o.value === document.body || o.value === l))), be(() => {
      let p = !1;
      ee([() => e.visible, () => e.getContainer], (y, g) => {
        let [v, b] = y, [O, C] = g;
        aa && (c = Cp(e.getContainer), c === document.body && (v && !O ? Wn += 1 : p && (Wn -= 1))), p && (typeof b == "function" && typeof C == "function" ? b.toString() !== C.toString() : b !== C) && s(), p = !0;
      }, {
        immediate: !0,
        flush: "post"
      }), De(() => {
        u() || (i.value = Ae(() => {
          a.value += 1;
        }));
      });
    }), Le(() => {
      const {
        visible: p
      } = e;
      aa && c === document.body && (Wn = p && Wn ? Wn - 1 : Wn), s(), Ae.cancel(i.value);
    }), () => {
      const {
        forceRender: p,
        visible: y
      } = e;
      let g = null;
      const v = {
        getOpenCount: () => Wn,
        getContainer: d
      };
      return a.value && (p || y || r.value) && (g = m(y0, {
        getContainer: d,
        ref: r,
        didUpdate: e.didUpdate
      }, {
        default: () => {
          var b;
          return (b = n.default) === null || b === void 0 ? void 0 : b.call(n, v);
        }
      })), g;
    };
  }
}), BO = ["onClick", "onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onContextmenu"], ul = q({
  compatConfig: {
    MODE: 3
  },
  name: "Trigger",
  mixins: [DO],
  inheritAttrs: !1,
  props: hw(),
  setup(e) {
    const t = w(() => {
      const {
        popupPlacement: r,
        popupAlign: i,
        builtinPlacements: a
      } = e;
      return r && a ? bp(a, r, i) : i;
    }), n = K(null), o = (r) => {
      n.value = r;
    };
    return {
      vcTriggerContext: Ce("vcTriggerContext", {}),
      popupRef: n,
      setPopupRef: o,
      triggerRef: K(null),
      align: t,
      focusTime: null,
      clickOutsideHandler: null,
      contextmenuOutsideHandler1: null,
      contextmenuOutsideHandler2: null,
      touchOutsideHandler: null,
      attachId: null,
      delayTimer: null,
      hasPopupMouseDown: !1,
      preClickTime: null,
      preTouchTime: null,
      mouseDownTimeout: null,
      childOriginEvents: {}
    };
  },
  data() {
    const e = this.$props;
    let t;
    return this.popupVisible !== void 0 ? t = !!e.popupVisible : t = !!e.defaultPopupVisible, BO.forEach((n) => {
      this[`fire${n}`] = (o) => {
        this.fireEvents(n, o);
      };
    }), {
      prevPopupVisible: t,
      sPopupVisible: t,
      point: null
    };
  },
  watch: {
    popupVisible(e) {
      e !== void 0 && (this.prevPopupVisible = this.sPopupVisible, this.sPopupVisible = e);
    }
  },
  created() {
    $e("vcTriggerContext", {
      onPopupMouseDown: this.onPopupMouseDown,
      onPopupMouseenter: this.onPopupMouseenter,
      onPopupMouseleave: this.onPopupMouseleave
    }), $u(this);
  },
  deactivated() {
    this.setPopupVisible(!1);
  },
  mounted() {
    this.$nextTick(() => {
      this.updatedCal();
    });
  },
  updated() {
    this.$nextTick(() => {
      this.updatedCal();
    });
  },
  beforeUnmount() {
    this.clearDelayTimer(), this.clearOutsideHandler(), clearTimeout(this.mouseDownTimeout), Ae.cancel(this.attachId);
  },
  methods: {
    updatedCal() {
      const e = this.$props;
      if (this.$data.sPopupVisible) {
        let n;
        !this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow()) && (n = e.getDocument(this.getRootDomNode()), this.clickOutsideHandler = Bt(n, "mousedown", this.onDocumentClick)), this.touchOutsideHandler || (n = n || e.getDocument(this.getRootDomNode()), this.touchOutsideHandler = Bt(n, "touchstart", this.onDocumentClick, st ? {
          passive: !1
        } : !1)), !this.contextmenuOutsideHandler1 && this.isContextmenuToShow() && (n = n || e.getDocument(this.getRootDomNode()), this.contextmenuOutsideHandler1 = Bt(n, "scroll", this.onContextmenuClose)), !this.contextmenuOutsideHandler2 && this.isContextmenuToShow() && (this.contextmenuOutsideHandler2 = Bt(window, "blur", this.onContextmenuClose));
      } else
        this.clearOutsideHandler();
    },
    onMouseenter(e) {
      const {
        mouseEnterDelay: t
      } = this.$props;
      this.fireEvents("onMouseenter", e), this.delaySetPopupVisible(!0, t, t ? null : e);
    },
    onMouseMove(e) {
      this.fireEvents("onMousemove", e), this.setPoint(e);
    },
    onMouseleave(e) {
      this.fireEvents("onMouseleave", e), this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
    },
    onPopupMouseenter() {
      const {
        vcTriggerContext: e = {}
      } = this;
      e.onPopupMouseenter && e.onPopupMouseenter(), this.clearDelayTimer();
    },
    onPopupMouseleave(e) {
      var t;
      if (e && e.relatedTarget && !e.relatedTarget.setTimeout && Cn((t = this.popupRef) === null || t === void 0 ? void 0 : t.getElement(), e.relatedTarget))
        return;
      this.isMouseLeaveToHide() && this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
      const {
        vcTriggerContext: n = {}
      } = this;
      n.onPopupMouseleave && n.onPopupMouseleave(e);
    },
    onFocus(e) {
      this.fireEvents("onFocus", e), this.clearDelayTimer(), this.isFocusToShow() && (this.focusTime = Date.now(), this.delaySetPopupVisible(!0, this.$props.focusDelay));
    },
    onMousedown(e) {
      this.fireEvents("onMousedown", e), this.preClickTime = Date.now();
    },
    onTouchstart(e) {
      this.fireEvents("onTouchstart", e), this.preTouchTime = Date.now();
    },
    onBlur(e) {
      Cn(e.target, e.relatedTarget || document.activeElement) || (this.fireEvents("onBlur", e), this.clearDelayTimer(), this.isBlurToHide() && this.delaySetPopupVisible(!1, this.$props.blurDelay));
    },
    onContextmenu(e) {
      e.preventDefault(), this.fireEvents("onContextmenu", e), this.setPopupVisible(!0, e);
    },
    onContextmenuClose() {
      this.isContextmenuToShow() && this.close();
    },
    onClick(e) {
      if (this.fireEvents("onClick", e), this.focusTime) {
        let n;
        if (this.preClickTime && this.preTouchTime ? n = Math.min(this.preClickTime, this.preTouchTime) : this.preClickTime ? n = this.preClickTime : this.preTouchTime && (n = this.preTouchTime), Math.abs(n - this.focusTime) < 20)
          return;
        this.focusTime = 0;
      }
      this.preClickTime = 0, this.preTouchTime = 0, this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && e && e.preventDefault && e.preventDefault(), e && e.domEvent && e.domEvent.preventDefault();
      const t = !this.$data.sPopupVisible;
      (this.isClickToHide() && !t || t && this.isClickToShow()) && this.setPopupVisible(!this.$data.sPopupVisible, e);
    },
    onPopupMouseDown() {
      const {
        vcTriggerContext: e = {}
      } = this;
      this.hasPopupMouseDown = !0, clearTimeout(this.mouseDownTimeout), this.mouseDownTimeout = setTimeout(() => {
        this.hasPopupMouseDown = !1;
      }, 0), e.onPopupMouseDown && e.onPopupMouseDown(...arguments);
    },
    onDocumentClick(e) {
      if (this.$props.mask && !this.$props.maskClosable)
        return;
      const t = e.target, n = this.getRootDomNode(), o = this.getPopupDomNode();
      // mousedown on the target should also close popup when action is contextMenu.
      // https://github.com/ant-design/ant-design/issues/29853
      (!Cn(n, t) || this.isContextMenuOnly()) && !Cn(o, t) && !this.hasPopupMouseDown && this.delaySetPopupVisible(!1, 0.1);
    },
    getPopupDomNode() {
      var e;
      return ((e = this.popupRef) === null || e === void 0 ? void 0 : e.getElement()) || null;
    },
    getRootDomNode() {
      var e, t, n, o;
      const {
        getTriggerDOMNode: r
      } = this.$props;
      if (r) {
        const i = ((t = (e = this.triggerRef) === null || e === void 0 ? void 0 : e.$el) === null || t === void 0 ? void 0 : t.nodeName) === "#comment" ? null : Ht(this.triggerRef);
        return Ht(r(i));
      }
      try {
        const i = ((o = (n = this.triggerRef) === null || n === void 0 ? void 0 : n.$el) === null || o === void 0 ? void 0 : o.nodeName) === "#comment" ? null : Ht(this.triggerRef);
        if (i)
          return i;
      } catch {
      }
      return Ht(this);
    },
    handleGetPopupClassFromAlign(e) {
      const t = [], n = this.$props, {
        popupPlacement: o,
        builtinPlacements: r,
        prefixCls: i,
        alignPoint: a,
        getPopupClassNameFromAlign: l
      } = n;
      return o && r && t.push(RO(r, i, e, a)), l && t.push(l(e)), t.join(" ");
    },
    getPopupAlign() {
      const e = this.$props, {
        popupPlacement: t,
        popupAlign: n,
        builtinPlacements: o
      } = e;
      return t && o ? bp(o, t, n) : n;
    },
    getComponent() {
      const e = {};
      this.isMouseEnterToShow() && (e.onMouseenter = this.onPopupMouseenter), this.isMouseLeaveToHide() && (e.onMouseleave = this.onPopupMouseleave), e.onMousedown = this.onPopupMouseDown, e[st ? "onTouchstartPassive" : "onTouchstart"] = this.onPopupMouseDown;
      const {
        handleGetPopupClassFromAlign: t,
        getRootDomNode: n,
        $attrs: o
      } = this, {
        prefixCls: r,
        destroyPopupOnHide: i,
        popupClassName: a,
        popupAnimation: l,
        popupTransitionName: s,
        popupStyle: c,
        mask: u,
        maskAnimation: d,
        maskTransitionName: f,
        zIndex: p,
        stretch: y,
        alignPoint: g,
        mobile: v,
        arrow: b,
        forceRender: O
      } = this.$props, {
        sPopupVisible: C,
        point: x
      } = this.$data, S = h(h({
        prefixCls: r,
        arrow: b,
        destroyPopupOnHide: i,
        visible: C,
        point: g ? x : null,
        align: this.align,
        animation: l,
        getClassNameFromAlign: t,
        stretch: y,
        getRootDomNode: n,
        mask: u,
        zIndex: p,
        transitionName: s,
        maskAnimation: d,
        maskTransitionName: f,
        class: a,
        style: c,
        onAlign: o.onPopupAlign || Gh
      }, e), {
        ref: this.setPopupRef,
        mobile: v,
        forceRender: O
      });
      return m(AO, S, {
        default: this.$slots.popup || (() => lC(this, "popup"))
      });
    },
    attachParent(e) {
      Ae.cancel(this.attachId);
      const {
        getPopupContainer: t,
        getDocument: n
      } = this.$props, o = this.getRootDomNode();
      let r;
      t ? (o || t.length === 0) && (r = t(o)) : r = n(this.getRootDomNode()).body, r ? r.appendChild(e) : this.attachId = Ae(() => {
        this.attachParent(e);
      });
    },
    getContainer() {
      const {
        $props: e
      } = this, {
        getDocument: t
      } = e, n = t(this.getRootDomNode()).createElement("div");
      return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", this.attachParent(n), n;
    },
    setPopupVisible(e, t) {
      const {
        alignPoint: n,
        sPopupVisible: o,
        onPopupVisibleChange: r
      } = this;
      this.clearDelayTimer(), o !== e && (rC(this, "popupVisible") || this.setState({
        sPopupVisible: e,
        prevPopupVisible: o
      }), r && r(e)), n && t && e && this.setPoint(t);
    },
    setPoint(e) {
      const {
        alignPoint: t
      } = this.$props;
      !t || !e || this.setState({
        point: {
          pageX: e.pageX,
          pageY: e.pageY
        }
      });
    },
    handlePortalUpdate() {
      this.prevPopupVisible !== this.sPopupVisible && this.afterPopupVisibleChange(this.sPopupVisible);
    },
    delaySetPopupVisible(e, t, n) {
      const o = t * 1e3;
      if (this.clearDelayTimer(), o) {
        const r = n ? {
          pageX: n.pageX,
          pageY: n.pageY
        } : null;
        this.delayTimer = setTimeout(() => {
          this.setPopupVisible(e, r), this.clearDelayTimer();
        }, o);
      } else
        this.setPopupVisible(e, n);
    },
    clearDelayTimer() {
      this.delayTimer && (clearTimeout(this.delayTimer), this.delayTimer = null);
    },
    clearOutsideHandler() {
      this.clickOutsideHandler && (this.clickOutsideHandler.remove(), this.clickOutsideHandler = null), this.contextmenuOutsideHandler1 && (this.contextmenuOutsideHandler1.remove(), this.contextmenuOutsideHandler1 = null), this.contextmenuOutsideHandler2 && (this.contextmenuOutsideHandler2.remove(), this.contextmenuOutsideHandler2 = null), this.touchOutsideHandler && (this.touchOutsideHandler.remove(), this.touchOutsideHandler = null);
    },
    createTwoChains(e) {
      let t = () => {
      };
      const n = uf(this);
      return this.childOriginEvents[e] && n[e] ? this[`fire${e}`] : (t = this.childOriginEvents[e] || n[e] || t, t);
    },
    isClickToShow() {
      const {
        action: e,
        showAction: t
      } = this.$props;
      return e.indexOf("click") !== -1 || t.indexOf("click") !== -1;
    },
    isContextMenuOnly() {
      const {
        action: e
      } = this.$props;
      return e === "contextmenu" || e.length === 1 && e[0] === "contextmenu";
    },
    isContextmenuToShow() {
      const {
        action: e,
        showAction: t
      } = this.$props;
      return e.indexOf("contextmenu") !== -1 || t.indexOf("contextmenu") !== -1;
    },
    isClickToHide() {
      const {
        action: e,
        hideAction: t
      } = this.$props;
      return e.indexOf("click") !== -1 || t.indexOf("click") !== -1;
    },
    isMouseEnterToShow() {
      const {
        action: e,
        showAction: t
      } = this.$props;
      return e.indexOf("hover") !== -1 || t.indexOf("mouseenter") !== -1;
    },
    isMouseLeaveToHide() {
      const {
        action: e,
        hideAction: t
      } = this.$props;
      return e.indexOf("hover") !== -1 || t.indexOf("mouseleave") !== -1;
    },
    isFocusToShow() {
      const {
        action: e,
        showAction: t
      } = this.$props;
      return e.indexOf("focus") !== -1 || t.indexOf("focus") !== -1;
    },
    isBlurToHide() {
      const {
        action: e,
        hideAction: t
      } = this.$props;
      return e.indexOf("focus") !== -1 || t.indexOf("blur") !== -1;
    },
    forcePopupAlign() {
      var e;
      this.$data.sPopupVisible && ((e = this.popupRef) === null || e === void 0 || e.forceAlign());
    },
    fireEvents(e, t) {
      this.childOriginEvents[e] && this.childOriginEvents[e](t);
      const n = this.$props[e] || this.$attrs[e];
      n && n(t);
    },
    close() {
      this.setPopupVisible(!1);
    }
  },
  render() {
    const {
      $attrs: e
    } = this, t = Mt(iC(this)), {
      alignPoint: n,
      getPopupContainer: o
    } = this.$props, r = t[0];
    this.childOriginEvents = uf(r);
    const i = {
      key: "trigger"
    };
    this.isContextmenuToShow() ? i.onContextmenu = this.onContextmenu : i.onContextmenu = this.createTwoChains("onContextmenu"), this.isClickToHide() || this.isClickToShow() ? (i.onClick = this.onClick, i.onMousedown = this.onMousedown, i[st ? "onTouchstartPassive" : "onTouchstart"] = this.onTouchstart) : (i.onClick = this.createTwoChains("onClick"), i.onMousedown = this.createTwoChains("onMousedown"), i[st ? "onTouchstartPassive" : "onTouchstart"] = this.createTwoChains("onTouchstart")), this.isMouseEnterToShow() ? (i.onMouseenter = this.onMouseenter, n && (i.onMousemove = this.onMouseMove)) : i.onMouseenter = this.createTwoChains("onMouseenter"), this.isMouseLeaveToHide() ? i.onMouseleave = this.onMouseleave : i.onMouseleave = this.createTwoChains("onMouseleave"), this.isFocusToShow() || this.isBlurToHide() ? (i.onFocus = this.onFocus, i.onBlur = this.onBlur) : (i.onFocus = this.createTwoChains("onFocus"), i.onBlur = (c) => {
      c && (!c.relatedTarget || !Cn(c.target, c.relatedTarget)) && this.createTwoChains("onBlur")(c);
    });
    const a = ie(r && r.props && r.props.class, e.class);
    a && (i.class = a);
    const l = He(r, h(h({}, i), {
      ref: "triggerRef"
    }), !0, !0), s = m(b0, {
      key: "portal",
      getContainer: o && (() => o(this.getRootDomNode())),
      didUpdate: this.handlePortalUpdate,
      visible: this.$data.sPopupVisible
    }, {
      default: this.getComponent
    });
    return m(Te, null, [l, s]);
  }
});
var HO = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const _O = (e) => {
  const t = e === !0 ? 0 : 1;
  return {
    bottomLeft: {
      points: ["tl", "bl"],
      offset: [0, 4],
      overflow: {
        adjustX: t,
        adjustY: 1
      }
    },
    bottomRight: {
      points: ["tr", "br"],
      offset: [0, 4],
      overflow: {
        adjustX: t,
        adjustY: 1
      }
    },
    topLeft: {
      points: ["bl", "tl"],
      offset: [0, -4],
      overflow: {
        adjustX: t,
        adjustY: 1
      }
    },
    topRight: {
      points: ["br", "tr"],
      offset: [0, -4],
      overflow: {
        adjustX: t,
        adjustY: 1
      }
    }
  };
}, VO = q({
  name: "SelectTrigger",
  inheritAttrs: !1,
  props: {
    dropdownAlign: Object,
    visible: {
      type: Boolean,
      default: void 0
    },
    disabled: {
      type: Boolean,
      default: void 0
    },
    dropdownClassName: String,
    dropdownStyle: G.object,
    placement: String,
    empty: {
      type: Boolean,
      default: void 0
    },
    prefixCls: String,
    popupClassName: String,
    animation: String,
    transitionName: String,
    getPopupContainer: Function,
    dropdownRender: Function,
    containerWidth: Number,
    dropdownMatchSelectWidth: G.oneOfType([Number, Boolean]).def(!0),
    popupElement: G.any,
    direction: String,
    getTriggerDOMNode: Function,
    onPopupVisibleChange: Function,
    onPopupMouseEnter: Function,
    onPopupFocusin: Function,
    onPopupFocusout: Function
  },
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    const i = w(() => {
      const {
        dropdownMatchSelectWidth: l
      } = e;
      return _O(l);
    }), a = Z();
    return r({
      getPopupElement: () => a.value
    }), () => {
      const l = h(h({}, e), o), {
        empty: s = !1
      } = l, c = HO(l, ["empty"]), {
        visible: u,
        dropdownAlign: d,
        prefixCls: f,
        popupElement: p,
        dropdownClassName: y,
        dropdownStyle: g,
        direction: v = "ltr",
        placement: b,
        dropdownMatchSelectWidth: O,
        containerWidth: C,
        dropdownRender: x,
        animation: S,
        transitionName: P,
        getPopupContainer: $,
        getTriggerDOMNode: T,
        onPopupVisibleChange: E,
        onPopupMouseEnter: M,
        onPopupFocusin: R,
        onPopupFocusout: N
      } = c, F = `${f}-dropdown`;
      let H = p;
      x && (H = x({
        menuNode: p,
        props: e
      }));
      const I = S ? `${F}-${S}` : P, A = h({
        minWidth: `${C}px`
      }, g);
      return typeof O == "number" ? A.width = `${O}px` : O && (A.width = `${C}px`), m(ul, z(z({}, e), {}, {
        showAction: E ? ["click"] : [],
        hideAction: E ? ["click"] : [],
        popupPlacement: b || (v === "rtl" ? "bottomRight" : "bottomLeft"),
        builtinPlacements: i.value,
        prefixCls: F,
        popupTransitionName: I,
        popupAlign: d,
        popupVisible: u,
        getPopupContainer: $,
        popupClassName: ie(y, {
          [`${F}-empty`]: s
        }),
        popupStyle: A,
        getTriggerDOMNode: T,
        onPopupVisibleChange: E
      }), {
        default: n.default,
        popup: () => m("div", {
          ref: a,
          onMouseenter: M,
          onFocusin: R,
          onFocusout: N
        }, [H])
      });
    };
  }
}), ue = {
  /**
   * BACKSPACE
   */
  BACKSPACE: 8,
  /**
   * TAB
   */
  TAB: 9,
  /**
   * ENTER
   */
  ENTER: 13,
  /**
   * SHIFT
   */
  SHIFT: 16,
  /**
   * CTRL
   */
  CTRL: 17,
  /**
   * ALT
   */
  ALT: 18,
  /**
   * CAPS_LOCK
   */
  CAPS_LOCK: 20,
  /**
   * ESC
   */
  ESC: 27,
  /**
   * LEFT
   */
  LEFT: 37,
  /**
   * UP
   */
  UP: 38,
  /**
   * RIGHT
   */
  RIGHT: 39,
  /**
   * DOWN
   */
  DOWN: 40,
  /**
   * N
   */
  N: 78,
  /**
   * P
   */
  P: 80,
  /**
   * META
   */
  META: 91,
  /**
   * WIN_KEY_RIGHT
   */
  WIN_KEY_RIGHT: 92,
  /**
   * CONTEXT_MENU
   */
  CONTEXT_MENU: 93,
  /**
   * F1
   */
  F1: 112,
  /**
   * F2
   */
  F2: 113,
  /**
   * F3
   */
  F3: 114,
  /**
   * F4
   */
  F4: 115,
  /**
   * F5
   */
  F5: 116,
  /**
   * F6
   */
  F6: 117,
  /**
   * F7
   */
  F7: 118,
  /**
   * F8
   */
  F8: 119,
  /**
   * F9
   */
  F9: 120,
  /**
   * F10
   */
  F10: 121,
  /**
   * F11
   */
  F11: 122,
  /**
   * F12
   */
  F12: 123,
  /**
   * SEMICOLON
   */
  SEMICOLON: 186,
  /**
   * EQUALS
   */
  EQUALS: 187,
  /**
   * WIN_KEY
   */
  WIN_KEY: 224
}, fo = (e, t) => {
  let {
    slots: n
  } = t;
  var o;
  const {
    class: r,
    customizeIcon: i,
    customizeIconProps: a,
    onMousedown: l,
    onClick: s
  } = e;
  let c;
  return typeof i == "function" ? c = i(a) : c = Et(i) ? si(i) : i, m("span", {
    class: r,
    onMousedown: (u) => {
      u.preventDefault(), l && l(u);
    },
    style: {
      userSelect: "none",
      WebkitUserSelect: "none"
    },
    unselectable: "on",
    onClick: s,
    "aria-hidden": !0
  }, [c !== void 0 ? c : m("span", {
    class: r.split(/\s+/).map((u) => `${u}-icon`)
  }, [(o = n.default) === null || o === void 0 ? void 0 : o.call(n)])]);
};
fo.inheritAttrs = !1;
fo.displayName = "TransBtn";
fo.props = {
  class: String,
  customizeIcon: G.any,
  customizeIconProps: G.any,
  onMousedown: Function,
  onClick: Function
};
var WO = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const kO = q({
  compatConfig: {
    MODE: 3
  },
  // inheritAttrs: false,
  props: {
    disabled: G.looseBool,
    type: G.string,
    value: G.any,
    tag: {
      type: String,
      default: "input"
    },
    size: G.string,
    onChange: Function,
    onInput: Function,
    onBlur: Function,
    onFocus: Function,
    onKeydown: Function,
    onCompositionstart: Function,
    onCompositionend: Function,
    onKeyup: Function,
    onPaste: Function,
    onMousedown: Function
  },
  emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
  setup(e, t) {
    let {
      expose: n
    } = t;
    const o = K(null);
    return n({
      focus: () => {
        o.value && o.value.focus();
      },
      blur: () => {
        o.value && o.value.blur();
      },
      input: o,
      setSelectionRange: (s, c, u) => {
        var d;
        (d = o.value) === null || d === void 0 || d.setSelectionRange(s, c, u);
      },
      select: () => {
        var s;
        (s = o.value) === null || s === void 0 || s.select();
      },
      getSelectionStart: () => {
        var s;
        return (s = o.value) === null || s === void 0 ? void 0 : s.selectionStart;
      },
      getSelectionEnd: () => {
        var s;
        return (s = o.value) === null || s === void 0 ? void 0 : s.selectionEnd;
      },
      getScrollTop: () => {
        var s;
        return (s = o.value) === null || s === void 0 ? void 0 : s.scrollTop;
      }
    }), () => {
      const {
        tag: s,
        value: c
      } = e, u = WO(e, ["tag", "value"]);
      return m(s, z(z({}, u), {}, {
        ref: o,
        value: c
      }), null);
    };
  }
});
function XO() {
  const e = document.documentElement.clientWidth, t = window.innerHeight || document.documentElement.clientHeight;
  return {
    width: e,
    height: t
  };
}
function S0(e) {
  const t = e.getBoundingClientRect(), n = document.documentElement;
  return {
    left: t.left + (window.scrollX || n.scrollLeft) - (n.clientLeft || document.body.clientLeft || 0),
    top: t.top + (window.scrollY || n.scrollTop) - (n.clientTop || document.body.clientTop || 0)
  };
}
function KO(e) {
  return Array.prototype.slice.apply(e).map((n) => `${n}: ${e.getPropertyValue(n)};`).join("");
}
function GO(e) {
  return Object.keys(e).reduce((t, n) => {
    const o = e[n];
    return typeof o > "u" || o === null || (t += `${n}: ${e[n]};`), t;
  }, "");
}
var UO = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const wu = q({
  compatConfig: {
    MODE: 3
  },
  inheritAttrs: !1,
  props: {
    disabled: G.looseBool,
    type: G.string,
    value: G.any,
    lazy: G.bool.def(!0),
    tag: {
      type: String,
      default: "input"
    },
    size: G.string,
    style: G.oneOfType([String, Object]),
    class: G.string
  },
  emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
  setup(e, t) {
    let {
      emit: n,
      attrs: o,
      expose: r
    } = t;
    const i = K(null), a = Z(), l = Z(!1);
    ee([() => e.value, l], () => {
      l.value || (a.value = e.value);
    }, {
      immediate: !0
    });
    const s = ($) => {
      n("change", $);
    }, c = ($) => {
      l.value = !0, $.target.composing = !0, n("compositionstart", $);
    }, u = ($) => {
      l.value = !1, $.target.composing = !1, n("compositionend", $);
      const T = document.createEvent("HTMLEvents");
      T.initEvent("input", !0, !0), $.target.dispatchEvent(T), s($);
    }, d = ($) => {
      if (l.value && e.lazy) {
        a.value = $.target.value;
        return;
      }
      n("input", $);
    }, f = ($) => {
      n("blur", $);
    }, p = ($) => {
      n("focus", $);
    }, y = () => {
      i.value && i.value.focus();
    }, g = () => {
      i.value && i.value.blur();
    }, v = ($) => {
      n("keydown", $);
    }, b = ($) => {
      n("keyup", $);
    }, O = ($, T, E) => {
      var M;
      (M = i.value) === null || M === void 0 || M.setSelectionRange($, T, E);
    }, C = () => {
      var $;
      ($ = i.value) === null || $ === void 0 || $.select();
    };
    r({
      focus: y,
      blur: g,
      input: w(() => {
        var $;
        return ($ = i.value) === null || $ === void 0 ? void 0 : $.input;
      }),
      setSelectionRange: O,
      select: C,
      getSelectionStart: () => {
        var $;
        return ($ = i.value) === null || $ === void 0 ? void 0 : $.getSelectionStart();
      },
      getSelectionEnd: () => {
        var $;
        return ($ = i.value) === null || $ === void 0 ? void 0 : $.getSelectionEnd();
      },
      getScrollTop: () => {
        var $;
        return ($ = i.value) === null || $ === void 0 ? void 0 : $.getScrollTop();
      }
    });
    const x = ($) => {
      n("mousedown", $);
    }, S = ($) => {
      n("paste", $);
    }, P = w(() => e.style && typeof e.style != "string" ? GO(e.style) : e.style);
    return () => {
      const {
        style: $,
        lazy: T
      } = e, E = UO(e, ["style", "lazy"]);
      return m(kO, z(z(z({}, E), o), {}, {
        style: P.value,
        onInput: d,
        onChange: s,
        onBlur: f,
        onFocus: p,
        ref: i,
        value: a.value,
        onCompositionstart: c,
        onCompositionend: u,
        onKeyup: b,
        onKeydown: v,
        onPaste: S,
        onMousedown: x
      }), null);
    };
  }
}), qO = {
  inputRef: G.any,
  prefixCls: String,
  id: String,
  inputElement: G.VueNode,
  disabled: {
    type: Boolean,
    default: void 0
  },
  autofocus: {
    type: Boolean,
    default: void 0
  },
  autocomplete: String,
  editable: {
    type: Boolean,
    default: void 0
  },
  activeDescendantId: String,
  value: String,
  open: {
    type: Boolean,
    default: void 0
  },
  tabindex: G.oneOfType([G.number, G.string]),
  /** Pass accessibility props to input */
  attrs: G.object,
  onKeydown: {
    type: Function
  },
  onMousedown: {
    type: Function
  },
  onChange: {
    type: Function
  },
  onPaste: {
    type: Function
  },
  onCompositionstart: {
    type: Function
  },
  onCompositionend: {
    type: Function
  },
  onFocus: {
    type: Function
  },
  onBlur: {
    type: Function
  }
}, C0 = q({
  compatConfig: {
    MODE: 3
  },
  name: "SelectInput",
  inheritAttrs: !1,
  props: qO,
  setup(e) {
    let t = null;
    const n = Ce("VCSelectContainerEvent");
    return () => {
      var o;
      const {
        prefixCls: r,
        id: i,
        inputElement: a,
        disabled: l,
        tabindex: s,
        autofocus: c,
        autocomplete: u,
        editable: d,
        activeDescendantId: f,
        value: p,
        onKeydown: y,
        onMousedown: g,
        onChange: v,
        onPaste: b,
        onCompositionstart: O,
        onCompositionend: C,
        onFocus: x,
        onBlur: S,
        open: P,
        inputRef: $,
        attrs: T
      } = e;
      let E = a || m(wu, null, null);
      const M = E.props || {}, {
        onKeydown: R,
        onInput: N,
        onFocus: F,
        onBlur: H,
        onMousedown: I,
        onCompositionstart: A,
        onCompositionend: j,
        style: L
      } = M;
      return E = He(E, h(h(h(h(h({
        type: "search"
      }, M), {
        id: i,
        ref: $,
        disabled: l,
        tabindex: s,
        lazy: !1,
        autocomplete: u || "off",
        autofocus: c,
        class: ie(`${r}-selection-search-input`, (o = E == null ? void 0 : E.props) === null || o === void 0 ? void 0 : o.class),
        role: "combobox",
        "aria-expanded": P,
        "aria-haspopup": "listbox",
        "aria-owns": `${i}_list`,
        "aria-autocomplete": "list",
        "aria-controls": `${i}_list`,
        "aria-activedescendant": f
      }), T), {
        value: d ? p : "",
        readonly: !d,
        unselectable: d ? null : "on",
        style: h(h({}, L), {
          opacity: d ? null : 0
        }),
        onKeydown: (D) => {
          y(D), R && R(D);
        },
        onMousedown: (D) => {
          g(D), I && I(D);
        },
        onInput: (D) => {
          v(D), N && N(D);
        },
        onCompositionstart(D) {
          O(D), A && A(D);
        },
        onCompositionend(D) {
          C(D), j && j(D);
        },
        onPaste: b,
        onFocus: function() {
          clearTimeout(t), F && F(arguments.length <= 0 ? void 0 : arguments[0]), x && x(arguments.length <= 0 ? void 0 : arguments[0]), n == null || n.focus(arguments.length <= 0 ? void 0 : arguments[0]);
        },
        onBlur: function() {
          for (var D = arguments.length, _ = new Array(D), V = 0; V < D; V++)
            _[V] = arguments[V];
          t = setTimeout(() => {
            H && H(_[0]), S && S(_[0]), n == null || n.blur(_[0]);
          }, 100);
        }
      }), E.type === "textarea" ? {} : {
        type: "search"
      }), !0, !0), E;
    };
  }
}), YO = `accept acceptcharset accesskey action allowfullscreen allowtransparency
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
charset checked classid classname colspan cols content contenteditable contextmenu
controls coords crossorigin data datetime default defer dir disabled download draggable
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
mediagroup method min minlength multiple muted name novalidate nonce open
optimum pattern placeholder poster preload radiogroup readonly rel required
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellcheck src srcdoc srclang srcset start step style
summary tabindex target title type usemap value width wmode wrap`, ZO = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, $p = `${YO} ${ZO}`.split(/[\s\n]+/), QO = "aria-", JO = "data-";
function wp(e, t) {
  return e.indexOf(t) === 0;
}
function pi(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n;
  t === !1 ? n = {
    aria: !0,
    data: !0,
    attr: !0
  } : t === !0 ? n = {
    aria: !0
  } : n = h({}, t);
  const o = {};
  return Object.keys(e).forEach((r) => {
    // Aria
    (n.aria && (r === "role" || wp(r, QO)) || // Data
    n.data && wp(r, JO) || // Attr
    n.attr && ($p.includes(r) || $p.includes(r.toLowerCase()))) && (o[r] = e[r]);
  }), o;
}
const $0 = Symbol("OverflowContextProviderKey"), sc = q({
  compatConfig: {
    MODE: 3
  },
  name: "OverflowContextProvider",
  inheritAttrs: !1,
  props: {
    value: {
      type: Object
    }
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    return $e($0, w(() => e.value)), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
}), eP = () => Ce($0, w(() => null));
var tP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const $o = void 0, la = q({
  compatConfig: {
    MODE: 3
  },
  name: "Item",
  props: {
    prefixCls: String,
    item: G.any,
    renderItem: Function,
    responsive: Boolean,
    itemKey: {
      type: [String, Number]
    },
    registerSize: Function,
    display: Boolean,
    order: Number,
    component: G.any,
    invalidate: Boolean
  },
  setup(e, t) {
    let {
      slots: n,
      expose: o
    } = t;
    const r = w(() => e.responsive && !e.display), i = Z();
    o({
      itemNodeRef: i
    });
    function a(l) {
      e.registerSize(e.itemKey, l);
    }
    return Fn(() => {
      a(null);
    }), () => {
      var l;
      const {
        prefixCls: s,
        invalidate: c,
        item: u,
        renderItem: d,
        responsive: f,
        registerSize: p,
        itemKey: y,
        display: g,
        order: v,
        component: b = "div"
      } = e, O = tP(e, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), C = (l = n.default) === null || l === void 0 ? void 0 : l.call(n), x = d && u !== $o ? d(u) : C;
      let S;
      c || (S = {
        opacity: r.value ? 0 : 1,
        height: r.value ? 0 : $o,
        overflowY: r.value ? "hidden" : $o,
        order: f ? v : $o,
        pointerEvents: r.value ? "none" : $o,
        position: r.value ? "absolute" : $o
      });
      const P = {};
      return r.value && (P["aria-hidden"] = !0), m(rr, {
        disabled: !f,
        onResize: ($) => {
          let {
            offsetWidth: T
          } = $;
          a(T);
        }
      }, {
        default: () => m(b, z(z(z({
          class: ie(!c && s),
          style: S
        }, P), O), {}, {
          ref: i
        }), {
          default: () => [x]
        })
      });
    };
  }
});
var ns = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const nP = q({
  compatConfig: {
    MODE: 3
  },
  name: "RawItem",
  inheritAttrs: !1,
  props: {
    component: G.any,
    title: G.any,
    id: String,
    onMouseenter: {
      type: Function
    },
    onMouseleave: {
      type: Function
    },
    onClick: {
      type: Function
    },
    onKeydown: {
      type: Function
    },
    onFocus: {
      type: Function
    },
    role: String,
    tabindex: Number
  },
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = eP();
    return () => {
      var i;
      if (!r.value) {
        const {
          component: d = "div"
        } = e, f = ns(e, ["component"]);
        return m(d, z(z({}, f), o), {
          default: () => [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)]
        });
      }
      const a = r.value, {
        className: l
      } = a, s = ns(a, ["className"]), {
        class: c
      } = o, u = ns(o, ["class"]);
      return m(sc, {
        value: null
      }, {
        default: () => [m(la, z(z(z({
          class: ie(l, c)
        }, s), u), e), n)]
      });
    };
  }
});
var oP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const w0 = "responsive", x0 = "invalidate";
function rP(e) {
  return `+ ${e.length} ...`;
}
const iP = () => ({
  id: String,
  prefixCls: String,
  data: Array,
  itemKey: [String, Number, Function],
  /** Used for `responsive`. It will limit render node to avoid perf issue */
  itemWidth: {
    type: Number,
    default: 10
  },
  renderItem: Function,
  /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  renderRawItem: Function,
  maxCount: [Number, String],
  renderRest: Function,
  /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  renderRawRest: Function,
  suffix: G.any,
  component: String,
  itemComponent: G.any,
  /** @private This API may be refactor since not well design */
  onVisibleChange: Function,
  /** When set to `full`, ssr will render full items by default and remove at client side */
  ssr: String,
  onMousedown: Function,
  role: String
}), an = q({
  name: "Overflow",
  inheritAttrs: !1,
  props: iP(),
  emits: ["visibleChange"],
  setup(e, t) {
    let {
      attrs: n,
      emit: o,
      slots: r
    } = t;
    const i = w(() => e.ssr === "full"), a = K(null), l = w(() => a.value || 0), s = K(/* @__PURE__ */ new Map()), c = K(0), u = K(0), d = K(0), f = K(null), p = K(null), y = w(() => p.value === null && i.value ? Number.MAX_SAFE_INTEGER : p.value || 0), g = K(!1), v = w(() => `${e.prefixCls}-item`), b = w(() => Math.max(c.value, u.value)), O = w(() => !!(e.data.length && e.maxCount === w0)), C = w(() => e.maxCount === x0), x = w(() => O.value || typeof e.maxCount == "number" && e.data.length > e.maxCount), S = w(() => {
      let I = e.data;
      return O.value ? a.value === null && i.value ? I = e.data : I = e.data.slice(0, Math.min(e.data.length, l.value / e.itemWidth)) : typeof e.maxCount == "number" && (I = e.data.slice(0, e.maxCount)), I;
    }), P = w(() => O.value ? e.data.slice(y.value + 1) : e.data.slice(S.value.length)), $ = (I, A) => {
      var j;
      return typeof e.itemKey == "function" ? e.itemKey(I) : (j = e.itemKey && (I == null ? void 0 : I[e.itemKey])) !== null && j !== void 0 ? j : A;
    }, T = w(() => e.renderItem || ((I) => I)), E = (I, A) => {
      p.value = I, A || (g.value = I < e.data.length - 1, o("visibleChange", I));
    }, M = (I, A) => {
      a.value = A.clientWidth;
    }, R = (I, A) => {
      const j = new Map(s.value);
      A === null ? j.delete(I) : j.set(I, A), s.value = j;
    }, N = (I, A) => {
      c.value = u.value, u.value = A;
    }, F = (I, A) => {
      d.value = A;
    }, H = (I) => s.value.get($(S.value[I], I));
    return ee([l, s, u, d, () => e.itemKey, S], () => {
      if (l.value && b.value && S.value) {
        let I = d.value;
        const A = S.value.length, j = A - 1;
        if (!A) {
          E(0), f.value = null;
          return;
        }
        for (let L = 0; L < A; L += 1) {
          const D = H(L);
          if (D === void 0) {
            E(L - 1, !0);
            break;
          }
          if (I += D, // Only one means `totalWidth` is the final width
          j === 0 && I <= l.value || // Last two width will be the final width
          L === j - 1 && I + H(j) <= l.value) {
            E(j), f.value = null;
            break;
          } else if (I + b.value > l.value) {
            E(L - 1), f.value = I - D - d.value + u.value;
            break;
          }
        }
        e.suffix && H(0) + d.value > l.value && (f.value = null);
      }
    }), () => {
      const I = g.value && !!P.value.length, {
        itemComponent: A,
        renderRawItem: j,
        renderRawRest: L,
        renderRest: D,
        prefixCls: _ = "rc-overflow",
        suffix: V,
        component: J = "div",
        id: oe,
        onMousedown: re
      } = e, {
        class: Q,
        style: U
      } = n, k = oP(n, ["class", "style"]);
      let ne = {};
      f.value !== null && O.value && (ne = {
        position: "absolute",
        left: `${f.value}px`,
        top: 0
      });
      const X = {
        prefixCls: v.value,
        responsive: O.value,
        component: A,
        invalidate: C.value
      }, B = j ? (ae, fe) => {
        const ve = $(ae, fe);
        return m(sc, {
          key: ve,
          value: h(h({}, X), {
            order: fe,
            item: ae,
            itemKey: ve,
            registerSize: R,
            display: fe <= y.value
          })
        }, {
          default: () => [j(ae, fe)]
        });
      } : (ae, fe) => {
        const ve = $(ae, fe);
        return m(la, z(z({}, X), {}, {
          order: fe,
          key: ve,
          item: ae,
          renderItem: T.value,
          itemKey: ve,
          registerSize: R,
          display: fe <= y.value
        }), null);
      };
      let W = () => null;
      const Y = {
        order: I ? y.value : Number.MAX_SAFE_INTEGER,
        className: `${v.value} ${v.value}-rest`,
        registerSize: N,
        display: I
      };
      if (L)
        L && (W = () => m(sc, {
          value: h(h({}, X), Y)
        }, {
          default: () => [L(P.value)]
        }));
      else {
        const ae = D || rP;
        W = () => m(la, z(z({}, X), Y), {
          default: () => typeof ae == "function" ? ae(P.value) : ae
        });
      }
      const te = () => {
        var ae;
        return m(J, z({
          id: oe,
          class: ie(!C.value && _, Q),
          style: U,
          onMousedown: re,
          role: e.role
        }, k), {
          default: () => [S.value.map(B), x.value ? W() : null, V && m(la, z(z({}, X), {}, {
            order: y.value,
            class: `${v.value}-suffix`,
            registerSize: F,
            display: !0,
            style: ne
          }), {
            default: () => V
          }), (ae = r.default) === null || ae === void 0 ? void 0 : ae.call(r)]
        });
      };
      return m(rr, {
        disabled: !O.value,
        onResize: M
      }, {
        default: te
      });
    };
  }
});
an.Item = nP;
an.RESPONSIVE = w0;
an.INVALIDATE = x0;
const aP = Symbol("TreeSelectLegacyContextPropsKey");
function xu() {
  return Ce(aP, {});
}
const lP = {
  id: String,
  prefixCls: String,
  values: G.array,
  open: {
    type: Boolean,
    default: void 0
  },
  searchValue: String,
  inputRef: G.any,
  placeholder: G.any,
  disabled: {
    type: Boolean,
    default: void 0
  },
  mode: String,
  showSearch: {
    type: Boolean,
    default: void 0
  },
  autofocus: {
    type: Boolean,
    default: void 0
  },
  autocomplete: String,
  activeDescendantId: String,
  tabindex: G.oneOfType([G.number, G.string]),
  compositionStatus: Boolean,
  removeIcon: G.any,
  choiceTransitionName: String,
  maxTagCount: G.oneOfType([G.number, G.string]),
  maxTagTextLength: Number,
  maxTagPlaceholder: G.any.def(() => (e) => `+ ${e.length} ...`),
  tagRender: Function,
  onToggleOpen: {
    type: Function
  },
  onRemove: Function,
  onInputChange: Function,
  onInputPaste: Function,
  onInputKeyDown: Function,
  onInputMouseDown: Function,
  onInputCompositionStart: Function,
  onInputCompositionEnd: Function
}, xp = (e) => {
  e.preventDefault(), e.stopPropagation();
}, sP = q({
  name: "MultipleSelectSelector",
  inheritAttrs: !1,
  props: lP,
  setup(e) {
    const t = K(), n = K(0), o = K(!1), r = xu(), i = w(() => `${e.prefixCls}-selection`), a = w(() => e.open || e.mode === "tags" ? e.searchValue : ""), l = w(() => e.mode === "tags" || e.showSearch && (e.open || o.value)), s = Z("");
    we(() => {
      s.value = a.value;
    }), be(() => {
      ee(s, () => {
        n.value = t.value.scrollWidth;
      }, {
        flush: "post",
        immediate: !0
      });
    });
    function c(y, g, v, b, O) {
      return m("span", {
        class: ie(`${i.value}-item`, {
          [`${i.value}-item-disabled`]: v
        }),
        title: typeof y == "string" || typeof y == "number" ? y.toString() : void 0
      }, [m("span", {
        class: `${i.value}-item-content`
      }, [g]), b && m(fo, {
        class: `${i.value}-item-remove`,
        onMousedown: xp,
        onClick: O,
        customizeIcon: e.removeIcon
      }, {
        default: () => [_r("×")]
      })]);
    }
    function u(y, g, v, b, O, C) {
      var x;
      const S = ($) => {
        xp($), e.onToggleOpen(!open);
      };
      let P = C;
      return r.keyEntities && (P = ((x = r.keyEntities[y]) === null || x === void 0 ? void 0 : x.node) || {}), m("span", {
        key: y,
        onMousedown: S
      }, [e.tagRender({
        label: g,
        value: y,
        disabled: v,
        closable: b,
        onClose: O,
        option: P
      })]);
    }
    function d(y) {
      const {
        disabled: g,
        label: v,
        value: b,
        option: O
      } = y, C = !e.disabled && !g;
      let x = v;
      if (typeof e.maxTagTextLength == "number" && (typeof v == "string" || typeof v == "number")) {
        const P = String(x);
        P.length > e.maxTagTextLength && (x = `${P.slice(0, e.maxTagTextLength)}...`);
      }
      const S = (P) => {
        var $;
        P && P.stopPropagation(), ($ = e.onRemove) === null || $ === void 0 || $.call(e, y);
      };
      return typeof e.tagRender == "function" ? u(b, x, g, C, S, O) : c(v, x, g, C, S);
    }
    function f(y) {
      const {
        maxTagPlaceholder: g = (b) => `+ ${b.length} ...`
      } = e, v = typeof g == "function" ? g(y) : g;
      return c(v, v, !1);
    }
    const p = (y) => {
      const g = y.target.composing;
      s.value = y.target.value, g || e.onInputChange(y);
    };
    return () => {
      const {
        id: y,
        prefixCls: g,
        values: v,
        open: b,
        inputRef: O,
        placeholder: C,
        disabled: x,
        autofocus: S,
        autocomplete: P,
        activeDescendantId: $,
        tabindex: T,
        compositionStatus: E,
        onInputPaste: M,
        onInputKeyDown: R,
        onInputMouseDown: N,
        onInputCompositionStart: F,
        onInputCompositionEnd: H
      } = e, I = m("div", {
        class: `${i.value}-search`,
        style: {
          width: n.value + "px"
        },
        key: "input"
      }, [m(C0, {
        inputRef: O,
        open: b,
        prefixCls: g,
        id: y,
        inputElement: null,
        disabled: x,
        autofocus: S,
        autocomplete: P,
        editable: l.value,
        activeDescendantId: $,
        value: s.value,
        onKeydown: R,
        onMousedown: N,
        onChange: p,
        onPaste: M,
        onCompositionstart: F,
        onCompositionend: H,
        tabindex: T,
        attrs: pi(e, !0),
        onFocus: () => o.value = !0,
        onBlur: () => o.value = !1
      }, null), m("span", {
        ref: t,
        class: `${i.value}-search-mirror`,
        "aria-hidden": !0
      }, [s.value, _r(" ")])]), A = m(an, {
        prefixCls: `${i.value}-overflow`,
        data: v,
        renderItem: d,
        renderRest: f,
        suffix: I,
        itemKey: "key",
        maxCount: e.maxTagCount,
        key: "overflow"
      }, null);
      return m(Te, null, [A, !v.length && !a.value && !E && m("span", {
        class: `${i.value}-placeholder`
      }, [C])]);
    };
  }
}), cP = {
  inputElement: G.any,
  id: String,
  prefixCls: String,
  values: G.array,
  open: {
    type: Boolean,
    default: void 0
  },
  searchValue: String,
  inputRef: G.any,
  placeholder: G.any,
  compositionStatus: {
    type: Boolean,
    default: void 0
  },
  disabled: {
    type: Boolean,
    default: void 0
  },
  mode: String,
  showSearch: {
    type: Boolean,
    default: void 0
  },
  autofocus: {
    type: Boolean,
    default: void 0
  },
  autocomplete: String,
  activeDescendantId: String,
  tabindex: G.oneOfType([G.number, G.string]),
  activeValue: String,
  backfill: {
    type: Boolean,
    default: void 0
  },
  optionLabelRender: Function,
  onInputChange: Function,
  onInputPaste: Function,
  onInputKeyDown: Function,
  onInputMouseDown: Function,
  onInputCompositionStart: Function,
  onInputCompositionEnd: Function
}, Ou = q({
  name: "SingleSelector",
  setup(e) {
    const t = K(!1), n = w(() => e.mode === "combobox"), o = w(() => n.value || e.showSearch), r = w(() => {
      let u = e.searchValue || "";
      return n.value && e.activeValue && !t.value && (u = e.activeValue), u;
    }), i = xu();
    ee([n, () => e.activeValue], () => {
      n.value && (t.value = !1);
    }, {
      immediate: !0
    });
    const a = w(() => e.mode !== "combobox" && !e.open && !e.showSearch ? !1 : !!r.value || e.compositionStatus), l = w(() => {
      const u = e.values[0];
      return u && (typeof u.label == "string" || typeof u.label == "number") ? u.label.toString() : void 0;
    }), s = () => {
      if (e.values[0])
        return null;
      const u = a.value ? {
        visibility: "hidden"
      } : void 0;
      return m("span", {
        class: `${e.prefixCls}-selection-placeholder`,
        style: u
      }, [e.placeholder]);
    }, c = (u) => {
      u.target.composing || (t.value = !0, e.onInputChange(u));
    };
    return () => {
      var u, d, f, p;
      const {
        inputElement: y,
        prefixCls: g,
        id: v,
        values: b,
        inputRef: O,
        disabled: C,
        autofocus: x,
        autocomplete: S,
        activeDescendantId: P,
        open: $,
        tabindex: T,
        optionLabelRender: E,
        onInputKeyDown: M,
        onInputMouseDown: R,
        onInputPaste: N,
        onInputCompositionStart: F,
        onInputCompositionEnd: H
      } = e, I = b[0];
      let A = null;
      if (I && i.customSlots) {
        const j = (u = I.key) !== null && u !== void 0 ? u : I.value, L = ((d = i.keyEntities[j]) === null || d === void 0 ? void 0 : d.node) || {};
        A = i.customSlots[(f = L.slots) === null || f === void 0 ? void 0 : f.title] || i.customSlots.title || I.label, typeof A == "function" && (A = A(L));
      } else
        A = E && I ? E(I.option) : I == null ? void 0 : I.label;
      return m(Te, null, [m("span", {
        class: `${g}-selection-search`
      }, [m(C0, {
        inputRef: O,
        prefixCls: g,
        id: v,
        open: $,
        inputElement: y,
        disabled: C,
        autofocus: x,
        autocomplete: S,
        editable: o.value,
        activeDescendantId: P,
        value: r.value,
        onKeydown: M,
        onMousedown: R,
        onChange: c,
        onPaste: N,
        onCompositionstart: F,
        onCompositionend: H,
        tabindex: T,
        attrs: pi(e, !0)
      }, null)]), !n.value && I && !a.value && m("span", {
        class: `${g}-selection-item`,
        title: l.value
      }, [m(Te, {
        key: (p = I.key) !== null && p !== void 0 ? p : I.value
      }, [A])]), s()]);
    };
  }
});
Ou.props = cP;
Ou.inheritAttrs = !1;
function uP(e) {
  return ![
    // System function button
    ue.ESC,
    ue.SHIFT,
    ue.BACKSPACE,
    ue.TAB,
    ue.WIN_KEY,
    ue.ALT,
    ue.META,
    ue.WIN_KEY_RIGHT,
    ue.CTRL,
    ue.SEMICOLON,
    ue.EQUALS,
    ue.CAPS_LOCK,
    ue.CONTEXT_MENU,
    // F1-F12
    ue.F1,
    ue.F2,
    ue.F3,
    ue.F4,
    ue.F5,
    ue.F6,
    ue.F7,
    ue.F8,
    ue.F9,
    ue.F10,
    ue.F11,
    ue.F12
  ].includes(e);
}
function O0() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, t = null, n;
  Le(() => {
    clearTimeout(n);
  });
  function o(r) {
    (r || t === null) && (t = r), clearTimeout(n), n = setTimeout(() => {
      t = null;
    }, e);
  }
  return [() => t, o];
}
function ti() {
  const e = (t) => {
    e.current = t;
  };
  return e;
}
const dP = q({
  name: "Selector",
  inheritAttrs: !1,
  props: {
    id: String,
    prefixCls: String,
    showSearch: {
      type: Boolean,
      default: void 0
    },
    open: {
      type: Boolean,
      default: void 0
    },
    /** Display in the Selector value, it's not same as `value` prop */
    values: G.array,
    multiple: {
      type: Boolean,
      default: void 0
    },
    mode: String,
    searchValue: String,
    activeValue: String,
    inputElement: G.any,
    autofocus: {
      type: Boolean,
      default: void 0
    },
    activeDescendantId: String,
    tabindex: G.oneOfType([G.number, G.string]),
    disabled: {
      type: Boolean,
      default: void 0
    },
    placeholder: G.any,
    removeIcon: G.any,
    // Tags
    maxTagCount: G.oneOfType([G.number, G.string]),
    maxTagTextLength: Number,
    maxTagPlaceholder: G.any,
    tagRender: Function,
    optionLabelRender: Function,
    /** Check if `tokenSeparators` contains `\n` or `\r\n` */
    tokenWithEnter: {
      type: Boolean,
      default: void 0
    },
    // Motion
    choiceTransitionName: String,
    onToggleOpen: {
      type: Function
    },
    /** `onSearch` returns go next step boolean to check if need do toggle open */
    onSearch: Function,
    onSearchSubmit: Function,
    onRemove: Function,
    onInputKeyDown: {
      type: Function
    },
    /**
     * @private get real dom for trigger align.
     * This may be removed after React provides replacement of `findDOMNode`
     */
    domRef: Function
  },
  setup(e, t) {
    let {
      expose: n
    } = t;
    const o = ti(), r = Z(!1), [i, a] = O0(0), l = (b) => {
      const {
        which: O
      } = b;
      (O === ue.UP || O === ue.DOWN) && b.preventDefault(), e.onInputKeyDown && e.onInputKeyDown(b), O === ue.ENTER && e.mode === "tags" && !r.value && !e.open && e.onSearchSubmit(b.target.value), uP(O) && e.onToggleOpen(!0);
    }, s = () => {
      a(!0);
    };
    let c = null;
    const u = (b) => {
      e.onSearch(b, !0, r.value) !== !1 && e.onToggleOpen(!0);
    }, d = () => {
      r.value = !0;
    }, f = (b) => {
      r.value = !1, e.mode !== "combobox" && u(b.target.value);
    }, p = (b) => {
      let {
        target: {
          value: O
        }
      } = b;
      if (e.tokenWithEnter && c && /[\r\n]/.test(c)) {
        const C = c.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
        O = O.replace(C, c);
      }
      c = null, u(O);
    }, y = (b) => {
      const {
        clipboardData: O
      } = b;
      c = O.getData("text");
    }, g = (b) => {
      let {
        target: O
      } = b;
      O !== o.current && (document.body.style.msTouchAction !== void 0 ? setTimeout(() => {
        o.current.focus();
      }) : o.current.focus());
    }, v = (b) => {
      const O = i();
      b.target !== o.current && !O && b.preventDefault(), (e.mode !== "combobox" && (!e.showSearch || !O) || !e.open) && (e.open && e.onSearch("", !0, !1), e.onToggleOpen());
    };
    return n({
      focus: () => {
        o.current.focus();
      },
      blur: () => {
        o.current.blur();
      }
    }), () => {
      const {
        prefixCls: b,
        domRef: O,
        mode: C
      } = e, x = {
        inputRef: o,
        onInputKeyDown: l,
        onInputMouseDown: s,
        onInputChange: p,
        onInputPaste: y,
        compositionStatus: r.value,
        onInputCompositionStart: d,
        onInputCompositionEnd: f
      }, S = C === "multiple" || C === "tags" ? m(sP, z(z({}, e), x), null) : m(Ou, z(z({}, e), x), null);
      return m("div", {
        ref: O,
        class: `${b}-selector`,
        onClick: g,
        onMousedown: v
      }, [S]);
    };
  }
});
function fP(e, t, n) {
  function o(r) {
    var i, a, l;
    let s = r.target;
    s.shadowRoot && r.composed && (s = r.composedPath()[0] || s);
    const c = [(i = e[0]) === null || i === void 0 ? void 0 : i.value, (l = (a = e[1]) === null || a === void 0 ? void 0 : a.value) === null || l === void 0 ? void 0 : l.getPopupElement()];
    t.value && c.every((u) => u && !u.contains(s) && u !== s) && n(!1);
  }
  be(() => {
    window.addEventListener("mousedown", o);
  }), Le(() => {
    window.removeEventListener("mousedown", o);
  });
}
function pP() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
  const t = K(!1);
  let n;
  const o = () => {
    clearTimeout(n);
  };
  return be(() => {
    o();
  }), [t, (i, a) => {
    o(), n = setTimeout(() => {
      t.value = i, a && a();
    }, e);
  }, o];
}
const P0 = Symbol("BaseSelectContextKey");
function mP(e) {
  return $e(P0, e);
}
function dl() {
  return Ce(P0, {});
}
const gP = (() => {
  if (typeof navigator > "u" || typeof window > "u")
    return !1;
  const e = navigator.userAgent || navigator.vendor || window.opera;
  return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substring(0, 4));
});
function I0(e) {
  if (!lS(e)) return Be(e);
  const t = new Proxy({}, {
    get(n, o, r) {
      return Reflect.get(e.value, o, r);
    },
    set(n, o, r) {
      return e.value[o] = r, !0;
    },
    deleteProperty(n, o) {
      return Reflect.deleteProperty(e.value, o);
    },
    has(n, o) {
      return Reflect.has(e.value, o);
    },
    ownKeys() {
      return Object.keys(e.value);
    },
    getOwnPropertyDescriptor() {
      return {
        enumerable: !0,
        configurable: !0
      };
    }
  });
  return Be(t);
}
var vP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const hP = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"], yP = () => ({
  prefixCls: String,
  id: String,
  omitDomProps: Array,
  // >>> Value
  displayValues: Array,
  onDisplayValuesChange: Function,
  // >>> Active
  /** Current dropdown list active item string value */
  activeValue: String,
  /** Link search input with target element */
  activeDescendantId: String,
  onActiveValueChange: Function,
  // >>> Search
  searchValue: String,
  /** Trigger onSearch, return false to prevent trigger open event */
  onSearch: Function,
  /** Trigger when search text match the `tokenSeparators`. Will provide split content */
  onSearchSplit: Function,
  maxLength: Number,
  OptionList: G.any,
  /** Tell if provided `options` is empty */
  emptyOptions: Boolean
}), Pu = () => ({
  showSearch: {
    type: Boolean,
    default: void 0
  },
  tagRender: {
    type: Function
  },
  optionLabelRender: {
    type: Function
  },
  direction: {
    type: String
  },
  // MISC
  tabindex: Number,
  autofocus: Boolean,
  notFoundContent: G.any,
  placeholder: G.any,
  onClear: Function,
  choiceTransitionName: String,
  // >>> Mode
  mode: String,
  // >>> Status
  disabled: {
    type: Boolean,
    default: void 0
  },
  loading: {
    type: Boolean,
    default: void 0
  },
  // >>> Open
  open: {
    type: Boolean,
    default: void 0
  },
  defaultOpen: {
    type: Boolean,
    default: void 0
  },
  onDropdownVisibleChange: {
    type: Function
  },
  // >>> Customize Input
  /** @private Internal usage. Do not use in your production. */
  getInputElement: {
    type: Function
  },
  /** @private Internal usage. Do not use in your production. */
  getRawInputElement: {
    type: Function
  },
  // >>> Selector
  maxTagTextLength: Number,
  maxTagCount: {
    type: [String, Number]
  },
  maxTagPlaceholder: G.any,
  // >>> Search
  tokenSeparators: {
    type: Array
  },
  // >>> Icons
  allowClear: {
    type: Boolean,
    default: void 0
  },
  showArrow: {
    type: Boolean,
    default: void 0
  },
  inputIcon: G.any,
  /** Clear all icon */
  clearIcon: G.any,
  /** Selector remove icon */
  removeIcon: G.any,
  // >>> Dropdown
  animation: String,
  transitionName: String,
  dropdownStyle: {
    type: Object
  },
  dropdownClassName: String,
  dropdownMatchSelectWidth: {
    type: [Boolean, Number],
    default: void 0
  },
  dropdownRender: {
    type: Function
  },
  dropdownAlign: Object,
  placement: {
    type: String
  },
  getPopupContainer: {
    type: Function
  },
  // >>> Focus
  showAction: {
    type: Array
  },
  onBlur: {
    type: Function
  },
  onFocus: {
    type: Function
  },
  // >>> Rest Events
  onKeyup: Function,
  onKeydown: Function,
  onMousedown: Function,
  onPopupScroll: Function,
  onInputKeyDown: Function,
  onMouseenter: Function,
  onMouseleave: Function,
  onClick: Function
}), bP = () => h(h({}, yP()), Pu());
function T0(e) {
  return e === "tags" || e === "multiple";
}
const E0 = q({
  compatConfig: {
    MODE: 3
  },
  name: "BaseSelect",
  inheritAttrs: !1,
  props: Ze(bP(), {
    showAction: [],
    notFoundContent: "Not Found"
  }),
  setup(e, t) {
    let {
      attrs: n,
      expose: o,
      slots: r
    } = t;
    const i = w(() => T0(e.mode)), a = w(() => e.showSearch !== void 0 ? e.showSearch : i.value || e.mode === "combobox"), l = K(!1);
    be(() => {
      l.value = gP();
    });
    const s = xu(), c = K(null), u = ti(), d = K(null), f = K(null), p = K(null), y = Z(!1), [g, v, b] = pP();
    o({
      focus: () => {
        var B;
        (B = f.value) === null || B === void 0 || B.focus();
      },
      blur: () => {
        var B;
        (B = f.value) === null || B === void 0 || B.blur();
      },
      scrollTo: (B) => {
        var W;
        return (W = p.value) === null || W === void 0 ? void 0 : W.scrollTo(B);
      }
    });
    const x = w(() => {
      var B;
      if (e.mode !== "combobox")
        return e.searchValue;
      const W = (B = e.displayValues[0]) === null || B === void 0 ? void 0 : B.value;
      return typeof W == "string" || typeof W == "number" ? String(W) : "";
    }), S = e.open !== void 0 ? e.open : e.defaultOpen, P = K(S), $ = K(S), T = (B) => {
      P.value = e.open !== void 0 ? e.open : B, $.value = P.value;
    };
    ee(() => e.open, () => {
      T(e.open);
    });
    const E = w(() => !e.notFoundContent && e.emptyOptions);
    we(() => {
      $.value = P.value, (e.disabled || E.value && $.value && e.mode === "combobox") && ($.value = !1);
    });
    const M = w(() => E.value ? !1 : $.value), R = (B) => {
      const W = B !== void 0 ? B : !$.value;
      $.value !== W && !e.disabled && (T(W), e.onDropdownVisibleChange && e.onDropdownVisibleChange(W), !W && J.value && (J.value = !1, v(!1, () => {
        _.value = !1, y.value = !1;
      })));
    }, N = w(() => (e.tokenSeparators || []).some((B) => [`
`, `\r
`].includes(B))), F = (B, W, Y) => {
      var te, ae;
      let fe = !0, ve = B;
      (te = e.onActiveValueChange) === null || te === void 0 || te.call(e, null);
      const le = Y ? null : mw(B, e.tokenSeparators);
      return e.mode !== "combobox" && le && (ve = "", (ae = e.onSearchSplit) === null || ae === void 0 || ae.call(e, le), R(!1), fe = !1), e.onSearch && x.value !== ve && e.onSearch(ve, {
        source: W ? "typing" : "effect"
      }), fe;
    }, H = (B) => {
      var W;
      !B || !B.trim() || (W = e.onSearch) === null || W === void 0 || W.call(e, B, {
        source: "submit"
      });
    };
    ee($, () => {
      !$.value && !i.value && e.mode !== "combobox" && F("", !1, !1);
    }, {
      immediate: !0,
      flush: "post"
    }), ee(() => e.disabled, () => {
      P.value && e.disabled && T(!1), e.disabled && !y.value && v(!1);
    }, {
      immediate: !0
    });
    const [I, A] = O0(), j = function(B) {
      var W;
      const Y = I(), {
        which: te
      } = B;
      if (te === ue.ENTER && (e.mode !== "combobox" && B.preventDefault(), $.value || R(!0)), A(!!x.value), te === ue.BACKSPACE && !Y && i.value && !x.value && e.displayValues.length) {
        const le = [...e.displayValues];
        let me = null;
        for (let ce = le.length - 1; ce >= 0; ce -= 1) {
          const he = le[ce];
          if (!he.disabled) {
            le.splice(ce, 1), me = he;
            break;
          }
        }
        me && e.onDisplayValuesChange(le, {
          type: "remove",
          values: [me]
        });
      }
      for (var ae = arguments.length, fe = new Array(ae > 1 ? ae - 1 : 0), ve = 1; ve < ae; ve++)
        fe[ve - 1] = arguments[ve];
      $.value && p.value && p.value.onKeydown(B, ...fe), (W = e.onKeydown) === null || W === void 0 || W.call(e, B, ...fe);
    }, L = function(B) {
      for (var W = arguments.length, Y = new Array(W > 1 ? W - 1 : 0), te = 1; te < W; te++)
        Y[te - 1] = arguments[te];
      $.value && p.value && p.value.onKeyup(B, ...Y), e.onKeyup && e.onKeyup(B, ...Y);
    }, D = (B) => {
      const W = e.displayValues.filter((Y) => Y !== B);
      e.onDisplayValuesChange(W, {
        type: "remove",
        values: [B]
      });
    }, _ = K(!1), V = function() {
      v(!0), e.disabled || (e.onFocus && !_.value && e.onFocus(...arguments), e.showAction && e.showAction.includes("focus") && R(!0)), _.value = !0;
    }, J = Z(!1), oe = function() {
      if (J.value || (y.value = !0, v(!1, () => {
        _.value = !1, y.value = !1, R(!1);
      }), e.disabled))
        return;
      const B = x.value;
      B && (e.mode === "tags" ? e.onSearch(B, {
        source: "submit"
      }) : e.mode === "multiple" && e.onSearch("", {
        source: "blur"
      })), e.onBlur && e.onBlur(...arguments);
    }, re = () => {
      J.value = !0;
    }, Q = () => {
      J.value = !1;
    };
    $e("VCSelectContainerEvent", {
      focus: V,
      blur: oe
    });
    const U = [];
    be(() => {
      U.forEach((B) => clearTimeout(B)), U.splice(0, U.length);
    }), Le(() => {
      U.forEach((B) => clearTimeout(B)), U.splice(0, U.length);
    });
    const k = function(B) {
      var W, Y;
      const {
        target: te
      } = B, ae = (W = d.value) === null || W === void 0 ? void 0 : W.getPopupElement();
      if (ae && ae.contains(te)) {
        const me = setTimeout(() => {
          var ce;
          const he = U.indexOf(me);
          he !== -1 && U.splice(he, 1), b(), !l.value && !ae.contains(document.activeElement) && ((ce = f.value) === null || ce === void 0 || ce.focus());
        });
        U.push(me);
      }
      for (var fe = arguments.length, ve = new Array(fe > 1 ? fe - 1 : 0), le = 1; le < fe; le++)
        ve[le - 1] = arguments[le];
      (Y = e.onMousedown) === null || Y === void 0 || Y.call(e, B, ...ve);
    }, ne = K(null), X = () => {
    };
    return be(() => {
      ee(M, () => {
        var B;
        if (M.value) {
          const W = Math.ceil((B = c.value) === null || B === void 0 ? void 0 : B.offsetWidth);
          ne.value !== W && !Number.isNaN(W) && (ne.value = W);
        }
      }, {
        immediate: !0,
        flush: "post"
      });
    }), fP([c, d], M, R), mP(I0(h(h({}, Uc(e)), {
      open: $,
      triggerOpen: M,
      showSearch: a,
      multiple: i,
      toggleOpen: R
    }))), () => {
      const B = h(h({}, e), n), {
        prefixCls: W,
        id: Y,
        open: te,
        defaultOpen: ae,
        mode: fe,
        // Search related
        showSearch: ve,
        searchValue: le,
        onSearch: me,
        // Icons
        allowClear: ce,
        clearIcon: he,
        showArrow: je,
        inputIcon: ke,
        // Others
        disabled: nn,
        loading: mt,
        getInputElement: Ud,
        getPopupContainer: F1,
        placement: L1,
        // Dropdown
        animation: N1,
        transitionName: j1,
        dropdownStyle: z1,
        dropdownClassName: B1,
        dropdownMatchSelectWidth: H1,
        dropdownRender: _1,
        dropdownAlign: V1,
        showAction: Tj,
        direction: W1,
        // Tags
        tokenSeparators: Ej,
        tagRender: k1,
        optionLabelRender: X1,
        // Events
        onPopupScroll: Aj,
        onDropdownVisibleChange: Mj,
        onFocus: Rj,
        onBlur: Dj,
        onKeyup: Fj,
        onKeydown: Lj,
        onMousedown: Nj,
        onClear: Fl,
        omitDomProps: Ll,
        getRawInputElement: qd,
        displayValues: Ei,
        onDisplayValuesChange: K1,
        emptyOptions: G1,
        activeDescendantId: U1,
        activeValue: q1,
        OptionList: Y1
      } = B, Z1 = vP(B, ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"]), Yd = fe === "combobox" && Ud && Ud() || null, mr = typeof qd == "function" && qd(), Nl = h({}, Z1);
      let Zd;
      mr && (Zd = (_n) => {
        R(_n);
      }), hP.forEach((_n) => {
        delete Nl[_n];
      }), Ll == null || Ll.forEach((_n) => {
        delete Nl[_n];
      });
      const Qd = je !== void 0 ? je : mt || !i.value && fe !== "combobox";
      let Jd;
      Qd && (Jd = m(fo, {
        class: ie(`${W}-arrow`, {
          [`${W}-arrow-loading`]: mt
        }),
        customizeIcon: ke,
        customizeIconProps: {
          loading: mt,
          searchValue: x.value,
          open: $.value,
          focused: g.value,
          showSearch: a.value
        }
      }, null));
      let ef;
      const Q1 = () => {
        Fl == null || Fl(), K1([], {
          type: "clear",
          values: Ei
        }), F("", !1, !1);
      };
      !nn && ce && (Ei.length || x.value) && (ef = m(fo, {
        class: `${W}-clear`,
        onMousedown: Q1,
        customizeIcon: he
      }, {
        default: () => [_r("×")]
      }));
      const J1 = m(Y1, {
        ref: p
      }, h(h({}, s.customSlots), {
        option: r.option
      })), eS = ie(W, n.class, {
        [`${W}-focused`]: g.value,
        [`${W}-multiple`]: i.value,
        [`${W}-single`]: !i.value,
        [`${W}-allow-clear`]: ce,
        [`${W}-show-arrow`]: Qd,
        [`${W}-disabled`]: nn,
        [`${W}-loading`]: mt,
        [`${W}-open`]: $.value,
        [`${W}-customize-input`]: Yd,
        [`${W}-show-search`]: a.value
      }), tf = m(VO, {
        ref: d,
        disabled: nn,
        prefixCls: W,
        visible: M.value,
        popupElement: J1,
        containerWidth: ne.value,
        animation: N1,
        transitionName: j1,
        dropdownStyle: z1,
        dropdownClassName: B1,
        direction: W1,
        dropdownMatchSelectWidth: H1,
        dropdownRender: _1,
        dropdownAlign: V1,
        placement: L1,
        getPopupContainer: F1,
        empty: G1,
        getTriggerDOMNode: () => u.current,
        onPopupVisibleChange: Zd,
        onPopupMouseEnter: X,
        onPopupFocusin: re,
        onPopupFocusout: Q
      }, {
        default: () => mr ? Rt(mr) && He(mr, {
          ref: u
        }, !1, !0) : m(dP, z(z({}, e), {}, {
          domRef: u,
          prefixCls: W,
          inputElement: Yd,
          ref: f,
          id: Y,
          showSearch: a.value,
          mode: fe,
          activeDescendantId: U1,
          tagRender: k1,
          optionLabelRender: X1,
          values: Ei,
          open: $.value,
          onToggleOpen: R,
          activeValue: q1,
          searchValue: x.value,
          onSearch: F,
          onSearchSubmit: H,
          onRemove: D,
          tokenWithEnter: N.value
        }), null)
      });
      let jl;
      return mr ? jl = tf : jl = m("div", z(z({}, Nl), {}, {
        class: eS,
        ref: c,
        onMousedown: k,
        onKeydown: j,
        onKeyup: L
      }), [g.value && !$.value && m("span", {
        style: {
          width: 0,
          height: 0,
          position: "absolute",
          overflow: "hidden",
          opacity: 0
        },
        "aria-live": "polite"
      }, [`${Ei.map((_n) => {
        let {
          label: nf,
          value: tS
        } = _n;
        return ["number", "string"].includes(typeof nf) ? nf : tS;
      }).join(", ")}`]), tf, Jd, ef]), jl;
    };
  }
}), fl = (e, t) => {
  let {
    height: n,
    offset: o,
    prefixCls: r,
    onInnerResize: i
  } = e, {
    slots: a
  } = t;
  var l;
  let s = {}, c = {
    display: "flex",
    flexDirection: "column"
  };
  return o !== void 0 && (s = {
    height: `${n}px`,
    position: "relative",
    overflow: "hidden"
  }, c = h(h({}, c), {
    transform: `translateY(${o}px)`,
    position: "absolute",
    left: 0,
    right: 0,
    top: 0
  })), m("div", {
    style: s
  }, [m(rr, {
    onResize: (u) => {
      let {
        offsetHeight: d
      } = u;
      d && i && i();
    }
  }, {
    default: () => [m("div", {
      style: c,
      class: ie({
        [`${r}-holder-inner`]: r
      })
    }, [(l = a.default) === null || l === void 0 ? void 0 : l.call(a)])]
  })]);
};
fl.displayName = "Filter";
fl.inheritAttrs = !1;
fl.props = {
  prefixCls: String,
  /** Virtual filler height. Should be `count * itemMinHeight` */
  height: Number,
  /** Set offset of visible items. Should be the top of start item position */
  offset: Number,
  onInnerResize: Function
};
const A0 = (e, t) => {
  let {
    setRef: n
  } = e, {
    slots: o
  } = t;
  var r;
  const i = tt((r = o.default) === null || r === void 0 ? void 0 : r.call(o));
  return i && i.length ? si(i[0], {
    ref: n
  }) : i;
};
A0.props = {
  setRef: {
    type: Function,
    default: () => {
    }
  }
};
const SP = 20;
function Op(e) {
  return "touches" in e ? e.touches[0].pageY : e.pageY;
}
const CP = q({
  compatConfig: {
    MODE: 3
  },
  name: "ScrollBar",
  inheritAttrs: !1,
  props: {
    prefixCls: String,
    scrollTop: Number,
    scrollHeight: Number,
    height: Number,
    count: Number,
    onScroll: {
      type: Function
    },
    onStartMove: {
      type: Function
    },
    onStopMove: {
      type: Function
    }
  },
  setup() {
    return {
      moveRaf: null,
      scrollbarRef: ti(),
      thumbRef: ti(),
      visibleTimeout: null,
      state: Be({
        dragging: !1,
        pageY: null,
        startTop: null,
        visible: !1
      })
    };
  },
  watch: {
    scrollTop: {
      handler() {
        this.delayHidden();
      },
      flush: "post"
    }
  },
  mounted() {
    var e, t;
    (e = this.scrollbarRef.current) === null || e === void 0 || e.addEventListener("touchstart", this.onScrollbarTouchStart, st ? {
      passive: !1
    } : !1), (t = this.thumbRef.current) === null || t === void 0 || t.addEventListener("touchstart", this.onMouseDown, st ? {
      passive: !1
    } : !1);
  },
  beforeUnmount() {
    this.removeEvents(), clearTimeout(this.visibleTimeout);
  },
  methods: {
    delayHidden() {
      clearTimeout(this.visibleTimeout), this.state.visible = !0, this.visibleTimeout = setTimeout(() => {
        this.state.visible = !1;
      }, 2e3);
    },
    onScrollbarTouchStart(e) {
      e.preventDefault();
    },
    onContainerMouseDown(e) {
      e.stopPropagation(), e.preventDefault();
    },
    // ======================= Clean =======================
    patchEvents() {
      window.addEventListener("mousemove", this.onMouseMove), window.addEventListener("mouseup", this.onMouseUp), this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, st ? {
        passive: !1
      } : !1), this.thumbRef.current.addEventListener("touchend", this.onMouseUp);
    },
    removeEvents() {
      window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp), this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, st ? {
        passive: !1
      } : !1), this.thumbRef.current && (this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, st ? {
        passive: !1
      } : !1), this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, st ? {
        passive: !1
      } : !1), this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)), Ae.cancel(this.moveRaf);
    },
    // ======================= Thumb =======================
    onMouseDown(e) {
      const {
        onStartMove: t
      } = this.$props;
      h(this.state, {
        dragging: !0,
        pageY: Op(e),
        startTop: this.getTop()
      }), t(), this.patchEvents(), e.stopPropagation(), e.preventDefault();
    },
    onMouseMove(e) {
      const {
        dragging: t,
        pageY: n,
        startTop: o
      } = this.state, {
        onScroll: r
      } = this.$props;
      if (Ae.cancel(this.moveRaf), t) {
        const i = Op(e) - n, a = o + i, l = this.getEnableScrollRange(), s = this.getEnableHeightRange(), c = s ? a / s : 0, u = Math.ceil(c * l);
        this.moveRaf = Ae(() => {
          r(u);
        });
      }
    },
    onMouseUp() {
      const {
        onStopMove: e
      } = this.$props;
      this.state.dragging = !1, e(), this.removeEvents();
    },
    // ===================== Calculate =====================
    getSpinHeight() {
      const {
        height: e,
        scrollHeight: t
      } = this.$props;
      let n = e / t * 100;
      return n = Math.max(n, SP), n = Math.min(n, e / 2), Math.floor(n);
    },
    getEnableScrollRange() {
      const {
        scrollHeight: e,
        height: t
      } = this.$props;
      return e - t || 0;
    },
    getEnableHeightRange() {
      const {
        height: e
      } = this.$props, t = this.getSpinHeight();
      return e - t || 0;
    },
    getTop() {
      const {
        scrollTop: e
      } = this.$props, t = this.getEnableScrollRange(), n = this.getEnableHeightRange();
      return e === 0 || t === 0 ? 0 : e / t * n;
    },
    // Not show scrollbar when height is large than scrollHeight
    showScroll() {
      const {
        height: e,
        scrollHeight: t
      } = this.$props;
      return t > e;
    }
  },
  render() {
    const {
      dragging: e,
      visible: t
    } = this.state, {
      prefixCls: n
    } = this.$props, o = this.getSpinHeight() + "px", r = this.getTop() + "px", i = this.showScroll(), a = i && t;
    return m("div", {
      ref: this.scrollbarRef,
      class: ie(`${n}-scrollbar`, {
        [`${n}-scrollbar-show`]: i
      }),
      style: {
        width: "8px",
        top: 0,
        bottom: 0,
        right: 0,
        position: "absolute",
        display: a ? void 0 : "none"
      },
      onMousedown: this.onContainerMouseDown,
      onMousemove: this.delayHidden
    }, [m("div", {
      ref: this.thumbRef,
      class: ie(`${n}-scrollbar-thumb`, {
        [`${n}-scrollbar-thumb-moving`]: e
      }),
      style: {
        width: "100%",
        height: o,
        top: r,
        left: 0,
        position: "absolute",
        background: "rgba(0, 0, 0, 0.5)",
        borderRadius: "99px",
        cursor: "pointer",
        userSelect: "none"
      },
      onMousedown: this.onMouseDown
    }, null)]);
  }
});
function $P(e, t, n, o) {
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = Z(Symbol("update"));
  ee(e, () => {
    a.value = Symbol("update");
  });
  let l;
  function s() {
    Ae.cancel(l);
  }
  function c() {
    s(), l = Ae(() => {
      r.forEach((d, f) => {
        if (d && d.offsetParent) {
          const {
            offsetHeight: p
          } = d;
          i.get(f) !== p && (a.value = Symbol("update"), i.set(f, d.offsetHeight));
        }
      });
    });
  }
  function u(d, f) {
    const p = t(d);
    r.get(p), f ? (r.set(p, f.$el || f), c()) : r.delete(p);
  }
  return Fn(() => {
    s();
  }), [u, c, i, a];
}
function wP(e, t, n, o, r, i, a, l) {
  let s;
  return (c) => {
    if (c == null) {
      l();
      return;
    }
    Ae.cancel(s);
    const u = t.value, d = o.itemHeight;
    if (typeof c == "number")
      a(c);
    else if (c && typeof c == "object") {
      let f;
      const {
        align: p
      } = c;
      "index" in c ? {
        index: f
      } = c : f = u.findIndex((v) => r(v) === c.key);
      const {
        offset: y = 0
      } = c, g = (v, b) => {
        if (v < 0 || !e.value) return;
        const O = e.value.clientHeight;
        let C = !1, x = b;
        if (O) {
          const S = b || p;
          let P = 0, $ = 0, T = 0;
          const E = Math.min(u.length, f);
          for (let N = 0; N <= E; N += 1) {
            const F = r(u[N]);
            $ = P;
            const H = n.get(F);
            T = $ + (H === void 0 ? d : H), P = T, N === f && H === void 0 && (C = !0);
          }
          const M = e.value.scrollTop;
          let R = null;
          switch (S) {
            case "top":
              R = $ - y;
              break;
            case "bottom":
              R = T - O + y;
              break;
            default: {
              const N = M + O;
              $ < M ? x = "top" : T > N && (x = "bottom");
            }
          }
          R !== null && R !== M && a(R);
        }
        s = Ae(() => {
          C && i(), g(v - 1, x);
        }, 2);
      };
      g(5);
    }
  };
}
const xP = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent), M0 = ((e, t) => {
  let n = !1, o = null;
  function r() {
    clearTimeout(o), n = !0, o = setTimeout(() => {
      n = !1;
    }, 50);
  }
  return function(i) {
    let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
    const l = (
      // Pass origin wheel when on the top
      i < 0 && e.value || // Pass origin wheel when on the bottom
      i > 0 && t.value
    );
    return a && l ? (clearTimeout(o), n = !1) : (!l || n) && r(), !n && l;
  };
});
function OP(e, t, n, o) {
  let r = 0, i = null, a = null, l = !1;
  const s = M0(t, n);
  function c(d) {
    if (!e.value) return;
    Ae.cancel(i);
    const {
      deltaY: f
    } = d;
    r += f, a = f, !s(f) && (xP || d.preventDefault(), i = Ae(() => {
      o(r * (l ? 10 : 1)), r = 0;
    }));
  }
  function u(d) {
    e.value && (l = d.detail === a);
  }
  return [c, u];
}
const PP = 14 / 15;
function IP(e, t, n) {
  let o = !1, r = 0, i = null, a = null;
  const l = () => {
    i && (i.removeEventListener("touchmove", s), i.removeEventListener("touchend", c));
  }, s = (f) => {
    if (o) {
      const p = Math.ceil(f.touches[0].pageY);
      let y = r - p;
      r = p, n(y) && f.preventDefault(), clearInterval(a), a = setInterval(() => {
        y *= PP, (!n(y, !0) || Math.abs(y) <= 0.1) && clearInterval(a);
      }, 16);
    }
  }, c = () => {
    o = !1, l();
  }, u = (f) => {
    l(), f.touches.length === 1 && !o && (o = !0, r = Math.ceil(f.touches[0].pageY), i = f.target, i.addEventListener("touchmove", s, {
      passive: !1
    }), i.addEventListener("touchend", c));
  }, d = () => {
  };
  be(() => {
    document.addEventListener("touchmove", d, {
      passive: !1
    }), ee(e, (f) => {
      t.value.removeEventListener("touchstart", u), l(), clearInterval(a), f && t.value.addEventListener("touchstart", u, {
        passive: !1
      });
    }, {
      immediate: !0
    });
  }), Le(() => {
    document.removeEventListener("touchmove", d);
  });
}
var TP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const EP = [], AP = {
  overflowY: "auto",
  overflowAnchor: "none"
};
function MP(e, t, n, o, r, i) {
  let {
    getKey: a
  } = i;
  return e.slice(t, n + 1).map((l, s) => {
    const c = t + s, u = r(l, c, {
      // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
    }), d = a(l);
    return m(A0, {
      key: d,
      setRef: (f) => o(l, f)
    }, {
      default: () => [u]
    });
  });
}
const RP = q({
  compatConfig: {
    MODE: 3
  },
  name: "List",
  inheritAttrs: !1,
  props: {
    prefixCls: String,
    data: G.array,
    height: Number,
    itemHeight: Number,
    /** If not match virtual scroll condition, Set List still use height of container. */
    fullHeight: {
      type: Boolean,
      default: void 0
    },
    itemKey: {
      type: [String, Number, Function],
      required: !0
    },
    component: {
      type: [String, Object]
    },
    /** Set `false` will always use real scroll instead of virtual one */
    virtual: {
      type: Boolean,
      default: void 0
    },
    children: Function,
    onScroll: Function,
    onMousedown: Function,
    onMouseenter: Function,
    onVisibleChange: Function
  },
  setup(e, t) {
    let {
      expose: n
    } = t;
    const o = w(() => {
      const {
        height: D,
        itemHeight: _,
        virtual: V
      } = e;
      return !!(V !== !1 && D && _);
    }), r = w(() => {
      const {
        height: D,
        itemHeight: _,
        data: V
      } = e;
      return o.value && V && _ * V.length > D;
    }), i = Be({
      scrollTop: 0,
      scrollMoving: !1
    }), a = w(() => e.data || EP), l = K([]);
    ee(a, () => {
      l.value = At(a.value).slice();
    }, {
      immediate: !0
    });
    const s = K((D) => {
    });
    ee(() => e.itemKey, (D) => {
      typeof D == "function" ? s.value = D : s.value = (_) => _ == null ? void 0 : _[D];
    }, {
      immediate: !0
    });
    const c = K(), u = K(), d = K(), f = (D) => s.value(D), p = {
      getKey: f
    };
    function y(D) {
      let _;
      typeof D == "function" ? _ = D(i.scrollTop) : _ = D;
      const V = P(_);
      c.value && (c.value.scrollTop = V), i.scrollTop = V;
    }
    const [g, v, b, O] = $P(l, f), C = Be({
      scrollHeight: void 0,
      start: 0,
      end: 0,
      offset: void 0
    }), x = K(0);
    be(() => {
      De(() => {
        var D;
        x.value = ((D = u.value) === null || D === void 0 ? void 0 : D.offsetHeight) || 0;
      });
    }), po(() => {
      De(() => {
        var D;
        x.value = ((D = u.value) === null || D === void 0 ? void 0 : D.offsetHeight) || 0;
      });
    }), ee([o, l], () => {
      o.value || h(C, {
        scrollHeight: void 0,
        start: 0,
        end: l.value.length - 1,
        offset: void 0
      });
    }, {
      immediate: !0
    }), ee([o, l, x, r], () => {
      o.value && !r.value && h(C, {
        scrollHeight: x.value,
        start: 0,
        end: l.value.length - 1,
        offset: void 0
      }), c.value && (i.scrollTop = c.value.scrollTop);
    }, {
      immediate: !0
    }), ee([r, o, () => i.scrollTop, l, O, () => e.height, x], () => {
      if (!o.value || !r.value)
        return;
      let D = 0, _, V, J;
      const oe = l.value.length, re = l.value, Q = i.scrollTop, {
        itemHeight: U,
        height: k
      } = e, ne = Q + k;
      for (let X = 0; X < oe; X += 1) {
        const B = re[X], W = f(B);
        let Y = b.get(W);
        Y === void 0 && (Y = U);
        const te = D + Y;
        _ === void 0 && te >= Q && (_ = X, V = D), J === void 0 && te > ne && (J = X), D = te;
      }
      _ === void 0 && (_ = 0, V = 0, J = Math.ceil(k / U)), J === void 0 && (J = oe - 1), J = Math.min(J + 1, oe), h(C, {
        scrollHeight: D,
        start: _,
        end: J,
        offset: V
      });
    }, {
      immediate: !0
    });
    const S = w(() => C.scrollHeight - e.height);
    function P(D) {
      let _ = D;
      return Number.isNaN(S.value) || (_ = Math.min(_, S.value)), _ = Math.max(_, 0), _;
    }
    const $ = w(() => i.scrollTop <= 0), T = w(() => i.scrollTop >= S.value), E = M0($, T);
    function M(D) {
      y(D);
    }
    function R(D) {
      var _;
      const {
        scrollTop: V
      } = D.currentTarget;
      V !== i.scrollTop && y(V), (_ = e.onScroll) === null || _ === void 0 || _.call(e, D);
    }
    const [N, F] = OP(o, $, T, (D) => {
      y((_) => _ + D);
    });
    IP(o, c, (D, _) => E(D, _) ? !1 : (N({
      preventDefault() {
      },
      deltaY: D
    }), !0));
    function H(D) {
      o.value && D.preventDefault();
    }
    const I = () => {
      c.value && (c.value.removeEventListener("wheel", N, st ? {
        passive: !1
      } : !1), c.value.removeEventListener("DOMMouseScroll", F), c.value.removeEventListener("MozMousePixelScroll", H));
    };
    we(() => {
      De(() => {
        c.value && (I(), c.value.addEventListener("wheel", N, st ? {
          passive: !1
        } : !1), c.value.addEventListener("DOMMouseScroll", F), c.value.addEventListener("MozMousePixelScroll", H));
      });
    }), Le(() => {
      I();
    });
    const A = wP(c, l, b, e, f, v, y, () => {
      var D;
      (D = d.value) === null || D === void 0 || D.delayHidden();
    });
    n({
      scrollTo: A
    });
    const j = w(() => {
      let D = null;
      return e.height && (D = h({
        [e.fullHeight ? "height" : "maxHeight"]: e.height + "px"
      }, AP), o.value && (D.overflowY = "hidden", i.scrollMoving && (D.pointerEvents = "none"))), D;
    });
    return ee([() => C.start, () => C.end, l], () => {
      if (e.onVisibleChange) {
        const D = l.value.slice(C.start, C.end + 1);
        e.onVisibleChange(D, l.value);
      }
    }, {
      flush: "post"
    }), {
      state: i,
      mergedData: l,
      componentStyle: j,
      onFallbackScroll: R,
      onScrollBar: M,
      componentRef: c,
      useVirtual: o,
      calRes: C,
      collectHeight: v,
      setInstance: g,
      sharedConfig: p,
      scrollBarRef: d,
      fillerInnerRef: u,
      delayHideScrollBar: () => {
        var D;
        (D = d.value) === null || D === void 0 || D.delayHidden();
      }
    };
  },
  render() {
    const e = h(h({}, this.$props), this.$attrs), {
      prefixCls: t = "rc-virtual-list",
      height: n,
      itemHeight: o,
      // eslint-disable-next-line no-unused-vars
      fullHeight: r,
      data: i,
      itemKey: a,
      virtual: l,
      component: s = "div",
      onScroll: c,
      children: u = this.$slots.default,
      style: d,
      class: f
    } = e, p = TP(e, ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]), y = ie(t, f), {
      scrollTop: g
    } = this.state, {
      scrollHeight: v,
      offset: b,
      start: O,
      end: C
    } = this.calRes, {
      componentStyle: x,
      onFallbackScroll: S,
      onScrollBar: P,
      useVirtual: $,
      collectHeight: T,
      sharedConfig: E,
      setInstance: M,
      mergedData: R,
      delayHideScrollBar: N
    } = this;
    return m("div", z({
      style: h(h({}, d), {
        position: "relative"
      }),
      class: y
    }, p), [m(s, {
      class: `${t}-holder`,
      style: x,
      ref: "componentRef",
      onScroll: S,
      onMouseenter: N
    }, {
      default: () => [m(fl, {
        prefixCls: t,
        height: v,
        offset: b,
        onInnerResize: T,
        ref: "fillerInnerRef"
      }, {
        default: () => MP(R, O, C, M, u, E)
      })]
    }), $ && m(CP, {
      ref: "scrollBarRef",
      prefixCls: t,
      scrollTop: g,
      height: n,
      scrollHeight: v,
      count: R.length,
      onScroll: P,
      onStartMove: () => {
        this.state.scrollMoving = !0;
      },
      onStopMove: () => {
        this.state.scrollMoving = !1;
      }
    }, null)]);
  }
});
function DP(e, t, n) {
  const o = Z(e());
  return ee(t, (r, i) => {
    n ? n(r, i) && (o.value = e()) : o.value = e();
  }), o;
}
function FP() {
  return /(mac\sos|macintosh)/i.test(navigator.appVersion);
}
const R0 = Symbol("SelectContextKey");
function LP(e) {
  return $e(R0, e);
}
function NP() {
  return Ce(R0, {});
}
var jP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function Pp(e) {
  return typeof e == "string" || typeof e == "number";
}
const zP = q({
  compatConfig: {
    MODE: 3
  },
  name: "OptionList",
  inheritAttrs: !1,
  setup(e, t) {
    let {
      expose: n,
      slots: o
    } = t;
    const r = dl(), i = NP(), a = w(() => `${r.prefixCls}-item`), l = DP(() => i.flattenOptions, [() => r.open, () => i.flattenOptions], (S) => S[0]), s = ti(), c = (S) => {
      S.preventDefault();
    }, u = (S) => {
      s.current && s.current.scrollTo(typeof S == "number" ? {
        index: S
      } : S);
    }, d = function(S) {
      let P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
      const $ = l.value.length;
      for (let T = 0; T < $; T += 1) {
        const E = (S + T * P + $) % $, {
          group: M,
          data: R
        } = l.value[E];
        if (!M && !R.disabled)
          return E;
      }
      return -1;
    }, f = Be({
      activeIndex: d(0)
    }), p = function(S) {
      let P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
      f.activeIndex = S;
      const $ = {
        source: P ? "keyboard" : "mouse"
      }, T = l.value[S];
      if (!T) {
        i.onActiveValue(null, -1, $);
        return;
      }
      i.onActiveValue(T.value, S, $);
    };
    ee([() => l.value.length, () => r.searchValue], () => {
      p(i.defaultActiveFirstOption !== !1 ? d(0) : -1);
    }, {
      immediate: !0
    });
    const y = (S) => i.rawValues.has(S) && r.mode !== "combobox";
    ee([() => r.open, () => r.searchValue], () => {
      if (!r.multiple && r.open && i.rawValues.size === 1) {
        const S = Array.from(i.rawValues)[0], P = At(l.value).findIndex(($) => {
          let {
            data: T
          } = $;
          return T[i.fieldNames.value] === S;
        });
        P !== -1 && (p(P), De(() => {
          u(P);
        }));
      }
      r.open && De(() => {
        var S;
        (S = s.current) === null || S === void 0 || S.scrollTo(void 0);
      });
    }, {
      immediate: !0,
      flush: "post"
    });
    const g = (S) => {
      S !== void 0 && i.onSelect(S, {
        selected: !i.rawValues.has(S)
      }), r.multiple || r.toggleOpen(!1);
    }, v = (S) => typeof S.label == "function" ? S.label() : S.label;
    function b(S) {
      const P = l.value[S];
      if (!P) return null;
      const $ = P.data || {}, {
        value: T
      } = $, {
        group: E
      } = P, M = pi($, !0), R = v(P);
      return P ? m("div", z(z({
        "aria-label": typeof R == "string" && !E ? R : null
      }, M), {}, {
        key: S,
        role: E ? "presentation" : "option",
        id: `${r.id}_list_${S}`,
        "aria-selected": y(T)
      }), [T]) : null;
    }
    return n({
      onKeydown: (S) => {
        const {
          which: P,
          ctrlKey: $
        } = S;
        switch (P) {
          // >>> Arrow keys & ctrl + n/p on Mac
          case ue.N:
          case ue.P:
          case ue.UP:
          case ue.DOWN: {
            let T = 0;
            if (P === ue.UP ? T = -1 : P === ue.DOWN ? T = 1 : FP() && $ && (P === ue.N ? T = 1 : P === ue.P && (T = -1)), T !== 0) {
              const E = d(f.activeIndex + T, T);
              u(E), p(E, !0);
            }
            break;
          }
          // >>> Select
          case ue.ENTER: {
            const T = l.value[f.activeIndex];
            T && !T.data.disabled ? g(T.value) : g(void 0), r.open && S.preventDefault();
            break;
          }
          // >>> Close
          case ue.ESC:
            r.toggleOpen(!1), r.open && S.stopPropagation();
        }
      },
      onKeyup: () => {
      },
      scrollTo: (S) => {
        u(S);
      }
    }), () => {
      const {
        id: S,
        notFoundContent: P,
        onPopupScroll: $
      } = r, {
        menuItemSelectedIcon: T,
        fieldNames: E,
        virtual: M,
        listHeight: R,
        listItemHeight: N
      } = i, F = o.option, {
        activeIndex: H
      } = f, I = Object.keys(E).map((A) => E[A]);
      return l.value.length === 0 ? m("div", {
        role: "listbox",
        id: `${S}_list`,
        class: `${a.value}-empty`,
        onMousedown: c
      }, [P]) : m(Te, null, [m("div", {
        role: "listbox",
        id: `${S}_list`,
        style: {
          height: 0,
          width: 0,
          overflow: "hidden"
        }
      }, [b(H - 1), b(H), b(H + 1)]), m(RP, {
        itemKey: "key",
        ref: s,
        data: l.value,
        height: R,
        itemHeight: N,
        fullHeight: !1,
        onMousedown: c,
        onScroll: $,
        virtual: M
      }, {
        default: (A, j) => {
          var L;
          const {
            group: D,
            groupOption: _,
            data: V,
            value: J
          } = A, {
            key: oe
          } = V, re = typeof A.label == "function" ? A.label() : A.label;
          if (D) {
            const he = (L = V.title) !== null && L !== void 0 ? L : Pp(re) && re;
            return m("div", {
              class: ie(a.value, `${a.value}-group`),
              title: he
            }, [F ? F(V) : re !== void 0 ? re : oe]);
          }
          const {
            disabled: Q,
            title: U,
            children: k,
            style: ne,
            class: X,
            className: B
          } = V, W = jP(V, ["disabled", "title", "children", "style", "class", "className"]), Y = _e(W, I), te = y(J), ae = `${a.value}-option`, fe = ie(a.value, ae, X, B, {
            [`${ae}-grouped`]: _,
            [`${ae}-active`]: H === j && !Q,
            [`${ae}-disabled`]: Q,
            [`${ae}-selected`]: te
          }), ve = v(A), le = !T || typeof T == "function" || te, me = typeof ve == "number" ? ve : ve || J;
          let ce = Pp(me) ? me.toString() : void 0;
          return U !== void 0 && (ce = U), m("div", z(z({}, Y), {}, {
            "aria-selected": te,
            class: fe,
            title: ce,
            onMousemove: (he) => {
              W.onMousemove && W.onMousemove(he), !(H === j || Q) && p(j);
            },
            onClick: (he) => {
              Q || g(J), W.onClick && W.onClick(he);
            },
            style: ne
          }), [m("div", {
            class: `${ae}-content`
          }, [F ? F(V) : me]), Rt(T) || te, le && m(fo, {
            class: `${a.value}-option-state`,
            customizeIcon: T,
            customizeIconProps: {
              isSelected: te
            }
          }, {
            default: () => [te ? "✓" : null]
          })]);
        }
      })]);
    };
  }
});
var BP = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function HP(e) {
  const t = e, {
    key: n,
    children: o
  } = t, r = t.props, {
    value: i,
    disabled: a
  } = r, l = BP(r, ["value", "disabled"]), s = o == null ? void 0 : o.default;
  return h({
    key: n,
    value: i !== void 0 ? i : n,
    children: s,
    disabled: a || a === ""
  }, l);
}
function D0(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  return tt(e).map((o, r) => {
    var i;
    if (!Rt(o) || !o.type)
      return null;
    const {
      type: {
        isSelectOptGroup: a
      },
      key: l,
      children: s,
      props: c
    } = o;
    if (t || !a)
      return HP(o);
    const u = s && s.default ? s.default() : void 0, d = (c == null ? void 0 : c.label) || ((i = s.label) === null || i === void 0 ? void 0 : i.call(s)) || l;
    return h(h({
      key: `__RC_SELECT_GRP__${l === null ? r : String(l)}__`
    }, c), {
      label: d,
      options: D0(u || [])
    });
  }).filter((o) => o);
}
function _P(e, t, n) {
  const o = K(), r = K(), i = K(), a = K([]);
  return ee([e, t], () => {
    e.value ? a.value = At(e.value).slice() : a.value = D0(t.value);
  }, {
    immediate: !0,
    deep: !0
  }), we(() => {
    const l = a.value, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), u = n.value;
    function d(f) {
      let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
      for (let y = 0; y < f.length; y += 1) {
        const g = f[y];
        !g[u.options] || p ? (s.set(g[u.value], g), c.set(g[u.label], g)) : d(g[u.options], !0);
      }
    }
    d(l), o.value = l, r.value = s, i.value = c;
  }), {
    options: o,
    valueOptions: r,
    labelOptions: i
  };
}
let Ip = 0;
const VP = Ct();
function WP() {
  let e;
  return VP ? (e = Ip, Ip += 1) : e = "TEST_OR_SSR", e;
}
function F0() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Z("");
  const t = `rc_select_${WP()}`;
  return e.value || t;
}
function L0(e) {
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
}
function os(e, t) {
  return L0(e).join("").toUpperCase().includes(t);
}
const kP = ((e, t, n, o, r) => w(() => {
  const i = n.value, a = r == null ? void 0 : r.value, l = o == null ? void 0 : o.value;
  if (!i || l === !1)
    return e.value;
  const {
    options: s,
    label: c,
    value: u
  } = t.value, d = [], f = typeof l == "function", p = i.toUpperCase(), y = f ? l : (v, b) => a ? os(b[a], p) : b[s] ? os(b[c !== "children" ? c : "label"], p) : os(b[u], p), g = f ? (v) => Js(v) : (v) => v;
  return e.value.forEach((v) => {
    if (v[s]) {
      if (y(i, g(v)))
        d.push(v);
      else {
        const O = v[s].filter((C) => y(i, g(C)));
        O.length && d.push(h(h({}, v), {
          [s]: O
        }));
      }
      return;
    }
    y(i, g(v)) && d.push(v);
  }), d;
})), XP = ((e, t) => {
  const n = K({
    values: /* @__PURE__ */ new Map(),
    options: /* @__PURE__ */ new Map()
  });
  return [w(() => {
    const {
      values: i,
      options: a
    } = n.value, l = e.value.map((u) => {
      var d;
      return u.label === void 0 ? h(h({}, u), {
        label: (d = i.get(u.value)) === null || d === void 0 ? void 0 : d.label
      }) : u;
    }), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
    return l.forEach((u) => {
      s.set(u.value, u), c.set(u.value, t.value.get(u.value) || a.get(u.value));
    }), n.value.values = s, n.value.options = c, l;
  }), (i) => t.value.get(i) || n.value.options.get(i)];
});
function Mn(e, t) {
  const {
    defaultValue: n,
    value: o = Z()
  } = t || {};
  let r = typeof e == "function" ? e() : e;
  o.value !== void 0 && (r = se(o)), n !== void 0 && (r = typeof n == "function" ? n() : n);
  const i = Z(r), a = Z(r);
  we(() => {
    let s = o.value !== void 0 ? o.value : i.value;
    t.postState && (s = t.postState(s)), a.value = s;
  });
  function l(s) {
    const c = a.value;
    i.value = s, At(a.value) !== s && t.onChange && t.onChange(s, c);
  }
  return ee(o, () => {
    i.value = o.value;
  }), [a, l];
}
function qt(e) {
  const t = typeof e == "function" ? e() : e, n = Z(t);
  function o(r) {
    n.value = r;
  }
  return [n, o];
}
const KP = ["inputValue"];
function GP() {
  return h(h({}, Pu()), {
    prefixCls: String,
    id: String,
    backfill: {
      type: Boolean,
      default: void 0
    },
    // >>> Field Names
    fieldNames: Object,
    // >>> Search
    /** @deprecated Use `searchValue` instead */
    inputValue: String,
    searchValue: String,
    onSearch: Function,
    autoClearSearchValue: {
      type: Boolean,
      default: void 0
    },
    // >>> Select
    onSelect: Function,
    onDeselect: Function,
    // >>> Options
    /**
     * In Select, `false` means do nothing.
     * In TreeSelect, `false` will highlight match item.
     * It's by design.
     */
    filterOption: {
      type: [Boolean, Function],
      default: void 0
    },
    filterSort: Function,
    optionFilterProp: String,
    optionLabelProp: String,
    options: Array,
    defaultActiveFirstOption: {
      type: Boolean,
      default: void 0
    },
    virtual: {
      type: Boolean,
      default: void 0
    },
    listHeight: Number,
    listItemHeight: Number,
    // >>> Icon
    menuItemSelectedIcon: G.any,
    mode: String,
    labelInValue: {
      type: Boolean,
      default: void 0
    },
    value: G.any,
    defaultValue: G.any,
    onChange: Function,
    children: Array
  });
}
function UP(e) {
  return !e || typeof e != "object";
}
q({
  compatConfig: {
    MODE: 3
  },
  name: "VcSelect",
  inheritAttrs: !1,
  props: Ze(GP(), {
    prefixCls: "vc-select",
    autoClearSearchValue: !0,
    listHeight: 200,
    listItemHeight: 20,
    dropdownMatchSelectWidth: !0
  }),
  setup(e, t) {
    let {
      expose: n,
      attrs: o,
      slots: r
    } = t;
    const i = F0(Oe(e, "id")), a = w(() => T0(e.mode)), l = w(() => !!(!e.options && e.children)), s = w(() => e.filterOption === void 0 && e.mode === "combobox" ? !1 : e.filterOption), c = w(() => Kh(e.fieldNames, l.value)), [u, d] = Mn("", {
      value: w(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
      postState: (X) => X || ""
    }), f = _P(Oe(e, "options"), Oe(e, "children"), c), {
      valueOptions: p,
      labelOptions: y,
      options: g
    } = f, v = (X) => L0(X).map((W) => {
      var Y, te;
      let ae, fe, ve, le;
      UP(W) ? ae = W : (ve = W.key, fe = W.label, ae = (Y = W.value) !== null && Y !== void 0 ? Y : ve);
      const me = p.value.get(ae);
      return me && (fe === void 0 && (fe = me == null ? void 0 : me[e.optionLabelProp || c.value.label]), ve === void 0 && (ve = (te = me == null ? void 0 : me.key) !== null && te !== void 0 ? te : ae), le = me == null ? void 0 : me.disabled), {
        label: fe,
        value: ae,
        key: ve,
        disabled: le,
        option: me
      };
    }), [b, O] = Mn(e.defaultValue, {
      value: Oe(e, "value")
    }), C = w(() => {
      var X;
      const B = v(b.value);
      return e.mode === "combobox" && !(!((X = B[0]) === null || X === void 0) && X.value) ? [] : B;
    }), [x, S] = XP(C, p), P = w(() => {
      if (!e.mode && x.value.length === 1) {
        const X = x.value[0];
        if (X.value === null && (X.label === null || X.label === void 0))
          return [];
      }
      return x.value.map((X) => {
        var B;
        return h(h({}, X), {
          label: (B = typeof X.label == "function" ? X.label() : X.label) !== null && B !== void 0 ? B : X.value
        });
      });
    }), $ = w(() => new Set(x.value.map((X) => X.value)));
    we(() => {
      var X;
      if (e.mode === "combobox") {
        const B = (X = x.value[0]) === null || X === void 0 ? void 0 : X.value;
        B != null && d(String(B));
      }
    }, {
      flush: "post"
    });
    const T = (X, B) => {
      const W = B ?? X;
      return {
        [c.value.value]: X,
        [c.value.label]: W
      };
    }, E = K();
    we(() => {
      if (e.mode !== "tags") {
        E.value = g.value;
        return;
      }
      const X = g.value.slice(), B = (W) => p.value.has(W);
      [...x.value].sort((W, Y) => W.value < Y.value ? -1 : 1).forEach((W) => {
        const Y = W.value;
        B(Y) || X.push(T(Y, W.label));
      }), E.value = X;
    });
    const M = kP(E, c, u, s, Oe(e, "optionFilterProp")), R = w(() => e.mode !== "tags" || !u.value || M.value.some((X) => X[e.optionFilterProp || "value"] === u.value) ? M.value : [T(u.value), ...M.value]), N = w(() => e.filterSort ? [...R.value].sort((X, B) => e.filterSort(X, B)) : R.value), F = w(() => pw(N.value, {
      fieldNames: c.value,
      childrenAsData: l.value
    })), H = (X) => {
      const B = v(X);
      if (O(B), e.onChange && // Trigger event only when value changed
      (B.length !== x.value.length || B.some((W, Y) => {
        var te;
        return ((te = x.value[Y]) === null || te === void 0 ? void 0 : te.value) !== (W == null ? void 0 : W.value);
      }))) {
        const W = e.labelInValue ? B.map((te) => h(h({}, te), {
          originLabel: te.label,
          label: typeof te.label == "function" ? te.label() : te.label
        })) : B.map((te) => te.value), Y = B.map((te) => Js(S(te.value)));
        e.onChange(
          // Value
          a.value ? W : W[0],
          // Option
          a.value ? Y : Y[0]
        );
      }
    }, [I, A] = qt(null), [j, L] = qt(0), D = w(() => e.defaultActiveFirstOption !== void 0 ? e.defaultActiveFirstOption : e.mode !== "combobox"), _ = function(X, B) {
      let {
        source: W = "keyboard"
      } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      L(B), e.backfill && e.mode === "combobox" && X !== null && W === "keyboard" && A(String(X));
    }, V = (X, B) => {
      const W = () => {
        var Y;
        const te = S(X), ae = te == null ? void 0 : te[c.value.label];
        return [e.labelInValue ? {
          label: typeof ae == "function" ? ae() : ae,
          originLabel: ae,
          value: X,
          key: (Y = te == null ? void 0 : te.key) !== null && Y !== void 0 ? Y : X
        } : X, Js(te)];
      };
      if (B && e.onSelect) {
        const [Y, te] = W();
        e.onSelect(Y, te);
      } else if (!B && e.onDeselect) {
        const [Y, te] = W();
        e.onDeselect(Y, te);
      }
    }, J = (X, B) => {
      let W;
      const Y = a.value ? B.selected : !0;
      Y ? W = a.value ? [...x.value, X] : [X] : W = x.value.filter((te) => te.value !== X), H(W), V(X, Y), e.mode === "combobox" ? A("") : (!a.value || e.autoClearSearchValue) && (d(""), A(""));
    }, oe = (X, B) => {
      H(X), (B.type === "remove" || B.type === "clear") && B.values.forEach((W) => {
        V(W.value, !1);
      });
    }, re = (X, B) => {
      var W;
      if (d(X), A(null), B.source === "submit") {
        const Y = (X || "").trim();
        if (Y) {
          const te = Array.from(/* @__PURE__ */ new Set([...$.value, Y]));
          H(te), V(Y, !0), d("");
        }
        return;
      }
      B.source !== "blur" && (e.mode === "combobox" && H(X), (W = e.onSearch) === null || W === void 0 || W.call(e, X));
    }, Q = (X) => {
      let B = X;
      e.mode !== "tags" && (B = X.map((Y) => {
        const te = y.value.get(Y);
        return te == null ? void 0 : te.value;
      }).filter((Y) => Y !== void 0));
      const W = Array.from(/* @__PURE__ */ new Set([...$.value, ...B]));
      H(W), W.forEach((Y) => {
        V(Y, !0);
      });
    }, U = w(() => e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1);
    LP(I0(h(h({}, f), {
      flattenOptions: F,
      onActiveValue: _,
      defaultActiveFirstOption: D,
      onSelect: J,
      menuItemSelectedIcon: Oe(e, "menuItemSelectedIcon"),
      rawValues: $,
      fieldNames: c,
      virtual: U,
      listHeight: Oe(e, "listHeight"),
      listItemHeight: Oe(e, "listItemHeight"),
      childrenAsData: l
    })));
    const k = Z();
    n({
      focus() {
        var X;
        (X = k.value) === null || X === void 0 || X.focus();
      },
      blur() {
        var X;
        (X = k.value) === null || X === void 0 || X.blur();
      },
      scrollTo(X) {
        var B;
        (B = k.value) === null || B === void 0 || B.scrollTo(X);
      }
    });
    const ne = w(() => _e(e, [
      "id",
      "mode",
      "prefixCls",
      "backfill",
      "fieldNames",
      // Search
      "inputValue",
      "searchValue",
      "onSearch",
      "autoClearSearchValue",
      // Select
      "onSelect",
      "onDeselect",
      "dropdownMatchSelectWidth",
      // Options
      "filterOption",
      "filterSort",
      "optionFilterProp",
      "optionLabelProp",
      "options",
      "children",
      "defaultActiveFirstOption",
      "menuItemSelectedIcon",
      "virtual",
      "listHeight",
      "listItemHeight",
      // Value
      "value",
      "defaultValue",
      "labelInValue",
      "onChange"
    ]));
    return () => m(E0, z(z(z({}, ne.value), o), {}, {
      id: i,
      prefixCls: e.prefixCls,
      ref: k,
      omitDomProps: KP,
      mode: e.mode,
      displayValues: P.value,
      onDisplayValuesChange: oe,
      searchValue: u.value,
      onSearch: re,
      onSearchSplit: Q,
      dropdownMatchSelectWidth: e.dropdownMatchSelectWidth,
      OptionList: zP,
      emptyOptions: !F.value.length,
      activeValue: I.value,
      activeDescendantId: `${i}_list_${j.value}`
    }), r);
  }
});
var qP = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, YP = Symbol("iconContext"), N0 = function() {
  return Ce(YP, {
    prefixCls: Z("anticon"),
    rootClassName: Z(""),
    csp: Z()
  });
};
function Iu() {
  return !!(typeof window < "u" && window.document && window.document.createElement);
}
function ZP(e, t) {
  return e && e.contains ? e.contains(t) : !1;
}
var Tp = "data-vc-order", QP = "vc-icon-key", cc = /* @__PURE__ */ new Map();
function j0() {
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
  return t ? t.startsWith("data-") ? t : "data-".concat(t) : QP;
}
function Tu(e) {
  if (e.attachTo)
    return e.attachTo;
  var t = document.querySelector("head");
  return t || document.body;
}
function JP(e) {
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
}
function z0(e) {
  return Array.from((cc.get(e) || e).children).filter(function(t) {
    return t.tagName === "STYLE";
  });
}
function B0(e) {
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  if (!Iu())
    return null;
  var n = t.csp, o = t.prepend, r = document.createElement("style");
  r.setAttribute(Tp, JP(o)), n && n.nonce && (r.nonce = n.nonce), r.innerHTML = e;
  var i = Tu(t), a = i.firstChild;
  if (o) {
    if (o === "queue") {
      var l = z0(i).filter(function(s) {
        return ["prepend", "prependQueue"].includes(s.getAttribute(Tp));
      });
      if (l.length)
        return i.insertBefore(r, l[l.length - 1].nextSibling), r;
    }
    i.insertBefore(r, a);
  } else
    i.appendChild(r);
  return r;
}
function e4(e) {
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Tu(t);
  return z0(n).find(function(o) {
    return o.getAttribute(j0(t)) === e;
  });
}
function t4(e, t) {
  var n = cc.get(e);
  if (!n || !ZP(document, n)) {
    var o = B0("", t), r = o.parentNode;
    cc.set(e, r), e.removeChild(o);
  }
}
function n4(e, t) {
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = Tu(n);
  t4(o, n);
  var r = e4(t, n);
  if (r)
    return n.csp && n.csp.nonce && r.nonce !== n.csp.nonce && (r.nonce = n.csp.nonce), r.innerHTML !== e && (r.innerHTML = e), r;
  var i = B0(e, n);
  return i.setAttribute(j0(n), t), i;
}
function Ep(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      o4(e, r, n[r]);
    });
  }
  return e;
}
function o4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
function Ap(e) {
  return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
}
function uc(e, t, n) {
  return n ? lo(e.tag, Ep({
    key: t
  }, n, e.attrs), (e.children || []).map(function(o, r) {
    return uc(o, "".concat(t, "-").concat(e.tag, "-").concat(r));
  })) : lo(e.tag, Ep({
    key: t
  }, e.attrs), (e.children || []).map(function(o, r) {
    return uc(o, "".concat(t, "-").concat(e.tag, "-").concat(r));
  }));
}
function H0(e) {
  return un(e)[0];
}
function _0(e) {
  return e ? Array.isArray(e) ? e : [e] : [];
}
var r4 = `
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`;
function V0(e) {
  return e && e.getRootNode && e.getRootNode();
}
function i4(e) {
  return Iu() ? V0(e) instanceof ShadowRoot : !1;
}
function a4(e) {
  return i4(e) ? V0(e) : null;
}
var l4 = function() {
  var t = N0(), n = t.prefixCls, o = t.csp, r = lt(), i = r4;
  n && (i = i.replace(/anticon/g, n.value)), De(function() {
    if (Iu()) {
      var a = r.vnode.el, l = a4(a);
      n4(i, "@ant-design-vue-icons", {
        prepend: !0,
        csp: o.value,
        attachTo: l
      });
    }
  });
}, s4 = ["icon", "primaryColor", "secondaryColor"];
function c4(e, t) {
  if (e == null) return {};
  var n = u4(e, t), o, r;
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(e);
    for (r = 0; r < i.length; r++)
      o = i[r], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (n[o] = e[o]);
  }
  return n;
}
function u4(e, t) {
  if (e == null) return {};
  var n = {}, o = Object.keys(e), r, i;
  for (i = 0; i < o.length; i++)
    r = o[i], !(t.indexOf(r) >= 0) && (n[r] = e[r]);
  return n;
}
function sa(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      d4(e, r, n[r]);
    });
  }
  return e;
}
function d4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Mr = Be({
  primaryColor: "#333",
  secondaryColor: "#E6E6E6",
  calculated: !1
});
function f4(e) {
  var t = e.primaryColor, n = e.secondaryColor;
  Mr.primaryColor = t, Mr.secondaryColor = n || H0(t), Mr.calculated = !!n;
}
function p4() {
  return sa({}, Mr);
}
var jn = function(t, n) {
  var o = sa({}, t, n.attrs), r = o.icon, i = o.primaryColor, a = o.secondaryColor, l = c4(o, s4), s = Mr;
  if (i && (s = {
    primaryColor: i,
    secondaryColor: a || H0(i)
  }), Ap(r), !Ap(r))
    return null;
  var c = r;
  return c && typeof c.icon == "function" && (c = sa({}, c, {
    icon: c.icon(s.primaryColor, s.secondaryColor)
  })), uc(c.icon, "svg-".concat(c.name), sa({}, l, {
    "data-icon": c.name,
    width: "1em",
    height: "1em",
    fill: "currentColor",
    "aria-hidden": "true"
  }));
};
jn.props = {
  icon: Object,
  primaryColor: String,
  secondaryColor: String,
  focusable: String
};
jn.inheritAttrs = !1;
jn.displayName = "IconBase";
jn.getTwoToneColors = p4;
jn.setTwoToneColors = f4;
function m4(e, t) {
  return y4(e) || h4(e, t) || v4(e, t) || g4();
}
function g4() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function v4(e, t) {
  if (e) {
    if (typeof e == "string") return Mp(e, t);
    var n = Object.prototype.toString.call(e).slice(8, -1);
    if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Mp(e, t);
  }
}
function Mp(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var n = 0, o = new Array(t); n < t; n++)
    o[n] = e[n];
  return o;
}
function h4(e, t) {
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (n != null) {
    var o = [], r = !0, i = !1, a, l;
    try {
      for (n = n.call(e); !(r = (a = n.next()).done) && (o.push(a.value), !(t && o.length === t)); r = !0)
        ;
    } catch (s) {
      i = !0, l = s;
    } finally {
      try {
        !r && n.return != null && n.return();
      } finally {
        if (i) throw l;
      }
    }
    return o;
  }
}
function y4(e) {
  if (Array.isArray(e)) return e;
}
function W0(e) {
  var t = _0(e), n = m4(t, 2), o = n[0], r = n[1];
  return jn.setTwoToneColors({
    primaryColor: o,
    secondaryColor: r
  });
}
function b4() {
  var e = jn.getTwoToneColors();
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
}
var S4 = q({
  name: "InsertStyles",
  setup: function() {
    return l4(), function() {
      return null;
    };
  }
}), C4 = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function $4(e, t) {
  return P4(e) || O4(e, t) || x4(e, t) || w4();
}
function w4() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function x4(e, t) {
  if (e) {
    if (typeof e == "string") return Rp(e, t);
    var n = Object.prototype.toString.call(e).slice(8, -1);
    if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Rp(e, t);
  }
}
function Rp(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var n = 0, o = new Array(t); n < t; n++)
    o[n] = e[n];
  return o;
}
function O4(e, t) {
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (n != null) {
    var o = [], r = !0, i = !1, a, l;
    try {
      for (n = n.call(e); !(r = (a = n.next()).done) && (o.push(a.value), !(t && o.length === t)); r = !0)
        ;
    } catch (s) {
      i = !0, l = s;
    } finally {
      try {
        !r && n.return != null && n.return();
      } finally {
        if (i) throw l;
      }
    }
    return o;
  }
}
function P4(e) {
  if (Array.isArray(e)) return e;
}
function Dp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      xr(e, r, n[r]);
    });
  }
  return e;
}
function xr(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
function I4(e, t) {
  if (e == null) return {};
  var n = T4(e, t), o, r;
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(e);
    for (r = 0; r < i.length; r++)
      o = i[r], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (n[o] = e[o]);
  }
  return n;
}
function T4(e, t) {
  if (e == null) return {};
  var n = {}, o = Object.keys(e), r, i;
  for (i = 0; i < o.length; i++)
    r = o[i], !(t.indexOf(r) >= 0) && (n[r] = e[r]);
  return n;
}
W0(w$.primary);
var de = function(t, n) {
  var o, r = Dp({}, t, n.attrs), i = r.class, a = r.icon, l = r.spin, s = r.rotate, c = r.tabindex, u = r.twoToneColor, d = r.onClick, f = I4(r, C4), p = N0(), y = p.prefixCls, g = p.rootClassName, v = (o = {}, xr(o, g.value, !!g.value), xr(o, y.value, !0), xr(o, "".concat(y.value, "-").concat(a.name), !!a.name), xr(o, "".concat(y.value, "-spin"), !!l || a.name === "loading"), o), b = c;
  b === void 0 && d && (b = -1);
  var O = s ? {
    msTransform: "rotate(".concat(s, "deg)"),
    transform: "rotate(".concat(s, "deg)")
  } : void 0, C = _0(u), x = $4(C, 2), S = x[0], P = x[1];
  return m("span", Dp({
    role: "img",
    "aria-label": a.name
  }, f, {
    onClick: d,
    class: [v, i],
    tabindex: b
  }), [m(jn, {
    icon: a,
    primaryColor: S,
    secondaryColor: P,
    style: O
  }, null), m(S4, null, null)]);
};
de.props = {
  spin: Boolean,
  rotate: Number,
  icon: Object,
  twoToneColor: [String, Array]
};
de.displayName = "AntdIcon";
de.inheritAttrs = !1;
de.getTwoToneColor = b4;
de.setTwoToneColor = W0;
function Fp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      E4(e, r, n[r]);
    });
  }
  return e;
}
function E4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Eu = function(t, n) {
  var o = Fp({}, t, n.attrs);
  return m(de, Fp({}, o, {
    icon: qP
  }), null);
};
Eu.displayName = "DownOutlined";
Eu.inheritAttrs = !1;
var A4 = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
function Lp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      M4(e, r, n[r]);
    });
  }
  return e;
}
function M4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Lt = function(t, n) {
  var o = Lp({}, t, n.attrs);
  return m(de, Lp({}, o, {
    icon: A4
  }), null);
};
Lt.displayName = "LoadingOutlined";
Lt.inheritAttrs = !1;
var R4 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
function Np(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      D4(e, r, n[r]);
    });
  }
  return e;
}
function D4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var mi = function(t, n) {
  var o = Np({}, t, n.attrs);
  return m(de, Np({}, o, {
    icon: R4
  }), null);
};
mi.displayName = "CheckOutlined";
mi.inheritAttrs = !1;
var F4 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" };
function jp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      L4(e, r, n[r]);
    });
  }
  return e;
}
function L4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var hn = function(t, n) {
  var o = jp({}, t, n.attrs);
  return m(de, jp({}, o, {
    icon: F4
  }), null);
};
hn.displayName = "CloseOutlined";
hn.inheritAttrs = !1;
var N4 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
function zp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      j4(e, r, n[r]);
    });
  }
  return e;
}
function j4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var jt = function(t, n) {
  var o = zp({}, t, n.attrs);
  return m(de, zp({}, o, {
    icon: N4
  }), null);
};
jt.displayName = "CloseCircleFilled";
jt.inheritAttrs = !1;
var z4 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
function Bp(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      B4(e, r, n[r]);
    });
  }
  return e;
}
function B4(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var pl = function(t, n) {
  var o = Bp({}, t, n.attrs);
  return m(de, Bp({}, o, {
    icon: z4
  }), null);
};
pl.displayName = "SearchOutlined";
pl.inheritAttrs = !1;
function H4(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  const {
    loading: n,
    multiple: o,
    prefixCls: r,
    hasFeedback: i,
    feedbackIcon: a,
    showArrow: l
  } = e, s = e.suffixIcon || t.suffixIcon && t.suffixIcon(), c = e.clearIcon || t.clearIcon && t.clearIcon(), u = e.menuItemSelectedIcon || t.menuItemSelectedIcon && t.menuItemSelectedIcon(), d = e.removeIcon || t.removeIcon && t.removeIcon(), f = c ?? m(jt, null, null), p = (b) => m(Te, null, [l !== !1 && b, i && a]);
  let y = null;
  if (s !== void 0)
    y = p(s);
  else if (n)
    y = p(m(Lt, {
      spin: !0
    }, null));
  else {
    const b = `${r}-suffix`;
    y = (O) => {
      let {
        open: C,
        showSearch: x
      } = O;
      return p(C && x ? m(pl, {
        class: b
      }, null) : m(Eu, {
        class: b
      }, null));
    };
  }
  let g = null;
  u !== void 0 ? g = u : o ? g = m(mi, null, null) : g = null;
  let v = null;
  return d !== void 0 ? v = d : v = m(hn, null, null), {
    clearIcon: f,
    suffixIcon: y,
    itemIcon: g,
    removeIcon: v
  };
}
function Au(e) {
  const t = Symbol("contextKey");
  return {
    useProvide: (r, i) => {
      const a = Be({});
      return $e(t, a), we(() => {
        h(a, r, i || {});
      }), a;
    },
    useInject: () => Ce(t, e) || {}
  };
}
const Ea = Symbol("ContextProps"), Aa = Symbol("InternalContextProps"), _4 = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : w(() => !0);
  const n = Z(/* @__PURE__ */ new Map()), o = (i, a) => {
    n.value.set(i, a), n.value = new Map(n.value);
  }, r = (i) => {
    n.value.delete(i), n.value = new Map(n.value);
  };
  lt(), ee([t, n], () => {
  }), $e(Ea, e), $e(Aa, {
    addFormItemField: o,
    removeFormItemField: r
  });
}, dc = {
  id: w(() => {
  }),
  onFieldBlur: () => {
  },
  onFieldChange: () => {
  },
  clearValidate: () => {
  }
}, fc = {
  addFormItemField: () => {
  },
  removeFormItemField: () => {
  }
}, gi = () => {
  const e = Ce(Aa, fc), t = Symbol("FormItemFieldKey"), n = lt();
  return e.addFormItemField(t, n.type), Le(() => {
    e.removeFormItemField(t);
  }), $e(Aa, fc), $e(Ea, dc), Ce(Ea, dc);
}, pc = q({
  compatConfig: {
    MODE: 3
  },
  name: "AFormItemRest",
  setup(e, t) {
    let {
      slots: n
    } = t;
    return $e(Aa, fc), $e(Ea, dc), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
}), Rn = Au({}), Hp = q({
  name: "NoFormStatus",
  setup(e, t) {
    let {
      slots: n
    } = t;
    return Rn.useProvide({}), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
});
function Vo(e, t, n) {
  return ie({
    [`${e}-status-success`]: t === "success",
    [`${e}-status-warning`]: t === "warning",
    [`${e}-status-error`]: t === "error",
    [`${e}-status-validating`]: t === "validating",
    [`${e}-has-feedback`]: n
  });
}
const ml = (e, t) => t || e, V4 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      display: "inline-flex",
      "&-block": {
        display: "flex",
        width: "100%"
      },
      "&-vertical": {
        flexDirection: "column"
      }
    }
  };
}, W4 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      display: "inline-flex",
      "&-rtl": {
        direction: "rtl"
      },
      "&-vertical": {
        flexDirection: "column"
      },
      "&-align": {
        flexDirection: "column",
        "&-center": {
          alignItems: "center"
        },
        "&-start": {
          alignItems: "flex-start"
        },
        "&-end": {
          alignItems: "flex-end"
        },
        "&-baseline": {
          alignItems: "baseline"
        }
      },
      [`${t}-item`]: {
        "&:empty": {
          display: "none"
        }
      }
    }
  };
}, k4 = We("Space", (e) => [W4(e), V4(e)]);
var X4 = "[object Symbol]";
function gl(e) {
  return typeof e == "symbol" || Wt(e) && Nn(e) == X4;
}
function Mu(e, t) {
  for (var n = -1, o = e == null ? 0 : e.length, r = Array(o); ++n < o; )
    r[n] = t(e[n], n, e);
  return r;
}
var _p = Ft ? Ft.prototype : void 0, Vp = _p ? _p.toString : void 0;
function k0(e) {
  if (typeof e == "string")
    return e;
  if (wt(e))
    return Mu(e, k0) + "";
  if (gl(e))
    return Vp ? Vp.call(e) : "";
  var t = e + "";
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
var K4 = /\s/;
function G4(e) {
  for (var t = e.length; t-- && K4.test(e.charAt(t)); )
    ;
  return t;
}
var U4 = /^\s+/;
function q4(e) {
  return e && e.slice(0, G4(e) + 1).replace(U4, "");
}
var Wp = NaN, Y4 = /^[-+]0x[0-9a-f]+$/i, Z4 = /^0b[01]+$/i, Q4 = /^0o[0-7]+$/i, J4 = parseInt;
function mc(e) {
  if (typeof e == "number")
    return e;
  if (gl(e))
    return Wp;
  if (dn(e)) {
    var t = typeof e.valueOf == "function" ? e.valueOf() : e;
    e = dn(t) ? t + "" : t;
  }
  if (typeof e != "string")
    return e === 0 ? e : +e;
  e = q4(e);
  var n = Z4.test(e);
  return n || Q4.test(e) ? J4(e.slice(2), n ? 2 : 8) : Y4.test(e) ? Wp : +e;
}
var kp = 1 / 0, eI = 17976931348623157e292;
function tI(e) {
  if (!e)
    return e === 0 ? e : 0;
  if (e = mc(e), e === kp || e === -kp) {
    var t = e < 0 ? -1 : 1;
    return t * eI;
  }
  return e === e ? e : 0;
}
function nI(e) {
  var t = tI(e), n = t % 1;
  return t === t ? n ? t - n : t : 0;
}
function Ru(e) {
  return e;
}
var Xp = Object.create, oI = /* @__PURE__ */ (function() {
  function e() {
  }
  return function(t) {
    if (!dn(t))
      return {};
    if (Xp)
      return Xp(t);
    e.prototype = t;
    var n = new e();
    return e.prototype = void 0, n;
  };
})();
function rI(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 iI() {
}
function aI(e, t) {
  var n = -1, o = e.length;
  for (t || (t = Array(o)); ++n < o; )
    t[n] = e[n];
  return t;
}
var lI = 800, sI = 16, cI = Date.now;
function uI(e) {
  var t = 0, n = 0;
  return function() {
    var o = cI(), r = sI - (o - n);
    if (n = o, r > 0) {
      if (++t >= lI)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
function dI(e) {
  return function() {
    return e;
  };
}
var Ma = (function() {
  try {
    var e = yo(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
})(), fI = Ma ? function(e, t) {
  return Ma(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: dI(t),
    writable: !0
  });
} : Ru, X0 = uI(fI);
function pI(e, t) {
  for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
    ;
  return e;
}
function K0(e, t, n, o) {
  for (var r = e.length, i = n + -1; ++i < r; )
    if (t(e[i], i, e))
      return i;
  return -1;
}
function mI(e) {
  return e !== e;
}
function gI(e, t, n) {
  for (var o = n - 1, r = e.length; ++o < r; )
    if (e[o] === t)
      return o;
  return -1;
}
function vI(e, t, n) {
  return t === t ? gI(e, t, n) : K0(e, mI, n);
}
function G0(e, t) {
  var n = e == null ? 0 : e.length;
  return !!n && vI(e, t, 0) > -1;
}
function U0(e, t, n) {
  t == "__proto__" && Ma ? Ma(e, t, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : e[t] = n;
}
var hI = Object.prototype, yI = hI.hasOwnProperty;
function q0(e, t, n) {
  var o = e[t];
  (!(yI.call(e, t) && mu(o, n)) || n === void 0 && !(t in e)) && U0(e, t, n);
}
function vi(e, t, n, o) {
  var r = !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]), r ? U0(n, l, s) : q0(n, l, s);
  }
  return n;
}
var Kp = Math.max;
function Y0(e, t, n) {
  return t = Kp(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var o = arguments, r = -1, i = Kp(o.length - t, 0), a = Array(i); ++r < i; )
      a[r] = o[t + r];
    r = -1;
    for (var l = Array(t + 1); ++r < t; )
      l[r] = o[r];
    return l[t] = n(a), rI(e, this, l);
  };
}
function bI(e, t) {
  return X0(Y0(e, t, Ru), e + "");
}
function SI(e) {
  var t = [];
  if (e != null)
    for (var n in Object(e))
      t.push(n);
  return t;
}
var CI = Object.prototype, $I = CI.hasOwnProperty;
function wI(e) {
  if (!dn(e))
    return SI(e);
  var t = ll(e), n = [];
  for (var o in e)
    o == "constructor" && (t || !$I.call(e, o)) || n.push(o);
  return n;
}
function Du(e) {
  return lr(e) ? m0(e, !0) : wI(e);
}
var xI = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, OI = /^\w*$/;
function Fu(e, t) {
  if (wt(e))
    return !1;
  var n = typeof e;
  return n == "number" || n == "symbol" || n == "boolean" || e == null || gl(e) ? !0 : OI.test(e) || !xI.test(e) || t != null && e in Object(t);
}
var PI = "Expected a function";
function Lu(e, t) {
  if (typeof e != "function" || t != null && typeof t != "function")
    throw new TypeError(PI);
  var n = function() {
    var o = arguments, r = t ? t.apply(this, o) : o[0], i = n.cache;
    if (i.has(r))
      return i.get(r);
    var a = e.apply(this, o);
    return n.cache = i.set(r, a) || i, a;
  };
  return n.cache = new (Lu.Cache || vn)(), n;
}
Lu.Cache = vn;
var II = 500;
function TI(e) {
  var t = Lu(e, function(o) {
    return n.size === II && n.clear(), o;
  }), n = t.cache;
  return t;
}
var EI = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, AI = /\\(\\)?/g, MI = TI(function(e) {
  var t = [];
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(EI, function(n, o, r, i) {
    t.push(r ? i.replace(AI, "$1") : o || n);
  }), t;
});
function RI(e) {
  return e == null ? "" : k0(e);
}
function vl(e, t) {
  return wt(e) ? e : Fu(e, t) ? [e] : MI(RI(e));
}
function hi(e) {
  if (typeof e == "string" || gl(e))
    return e;
  var t = e + "";
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
function Nu(e, t) {
  t = vl(t, e);
  for (var n = 0, o = t.length; e != null && n < o; )
    e = e[hi(t[n++])];
  return n && n == o ? e : void 0;
}
function DI(e, t, n) {
  var o = e == null ? void 0 : Nu(e, t);
  return o === void 0 ? n : o;
}
var Gp = Ft ? Ft.isConcatSpreadable : void 0;
function FI(e) {
  return wt(e) || al(e) || !!(Gp && e && e[Gp]);
}
function LI(e, t, n, o, r) {
  var i = -1, a = e.length;
  for (n || (n = FI), r || (r = []); ++i < a; ) {
    var l = e[i];
    n(l) ? vu(r, l) : r[r.length] = l;
  }
  return r;
}
function NI(e) {
  var t = e == null ? 0 : e.length;
  return t ? LI(e) : [];
}
function jI(e) {
  return X0(Y0(e, void 0, NI), e + "");
}
var ju = g0(Object.getPrototypeOf, Object), zI = "[object Object]", BI = Function.prototype, HI = Object.prototype, Z0 = BI.toString, _I = HI.hasOwnProperty, VI = Z0.call(Object);
function Q0(e) {
  if (!Wt(e) || Nn(e) != zI)
    return !1;
  var t = ju(e);
  if (t === null)
    return !0;
  var n = _I.call(t, "constructor") && t.constructor;
  return typeof n == "function" && n instanceof n && Z0.call(n) == VI;
}
function WI(e, t, n) {
  var o = -1, r = e.length;
  t < 0 && (t = -t > r ? 0 : r + t), n = n > r ? r : n, n < 0 && (n += r), r = t > n ? 0 : n - t >>> 0, t >>>= 0;
  for (var i = Array(r); ++o < r; )
    i[o] = e[o + t];
  return i;
}
function kI(e, t) {
  return e && vi(t, sr(t), e);
}
function XI(e, t) {
  return e && vi(t, Du(t), e);
}
var J0 = typeof exports == "object" && exports && !exports.nodeType && exports, Up = J0 && typeof module == "object" && module && !module.nodeType && module, KI = Up && Up.exports === J0, qp = KI ? Kt.Buffer : void 0, Yp = qp ? qp.allocUnsafe : void 0;
function GI(e, t) {
  if (t)
    return e.slice();
  var n = e.length, o = Yp ? Yp(n) : new e.constructor(n);
  return e.copy(o), o;
}
function UI(e, t) {
  return vi(e, hu(e), t);
}
var qI = Object.getOwnPropertySymbols, ey = qI ? function(e) {
  for (var t = []; e; )
    vu(t, hu(e)), e = ju(e);
  return t;
} : c0;
function YI(e, t) {
  return vi(e, ey(e), t);
}
function ty(e) {
  return s0(e, Du, ey);
}
var ZI = Object.prototype, QI = ZI.hasOwnProperty;
function JI(e) {
  var t = e.length, n = new e.constructor(t);
  return t && typeof e[0] == "string" && QI.call(e, "index") && (n.index = e.index, n.input = e.input), n;
}
function zu(e) {
  var t = new e.constructor(e.byteLength);
  return new Ta(t).set(new Ta(e)), t;
}
function e6(e, t) {
  var n = t ? zu(e.buffer) : e.buffer;
  return new e.constructor(n, e.byteOffset, e.byteLength);
}
var t6 = /\w*$/;
function n6(e) {
  var t = new e.constructor(e.source, t6.exec(e));
  return t.lastIndex = e.lastIndex, t;
}
var Zp = Ft ? Ft.prototype : void 0, Qp = Zp ? Zp.valueOf : void 0;
function o6(e) {
  return Qp ? Object(Qp.call(e)) : {};
}
function r6(e, t) {
  var n = t ? zu(e.buffer) : e.buffer;
  return new e.constructor(n, e.byteOffset, e.length);
}
var i6 = "[object Boolean]", a6 = "[object Date]", l6 = "[object Map]", s6 = "[object Number]", c6 = "[object RegExp]", u6 = "[object Set]", d6 = "[object String]", f6 = "[object Symbol]", p6 = "[object ArrayBuffer]", m6 = "[object DataView]", g6 = "[object Float32Array]", v6 = "[object Float64Array]", h6 = "[object Int8Array]", y6 = "[object Int16Array]", b6 = "[object Int32Array]", S6 = "[object Uint8Array]", C6 = "[object Uint8ClampedArray]", $6 = "[object Uint16Array]", w6 = "[object Uint32Array]";
function x6(e, t, n) {
  var o = e.constructor;
  switch (t) {
    case p6:
      return zu(e);
    case i6:
    case a6:
      return new o(+e);
    case m6:
      return e6(e, n);
    case g6:
    case v6:
    case h6:
    case y6:
    case b6:
    case S6:
    case C6:
    case $6:
    case w6:
      return r6(e, n);
    case l6:
      return new o();
    case s6:
    case d6:
      return new o(e);
    case c6:
      return n6(e);
    case u6:
      return new o();
    case f6:
      return o6(e);
  }
}
function O6(e) {
  return typeof e.constructor == "function" && !ll(e) ? oI(ju(e)) : {};
}
var P6 = "[object Map]";
function I6(e) {
  return Wt(e) && It(e) == P6;
}
var Jp = Jo && Jo.isMap, T6 = Jp ? bu(Jp) : I6, E6 = "[object Set]";
function A6(e) {
  return Wt(e) && It(e) == E6;
}
var em = Jo && Jo.isSet, M6 = em ? bu(em) : A6, R6 = 1, D6 = 2, F6 = 4, ny = "[object Arguments]", L6 = "[object Array]", N6 = "[object Boolean]", j6 = "[object Date]", z6 = "[object Error]", oy = "[object Function]", B6 = "[object GeneratorFunction]", H6 = "[object Map]", _6 = "[object Number]", ry = "[object Object]", V6 = "[object RegExp]", W6 = "[object Set]", k6 = "[object String]", X6 = "[object Symbol]", K6 = "[object WeakMap]", G6 = "[object ArrayBuffer]", U6 = "[object DataView]", q6 = "[object Float32Array]", Y6 = "[object Float64Array]", Z6 = "[object Int8Array]", Q6 = "[object Int16Array]", J6 = "[object Int32Array]", e3 = "[object Uint8Array]", t3 = "[object Uint8ClampedArray]", n3 = "[object Uint16Array]", o3 = "[object Uint32Array]", Ne = {};
Ne[ny] = Ne[L6] = Ne[G6] = Ne[U6] = Ne[N6] = Ne[j6] = Ne[q6] = Ne[Y6] = Ne[Z6] = Ne[Q6] = Ne[J6] = Ne[H6] = Ne[_6] = Ne[ry] = Ne[V6] = Ne[W6] = Ne[k6] = Ne[X6] = Ne[e3] = Ne[t3] = Ne[n3] = Ne[o3] = !0;
Ne[z6] = Ne[oy] = Ne[K6] = !1;
function Rr(e, t, n, o, r, i) {
  var a, l = t & R6, s = t & D6, c = t & F6;
  if (n && (a = r ? n(e, o, r, i) : n(e)), a !== void 0)
    return a;
  if (!dn(e))
    return e;
  var u = wt(e);
  if (u) {
    if (a = JI(e), !l)
      return aI(e, a);
  } else {
    var d = It(e), f = d == oy || d == B6;
    if (ei(e))
      return GI(e, l);
    if (d == ry || d == ny || f && !r) {
      if (a = s || f ? {} : O6(e), !l)
        return s ? YI(e, XI(a, e)) : UI(e, kI(a, e));
    } else {
      if (!Ne[d])
        return r ? e : {};
      a = x6(e, d, l);
    }
  }
  i || (i = new Zt());
  var p = i.get(e);
  if (p)
    return p;
  i.set(e, a), M6(e) ? e.forEach(function(v) {
    a.add(Rr(v, t, n, v, e, i));
  }) : T6(e) && e.forEach(function(v, b) {
    a.set(b, Rr(v, t, n, b, e, i));
  });
  var y = c ? s ? ty : rc : s ? Du : sr, g = u ? void 0 : y(e);
  return pI(g || e, function(v, b) {
    g && (b = v, v = e[b]), q0(a, b, Rr(v, t, n, b, e, i));
  }), a;
}
var r3 = 1, i3 = 4;
function ca(e) {
  return Rr(e, r3 | i3);
}
var a3 = 1, l3 = 2;
function s3(e, t, n, o) {
  var r = n.length, i = r;
  if (e == null)
    return !i;
  for (e = Object(e); r--; ) {
    var a = n[r];
    if (a[2] ? a[1] !== e[a[0]] : !(a[0] in e))
      return !1;
  }
  for (; ++r < i; ) {
    a = n[r];
    var l = a[0], s = e[l], c = a[1];
    if (a[2]) {
      if (s === void 0 && !(l in e))
        return !1;
    } else {
      var u = new Zt(), d;
      if (!(d === void 0 ? sl(c, s, a3 | l3, o, u) : d))
        return !1;
    }
  }
  return !0;
}
function iy(e) {
  return e === e && !dn(e);
}
function c3(e) {
  for (var t = sr(e), n = t.length; n--; ) {
    var o = t[n], r = e[o];
    t[n] = [o, r, iy(r)];
  }
  return t;
}
function ay(e, t) {
  return function(n) {
    return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
  };
}
function u3(e) {
  var t = c3(e);
  return t.length == 1 && t[0][2] ? ay(t[0][0], t[0][1]) : function(n) {
    return n === e || s3(n, e, t);
  };
}
function d3(e, t) {
  return e != null && t in Object(e);
}
function f3(e, t, n) {
  t = vl(t, e);
  for (var o = -1, r = t.length, i = !1; ++o < r; ) {
    var a = hi(t[o]);
    if (!(i = e != null && n(e, a)))
      break;
    e = e[a];
  }
  return i || ++o != r ? i : (r = e == null ? 0 : e.length, !!r && yu(r) && f0(a, r) && (wt(e) || al(e)));
}
function p3(e, t) {
  return e != null && f3(e, t, d3);
}
var m3 = 1, g3 = 2;
function v3(e, t) {
  return Fu(e) && iy(t) ? ay(hi(e), t) : function(n) {
    var o = DI(n, e);
    return o === void 0 && o === t ? p3(n, e) : sl(t, o, m3 | g3);
  };
}
function h3(e) {
  return function(t) {
    return t == null ? void 0 : t[e];
  };
}
function y3(e) {
  return function(t) {
    return Nu(t, e);
  };
}
function b3(e) {
  return Fu(e) ? h3(hi(e)) : y3(e);
}
function Bu(e) {
  return typeof e == "function" ? e : e == null ? Ru : typeof e == "object" ? wt(e) ? v3(e[0], e[1]) : u3(e) : b3(e);
}
function S3(e, t, n, o) {
  for (var r = -1, i = e == null ? 0 : e.length; ++r < i; ) {
    var a = e[r];
    t(o, a, n(a), e);
  }
  return o;
}
function C3(e) {
  return function(t, n, o) {
    for (var r = -1, i = Object(t), a = o(t), l = a.length; l--; ) {
      var s = a[++r];
      if (n(i[s], s, i) === !1)
        break;
    }
    return t;
  };
}
var $3 = C3();
function w3(e, t) {
  return e && $3(e, t, sr);
}
function x3(e, t) {
  return function(n, o) {
    if (n == null)
      return n;
    if (!lr(n))
      return e(n, o);
    for (var r = n.length, i = -1, a = Object(n); ++i < r && o(a[i], i, a) !== !1; )
      ;
    return n;
  };
}
var O3 = x3(w3);
function P3(e, t, n, o) {
  return O3(e, function(r, i, a) {
    t(o, r, n(r), a);
  }), o;
}
function I3(e, t) {
  return function(n, o) {
    var r = wt(n) ? S3 : P3, i = t ? t() : {};
    return r(n, e, Bu(o), i);
  };
}
var rs = function() {
  return Kt.Date.now();
}, T3 = "Expected a function", E3 = Math.max, A3 = Math.min;
function M3(e, t, n) {
  var o, r, i, a, l, s, c = 0, u = !1, d = !1, f = !0;
  if (typeof e != "function")
    throw new TypeError(T3);
  t = mc(t) || 0, dn(n) && (u = !!n.leading, d = "maxWait" in n, i = d ? E3(mc(n.maxWait) || 0, t) : i, f = "trailing" in n ? !!n.trailing : f);
  function p(P) {
    var $ = o, T = r;
    return o = r = void 0, c = P, a = e.apply(T, $), a;
  }
  function y(P) {
    return c = P, l = setTimeout(b, t), u ? p(P) : a;
  }
  function g(P) {
    var $ = P - s, T = P - c, E = t - $;
    return d ? A3(E, i - T) : E;
  }
  function v(P) {
    var $ = P - s, T = P - c;
    return s === void 0 || $ >= t || $ < 0 || d && T >= i;
  }
  function b() {
    var P = rs();
    if (v(P))
      return O(P);
    l = setTimeout(b, g(P));
  }
  function O(P) {
    return l = void 0, f && o ? p(P) : (o = r = void 0, a);
  }
  function C() {
    l !== void 0 && clearTimeout(l), c = 0, o = s = r = l = void 0;
  }
  function x() {
    return l === void 0 ? a : O(rs());
  }
  function S() {
    var P = rs(), $ = v(P);
    if (o = arguments, r = this, s = P, $) {
      if (l === void 0)
        return y(s);
      if (d)
        return clearTimeout(l), l = setTimeout(b, t), p(s);
    }
    return l === void 0 && (l = setTimeout(b, t)), a;
  }
  return S.cancel = C, S.flush = x, S;
}
function R3(e) {
  return Wt(e) && lr(e);
}
function D3(e) {
  var t = e == null ? 0 : e.length;
  return t ? e[t - 1] : void 0;
}
function F3(e) {
  return function(t, n, o) {
    var r = Object(t);
    if (!lr(t)) {
      var i = Bu(n);
      t = sr(t), n = function(l) {
        return i(r[l], l, r);
      };
    }
    var a = e(t, n, o);
    return a > -1 ? r[i ? t[a] : a] : void 0;
  };
}
var L3 = Math.max;
function N3(e, t, n) {
  var o = e == null ? 0 : e.length;
  if (!o)
    return -1;
  var r = n == null ? 0 : nI(n);
  return r < 0 && (r = L3(o + r, 0)), K0(e, Bu(t), r);
}
var j3 = F3(N3), z3 = Math.min;
function B3(e, t, n) {
  for (var o = G0, r = e[0].length, i = e.length, a = i, l = Array(i), s = 1 / 0, c = []; a--; ) {
    var u = e[a];
    s = z3(u.length, s), l[a] = r >= 120 && u.length >= 120 ? new Qo(a && u) : void 0;
  }
  u = e[0];
  var d = -1, f = l[0];
  e:
    for (; ++d < r && c.length < s; ) {
      var p = u[d], y = p;
      if (p = p !== 0 ? p : 0, !(f ? Ia(f, y) : o(c, y))) {
        for (a = i; --a; ) {
          var g = l[a];
          if (!(g ? Ia(g, y) : o(e[a], y)))
            continue e;
        }
        f && f.push(y), c.push(p);
      }
    }
  return c;
}
function H3(e) {
  return R3(e) ? e : [];
}
var _3 = bI(function(e) {
  var t = Mu(e, H3);
  return t.length && t[0] === e[0] ? B3(t) : [];
});
function V3(e, t) {
  return t.length < 2 ? e : Nu(e, WI(t, 0, -1));
}
var W3 = "[object Map]", k3 = "[object Set]", X3 = Object.prototype, K3 = X3.hasOwnProperty;
function ly(e) {
  if (e == null)
    return !0;
  if (lr(e) && (wt(e) || typeof e == "string" || typeof e.splice == "function" || ei(e) || Su(e) || al(e)))
    return !e.length;
  var t = It(e);
  if (t == W3 || t == k3)
    return !e.size;
  if (ll(e))
    return !v0(e).length;
  for (var n in e)
    if (K3.call(e, n))
      return !1;
  return !0;
}
var G3 = "[object Number]";
function U3(e) {
  return typeof e == "number" || Wt(e) && Nn(e) == G3;
}
function q3(e, t) {
  return t = vl(t, e), e = V3(e, t), e == null || delete e[hi(D3(t))];
}
function Y3(e) {
  return Q0(e) ? void 0 : e;
}
var Z3 = 1, Q3 = 2, J3 = 4, eT = jI(function(e, t) {
  var n = {};
  if (e == null)
    return n;
  var o = !1;
  t = Mu(t, function(i) {
    return i = vl(i, e), o || (o = i.length > 1), i;
  }), vi(e, ty(e), n), o && (n = Rr(n, Z3 | Q3 | J3, Y3));
  for (var r = t.length; r--; )
    q3(n, t[r]);
  return n;
}), tT = I3(function(e, t, n) {
  e[n ? 0 : 1].push(t);
}, function() {
  return [[], []];
}), nT = 1 / 0, oT = _o && 1 / gu(new _o([, -0]))[1] == nT ? function(e) {
  return new _o(e);
} : iI, rT = 200;
function iT(e, t, n) {
  var o = -1, r = G0, i = e.length, a = !0, l = [], s = l;
  if (i >= rT) {
    var c = oT(e);
    if (c)
      return gu(c);
    a = !1, r = Ia, s = new Qo();
  } else
    s = l;
  e:
    for (; ++o < i; ) {
      var u = e[o], d = u;
      if (u = u !== 0 ? u : 0, a && d === d) {
        for (var f = s.length; f--; )
          if (s[f] === d)
            continue e;
        l.push(u);
      } else r(s, d, n) || (s !== l && s.push(d), l.push(u));
    }
  return l;
}
function is(e) {
  return e && e.length ? iT(e) : [];
}
const aT = () => ({
  compactSize: String,
  compactDirection: G.oneOf(Tn("horizontal", "vertical")).def("horizontal"),
  isFirstItem: Ie(),
  isLastItem: Ie()
}), hl = Au(null), Hu = (e, t) => {
  const n = hl.useInject(), o = w(() => {
    if (!n || ly(n)) return "";
    const {
      compactDirection: r,
      isFirstItem: i,
      isLastItem: a
    } = n, l = r === "vertical" ? "-vertical-" : "-";
    return ie({
      [`${e.value}-compact${l}item`]: !0,
      [`${e.value}-compact${l}first-item`]: i,
      [`${e.value}-compact${l}last-item`]: a,
      [`${e.value}-compact${l}item-rtl`]: t.value === "rtl"
    });
  });
  return {
    compactSize: w(() => n == null ? void 0 : n.compactSize),
    compactDirection: w(() => n == null ? void 0 : n.compactDirection),
    compactItemClassnames: o
  };
}, tm = q({
  name: "NoCompactStyle",
  setup(e, t) {
    let {
      slots: n
    } = t;
    return hl.useProvide(null), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
}), lT = () => ({
  prefixCls: String,
  size: {
    type: String
  },
  direction: G.oneOf(Tn("horizontal", "vertical")).def("horizontal"),
  align: G.oneOf(Tn("start", "end", "center", "baseline")),
  block: {
    type: Boolean,
    default: void 0
  }
}), sT = q({
  name: "CompactItem",
  props: aT(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    return hl.useProvide(e), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
});
q({
  name: "ASpaceCompact",
  inheritAttrs: !1,
  props: lT(),
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t;
    const {
      prefixCls: r,
      direction: i
    } = Ee("space-compact", e), a = hl.useInject(), [l, s] = k4(r), c = w(() => ie(r.value, s.value, {
      [`${r.value}-rtl`]: i.value === "rtl",
      [`${r.value}-block`]: e.block,
      [`${r.value}-vertical`]: e.direction === "vertical"
    }));
    return () => {
      var u;
      const d = tt(((u = o.default) === null || u === void 0 ? void 0 : u.call(o)) || []);
      return d.length === 0 ? null : l(m("div", z(z({}, n), {}, {
        class: [c.value, n.class]
      }), [d.map((f, p) => {
        var y;
        const g = f && f.key || `${r.value}-item-${p}`, v = !a || ly(a);
        return m(sT, {
          key: g,
          compactSize: (y = e.size) !== null && y !== void 0 ? y : "middle",
          compactDirection: e.direction,
          isFirstItem: p === 0 && (v || (a == null ? void 0 : a.isFirstItem)),
          isLastItem: p === d.length - 1 && (v || (a == null ? void 0 : a.isLastItem))
        }, {
          default: () => [f]
        });
      })]));
    };
  }
});
const cT = (e) => ({
  animationDuration: e,
  animationFillMode: "both"
}), uT = (e) => ({
  animationDuration: e,
  animationFillMode: "both"
}), yl = function(e, t, n, o) {
  const i = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
  return {
    [`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]: h(h({}, cT(o)), {
      animationPlayState: "paused"
    }),
    [`${i}${e}-leave`]: h(h({}, uT(o)), {
      animationPlayState: "paused"
    }),
    [`
      ${i}${e}-enter${e}-enter-active,
      ${i}${e}-appear${e}-appear-active
    `]: {
      animationName: t,
      animationPlayState: "running"
    },
    [`${i}${e}-leave${e}-leave-active`]: {
      animationName: n,
      animationPlayState: "running",
      pointerEvents: "none"
    }
  };
}, dT = new Se("antFadeIn", {
  "0%": {
    opacity: 0
  },
  "100%": {
    opacity: 1
  }
}), fT = new Se("antFadeOut", {
  "0%": {
    opacity: 1
  },
  "100%": {
    opacity: 0
  }
}), sy = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  const {
    antCls: n
  } = e, o = `${n}-fade`, r = t ? "&" : "";
  return [yl(o, dT, fT, e.motionDurationMid, t), {
    [`
        ${r}${o}-enter,
        ${r}${o}-appear
      `]: {
      opacity: 0,
      animationTimingFunction: "linear"
    },
    [`${r}${o}-leave`]: {
      animationTimingFunction: "linear"
    }
  }];
}, pT = new Se("antMoveDownIn", {
  "0%": {
    transform: "translate3d(0, 100%, 0)",
    transformOrigin: "0 0",
    opacity: 0
  },
  "100%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  }
}), mT = new Se("antMoveDownOut", {
  "0%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  },
  "100%": {
    transform: "translate3d(0, 100%, 0)",
    transformOrigin: "0 0",
    opacity: 0
  }
}), gT = new Se("antMoveLeftIn", {
  "0%": {
    transform: "translate3d(-100%, 0, 0)",
    transformOrigin: "0 0",
    opacity: 0
  },
  "100%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  }
}), vT = new Se("antMoveLeftOut", {
  "0%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  },
  "100%": {
    transform: "translate3d(-100%, 0, 0)",
    transformOrigin: "0 0",
    opacity: 0
  }
}), hT = new Se("antMoveRightIn", {
  "0%": {
    transform: "translate3d(100%, 0, 0)",
    transformOrigin: "0 0",
    opacity: 0
  },
  "100%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  }
}), yT = new Se("antMoveRightOut", {
  "0%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  },
  "100%": {
    transform: "translate3d(100%, 0, 0)",
    transformOrigin: "0 0",
    opacity: 0
  }
}), bT = new Se("antMoveUpIn", {
  "0%": {
    transform: "translate3d(0, -100%, 0)",
    transformOrigin: "0 0",
    opacity: 0
  },
  "100%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  }
}), ST = new Se("antMoveUpOut", {
  "0%": {
    transform: "translate3d(0, 0, 0)",
    transformOrigin: "0 0",
    opacity: 1
  },
  "100%": {
    transform: "translate3d(0, -100%, 0)",
    transformOrigin: "0 0",
    opacity: 0
  }
}), CT = {
  "move-up": {
    inKeyframes: bT,
    outKeyframes: ST
  },
  "move-down": {
    inKeyframes: pT,
    outKeyframes: mT
  },
  "move-left": {
    inKeyframes: gT,
    outKeyframes: vT
  },
  "move-right": {
    inKeyframes: hT,
    outKeyframes: yT
  }
}, Ra = (e, t) => {
  const {
    antCls: n
  } = e, o = `${n}-${t}`, {
    inKeyframes: r,
    outKeyframes: i
  } = CT[t];
  return [yl(o, r, i, e.motionDurationMid), {
    [`
        ${o}-enter,
        ${o}-appear
      `]: {
      opacity: 0,
      animationTimingFunction: e.motionEaseOutCirc
    },
    [`${o}-leave`]: {
      animationTimingFunction: e.motionEaseInOutCirc
    }
  }];
}, _u = new Se("antSlideUpIn", {
  "0%": {
    transform: "scaleY(0.8)",
    transformOrigin: "0% 0%",
    opacity: 0
  },
  "100%": {
    transform: "scaleY(1)",
    transformOrigin: "0% 0%",
    opacity: 1
  }
}), Vu = new Se("antSlideUpOut", {
  "0%": {
    transform: "scaleY(1)",
    transformOrigin: "0% 0%",
    opacity: 1
  },
  "100%": {
    transform: "scaleY(0.8)",
    transformOrigin: "0% 0%",
    opacity: 0
  }
}), Wu = new Se("antSlideDownIn", {
  "0%": {
    transform: "scaleY(0.8)",
    transformOrigin: "100% 100%",
    opacity: 0
  },
  "100%": {
    transform: "scaleY(1)",
    transformOrigin: "100% 100%",
    opacity: 1
  }
}), ku = new Se("antSlideDownOut", {
  "0%": {
    transform: "scaleY(1)",
    transformOrigin: "100% 100%",
    opacity: 1
  },
  "100%": {
    transform: "scaleY(0.8)",
    transformOrigin: "100% 100%",
    opacity: 0
  }
}), $T = new Se("antSlideLeftIn", {
  "0%": {
    transform: "scaleX(0.8)",
    transformOrigin: "0% 0%",
    opacity: 0
  },
  "100%": {
    transform: "scaleX(1)",
    transformOrigin: "0% 0%",
    opacity: 1
  }
}), wT = new Se("antSlideLeftOut", {
  "0%": {
    transform: "scaleX(1)",
    transformOrigin: "0% 0%",
    opacity: 1
  },
  "100%": {
    transform: "scaleX(0.8)",
    transformOrigin: "0% 0%",
    opacity: 0
  }
}), xT = new Se("antSlideRightIn", {
  "0%": {
    transform: "scaleX(0.8)",
    transformOrigin: "100% 0%",
    opacity: 0
  },
  "100%": {
    transform: "scaleX(1)",
    transformOrigin: "100% 0%",
    opacity: 1
  }
}), OT = new Se("antSlideRightOut", {
  "0%": {
    transform: "scaleX(1)",
    transformOrigin: "100% 0%",
    opacity: 1
  },
  "100%": {
    transform: "scaleX(0.8)",
    transformOrigin: "100% 0%",
    opacity: 0
  }
}), PT = {
  "slide-up": {
    inKeyframes: _u,
    outKeyframes: Vu
  },
  "slide-down": {
    inKeyframes: Wu,
    outKeyframes: ku
  },
  "slide-left": {
    inKeyframes: $T,
    outKeyframes: wT
  },
  "slide-right": {
    inKeyframes: xT,
    outKeyframes: OT
  }
}, er = (e, t) => {
  const {
    antCls: n
  } = e, o = `${n}-${t}`, {
    inKeyframes: r,
    outKeyframes: i
  } = PT[t];
  return [yl(o, r, i, e.motionDurationMid), {
    [`
      ${o}-enter,
      ${o}-appear
    `]: {
      transform: "scale(0)",
      transformOrigin: "0% 0%",
      opacity: 0,
      animationTimingFunction: e.motionEaseOutQuint
    },
    [`${o}-leave`]: {
      animationTimingFunction: e.motionEaseInQuint
    }
  }];
}, Xu = new Se("antZoomIn", {
  "0%": {
    transform: "scale(0.2)",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    opacity: 1
  }
}), IT = new Se("antZoomOut", {
  "0%": {
    transform: "scale(1)"
  },
  "100%": {
    transform: "scale(0.2)",
    opacity: 0
  }
}), nm = new Se("antZoomBigIn", {
  "0%": {
    transform: "scale(0.8)",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    opacity: 1
  }
}), om = new Se("antZoomBigOut", {
  "0%": {
    transform: "scale(1)"
  },
  "100%": {
    transform: "scale(0.8)",
    opacity: 0
  }
}), TT = new Se("antZoomUpIn", {
  "0%": {
    transform: "scale(0.8)",
    transformOrigin: "50% 0%",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    transformOrigin: "50% 0%"
  }
}), ET = new Se("antZoomUpOut", {
  "0%": {
    transform: "scale(1)",
    transformOrigin: "50% 0%"
  },
  "100%": {
    transform: "scale(0.8)",
    transformOrigin: "50% 0%",
    opacity: 0
  }
}), AT = new Se("antZoomLeftIn", {
  "0%": {
    transform: "scale(0.8)",
    transformOrigin: "0% 50%",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    transformOrigin: "0% 50%"
  }
}), MT = new Se("antZoomLeftOut", {
  "0%": {
    transform: "scale(1)",
    transformOrigin: "0% 50%"
  },
  "100%": {
    transform: "scale(0.8)",
    transformOrigin: "0% 50%",
    opacity: 0
  }
}), RT = new Se("antZoomRightIn", {
  "0%": {
    transform: "scale(0.8)",
    transformOrigin: "100% 50%",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    transformOrigin: "100% 50%"
  }
}), DT = new Se("antZoomRightOut", {
  "0%": {
    transform: "scale(1)",
    transformOrigin: "100% 50%"
  },
  "100%": {
    transform: "scale(0.8)",
    transformOrigin: "100% 50%",
    opacity: 0
  }
}), FT = new Se("antZoomDownIn", {
  "0%": {
    transform: "scale(0.8)",
    transformOrigin: "50% 100%",
    opacity: 0
  },
  "100%": {
    transform: "scale(1)",
    transformOrigin: "50% 100%"
  }
}), LT = new Se("antZoomDownOut", {
  "0%": {
    transform: "scale(1)",
    transformOrigin: "50% 100%"
  },
  "100%": {
    transform: "scale(0.8)",
    transformOrigin: "50% 100%",
    opacity: 0
  }
}), NT = {
  zoom: {
    inKeyframes: Xu,
    outKeyframes: IT
  },
  "zoom-big": {
    inKeyframes: nm,
    outKeyframes: om
  },
  "zoom-big-fast": {
    inKeyframes: nm,
    outKeyframes: om
  },
  "zoom-left": {
    inKeyframes: AT,
    outKeyframes: MT
  },
  "zoom-right": {
    inKeyframes: RT,
    outKeyframes: DT
  },
  "zoom-up": {
    inKeyframes: TT,
    outKeyframes: ET
  },
  "zoom-down": {
    inKeyframes: FT,
    outKeyframes: LT
  }
}, yi = (e, t) => {
  const {
    antCls: n
  } = e, o = `${n}-${t}`, {
    inKeyframes: r,
    outKeyframes: i
  } = NT[t];
  return [yl(o, r, i, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
    [`
        ${o}-enter,
        ${o}-appear
      `]: {
      transform: "scale(0)",
      opacity: 0,
      animationTimingFunction: e.motionEaseOutCirc,
      "&-prepare": {
        transform: "none"
      }
    },
    [`${o}-leave`]: {
      animationTimingFunction: e.motionEaseInOutCirc
    }
  }];
}, Ku = (e) => ({
  [e.componentCls]: {
    // For common/openAnimation
    [`${e.antCls}-motion-collapse-legacy`]: {
      overflow: "hidden",
      "&-active": {
        transition: `height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
      }
    },
    [`${e.antCls}-motion-collapse`]: {
      overflow: "hidden",
      transition: `height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
    }
  }
}), rm = (e) => {
  const {
    controlPaddingHorizontal: t
  } = e;
  return {
    position: "relative",
    display: "block",
    minHeight: e.controlHeight,
    padding: `${(e.controlHeight - e.fontSize * e.lineHeight) / 2}px ${t}px`,
    color: e.colorText,
    fontWeight: "normal",
    fontSize: e.fontSize,
    lineHeight: e.lineHeight,
    boxSizing: "border-box"
  };
}, jT = (e) => {
  const {
    antCls: t,
    componentCls: n
  } = e, o = `${n}-item`;
  return [
    {
      [`${n}-dropdown`]: h(h({}, Ue(e)), {
        position: "absolute",
        top: -9999,
        zIndex: e.zIndexPopup,
        boxSizing: "border-box",
        padding: e.paddingXXS,
        overflow: "hidden",
        fontSize: e.fontSize,
        // Fix select render lag of long text in chrome
        // https://github.com/ant-design/ant-design/issues/11456
        // https://github.com/ant-design/ant-design/issues/11843
        fontVariant: "initial",
        backgroundColor: e.colorBgElevated,
        borderRadius: e.borderRadiusLG,
        outline: "none",
        boxShadow: e.boxShadowSecondary,
        [`
            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
          `]: {
          animationName: _u
        },
        [`
            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
          `]: {
          animationName: Wu
        },
        [`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]: {
          animationName: Vu
        },
        [`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]: {
          animationName: ku
        },
        "&-hidden": {
          display: "none"
        },
        "&-empty": {
          color: e.colorTextDisabled
        },
        // ========================= Options =========================
        [`${o}-empty`]: h(h({}, rm(e)), {
          color: e.colorTextDisabled
        }),
        [`${o}`]: h(h({}, rm(e)), {
          cursor: "pointer",
          transition: `background ${e.motionDurationSlow} ease`,
          borderRadius: e.borderRadiusSM,
          // =========== Group ============
          "&-group": {
            color: e.colorTextDescription,
            fontSize: e.fontSizeSM,
            cursor: "default"
          },
          // =========== Option ===========
          "&-option": {
            display: "flex",
            "&-content": h({
              flex: "auto"
            }, En),
            "&-state": {
              flex: "none"
            },
            [`&-active:not(${o}-option-disabled)`]: {
              backgroundColor: e.controlItemBgHover
            },
            [`&-selected:not(${o}-option-disabled)`]: {
              color: e.colorText,
              fontWeight: e.fontWeightStrong,
              backgroundColor: e.controlItemBgActive,
              [`${o}-option-state`]: {
                color: e.colorPrimary
              }
            },
            "&-disabled": {
              [`&${o}-option-selected`]: {
                backgroundColor: e.colorBgContainerDisabled
              },
              color: e.colorTextDisabled,
              cursor: "not-allowed"
            },
            "&-grouped": {
              paddingInlineStart: e.controlPaddingHorizontal * 2
            }
          }
        }),
        // =========================== RTL ===========================
        "&-rtl": {
          direction: "rtl"
        }
      })
    },
    // Follow code may reuse in other components
    er(e, "slide-up"),
    er(e, "slide-down"),
    Ra(e, "move-up"),
    Ra(e, "move-down")
  ];
}, wo = 2;
function cy(e) {
  let {
    controlHeightSM: t,
    controlHeight: n,
    lineWidth: o
  } = e;
  const r = (n - t) / 2 - o, i = Math.ceil(r / 2);
  return [r, i];
}
function as(e, t) {
  const {
    componentCls: n,
    iconCls: o
  } = e, r = `${n}-selection-overflow`, i = e.controlHeightSM, [a] = cy(e), l = t ? `${n}-${t}` : "";
  return {
    [`${n}-multiple${l}`]: {
      fontSize: e.fontSize,
      /**
       * Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome
       * may update to redesign with its align logic.
       */
      // =========================== Overflow ===========================
      [r]: {
        position: "relative",
        display: "flex",
        flex: "auto",
        flexWrap: "wrap",
        maxWidth: "100%",
        "&-item": {
          flex: "none",
          alignSelf: "center",
          maxWidth: "100%",
          display: "inline-flex"
        }
      },
      // ========================= Selector =========================
      [`${n}-selector`]: {
        display: "flex",
        flexWrap: "wrap",
        alignItems: "center",
        // Multiple is little different that horizontal is follow the vertical
        padding: `${a - wo}px ${wo * 2}px`,
        borderRadius: e.borderRadius,
        [`${n}-show-search&`]: {
          cursor: "text"
        },
        [`${n}-disabled&`]: {
          background: e.colorBgContainerDisabled,
          cursor: "not-allowed"
        },
        "&:after": {
          display: "inline-block",
          width: 0,
          margin: `${wo}px 0`,
          lineHeight: `${i}px`,
          content: '"\\a0"'
        }
      },
      [`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]: {
        paddingInlineEnd: e.fontSizeIcon + e.controlPaddingHorizontal
      },
      // ======================== Selections ========================
      [`${n}-selection-item`]: {
        position: "relative",
        display: "flex",
        flex: "none",
        boxSizing: "border-box",
        maxWidth: "100%",
        height: i,
        marginTop: wo,
        marginBottom: wo,
        lineHeight: `${i - e.lineWidth * 2}px`,
        background: e.colorFillSecondary,
        border: `${e.lineWidth}px solid ${e.colorSplit}`,
        borderRadius: e.borderRadiusSM,
        cursor: "default",
        transition: `font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,
        userSelect: "none",
        marginInlineEnd: wo * 2,
        paddingInlineStart: e.paddingXS,
        paddingInlineEnd: e.paddingXS / 2,
        [`${n}-disabled&`]: {
          color: e.colorTextDisabled,
          borderColor: e.colorBorder,
          cursor: "not-allowed"
        },
        // It's ok not to do this, but 24px makes bottom narrow in view should adjust
        "&-content": {
          display: "inline-block",
          marginInlineEnd: e.paddingXS / 2,
          overflow: "hidden",
          whiteSpace: "pre",
          textOverflow: "ellipsis"
        },
        "&-remove": h(h({}, tl()), {
          display: "inline-block",
          color: e.colorIcon,
          fontWeight: "bold",
          fontSize: 10,
          lineHeight: "inherit",
          cursor: "pointer",
          [`> ${o}`]: {
            verticalAlign: "-0.2em"
          },
          "&:hover": {
            color: e.colorIconHover
          }
        })
      },
      // ========================== Input ==========================
      [`${r}-item + ${r}-item`]: {
        [`${n}-selection-search`]: {
          marginInlineStart: 0
        }
      },
      [`${n}-selection-search`]: {
        display: "inline-flex",
        position: "relative",
        maxWidth: "100%",
        marginInlineStart: e.inputPaddingHorizontalBase - a,
        "\n          &-input,\n          &-mirror\n        ": {
          height: i,
          fontFamily: e.fontFamily,
          lineHeight: `${i}px`,
          transition: `all ${e.motionDurationSlow}`
        },
        "&-input": {
          width: "100%",
          minWidth: 4.1
          // fix search cursor missing
        },
        "&-mirror": {
          position: "absolute",
          top: 0,
          insetInlineStart: 0,
          insetInlineEnd: "auto",
          zIndex: 999,
          whiteSpace: "pre",
          visibility: "hidden"
        }
      },
      // ======================= Placeholder =======================
      [`${n}-selection-placeholder `]: {
        position: "absolute",
        top: "50%",
        insetInlineStart: e.inputPaddingHorizontalBase,
        insetInlineEnd: e.inputPaddingHorizontalBase,
        transform: "translateY(-50%)",
        transition: `all ${e.motionDurationSlow}`
      }
    }
  };
}
function zT(e) {
  const {
    componentCls: t
  } = e, n = Me(e, {
    controlHeight: e.controlHeightSM,
    controlHeightSM: e.controlHeightXS,
    borderRadius: e.borderRadiusSM,
    borderRadiusSM: e.borderRadiusXS
  }), [, o] = cy(e);
  return [
    as(e),
    // ======================== Small ========================
    // Shared
    as(n, "sm"),
    // Padding
    {
      [`${t}-multiple${t}-sm`]: {
        [`${t}-selection-placeholder`]: {
          insetInlineStart: e.controlPaddingHorizontalSM - e.lineWidth,
          insetInlineEnd: "auto"
        },
        // https://github.com/ant-design/ant-design/issues/29559
        [`${t}-selection-search`]: {
          marginInlineStart: o
        }
      }
    },
    // ======================== Large ========================
    // Shared
    as(Me(e, {
      fontSize: e.fontSizeLG,
      controlHeight: e.controlHeightLG,
      controlHeightSM: e.controlHeight,
      borderRadius: e.borderRadiusLG,
      borderRadiusSM: e.borderRadius
    }), "lg")
  ];
}
function ls(e, t) {
  const {
    componentCls: n,
    inputPaddingHorizontalBase: o,
    borderRadius: r
  } = e, i = e.controlHeight - e.lineWidth * 2, a = Math.ceil(e.fontSize * 1.25), l = t ? `${n}-${t}` : "";
  return {
    [`${n}-single${l}`]: {
      fontSize: e.fontSize,
      // ========================= Selector =========================
      [`${n}-selector`]: h(h({}, Ue(e)), {
        display: "flex",
        borderRadius: r,
        [`${n}-selection-search`]: {
          position: "absolute",
          top: 0,
          insetInlineStart: o,
          insetInlineEnd: o,
          bottom: 0,
          "&-input": {
            width: "100%"
          }
        },
        [`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]: {
          padding: 0,
          lineHeight: `${i}px`,
          transition: `all ${e.motionDurationSlow}`,
          // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:
          "@supports (-moz-appearance: meterbar)": {
            lineHeight: `${i}px`
          }
        },
        [`${n}-selection-item`]: {
          position: "relative",
          userSelect: "none"
        },
        [`${n}-selection-placeholder`]: {
          transition: "none",
          pointerEvents: "none"
        },
        // For common baseline align
        [[
          "&:after",
          /* For '' value baseline align */
          `${n}-selection-item:after`,
          /* For undefined value baseline align */
          `${n}-selection-placeholder:after`
        ].join(",")]: {
          display: "inline-block",
          width: 0,
          visibility: "hidden",
          content: '"\\a0"'
        }
      }),
      [`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]: {
        paddingInlineEnd: a
      },
      // Opacity selection if open
      [`&${n}-open ${n}-selection-item`]: {
        color: e.colorTextPlaceholder
      },
      // ========================== Input ==========================
      // We only change the style of non-customize input which is only support by `combobox` mode.
      // Not customize
      [`&:not(${n}-customize-input)`]: {
        [`${n}-selector`]: {
          width: "100%",
          height: e.controlHeight,
          padding: `0 ${o}px`,
          [`${n}-selection-search-input`]: {
            height: i
          },
          "&:after": {
            lineHeight: `${i}px`
          }
        }
      },
      [`&${n}-customize-input`]: {
        [`${n}-selector`]: {
          "&:after": {
            display: "none"
          },
          [`${n}-selection-search`]: {
            position: "static",
            width: "100%"
          },
          [`${n}-selection-placeholder`]: {
            position: "absolute",
            insetInlineStart: 0,
            insetInlineEnd: 0,
            padding: `0 ${o}px`,
            "&:after": {
              display: "none"
            }
          }
        }
      }
    }
  };
}
function BT(e) {
  const {
    componentCls: t
  } = e, n = e.controlPaddingHorizontalSM - e.lineWidth;
  return [
    ls(e),
    // ======================== Small ========================
    // Shared
    ls(Me(e, {
      controlHeight: e.controlHeightSM,
      borderRadius: e.borderRadiusSM
    }), "sm"),
    // padding
    {
      [`${t}-single${t}-sm`]: {
        [`&:not(${t}-customize-input)`]: {
          [`${t}-selection-search`]: {
            insetInlineStart: n,
            insetInlineEnd: n
          },
          [`${t}-selector`]: {
            padding: `0 ${n}px`
          },
          // With arrow should provides `padding-right` to show the arrow
          [`&${t}-show-arrow ${t}-selection-search`]: {
            insetInlineEnd: n + e.fontSize * 1.5
          },
          [`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]: {
            paddingInlineEnd: e.fontSize * 1.5
          }
        }
      }
    },
    // ======================== Large ========================
    // Shared
    ls(Me(e, {
      controlHeight: e.controlHeightLG,
      fontSize: e.fontSizeLG,
      borderRadius: e.borderRadiusLG
    }), "lg")
  ];
}
function HT(e, t, n) {
  const {
    focusElCls: o,
    focus: r,
    borderElCls: i
  } = n, a = i ? "> *" : "", l = ["hover", r ? "focus" : null, "active"].filter(Boolean).map((s) => `&:${s} ${a}`).join(",");
  return {
    [`&-item:not(${t}-last-item)`]: {
      marginInlineEnd: -e.lineWidth
    },
    "&-item": h(h({
      [l]: {
        zIndex: 2
      }
    }, o ? {
      [`&${o}`]: {
        zIndex: 2
      }
    } : {}), {
      [`&[disabled] ${a}`]: {
        zIndex: 0
      }
    })
  };
}
function _T(e, t, n) {
  const {
    borderElCls: o
  } = n, r = o ? `> ${o}` : "";
  return {
    [`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]: {
      borderRadius: 0
    },
    [`&-item:not(${t}-last-item)${t}-first-item`]: {
      [`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]: {
        borderStartEndRadius: 0,
        borderEndEndRadius: 0
      }
    },
    [`&-item:not(${t}-first-item)${t}-last-item`]: {
      [`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]: {
        borderStartStartRadius: 0,
        borderEndStartRadius: 0
      }
    }
  };
}
function bl(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
    focus: !0
  };
  const {
    componentCls: n
  } = e, o = `${n}-compact`;
  return {
    [o]: h(h({}, HT(e, o, t)), _T(n, o, t))
  };
}
const VT = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    position: "relative",
    backgroundColor: e.colorBgContainer,
    border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
    transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
    input: {
      cursor: "pointer"
    },
    [`${t}-show-search&`]: {
      cursor: "text",
      input: {
        cursor: "auto",
        color: "inherit"
      }
    },
    [`${t}-disabled&`]: {
      color: e.colorTextDisabled,
      background: e.colorBgContainerDisabled,
      cursor: "not-allowed",
      [`${t}-multiple&`]: {
        background: e.colorBgContainerDisabled
      },
      input: {
        cursor: "not-allowed"
      }
    }
  };
}, ss = function(e, t) {
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
  const {
    componentCls: o,
    borderHoverColor: r,
    outlineColor: i,
    antCls: a
  } = t, l = n ? {
    [`${o}-selector`]: {
      borderColor: r
    }
  } : {};
  return {
    [e]: {
      [`&:not(${o}-disabled):not(${o}-customize-input):not(${a}-pagination-size-changer)`]: h(h({}, l), {
        [`${o}-focused& ${o}-selector`]: {
          borderColor: r,
          boxShadow: `0 0 0 ${t.controlOutlineWidth}px ${i}`,
          borderInlineEndWidth: `${t.controlLineWidth}px !important`,
          outline: 0
        },
        [`&:hover ${o}-selector`]: {
          borderColor: r,
          borderInlineEndWidth: `${t.controlLineWidth}px !important`
        }
      })
    }
  };
}, WT = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [`${t}-selection-search-input`]: {
      margin: 0,
      padding: 0,
      background: "transparent",
      border: "none",
      outline: "none",
      appearance: "none",
      "&::-webkit-search-cancel-button": {
        display: "none",
        "-webkit-appearance": "none"
      }
    }
  };
}, kT = (e) => {
  const {
    componentCls: t,
    inputPaddingHorizontalBase: n,
    iconCls: o
  } = e;
  return {
    [t]: h(h({}, Ue(e)), {
      position: "relative",
      display: "inline-block",
      cursor: "pointer",
      [`&:not(${t}-customize-input) ${t}-selector`]: h(h({}, VT(e)), WT(e)),
      // [`&:not(&-disabled):hover ${selectCls}-selector`]: {
      //   ...genHoverStyle(token),
      // },
      // ======================== Selection ========================
      [`${t}-selection-item`]: h({
        flex: 1,
        fontWeight: "normal"
      }, En),
      // ======================= Placeholder =======================
      [`${t}-selection-placeholder`]: h(h({}, En), {
        flex: 1,
        color: e.colorTextPlaceholder,
        pointerEvents: "none"
      }),
      // ========================== Arrow ==========================
      [`${t}-arrow`]: h(h({}, tl()), {
        position: "absolute",
        top: "50%",
        insetInlineStart: "auto",
        insetInlineEnd: n,
        height: e.fontSizeIcon,
        marginTop: -e.fontSizeIcon / 2,
        color: e.colorTextQuaternary,
        fontSize: e.fontSizeIcon,
        lineHeight: 1,
        textAlign: "center",
        pointerEvents: "none",
        display: "flex",
        alignItems: "center",
        [o]: {
          verticalAlign: "top",
          transition: `transform ${e.motionDurationSlow}`,
          "> svg": {
            verticalAlign: "top"
          },
          [`&:not(${t}-suffix)`]: {
            pointerEvents: "auto"
          }
        },
        [`${t}-disabled &`]: {
          cursor: "not-allowed"
        },
        "> *:not(:last-child)": {
          marginInlineEnd: 8
          // FIXME: magic
        }
      }),
      // ========================== Clear ==========================
      [`${t}-clear`]: {
        position: "absolute",
        top: "50%",
        insetInlineStart: "auto",
        insetInlineEnd: n,
        zIndex: 1,
        display: "inline-block",
        width: e.fontSizeIcon,
        height: e.fontSizeIcon,
        marginTop: -e.fontSizeIcon / 2,
        color: e.colorTextQuaternary,
        fontSize: e.fontSizeIcon,
        fontStyle: "normal",
        lineHeight: 1,
        textAlign: "center",
        textTransform: "none",
        background: e.colorBgContainer,
        cursor: "pointer",
        opacity: 0,
        transition: `color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,
        textRendering: "auto",
        "&:before": {
          display: "block"
        },
        "&:hover": {
          color: e.colorTextTertiary
        }
      },
      "&:hover": {
        [`${t}-clear`]: {
          opacity: 1
        }
      }
    }),
    // ========================= Feedback ==========================
    [`${t}-has-feedback`]: {
      [`${t}-clear`]: {
        insetInlineEnd: n + e.fontSize + e.paddingXXS
      }
    }
  };
}, XT = (e) => {
  const {
    componentCls: t
  } = e;
  return [
    {
      [t]: {
        // ==================== BorderLess ====================
        [`&-borderless ${t}-selector`]: {
          backgroundColor: "transparent !important",
          borderColor: "transparent !important",
          boxShadow: "none !important"
        },
        // ==================== In Form ====================
        [`&${t}-in-form-item`]: {
          width: "100%"
        }
      }
    },
    // =====================================================
    // ==                       LTR                       ==
    // =====================================================
    // Base
    kT(e),
    // Single
    BT(e),
    // Multiple
    zT(e),
    // Dropdown
    jT(e),
    // =====================================================
    // ==                       RTL                       ==
    // =====================================================
    {
      [`${t}-rtl`]: {
        direction: "rtl"
      }
    },
    // =====================================================
    // ==                     Status                      ==
    // =====================================================
    ss(t, Me(e, {
      borderHoverColor: e.colorPrimaryHover,
      outlineColor: e.controlOutline
    })),
    ss(`${t}-status-error`, Me(e, {
      borderHoverColor: e.colorErrorHover,
      outlineColor: e.colorErrorOutline
    }), !0),
    ss(`${t}-status-warning`, Me(e, {
      borderHoverColor: e.colorWarningHover,
      outlineColor: e.colorWarningOutline
    }), !0),
    // =====================================================
    // ==             Space Compact                       ==
    // =====================================================
    bl(e, {
      borderElCls: `${t}-selector`,
      focusElCls: `${t}-focused`
    })
  ];
}, KT = We("Select", (e, t) => {
  let {
    rootPrefixCls: n
  } = t;
  const o = Me(e, {
    rootPrefixCls: n,
    inputPaddingHorizontalBase: e.paddingSM - 1
  });
  return [XT(o)];
}, (e) => ({
  zIndexPopup: e.zIndexPopupBase + 50
}));
var GT = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" };
function im(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      UT(e, r, n[r]);
    });
  }
  return e;
}
function UT(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Gu = function(t, n) {
  var o = im({}, t, n.attrs);
  return m(de, im({}, o, {
    icon: GT
  }), null);
};
Gu.displayName = "CheckCircleOutlined";
Gu.inheritAttrs = !1;
var qT = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
function am(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      YT(e, r, n[r]);
    });
  }
  return e;
}
function YT(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Uu = function(t, n) {
  var o = am({}, t, n.attrs);
  return m(de, am({}, o, {
    icon: qT
  }), null);
};
Uu.displayName = "ExclamationCircleOutlined";
Uu.inheritAttrs = !1;
var ZT = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" };
function lm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      QT(e, r, n[r]);
    });
  }
  return e;
}
function QT(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var qu = function(t, n) {
  var o = lm({}, t, n.attrs);
  return m(de, lm({}, o, {
    icon: ZT
  }), null);
};
qu.displayName = "InfoCircleOutlined";
qu.inheritAttrs = !1;
var JT = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" };
function sm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      eE(e, r, n[r]);
    });
  }
  return e;
}
function eE(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Yu = function(t, n) {
  var o = sm({}, t, n.attrs);
  return m(de, sm({}, o, {
    icon: JT
  }), null);
};
Yu.displayName = "CloseCircleOutlined";
Yu.inheritAttrs = !1;
var tE = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" };
function cm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      nE(e, r, n[r]);
    });
  }
  return e;
}
function nE(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var zn = function(t, n) {
  var o = cm({}, t, n.attrs);
  return m(de, cm({}, o, {
    icon: tE
  }), null);
};
zn.displayName = "CheckCircleFilled";
zn.inheritAttrs = !1;
var oE = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" };
function um(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      rE(e, r, n[r]);
    });
  }
  return e;
}
function rE(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var bo = function(t, n) {
  var o = um({}, t, n.attrs);
  return m(de, um({}, o, {
    icon: oE
  }), null);
};
bo.displayName = "ExclamationCircleFilled";
bo.inheritAttrs = !1;
var iE = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" };
function dm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      aE(e, r, n[r]);
    });
  }
  return e;
}
function aE(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var ur = function(t, n) {
  var o = dm({}, t, n.attrs);
  return m(de, dm({}, o, {
    icon: iE
  }), null);
};
ur.displayName = "InfoCircleFilled";
ur.inheritAttrs = !1;
const Or = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], lE = (e) => ({
  xs: `(max-width: ${e.screenXSMax}px)`,
  sm: `(min-width: ${e.screenSM}px)`,
  md: `(min-width: ${e.screenMD}px)`,
  lg: `(min-width: ${e.screenLG}px)`,
  xl: `(min-width: ${e.screenXL}px)`,
  xxl: `(min-width: ${e.screenXXL}px)`,
  xxxl: `{min-width: ${e.screenXXXL}px}`
});
function uy() {
  const [, e] = go();
  return w(() => {
    const t = lE(e.value), n = /* @__PURE__ */ new Map();
    let o = -1, r = {};
    return {
      matchHandlers: {},
      dispatch(i) {
        return r = i, n.forEach((a) => a(r)), n.size >= 1;
      },
      subscribe(i) {
        return n.size || this.register(), o += 1, n.set(o, i), i(r), o;
      },
      unsubscribe(i) {
        n.delete(i), n.size || this.unregister();
      },
      unregister() {
        Object.keys(t).forEach((i) => {
          const a = t[i], l = this.matchHandlers[a];
          l == null || l.mql.removeListener(l == null ? void 0 : l.listener);
        }), n.clear();
      },
      register() {
        Object.keys(t).forEach((i) => {
          const a = t[i], l = (c) => {
            let {
              matches: u
            } = c;
            this.dispatch(h(h({}, r), {
              [i]: u
            }));
          }, s = window.matchMedia(a);
          s.addListener(l), this.matchHandlers[a] = {
            mql: s,
            listener: l
          }, l(s);
        });
      },
      responsiveMap: t
    };
  });
}
function sE() {
  const e = K({});
  let t = null;
  const n = uy();
  return be(() => {
    t = n.value.subscribe((o) => {
      e.value = o;
    });
  }), Fn(() => {
    n.value.unsubscribe(t);
  }), e;
}
function cE(e) {
  const t = K();
  return we(() => {
    t.value = e();
  }, {
    flush: "sync"
    // needed so updates are immediate.
  }), t;
}
const uE = (e) => {
  const {
    antCls: t,
    componentCls: n,
    iconCls: o,
    avatarBg: r,
    avatarColor: i,
    containerSize: a,
    containerSizeLG: l,
    containerSizeSM: s,
    textFontSize: c,
    textFontSizeLG: u,
    textFontSizeSM: d,
    borderRadius: f,
    borderRadiusLG: p,
    borderRadiusSM: y,
    lineWidth: g,
    lineType: v
  } = e, b = (O, C, x) => ({
    width: O,
    height: O,
    lineHeight: `${O - g * 2}px`,
    borderRadius: "50%",
    [`&${n}-square`]: {
      borderRadius: x
    },
    [`${n}-string`]: {
      position: "absolute",
      left: {
        _skip_check_: !0,
        value: "50%"
      },
      transformOrigin: "0 center"
    },
    [`&${n}-icon`]: {
      fontSize: C,
      [`> ${o}`]: {
        margin: 0
      }
    }
  });
  return {
    [n]: h(h(h(h({}, Ue(e)), {
      position: "relative",
      display: "inline-block",
      overflow: "hidden",
      color: i,
      whiteSpace: "nowrap",
      textAlign: "center",
      verticalAlign: "middle",
      background: r,
      border: `${g}px ${v} transparent`,
      "&-image": {
        background: "transparent"
      },
      [`${t}-image-img`]: {
        display: "block"
      }
    }), b(a, c, f)), {
      "&-lg": h({}, b(l, u, p)),
      "&-sm": h({}, b(s, d, y)),
      "> img": {
        display: "block",
        width: "100%",
        height: "100%",
        objectFit: "cover"
      }
    })
  };
}, dE = (e) => {
  const {
    componentCls: t,
    groupBorderColor: n,
    groupOverlapping: o,
    groupSpace: r
  } = e;
  return {
    [`${t}-group`]: {
      display: "inline-flex",
      [`${t}`]: {
        borderColor: n
      },
      "> *:not(:first-child)": {
        marginInlineStart: o
      }
    },
    [`${t}-group-popover`]: {
      [`${t} + ${t}`]: {
        marginInlineStart: r
      }
    }
  };
}, dy = We("Avatar", (e) => {
  const {
    colorTextLightSolid: t,
    colorTextPlaceholder: n
  } = e, o = Me(e, {
    avatarBg: n,
    avatarColor: t
  });
  return [uE(o), dE(o)];
}, (e) => {
  const {
    controlHeight: t,
    controlHeightLG: n,
    controlHeightSM: o,
    fontSize: r,
    fontSizeLG: i,
    fontSizeXL: a,
    fontSizeHeading3: l,
    marginXS: s,
    marginXXS: c,
    colorBorderBg: u
  } = e;
  return {
    containerSize: t,
    containerSizeLG: n,
    containerSizeSM: o,
    textFontSize: Math.round((i + a) / 2),
    textFontSizeLG: l,
    textFontSizeSM: r,
    groupSpace: c,
    groupOverlapping: -s,
    groupBorderColor: u
  };
}), fy = Symbol("AvatarContextKey"), fE = () => Ce(fy, {}), pE = (e) => $e(fy, e), mE = () => ({
  prefixCls: String,
  shape: {
    type: String,
    default: "circle"
  },
  size: {
    type: [Number, String, Object],
    default: () => "default"
  },
  src: String,
  /** Srcset of image avatar */
  srcset: String,
  icon: G.any,
  alt: String,
  gap: Number,
  draggable: {
    type: Boolean,
    default: void 0
  },
  crossOrigin: String,
  loadError: {
    type: Function
  }
}), oo = q({
  compatConfig: {
    MODE: 3
  },
  name: "AAvatar",
  inheritAttrs: !1,
  props: mE(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = K(!0), i = K(!1), a = K(1), l = K(null), s = K(null), {
      prefixCls: c
    } = Ee("avatar", e), [u, d] = dy(c), f = fE(), p = w(() => e.size === "default" ? f.size : e.size), y = sE(), g = cE(() => {
      if (typeof e.size != "object")
        return;
      const C = Or.find((S) => y.value[S]);
      return e.size[C];
    }), v = (C) => g.value ? {
      width: `${g.value}px`,
      height: `${g.value}px`,
      lineHeight: `${g.value}px`,
      fontSize: `${C ? g.value / 2 : 18}px`
    } : {}, b = () => {
      if (!l.value || !s.value)
        return;
      const C = l.value.offsetWidth, x = s.value.offsetWidth;
      if (C !== 0 && x !== 0) {
        const {
          gap: S = 4
        } = e;
        S * 2 < x && (a.value = x - S * 2 < C ? (x - S * 2) / C : 1);
      }
    }, O = () => {
      const {
        loadError: C
      } = e;
      (C == null ? void 0 : C()) !== !1 && (r.value = !1);
    };
    return ee(() => e.src, () => {
      De(() => {
        r.value = !0, a.value = 1;
      });
    }), ee(() => e.gap, () => {
      De(() => {
        b();
      });
    }), be(() => {
      De(() => {
        b(), i.value = !0;
      });
    }), () => {
      var C, x;
      const {
        shape: S,
        src: P,
        alt: $,
        srcset: T,
        draggable: E,
        crossOrigin: M
      } = e, R = (C = f.shape) !== null && C !== void 0 ? C : S, N = di(n, e, "icon"), F = c.value, H = {
        [`${o.class}`]: !!o.class,
        [F]: !0,
        [`${F}-lg`]: p.value === "large",
        [`${F}-sm`]: p.value === "small",
        [`${F}-${R}`]: !0,
        [`${F}-image`]: P && r.value,
        [`${F}-icon`]: N,
        [d.value]: !0
      }, I = typeof p.value == "number" ? {
        width: `${p.value}px`,
        height: `${p.value}px`,
        lineHeight: `${p.value}px`,
        fontSize: N ? `${p.value / 2}px` : "18px"
      } : {}, A = (x = n.default) === null || x === void 0 ? void 0 : x.call(n);
      let j;
      if (P && r.value)
        j = m("img", {
          draggable: E,
          src: P,
          srcset: T,
          onError: O,
          alt: $,
          crossorigin: M
        }, null);
      else if (N)
        j = N;
      else if (i.value || a.value !== 1) {
        const L = `scale(${a.value}) translateX(-50%)`, D = {
          msTransform: L,
          WebkitTransform: L,
          transform: L
        }, _ = typeof p.value == "number" ? {
          lineHeight: `${p.value}px`
        } : {};
        j = m(rr, {
          onResize: b
        }, {
          default: () => [m("span", {
            class: `${F}-string`,
            ref: l,
            style: h(h({}, _), D)
          }, [A])]
        });
      } else
        j = m("span", {
          class: `${F}-string`,
          ref: l,
          style: {
            opacity: 0
          }
        }, [A]);
      return u(m("span", z(z({}, o), {}, {
        ref: s,
        class: H,
        style: [I, v(!!N), o.style]
      }), [j]));
    };
  }
}), xt = {
  adjustX: 1,
  adjustY: 1
}, Ot = [0, 0], py = {
  left: {
    points: ["cr", "cl"],
    overflow: xt,
    offset: [-4, 0],
    targetOffset: Ot
  },
  right: {
    points: ["cl", "cr"],
    overflow: xt,
    offset: [4, 0],
    targetOffset: Ot
  },
  top: {
    points: ["bc", "tc"],
    overflow: xt,
    offset: [0, -4],
    targetOffset: Ot
  },
  bottom: {
    points: ["tc", "bc"],
    overflow: xt,
    offset: [0, 4],
    targetOffset: Ot
  },
  topLeft: {
    points: ["bl", "tl"],
    overflow: xt,
    offset: [0, -4],
    targetOffset: Ot
  },
  leftTop: {
    points: ["tr", "tl"],
    overflow: xt,
    offset: [-4, 0],
    targetOffset: Ot
  },
  topRight: {
    points: ["br", "tr"],
    overflow: xt,
    offset: [0, -4],
    targetOffset: Ot
  },
  rightTop: {
    points: ["tl", "tr"],
    overflow: xt,
    offset: [4, 0],
    targetOffset: Ot
  },
  bottomRight: {
    points: ["tr", "br"],
    overflow: xt,
    offset: [0, 4],
    targetOffset: Ot
  },
  rightBottom: {
    points: ["bl", "br"],
    overflow: xt,
    offset: [4, 0],
    targetOffset: Ot
  },
  bottomLeft: {
    points: ["tl", "bl"],
    overflow: xt,
    offset: [0, 4],
    targetOffset: Ot
  },
  leftBottom: {
    points: ["br", "bl"],
    overflow: xt,
    offset: [-4, 0],
    targetOffset: Ot
  }
}, gE = {
  prefixCls: String,
  id: String,
  overlayInnerStyle: G.any
}, vE = q({
  compatConfig: {
    MODE: 3
  },
  name: "TooltipContent",
  props: gE,
  setup(e, t) {
    let {
      slots: n
    } = t;
    return () => {
      var o;
      return m("div", {
        class: `${e.prefixCls}-inner`,
        id: e.id,
        role: "tooltip",
        style: e.overlayInnerStyle
      }, [(o = n.overlay) === null || o === void 0 ? void 0 : o.call(n)]);
    };
  }
});
var hE = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function fm() {
}
const yE = q({
  compatConfig: {
    MODE: 3
  },
  name: "Tooltip",
  inheritAttrs: !1,
  props: {
    trigger: G.any.def(["hover"]),
    defaultVisible: {
      type: Boolean,
      default: void 0
    },
    visible: {
      type: Boolean,
      default: void 0
    },
    placement: G.string.def("right"),
    transitionName: String,
    animation: G.any,
    afterVisibleChange: G.func.def(() => {
    }),
    overlayStyle: {
      type: Object,
      default: void 0
    },
    overlayClassName: String,
    prefixCls: G.string.def("rc-tooltip"),
    mouseEnterDelay: G.number.def(0.1),
    mouseLeaveDelay: G.number.def(0.1),
    getPopupContainer: Function,
    destroyTooltipOnHide: {
      type: Boolean,
      default: !1
    },
    align: G.object.def(() => ({})),
    arrowContent: G.any.def(null),
    tipId: String,
    builtinPlacements: G.object,
    overlayInnerStyle: {
      type: Object,
      default: void 0
    },
    popupVisible: {
      type: Boolean,
      default: void 0
    },
    onVisibleChange: Function,
    onPopupAlign: Function,
    arrow: {
      type: Boolean,
      default: !0
    }
  },
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    const i = K(), a = () => {
      const {
        prefixCls: u,
        tipId: d,
        overlayInnerStyle: f
      } = e;
      return [e.arrow ? m("div", {
        class: `${u}-arrow`,
        key: "arrow"
      }, [di(n, e, "arrowContent")]) : null, m(vE, {
        key: "content",
        prefixCls: u,
        id: d,
        overlayInnerStyle: f
      }, {
        overlay: n.overlay
      })];
    };
    r({
      getPopupDomNode: () => i.value.getPopupDomNode(),
      triggerDOM: i,
      forcePopupAlign: () => {
        var u;
        return (u = i.value) === null || u === void 0 ? void 0 : u.forcePopupAlign();
      }
    });
    const s = K(!1), c = K(!1);
    return we(() => {
      const {
        destroyTooltipOnHide: u
      } = e;
      if (typeof u == "boolean")
        s.value = u;
      else if (u && typeof u == "object") {
        const {
          keepParent: d
        } = u;
        s.value = d === !0, c.value = d === !1;
      }
    }), () => {
      const {
        overlayClassName: u,
        trigger: d,
        mouseEnterDelay: f,
        mouseLeaveDelay: p,
        overlayStyle: y,
        prefixCls: g,
        afterVisibleChange: v,
        transitionName: b,
        animation: O,
        placement: C,
        align: x,
        destroyTooltipOnHide: S,
        defaultVisible: P
      } = e, $ = hE(e, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible"]), T = h({}, $);
      e.visible !== void 0 && (T.popupVisible = e.visible);
      const E = h(h(h({
        popupClassName: u,
        prefixCls: g,
        action: d,
        builtinPlacements: py,
        popupPlacement: C,
        popupAlign: x,
        afterPopupVisibleChange: v,
        popupTransitionName: b,
        popupAnimation: O,
        defaultPopupVisible: P,
        destroyPopupOnHide: s.value,
        autoDestroy: c.value,
        mouseLeaveDelay: p,
        popupStyle: y,
        mouseEnterDelay: f
      }, T), o), {
        onPopupVisibleChange: e.onVisibleChange || fm,
        onPopupAlign: e.onPopupAlign || fm,
        ref: i,
        arrow: !!e.arrow,
        popup: a()
      });
      return m(ul, E, {
        default: n.default
      });
    };
  }
}), my = (() => ({
  trigger: [String, Array],
  open: {
    type: Boolean,
    default: void 0
  },
  /** @deprecated Please use `open` instead. */
  visible: {
    type: Boolean,
    default: void 0
  },
  placement: String,
  color: String,
  transitionName: String,
  overlayStyle: xe(),
  overlayInnerStyle: xe(),
  overlayClassName: String,
  openClassName: String,
  prefixCls: String,
  mouseEnterDelay: Number,
  mouseLeaveDelay: Number,
  getPopupContainer: Function,
  /**@deprecated Please use `arrow={{ pointAtCenter: true }}` instead. */
  arrowPointAtCenter: {
    type: Boolean,
    default: void 0
  },
  arrow: {
    type: [Boolean, Object],
    default: !0
  },
  autoAdjustOverflow: {
    type: [Boolean, Object],
    default: void 0
  },
  destroyTooltipOnHide: {
    type: Boolean,
    default: void 0
  },
  align: xe(),
  builtinPlacements: xe(),
  children: Array,
  /** @deprecated Please use `onOpenChange` instead. */
  onVisibleChange: Function,
  /** @deprecated Please use `onUpdate:open` instead. */
  "onUpdate:visible": Function,
  onOpenChange: Function,
  "onUpdate:open": Function
})), bE = {
  adjustX: 1,
  adjustY: 1
}, pm = {
  adjustX: 0,
  adjustY: 0
}, SE = [0, 0];
function mm(e) {
  return typeof e == "boolean" ? e ? bE : pm : h(h({}, pm), e);
}
function gy(e) {
  const {
    arrowWidth: t = 4,
    horizontalArrowShift: n = 16,
    verticalArrowShift: o = 8,
    autoAdjustOverflow: r,
    arrowPointAtCenter: i
  } = e, a = {
    left: {
      points: ["cr", "cl"],
      offset: [-4, 0]
    },
    right: {
      points: ["cl", "cr"],
      offset: [4, 0]
    },
    top: {
      points: ["bc", "tc"],
      offset: [0, -4]
    },
    bottom: {
      points: ["tc", "bc"],
      offset: [0, 4]
    },
    topLeft: {
      points: ["bl", "tc"],
      offset: [-(n + t), -4]
    },
    leftTop: {
      points: ["tr", "cl"],
      offset: [-4, -(o + t)]
    },
    topRight: {
      points: ["br", "tc"],
      offset: [n + t, -4]
    },
    rightTop: {
      points: ["tl", "cr"],
      offset: [4, -(o + t)]
    },
    bottomRight: {
      points: ["tr", "bc"],
      offset: [n + t, 4]
    },
    rightBottom: {
      points: ["bl", "cr"],
      offset: [4, o + t]
    },
    bottomLeft: {
      points: ["tl", "bc"],
      offset: [-(n + t), 4]
    },
    leftBottom: {
      points: ["br", "cl"],
      offset: [-4, o + t]
    }
  };
  return Object.keys(a).forEach((l) => {
    a[l] = i ? h(h({}, a[l]), {
      overflow: mm(r),
      targetOffset: SE
    }) : h(h({}, py[l]), {
      overflow: mm(r)
    }), a[l].ignoreShake = !0;
  }), a;
}
function CE() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  for (let t = 0, n = e.length; t < n; t++)
    if (e[t] !== void 0)
      return e[t];
}
const $E = Ur.map((e) => `${e}-inverse`);
function wE(e) {
  return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [...$E, ...Ur].includes(e) : Ur.includes(e);
}
function xE(e, t) {
  const n = wE(t), o = ie({
    [`${e}-${t}`]: t && n
  }), r = {}, i = {};
  return t && !n && (r.background = t, i["--antd-arrow-background-color"] = t), {
    className: o,
    overlayStyle: r,
    arrowStyle: i
  };
}
function Vi(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  return e.map((n) => `${t}${n}`).join(",");
}
const vy = 8;
function hy(e) {
  const t = vy, {
    sizePopupArrow: n,
    contentRadius: o,
    borderRadiusOuter: r,
    limitVerticalRadius: i
  } = e, a = n / 2 - Math.ceil(r * (Math.sqrt(2) - 1)), l = (o > 12 ? o + 2 : 12) - a, s = i ? t - a : l;
  return {
    dropdownArrowOffset: l,
    dropdownArrowOffsetVertical: s
  };
}
function yy(e, t) {
  const {
    componentCls: n,
    sizePopupArrow: o,
    marginXXS: r,
    borderRadiusXS: i,
    borderRadiusOuter: a,
    boxShadowPopoverArrow: l
  } = e, {
    colorBg: s,
    showArrowCls: c,
    contentRadius: u = e.borderRadiusLG,
    limitVerticalRadius: d
  } = t, {
    dropdownArrowOffsetVertical: f,
    dropdownArrowOffset: p
  } = hy({
    sizePopupArrow: o,
    contentRadius: u,
    borderRadiusOuter: a,
    limitVerticalRadius: d
  }), y = o / 2 + r;
  return {
    [n]: {
      // ============================ Basic ============================
      [`${n}-arrow`]: [h(h({
        position: "absolute",
        zIndex: 1,
        display: "block"
      }, Eh(o, i, a, s, l)), {
        "&:before": {
          background: s
        }
      })],
      // ========================== Placement ==========================
      // Here handle the arrow position and rotate stuff
      // >>>>> Top
      [[`&-placement-top ${n}-arrow`, `&-placement-topLeft ${n}-arrow`, `&-placement-topRight ${n}-arrow`].join(",")]: {
        bottom: 0,
        transform: "translateY(100%) rotate(180deg)"
      },
      [`&-placement-top ${n}-arrow`]: {
        left: {
          _skip_check_: !0,
          value: "50%"
        },
        transform: "translateX(-50%) translateY(100%) rotate(180deg)"
      },
      [`&-placement-topLeft ${n}-arrow`]: {
        left: {
          _skip_check_: !0,
          value: p
        }
      },
      [`&-placement-topRight ${n}-arrow`]: {
        right: {
          _skip_check_: !0,
          value: p
        }
      },
      // >>>>> Bottom
      [[`&-placement-bottom ${n}-arrow`, `&-placement-bottomLeft ${n}-arrow`, `&-placement-bottomRight ${n}-arrow`].join(",")]: {
        top: 0,
        transform: "translateY(-100%)"
      },
      [`&-placement-bottom ${n}-arrow`]: {
        left: {
          _skip_check_: !0,
          value: "50%"
        },
        transform: "translateX(-50%) translateY(-100%)"
      },
      [`&-placement-bottomLeft ${n}-arrow`]: {
        left: {
          _skip_check_: !0,
          value: p
        }
      },
      [`&-placement-bottomRight ${n}-arrow`]: {
        right: {
          _skip_check_: !0,
          value: p
        }
      },
      // >>>>> Left
      [[`&-placement-left ${n}-arrow`, `&-placement-leftTop ${n}-arrow`, `&-placement-leftBottom ${n}-arrow`].join(",")]: {
        right: {
          _skip_check_: !0,
          value: 0
        },
        transform: "translateX(100%) rotate(90deg)"
      },
      [`&-placement-left ${n}-arrow`]: {
        top: {
          _skip_check_: !0,
          value: "50%"
        },
        transform: "translateY(-50%) translateX(100%) rotate(90deg)"
      },
      [`&-placement-leftTop ${n}-arrow`]: {
        top: f
      },
      [`&-placement-leftBottom ${n}-arrow`]: {
        bottom: f
      },
      // >>>>> Right
      [[`&-placement-right ${n}-arrow`, `&-placement-rightTop ${n}-arrow`, `&-placement-rightBottom ${n}-arrow`].join(",")]: {
        left: {
          _skip_check_: !0,
          value: 0
        },
        transform: "translateX(-100%) rotate(-90deg)"
      },
      [`&-placement-right ${n}-arrow`]: {
        top: {
          _skip_check_: !0,
          value: "50%"
        },
        transform: "translateY(-50%) translateX(-100%) rotate(-90deg)"
      },
      [`&-placement-rightTop ${n}-arrow`]: {
        top: f
      },
      [`&-placement-rightBottom ${n}-arrow`]: {
        bottom: f
      },
      // =========================== Offset ============================
      // Offset the popover to account for the dropdown arrow
      // >>>>> Top
      [Vi(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"].map((g) => g += ":not(&-arrow-hidden)"), c)]: {
        paddingBottom: y
      },
      // >>>>> Bottom
      [Vi(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"].map((g) => g += ":not(&-arrow-hidden)"), c)]: {
        paddingTop: y
      },
      // >>>>> Left
      [Vi(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"].map((g) => g += ":not(&-arrow-hidden)"), c)]: {
        paddingRight: {
          _skip_check_: !0,
          value: y
        }
      },
      // >>>>> Right
      [Vi(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"].map((g) => g += ":not(&-arrow-hidden)"), c)]: {
        paddingLeft: {
          _skip_check_: !0,
          value: y
        }
      }
    }
  };
}
const OE = (e) => {
  const {
    componentCls: t,
    // ant-tooltip
    tooltipMaxWidth: n,
    tooltipColor: o,
    tooltipBg: r,
    tooltipBorderRadius: i,
    zIndexPopup: a,
    controlHeight: l,
    boxShadowSecondary: s,
    paddingSM: c,
    paddingXS: u,
    tooltipRadiusOuter: d
  } = e;
  return [
    {
      [t]: h(h(h(h({}, Ue(e)), {
        position: "absolute",
        zIndex: a,
        display: "block",
        "&": [{
          width: "max-content"
        }, {
          width: "intrinsic"
        }],
        maxWidth: n,
        visibility: "visible",
        "&-hidden": {
          display: "none"
        },
        "--antd-arrow-background-color": r,
        // Wrapper for the tooltip content
        [`${t}-inner`]: {
          minWidth: l,
          minHeight: l,
          padding: `${c / 2}px ${u}px`,
          color: o,
          textAlign: "start",
          textDecoration: "none",
          wordWrap: "break-word",
          backgroundColor: r,
          borderRadius: i,
          boxShadow: s
        },
        // Limit left and right placement radius
        [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
          [`${t}-inner`]: {
            borderRadius: Math.min(i, vy)
          }
        },
        [`${t}-content`]: {
          position: "relative"
        }
      }), M$(e, (f, p) => {
        let {
          darkColor: y
        } = p;
        return {
          [`&${t}-${f}`]: {
            [`${t}-inner`]: {
              backgroundColor: y
            },
            [`${t}-arrow`]: {
              "--antd-arrow-background-color": y
            }
          }
        };
      })), {
        // RTL
        "&-rtl": {
          direction: "rtl"
        }
      })
    },
    // Arrow Style
    yy(Me(e, {
      borderRadiusOuter: d
    }), {
      colorBg: "var(--antd-arrow-background-color)",
      showArrowCls: "",
      contentRadius: i,
      limitVerticalRadius: !0
    }),
    // Pure Render
    {
      [`${t}-pure`]: {
        position: "relative",
        maxWidth: "none"
      }
    }
  ];
}, PE = ((e, t) => We("Tooltip", (o) => {
  if ((t == null ? void 0 : t.value) === !1)
    return [];
  const {
    borderRadius: r,
    colorTextLightSolid: i,
    colorBgDefault: a,
    borderRadiusOuter: l
  } = o, s = Me(o, {
    // default variables
    tooltipMaxWidth: 250,
    tooltipColor: i,
    tooltipBorderRadius: r,
    tooltipBg: a,
    tooltipRadiusOuter: l > 4 ? 4 : l
  });
  return [OE(s), yi(o, "zoom-big-fast")];
}, (o) => {
  let {
    zIndexPopupBase: r,
    colorBgSpotlight: i
  } = o;
  return {
    zIndexPopup: r + 70,
    colorBgDefault: i
  };
})(e)), IE = (e, t) => {
  const n = {}, o = h({}, e);
  return t.forEach((r) => {
    e && r in e && (n[r] = e[r], delete o[r]);
  }), {
    picked: n,
    omitted: o
  };
}, TE = () => h(h({}, my()), {
  title: G.any
}), EE = () => ({
  trigger: "hover",
  align: {},
  placement: "top",
  mouseEnterDelay: 0.1,
  mouseLeaveDelay: 0.1,
  arrowPointAtCenter: !1,
  autoAdjustOverflow: !0
}), AE = q({
  compatConfig: {
    MODE: 3
  },
  name: "ATooltip",
  inheritAttrs: !1,
  props: Ze(TE(), {
    trigger: "hover",
    align: {},
    placement: "top",
    mouseEnterDelay: 0.1,
    mouseLeaveDelay: 0.1,
    arrowPointAtCenter: !1,
    autoAdjustOverflow: !0
  }),
  slots: Object,
  // emits: ['update:visible', 'visibleChange'],
  setup(e, t) {
    let {
      slots: n,
      emit: o,
      attrs: r,
      expose: i
    } = t;
    const {
      prefixCls: a,
      getPopupContainer: l,
      direction: s,
      rootPrefixCls: c
    } = Ee("tooltip", e), u = w(() => {
      var M;
      return (M = e.open) !== null && M !== void 0 ? M : e.visible;
    }), d = Z(CE([e.open, e.visible])), f = Z();
    let p;
    ee(u, (M) => {
      Ae.cancel(p), p = Ae(() => {
        d.value = !!M;
      });
    });
    const y = () => {
      var M;
      const R = (M = e.title) !== null && M !== void 0 ? M : n.title;
      return !R && R !== 0;
    }, g = (M) => {
      const R = y();
      u.value === void 0 && (d.value = R ? !1 : M), R || (o("update:visible", M), o("visibleChange", M), o("update:open", M), o("openChange", M));
    };
    i({
      getPopupDomNode: () => f.value.getPopupDomNode(),
      open: d,
      forcePopupAlign: () => {
        var M;
        return (M = f.value) === null || M === void 0 ? void 0 : M.forcePopupAlign();
      }
    });
    const b = w(() => {
      var M;
      const {
        builtinPlacements: R,
        autoAdjustOverflow: N,
        arrow: F,
        arrowPointAtCenter: H
      } = e;
      let I = H;
      return typeof F == "object" && (I = (M = F.pointAtCenter) !== null && M !== void 0 ? M : H), R || gy({
        arrowPointAtCenter: I,
        autoAdjustOverflow: N
      });
    }), O = (M) => M || M === "", C = (M) => {
      const R = M.type;
      if (typeof R == "object" && M.props && ((R.__ANT_BUTTON === !0 || R === "button") && O(M.props.disabled) || R.__ANT_SWITCH === !0 && (O(M.props.disabled) || O(M.props.loading)) || R.__ANT_RADIO === !0 && O(M.props.disabled))) {
        const {
          picked: N,
          omitted: F
        } = IE(sC(M), ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), H = h(h({
          display: "inline-block"
        }, N), {
          cursor: "not-allowed",
          lineHeight: 1,
          width: M.props && M.props.block ? "100%" : void 0
        }), I = h(h({}, F), {
          pointerEvents: "none"
        }), A = He(M, {
          style: I
        }, !0);
        return m("span", {
          style: H,
          class: `${a.value}-disabled-compatible-wrapper`
        }, [A]);
      }
      return M;
    }, x = () => {
      var M, R;
      return (M = e.title) !== null && M !== void 0 ? M : (R = n.title) === null || R === void 0 ? void 0 : R.call(n);
    }, S = (M, R) => {
      const N = b.value, F = Object.keys(N).find((H) => {
        var I, A;
        return N[H].points[0] === ((I = R.points) === null || I === void 0 ? void 0 : I[0]) && N[H].points[1] === ((A = R.points) === null || A === void 0 ? void 0 : A[1]);
      });
      if (F) {
        const H = M.getBoundingClientRect(), I = {
          top: "50%",
          left: "50%"
        };
        F.indexOf("top") >= 0 || F.indexOf("Bottom") >= 0 ? I.top = `${H.height - R.offset[1]}px` : (F.indexOf("Top") >= 0 || F.indexOf("bottom") >= 0) && (I.top = `${-R.offset[1]}px`), F.indexOf("left") >= 0 || F.indexOf("Right") >= 0 ? I.left = `${H.width - R.offset[0]}px` : (F.indexOf("right") >= 0 || F.indexOf("Left") >= 0) && (I.left = `${-R.offset[0]}px`), M.style.transformOrigin = `${I.left} ${I.top}`;
      }
    }, P = w(() => xE(a.value, e.color)), $ = w(() => r["data-popover-inject"]), [T, E] = PE(a, w(() => !$.value));
    return () => {
      var M, R;
      const {
        openClassName: N,
        overlayClassName: F,
        overlayStyle: H,
        overlayInnerStyle: I
      } = e;
      let A = (R = Mt((M = n.default) === null || M === void 0 ? void 0 : M.call(n))) !== null && R !== void 0 ? R : null;
      A = A.length === 1 ? A[0] : A;
      let j = d.value;
      if (u.value === void 0 && y() && (j = !1), !A)
        return null;
      const L = C(Rt(A) && !cC(A) ? A : m("span", null, [A])), D = ie({
        [N || `${a.value}-open`]: !0,
        [L.props && L.props.class]: L.props && L.props.class
      }), _ = ie(F, {
        [`${a.value}-rtl`]: s.value === "rtl"
      }, P.value.className, E.value), V = h(h({}, P.value.overlayStyle), I), J = P.value.arrowStyle, oe = h(h(h({}, r), e), {
        prefixCls: a.value,
        arrow: !!e.arrow,
        getPopupContainer: l == null ? void 0 : l.value,
        builtinPlacements: b.value,
        visible: j,
        ref: f,
        overlayClassName: _,
        overlayStyle: h(h({}, J), H),
        overlayInnerStyle: V,
        onVisibleChange: g,
        onPopupAlign: S,
        transitionName: An(c.value, "zoom-big-fast", e.transitionName)
      });
      return T(m(yE, oe, {
        default: () => [d.value ? He(L, {
          class: D
        }) : L],
        arrowContent: () => m("span", {
          class: `${a.value}-arrow-content`
        }, null),
        overlay: x
      }));
    };
  }
}), Vt = Ln(AE), ME = (e) => {
  const {
    componentCls: t,
    popoverBg: n,
    popoverColor: o,
    width: r,
    fontWeightStrong: i,
    popoverPadding: a,
    boxShadowSecondary: l,
    colorTextHeading: s,
    borderRadiusLG: c,
    zIndexPopup: u,
    marginXS: d,
    colorBgElevated: f
  } = e;
  return [
    {
      [t]: h(h({}, Ue(e)), {
        position: "absolute",
        top: 0,
        // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
        left: {
          _skip_check_: !0,
          value: 0
        },
        zIndex: u,
        fontWeight: "normal",
        whiteSpace: "normal",
        textAlign: "start",
        cursor: "auto",
        userSelect: "text",
        "--antd-arrow-background-color": f,
        "&-rtl": {
          direction: "rtl"
        },
        "&-hidden": {
          display: "none"
        },
        [`${t}-content`]: {
          position: "relative"
        },
        [`${t}-inner`]: {
          backgroundColor: n,
          backgroundClip: "padding-box",
          borderRadius: c,
          boxShadow: l,
          padding: a
        },
        [`${t}-title`]: {
          minWidth: r,
          marginBottom: d,
          color: s,
          fontWeight: i
        },
        [`${t}-inner-content`]: {
          color: o
        }
      })
    },
    // Arrow Style
    yy(e, {
      colorBg: "var(--antd-arrow-background-color)"
    }),
    // Pure Render
    {
      [`${t}-pure`]: {
        position: "relative",
        maxWidth: "none",
        [`${t}-content`]: {
          display: "inline-block"
        }
      }
    }
  ];
}, RE = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: Ur.map((n) => {
      const o = e[`${n}-6`];
      return {
        [`&${t}-${n}`]: {
          "--antd-arrow-background-color": o,
          [`${t}-inner`]: {
            backgroundColor: o
          },
          [`${t}-arrow`]: {
            background: "transparent"
          }
        }
      };
    })
  };
}, DE = (e) => {
  const {
    componentCls: t,
    lineWidth: n,
    lineType: o,
    colorSplit: r,
    paddingSM: i,
    controlHeight: a,
    fontSize: l,
    lineHeight: s,
    padding: c
  } = e, u = a - Math.round(l * s), d = u / 2, f = u / 2 - n, p = c;
  return {
    [t]: {
      [`${t}-inner`]: {
        padding: 0
      },
      [`${t}-title`]: {
        margin: 0,
        padding: `${d}px ${p}px ${f}px`,
        borderBottom: `${n}px ${o} ${r}`
      },
      [`${t}-inner-content`]: {
        padding: `${i}px ${p}px`
      }
    }
  };
}, FE = We("Popover", (e) => {
  const {
    colorBgElevated: t,
    colorText: n,
    wireframe: o
  } = e, r = Me(e, {
    popoverBg: t,
    popoverColor: n,
    popoverPadding: 12
    // Fixed Value
  });
  return [ME(r), RE(r), o && DE(r), yi(r, "zoom-big")];
}, (e) => {
  let {
    zIndexPopupBase: t
  } = e;
  return {
    zIndexPopup: t + 30,
    width: 177
  };
}), LE = () => h(h({}, my()), {
  content: et(),
  title: et()
}), NE = q({
  compatConfig: {
    MODE: 3
  },
  name: "APopover",
  inheritAttrs: !1,
  props: Ze(LE(), h(h({}, EE()), {
    trigger: "hover",
    placement: "top",
    mouseEnterDelay: 0.1,
    mouseLeaveDelay: 0.1
  })),
  setup(e, t) {
    let {
      expose: n,
      slots: o,
      attrs: r
    } = t;
    const i = Z();
    so(e.visible === void 0), n({
      getPopupDomNode: () => {
        var f, p;
        return (p = (f = i.value) === null || f === void 0 ? void 0 : f.getPopupDomNode) === null || p === void 0 ? void 0 : p.call(f);
      }
    });
    const {
      prefixCls: a,
      configProvider: l
    } = Ee("popover", e), [s, c] = FE(a), u = w(() => l.getPrefixCls()), d = () => {
      var f, p;
      const {
        title: y = Mt((f = o.title) === null || f === void 0 ? void 0 : f.call(o)),
        content: g = Mt((p = o.content) === null || p === void 0 ? void 0 : p.call(o))
      } = e, v = !!(Array.isArray(y) ? y.length : y), b = !!(Array.isArray(g) ? g.length : y);
      return !v && !b ? null : m(Te, null, [v && m("div", {
        class: `${a.value}-title`
      }, [y]), m("div", {
        class: `${a.value}-inner-content`
      }, [g])]);
    };
    return () => {
      const f = ie(e.overlayClassName, c.value);
      return s(m(Vt, z(z(z({}, _e(e, ["title", "content"])), r), {}, {
        prefixCls: a.value,
        ref: i,
        overlayClassName: f,
        transitionName: An(u.value, "zoom-big", e.transitionName),
        "data-popover-inject": !0
      }), {
        title: d,
        default: o.default
      }));
    };
  }
}), jE = Ln(NE), zE = () => ({
  prefixCls: String,
  maxCount: Number,
  maxStyle: {
    type: Object,
    default: void 0
  },
  maxPopoverPlacement: {
    type: String,
    default: "top"
  },
  maxPopoverTrigger: String,
  /*
   * Size of avatar, options: `large`, `small`, `default`
   * or a custom number size
   * */
  size: {
    type: [Number, String, Object],
    default: "default"
  },
  shape: {
    type: String,
    default: "circle"
  }
}), gc = q({
  compatConfig: {
    MODE: 3
  },
  name: "AAvatarGroup",
  inheritAttrs: !1,
  props: zE(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      direction: i
    } = Ee("avatar", e), a = w(() => `${r.value}-group`), [l, s] = dy(r);
    return we(() => {
      const c = {
        size: e.size,
        shape: e.shape
      };
      pE(c);
    }), () => {
      const {
        maxPopoverPlacement: c = "top",
        maxCount: u,
        maxStyle: d,
        maxPopoverTrigger: f = "hover",
        shape: p
      } = e, y = {
        [a.value]: !0,
        [`${a.value}-rtl`]: i.value === "rtl",
        [`${o.class}`]: !!o.class,
        [s.value]: !0
      }, g = di(n, e), v = tt(g).map((O, C) => He(O, {
        key: `avatar-key-${C}`
      })), b = v.length;
      if (u && u < b) {
        const O = v.slice(0, u), C = v.slice(u, b);
        return O.push(m(jE, {
          key: "avatar-popover-key",
          content: C,
          trigger: f,
          placement: c,
          overlayClassName: `${a.value}-popover`
        }, {
          default: () => [m(oo, {
            style: d,
            shape: p
          }, {
            default: () => [`+${b - u}`]
          })]
        })), l(m("div", z(z({}, o), {}, {
          class: y,
          style: o.style
        }), [O]));
      }
      return l(m("div", z(z({}, o), {}, {
        class: y,
        style: o.style
      }), [v]));
    };
  }
});
oo.Group = gc;
oo.install = function(e) {
  return e.component(oo.name, oo), e.component(gc.name, gc), e;
};
const xo = {
  adjustX: 1,
  adjustY: 1
}, Oo = [0, 0], BE = {
  topLeft: {
    points: ["bl", "tl"],
    overflow: xo,
    offset: [0, -4],
    targetOffset: Oo
  },
  topCenter: {
    points: ["bc", "tc"],
    overflow: xo,
    offset: [0, -4],
    targetOffset: Oo
  },
  topRight: {
    points: ["br", "tr"],
    overflow: xo,
    offset: [0, -4],
    targetOffset: Oo
  },
  bottomLeft: {
    points: ["tl", "bl"],
    overflow: xo,
    offset: [0, 4],
    targetOffset: Oo
  },
  bottomCenter: {
    points: ["tc", "bc"],
    overflow: xo,
    offset: [0, 4],
    targetOffset: Oo
  },
  bottomRight: {
    points: ["tr", "br"],
    overflow: xo,
    offset: [0, 4],
    targetOffset: Oo
  }
};
var HE = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const _E = q({
  compatConfig: {
    MODE: 3
  },
  props: {
    minOverlayWidthMatchTrigger: {
      type: Boolean,
      default: void 0
    },
    arrow: {
      type: Boolean,
      default: !1
    },
    prefixCls: G.string.def("rc-dropdown"),
    transitionName: String,
    overlayClassName: G.string.def(""),
    openClassName: String,
    animation: G.any,
    align: G.object,
    overlayStyle: {
      type: Object,
      default: void 0
    },
    placement: G.string.def("bottomLeft"),
    overlay: G.any,
    trigger: G.oneOfType([G.string, G.arrayOf(G.string)]).def("hover"),
    alignPoint: {
      type: Boolean,
      default: void 0
    },
    showAction: G.array,
    hideAction: G.array,
    getPopupContainer: Function,
    visible: {
      type: Boolean,
      default: void 0
    },
    defaultVisible: {
      type: Boolean,
      default: !1
    },
    mouseEnterDelay: G.number.def(0.15),
    mouseLeaveDelay: G.number.def(0.1)
  },
  emits: ["visibleChange", "overlayClick"],
  setup(e, t) {
    let {
      slots: n,
      emit: o,
      expose: r
    } = t;
    const i = Z(!!e.visible);
    ee(() => e.visible, (p) => {
      p !== void 0 && (i.value = p);
    });
    const a = Z();
    r({
      triggerRef: a
    });
    const l = (p) => {
      e.visible === void 0 && (i.value = !1), o("overlayClick", p);
    }, s = (p) => {
      e.visible === void 0 && (i.value = p), o("visibleChange", p);
    }, c = () => {
      var p;
      const y = (p = n.overlay) === null || p === void 0 ? void 0 : p.call(n), g = {
        prefixCls: `${e.prefixCls}-menu`,
        onClick: l
      };
      return m(Te, {
        key: Xv
      }, [e.arrow && m("div", {
        class: `${e.prefixCls}-arrow`
      }, null), He(y, g, !1)]);
    }, u = w(() => {
      const {
        minOverlayWidthMatchTrigger: p = !e.alignPoint
      } = e;
      return p;
    }), d = () => {
      var p;
      const y = (p = n.default) === null || p === void 0 ? void 0 : p.call(n);
      return i.value && y ? He(y[0], {
        class: e.openClassName || `${e.prefixCls}-open`
      }, !1) : y;
    }, f = w(() => !e.hideAction && e.trigger.indexOf("contextmenu") !== -1 ? ["click"] : e.hideAction);
    return () => {
      const {
        prefixCls: p,
        arrow: y,
        showAction: g,
        overlayStyle: v,
        trigger: b,
        placement: O,
        align: C,
        getPopupContainer: x,
        transitionName: S,
        animation: P,
        overlayClassName: $
      } = e, T = HE(e, ["prefixCls", "arrow", "showAction", "overlayStyle", "trigger", "placement", "align", "getPopupContainer", "transitionName", "animation", "overlayClassName"]);
      return m(ul, z(z({}, T), {}, {
        prefixCls: p,
        ref: a,
        popupClassName: ie($, {
          [`${p}-show-arrow`]: y
        }),
        popupStyle: v,
        builtinPlacements: BE,
        action: b,
        showAction: g,
        hideAction: f.value || [],
        popupPlacement: O,
        popupAlign: C,
        popupTransitionName: S,
        popupAnimation: P,
        popupVisible: i.value,
        stretch: u.value ? "minWidth" : "",
        onPopupVisibleChange: s,
        getPopupContainer: x
      }), {
        popup: c,
        default: d
      });
    };
  }
}), VE = (e) => {
  const {
    componentCls: t,
    colorPrimary: n
  } = e;
  return {
    [t]: {
      position: "absolute",
      background: "transparent",
      pointerEvents: "none",
      boxSizing: "border-box",
      color: `var(--wave-color, ${n})`,
      boxShadow: "0 0 0 0 currentcolor",
      opacity: 0.2,
      // =================== Motion ===================
      "&.wave-motion-appear": {
        transition: [`box-shadow 0.4s ${e.motionEaseOutCirc}`, `opacity 2s ${e.motionEaseOutCirc}`].join(","),
        "&-active": {
          boxShadow: "0 0 0 6px currentcolor",
          opacity: 0
        }
      }
    }
  };
}, WE = We("Wave", (e) => [VE(e)]);
function kE(e) {
  const t = (e || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
  return t && t[1] && t[2] && t[3] ? !(t[1] === t[2] && t[2] === t[3]) : !0;
}
function cs(e) {
  return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && kE(e) && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
  e !== "transparent";
}
function XE(e) {
  const {
    borderTopColor: t,
    borderColor: n,
    backgroundColor: o
  } = getComputedStyle(e);
  return cs(t) ? t : cs(n) ? n : cs(o) ? o : null;
}
function us(e) {
  return Number.isNaN(e) ? 0 : e;
}
const KE = q({
  props: {
    target: xe(),
    className: String
  },
  setup(e) {
    const t = K(null), [n, o] = qt(null), [r, i] = qt([]), [a, l] = qt(0), [s, c] = qt(0), [u, d] = qt(0), [f, p] = qt(0), [y, g] = qt(!1);
    function v() {
      const {
        target: $
      } = e, T = getComputedStyle($);
      o(XE($));
      const E = T.position === "static", {
        borderLeftWidth: M,
        borderTopWidth: R
      } = T;
      l(E ? $.offsetLeft : us(-parseFloat(M))), c(E ? $.offsetTop : us(-parseFloat(R))), d($.offsetWidth), p($.offsetHeight);
      const {
        borderTopLeftRadius: N,
        borderTopRightRadius: F,
        borderBottomLeftRadius: H,
        borderBottomRightRadius: I
      } = T;
      i([N, F, I, H].map((A) => us(parseFloat(A))));
    }
    let b, O, C;
    const x = () => {
      clearTimeout(C), Ae.cancel(O), b == null || b.disconnect();
    }, S = () => {
      var $;
      const T = ($ = t.value) === null || $ === void 0 ? void 0 : $.parentElement;
      T && (Vr(null, T), T.parentElement && T.parentElement.removeChild(T));
    };
    be(() => {
      x(), C = setTimeout(() => {
        S();
      }, 5e3);
      const {
        target: $
      } = e;
      $ && (O = Ae(() => {
        v(), g(!0);
      }), typeof ResizeObserver < "u" && (b = new ResizeObserver(v), b.observe($)));
    }), Le(() => {
      x();
    });
    const P = ($) => {
      $.propertyName === "opacity" && S();
    };
    return () => {
      if (!y.value)
        return null;
      const $ = {
        left: `${a.value}px`,
        top: `${s.value}px`,
        width: `${u.value}px`,
        height: `${f.value}px`,
        borderRadius: r.value.map((T) => `${T}px`).join(" ")
      };
      return n && ($["--wave-color"] = n.value), m(Xt, {
        appear: !0,
        name: "wave-motion",
        appearFromClass: "wave-motion-appear",
        appearActiveClass: "wave-motion-appear",
        appearToClass: "wave-motion-appear wave-motion-appear-active"
      }, {
        default: () => [m("div", {
          ref: t,
          class: e.className,
          style: $,
          onTransitionend: P
        }, null)]
      });
    };
  }
});
function GE(e, t) {
  const n = document.createElement("div");
  return n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", e == null || e.insertBefore(n, e == null ? void 0 : e.firstChild), Vr(m(KE, {
    target: e,
    className: t
  }, null), n), () => {
    Vr(null, n), n.parentElement && n.parentElement.removeChild(n);
  };
}
function UE(e, t) {
  const n = lt();
  let o;
  function r() {
    var i;
    const a = Ht(n);
    o == null || o(), !(!((i = t == null ? void 0 : t.value) === null || i === void 0) && i.disabled || !a) && (o = GE(a, e.value));
  }
  return Le(() => {
    o == null || o();
  }), r;
}
const qE = q({
  compatConfig: {
    MODE: 3
  },
  name: "Wave",
  props: {
    disabled: Boolean
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = lt(), {
      prefixCls: r,
      wave: i
    } = Ee("wave", e), [, a] = WE(r), l = UE(w(() => ie(r.value, a.value)), i);
    let s;
    const c = () => {
      Ht(o).removeEventListener("click", s, !0);
    };
    return be(() => {
      ee(() => e.disabled, () => {
        c(), De(() => {
          const u = Ht(o);
          u == null || u.removeEventListener("click", s, !0), !(!u || u.nodeType !== 1 || e.disabled) && (s = (d) => {
            d.target.tagName === "INPUT" || !o0(d.target) || // No need wave
            !u.getAttribute || u.getAttribute("disabled") || u.disabled || u.className.includes("disabled") || u.className.includes("-leave") || l();
          }, u.addEventListener("click", s, !0));
        });
      }, {
        immediate: !0,
        flush: "post"
      });
    }), Le(() => {
      c();
    }), () => {
      var u;
      return (u = n.default) === null || u === void 0 ? void 0 : u.call(n)[0];
    };
  }
}), by = () => ({
  prefixCls: String,
  type: String,
  htmlType: {
    type: String,
    default: "button"
  },
  shape: {
    type: String
  },
  size: {
    type: String
  },
  loading: {
    type: [Boolean, Object],
    default: () => !1
  },
  disabled: {
    type: Boolean,
    default: void 0
  },
  ghost: {
    type: Boolean,
    default: void 0
  },
  block: {
    type: Boolean,
    default: void 0
  },
  danger: {
    type: Boolean,
    default: void 0
  },
  icon: G.any,
  href: String,
  target: String,
  title: String,
  onClick: Wr(),
  onMousedown: Wr()
}), gm = (e) => {
  e && (e.style.width = "0px", e.style.opacity = "0", e.style.transform = "scale(0)");
}, vm = (e) => {
  De(() => {
    e && (e.style.width = `${e.scrollWidth}px`, e.style.opacity = "1", e.style.transform = "scale(1)");
  });
}, hm = (e) => {
  e && e.style && (e.style.width = null, e.style.opacity = null, e.style.transform = null);
}, YE = q({
  compatConfig: {
    MODE: 3
  },
  name: "LoadingIcon",
  props: {
    prefixCls: String,
    loading: [Boolean, Object],
    existIcon: Boolean
  },
  setup(e) {
    return () => {
      const {
        existIcon: t,
        prefixCls: n,
        loading: o
      } = e;
      if (t)
        return m("span", {
          class: `${n}-loading-icon`
        }, [m(Lt, null, null)]);
      const r = !!o;
      return m(Xt, {
        name: `${n}-loading-icon-motion`,
        onBeforeEnter: gm,
        onEnter: vm,
        onAfterEnter: hm,
        onBeforeLeave: vm,
        onLeave: (i) => {
          setTimeout(() => {
            gm(i);
          });
        },
        onAfterLeave: hm
      }, {
        default: () => [r ? m("span", {
          class: `${n}-loading-icon`
        }, [m(Lt, null, null)]) : null]
      });
    };
  }
}), ym = (e, t) => ({
  // Border
  [`> span, > ${e}`]: {
    "&:not(:last-child)": {
      [`&, & > ${e}`]: {
        "&:not(:disabled)": {
          borderInlineEndColor: t
        }
      }
    },
    "&:not(:first-child)": {
      [`&, & > ${e}`]: {
        "&:not(:disabled)": {
          borderInlineStartColor: t
        }
      }
    }
  }
}), ZE = (e) => {
  const {
    componentCls: t,
    fontSize: n,
    lineWidth: o,
    colorPrimaryHover: r,
    colorErrorHover: i
  } = e;
  return {
    [`${t}-group`]: [
      {
        position: "relative",
        display: "inline-flex",
        // Border
        [`> span, > ${t}`]: {
          "&:not(:last-child)": {
            [`&, & > ${t}`]: {
              borderStartEndRadius: 0,
              borderEndEndRadius: 0
            }
          },
          "&:not(:first-child)": {
            marginInlineStart: -o,
            [`&, & > ${t}`]: {
              borderStartStartRadius: 0,
              borderEndStartRadius: 0
            }
          }
        },
        [t]: {
          position: "relative",
          zIndex: 1,
          "&:hover,\n          &:focus,\n          &:active": {
            zIndex: 2
          },
          "&[disabled]": {
            zIndex: 0
          }
        },
        [`${t}-icon-only`]: {
          fontSize: n
        }
      },
      // Border Color
      ym(`${t}-primary`, r),
      ym(`${t}-danger`, i)
    ]
  };
};
function QE(e, t) {
  return {
    // border collapse
    [`&-item:not(${t}-last-item)`]: {
      marginBottom: -e.lineWidth
    },
    "&-item": {
      "&:hover,&:focus,&:active": {
        zIndex: 2
      },
      "&[disabled]": {
        zIndex: 0
      }
    }
  };
}
function JE(e, t) {
  return {
    [`&-item:not(${t}-first-item):not(${t}-last-item)`]: {
      borderRadius: 0
    },
    [`&-item${t}-first-item:not(${t}-last-item)`]: {
      [`&, &${e}-sm, &${e}-lg`]: {
        borderEndEndRadius: 0,
        borderEndStartRadius: 0
      }
    },
    [`&-item${t}-last-item:not(${t}-first-item)`]: {
      [`&, &${e}-sm, &${e}-lg`]: {
        borderStartStartRadius: 0,
        borderStartEndRadius: 0
      }
    }
  };
}
function e8(e) {
  const t = `${e.componentCls}-compact-vertical`;
  return {
    [t]: h(h({}, QE(e, t)), JE(e.componentCls, t))
  };
}
const t8 = (e) => {
  const {
    componentCls: t,
    iconCls: n
  } = e;
  return {
    [t]: {
      outline: "none",
      position: "relative",
      display: "inline-block",
      fontWeight: 400,
      whiteSpace: "nowrap",
      textAlign: "center",
      backgroundImage: "none",
      backgroundColor: "transparent",
      border: `${e.lineWidth}px ${e.lineType} transparent`,
      cursor: "pointer",
      transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
      userSelect: "none",
      touchAction: "manipulation",
      lineHeight: e.lineHeight,
      color: e.colorText,
      "> span": {
        display: "inline-block"
      },
      // Leave a space between icon and text.
      [`> ${n} + span, > span + ${n}`]: {
        marginInlineStart: e.marginXS
      },
      "> a": {
        color: "currentColor"
      },
      "&:not(:disabled)": h({}, Ys(e)),
      // make `btn-icon-only` not too narrow
      [`&-icon-only${t}-compact-item`]: {
        flex: "none"
      },
      // Special styles for Primary Button
      [`&-compact-item${t}-primary`]: {
        [`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]: {
          position: "relative",
          "&:before": {
            position: "absolute",
            top: -e.lineWidth,
            insetInlineStart: -e.lineWidth,
            display: "inline-block",
            width: e.lineWidth,
            height: `calc(100% + ${e.lineWidth * 2}px)`,
            backgroundColor: e.colorPrimaryHover,
            content: '""'
          }
        }
      },
      // Special styles for Primary Button
      "&-compact-vertical-item": {
        [`&${t}-primary`]: {
          [`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]: {
            position: "relative",
            "&:before": {
              position: "absolute",
              top: -e.lineWidth,
              insetInlineStart: -e.lineWidth,
              display: "inline-block",
              width: `calc(100% + ${e.lineWidth * 2}px)`,
              height: e.lineWidth,
              backgroundColor: e.colorPrimaryHover,
              content: '""'
            }
          }
        }
      }
    }
  };
}, fn = (e, t) => ({
  "&:not(:disabled)": {
    "&:hover": e,
    "&:active": t
  }
}), n8 = (e) => ({
  minWidth: e.controlHeight,
  paddingInlineStart: 0,
  paddingInlineEnd: 0,
  borderRadius: "50%"
}), o8 = (e) => ({
  borderRadius: e.controlHeight,
  paddingInlineStart: e.controlHeight / 2,
  paddingInlineEnd: e.controlHeight / 2
}), vc = (e) => ({
  cursor: "not-allowed",
  borderColor: e.colorBorder,
  color: e.colorTextDisabled,
  backgroundColor: e.colorBgContainerDisabled,
  boxShadow: "none"
}), Da = (e, t, n, o, r, i, a) => ({
  [`&${e}-background-ghost`]: h(h({
    color: t || void 0,
    backgroundColor: "transparent",
    borderColor: n || void 0,
    boxShadow: "none"
  }, fn(h({
    backgroundColor: "transparent"
  }, i), h({
    backgroundColor: "transparent"
  }, a))), {
    "&:disabled": {
      cursor: "not-allowed",
      color: o || void 0,
      borderColor: r || void 0
    }
  })
}), Zu = (e) => ({
  "&:disabled": h({}, vc(e))
}), Sy = (e) => h({}, Zu(e)), Fa = (e) => ({
  "&:disabled": {
    cursor: "not-allowed",
    color: e.colorTextDisabled
  }
}), Cy = (e) => h(h(h(h(h({}, Sy(e)), {
  backgroundColor: e.colorBgContainer,
  borderColor: e.colorBorder,
  boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`
}), fn({
  color: e.colorPrimaryHover,
  borderColor: e.colorPrimaryHover
}, {
  color: e.colorPrimaryActive,
  borderColor: e.colorPrimaryActive
})), Da(e.componentCls, e.colorBgContainer, e.colorBgContainer, e.colorTextDisabled, e.colorBorder)), {
  [`&${e.componentCls}-dangerous`]: h(h(h({
    color: e.colorError,
    borderColor: e.colorError
  }, fn({
    color: e.colorErrorHover,
    borderColor: e.colorErrorBorderHover
  }, {
    color: e.colorErrorActive,
    borderColor: e.colorErrorActive
  })), Da(e.componentCls, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder)), Zu(e))
}), r8 = (e) => h(h(h(h(h({}, Sy(e)), {
  color: e.colorTextLightSolid,
  backgroundColor: e.colorPrimary,
  boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`
}), fn({
  color: e.colorTextLightSolid,
  backgroundColor: e.colorPrimaryHover
}, {
  color: e.colorTextLightSolid,
  backgroundColor: e.colorPrimaryActive
})), Da(e.componentCls, e.colorPrimary, e.colorPrimary, e.colorTextDisabled, e.colorBorder, {
  color: e.colorPrimaryHover,
  borderColor: e.colorPrimaryHover
}, {
  color: e.colorPrimaryActive,
  borderColor: e.colorPrimaryActive
})), {
  [`&${e.componentCls}-dangerous`]: h(h(h({
    backgroundColor: e.colorError,
    boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`
  }, fn({
    backgroundColor: e.colorErrorHover
  }, {
    backgroundColor: e.colorErrorActive
  })), Da(e.componentCls, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder, {
    color: e.colorErrorHover,
    borderColor: e.colorErrorHover
  }, {
    color: e.colorErrorActive,
    borderColor: e.colorErrorActive
  })), Zu(e))
}), i8 = (e) => h(h({}, Cy(e)), {
  borderStyle: "dashed"
}), a8 = (e) => h(h(h({
  color: e.colorLink
}, fn({
  color: e.colorLinkHover
}, {
  color: e.colorLinkActive
})), Fa(e)), {
  [`&${e.componentCls}-dangerous`]: h(h({
    color: e.colorError
  }, fn({
    color: e.colorErrorHover
  }, {
    color: e.colorErrorActive
  })), Fa(e))
}), l8 = (e) => h(h(h({}, fn({
  color: e.colorText,
  backgroundColor: e.colorBgTextHover
}, {
  color: e.colorText,
  backgroundColor: e.colorBgTextActive
})), Fa(e)), {
  [`&${e.componentCls}-dangerous`]: h(h({
    color: e.colorError
  }, Fa(e)), fn({
    color: e.colorErrorHover,
    backgroundColor: e.colorErrorBg
  }, {
    color: e.colorErrorHover,
    backgroundColor: e.colorErrorBg
  }))
}), s8 = (e) => h(h({}, vc(e)), {
  [`&${e.componentCls}:hover`]: h({}, vc(e))
}), c8 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [`${t}-default`]: Cy(e),
    [`${t}-primary`]: r8(e),
    [`${t}-dashed`]: i8(e),
    [`${t}-link`]: a8(e),
    [`${t}-text`]: l8(e),
    [`${t}-disabled`]: s8(e)
  };
}, Qu = function(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  const {
    componentCls: n,
    iconCls: o,
    controlHeight: r,
    fontSize: i,
    lineHeight: a,
    lineWidth: l,
    borderRadius: s,
    buttonPaddingHorizontal: c
  } = e, u = Math.max(0, (r - i * a) / 2 - l), d = c - l, f = `${n}-icon-only`;
  return [
    // Size
    {
      [`${n}${t}`]: {
        fontSize: i,
        height: r,
        padding: `${u}px ${d}px`,
        borderRadius: s,
        [`&${f}`]: {
          width: r,
          paddingInlineStart: 0,
          paddingInlineEnd: 0,
          [`&${n}-round`]: {
            width: "auto"
          },
          "> span": {
            transform: "scale(1.143)"
            // 14px -> 16px
          }
        },
        // Loading
        [`&${n}-loading`]: {
          opacity: e.opacityLoading,
          cursor: "default"
        },
        [`${n}-loading-icon`]: {
          transition: `width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`
        },
        [`&:not(${f}) ${n}-loading-icon > ${o}`]: {
          marginInlineEnd: e.marginXS
        }
      }
    },
    // Shape - patch prefixCls again to override solid border radius style
    {
      [`${n}${n}-circle${t}`]: n8(e)
    },
    {
      [`${n}${n}-round${t}`]: o8(e)
    }
  ];
}, u8 = (e) => Qu(e), d8 = (e) => {
  const t = Me(e, {
    controlHeight: e.controlHeightSM,
    padding: e.paddingXS,
    buttonPaddingHorizontal: 8,
    borderRadius: e.borderRadiusSM
  });
  return Qu(t, `${e.componentCls}-sm`);
}, f8 = (e) => {
  const t = Me(e, {
    controlHeight: e.controlHeightLG,
    fontSize: e.fontSizeLG,
    borderRadius: e.borderRadiusLG
  });
  return Qu(t, `${e.componentCls}-lg`);
}, p8 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      [`&${t}-block`]: {
        width: "100%"
      }
    }
  };
}, m8 = We("Button", (e) => {
  const {
    controlTmpOutline: t,
    paddingContentHorizontal: n
  } = e, o = Me(e, {
    colorOutlineDefault: t,
    buttonPaddingHorizontal: n
  });
  return [
    // Shared
    t8(o),
    // Size
    d8(o),
    u8(o),
    f8(o),
    // Block
    p8(o),
    // Group (type, ghost, danger, disabled, loading)
    c8(o),
    // Button Group
    ZE(o),
    // Space Compact
    bl(e, {
      focus: !1
    }),
    e8(e)
  ];
}), g8 = () => ({
  prefixCls: String,
  size: {
    type: String
  }
}), $y = Au(), hc = q({
  compatConfig: {
    MODE: 3
  },
  name: "AButtonGroup",
  props: g8(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    const {
      prefixCls: o,
      direction: r
    } = Ee("btn-group", e), [, , i] = go();
    $y.useProvide(Be({
      size: w(() => e.size)
    }));
    const a = w(() => {
      const {
        size: l
      } = e;
      let s = "";
      switch (l) {
        case "large":
          s = "lg";
          break;
        case "small":
          s = "sm";
          break;
        case "middle":
        case void 0:
          break;
        default:
          Tt(!l, "Button.Group", "Invalid prop `size`.");
      }
      return {
        [`${o.value}`]: !0,
        [`${o.value}-${s}`]: s,
        [`${o.value}-rtl`]: r.value === "rtl",
        [i.value]: !0
      };
    });
    return () => {
      var l;
      return m("div", {
        class: a.value
      }, [tt((l = n.default) === null || l === void 0 ? void 0 : l.call(n))]);
    };
  }
}), bm = /^[\u4e00-\u9fa5]{2}$/, Sm = bm.test.bind(bm);
function Wi(e) {
  return e === "text" || e === "link";
}
const ut = q({
  compatConfig: {
    MODE: 3
  },
  name: "AButton",
  inheritAttrs: !1,
  __ANT_BUTTON: !0,
  props: Ze(by(), {
    type: "default"
  }),
  slots: Object,
  // emits: ['click', 'mousedown'],
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      emit: r,
      expose: i
    } = t;
    const {
      prefixCls: a,
      autoInsertSpaceInButton: l,
      direction: s,
      size: c
    } = Ee("btn", e), [u, d] = m8(a), f = $y.useInject(), p = mo(), y = w(() => {
      var I;
      return (I = e.disabled) !== null && I !== void 0 ? I : p.value;
    }), g = K(null), v = K(void 0);
    let b = !1;
    const O = K(!1), C = K(!1), x = w(() => l.value !== !1), {
      compactSize: S,
      compactItemClassnames: P
    } = Hu(a, s), $ = w(() => typeof e.loading == "object" && e.loading.delay ? e.loading.delay || !0 : !!e.loading);
    ee($, (I) => {
      clearTimeout(v.value), typeof $.value == "number" ? v.value = setTimeout(() => {
        O.value = I;
      }, $.value) : O.value = I;
    }, {
      immediate: !0
    });
    const T = w(() => {
      const {
        type: I,
        shape: A = "default",
        ghost: j,
        block: L,
        danger: D
      } = e, _ = a.value, V = {
        large: "lg",
        small: "sm",
        middle: void 0
      }, J = S.value || (f == null ? void 0 : f.size) || c.value, oe = J && V[J] || "";
      return [P.value, {
        [d.value]: !0,
        [`${_}`]: !0,
        [`${_}-${A}`]: A !== "default" && A,
        [`${_}-${I}`]: I,
        [`${_}-${oe}`]: oe,
        [`${_}-loading`]: O.value,
        [`${_}-background-ghost`]: j && !Wi(I),
        [`${_}-two-chinese-chars`]: C.value && x.value,
        [`${_}-block`]: L,
        [`${_}-dangerous`]: !!D,
        [`${_}-rtl`]: s.value === "rtl"
      }];
    }), E = () => {
      const I = g.value;
      if (!I || l.value === !1)
        return;
      const A = I.textContent;
      b && Sm(A) ? C.value || (C.value = !0) : C.value && (C.value = !1);
    }, M = (I) => {
      if (O.value || y.value) {
        I.preventDefault();
        return;
      }
      r("click", I);
    }, R = (I) => {
      r("mousedown", I);
    }, N = (I, A) => {
      const j = A ? " " : "";
      if (I.type === Ev) {
        let L = I.children.trim();
        return Sm(L) && (L = L.split("").join(j)), m("span", null, [L]);
      }
      return I;
    };
    return we(() => {
      Tt(!(e.ghost && Wi(e.type)), "Button", "`link` or `text` button can't be a `ghost` button.");
    }), be(E), po(E), Le(() => {
      v.value && clearTimeout(v.value);
    }), i({
      focus: () => {
        var I;
        (I = g.value) === null || I === void 0 || I.focus();
      },
      blur: () => {
        var I;
        (I = g.value) === null || I === void 0 || I.blur();
      }
    }), () => {
      var I, A;
      const {
        icon: j = (I = n.icon) === null || I === void 0 ? void 0 : I.call(n)
      } = e, L = tt((A = n.default) === null || A === void 0 ? void 0 : A.call(n));
      b = L.length === 1 && !j && !Wi(e.type);
      const {
        type: D,
        htmlType: _,
        href: V,
        title: J,
        target: oe
      } = e, re = O.value ? "loading" : j, Q = h(h({}, o), {
        title: J,
        disabled: y.value,
        class: [T.value, o.class, {
          [`${a.value}-icon-only`]: L.length === 0 && !!re
        }],
        onClick: M,
        onMousedown: R
      });
      y.value || delete Q.disabled;
      const U = j && !O.value ? j : m(YE, {
        existIcon: !!j,
        prefixCls: a.value,
        loading: !!O.value
      }, null), k = L.map((X) => N(X, b && x.value));
      if (V !== void 0)
        return u(m("a", z(z({}, Q), {}, {
          href: V,
          target: oe,
          ref: g
        }), [U, k]));
      let ne = m("button", z(z({}, Q), {}, {
        ref: g,
        type: _
      }), [U, k]);
      if (!Wi(D)) {
        const X = /* @__PURE__ */ (function() {
          return ne;
        })();
        ne = m(qE, {
          ref: "wave",
          disabled: !!O.value
        }, {
          default: () => [X]
        });
      }
      return u(ne);
    };
  }
});
ut.Group = hc;
ut.install = function(e) {
  return e.component(ut.name, ut), e.component(hc.name, hc), e;
};
const wy = () => ({
  arrow: it([Boolean, Object]),
  trigger: {
    type: [Array, String]
  },
  menu: xe(),
  overlay: G.any,
  /** @deprecated Please use `open` instead */
  visible: Ie(),
  open: Ie(),
  disabled: Ie(),
  danger: Ie(),
  autofocus: Ie(),
  align: xe(),
  getPopupContainer: Function,
  prefixCls: String,
  transitionName: String,
  placement: String,
  overlayClassName: String,
  overlayStyle: xe(),
  forceRender: Ie(),
  mouseEnterDelay: Number,
  mouseLeaveDelay: Number,
  openClassName: String,
  minOverlayWidthMatchTrigger: Ie(),
  destroyPopupOnHide: Ie(),
  /** @deprecated Please use `onOpenChange` instead */
  onVisibleChange: {
    type: Function
  },
  /** @deprecated Please use `onUpdate:open` instead */
  "onUpdate:visible": {
    type: Function
  },
  onOpenChange: {
    type: Function
  },
  "onUpdate:open": {
    type: Function
  }
}), ds = by(), v8 = () => h(h({}, wy()), {
  type: ds.type,
  size: String,
  htmlType: ds.htmlType,
  href: String,
  disabled: Ie(),
  prefixCls: String,
  icon: G.any,
  title: String,
  loading: ds.loading,
  onClick: Wr()
});
var h8 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" };
function Cm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      y8(e, r, n[r]);
    });
  }
  return e;
}
function y8(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var bi = function(t, n) {
  var o = Cm({}, t, n.attrs);
  return m(de, Cm({}, o, {
    icon: h8
  }), null);
};
bi.displayName = "EllipsisOutlined";
bi.inheritAttrs = !1;
const b8 = (e) => {
  const {
    componentCls: t,
    antCls: n,
    paddingXS: o,
    opacityLoading: r
  } = e;
  return {
    [`${t}-button`]: {
      whiteSpace: "nowrap",
      [`&${n}-btn-group > ${n}-btn`]: {
        [`&-loading, &-loading + ${n}-btn`]: {
          cursor: "default",
          pointerEvents: "none",
          opacity: r
        },
        [`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]: {
          paddingInline: o
        }
      }
    }
  };
}, S8 = (e) => {
  const {
    componentCls: t,
    menuCls: n,
    colorError: o,
    colorTextLightSolid: r
  } = e, i = `${n}-item`;
  return {
    [`${t}, ${t}-menu-submenu`]: {
      [`${n} ${i}`]: {
        [`&${i}-danger:not(${i}-disabled)`]: {
          color: o,
          "&:hover": {
            color: r,
            backgroundColor: o
          }
        }
      }
    }
  };
}, C8 = (e) => {
  const {
    componentCls: t,
    menuCls: n,
    zIndexPopup: o,
    dropdownArrowDistance: r,
    dropdownArrowOffset: i,
    sizePopupArrow: a,
    antCls: l,
    iconCls: s,
    motionDurationMid: c,
    dropdownPaddingVertical: u,
    fontSize: d,
    dropdownEdgeChildPadding: f,
    colorTextDisabled: p,
    fontSizeIcon: y,
    controlPaddingHorizontal: g,
    colorBgElevated: v,
    boxShadowPopoverArrow: b
  } = e;
  return [
    {
      [t]: h(h({}, Ue(e)), {
        position: "absolute",
        top: -9999,
        left: {
          _skip_check_: !0,
          value: -9999
        },
        zIndex: o,
        display: "block",
        // A placeholder out of dropdown visible range to avoid close when user moving
        "&::before": {
          position: "absolute",
          insetBlock: -r + a / 2,
          // insetInlineStart: -7, // FIXME: Seems not work for hidden element
          zIndex: -9999,
          opacity: 1e-4,
          content: '""'
        },
        [`${t}-wrap`]: {
          position: "relative",
          [`${l}-btn > ${s}-down`]: {
            fontSize: y
          },
          [`${s}-down::before`]: {
            transition: `transform ${c}`
          }
        },
        [`${t}-wrap-open`]: {
          [`${s}-down::before`]: {
            transform: "rotate(180deg)"
          }
        },
        "\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ": {
          display: "none"
        },
        // =============================================================
        // ==                          Arrow                          ==
        // =============================================================
        // Offset the popover to account for the dropdown arrow
        [`
        &-show-arrow${t}-placement-topLeft,
        &-show-arrow${t}-placement-top,
        &-show-arrow${t}-placement-topRight
      `]: {
          paddingBottom: r
        },
        [`
        &-show-arrow${t}-placement-bottomLeft,
        &-show-arrow${t}-placement-bottom,
        &-show-arrow${t}-placement-bottomRight
      `]: {
          paddingTop: r
        },
        // Note: .popover-arrow is outer, .popover-arrow:after is inner
        [`${t}-arrow`]: h({
          position: "absolute",
          zIndex: 1,
          display: "block"
        }, Eh(a, e.borderRadiusXS, e.borderRadiusOuter, v, b)),
        [`
        &-placement-top > ${t}-arrow,
        &-placement-topLeft > ${t}-arrow,
        &-placement-topRight > ${t}-arrow
      `]: {
          bottom: r,
          transform: "translateY(100%) rotate(180deg)"
        },
        [`&-placement-top > ${t}-arrow`]: {
          left: {
            _skip_check_: !0,
            value: "50%"
          },
          transform: "translateX(-50%) translateY(100%) rotate(180deg)"
        },
        [`&-placement-topLeft > ${t}-arrow`]: {
          left: {
            _skip_check_: !0,
            value: i
          }
        },
        [`&-placement-topRight > ${t}-arrow`]: {
          right: {
            _skip_check_: !0,
            value: i
          }
        },
        [`
          &-placement-bottom > ${t}-arrow,
          &-placement-bottomLeft > ${t}-arrow,
          &-placement-bottomRight > ${t}-arrow
        `]: {
          top: r,
          transform: "translateY(-100%)"
        },
        [`&-placement-bottom > ${t}-arrow`]: {
          left: {
            _skip_check_: !0,
            value: "50%"
          },
          transform: "translateY(-100%) translateX(-50%)"
        },
        [`&-placement-bottomLeft > ${t}-arrow`]: {
          left: {
            _skip_check_: !0,
            value: i
          }
        },
        [`&-placement-bottomRight > ${t}-arrow`]: {
          right: {
            _skip_check_: !0,
            value: i
          }
        },
        // =============================================================
        // ==                         Motion                          ==
        // =============================================================
        // When position is not enough for dropdown, the placement will revert.
        // We will handle this with revert motion name.
        [`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
          &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
          &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]: {
          animationName: _u
        },
        [`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
          &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
          &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]: {
          animationName: Wu
        },
        [`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
          &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
          &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]: {
          animationName: Vu
        },
        [`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
          &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
          &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]: {
          animationName: ku
        }
      })
    },
    {
      // =============================================================
      // ==                          Menu                           ==
      // =============================================================
      [`${t} ${n}`]: {
        position: "relative",
        margin: 0
      },
      [`${n}-submenu-popup`]: {
        position: "absolute",
        zIndex: o,
        background: "transparent",
        boxShadow: "none",
        transformOrigin: "0 0",
        "ul,li": {
          listStyle: "none"
        },
        ul: {
          marginInline: "0.3em"
        }
      },
      [`${t}, ${t}-menu-submenu`]: {
        [n]: h(h({
          padding: f,
          listStyleType: "none",
          backgroundColor: v,
          backgroundClip: "padding-box",
          borderRadius: e.borderRadiusLG,
          outline: "none",
          boxShadow: e.boxShadowSecondary
        }, Ys(e)), {
          [`${n}-item-group-title`]: {
            padding: `${u}px ${g}px`,
            color: e.colorTextDescription,
            transition: `all ${c}`
          },
          // ======================= Item Content =======================
          [`${n}-item`]: {
            position: "relative",
            display: "flex",
            alignItems: "center",
            borderRadius: e.borderRadiusSM
          },
          [`${n}-item-icon`]: {
            minWidth: d,
            marginInlineEnd: e.marginXS,
            fontSize: e.fontSizeSM
          },
          [`${n}-title-content`]: {
            flex: "auto",
            "> a": {
              color: "inherit",
              transition: `all ${c}`,
              "&:hover": {
                color: "inherit"
              },
              "&::after": {
                position: "absolute",
                inset: 0,
                content: '""'
              }
            }
          },
          // =========================== Item ===========================
          [`${n}-item, ${n}-submenu-title`]: h(h({
            clear: "both",
            margin: 0,
            padding: `${u}px ${g}px`,
            color: e.colorText,
            fontWeight: "normal",
            fontSize: d,
            lineHeight: e.lineHeight,
            cursor: "pointer",
            transition: `all ${c}`,
            "&:hover, &-active": {
              backgroundColor: e.controlItemBgHover
            }
          }, Ys(e)), {
            "&-selected": {
              color: e.colorPrimary,
              backgroundColor: e.controlItemBgActive,
              "&:hover, &-active": {
                backgroundColor: e.controlItemBgActiveHover
              }
            },
            "&-disabled": {
              color: p,
              cursor: "not-allowed",
              "&:hover": {
                color: p,
                backgroundColor: v,
                cursor: "not-allowed"
              },
              a: {
                pointerEvents: "none"
              }
            },
            "&-divider": {
              height: 1,
              margin: `${e.marginXXS}px 0`,
              overflow: "hidden",
              lineHeight: 0,
              backgroundColor: e.colorSplit
            },
            [`${t}-menu-submenu-expand-icon`]: {
              position: "absolute",
              insetInlineEnd: e.paddingXS,
              [`${t}-menu-submenu-arrow-icon`]: {
                marginInlineEnd: "0 !important",
                color: e.colorTextDescription,
                fontSize: y,
                fontStyle: "normal"
              }
            }
          }),
          [`${n}-item-group-list`]: {
            margin: `0 ${e.marginXS}px`,
            padding: 0,
            listStyle: "none"
          },
          [`${n}-submenu-title`]: {
            paddingInlineEnd: g + e.fontSizeSM
          },
          [`${n}-submenu-vertical`]: {
            position: "relative"
          },
          [`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]: {
            [`&, ${t}-menu-submenu-arrow-icon`]: {
              color: p,
              backgroundColor: v,
              cursor: "not-allowed"
            }
          },
          // https://github.com/ant-design/ant-design/issues/19264
          [`${n}-submenu-selected ${t}-menu-submenu-title`]: {
            color: e.colorPrimary
          }
        })
      }
    },
    // Follow code may reuse in other components
    [er(e, "slide-up"), er(e, "slide-down"), Ra(e, "move-up"), Ra(e, "move-down"), yi(e, "zoom-big")]
  ];
}, xy = We("Dropdown", (e, t) => {
  let {
    rootPrefixCls: n
  } = t;
  const {
    marginXXS: o,
    sizePopupArrow: r,
    controlHeight: i,
    fontSize: a,
    lineHeight: l,
    paddingXXS: s,
    componentCls: c,
    borderRadiusOuter: u,
    borderRadiusLG: d
  } = e, f = (i - a * l) / 2, {
    dropdownArrowOffset: p
  } = hy({
    sizePopupArrow: r,
    contentRadius: d,
    borderRadiusOuter: u
  }), y = Me(e, {
    menuCls: `${c}-menu`,
    rootPrefixCls: n,
    dropdownArrowDistance: r / 2 + o,
    dropdownArrowOffset: p,
    dropdownPaddingVertical: f,
    dropdownEdgeChildPadding: s
  });
  return [C8(y), b8(y), S8(y)];
}, (e) => ({
  zIndexPopup: e.zIndexPopupBase + 50
}));
var $8 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const w8 = ut.Group, La = q({
  compatConfig: {
    MODE: 3
  },
  name: "ADropdownButton",
  inheritAttrs: !1,
  __ANT_BUTTON: !0,
  props: Ze(v8(), {
    trigger: "hover",
    placement: "bottomRight",
    type: "default"
  }),
  // emits: ['click', 'visibleChange', 'update:visible'],s
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      emit: r
    } = t;
    const i = (f) => {
      r("update:visible", f), r("visibleChange", f), r("update:open", f), r("openChange", f);
    }, {
      prefixCls: a,
      direction: l,
      getPopupContainer: s
    } = Ee("dropdown", e), c = w(() => `${a.value}-button`), [u, d] = xy(a);
    return () => {
      var f, p;
      const y = h(h({}, e), o), {
        type: g = "default",
        disabled: v,
        danger: b,
        loading: O,
        htmlType: C,
        class: x = "",
        overlay: S = (f = n.overlay) === null || f === void 0 ? void 0 : f.call(n),
        trigger: P,
        align: $,
        open: T,
        visible: E,
        onVisibleChange: M,
        placement: R = l.value === "rtl" ? "bottomLeft" : "bottomRight",
        href: N,
        title: F,
        icon: H = ((p = n.icon) === null || p === void 0 ? void 0 : p.call(n)) || m(bi, null, null),
        mouseEnterDelay: I,
        mouseLeaveDelay: A,
        overlayClassName: j,
        overlayStyle: L,
        destroyPopupOnHide: D,
        onClick: _,
        "onUpdate:open": V
      } = y, J = $8(y, ["type", "disabled", "danger", "loading", "htmlType", "class", "overlay", "trigger", "align", "open", "visible", "onVisibleChange", "placement", "href", "title", "icon", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "onClick", "onUpdate:open"]), oe = {
        align: $,
        disabled: v,
        trigger: v ? [] : P,
        placement: R,
        getPopupContainer: s == null ? void 0 : s.value,
        onOpenChange: i,
        mouseEnterDelay: I,
        mouseLeaveDelay: A,
        open: T ?? E,
        overlayClassName: j,
        overlayStyle: L,
        destroyPopupOnHide: D
      }, re = m(ut, {
        danger: b,
        type: g,
        disabled: v,
        loading: O,
        onClick: _,
        htmlType: C,
        href: N,
        title: F
      }, {
        default: n.default
      }), Q = m(ut, {
        danger: b,
        type: g,
        icon: H
      }, null);
      return u(m(w8, z(z({}, J), {}, {
        class: ie(c.value, x, d.value)
      }), {
        default: () => [n.leftButton ? n.leftButton({
          button: re
        }) : re, m(ro, oe, {
          default: () => [n.rightButton ? n.rightButton({
            button: Q
          }) : Q],
          overlay: () => S
        })]
      }));
    };
  }
});
var x8 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
function $m(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      O8(e, r, n[r]);
    });
  }
  return e;
}
function O8(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Dn = function(t, n) {
  var o = $m({}, t, n.attrs);
  return m(de, $m({}, o, {
    icon: x8
  }), null);
};
Dn.displayName = "RightOutlined";
Dn.inheritAttrs = !1;
const Oy = Symbol("OverrideContextKey"), Py = () => Ce(Oy, void 0), P8 = (e) => {
  var t, n, o;
  const {
    prefixCls: r,
    mode: i,
    selectable: a,
    validator: l,
    onClick: s,
    expandIcon: c
  } = Py() || {};
  $e(Oy, {
    prefixCls: w(() => {
      var u, d;
      return (d = (u = e.prefixCls) === null || u === void 0 ? void 0 : u.value) !== null && d !== void 0 ? d : r == null ? void 0 : r.value;
    }),
    mode: w(() => {
      var u, d;
      return (d = (u = e.mode) === null || u === void 0 ? void 0 : u.value) !== null && d !== void 0 ? d : i == null ? void 0 : i.value;
    }),
    selectable: w(() => {
      var u, d;
      return (d = (u = e.selectable) === null || u === void 0 ? void 0 : u.value) !== null && d !== void 0 ? d : a == null ? void 0 : a.value;
    }),
    validator: (t = e.validator) !== null && t !== void 0 ? t : l,
    onClick: (n = e.onClick) !== null && n !== void 0 ? n : s,
    expandIcon: (o = e.expandIcon) !== null && o !== void 0 ? o : c == null ? void 0 : c.value
  });
}, ro = q({
  compatConfig: {
    MODE: 3
  },
  name: "ADropdown",
  inheritAttrs: !1,
  props: Ze(wy(), {
    mouseEnterDelay: 0.15,
    mouseLeaveDelay: 0.1,
    placement: "bottomLeft",
    trigger: "hover"
  }),
  // emits: ['visibleChange', 'update:visible'],
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      emit: r
    } = t;
    const {
      prefixCls: i,
      rootPrefixCls: a,
      direction: l,
      getPopupContainer: s
    } = Ee("dropdown", e), [c, u] = xy(i), d = w(() => {
      const {
        placement: v = "",
        transitionName: b
      } = e;
      return b !== void 0 ? b : v.includes("top") ? `${a.value}-slide-down` : `${a.value}-slide-up`;
    });
    P8({
      prefixCls: w(() => `${i.value}-menu`),
      expandIcon: w(() => m("span", {
        class: `${i.value}-menu-submenu-arrow`
      }, [m(Dn, {
        class: `${i.value}-menu-submenu-arrow-icon`
      }, null)])),
      mode: w(() => "vertical"),
      selectable: w(() => !1),
      onClick: () => {
      },
      validator: (v) => {
        let {
          mode: b
        } = v;
      }
    });
    const f = () => {
      var v, b, O;
      const C = e.overlay || ((v = n.overlay) === null || v === void 0 ? void 0 : v.call(n)), x = Array.isArray(C) ? C[0] : C;
      if (!x) return null;
      const S = x.props || {};
      Tt(!S.mode || S.mode === "vertical", "Dropdown", `mode="${S.mode}" is not supported for Dropdown's Menu.`);
      const {
        selectable: P = !1,
        expandIcon: $ = (O = (b = x.children) === null || b === void 0 ? void 0 : b.expandIcon) === null || O === void 0 ? void 0 : O.call(b)
      } = S, T = typeof $ < "u" && Rt($) ? $ : m("span", {
        class: `${i.value}-menu-submenu-arrow`
      }, [m(Dn, {
        class: `${i.value}-menu-submenu-arrow-icon`
      }, null)]);
      return Rt(x) ? He(x, {
        mode: "vertical",
        selectable: P,
        expandIcon: () => T
      }) : x;
    }, p = w(() => {
      const v = e.placement;
      if (!v)
        return l.value === "rtl" ? "bottomRight" : "bottomLeft";
      if (v.includes("Center")) {
        const b = v.slice(0, v.indexOf("Center"));
        return Tt(!v.includes("Center"), "Dropdown", `You are using '${v}' placement in Dropdown, which is deprecated. Try to use '${b}' instead.`), b;
      }
      return v;
    }), y = w(() => typeof e.visible == "boolean" ? e.visible : e.open), g = (v) => {
      r("update:visible", v), r("visibleChange", v), r("update:open", v), r("openChange", v);
    };
    return () => {
      var v, b;
      const {
        arrow: O,
        trigger: C,
        disabled: x,
        overlayClassName: S
      } = e, P = (v = n.default) === null || v === void 0 ? void 0 : v.call(n)[0], $ = He(P, h({
        class: ie((b = P == null ? void 0 : P.props) === null || b === void 0 ? void 0 : b.class, {
          [`${i.value}-rtl`]: l.value === "rtl"
        }, `${i.value}-trigger`)
      }, x ? {
        disabled: x
      } : {})), T = ie(S, u.value, {
        [`${i.value}-rtl`]: l.value === "rtl"
      }), E = x ? [] : C;
      let M;
      E && E.includes("contextmenu") && (M = !0);
      const R = gy({
        arrowPointAtCenter: typeof O == "object" && O.pointAtCenter,
        autoAdjustOverflow: !0
      }), N = _e(h(h(h({}, e), o), {
        visible: y.value,
        builtinPlacements: R,
        overlayClassName: T,
        arrow: !!O,
        alignPoint: M,
        prefixCls: i.value,
        getPopupContainer: s == null ? void 0 : s.value,
        transitionName: d.value,
        trigger: E,
        onVisibleChange: g,
        placement: p.value
      }), ["overlay", "onUpdate:visible"]);
      return c(m(_E, N, {
        default: () => [$],
        overlay: f
      }));
    };
  }
});
ro.Button = La;
function I8(e, t, n, o) {
  let r;
  if (r !== void 0)
    return !!r;
  if (e === t)
    return !0;
  if (typeof e != "object" || !e || typeof t != "object" || !t)
    return !1;
  const i = Object.keys(e), a = Object.keys(t);
  if (i.length !== a.length)
    return !1;
  const l = Object.prototype.hasOwnProperty.bind(t);
  for (let s = 0; s < i.length; s++) {
    const c = i[s];
    if (!l(c))
      return !1;
    const u = e[c], d = t[c];
    if (r = void 0, r === !1 || r === void 0 && u !== d)
      return !1;
  }
  return !0;
}
function br(e, t) {
  return I8(At(e), At(t));
}
const Iy = Symbol("menuContextKey"), Ty = (e) => {
  $e(Iy, e);
}, yn = () => Ce(Iy), Ey = Symbol("ForceRenderKey"), T8 = (e) => {
  $e(Ey, e);
}, Ay = () => Ce(Ey, !1), My = Symbol("menuFirstLevelContextKey"), Ry = (e) => {
  $e(My, e);
}, E8 = () => Ce(My, !0), Na = q({
  compatConfig: {
    MODE: 3
  },
  name: "MenuContextProvider",
  inheritAttrs: !1,
  props: {
    mode: {
      type: String,
      default: void 0
    },
    overflowDisabled: {
      type: Boolean,
      default: void 0
    }
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = yn(), r = h({}, o);
    return e.mode !== void 0 && (r.mode = Oe(e, "mode")), e.overflowDisabled !== void 0 && (r.overflowDisabled = Oe(e, "overflowDisabled")), Ty(r), () => {
      var i;
      return (i = n.default) === null || i === void 0 ? void 0 : i.call(n);
    };
  }
}), A8 = Symbol("siderCollapsed"), ki = "$$__vc-menu-more__key", Dy = Symbol("KeyPathContext"), Ju = () => Ce(Dy, {
  parentEventKeys: w(() => []),
  parentKeys: w(() => []),
  parentInfo: {}
}), M8 = (e, t, n) => {
  const {
    parentEventKeys: o,
    parentKeys: r
  } = Ju(), i = w(() => [...o.value, e]), a = w(() => [...r.value, t]);
  return $e(Dy, {
    parentEventKeys: i,
    parentKeys: a,
    parentInfo: n
  }), a;
}, Fy = Symbol("measure"), wm = q({
  compatConfig: {
    MODE: 3
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    return $e(Fy, !0), () => {
      var o;
      return (o = n.default) === null || o === void 0 ? void 0 : o.call(n);
    };
  }
}), ed = () => Ce(Fy, !1);
function Ly(e) {
  const {
    mode: t,
    rtl: n,
    inlineIndent: o
  } = yn();
  return w(() => t.value !== "inline" ? null : n.value ? {
    paddingRight: `${e.value * o.value}px`
  } : {
    paddingLeft: `${e.value * o.value}px`
  });
}
let R8 = 0;
const D8 = () => ({
  id: String,
  role: String,
  disabled: Boolean,
  danger: Boolean,
  title: {
    type: [String, Boolean],
    default: void 0
  },
  icon: G.any,
  onMouseenter: Function,
  onMouseleave: Function,
  onClick: Function,
  onKeydown: Function,
  onFocus: Function,
  // Internal user prop
  originItemValue: xe()
}), ni = q({
  compatConfig: {
    MODE: 3
  },
  name: "AMenuItem",
  inheritAttrs: !1,
  props: D8(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      emit: o,
      attrs: r
    } = t;
    const i = lt(), a = ed(), l = typeof i.vnode.key == "symbol" ? String(i.vnode.key) : i.vnode.key;
    Tt(typeof i.vnode.key != "symbol", "MenuItem", `MenuItem \`:key="${String(l)}"\` not support Symbol type`);
    const s = `menu_item_${++R8}_$$_${l}`, {
      parentEventKeys: c,
      parentKeys: u
    } = Ju(), {
      prefixCls: d,
      activeKeys: f,
      disabled: p,
      changeActiveKeys: y,
      rtl: g,
      inlineCollapsed: v,
      siderCollapsed: b,
      onItemClick: O,
      selectedKeys: C,
      registerMenuInfo: x,
      unRegisterMenuInfo: S
    } = yn(), P = E8(), $ = K(!1), T = w(() => [...u.value, l]);
    x(s, {
      eventKey: s,
      key: l,
      parentEventKeys: c,
      parentKeys: u,
      isLeaf: !0
    }), Le(() => {
      S(s);
    }), ee(f, () => {
      $.value = !!f.value.find((V) => V === l);
    }, {
      immediate: !0
    });
    const M = w(() => p.value || e.disabled), R = w(() => C.value.includes(l)), N = w(() => {
      const V = `${d.value}-item`;
      return {
        [`${V}`]: !0,
        [`${V}-danger`]: e.danger,
        [`${V}-active`]: $.value,
        [`${V}-selected`]: R.value,
        [`${V}-disabled`]: M.value
      };
    }), F = (V) => ({
      key: l,
      eventKey: s,
      keyPath: T.value,
      eventKeyPath: [...c.value, s],
      domEvent: V,
      item: h(h({}, e), r)
    }), H = (V) => {
      if (M.value)
        return;
      const J = F(V);
      o("click", V), O(J);
    }, I = (V) => {
      M.value || (y(T.value), o("mouseenter", V));
    }, A = (V) => {
      M.value || (y([]), o("mouseleave", V));
    }, j = (V) => {
      if (o("keydown", V), V.which === ue.ENTER) {
        const J = F(V);
        o("click", V), O(J);
      }
    }, L = (V) => {
      y(T.value), o("focus", V);
    }, D = (V, J) => {
      const oe = m("span", {
        class: `${d.value}-title-content`
      }, [J]);
      return (!V || Rt(J) && J.type === "span") && J && v.value && P && typeof J == "string" ? m("div", {
        class: `${d.value}-inline-collapsed-noicon`
      }, [J.charAt(0)]) : oe;
    }, _ = Ly(w(() => T.value.length));
    return () => {
      var V, J, oe, re, Q;
      if (a) return null;
      const U = (V = e.title) !== null && V !== void 0 ? V : (J = n.title) === null || J === void 0 ? void 0 : J.call(n), k = tt((oe = n.default) === null || oe === void 0 ? void 0 : oe.call(n)), ne = k.length;
      let X = U;
      typeof U > "u" ? X = P && ne ? k : "" : U === !1 && (X = "");
      const B = {
        title: X
      };
      !b.value && !v.value && (B.title = null, B.open = !1);
      const W = {};
      e.role === "option" && (W["aria-selected"] = R.value);
      const Y = (re = e.icon) !== null && re !== void 0 ? re : (Q = n.icon) === null || Q === void 0 ? void 0 : Q.call(n, e);
      return m(Vt, z(z({}, B), {}, {
        placement: g.value ? "left" : "right",
        overlayClassName: `${d.value}-inline-collapsed-tooltip`
      }), {
        default: () => [m(an.Item, z(z(z({
          component: "li"
        }, r), {}, {
          id: e.id,
          style: h(h({}, r.style || {}), _.value),
          class: [N.value, {
            [`${r.class}`]: !!r.class,
            [`${d.value}-item-only-child`]: (Y ? ne + 1 : ne) === 1
          }],
          role: e.role || "menuitem",
          tabindex: e.disabled ? null : -1,
          "data-menu-id": l,
          "aria-disabled": e.disabled
        }, W), {}, {
          onMouseenter: I,
          onMouseleave: A,
          onClick: H,
          onKeydown: j,
          onFocus: L,
          title: typeof U == "string" ? U : void 0
        }), {
          default: () => [He(typeof Y == "function" ? Y(e.originItemValue) : Y, {
            class: `${d.value}-item-icon`
          }, !1), D(Y, k)]
        })]
      });
    };
  }
}), xn = {
  adjustX: 1,
  adjustY: 1
}, F8 = {
  topLeft: {
    points: ["bl", "tl"],
    overflow: xn,
    offset: [0, -7]
  },
  bottomLeft: {
    points: ["tl", "bl"],
    overflow: xn,
    offset: [0, 7]
  },
  leftTop: {
    points: ["tr", "tl"],
    overflow: xn,
    offset: [-4, 0]
  },
  rightTop: {
    points: ["tl", "tr"],
    overflow: xn,
    offset: [4, 0]
  }
}, L8 = {
  topLeft: {
    points: ["bl", "tl"],
    overflow: xn,
    offset: [0, -7]
  },
  bottomLeft: {
    points: ["tl", "bl"],
    overflow: xn,
    offset: [0, 7]
  },
  rightTop: {
    points: ["tr", "tl"],
    overflow: xn,
    offset: [-4, 0]
  },
  leftTop: {
    points: ["tl", "tr"],
    overflow: xn,
    offset: [4, 0]
  }
}, N8 = {
  horizontal: "bottomLeft",
  vertical: "rightTop",
  "vertical-left": "rightTop",
  "vertical-right": "leftTop"
}, xm = q({
  compatConfig: {
    MODE: 3
  },
  name: "PopupTrigger",
  inheritAttrs: !1,
  props: {
    prefixCls: String,
    mode: String,
    visible: Boolean,
    // popup: React.ReactNode;
    popupClassName: String,
    popupOffset: Array,
    disabled: Boolean,
    onVisibleChange: Function
  },
  slots: Object,
  emits: ["visibleChange"],
  setup(e, t) {
    let {
      slots: n,
      emit: o
    } = t;
    const r = K(!1), {
      getPopupContainer: i,
      rtl: a,
      subMenuOpenDelay: l,
      subMenuCloseDelay: s,
      builtinPlacements: c,
      triggerSubMenuAction: u,
      forceSubMenuRender: d,
      motion: f,
      defaultMotions: p,
      rootClassName: y
    } = yn(), g = Ay(), v = w(() => a.value ? h(h({}, L8), c.value) : h(h({}, F8), c.value)), b = w(() => N8[e.mode]), O = K();
    ee(() => e.visible, (S) => {
      Ae.cancel(O.value), O.value = Ae(() => {
        r.value = S;
      });
    }, {
      immediate: !0
    }), Le(() => {
      Ae.cancel(O.value);
    });
    const C = (S) => {
      o("visibleChange", S);
    }, x = w(() => {
      var S, P;
      const $ = f.value || ((S = p.value) === null || S === void 0 ? void 0 : S[e.mode]) || ((P = p.value) === null || P === void 0 ? void 0 : P.other), T = typeof $ == "function" ? $() : $;
      return T ? cr(T.name, {
        css: !0
      }) : void 0;
    });
    return () => {
      const {
        prefixCls: S,
        popupClassName: P,
        mode: $,
        popupOffset: T,
        disabled: E
      } = e;
      return m(ul, {
        prefixCls: S,
        popupClassName: ie(`${S}-popup`, {
          [`${S}-rtl`]: a.value
        }, P, y.value),
        stretch: $ === "horizontal" ? "minWidth" : null,
        getPopupContainer: i.value,
        builtinPlacements: v.value,
        popupPlacement: b.value,
        popupVisible: r.value,
        popupAlign: T && {
          offset: T
        },
        action: E ? [] : [u.value],
        mouseEnterDelay: l.value,
        mouseLeaveDelay: s.value,
        onPopupVisibleChange: C,
        forceRender: g || d.value,
        popupAnimation: x.value
      }, {
        popup: n.popup,
        default: n.default
      });
    };
  }
}), td = (e, t) => {
  let {
    slots: n,
    attrs: o
  } = t;
  var r;
  const {
    prefixCls: i,
    mode: a
  } = yn();
  return m("ul", z(z({}, o), {}, {
    class: ie(i.value, `${i.value}-sub`, `${i.value}-${a.value === "inline" ? "inline" : "vertical"}`),
    "data-menu-list": !0
  }), [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)]);
};
td.displayName = "SubMenuList";
const j8 = q({
  compatConfig: {
    MODE: 3
  },
  name: "InlineSubMenuList",
  inheritAttrs: !1,
  props: {
    id: String,
    open: Boolean,
    keyPath: Array
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = w(() => "inline"), {
      motion: r,
      mode: i,
      defaultMotions: a
    } = yn(), l = w(() => i.value === o.value), s = Z(!l.value), c = w(() => l.value ? e.open : !1);
    ee(i, () => {
      l.value && (s.value = !1);
    }, {
      flush: "post"
    });
    const u = w(() => {
      var d, f;
      const p = r.value || ((d = a.value) === null || d === void 0 ? void 0 : d[o.value]) || ((f = a.value) === null || f === void 0 ? void 0 : f.other), y = typeof p == "function" ? p() : p;
      return h(h({}, y), {
        appear: e.keyPath.length <= 1
      });
    });
    return () => {
      var d;
      return s.value ? null : m(Na, {
        mode: o.value
      }, {
        default: () => [m(Xt, u.value, {
          default: () => [en(m(td, {
            id: e.id
          }, {
            default: () => [(d = n.default) === null || d === void 0 ? void 0 : d.call(n)]
          }), [[pn, c.value]])]
        })]
      });
    };
  }
});
let Om = 0;
const z8 = () => ({
  icon: G.any,
  title: G.any,
  disabled: Boolean,
  level: Number,
  popupClassName: String,
  popupOffset: Array,
  internalPopupClose: Boolean,
  eventKey: String,
  expandIcon: Function,
  theme: String,
  onMouseenter: Function,
  onMouseleave: Function,
  onTitleClick: Function,
  // Internal user prop
  originItemValue: xe()
}), tr = q({
  compatConfig: {
    MODE: 3
  },
  name: "ASubMenu",
  inheritAttrs: !1,
  props: z8(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      emit: r
    } = t;
    var i, a;
    Ry(!1);
    const l = ed(), s = lt(), c = typeof s.vnode.key == "symbol" ? String(s.vnode.key) : s.vnode.key;
    Tt(typeof s.vnode.key != "symbol", "SubMenu", `SubMenu \`:key="${String(c)}"\` not support Symbol type`);
    const u = _s(c) ? c : `sub_menu_${++Om}_$$_not_set_key`, d = (i = e.eventKey) !== null && i !== void 0 ? i : _s(c) ? `sub_menu_${++Om}_$$_${c}` : u, {
      parentEventKeys: f,
      parentInfo: p,
      parentKeys: y
    } = Ju(), g = w(() => [...y.value, u]), v = K([]), b = {
      eventKey: d,
      key: u,
      parentEventKeys: f,
      childrenEventKeys: v,
      parentKeys: y
    };
    (a = p.childrenEventKeys) === null || a === void 0 || a.value.push(d), Le(() => {
      var ce;
      p.childrenEventKeys && (p.childrenEventKeys.value = (ce = p.childrenEventKeys) === null || ce === void 0 ? void 0 : ce.value.filter((he) => he != d));
    }), M8(d, u, b);
    const {
      prefixCls: O,
      activeKeys: C,
      disabled: x,
      changeActiveKeys: S,
      mode: P,
      inlineCollapsed: $,
      openKeys: T,
      overflowDisabled: E,
      onOpenChange: M,
      registerMenuInfo: R,
      unRegisterMenuInfo: N,
      selectedSubMenuKeys: F,
      expandIcon: H,
      theme: I
    } = yn(), A = c != null, j = !l && (Ay() || !A);
    T8(j), (l && A || !l && !A || j) && (R(d, b), Le(() => {
      N(d);
    }));
    const L = w(() => `${O.value}-submenu`), D = w(() => x.value || e.disabled), _ = K(), V = K(), J = w(() => T.value.includes(u)), oe = w(() => !E.value && J.value), re = w(() => F.value.includes(u)), Q = K(!1);
    ee(C, () => {
      Q.value = !!C.value.find((ce) => ce === u);
    }, {
      immediate: !0
    });
    const U = (ce) => {
      D.value || (r("titleClick", ce, u), P.value === "inline" && M(u, !J.value));
    }, k = (ce) => {
      D.value || (S(g.value), r("mouseenter", ce));
    }, ne = (ce) => {
      D.value || (S([]), r("mouseleave", ce));
    }, X = Ly(w(() => g.value.length)), B = (ce) => {
      P.value !== "inline" && M(u, ce);
    }, W = () => {
      S(g.value);
    }, Y = d && `${d}-popup`, te = w(() => ie(O.value, `${O.value}-${e.theme || I.value}`, e.popupClassName)), ae = (ce, he) => {
      if (!he)
        return $.value && !y.value.length && ce && typeof ce == "string" ? m("div", {
          class: `${O.value}-inline-collapsed-noicon`
        }, [ce.charAt(0)]) : m("span", {
          class: `${O.value}-title-content`
        }, [ce]);
      const je = Rt(ce) && ce.type === "span";
      return m(Te, null, [He(typeof he == "function" ? he(e.originItemValue) : he, {
        class: `${O.value}-item-icon`
      }, !1), je ? ce : m("span", {
        class: `${O.value}-title-content`
      }, [ce])]);
    }, fe = w(() => P.value !== "inline" && g.value.length > 1 ? "vertical" : P.value), ve = w(() => P.value === "horizontal" ? "vertical" : P.value), le = w(() => fe.value === "horizontal" ? "vertical" : fe.value), me = () => {
      var ce, he;
      const je = L.value, ke = (ce = e.icon) !== null && ce !== void 0 ? ce : (he = n.icon) === null || he === void 0 ? void 0 : he.call(n, e), nn = e.expandIcon || n.expandIcon || H.value, mt = ae(di(n, e, "title"), ke);
      return m("div", {
        style: X.value,
        class: `${je}-title`,
        tabindex: D.value ? null : -1,
        ref: _,
        title: typeof mt == "string" ? mt : null,
        "data-menu-id": u,
        "aria-expanded": oe.value,
        "aria-haspopup": !0,
        "aria-controls": Y,
        "aria-disabled": D.value,
        onClick: U,
        onFocus: W
      }, [mt, P.value !== "horizontal" && nn ? nn(h(h({}, e), {
        isOpen: oe.value
      })) : m("i", {
        class: `${je}-arrow`
      }, null)]);
    };
    return () => {
      var ce;
      if (l)
        return A ? (ce = n.default) === null || ce === void 0 ? void 0 : ce.call(n) : null;
      const he = L.value;
      let je = () => null;
      if (!E.value && P.value !== "inline") {
        const ke = P.value === "horizontal" ? [0, 8] : [10, 0];
        je = () => m(xm, {
          mode: fe.value,
          prefixCls: he,
          visible: !e.internalPopupClose && oe.value,
          popupClassName: te.value,
          popupOffset: e.popupOffset || ke,
          disabled: D.value,
          onVisibleChange: B
        }, {
          default: () => [me()],
          popup: () => m(Na, {
            mode: le.value
          }, {
            default: () => [m(td, {
              id: Y,
              ref: V
            }, {
              default: n.default
            })]
          })
        });
      } else
        je = () => m(xm, null, {
          default: me
        });
      return m(Na, {
        mode: ve.value
      }, {
        default: () => [m(an.Item, z(z({
          component: "li"
        }, o), {}, {
          role: "none",
          class: ie(he, `${he}-${P.value}`, o.class, {
            [`${he}-open`]: oe.value,
            [`${he}-active`]: Q.value,
            [`${he}-selected`]: re.value,
            [`${he}-disabled`]: D.value
          }),
          onMouseenter: k,
          onMouseleave: ne,
          "data-submenu-id": u
        }), {
          default: () => m(Te, null, [je(), !E.value && m(j8, {
            id: Y,
            open: oe.value,
            keyPath: g.value
          }, {
            default: n.default
          })])
        })]
      });
    };
  }
});
function Ny(e, t) {
  return e.classList ? e.classList.contains(t) : ` ${e.className} `.indexOf(` ${t} `) > -1;
}
function Pm(e, t) {
  e.classList ? e.classList.add(t) : Ny(e, t) || (e.className = `${e.className} ${t}`);
}
function Im(e, t) {
  if (e.classList)
    e.classList.remove(t);
  else if (Ny(e, t)) {
    const n = e.className;
    e.className = ` ${n} `.replace(` ${t} `, " ");
  }
}
const nd = function() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
  return {
    name: e,
    appear: t,
    css: !0,
    onBeforeEnter: (n) => {
      n.style.height = "0px", n.style.opacity = "0", Pm(n, e);
    },
    onEnter: (n) => {
      De(() => {
        n.style.height = `${n.scrollHeight}px`, n.style.opacity = "1";
      });
    },
    onAfterEnter: (n) => {
      n && (Im(n, e), n.style.height = null, n.style.opacity = null);
    },
    onBeforeLeave: (n) => {
      Pm(n, e), n.style.height = `${n.offsetHeight}px`, n.style.opacity = null;
    },
    onLeave: (n) => {
      setTimeout(() => {
        n.style.height = "0px", n.style.opacity = "0";
      });
    },
    onAfterLeave: (n) => {
      n && (Im(n, e), n.style && (n.style.height = null, n.style.opacity = null));
    }
  };
}, B8 = () => ({
  title: G.any,
  // Internal user prop
  originItemValue: xe()
}), ja = q({
  compatConfig: {
    MODE: 3
  },
  name: "AMenuItemGroup",
  inheritAttrs: !1,
  props: B8(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r
    } = yn(), i = w(() => `${r.value}-item-group`), a = ed();
    return () => {
      var l, s;
      return a ? (l = n.default) === null || l === void 0 ? void 0 : l.call(n) : m("li", z(z({}, o), {}, {
        onClick: (c) => c.stopPropagation(),
        class: i.value
      }), [m("div", {
        title: typeof e.title == "string" ? e.title : void 0,
        class: `${i.value}-title`
      }, [di(n, e, "title")]), m("ul", {
        class: `${i.value}-list`
      }, [(s = n.default) === null || s === void 0 ? void 0 : s.call(n)])]);
    };
  }
}), H8 = () => ({
  prefixCls: String,
  dashed: Boolean
}), za = q({
  compatConfig: {
    MODE: 3
  },
  name: "AMenuDivider",
  props: H8(),
  setup(e) {
    const {
      prefixCls: t
    } = yn(), n = w(() => ({
      [`${t.value}-item-divider`]: !0,
      [`${t.value}-item-divider-dashed`]: !!e.dashed
    }));
    return () => m("li", {
      class: n.value
    }, null);
  }
});
var _8 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function yc(e, t, n) {
  return (e || []).map((o, r) => {
    if (o && typeof o == "object") {
      const i = o, {
        label: a,
        children: l,
        key: s,
        type: c
      } = i, u = _8(i, ["label", "children", "key", "type"]), d = s ?? `tmp-${r}`, f = n ? n.parentKeys.slice() : [], p = [], y = {
        eventKey: d,
        key: d,
        parentEventKeys: Z(f),
        parentKeys: Z(f),
        childrenEventKeys: Z(p),
        isLeaf: !1
      };
      if (l || c === "group") {
        if (c === "group") {
          const v = yc(l, t, n);
          return m(ja, z(z({
            key: d
          }, u), {}, {
            title: a,
            originItemValue: o
          }), {
            default: () => [v]
          });
        }
        t.set(d, y), n && n.childrenEventKeys.push(d);
        const g = yc(l, t, {
          childrenEventKeys: p,
          parentKeys: [].concat(f, d)
        });
        return m(tr, z(z({
          key: d
        }, u), {}, {
          title: a,
          originItemValue: o
        }), {
          default: () => [g]
        });
      }
      return c === "divider" ? m(za, z({
        key: d
      }, u), null) : (y.isLeaf = !0, t.set(d, y), m(ni, z(z({
        key: d
      }, u), {}, {
        originItemValue: o
      }), {
        default: () => [a]
      }));
    }
    return null;
  }).filter((o) => o);
}
function V8(e) {
  const t = K([]), n = K(!1), o = K(/* @__PURE__ */ new Map());
  return ee(() => e.items, () => {
    const r = /* @__PURE__ */ new Map();
    n.value = !1, e.items ? (n.value = !0, t.value = yc(e.items, r)) : t.value = void 0, o.value = r;
  }, {
    immediate: !0,
    deep: !0
  }), {
    itemsNodes: t,
    store: o,
    hasItmes: n
  };
}
const W8 = (e) => {
  const {
    componentCls: t,
    motionDurationSlow: n,
    menuHorizontalHeight: o,
    colorSplit: r,
    lineWidth: i,
    lineType: a,
    menuItemPaddingInline: l
  } = e;
  return {
    [`${t}-horizontal`]: {
      lineHeight: `${o}px`,
      border: 0,
      borderBottom: `${i}px ${a} ${r}`,
      boxShadow: "none",
      "&::after": {
        display: "block",
        clear: "both",
        height: 0,
        content: '"\\20"'
      },
      // ======================= Item =======================
      [`${t}-item, ${t}-submenu`]: {
        position: "relative",
        display: "inline-block",
        verticalAlign: "bottom",
        paddingInline: l
      },
      [`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]: {
        backgroundColor: "transparent"
      },
      [`${t}-item, ${t}-submenu-title`]: {
        transition: [`border-color ${n}`, `background ${n}`].join(",")
      },
      // ===================== Sub Menu =====================
      [`${t}-submenu-arrow`]: {
        display: "none"
      }
    }
  };
}, k8 = (e) => {
  let {
    componentCls: t,
    menuArrowOffset: n
  } = e;
  return {
    [`${t}-rtl`]: {
      direction: "rtl"
    },
    [`${t}-submenu-rtl`]: {
      transformOrigin: "100% 0"
    },
    // Vertical Arrow
    [`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]: {
      [`${t}-submenu-arrow`]: {
        "&::before": {
          transform: `rotate(-45deg) translateY(-${n})`
        },
        "&::after": {
          transform: `rotate(45deg) translateY(${n})`
        }
      }
    }
  };
}, Tm = (e) => h({}, ou(e)), Em = (e, t) => {
  const {
    componentCls: n,
    colorItemText: o,
    colorItemTextSelected: r,
    colorGroupTitle: i,
    colorItemBg: a,
    colorSubItemBg: l,
    colorItemBgSelected: s,
    colorActiveBarHeight: c,
    colorActiveBarWidth: u,
    colorActiveBarBorderSize: d,
    motionDurationSlow: f,
    motionEaseInOut: p,
    motionEaseOut: y,
    menuItemPaddingInline: g,
    motionDurationMid: v,
    colorItemTextHover: b,
    lineType: O,
    colorSplit: C,
    // Disabled
    colorItemTextDisabled: x,
    // Danger
    colorDangerItemText: S,
    colorDangerItemTextHover: P,
    colorDangerItemTextSelected: $,
    colorDangerItemBgActive: T,
    colorDangerItemBgSelected: E,
    colorItemBgHover: M,
    menuSubMenuBg: R,
    // Horizontal
    colorItemTextSelectedHorizontal: N,
    colorItemBgSelectedHorizontal: F
  } = e;
  return {
    [`${n}-${t}`]: {
      color: o,
      background: a,
      [`&${n}-root:focus-visible`]: h({}, Tm(e)),
      // ======================== Item ========================
      [`${n}-item-group-title`]: {
        color: i
      },
      [`${n}-submenu-selected`]: {
        [`> ${n}-submenu-title`]: {
          color: r
        }
      },
      // Disabled
      [`${n}-item-disabled, ${n}-submenu-disabled`]: {
        color: `${x} !important`
      },
      // Hover
      [`${n}-item:hover, ${n}-submenu-title:hover`]: {
        [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
          color: b
        }
      },
      [`&:not(${n}-horizontal)`]: {
        [`${n}-item:not(${n}-item-selected)`]: {
          "&:hover": {
            backgroundColor: M
          },
          "&:active": {
            backgroundColor: s
          }
        },
        [`${n}-submenu-title`]: {
          "&:hover": {
            backgroundColor: M
          },
          "&:active": {
            backgroundColor: s
          }
        }
      },
      // Danger - only Item has
      [`${n}-item-danger`]: {
        color: S,
        [`&${n}-item:hover`]: {
          [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
            color: P
          }
        },
        [`&${n}-item:active`]: {
          background: T
        }
      },
      [`${n}-item a`]: {
        "&, &:hover": {
          color: "inherit"
        }
      },
      [`${n}-item-selected`]: {
        color: r,
        // Danger
        [`&${n}-item-danger`]: {
          color: $
        },
        "a, a:hover": {
          color: "inherit"
        }
      },
      [`& ${n}-item-selected`]: {
        backgroundColor: s,
        // Danger
        [`&${n}-item-danger`]: {
          backgroundColor: E
        }
      },
      [`${n}-item, ${n}-submenu-title`]: {
        [`&:not(${n}-item-disabled):focus-visible`]: h({}, Tm(e))
      },
      [`&${n}-submenu > ${n}`]: {
        backgroundColor: R
      },
      [`&${n}-popup > ${n}`]: {
        backgroundColor: a
      },
      // ====================== Horizontal ======================
      [`&${n}-horizontal`]: h(h({}, t === "dark" ? {
        borderBottom: 0
      } : {}), {
        [`> ${n}-item, > ${n}-submenu`]: {
          top: d,
          marginTop: -d,
          marginBottom: 0,
          borderRadius: 0,
          "&::after": {
            position: "absolute",
            insetInline: g,
            bottom: 0,
            borderBottom: `${c}px solid transparent`,
            transition: `border-color ${f} ${p}`,
            content: '""'
          },
          "&:hover, &-active, &-open": {
            "&::after": {
              borderBottomWidth: c,
              borderBottomColor: N
            }
          },
          "&-selected": {
            color: N,
            backgroundColor: F,
            "&::after": {
              borderBottomWidth: c,
              borderBottomColor: N
            }
          }
        }
      }),
      // ================== Inline & Vertical ===================
      //
      [`&${n}-root`]: {
        [`&${n}-inline, &${n}-vertical`]: {
          borderInlineEnd: `${d}px ${O} ${C}`
        }
      },
      // ======================== Inline ========================
      [`&${n}-inline`]: {
        // Sub
        [`${n}-sub${n}-inline`]: {
          background: l
        },
        // Item
        [`${n}-item, ${n}-submenu-title`]: d && u ? {
          width: `calc(100% + ${d}px)`
        } : {},
        [`${n}-item`]: {
          position: "relative",
          "&::after": {
            position: "absolute",
            insetBlock: 0,
            insetInlineEnd: 0,
            borderInlineEnd: `${u}px solid ${r}`,
            transform: "scaleY(0.0001)",
            opacity: 0,
            transition: [`transform ${v} ${y}`, `opacity ${v} ${y}`].join(","),
            content: '""'
          },
          // Danger
          [`&${n}-item-danger`]: {
            "&::after": {
              borderInlineEndColor: $
            }
          }
        },
        [`${n}-selected, ${n}-item-selected`]: {
          "&::after": {
            transform: "scaleY(1)",
            opacity: 1,
            transition: [`transform ${v} ${p}`, `opacity ${v} ${p}`].join(",")
          }
        }
      }
    }
  };
}, Am = (e) => {
  const {
    componentCls: t,
    menuItemHeight: n,
    itemMarginInline: o,
    padding: r,
    menuArrowSize: i,
    marginXS: a,
    marginXXS: l
  } = e, s = r + i + a;
  return {
    [`${t}-item`]: {
      position: "relative"
    },
    [`${t}-item, ${t}-submenu-title`]: {
      height: n,
      lineHeight: `${n}px`,
      paddingInline: r,
      overflow: "hidden",
      textOverflow: "ellipsis",
      marginInline: o,
      marginBlock: l,
      width: `calc(100% - ${o * 2}px)`
    },
    // disable margin collapsed
    [`${t}-submenu`]: {
      paddingBottom: 0.02
    },
    [`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]: {
      height: n,
      lineHeight: `${n}px`
    },
    [`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]: {
      paddingInlineEnd: s
    }
  };
}, X8 = (e) => {
  const {
    componentCls: t,
    iconCls: n,
    menuItemHeight: o,
    colorTextLightSolid: r,
    dropdownWidth: i,
    controlHeightLG: a,
    motionDurationMid: l,
    motionEaseOut: s,
    paddingXL: c,
    fontSizeSM: u,
    fontSizeLG: d,
    motionDurationSlow: f,
    paddingXS: p,
    boxShadowSecondary: y
  } = e, g = {
    height: o,
    lineHeight: `${o}px`,
    listStylePosition: "inside",
    listStyleType: "disc"
  };
  return [
    {
      [t]: {
        "&-inline, &-vertical": h({
          [`&${t}-root`]: {
            boxShadow: "none"
          }
        }, Am(e))
      },
      [`${t}-submenu-popup`]: {
        [`${t}-vertical`]: h(h({}, Am(e)), {
          boxShadow: y
        })
      }
    },
    // Vertical only
    {
      [`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
        minWidth: i,
        maxHeight: `calc(100vh - ${a * 2.5}px)`,
        padding: "0",
        overflow: "hidden",
        borderInlineEnd: 0,
        // https://github.com/ant-design/ant-design/issues/22244
        // https://github.com/ant-design/ant-design/issues/26812
        "&:not([class*='-active'])": {
          overflowX: "hidden",
          overflowY: "auto"
        }
      }
    },
    // Inline Only
    {
      [`${t}-inline`]: {
        width: "100%",
        // Motion enhance for first level
        [`&${t}-root`]: {
          [`${t}-item, ${t}-submenu-title`]: {
            display: "flex",
            alignItems: "center",
            transition: [`border-color ${f}`, `background ${f}`, `padding ${l} ${s}`].join(","),
            [`> ${t}-title-content`]: {
              flex: "auto",
              minWidth: 0,
              overflow: "hidden",
              textOverflow: "ellipsis"
            },
            "> *": {
              flex: "none"
            }
          }
        },
        // >>>>> Sub
        [`${t}-sub${t}-inline`]: {
          padding: 0,
          border: 0,
          borderRadius: 0,
          boxShadow: "none",
          [`& > ${t}-submenu > ${t}-submenu-title`]: g,
          [`& ${t}-item-group-title`]: {
            paddingInlineStart: c
          }
        },
        // >>>>> Item
        [`${t}-item`]: g
      }
    },
    // Inline Collapse Only
    {
      [`${t}-inline-collapsed`]: {
        width: o * 2,
        [`&${t}-root`]: {
          [`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
            [`> ${t}-inline-collapsed-noicon`]: {
              fontSize: d,
              textAlign: "center"
            }
          }
        },
        [`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]: {
          insetInlineStart: 0,
          paddingInline: `calc(50% - ${u}px)`,
          textOverflow: "clip",
          [`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]: {
            opacity: 0
          },
          [`${t}-item-icon, ${n}`]: {
            margin: 0,
            fontSize: d,
            lineHeight: `${o}px`,
            "+ span": {
              display: "inline-block",
              opacity: 0
            }
          }
        },
        [`${t}-item-icon, ${n}`]: {
          display: "inline-block"
        },
        "&-tooltip": {
          pointerEvents: "none",
          [`${t}-item-icon, ${n}`]: {
            display: "none"
          },
          "a, a:hover": {
            color: r
          }
        },
        [`${t}-item-group-title`]: h(h({}, En), {
          paddingInline: p
        })
      }
    }
  ];
}, Mm = (e) => {
  const {
    componentCls: t,
    fontSize: n,
    motionDurationSlow: o,
    motionDurationMid: r,
    motionEaseInOut: i,
    motionEaseOut: a,
    iconCls: l,
    controlHeightSM: s
  } = e;
  return {
    // >>>>> Item
    [`${t}-item, ${t}-submenu-title`]: {
      position: "relative",
      display: "block",
      margin: 0,
      whiteSpace: "nowrap",
      cursor: "pointer",
      transition: [`border-color ${o}`, `background ${o}`, `padding ${o} ${i}`].join(","),
      [`${t}-item-icon, ${l}`]: {
        minWidth: n,
        fontSize: n,
        transition: [`font-size ${r} ${a}`, `margin ${o} ${i}`, `color ${o}`].join(","),
        "+ span": {
          marginInlineStart: s - n,
          opacity: 1,
          transition: [`opacity ${o} ${i}`, `margin ${o}`, `color ${o}`].join(",")
        }
      },
      [`${t}-item-icon`]: h({}, tl()),
      [`&${t}-item-only-child`]: {
        [`> ${l}, > ${t}-item-icon`]: {
          marginInlineEnd: 0
        }
      }
    },
    // Disabled state sets text to gray and nukes hover/tab effects
    [`${t}-item-disabled, ${t}-submenu-disabled`]: {
      background: "none !important",
      cursor: "not-allowed",
      "&::after": {
        borderColor: "transparent !important"
      },
      a: {
        color: "inherit !important"
      },
      [`> ${t}-submenu-title`]: {
        color: "inherit !important",
        cursor: "not-allowed"
      }
    }
  };
}, Rm = (e) => {
  const {
    componentCls: t,
    motionDurationSlow: n,
    motionEaseInOut: o,
    borderRadius: r,
    menuArrowSize: i,
    menuArrowOffset: a
  } = e;
  return {
    [`${t}-submenu`]: {
      "&-expand-icon, &-arrow": {
        position: "absolute",
        top: "50%",
        insetInlineEnd: e.margin,
        width: i,
        color: "currentcolor",
        transform: "translateY(-50%)",
        transition: `transform ${n} ${o}, opacity ${n}`
      },
      "&-arrow": {
        // →
        "&::before, &::after": {
          position: "absolute",
          width: i * 0.6,
          height: i * 0.15,
          backgroundColor: "currentcolor",
          borderRadius: r,
          transition: [`background ${n} ${o}`, `transform ${n} ${o}`, `top ${n} ${o}`, `color ${n} ${o}`].join(","),
          content: '""'
        },
        "&::before": {
          transform: `rotate(45deg) translateY(-${a})`
        },
        "&::after": {
          transform: `rotate(-45deg) translateY(${a})`
        }
      }
    }
  };
}, K8 = (e) => {
  const {
    antCls: t,
    componentCls: n,
    fontSize: o,
    motionDurationSlow: r,
    motionDurationMid: i,
    motionEaseInOut: a,
    lineHeight: l,
    paddingXS: s,
    padding: c,
    colorSplit: u,
    lineWidth: d,
    zIndexPopup: f,
    borderRadiusLG: p,
    radiusSubMenuItem: y,
    menuArrowSize: g,
    menuArrowOffset: v,
    lineType: b,
    menuPanelMaskInset: O
  } = e;
  return [
    // Misc
    {
      "": {
        [`${n}`]: h(h({}, qr()), {
          // Hidden
          "&-hidden": {
            display: "none"
          }
        })
      },
      [`${n}-submenu-hidden`]: {
        display: "none"
      }
    },
    {
      [n]: h(h(h(h(h(h(h({}, Ue(e)), qr()), {
        marginBottom: 0,
        paddingInlineStart: 0,
        // Override default ul/ol
        fontSize: o,
        lineHeight: 0,
        listStyle: "none",
        outline: "none",
        transition: `width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,
        "ul, ol": {
          margin: 0,
          padding: 0,
          listStyle: "none"
        },
        // Overflow ellipsis
        "&-overflow": {
          display: "flex",
          [`${n}-item`]: {
            flex: "none"
          }
        },
        [`${n}-item, ${n}-submenu, ${n}-submenu-title`]: {
          borderRadius: e.radiusItem
        },
        [`${n}-item-group-title`]: {
          padding: `${s}px ${c}px`,
          fontSize: o,
          lineHeight: l,
          transition: `all ${r}`
        },
        [`&-horizontal ${n}-submenu`]: {
          transition: [`border-color ${r} ${a}`, `background ${r} ${a}`].join(",")
        },
        [`${n}-submenu, ${n}-submenu-inline`]: {
          transition: [`border-color ${r} ${a}`, `background ${r} ${a}`, `padding ${i} ${a}`].join(",")
        },
        [`${n}-submenu ${n}-sub`]: {
          cursor: "initial",
          transition: [`background ${r} ${a}`, `padding ${r} ${a}`].join(",")
        },
        [`${n}-title-content`]: {
          transition: `color ${r}`
        },
        [`${n}-item a`]: {
          "&::before": {
            position: "absolute",
            inset: 0,
            backgroundColor: "transparent",
            content: '""'
          }
        },
        // Removed a Badge related style seems it's safe
        // https://github.com/ant-design/ant-design/issues/19809
        // >>>>> Divider
        [`${n}-item-divider`]: {
          overflow: "hidden",
          lineHeight: 0,
          borderColor: u,
          borderStyle: b,
          borderWidth: 0,
          borderTopWidth: d,
          marginBlock: d,
          padding: 0,
          "&-dashed": {
            borderStyle: "dashed"
          }
        }
      }), Mm(e)), {
        [`${n}-item-group`]: {
          [`${n}-item-group-list`]: {
            margin: 0,
            padding: 0,
            [`${n}-item, ${n}-submenu-title`]: {
              paddingInline: `${o * 2}px ${c}px`
            }
          }
        },
        // ======================= Sub Menu =======================
        "&-submenu": {
          "&-popup": {
            position: "absolute",
            zIndex: f,
            background: "transparent",
            borderRadius: p,
            boxShadow: "none",
            transformOrigin: "0 0",
            // https://github.com/ant-design/ant-design/issues/13955
            "&::before": {
              position: "absolute",
              inset: `${O}px 0 0`,
              zIndex: -1,
              width: "100%",
              height: "100%",
              opacity: 0,
              content: '""'
            }
          },
          // https://github.com/ant-design/ant-design/issues/13955
          "&-placement-rightTop::before": {
            top: 0,
            insetInlineStart: O
          },
          [`> ${n}`]: h(h(h({
            borderRadius: p
          }, Mm(e)), Rm(e)), {
            [`${n}-item, ${n}-submenu > ${n}-submenu-title`]: {
              borderRadius: y
            },
            [`${n}-submenu-title::after`]: {
              transition: `transform ${r} ${a}`
            }
          })
        }
      }), Rm(e)), {
        [`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]: {
          // ↓
          "&::before": {
            transform: `rotate(-45deg) translateX(${v})`
          },
          "&::after": {
            transform: `rotate(45deg) translateX(-${v})`
          }
        },
        [`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]: {
          // ↑
          transform: `translateY(-${g * 0.2}px)`,
          "&::after": {
            transform: `rotate(-45deg) translateX(-${v})`
          },
          "&::before": {
            transform: `rotate(45deg) translateX(${v})`
          }
        }
      })
    },
    // Integration with header element so menu items have the same height
    {
      [`${t}-layout-header`]: {
        [n]: {
          lineHeight: "inherit"
        }
      }
    }
  ];
}, G8 = ((e, t) => We("Menu", (o, r) => {
  let {
    overrideComponentToken: i
  } = r;
  if ((t == null ? void 0 : t.value) === !1)
    return [];
  const {
    colorBgElevated: a,
    colorPrimary: l,
    colorError: s,
    colorErrorHover: c,
    colorTextLightSolid: u
  } = o, {
    controlHeightLG: d,
    fontSize: f
  } = o, p = f / 7 * 5, y = Me(o, {
    menuItemHeight: d,
    menuItemPaddingInline: o.margin,
    menuArrowSize: p,
    menuHorizontalHeight: d * 1.15,
    menuArrowOffset: `${p * 0.25}px`,
    menuPanelMaskInset: -7,
    menuSubMenuBg: a
  }), g = new Fe(u).setAlpha(0.65).toRgbString(), v = Me(y, {
    colorItemText: g,
    colorItemTextHover: u,
    colorGroupTitle: g,
    colorItemTextSelected: u,
    colorItemBg: "#001529",
    colorSubItemBg: "#000c17",
    colorItemBgActive: "transparent",
    colorItemBgSelected: l,
    colorActiveBarWidth: 0,
    colorActiveBarHeight: 0,
    colorActiveBarBorderSize: 0,
    // Disabled
    colorItemTextDisabled: new Fe(u).setAlpha(0.25).toRgbString(),
    // Danger
    colorDangerItemText: s,
    colorDangerItemTextHover: c,
    colorDangerItemTextSelected: u,
    colorDangerItemBgActive: s,
    colorDangerItemBgSelected: s,
    menuSubMenuBg: "#001529",
    // Horizontal
    colorItemTextSelectedHorizontal: u,
    colorItemBgSelectedHorizontal: l
  }, h({}, i));
  return [
    // Basic
    K8(y),
    // Horizontal
    W8(y),
    // Vertical
    X8(y),
    // Theme
    Em(y, "light"),
    Em(v, "dark"),
    // RTL
    k8(y),
    // Motion
    Ku(y),
    er(y, "slide-up"),
    er(y, "slide-down"),
    yi(y, "zoom-big")
  ];
}, (o) => {
  const {
    colorPrimary: r,
    colorError: i,
    colorTextDisabled: a,
    colorErrorBg: l,
    colorText: s,
    colorTextDescription: c,
    colorBgContainer: u,
    colorFillAlter: d,
    colorFillContent: f,
    lineWidth: p,
    lineWidthBold: y,
    controlItemBgActive: g,
    colorBgTextHover: v
  } = o;
  return {
    dropdownWidth: 160,
    zIndexPopup: o.zIndexPopupBase + 50,
    radiusItem: o.borderRadiusLG,
    radiusSubMenuItem: o.borderRadiusSM,
    colorItemText: s,
    colorItemTextHover: s,
    colorItemTextHoverHorizontal: r,
    colorGroupTitle: c,
    colorItemTextSelected: r,
    colorItemTextSelectedHorizontal: r,
    colorItemBg: u,
    colorItemBgHover: v,
    colorItemBgActive: f,
    colorSubItemBg: d,
    colorItemBgSelected: g,
    colorItemBgSelectedHorizontal: "transparent",
    colorActiveBarWidth: 0,
    colorActiveBarHeight: y,
    colorActiveBarBorderSize: p,
    // Disabled
    colorItemTextDisabled: a,
    // Danger
    colorDangerItemText: i,
    colorDangerItemTextHover: i,
    colorDangerItemTextSelected: i,
    colorDangerItemBgActive: l,
    colorDangerItemBgSelected: l,
    itemMarginInline: o.marginXXS
  };
})(e)), U8 = () => ({
  id: String,
  prefixCls: String,
  // donot use items, now only support inner use
  items: Array,
  disabled: Boolean,
  inlineCollapsed: Boolean,
  disabledOverflow: Boolean,
  forceSubMenuRender: Boolean,
  openKeys: Array,
  selectedKeys: Array,
  activeKey: String,
  selectable: {
    type: Boolean,
    default: !0
  },
  multiple: {
    type: Boolean,
    default: !1
  },
  tabindex: {
    type: [Number, String]
  },
  motion: Object,
  role: String,
  theme: {
    type: String,
    default: "light"
  },
  mode: {
    type: String,
    default: "vertical"
  },
  inlineIndent: {
    type: Number,
    default: 24
  },
  subMenuOpenDelay: {
    type: Number,
    default: 0
  },
  subMenuCloseDelay: {
    type: Number,
    default: 0.1
  },
  builtinPlacements: {
    type: Object
  },
  triggerSubMenuAction: {
    type: String,
    default: "hover"
  },
  getPopupContainer: Function,
  expandIcon: Function,
  onOpenChange: Function,
  onSelect: Function,
  onDeselect: Function,
  onClick: [Function, Array],
  onFocus: Function,
  onBlur: Function,
  onMousedown: Function,
  "onUpdate:openKeys": Function,
  "onUpdate:selectedKeys": Function,
  "onUpdate:activeKey": Function
}), Dm = [], On = q({
  compatConfig: {
    MODE: 3
  },
  name: "AMenu",
  inheritAttrs: !1,
  props: U8(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      emit: o,
      attrs: r
    } = t;
    const {
      direction: i,
      getPrefixCls: a
    } = Ee("menu", e), l = Py(), s = w(() => {
      var k;
      return a("menu", e.prefixCls || ((k = l == null ? void 0 : l.prefixCls) === null || k === void 0 ? void 0 : k.value));
    }), [c, u] = G8(s, w(() => !l)), d = K(/* @__PURE__ */ new Map()), f = Ce(A8, Z(void 0)), p = w(() => f.value !== void 0 ? f.value : e.inlineCollapsed), {
      itemsNodes: y
    } = V8(e), g = K(!1);
    be(() => {
      g.value = !0;
    }), we(() => {
      Tt(!(e.inlineCollapsed === !0 && e.mode !== "inline"), "Menu", "`inlineCollapsed` should only be used when `mode` is inline."), Tt(!(f.value !== void 0 && e.inlineCollapsed === !0), "Menu", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.");
    });
    const v = Z([]), b = Z([]), O = Z({});
    ee(d, () => {
      const k = {};
      for (const ne of d.value.values())
        k[ne.key] = ne;
      O.value = k;
    }, {
      flush: "post"
    }), we(() => {
      if (e.activeKey !== void 0) {
        let k = [];
        const ne = e.activeKey ? O.value[e.activeKey] : void 0;
        ne && e.activeKey !== void 0 ? k = is([].concat(se(ne.parentKeys), e.activeKey)) : k = [], br(v.value, k) || (v.value = k);
      }
    }), ee(() => e.selectedKeys, (k) => {
      k && (b.value = k.slice());
    }, {
      immediate: !0,
      deep: !0
    });
    const C = Z([]);
    ee([O, b], () => {
      let k = [];
      b.value.forEach((ne) => {
        const X = O.value[ne];
        X && (k = k.concat(se(X.parentKeys)));
      }), k = is(k), br(C.value, k) || (C.value = k);
    }, {
      immediate: !0
    });
    const x = (k) => {
      if (e.selectable) {
        const {
          key: ne
        } = k, X = b.value.includes(ne);
        let B;
        e.multiple ? X ? B = b.value.filter((Y) => Y !== ne) : B = [...b.value, ne] : B = [ne];
        const W = h(h({}, k), {
          selectedKeys: B
        });
        br(B, b.value) || (e.selectedKeys === void 0 && (b.value = B), o("update:selectedKeys", B), X && e.multiple ? o("deselect", W) : o("select", W));
      }
      M.value !== "inline" && !e.multiple && S.value.length && F(Dm);
    }, S = Z([]);
    ee(() => e.openKeys, function() {
      let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : S.value;
      br(S.value, k) || (S.value = k.slice());
    }, {
      immediate: !0,
      deep: !0
    });
    let P;
    const $ = (k) => {
      clearTimeout(P), P = setTimeout(() => {
        e.activeKey === void 0 && (v.value = k), o("update:activeKey", k[k.length - 1]);
      });
    }, T = w(() => !!e.disabled), E = w(() => i.value === "rtl"), M = Z("vertical"), R = K(!1);
    we(() => {
      var k;
      (e.mode === "inline" || e.mode === "vertical") && p.value ? (M.value = "vertical", R.value = p.value) : (M.value = e.mode, R.value = !1), !((k = l == null ? void 0 : l.mode) === null || k === void 0) && k.value && (M.value = l.mode.value);
    });
    const N = w(() => M.value === "inline"), F = (k) => {
      S.value = k, o("update:openKeys", k), o("openChange", k);
    }, H = Z(S.value), I = K(!1);
    ee(S, () => {
      N.value && (H.value = S.value);
    }, {
      immediate: !0
    }), ee(N, () => {
      if (!I.value) {
        I.value = !0;
        return;
      }
      N.value ? S.value = H.value : F(Dm);
    }, {
      immediate: !0
    });
    const A = w(() => ({
      [`${s.value}`]: !0,
      [`${s.value}-root`]: !0,
      [`${s.value}-${M.value}`]: !0,
      [`${s.value}-inline-collapsed`]: R.value,
      [`${s.value}-rtl`]: E.value,
      [`${s.value}-${e.theme}`]: !0
    })), j = w(() => a()), L = w(() => ({
      horizontal: {
        name: `${j.value}-slide-up`
      },
      inline: nd(`${j.value}-motion-collapse`),
      other: {
        name: `${j.value}-zoom-big`
      }
    }));
    Ry(!0);
    const D = function() {
      let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
      const ne = [], X = d.value;
      return k.forEach((B) => {
        const {
          key: W,
          childrenEventKeys: Y
        } = X.get(B);
        ne.push(W, ...D(se(Y)));
      }), ne;
    }, _ = (k) => {
      var ne;
      o("click", k), x(k), (ne = l == null ? void 0 : l.onClick) === null || ne === void 0 || ne.call(l);
    }, V = (k, ne) => {
      var X;
      const B = ((X = O.value[k]) === null || X === void 0 ? void 0 : X.childrenEventKeys) || [];
      let W = S.value.filter((Y) => Y !== k);
      if (ne)
        W.push(k);
      else if (M.value !== "inline") {
        const Y = D(se(B));
        W = is(W.filter((te) => !Y.includes(te)));
      }
      br(S, W) || F(W);
    }, J = (k, ne) => {
      d.value.set(k, ne), d.value = new Map(d.value);
    }, oe = (k) => {
      d.value.delete(k), d.value = new Map(d.value);
    }, re = Z(0), Q = w(() => {
      var k;
      return e.expandIcon || n.expandIcon || !((k = l == null ? void 0 : l.expandIcon) === null || k === void 0) && k.value ? (ne) => {
        let X = e.expandIcon || n.expandIcon;
        return X = typeof X == "function" ? X(ne) : X, He(X, {
          class: `${s.value}-submenu-expand-icon`
        }, !1);
      } : null;
    });
    Ty({
      prefixCls: s,
      activeKeys: v,
      openKeys: S,
      selectedKeys: b,
      changeActiveKeys: $,
      disabled: T,
      rtl: E,
      mode: M,
      inlineIndent: w(() => e.inlineIndent),
      subMenuCloseDelay: w(() => e.subMenuCloseDelay),
      subMenuOpenDelay: w(() => e.subMenuOpenDelay),
      builtinPlacements: w(() => e.builtinPlacements),
      triggerSubMenuAction: w(() => e.triggerSubMenuAction),
      getPopupContainer: w(() => e.getPopupContainer),
      inlineCollapsed: R,
      theme: w(() => e.theme),
      siderCollapsed: f,
      defaultMotions: w(() => g.value ? L.value : null),
      motion: w(() => g.value ? e.motion : null),
      overflowDisabled: K(void 0),
      onOpenChange: V,
      onItemClick: _,
      registerMenuInfo: J,
      unRegisterMenuInfo: oe,
      selectedSubMenuKeys: C,
      expandIcon: Q,
      forceSubMenuRender: w(() => e.forceSubMenuRender),
      rootClassName: u
    });
    const U = () => {
      var k;
      return y.value || tt((k = n.default) === null || k === void 0 ? void 0 : k.call(n));
    };
    return () => {
      var k;
      const ne = U(), X = re.value >= ne.length - 1 || M.value !== "horizontal" || e.disabledOverflow, B = (Y) => M.value !== "horizontal" || e.disabledOverflow ? Y : (
        // Need wrap for overflow dropdown that do not response for open
        Y.map((te, ae) => (
          // Always wrap provider to avoid sub node re-mount
          m(Na, {
            key: te.key,
            overflowDisabled: ae > re.value
          }, {
            default: () => te
          })
        ))
      ), W = ((k = n.overflowedIndicator) === null || k === void 0 ? void 0 : k.call(n)) || m(bi, null, null);
      return c(m(an, z(z({}, r), {}, {
        onMousedown: e.onMousedown,
        prefixCls: `${s.value}-overflow`,
        component: "ul",
        itemComponent: ni,
        class: [A.value, r.class, u.value],
        role: "menu",
        id: e.id,
        data: B(ne),
        renderRawItem: (Y) => Y,
        renderRawRest: (Y) => {
          const te = Y.length, ae = te ? ne.slice(-te) : null;
          return m(Te, null, [m(tr, {
            eventKey: ki,
            key: ki,
            title: W,
            disabled: X,
            internalPopupClose: te === 0
          }, {
            default: () => ae
          }), m(wm, null, {
            default: () => [m(tr, {
              eventKey: ki,
              key: ki,
              title: W,
              disabled: X,
              internalPopupClose: te === 0
            }, {
              default: () => ae
            })]
          })]);
        },
        maxCount: M.value !== "horizontal" || e.disabledOverflow ? an.INVALIDATE : an.RESPONSIVE,
        ssr: "full",
        "data-menu-list": !0,
        onVisibleChange: (Y) => {
          re.value = Y;
        }
      }), {
        default: () => [m(Ga, {
          to: "body"
        }, {
          default: () => [m("div", {
            style: {
              display: "none"
            },
            "aria-hidden": !0
          }, [m(wm, null, {
            default: () => [B(U())]
          })])]
        })]
      }));
    };
  }
});
On.install = function(e) {
  return e.component(On.name, On), e.component(ni.name, ni), e.component(tr.name, tr), e.component(za.name, za), e.component(ja.name, ja), e;
};
On.Item = ni;
On.Divider = za;
On.SubMenu = tr;
On.ItemGroup = ja;
function q8(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
const Y8 = (e) => ({
  // Firefox
  "&::-moz-placeholder": {
    opacity: 1
  },
  "&::placeholder": {
    color: e,
    userSelect: "none"
    // https://github.com/ant-design/ant-design/pull/32639
  },
  "&:placeholder-shown": {
    textOverflow: "ellipsis"
  }
}), od = (e) => ({
  borderColor: e.inputBorderHoverColor,
  borderInlineEndWidth: e.lineWidth
}), bc = (e) => ({
  borderColor: e.inputBorderHoverColor,
  boxShadow: `0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,
  borderInlineEndWidth: e.lineWidth,
  outline: 0
}), Z8 = (e) => ({
  color: e.colorTextDisabled,
  backgroundColor: e.colorBgContainerDisabled,
  borderColor: e.colorBorder,
  boxShadow: "none",
  cursor: "not-allowed",
  opacity: 1,
  "&:hover": h({}, od(Me(e, {
    inputBorderHoverColor: e.colorBorder
  })))
}), jy = (e) => {
  const {
    inputPaddingVerticalLG: t,
    fontSizeLG: n,
    lineHeightLG: o,
    borderRadiusLG: r,
    inputPaddingHorizontalLG: i
  } = e;
  return {
    padding: `${t}px ${i}px`,
    fontSize: n,
    lineHeight: o,
    borderRadius: r
  };
}, zy = (e) => ({
  padding: `${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM - 1}px`,
  borderRadius: e.borderRadiusSM
}), By = (e, t) => {
  const {
    componentCls: n,
    colorError: o,
    colorWarning: r,
    colorErrorOutline: i,
    colorWarningOutline: a,
    colorErrorBorderHover: l,
    colorWarningBorderHover: s
  } = e;
  return {
    [`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]: {
      borderColor: o,
      "&:hover": {
        borderColor: l
      },
      "&:focus, &-focused": h({}, bc(Me(e, {
        inputBorderActiveColor: o,
        inputBorderHoverColor: o,
        controlOutline: i
      }))),
      [`${n}-prefix`]: {
        color: o
      }
    },
    [`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]: {
      borderColor: r,
      "&:hover": {
        borderColor: s
      },
      "&:focus, &-focused": h({}, bc(Me(e, {
        inputBorderActiveColor: r,
        inputBorderHoverColor: r,
        controlOutline: a
      }))),
      [`${n}-prefix`]: {
        color: r
      }
    }
  };
}, Hy = (e) => h(h({
  position: "relative",
  display: "inline-block",
  width: "100%",
  minWidth: 0,
  padding: `${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,
  color: e.colorText,
  fontSize: e.fontSize,
  lineHeight: e.lineHeight,
  backgroundColor: e.colorBgContainer,
  backgroundImage: "none",
  borderWidth: e.lineWidth,
  borderStyle: e.lineType,
  borderColor: e.colorBorder,
  borderRadius: e.borderRadius,
  transition: `all ${e.motionDurationMid}`
}, Y8(e.colorTextPlaceholder)), {
  "&:hover": h({}, od(e)),
  "&:focus, &-focused": h({}, bc(e)),
  "&-disabled, &[disabled]": h({}, Z8(e)),
  "&-borderless": {
    "&, &:hover, &:focus, &-focused, &-disabled, &[disabled]": {
      backgroundColor: "transparent",
      border: "none",
      boxShadow: "none"
    }
  },
  // Reset height for `textarea`s
  "textarea&": {
    maxWidth: "100%",
    height: "auto",
    minHeight: e.controlHeight,
    lineHeight: e.lineHeight,
    verticalAlign: "bottom",
    transition: `all ${e.motionDurationSlow}, height 0s`,
    resize: "vertical"
  },
  // Size
  "&-lg": h({}, jy(e)),
  "&-sm": h({}, zy(e)),
  // RTL
  "&-rtl": {
    direction: "rtl"
  },
  "&-textarea-rtl": {
    direction: "rtl"
  }
}), Q8 = (e) => {
  const {
    componentCls: t,
    antCls: n
  } = e;
  return {
    position: "relative",
    display: "table",
    width: "100%",
    borderCollapse: "separate",
    borderSpacing: 0,
    // Undo padding and float of grid classes
    "&[class*='col-']": {
      paddingInlineEnd: e.paddingXS,
      "&:last-child": {
        paddingInlineEnd: 0
      }
    },
    // Sizing options
    [`&-lg ${t}, &-lg > ${t}-group-addon`]: h({}, jy(e)),
    [`&-sm ${t}, &-sm > ${t}-group-addon`]: h({}, zy(e)),
    [`> ${t}`]: {
      display: "table-cell",
      "&:not(:first-child):not(:last-child)": {
        borderRadius: 0
      }
    },
    [`${t}-group`]: {
      "&-addon, &-wrap": {
        display: "table-cell",
        width: 1,
        whiteSpace: "nowrap",
        verticalAlign: "middle",
        "&:not(:first-child):not(:last-child)": {
          borderRadius: 0
        }
      },
      "&-wrap > *": {
        display: "block !important"
      },
      "&-addon": {
        position: "relative",
        padding: `0 ${e.inputPaddingHorizontal}px`,
        color: e.colorText,
        fontWeight: "normal",
        fontSize: e.fontSize,
        textAlign: "center",
        backgroundColor: e.colorFillAlter,
        border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
        borderRadius: e.borderRadius,
        transition: `all ${e.motionDurationSlow}`,
        lineHeight: 1,
        // Reset Select's style in addon
        [`${n}-select`]: {
          margin: `-${e.inputPaddingVertical + 1}px -${e.inputPaddingHorizontal}px`,
          [`&${n}-select-single:not(${n}-select-customize-input)`]: {
            [`${n}-select-selector`]: {
              backgroundColor: "inherit",
              border: `${e.lineWidth}px ${e.lineType} transparent`,
              boxShadow: "none"
            }
          },
          "&-open, &-focused": {
            [`${n}-select-selector`]: {
              color: e.colorPrimary
            }
          }
        },
        // https://github.com/ant-design/ant-design/issues/31333
        [`${n}-cascader-picker`]: {
          margin: `-9px -${e.inputPaddingHorizontal}px`,
          backgroundColor: "transparent",
          [`${n}-cascader-input`]: {
            textAlign: "start",
            border: 0,
            boxShadow: "none"
          }
        }
      },
      "&-addon:first-child": {
        borderInlineEnd: 0
      },
      "&-addon:last-child": {
        borderInlineStart: 0
      }
    },
    [`${t}`]: {
      float: "inline-start",
      width: "100%",
      marginBottom: 0,
      textAlign: "inherit",
      "&:focus": {
        zIndex: 1,
        borderInlineEndWidth: 1
      },
      "&:hover": {
        zIndex: 1,
        borderInlineEndWidth: 1,
        [`${t}-search-with-button &`]: {
          zIndex: 0
        }
      }
    },
    // Reset rounded corners
    [`> ${t}:first-child, ${t}-group-addon:first-child`]: {
      borderStartEndRadius: 0,
      borderEndEndRadius: 0,
      // Reset Select's style in addon
      [`${n}-select ${n}-select-selector`]: {
        borderStartEndRadius: 0,
        borderEndEndRadius: 0
      }
    },
    [`> ${t}-affix-wrapper`]: {
      [`&:not(:first-child) ${t}`]: {
        borderStartStartRadius: 0,
        borderEndStartRadius: 0
      },
      [`&:not(:last-child) ${t}`]: {
        borderStartEndRadius: 0,
        borderEndEndRadius: 0
      }
    },
    [`> ${t}:last-child, ${t}-group-addon:last-child`]: {
      borderStartStartRadius: 0,
      borderEndStartRadius: 0,
      // Reset Select's style in addon
      [`${n}-select ${n}-select-selector`]: {
        borderStartStartRadius: 0,
        borderEndStartRadius: 0
      }
    },
    [`${t}-affix-wrapper`]: {
      "&:not(:last-child)": {
        borderStartEndRadius: 0,
        borderEndEndRadius: 0,
        [`${t}-search &`]: {
          borderStartStartRadius: e.borderRadius,
          borderEndStartRadius: e.borderRadius
        }
      },
      [`&:not(:first-child), ${t}-search &:not(:first-child)`]: {
        borderStartStartRadius: 0,
        borderEndStartRadius: 0
      }
    },
    [`&${t}-group-compact`]: h(h({
      display: "block"
    }, qr()), {
      [`${t}-group-addon, ${t}-group-wrap, > ${t}`]: {
        "&:not(:first-child):not(:last-child)": {
          borderInlineEndWidth: e.lineWidth,
          "&:hover": {
            zIndex: 1
          },
          "&:focus": {
            zIndex: 1
          }
        }
      },
      "& > *": {
        display: "inline-block",
        float: "none",
        verticalAlign: "top",
        borderRadius: 0
      },
      [`& > ${t}-affix-wrapper`]: {
        display: "inline-flex"
      },
      [`& > ${n}-picker-range`]: {
        display: "inline-flex"
      },
      "& > *:not(:last-child)": {
        marginInlineEnd: -e.lineWidth,
        borderInlineEndWidth: e.lineWidth
      },
      // Undo float for .ant-input-group .ant-input
      [`${t}`]: {
        float: "none"
      },
      // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
      [`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]: {
        borderInlineEndWidth: e.lineWidth,
        borderRadius: 0,
        "&:hover": {
          zIndex: 1
        },
        "&:focus": {
          zIndex: 1
        }
      },
      [`& > ${n}-select-focused`]: {
        zIndex: 1
      },
      // update z-index for arrow icon
      [`& > ${n}-select > ${n}-select-arrow`]: {
        zIndex: 1
        // https://github.com/ant-design/ant-design/issues/20371
      },
      [`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]: {
        borderStartStartRadius: e.borderRadius,
        borderEndStartRadius: e.borderRadius
      },
      [`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]: {
        borderInlineEndWidth: e.lineWidth,
        borderStartEndRadius: e.borderRadius,
        borderEndEndRadius: e.borderRadius
      },
      // https://github.com/ant-design/ant-design/issues/12493
      [`& > ${n}-select-auto-complete ${t}`]: {
        verticalAlign: "top"
      },
      [`${t}-group-wrapper + ${t}-group-wrapper`]: {
        marginInlineStart: -e.lineWidth,
        [`${t}-affix-wrapper`]: {
          borderRadius: 0
        }
      },
      [`${t}-group-wrapper:not(:last-child)`]: {
        [`&${t}-search > ${t}-group`]: {
          [`& > ${t}-group-addon > ${t}-search-button`]: {
            borderRadius: 0
          },
          [`& > ${t}`]: {
            borderStartStartRadius: e.borderRadius,
            borderStartEndRadius: 0,
            borderEndEndRadius: 0,
            borderEndStartRadius: e.borderRadius
          }
        }
      }
    }),
    [`&&-sm ${n}-btn`]: {
      fontSize: e.fontSizeSM,
      height: e.controlHeightSM,
      lineHeight: "normal"
    },
    [`&&-lg ${n}-btn`]: {
      fontSize: e.fontSizeLG,
      height: e.controlHeightLG,
      lineHeight: "normal"
    },
    // Fix https://github.com/ant-design/ant-design/issues/5754
    [`&&-lg ${n}-select-single ${n}-select-selector`]: {
      height: `${e.controlHeightLG}px`,
      [`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
        // -2 is for the border size & override default
        lineHeight: `${e.controlHeightLG - 2}px`
      },
      [`${n}-select-selection-search-input`]: {
        height: `${e.controlHeightLG}px`
      }
    },
    [`&&-sm ${n}-select-single ${n}-select-selector`]: {
      height: `${e.controlHeightSM}px`,
      [`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
        // -2 is for the border size & override default
        lineHeight: `${e.controlHeightSM - 2}px`
      },
      [`${n}-select-selection-search-input`]: {
        height: `${e.controlHeightSM}px`
      }
    }
  };
}, J8 = (e) => {
  const {
    componentCls: t,
    controlHeightSM: n,
    lineWidth: o
  } = e, i = (n - o * 2 - 16) / 2;
  return {
    [t]: h(h(h(h({}, Ue(e)), Hy(e)), By(e, t)), {
      '&[type="color"]': {
        height: e.controlHeight,
        [`&${t}-lg`]: {
          height: e.controlHeightLG
        },
        [`&${t}-sm`]: {
          height: n,
          paddingTop: i,
          paddingBottom: i
        }
      }
    })
  };
}, eA = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    // ========================= Input =========================
    [`${t}-clear-icon`]: {
      margin: 0,
      color: e.colorTextQuaternary,
      fontSize: e.fontSizeIcon,
      verticalAlign: -1,
      // https://github.com/ant-design/ant-design/pull/18151
      // https://codesandbox.io/s/wizardly-sun-u10br
      cursor: "pointer",
      transition: `color ${e.motionDurationSlow}`,
      "&:hover": {
        color: e.colorTextTertiary
      },
      "&:active": {
        color: e.colorText
      },
      "&-hidden": {
        visibility: "hidden"
      },
      "&-has-suffix": {
        margin: `0 ${e.inputAffixPadding}px`
      }
    },
    // ======================= TextArea ========================
    "&-textarea-with-clear-btn": {
      padding: "0 !important",
      border: "0 !important",
      [`${t}-clear-icon`]: {
        position: "absolute",
        insetBlockStart: e.paddingXS,
        insetInlineEnd: e.paddingXS,
        zIndex: 1
      }
    }
  };
}, tA = (e) => {
  const {
    componentCls: t,
    inputAffixPadding: n,
    colorTextDescription: o,
    motionDurationSlow: r,
    colorIcon: i,
    colorIconHover: a,
    iconCls: l
  } = e;
  return {
    [`${t}-affix-wrapper`]: h(h(h(h(h({}, Hy(e)), {
      display: "inline-flex",
      [`&:not(${t}-affix-wrapper-disabled):hover`]: h(h({}, od(e)), {
        zIndex: 1,
        [`${t}-search-with-button &`]: {
          zIndex: 0
        }
      }),
      "&-focused, &:focus": {
        zIndex: 1
      },
      "&-disabled": {
        [`${t}[disabled]`]: {
          background: "transparent"
        }
      },
      [`> input${t}`]: {
        padding: 0,
        fontSize: "inherit",
        border: "none",
        borderRadius: 0,
        outline: "none",
        "&:focus": {
          boxShadow: "none !important"
        }
      },
      "&::before": {
        width: 0,
        visibility: "hidden",
        content: '"\\a0"'
      },
      [`${t}`]: {
        "&-prefix, &-suffix": {
          display: "flex",
          flex: "none",
          alignItems: "center",
          "> *:not(:last-child)": {
            marginInlineEnd: e.paddingXS
          }
        },
        "&-show-count-suffix": {
          color: o
        },
        "&-show-count-has-suffix": {
          marginInlineEnd: e.paddingXXS
        },
        "&-prefix": {
          marginInlineEnd: n
        },
        "&-suffix": {
          marginInlineStart: n
        }
      }
    }), eA(e)), {
      // password
      [`${l}${t}-password-icon`]: {
        color: i,
        cursor: "pointer",
        transition: `all ${r}`,
        "&:hover": {
          color: a
        }
      }
    }), By(e, `${t}-affix-wrapper`))
  };
}, nA = (e) => {
  const {
    componentCls: t,
    colorError: n,
    colorSuccess: o,
    borderRadiusLG: r,
    borderRadiusSM: i
  } = e;
  return {
    [`${t}-group`]: h(h(h({}, Ue(e)), Q8(e)), {
      "&-rtl": {
        direction: "rtl"
      },
      "&-wrapper": {
        display: "inline-block",
        width: "100%",
        textAlign: "start",
        verticalAlign: "top",
        "&-rtl": {
          direction: "rtl"
        },
        // Size
        "&-lg": {
          [`${t}-group-addon`]: {
            borderRadius: r
          }
        },
        "&-sm": {
          [`${t}-group-addon`]: {
            borderRadius: i
          }
        },
        // Status
        "&-status-error": {
          [`${t}-group-addon`]: {
            color: n,
            borderColor: n
          }
        },
        "&-status-warning": {
          [`${t}-group-addon:last-child`]: {
            color: o,
            borderColor: o
          }
        }
      }
    })
  };
}, oA = (e) => {
  const {
    componentCls: t,
    antCls: n
  } = e, o = `${t}-search`;
  return {
    [o]: {
      [`${t}`]: {
        "&:hover, &:focus": {
          borderColor: e.colorPrimaryHover,
          [`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]: {
            borderInlineStartColor: e.colorPrimaryHover
          }
        }
      },
      [`${t}-affix-wrapper`]: {
        borderRadius: 0
      },
      // fix slight height diff in Firefox:
      // https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category
      [`${t}-lg`]: {
        lineHeight: e.lineHeightLG - 2e-4
      },
      [`> ${t}-group`]: {
        [`> ${t}-group-addon:last-child`]: {
          insetInlineStart: -1,
          padding: 0,
          border: 0,
          [`${o}-button`]: {
            paddingTop: 0,
            paddingBottom: 0,
            borderStartStartRadius: 0,
            borderStartEndRadius: e.borderRadius,
            borderEndEndRadius: e.borderRadius,
            borderEndStartRadius: 0
          },
          [`${o}-button:not(${n}-btn-primary)`]: {
            color: e.colorTextDescription,
            "&:hover": {
              color: e.colorPrimaryHover
            },
            "&:active": {
              color: e.colorPrimaryActive
            },
            [`&${n}-btn-loading::before`]: {
              insetInlineStart: 0,
              insetInlineEnd: 0,
              insetBlockStart: 0,
              insetBlockEnd: 0
            }
          }
        }
      },
      [`${o}-button`]: {
        height: e.controlHeight,
        "&:hover, &:focus": {
          zIndex: 1
        }
      },
      [`&-large ${o}-button`]: {
        height: e.controlHeightLG
      },
      [`&-small ${o}-button`]: {
        height: e.controlHeightSM
      },
      "&-rtl": {
        direction: "rtl"
      },
      // ===================== Compact Item Customized Styles =====================
      [`&${t}-compact-item`]: {
        [`&:not(${t}-compact-last-item)`]: {
          [`${t}-group-addon`]: {
            [`${t}-search-button`]: {
              marginInlineEnd: -e.lineWidth,
              borderRadius: 0
            }
          }
        },
        [`&:not(${t}-compact-first-item)`]: {
          [`${t},${t}-affix-wrapper`]: {
            borderRadius: 0
          }
        },
        [`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]: {
          "&:hover,&:focus,&:active": {
            zIndex: 2
          }
        },
        [`> ${t}-affix-wrapper-focused`]: {
          zIndex: 2
        }
      }
    }
  };
};
function _y(e) {
  return Me(e, {
    inputAffixPadding: e.paddingXXS,
    inputPaddingVertical: Math.max(Math.round((e.controlHeight - e.fontSize * e.lineHeight) / 2 * 10) / 10 - e.lineWidth, 3),
    inputPaddingVerticalLG: Math.ceil((e.controlHeightLG - e.fontSizeLG * e.lineHeightLG) / 2 * 10) / 10 - e.lineWidth,
    inputPaddingVerticalSM: Math.max(Math.round((e.controlHeightSM - e.fontSize * e.lineHeight) / 2 * 10) / 10 - e.lineWidth, 0),
    inputPaddingHorizontal: e.paddingSM - e.lineWidth,
    inputPaddingHorizontalSM: e.paddingXS - e.lineWidth,
    inputPaddingHorizontalLG: e.controlPaddingHorizontal - e.lineWidth,
    inputBorderHoverColor: e.colorPrimaryHover,
    inputBorderActiveColor: e.colorPrimaryHover
  });
}
const rA = (e) => {
  const {
    componentCls: t,
    inputPaddingHorizontal: n,
    paddingLG: o
  } = e, r = `${t}-textarea`;
  return {
    [r]: {
      position: "relative",
      [`${r}-suffix`]: {
        position: "absolute",
        top: 0,
        insetInlineEnd: n,
        bottom: 0,
        zIndex: 1,
        display: "inline-flex",
        alignItems: "center",
        margin: "auto"
      },
      "&-status-error,\n        &-status-warning,\n        &-status-success,\n        &-status-validating": {
        [`&${r}-has-feedback`]: {
          [`${t}`]: {
            paddingInlineEnd: o
          }
        }
      },
      "&-show-count": {
        // https://github.com/ant-design/ant-design/issues/33049
        [`> ${t}`]: {
          height: "100%"
        },
        "&::after": {
          color: e.colorTextDescription,
          whiteSpace: "nowrap",
          content: "attr(data-count)",
          pointerEvents: "none",
          float: "right"
        }
      },
      "&-rtl": {
        "&::after": {
          float: "left"
        }
      }
    }
  };
}, rd = We("Input", (e) => {
  const t = _y(e);
  return [
    J8(t),
    rA(t),
    tA(t),
    nA(t),
    oA(t),
    // =====================================================
    // ==             Space Compact                       ==
    // =====================================================
    bl(t)
  ];
}), Vy = () => {
  const e = Z(/* @__PURE__ */ new Map()), t = (n) => (o) => {
    e.value.set(n, o);
  };
  return Av(() => {
    e.value = /* @__PURE__ */ new Map();
  }), [t, e];
};
var iA = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
function Fm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      aA(e, r, n[r]);
    });
  }
  return e;
}
function aA(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var id = function(t, n) {
  var o = Fm({}, t, n.attrs);
  return m(de, Fm({}, o, {
    icon: iA
  }), null);
};
id.displayName = "PlusOutlined";
id.inheritAttrs = !1;
const ad = "__RC_CASCADER_SPLIT__", Wy = "SHOW_PARENT", ky = "SHOW_CHILD";
function Pn(e) {
  return e.join(ad);
}
function Do(e) {
  return e.map(Pn);
}
function lA(e) {
  return e.split(ad);
}
function sA(e) {
  const {
    label: t,
    value: n,
    children: o
  } = e || {}, r = n || "value";
  return {
    label: t || "label",
    value: r,
    key: r,
    children: o || "children"
  };
}
function Pr(e, t) {
  var n, o;
  return (n = e.isLeaf) !== null && n !== void 0 ? n : !(!((o = e[t.children]) === null || o === void 0) && o.length);
}
function cA(e) {
  const t = e.parentElement;
  if (!t)
    return;
  const n = e.offsetTop - t.offsetTop;
  n - t.scrollTop < 0 ? t.scrollTo({
    top: n
  }) : n + e.offsetHeight - t.scrollTop > t.offsetHeight && t.scrollTo({
    top: n + e.offsetHeight - t.offsetHeight
  });
}
function uA(e, t) {
  return `${e}-${t}`;
}
function Xy(e, t) {
  return e ?? t;
}
function dA(e) {
  const {
    title: t,
    _title: n,
    key: o,
    children: r
  } = e || {}, i = t || "title";
  return {
    title: i,
    _title: n || [i],
    key: o || "key",
    children: r || "children"
  };
}
function fA(e, t, n) {
  let o = {};
  typeof n == "object" ? o = n : o = {
    externalGetKey: n
  }, o = o || {};
  const {
    childrenPropName: r,
    externalGetKey: i,
    fieldNames: a
  } = o, {
    key: l,
    children: s
  } = dA(a), c = r || s;
  let u;
  i ? typeof i == "string" ? u = (f) => f[i] : typeof i == "function" && (u = (f) => i(f)) : u = (f, p) => Xy(f[l], p);
  function d(f, p, y, g) {
    const v = f ? f[c] : e, b = f ? uA(y.pos, p) : "0", O = f ? [...g, f] : [];
    if (f) {
      const C = u(f, b), x = {
        node: f,
        index: p,
        pos: b,
        key: C,
        parentPos: y.node ? y.pos : null,
        level: y.level + 1,
        nodes: O
      };
      t(x);
    }
    v && v.forEach((C, x) => {
      d(C, x, {
        node: f,
        pos: b,
        level: y ? y.level + 1 : -1
      }, O);
    });
  }
  d(null);
}
function pA(e) {
  let {
    initWrapper: t,
    processEntity: n,
    onProcessFinished: o,
    externalGetKey: r,
    childrenPropName: i,
    fieldNames: a
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = arguments.length > 2 ? arguments[2] : void 0;
  const s = r || l, c = {}, u = {};
  let d = {
    posEntities: c,
    keyEntities: u
  };
  return t && (d = t(d) || d), fA(e, (f) => {
    const {
      node: p,
      index: y,
      pos: g,
      key: v,
      parentPos: b,
      level: O,
      nodes: C
    } = f, x = {
      node: p,
      nodes: C,
      index: y,
      key: v,
      pos: g,
      level: O
    }, S = Xy(v, g);
    c[g] = x, u[S] = x, x.parent = c[b], x.parent && (x.parent.children = x.parent.children || [], x.parent.children.push(x)), n && n(x, d);
  }, {
    externalGetKey: s,
    childrenPropName: i,
    fieldNames: a
  }), o && o(d), d;
}
const mA = ((e, t) => w(() => pA(e.value, {
  fieldNames: t.value,
  initWrapper: (o) => h(h({}, o), {
    pathKeyEntities: {}
  }),
  processEntity: (o, r) => {
    const i = o.nodes.map((a) => a[t.value.value]).join(ad);
    r.pathKeyEntities[i] = o, o.key = i;
  }
}).pathKeyEntities));
function gA(e) {
  const t = K(!1), n = Z({});
  return we(() => {
    if (!e.value) {
      t.value = !1, n.value = {};
      return;
    }
    let o = {
      matchInputWidth: !0,
      limit: 50
    };
    e.value && typeof e.value == "object" && (o = h(h({}, o), e.value)), o.limit <= 0 && delete o.limit, t.value = !0, n.value = o;
  }), {
    showSearch: t,
    searchConfig: n
  };
}
const Dr = "__rc_cascader_search_mark__", vA = (e, t, n) => {
  let {
    label: o
  } = n;
  return t.some((r) => String(r[o]).toLowerCase().includes(e.toLowerCase()));
}, hA = (e) => {
  let {
    path: t,
    fieldNames: n
  } = e;
  return t.map((o) => o[n.label]).join(" / ");
}, yA = ((e, t, n, o, r, i) => w(() => {
  const {
    filter: a = vA,
    render: l = hA,
    limit: s = 50,
    sort: c
  } = r.value, u = [];
  if (!e.value)
    return [];
  function d(f, p) {
    f.forEach((y) => {
      if (!c && s > 0 && u.length >= s)
        return;
      const g = [...p, y], v = y[n.value.children];
      // If is leaf option
      (!v || v.length === 0 || // If is changeOnSelect
      i.value) && a(e.value, g, {
        label: n.value.label
      }) && u.push(h(h({}, y), {
        [n.value.label]: l({
          inputValue: e.value,
          path: g,
          prefixCls: o.value,
          fieldNames: n.value
        }),
        [Dr]: g
      })), v && d(y[n.value.children], g);
    });
  }
  return d(t.value, []), c && u.sort((f, p) => c(f[Dr], p[Dr], e.value, n.value)), s > 0 ? u.slice(0, s) : u;
}));
function Lm(e, t, n) {
  const o = new Set(e);
  return e.filter((r) => {
    const i = t[r], a = i ? i.parent : null, l = i ? i.children : null;
    return n === ky ? !(l && l.some((s) => s.key && o.has(s.key))) : !(a && !a.node.disabled && o.has(a.key));
  });
}
function oi(e, t, n) {
  let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  var r;
  let i = t;
  const a = [];
  for (let l = 0; l < e.length; l += 1) {
    const s = e[l], c = i == null ? void 0 : i.findIndex((d) => {
      const f = d[n.value];
      return o ? String(f) === String(s) : f === s;
    }), u = c !== -1 ? i == null ? void 0 : i[c] : null;
    a.push({
      value: (r = u == null ? void 0 : u[n.value]) !== null && r !== void 0 ? r : s,
      index: c,
      option: u
    }), i = u == null ? void 0 : u[n.children];
  }
  return a;
}
const bA = ((e, t, n) => w(() => {
  const o = [], r = [];
  return n.value.forEach((i) => {
    oi(i, e.value, t.value).every((l) => l.option) ? r.push(i) : o.push(i);
  }), [r, o];
}));
function Ky(e, t) {
  const n = /* @__PURE__ */ new Set();
  return e.forEach((o) => {
    t.has(o) || n.add(o);
  }), n;
}
function SA(e) {
  const {
    disabled: t,
    disableCheckbox: n,
    checkable: o
  } = e || {};
  return !!(t || n) || o === !1;
}
function CA(e, t, n, o) {
  const r = new Set(e), i = /* @__PURE__ */ new Set();
  for (let l = 0; l <= n; l += 1)
    (t.get(l) || /* @__PURE__ */ new Set()).forEach((c) => {
      const {
        key: u,
        node: d,
        children: f = []
      } = c;
      r.has(u) && !o(d) && f.filter((p) => !o(p.node)).forEach((p) => {
        r.add(p.key);
      });
    });
  const a = /* @__PURE__ */ new Set();
  for (let l = n; l >= 0; l -= 1)
    (t.get(l) || /* @__PURE__ */ new Set()).forEach((c) => {
      const {
        parent: u,
        node: d
      } = c;
      if (o(d) || !c.parent || a.has(c.parent.key))
        return;
      if (o(c.parent.node)) {
        a.add(u.key);
        return;
      }
      let f = !0, p = !1;
      (u.children || []).filter((y) => !o(y.node)).forEach((y) => {
        let {
          key: g
        } = y;
        const v = r.has(g);
        f && !v && (f = !1), !p && (v || i.has(g)) && (p = !0);
      }), f && r.add(u.key), p && i.add(u.key), a.add(u.key);
    });
  return {
    checkedKeys: Array.from(r),
    halfCheckedKeys: Array.from(Ky(i, r))
  };
}
function $A(e, t, n, o, r) {
  const i = new Set(e);
  let a = new Set(t);
  for (let s = 0; s <= o; s += 1)
    (n.get(s) || /* @__PURE__ */ new Set()).forEach((u) => {
      const {
        key: d,
        node: f,
        children: p = []
      } = u;
      !i.has(d) && !a.has(d) && !r(f) && p.filter((y) => !r(y.node)).forEach((y) => {
        i.delete(y.key);
      });
    });
  a = /* @__PURE__ */ new Set();
  const l = /* @__PURE__ */ new Set();
  for (let s = o; s >= 0; s -= 1)
    (n.get(s) || /* @__PURE__ */ new Set()).forEach((u) => {
      const {
        parent: d,
        node: f
      } = u;
      if (r(f) || !u.parent || l.has(u.parent.key))
        return;
      if (r(u.parent.node)) {
        l.add(d.key);
        return;
      }
      let p = !0, y = !1;
      (d.children || []).filter((g) => !r(g.node)).forEach((g) => {
        let {
          key: v
        } = g;
        const b = i.has(v);
        p && !b && (p = !1), !y && (b || a.has(v)) && (y = !0);
      }), p || i.delete(d.key), y && a.add(d.key), l.add(d.key);
    });
  return {
    checkedKeys: Array.from(i),
    halfCheckedKeys: Array.from(Ky(a, i))
  };
}
function fs(e, t, n, o, r, i) {
  let a;
  a = SA;
  const l = new Set(e.filter((c) => !!n[c]));
  let s;
  return t === !0 ? s = CA(l, r, o, a) : s = $A(l, t.halfCheckedKeys, r, o, a), s;
}
const wA = ((e, t, n, o, r) => w(() => {
  const i = r.value || // Default displayRender
  ((a) => {
    let {
      labels: l
    } = a;
    const s = o.value ? l.slice(-1) : l, c = " / ";
    return s.every((u) => ["string", "number"].includes(typeof u)) ? s.join(c) : s.reduce((u, d, f) => {
      const p = Rt(d) ? He(d, {
        key: f
      }) : d;
      return f === 0 ? [p] : [...u, c, p];
    }, []);
  });
  return e.value.map((a) => {
    const l = oi(a, t.value, n.value), s = i({
      labels: l.map((u) => {
        let {
          option: d,
          value: f
        } = u;
        var p;
        return (p = d == null ? void 0 : d[n.value.label]) !== null && p !== void 0 ? p : f;
      }),
      selectedOptions: l.map((u) => {
        let {
          option: d
        } = u;
        return d;
      })
    }), c = Pn(a);
    return {
      label: s,
      value: c,
      key: c,
      valueCells: a
    };
  });
})), Gy = Symbol("CascaderContextKey"), xA = (e) => {
  $e(Gy, e);
}, Sl = () => Ce(Gy), OA = (() => {
  const e = dl(), {
    values: t
  } = Sl(), [n, o] = qt([]);
  return ee(() => e.open, () => {
    if (e.open && !e.multiple) {
      const r = t.value[0];
      o(r || []);
    }
  }, {
    immediate: !0
  }), [n, o];
}), PA = ((e, t, n, o, r, i) => {
  const a = dl(), l = w(() => a.direction === "rtl"), [s, c, u] = [Z([]), Z(), Z([])];
  we(() => {
    let g = -1, v = t.value;
    const b = [], O = [], C = o.value.length;
    for (let S = 0; S < C && v; S += 1) {
      const P = v.findIndex(($) => $[n.value.value] === o.value[S]);
      if (P === -1)
        break;
      g = P, b.push(g), O.push(o.value[S]), v = v[g][n.value.children];
    }
    let x = t.value;
    for (let S = 0; S < b.length - 1; S += 1)
      x = x[b[S]][n.value.children];
    [s.value, c.value, u.value] = [O, g, x];
  });
  const d = (g) => {
    r(g);
  }, f = (g) => {
    const v = u.value.length;
    let b = c.value;
    b === -1 && g < 0 && (b = v);
    for (let O = 0; O < v; O += 1) {
      b = (b + g + v) % v;
      const C = u.value[b];
      if (C && !C.disabled) {
        const x = C[n.value.value], S = s.value.slice(0, -1).concat(x);
        d(S);
        return;
      }
    }
  }, p = () => {
    if (s.value.length > 1) {
      const g = s.value.slice(0, -1);
      d(g);
    } else
      a.toggleOpen(!1);
  }, y = () => {
    var g;
    const b = (((g = u.value[c.value]) === null || g === void 0 ? void 0 : g[n.value.children]) || []).find((O) => !O.disabled);
    if (b) {
      const O = [...s.value, b[n.value.value]];
      d(O);
    }
  };
  e.expose({
    // scrollTo: treeRef.current?.scrollTo,
    onKeydown: (g) => {
      const {
        which: v
      } = g;
      switch (v) {
        // >>> Arrow keys
        case ue.UP:
        case ue.DOWN: {
          let b = 0;
          v === ue.UP ? b = -1 : v === ue.DOWN && (b = 1), b !== 0 && f(b);
          break;
        }
        case ue.LEFT: {
          l.value ? y() : p();
          break;
        }
        case ue.RIGHT: {
          l.value ? p() : y();
          break;
        }
        case ue.BACKSPACE: {
          a.searchValue || p();
          break;
        }
        // >>> Select
        case ue.ENTER: {
          if (s.value.length) {
            const b = u.value[c.value], O = (b == null ? void 0 : b[Dr]) || [];
            O.length ? i(O.map((C) => C[n.value.value]), O[O.length - 1]) : i(s.value, b);
          }
          break;
        }
        // >>> Close
        case ue.ESC:
          a.toggleOpen(!1), open && g.stopPropagation();
      }
    },
    onKeyup: () => {
    }
  });
});
function Cl(e) {
  let {
    prefixCls: t,
    checked: n,
    halfChecked: o,
    disabled: r,
    onClick: i
  } = e;
  const {
    customSlots: a,
    checkable: l
  } = Sl(), s = l.value !== !1 ? a.value.checkable : l.value, c = typeof s == "function" ? s() : typeof s == "boolean" ? null : s;
  return m("span", {
    class: {
      [t]: !0,
      [`${t}-checked`]: n,
      [`${t}-indeterminate`]: !n && o,
      [`${t}-disabled`]: r
    },
    onClick: i
  }, [c]);
}
Cl.props = ["prefixCls", "checked", "halfChecked", "disabled", "onClick"];
Cl.displayName = "Checkbox";
Cl.inheritAttrs = !1;
const Uy = "__cascader_fix_label__";
function $l(e) {
  let {
    prefixCls: t,
    multiple: n,
    options: o,
    activeValue: r,
    prevValuePath: i,
    onToggleOpen: a,
    onSelect: l,
    onActive: s,
    checkedSet: c,
    halfCheckedSet: u,
    loadingKeys: d,
    isSelectable: f
  } = e;
  var p, y, g, v, b, O;
  const C = `${t}-menu`, x = `${t}-menu-item`, {
    fieldNames: S,
    changeOnSelect: P,
    expandTrigger: $,
    expandIcon: T,
    loadingIcon: E,
    dropdownMenuColumnStyle: M,
    customSlots: R
  } = Sl(), N = (p = T.value) !== null && p !== void 0 ? p : (g = (y = R.value).expandIcon) === null || g === void 0 ? void 0 : g.call(y), F = (v = E.value) !== null && v !== void 0 ? v : (O = (b = R.value).loadingIcon) === null || O === void 0 ? void 0 : O.call(b), H = $.value === "hover";
  return m("ul", {
    class: C,
    role: "menu"
  }, [o.map((I) => {
    var A;
    const {
      disabled: j
    } = I, L = I[Dr], D = (A = I[Uy]) !== null && A !== void 0 ? A : I[S.value.label], _ = I[S.value.value], V = Pr(I, S.value), J = L ? L.map((B) => B[S.value.value]) : [...i, _], oe = Pn(J), re = d.includes(oe), Q = c.has(oe), U = u.has(oe), k = () => {
      !j && (!H || !V) && s(J);
    }, ne = () => {
      f(I) && l(J, V);
    };
    let X;
    return typeof I.title == "string" ? X = I.title : typeof D == "string" && (X = D), m("li", {
      key: oe,
      class: [x, {
        [`${x}-expand`]: !V,
        [`${x}-active`]: r === _,
        [`${x}-disabled`]: j,
        [`${x}-loading`]: re
      }],
      style: M.value,
      role: "menuitemcheckbox",
      title: X,
      "aria-checked": Q,
      "data-path-key": oe,
      onClick: () => {
        k(), (!n || V) && ne();
      },
      onDblclick: () => {
        P.value && a(!1);
      },
      onMouseenter: () => {
        H && k();
      },
      onMousedown: (B) => {
        B.preventDefault();
      }
    }, [n && m(Cl, {
      prefixCls: `${t}-checkbox`,
      checked: Q,
      halfChecked: U,
      disabled: j,
      onClick: (B) => {
        B.stopPropagation(), ne();
      }
    }, null), m("div", {
      class: `${x}-content`
    }, [D]), !re && N && !V && m("div", {
      class: `${x}-expand-icon`
    }, [He(N)]), re && F && m("div", {
      class: `${x}-loading-icon`
    }, [He(F)])]);
  })]);
}
$l.props = ["prefixCls", "multiple", "options", "activeValue", "prevValuePath", "onToggleOpen", "onSelect", "onActive", "checkedSet", "halfCheckedSet", "loadingKeys", "isSelectable"];
$l.displayName = "Column";
$l.inheritAttrs = !1;
const IA = q({
  compatConfig: {
    MODE: 3
  },
  name: "OptionList",
  inheritAttrs: !1,
  setup(e, t) {
    const {
      attrs: n,
      slots: o
    } = t, r = dl(), i = Z(), a = w(() => r.direction === "rtl"), {
      options: l,
      values: s,
      halfValues: c,
      fieldNames: u,
      changeOnSelect: d,
      onSelect: f,
      searchOptions: p,
      dropdownPrefixCls: y,
      loadData: g,
      expandTrigger: v,
      customSlots: b
    } = Sl(), O = w(() => y.value || r.prefixCls), C = K([]), x = (A) => {
      if (!g.value || r.searchValue)
        return;
      const L = oi(A, l.value, u.value).map((_) => {
        let {
          option: V
        } = _;
        return V;
      }), D = L[L.length - 1];
      if (D && !Pr(D, u.value)) {
        const _ = Pn(A);
        C.value = [...C.value, _], g.value(L);
      }
    };
    we(() => {
      C.value.length && C.value.forEach((A) => {
        const j = lA(A), L = oi(j, l.value, u.value, !0).map((_) => {
          let {
            option: V
          } = _;
          return V;
        }), D = L[L.length - 1];
        (!D || D[u.value.children] || Pr(D, u.value)) && (C.value = C.value.filter((_) => _ !== A));
      });
    });
    const S = w(() => new Set(Do(s.value))), P = w(() => new Set(Do(c.value))), [$, T] = OA(), E = (A) => {
      T(A), x(A);
    }, M = (A) => {
      const {
        disabled: j
      } = A, L = Pr(A, u.value);
      return !j && (L || d.value || r.multiple);
    }, R = function(A, j) {
      let L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
      f(A), !r.multiple && (j || d.value && (v.value === "hover" || L)) && r.toggleOpen(!1);
    }, N = w(() => r.searchValue ? p.value : l.value), F = w(() => {
      const A = [{
        options: N.value
      }];
      let j = N.value;
      for (let L = 0; L < $.value.length; L += 1) {
        const D = $.value[L], _ = j.find((J) => J[u.value.value] === D), V = _ == null ? void 0 : _[u.value.children];
        if (!(V != null && V.length))
          break;
        j = V, A.push({
          options: V
        });
      }
      return A;
    });
    PA(t, N, u, $, E, (A, j) => {
      M(j) && R(A, Pr(j, u.value), !0);
    });
    const I = (A) => {
      A.preventDefault();
    };
    return be(() => {
      ee($, (A) => {
        var j;
        for (let L = 0; L < A.length; L += 1) {
          const D = A.slice(0, L + 1), _ = Pn(D), V = (j = i.value) === null || j === void 0 ? void 0 : j.querySelector(`li[data-path-key="${_.replace(/\\{0,2}"/g, '\\"')}"]`);
          V && cA(V);
        }
      }, {
        flush: "post",
        immediate: !0
      });
    }), () => {
      var A, j, L, D, _;
      const {
        notFoundContent: V = ((A = o.notFoundContent) === null || A === void 0 ? void 0 : A.call(o)) || ((L = (j = b.value).notFoundContent) === null || L === void 0 ? void 0 : L.call(j)),
        multiple: J,
        toggleOpen: oe
      } = r, re = !(!((_ = (D = F.value[0]) === null || D === void 0 ? void 0 : D.options) === null || _ === void 0) && _.length), Q = [{
        [u.value.value]: "__EMPTY__",
        [Uy]: V,
        disabled: !0
      }], U = h(h({}, n), {
        multiple: !re && J,
        onSelect: R,
        onActive: E,
        onToggleOpen: oe,
        checkedSet: S.value,
        halfCheckedSet: P.value,
        loadingKeys: C.value,
        isSelectable: M
      }), ne = (re ? [{
        options: Q
      }] : F.value).map((X, B) => {
        const W = $.value.slice(0, B), Y = $.value[B];
        return m($l, z(z({
          key: B
        }, U), {}, {
          prefixCls: O.value,
          options: X.options,
          prevValuePath: W,
          activeValue: Y
        }), null);
      });
      return m("div", {
        class: [`${O.value}-menus`, {
          [`${O.value}-menu-empty`]: re,
          [`${O.value}-rtl`]: a.value
        }],
        onMousedown: I,
        ref: i
      }, [ne]);
    };
  }
});
function TA(e) {
  const t = Z(0), n = K();
  return we(() => {
    const o = /* @__PURE__ */ new Map();
    let r = 0;
    const i = e.value || {};
    for (const a in i)
      if (Object.prototype.hasOwnProperty.call(i, a)) {
        const l = i[a], {
          level: s
        } = l;
        let c = o.get(s);
        c || (c = /* @__PURE__ */ new Set(), o.set(s, c)), c.add(l), r = Math.max(r, s);
      }
    t.value = r, n.value = o;
  }), {
    maxLevel: t,
    levelEntities: n
  };
}
function EA() {
  return h(h({}, _e(Pu(), ["tokenSeparators", "mode", "showSearch"])), {
    // MISC
    id: String,
    prefixCls: String,
    fieldNames: xe(),
    children: Array,
    // Value
    value: {
      type: [String, Number, Array]
    },
    defaultValue: {
      type: [String, Number, Array]
    },
    changeOnSelect: {
      type: Boolean,
      default: void 0
    },
    displayRender: Function,
    checkable: {
      type: Boolean,
      default: void 0
    },
    showCheckedStrategy: {
      type: String,
      default: Wy
    },
    // Search
    showSearch: {
      type: [Boolean, Object],
      default: void 0
    },
    searchValue: String,
    onSearch: Function,
    // Trigger
    expandTrigger: String,
    // Options
    options: Array,
    /** @private Internal usage. Do not use in your production. */
    dropdownPrefixCls: String,
    loadData: Function,
    // Open
    /** @deprecated Use `open` instead */
    popupVisible: {
      type: Boolean,
      default: void 0
    },
    dropdownClassName: String,
    dropdownMenuColumnStyle: {
      type: Object,
      default: void 0
    },
    /** @deprecated Use `dropdownStyle` instead */
    popupStyle: {
      type: Object,
      default: void 0
    },
    dropdownStyle: {
      type: Object,
      default: void 0
    },
    /** @deprecated Use `placement` instead */
    popupPlacement: String,
    placement: String,
    /** @deprecated Use `onDropdownVisibleChange` instead */
    onPopupVisibleChange: Function,
    onDropdownVisibleChange: Function,
    // Icon
    expandIcon: G.any,
    loadingIcon: G.any
  });
}
function qy() {
  return h(h({}, EA()), {
    onChange: Function,
    customSlots: Object
  });
}
function AA(e) {
  return Array.isArray(e) && Array.isArray(e[0]);
}
function Nm(e) {
  return e ? AA(e) ? e : (e.length === 0 ? [] : [e]).map((t) => Array.isArray(t) ? t : [t]) : [];
}
const MA = q({
  compatConfig: {
    MODE: 3
  },
  name: "Cascader",
  inheritAttrs: !1,
  props: Ze(qy(), {}),
  setup(e, t) {
    let {
      attrs: n,
      expose: o,
      slots: r
    } = t;
    const i = F0(Oe(e, "id")), a = w(() => !!e.checkable), [l, s] = Mn(e.defaultValue, {
      value: w(() => e.value),
      postState: Nm
    }), c = w(() => sA(e.fieldNames)), u = w(() => e.options || []), d = mA(u, c), f = (B) => {
      const W = d.value;
      return B.map((Y) => {
        const {
          nodes: te
        } = W[Y];
        return te.map((ae) => ae[c.value.value]);
      });
    }, [p, y] = Mn("", {
      value: w(() => e.searchValue),
      postState: (B) => B || ""
    }), g = (B, W) => {
      y(B), W.source !== "blur" && e.onSearch && e.onSearch(B);
    }, {
      showSearch: v,
      searchConfig: b
    } = gA(Oe(e, "showSearch")), O = yA(p, u, c, w(() => e.dropdownPrefixCls || e.prefixCls), b, Oe(e, "changeOnSelect")), C = bA(u, c, l), [x, S, P] = [Z([]), Z([]), Z([])], {
      maxLevel: $,
      levelEntities: T
    } = TA(d);
    we(() => {
      const [B, W] = C.value;
      if (!a.value || !l.value.length) {
        [x.value, S.value, P.value] = [B, [], W];
        return;
      }
      const Y = Do(B), te = d.value, {
        checkedKeys: ae,
        halfCheckedKeys: fe
      } = fs(Y, !0, te, $.value, T.value);
      [x.value, S.value, P.value] = [f(ae), f(fe), W];
    });
    const E = w(() => {
      const B = Do(x.value), W = Lm(B, d.value, e.showCheckedStrategy);
      return [...P.value, ...f(W)];
    }), M = wA(E, u, c, a, Oe(e, "displayRender")), R = (B) => {
      if (s(B), e.onChange) {
        const W = Nm(B), Y = W.map((fe) => oi(fe, u.value, c.value).map((ve) => ve.option)), te = a.value ? W : W[0], ae = a.value ? Y : Y[0];
        e.onChange(te, ae);
      }
    }, N = (B) => {
      if (y(""), !a.value)
        R(B);
      else {
        const W = Pn(B), Y = Do(x.value), te = Do(S.value), ae = Y.includes(W), fe = P.value.some((me) => Pn(me) === W);
        let ve = x.value, le = P.value;
        if (fe && !ae)
          le = P.value.filter((me) => Pn(me) !== W);
        else {
          const me = ae ? Y.filter((je) => je !== W) : [...Y, W];
          let ce;
          ae ? {
            checkedKeys: ce
          } = fs(me, {
            halfCheckedKeys: te
          }, d.value, $.value, T.value) : {
            checkedKeys: ce
          } = fs(me, !0, d.value, $.value, T.value);
          const he = Lm(ce, d.value, e.showCheckedStrategy);
          ve = f(he);
        }
        R([...le, ...ve]);
      }
    }, F = (B, W) => {
      if (W.type === "clear") {
        R([]);
        return;
      }
      const {
        valueCells: Y
      } = W.values[0];
      N(Y);
    }, H = w(() => e.open !== void 0 ? e.open : e.popupVisible), I = w(() => e.dropdownStyle || e.popupStyle || {}), A = w(() => e.placement || e.popupPlacement), j = (B) => {
      var W, Y;
      (W = e.onDropdownVisibleChange) === null || W === void 0 || W.call(e, B), (Y = e.onPopupVisibleChange) === null || Y === void 0 || Y.call(e, B);
    }, {
      changeOnSelect: L,
      checkable: D,
      dropdownPrefixCls: _,
      loadData: V,
      expandTrigger: J,
      expandIcon: oe,
      loadingIcon: re,
      dropdownMenuColumnStyle: Q,
      customSlots: U,
      dropdownClassName: k
    } = Uc(e);
    xA({
      options: u,
      fieldNames: c,
      values: x,
      halfValues: S,
      changeOnSelect: L,
      onSelect: N,
      checkable: D,
      searchOptions: O,
      dropdownPrefixCls: _,
      loadData: V,
      expandTrigger: J,
      expandIcon: oe,
      loadingIcon: re,
      dropdownMenuColumnStyle: Q,
      customSlots: U
    });
    const ne = Z();
    o({
      focus() {
        var B;
        (B = ne.value) === null || B === void 0 || B.focus();
      },
      blur() {
        var B;
        (B = ne.value) === null || B === void 0 || B.blur();
      },
      scrollTo(B) {
        var W;
        (W = ne.value) === null || W === void 0 || W.scrollTo(B);
      }
    });
    const X = w(() => _e(e, [
      "id",
      "prefixCls",
      "fieldNames",
      // Value
      "defaultValue",
      "value",
      "changeOnSelect",
      "onChange",
      "displayRender",
      "checkable",
      // Search
      "searchValue",
      "onSearch",
      "showSearch",
      // Trigger
      "expandTrigger",
      // Options
      "options",
      "dropdownPrefixCls",
      "loadData",
      // Open
      "popupVisible",
      "open",
      "dropdownClassName",
      "dropdownMenuColumnStyle",
      "popupPlacement",
      "placement",
      "onDropdownVisibleChange",
      "onPopupVisibleChange",
      // Icon
      "expandIcon",
      "loadingIcon",
      "customSlots",
      "showCheckedStrategy",
      // Children
      "children"
    ]));
    return () => {
      const B = !(p.value ? O.value : u.value).length, {
        dropdownMatchSelectWidth: W = !1
      } = e, Y = (
        // Search to match width
        p.value && b.value.matchInputWidth || // Empty keep the width
        B ? {} : {
          minWidth: "auto"
        }
      );
      return m(E0, z(z(z({}, X.value), n), {}, {
        ref: ne,
        id: i,
        prefixCls: e.prefixCls,
        dropdownMatchSelectWidth: W,
        dropdownStyle: h(h({}, I.value), Y),
        displayValues: M.value,
        onDisplayValuesChange: F,
        mode: a.value ? "multiple" : void 0,
        searchValue: p.value,
        onSearch: g,
        showSearch: v.value,
        OptionList: IA,
        emptyOptions: B,
        open: H.value,
        dropdownClassName: k.value,
        placement: A.value,
        onDropdownVisibleChange: j,
        getRawInputElement: () => {
          var te;
          return (te = r.default) === null || te === void 0 ? void 0 : te.call(r);
        }
      }), r);
    };
  }
});
var RA = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
function jm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      DA(e, r, n[r]);
    });
  }
  return e;
}
function DA(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var dr = function(t, n) {
  var o = jm({}, t, n.attrs);
  return m(de, jm({}, o, {
    icon: RA
  }), null);
};
dr.displayName = "LeftOutlined";
dr.inheritAttrs = !1;
const FA = () => Ct() && window.document.documentElement, LA = (e) => {
  if (Ct() && window.document.documentElement) {
    const t = Array.isArray(e) ? e : [e], {
      documentElement: n
    } = window.document;
    return t.some((o) => o in n.style);
  }
  return !1;
};
function Yy(e, t) {
  return LA(e);
}
let Xi;
const NA = () => {
  if (!FA())
    return !1;
  if (Xi !== void 0)
    return Xi;
  const e = document.createElement("div");
  return 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), Xi = e.scrollHeight === 1, document.body.removeChild(e), Xi;
}, jA = (() => {
  const e = K(!1);
  return be(() => {
    e.value = NA();
  }), e;
}), Zy = Symbol("rowContextKey"), zA = (e) => {
  $e(Zy, e);
}, BA = () => Ce(Zy, {
  gutter: w(() => {
  }),
  wrap: w(() => {
  }),
  supportFlexGap: w(() => {
  })
}), HA = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    // Grid system
    [t]: {
      display: "flex",
      flexFlow: "row wrap",
      minWidth: 0,
      "&::before, &::after": {
        display: "flex"
      },
      "&-no-wrap": {
        flexWrap: "nowrap"
      },
      // The origin of the X-axis
      "&-start": {
        justifyContent: "flex-start"
      },
      // The center of the X-axis
      "&-center": {
        justifyContent: "center"
      },
      // The opposite of the X-axis
      "&-end": {
        justifyContent: "flex-end"
      },
      "&-space-between": {
        justifyContent: "space-between"
      },
      "&-space-around ": {
        justifyContent: "space-around"
      },
      "&-space-evenly ": {
        justifyContent: "space-evenly"
      },
      // Align at the top
      "&-top": {
        alignItems: "flex-start"
      },
      // Align at the center
      "&-middle": {
        alignItems: "center"
      },
      "&-bottom": {
        alignItems: "flex-end"
      }
    }
  };
}, _A = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    // Grid system
    [t]: {
      position: "relative",
      maxWidth: "100%",
      // Prevent columns from collapsing when empty
      minHeight: 1
    }
  };
}, VA = (e, t) => {
  const {
    componentCls: n,
    gridColumns: o
  } = e, r = {};
  for (let i = o; i >= 0; i--)
    i === 0 ? (r[`${n}${t}-${i}`] = {
      display: "none"
    }, r[`${n}-push-${i}`] = {
      insetInlineStart: "auto"
    }, r[`${n}-pull-${i}`] = {
      insetInlineEnd: "auto"
    }, r[`${n}${t}-push-${i}`] = {
      insetInlineStart: "auto"
    }, r[`${n}${t}-pull-${i}`] = {
      insetInlineEnd: "auto"
    }, r[`${n}${t}-offset-${i}`] = {
      marginInlineEnd: 0
    }, r[`${n}${t}-order-${i}`] = {
      order: 0
    }) : (r[`${n}${t}-${i}`] = {
      display: "block",
      flex: `0 0 ${i / o * 100}%`,
      maxWidth: `${i / o * 100}%`
    }, r[`${n}${t}-push-${i}`] = {
      insetInlineStart: `${i / o * 100}%`
    }, r[`${n}${t}-pull-${i}`] = {
      insetInlineEnd: `${i / o * 100}%`
    }, r[`${n}${t}-offset-${i}`] = {
      marginInlineStart: `${i / o * 100}%`
    }, r[`${n}${t}-order-${i}`] = {
      order: i
    });
  return r;
}, Sc = (e, t) => VA(e, t), WA = (e, t, n) => ({
  [`@media (min-width: ${t}px)`]: h({}, Sc(e, n))
}), kA = We("Grid", (e) => [HA(e)]), XA = We("Grid", (e) => {
  const t = Me(e, {
    gridColumns: 24
    // Row is divided into 24 parts in Grid
  }), n = {
    "-sm": t.screenSMMin,
    "-md": t.screenMDMin,
    "-lg": t.screenLGMin,
    "-xl": t.screenXLMin,
    "-xxl": t.screenXXLMin
  };
  return [_A(t), Sc(t, ""), Sc(t, "-xs"), Object.keys(n).map((o) => WA(t, n[o], o)).reduce((o, r) => h(h({}, o), r), {})];
}), KA = () => ({
  align: it([String, Object]),
  justify: it([String, Object]),
  prefixCls: String,
  gutter: it([Number, Array, Object], 0),
  wrap: {
    type: Boolean,
    default: void 0
  }
}), GA = q({
  compatConfig: {
    MODE: 3
  },
  name: "ARow",
  inheritAttrs: !1,
  props: KA(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      direction: i
    } = Ee("row", e), [a, l] = kA(r);
    let s;
    const c = uy(), u = Z({
      xs: !0,
      sm: !0,
      md: !0,
      lg: !0,
      xl: !0,
      xxl: !0
    }), d = Z({
      xs: !1,
      sm: !1,
      md: !1,
      lg: !1,
      xl: !1,
      xxl: !1
    }), f = (C) => w(() => {
      if (typeof e[C] == "string")
        return e[C];
      if (typeof e[C] != "object")
        return "";
      for (let x = 0; x < Or.length; x++) {
        const S = Or[x];
        if (!d.value[S]) continue;
        const P = e[C][S];
        if (P !== void 0)
          return P;
      }
      return "";
    }), p = f("align"), y = f("justify"), g = jA();
    be(() => {
      s = c.value.subscribe((C) => {
        d.value = C;
        const x = e.gutter || 0;
        (!Array.isArray(x) && typeof x == "object" || Array.isArray(x) && (typeof x[0] == "object" || typeof x[1] == "object")) && (u.value = C);
      });
    }), Le(() => {
      c.value.unsubscribe(s);
    });
    const v = w(() => {
      const C = [void 0, void 0], {
        gutter: x = 0
      } = e;
      return (Array.isArray(x) ? x : [x, void 0]).forEach((P, $) => {
        if (typeof P == "object")
          for (let T = 0; T < Or.length; T++) {
            const E = Or[T];
            if (u.value[E] && P[E] !== void 0) {
              C[$] = P[E];
              break;
            }
          }
        else
          C[$] = P;
      }), C;
    });
    zA({
      gutter: v,
      supportFlexGap: g,
      wrap: w(() => e.wrap)
    });
    const b = w(() => ie(r.value, {
      [`${r.value}-no-wrap`]: e.wrap === !1,
      [`${r.value}-${y.value}`]: y.value,
      [`${r.value}-${p.value}`]: p.value,
      [`${r.value}-rtl`]: i.value === "rtl"
    }, o.class, l.value)), O = w(() => {
      const C = v.value, x = {}, S = C[0] != null && C[0] > 0 ? `${C[0] / -2}px` : void 0, P = C[1] != null && C[1] > 0 ? `${C[1] / -2}px` : void 0;
      return S && (x.marginLeft = S, x.marginRight = S), g.value ? x.rowGap = `${C[1]}px` : P && (x.marginTop = P, x.marginBottom = P), x;
    });
    return () => {
      var C;
      return a(m("div", z(z({}, o), {}, {
        class: b.value,
        style: h(h({}, O.value), o.style)
      }), [(C = n.default) === null || C === void 0 ? void 0 : C.call(n)]));
    };
  }
});
function eo() {
  return eo = Object.assign ? Object.assign.bind() : function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var o in n)
        Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
    }
    return e;
  }, eo.apply(this, arguments);
}
function UA(e, t) {
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ri(e, t);
}
function Cc(e) {
  return Cc = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
    return n.__proto__ || Object.getPrototypeOf(n);
  }, Cc(e);
}
function ri(e, t) {
  return ri = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, r) {
    return o.__proto__ = r, o;
  }, ri(e, t);
}
function qA() {
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
  if (typeof Proxy == "function") return !0;
  try {
    return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
    })), !0;
  } catch {
    return !1;
  }
}
function ua(e, t, n) {
  return qA() ? ua = Reflect.construct.bind() : ua = function(r, i, a) {
    var l = [null];
    l.push.apply(l, i);
    var s = Function.bind.apply(r, l), c = new s();
    return a && ri(c, a.prototype), c;
  }, ua.apply(null, arguments);
}
function YA(e) {
  return Function.toString.call(e).indexOf("[native code]") !== -1;
}
function $c(e) {
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  return $c = function(o) {
    if (o === null || !YA(o)) return o;
    if (typeof o != "function")
      throw new TypeError("Super expression must either be null or a function");
    if (typeof t < "u") {
      if (t.has(o)) return t.get(o);
      t.set(o, r);
    }
    function r() {
      return ua(o, arguments, Cc(this).constructor);
    }
    return r.prototype = Object.create(o.prototype, {
      constructor: {
        value: r,
        enumerable: !1,
        writable: !0,
        configurable: !0
      }
    }), ri(r, o);
  }, $c(e);
}
var ZA = /%[sdj%]/g, QA = function() {
};
typeof process < "u" && process.env;
function wc(e) {
  if (!e || !e.length) return null;
  var t = {};
  return e.forEach(function(n) {
    var o = n.field;
    t[o] = t[o] || [], t[o].push(n);
  }), t;
}
function bt(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
    n[o - 1] = arguments[o];
  var r = 0, i = n.length;
  if (typeof e == "function")
    return e.apply(null, n);
  if (typeof e == "string") {
    var a = e.replace(ZA, function(l) {
      if (l === "%%")
        return "%";
      if (r >= i)
        return l;
      switch (l) {
        case "%s":
          return String(n[r++]);
        case "%d":
          return Number(n[r++]);
        case "%j":
          try {
            return JSON.stringify(n[r++]);
          } catch {
            return "[Circular]";
          }
          break;
        default:
          return l;
      }
    });
    return a;
  }
  return e;
}
function JA(e) {
  return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
}
function Ye(e, t) {
  return !!(e == null || t === "array" && Array.isArray(e) && !e.length || JA(t) && typeof e == "string" && !e);
}
function eM(e, t, n) {
  var o = [], r = 0, i = e.length;
  function a(l) {
    o.push.apply(o, l || []), r++, r === i && n(o);
  }
  e.forEach(function(l) {
    t(l, a);
  });
}
function zm(e, t, n) {
  var o = 0, r = e.length;
  function i(a) {
    if (a && a.length) {
      n(a);
      return;
    }
    var l = o;
    o = o + 1, l < r ? t(e[l], i) : n([]);
  }
  i([]);
}
function tM(e) {
  var t = [];
  return Object.keys(e).forEach(function(n) {
    t.push.apply(t, e[n] || []);
  }), t;
}
var Bm = /* @__PURE__ */ (function(e) {
  UA(t, e);
  function t(n, o) {
    var r;
    return r = e.call(this, "Async Validation Error") || this, r.errors = n, r.fields = o, r;
  }
  return t;
})(/* @__PURE__ */ $c(Error));
function nM(e, t, n, o, r) {
  if (t.first) {
    var i = new Promise(function(f, p) {
      var y = function(b) {
        return o(b), b.length ? p(new Bm(b, wc(b))) : f(r);
      }, g = tM(e);
      zm(g, n, y);
    });
    return i.catch(function(f) {
      return f;
    }), i;
  }
  var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), s = l.length, c = 0, u = [], d = new Promise(function(f, p) {
    var y = function(v) {
      if (u.push.apply(u, v), c++, c === s)
        return o(u), u.length ? p(new Bm(u, wc(u))) : f(r);
    };
    l.length || (o(u), f(r)), l.forEach(function(g) {
      var v = e[g];
      a.indexOf(g) !== -1 ? zm(v, n, y) : eM(v, n, y);
    });
  });
  return d.catch(function(f) {
    return f;
  }), d;
}
function oM(e) {
  return !!(e && e.message !== void 0);
}
function rM(e, t) {
  for (var n = e, o = 0; o < t.length; o++) {
    if (n == null)
      return n;
    n = n[t[o]];
  }
  return n;
}
function Hm(e, t) {
  return function(n) {
    var o;
    return e.fullFields ? o = rM(t, e.fullFields) : o = t[n.field || e.fullField], oM(n) ? (n.field = n.field || e.fullField, n.fieldValue = o, n) : {
      message: typeof n == "function" ? n() : n,
      fieldValue: o,
      field: n.field || e.fullField
    };
  };
}
function _m(e, t) {
  if (t) {
    for (var n in t)
      if (t.hasOwnProperty(n)) {
        var o = t[n];
        typeof o == "object" && typeof e[n] == "object" ? e[n] = eo({}, e[n], o) : e[n] = o;
      }
  }
  return e;
}
var Qy = function(t, n, o, r, i, a) {
  t.required && (!o.hasOwnProperty(t.field) || Ye(n, a || t.type)) && r.push(bt(i.messages.required, t.fullField));
}, iM = function(t, n, o, r, i) {
  (/^\s+$/.test(n) || n === "") && r.push(bt(i.messages.whitespace, t.fullField));
}, Ki, aM = (function() {
  if (Ki)
    return Ki;
  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}", o = "[a-fA-F\\d]{1,4}", r = (`
(?:
(?:` + o + ":){7}(?:" + o + `|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:` + o + ":){6}(?:" + n + "|:" + o + `|:)|                             // 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
(?:` + o + ":){5}(?::" + n + "|(?::" + o + `){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
(?:` + o + ":){4}(?:(?::" + o + "){0,1}:" + n + "|(?::" + o + `){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
(?:` + o + ":){3}(?:(?::" + o + "){0,2}:" + n + "|(?::" + o + `){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
(?:` + o + ":){2}(?:(?::" + o + "){0,3}:" + n + "|(?::" + o + `){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:` + o + ":){1}(?:(?::" + o + "){0,4}:" + n + "|(?::" + o + `){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + o + "){0,5}:" + n + "|(?::" + o + `){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 + "$)|(?:^" + r + "$)"), a = new RegExp("^" + n + "$"), l = new RegExp("^" + r + "$"), s = function(x) {
    return x && x.exact ? i : new RegExp("(?:" + t(x) + n + t(x) + ")|(?:" + t(x) + r + t(x) + ")", "g");
  };
  s.v4 = function(C) {
    return C && C.exact ? a : new RegExp("" + t(C) + n + t(C), "g");
  }, s.v6 = function(C) {
    return C && C.exact ? l : new RegExp("" + t(C) + r + t(C), "g");
  };
  var c = "(?:(?:[a-z]+:)?//)", u = "(?:\\S+(?::\\S*)?@)?", d = s.v4().source, f = s.v6().source, p = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", y = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", g = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", b = '(?:[/?#][^\\s"]*)?', O = "(?:" + c + "|www\\.)" + u + "(?:localhost|" + d + "|" + f + "|" + p + y + g + ")" + v + b;
  return Ki = new RegExp("(?:^" + O + "$)", "i"), Ki;
}), Vm = {
  // http://emailregex.com/
  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,}))$/,
  // url: new RegExp(
  //   '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
  //   'i',
  // ),
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
}, Ir = {
  integer: function(t) {
    return Ir.number(t) && parseInt(t, 10) === t;
  },
  float: function(t) {
    return Ir.number(t) && !Ir.integer(t);
  },
  array: function(t) {
    return Array.isArray(t);
  },
  regexp: function(t) {
    if (t instanceof RegExp)
      return !0;
    try {
      return !!new RegExp(t);
    } catch {
      return !1;
    }
  },
  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) ? !1 : typeof t == "number";
  },
  object: function(t) {
    return typeof t == "object" && !Ir.array(t);
  },
  method: function(t) {
    return typeof t == "function";
  },
  email: function(t) {
    return typeof t == "string" && t.length <= 320 && !!t.match(Vm.email);
  },
  url: function(t) {
    return typeof t == "string" && t.length <= 2048 && !!t.match(aM());
  },
  hex: function(t) {
    return typeof t == "string" && !!t.match(Vm.hex);
  }
}, lM = function(t, n, o, r, i) {
  if (t.required && n === void 0) {
    Qy(t, n, o, r, i);
    return;
  }
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
  a.indexOf(l) > -1 ? Ir[l](n) || r.push(bt(i.messages.types[l], t.fullField, t.type)) : l && typeof n !== t.type && r.push(bt(i.messages.types[l], t.fullField, t.type));
}, sM = function(t, n, o, r, 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, f = typeof n == "number", p = typeof n == "string", y = Array.isArray(n);
  if (f ? d = "number" : p ? d = "string" : y && (d = "array"), !d)
    return !1;
  y && (u = n.length), p && (u = n.replace(c, "_").length), a ? u !== t.len && r.push(bt(i.messages[d].len, t.fullField, t.len)) : l && !s && u < t.min ? r.push(bt(i.messages[d].min, t.fullField, t.min)) : s && !l && u > t.max ? r.push(bt(i.messages[d].max, t.fullField, t.max)) : l && s && (u < t.min || u > t.max) && r.push(bt(i.messages[d].range, t.fullField, t.min, t.max));
}, Po = "enum", cM = function(t, n, o, r, i) {
  t[Po] = Array.isArray(t[Po]) ? t[Po] : [], t[Po].indexOf(n) === -1 && r.push(bt(i.messages[Po], t.fullField, t[Po].join(", ")));
}, uM = function(t, n, o, r, i) {
  if (t.pattern) {
    if (t.pattern instanceof RegExp)
      t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(bt(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
    else if (typeof t.pattern == "string") {
      var a = new RegExp(t.pattern);
      a.test(n) || r.push(bt(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
    }
  }
}, Pe = {
  required: Qy,
  whitespace: iM,
  type: lM,
  range: sM,
  enum: cM,
  pattern: uM
}, dM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n, "string") && !t.required)
      return o();
    Pe.required(t, n, r, a, i, "string"), Ye(n, "string") || (Pe.type(t, n, r, a, i), Pe.range(t, n, r, a, i), Pe.pattern(t, n, r, a, i), t.whitespace === !0 && Pe.whitespace(t, n, r, a, i));
  }
  o(a);
}, fM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && Pe.type(t, n, r, a, i);
  }
  o(a);
}, pM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (n === "" && (n = void 0), Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && (Pe.type(t, n, r, a, i), Pe.range(t, n, r, a, i));
  }
  o(a);
}, mM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && Pe.type(t, n, r, a, i);
  }
  o(a);
}, gM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), Ye(n) || Pe.type(t, n, r, a, i);
  }
  o(a);
}, vM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && (Pe.type(t, n, r, a, i), Pe.range(t, n, r, a, i));
  }
  o(a);
}, hM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && (Pe.type(t, n, r, a, i), Pe.range(t, n, r, a, i));
  }
  o(a);
}, yM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (n == null && !t.required)
      return o();
    Pe.required(t, n, r, a, i, "array"), n != null && (Pe.type(t, n, r, a, i), Pe.range(t, n, r, a, i));
  }
  o(a);
}, bM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && Pe.type(t, n, r, a, i);
  }
  o(a);
}, SM = "enum", CM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i), n !== void 0 && Pe[SM](t, n, r, a, i);
  }
  o(a);
}, $M = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n, "string") && !t.required)
      return o();
    Pe.required(t, n, r, a, i), Ye(n, "string") || Pe.pattern(t, n, r, a, i);
  }
  o(a);
}, wM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n, "date") && !t.required)
      return o();
    if (Pe.required(t, n, r, a, i), !Ye(n, "date")) {
      var s;
      n instanceof Date ? s = n : s = new Date(n), Pe.type(t, s, r, a, i), s && Pe.range(t, s.getTime(), r, a, i);
    }
  }
  o(a);
}, xM = function(t, n, o, r, i) {
  var a = [], l = Array.isArray(n) ? "array" : typeof n;
  Pe.required(t, n, r, a, i, l), o(a);
}, ps = function(t, n, o, r, i) {
  var a = t.type, l = [], s = t.required || !t.required && r.hasOwnProperty(t.field);
  if (s) {
    if (Ye(n, a) && !t.required)
      return o();
    Pe.required(t, n, r, l, i, a), Ye(n, a) || Pe.type(t, n, r, l, i);
  }
  o(l);
}, OM = function(t, n, o, r, i) {
  var a = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
  if (l) {
    if (Ye(n) && !t.required)
      return o();
    Pe.required(t, n, r, a, i);
  }
  o(a);
}, Fr = {
  string: dM,
  method: fM,
  number: pM,
  boolean: mM,
  regexp: gM,
  integer: vM,
  float: hM,
  array: yM,
  object: bM,
  enum: CM,
  pattern: $M,
  date: wM,
  url: ps,
  hex: ps,
  email: ps,
  required: xM,
  any: OM
};
function xc() {
  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 Oc = xc(), Si = /* @__PURE__ */ (function() {
  function e(n) {
    this.rules = null, this._messages = Oc, this.define(n);
  }
  var t = e.prototype;
  return t.define = function(o) {
    var r = this;
    if (!o)
      throw new Error("Cannot configure a schema with no rules");
    if (typeof o != "object" || Array.isArray(o))
      throw new Error("Rules must be an object");
    this.rules = {}, Object.keys(o).forEach(function(i) {
      var a = o[i];
      r.rules[i] = Array.isArray(a) ? a : [a];
    });
  }, t.messages = function(o) {
    return o && (this._messages = _m(xc(), o)), this._messages;
  }, t.validate = function(o, r, i) {
    var a = this;
    r === void 0 && (r = {}), i === void 0 && (i = function() {
    });
    var l = o, s = r, 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(g) {
      var v = [], b = {};
      function O(x) {
        if (Array.isArray(x)) {
          var S;
          v = (S = v).concat.apply(S, x);
        } else
          v.push(x);
      }
      for (var C = 0; C < g.length; C++)
        O(g[C]);
      v.length ? (b = wc(v), c(v, b)) : c(null, l);
    }
    if (s.messages) {
      var d = this.messages();
      d === Oc && (d = xc()), _m(d, s.messages), s.messages = d;
    } else
      s.messages = this.messages();
    var f = {}, p = s.keys || Object.keys(this.rules);
    p.forEach(function(g) {
      var v = a.rules[g], b = l[g];
      v.forEach(function(O) {
        var C = O;
        typeof C.transform == "function" && (l === o && (l = eo({}, l)), b = l[g] = C.transform(b)), typeof C == "function" ? C = {
          validator: C
        } : C = eo({}, C), C.validator = a.getValidationMethod(C), C.validator && (C.field = g, C.fullField = C.fullField || g, C.type = a.getType(C), f[g] = f[g] || [], f[g].push({
          rule: C,
          value: b,
          source: l,
          field: g
        }));
      });
    });
    var y = {};
    return nM(f, s, function(g, v) {
      var b = g.rule, O = (b.type === "object" || b.type === "array") && (typeof b.fields == "object" || typeof b.defaultField == "object");
      O = O && (b.required || !b.required && g.value), b.field = g.field;
      function C(P, $) {
        return eo({}, $, {
          fullField: b.fullField + "." + P,
          fullFields: b.fullFields ? [].concat(b.fullFields, [P]) : [P]
        });
      }
      function x(P) {
        P === void 0 && (P = []);
        var $ = Array.isArray(P) ? P : [P];
        !s.suppressWarning && $.length && e.warning("async-validator:", $), $.length && b.message !== void 0 && ($ = [].concat(b.message));
        var T = $.map(Hm(b, l));
        if (s.first && T.length)
          return y[b.field] = 1, v(T);
        if (!O)
          v(T);
        else {
          if (b.required && !g.value)
            return b.message !== void 0 ? T = [].concat(b.message).map(Hm(b, l)) : s.error && (T = [s.error(b, bt(s.messages.required, b.field))]), v(T);
          var E = {};
          b.defaultField && Object.keys(g.value).map(function(N) {
            E[N] = b.defaultField;
          }), E = eo({}, E, g.rule.fields);
          var M = {};
          Object.keys(E).forEach(function(N) {
            var F = E[N], H = Array.isArray(F) ? F : [F];
            M[N] = H.map(C.bind(null, N));
          });
          var R = new e(M);
          R.messages(s.messages), g.rule.options && (g.rule.options.messages = s.messages, g.rule.options.error = s.error), R.validate(g.value, g.rule.options || s, function(N) {
            var F = [];
            T && T.length && F.push.apply(F, T), N && N.length && F.push.apply(F, N), v(F.length ? F : null);
          });
        }
      }
      var S;
      if (b.asyncValidator)
        S = b.asyncValidator(b, g.value, x, g.source, s);
      else if (b.validator) {
        try {
          S = b.validator(b, g.value, x, g.source, s);
        } catch (P) {
          console.error == null || console.error(P), s.suppressValidatorError || setTimeout(function() {
            throw P;
          }, 0), x(P.message);
        }
        S === !0 ? x() : S === !1 ? x(typeof b.message == "function" ? b.message(b.fullField || b.field) : b.message || (b.fullField || b.field) + " fails") : S instanceof Array ? x(S) : S instanceof Error && x(S.message);
      }
      S && S.then && S.then(function() {
        return x();
      }, function(P) {
        return x(P);
      });
    }, function(g) {
      u(g);
    }, l);
  }, t.getType = function(o) {
    if (o.type === void 0 && o.pattern instanceof RegExp && (o.type = "pattern"), typeof o.validator != "function" && o.type && !Fr.hasOwnProperty(o.type))
      throw new Error(bt("Unknown rule type %s", o.type));
    return o.type || "string";
  }, t.getValidationMethod = function(o) {
    if (typeof o.validator == "function")
      return o.validator;
    var r = Object.keys(o), i = r.indexOf("message");
    return i !== -1 && r.splice(i, 1), r.length === 1 && r[0] === "required" ? Fr.required : Fr[this.getType(o)] || void 0;
  }, e;
})();
Si.register = function(t, n) {
  if (typeof n != "function")
    throw new Error("Cannot register a validator by type, validator is not a function");
  Fr[t] = n;
};
Si.warning = QA;
Si.messages = Oc;
Si.validators = Fr;
function In(e) {
  return e == null ? [] : Array.isArray(e) ? e : [e];
}
function Jy(e, t) {
  let n = e;
  for (let o = 0; o < t.length; o += 1) {
    if (n == null)
      return;
    n = n[t[o]];
  }
  return n;
}
function eb(e, t, n, o) {
  if (!t.length)
    return n;
  const [r, ...i] = t;
  let a;
  return !e && typeof r == "number" ? a = [] : Array.isArray(e) ? a = [...e] : a = h({}, e), o && n === void 0 && i.length === 1 ? delete a[r][i[0]] : a[r] = eb(a[r], i, n, o), a;
}
function PM(e, t, n) {
  let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  return t.length && o && n === void 0 && !Jy(e, t.slice(0, -1)) ? e : eb(e, t, n, o);
}
function Pc(e) {
  return In(e);
}
function IM(e, t) {
  return Jy(e, t);
}
function TM(e, t, n) {
  let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  return PM(e, t, n, o);
}
function EM(e, t) {
  return e && e.some((n) => MM(n, t));
}
function Wm(e) {
  return typeof e == "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
}
function tb(e, t) {
  const n = Array.isArray(e) ? [...e] : h({}, e);
  return t && Object.keys(t).forEach((o) => {
    const r = n[o], i = t[o], a = Wm(r) && Wm(i);
    n[o] = a ? tb(r, i || {}) : i;
  }), n;
}
function AM(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
    n[o - 1] = arguments[o];
  return n.reduce((r, i) => tb(r, i), e);
}
function km(e, t) {
  let n = {};
  return t.forEach((o) => {
    const r = IM(e, o);
    n = TM(n, o, r);
  }), n;
}
function MM(e, t) {
  return !e || !t || e.length !== t.length ? !1 : e.every((n, o) => t[o] === n);
}
const vt = "'${name}' is not a valid ${type}", wl = {
  default: "Validation error on field '${name}'",
  required: "'${name}' is required",
  enum: "'${name}' must be one of [${enum}]",
  whitespace: "'${name}' cannot be empty",
  date: {
    format: "'${name}' is invalid for format date",
    parse: "'${name}' could not be parsed as date",
    invalid: "'${name}' is invalid date"
  },
  types: {
    string: vt,
    method: vt,
    array: vt,
    object: vt,
    number: vt,
    date: vt,
    boolean: vt,
    integer: vt,
    float: vt,
    regexp: vt,
    email: vt,
    url: vt,
    hex: vt
  },
  string: {
    len: "'${name}' must be exactly ${len} characters",
    min: "'${name}' must be at least ${min} characters",
    max: "'${name}' cannot be longer than ${max} characters",
    range: "'${name}' must be between ${min} and ${max} characters"
  },
  number: {
    len: "'${name}' must equal ${len}",
    min: "'${name}' cannot be less than ${min}",
    max: "'${name}' cannot be greater than ${max}",
    range: "'${name}' must be between ${min} and ${max}"
  },
  array: {
    len: "'${name}' must be exactly ${len} in length",
    min: "'${name}' cannot be less than ${min} in length",
    max: "'${name}' cannot be greater than ${max} in length",
    range: "'${name}' must be between ${min} and ${max} in length"
  },
  pattern: {
    mismatch: "'${name}' does not match pattern ${pattern}"
  }
};
var xl = function(e, t, n, o) {
  function r(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(o.next(u));
      } catch (d) {
        a(d);
      }
    }
    function s(u) {
      try {
        c(o.throw(u));
      } catch (d) {
        a(d);
      }
    }
    function c(u) {
      u.done ? i(u.value) : r(u.value).then(l, s);
    }
    c((o = o.apply(e, t || [])).next());
  });
};
const RM = Si;
function DM(e, t) {
  return e.replace(/\$\{\w+\}/g, (n) => {
    const o = n.slice(2, -1);
    return t[o];
  });
}
function Ic(e, t, n, o, r) {
  return xl(this, void 0, void 0, function* () {
    const i = h({}, n);
    delete i.ruleIndex, delete i.trigger;
    let a = null;
    i && i.type === "array" && i.defaultField && (a = i.defaultField, delete i.defaultField);
    const l = new RM({
      [e]: [i]
    }), s = AM({}, wl, o.validateMessages);
    l.messages(s);
    let c = [];
    try {
      yield Promise.resolve(l.validate({
        [e]: t
      }, h({}, o)));
    } catch (f) {
      f.errors ? c = f.errors.map((p, y) => {
        let {
          message: g
        } = p;
        return (
          // Wrap VueNode with `key`
          Rt(g) ? si(g, {
            key: `error_${y}`
          }) : g
        );
      }) : (console.error(f), c = [s.default()]);
    }
    if (!c.length && a)
      return (yield Promise.all(t.map((p, y) => Ic(`${e}.${y}`, p, a, o, r)))).reduce((p, y) => [...p, ...y], []);
    const u = h(h(h({}, n), {
      name: e,
      enum: (n.enum || []).join(", ")
    }), r);
    return c.map((f) => typeof f == "string" ? DM(f, u) : f);
  });
}
function nb(e, t, n, o, r, i) {
  const a = e.join("."), l = n.map((c, u) => {
    const d = c.validator, f = h(h({}, c), {
      ruleIndex: u
    });
    return d && (f.validator = (p, y, g) => {
      let v = !1;
      const O = d(p, y, function() {
        for (var C = arguments.length, x = new Array(C), S = 0; S < C; S++)
          x[S] = arguments[S];
        Promise.resolve().then(() => {
          v || g(...x);
        });
      });
      v = O && typeof O.then == "function" && typeof O.catch == "function", v && O.then(() => {
        g();
      }).catch((C) => {
        g(C || " ");
      });
    }), f;
  }).sort((c, u) => {
    let {
      warningOnly: d,
      ruleIndex: f
    } = c, {
      warningOnly: p,
      ruleIndex: y
    } = u;
    return !!d == !!p ? f - y : d ? 1 : -1;
  });
  let s;
  if (r === !0)
    s = new Promise((c, u) => xl(this, void 0, void 0, function* () {
      for (let d = 0; d < l.length; d += 1) {
        const f = l[d], p = yield Ic(a, t, f, o, i);
        if (p.length) {
          u([{
            errors: p,
            rule: f
          }]);
          return;
        }
      }
      c([]);
    }));
  else {
    const c = l.map((u) => Ic(a, t, u, o, i).then((d) => ({
      errors: d,
      rule: u
    })));
    s = (r ? LM(c) : FM(c)).then((u) => Promise.reject(u));
  }
  return s.catch((c) => c), s;
}
function FM(e) {
  return xl(this, void 0, void 0, function* () {
    return Promise.all(e).then((t) => [].concat(...t));
  });
}
function LM(e) {
  return xl(this, void 0, void 0, function* () {
    let t = 0;
    return new Promise((n) => {
      e.forEach((o) => {
        o.then((r) => {
          r.errors.length && n([r]), t += 1, t === e.length && n([]);
        });
      });
    });
  });
}
const ob = Symbol("formContextKey"), rb = (e) => {
  $e(ob, e);
}, ld = () => Ce(ob, {
  name: w(() => {
  }),
  labelAlign: w(() => "right"),
  vertical: w(() => !1),
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  addField: (e, t) => {
  },
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  removeField: (e) => {
  },
  model: w(() => {
  }),
  rules: w(() => {
  }),
  colon: w(() => {
  }),
  labelWrap: w(() => {
  }),
  labelCol: w(() => {
  }),
  requiredMark: w(() => !1),
  validateTrigger: w(() => {
  }),
  onValidate: () => {
  },
  validateMessages: w(() => wl)
}), ib = Symbol("formItemPrefixContextKey"), NM = (e) => {
  $e(ib, e);
}, jM = () => Ce(ib, {
  prefixCls: w(() => "")
});
function zM(e) {
  return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
}
const BM = () => ({
  span: [String, Number],
  order: [String, Number],
  offset: [String, Number],
  push: [String, Number],
  pull: [String, Number],
  xs: {
    type: [String, Number, Object],
    default: void 0
  },
  sm: {
    type: [String, Number, Object],
    default: void 0
  },
  md: {
    type: [String, Number, Object],
    default: void 0
  },
  lg: {
    type: [String, Number, Object],
    default: void 0
  },
  xl: {
    type: [String, Number, Object],
    default: void 0
  },
  xxl: {
    type: [String, Number, Object],
    default: void 0
  },
  prefixCls: String,
  flex: [String, Number]
}), HM = ["xs", "sm", "md", "lg", "xl", "xxl"], ab = q({
  compatConfig: {
    MODE: 3
  },
  name: "ACol",
  inheritAttrs: !1,
  props: BM(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      gutter: r,
      supportFlexGap: i,
      wrap: a
    } = BA(), {
      prefixCls: l,
      direction: s
    } = Ee("col", e), [c, u] = XA(l), d = w(() => {
      const {
        span: p,
        order: y,
        offset: g,
        push: v,
        pull: b
      } = e, O = l.value;
      let C = {};
      return HM.forEach((x) => {
        let S = {};
        const P = e[x];
        typeof P == "number" ? S.span = P : typeof P == "object" && (S = P || {}), C = h(h({}, C), {
          [`${O}-${x}-${S.span}`]: S.span !== void 0,
          [`${O}-${x}-order-${S.order}`]: S.order || S.order === 0,
          [`${O}-${x}-offset-${S.offset}`]: S.offset || S.offset === 0,
          [`${O}-${x}-push-${S.push}`]: S.push || S.push === 0,
          [`${O}-${x}-pull-${S.pull}`]: S.pull || S.pull === 0,
          [`${O}-rtl`]: s.value === "rtl"
        });
      }), ie(O, {
        [`${O}-${p}`]: p !== void 0,
        [`${O}-order-${y}`]: y,
        [`${O}-offset-${g}`]: g,
        [`${O}-push-${v}`]: v,
        [`${O}-pull-${b}`]: b
      }, C, o.class, u.value);
    }), f = w(() => {
      const {
        flex: p
      } = e, y = r.value, g = {};
      if (y && y[0] > 0) {
        const v = `${y[0] / 2}px`;
        g.paddingLeft = v, g.paddingRight = v;
      }
      if (y && y[1] > 0 && !i.value) {
        const v = `${y[1] / 2}px`;
        g.paddingTop = v, g.paddingBottom = v;
      }
      return p && (g.flex = zM(p), a.value === !1 && !g.minWidth && (g.minWidth = 0)), g;
    });
    return () => {
      var p;
      return c(m("div", z(z({}, o), {}, {
        class: d.value,
        style: [f.value, o.style]
      }), [(p = n.default) === null || p === void 0 ? void 0 : p.call(n)]));
    };
  }
});
var _M = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" };
function Xm(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      VM(e, r, n[r]);
    });
  }
  return e;
}
function VM(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var sd = function(t, n) {
  var o = Xm({}, t, n.attrs);
  return m(de, Xm({}, o, {
    icon: _M
  }), null);
};
sd.displayName = "QuestionCircleOutlined";
sd.inheritAttrs = !1;
const cd = (e, t) => {
  let {
    slots: n,
    emit: o,
    attrs: r
  } = t;
  var i, a, l, s, c;
  const {
    prefixCls: u,
    htmlFor: d,
    labelCol: f,
    labelAlign: p,
    colon: y,
    required: g,
    requiredMark: v
  } = h(h({}, e), r), [b] = Jv("Form"), O = (i = e.label) !== null && i !== void 0 ? i : (a = n.label) === null || a === void 0 ? void 0 : a.call(n);
  if (!O) return null;
  const {
    vertical: C,
    labelAlign: x,
    labelCol: S,
    labelWrap: P,
    colon: $
  } = ld(), T = f || (S == null ? void 0 : S.value) || {}, E = p || (x == null ? void 0 : x.value), M = `${u}-item-label`, R = ie(M, E === "left" && `${M}-left`, T.class, {
    [`${M}-wrap`]: !!P.value
  });
  let N = O;
  const F = y === !0 || ($ == null ? void 0 : $.value) !== !1 && y !== !1;
  if (F && !C.value && typeof O == "string" && O.trim() !== "" && (N = O.replace(/[:|:]\s*$/, "")), e.tooltip || n.tooltip) {
    const A = m("span", {
      class: `${u}-item-tooltip`
    }, [m(Vt, {
      title: e.tooltip
    }, {
      default: () => [m(sd, null, null)]
    })]);
    N = m(Te, null, [N, n.tooltip ? (l = n.tooltip) === null || l === void 0 ? void 0 : l.call(n, {
      class: `${u}-item-tooltip`
    }) : A]);
  }
  v === "optional" && !g && (N = m(Te, null, [N, m("span", {
    class: `${u}-item-optional`
  }, [((s = b.value) === null || s === void 0 ? void 0 : s.optional) || ((c = cn.Form) === null || c === void 0 ? void 0 : c.optional)])]));
  const I = ie({
    [`${u}-item-required`]: g,
    [`${u}-item-required-mark-optional`]: v === "optional",
    [`${u}-item-no-colon`]: !F
  });
  return m(ab, z(z({}, T), {}, {
    class: R
  }), {
    default: () => [m("label", {
      for: d,
      class: I,
      title: typeof O == "string" ? O : "",
      onClick: (A) => o("click", A)
    }, [N])]
  });
};
cd.displayName = "FormItemLabel";
cd.inheritAttrs = !1;
const WM = (e) => {
  const {
    componentCls: t
  } = e, n = `${t}-show-help`, o = `${t}-show-help-item`;
  return {
    [n]: {
      // Explain holder
      transition: `opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,
      "&-appear, &-enter": {
        opacity: 0,
        "&-active": {
          opacity: 1
        }
      },
      "&-leave": {
        opacity: 1,
        "&-active": {
          opacity: 0
        }
      },
      // Explain
      [o]: {
        overflow: "hidden",
        transition: `height ${e.motionDurationSlow} ${e.motionEaseInOut},
                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,
        [`&${o}-appear, &${o}-enter`]: {
          transform: "translateY(-5px)",
          opacity: 0,
          "&-active": {
            transform: "translateY(0)",
            opacity: 1
          }
        },
        [`&${o}-leave-active`]: {
          transform: "translateY(-5px)"
        }
      }
    }
  };
}, kM = (e) => ({
  legend: {
    display: "block",
    width: "100%",
    marginBottom: e.marginLG,
    padding: 0,
    color: e.colorTextDescription,
    fontSize: e.fontSizeLG,
    lineHeight: "inherit",
    border: 0,
    borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`
  },
  label: {
    fontSize: e.fontSize
  },
  'input[type="search"]': {
    boxSizing: "border-box"
  },
  // Position radios and checkboxes better
  'input[type="radio"], input[type="checkbox"]': {
    lineHeight: "normal"
  },
  'input[type="file"]': {
    display: "block"
  },
  // Make range inputs behave like textual form controls
  'input[type="range"]': {
    display: "block",
    width: "100%"
  },
  // Make multiple select elements height not fixed
  "select[multiple], select[size]": {
    height: "auto"
  },
  // Focus for file, radio, and checkbox
  "input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus": {
    outline: 0,
    boxShadow: `0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`
  },
  // Adjust output element
  output: {
    display: "block",
    paddingTop: 15,
    color: e.colorText,
    fontSize: e.fontSize,
    lineHeight: e.lineHeight
  }
}), Km = (e, t) => {
  const {
    formItemCls: n
  } = e;
  return {
    [n]: {
      [`${n}-label > label`]: {
        height: t
      },
      [`${n}-control-input`]: {
        minHeight: t
      }
    }
  };
}, XM = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [e.componentCls]: h(h(h({}, Ue(e)), kM(e)), {
      [`${t}-text`]: {
        display: "inline-block",
        paddingInlineEnd: e.paddingSM
      },
      // ================================================================
      // =                             Size                             =
      // ================================================================
      "&-small": h({}, Km(e, e.controlHeightSM)),
      "&-large": h({}, Km(e, e.controlHeightLG))
    })
  };
}, KM = (e) => {
  const {
    formItemCls: t,
    iconCls: n,
    componentCls: o,
    rootPrefixCls: r
  } = e;
  return {
    [t]: h(h({}, Ue(e)), {
      marginBottom: e.marginLG,
      verticalAlign: "top",
      "&-with-help": {
        transition: "none"
      },
      [`&-hidden,
        &-hidden.${r}-row`]: {
        // https://github.com/ant-design/ant-design/issues/26141
        display: "none"
      },
      "&-has-warning": {
        [`${t}-split`]: {
          color: e.colorError
        }
      },
      "&-has-error": {
        [`${t}-split`]: {
          color: e.colorWarning
        }
      },
      // ==============================================================
      // =                            Label                           =
      // ==============================================================
      [`${t}-label`]: {
        display: "inline-block",
        flexGrow: 0,
        overflow: "hidden",
        whiteSpace: "nowrap",
        textAlign: "end",
        verticalAlign: "middle",
        "&-left": {
          textAlign: "start"
        },
        "&-wrap": {
          overflow: "unset",
          lineHeight: `${e.lineHeight} - 0.25em`,
          whiteSpace: "unset"
        },
        "> label": {
          position: "relative",
          display: "inline-flex",
          alignItems: "center",
          maxWidth: "100%",
          height: e.controlHeight,
          color: e.colorTextHeading,
          fontSize: e.fontSize,
          [`> ${n}`]: {
            fontSize: e.fontSize,
            verticalAlign: "top"
          },
          // Required mark
          [`&${t}-required:not(${t}-required-mark-optional)::before`]: {
            display: "inline-block",
            marginInlineEnd: e.marginXXS,
            color: e.colorError,
            fontSize: e.fontSize,
            fontFamily: "SimSun, sans-serif",
            lineHeight: 1,
            content: '"*"',
            [`${o}-hide-required-mark &`]: {
              display: "none"
            }
          },
          // Optional mark
          [`${t}-optional`]: {
            display: "inline-block",
            marginInlineStart: e.marginXXS,
            color: e.colorTextDescription,
            [`${o}-hide-required-mark &`]: {
              display: "none"
            }
          },
          // Optional mark
          [`${t}-tooltip`]: {
            color: e.colorTextDescription,
            cursor: "help",
            writingMode: "horizontal-tb",
            marginInlineStart: e.marginXXS
          },
          "&::after": {
            content: '":"',
            position: "relative",
            marginBlock: 0,
            marginInlineStart: e.marginXXS / 2,
            marginInlineEnd: e.marginXS
          },
          [`&${t}-no-colon::after`]: {
            content: '" "'
          }
        }
      },
      // ==============================================================
      // =                            Input                           =
      // ==============================================================
      [`${t}-control`]: {
        display: "flex",
        flexDirection: "column",
        flexGrow: 1,
        [`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]: {
          width: "100%"
        },
        "&-input": {
          position: "relative",
          display: "flex",
          alignItems: "center",
          minHeight: e.controlHeight,
          "&-content": {
            flex: "auto",
            maxWidth: "100%"
          }
        }
      },
      // ==============================================================
      // =                           Explain                          =
      // ==============================================================
      [t]: {
        "&-explain, &-extra": {
          clear: "both",
          color: e.colorTextDescription,
          fontSize: e.fontSize,
          lineHeight: e.lineHeight
        },
        "&-explain-connected": {
          width: "100%"
        },
        "&-extra": {
          minHeight: e.controlHeightSM,
          transition: `color ${e.motionDurationMid} ${e.motionEaseOut}`
          // sync input color transition
        },
        "&-explain": {
          "&-error": {
            color: e.colorError
          },
          "&-warning": {
            color: e.colorWarning
          }
        }
      },
      [`&-with-help ${t}-explain`]: {
        height: "auto",
        opacity: 1
      },
      // ==============================================================
      // =                        Feedback Icon                       =
      // ==============================================================
      [`${t}-feedback-icon`]: {
        fontSize: e.fontSize,
        textAlign: "center",
        visibility: "visible",
        animationName: Xu,
        animationDuration: e.motionDurationMid,
        animationTimingFunction: e.motionEaseOutBack,
        pointerEvents: "none",
        "&-success": {
          color: e.colorSuccess
        },
        "&-error": {
          color: e.colorError
        },
        "&-warning": {
          color: e.colorWarning
        },
        "&-validating": {
          color: e.colorPrimary
        }
      }
    })
  };
}, GM = (e) => {
  const {
    componentCls: t,
    formItemCls: n,
    rootPrefixCls: o
  } = e;
  return {
    [`${t}-horizontal`]: {
      [`${n}-label`]: {
        flexGrow: 0
      },
      [`${n}-control`]: {
        flex: "1 1 0",
        // https://github.com/ant-design/ant-design/issues/32777
        // https://github.com/ant-design/ant-design/issues/33773
        minWidth: 0
      },
      // https://github.com/ant-design/ant-design/issues/32980
      [`${n}-label.${o}-col-24 + ${n}-control`]: {
        minWidth: "unset"
      }
    }
  };
}, UM = (e) => {
  const {
    componentCls: t,
    formItemCls: n
  } = e;
  return {
    [`${t}-inline`]: {
      display: "flex",
      flexWrap: "wrap",
      [n]: {
        flex: "none",
        flexWrap: "nowrap",
        marginInlineEnd: e.margin,
        marginBottom: 0,
        "&-with-help": {
          marginBottom: e.marginLG
        },
        [`> ${n}-label,
        > ${n}-control`]: {
          display: "inline-block",
          verticalAlign: "top"
        },
        [`> ${n}-label`]: {
          flex: "none"
        },
        [`${t}-text`]: {
          display: "inline-block"
        },
        [`${n}-has-feedback`]: {
          display: "inline-block"
        }
      }
    }
  };
}, Ao = (e) => ({
  margin: 0,
  padding: `0 0 ${e.paddingXS}px`,
  whiteSpace: "initial",
  textAlign: "start",
  "> label": {
    margin: 0,
    "&::after": {
      display: "none"
    }
  }
}), qM = (e) => {
  const {
    componentCls: t,
    formItemCls: n
  } = e;
  return {
    [`${n} ${n}-label`]: Ao(e),
    [t]: {
      [n]: {
        flexWrap: "wrap",
        [`${n}-label,
          ${n}-control`]: {
          flex: "0 0 100%",
          maxWidth: "100%"
        }
      }
    }
  };
}, YM = (e) => {
  const {
    componentCls: t,
    formItemCls: n,
    rootPrefixCls: o
  } = e;
  return {
    [`${t}-vertical`]: {
      [n]: {
        "&-row": {
          flexDirection: "column"
        },
        "&-label > label": {
          height: "auto"
        },
        [`${t}-item-control`]: {
          width: "100%"
        }
      }
    },
    [`${t}-vertical ${n}-label,
      .${o}-col-24${n}-label,
      .${o}-col-xl-24${n}-label`]: Ao(e),
    [`@media (max-width: ${e.screenXSMax}px)`]: [qM(e), {
      [t]: {
        [`.${o}-col-xs-24${n}-label`]: Ao(e)
      }
    }],
    [`@media (max-width: ${e.screenSMMax}px)`]: {
      [t]: {
        [`.${o}-col-sm-24${n}-label`]: Ao(e)
      }
    },
    [`@media (max-width: ${e.screenMDMax}px)`]: {
      [t]: {
        [`.${o}-col-md-24${n}-label`]: Ao(e)
      }
    },
    [`@media (max-width: ${e.screenLGMax}px)`]: {
      [t]: {
        [`.${o}-col-lg-24${n}-label`]: Ao(e)
      }
    }
  };
}, ud = We("Form", (e, t) => {
  let {
    rootPrefixCls: n
  } = t;
  const o = Me(e, {
    formItemCls: `${e.componentCls}-item`,
    rootPrefixCls: n
  });
  return [XM(o), KM(o), WM(o), GM(o), UM(o), YM(o), Ku(o), Xu];
}), ZM = q({
  compatConfig: {
    MODE: 3
  },
  name: "ErrorList",
  inheritAttrs: !1,
  props: ["errors", "help", "onErrorVisibleChanged", "helpStatus", "warnings"],
  setup(e, t) {
    let {
      attrs: n
    } = t;
    const {
      prefixCls: o,
      status: r
    } = jM(), i = w(() => `${o.value}-item-explain`), a = w(() => !!(e.errors && e.errors.length)), l = Z(r.value), [, s] = ud(o);
    return ee([a, r], () => {
      a.value && (l.value = r.value);
    }), () => {
      var c, u;
      const d = nd(`${o.value}-show-help-item`), f = cl(`${o.value}-show-help-item`, d);
      return f.role = "alert", f.class = [s.value, i.value, n.class, `${o.value}-show-help`], m(Xt, z(z({}, cr(`${o.value}-show-help`)), {}, {
        onAfterEnter: () => e.onErrorVisibleChanged(!0),
        onAfterLeave: () => e.onErrorVisibleChanged(!1)
      }), {
        default: () => [en(m(ci, z(z({}, f), {}, {
          tag: "div"
        }), {
          default: () => [(u = e.errors) === null || u === void 0 ? void 0 : u.map((p, y) => m("div", {
            key: y,
            class: l.value ? `${i.value}-${l.value}` : ""
          }, [p]))]
        }), [[pn, !!(!((c = e.errors) === null || c === void 0) && c.length)]])]
      });
    };
  }
}), QM = q({
  compatConfig: {
    MODE: 3
  },
  slots: Object,
  inheritAttrs: !1,
  props: ["prefixCls", "errors", "hasFeedback", "onDomErrorVisibleChange", "wrapperCol", "help", "extra", "status", "marginBottom", "onErrorVisibleChanged"],
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = ld(), {
      wrapperCol: r
    } = o, i = h({}, o);
    return delete i.labelCol, delete i.wrapperCol, rb(i), NM({
      prefixCls: w(() => e.prefixCls),
      status: w(() => e.status)
    }), () => {
      var a, l, s;
      const {
        prefixCls: c,
        wrapperCol: u,
        marginBottom: d,
        onErrorVisibleChanged: f,
        help: p = (a = n.help) === null || a === void 0 ? void 0 : a.call(n),
        errors: y = Mt((l = n.errors) === null || l === void 0 ? void 0 : l.call(n)),
        // hasFeedback,
        // status,
        extra: g = (s = n.extra) === null || s === void 0 ? void 0 : s.call(n)
      } = e, v = `${c}-item`, b = u || (r == null ? void 0 : r.value) || {}, O = ie(`${v}-control`, b.class);
      return m(ab, z(z({}, b), {}, {
        class: O
      }), {
        default: () => {
          var C;
          return m(Te, null, [m("div", {
            class: `${v}-control-input`
          }, [m("div", {
            class: `${v}-control-input-content`
          }, [(C = n.default) === null || C === void 0 ? void 0 : C.call(n)])]), d !== null || y.length ? m("div", {
            style: {
              display: "flex",
              flexWrap: "nowrap"
            }
          }, [m(ZM, {
            errors: y,
            help: p,
            class: `${v}-explain-connected`,
            onErrorVisibleChanged: f
          }, null), !!d && m("div", {
            style: {
              width: 0,
              height: `${d}px`
            }
          }, null)]) : null, g ? m("div", {
            class: `${v}-extra`
          }, [g]) : null]);
        }
      });
    };
  }
});
function JM(e) {
  const t = K(e.value.slice());
  let n = null;
  return we(() => {
    clearTimeout(n), n = setTimeout(() => {
      t.value = e.value;
    }, e.value.length ? 0 : 10);
  }), t;
}
Tn("success", "warning", "error", "validating", "");
const e5 = {
  success: zn,
  warning: bo,
  error: jt,
  validating: Lt
};
function ms(e, t, n) {
  let o = e;
  const r = t;
  let i = 0;
  try {
    for (let a = r.length; i < a - 1 && !(!o && !n); ++i) {
      const l = r[i];
      if (l in o)
        o = o[l];
      else {
        if (n)
          throw Error("please transfer a valid name path to form item!");
        break;
      }
    }
    if (n && !o)
      throw Error("please transfer a valid name path to form item!");
  } catch {
    console.error("please transfer a valid name path to form item!");
  }
  return {
    o,
    k: r[i],
    v: o ? o[r[i]] : void 0
  };
}
const t5 = () => ({
  htmlFor: String,
  prefixCls: String,
  label: G.any,
  help: G.any,
  extra: G.any,
  labelCol: {
    type: Object
  },
  wrapperCol: {
    type: Object
  },
  hasFeedback: {
    type: Boolean,
    default: !1
  },
  colon: {
    type: Boolean,
    default: void 0
  },
  labelAlign: String,
  prop: {
    type: [String, Number, Array]
  },
  name: {
    type: [String, Number, Array]
  },
  rules: [Array, Object],
  autoLink: {
    type: Boolean,
    default: !0
  },
  required: {
    type: Boolean,
    default: void 0
  },
  validateFirst: {
    type: Boolean,
    default: void 0
  },
  validateStatus: G.oneOf(Tn("", "success", "warning", "error", "validating")),
  validateTrigger: {
    type: [String, Array]
  },
  messageVariables: {
    type: Object
  },
  hidden: Boolean,
  noStyle: Boolean,
  tooltip: String
});
let n5 = 0;
const o5 = "form_item", r5 = q({
  compatConfig: {
    MODE: 3
  },
  name: "AFormItem",
  inheritAttrs: !1,
  __ANT_NEW_FORM_ITEM: !0,
  props: t5(),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    e.prop;
    const i = `form-item-${++n5}`, {
      prefixCls: a
    } = Ee("form", e), [l, s] = ud(a), c = K(), u = ld(), d = w(() => e.name || e.prop), f = K([]), p = K(!1), y = K(), g = w(() => {
      const Q = d.value;
      return Pc(Q);
    }), v = w(() => {
      if (g.value.length) {
        const Q = u.name.value, U = g.value.join("_");
        return Q ? `${Q}_${U}` : `${o5}_${U}`;
      } else
        return;
    }), b = () => {
      const Q = u.model.value;
      if (!(!Q || !d.value))
        return ms(Q, g.value, !0).v;
    }, O = w(() => b()), C = K(ca(O.value)), x = w(() => {
      let Q = e.validateTrigger !== void 0 ? e.validateTrigger : u.validateTrigger.value;
      return Q = Q === void 0 ? "change" : Q, In(Q);
    }), S = w(() => {
      let Q = u.rules.value;
      const U = e.rules, k = e.required !== void 0 ? {
        required: !!e.required,
        trigger: x.value
      } : [], ne = ms(Q, g.value);
      Q = Q ? ne.o[ne.k] || ne.v : [];
      const X = [].concat(U || Q || []);
      return j3(X, (B) => B.required) ? X : X.concat(k);
    }), P = w(() => {
      const Q = S.value;
      let U = !1;
      return Q && Q.length && Q.every((k) => k.required ? (U = !0, !1) : !0), U || e.required;
    }), $ = K();
    we(() => {
      $.value = e.validateStatus;
    });
    const T = w(() => {
      let Q = {};
      return typeof e.label == "string" ? Q.label = e.label : e.name && (Q.label = String(e.name)), e.messageVariables && (Q = h(h({}, Q), e.messageVariables)), Q;
    }), E = (Q) => {
      if (g.value.length === 0)
        return;
      const {
        validateFirst: U = !1
      } = e, {
        triggerName: k
      } = Q || {};
      let ne = S.value;
      if (k && (ne = ne.filter((B) => {
        const {
          trigger: W
        } = B;
        return !W && !x.value.length ? !0 : In(W || x.value).includes(k);
      })), !ne.length)
        return Promise.resolve();
      const X = nb(g.value, O.value, ne, h({
        validateMessages: u.validateMessages.value
      }, Q), U, T.value);
      return $.value = "validating", f.value = [], X.catch((B) => B).then(function() {
        let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
        if ($.value === "validating") {
          const W = B.filter((Y) => Y && Y.errors.length);
          $.value = W.length ? "error" : "success", f.value = W.map((Y) => Y.errors), u.onValidate(d.value, !f.value.length, f.value.length ? At(f.value[0]) : null);
        }
      }), X;
    }, M = () => {
      E({
        triggerName: "blur"
      });
    }, R = () => {
      if (p.value) {
        p.value = !1;
        return;
      }
      E({
        triggerName: "change"
      });
    }, N = () => {
      $.value = e.validateStatus, p.value = !1, f.value = [];
    }, F = () => {
      var Q;
      $.value = e.validateStatus, p.value = !0, f.value = [];
      const U = u.model.value || {}, k = O.value, ne = ms(U, g.value, !0);
      Array.isArray(k) ? ne.o[ne.k] = [].concat((Q = C.value) !== null && Q !== void 0 ? Q : []) : ne.o[ne.k] = C.value, De(() => {
        p.value = !1;
      });
    }, H = w(() => e.htmlFor === void 0 ? v.value : e.htmlFor), I = () => {
      const Q = H.value;
      if (!Q || !y.value)
        return;
      const U = y.value.$el.querySelector(`[id="${Q}"]`);
      U && U.focus && U.focus();
    };
    r({
      onFieldBlur: M,
      onFieldChange: R,
      clearValidate: N,
      resetField: F
    }), _4({
      id: v,
      onFieldBlur: () => {
        e.autoLink && M();
      },
      onFieldChange: () => {
        e.autoLink && R();
      },
      clearValidate: N
    }, w(() => !!(e.autoLink && u.model.value && d.value)));
    let A = !1;
    ee(d, (Q) => {
      Q ? A || (A = !0, u.addField(i, {
        fieldValue: O,
        fieldId: v,
        fieldName: d,
        resetField: F,
        clearValidate: N,
        namePath: g,
        validateRules: E,
        rules: S
      })) : (A = !1, u.removeField(i));
    }, {
      immediate: !0
    }), Le(() => {
      u.removeField(i);
    });
    const j = JM(f), L = w(() => e.validateStatus !== void 0 ? e.validateStatus : j.value.length ? "error" : $.value), D = w(() => ({
      [`${a.value}-item`]: !0,
      [s.value]: !0,
      // Status
      [`${a.value}-item-has-feedback`]: L.value && e.hasFeedback,
      [`${a.value}-item-has-success`]: L.value === "success",
      [`${a.value}-item-has-warning`]: L.value === "warning",
      [`${a.value}-item-has-error`]: L.value === "error",
      [`${a.value}-item-is-validating`]: L.value === "validating",
      [`${a.value}-item-hidden`]: e.hidden
    })), _ = Be({});
    Rn.useProvide(_), we(() => {
      let Q;
      if (e.hasFeedback) {
        const U = L.value && e5[L.value];
        Q = U ? m("span", {
          class: ie(`${a.value}-item-feedback-icon`, `${a.value}-item-feedback-icon-${L.value}`)
        }, [m(U, null, null)]) : null;
      }
      h(_, {
        status: L.value,
        hasFeedback: e.hasFeedback,
        feedbackIcon: Q,
        isFormItemInput: !0
      });
    });
    const V = K(null), J = K(!1), oe = () => {
      if (c.value) {
        const Q = getComputedStyle(c.value);
        V.value = parseInt(Q.marginBottom, 10);
      }
    };
    be(() => {
      ee(J, () => {
        J.value && oe();
      }, {
        flush: "post",
        immediate: !0
      });
    });
    const re = (Q) => {
      Q || (V.value = null);
    };
    return () => {
      var Q, U;
      if (e.noStyle) return (Q = n.default) === null || Q === void 0 ? void 0 : Q.call(n);
      const k = (U = e.help) !== null && U !== void 0 ? U : n.help ? Mt(n.help()) : null, ne = !!(k != null && Array.isArray(k) && k.length || j.value.length);
      return J.value = ne, l(m("div", {
        class: [D.value, ne ? `${a.value}-item-with-help` : "", o.class],
        ref: c
      }, [m(GA, z(z({}, o), {}, {
        class: `${a.value}-item-row`,
        key: "row"
      }), {
        default: () => {
          var X, B;
          return m(Te, null, [m(cd, z(z({}, e), {}, {
            htmlFor: H.value,
            required: P.value,
            requiredMark: u.requiredMark.value,
            prefixCls: a.value,
            onClick: I,
            label: e.label
          }), {
            label: n.label,
            tooltip: n.tooltip
          }), m(QM, z(z({}, e), {}, {
            errors: k != null ? In(k) : j.value,
            marginBottom: V.value,
            prefixCls: a.value,
            status: L.value,
            ref: y,
            help: k,
            extra: (X = e.extra) !== null && X !== void 0 ? X : (B = n.extra) === null || B === void 0 ? void 0 : B.call(n),
            onErrorVisibleChanged: re
          }), {
            default: n.default
          })]);
        }
      }), !!V.value && m("div", {
        class: `${a.value}-margin-offset`,
        style: {
          marginBottom: `-${V.value}px`
        }
      }, null)]));
    };
  }
});
function lb(e) {
  let t = !1, n = e.length;
  const o = [];
  return e.length ? new Promise((r, i) => {
    e.forEach((a, l) => {
      a.catch((s) => (t = !0, s)).then((s) => {
        n -= 1, o[l] = s, !(n > 0) && (t && i(o), r(o));
      });
    });
  }) : Promise.resolve([]);
}
function Gm(e) {
  let t = !1;
  return e && e.length && e.every((n) => n.required ? (t = !0, !1) : !0), t;
}
function Um(e) {
  return e == null ? [] : Array.isArray(e) ? e : [e];
}
function gs(e, t, n) {
  let o = e;
  t = t.replace(/\[(\w+)\]/g, ".$1"), t = t.replace(/^\./, "");
  const r = t.split(".");
  let i = 0;
  for (let a = r.length; i < a - 1 && !(!o && !n); ++i) {
    const l = r[i];
    if (l in o)
      o = o[l];
    else {
      if (n)
        throw new Error("please transfer a valid name path to validate!");
      break;
    }
  }
  return {
    o,
    k: r[i],
    v: o ? o[r[i]] : null,
    isValid: o && r[i] in o
  };
}
function i5(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Z({}), n = arguments.length > 2 ? arguments[2] : void 0;
  const o = ca(se(e)), r = Be({}), i = K([]), a = (C) => {
    h(se(e), h(h({}, ca(o)), C)), De(() => {
      Object.keys(r).forEach((x) => {
        r[x] = {
          autoLink: !1,
          required: Gm(se(t)[x])
        };
      });
    });
  }, l = function() {
    let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], x = arguments.length > 1 ? arguments[1] : void 0;
    return x.length ? C.filter((S) => {
      const P = Um(S.trigger || "change");
      return _3(P, x).length;
    }) : C;
  };
  let s = null;
  const c = function(C) {
    let x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = arguments.length > 2 ? arguments[2] : void 0;
    const P = [], $ = {};
    for (let M = 0; M < C.length; M++) {
      const R = C[M], N = gs(se(e), R, S);
      if (!N.isValid) continue;
      $[R] = N.v;
      const F = l(se(t)[R], Um(x && x.trigger));
      F.length && P.push(u(R, N.v, F, x || {}).then(() => ({
        name: R,
        errors: [],
        warnings: []
      })).catch((H) => {
        const I = [], A = [];
        return H.forEach((j) => {
          let {
            rule: {
              warningOnly: L
            },
            errors: D
          } = j;
          L ? A.push(...D) : I.push(...D);
        }), I.length ? Promise.reject({
          name: R,
          errors: I,
          warnings: A
        }) : {
          name: R,
          errors: I,
          warnings: A
        };
      }));
    }
    const T = lb(P);
    s = T;
    const E = T.then(() => s === T ? Promise.resolve($) : Promise.reject([])).catch((M) => {
      const R = M.filter((N) => N && N.errors.length);
      return R.length ? Promise.reject({
        values: $,
        errorFields: R,
        outOfDate: s !== T
      }) : Promise.resolve($);
    });
    return E.catch((M) => M), E;
  }, u = function(C, x, S) {
    let P = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
    const $ = nb([C], x, S, h({
      validateMessages: wl
    }, P), !!P.validateFirst);
    return r[C] ? (r[C].validateStatus = "validating", $.catch((T) => T).then(function() {
      let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
      var E;
      if (r[C].validateStatus === "validating") {
        const M = T.filter((R) => R && R.errors.length);
        r[C].validateStatus = M.length ? "error" : "success", r[C].help = M.length ? M.map((R) => R.errors) : null, (E = n == null ? void 0 : n.onValidate) === null || E === void 0 || E.call(n, C, !M.length, M.length ? At(r[C].help[0]) : null);
      }
    }), $) : $.catch((T) => T);
  }, d = (C, x) => {
    let S = [], P = !0;
    C ? Array.isArray(C) ? S = C : S = [C] : (P = !1, S = i.value);
    const $ = c(S, x || {}, P);
    return $.catch((T) => T), $;
  }, f = (C) => {
    let x = [];
    C ? Array.isArray(C) ? x = C : x = [C] : x = i.value, x.forEach((S) => {
      r[S] && h(r[S], {
        validateStatus: "",
        help: null
      });
    });
  }, p = (C) => {
    const x = {
      autoLink: !1
    }, S = [], P = Array.isArray(C) ? C : [C];
    for (let $ = 0; $ < P.length; $++) {
      const T = P[$];
      (T == null ? void 0 : T.validateStatus) === "error" && (x.validateStatus = "error", T.help && S.push(T.help)), x.required = x.required || (T == null ? void 0 : T.required);
    }
    return x.help = S, x;
  };
  let y = o, g = !0;
  const v = (C) => {
    const x = [];
    i.value.forEach((S) => {
      const P = gs(C, S, !1), $ = gs(y, S, !1);
      (g && (n == null ? void 0 : n.immediate) && P.isValid || !Cu(P.v, $.v)) && x.push(S);
    }), d(x, {
      trigger: "change"
    }), g = !1, y = ca(At(C));
  }, b = n == null ? void 0 : n.debounce;
  let O = !0;
  return ee(t, () => {
    i.value = t ? Object.keys(se(t)) : [], !O && n && n.validateOnRuleChange && d(), O = !1;
  }, {
    deep: !0,
    immediate: !0
  }), ee(i, () => {
    const C = {};
    i.value.forEach((x) => {
      C[x] = h({}, r[x], {
        autoLink: !1,
        required: Gm(se(t)[x])
      }), delete r[x];
    });
    for (const x in r)
      Object.prototype.hasOwnProperty.call(r, x) && delete r[x];
    h(r, C);
  }, {
    immediate: !0
  }), ee(e, b && b.wait ? M3(v, b.wait, eT(b, ["wait"])) : v, {
    immediate: n && !!n.immediate,
    deep: !0
  }), {
    modelRef: e,
    rulesRef: t,
    initialModel: o,
    validateInfos: r,
    resetFields: a,
    validate: d,
    validateField: u,
    mergeValidateInfo: p,
    clearValidate: f
  };
}
const a5 = () => ({
  layout: G.oneOf(Tn("horizontal", "inline", "vertical")),
  labelCol: xe(),
  wrapperCol: xe(),
  colon: Ie(),
  labelAlign: Xe(),
  labelWrap: Ie(),
  prefixCls: String,
  requiredMark: it([String, Boolean]),
  /** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
  hideRequiredMark: Ie(),
  model: G.object,
  rules: xe(),
  validateMessages: xe(),
  validateOnRuleChange: Ie(),
  // 提交失败自动滚动到第一个错误字段
  scrollToFirstError: et(),
  onSubmit: ge(),
  name: String,
  validateTrigger: it([String, Array]),
  size: Xe(),
  disabled: Ie(),
  onValuesChange: ge(),
  onFieldsChange: ge(),
  onFinish: ge(),
  onFinishFailed: ge(),
  onValidate: ge()
});
function l5(e, t) {
  return Cu(In(e), In(t));
}
const Gn = q({
  compatConfig: {
    MODE: 3
  },
  name: "AForm",
  inheritAttrs: !1,
  props: Ze(a5(), {
    layout: "horizontal",
    hideRequiredMark: !1,
    colon: !0
  }),
  Item: r5,
  useForm: i5,
  // emits: ['finishFailed', 'submit', 'finish', 'validate'],
  setup(e, t) {
    let {
      emit: n,
      slots: o,
      expose: r,
      attrs: i
    } = t;
    const {
      prefixCls: a,
      direction: l,
      form: s,
      size: c,
      disabled: u
    } = Ee("form", e), d = w(() => e.requiredMark === "" || e.requiredMark), f = w(() => {
      var j;
      return d.value !== void 0 ? d.value : s && ((j = s.value) === null || j === void 0 ? void 0 : j.requiredMark) !== void 0 ? s.value.requiredMark : !e.hideRequiredMark;
    });
    Nh(c), Zv(u);
    const p = w(() => {
      var j, L;
      return (j = e.colon) !== null && j !== void 0 ? j : (L = s.value) === null || L === void 0 ? void 0 : L.colon;
    }), {
      validateMessages: y
    } = gS(), g = w(() => h(h(h({}, wl), y.value), e.validateMessages)), [v, b] = ud(a), O = w(() => ie(a.value, {
      [`${a.value}-${e.layout}`]: !0,
      [`${a.value}-hide-required-mark`]: f.value === !1,
      [`${a.value}-rtl`]: l.value === "rtl",
      [`${a.value}-${c.value}`]: c.value
    }, b.value)), C = Z(), x = {}, S = (j, L) => {
      x[j] = L;
    }, P = (j) => {
      delete x[j];
    }, $ = (j) => {
      const L = !!j, D = L ? In(j).map(Pc) : [];
      return L ? Object.values(x).filter((_) => D.findIndex((V) => l5(V, _.fieldName.value)) > -1) : Object.values(x);
    }, T = (j) => {
      e.model && $(j).forEach((L) => {
        L.resetField();
      });
    }, E = (j) => {
      $(j).forEach((L) => {
        L.clearValidate();
      });
    }, M = (j) => {
      const {
        scrollToFirstError: L
      } = e;
      if (n("finishFailed", j), L && j.errorFields.length) {
        let D = {};
        typeof L == "object" && (D = L), N(j.errorFields[0].name, D);
      }
    }, R = function() {
      return I(...arguments);
    }, N = function(j) {
      let L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      const D = $(j ? [j] : void 0);
      if (D.length) {
        const _ = D[0].fieldId.value, V = _ ? document.getElementById(_) : null;
        V && K$(V, h({
          scrollMode: "if-needed",
          block: "nearest"
        }, L));
      }
    }, F = function() {
      let j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
      if (j === !0) {
        const L = [];
        return Object.values(x).forEach((D) => {
          let {
            namePath: _
          } = D;
          L.push(_.value);
        }), km(e.model, L);
      } else
        return km(e.model, j);
    }, H = (j, L) => {
      if (!e.model)
        return Promise.reject("Form `model` is required for validateFields to work.");
      const D = !!j, _ = D ? In(j).map(Pc) : [], V = [];
      Object.values(x).forEach((re) => {
        var Q;
        if (D || _.push(re.namePath.value), !(!((Q = re.rules) === null || Q === void 0) && Q.value.length))
          return;
        const U = re.namePath.value;
        if (!D || EM(_, U)) {
          const k = re.validateRules(h({
            validateMessages: g.value
          }, L));
          V.push(k.then(() => ({
            name: U,
            errors: [],
            warnings: []
          })).catch((ne) => {
            const X = [], B = [];
            return ne.forEach((W) => {
              let {
                rule: {
                  warningOnly: Y
                },
                errors: te
              } = W;
              Y ? B.push(...te) : X.push(...te);
            }), X.length ? Promise.reject({
              name: U,
              errors: X,
              warnings: B
            }) : {
              name: U,
              errors: X,
              warnings: B
            };
          }));
        }
      });
      const J = lb(V);
      C.value = J;
      const oe = J.then(() => C.value === J ? Promise.resolve(F(_)) : Promise.reject([])).catch((re) => {
        const Q = re.filter((U) => U && U.errors.length);
        return Promise.reject({
          values: F(_),
          errorFields: Q,
          outOfDate: C.value !== J
        });
      });
      return oe.catch((re) => re), oe;
    }, I = function() {
      return H(...arguments);
    }, A = (j) => {
      j.preventDefault(), j.stopPropagation(), n("submit", j), e.model && H().then((D) => {
        n("finish", D);
      }).catch((D) => {
        M(D);
      });
    };
    return r({
      resetFields: T,
      clearValidate: E,
      validateFields: H,
      getFieldsValue: F,
      validate: R,
      scrollToField: N
    }), rb({
      model: w(() => e.model),
      name: w(() => e.name),
      labelAlign: w(() => e.labelAlign),
      labelCol: w(() => e.labelCol),
      labelWrap: w(() => e.labelWrap),
      wrapperCol: w(() => e.wrapperCol),
      vertical: w(() => e.layout === "vertical"),
      colon: p,
      requiredMark: f,
      validateTrigger: w(() => e.validateTrigger),
      rules: w(() => e.rules),
      addField: S,
      removeField: P,
      onValidate: (j, L, D) => {
        n("validate", j, L, D);
      },
      validateMessages: g
    }), ee(() => e.rules, () => {
      e.validateOnRuleChange && H();
    }), () => {
      var j;
      return v(m("form", z(z({}, i), {}, {
        onSubmit: A,
        class: [O.value, i.class]
      }), [(j = o.default) === null || j === void 0 ? void 0 : j.call(o)]));
    };
  }
});
Gn.useInjectFormItemContext = gi;
Gn.ItemRest = pc;
Gn.install = function(e) {
  return e.component(Gn.name, Gn), e.component(Gn.Item.name, Gn.Item), e.component(pc.name, pc), e;
};
const s5 = new Se("antCheckboxEffect", {
  "0%": {
    transform: "scale(1)",
    opacity: 0.5
  },
  "100%": {
    transform: "scale(1.6)",
    opacity: 0
  }
}), c5 = (e) => {
  const {
    checkboxCls: t
  } = e, n = `${t}-wrapper`;
  return [
    // ===================== Basic =====================
    {
      // Group
      [`${t}-group`]: h(h({}, Ue(e)), {
        display: "inline-flex",
        flexWrap: "wrap",
        columnGap: e.marginXS,
        // Group > Grid
        [`> ${e.antCls}-row`]: {
          flex: 1
        }
      }),
      // Wrapper
      [n]: h(h({}, Ue(e)), {
        display: "inline-flex",
        alignItems: "baseline",
        cursor: "pointer",
        // Fix checkbox & radio in flex align #30260
        "&:after": {
          display: "inline-block",
          width: 0,
          overflow: "hidden",
          content: "'\\a0'"
        },
        // Checkbox near checkbox
        [`& + ${n}`]: {
          marginInlineStart: 0
        },
        [`&${n}-in-form-item`]: {
          'input[type="checkbox"]': {
            width: 14,
            height: 14
            // FIXME: magic
          }
        }
      }),
      // Wrapper > Checkbox
      [t]: h(h({}, Ue(e)), {
        position: "relative",
        whiteSpace: "nowrap",
        lineHeight: 1,
        cursor: "pointer",
        // To make alignment right when `controlHeight` is changed
        // Ref: https://github.com/ant-design/ant-design/issues/41564
        alignSelf: "center",
        // Wrapper > Checkbox > input
        [`${t}-input`]: {
          position: "absolute",
          // Since baseline align will get additional space offset,
          // we need to move input to top to make it align with text.
          // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
          inset: 0,
          zIndex: 1,
          cursor: "pointer",
          opacity: 0,
          margin: 0,
          [`&:focus-visible + ${t}-inner`]: h({}, ou(e))
        },
        // Wrapper > Checkbox > inner
        [`${t}-inner`]: {
          boxSizing: "border-box",
          position: "relative",
          top: 0,
          insetInlineStart: 0,
          display: "block",
          width: e.checkboxSize,
          height: e.checkboxSize,
          direction: "ltr",
          backgroundColor: e.colorBgContainer,
          border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
          borderRadius: e.borderRadiusSM,
          borderCollapse: "separate",
          transition: `all ${e.motionDurationSlow}`,
          "&:after": {
            boxSizing: "border-box",
            position: "absolute",
            top: "50%",
            insetInlineStart: "21.5%",
            display: "table",
            width: e.checkboxSize / 14 * 5,
            height: e.checkboxSize / 14 * 8,
            border: `${e.lineWidthBold}px solid ${e.colorWhite}`,
            borderTop: 0,
            borderInlineStart: 0,
            transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
            opacity: 0,
            content: '""',
            transition: `all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`
          }
        },
        // Wrapper > Checkbox + Text
        "& + span": {
          paddingInlineStart: e.paddingXS,
          paddingInlineEnd: e.paddingXS
        }
      })
    },
    // ================= Indeterminate =================
    {
      [t]: {
        "&-indeterminate": {
          // Wrapper > Checkbox > inner
          [`${t}-inner`]: {
            "&:after": {
              top: "50%",
              insetInlineStart: "50%",
              width: e.fontSizeLG / 2,
              height: e.fontSizeLG / 2,
              backgroundColor: e.colorPrimary,
              border: 0,
              transform: "translate(-50%, -50%) scale(1)",
              opacity: 1,
              content: '""'
            }
          }
        }
      }
    },
    // ===================== Hover =====================
    {
      // Wrapper
      [`${n}:hover ${t}:after`]: {
        visibility: "visible"
      },
      // Wrapper & Wrapper > Checkbox
      [`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]: {
        [`&:hover ${t}-inner`]: {
          borderColor: e.colorPrimary
        }
      },
      [`${n}:not(${n}-disabled)`]: {
        [`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]: {
          backgroundColor: e.colorPrimaryHover,
          borderColor: "transparent"
        },
        [`&:hover ${t}-checked:not(${t}-disabled):after`]: {
          borderColor: e.colorPrimaryHover
        }
      }
    },
    // ==================== Checked ====================
    {
      // Wrapper > Checkbox
      [`${t}-checked`]: {
        [`${t}-inner`]: {
          backgroundColor: e.colorPrimary,
          borderColor: e.colorPrimary,
          "&:after": {
            opacity: 1,
            transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
            transition: `all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`
          }
        },
        // Checked Effect
        "&:after": {
          position: "absolute",
          top: 0,
          insetInlineStart: 0,
          width: "100%",
          height: "100%",
          borderRadius: e.borderRadiusSM,
          visibility: "hidden",
          border: `${e.lineWidthBold}px solid ${e.colorPrimary}`,
          animationName: s5,
          animationDuration: e.motionDurationSlow,
          animationTimingFunction: "ease-in-out",
          animationFillMode: "backwards",
          content: '""',
          transition: `all ${e.motionDurationSlow}`
        }
      },
      [`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]: {
        [`&:hover ${t}-inner`]: {
          backgroundColor: e.colorPrimaryHover,
          borderColor: "transparent"
        },
        [`&:hover ${t}:after`]: {
          borderColor: e.colorPrimaryHover
        }
      }
    },
    // ==================== Disable ====================
    {
      // Wrapper
      [`${n}-disabled`]: {
        cursor: "not-allowed"
      },
      // Wrapper > Checkbox
      [`${t}-disabled`]: {
        // Wrapper > Checkbox > input
        [`&, ${t}-input`]: {
          cursor: "not-allowed",
          // Disabled for native input to enable Tooltip event handler
          // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
          pointerEvents: "none"
        },
        // Wrapper > Checkbox > inner
        [`${t}-inner`]: {
          background: e.colorBgContainerDisabled,
          borderColor: e.colorBorder,
          "&:after": {
            borderColor: e.colorTextDisabled
          }
        },
        "&:after": {
          display: "none"
        },
        "& + span": {
          color: e.colorTextDisabled
        },
        [`&${t}-indeterminate ${t}-inner::after`]: {
          background: e.colorTextDisabled
        }
      }
    }
  ];
};
function u5(e, t) {
  const n = Me(t, {
    checkboxCls: `.${e}`,
    checkboxSize: t.controlInteractiveSize
  });
  return [c5(n)];
}
const d5 = (e) => {
  const {
    prefixCls: t,
    componentCls: n,
    antCls: o
  } = e, r = `${n}-menu-item`, i = `
    &${r}-expand ${r}-expand-icon,
    ${r}-loading-icon
  `, a = Math.round((e.controlHeight - e.fontSize * e.lineHeight) / 2);
  return [
    // =====================================================
    // ==                     Control                     ==
    // =====================================================
    {
      [n]: {
        width: e.controlWidth
      }
    },
    // =====================================================
    // ==                      Popup                      ==
    // =====================================================
    {
      [`${n}-dropdown`]: [
        // ==================== Checkbox ====================
        u5(`${t}-checkbox`, e),
        {
          [`&${o}-select-dropdown`]: {
            padding: 0
          }
        },
        {
          [n]: {
            // ================== Checkbox ==================
            "&-checkbox": {
              top: 0,
              marginInlineEnd: e.paddingXS
            },
            // ==================== Menu ====================
            // >>> Menus
            "&-menus": {
              display: "flex",
              flexWrap: "nowrap",
              alignItems: "flex-start",
              [`&${n}-menu-empty`]: {
                [`${n}-menu`]: {
                  width: "100%",
                  height: "auto",
                  [r]: {
                    color: e.colorTextDisabled
                  }
                }
              }
            },
            // >>> Menu
            "&-menu": {
              flexGrow: 1,
              minWidth: e.controlItemWidth,
              height: e.dropdownHeight,
              margin: 0,
              padding: e.paddingXXS,
              overflow: "auto",
              verticalAlign: "top",
              listStyle: "none",
              "-ms-overflow-style": "-ms-autohiding-scrollbar",
              "&:not(:last-child)": {
                borderInlineEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`
              },
              "&-item": h(h({}, En), {
                display: "flex",
                flexWrap: "nowrap",
                alignItems: "center",
                padding: `${a}px ${e.paddingSM}px`,
                lineHeight: e.lineHeight,
                cursor: "pointer",
                transition: `all ${e.motionDurationMid}`,
                borderRadius: e.borderRadiusSM,
                "&:hover": {
                  background: e.controlItemBgHover
                },
                "&-disabled": {
                  color: e.colorTextDisabled,
                  cursor: "not-allowed",
                  "&:hover": {
                    background: "transparent"
                  },
                  [i]: {
                    color: e.colorTextDisabled
                  }
                },
                [`&-active:not(${r}-disabled)`]: {
                  "&, &:hover": {
                    fontWeight: e.fontWeightStrong,
                    backgroundColor: e.controlItemBgActive
                  }
                },
                "&-content": {
                  flex: "auto"
                },
                [i]: {
                  marginInlineStart: e.paddingXXS,
                  color: e.colorTextDescription,
                  fontSize: e.fontSizeIcon
                },
                "&-keyword": {
                  color: e.colorHighlight
                }
              })
            }
          }
        }
      ]
    },
    // =====================================================
    // ==                       RTL                       ==
    // =====================================================
    {
      [`${n}-dropdown-rtl`]: {
        direction: "rtl"
      }
    },
    // =====================================================
    // ==             Space Compact                       ==
    // =====================================================
    bl(e)
  ];
}, f5 = We("Cascader", (e) => [d5(e)], {
  controlWidth: 184,
  controlItemWidth: 111,
  dropdownHeight: 180
});
var p5 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
function m5(e, t, n) {
  const o = e.toLowerCase().split(t).reduce((a, l, s) => s === 0 ? [l] : [...a, t, l], []), r = [];
  let i = 0;
  return o.forEach((a, l) => {
    const s = i + a.length;
    let c = e.slice(i, s);
    i = s, l % 2 === 1 && (c = m("span", {
      class: `${n}-menu-item-keyword`,
      key: "seperator"
    }, [c])), r.push(c);
  }), r;
}
const g5 = (e) => {
  let {
    inputValue: t,
    path: n,
    prefixCls: o,
    fieldNames: r
  } = e;
  const i = [], a = t.toLowerCase();
  return n.forEach((l, s) => {
    s !== 0 && i.push(" / ");
    let c = l[r.label];
    const u = typeof c;
    (u === "string" || u === "number") && (c = m5(String(c), a, o)), i.push(c);
  }), i;
};
function v5() {
  return h(h({}, _e(qy(), ["customSlots", "checkable", "options"])), {
    multiple: {
      type: Boolean,
      default: void 0
    },
    size: String,
    bordered: {
      type: Boolean,
      default: void 0
    },
    placement: {
      type: String
    },
    suffixIcon: G.any,
    status: String,
    options: Array,
    popupClassName: String,
    /** @deprecated Please use `popupClassName` instead */
    dropdownClassName: String,
    "onUpdate:value": Function
  });
}
const h5 = q({
  compatConfig: {
    MODE: 3
  },
  name: "ACascader",
  inheritAttrs: !1,
  props: Ze(v5(), {
    bordered: !0,
    choiceTransitionName: "",
    allowClear: !0
  }),
  setup(e, t) {
    let {
      attrs: n,
      expose: o,
      slots: r,
      emit: i
    } = t;
    const a = gi(), l = Rn.useInject(), s = w(() => ml(l.status, e.status)), {
      prefixCls: c,
      rootPrefixCls: u,
      getPrefixCls: d,
      direction: f,
      getPopupContainer: p,
      renderEmpty: y,
      size: g,
      disabled: v
    } = Ee("cascader", e), b = w(() => d("select", e.prefixCls)), {
      compactSize: O,
      compactItemClassnames: C
    } = Hu(b, f), x = w(() => O.value || g.value), S = mo(), P = w(() => {
      var L;
      return (L = v.value) !== null && L !== void 0 ? L : S.value;
    }), [$, T] = KT(b), [E] = f5(c), M = w(() => f.value === "rtl"), R = w(() => {
      if (!e.showSearch)
        return e.showSearch;
      let L = {
        render: g5
      };
      return typeof e.showSearch == "object" && (L = h(h({}, L), e.showSearch)), L;
    }), N = w(() => ie(e.popupClassName || e.dropdownClassName, `${c.value}-dropdown`, {
      [`${c.value}-dropdown-rtl`]: M.value
    }, T.value)), F = Z();
    o({
      focus() {
        var L;
        (L = F.value) === null || L === void 0 || L.focus();
      },
      blur() {
        var L;
        (L = F.value) === null || L === void 0 || L.blur();
      }
    });
    const H = function() {
      for (var L = arguments.length, D = new Array(L), _ = 0; _ < L; _++)
        D[_] = arguments[_];
      i("update:value", D[0]), i("change", ...D), a.onFieldChange();
    }, I = function() {
      for (var L = arguments.length, D = new Array(L), _ = 0; _ < L; _++)
        D[_] = arguments[_];
      i("blur", ...D), a.onFieldBlur();
    }, A = w(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !e.multiple), j = w(() => e.placement !== void 0 ? e.placement : f.value === "rtl" ? "bottomRight" : "bottomLeft");
    return () => {
      var L, D;
      const {
        notFoundContent: _ = (L = r.notFoundContent) === null || L === void 0 ? void 0 : L.call(r),
        expandIcon: V = (D = r.expandIcon) === null || D === void 0 ? void 0 : D.call(r),
        multiple: J,
        bordered: oe,
        allowClear: re,
        choiceTransitionName: Q,
        transitionName: U,
        id: k = a.id.value
      } = e, ne = p5(e, ["notFoundContent", "expandIcon", "multiple", "bordered", "allowClear", "choiceTransitionName", "transitionName", "id"]), X = _ || y("Cascader");
      let B = V;
      V || (B = M.value ? m(dr, null, null) : m(Dn, null, null));
      const W = m("span", {
        class: `${b.value}-menu-item-loading-icon`
      }, [m(Lt, {
        spin: !0
      }, null)]), {
        suffixIcon: Y,
        removeIcon: te,
        clearIcon: ae
      } = H4(h(h({}, e), {
        hasFeedback: l.hasFeedback,
        feedbackIcon: l.feedbackIcon,
        multiple: J,
        prefixCls: b.value,
        showArrow: A.value
      }), r);
      return E($(m(MA, z(z(z({}, ne), n), {}, {
        id: k,
        prefixCls: b.value,
        class: [c.value, {
          [`${b.value}-lg`]: x.value === "large",
          [`${b.value}-sm`]: x.value === "small",
          [`${b.value}-rtl`]: M.value,
          [`${b.value}-borderless`]: !oe,
          [`${b.value}-in-form-item`]: l.isFormItemInput
        }, Vo(b.value, s.value, l.hasFeedback), C.value, n.class, T.value],
        disabled: P.value,
        direction: f.value,
        placement: j.value,
        notFoundContent: X,
        allowClear: re,
        showSearch: R.value,
        expandIcon: B,
        inputIcon: Y,
        removeIcon: te,
        clearIcon: ae,
        loadingIcon: W,
        checkable: !!J,
        dropdownClassName: N.value,
        dropdownPrefixCls: c.value,
        choiceTransitionName: An(u.value, "", Q),
        transitionName: An(u.value, TO(j.value), U),
        getPopupContainer: p == null ? void 0 : p.value,
        customSlots: h(h({}, r), {
          checkable: () => m("span", {
            class: `${c.value}-checkbox-inner`
          }, null)
        }),
        tagRender: e.tagRender || r.tagRender,
        displayRender: e.displayRender || r.displayRender,
        maxTagPlaceholder: e.maxTagPlaceholder || r.maxTagPlaceholder,
        showArrow: l.hasFeedback || e.showArrow,
        onChange: H,
        onBlur: I,
        ref: F
      }), r)));
    };
  }
}), y5 = Ln(h(h5, {
  SHOW_CHILD: ky,
  SHOW_PARENT: Wy
}));
let vs = h({}, cn.Modal);
function b5(e) {
  e ? vs = h(h({}, vs), e) : vs = h({}, cn.Modal);
}
const Tc = "internalMark", da = q({
  compatConfig: {
    MODE: 3
  },
  name: "ALocaleProvider",
  props: {
    locale: {
      type: Object
    },
    ANT_MARK__: String
  },
  setup(e, t) {
    let {
      slots: n
    } = t;
    so(e.ANT_MARK__ === Tc);
    const o = Be({
      antLocale: h(h({}, e.locale), {
        exist: !0
      }),
      ANT_MARK__: Tc
    });
    return $e("localeData", o), ee(() => e.locale, (r) => {
      b5(r && r.Modal), o.antLocale = h(h({}, r), {
        exist: !0
      });
    }, {
      immediate: !0
    }), () => {
      var r;
      return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
    };
  }
});
da.install = function(e) {
  return e.component(da.name, da), e;
};
const S5 = Ln(da), Ol = q({
  name: "Notice",
  inheritAttrs: !1,
  props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t, r, i = !1;
    const a = w(() => e.duration === void 0 ? 4.5 : e.duration), l = () => {
      a.value && !i && (r = setTimeout(() => {
        c();
      }, a.value * 1e3));
    }, s = () => {
      r && (clearTimeout(r), r = null);
    }, c = (d) => {
      d && d.stopPropagation(), s();
      const {
        onClose: f,
        noticeKey: p
      } = e;
      f && f(p);
    }, u = () => {
      s(), l();
    };
    return be(() => {
      l();
    }), Fn(() => {
      i = !0, s();
    }), ee([a, () => e.updateMark, () => e.visible], (d, f) => {
      let [p, y, g] = d, [v, b, O] = f;
      (p !== v || y !== b || g !== O && O) && u();
    }, {
      flush: "post"
    }), () => {
      var d, f;
      const {
        prefixCls: p,
        closable: y,
        closeIcon: g = (d = o.closeIcon) === null || d === void 0 ? void 0 : d.call(o),
        onClick: v,
        holder: b
      } = e, {
        class: O,
        style: C
      } = n, x = `${p}-notice`, S = Object.keys(n).reduce(($, T) => ((T.startsWith("data-") || T.startsWith("aria-") || T === "role") && ($[T] = n[T]), $), {}), P = m("div", z({
        class: ie(x, O, {
          [`${x}-closable`]: y
        }),
        style: C,
        onMouseenter: s,
        onMouseleave: l,
        onClick: v
      }, S), [m("div", {
        class: `${x}-content`
      }, [(f = o.default) === null || f === void 0 ? void 0 : f.call(o)]), y ? m("a", {
        tabindex: 0,
        onClick: c,
        class: `${x}-close`
      }, [g || m("span", {
        class: `${x}-close-x`
      }, null)]) : null]);
      return b ? m(Ga, {
        to: b
      }, {
        default: () => P
      }) : P;
    };
  }
});
var C5 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
let qm = 0;
const $5 = Date.now();
function Ym() {
  const e = qm;
  return qm += 1, `rcNotification_${$5}_${e}`;
}
const Ba = q({
  name: "Notification",
  inheritAttrs: !1,
  props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId"],
  setup(e, t) {
    let {
      attrs: n,
      expose: o,
      slots: r
    } = t;
    const i = /* @__PURE__ */ new Map(), a = Z([]), l = w(() => {
      const {
        prefixCls: u,
        animation: d = "fade"
      } = e;
      let f = e.transitionName;
      return !f && d && (f = `${u}-${d}`), cl(f);
    }), s = (u, d) => {
      const f = u.key || Ym(), p = h(h({}, u), {
        key: f
      }), {
        maxCount: y
      } = e, g = a.value.map((b) => b.notice.key).indexOf(f), v = a.value.concat();
      g !== -1 ? v.splice(g, 1, {
        notice: p,
        holderCallback: d
      }) : (y && a.value.length >= y && (p.key = v[0].notice.key, p.updateMark = Ym(), p.userPassKey = f, v.shift()), v.push({
        notice: p,
        holderCallback: d
      })), a.value = v;
    }, c = (u) => {
      a.value = At(a.value).filter((d) => {
        let {
          notice: {
            key: f,
            userPassKey: p
          }
        } = d;
        return (p || f) !== u;
      });
    };
    return o({
      add: s,
      remove: c,
      notices: a
    }), () => {
      var u;
      const {
        prefixCls: d,
        closeIcon: f = (u = r.closeIcon) === null || u === void 0 ? void 0 : u.call(r, {
          prefixCls: d
        })
      } = e, p = a.value.map((g, v) => {
        let {
          notice: b,
          holderCallback: O
        } = g;
        const C = v === a.value.length - 1 ? b.updateMark : void 0, {
          key: x,
          userPassKey: S
        } = b, {
          content: P
        } = b, $ = h(h(h({
          prefixCls: d,
          closeIcon: typeof f == "function" ? f({
            prefixCls: d
          }) : f
        }, b), b.props), {
          key: x,
          noticeKey: S || x,
          updateMark: C,
          onClose: (T) => {
            var E;
            c(T), (E = b.onClose) === null || E === void 0 || E.call(b);
          },
          onClick: b.onClick
        });
        return O ? m("div", {
          key: x,
          class: `${d}-hook-holder`,
          ref: (T) => {
            typeof x > "u" || (T ? (i.set(x, T), O(T, $)) : i.delete(x));
          }
        }, null) : m(Ol, z(z({}, $), {}, {
          class: ie($.class, e.hashId)
        }), {
          default: () => [typeof P == "function" ? P({
            prefixCls: d
          }) : P]
        });
      }), y = {
        [d]: 1,
        [n.class]: !!n.class,
        [e.hashId]: !0
      };
      return m("div", {
        class: y,
        style: n.style || {
          top: "65px",
          left: "50%"
        }
      }, [m(ci, z({
        tag: "div"
      }, l.value), {
        default: () => [p]
      })]);
    };
  }
});
Ba.newInstance = function(t, n) {
  const o = t || {}, {
    name: r = "notification",
    getContainer: i,
    appContext: a,
    prefixCls: l,
    rootPrefixCls: s,
    transitionName: c,
    hasTransitionName: u,
    useStyle: d
  } = o, f = C5(o, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), p = document.createElement("div");
  i ? i().appendChild(p) : document.body.appendChild(p);
  const y = q({
    compatConfig: {
      MODE: 3
    },
    name: "NotificationWrapper",
    setup(v, b) {
      let {
        attrs: O
      } = b;
      const C = K(), x = w(() => rt.getPrefixCls(r, l)), [, S] = d(x);
      return be(() => {
        n({
          notice(P) {
            var $;
            ($ = C.value) === null || $ === void 0 || $.add(P);
          },
          removeNotice(P) {
            var $;
            ($ = C.value) === null || $ === void 0 || $.remove(P);
          },
          destroy() {
            Vr(null, p), p.parentNode && p.parentNode.removeChild(p);
          },
          component: C
        });
      }), () => {
        const P = rt, $ = P.getRootPrefixCls(s, x.value), T = u ? c : `${x.value}-${c}`;
        return m(ko, z(z({}, P), {}, {
          prefixCls: $
        }), {
          default: () => [m(Ba, z(z({
            ref: C
          }, O), {}, {
            prefixCls: x.value,
            transitionName: T,
            hashId: S.value
          }), null)]
        });
      };
    }
  }), g = m(y, f);
  g.appContext = a || g.appContext, Vr(g, p);
};
let Zm = 0;
const w5 = Date.now();
function Qm() {
  const e = Zm;
  return Zm += 1, `rcNotification_${w5}_${e}`;
}
const x5 = q({
  name: "HookNotification",
  inheritAttrs: !1,
  props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId", "remove", "notices", "getStyles", "getClassName", "onAllRemoved", "getContainer"],
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t;
    const r = /* @__PURE__ */ new Map(), i = w(() => e.notices), a = w(() => {
      let u = e.transitionName;
      if (!u && e.animation)
        switch (typeof e.animation) {
          case "string":
            u = e.animation;
            break;
          case "function":
            u = e.animation().name;
            break;
          case "object":
            u = e.animation.name;
            break;
          default:
            u = `${e.prefixCls}-fade`;
            break;
        }
      return cl(u);
    }), l = (u) => e.remove(u), s = Z({});
    ee(i, () => {
      const u = {};
      Object.keys(s.value).forEach((d) => {
        u[d] = [];
      }), e.notices.forEach((d) => {
        const {
          placement: f = "topRight"
        } = d.notice;
        f && (u[f] = u[f] || [], u[f].push(d));
      }), s.value = u;
    });
    const c = w(() => Object.keys(s.value));
    return () => {
      var u;
      const {
        prefixCls: d,
        closeIcon: f = (u = o.closeIcon) === null || u === void 0 ? void 0 : u.call(o, {
          prefixCls: d
        })
      } = e, p = c.value.map((y) => {
        var g, v;
        const b = s.value[y], O = (g = e.getClassName) === null || g === void 0 ? void 0 : g.call(e, y), C = (v = e.getStyles) === null || v === void 0 ? void 0 : v.call(e, y), x = b.map(($, T) => {
          let {
            notice: E,
            holderCallback: M
          } = $;
          const R = T === i.value.length - 1 ? E.updateMark : void 0, {
            key: N,
            userPassKey: F
          } = E, {
            content: H
          } = E, I = h(h(h({
            prefixCls: d,
            closeIcon: typeof f == "function" ? f({
              prefixCls: d
            }) : f
          }, E), E.props), {
            key: N,
            noticeKey: F || N,
            updateMark: R,
            onClose: (A) => {
              var j;
              l(A), (j = E.onClose) === null || j === void 0 || j.call(E);
            },
            onClick: E.onClick
          });
          return M ? m("div", {
            key: N,
            class: `${d}-hook-holder`,
            ref: (A) => {
              typeof N > "u" || (A ? (r.set(N, A), M(A, I)) : r.delete(N));
            }
          }, null) : m(Ol, z(z({}, I), {}, {
            class: ie(I.class, e.hashId)
          }), {
            default: () => [typeof H == "function" ? H({
              prefixCls: d
            }) : H]
          });
        }), S = {
          [d]: 1,
          [`${d}-${y}`]: 1,
          [n.class]: !!n.class,
          [e.hashId]: !0,
          [O]: !!O
        };
        function P() {
          var $;
          b.length > 0 || (Reflect.deleteProperty(s.value, y), ($ = e.onAllRemoved) === null || $ === void 0 || $.call(e));
        }
        return m("div", {
          key: y,
          class: S,
          style: n.style || C || {
            top: "65px",
            left: "50%"
          }
        }, [m(ci, z(z({
          tag: "div"
        }, a.value), {}, {
          onAfterLeave: P
        }), {
          default: () => [x]
        })]);
      });
      return m(y0, {
        getContainer: e.getContainer
      }, {
        default: () => [p]
      });
    };
  }
});
var O5 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const P5 = () => document.body;
let Jm = 0;
function I5() {
  const e = {};
  for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
    n[o] = arguments[o];
  return n.forEach((r) => {
    r && Object.keys(r).forEach((i) => {
      const a = r[i];
      a !== void 0 && (e[i] = a);
    });
  }), e;
}
function sb() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  const {
    getContainer: t = P5,
    motion: n,
    prefixCls: o,
    maxCount: r,
    getClassName: i,
    getStyles: a,
    onAllRemoved: l
  } = e, s = O5(e, ["getContainer", "motion", "prefixCls", "maxCount", "getClassName", "getStyles", "onAllRemoved"]), c = K([]), u = K(), d = (b, O) => {
    const C = b.key || Qm(), x = h(h({}, b), {
      key: C
    }), S = c.value.map(($) => $.notice.key).indexOf(C), P = c.value.concat();
    S !== -1 ? P.splice(S, 1, {
      notice: x,
      holderCallback: O
    }) : (r && c.value.length >= r && (x.key = P[0].notice.key, x.updateMark = Qm(), x.userPassKey = C, P.shift()), P.push({
      notice: x,
      holderCallback: O
    })), c.value = P;
  }, f = (b) => {
    c.value = c.value.filter((O) => {
      let {
        notice: {
          key: C,
          userPassKey: x
        }
      } = O;
      return (x || C) !== b;
    });
  }, p = () => {
    c.value = [];
  }, y = () => m(x5, {
    ref: u,
    prefixCls: o,
    maxCount: r,
    notices: c.value,
    remove: f,
    getClassName: i,
    getStyles: a,
    animation: n,
    hashId: e.hashId,
    onAllRemoved: l,
    getContainer: t
  }, null), g = K([]), v = {
    open: (b) => {
      const O = I5(s, b);
      (O.key === null || O.key === void 0) && (O.key = `vc-notification-${Jm}`, Jm += 1), g.value = [...g.value, {
        type: "open",
        config: O
      }];
    },
    close: (b) => {
      g.value = [...g.value, {
        type: "close",
        key: b
      }];
    },
    destroy: () => {
      g.value = [...g.value, {
        type: "destroy"
      }];
    }
  };
  return ee(g, () => {
    g.value.length && (g.value.forEach((b) => {
      switch (b.type) {
        case "open":
          d(b.config);
          break;
        case "close":
          f(b.key);
          break;
        case "destroy":
          p();
          break;
      }
    }), g.value = []);
  }), [v, y];
}
const T5 = (e) => {
  const {
    componentCls: t,
    iconCls: n,
    boxShadowSecondary: o,
    colorBgElevated: r,
    colorSuccess: i,
    colorError: a,
    colorWarning: l,
    colorInfo: s,
    fontSizeLG: c,
    motionEaseInOutCirc: u,
    motionDurationSlow: d,
    marginXS: f,
    paddingXS: p,
    borderRadiusLG: y,
    zIndexPopup: g,
    // Custom token
    messageNoticeContentPadding: v
  } = e, b = new Se("MessageMoveIn", {
    "0%": {
      padding: 0,
      transform: "translateY(-100%)",
      opacity: 0
    },
    "100%": {
      padding: p,
      transform: "translateY(0)",
      opacity: 1
    }
  }), O = new Se("MessageMoveOut", {
    "0%": {
      maxHeight: e.height,
      padding: p,
      opacity: 1
    },
    "100%": {
      maxHeight: 0,
      padding: 0,
      opacity: 0
    }
  });
  return [
    // ============================ Holder ============================
    {
      [t]: h(h({}, Ue(e)), {
        position: "fixed",
        top: f,
        left: "50%",
        transform: "translateX(-50%)",
        width: "100%",
        pointerEvents: "none",
        zIndex: g,
        [`${t}-move-up`]: {
          animationFillMode: "forwards"
        },
        [`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]: {
          animationName: b,
          animationDuration: d,
          animationPlayState: "paused",
          animationTimingFunction: u
        },
        [`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]: {
          animationPlayState: "running"
        },
        [`${t}-move-up-leave`]: {
          animationName: O,
          animationDuration: d,
          animationPlayState: "paused",
          animationTimingFunction: u
        },
        [`${t}-move-up-leave${t}-move-up-leave-active`]: {
          animationPlayState: "running"
        },
        "&-rtl": {
          direction: "rtl",
          span: {
            direction: "rtl"
          }
        }
      })
    },
    // ============================ Notice ============================
    {
      [`${t}-notice`]: {
        padding: p,
        textAlign: "center",
        [n]: {
          verticalAlign: "text-bottom",
          marginInlineEnd: f,
          fontSize: c
        },
        [`${t}-notice-content`]: {
          display: "inline-block",
          padding: v,
          background: r,
          borderRadius: y,
          boxShadow: o,
          pointerEvents: "all"
        },
        [`${t}-success ${n}`]: {
          color: i
        },
        [`${t}-error ${n}`]: {
          color: a
        },
        [`${t}-warning ${n}`]: {
          color: l
        },
        [`
        ${t}-info ${n},
        ${t}-loading ${n}`]: {
          color: s
        }
      }
    },
    // ============================= Pure =============================
    {
      [`${t}-notice-pure-panel`]: {
        padding: 0,
        textAlign: "start"
      }
    }
  ];
}, dd = We("Message", (e) => {
  const t = Me(e, {
    messageNoticeContentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px`
  });
  return [T5(t)];
}, (e) => ({
  height: 150,
  zIndexPopup: e.zIndexPopupBase + 10
})), E5 = {
  info: m(ur, null, null),
  success: m(zn, null, null),
  error: m(jt, null, null),
  warning: m(bo, null, null),
  loading: m(Lt, null, null)
}, cb = q({
  name: "PureContent",
  inheritAttrs: !1,
  props: ["prefixCls", "type", "icon"],
  setup(e, t) {
    let {
      slots: n
    } = t;
    return () => {
      var o;
      return m("div", {
        class: ie(`${e.prefixCls}-custom-content`, `${e.prefixCls}-${e.type}`)
      }, [e.icon || E5[e.type], m("span", null, [(o = n.default) === null || o === void 0 ? void 0 : o.call(n)])]);
    };
  }
});
q({
  name: "PurePanel",
  inheritAttrs: !1,
  props: ["prefixCls", "class", "type", "icon", "content"],
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    var r;
    const {
      getPrefixCls: i
    } = ui(), a = w(() => e.prefixCls || i("message")), [, l] = dd(a);
    return m(Ol, z(z({}, o), {}, {
      prefixCls: a.value,
      class: ie(l.value, `${a.value}-notice-pure-panel`),
      noticeKey: "pure",
      duration: null
    }), {
      default: () => [m(cb, {
        prefixCls: a.value,
        type: e.type,
        icon: e.icon
      }, {
        default: () => [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)]
      })]
    });
  }
});
var A5 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const M5 = 8, R5 = 3, D5 = q({
  name: "Holder",
  inheritAttrs: !1,
  props: ["top", "prefixCls", "getContainer", "maxCount", "duration", "rtl", "transitionName", "onAllRemoved", "animation", "staticGetContainer"],
  setup(e, t) {
    let {
      expose: n
    } = t;
    var o, r;
    const {
      getPrefixCls: i,
      getPopupContainer: a
    } = Ee("message", e), l = w(() => i("message", e.prefixCls)), [, s] = dd(l), c = () => {
      var g;
      const v = (g = e.top) !== null && g !== void 0 ? g : M5;
      return {
        left: "50%",
        transform: "translateX(-50%)",
        top: typeof v == "number" ? `${v}px` : v
      };
    }, u = () => ie(s.value, e.rtl ? `${l.value}-rtl` : ""), d = () => {
      var g;
      return su({
        prefixCls: l.value,
        animation: (g = e.animation) !== null && g !== void 0 ? g : "move-up",
        transitionName: e.transitionName
      });
    }, f = m("span", {
      class: `${l.value}-close-x`
    }, [m(hn, {
      class: `${l.value}-close-icon`
    }, null)]), [p, y] = sb({
      //@ts-ignore
      getStyles: c,
      prefixCls: l.value,
      getClassName: u,
      motion: d,
      closable: !1,
      closeIcon: f,
      duration: (o = e.duration) !== null && o !== void 0 ? o : R5,
      getContainer: (r = e.staticGetContainer) !== null && r !== void 0 ? r : a.value,
      maxCount: e.maxCount,
      onAllRemoved: e.onAllRemoved
    });
    return n(h(h({}, p), {
      prefixCls: l,
      hashId: s
    })), y;
  }
});
let eg = 0;
function F5(e) {
  const t = K(null), n = Symbol("messageHolderKey"), o = (s) => {
    var c;
    (c = t.value) === null || c === void 0 || c.close(s);
  }, r = (s) => {
    if (!t.value) {
      const S = () => {
      };
      return S.then = () => {
      }, S;
    }
    const {
      open: c,
      prefixCls: u,
      hashId: d
    } = t.value, f = `${u}-notice`, {
      content: p,
      icon: y,
      type: g,
      key: v,
      class: b,
      onClose: O
    } = s, C = A5(s, ["content", "icon", "type", "key", "class", "onClose"]);
    let x = v;
    return x == null && (eg += 1, x = `antd-message-${eg}`), zS((S) => (c(h(h({}, C), {
      key: x,
      content: () => m(cb, {
        prefixCls: u,
        type: g,
        icon: typeof y == "function" ? y() : y
      }, {
        default: () => [typeof p == "function" ? p() : p]
      }),
      placement: "top",
      // @ts-ignore
      class: ie(g && `${f}-${g}`, d, b),
      onClose: () => {
        O == null || O(), S();
      }
    })), () => {
      o(x);
    }));
  }, a = {
    open: r,
    destroy: (s) => {
      var c;
      s !== void 0 ? o(s) : (c = t.value) === null || c === void 0 || c.destroy();
    }
  };
  return ["info", "success", "warning", "error", "loading"].forEach((s) => {
    const c = (u, d, f) => {
      let p;
      u && typeof u == "object" && "content" in u ? p = u : p = {
        content: u
      };
      let y, g;
      typeof d == "function" ? g = d : (y = d, g = f);
      const v = h(h({
        onClose: g,
        duration: y
      }, p), {
        type: s
      });
      return r(v);
    };
    a[s] = c;
  }), [a, () => m(D5, z(z({
    key: n
  }, e), {}, {
    ref: t
  }), null)];
}
function L5(e) {
  return F5(e);
}
let ub = 3, db, ct, N5 = 1, fb = "", pb = "move-up", mb = !1, gb = () => document.body, vb, hb = !1;
function j5() {
  return N5++;
}
function z5(e) {
  e.top !== void 0 && (db = e.top, ct = null), e.duration !== void 0 && (ub = e.duration), e.prefixCls !== void 0 && (fb = e.prefixCls), e.getContainer !== void 0 && (gb = e.getContainer, ct = null), e.transitionName !== void 0 && (pb = e.transitionName, ct = null, mb = !0), e.maxCount !== void 0 && (vb = e.maxCount, ct = null), e.rtl !== void 0 && (hb = e.rtl);
}
function B5(e, t) {
  if (ct) {
    t(ct);
    return;
  }
  Ba.newInstance({
    appContext: e.appContext,
    prefixCls: e.prefixCls || fb,
    rootPrefixCls: e.rootPrefixCls,
    transitionName: pb,
    hasTransitionName: mb,
    style: {
      top: db
    },
    getContainer: gb || e.getPopupContainer,
    maxCount: vb,
    name: "message",
    useStyle: dd
  }, (n) => {
    if (ct) {
      t(ct);
      return;
    }
    ct = n, t(n);
  });
}
const yb = {
  info: ur,
  success: zn,
  error: jt,
  warning: bo,
  loading: Lt
}, H5 = Object.keys(yb);
function _5(e) {
  const t = e.duration !== void 0 ? e.duration : ub, n = e.key || j5(), o = new Promise((i) => {
    const a = () => (typeof e.onClose == "function" && e.onClose(), i(!0));
    B5(e, (l) => {
      l.notice({
        key: n,
        duration: t,
        style: e.style || {},
        class: e.class,
        content: (s) => {
          let {
            prefixCls: c
          } = s;
          const u = yb[e.type], d = u ? m(u, null, null) : "", f = ie(`${c}-custom-content`, {
            [`${c}-${e.type}`]: e.type,
            [`${c}-rtl`]: hb === !0
          });
          return m("div", {
            class: f
          }, [typeof e.icon == "function" ? e.icon() : e.icon || d, m("span", null, [typeof e.content == "function" ? e.content() : e.content])]);
        },
        onClose: a,
        onClick: e.onClick
      });
    });
  }), r = () => {
    ct && ct.removeNotice(n);
  };
  return r.then = (i, a) => o.then(i, a), r.promise = o, r;
}
function V5(e) {
  return Object.prototype.toString.call(e) === "[object Object]" && !!e.content;
}
const ii = {
  open: _5,
  config: z5,
  destroy(e) {
    if (ct)
      if (e) {
        const {
          removeNotice: t
        } = ct;
        t(e);
      } else {
        const {
          destroy: t
        } = ct;
        t(), ct = null;
      }
  }
};
function W5(e, t) {
  e[t] = (n, o, r) => V5(n) ? e.open(h(h({}, n), {
    type: t
  })) : (typeof o == "function" && (r = o, o = void 0), e.open({
    content: n,
    duration: o,
    type: t,
    onClose: r
  }));
}
H5.forEach((e) => W5(ii, e));
ii.warn = ii.warning;
ii.useMessage = L5;
const k5 = (e) => {
  const {
    componentCls: t,
    width: n,
    notificationMarginEdge: o
  } = e, r = new Se("antNotificationTopFadeIn", {
    "0%": {
      marginTop: "-100%",
      opacity: 0
    },
    "100%": {
      marginTop: 0,
      opacity: 1
    }
  }), i = new Se("antNotificationBottomFadeIn", {
    "0%": {
      marginBottom: "-100%",
      opacity: 0
    },
    "100%": {
      marginBottom: 0,
      opacity: 1
    }
  }), a = new Se("antNotificationLeftFadeIn", {
    "0%": {
      right: {
        _skip_check_: !0,
        value: n
      },
      opacity: 0
    },
    "100%": {
      right: {
        _skip_check_: !0,
        value: 0
      },
      opacity: 1
    }
  });
  return {
    [`&${t}-top, &${t}-bottom`]: {
      marginInline: 0
    },
    [`&${t}-top`]: {
      [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: {
        animationName: r
      }
    },
    [`&${t}-bottom`]: {
      [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: {
        animationName: i
      }
    },
    [`&${t}-topLeft, &${t}-bottomLeft`]: {
      marginInlineEnd: 0,
      marginInlineStart: o,
      [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: {
        animationName: a
      }
    }
  };
}, X5 = (e) => {
  const {
    iconCls: t,
    componentCls: n,
    // .ant-notification
    boxShadowSecondary: o,
    fontSizeLG: r,
    notificationMarginBottom: i,
    borderRadiusLG: a,
    colorSuccess: l,
    colorInfo: s,
    colorWarning: c,
    colorError: u,
    colorTextHeading: d,
    notificationBg: f,
    notificationPadding: p,
    notificationMarginEdge: y,
    motionDurationMid: g,
    motionEaseInOut: v,
    fontSize: b,
    lineHeight: O,
    width: C,
    notificationIconSize: x
  } = e, S = `${n}-notice`, P = new Se("antNotificationFadeIn", {
    "0%": {
      left: {
        _skip_check_: !0,
        value: C
      },
      opacity: 0
    },
    "100%": {
      left: {
        _skip_check_: !0,
        value: 0
      },
      opacity: 1
    }
  }), $ = new Se("antNotificationFadeOut", {
    "0%": {
      maxHeight: e.animationMaxHeight,
      marginBottom: i,
      opacity: 1
    },
    "100%": {
      maxHeight: 0,
      marginBottom: 0,
      paddingTop: 0,
      paddingBottom: 0,
      opacity: 0
    }
  });
  return [
    // ============================ Holder ============================
    {
      [n]: h(h(h(h({}, Ue(e)), {
        position: "fixed",
        zIndex: e.zIndexPopup,
        marginInlineEnd: y,
        [`${n}-hook-holder`]: {
          position: "relative"
        },
        [`&${n}-top, &${n}-bottom`]: {
          [`${n}-notice`]: {
            marginInline: "auto auto"
          }
        },
        [`&${n}-topLeft, &${n}-bottomLeft`]: {
          [`${n}-notice`]: {
            marginInlineEnd: "auto",
            marginInlineStart: 0
          }
        },
        //  animation
        [`${n}-fade-enter, ${n}-fade-appear`]: {
          animationDuration: e.motionDurationMid,
          animationTimingFunction: v,
          animationFillMode: "both",
          opacity: 0,
          animationPlayState: "paused"
        },
        [`${n}-fade-leave`]: {
          animationTimingFunction: v,
          animationFillMode: "both",
          animationDuration: g,
          animationPlayState: "paused"
        },
        [`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]: {
          animationName: P,
          animationPlayState: "running"
        },
        [`${n}-fade-leave${n}-fade-leave-active`]: {
          animationName: $,
          animationPlayState: "running"
        }
      }), k5(e)), {
        // RTL
        "&-rtl": {
          direction: "rtl",
          [`${n}-notice-btn`]: {
            float: "left"
          }
        }
      })
    },
    // ============================ Notice ============================
    {
      [S]: {
        position: "relative",
        width: C,
        maxWidth: `calc(100vw - ${y * 2}px)`,
        marginBottom: i,
        marginInlineStart: "auto",
        padding: p,
        overflow: "hidden",
        lineHeight: O,
        wordWrap: "break-word",
        background: f,
        borderRadius: a,
        boxShadow: o,
        [`${n}-close-icon`]: {
          fontSize: b,
          cursor: "pointer"
        },
        [`${S}-message`]: {
          marginBottom: e.marginXS,
          color: d,
          fontSize: r,
          lineHeight: e.lineHeightLG
        },
        [`${S}-description`]: {
          fontSize: b
        },
        [`&${S}-closable ${S}-message`]: {
          paddingInlineEnd: e.paddingLG
        },
        [`${S}-with-icon ${S}-message`]: {
          marginBottom: e.marginXS,
          marginInlineStart: e.marginSM + x,
          fontSize: r
        },
        [`${S}-with-icon ${S}-description`]: {
          marginInlineStart: e.marginSM + x,
          fontSize: b
        },
        // Icon & color style in different selector level
        // https://github.com/ant-design/ant-design/issues/16503
        // https://github.com/ant-design/ant-design/issues/15512
        [`${S}-icon`]: {
          position: "absolute",
          fontSize: x,
          lineHeight: 0,
          // icon-font
          [`&-success${t}`]: {
            color: l
          },
          [`&-info${t}`]: {
            color: s
          },
          [`&-warning${t}`]: {
            color: c
          },
          [`&-error${t}`]: {
            color: u
          }
        },
        [`${S}-close`]: {
          position: "absolute",
          top: e.notificationPaddingVertical,
          insetInlineEnd: e.notificationPaddingHorizontal,
          color: e.colorIcon,
          outline: "none",
          width: e.notificationCloseButtonSize,
          height: e.notificationCloseButtonSize,
          borderRadius: e.borderRadiusSM,
          transition: `background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          "&:hover": {
            color: e.colorIconHover,
            backgroundColor: e.wireframe ? "transparent" : e.colorFillContent
          }
        },
        [`${S}-btn`]: {
          float: "right",
          marginTop: e.marginSM
        }
      }
    },
    // ============================= Pure =============================
    {
      [`${S}-pure-panel`]: {
        margin: 0
      }
    }
  ];
}, fd = We("Notification", (e) => {
  const t = e.paddingMD, n = e.paddingLG, o = Me(e, {
    // default.less variables
    notificationBg: e.colorBgElevated,
    notificationPaddingVertical: t,
    notificationPaddingHorizontal: n,
    // index.less variables
    notificationPadding: `${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,
    notificationMarginBottom: e.margin,
    notificationMarginEdge: e.marginLG,
    animationMaxHeight: 150,
    notificationIconSize: e.fontSizeLG * e.lineHeightLG,
    notificationCloseButtonSize: e.controlHeightLG * 0.55
  });
  return [X5(o)];
}, (e) => ({
  zIndexPopup: e.zIndexPopupBase + 50,
  width: 384
}));
function bb(e, t) {
  return t || m("span", {
    class: `${e}-close-x`
  }, [m(hn, {
    class: `${e}-close-icon`
  }, null)]);
}
m(ur, null, null), m(zn, null, null), m(jt, null, null), m(bo, null, null), m(Lt, null, null);
const K5 = {
  success: zn,
  info: ur,
  error: jt,
  warning: bo
};
function Sb(e) {
  let {
    prefixCls: t,
    icon: n,
    type: o,
    message: r,
    description: i,
    btn: a
  } = e, l = null;
  if (n)
    l = m("span", {
      class: `${t}-icon`
    }, [Mo(n)]);
  else if (o) {
    const s = K5[o];
    l = m(s, {
      class: `${t}-icon ${t}-icon-${o}`
    }, null);
  }
  return m("div", {
    class: ie({
      [`${t}-with-icon`]: l
    }),
    role: "alert"
  }, [l, m("div", {
    class: `${t}-message`
  }, [r]), m("div", {
    class: `${t}-description`
  }, [i]), a && m("div", {
    class: `${t}-btn`
  }, [a])]);
}
q({
  name: "PurePanel",
  inheritAttrs: !1,
  props: ["prefixCls", "icon", "type", "message", "description", "btn", "closeIcon"],
  setup(e) {
    const {
      getPrefixCls: t
    } = Ee("notification", e), n = w(() => e.prefixCls || t("notification")), o = w(() => `${n.value}-notice`), [, r] = fd(n);
    return () => m(Ol, z(z({}, e), {}, {
      prefixCls: n.value,
      class: ie(r.value, `${o.value}-pure-panel`),
      noticeKey: "pure",
      duration: null,
      closable: e.closable,
      closeIcon: bb(n.value, e.closeIcon)
    }), {
      default: () => [m(Sb, {
        prefixCls: o.value,
        icon: e.icon,
        type: e.type,
        message: e.message,
        description: e.description,
        btn: e.btn
      }, null)]
    });
  }
});
function Cb(e, t, n) {
  let o;
  switch (t = typeof t == "number" ? `${t}px` : t, n = typeof n == "number" ? `${n}px` : n, e) {
    case "top":
      o = {
        left: "50%",
        transform: "translateX(-50%)",
        right: "auto",
        top: t,
        bottom: "auto"
      };
      break;
    case "topLeft":
      o = {
        left: 0,
        top: t,
        bottom: "auto"
      };
      break;
    case "topRight":
      o = {
        right: 0,
        top: t,
        bottom: "auto"
      };
      break;
    case "bottom":
      o = {
        left: "50%",
        transform: "translateX(-50%)",
        right: "auto",
        top: "auto",
        bottom: n
      };
      break;
    case "bottomLeft":
      o = {
        left: 0,
        top: "auto",
        bottom: n
      };
      break;
    default:
      o = {
        right: 0,
        top: "auto",
        bottom: n
      };
      break;
  }
  return o;
}
function G5(e) {
  return {
    name: `${e}-fade`
  };
}
var U5 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const tg = 24, q5 = 4.5, Y5 = q({
  name: "Holder",
  inheritAttrs: !1,
  props: ["prefixCls", "class", "type", "icon", "content", "onAllRemoved"],
  setup(e, t) {
    let {
      expose: n
    } = t;
    const {
      getPrefixCls: o,
      getPopupContainer: r
    } = Ee("notification", e), i = w(() => e.prefixCls || o("notification")), a = (f) => {
      var p, y;
      return Cb(f, (p = e.top) !== null && p !== void 0 ? p : tg, (y = e.bottom) !== null && y !== void 0 ? y : tg);
    }, [, l] = fd(i), s = () => ie(l.value, {
      [`${i.value}-rtl`]: e.rtl
    }), c = () => G5(i.value), [u, d] = sb({
      prefixCls: i.value,
      getStyles: a,
      getClassName: s,
      motion: c,
      closable: !0,
      closeIcon: bb(i.value),
      duration: q5,
      getContainer: () => {
        var f, p;
        return ((f = e.getPopupContainer) === null || f === void 0 ? void 0 : f.call(e)) || ((p = r.value) === null || p === void 0 ? void 0 : p.call(r)) || document.body;
      },
      maxCount: e.maxCount,
      hashId: l.value,
      onAllRemoved: e.onAllRemoved
    });
    return n(h(h({}, u), {
      prefixCls: i.value,
      hashId: l
    })), d;
  }
});
function Z5(e) {
  const t = K(null), n = Symbol("notificationHolderKey"), o = (l) => {
    if (!t.value)
      return;
    const {
      open: s,
      prefixCls: c,
      hashId: u
    } = t.value, d = `${c}-notice`, {
      message: f,
      description: p,
      icon: y,
      type: g,
      btn: v,
      class: b
    } = l, O = U5(l, ["message", "description", "icon", "type", "btn", "class"]);
    return s(h(h({
      placement: "topRight"
    }, O), {
      content: () => m(Sb, {
        prefixCls: d,
        icon: typeof y == "function" ? y() : y,
        type: g,
        message: typeof f == "function" ? f() : f,
        description: typeof p == "function" ? p() : p,
        btn: typeof v == "function" ? v() : v
      }, null),
      // @ts-ignore
      class: ie(g && `${d}-${g}`, u, b)
    }));
  }, i = {
    open: o,
    destroy: (l) => {
      var s, c;
      l !== void 0 ? (s = t.value) === null || s === void 0 || s.close(l) : (c = t.value) === null || c === void 0 || c.destroy();
    }
  };
  return ["success", "info", "warning", "error"].forEach((l) => {
    i[l] = (s) => o(h(h({}, s), {
      type: l
    }));
  }), [i, () => m(Y5, z(z({
    key: n
  }, e), {}, {
    ref: t
  }), null)];
}
function Q5(e) {
  return Z5(e);
}
const Un = {};
let $b = 4.5, wb = "24px", xb = "24px", Ec = "", Ob = "topRight", Pb = () => document.body, Ib = null, Ac = !1, Tb;
function J5(e) {
  const {
    duration: t,
    placement: n,
    bottom: o,
    top: r,
    getContainer: i,
    closeIcon: a,
    prefixCls: l
  } = e;
  l !== void 0 && (Ec = l), t !== void 0 && ($b = t), n !== void 0 && (Ob = n), o !== void 0 && (xb = typeof o == "number" ? `${o}px` : o), r !== void 0 && (wb = typeof r == "number" ? `${r}px` : r), i !== void 0 && (Pb = i), a !== void 0 && (Ib = a), e.rtl !== void 0 && (Ac = e.rtl), e.maxCount !== void 0 && (Tb = e.maxCount);
}
function eR(e, t) {
  let {
    prefixCls: n,
    placement: o = Ob,
    getContainer: r = Pb,
    top: i,
    bottom: a,
    closeIcon: l = Ib,
    appContext: s
  } = e;
  const {
    getPrefixCls: c
  } = fR(), u = c("notification", n || Ec), d = `${u}-${o}-${Ac}`, f = Un[d];
  if (f) {
    Promise.resolve(f).then((y) => {
      t(y);
    });
    return;
  }
  const p = ie(`${u}-${o}`, {
    [`${u}-rtl`]: Ac === !0
  });
  Ba.newInstance({
    name: "notification",
    prefixCls: n || Ec,
    useStyle: fd,
    class: p,
    style: Cb(o, i ?? wb, a ?? xb),
    appContext: s,
    getContainer: r,
    closeIcon: (y) => {
      let {
        prefixCls: g
      } = y;
      return m("span", {
        class: `${g}-close-x`
      }, [Mo(l, {}, m(hn, {
        class: `${g}-close-icon`
      }, null))]);
    },
    maxCount: Tb,
    hasTransitionName: !0
  }, (y) => {
    Un[d] = y, t(y);
  });
}
const tR = {
  success: Gu,
  info: qu,
  error: Yu,
  warning: Uu
};
function nR(e) {
  const {
    icon: t,
    type: n,
    description: o,
    message: r,
    btn: i
  } = e, a = e.duration === void 0 ? $b : e.duration;
  eR(e, (l) => {
    l.notice({
      content: (s) => {
        let {
          prefixCls: c
        } = s;
        const u = `${c}-notice`;
        let d = null;
        if (t)
          d = () => m("span", {
            class: `${u}-icon`
          }, [Mo(t)]);
        else if (n) {
          const f = tR[n];
          d = () => m(f, {
            class: `${u}-icon ${u}-icon-${n}`
          }, null);
        }
        return m("div", {
          class: d ? `${u}-with-icon` : ""
        }, [d && d(), m("div", {
          class: `${u}-message`
        }, [!o && d ? m("span", {
          class: `${u}-message-single-line-auto-margin`
        }, null) : null, Mo(r)]), m("div", {
          class: `${u}-description`
        }, [Mo(o)]), i ? m("span", {
          class: `${u}-btn`
        }, [Mo(i)]) : null]);
      },
      duration: a,
      closable: !0,
      onClose: e.onClose,
      onClick: e.onClick,
      key: e.key,
      style: e.style || {},
      class: e.class
    });
  });
}
const nr = {
  open: nR,
  close(e) {
    Object.keys(Un).forEach((t) => Promise.resolve(Un[t]).then((n) => {
      n.removeNotice(e);
    }));
  },
  config: J5,
  destroy() {
    Object.keys(Un).forEach((e) => {
      Promise.resolve(Un[e]).then((t) => {
        t.destroy();
      }), delete Un[e];
    });
  }
}, oR = ["success", "info", "warning", "error"];
oR.forEach((e) => {
  nr[e] = (t) => nr.open(h(h({}, t), {
    type: e
  }));
});
nr.warn = nr.warning;
nr.useNotification = Q5;
const rR = `-ant-${Date.now()}-${Math.random()}`;
function iR(e, t) {
  const n = {}, o = (a, l) => {
    let s = a.clone();
    return s = (l == null ? void 0 : l(s)) || s, s.toRgbString();
  }, r = (a, l) => {
    const s = new Fe(a), c = un(s.toRgbString());
    n[`${l}-color`] = o(s), n[`${l}-color-disabled`] = c[1], n[`${l}-color-hover`] = c[4], n[`${l}-color-active`] = c[6], n[`${l}-color-outline`] = s.clone().setAlpha(0.2).toRgbString(), n[`${l}-color-deprecated-bg`] = c[0], n[`${l}-color-deprecated-border`] = c[2];
  };
  if (t.primaryColor) {
    r(t.primaryColor, "primary");
    const a = new Fe(t.primaryColor), l = un(a.toRgbString());
    l.forEach((c, u) => {
      n[`primary-${u + 1}`] = c;
    }), n["primary-color-deprecated-l-35"] = o(a, (c) => c.lighten(35)), n["primary-color-deprecated-l-20"] = o(a, (c) => c.lighten(20)), n["primary-color-deprecated-t-20"] = o(a, (c) => c.tint(20)), n["primary-color-deprecated-t-50"] = o(a, (c) => c.tint(50)), n["primary-color-deprecated-f-12"] = o(a, (c) => c.setAlpha(c.getAlpha() * 0.12));
    const s = new Fe(l[0]);
    n["primary-color-active-deprecated-f-30"] = o(s, (c) => c.setAlpha(c.getAlpha() * 0.3)), n["primary-color-active-deprecated-d-02"] = o(s, (c) => c.darken(2));
  }
  return t.successColor && r(t.successColor, "success"), t.warningColor && r(t.warningColor, "warning"), t.errorColor && r(t.errorColor, "error"), t.infoColor && r(t.infoColor, "info"), `
  :root {
    ${Object.keys(n).map((a) => `--${e}-${a}: ${n[a]};`).join(`
`)}
  }
  `.trim();
}
function aR(e, t) {
  const n = iR(e, t);
  Ct() && Kr(n, `${rR}-dynamic-theme`);
}
const lR = (e) => {
  const [t, n] = go();
  return Ks(w(() => ({
    theme: t.value,
    token: n.value,
    hashId: "",
    path: ["ant-design-icons", e.value]
  })), () => [{
    [`.${e.value}`]: h(h({}, tl()), {
      [`.${e.value} .${e.value}-icon`]: {
        display: "block"
      }
    })
  }]);
};
function sR(e, t) {
  const n = w(() => (e == null ? void 0 : e.value) || {}), o = w(() => n.value.inherit === !1 || !(t != null && t.value) ? xa : t.value);
  return w(() => {
    if (!(e != null && e.value))
      return t == null ? void 0 : t.value;
    const i = h({}, o.value.components);
    return Object.keys(e.value.components || {}).forEach((a) => {
      i[a] = h(h({}, i[a]), e.value.components[a]);
    }), h(h(h({}, o.value), n.value), {
      token: h(h({}, o.value.token), n.value.token),
      components: i
    });
  });
}
var cR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const uR = "ant";
function Wo() {
  return rt.prefixCls || uR;
}
function Eb() {
  return rt.iconPrefixCls || qc;
}
const pd = Be({}), rt = Be({});
we(() => {
  h(rt, pd), rt.prefixCls = Wo(), rt.iconPrefixCls = Eb(), rt.getPrefixCls = (e, t) => t || (e ? `${rt.prefixCls}-${e}` : rt.prefixCls), rt.getRootPrefixCls = () => rt.prefixCls ? rt.prefixCls : Wo();
});
let hs;
const dR = (e) => {
  hs && hs(), hs = we(() => {
    h(pd, Be(e)), h(rt, Be(e));
  }), e.theme && aR(Wo(), e.theme);
}, fR = () => ({
  getPrefixCls: (e, t) => t || (e ? `${Wo()}-${e}` : Wo()),
  getIconPrefixCls: Eb,
  getRootPrefixCls: () => rt.prefixCls ? rt.prefixCls : Wo()
}), ko = q({
  compatConfig: {
    MODE: 3
  },
  name: "AConfigProvider",
  inheritAttrs: !1,
  props: vS(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = ui(), r = (I, A) => {
      const {
        prefixCls: j = "ant"
      } = e;
      if (A) return A;
      const L = j || o.getPrefixCls("");
      return I ? `${L}-${I}` : L;
    }, i = w(() => e.iconPrefixCls || o.iconPrefixCls.value || qc), a = w(() => i.value !== o.iconPrefixCls.value), l = w(() => {
      var I;
      return e.csp || ((I = o.csp) === null || I === void 0 ? void 0 : I.value);
    }), s = lR(i), c = sR(w(() => e.theme), w(() => {
      var I;
      return (I = o.theme) === null || I === void 0 ? void 0 : I.value;
    })), u = (I) => (e.renderEmpty || n.renderEmpty || o.renderEmpty || W$)(I), d = w(() => {
      var I, A;
      return (I = e.autoInsertSpaceInButton) !== null && I !== void 0 ? I : (A = o.autoInsertSpaceInButton) === null || A === void 0 ? void 0 : A.value;
    }), f = w(() => {
      var I;
      return e.locale || ((I = o.locale) === null || I === void 0 ? void 0 : I.value);
    });
    ee(f, () => {
      pd.locale = f.value;
    }, {
      immediate: !0
    });
    const p = w(() => {
      var I;
      return e.direction || ((I = o.direction) === null || I === void 0 ? void 0 : I.value);
    }), y = w(() => {
      var I, A;
      return (I = e.space) !== null && I !== void 0 ? I : (A = o.space) === null || A === void 0 ? void 0 : A.value;
    }), g = w(() => {
      var I, A;
      return (I = e.virtual) !== null && I !== void 0 ? I : (A = o.virtual) === null || A === void 0 ? void 0 : A.value;
    }), v = w(() => {
      var I, A;
      return (I = e.dropdownMatchSelectWidth) !== null && I !== void 0 ? I : (A = o.dropdownMatchSelectWidth) === null || A === void 0 ? void 0 : A.value;
    }), b = w(() => {
      var I;
      return e.getTargetContainer !== void 0 ? e.getTargetContainer : (I = o.getTargetContainer) === null || I === void 0 ? void 0 : I.value;
    }), O = w(() => {
      var I;
      return e.getPopupContainer !== void 0 ? e.getPopupContainer : (I = o.getPopupContainer) === null || I === void 0 ? void 0 : I.value;
    }), C = w(() => {
      var I;
      return e.pageHeader !== void 0 ? e.pageHeader : (I = o.pageHeader) === null || I === void 0 ? void 0 : I.value;
    }), x = w(() => {
      var I;
      return e.input !== void 0 ? e.input : (I = o.input) === null || I === void 0 ? void 0 : I.value;
    }), S = w(() => {
      var I;
      return e.pagination !== void 0 ? e.pagination : (I = o.pagination) === null || I === void 0 ? void 0 : I.value;
    }), P = w(() => {
      var I;
      return e.form !== void 0 ? e.form : (I = o.form) === null || I === void 0 ? void 0 : I.value;
    }), $ = w(() => {
      var I;
      return e.select !== void 0 ? e.select : (I = o.select) === null || I === void 0 ? void 0 : I.value;
    }), T = w(() => e.componentSize), E = w(() => e.componentDisabled), M = w(() => {
      var I, A;
      return (I = e.wave) !== null && I !== void 0 ? I : (A = o.wave) === null || A === void 0 ? void 0 : A.value;
    }), R = {
      csp: l,
      autoInsertSpaceInButton: d,
      locale: f,
      direction: p,
      space: y,
      virtual: g,
      dropdownMatchSelectWidth: v,
      getPrefixCls: r,
      iconPrefixCls: i,
      theme: w(() => {
        var I, A;
        return (I = c.value) !== null && I !== void 0 ? I : (A = o.theme) === null || A === void 0 ? void 0 : A.value;
      }),
      renderEmpty: u,
      getTargetContainer: b,
      getPopupContainer: O,
      pageHeader: C,
      input: x,
      pagination: S,
      form: P,
      select: $,
      componentSize: T,
      componentDisabled: E,
      transformCellText: w(() => e.transformCellText),
      wave: M
    }, N = w(() => {
      const I = c.value || {}, {
        algorithm: A,
        token: j
      } = I, L = cR(I, ["algorithm", "token"]), D = A && (!Array.isArray(A) || A.length > 0) ? ch(A) : void 0;
      return h(h({}, L), {
        theme: D,
        token: h(h({}, Ja), j)
      });
    }), F = w(() => {
      var I, A;
      let j = {};
      return f.value && (j = ((I = f.value.Form) === null || I === void 0 ? void 0 : I.defaultValidateMessages) || ((A = cn.Form) === null || A === void 0 ? void 0 : A.defaultValidateMessages) || {}), e.form && e.form.validateMessages && (j = h(h({}, j), e.form.validateMessages)), j;
    });
    hS(R), mS({
      validateMessages: F
    }), Nh(T), Zv(E);
    const H = (I) => {
      var A, j;
      let L = a.value ? s((A = n.default) === null || A === void 0 ? void 0 : A.call(n)) : (j = n.default) === null || j === void 0 ? void 0 : j.call(n);
      if (e.theme) {
        const D = /* @__PURE__ */ (function() {
          return L;
        })();
        L = m(z$, {
          value: N.value
        }, {
          default: () => [D]
        });
      }
      return m(S5, {
        locale: f.value || I,
        ANT_MARK__: Tc
      }, {
        default: () => [L]
      });
    };
    return we(() => {
      p.value && (ii.config({
        rtl: p.value === "rtl"
      }), nr.config({
        rtl: p.value === "rtl"
      }));
    }), () => m(Qc, {
      children: (I, A, j) => H(j)
    }, null);
  }
});
ko.config = dR;
ko.install = function(e) {
  e.component(ko.name, ko);
};
ro.Button = La;
ro.install = function(e) {
  return e.component(ro.name, ro), e.component(La.name, La), e;
};
const Lr = (e) => e != null && (Array.isArray(e) ? Mt(e).length : !0);
function md(e) {
  return Lr(e.prefix) || Lr(e.suffix) || Lr(e.allowClear);
}
function fa(e) {
  return Lr(e.addonBefore) || Lr(e.addonAfter);
}
function Mc(e) {
  return typeof e > "u" || e === null ? "" : String(e);
}
function Nr(e, t, n, o) {
  if (!n)
    return;
  const r = t;
  if (t.type === "click") {
    Object.defineProperty(r, "target", {
      writable: !0
    }), Object.defineProperty(r, "currentTarget", {
      writable: !0
    });
    const i = e.cloneNode(!0);
    r.target = i, r.currentTarget = i, i.value = "", n(r);
    return;
  }
  if (o !== void 0) {
    Object.defineProperty(r, "target", {
      writable: !0
    }), Object.defineProperty(r, "currentTarget", {
      writable: !0
    }), r.target = e, r.currentTarget = e, e.value = o, n(r);
    return;
  }
  n(r);
}
function Ab(e, t) {
  if (!e) return;
  e.focus(t);
  const {
    cursor: n
  } = t || {};
  if (n) {
    const o = e.value.length;
    switch (n) {
      case "start":
        e.setSelectionRange(0, 0);
        break;
      case "end":
        e.setSelectionRange(o, o);
        break;
      default:
        e.setSelectionRange(0, o);
    }
  }
}
const pR = () => ({
  addonBefore: G.any,
  addonAfter: G.any,
  prefix: G.any,
  suffix: G.any,
  clearIcon: G.any,
  affixWrapperClassName: String,
  groupClassName: String,
  wrapperClassName: String,
  inputClassName: String,
  allowClear: {
    type: Boolean,
    default: void 0
  }
}), Mb = () => h(h({}, pR()), {
  value: {
    type: [String, Number, Symbol],
    default: void 0
  },
  defaultValue: {
    type: [String, Number, Symbol],
    default: void 0
  },
  inputElement: G.any,
  prefixCls: String,
  disabled: {
    type: Boolean,
    default: void 0
  },
  focused: {
    type: Boolean,
    default: void 0
  },
  triggerFocus: Function,
  readonly: {
    type: Boolean,
    default: void 0
  },
  handleReset: Function,
  hidden: {
    type: Boolean,
    default: void 0
  }
}), Rb = () => h(h({}, Mb()), {
  id: String,
  placeholder: {
    type: [String, Number]
  },
  autocomplete: String,
  type: Xe("text"),
  name: String,
  size: {
    type: String
  },
  autofocus: {
    type: Boolean,
    default: void 0
  },
  lazy: {
    type: Boolean,
    default: !0
  },
  maxlength: Number,
  loading: {
    type: Boolean,
    default: void 0
  },
  bordered: {
    type: Boolean,
    default: void 0
  },
  showCount: {
    type: [Boolean, Object]
  },
  htmlSize: Number,
  onPressEnter: Function,
  onKeydown: Function,
  onKeyup: Function,
  onFocus: Function,
  onBlur: Function,
  onChange: Function,
  onInput: Function,
  "onUpdate:value": Function,
  onCompositionstart: Function,
  onCompositionend: Function,
  valueModifiers: Object,
  hidden: {
    type: Boolean,
    default: void 0
  },
  status: String
}), mR = q({
  name: "BaseInput",
  inheritAttrs: !1,
  props: Mb(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = Z(), i = (l) => {
      var s;
      if (!((s = r.value) === null || s === void 0) && s.contains(l.target)) {
        const {
          triggerFocus: c
        } = e;
        c == null || c();
      }
    }, a = () => {
      var l;
      const {
        allowClear: s,
        value: c,
        disabled: u,
        readonly: d,
        handleReset: f,
        suffix: p = n.suffix,
        prefixCls: y
      } = e;
      if (!s)
        return null;
      const g = !u && !d && c, v = `${y}-clear-icon`, b = ((l = n.clearIcon) === null || l === void 0 ? void 0 : l.call(n)) || "*";
      return m("span", {
        onClick: f,
        onMousedown: (O) => O.preventDefault(),
        class: ie({
          [`${v}-hidden`]: !g,
          [`${v}-has-suffix`]: !!p
        }, v),
        role: "button",
        tabindex: -1
      }, [b]);
    };
    return () => {
      var l, s;
      const {
        focused: c,
        value: u,
        disabled: d,
        allowClear: f,
        readonly: p,
        hidden: y,
        prefixCls: g,
        prefix: v = (l = n.prefix) === null || l === void 0 ? void 0 : l.call(n),
        suffix: b = (s = n.suffix) === null || s === void 0 ? void 0 : s.call(n),
        addonAfter: O = n.addonAfter,
        addonBefore: C = n.addonBefore,
        inputElement: x,
        affixWrapperClassName: S,
        wrapperClassName: P,
        groupClassName: $
      } = e;
      let T = He(x, {
        value: u,
        hidden: y
      });
      if (md({
        prefix: v,
        suffix: b,
        allowClear: f
      })) {
        const E = `${g}-affix-wrapper`, M = ie(E, {
          [`${E}-disabled`]: d,
          [`${E}-focused`]: c,
          [`${E}-readonly`]: p,
          [`${E}-input-with-clear-btn`]: b && f && u
        }, !fa({
          addonAfter: O,
          addonBefore: C
        }) && o.class, S), R = (b || f) && m("span", {
          class: `${g}-suffix`
        }, [a(), b]);
        T = m("span", {
          class: M,
          style: o.style,
          hidden: !fa({
            addonAfter: O,
            addonBefore: C
          }) && y,
          onMousedown: i,
          ref: r
        }, [v && m("span", {
          class: `${g}-prefix`
        }, [v]), He(x, {
          style: null,
          value: u,
          hidden: null
        }), R]);
      }
      if (fa({
        addonAfter: O,
        addonBefore: C
      })) {
        const E = `${g}-group`, M = `${E}-addon`, R = ie(`${g}-wrapper`, E, P), N = ie(`${g}-group-wrapper`, o.class, $);
        return m("span", {
          class: N,
          style: o.style,
          hidden: y
        }, [m("span", {
          class: R
        }, [C && m("span", {
          class: M
        }, [C]), He(T, {
          style: null,
          hidden: null
        }), O && m("span", {
          class: M
        }, [O])])]);
      }
      return T;
    };
  }
});
var gR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const vR = q({
  name: "VCInput",
  inheritAttrs: !1,
  props: Rb(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r,
      emit: i
    } = t;
    const a = K(e.value === void 0 ? e.defaultValue : e.value), l = K(!1), s = K(), c = K();
    ee(() => e.value, () => {
      a.value = e.value;
    }), ee(() => e.disabled, () => {
      e.disabled && (l.value = !1);
    });
    const u = ($) => {
      s.value && Ab(s.value.input, $);
    }, d = () => {
      var $;
      ($ = s.value.input) === null || $ === void 0 || $.blur();
    }, f = ($, T, E) => {
      var M;
      (M = s.value.input) === null || M === void 0 || M.setSelectionRange($, T, E);
    }, p = () => {
      var $;
      ($ = s.value.input) === null || $ === void 0 || $.select();
    };
    r({
      focus: u,
      blur: d,
      input: w(() => {
        var $;
        return ($ = s.value.input) === null || $ === void 0 ? void 0 : $.input;
      }),
      stateValue: a,
      setSelectionRange: f,
      select: p
    });
    const y = ($) => {
      i("change", $);
    }, g = ($, T) => {
      a.value !== $ && (e.value === void 0 ? a.value = $ : De(() => {
        var E;
        s.value.input.value !== a.value && ((E = c.value) === null || E === void 0 || E.$forceUpdate());
      }), De(() => {
        T && T();
      }));
    }, v = ($) => {
      const {
        value: T
      } = $.target;
      if (a.value === T) return;
      const E = $.target.value;
      Nr(s.value.input, $, y), g(E);
    }, b = ($) => {
      $.keyCode === 13 && i("pressEnter", $), i("keydown", $);
    }, O = ($) => {
      l.value = !0, i("focus", $);
    }, C = ($) => {
      l.value = !1, i("blur", $);
    }, x = ($) => {
      Nr(s.value.input, $, y), g("", () => {
        u();
      });
    }, S = () => {
      var $, T;
      const {
        addonBefore: E = n.addonBefore,
        addonAfter: M = n.addonAfter,
        disabled: R,
        valueModifiers: N = {},
        htmlSize: F,
        autocomplete: H,
        prefixCls: I,
        inputClassName: A,
        prefix: j = ($ = n.prefix) === null || $ === void 0 ? void 0 : $.call(n),
        suffix: L = (T = n.suffix) === null || T === void 0 ? void 0 : T.call(n),
        allowClear: D,
        type: _ = "text"
      } = e, V = _e(e, [
        "prefixCls",
        "onPressEnter",
        "addonBefore",
        "addonAfter",
        "prefix",
        "suffix",
        "allowClear",
        // Input elements must be either controlled or uncontrolled,
        // specify either the value prop, or the defaultValue prop, but not both.
        "defaultValue",
        "size",
        "bordered",
        "htmlSize",
        "lazy",
        "showCount",
        "valueModifiers",
        "showCount",
        "affixWrapperClassName",
        "groupClassName",
        "inputClassName",
        "wrapperClassName"
      ]), J = h(h(h({}, V), o), {
        autocomplete: H,
        onChange: v,
        onInput: v,
        onFocus: O,
        onBlur: C,
        onKeydown: b,
        class: ie(I, {
          [`${I}-disabled`]: R
        }, A, !fa({
          addonAfter: M,
          addonBefore: E
        }) && !md({
          prefix: j,
          suffix: L,
          allowClear: D
        }) && o.class),
        ref: s,
        key: "ant-input",
        size: F,
        type: _,
        lazy: e.lazy
      });
      return N.lazy && delete J.onInput, J.autofocus || delete J.autofocus, m(wu, _e(J, ["size"]), null);
    }, P = () => {
      var $;
      const {
        maxlength: T,
        suffix: E = ($ = n.suffix) === null || $ === void 0 ? void 0 : $.call(n),
        showCount: M,
        prefixCls: R
      } = e, N = Number(T) > 0;
      if (E || M) {
        const F = [...Mc(a.value)].length, H = typeof M == "object" ? M.formatter({
          count: F,
          maxlength: T
        }) : `${F}${N ? ` / ${T}` : ""}`;
        return m(Te, null, [!!M && m("span", {
          class: ie(`${R}-show-count-suffix`, {
            [`${R}-show-count-has-suffix`]: !!E
          })
        }, [H]), E]);
      }
      return null;
    };
    return be(() => {
    }), () => {
      const {
        prefixCls: $,
        disabled: T
      } = e, E = gR(e, ["prefixCls", "disabled"]);
      return m(mR, z(z(z({}, E), o), {}, {
        ref: c,
        prefixCls: $,
        inputElement: S(),
        handleReset: x,
        value: Mc(a.value),
        focused: l.value,
        triggerFocus: u,
        suffix: P(),
        disabled: T
      }), n);
    };
  }
}), Pl = () => _e(Rb(), ["wrapperClassName", "groupClassName", "inputClassName", "affixWrapperClassName"]), Db = () => h(h({}, _e(Pl(), ["prefix", "addonBefore", "addonAfter", "suffix"])), {
  rows: Number,
  autosize: {
    type: [Boolean, Object],
    default: void 0
  },
  autoSize: {
    type: [Boolean, Object],
    default: void 0
  },
  onResize: {
    type: Function
  },
  onCompositionstart: Wr(),
  onCompositionend: Wr(),
  valueModifiers: Object
});
var hR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const Je = q({
  compatConfig: {
    MODE: 3
  },
  name: "AInput",
  inheritAttrs: !1,
  props: Pl(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r,
      emit: i
    } = t;
    const a = Z(), l = gi(), s = Rn.useInject(), c = w(() => ml(s.status, e.status)), {
      direction: u,
      prefixCls: d,
      size: f,
      autocomplete: p
    } = Ee("input", e), {
      compactSize: y,
      compactItemClassnames: g
    } = Hu(d, u), v = w(() => y.value || f.value), [b, O] = rd(d), C = mo();
    r({
      focus: (F) => {
        var H;
        (H = a.value) === null || H === void 0 || H.focus(F);
      },
      blur: () => {
        var F;
        (F = a.value) === null || F === void 0 || F.blur();
      },
      input: a,
      setSelectionRange: (F, H, I) => {
        var A;
        (A = a.value) === null || A === void 0 || A.setSelectionRange(F, H, I);
      },
      select: () => {
        var F;
        (F = a.value) === null || F === void 0 || F.select();
      }
    });
    const T = Z([]), E = () => {
      T.value.push(setTimeout(() => {
        var F, H, I, A;
        !((F = a.value) === null || F === void 0) && F.input && ((H = a.value) === null || H === void 0 ? void 0 : H.input.getAttribute("type")) === "password" && (!((I = a.value) === null || I === void 0) && I.input.hasAttribute("value")) && ((A = a.value) === null || A === void 0 || A.input.removeAttribute("value"));
      }));
    };
    be(() => {
      E();
    }), Av(() => {
      T.value.forEach((F) => clearTimeout(F));
    }), Le(() => {
      T.value.forEach((F) => clearTimeout(F));
    });
    const M = (F) => {
      E(), i("blur", F), l.onFieldBlur();
    }, R = (F) => {
      E(), i("focus", F);
    }, N = (F) => {
      i("update:value", F.target.value), i("change", F), i("input", F), l.onFieldChange();
    };
    return () => {
      var F, H, I, A, j, L;
      const {
        hasFeedback: D,
        feedbackIcon: _
      } = s, {
        allowClear: V,
        bordered: J = !0,
        prefix: oe = (F = n.prefix) === null || F === void 0 ? void 0 : F.call(n),
        suffix: re = (H = n.suffix) === null || H === void 0 ? void 0 : H.call(n),
        addonAfter: Q = (I = n.addonAfter) === null || I === void 0 ? void 0 : I.call(n),
        addonBefore: U = (A = n.addonBefore) === null || A === void 0 ? void 0 : A.call(n),
        id: k = (j = l.id) === null || j === void 0 ? void 0 : j.value
      } = e, ne = hR(e, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), X = (D || re) && m(Te, null, [re, D && _]), B = d.value, W = md({
        prefix: oe,
        suffix: re
      }) || !!D, Y = n.clearIcon || (() => m(jt, null, null));
      return b(m(vR, z(z(z({}, o), _e(ne, ["onUpdate:value", "onChange", "onInput"])), {}, {
        onChange: N,
        id: k,
        disabled: (L = e.disabled) !== null && L !== void 0 ? L : C.value,
        ref: a,
        prefixCls: B,
        autocomplete: p.value,
        onBlur: M,
        onFocus: R,
        prefix: oe,
        suffix: X,
        allowClear: V,
        addonAfter: Q && m(tm, null, {
          default: () => [m(Hp, null, {
            default: () => [Q]
          })]
        }),
        addonBefore: U && m(tm, null, {
          default: () => [m(Hp, null, {
            default: () => [U]
          })]
        }),
        class: [o.class, g.value],
        inputClassName: ie({
          [`${B}-sm`]: v.value === "small",
          [`${B}-lg`]: v.value === "large",
          [`${B}-rtl`]: u.value === "rtl",
          [`${B}-borderless`]: !J
        }, !W && Vo(B, c.value), O.value),
        affixWrapperClassName: ie({
          [`${B}-affix-wrapper-sm`]: v.value === "small",
          [`${B}-affix-wrapper-lg`]: v.value === "large",
          [`${B}-affix-wrapper-rtl`]: u.value === "rtl",
          [`${B}-affix-wrapper-borderless`]: !J
        }, Vo(`${B}-affix-wrapper`, c.value, D), O.value),
        wrapperClassName: ie({
          [`${B}-group-rtl`]: u.value === "rtl"
        }, O.value),
        groupClassName: ie({
          [`${B}-group-wrapper-sm`]: v.value === "small",
          [`${B}-group-wrapper-lg`]: v.value === "large",
          [`${B}-group-wrapper-rtl`]: u.value === "rtl"
        }, Vo(`${B}-group-wrapper`, c.value, D), O.value)
      }), h(h({}, n), {
        clearIcon: Y
      })));
    };
  }
}), yR = q({
  compatConfig: {
    MODE: 3
  },
  name: "AInputGroup",
  inheritAttrs: !1,
  props: {
    prefixCls: String,
    size: {
      type: String
    },
    compact: {
      type: Boolean,
      default: void 0
    }
  },
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      direction: i,
      getPrefixCls: a
    } = Ee("input-group", e), l = Rn.useInject();
    Rn.useProvide(l, {
      isFormItemInput: !1
    });
    const s = w(() => a("input")), [c, u] = rd(s), d = w(() => {
      const f = r.value;
      return {
        [`${f}`]: !0,
        [u.value]: !0,
        [`${f}-lg`]: e.size === "large",
        [`${f}-sm`]: e.size === "small",
        [`${f}-compact`]: e.compact,
        [`${f}-rtl`]: i.value === "rtl"
      };
    });
    return () => {
      var f;
      return c(m("span", z(z({}, o), {}, {
        class: ie(d.value, o.class)
      }), [(f = n.default) === null || f === void 0 ? void 0 : f.call(n)]));
    };
  }
});
var bR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const SR = q({
  compatConfig: {
    MODE: 3
  },
  name: "AInputSearch",
  inheritAttrs: !1,
  props: h(h({}, Pl()), {
    inputPrefixCls: String,
    // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
    enterButton: G.any,
    onSearch: {
      type: Function
    }
  }),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r,
      emit: i
    } = t;
    const a = K(), l = K(!1);
    r({
      focus: () => {
        var S;
        (S = a.value) === null || S === void 0 || S.focus();
      },
      blur: () => {
        var S;
        (S = a.value) === null || S === void 0 || S.blur();
      }
    });
    const u = (S) => {
      i("update:value", S.target.value), S && S.target && S.type === "click" && i("search", S.target.value, S), i("change", S);
    }, d = (S) => {
      var P;
      document.activeElement === ((P = a.value) === null || P === void 0 ? void 0 : P.input) && S.preventDefault();
    }, f = (S) => {
      var P, $;
      i("search", ($ = (P = a.value) === null || P === void 0 ? void 0 : P.input) === null || $ === void 0 ? void 0 : $.stateValue, S);
    }, p = (S) => {
      l.value || e.loading || f(S);
    }, y = (S) => {
      l.value = !0, i("compositionstart", S);
    }, g = (S) => {
      l.value = !1, i("compositionend", S);
    }, {
      prefixCls: v,
      getPrefixCls: b,
      direction: O,
      size: C
    } = Ee("input-search", e), x = w(() => b("input", e.inputPrefixCls));
    return () => {
      var S, P, $, T;
      const {
        disabled: E,
        loading: M,
        addonAfter: R = (S = n.addonAfter) === null || S === void 0 ? void 0 : S.call(n),
        suffix: N = (P = n.suffix) === null || P === void 0 ? void 0 : P.call(n)
      } = e, F = bR(e, ["disabled", "loading", "addonAfter", "suffix"]);
      let {
        enterButton: H = (T = ($ = n.enterButton) === null || $ === void 0 ? void 0 : $.call(n)) !== null && T !== void 0 ? T : !1
      } = e;
      H = H || H === "";
      const I = typeof H == "boolean" ? m(pl, null, null) : null, A = `${v.value}-button`, j = Array.isArray(H) ? H[0] : H;
      let L;
      const D = j.type && Q0(j.type) && j.type.__ANT_BUTTON;
      if (D || j.tagName === "button")
        L = He(j, h({
          onMousedown: d,
          onClick: f,
          key: "enterButton"
        }, D ? {
          class: A,
          size: C.value
        } : {}), !1);
      else {
        const V = I && !H;
        L = m(ut, {
          class: A,
          type: H ? "primary" : void 0,
          size: C.value,
          disabled: E,
          key: "enterButton",
          onMousedown: d,
          onClick: f,
          loading: M,
          icon: V ? I : null
        }, {
          default: () => [V ? null : I || H]
        });
      }
      R && (L = [L, R]);
      const _ = ie(v.value, {
        [`${v.value}-rtl`]: O.value === "rtl",
        [`${v.value}-${C.value}`]: !!C.value,
        [`${v.value}-with-button`]: !!H
      }, o.class);
      return m(Je, z(z(z({
        ref: a
      }, _e(F, ["onUpdate:value", "onSearch", "enterButton"])), o), {}, {
        onPressEnter: p,
        onCompositionstart: y,
        onCompositionend: g,
        size: C.value,
        prefixCls: x.value,
        addonAfter: L,
        suffix: N,
        onChange: u,
        class: _,
        disabled: E
      }), n);
    };
  }
}), ng = (e) => e != null && (Array.isArray(e) ? Mt(e).length : !0);
function CR(e) {
  return ng(e.addonBefore) || ng(e.addonAfter);
}
const $R = ["text", "input"], wR = q({
  compatConfig: {
    MODE: 3
  },
  name: "ClearableLabeledInput",
  inheritAttrs: !1,
  props: {
    prefixCls: String,
    inputType: G.oneOf(Tn("text", "input")),
    value: et(),
    defaultValue: et(),
    allowClear: {
      type: Boolean,
      default: void 0
    },
    element: et(),
    handleReset: Function,
    disabled: {
      type: Boolean,
      default: void 0
    },
    direction: {
      type: String
    },
    size: {
      type: String
    },
    suffix: et(),
    prefix: et(),
    addonBefore: et(),
    addonAfter: et(),
    readonly: {
      type: Boolean,
      default: void 0
    },
    focused: {
      type: Boolean,
      default: void 0
    },
    bordered: {
      type: Boolean,
      default: !0
    },
    triggerFocus: {
      type: Function
    },
    hidden: Boolean,
    status: String,
    hashId: String
  },
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = Rn.useInject(), i = (l) => {
      const {
        value: s,
        disabled: c,
        readonly: u,
        handleReset: d,
        suffix: f = n.suffix
      } = e, p = !c && !u && s, y = `${l}-clear-icon`;
      return m(jt, {
        onClick: d,
        onMousedown: (g) => g.preventDefault(),
        class: ie({
          [`${y}-hidden`]: !p,
          [`${y}-has-suffix`]: !!f
        }, y),
        role: "button"
      }, null);
    }, a = (l, s) => {
      const {
        value: c,
        allowClear: u,
        direction: d,
        bordered: f,
        hidden: p,
        status: y,
        addonAfter: g = n.addonAfter,
        addonBefore: v = n.addonBefore,
        hashId: b
      } = e, {
        status: O,
        hasFeedback: C
      } = r;
      if (!u)
        return He(s, {
          value: c,
          disabled: e.disabled
        });
      const x = ie(`${l}-affix-wrapper`, `${l}-affix-wrapper-textarea-with-clear-btn`, Vo(`${l}-affix-wrapper`, ml(O, y), C), {
        [`${l}-affix-wrapper-rtl`]: d === "rtl",
        [`${l}-affix-wrapper-borderless`]: !f,
        // className will go to addon wrapper
        [`${o.class}`]: !CR({
          addonAfter: g,
          addonBefore: v
        }) && o.class
      }, b);
      return m("span", {
        class: x,
        style: o.style,
        hidden: p
      }, [He(s, {
        style: null,
        value: c,
        disabled: e.disabled
      }), i(l)]);
    };
    return () => {
      var l;
      const {
        prefixCls: s,
        inputType: c,
        element: u = (l = n.element) === null || l === void 0 ? void 0 : l.call(n)
      } = e;
      return c === $R[0] ? a(s, u) : null;
    };
  }
}), xR = `
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`, OR = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], ys = {};
let Pt;
function PR(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  const n = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
  if (t && ys[n])
    return ys[n];
  const o = window.getComputedStyle(e), r = o.getPropertyValue("box-sizing") || o.getPropertyValue("-moz-box-sizing") || o.getPropertyValue("-webkit-box-sizing"), i = parseFloat(o.getPropertyValue("padding-bottom")) + parseFloat(o.getPropertyValue("padding-top")), a = parseFloat(o.getPropertyValue("border-bottom-width")) + parseFloat(o.getPropertyValue("border-top-width")), s = {
    sizingStyle: OR.map((c) => `${c}:${o.getPropertyValue(c)}`).join(";"),
    paddingSize: i,
    borderSize: a,
    boxSizing: r
  };
  return t && n && (ys[n] = s), s;
}
function IR(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
  Pt || (Pt = document.createElement("textarea"), Pt.setAttribute("tab-index", "-1"), Pt.setAttribute("aria-hidden", "true"), document.body.appendChild(Pt)), e.getAttribute("wrap") ? Pt.setAttribute("wrap", e.getAttribute("wrap")) : Pt.removeAttribute("wrap");
  const {
    paddingSize: r,
    borderSize: i,
    boxSizing: a,
    sizingStyle: l
  } = PR(e, t);
  Pt.setAttribute("style", `${l};${xR}`), Pt.value = e.value || e.placeholder || "";
  let s, c, u, d = Pt.scrollHeight;
  if (a === "border-box" ? d += i : a === "content-box" && (d -= r), n !== null || o !== null) {
    Pt.value = " ";
    const p = Pt.scrollHeight - r;
    n !== null && (s = p * n, a === "border-box" && (s = s + r + i), d = Math.max(s, d)), o !== null && (c = p * o, a === "border-box" && (c = c + r + i), u = d > c ? "" : "hidden", d = Math.min(c, d));
  }
  const f = {
    height: `${d}px`,
    overflowY: u,
    resize: "none"
  };
  return s && (f.minHeight = `${s}px`), c && (f.maxHeight = `${c}px`), f;
}
const bs = 0, Ss = 1, Cs = 2, TR = q({
  compatConfig: {
    MODE: 3
  },
  name: "ResizableTextArea",
  inheritAttrs: !1,
  props: Db(),
  setup(e, t) {
    let {
      attrs: n,
      emit: o,
      expose: r
    } = t, i, a;
    const l = Z(), s = Z({}), c = Z(Cs);
    Le(() => {
      Ae.cancel(i), Ae.cancel(a);
    });
    const u = () => {
      try {
        if (l.value && document.activeElement === l.value.input) {
          const P = l.value.getSelectionStart(), $ = l.value.getSelectionEnd(), T = l.value.getScrollTop();
          l.value.setSelectionRange(P, $), l.value.setScrollTop(T);
        }
      } catch {
      }
    }, d = Z(), f = Z();
    we(() => {
      const P = e.autoSize || e.autosize;
      P ? (d.value = P.minRows, f.value = P.maxRows) : (d.value = void 0, f.value = void 0);
    });
    const p = w(() => !!(e.autoSize || e.autosize)), y = () => {
      c.value = bs;
    };
    ee([() => e.value, d, f, p], () => {
      p.value && y();
    }, {
      immediate: !0
    });
    const g = Z();
    ee([c, l], () => {
      if (l.value)
        if (c.value === bs)
          c.value = Ss;
        else if (c.value === Ss) {
          const P = IR(l.value.input, !1, d.value, f.value);
          c.value = Cs, g.value = P;
        } else
          u();
    }, {
      immediate: !0,
      flush: "post"
    });
    const v = lt(), b = Z(), O = () => {
      Ae.cancel(b.value);
    }, C = (P) => {
      c.value === Cs && (o("resize", P), p.value && (O(), b.value = Ae(() => {
        y();
      })));
    };
    Le(() => {
      O();
    }), r({
      resizeTextarea: () => {
        y();
      },
      textArea: w(() => {
        var P;
        return (P = l.value) === null || P === void 0 ? void 0 : P.input;
      }),
      instance: v
    }), so(e.autosize === void 0);
    const S = () => {
      const {
        prefixCls: P,
        disabled: $
      } = e, T = _e(e, ["prefixCls", "onPressEnter", "autoSize", "autosize", "defaultValue", "allowClear", "type", "maxlength", "valueModifiers"]), E = ie(P, n.class, {
        [`${P}-disabled`]: $
      }), M = p.value ? g.value : null, R = [n.style, s.value, M], N = h(h(h({}, T), n), {
        style: R,
        class: E
      });
      return (c.value === bs || c.value === Ss) && R.push({
        overflowX: "hidden",
        overflowY: "hidden"
      }), N.autofocus || delete N.autofocus, N.rows === 0 && delete N.rows, m(rr, {
        onResize: C,
        disabled: !p.value
      }, {
        default: () => [m(wu, z(z({}, N), {}, {
          ref: l,
          tag: "textarea"
        }), null)]
      });
    };
    return () => S();
  }
});
function Fb(e, t) {
  return [...e || ""].slice(0, t).join("");
}
function og(e, t, n, o) {
  let r = n;
  return e ? r = Fb(n, o) : [...t || ""].length < n.length && [...n || ""].length > o && (r = t), r;
}
const Lb = q({
  compatConfig: {
    MODE: 3
  },
  name: "ATextarea",
  inheritAttrs: !1,
  props: Db(),
  setup(e, t) {
    let {
      attrs: n,
      expose: o,
      emit: r
    } = t;
    var i;
    const a = gi(), l = Rn.useInject(), s = w(() => ml(l.status, e.status)), c = K((i = e.value) !== null && i !== void 0 ? i : e.defaultValue), u = K(), d = K(""), {
      prefixCls: f,
      size: p,
      direction: y
    } = Ee("input", e), [g, v] = rd(f), b = mo(), O = w(() => e.showCount === "" || e.showCount || !1), C = w(() => Number(e.maxlength) > 0), x = K(!1), S = K(), P = K(0), $ = (D) => {
      x.value = !0, S.value = d.value, P.value = D.currentTarget.selectionStart, r("compositionstart", D);
    }, T = (D) => {
      var _;
      x.value = !1;
      let V = D.currentTarget.value;
      if (C.value) {
        const J = P.value >= e.maxlength + 1 || P.value === ((_ = S.value) === null || _ === void 0 ? void 0 : _.length);
        V = og(J, S.value, V, e.maxlength);
      }
      V !== d.value && (N(V), Nr(D.currentTarget, D, I, V)), r("compositionend", D);
    }, E = lt();
    ee(() => e.value, () => {
      var D;
      "value" in E.vnode.props, c.value = (D = e.value) !== null && D !== void 0 ? D : "";
    });
    const M = (D) => {
      var _;
      Ab((_ = u.value) === null || _ === void 0 ? void 0 : _.textArea, D);
    }, R = () => {
      var D, _;
      (_ = (D = u.value) === null || D === void 0 ? void 0 : D.textArea) === null || _ === void 0 || _.blur();
    }, N = (D, _) => {
      c.value !== D && (e.value === void 0 ? c.value = D : De(() => {
        var V, J, oe;
        u.value.textArea.value !== d.value && ((oe = (V = u.value) === null || V === void 0 ? void 0 : (J = V.instance).update) === null || oe === void 0 || oe.call(J));
      }), De(() => {
        _ && _();
      }));
    }, F = (D) => {
      D.keyCode === 13 && r("pressEnter", D), r("keydown", D);
    }, H = (D) => {
      const {
        onBlur: _
      } = e;
      _ == null || _(D), a.onFieldBlur();
    }, I = (D) => {
      r("update:value", D.target.value), r("change", D), r("input", D), a.onFieldChange();
    }, A = (D) => {
      Nr(u.value.textArea, D, I), N("", () => {
        M();
      });
    }, j = (D) => {
      let _ = D.target.value;
      if (c.value !== _) {
        if (C.value) {
          const V = D.target, J = V.selectionStart >= e.maxlength + 1 || V.selectionStart === _.length || !V.selectionStart;
          _ = og(J, d.value, _, e.maxlength);
        }
        Nr(D.currentTarget, D, I, _), N(_);
      }
    }, L = () => {
      var D, _;
      const {
        class: V
      } = n, {
        bordered: J = !0
      } = e, oe = h(h(h({}, _e(e, ["allowClear"])), n), {
        class: [{
          [`${f.value}-borderless`]: !J,
          [`${V}`]: V && !O.value,
          [`${f.value}-sm`]: p.value === "small",
          [`${f.value}-lg`]: p.value === "large"
        }, Vo(f.value, s.value), v.value],
        disabled: b.value,
        showCount: null,
        prefixCls: f.value,
        onInput: j,
        onChange: j,
        onBlur: H,
        onKeydown: F,
        onCompositionstart: $,
        onCompositionend: T
      });
      return !((D = e.valueModifiers) === null || D === void 0) && D.lazy && delete oe.onInput, m(TR, z(z({}, oe), {}, {
        id: (_ = oe == null ? void 0 : oe.id) !== null && _ !== void 0 ? _ : a.id.value,
        ref: u,
        maxlength: e.maxlength,
        lazy: e.lazy
      }), null);
    };
    return o({
      focus: M,
      blur: R,
      resizableTextArea: u
    }), we(() => {
      let D = Mc(c.value);
      !x.value && C.value && (e.value === null || e.value === void 0) && (D = Fb(D, e.maxlength)), d.value = D;
    }), () => {
      var D;
      const {
        maxlength: _,
        bordered: V = !0,
        hidden: J
      } = e, {
        style: oe,
        class: re
      } = n, Q = h(h(h({}, e), n), {
        prefixCls: f.value,
        inputType: "text",
        handleReset: A,
        direction: y.value,
        bordered: V,
        style: O.value ? void 0 : oe,
        hashId: v.value,
        disabled: (D = e.disabled) !== null && D !== void 0 ? D : b.value
      });
      let U = m(wR, z(z({}, Q), {}, {
        value: d.value,
        status: e.status
      }), {
        element: L
      });
      if (O.value || l.hasFeedback) {
        const k = [...d.value].length;
        let ne = "";
        typeof O.value == "object" ? ne = O.value.formatter({
          value: d.value,
          count: k,
          maxlength: _
        }) : ne = `${k}${C.value ? ` / ${_}` : ""}`, U = m("div", {
          hidden: J,
          class: ie(`${f.value}-textarea`, {
            [`${f.value}-textarea-rtl`]: y.value === "rtl",
            [`${f.value}-textarea-show-count`]: O.value,
            [`${f.value}-textarea-in-form-item`]: l.isFormItemInput
          }, `${f.value}-textarea-show-count`, re, v.value),
          style: oe,
          "data-count": typeof ne != "object" ? ne : void 0
        }, [U, l.hasFeedback && m("span", {
          class: `${f.value}-textarea-suffix`
        }, [l.feedbackIcon])]);
      }
      return g(U);
    };
  }
});
var ER = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" };
function rg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      AR(e, r, n[r]);
    });
  }
  return e;
}
function AR(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Ci = function(t, n) {
  var o = rg({}, t, n.attrs);
  return m(de, rg({}, o, {
    icon: ER
  }), null);
};
Ci.displayName = "EyeOutlined";
Ci.inheritAttrs = !1;
var MR = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" };
function ig(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      RR(e, r, n[r]);
    });
  }
  return e;
}
function RR(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var gd = function(t, n) {
  var o = ig({}, t, n.attrs);
  return m(de, ig({}, o, {
    icon: MR
  }), null);
};
gd.displayName = "EyeInvisibleOutlined";
gd.inheritAttrs = !1;
var DR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const FR = {
  click: "onClick",
  hover: "onMouseover"
}, LR = (e) => e ? m(Ci, null, null) : m(gd, null, null), NR = q({
  compatConfig: {
    MODE: 3
  },
  name: "AInputPassword",
  inheritAttrs: !1,
  props: h(h({}, Pl()), {
    prefixCls: String,
    inputPrefixCls: String,
    action: {
      type: String,
      default: "click"
    },
    visibilityToggle: {
      type: Boolean,
      default: !0
    },
    visible: {
      type: Boolean,
      default: void 0
    },
    "onUpdate:visible": Function,
    iconRender: Function
  }),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r,
      emit: i
    } = t;
    const a = K(!1), l = () => {
      const {
        disabled: v
      } = e;
      v || (a.value = !a.value, i("update:visible", a.value));
    };
    we(() => {
      e.visible !== void 0 && (a.value = !!e.visible);
    });
    const s = K();
    r({
      focus: () => {
        var v;
        (v = s.value) === null || v === void 0 || v.focus();
      },
      blur: () => {
        var v;
        (v = s.value) === null || v === void 0 || v.blur();
      }
    });
    const d = (v) => {
      const {
        action: b,
        iconRender: O = n.iconRender || LR
      } = e, C = FR[b] || "", x = O(a.value), S = {
        [C]: l,
        class: `${v}-icon`,
        key: "passwordIcon",
        onMousedown: (P) => {
          P.preventDefault();
        },
        onMouseup: (P) => {
          P.preventDefault();
        }
      };
      return He(Rt(x) ? x : m("span", null, [x]), S);
    }, {
      prefixCls: f,
      getPrefixCls: p
    } = Ee("input-password", e), y = w(() => p("input", e.inputPrefixCls)), g = () => {
      const {
        size: v,
        visibilityToggle: b
      } = e, O = DR(e, ["size", "visibilityToggle"]), C = b && d(f.value), x = ie(f.value, o.class, {
        [`${f.value}-${v}`]: !!v
      }), S = h(h(h({}, _e(O, ["suffix", "iconRender", "action"])), o), {
        type: a.value ? "text" : "password",
        class: x,
        prefixCls: y.value,
        suffix: C
      });
      return v && (S.size = v), m(Je, z({
        ref: s
      }, S), n);
    };
    return () => g();
  }
});
Je.Group = yR;
Je.Search = SR;
Je.TextArea = Lb;
Je.Password = NR;
Je.install = function(e) {
  return e.component(Je.name, Je), e.component(Je.Group.name, Je.Group), e.component(Je.Search.name, Je.Search), e.component(Je.TextArea.name, Je.TextArea), e.component(Je.Password.name, Je.Password), e;
};
function Il() {
  return {
    keyboard: {
      type: Boolean,
      default: void 0
    },
    mask: {
      type: Boolean,
      default: void 0
    },
    afterClose: Function,
    closable: {
      type: Boolean,
      default: void 0
    },
    maskClosable: {
      type: Boolean,
      default: void 0
    },
    visible: {
      type: Boolean,
      default: void 0
    },
    destroyOnClose: {
      type: Boolean,
      default: void 0
    },
    mousePosition: G.shape({
      x: Number,
      y: Number
    }).loose,
    title: G.any,
    footer: G.any,
    transitionName: String,
    maskTransitionName: String,
    animation: G.any,
    maskAnimation: G.any,
    wrapStyle: {
      type: Object,
      default: void 0
    },
    bodyStyle: {
      type: Object,
      default: void 0
    },
    maskStyle: {
      type: Object,
      default: void 0
    },
    prefixCls: String,
    wrapClassName: String,
    rootClassName: String,
    width: [String, Number],
    height: [String, Number],
    zIndex: Number,
    bodyProps: G.any,
    maskProps: G.any,
    wrapProps: G.any,
    getContainer: G.any,
    dialogStyle: {
      type: Object,
      default: void 0
    },
    dialogClass: String,
    closeIcon: G.any,
    forceRender: {
      type: Boolean,
      default: void 0
    },
    getOpenCount: Function,
    // https://github.com/ant-design/ant-design/issues/19771
    // https://github.com/react-component/dialog/issues/95
    focusTriggerAfterClose: {
      type: Boolean,
      default: void 0
    },
    onClose: Function,
    modalRender: Function
  };
}
function ag(e, t, n) {
  let o = t;
  return !o && n && (o = `${e}-${n}`), o;
}
let lg = -1;
function jR() {
  return lg += 1, lg;
}
function sg(e, t) {
  let n = e[`page${t ? "Y" : "X"}Offset`];
  const o = `scroll${t ? "Top" : "Left"}`;
  if (typeof n != "number") {
    const r = e.document;
    n = r.documentElement[o], typeof n != "number" && (n = r.body[o]);
  }
  return n;
}
function zR(e) {
  const t = e.getBoundingClientRect(), n = {
    left: t.left,
    top: t.top
  }, o = e.ownerDocument, r = o.defaultView || o.parentWindow;
  return n.left += sg(r), n.top += sg(r, !0), n;
}
const BR = {
  width: 0,
  height: 0,
  overflow: "hidden",
  outline: "none"
}, HR = {
  outline: "none"
}, _R = q({
  compatConfig: {
    MODE: 3
  },
  name: "DialogContent",
  inheritAttrs: !1,
  props: h(h({}, Il()), {
    motionName: String,
    ariaId: String,
    onVisibleChanged: Function,
    onMousedown: Function,
    onMouseup: Function
  }),
  setup(e, t) {
    let {
      expose: n,
      slots: o,
      attrs: r
    } = t;
    const i = Z(), a = Z(), l = Z();
    n({
      focus: () => {
        var f;
        (f = i.value) === null || f === void 0 || f.focus({
          preventScroll: !0
        });
      },
      changeActive: (f) => {
        const {
          activeElement: p
        } = document;
        f && p === a.value ? i.value.focus({
          preventScroll: !0
        }) : !f && p === i.value && a.value.focus({
          preventScroll: !0
        });
      }
    });
    const s = Z(), c = w(() => {
      const {
        width: f,
        height: p
      } = e, y = {};
      return f !== void 0 && (y.width = typeof f == "number" ? `${f}px` : f), p !== void 0 && (y.height = typeof p == "number" ? `${p}px` : p), s.value && (y.transformOrigin = s.value), y;
    }), u = () => {
      De(() => {
        if (l.value) {
          const f = zR(l.value);
          s.value = e.mousePosition ? `${e.mousePosition.x - f.left}px ${e.mousePosition.y - f.top}px` : "";
        }
      });
    }, d = (f) => {
      e.onVisibleChanged(f);
    };
    return () => {
      var f, p, y, g;
      const {
        prefixCls: v,
        footer: b = (f = o.footer) === null || f === void 0 ? void 0 : f.call(o),
        title: O = (p = o.title) === null || p === void 0 ? void 0 : p.call(o),
        ariaId: C,
        closable: x,
        closeIcon: S = (y = o.closeIcon) === null || y === void 0 ? void 0 : y.call(o),
        onClose: P,
        bodyStyle: $,
        bodyProps: T,
        onMousedown: E,
        onMouseup: M,
        visible: R,
        modalRender: N = o.modalRender,
        destroyOnClose: F,
        motionName: H
      } = e;
      let I;
      b && (I = m("div", {
        class: `${v}-footer`
      }, [b]));
      let A;
      O && (A = m("div", {
        class: `${v}-header`
      }, [m("div", {
        class: `${v}-title`,
        id: C
      }, [O])]));
      let j;
      x && (j = m("button", {
        type: "button",
        onClick: P,
        "aria-label": "Close",
        class: `${v}-close`
      }, [S || m("span", {
        class: `${v}-close-x`
      }, null)]));
      const L = m("div", {
        class: `${v}-content`
      }, [j, A, m("div", z({
        class: `${v}-body`,
        style: $
      }, T), [(g = o.default) === null || g === void 0 ? void 0 : g.call(o)]), I]), D = cr(H);
      return m(Xt, z(z({}, D), {}, {
        onBeforeEnter: u,
        onAfterEnter: () => d(!0),
        onAfterLeave: () => d(!1)
      }), {
        default: () => [R || !F ? en(m("div", z(z({}, r), {}, {
          ref: l,
          key: "dialog-element",
          role: "document",
          style: [c.value, r.style],
          class: [v, r.class],
          onMousedown: E,
          onMouseup: M
        }), [m("div", {
          tabindex: 0,
          ref: i,
          style: HR
        }, [N ? N({
          originVNode: L
        }) : L]), m("div", {
          tabindex: 0,
          ref: a,
          style: BR
        }, null)]), [[pn, R]]) : null]
      });
    };
  }
}), VR = q({
  compatConfig: {
    MODE: 3
  },
  name: "DialogMask",
  props: {
    prefixCls: String,
    visible: Boolean,
    motionName: String,
    maskProps: Object
  },
  setup(e, t) {
    return () => {
      const {
        prefixCls: n,
        visible: o,
        maskProps: r,
        motionName: i
      } = e, a = cr(i);
      return m(Xt, a, {
        default: () => [en(m("div", z({
          class: `${n}-mask`
        }, r), null), [[pn, o]])]
      });
    };
  }
}), cg = q({
  compatConfig: {
    MODE: 3
  },
  name: "VcDialog",
  inheritAttrs: !1,
  props: Ze(h(h({}, Il()), {
    getOpenCount: Function,
    scrollLocker: Object
  }), {
    mask: !0,
    visible: !1,
    keyboard: !0,
    closable: !0,
    maskClosable: !0,
    destroyOnClose: !1,
    prefixCls: "rc-dialog",
    getOpenCount: () => null,
    focusTriggerAfterClose: !0
  }),
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t;
    const r = K(), i = K(), a = K(), l = K(e.visible), s = K(`vcDialogTitle${jR()}`), c = (b) => {
      var O, C;
      if (b)
        Cn(i.value, document.activeElement) || (r.value = document.activeElement, (O = a.value) === null || O === void 0 || O.focus());
      else {
        const x = l.value;
        if (l.value = !1, e.mask && r.value && e.focusTriggerAfterClose) {
          try {
            r.value.focus({
              preventScroll: !0
            });
          } catch {
          }
          r.value = null;
        }
        x && ((C = e.afterClose) === null || C === void 0 || C.call(e));
      }
    }, u = (b) => {
      var O;
      (O = e.onClose) === null || O === void 0 || O.call(e, b);
    }, d = K(!1), f = K(), p = () => {
      clearTimeout(f.value), d.value = !0;
    }, y = () => {
      f.value = setTimeout(() => {
        d.value = !1;
      });
    }, g = (b) => {
      if (!e.maskClosable) return null;
      d.value ? d.value = !1 : i.value === b.target && u(b);
    }, v = (b) => {
      if (e.keyboard && b.keyCode === ue.ESC) {
        b.stopPropagation(), u(b);
        return;
      }
      e.visible && b.keyCode === ue.TAB && a.value.changeActive(!b.shiftKey);
    };
    return ee(() => e.visible, () => {
      e.visible && (l.value = !0);
    }, {
      flush: "post"
    }), Le(() => {
      var b;
      clearTimeout(f.value), (b = e.scrollLocker) === null || b === void 0 || b.unLock();
    }), we(() => {
      var b, O;
      (b = e.scrollLocker) === null || b === void 0 || b.unLock(), l.value && ((O = e.scrollLocker) === null || O === void 0 || O.lock());
    }), () => {
      const {
        prefixCls: b,
        mask: O,
        visible: C,
        maskTransitionName: x,
        maskAnimation: S,
        zIndex: P,
        wrapClassName: $,
        rootClassName: T,
        wrapStyle: E,
        closable: M,
        maskProps: R,
        maskStyle: N,
        transitionName: F,
        animation: H,
        wrapProps: I,
        title: A = o.title
      } = e, {
        style: j,
        class: L
      } = n;
      return m("div", z({
        class: [`${b}-root`, T]
      }, pi(e, {
        data: !0
      })), [m(VR, {
        prefixCls: b,
        visible: O && C,
        motionName: ag(b, x, S),
        style: h({
          zIndex: P
        }, N),
        maskProps: R
      }, null), m("div", z({
        tabIndex: -1,
        onKeydown: v,
        class: ie(`${b}-wrap`, $),
        ref: i,
        onClick: g,
        role: "dialog",
        "aria-labelledby": A ? s.value : null,
        style: h(h({
          zIndex: P
        }, E), {
          display: l.value ? null : "none"
        })
      }, I), [m(_R, z(z({}, _e(e, ["scrollLocker"])), {}, {
        style: j,
        class: L,
        onMousedown: p,
        onMouseup: y,
        ref: a,
        closable: M,
        ariaId: s.value,
        prefixCls: b,
        visible: C,
        onClose: u,
        onVisibleChanged: c,
        motionName: ag(b, F, H)
      }), o)])]);
    };
  }
}), WR = Il(), kR = q({
  compatConfig: {
    MODE: 3
  },
  name: "DialogWrap",
  inheritAttrs: !1,
  props: Ze(WR, {
    visible: !1
  }),
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t;
    const r = Z(e.visible);
    return $u({}, {
      inTriggerContext: !1
    }), ee(() => e.visible, () => {
      e.visible && (r.value = !0);
    }, {
      flush: "post"
    }), () => {
      const {
        visible: i,
        getContainer: a,
        forceRender: l,
        destroyOnClose: s = !1,
        afterClose: c
      } = e;
      let u = h(h(h({}, e), n), {
        ref: "_component",
        key: "dialog"
      });
      return a === !1 ? m(cg, z(z({}, u), {}, {
        getOpenCount: () => 2
      }), o) : !l && s && !r.value ? null : m(b0, {
        autoLock: !0,
        visible: i,
        forceRender: l,
        getContainer: a
      }, {
        default: (d) => (u = h(h(h({}, u), d), {
          afterClose: () => {
            c == null || c(), r.value = !1;
          }
        }), m(cg, u, o))
      });
    };
  }
});
function XR(e) {
  const t = Z(null), n = Be(h({}, e)), o = Z([]), r = (i) => {
    t.value === null && (o.value = [], t.value = Ae(() => {
      let a;
      o.value.forEach((l) => {
        a = h(h({}, a), l);
      }), h(n, a), t.value = null;
    })), o.value.push(i);
  };
  return be(() => {
    t.value && Ae.cancel(t.value);
  }), [n, r];
}
function ug(e, t, n, o) {
  const r = t + n, i = (n - o) / 2;
  if (n > o) {
    if (t > 0)
      return {
        [e]: i
      };
    if (t < 0 && r < o)
      return {
        [e]: -i
      };
  } else if (t < 0 || r > o)
    return {
      [e]: t < 0 ? i : -i
    };
  return {};
}
function KR(e, t, n, o) {
  const {
    width: r,
    height: i
  } = XO();
  let a = null;
  return e <= r && t <= i ? a = {
    x: 0,
    y: 0
  } : (e > r || t > i) && (a = h(h({}, ug("x", n, e, r)), ug("y", o, t, i))), a;
}
var GR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const dg = Symbol("previewGroupContext"), vd = {
  provide: (e) => {
    $e(dg, e);
  },
  inject: () => Ce(dg, {
    isPreviewGroup: K(!1),
    previewUrls: w(() => /* @__PURE__ */ new Map()),
    setPreviewUrls: () => {
    },
    current: Z(null),
    setCurrent: () => {
    },
    setShowPreview: () => {
    },
    setMousePosition: () => {
    },
    registerImage: null,
    rootClassName: ""
  })
}, UR = () => ({
  previewPrefixCls: String,
  preview: {
    type: [Boolean, Object],
    default: !0
  },
  icons: {
    type: Object,
    default: () => ({})
  }
}), Nb = q({
  compatConfig: {
    MODE: 3
  },
  name: "PreviewGroup",
  inheritAttrs: !1,
  props: UR(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = w(() => {
      const S = {
        visible: void 0,
        onVisibleChange: () => {
        },
        getContainer: void 0,
        current: 0
      };
      return typeof e.preview == "object" ? Bb(e.preview, S) : S;
    }), r = Be(/* @__PURE__ */ new Map()), i = Z(), a = w(() => o.value.visible), l = w(() => o.value.getContainer), s = (S, P) => {
      var $, T;
      (T = ($ = o.value).onVisibleChange) === null || T === void 0 || T.call($, S, P);
    }, [c, u] = Mn(!!a.value, {
      value: a,
      onChange: s
    }), d = Z(null), f = w(() => a.value !== void 0), p = w(() => Array.from(r.keys())), y = w(() => p.value[o.value.current]), g = w(() => new Map(Array.from(r).filter((S) => {
      let [, {
        canPreview: P
      }] = S;
      return !!P;
    }).map((S) => {
      let [P, {
        url: $
      }] = S;
      return [P, $];
    }))), v = function(S, P) {
      let $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
      r.set(S, {
        url: P,
        canPreview: $
      });
    }, b = (S) => {
      i.value = S;
    }, O = (S) => {
      d.value = S;
    }, C = function(S, P) {
      let $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
      const T = () => {
        r.delete(S);
      };
      return r.set(S, {
        url: P,
        canPreview: $
      }), T;
    }, x = (S) => {
      S == null || S.stopPropagation(), u(!1), O(null);
    };
    return ee(y, (S) => {
      b(S);
    }, {
      immediate: !0,
      flush: "post"
    }), we(() => {
      c.value && f.value && b(y.value);
    }, {
      flush: "post"
    }), vd.provide({
      isPreviewGroup: K(!0),
      previewUrls: g,
      setPreviewUrls: v,
      current: i,
      setCurrent: b,
      setShowPreview: u,
      setMousePosition: O,
      registerImage: C
    }), () => {
      const S = GR(o.value, []);
      return m(Te, null, [n.default && n.default(), m(jb, z(z({}, S), {}, {
        "ria-hidden": !c.value,
        visible: c.value,
        prefixCls: e.previewPrefixCls,
        onClose: x,
        mousePosition: d.value,
        src: g.value.get(i.value),
        icons: e.icons,
        getContainer: l.value
      }), null)]);
    };
  }
}), kn = {
  x: 0,
  y: 0
}, qR = h(h({}, Il()), {
  src: String,
  alt: String,
  rootClassName: String,
  icons: {
    type: Object,
    default: () => ({})
  }
}), jb = q({
  compatConfig: {
    MODE: 3
  },
  name: "Preview",
  inheritAttrs: !1,
  props: qR,
  emits: ["close", "afterClose"],
  setup(e, t) {
    let {
      emit: n,
      attrs: o
    } = t;
    const {
      rotateLeft: r,
      rotateRight: i,
      zoomIn: a,
      zoomOut: l,
      close: s,
      left: c,
      right: u,
      flipX: d,
      flipY: f
    } = Be(e.icons), p = K(1), y = K(0), g = Be({
      x: 1,
      y: 1
    }), [v, b] = XR(kn), O = () => n("close"), C = K(), x = Be({
      originX: 0,
      originY: 0,
      deltaX: 0,
      deltaY: 0
    }), S = K(!1), P = vd.inject(), {
      previewUrls: $,
      current: T,
      isPreviewGroup: E,
      setCurrent: M
    } = P, R = w(() => $.value.size), N = w(() => Array.from($.value.keys())), F = w(() => N.value.indexOf(T.value)), H = w(() => E.value ? $.value.get(T.value) : e.src), I = w(() => E.value && R.value > 1), A = K({
      wheelDirection: 0
    }), j = () => {
      p.value = 1, y.value = 0, g.x = 1, g.y = 1, b(kn), n("afterClose");
    }, L = (le) => {
      le ? p.value += 0.5 : p.value++, b(kn);
    }, D = (le) => {
      p.value > 1 && (le ? p.value -= 0.5 : p.value--), b(kn);
    }, _ = () => {
      y.value += 90;
    }, V = () => {
      y.value -= 90;
    }, J = () => {
      g.x = -g.x;
    }, oe = () => {
      g.y = -g.y;
    }, re = (le) => {
      le.preventDefault(), le.stopPropagation(), F.value > 0 && M(N.value[F.value - 1]);
    }, Q = (le) => {
      le.preventDefault(), le.stopPropagation(), F.value < R.value - 1 && M(N.value[F.value + 1]);
    }, U = ie({
      [`${e.prefixCls}-moving`]: S.value
    }), k = `${e.prefixCls}-operations-operation`, ne = `${e.prefixCls}-operations-icon`, X = [{
      icon: s,
      onClick: O,
      type: "close"
    }, {
      icon: a,
      onClick: () => L(),
      type: "zoomIn"
    }, {
      icon: l,
      onClick: () => D(),
      type: "zoomOut",
      disabled: w(() => p.value === 1)
    }, {
      icon: i,
      onClick: _,
      type: "rotateRight"
    }, {
      icon: r,
      onClick: V,
      type: "rotateLeft"
    }, {
      icon: d,
      onClick: J,
      type: "flipX"
    }, {
      icon: f,
      onClick: oe,
      type: "flipY"
    }], B = () => {
      if (e.visible && S.value) {
        const le = C.value.offsetWidth * p.value, me = C.value.offsetHeight * p.value, {
          left: ce,
          top: he
        } = S0(C.value), je = y.value % 180 !== 0;
        S.value = !1;
        const ke = KR(je ? me : le, je ? le : me, ce, he);
        ke && b(h({}, ke));
      }
    }, W = (le) => {
      le.button === 0 && (le.preventDefault(), le.stopPropagation(), x.deltaX = le.pageX - v.x, x.deltaY = le.pageY - v.y, x.originX = v.x, x.originY = v.y, S.value = !0);
    }, Y = (le) => {
      e.visible && S.value && b({
        x: le.pageX - x.deltaX,
        y: le.pageY - x.deltaY
      });
    }, te = (le) => {
      if (!e.visible) return;
      le.preventDefault();
      const me = le.deltaY;
      A.value = {
        wheelDirection: me
      };
    }, ae = (le) => {
      !e.visible || !I.value || (le.preventDefault(), le.keyCode === ue.LEFT ? F.value > 0 && M(N.value[F.value - 1]) : le.keyCode === ue.RIGHT && F.value < R.value - 1 && M(N.value[F.value + 1]));
    }, fe = () => {
      e.visible && (p.value !== 1 && (p.value = 1), (v.x !== kn.x || v.y !== kn.y) && b(kn));
    };
    let ve = () => {
    };
    return be(() => {
      ee([() => e.visible, S], () => {
        ve();
        let le, me;
        const ce = Bt(window, "mouseup", B, !1), he = Bt(window, "mousemove", Y, !1), je = Bt(window, "wheel", te, {
          passive: !1
        }), ke = Bt(window, "keydown", ae, !1);
        try {
          window.top !== window.self && (le = Bt(window.top, "mouseup", B, !1), me = Bt(window.top, "mousemove", Y, !1));
        } catch {
        }
        ve = () => {
          ce.remove(), he.remove(), je.remove(), ke.remove(), le && le.remove(), me && me.remove();
        };
      }, {
        flush: "post",
        immediate: !0
      }), ee([A], () => {
        const {
          wheelDirection: le
        } = A.value;
        le > 0 ? D(!0) : le < 0 && L(!0);
      });
    }), Fn(() => {
      ve();
    }), () => {
      const {
        visible: le,
        prefixCls: me,
        rootClassName: ce
      } = e;
      return m(kR, z(z({}, o), {}, {
        transitionName: e.transitionName,
        maskTransitionName: e.maskTransitionName,
        closable: !1,
        keyboard: !0,
        prefixCls: me,
        onClose: O,
        afterClose: j,
        visible: le,
        wrapClassName: U,
        rootClassName: ce,
        getContainer: e.getContainer
      }), {
        default: () => [m("div", {
          class: [`${e.prefixCls}-operations-wrapper`, ce]
        }, [m("ul", {
          class: `${e.prefixCls}-operations`
        }, [X.map((he) => {
          let {
            icon: je,
            onClick: ke,
            type: nn,
            disabled: mt
          } = he;
          return m("li", {
            class: ie(k, {
              [`${e.prefixCls}-operations-operation-disabled`]: mt && (mt == null ? void 0 : mt.value)
            }),
            onClick: ke,
            key: nn
          }, [si(je, {
            class: ne
          })]);
        })])]), m("div", {
          class: `${e.prefixCls}-img-wrapper`,
          style: {
            transform: `translate3d(${v.x}px, ${v.y}px, 0)`
          }
        }, [m("img", {
          onMousedown: W,
          onDblclick: fe,
          ref: C,
          class: `${e.prefixCls}-img`,
          src: H.value,
          alt: e.alt,
          style: {
            transform: `scale3d(${g.x * p.value}, ${g.y * p.value}, 1) rotate(${y.value}deg)`
          }
        }, null)]), I.value && m("div", {
          class: ie(`${e.prefixCls}-switch-left`, {
            [`${e.prefixCls}-switch-left-disabled`]: F.value <= 0
          }),
          onClick: re
        }, [c]), I.value && m("div", {
          class: ie(`${e.prefixCls}-switch-right`, {
            [`${e.prefixCls}-switch-right-disabled`]: F.value >= R.value - 1
          }),
          onClick: Q
        }, [u])]
      });
    };
  }
});
var YR = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const zb = () => ({
  src: String,
  wrapperClassName: String,
  wrapperStyle: {
    type: Object,
    default: void 0
  },
  rootClassName: String,
  prefixCls: String,
  previewPrefixCls: String,
  width: [Number, String],
  height: [Number, String],
  previewMask: {
    type: [Boolean, Function],
    default: void 0
  },
  placeholder: G.any,
  fallback: String,
  preview: {
    type: [Boolean, Object],
    default: !0
  },
  onClick: {
    type: Function
  },
  onError: {
    type: Function
  }
}), Bb = (e, t) => {
  const n = h({}, e);
  return Object.keys(t).forEach((o) => {
    e[o] === void 0 && (n[o] = t[o]);
  }), n;
};
let ZR = 0;
const Hb = q({
  compatConfig: {
    MODE: 3
  },
  name: "VcImage",
  inheritAttrs: !1,
  props: zb(),
  emits: ["click", "error"],
  setup(e, t) {
    let {
      attrs: n,
      slots: o,
      emit: r
    } = t;
    const i = w(() => e.prefixCls), a = w(() => `${i.value}-preview`), l = w(() => {
      const L = {
        visible: void 0,
        onVisibleChange: () => {
        },
        getContainer: void 0
      };
      return typeof e.preview == "object" ? Bb(e.preview, L) : L;
    }), s = w(() => {
      var L;
      return (L = l.value.src) !== null && L !== void 0 ? L : e.src;
    }), c = w(() => e.placeholder && e.placeholder !== !0 || o.placeholder), u = w(() => l.value.visible), d = w(() => l.value.getContainer), f = w(() => u.value !== void 0), p = (L, D) => {
      var _, V;
      (V = (_ = l.value).onVisibleChange) === null || V === void 0 || V.call(_, L, D);
    }, [y, g] = Mn(!!u.value, {
      value: u,
      onChange: p
    }), v = Z(c.value ? "loading" : "normal");
    ee(() => e.src, () => {
      v.value = c.value ? "loading" : "normal";
    });
    const b = Z(null), O = w(() => v.value === "error"), C = vd.inject(), {
      isPreviewGroup: x,
      setCurrent: S,
      setShowPreview: P,
      setMousePosition: $,
      registerImage: T
    } = C, E = Z(ZR++), M = w(() => e.preview && !O.value), R = () => {
      v.value = "normal";
    }, N = (L) => {
      v.value = "error", r("error", L);
    }, F = (L) => {
      if (!f.value) {
        const {
          left: D,
          top: _
        } = S0(L.target);
        x.value ? (S(E.value), $({
          x: D,
          y: _
        })) : b.value = {
          x: D,
          y: _
        };
      }
      x.value ? P(!0) : g(!0), r("click", L);
    }, H = () => {
      g(!1), f.value || (b.value = null);
    }, I = Z(null);
    ee(() => I, () => {
      v.value === "loading" && I.value.complete && (I.value.naturalWidth || I.value.naturalHeight) && R();
    });
    let A = () => {
    };
    be(() => {
      ee([s, M], () => {
        if (A(), !x.value)
          return () => {
          };
        A = T(E.value, s.value, M.value), M.value || A();
      }, {
        flush: "post",
        immediate: !0
      });
    }), Fn(() => {
      A();
    });
    const j = (L) => U3(L) ? L + "px" : L;
    return () => {
      const {
        prefixCls: L,
        wrapperClassName: D,
        fallback: _,
        src: V,
        placeholder: J,
        wrapperStyle: oe,
        rootClassName: re,
        width: Q,
        height: U,
        crossorigin: k,
        decoding: ne,
        alt: X,
        sizes: B,
        srcset: W,
        usemap: Y,
        class: te,
        style: ae
      } = h(h({}, e), n), fe = l.value, {
        icons: ve,
        maskClassName: le
      } = fe, me = YR(fe, ["icons", "maskClassName"]), ce = ie(L, D, re, {
        [`${L}-error`]: O.value
      }), he = O.value && _ ? _ : s.value, je = {
        crossorigin: k,
        decoding: ne,
        alt: X,
        sizes: B,
        srcset: W,
        usemap: Y,
        width: Q,
        height: U,
        class: ie(`${L}-img`, {
          [`${L}-img-placeholder`]: J === !0
        }, te),
        style: h({
          height: j(U)
        }, ae)
      };
      return m(Te, null, [m("div", {
        class: ce,
        onClick: M.value ? F : (ke) => {
          r("click", ke);
        },
        style: h({
          width: j(Q),
          height: j(U)
        }, oe)
      }, [m("img", z(z(z({}, je), O.value && _ ? {
        src: _
      } : {
        onLoad: R,
        onError: N,
        src: V
      }), {}, {
        ref: I
      }), null), v.value === "loading" && m("div", {
        "aria-hidden": "true",
        class: `${L}-placeholder`
      }, [J || o.placeholder && o.placeholder()]), o.previewMask && M.value && m("div", {
        class: [`${L}-mask`, le]
      }, [o.previewMask()])]), !x.value && M.value && m(jb, z(z({}, me), {}, {
        "aria-hidden": !y.value,
        visible: y.value,
        prefixCls: a.value,
        onClose: H,
        mousePosition: b.value,
        src: he,
        alt: X,
        getContainer: d.value,
        icons: ve,
        rootClassName: re
      }), null)]);
    };
  }
});
Hb.PreviewGroup = Nb;
var QR = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" } }, { tag: "path", attrs: { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" } }] }, name: "rotate-left", theme: "outlined" };
function fg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      JR(e, r, n[r]);
    });
  }
  return e;
}
function JR(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var hd = function(t, n) {
  var o = fg({}, t, n.attrs);
  return m(de, fg({}, o, {
    icon: QR
  }), null);
};
hd.displayName = "RotateLeftOutlined";
hd.inheritAttrs = !1;
var e7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" } }, { tag: "path", attrs: { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" } }] }, name: "rotate-right", theme: "outlined" };
function pg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      t7(e, r, n[r]);
    });
  }
  return e;
}
function t7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var yd = function(t, n) {
  var o = pg({}, t, n.attrs);
  return m(de, pg({}, o, {
    icon: e7
  }), null);
};
yd.displayName = "RotateRightOutlined";
yd.inheritAttrs = !1;
var n7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-in", theme: "outlined" };
function mg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      o7(e, r, n[r]);
    });
  }
  return e;
}
function o7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var bd = function(t, n) {
  var o = mg({}, t, n.attrs);
  return m(de, mg({}, o, {
    icon: n7
  }), null);
};
bd.displayName = "ZoomInOutlined";
bd.inheritAttrs = !1;
var r7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-out", theme: "outlined" };
function gg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      i7(e, r, n[r]);
    });
  }
  return e;
}
function i7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Sd = function(t, n) {
  var o = gg({}, t, n.attrs);
  return m(de, gg({}, o, {
    icon: r7
  }), null);
};
Sd.displayName = "ZoomOutOutlined";
Sd.inheritAttrs = !1;
var a7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" };
function vg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      l7(e, r, n[r]);
    });
  }
  return e;
}
function l7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Ha = function(t, n) {
  var o = vg({}, t, n.attrs);
  return m(de, vg({}, o, {
    icon: a7
  }), null);
};
Ha.displayName = "SwapOutlined";
Ha.inheritAttrs = !1;
function hg(e) {
  return {
    position: e,
    top: 0,
    insetInlineEnd: 0,
    bottom: 0,
    insetInlineStart: 0
  };
}
const s7 = (e) => {
  const {
    componentCls: t
  } = e;
  return [{
    [`${t}-root`]: {
      [`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]: {
        // reset scale avoid mousePosition bug
        transform: "none",
        opacity: 0,
        animationDuration: e.motionDurationSlow,
        // https://github.com/ant-design/ant-design/issues/11777
        userSelect: "none"
      },
      [`${t}${e.antCls}-zoom-leave ${t}-content`]: {
        pointerEvents: "none"
      },
      [`${t}-mask`]: h(h({}, hg("fixed")), {
        zIndex: e.zIndexPopupBase,
        height: "100%",
        backgroundColor: e.colorBgMask,
        [`${t}-hidden`]: {
          display: "none"
        }
      }),
      [`${t}-wrap`]: h(h({}, hg("fixed")), {
        overflow: "auto",
        outline: 0,
        WebkitOverflowScrolling: "touch"
      })
    }
  }, {
    [`${t}-root`]: sy(e)
  }];
}, Rc = (e) => ({
  position: e || "absolute",
  inset: 0
}), c7 = (e) => {
  const {
    iconCls: t,
    motionDurationSlow: n,
    paddingXXS: o,
    marginXXS: r,
    prefixCls: i
  } = e;
  return {
    position: "absolute",
    inset: 0,
    display: "flex",
    alignItems: "center",
    justifyContent: "center",
    color: "#fff",
    background: new Fe("#000").setAlpha(0.5).toRgbString(),
    cursor: "pointer",
    opacity: 0,
    transition: `opacity ${n}`,
    [`.${i}-mask-info`]: h(h({}, En), {
      padding: `0 ${o}px`,
      [t]: {
        marginInlineEnd: r,
        svg: {
          verticalAlign: "baseline"
        }
      }
    })
  };
}, u7 = (e) => {
  const {
    previewCls: t,
    modalMaskBg: n,
    paddingSM: o,
    previewOperationColorDisabled: r,
    motionDurationSlow: i
  } = e, a = new Fe(n).setAlpha(0.1), l = a.clone().setAlpha(0.2);
  return {
    [`${t}-operations`]: h(h({}, Ue(e)), {
      display: "flex",
      flexDirection: "row-reverse",
      alignItems: "center",
      color: e.previewOperationColor,
      listStyle: "none",
      background: a.toRgbString(),
      pointerEvents: "auto",
      "&-operation": {
        marginInlineStart: o,
        padding: o,
        cursor: "pointer",
        transition: `all ${i}`,
        userSelect: "none",
        "&:hover": {
          background: l.toRgbString()
        },
        "&-disabled": {
          color: r,
          pointerEvents: "none"
        },
        "&:last-of-type": {
          marginInlineStart: 0
        }
      },
      "&-progress": {
        position: "absolute",
        left: {
          _skip_check_: !0,
          value: "50%"
        },
        transform: "translateX(-50%)"
      },
      "&-icon": {
        fontSize: e.previewOperationSize
      }
    })
  };
}, d7 = (e) => {
  const {
    modalMaskBg: t,
    iconCls: n,
    previewOperationColorDisabled: o,
    previewCls: r,
    zIndexPopup: i,
    motionDurationSlow: a
  } = e, l = new Fe(t).setAlpha(0.1), s = l.clone().setAlpha(0.2);
  return {
    [`${r}-switch-left, ${r}-switch-right`]: {
      position: "fixed",
      insetBlockStart: "50%",
      zIndex: i + 1,
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      width: e.imagePreviewSwitchSize,
      height: e.imagePreviewSwitchSize,
      marginTop: -e.imagePreviewSwitchSize / 2,
      color: e.previewOperationColor,
      background: l.toRgbString(),
      borderRadius: "50%",
      transform: "translateY(-50%)",
      cursor: "pointer",
      transition: `all ${a}`,
      pointerEvents: "auto",
      userSelect: "none",
      "&:hover": {
        background: s.toRgbString()
      },
      "&-disabled": {
        "&, &:hover": {
          color: o,
          background: "transparent",
          cursor: "not-allowed",
          [`> ${n}`]: {
            cursor: "not-allowed"
          }
        }
      },
      [`> ${n}`]: {
        fontSize: e.previewOperationSize
      }
    },
    [`${r}-switch-left`]: {
      insetInlineStart: e.marginSM
    },
    [`${r}-switch-right`]: {
      insetInlineEnd: e.marginSM
    }
  };
}, f7 = (e) => {
  const {
    motionEaseOut: t,
    previewCls: n,
    motionDurationSlow: o,
    componentCls: r
  } = e;
  return [
    {
      [`${r}-preview-root`]: {
        [n]: {
          height: "100%",
          textAlign: "center",
          pointerEvents: "none"
        },
        [`${n}-body`]: h(h({}, Rc()), {
          overflow: "hidden"
        }),
        [`${n}-img`]: {
          maxWidth: "100%",
          maxHeight: "100%",
          verticalAlign: "middle",
          transform: "scale3d(1, 1, 1)",
          cursor: "grab",
          transition: `transform ${o} ${t} 0s`,
          userSelect: "none",
          pointerEvents: "auto",
          "&-wrapper": h(h({}, Rc()), {
            transition: `transform ${o} ${t} 0s`,
            // https://github.com/ant-design/ant-design/issues/39913
            // TailwindCSS will reset img default style.
            // Let's set back.
            display: "flex",
            justifyContent: "center",
            alignItems: "center",
            "&::before": {
              display: "inline-block",
              width: 1,
              height: "50%",
              marginInlineEnd: -1,
              content: '""'
            }
          })
        },
        [`${n}-moving`]: {
          [`${n}-preview-img`]: {
            cursor: "grabbing",
            "&-wrapper": {
              transitionDuration: "0s"
            }
          }
        }
      }
    },
    // Override
    {
      [`${r}-preview-root`]: {
        [`${n}-wrap`]: {
          zIndex: e.zIndexPopup
        }
      }
    },
    // Preview operations & switch
    {
      [`${r}-preview-operations-wrapper`]: {
        position: "fixed",
        insetBlockStart: 0,
        insetInlineEnd: 0,
        zIndex: e.zIndexPopup + 1,
        width: "100%"
      },
      "&": [u7(e), d7(e)]
    }
  ];
}, p7 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    // ============================== image ==============================
    [t]: {
      position: "relative",
      display: "inline-block",
      [`${t}-img`]: {
        width: "100%",
        height: "auto",
        verticalAlign: "middle"
      },
      [`${t}-img-placeholder`]: {
        backgroundColor: e.colorBgContainerDisabled,
        backgroundImage: "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",
        backgroundRepeat: "no-repeat",
        backgroundPosition: "center center",
        backgroundSize: "30%"
      },
      [`${t}-mask`]: h({}, c7(e)),
      [`${t}-mask:hover`]: {
        opacity: 1
      },
      [`${t}-placeholder`]: h({}, Rc())
    }
  };
}, m7 = (e) => {
  const {
    previewCls: t
  } = e;
  return {
    [`${t}-root`]: yi(e, "zoom"),
    "&": sy(e, !0)
  };
}, _b = We("Image", (e) => {
  const t = `${e.componentCls}-preview`, n = Me(e, {
    previewCls: t,
    modalMaskBg: new Fe("#000").setAlpha(0.45).toRgbString(),
    imagePreviewSwitchSize: e.controlHeightLG
  });
  return [p7(n), f7(n), s7(Me(n, {
    componentCls: t
  })), m7(n)];
}, (e) => ({
  zIndexPopup: e.zIndexPopupBase + 80,
  previewOperationColor: new Fe(e.colorTextLightSolid).toRgbString(),
  previewOperationColorDisabled: new Fe(e.colorTextLightSolid).setAlpha(0.25).toRgbString(),
  previewOperationSize: e.fontSizeIcon * 1.5
  // FIXME: fontSizeIconLG
})), Vb = {
  rotateLeft: m(hd, null, null),
  rotateRight: m(yd, null, null),
  zoomIn: m(bd, null, null),
  zoomOut: m(Sd, null, null),
  close: m(hn, null, null),
  left: m(dr, null, null),
  right: m(Dn, null, null),
  flipX: m(Ha, null, null),
  flipY: m(Ha, {
    rotate: 90
  }, null)
}, g7 = () => ({
  previewPrefixCls: String,
  preview: et()
}), v7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "AImagePreviewGroup",
  inheritAttrs: !1,
  props: g7(),
  setup(e, t) {
    let {
      attrs: n,
      slots: o
    } = t;
    const {
      prefixCls: r,
      rootPrefixCls: i
    } = Ee("image", e), a = w(() => `${r.value}-preview`), [l, s] = _b(r), c = w(() => {
      const {
        preview: u
      } = e;
      if (u === !1)
        return u;
      const d = typeof u == "object" ? u : {};
      return h(h({}, d), {
        rootClassName: s.value,
        transitionName: An(i.value, "zoom", d.transitionName),
        maskTransitionName: An(i.value, "fade", d.maskTransitionName)
      });
    });
    return () => l(m(Nb, z(z({}, h(h({}, n), e)), {}, {
      preview: c.value,
      icons: Vb,
      previewPrefixCls: a.value
    }), o));
  }
}), qn = q({
  name: "AImage",
  inheritAttrs: !1,
  props: zb(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      rootPrefixCls: i,
      configProvider: a
    } = Ee("image", e), [l, s] = _b(r), c = w(() => {
      const {
        preview: u
      } = e;
      if (u === !1)
        return u;
      const d = typeof u == "object" ? u : {};
      return h(h({
        icons: Vb
      }, d), {
        transitionName: An(i.value, "zoom", d.transitionName),
        maskTransitionName: An(i.value, "fade", d.maskTransitionName)
      });
    });
    return () => {
      var u, d;
      const f = ((d = (u = a.locale) === null || u === void 0 ? void 0 : u.value) === null || d === void 0 ? void 0 : d.Image) || cn.Image, p = () => m("div", {
        class: `${r.value}-mask-info`
      }, [m(Ci, null, null), f == null ? void 0 : f.preview]), {
        previewMask: y = n.previewMask || p
      } = e;
      return l(m(Hb, z(z({}, h(h(h({}, o), e), {
        prefixCls: r.value
      })), {}, {
        preview: c.value,
        rootClassName: ie(e.rootClassName, s.value)
      }), h(h({}, n), {
        previewMask: typeof y == "function" ? y : null
      })));
    };
  }
});
qn.PreviewGroup = v7;
qn.install = function(e) {
  return e.component(qn.name, qn), e.component(qn.PreviewGroup.name, qn.PreviewGroup), e;
};
var h7 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const y7 = {
  border: 0,
  background: "transparent",
  padding: 0,
  lineHeight: "inherit",
  display: "inline-block"
}, yg = q({
  compatConfig: {
    MODE: 3
  },
  name: "TransButton",
  inheritAttrs: !1,
  props: {
    noStyle: {
      type: Boolean,
      default: void 0
    },
    onClick: Function,
    disabled: {
      type: Boolean,
      default: void 0
    },
    autofocus: {
      type: Boolean,
      default: void 0
    }
  },
  setup(e, t) {
    let {
      slots: n,
      emit: o,
      attrs: r,
      expose: i
    } = t;
    const a = K(), l = (f) => {
      const {
        keyCode: p
      } = f;
      p === ue.ENTER && f.preventDefault();
    }, s = (f) => {
      const {
        keyCode: p
      } = f;
      p === ue.ENTER && o("click", f);
    }, c = (f) => {
      o("click", f);
    }, u = () => {
      a.value && a.value.focus();
    }, d = () => {
      a.value && a.value.blur();
    };
    return be(() => {
      e.autofocus && u();
    }), i({
      focus: u,
      blur: d
    }), () => {
      var f;
      const {
        noStyle: p,
        disabled: y
      } = e, g = h7(e, ["noStyle", "disabled"]);
      let v = {};
      return p || (v = h({}, y7)), y && (v.pointerEvents = "none"), m("div", z(z(z({
        role: "button",
        tabindex: 0,
        ref: a
      }, g), r), {}, {
        onClick: c,
        onKeydown: l,
        onKeyup: s,
        style: h(h({}, v), r.style || {})
      }), [(f = n.default) === null || f === void 0 ? void 0 : f.call(n)]);
    };
  }
}), b7 = ["normal", "exception", "active", "success"], Tl = () => ({
  prefixCls: String,
  type: Xe(),
  percent: Number,
  format: ge(),
  status: Xe(),
  showInfo: Ie(),
  strokeWidth: Number,
  strokeLinecap: Xe(),
  strokeColor: et(),
  trailColor: String,
  /** @deprecated Use `size` instead */
  width: Number,
  success: xe(),
  gapDegree: Number,
  gapPosition: Xe(),
  size: it([String, Number, Array]),
  steps: Number,
  /** @deprecated Use `success` instead */
  successPercent: Number,
  title: String,
  progressStatus: Xe()
});
function io(e) {
  return !e || e < 0 ? 0 : e > 100 ? 100 : e;
}
function _a(e) {
  let {
    success: t,
    successPercent: n
  } = e, o = n;
  return t && "progress" in t && (Tt(!1, "Progress", "`success.progress` is deprecated. Please use `success.percent` instead."), o = t.progress), t && "percent" in t && (o = t.percent), o;
}
function S7(e) {
  let {
    percent: t,
    success: n,
    successPercent: o
  } = e;
  const r = io(_a({
    success: n,
    successPercent: o
  }));
  return [r, io(io(t) - r)];
}
function C7(e) {
  let {
    success: t = {},
    strokeColor: n
  } = e;
  const {
    strokeColor: o
  } = t;
  return [o || Bo.green, n || null];
}
const El = (e, t, n) => {
  var o, r, i, a;
  let l = -1, s = -1;
  if (t === "step") {
    const c = n.steps, u = n.strokeWidth;
    typeof e == "string" || typeof e > "u" ? (l = e === "small" ? 2 : 14, s = u ?? 8) : typeof e == "number" ? [l, s] = [e, e] : [l = 14, s = 8] = e, l *= c;
  } else if (t === "line") {
    const c = n == null ? void 0 : n.strokeWidth;
    typeof e == "string" || typeof e > "u" ? s = c || (e === "small" ? 6 : 8) : typeof e == "number" ? [l, s] = [e, e] : [l = -1, s = 8] = e;
  } else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, s] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, s] = [e, e] : (l = (r = (o = e[0]) !== null && o !== void 0 ? o : e[1]) !== null && r !== void 0 ? r : 120, s = (a = (i = e[0]) !== null && i !== void 0 ? i : e[1]) !== null && a !== void 0 ? a : 120));
  return {
    width: l,
    height: s
  };
};
var $7 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const w7 = () => h(h({}, Tl()), {
  strokeColor: et(),
  direction: Xe()
}), x7 = (e) => {
  let t = [];
  return Object.keys(e).forEach((n) => {
    const o = parseFloat(n.replace(/%/g, ""));
    isNaN(o) || t.push({
      key: o,
      value: e[n]
    });
  }), t = t.sort((n, o) => n.key - o.key), t.map((n) => {
    let {
      key: o,
      value: r
    } = n;
    return `${r} ${o}%`;
  }).join(", ");
}, O7 = (e, t) => {
  const {
    from: n = Bo.blue,
    to: o = Bo.blue,
    direction: r = t === "rtl" ? "to left" : "to right"
  } = e, i = $7(e, ["from", "to", "direction"]);
  if (Object.keys(i).length !== 0) {
    const a = x7(i);
    return {
      backgroundImage: `linear-gradient(${r}, ${a})`
    };
  }
  return {
    backgroundImage: `linear-gradient(${r}, ${n}, ${o})`
  };
}, P7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "ProgressLine",
  inheritAttrs: !1,
  props: w7(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = w(() => {
      const {
        strokeColor: p,
        direction: y
      } = e;
      return p && typeof p != "string" ? O7(p, y) : {
        backgroundColor: p
      };
    }), i = w(() => e.strokeLinecap === "square" || e.strokeLinecap === "butt" ? 0 : void 0), a = w(() => e.trailColor ? {
      backgroundColor: e.trailColor
    } : void 0), l = w(() => {
      var p;
      return (p = e.size) !== null && p !== void 0 ? p : [-1, e.strokeWidth || (e.size === "small" ? 6 : 8)];
    }), s = w(() => El(l.value, "line", {
      strokeWidth: e.strokeWidth
    })), c = w(() => {
      const {
        percent: p
      } = e;
      return h({
        width: `${io(p)}%`,
        height: `${s.value.height}px`,
        borderRadius: i.value
      }, r.value);
    }), u = w(() => _a(e)), d = w(() => {
      const {
        success: p
      } = e;
      return {
        width: `${io(u.value)}%`,
        height: `${s.value.height}px`,
        borderRadius: i.value,
        backgroundColor: p == null ? void 0 : p.strokeColor
      };
    }), f = {
      width: s.value.width < 0 ? "100%" : s.value.width,
      height: `${s.value.height}px`
    };
    return () => {
      var p;
      return m(Te, null, [m("div", z(z({}, o), {}, {
        class: [`${e.prefixCls}-outer`, o.class],
        style: [o.style, f]
      }), [m("div", {
        class: `${e.prefixCls}-inner`,
        style: a.value
      }, [m("div", {
        class: `${e.prefixCls}-bg`,
        style: c.value
      }, null), u.value !== void 0 ? m("div", {
        class: `${e.prefixCls}-success-bg`,
        style: d.value
      }, null) : null])]), (p = n.default) === null || p === void 0 ? void 0 : p.call(n)]);
    };
  }
}), Wb = {
  percent: 0,
  prefixCls: "vc-progress",
  strokeColor: "#2db7f5",
  strokeLinecap: "round",
  strokeWidth: 1,
  trailColor: "#D9D9D9",
  trailWidth: 1
}, kb = (e) => {
  const t = Z(null);
  return po(() => {
    const n = Date.now();
    let o = !1;
    e.value.forEach((r) => {
      const i = (r == null ? void 0 : r.$el) || r;
      if (!i)
        return;
      o = !0;
      const a = i.style;
      a.transitionDuration = ".3s, .3s, .3s, .06s", t.value && n - t.value < 100 && (a.transitionDuration = "0s, 0s");
    }), o && (t.value = Date.now());
  }), e;
}, Xb = {
  gapDegree: Number,
  gapPosition: {
    type: String
  },
  percent: {
    type: [Array, Number]
  },
  prefixCls: String,
  strokeColor: {
    type: [Object, String, Array]
  },
  strokeLinecap: {
    type: String
  },
  strokeWidth: Number,
  trailColor: String,
  trailWidth: Number,
  transition: String
};
var I7 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
q({
  compatConfig: {
    MODE: 3
  },
  name: "ProgressLine",
  props: Ze(Xb, Wb),
  setup(e) {
    const t = w(() => {
      const {
        percent: d
      } = e;
      return Array.isArray(d) ? d : [d];
    }), n = w(() => {
      const {
        prefixCls: d,
        strokeLinecap: f,
        strokeWidth: p,
        transition: y
      } = e;
      let g = 0;
      return t.value.map((v, b) => {
        let O = 1;
        switch (f) {
          case "round":
            O = 1 - p / 100;
            break;
          case "square":
            O = 1 - p / 2 / 100;
            break;
          default:
            O = 1;
            break;
        }
        const C = {
          strokeDasharray: `${v * O}px, 100px`,
          strokeDashoffset: `-${g}px`,
          transition: y || "stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"
        }, x = o.value[b] || o.value[o.value.length - 1];
        return g += v, {
          key: b,
          d: s.value,
          "stroke-linecap": f,
          stroke: x,
          "stroke-width": p,
          "fill-opacity": "0",
          class: `${d}-line-path`,
          style: C
        };
      });
    }), o = w(() => {
      const {
        strokeColor: d
      } = e;
      return Array.isArray(d) ? d : [d];
    }), [r, i] = Vy();
    kb(i);
    const a = w(() => e.strokeWidth / 2), l = w(() => 100 - e.strokeWidth / 2), s = w(() => `M ${e.strokeLinecap === "round" ? a.value : 0},${a.value}
    L ${e.strokeLinecap === "round" ? l.value : 100},${a.value}`), c = w(() => `0 0 100 ${e.strokeWidth}`), u = w(() => ({
      d: s.value,
      "stroke-linecap": e.strokeLinecap,
      stroke: e.trailColor,
      "stroke-width": e.trailWidth || e.strokeWidth,
      "fill-opacity": "0",
      class: `${e.prefixCls}-line-trail`
    }));
    return () => {
      const {
        percent: d,
        prefixCls: f,
        strokeColor: p,
        strokeLinecap: y,
        strokeWidth: g,
        trailColor: v,
        trailWidth: b,
        transition: O
      } = e, C = I7(e, ["percent", "prefixCls", "strokeColor", "strokeLinecap", "strokeWidth", "trailColor", "trailWidth", "transition"]);
      return delete C.gapPosition, m("svg", z({
        class: `${f}-line`,
        viewBox: c.value,
        preserveAspectRatio: "none"
      }, C), [m("path", u.value, null), n.value.map((x, S) => m("path", z({
        ref: r(S)
      }, x), null))]);
    };
  }
});
var T7 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
let bg = 0;
function Sg(e) {
  return +e.replace("%", "");
}
function Cg(e) {
  return Array.isArray(e) ? e : [e];
}
function $g(e, t, n, o) {
  let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, i = arguments.length > 5 ? arguments[5] : void 0;
  const a = 50 - o / 2;
  let l = 0, s = -a, c = 0, u = -2 * a;
  switch (i) {
    case "left":
      l = -a, s = 0, c = 2 * a, u = 0;
      break;
    case "right":
      l = a, s = 0, c = -2 * a, u = 0;
      break;
    case "bottom":
      s = a, u = 2 * a;
      break;
  }
  const d = `M 50,50 m ${l},${s}
   a ${a},${a} 0 1 1 ${c},${-u}
   a ${a},${a} 0 1 1 ${-c},${u}`, f = Math.PI * 2 * a, p = {
    stroke: n,
    strokeDasharray: `${t / 100 * (f - r)}px ${f}px`,
    strokeDashoffset: `-${r / 2 + e / 100 * (f - r)}px`,
    transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"
    // eslint-disable-line
  };
  return {
    pathString: d,
    pathStyle: p
  };
}
const E7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "VCCircle",
  props: Ze(Xb, Wb),
  setup(e) {
    bg += 1;
    const t = Z(bg), n = w(() => Cg(e.percent)), o = w(() => Cg(e.strokeColor)), [r, i] = Vy();
    kb(i);
    const a = () => {
      const {
        prefixCls: l,
        strokeWidth: s,
        strokeLinecap: c,
        gapDegree: u,
        gapPosition: d
      } = e;
      let f = 0;
      return n.value.map((p, y) => {
        const g = o.value[y] || o.value[o.value.length - 1], v = Object.prototype.toString.call(g) === "[object Object]" ? `url(#${l}-gradient-${t.value})` : "", {
          pathString: b,
          pathStyle: O
        } = $g(f, p, g, s, u, d);
        f += p;
        const C = {
          key: y,
          d: b,
          stroke: v,
          "stroke-linecap": c,
          "stroke-width": s,
          opacity: p === 0 ? 0 : 1,
          "fill-opacity": "0",
          class: `${l}-circle-path`,
          style: O
        };
        return m("path", z({
          ref: r(y)
        }, C), null);
      });
    };
    return () => {
      const {
        prefixCls: l,
        strokeWidth: s,
        trailWidth: c,
        gapDegree: u,
        gapPosition: d,
        trailColor: f,
        strokeLinecap: p,
        strokeColor: y
      } = e, g = T7(e, ["prefixCls", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "strokeColor"]), {
        pathString: v,
        pathStyle: b
      } = $g(0, 100, f, s, u, d);
      delete g.percent;
      const O = o.value.find((x) => Object.prototype.toString.call(x) === "[object Object]"), C = {
        d: v,
        stroke: f,
        "stroke-linecap": p,
        "stroke-width": c || s,
        "fill-opacity": "0",
        class: `${l}-circle-trail`,
        style: b
      };
      return m("svg", z({
        class: `${l}-circle`,
        viewBox: "0 0 100 100"
      }, g), [O && m("defs", null, [m("linearGradient", {
        id: `${l}-gradient-${t.value}`,
        x1: "100%",
        y1: "0%",
        x2: "0%",
        y2: "0%"
      }, [Object.keys(O).sort((x, S) => Sg(x) - Sg(S)).map((x, S) => m("stop", {
        key: S,
        offset: x,
        "stop-color": O[x]
      }, null))])]), m("path", C, null), a().reverse()]);
    };
  }
}), A7 = () => h(h({}, Tl()), {
  strokeColor: et()
}), M7 = 3, R7 = (e) => M7 / e * 100, D7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "ProgressCircle",
  inheritAttrs: !1,
  props: Ze(A7(), {
    trailColor: null
  }),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const r = w(() => {
      var g;
      return (g = e.width) !== null && g !== void 0 ? g : 120;
    }), i = w(() => {
      var g;
      return (g = e.size) !== null && g !== void 0 ? g : [r.value, r.value];
    }), a = w(() => El(i.value, "circle")), l = w(() => {
      if (e.gapDegree || e.gapDegree === 0)
        return e.gapDegree;
      if (e.type === "dashboard")
        return 75;
    }), s = w(() => ({
      width: `${a.value.width}px`,
      height: `${a.value.height}px`,
      fontSize: `${a.value.width * 0.15 + 6}px`
    })), c = w(() => {
      var g;
      return (g = e.strokeWidth) !== null && g !== void 0 ? g : Math.max(R7(a.value.width), 6);
    }), u = w(() => e.gapPosition || e.type === "dashboard" && "bottom" || void 0), d = w(() => S7(e)), f = w(() => Object.prototype.toString.call(e.strokeColor) === "[object Object]"), p = w(() => C7({
      success: e.success,
      strokeColor: e.strokeColor
    })), y = w(() => ({
      [`${e.prefixCls}-inner`]: !0,
      [`${e.prefixCls}-circle-gradient`]: f.value
    }));
    return () => {
      var g;
      const v = m(E7, {
        percent: d.value,
        strokeWidth: c.value,
        trailWidth: c.value,
        strokeColor: p.value,
        strokeLinecap: e.strokeLinecap,
        trailColor: e.trailColor,
        prefixCls: e.prefixCls,
        gapDegree: l.value,
        gapPosition: u.value
      }, null);
      return m("div", z(z({}, o), {}, {
        class: [y.value, o.class],
        style: [o.style, s.value]
      }), [a.value.width <= 20 ? m(Vt, null, {
        default: () => [m("span", null, [v])],
        title: n.default
      }) : m(Te, null, [v, (g = n.default) === null || g === void 0 ? void 0 : g.call(n)])]);
    };
  }
}), F7 = () => h(h({}, Tl()), {
  steps: Number,
  strokeColor: it(),
  trailColor: String
}), L7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "Steps",
  props: F7(),
  setup(e, t) {
    let {
      slots: n
    } = t;
    const o = w(() => Math.round(e.steps * ((e.percent || 0) / 100))), r = w(() => {
      var l;
      return (l = e.size) !== null && l !== void 0 ? l : [e.size === "small" ? 2 : 14, e.strokeWidth || 8];
    }), i = w(() => El(r.value, "step", {
      steps: e.steps,
      strokeWidth: e.strokeWidth || 8
    })), a = w(() => {
      const {
        steps: l,
        strokeColor: s,
        trailColor: c,
        prefixCls: u
      } = e, d = [];
      for (let f = 0; f < l; f += 1) {
        const p = Array.isArray(s) ? s[f] : s, y = {
          [`${u}-steps-item`]: !0,
          [`${u}-steps-item-active`]: f <= o.value - 1
        };
        d.push(m("div", {
          key: f,
          class: y,
          style: {
            backgroundColor: f <= o.value - 1 ? p : c,
            width: `${i.value.width / l}px`,
            height: `${i.value.height}px`
          }
        }, null));
      }
      return d;
    });
    return () => {
      var l;
      return m("div", {
        class: `${e.prefixCls}-steps-outer`
      }, [a.value, (l = n.default) === null || l === void 0 ? void 0 : l.call(n)]);
    };
  }
}), N7 = new Se("antProgressActive", {
  "0%": {
    transform: "translateX(-100%) scaleX(0)",
    opacity: 0.1
  },
  "20%": {
    transform: "translateX(-100%) scaleX(0)",
    opacity: 0.5
  },
  to: {
    transform: "translateX(0) scaleX(1)",
    opacity: 0
  }
}), j7 = (e) => {
  const {
    componentCls: t,
    iconCls: n
  } = e;
  return {
    [t]: h(h({}, Ue(e)), {
      display: "inline-block",
      "&-rtl": {
        direction: "rtl"
      },
      "&-line": {
        position: "relative",
        width: "100%",
        fontSize: e.fontSize,
        marginInlineEnd: e.marginXS,
        marginBottom: e.marginXS
      },
      [`${t}-outer`]: {
        display: "inline-block",
        width: "100%"
      },
      [`&${t}-show-info`]: {
        [`${t}-outer`]: {
          marginInlineEnd: `calc(-2em - ${e.marginXS}px)`,
          paddingInlineEnd: `calc(2em + ${e.paddingXS}px)`
        }
      },
      [`${t}-inner`]: {
        position: "relative",
        display: "inline-block",
        width: "100%",
        overflow: "hidden",
        verticalAlign: "middle",
        backgroundColor: e.progressRemainingColor,
        borderRadius: e.progressLineRadius
      },
      [`${t}-inner:not(${t}-circle-gradient)`]: {
        [`${t}-circle-path`]: {
          stroke: e.colorInfo
        }
      },
      [`${t}-success-bg, ${t}-bg`]: {
        position: "relative",
        backgroundColor: e.colorInfo,
        borderRadius: e.progressLineRadius,
        transition: `all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`
      },
      [`${t}-success-bg`]: {
        position: "absolute",
        insetBlockStart: 0,
        insetInlineStart: 0,
        backgroundColor: e.colorSuccess
      },
      [`${t}-text`]: {
        display: "inline-block",
        width: "2em",
        marginInlineStart: e.marginXS,
        color: e.progressInfoTextColor,
        lineHeight: 1,
        whiteSpace: "nowrap",
        textAlign: "start",
        verticalAlign: "middle",
        wordBreak: "normal",
        [n]: {
          fontSize: e.fontSize
        }
      },
      [`&${t}-status-active`]: {
        [`${t}-bg::before`]: {
          position: "absolute",
          inset: 0,
          backgroundColor: e.colorBgContainer,
          borderRadius: e.progressLineRadius,
          opacity: 0,
          animationName: N7,
          animationDuration: e.progressActiveMotionDuration,
          animationTimingFunction: e.motionEaseOutQuint,
          animationIterationCount: "infinite",
          content: '""'
        }
      },
      [`&${t}-status-exception`]: {
        [`${t}-bg`]: {
          backgroundColor: e.colorError
        },
        [`${t}-text`]: {
          color: e.colorError
        }
      },
      [`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]: {
        [`${t}-circle-path`]: {
          stroke: e.colorError
        }
      },
      [`&${t}-status-success`]: {
        [`${t}-bg`]: {
          backgroundColor: e.colorSuccess
        },
        [`${t}-text`]: {
          color: e.colorSuccess
        }
      },
      [`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]: {
        [`${t}-circle-path`]: {
          stroke: e.colorSuccess
        }
      }
    })
  };
}, z7 = (e) => {
  const {
    componentCls: t,
    iconCls: n
  } = e;
  return {
    [t]: {
      [`${t}-circle-trail`]: {
        stroke: e.progressRemainingColor
      },
      [`&${t}-circle ${t}-inner`]: {
        position: "relative",
        lineHeight: 1,
        backgroundColor: "transparent"
      },
      [`&${t}-circle ${t}-text`]: {
        position: "absolute",
        insetBlockStart: "50%",
        insetInlineStart: 0,
        width: "100%",
        margin: 0,
        padding: 0,
        color: e.colorText,
        lineHeight: 1,
        whiteSpace: "normal",
        textAlign: "center",
        transform: "translateY(-50%)",
        [n]: {
          fontSize: `${e.fontSize / e.fontSizeSM}em`
        }
      },
      [`${t}-circle&-status-exception`]: {
        [`${t}-text`]: {
          color: e.colorError
        }
      },
      [`${t}-circle&-status-success`]: {
        [`${t}-text`]: {
          color: e.colorSuccess
        }
      }
    },
    [`${t}-inline-circle`]: {
      lineHeight: 1,
      [`${t}-inner`]: {
        verticalAlign: "bottom"
      }
    }
  };
}, B7 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      [`${t}-steps`]: {
        display: "inline-block",
        "&-outer": {
          display: "flex",
          flexDirection: "row",
          alignItems: "center"
        },
        "&-item": {
          flexShrink: 0,
          minWidth: e.progressStepMinWidth,
          marginInlineEnd: e.progressStepMarginInlineEnd,
          backgroundColor: e.progressRemainingColor,
          transition: `all ${e.motionDurationSlow}`,
          "&-active": {
            backgroundColor: e.colorInfo
          }
        }
      }
    }
  };
}, H7 = (e) => {
  const {
    componentCls: t,
    iconCls: n
  } = e;
  return {
    [t]: {
      [`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]: {
        fontSize: e.fontSizeSM
      }
    }
  };
}, _7 = We("Progress", (e) => {
  const t = e.marginXXS / 2, n = Me(e, {
    progressLineRadius: 100,
    progressInfoTextColor: e.colorText,
    progressDefaultColor: e.colorInfo,
    progressRemainingColor: e.colorFillSecondary,
    progressStepMarginInlineEnd: t,
    progressStepMinWidth: t,
    progressActiveMotionDuration: "2.4s"
  });
  return [j7(n), z7(n), B7(n), H7(n)];
});
var V7 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const W7 = q({
  compatConfig: {
    MODE: 3
  },
  name: "AProgress",
  inheritAttrs: !1,
  props: Ze(Tl(), {
    type: "line",
    percent: 0,
    showInfo: !0,
    // null for different theme definition
    trailColor: null,
    size: "default",
    strokeLinecap: "round"
  }),
  slots: Object,
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      direction: i
    } = Ee("progress", e), [a, l] = _7(r), s = w(() => Array.isArray(e.strokeColor) ? e.strokeColor[0] : e.strokeColor), c = w(() => {
      const {
        percent: y = 0
      } = e, g = _a(e);
      return parseInt(g !== void 0 ? g.toString() : y.toString(), 10);
    }), u = w(() => {
      const {
        status: y
      } = e;
      return !b7.includes(y) && c.value >= 100 ? "success" : y || "normal";
    }), d = w(() => {
      const {
        type: y,
        showInfo: g,
        size: v
      } = e, b = r.value;
      return {
        [b]: !0,
        [`${b}-inline-circle`]: y === "circle" && El(v, "circle").width <= 20,
        [`${b}-${y === "dashboard" && "circle" || y}`]: !0,
        [`${b}-status-${u.value}`]: !0,
        [`${b}-show-info`]: g,
        [`${b}-${v}`]: v,
        [`${b}-rtl`]: i.value === "rtl",
        [l.value]: !0
      };
    }), f = w(() => typeof e.strokeColor == "string" || Array.isArray(e.strokeColor) ? e.strokeColor : void 0), p = () => {
      const {
        showInfo: y,
        format: g,
        type: v,
        percent: b,
        title: O
      } = e, C = _a(e);
      if (!y) return null;
      let x;
      const S = g || (n == null ? void 0 : n.format) || (($) => `${$}%`), P = v === "line";
      return g || n != null && n.format || u.value !== "exception" && u.value !== "success" ? x = S(io(b), io(C)) : u.value === "exception" ? x = P ? m(jt, null, null) : m(hn, null, null) : u.value === "success" && (x = P ? m(zn, null, null) : m(mi, null, null)), m("span", {
        class: `${r.value}-text`,
        title: O === void 0 && typeof x == "string" ? x : void 0
      }, [x]);
    };
    return () => {
      const {
        type: y,
        steps: g,
        title: v
      } = e, {
        class: b
      } = o, O = V7(o, ["class"]), C = p();
      let x;
      return y === "line" ? x = g ? m(L7, z(z({}, e), {}, {
        strokeColor: f.value,
        prefixCls: r.value,
        steps: g
      }), {
        default: () => [C]
      }) : m(P7, z(z({}, e), {}, {
        strokeColor: s.value,
        prefixCls: r.value,
        direction: i.value
      }), {
        default: () => [C]
      }) : (y === "circle" || y === "dashboard") && (x = m(D7, z(z({}, e), {}, {
        prefixCls: r.value,
        strokeColor: s.value,
        progressStatus: u.value
      }), {
        default: () => [C]
      })), a(m("div", z(z({
        role: "progressbar"
      }, O), {}, {
        class: [d.value, b],
        title: v
      }), [x]));
    };
  }
}), Kb = Ln(W7);
var k7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
function wg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      X7(e, r, n[r]);
    });
  }
  return e;
}
function X7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Cd = function(t, n) {
  var o = wg({}, t, n.attrs);
  return m(de, wg({}, o, {
    icon: k7
  }), null);
};
Cd.displayName = "DeleteOutlined";
Cd.inheritAttrs = !1;
var K7 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" };
function xg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      G7(e, r, n[r]);
    });
  }
  return e;
}
function G7(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var $d = function(t, n) {
  var o = xg({}, t, n.attrs);
  return m(de, xg({}, o, {
    icon: K7
  }), null);
};
$d.displayName = "EnterOutlined";
$d.inheritAttrs = !1;
const U7 = (e, t, n, o) => {
  const {
    sizeMarginHeadingVerticalEnd: r,
    fontWeightStrong: i
  } = o;
  return {
    marginBottom: r,
    color: n,
    fontWeight: i,
    fontSize: e,
    lineHeight: t
  };
}, q7 = (e) => {
  const t = [1, 2, 3, 4, 5], n = {};
  return t.forEach((o) => {
    n[`
      h${o}&,
      div&-h${o},
      div&-h${o} > textarea,
      h${o}
    `] = U7(e[`fontSizeHeading${o}`], e[`lineHeightHeading${o}`], e.colorTextHeading, e);
  }), n;
}, Y7 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    "a&, a": h(h({}, Th(e)), {
      textDecoration: e.linkDecoration,
      "&:active, &:hover": {
        textDecoration: e.linkHoverDecoration
      },
      [`&[disabled], &${t}-disabled`]: {
        color: e.colorTextDisabled,
        cursor: "not-allowed",
        "&:active, &:hover": {
          color: e.colorTextDisabled
        },
        "&:active": {
          pointerEvents: "none"
        }
      }
    })
  };
}, Z7 = () => ({
  code: {
    margin: "0 0.2em",
    paddingInline: "0.4em",
    paddingBlock: "0.2em 0.1em",
    fontSize: "85%",
    background: "rgba(150, 150, 150, 0.1)",
    border: "1px solid rgba(100, 100, 100, 0.2)",
    borderRadius: 3
  },
  kbd: {
    margin: "0 0.2em",
    paddingInline: "0.4em",
    paddingBlock: "0.15em 0.1em",
    fontSize: "90%",
    background: "rgba(150, 150, 150, 0.06)",
    border: "1px solid rgba(100, 100, 100, 0.2)",
    borderBottomWidth: 2,
    borderRadius: 3
  },
  mark: {
    padding: 0,
    // FIXME hardcode in v4
    backgroundColor: $$[2]
  },
  "u, ins": {
    textDecoration: "underline",
    textDecorationSkipInk: "auto"
  },
  "s, del": {
    textDecoration: "line-through"
  },
  strong: {
    fontWeight: 600
  },
  // list
  "ul, ol": {
    marginInline: 0,
    marginBlock: "0 1em",
    padding: 0,
    li: {
      marginInline: "20px 0",
      marginBlock: 0,
      paddingInline: "4px 0",
      paddingBlock: 0
    }
  },
  ul: {
    listStyleType: "circle",
    ul: {
      listStyleType: "disc"
    }
  },
  ol: {
    listStyleType: "decimal"
  },
  // pre & block
  "pre, blockquote": {
    margin: "1em 0"
  },
  pre: {
    padding: "0.4em 0.6em",
    whiteSpace: "pre-wrap",
    wordWrap: "break-word",
    background: "rgba(150, 150, 150, 0.1)",
    border: "1px solid rgba(100, 100, 100, 0.2)",
    borderRadius: 3,
    // Compatible for marked
    code: {
      display: "inline",
      margin: 0,
      padding: 0,
      fontSize: "inherit",
      fontFamily: "inherit",
      background: "transparent",
      border: 0
    }
  },
  blockquote: {
    paddingInline: "0.6em 0",
    paddingBlock: 0,
    borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
    opacity: 0.85
  }
}), Q7 = (e) => {
  const {
    componentCls: t
  } = e, o = _y(e).inputPaddingVertical + 1;
  return {
    "&-edit-content": {
      position: "relative",
      "div&": {
        insetInlineStart: -e.paddingSM,
        marginTop: -o,
        marginBottom: `calc(1em - ${o}px)`
      },
      [`${t}-edit-content-confirm`]: {
        position: "absolute",
        insetInlineEnd: e.marginXS + 2,
        insetBlockEnd: e.marginXS,
        color: e.colorTextDescription,
        // default style
        fontWeight: "normal",
        fontSize: e.fontSize,
        fontStyle: "normal",
        pointerEvents: "none"
      },
      textarea: {
        margin: "0!important",
        // Fix Editable Textarea flash in Firefox
        MozTransition: "none",
        height: "1em"
      }
    }
  };
}, J7 = (e) => ({
  "&-copy-success": {
    "\n    &,\n    &:hover,\n    &:focus": {
      color: e.colorSuccess
    }
  }
}), eD = () => ({
  "\n  a&-ellipsis,\n  span&-ellipsis\n  ": {
    display: "inline-block",
    maxWidth: "100%"
  },
  "&-single-line": {
    whiteSpace: "nowrap"
  },
  "&-ellipsis-single-line": {
    overflow: "hidden",
    textOverflow: "ellipsis",
    // https://blog.csdn.net/iefreer/article/details/50421025
    "a&, span&": {
      verticalAlign: "bottom"
    }
  },
  "&-ellipsis-multiple-line": {
    display: "-webkit-box",
    overflow: "hidden",
    WebkitLineClamp: 3,
    WebkitBoxOrient: "vertical"
  }
}), tD = (e) => {
  const {
    componentCls: t,
    sizeMarginHeadingVerticalStart: n
  } = e;
  return {
    [t]: h(h(h(h(h(h(h(h(h({
      color: e.colorText,
      wordBreak: "break-word",
      lineHeight: e.lineHeight,
      [`&${t}-secondary`]: {
        color: e.colorTextDescription
      },
      [`&${t}-success`]: {
        color: e.colorSuccess
      },
      [`&${t}-warning`]: {
        color: e.colorWarning
      },
      [`&${t}-danger`]: {
        color: e.colorError,
        "a&:active, a&:focus": {
          color: e.colorErrorActive
        },
        "a&:hover": {
          color: e.colorErrorHover
        }
      },
      [`&${t}-disabled`]: {
        color: e.colorTextDisabled,
        cursor: "not-allowed",
        userSelect: "none"
      },
      "\n        div&,\n        p\n      ": {
        marginBottom: "1em"
      }
    }, q7(e)), {
      [`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]: {
        marginTop: n
      },
      "\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5": {
        "\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ": {
          marginTop: n
        }
      }
    }), Z7()), Y7(e)), {
      // Operation
      [`
        ${t}-expand,
        ${t}-edit,
        ${t}-copy
      `]: h(h({}, Th(e)), {
        marginInlineStart: e.marginXXS
      })
    }), Q7(e)), J7(e)), eD()), {
      "&-rtl": {
        direction: "rtl"
      }
    })
  };
}, Gb = We("Typography", (e) => [tD(e)], {
  sizeMarginHeadingVerticalStart: "1.2em",
  sizeMarginHeadingVerticalEnd: "0.5em"
}), nD = () => ({
  prefixCls: String,
  value: String,
  maxlength: Number,
  autoSize: {
    type: [Boolean, Object]
  },
  onSave: Function,
  onCancel: Function,
  onEnd: Function,
  onChange: Function,
  originContent: String,
  direction: String,
  component: String
}), oD = q({
  compatConfig: {
    MODE: 3
  },
  name: "Editable",
  inheritAttrs: !1,
  props: nD(),
  // emits: ['save', 'cancel', 'end', 'change'],
  setup(e, t) {
    let {
      emit: n,
      slots: o,
      attrs: r
    } = t;
    const {
      prefixCls: i
    } = Uc(e), a = Be({
      current: e.value || "",
      lastKeyCode: void 0,
      inComposition: !1,
      cancelFlag: !1
    });
    ee(() => e.value, (O) => {
      a.current = O;
    });
    const l = Z();
    be(() => {
      var O;
      if (l.value) {
        const C = (O = l.value) === null || O === void 0 ? void 0 : O.resizableTextArea, x = C == null ? void 0 : C.textArea;
        x.focus();
        const {
          length: S
        } = x.value;
        x.setSelectionRange(S, S);
      }
    });
    function s(O) {
      l.value = O;
    }
    function c(O) {
      let {
        target: {
          value: C
        }
      } = O;
      a.current = C.replace(/[\r\n]/g, ""), n("change", a.current);
    }
    function u() {
      a.inComposition = !0;
    }
    function d() {
      a.inComposition = !1;
    }
    function f(O) {
      const {
        keyCode: C
      } = O;
      C === ue.ENTER && O.preventDefault(), !a.inComposition && (a.lastKeyCode = C);
    }
    function p(O) {
      const {
        keyCode: C,
        ctrlKey: x,
        altKey: S,
        metaKey: P,
        shiftKey: $
      } = O;
      a.lastKeyCode === C && !a.inComposition && !x && !S && !P && !$ && (C === ue.ENTER ? (g(), n("end")) : C === ue.ESC && (a.current = e.originContent, n("cancel")));
    }
    function y() {
      g();
    }
    function g() {
      n("save", a.current.trim());
    }
    const [v, b] = Gb(i);
    return () => {
      const O = ie({
        [`${i.value}`]: !0,
        [`${i.value}-edit-content`]: !0,
        [`${i.value}-rtl`]: e.direction === "rtl",
        [e.component ? `${i.value}-${e.component}` : ""]: !0
      }, r.class, b.value);
      return v(m("div", z(z({}, r), {}, {
        class: O
      }), [m(Lb, {
        ref: s,
        maxlength: e.maxlength,
        value: a.current,
        onChange: c,
        onKeydown: f,
        onKeyup: p,
        onCompositionstart: u,
        onCompositionend: d,
        onBlur: y,
        rows: 1,
        autoSize: e.autoSize === void 0 || e.autoSize
      }, null), o.enterIcon ? o.enterIcon({
        className: `${e.prefixCls}-edit-content-confirm`
      }) : m($d, {
        class: `${e.prefixCls}-edit-content-confirm`
      }, null)]));
    };
  }
}), rD = 3, iD = 8;
let ft;
const $s = {
  padding: 0,
  margin: 0,
  display: "inline",
  lineHeight: "inherit"
};
function Ub(e, t) {
  e.setAttribute("aria-hidden", "true");
  const n = window.getComputedStyle(t), o = KO(n);
  e.setAttribute("style", o), e.style.position = "fixed", e.style.left = "0", e.style.height = "auto", e.style.minHeight = "auto", e.style.maxHeight = "auto", e.style.paddingTop = "0", e.style.paddingBottom = "0", e.style.borderTopWidth = "0", e.style.borderBottomWidth = "0", e.style.top = "-999999px", e.style.zIndex = "-1000", e.style.textOverflow = "clip", e.style.whiteSpace = "normal", e.style.webkitLineClamp = "none";
}
function aD(e) {
  const t = document.createElement("div");
  Ub(t, e), t.appendChild(document.createTextNode("text")), document.body.appendChild(t);
  const n = t.getBoundingClientRect().height;
  return document.body.removeChild(t), n;
}
const lD = ((e, t, n, o, r) => {
  ft || (ft = document.createElement("div"), ft.setAttribute("aria-hidden", "true"), document.body.appendChild(ft));
  const {
    rows: i,
    suffix: a = ""
  } = t, l = aD(e), s = Math.round(l * i * 100) / 100;
  Ub(ft, e);
  const c = sS({
    render() {
      return m("div", {
        style: $s
      }, [m("span", {
        style: $s
      }, [n, a]), m("span", {
        style: $s
      }, [o])]);
    }
  });
  c.mount(ft);
  function u() {
    return Math.round(ft.getBoundingClientRect().height * 100) / 100 - 0.1 <= s;
  }
  if (u())
    return c.unmount(), {
      content: n,
      text: ft.innerHTML,
      ellipsis: !1
    };
  const d = Array.prototype.slice.apply(ft.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((C) => {
    let {
      nodeType: x,
      data: S
    } = C;
    return x !== iD && S !== "";
  }), f = Array.prototype.slice.apply(ft.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
  c.unmount();
  const p = [];
  ft.innerHTML = "";
  const y = document.createElement("span");
  ft.appendChild(y);
  const g = document.createTextNode(r + a);
  y.appendChild(g), f.forEach((C) => {
    ft.appendChild(C);
  });
  function v(C) {
    y.insertBefore(C, g);
  }
  function b(C, x) {
    let S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, P = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : x.length, $ = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
    const T = Math.floor((S + P) / 2), E = x.slice(0, T);
    if (C.textContent = E, S >= P - 1)
      for (let M = P; M >= S; M -= 1) {
        const R = x.slice(0, M);
        if (C.textContent = R, u() || !R)
          return M === x.length ? {
            finished: !1,
            vNode: x
          } : {
            finished: !0,
            vNode: R
          };
      }
    return u() ? b(C, x, T, P, T) : b(C, x, S, T, $);
  }
  function O(C) {
    if (C.nodeType === rD) {
      const S = C.textContent || "", P = document.createTextNode(S);
      return v(P), b(P, S);
    }
    return {
      finished: !1,
      vNode: null
    };
  }
  return d.some((C) => {
    const {
      finished: x,
      vNode: S
    } = O(C);
    return S && p.push(S), x;
  }), {
    content: p,
    text: ft.innerHTML,
    ellipsis: !0
  };
});
var sD = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const cD = () => ({
  prefixCls: String,
  direction: String,
  // Form Internal use
  component: String
}), Ve = q({
  name: "ATypography",
  inheritAttrs: !1,
  props: cD(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      prefixCls: r,
      direction: i
    } = Ee("typography", e), [a, l] = Gb(r);
    return () => {
      var s;
      const c = h(h({}, e), o), {
        prefixCls: u,
        direction: d,
        component: f = "article"
      } = c, p = sD(c, ["prefixCls", "direction", "component"]);
      return a(m(f, z(z({}, p), {}, {
        class: ie(r.value, {
          [`${r.value}-rtl`]: i.value === "rtl"
        }, o.class, l.value)
      }), {
        default: () => [(s = n.default) === null || s === void 0 ? void 0 : s.call(n)]
      }));
    };
  }
}), uD = () => {
  const e = document.getSelection();
  if (!e.rangeCount)
    return function() {
    };
  let t = document.activeElement;
  const n = [];
  for (let o = 0; o < e.rangeCount; o++)
    n.push(e.getRangeAt(o));
  switch (t.tagName.toUpperCase()) {
    case "INPUT":
    case "TEXTAREA":
      t.blur();
      break;
    default:
      t = null;
      break;
  }
  return e.removeAllRanges(), function() {
    e.type === "Caret" && e.removeAllRanges(), e.rangeCount || n.forEach(function(o) {
      e.addRange(o);
    }), t && t.focus();
  };
}, Og = {
  "text/plain": "Text",
  "text/html": "Url",
  default: "Text"
}, dD = "Copy to clipboard: #{key}, Enter";
function fD(e) {
  const t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
  return e.replace(/#{\s*key\s*}/g, t);
}
function pD(e, t) {
  let n, o, r, i, a, l = !1;
  t || (t = {});
  const s = t.debug || !1;
  try {
    if (o = uD(), r = document.createRange(), i = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(u) {
      if (u.stopPropagation(), t.format)
        if (u.preventDefault(), typeof u.clipboardData > "u") {
          s && console.warn("unable to use e.clipboardData"), s && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
          const d = Og[t.format] || Og.default;
          window.clipboardData.setData(d, e);
        } else
          u.clipboardData.clearData(), u.clipboardData.setData(t.format, e);
      t.onCopy && (u.preventDefault(), t.onCopy(u.clipboardData));
    }), document.body.appendChild(a), r.selectNodeContents(a), i.addRange(r), !document.execCommand("copy"))
      throw new Error("copy command was unsuccessful");
    l = !0;
  } catch (c) {
    s && console.error("unable to copy using execCommand: ", c), s && console.warn("trying IE specific stuff");
    try {
      window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), l = !0;
    } catch (u) {
      s && console.error("unable to copy using clipboardData: ", u), s && console.error("falling back to prompt"), n = fD("message" in t ? t.message : dD), window.prompt(n, e);
    }
  } finally {
    i && (typeof i.removeRange == "function" ? i.removeRange(r) : i.removeAllRanges()), a && document.body.removeChild(a), o();
  }
  return l;
}
var mD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
function Pg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      gD(e, r, n[r]);
    });
  }
  return e;
}
function gD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var wd = function(t, n) {
  var o = Pg({}, t, n.attrs);
  return m(de, Pg({}, o, {
    icon: mD
  }), null);
};
wd.displayName = "CopyOutlined";
wd.inheritAttrs = !1;
var vD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
function Ig(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      hD(e, r, n[r]);
    });
  }
  return e;
}
function hD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var xd = function(t, n) {
  var o = Ig({}, t, n.attrs);
  return m(de, Ig({}, o, {
    icon: vD
  }), null);
};
xd.displayName = "EditOutlined";
xd.inheritAttrs = !1;
var yD = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const bD = Yy("webkitLineClamp"), SD = Yy("textOverflow"), Tg = "...", $i = () => ({
  editable: {
    type: [Boolean, Object],
    default: void 0
  },
  copyable: {
    type: [Boolean, Object],
    default: void 0
  },
  prefixCls: String,
  component: String,
  type: String,
  disabled: {
    type: Boolean,
    default: void 0
  },
  ellipsis: {
    type: [Boolean, Object],
    default: void 0
  },
  code: {
    type: Boolean,
    default: void 0
  },
  mark: {
    type: Boolean,
    default: void 0
  },
  underline: {
    type: Boolean,
    default: void 0
  },
  delete: {
    type: Boolean,
    default: void 0
  },
  strong: {
    type: Boolean,
    default: void 0
  },
  keyboard: {
    type: Boolean,
    default: void 0
  },
  content: String,
  "onUpdate:content": Function
}), wi = q({
  compatConfig: {
    MODE: 3
  },
  name: "TypographyBase",
  inheritAttrs: !1,
  props: $i(),
  // emits: ['update:content'],
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      emit: r
    } = t;
    const {
      prefixCls: i,
      direction: a
    } = Ee("typography", e), l = Be({
      copied: !1,
      ellipsisText: "",
      ellipsisContent: null,
      isEllipsis: !1,
      expanded: !1,
      clientRendered: !1,
      //locale
      expandStr: "",
      copyStr: "",
      copiedStr: "",
      editStr: "",
      copyId: void 0,
      rafId: void 0,
      prevProps: void 0,
      originContent: ""
    }), s = Z(), c = Z(), u = w(() => {
      const I = e.ellipsis;
      return I ? h({
        rows: 1,
        expandable: !1
      }, typeof I == "object" ? I : null) : {};
    });
    be(() => {
      l.clientRendered = !0, T();
    }), Le(() => {
      clearTimeout(l.copyId), Ae.cancel(l.rafId);
    }), ee([() => u.value.rows, () => e.content], () => {
      De(() => {
        P();
      });
    }, {
      flush: "post",
      deep: !0
    }), we(() => {
      e.content === void 0 && (so(!e.editable), so(!e.ellipsis));
    });
    function d() {
      var I;
      return e.ellipsis || e.editable ? e.content : (I = Ht(s.value)) === null || I === void 0 ? void 0 : I.innerText;
    }
    function f(I) {
      const {
        onExpand: A
      } = u.value;
      l.expanded = !0, A == null || A(I);
    }
    function p(I) {
      I.preventDefault(), l.originContent = e.content, S(!0);
    }
    function y(I) {
      g(I), S(!1);
    }
    function g(I) {
      const {
        onChange: A
      } = O.value;
      I !== e.content && (r("update:content", I), A == null || A(I));
    }
    function v() {
      var I, A;
      (A = (I = O.value).onCancel) === null || A === void 0 || A.call(I), S(!1);
    }
    function b(I) {
      I.preventDefault(), I.stopPropagation();
      const {
        copyable: A
      } = e, j = h({}, typeof A == "object" ? A : null);
      j.text === void 0 && (j.text = d()), pD(j.text || ""), l.copied = !0, De(() => {
        j.onCopy && j.onCopy(I), l.copyId = setTimeout(() => {
          l.copied = !1;
        }, 3e3);
      });
    }
    const O = w(() => {
      const I = e.editable;
      return I ? h({}, typeof I == "object" ? I : null) : {
        editing: !1
      };
    }), [C, x] = Mn(!1, {
      value: w(() => O.value.editing)
    });
    function S(I) {
      const {
        onStart: A
      } = O.value;
      I && A && A(), x(I);
    }
    ee(C, (I) => {
      var A;
      I || (A = c.value) === null || A === void 0 || A.focus();
    }, {
      flush: "post"
    });
    function P(I) {
      if (I) {
        const {
          width: A,
          height: j
        } = I;
        if (!A || !j) return;
      }
      Ae.cancel(l.rafId), l.rafId = Ae(() => {
        T();
      });
    }
    const $ = w(() => {
      const {
        rows: I,
        expandable: A,
        suffix: j,
        onEllipsis: L,
        tooltip: D
      } = u.value;
      return j || D || e.editable || e.copyable || A || L ? !1 : I === 1 ? SD : bD;
    }), T = () => {
      const {
        ellipsisText: I,
        isEllipsis: A
      } = l, {
        rows: j,
        suffix: L,
        onEllipsis: D
      } = u.value;
      if (!j || j < 0 || !Ht(s.value) || l.expanded || e.content === void 0 || $.value) return;
      const {
        content: _,
        text: V,
        ellipsis: J
      } = lD(Ht(s.value), {
        rows: j,
        suffix: L
      }, e.content, H(!0), Tg);
      (I !== V || l.isEllipsis !== J) && (l.ellipsisText = V, l.ellipsisContent = _, l.isEllipsis = J, A !== J && D && D(J));
    };
    function E(I, A) {
      let {
        mark: j,
        code: L,
        underline: D,
        delete: _,
        strong: V,
        keyboard: J
      } = I, oe = A;
      function re(Q, U) {
        if (!Q) return;
        const k = /* @__PURE__ */ (function() {
          return oe;
        })();
        oe = m(U, null, {
          default: () => [k]
        });
      }
      return re(V, "strong"), re(D, "u"), re(_, "del"), re(L, "code"), re(j, "mark"), re(J, "kbd"), oe;
    }
    function M(I) {
      const {
        expandable: A,
        symbol: j
      } = u.value;
      if (!A || !I && (l.expanded || !l.isEllipsis)) return null;
      const L = (n.ellipsisSymbol ? n.ellipsisSymbol() : j) || l.expandStr;
      return m("a", {
        key: "expand",
        class: `${i.value}-expand`,
        onClick: f,
        "aria-label": l.expandStr
      }, [L]);
    }
    function R() {
      if (!e.editable) return;
      const {
        tooltip: I,
        triggerType: A = ["icon"]
      } = e.editable, j = n.editableIcon ? n.editableIcon() : m(xd, {
        role: "button"
      }, null), L = n.editableTooltip ? n.editableTooltip() : l.editStr, D = typeof L == "string" ? L : "";
      return A.indexOf("icon") !== -1 ? m(Vt, {
        key: "edit",
        title: I === !1 ? "" : L
      }, {
        default: () => [m(yg, {
          ref: c,
          class: `${i.value}-edit`,
          onClick: p,
          "aria-label": D
        }, {
          default: () => [j]
        })]
      }) : null;
    }
    function N() {
      if (!e.copyable) return;
      const {
        tooltip: I
      } = e.copyable, A = l.copied ? l.copiedStr : l.copyStr, j = n.copyableTooltip ? n.copyableTooltip({
        copied: l.copied
      }) : A, L = typeof j == "string" ? j : "", D = l.copied ? m(mi, null, null) : m(wd, null, null), _ = n.copyableIcon ? n.copyableIcon({
        copied: !!l.copied
      }) : D;
      return m(Vt, {
        key: "copy",
        title: I === !1 ? "" : j
      }, {
        default: () => [m(yg, {
          class: [`${i.value}-copy`, {
            [`${i.value}-copy-success`]: l.copied
          }],
          onClick: b,
          "aria-label": L
        }, {
          default: () => [_]
        })]
      });
    }
    function F() {
      const {
        class: I,
        style: A
      } = o, {
        maxlength: j,
        autoSize: L,
        onEnd: D
      } = O.value;
      return m(oD, {
        class: I,
        style: A,
        prefixCls: i.value,
        value: e.content,
        originContent: l.originContent,
        maxlength: j,
        autoSize: L,
        onSave: y,
        onChange: g,
        onCancel: v,
        onEnd: D,
        direction: a.value,
        component: e.component
      }, {
        enterIcon: n.editableEnterIcon
      });
    }
    function H(I) {
      return [M(I), R(), N()].filter((A) => A);
    }
    return () => {
      var I;
      const {
        triggerType: A = ["icon"]
      } = O.value, j = e.ellipsis || e.editable ? e.content !== void 0 ? e.content : (I = n.default) === null || I === void 0 ? void 0 : I.call(n) : n.default ? n.default() : e.content;
      return C.value ? F() : m(Qc, {
        componentName: "Text",
        children: (L) => {
          const D = h(h({}, e), o), {
            type: _,
            disabled: V,
            content: J,
            class: oe,
            style: re
          } = D, Q = yD(D, ["type", "disabled", "content", "class", "style"]), {
            rows: U,
            suffix: k,
            tooltip: ne
          } = u.value, {
            edit: X,
            copy: B,
            copied: W,
            expand: Y
          } = L;
          l.editStr = X, l.copyStr = B, l.copiedStr = W, l.expandStr = Y;
          const te = _e(Q, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), ae = $.value, fe = U === 1 && ae, ve = U && U > 1 && ae;
          let le = j, me;
          if (U && l.isEllipsis && !l.expanded && !ae) {
            const {
              title: je
            } = Q;
            let ke = je || "";
            !je && (typeof j == "string" || typeof j == "number") && (ke = String(j)), ke = ke == null ? void 0 : ke.slice(String(l.ellipsisContent || "").length), le = m(Te, null, [At(l.ellipsisContent), m("span", {
              title: ke,
              "aria-hidden": "true"
            }, [Tg]), k]);
          } else
            le = m(Te, null, [j, k]);
          le = E(e, le);
          const ce = ne && U && l.isEllipsis && !l.expanded && !ae, he = n.ellipsisTooltip ? n.ellipsisTooltip() : ne;
          return m(rr, {
            onResize: P,
            disabled: !U
          }, {
            default: () => [m(Ve, z({
              ref: s,
              class: [{
                [`${i.value}-${_}`]: _,
                [`${i.value}-disabled`]: V,
                [`${i.value}-ellipsis`]: U,
                [`${i.value}-single-line`]: U === 1 && !l.isEllipsis,
                [`${i.value}-ellipsis-single-line`]: fe,
                [`${i.value}-ellipsis-multiple-line`]: ve
              }, oe],
              style: h(h({}, re), {
                WebkitLineClamp: ve ? U : void 0
              }),
              "aria-label": me,
              direction: a.value,
              onClick: A.indexOf("text") !== -1 ? p : () => {
              }
            }, te), {
              default: () => [ce ? m(Vt, {
                title: ne === !0 ? j : he
              }, {
                default: () => [m("span", null, [le])]
              }) : le, H()]
            })]
          });
        }
      }, null);
    };
  }
});
var CD = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const $D = () => _e(h(h({}, $i()), {
  ellipsis: {
    type: Boolean,
    default: void 0
  }
}), ["component"]), xi = (e, t) => {
  let {
    slots: n,
    attrs: o
  } = t;
  const r = h(h({}, e), o), {
    ellipsis: i,
    rel: a
  } = r, l = CD(r, ["ellipsis", "rel"]), s = h(h({}, l), {
    rel: a === void 0 && l.target === "_blank" ? "noopener noreferrer" : a,
    ellipsis: !!i,
    component: "a"
  });
  return delete s.navigate, m(wi, s, n);
};
xi.displayName = "ATypographyLink";
xi.inheritAttrs = !1;
xi.props = $D();
const wD = () => _e($i(), ["component"]), Oi = (e, t) => {
  let {
    slots: n,
    attrs: o
  } = t;
  const r = h(h(h({}, e), {
    component: "div"
  }), o);
  return m(wi, r, n);
};
Oi.displayName = "ATypographyParagraph";
Oi.inheritAttrs = !1;
Oi.props = wD();
const xD = () => h(h({}, _e($i(), ["component"])), {
  ellipsis: {
    type: [Boolean, Object],
    default: void 0
  }
}), Pi = (e, t) => {
  let {
    slots: n,
    attrs: o
  } = t;
  const {
    ellipsis: r
  } = e, i = h(h(h({}, e), {
    ellipsis: r && typeof r == "object" ? _e(r, ["expandable", "rows"]) : r,
    component: "span"
  }), o);
  return m(wi, i, n);
};
Pi.displayName = "ATypographyText";
Pi.inheritAttrs = !1;
Pi.props = xD();
var OD = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const PD = pS(1, 2, 3, 4, 5), ID = () => h(h({}, _e($i(), ["component", "strong"])), {
  level: Number
}), Ii = (e, t) => {
  let {
    slots: n,
    attrs: o
  } = t;
  const {
    level: r = 1
  } = e, i = OD(e, ["level"]);
  let a;
  PD.includes(r) ? a = `h${r}` : a = "h1";
  const l = h(h(h({}, i), {
    component: a
  }), o);
  return m(wi, l, n);
};
Ii.displayName = "ATypographyTitle";
Ii.inheritAttrs = !1;
Ii.props = ID();
Ve.Text = Pi;
Ve.Title = Ii;
Ve.Paragraph = Oi;
Ve.Link = xi;
Ve.Base = wi;
Ve.install = function(e) {
  return e.component(Ve.name, Ve), e.component(Ve.Text.displayName, Pi), e.component(Ve.Title.displayName, Ii), e.component(Ve.Paragraph.displayName, Oi), e.component(Ve.Link.displayName, xi), e;
};
function TD(e, t) {
  const n = `cannot ${e.method} ${e.action} ${t.status}'`, o = new Error(n);
  return o.status = t.status, o.method = e.method, o.url = e.action, o;
}
function Eg(e) {
  const t = e.responseText || e.response;
  if (!t)
    return t;
  try {
    return JSON.parse(t);
  } catch {
    return t;
  }
}
function ED(e) {
  const t = new XMLHttpRequest();
  e.onProgress && t.upload && (t.upload.onprogress = function(i) {
    i.total > 0 && (i.percent = i.loaded / i.total * 100), e.onProgress(i);
  });
  const n = new FormData();
  e.data && Object.keys(e.data).forEach((r) => {
    const i = e.data[r];
    if (Array.isArray(i)) {
      i.forEach((a) => {
        n.append(`${r}[]`, a);
      });
      return;
    }
    n.append(r, i);
  }), e.file instanceof Blob ? n.append(e.filename, e.file, e.file.name) : n.append(e.filename, e.file), t.onerror = function(i) {
    e.onError(i);
  }, t.onload = function() {
    return t.status < 200 || t.status >= 300 ? e.onError(TD(e, t), Eg(t)) : e.onSuccess(Eg(t), t);
  }, t.open(e.method, e.action, !0), e.withCredentials && "withCredentials" in t && (t.withCredentials = !0);
  const o = e.headers || {};
  return o["X-Requested-With"] !== null && t.setRequestHeader("X-Requested-With", "XMLHttpRequest"), Object.keys(o).forEach((r) => {
    o[r] !== null && t.setRequestHeader(r, o[r]);
  }), t.send(n), {
    abort() {
      t.abort();
    }
  };
}
const AD = +/* @__PURE__ */ new Date();
let MD = 0;
function ws() {
  return `vc-upload-${AD}-${++MD}`;
}
const xs = ((e, t) => {
  if (e && t) {
    const n = Array.isArray(t) ? t : t.split(","), o = e.name || "", r = e.type || "", i = r.replace(/\/.*$/, "");
    return n.some((a) => {
      const l = a.trim();
      if (/^\*(\/\*)?$/.test(a))
        return !0;
      if (l.charAt(0) === ".") {
        const s = o.toLowerCase(), c = l.toLowerCase();
        let u = [c];
        return (c === ".jpg" || c === ".jpeg") && (u = [".jpg", ".jpeg"]), u.some((d) => s.endsWith(d));
      }
      return /\/\*$/.test(l) ? i === l.replace(/\/.*$/, "") : !!(r === l || /^\w+$/.test(l));
    });
  }
  return !0;
});
function RD(e, t) {
  const n = e.createReader();
  let o = [];
  function r() {
    n.readEntries((i) => {
      const a = Array.prototype.slice.apply(i);
      o = o.concat(a), !a.length ? t(o) : r();
    });
  }
  r();
}
const DD = (e, t, n) => {
  const o = (r, i) => {
    r.path = i || "", r.isFile ? r.file((a) => {
      n(a) && (r.fullPath && !a.webkitRelativePath && (Object.defineProperties(a, {
        webkitRelativePath: {
          writable: !0
        }
      }), a.webkitRelativePath = r.fullPath.replace(/^\//, ""), Object.defineProperties(a, {
        webkitRelativePath: {
          writable: !1
        }
      })), t([a]));
    }) : r.isDirectory && RD(r, (a) => {
      a.forEach((l) => {
        o(l, `${i}${r.name}/`);
      });
    });
  };
  e.forEach((r) => {
    o(r.webkitGetAsEntry());
  });
}, qb = () => ({
  capture: [Boolean, String],
  multipart: {
    type: Boolean,
    default: void 0
  },
  name: String,
  disabled: {
    type: Boolean,
    default: void 0
  },
  componentTag: String,
  action: [String, Function],
  method: String,
  directory: {
    type: Boolean,
    default: void 0
  },
  data: [Object, Function],
  headers: Object,
  accept: String,
  multiple: {
    type: Boolean,
    default: void 0
  },
  onBatchStart: Function,
  onReject: Function,
  onStart: Function,
  onError: Function,
  onSuccess: Function,
  onProgress: Function,
  beforeUpload: Function,
  customRequest: Function,
  withCredentials: {
    type: Boolean,
    default: void 0
  },
  openFileDialogOnClick: {
    type: Boolean,
    default: void 0
  },
  prefixCls: String,
  id: String,
  onMouseenter: Function,
  onMouseleave: Function,
  onClick: Function
});
var FD = function(e, t, n, o) {
  function r(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(o.next(u));
      } catch (d) {
        a(d);
      }
    }
    function s(u) {
      try {
        c(o.throw(u));
      } catch (d) {
        a(d);
      }
    }
    function c(u) {
      u.done ? i(u.value) : r(u.value).then(l, s);
    }
    c((o = o.apply(e, t || [])).next());
  });
}, LD = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const ND = q({
  compatConfig: {
    MODE: 3
  },
  name: "AjaxUploader",
  inheritAttrs: !1,
  props: qb(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    const i = Z(ws()), a = {}, l = Z();
    let s = !1;
    const c = (O, C) => FD(this, void 0, void 0, function* () {
      const {
        beforeUpload: x
      } = e;
      let S = O;
      if (x) {
        try {
          S = yield x(O, C);
        } catch {
          S = !1;
        }
        if (S === !1)
          return {
            origin: O,
            parsedFile: null,
            action: null,
            data: null
          };
      }
      const {
        action: P
      } = e;
      let $;
      typeof P == "function" ? $ = yield P(O) : $ = P;
      const {
        data: T
      } = e;
      let E;
      typeof T == "function" ? E = yield T(O) : E = T;
      const M = (
        // string type is from legacy `transformFile`.
        // Not sure if this will work since no related test case works with it
        (typeof S == "object" || typeof S == "string") && S ? S : O
      );
      let R;
      M instanceof File ? R = M : R = new File([M], O.name, {
        type: O.type
      });
      const N = R;
      return N.uid = O.uid, {
        origin: O,
        data: E,
        parsedFile: N,
        action: $
      };
    }), u = (O) => {
      let {
        data: C,
        origin: x,
        action: S,
        parsedFile: P
      } = O;
      if (!s)
        return;
      const {
        onStart: $,
        customRequest: T,
        name: E,
        headers: M,
        withCredentials: R,
        method: N
      } = e, {
        uid: F
      } = x, H = T || ED, I = {
        action: S,
        filename: E,
        data: C,
        file: P,
        headers: M,
        withCredentials: R,
        method: N || "post",
        onProgress: (A) => {
          const {
            onProgress: j
          } = e;
          j == null || j(A, P);
        },
        onSuccess: (A, j) => {
          const {
            onSuccess: L
          } = e;
          L == null || L(A, P, j), delete a[F];
        },
        onError: (A, j) => {
          const {
            onError: L
          } = e;
          L == null || L(A, j, P), delete a[F];
        }
      };
      $(x), a[F] = H(I);
    }, d = () => {
      i.value = ws();
    }, f = (O) => {
      if (O) {
        const C = O.uid ? O.uid : O;
        a[C] && a[C].abort && a[C].abort(), delete a[C];
      } else
        Object.keys(a).forEach((C) => {
          a[C] && a[C].abort && a[C].abort(), delete a[C];
        });
    };
    be(() => {
      s = !0;
    }), Le(() => {
      s = !1, f();
    });
    const p = (O) => {
      const C = [...O], x = C.map((S) => (S.uid = ws(), c(S, C)));
      Promise.all(x).then((S) => {
        const {
          onBatchStart: P
        } = e;
        P == null || P(S.map(($) => {
          let {
            origin: T,
            parsedFile: E
          } = $;
          return {
            file: T,
            parsedFile: E
          };
        })), S.filter(($) => $.parsedFile !== null).forEach(($) => {
          u($);
        });
      });
    }, y = (O) => {
      const {
        accept: C,
        directory: x
      } = e, {
        files: S
      } = O.target, P = [...S].filter(($) => !x || xs($, C));
      p(P), d();
    }, g = (O) => {
      const C = l.value;
      if (!C)
        return;
      const {
        onClick: x
      } = e;
      C.click(), x && x(O);
    }, v = (O) => {
      O.key === "Enter" && g(O);
    }, b = (O) => {
      const {
        multiple: C
      } = e;
      if (O.preventDefault(), O.type !== "dragover")
        if (e.directory)
          DD(Array.prototype.slice.call(O.dataTransfer.items), p, (x) => xs(x, e.accept));
        else {
          const x = tT(Array.prototype.slice.call(O.dataTransfer.files), ($) => xs($, e.accept));
          let S = x[0];
          const P = x[1];
          C === !1 && (S = S.slice(0, 1)), p(S), P.length && e.onReject && e.onReject(P);
        }
    };
    return r({
      abort: f
    }), () => {
      var O;
      const {
        componentTag: C,
        prefixCls: x,
        disabled: S,
        id: P,
        multiple: $,
        accept: T,
        capture: E,
        directory: M,
        openFileDialogOnClick: R,
        onMouseenter: N,
        onMouseleave: F
      } = e, H = LD(e, ["componentTag", "prefixCls", "disabled", "id", "multiple", "accept", "capture", "directory", "openFileDialogOnClick", "onMouseenter", "onMouseleave"]), I = {
        [x]: !0,
        [`${x}-disabled`]: S,
        [o.class]: !!o.class
      }, A = M ? {
        directory: "directory",
        webkitdirectory: "webkitdirectory"
      } : {};
      return m(C, z(z({}, S ? {} : {
        onClick: R ? g : () => {
        },
        onKeydown: R ? v : () => {
        },
        onMouseenter: N,
        onMouseleave: F,
        onDrop: b,
        onDragover: b,
        tabindex: "0"
      }), {}, {
        class: I,
        role: "button",
        style: o.style
      }), {
        default: () => [m("input", z(z(z({}, pi(H, {
          aria: !0,
          data: !0
        })), {}, {
          id: P,
          type: "file",
          ref: l,
          onClick: (L) => L.stopPropagation(),
          onCancel: (L) => L.stopPropagation(),
          key: i.value,
          style: {
            display: "none"
          },
          accept: T
        }, A), {}, {
          multiple: $,
          onChange: y
        }, E != null ? {
          capture: E
        } : {}), null), (O = n.default) === null || O === void 0 ? void 0 : O.call(n)]
      });
    };
  }
});
function Os() {
}
const Ag = q({
  compatConfig: {
    MODE: 3
  },
  name: "Upload",
  inheritAttrs: !1,
  props: Ze(qb(), {
    componentTag: "span",
    prefixCls: "rc-upload",
    data: {},
    headers: {},
    name: "file",
    multipart: !1,
    onStart: Os,
    onError: Os,
    onSuccess: Os,
    multiple: !1,
    beforeUpload: null,
    customRequest: null,
    withCredentials: !1,
    openFileDialogOnClick: !0
  }),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    const i = Z();
    return r({
      abort: (l) => {
        var s;
        (s = i.value) === null || s === void 0 || s.abort(l);
      }
    }), () => m(ND, z(z(z({}, e), o), {}, {
      ref: i
    }), n);
  }
});
var jD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" } }] }, name: "paper-clip", theme: "outlined" };
function Mg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      zD(e, r, n[r]);
    });
  }
  return e;
}
function zD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Od = function(t, n) {
  var o = Mg({}, t, n.attrs);
  return m(de, Mg({}, o, {
    icon: jD
  }), null);
};
Od.displayName = "PaperClipOutlined";
Od.inheritAttrs = !1;
var BD = { icon: function(t, n) {
  return { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z", fill: t } }, { tag: "path", attrs: { d: "M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z", fill: n } }, { tag: "path", attrs: { d: "M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z", fill: n } }, { tag: "path", attrs: { d: "M276 368a28 28 0 1056 0 28 28 0 10-56 0z", fill: n } }, { tag: "path", attrs: { d: "M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z", fill: t } }] };
}, name: "picture", theme: "twotone" };
function Rg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      HD(e, r, n[r]);
    });
  }
  return e;
}
function HD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Pd = function(t, n) {
  var o = Rg({}, t, n.attrs);
  return m(de, Rg({}, o, {
    icon: BD
  }), null);
};
Pd.displayName = "PictureTwoTone";
Pd.inheritAttrs = !1;
var _D = { icon: function(t, n) {
  return { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M534 352V136H232v752h560V394H576a42 42 0 01-42-42z", fill: n } }, { tag: "path", attrs: { d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z", fill: t } }] };
}, name: "file", theme: "twotone" };
function Dg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      VD(e, r, n[r]);
    });
  }
  return e;
}
function VD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Id = function(t, n) {
  var o = Dg({}, t, n.attrs);
  return m(de, Dg({}, o, {
    icon: _D
  }), null);
};
Id.displayName = "FileTwoTone";
Id.inheritAttrs = !1;
function Yb() {
  return {
    capture: it([Boolean, String]),
    type: Xe(),
    name: String,
    defaultFileList: Ko(),
    fileList: Ko(),
    action: it([String, Function]),
    directory: Ie(),
    data: it([Object, Function]),
    method: Xe(),
    headers: xe(),
    showUploadList: it([Boolean, Object]),
    multiple: Ie(),
    accept: String,
    beforeUpload: ge(),
    onChange: ge(),
    "onUpdate:fileList": ge(),
    onDrop: ge(),
    listType: Xe(),
    onPreview: ge(),
    onDownload: ge(),
    onReject: ge(),
    onRemove: ge(),
    /** @deprecated Please use `onRemove` directly */
    remove: ge(),
    supportServerRender: Ie(),
    disabled: Ie(),
    prefixCls: String,
    customRequest: ge(),
    withCredentials: Ie(),
    openFileDialogOnClick: Ie(),
    locale: xe(),
    id: String,
    previewFile: ge(),
    /** @deprecated Please use `beforeUpload` directly */
    transformFile: ge(),
    iconRender: ge(),
    isImageUrl: ge(),
    progress: xe(),
    itemRender: ge(),
    /** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
    maxCount: Number,
    height: it([Number, String]),
    removeIcon: ge(),
    downloadIcon: ge(),
    previewIcon: ge()
  };
}
function WD() {
  return {
    listType: Xe(),
    onPreview: ge(),
    onDownload: ge(),
    onRemove: ge(),
    items: Ko(),
    progress: xe(),
    prefixCls: Xe(),
    showRemoveIcon: Ie(),
    showDownloadIcon: Ie(),
    showPreviewIcon: Ie(),
    removeIcon: ge(),
    downloadIcon: ge(),
    previewIcon: ge(),
    locale: xe(void 0),
    previewFile: ge(),
    iconRender: ge(),
    isImageUrl: ge(),
    appendAction: ge(),
    appendActionVisible: Ie(),
    itemRender: ge()
  };
}
function Gi(e) {
  return h(h({}, e), {
    lastModified: e.lastModified,
    lastModifiedDate: e.lastModifiedDate,
    name: e.name,
    size: e.size,
    type: e.type,
    uid: e.uid,
    percent: 0,
    originFileObj: e
  });
}
function Ui(e, t) {
  const n = [...t], o = n.findIndex((r) => {
    let {
      uid: i
    } = r;
    return i === e.uid;
  });
  return o === -1 ? n.push(e) : n[o] = e, n;
}
function Ps(e, t) {
  const n = e.uid !== void 0 ? "uid" : "name";
  return t.filter((o) => o[n] === e[n])[0];
}
function kD(e, t) {
  const n = e.uid !== void 0 ? "uid" : "name", o = t.filter((r) => r[n] !== e[n]);
  return o.length === t.length ? null : o;
}
const XD = function() {
  const t = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "").split("/"), o = t[t.length - 1].split(/#|\?/)[0];
  return (/\.[^./\\]*$/.exec(o) || [""])[0];
}, Zb = (e) => e.indexOf("image/") === 0, KD = (e) => {
  if (e.type && !e.thumbUrl)
    return Zb(e.type);
  const t = e.thumbUrl || e.url || "", n = XD(t);
  return /^data:image\//.test(t) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n) ? !0 : !(/^data:/.test(t) || n);
}, bn = 200;
function GD(e) {
  return new Promise((t) => {
    if (!e.type || !Zb(e.type)) {
      t("");
      return;
    }
    const n = document.createElement("canvas");
    n.width = bn, n.height = bn, n.style.cssText = `position: fixed; left: 0; top: 0; width: ${bn}px; height: ${bn}px; z-index: 9999; display: none;`, document.body.appendChild(n);
    const o = n.getContext("2d"), r = new Image();
    if (r.onload = () => {
      const {
        width: i,
        height: a
      } = r;
      let l = bn, s = bn, c = 0, u = 0;
      i > a ? (s = a * (bn / i), u = -(s - l) / 2) : (l = i * (bn / a), c = -(l - s) / 2), o.drawImage(r, c, u, l, s);
      const d = n.toDataURL();
      document.body.removeChild(n), t(d);
    }, r.crossOrigin = "anonymous", e.type.startsWith("image/svg+xml")) {
      const i = new FileReader();
      i.addEventListener("load", () => {
        i.result && (r.src = i.result);
      }), i.readAsDataURL(e);
    } else
      r.src = window.URL.createObjectURL(e);
  });
}
var UD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "download", theme: "outlined" };
function Fg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      qD(e, r, n[r]);
    });
  }
  return e;
}
function qD(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Td = function(t, n) {
  var o = Fg({}, t, n.attrs);
  return m(de, Fg({}, o, {
    icon: UD
  }), null);
};
Td.displayName = "DownloadOutlined";
Td.inheritAttrs = !1;
const YD = () => ({
  prefixCls: String,
  locale: xe(void 0),
  file: xe(),
  items: Ko(),
  listType: Xe(),
  isImgUrl: ge(),
  showRemoveIcon: Ie(),
  showDownloadIcon: Ie(),
  showPreviewIcon: Ie(),
  removeIcon: ge(),
  downloadIcon: ge(),
  previewIcon: ge(),
  iconRender: ge(),
  actionIconRender: ge(),
  itemRender: ge(),
  onPreview: ge(),
  onClose: ge(),
  onDownload: ge(),
  progress: xe()
}), ZD = q({
  compatConfig: {
    MODE: 3
  },
  name: "ListItem",
  inheritAttrs: !1,
  props: YD(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    var r;
    const i = K(!1), a = K();
    be(() => {
      a.value = setTimeout(() => {
        i.value = !0;
      }, 300);
    }), Le(() => {
      clearTimeout(a.value);
    });
    const l = K((r = e.file) === null || r === void 0 ? void 0 : r.status);
    ee(() => {
      var u;
      return (u = e.file) === null || u === void 0 ? void 0 : u.status;
    }, (u) => {
      u !== "removed" && (l.value = u);
    });
    const {
      rootPrefixCls: s
    } = Ee("upload", e), c = w(() => cr(`${s.value}-fade`));
    return () => {
      var u, d;
      const {
        prefixCls: f,
        locale: p,
        listType: y,
        file: g,
        items: v,
        progress: b,
        iconRender: O = n.iconRender,
        actionIconRender: C = n.actionIconRender,
        itemRender: x = n.itemRender,
        isImgUrl: S,
        showPreviewIcon: P,
        showRemoveIcon: $,
        showDownloadIcon: T,
        previewIcon: E = n.previewIcon,
        removeIcon: M = n.removeIcon,
        downloadIcon: R = n.downloadIcon,
        onPreview: N,
        onDownload: F,
        onClose: H
      } = e, {
        class: I,
        style: A
      } = o, j = O({
        file: g
      });
      let L = m("div", {
        class: `${f}-text-icon`
      }, [j]);
      if (y === "picture" || y === "picture-card")
        if (l.value === "uploading" || !g.thumbUrl && !g.url) {
          const te = {
            [`${f}-list-item-thumbnail`]: !0,
            [`${f}-list-item-file`]: l.value !== "uploading"
          };
          L = m("div", {
            class: te
          }, [j]);
        } else {
          const te = S != null && S(g) ? m("img", {
            src: g.thumbUrl || g.url,
            alt: g.name,
            class: `${f}-list-item-image`,
            crossorigin: g.crossOrigin
          }, null) : j, ae = {
            [`${f}-list-item-thumbnail`]: !0,
            [`${f}-list-item-file`]: S && !S(g)
          };
          L = m("a", {
            class: ae,
            onClick: (fe) => N(g, fe),
            href: g.url || g.thumbUrl,
            target: "_blank",
            rel: "noopener noreferrer"
          }, [te]);
        }
      const D = {
        [`${f}-list-item`]: !0,
        [`${f}-list-item-${l.value}`]: !0
      }, _ = typeof g.linkProps == "string" ? JSON.parse(g.linkProps) : g.linkProps, V = $ ? C({
        customIcon: M ? M({
          file: g
        }) : m(Cd, null, null),
        callback: () => H(g),
        prefixCls: f,
        title: p.removeFile
      }) : null, J = T && l.value === "done" ? C({
        customIcon: R ? R({
          file: g
        }) : m(Td, null, null),
        callback: () => F(g),
        prefixCls: f,
        title: p.downloadFile
      }) : null, oe = y !== "picture-card" && m("span", {
        key: "download-delete",
        class: [`${f}-list-item-actions`, {
          picture: y === "picture"
        }]
      }, [J, V]), re = `${f}-list-item-name`, Q = g.url ? [m("a", z(z({
        key: "view",
        target: "_blank",
        rel: "noopener noreferrer",
        class: re,
        title: g.name
      }, _), {}, {
        href: g.url,
        onClick: (te) => N(g, te)
      }), [g.name]), oe] : [m("span", {
        key: "view",
        class: re,
        onClick: (te) => N(g, te),
        title: g.name
      }, [g.name]), oe], U = {
        pointerEvents: "none",
        opacity: 0.5
      }, k = P ? m("a", {
        href: g.url || g.thumbUrl,
        target: "_blank",
        rel: "noopener noreferrer",
        style: g.url || g.thumbUrl ? void 0 : U,
        onClick: (te) => N(g, te),
        title: p.previewFile
      }, [E ? E({
        file: g
      }) : m(Ci, null, null)]) : null, ne = y === "picture-card" && l.value !== "uploading" && m("span", {
        class: `${f}-list-item-actions`
      }, [k, l.value === "done" && J, V]), X = m("div", {
        class: D
      }, [L, Q, ne, i.value && m(Xt, c.value, {
        default: () => [en(m("div", {
          class: `${f}-list-item-progress`
        }, ["percent" in g ? m(Kb, z(z({}, b), {}, {
          type: "line",
          percent: g.percent
        }), null) : null]), [[pn, l.value === "uploading"]])]
      })]), B = {
        [`${f}-list-item-container`]: !0,
        [`${I}`]: !!I
      }, W = g.response && typeof g.response == "string" ? g.response : ((u = g.error) === null || u === void 0 ? void 0 : u.statusText) || ((d = g.error) === null || d === void 0 ? void 0 : d.message) || p.uploadError, Y = l.value === "error" ? m(Vt, {
        title: W,
        getPopupContainer: (te) => te.parentNode
      }, {
        default: () => [X]
      }) : X;
      return m("div", {
        class: B,
        style: A
      }, [x ? x({
        originNode: Y,
        file: g,
        fileList: v,
        actions: {
          download: F.bind(null, g),
          preview: N.bind(null, g),
          remove: H.bind(null, g)
        }
      }) : Y]);
    };
  }
}), QD = (e, t) => {
  let {
    slots: n
  } = t;
  var o;
  return Mt((o = n.default) === null || o === void 0 ? void 0 : o.call(n))[0];
}, JD = q({
  compatConfig: {
    MODE: 3
  },
  name: "AUploadList",
  props: Ze(WD(), {
    listType: "text",
    progress: {
      strokeWidth: 2,
      showInfo: !1
    },
    showRemoveIcon: !0,
    showDownloadIcon: !1,
    showPreviewIcon: !0,
    previewFile: GD,
    isImageUrl: KD,
    items: [],
    appendActionVisible: !0
  }),
  setup(e, t) {
    let {
      slots: n,
      expose: o
    } = t;
    const r = K(!1);
    be(() => {
      r.value == !0;
    });
    const i = K([]);
    ee(() => e.items, function() {
      let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
      i.value = g.slice();
    }, {
      immediate: !0,
      deep: !0
    }), we(() => {
      if (e.listType !== "picture" && e.listType !== "picture-card")
        return;
      let g = !1;
      (e.items || []).forEach((v, b) => {
        typeof document > "u" || typeof window > "u" || !window.FileReader || !window.File || !(v.originFileObj instanceof File || v.originFileObj instanceof Blob) || v.thumbUrl !== void 0 || (v.thumbUrl = "", e.previewFile && e.previewFile(v.originFileObj).then((O) => {
          const C = O || "";
          C !== v.thumbUrl && (i.value[b].thumbUrl = C, g = !0);
        }));
      }), g && Jt(i);
    });
    const a = (g, v) => {
      if (e.onPreview)
        return v == null || v.preventDefault(), e.onPreview(g);
    }, l = (g) => {
      typeof e.onDownload == "function" ? e.onDownload(g) : g.url && window.open(g.url);
    }, s = (g) => {
      var v;
      (v = e.onRemove) === null || v === void 0 || v.call(e, g);
    }, c = (g) => {
      let {
        file: v
      } = g;
      const b = e.iconRender || n.iconRender;
      if (b)
        return b({
          file: v,
          listType: e.listType
        });
      const O = v.status === "uploading", C = e.isImageUrl && e.isImageUrl(v) ? m(Pd, null, null) : m(Id, null, null);
      let x = O ? m(Lt, null, null) : m(Od, null, null);
      return e.listType === "picture" ? x = O ? m(Lt, null, null) : C : e.listType === "picture-card" && (x = O ? e.locale.uploading : C), x;
    }, u = (g) => {
      const {
        customIcon: v,
        callback: b,
        prefixCls: O,
        title: C
      } = g, x = {
        type: "text",
        size: "small",
        title: C,
        onClick: () => {
          b();
        },
        class: `${O}-list-item-action`
      };
      return Rt(v) ? m(ut, x, {
        icon: () => v
      }) : m(ut, x, {
        default: () => [m("span", null, [v])]
      });
    };
    o({
      handlePreview: a,
      handleDownload: l
    });
    const {
      prefixCls: d,
      rootPrefixCls: f
    } = Ee("upload", e), p = w(() => ({
      [`${d.value}-list`]: !0,
      [`${d.value}-list-${e.listType}`]: !0
    })), y = w(() => {
      const g = h({}, nd(`${f.value}-motion-collapse`));
      delete g.onAfterAppear, delete g.onAfterEnter, delete g.onAfterLeave;
      const v = h(h({}, cl(`${d.value}-${e.listType === "picture-card" ? "animate-inline" : "animate"}`)), {
        class: p.value,
        appear: r.value
      });
      return e.listType !== "picture-card" ? h(h({}, g), v) : v;
    });
    return () => {
      const {
        listType: g,
        locale: v,
        isImageUrl: b,
        showPreviewIcon: O,
        showRemoveIcon: C,
        showDownloadIcon: x,
        removeIcon: S,
        previewIcon: P,
        downloadIcon: $,
        progress: T,
        appendAction: E,
        itemRender: M,
        appendActionVisible: R
      } = e, N = E == null ? void 0 : E(), F = i.value;
      return m(ci, z(z({}, y.value), {}, {
        tag: "div"
      }), {
        default: () => [F.map((H) => {
          const {
            uid: I
          } = H;
          return m(ZD, {
            key: I,
            locale: v,
            prefixCls: d.value,
            file: H,
            items: F,
            progress: T,
            listType: g,
            isImgUrl: b,
            showPreviewIcon: O,
            showRemoveIcon: C,
            showDownloadIcon: x,
            onPreview: a,
            onDownload: l,
            onClose: s,
            removeIcon: S,
            previewIcon: P,
            downloadIcon: $,
            itemRender: M
          }, h(h({}, n), {
            iconRender: c,
            actionIconRender: u
          }));
        }), E ? en(m(QD, {
          key: "__ant_upload_appendAction"
        }, {
          default: () => N
        }), [[pn, !!R]]) : null]
      });
    };
  }
}), e9 = (e) => {
  const {
    componentCls: t,
    iconCls: n
  } = e;
  return {
    [`${t}-wrapper`]: {
      [`${t}-drag`]: {
        position: "relative",
        width: "100%",
        height: "100%",
        textAlign: "center",
        background: e.colorFillAlter,
        border: `${e.lineWidth}px dashed ${e.colorBorder}`,
        borderRadius: e.borderRadiusLG,
        cursor: "pointer",
        transition: `border-color ${e.motionDurationSlow}`,
        [t]: {
          padding: `${e.padding}px 0`
        },
        [`${t}-btn`]: {
          display: "table",
          width: "100%",
          height: "100%",
          outline: "none"
        },
        [`${t}-drag-container`]: {
          display: "table-cell",
          verticalAlign: "middle"
        },
        [`&:not(${t}-disabled):hover`]: {
          borderColor: e.colorPrimaryHover
        },
        [`p${t}-drag-icon`]: {
          marginBottom: e.margin,
          [n]: {
            color: e.colorPrimary,
            fontSize: e.uploadThumbnailSize
          }
        },
        [`p${t}-text`]: {
          margin: `0 0 ${e.marginXXS}px`,
          color: e.colorTextHeading,
          fontSize: e.fontSizeLG
        },
        [`p${t}-hint`]: {
          color: e.colorTextDescription,
          fontSize: e.fontSize
        },
        // ===================== Disabled =====================
        [`&${t}-disabled`]: {
          cursor: "not-allowed",
          [`p${t}-drag-icon ${n},
            p${t}-text,
            p${t}-hint
          `]: {
            color: e.colorTextDisabled
          }
        }
      }
    }
  };
}, t9 = (e) => {
  const {
    componentCls: t,
    antCls: n,
    iconCls: o,
    fontSize: r,
    lineHeight: i
  } = e, a = `${t}-list-item`, l = `${a}-actions`, s = `${a}-action`, c = Math.round(r * i);
  return {
    [`${t}-wrapper`]: {
      [`${t}-list`]: h(h({}, qr()), {
        lineHeight: e.lineHeight,
        [a]: {
          position: "relative",
          height: e.lineHeight * r,
          marginTop: e.marginXS,
          fontSize: r,
          display: "flex",
          alignItems: "center",
          transition: `background-color ${e.motionDurationSlow}`,
          "&:hover": {
            backgroundColor: e.controlItemBgHover
          },
          [`${a}-name`]: h(h({}, En), {
            padding: `0 ${e.paddingXS}px`,
            lineHeight: i,
            flex: "auto",
            transition: `all ${e.motionDurationSlow}`
          }),
          [l]: {
            [s]: {
              opacity: 0
            },
            [`${s}${n}-btn-sm`]: {
              height: c,
              border: 0,
              lineHeight: 1,
              // FIXME: should not override small button
              "> span": {
                transform: "scale(1)"
              }
            },
            [`
              ${s}:focus,
              &.picture ${s}
            `]: {
              opacity: 1
            },
            [o]: {
              color: e.colorTextDescription,
              transition: `all ${e.motionDurationSlow}`
            },
            [`&:hover ${o}`]: {
              color: e.colorText
            }
          },
          [`${t}-icon ${o}`]: {
            color: e.colorTextDescription,
            fontSize: r
          },
          [`${a}-progress`]: {
            position: "absolute",
            bottom: -e.uploadProgressOffset,
            width: "100%",
            paddingInlineStart: r + e.paddingXS,
            fontSize: r,
            lineHeight: 0,
            pointerEvents: "none",
            "> div": {
              margin: 0
            }
          }
        },
        [`${a}:hover ${s}`]: {
          opacity: 1,
          color: e.colorText
        },
        [`${a}-error`]: {
          color: e.colorError,
          [`${a}-name, ${t}-icon ${o}`]: {
            color: e.colorError
          },
          [l]: {
            [`${o}, ${o}:hover`]: {
              color: e.colorError
            },
            [s]: {
              opacity: 1
            }
          }
        },
        [`${t}-list-item-container`]: {
          transition: `opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,
          // For smooth removing animation
          "&::before": {
            display: "table",
            width: 0,
            height: 0,
            content: '""'
          }
        }
      })
    }
  };
}, Lg = new Se("uploadAnimateInlineIn", {
  from: {
    width: 0,
    height: 0,
    margin: 0,
    padding: 0,
    opacity: 0
  }
}), Ng = new Se("uploadAnimateInlineOut", {
  to: {
    width: 0,
    height: 0,
    margin: 0,
    padding: 0,
    opacity: 0
  }
}), n9 = (e) => {
  const {
    componentCls: t
  } = e, n = `${t}-animate-inline`;
  return [{
    [`${t}-wrapper`]: {
      [`${n}-appear, ${n}-enter, ${n}-leave`]: {
        animationDuration: e.motionDurationSlow,
        animationTimingFunction: e.motionEaseInOutCirc,
        animationFillMode: "forwards"
      },
      [`${n}-appear, ${n}-enter`]: {
        animationName: Lg
      },
      [`${n}-leave`]: {
        animationName: Ng
      }
    }
  }, Lg, Ng];
}, o9 = (e) => {
  const {
    componentCls: t,
    iconCls: n,
    uploadThumbnailSize: o,
    uploadProgressOffset: r
  } = e, i = `${t}-list`, a = `${i}-item`;
  return {
    [`${t}-wrapper`]: {
      // ${listCls} 增加优先级
      [`${i}${i}-picture, ${i}${i}-picture-card`]: {
        [a]: {
          position: "relative",
          height: o + e.lineWidth * 2 + e.paddingXS * 2,
          padding: e.paddingXS,
          border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
          borderRadius: e.borderRadiusLG,
          "&:hover": {
            background: "transparent"
          },
          [`${a}-thumbnail`]: h(h({}, En), {
            width: o,
            height: o,
            lineHeight: `${o + e.paddingSM}px`,
            textAlign: "center",
            flex: "none",
            [n]: {
              fontSize: e.fontSizeHeading2,
              color: e.colorPrimary
            },
            img: {
              display: "block",
              width: "100%",
              height: "100%",
              overflow: "hidden"
            }
          }),
          [`${a}-progress`]: {
            bottom: r,
            width: `calc(100% - ${e.paddingSM * 2}px)`,
            marginTop: 0,
            paddingInlineStart: o + e.paddingXS
          }
        },
        [`${a}-error`]: {
          borderColor: e.colorError,
          // Adjust the color of the error icon : https://github.com/ant-design/ant-design/pull/24160
          [`${a}-thumbnail ${n}`]: {
            "svg path[fill='#e6f7ff']": {
              fill: e.colorErrorBg
            },
            "svg path[fill='#1890ff']": {
              fill: e.colorError
            }
          }
        },
        [`${a}-uploading`]: {
          borderStyle: "dashed",
          [`${a}-name`]: {
            marginBottom: r
          }
        }
      }
    }
  };
}, r9 = (e) => {
  const {
    componentCls: t,
    iconCls: n,
    fontSizeLG: o,
    colorTextLightSolid: r
  } = e, i = `${t}-list`, a = `${i}-item`, l = e.uploadPicCardSize;
  return {
    [`${t}-wrapper${t}-picture-card-wrapper`]: h(h({}, qr()), {
      display: "inline-block",
      width: "100%",
      [`${t}${t}-select`]: {
        width: l,
        height: l,
        marginInlineEnd: e.marginXS,
        marginBottom: e.marginXS,
        textAlign: "center",
        verticalAlign: "top",
        backgroundColor: e.colorFillAlter,
        border: `${e.lineWidth}px dashed ${e.colorBorder}`,
        borderRadius: e.borderRadiusLG,
        cursor: "pointer",
        transition: `border-color ${e.motionDurationSlow}`,
        [`> ${t}`]: {
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          height: "100%",
          textAlign: "center"
        },
        [`&:not(${t}-disabled):hover`]: {
          borderColor: e.colorPrimary
        }
      },
      // list
      [`${i}${i}-picture-card`]: {
        [`${i}-item-container`]: {
          display: "inline-block",
          width: l,
          height: l,
          marginBlock: `0 ${e.marginXS}px`,
          marginInline: `0 ${e.marginXS}px`,
          verticalAlign: "top"
        },
        "&::after": {
          display: "none"
        },
        [a]: {
          height: "100%",
          margin: 0,
          "&::before": {
            position: "absolute",
            zIndex: 1,
            width: `calc(100% - ${e.paddingXS * 2}px)`,
            height: `calc(100% - ${e.paddingXS * 2}px)`,
            backgroundColor: e.colorBgMask,
            opacity: 0,
            transition: `all ${e.motionDurationSlow}`,
            content: '" "'
          }
        },
        [`${a}:hover`]: {
          [`&::before, ${a}-actions`]: {
            opacity: 1
          }
        },
        [`${a}-actions`]: {
          position: "absolute",
          insetInlineStart: 0,
          zIndex: 10,
          width: "100%",
          whiteSpace: "nowrap",
          textAlign: "center",
          opacity: 0,
          transition: `all ${e.motionDurationSlow}`,
          [`${n}-eye, ${n}-download, ${n}-delete`]: {
            zIndex: 10,
            width: o,
            margin: `0 ${e.marginXXS}px`,
            fontSize: o,
            cursor: "pointer",
            transition: `all ${e.motionDurationSlow}`
          }
        },
        [`${a}-actions, ${a}-actions:hover`]: {
          [`${n}-eye, ${n}-download, ${n}-delete`]: {
            color: new Fe(r).setAlpha(0.65).toRgbString(),
            "&:hover": {
              color: r
            }
          }
        },
        [`${a}-thumbnail, ${a}-thumbnail img`]: {
          position: "static",
          display: "block",
          width: "100%",
          height: "100%",
          objectFit: "contain"
        },
        [`${a}-name`]: {
          display: "none",
          textAlign: "center"
        },
        [`${a}-file + ${a}-name`]: {
          position: "absolute",
          bottom: e.margin,
          display: "block",
          width: `calc(100% - ${e.paddingXS * 2}px)`
        },
        [`${a}-uploading`]: {
          [`&${a}`]: {
            backgroundColor: e.colorFillAlter
          },
          [`&::before, ${n}-eye, ${n}-download, ${n}-delete`]: {
            display: "none"
          }
        },
        [`${a}-progress`]: {
          bottom: e.marginXL,
          width: `calc(100% - ${e.paddingXS * 2}px)`,
          paddingInlineStart: 0
        }
      }
    })
  };
}, i9 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [`${t}-rtl`]: {
      direction: "rtl"
    }
  };
}, a9 = (e) => {
  const {
    componentCls: t,
    colorTextDisabled: n
  } = e;
  return {
    [`${t}-wrapper`]: h(h({}, Ue(e)), {
      [t]: {
        outline: 0,
        "input[type='file']": {
          cursor: "pointer"
        }
      },
      [`${t}-select`]: {
        display: "inline-block"
      },
      [`${t}-disabled`]: {
        color: n,
        cursor: "not-allowed"
      }
    })
  };
}, l9 = We("Upload", (e) => {
  const {
    fontSizeHeading3: t,
    fontSize: n,
    lineHeight: o,
    lineWidth: r,
    controlHeightLG: i
  } = e, a = Math.round(n * o), l = Me(e, {
    uploadThumbnailSize: t * 2,
    uploadProgressOffset: a / 2 + r,
    uploadPicCardSize: i * 2.55
  });
  return [a9(l), e9(l), o9(l), r9(l), t9(l), n9(l), i9(l), Ku(l)];
});
var s9 = function(e, t, n, o) {
  function r(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(o.next(u));
      } catch (d) {
        a(d);
      }
    }
    function s(u) {
      try {
        c(o.throw(u));
      } catch (d) {
        a(d);
      }
    }
    function c(u) {
      u.done ? i(u.value) : r(u.value).then(l, s);
    }
    c((o = o.apply(e, t || [])).next());
  });
}, c9 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const Tr = `__LIST_IGNORE_${Date.now()}__`, pa = q({
  compatConfig: {
    MODE: 3
  },
  name: "AUpload",
  inheritAttrs: !1,
  props: Ze(Yb(), {
    type: "select",
    multiple: !1,
    action: "",
    data: {},
    accept: "",
    showUploadList: !0,
    listType: "text",
    supportServerRender: !0
  }),
  setup(e, t) {
    let {
      slots: n,
      attrs: o,
      expose: r
    } = t;
    const i = gi(), {
      prefixCls: a,
      direction: l,
      disabled: s
    } = Ee("upload", e), [c, u] = l9(a), d = mo(), f = w(() => {
      var R;
      return (R = s.value) !== null && R !== void 0 ? R : d.value;
    }), [p, y] = Mn(e.defaultFileList || [], {
      value: Oe(e, "fileList"),
      postState: (R) => {
        const N = Date.now();
        return (R ?? []).map((F, H) => (!F.uid && !Object.isFrozen(F) && (F.uid = `__AUTO__${N}_${H}__`), F));
      }
    }), g = Z("drop"), v = Z(null);
    be(() => {
      Tt(e.fileList !== void 0 || o.value === void 0, "Upload", "`value` is not a valid prop, do you mean `fileList`?"), Tt(e.transformFile === void 0, "Upload", "`transformFile` is deprecated. Please use `beforeUpload` directly."), Tt(e.remove === void 0, "Upload", "`remove` props is deprecated. Please use `remove` event.");
    });
    const b = (R, N, F) => {
      var H, I;
      let A = [...N];
      e.maxCount === 1 ? A = A.slice(-1) : e.maxCount && (A = A.slice(0, e.maxCount)), y(A);
      const j = {
        file: R,
        fileList: A
      };
      F && (j.event = F), (H = e["onUpdate:fileList"]) === null || H === void 0 || H.call(e, j.fileList), (I = e.onChange) === null || I === void 0 || I.call(e, j), i.onFieldChange();
    }, O = (R, N) => s9(this, void 0, void 0, function* () {
      const {
        beforeUpload: F,
        transformFile: H
      } = e;
      let I = R;
      if (F) {
        const A = yield F(R, N);
        if (A === !1)
          return !1;
        if (delete R[Tr], A === Tr)
          return Object.defineProperty(R, Tr, {
            value: !0,
            configurable: !0
          }), !1;
        typeof A == "object" && A && (I = A);
      }
      return H && (I = yield H(I)), I;
    }), C = (R) => {
      const N = R.filter((I) => !I.file[Tr]);
      if (!N.length)
        return;
      const F = N.map((I) => Gi(I.file));
      let H = [...p.value];
      F.forEach((I) => {
        H = Ui(I, H);
      }), F.forEach((I, A) => {
        let j = I;
        if (N[A].parsedFile)
          I.status = "uploading";
        else {
          const {
            originFileObj: L
          } = I;
          let D;
          try {
            D = new File([L], L.name, {
              type: L.type
            });
          } catch {
            D = new Blob([L], {
              type: L.type
            }), D.name = L.name, D.lastModifiedDate = /* @__PURE__ */ new Date(), D.lastModified = (/* @__PURE__ */ new Date()).getTime();
          }
          D.uid = I.uid, j = D;
        }
        b(j, H);
      });
    }, x = (R, N, F) => {
      try {
        typeof R == "string" && (R = JSON.parse(R));
      } catch {
      }
      if (!Ps(N, p.value))
        return;
      const H = Gi(N);
      H.status = "done", H.percent = 100, H.response = R, H.xhr = F;
      const I = Ui(H, p.value);
      b(H, I);
    }, S = (R, N) => {
      if (!Ps(N, p.value))
        return;
      const F = Gi(N);
      F.status = "uploading", F.percent = R.percent;
      const H = Ui(F, p.value);
      b(F, H, R);
    }, P = (R, N, F) => {
      if (!Ps(F, p.value))
        return;
      const H = Gi(F);
      H.error = R, H.response = N, H.status = "error";
      const I = Ui(H, p.value);
      b(H, I);
    }, $ = (R) => {
      let N;
      const F = e.onRemove || e.remove;
      Promise.resolve(typeof F == "function" ? F(R) : F).then((H) => {
        var I, A;
        if (H === !1)
          return;
        const j = kD(R, p.value);
        j && (N = h(h({}, R), {
          status: "removed"
        }), (I = p.value) === null || I === void 0 || I.forEach((L) => {
          const D = N.uid !== void 0 ? "uid" : "name";
          L[D] === N[D] && !Object.isFrozen(L) && (L.status = "removed");
        }), (A = v.value) === null || A === void 0 || A.abort(N), b(N, j));
      });
    }, T = (R) => {
      var N;
      g.value = R.type, R.type === "drop" && ((N = e.onDrop) === null || N === void 0 || N.call(e, R));
    };
    r({
      onBatchStart: C,
      onSuccess: x,
      onProgress: S,
      onError: P,
      fileList: p,
      upload: v
    });
    const [E] = Jv("Upload", cn.Upload, w(() => e.locale)), M = (R, N) => {
      const {
        removeIcon: F,
        previewIcon: H,
        downloadIcon: I,
        previewFile: A,
        onPreview: j,
        onDownload: L,
        isImageUrl: D,
        progress: _,
        itemRender: V,
        iconRender: J,
        showUploadList: oe
      } = e, {
        showDownloadIcon: re,
        showPreviewIcon: Q,
        showRemoveIcon: U
      } = typeof oe == "boolean" ? {} : oe;
      return oe ? m(JD, {
        prefixCls: a.value,
        listType: e.listType,
        items: p.value,
        previewFile: A,
        onPreview: j,
        onDownload: L,
        onRemove: $,
        showRemoveIcon: !f.value && U,
        showPreviewIcon: Q,
        showDownloadIcon: re,
        removeIcon: F,
        previewIcon: H,
        downloadIcon: I,
        iconRender: J,
        locale: E.value,
        isImageUrl: D,
        progress: _,
        itemRender: V,
        appendActionVisible: N,
        appendAction: R
      }, h({}, n)) : R == null ? void 0 : R();
    };
    return () => {
      var R, N, F;
      const {
        listType: H,
        type: I
      } = e, {
        class: A,
        style: j
      } = o, L = c9(o, ["class", "style"]), D = h(h(h({
        onBatchStart: C,
        onError: P,
        onProgress: S,
        onSuccess: x
      }, L), e), {
        id: (R = e.id) !== null && R !== void 0 ? R : i.id.value,
        prefixCls: a.value,
        beforeUpload: O,
        onChange: void 0,
        disabled: f.value
      });
      delete D.remove, (!n.default || f.value) && delete D.id;
      const _ = {
        [`${a.value}-rtl`]: l.value === "rtl"
      };
      if (I === "drag") {
        const re = ie(a.value, {
          [`${a.value}-drag`]: !0,
          [`${a.value}-drag-uploading`]: p.value.some((Q) => Q.status === "uploading"),
          [`${a.value}-drag-hover`]: g.value === "dragover",
          [`${a.value}-disabled`]: f.value,
          [`${a.value}-rtl`]: l.value === "rtl"
        }, o.class, u.value);
        return c(m("span", z(z({}, o), {}, {
          class: ie(`${a.value}-wrapper`, _, A, u.value)
        }), [m("div", {
          class: re,
          onDrop: T,
          onDragover: T,
          onDragleave: T,
          style: o.style
        }, [m(Ag, z(z({}, D), {}, {
          ref: v,
          class: `${a.value}-btn`
        }), z({
          default: () => [m("div", {
            class: `${a.value}-drag-container`
          }, [(N = n.default) === null || N === void 0 ? void 0 : N.call(n)])]
        }, n))]), M()]));
      }
      const V = ie(a.value, {
        [`${a.value}-select`]: !0,
        [`${a.value}-select-${H}`]: !0,
        [`${a.value}-disabled`]: f.value,
        [`${a.value}-rtl`]: l.value === "rtl"
      }), J = tt((F = n.default) === null || F === void 0 ? void 0 : F.call(n)), oe = (re) => m("div", {
        class: V,
        style: re
      }, [m(Ag, z(z({}, D), {}, {
        ref: v
      }), n)]);
      return c(H === "picture-card" ? m("span", z(z({}, o), {}, {
        class: ie(`${a.value}-wrapper`, `${a.value}-picture-card-wrapper`, _, o.class, u.value)
      }), [M(oe, !!(J && J.length))]) : m("span", z(z({}, o), {}, {
        class: ie(`${a.value}-wrapper`, _, o.class, u.value)
      }), [oe(J && J.length ? void 0 : {
        display: "none"
      }), M()]));
    };
  }
});
var jg = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const Is = q({
  compatConfig: {
    MODE: 3
  },
  name: "AUploadDragger",
  inheritAttrs: !1,
  props: Yb(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    return () => {
      const {
        height: r
      } = e, i = jg(e, ["height"]), {
        style: a
      } = o, l = jg(o, ["style"]), s = h(h(h({}, i), l), {
        type: "drag",
        style: h(h({}, a), {
          height: typeof r == "number" ? `${r}px` : r
        })
      });
      return m(pa, s, n);
    };
  }
}), Qb = h(pa, {
  Dragger: Is,
  LIST_IGNORE: Tr,
  install(e) {
    return e.component(pa.name, pa), e.component(Is.name, Is), e;
  }
});
var u9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z" } }] }, name: "arrow-up", theme: "outlined" };
function zg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      d9(e, r, n[r]);
    });
  }
  return e;
}
function d9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Ed = function(t, n) {
  var o = zg({}, t, n.attrs);
  return m(de, zg({}, o, {
    icon: u9
  }), null);
};
Ed.displayName = "ArrowUpOutlined";
Ed.inheritAttrs = !1;
var f9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z" } }, { tag: "path", attrs: { d: "M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z" } }] }, name: "audio-muted", theme: "outlined" };
function Bg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      p9(e, r, n[r]);
    });
  }
  return e;
}
function p9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Ad = function(t, n) {
  var o = Bg({}, t, n.attrs);
  return m(de, Bg({}, o, {
    icon: f9
  }), null);
};
Ad.displayName = "AudioMutedOutlined";
Ad.inheritAttrs = !1;
var m9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z" } }] }, name: "audio", theme: "outlined" };
function Hg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      g9(e, r, n[r]);
    });
  }
  return e;
}
function g9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Md = function(t, n) {
  var o = Hg({}, t, n.attrs);
  return m(de, Hg({}, o, {
    icon: m9
  }), null);
};
Md.displayName = "AudioOutlined";
Md.inheritAttrs = !1;
var v9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" } }] }, name: "clear", theme: "outlined" };
function _g(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      h9(e, r, n[r]);
    });
  }
  return e;
}
function h9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Rd = function(t, n) {
  var o = _g({}, t, n.attrs);
  return m(de, _g({}, o, {
    icon: v9
  }), null);
};
Rd.displayName = "ClearOutlined";
Rd.inheritAttrs = !1;
var y9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z" } }] }, name: "file-excel", theme: "filled" };
function Vg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      b9(e, r, n[r]);
    });
  }
  return e;
}
function b9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Dd = function(t, n) {
  var o = Vg({}, t, n.attrs);
  return m(de, Vg({}, o, {
    icon: y9
  }), null);
};
Dd.displayName = "FileExcelFilled";
Dd.inheritAttrs = !1;
var S9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z" } }] }, name: "file-image", theme: "filled" };
function Wg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      C9(e, r, n[r]);
    });
  }
  return e;
}
function C9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Fd = function(t, n) {
  var o = Wg({}, t, n.attrs);
  return m(de, Wg({}, o, {
    icon: S9
  }), null);
};
Fd.displayName = "FileImageFilled";
Fd.inheritAttrs = !1;
var $9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z" } }] }, name: "file-markdown", theme: "filled" };
function kg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      w9(e, r, n[r]);
    });
  }
  return e;
}
function w9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Ld = function(t, n) {
  var o = kg({}, t, n.attrs);
  return m(de, kg({}, o, {
    icon: $9
  }), null);
};
Ld.displayName = "FileMarkdownFilled";
Ld.inheritAttrs = !1;
var x9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z" } }] }, name: "file-pdf", theme: "filled" };
function Xg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      O9(e, r, n[r]);
    });
  }
  return e;
}
function O9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Nd = function(t, n) {
  var o = Xg({}, t, n.attrs);
  return m(de, Xg({}, o, {
    icon: x9
  }), null);
};
Nd.displayName = "FilePdfFilled";
Nd.inheritAttrs = !1;
var P9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z" } }] }, name: "file-ppt", theme: "filled" };
function Kg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      I9(e, r, n[r]);
    });
  }
  return e;
}
function I9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var jd = function(t, n) {
  var o = Kg({}, t, n.attrs);
  return m(de, Kg({}, o, {
    icon: P9
  }), null);
};
jd.displayName = "FilePptFilled";
jd.inheritAttrs = !1;
var T9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z" } }] }, name: "file-text", theme: "filled" };
function Gg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      E9(e, r, n[r]);
    });
  }
  return e;
}
function E9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Va = function(t, n) {
  var o = Gg({}, t, n.attrs);
  return m(de, Gg({}, o, {
    icon: T9
  }), null);
};
Va.displayName = "FileTextFilled";
Va.inheritAttrs = !1;
var A9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z" } }] }, name: "file-word", theme: "filled" };
function Ug(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      M9(e, r, n[r]);
    });
  }
  return e;
}
function M9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var zd = function(t, n) {
  var o = Ug({}, t, n.attrs);
  return m(de, Ug({}, o, {
    icon: A9
  }), null);
};
zd.displayName = "FileWordFilled";
zd.inheritAttrs = !1;
var R9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z" } }] }, name: "file-zip", theme: "filled" };
function qg(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, o = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
      return Object.getOwnPropertyDescriptor(n, r).enumerable;
    }))), o.forEach(function(r) {
      D9(e, r, n[r]);
    });
  }
  return e;
}
function D9(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var Bd = function(t, n) {
  var o = qg({}, t, n.attrs);
  return m(de, qg({}, o, {
    icon: R9
  }), null);
};
Bd.displayName = "FileZipFilled";
Bd.inheritAttrs = !1;
const Jb = ["wrap", "nowrap", "wrap-reverse"], e1 = ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"], t1 = ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"], F9 = (e, t) => {
  const n = {};
  return Jb.forEach((o) => {
    n[`${e}-wrap-${o}`] = t.wrap === o;
  }), n;
}, L9 = (e, t) => {
  const n = {};
  return t1.forEach((o) => {
    n[`${e}-align-${o}`] = t.align === o;
  }), n[`${e}-align-stretch`] = !t.align && !!t.vertical, n;
}, N9 = (e, t) => {
  const n = {};
  return e1.forEach((o) => {
    n[`${e}-justify-${o}`] = t.justify === o;
  }), n;
};
function j9(e, t) {
  return ie(h(h(h({}, F9(e, t)), L9(e, t)), N9(e, t)));
}
const z9 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      display: "flex",
      "&-vertical": {
        flexDirection: "column"
      },
      "&-rtl": {
        direction: "rtl"
      },
      "&:empty": {
        display: "none"
      }
    }
  };
}, B9 = (e) => {
  const {
    componentCls: t
  } = e;
  return {
    [t]: {
      "&-gap-small": {
        gap: e.flexGapSM
      },
      "&-gap-middle": {
        gap: e.flexGap
      },
      "&-gap-large": {
        gap: e.flexGapLG
      }
    }
  };
}, H9 = (e) => {
  const {
    componentCls: t
  } = e, n = {};
  return Jb.forEach((o) => {
    n[`${t}-wrap-${o}`] = {
      flexWrap: o
    };
  }), n;
}, _9 = (e) => {
  const {
    componentCls: t
  } = e, n = {};
  return t1.forEach((o) => {
    n[`${t}-align-${o}`] = {
      alignItems: o
    };
  }), n;
}, V9 = (e) => {
  const {
    componentCls: t
  } = e, n = {};
  return e1.forEach((o) => {
    n[`${t}-justify-${o}`] = {
      justifyContent: o
    };
  }), n;
}, W9 = We("Flex", (e) => {
  const t = Me(e, {
    flexGapSM: e.paddingXS,
    flexGap: e.padding,
    flexGapLG: e.paddingLG
  });
  return [z9(t), B9(t), H9(t), _9(t), V9(t)];
});
function Yg(e) {
  return ["small", "middle", "large"].includes(e);
}
const k9 = () => ({
  prefixCls: Xe(),
  vertical: Ie(),
  wrap: Xe(),
  justify: Xe(),
  align: Xe(),
  flex: it([Number, String]),
  gap: it([Number, String]),
  component: et()
});
var X9 = function(e, t) {
  var n = {};
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
    t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
  return n;
};
const K9 = q({
  name: "AFlex",
  inheritAttrs: !1,
  props: k9(),
  setup(e, t) {
    let {
      slots: n,
      attrs: o
    } = t;
    const {
      flex: r,
      direction: i
    } = ui(), {
      prefixCls: a
    } = Ee("flex", e), [l, s] = W9(a), c = w(() => {
      var u;
      return [a.value, s.value, j9(a.value, e), {
        [`${a.value}-rtl`]: i.value === "rtl",
        [`${a.value}-gap-${e.gap}`]: Yg(e.gap),
        [`${a.value}-vertical`]: (u = e.vertical) !== null && u !== void 0 ? u : r == null ? void 0 : r.value.vertical
      }];
    });
    return () => {
      var u;
      const {
        flex: d,
        gap: f,
        component: p = "div"
      } = e, y = X9(e, ["flex", "gap", "component"]), g = {};
      return d && (g.flex = d), f && !Yg(f) && (g.gap = `${f}px`), l(m(p, z({
        class: [o.class, c.value],
        style: [o.style, g]
      }, _e(y, ["justify", "wrap", "align", "vertical"])), {
        default: () => [(u = n.default) === null || u === void 0 ? void 0 : u.call(n)]
      }));
    };
  }
}), jr = Ln(K9), Sn = (e, t) => new Fe(e).setAlpha(t).toRgbString(), Io = (e, t) => new Fe(e).lighten(t).toHexString(), G9 = (e) => {
  const t = un(e, {
    theme: "dark"
  });
  return {
    1: t[0],
    2: t[1],
    3: t[2],
    4: t[3],
    5: t[6],
    6: t[5],
    7: t[4],
    8: t[6],
    9: t[5],
    10: t[4]
    // 8: colors[9],
    // 9: colors[8],
    // 10: colors[7],
  };
}, U9 = (e, t) => {
  const n = e || "#000", o = t || "#fff";
  return {
    colorBgBase: n,
    colorTextBase: o,
    colorText: Sn(o, 0.85),
    colorTextSecondary: Sn(o, 0.65),
    colorTextTertiary: Sn(o, 0.45),
    colorTextQuaternary: Sn(o, 0.25),
    colorFill: Sn(o, 0.18),
    colorFillSecondary: Sn(o, 0.12),
    colorFillTertiary: Sn(o, 0.08),
    colorFillQuaternary: Sn(o, 0.04),
    colorBgElevated: Io(n, 12),
    colorBgContainer: Io(n, 8),
    colorBgLayout: Io(n, 0),
    colorBgSpotlight: Io(n, 26),
    colorBorder: Io(n, 26),
    colorBorderSecondary: Io(n, 19)
  };
}, q9 = (e, t) => {
  const n = Object.keys(nu).map((r) => {
    const i = un(e[r], {
      theme: "dark"
    });
    return new Array(10).fill(1).reduce((a, l, s) => (a[`${r}-${s + 1}`] = i[s], a), {});
  }).reduce((r, i) => (r = h(h({}, r), i), r), {}), o = t ?? el(e);
  return h(h(h({}, o), n), Oh(e, {
    generateColorPalettes: G9,
    generateNeutralColorPalettes: U9
  }));
};
function Y9(e) {
  const {
    sizeUnit: t,
    sizeStep: n
  } = e, o = n - 2;
  return {
    sizeXXL: t * (o + 10),
    sizeXL: t * (o + 6),
    sizeLG: t * (o + 2),
    sizeMD: t * (o + 2),
    sizeMS: t * (o + 1),
    size: t * o,
    sizeSM: t * o,
    sizeXS: t * (o - 1),
    sizeXXS: t * (o - 1)
  };
}
const Z9 = (e, t) => {
  const n = t ?? el(e), o = n.fontSizeSM, r = n.controlHeight - 4;
  return h(h(h(h(h({}, n), Y9(t ?? e)), Ph(o)), {
    // controlHeight
    controlHeight: r
  }), xh(h(h({}, n), {
    controlHeight: r
  })));
};
function Q9() {
  const [e, t, n] = go();
  return {
    theme: e,
    token: t,
    hashId: n
  };
}
const ai = {
  /** @private Test Usage. Do not use in production. */
  defaultConfig: xa,
  /** Default seedToken */
  defaultSeed: xa.token,
  useToken: Q9,
  defaultAlgorithm: el,
  darkAlgorithm: q9,
  compactAlgorithm: Z9
}, J9 = /* @__PURE__ */ q({
  name: "AXProvider",
  inheritAttrs: !1,
  __name: "index",
  props: {
    bubble: null,
    conversations: null,
    prompts: null,
    sender: null,
    suggestion: null,
    thoughtChain: null,
    attachments: null,
    welcome: null,
    iconPrefixCls: null,
    getTargetContainer: null,
    getPopupContainer: null,
    prefixCls: null,
    getPrefixCls: null,
    renderEmpty: null,
    transformCellText: null,
    csp: null,
    input: null,
    autoInsertSpaceInButton: null,
    locale: null,
    pageHeader: null,
    componentSize: null,
    componentDisabled: null,
    direction: null,
    space: null,
    virtual: null,
    dropdownMatchSelectWidth: null,
    form: null,
    pagination: null,
    theme: null,
    select: null,
    wave: null
  },
  setup(e) {
    const t = dt(e, ["attachments", "bubble", "conversations", "prompts", "sender", "suggestion", "thoughtChain", "welcome"]), n = Nt(), o = w(() => ({
      attachments: e.attachments,
      bubble: e.bubble,
      conversations: e.conversations,
      prompts: e.prompts,
      sender: e.sender,
      suggestion: e.suggestion,
      thoughtChain: e.thoughtChain,
      welcome: e.welcome
    })), {
      theme: r
    } = pt(), i = w(() => ({
      ...(r == null ? void 0 : r.value) || {},
      ...t.theme
    })), a = w(() => {
      var l;
      return (l = n.default) == null ? void 0 : l.call(n);
    });
    return () => m(xS, {
      value: o.value
    }, {
      default: () => [m(ko, Ge(t, {
        theme: i.value
      }), {
        default: () => [a.value]
      })]
    });
  }
}), eF = {
  classNames: {},
  styles: {},
  className: "",
  style: {}
}, Bn = (e) => {
  const t = wS();
  return w(() => ({
    ...eF,
    ...se(t)[e]
  }));
};
function qe(e) {
  const t = typeof e == "function" ? e() : e, n = Z(t);
  function o(r) {
    n.value = r;
  }
  return [n, o];
}
function Xn(e) {
  return typeof e == "string";
}
const tF = (e, t, n, o) => {
  const [r, i] = qe(""), [a, l] = qe(1), s = w(() => t.value && Xn(e.value));
  return ee(e, () => {
    const u = se(r);
    i(e.value), !s.value && Xn(e.value) ? l(e.value.length) : Xn(e.value) && Xn(u) && e.value.indexOf(u) !== 0 && l(1);
  }, { immediate: !0 }), ee([a, t, e], (u, d, f) => {
    if (s.value && Xn(e.value) && se(a) < e.value.length) {
      const p = setTimeout(() => {
        l(se(a) + n.value);
      }, o.value);
      f(() => {
        clearTimeout(p);
      });
    }
  }, { immediate: !0 }), [w(() => s.value && Xn(e.value) ? e.value.slice(0, se(a)) : e.value), w(() => s.value && Xn(e.value) && se(a) < e.value.length)];
};
function nF(e) {
  const t = w(() => !!Re(e)), n = {
    step: 1,
    interval: 50,
    // set default suffix is empty
    suffix: null
  }, o = w(() => {
    const r = Re(e);
    return {
      ...n,
      ...typeof r == "object" ? r : {}
    };
  });
  return [
    t,
    w(() => o.value.step),
    w(() => o.value.interval),
    w(() => o.value.suffix)
  ];
}
const oF = /* @__PURE__ */ q({
  name: "AXBubbleLoading",
  __name: "loading",
  props: {
    prefixCls: null
  },
  setup(e) {
    return () => m("span", {
      class: `${e.prefixCls}-dot`
    }, [m("i", {
      class: `${e.prefixCls}-dot-item`,
      key: "item-1"
    }, null), m("i", {
      class: `${e.prefixCls}-dot-item`,
      key: "item-2"
    }, null), m("i", {
      class: `${e.prefixCls}-dot-item`,
      key: "item-3"
    }, null)]);
  }
}), Zg = "%";
class rF {
  constructor(t) {
    this.cache = /* @__PURE__ */ new Map(), this.instanceId = t;
  }
  get(t) {
    return this.cache.get(Array.isArray(t) ? t.join(Zg) : t) || null;
  }
  update(t, n) {
    const o = Array.isArray(t) ? t.join(Zg) : t, r = this.cache.get(o), i = n(r);
    i === null ? this.cache.delete(o) : this.cache.set(o, i);
  }
}
const Hd = "data-token-hash", ln = "data-css-hash", Fo = "__cssinjs_instance__";
function li() {
  const e = Math.random().toString(12).slice(2);
  if (typeof document < "u" && document.head && document.body) {
    const t = document.body.querySelectorAll(`style[${ln}]`) || [], {
      firstChild: n
    } = document.head;
    Array.from(t).forEach((r) => {
      r[Fo] = r[Fo] || e, r[Fo] === e && document.head.insertBefore(r, n);
    });
    const o = {};
    Array.from(document.querySelectorAll(`style[${ln}]`)).forEach((r) => {
      var a;
      const i = r.getAttribute(ln);
      o[i] ? r[Fo] === e && ((a = r.parentNode) == null || a.removeChild(r)) : o[i] = !0;
    });
  }
  return new rF(e);
}
const n1 = Symbol("StyleContextKey"), iF = () => {
  var n, o, r;
  const e = lt();
  let t;
  if (e && e.appContext) {
    const i = (r = (o = (n = e.appContext) == null ? void 0 : n.config) == null ? void 0 : o.globalProperties) == null ? void 0 : r.__ANTDV_CSSINJS_CACHE__;
    i ? t = i : (t = li(), e.appContext.config.globalProperties && (e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = t));
  } else
    t = li();
  return t;
}, o1 = {
  cache: li(),
  defaultCache: !0,
  hashPriority: "low"
}, Ti = () => {
  const e = iF();
  return Ce(n1, K({
    ...o1,
    cache: e
  }));
}, r1 = (e) => {
  const t = Ti(), n = K({
    ...o1,
    cache: li()
  });
  return ee([() => se(e), t], () => {
    const o = {
      ...t.value
    }, r = se(e);
    Object.keys(r).forEach((a) => {
      const l = r[a];
      r[a] !== void 0 && (o[a] = l);
    });
    const {
      cache: i
    } = r;
    o.cache = o.cache || li(), o.defaultCache = !i && t.value.defaultCache, n.value = o;
  }, {
    immediate: !0
  }), $e(n1, n), n;
}, aF = () => ({
  autoClear: zl(),
  /** @private Test only. Not work in production. */
  mock: af(),
  /**
   * Only set when you need ssr to extract style on you own.
   * If not provided, it will auto create <style /> on the end of Provider in server side.
   */
  cache: mn(),
  /** Tell children that this context is default generated context */
  defaultCache: zl(),
  /** Use `:where` selector to reduce hashId css selector priority */
  hashPriority: af(),
  /** Tell cssinjs where to inject style in */
  container: CS(),
  /** Component wil render inline  `<style />` for fallback in SSR. Not recommend. */
  ssrInline: zl(),
  /** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
  transformers: rf(),
  /**
   * Linters to lint css before inject in document.
   * Styles will be linted after transforming.
   * Please note that `linters` do not support dynamic update.
   */
  linters: rf()
}), i1 = bS(/* @__PURE__ */ q({
  name: "AXStyleProvider",
  inheritAttrs: !1,
  props: aF(),
  setup(e, {
    slots: t
  }) {
    return r1(e), () => lo(
      vC,
      // @ts-ignore
      e,
      () => {
        var n;
        return (n = t.default) == null ? void 0 : n.call(t);
      }
    );
  }
})), lF = {
  useStyleInject: Ti,
  useStyleProvider: r1,
  StyleProvider: i1
};
function _d(e, t, n, o) {
  const r = Ti(), i = K(""), a = K();
  we(() => {
    i.value = [e, ...t.value].join("%");
  });
  const l = (s) => {
    r.value.cache.update(s, (c) => {
      const [u = 0, d] = c || [];
      return u - 1 === 0 ? (o == null || o(d, !1), null) : [u - 1, d];
    });
  };
  return ee(i, (s, c) => {
    c && l(c), r.value.cache.update(s, (u) => {
      const [d = 0, f] = u || [], y = f || n();
      return [d + 1, y];
    }), a.value = r.value.cache.get(i.value)[1];
  }, {
    immediate: !0
  }), Le(() => {
    l(i.value);
  }), a;
}
function fr() {
  return !!(typeof window < "u" && window.document && window.document.createElement);
}
function sF(e, t) {
  return e && e.contains ? e.contains(t) : !1;
}
const Qg = "data-vc-order", cF = "vc-util-key", Dc = /* @__PURE__ */ new Map();
function a1({ mark: e } = {}) {
  return e ? e.startsWith("data-") ? e : `data-${e}` : cF;
}
function Al(e) {
  return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
}
function uF(e) {
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
}
function l1(e) {
  return Array.from((Dc.get(e) || e).children).filter(
    (t) => t.tagName === "STYLE"
  );
}
function s1(e, t = {}) {
  if (!fr())
    return null;
  const { csp: n, prepend: o } = t, r = document.createElement("style");
  r.setAttribute(Qg, uF(o)), n != null && n.nonce && (r.nonce = n == null ? void 0 : n.nonce), r.innerHTML = e;
  const i = Al(t), { firstChild: a } = i;
  if (o) {
    if (o === "queue") {
      const l = l1(i).filter(
        (s) => ["prepend", "prependQueue"].includes(s.getAttribute(Qg))
      );
      if (l.length)
        return i.insertBefore(r, l[l.length - 1].nextSibling), r;
    }
    i.insertBefore(r, a);
  } else
    i.appendChild(r);
  return r;
}
function c1(e, t = {}) {
  const n = Al(t);
  return l1(n).find((o) => o.getAttribute(a1(t)) === e);
}
function Vd(e, t = {}) {
  const n = c1(e, t);
  n && Al(t).removeChild(n);
}
function dF(e, t) {
  const n = Dc.get(e);
  if (!n || !sF(document, n)) {
    const o = s1("", t), { parentNode: r } = o;
    Dc.set(e, r), e.removeChild(o);
  }
}
function Fc(e, t, n = {}) {
  var a, l, s;
  const o = Al(n);
  dF(o, n);
  const r = c1(t, n);
  if (r)
    return (a = n.csp) != null && a.nonce && r.nonce !== ((l = n.csp) == null ? void 0 : l.nonce) && (r.nonce = (s = n.csp) == null ? void 0 : s.nonce), r.innerHTML !== e && (r.innerHTML = e), r;
  const i = s1(e, n);
  return i.setAttribute(a1(n), t), i;
}
function fF(e, t) {
  if (e.length !== t.length)
    return !1;
  for (let n = 0; n < e.length; n++)
    if (e[n] !== t[n])
      return !1;
  return !0;
}
const jo = class jo {
  constructor() {
    this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
  }
  size() {
    return this.keys.length;
  }
  internalGet(t, n = !1) {
    let o = { map: this.cache };
    return t.forEach((r) => {
      var i;
      o ? o = (i = o == null ? void 0 : o.map) == null ? void 0 : i.get(r) : o = void 0;
    }), o != null && o.value && n && (o.value[1] = this.cacheCallTimes++), o == null ? void 0 : o.value;
  }
  get(t) {
    var n;
    return (n = this.internalGet(t, !0)) == null ? void 0 : n[0];
  }
  has(t) {
    return !!this.internalGet(t);
  }
  set(t, n) {
    if (!this.has(t)) {
      if (this.size() + 1 > jo.MAX_CACHE_SIZE + jo.MAX_CACHE_OFFSET) {
        const [r] = this.keys.reduce(
          (i, a) => {
            const [, l] = i;
            return this.internalGet(a)[1] < l ? [a, this.internalGet(a)[1]] : i;
          },
          [this.keys[0], this.cacheCallTimes]
        );
        this.delete(r);
      }
      this.keys.push(t);
    }
    let o = this.cache;
    t.forEach((r, i) => {
      if (i === t.length - 1)
        o.set(r, { value: [n, this.cacheCallTimes++] });
      else {
        const a = o.get(r);
        a ? a.map || (a.map = /* @__PURE__ */ new Map()) : o.set(r, { map: /* @__PURE__ */ new Map() }), o = o.get(r).map;
      }
    });
  }
  deleteByPath(t, n) {
    var i;
    const o = t.get(n[0]);
    if (n.length === 1)
      return o.map ? t.set(n[0], { map: o.map }) : t.delete(n[0]), (i = o.value) == null ? void 0 : i[0];
    const r = this.deleteByPath(o.map, n.slice(1));
    return (!o.map || o.map.size === 0) && !o.value && t.delete(n[0]), r;
  }
  delete(t) {
    if (this.has(t))
      return this.keys = this.keys.filter((n) => !fF(n, t)), this.deleteByPath(this.cache, t);
  }
};
jo.MAX_CACHE_SIZE = 20, jo.MAX_CACHE_OFFSET = 5;
let Lc = jo, Jg = {};
function pF(e, t) {
}
function mF(e, t, n) {
  Jg[n] || (Jg[n] = !0);
}
function gF(e, t) {
  mF(pF, e, t);
}
function vF() {
}
let hF = vF;
const yF = Symbol("WarningContext"), ev = K(), bF = (e) => {
  $e(yF, e), ee(
    e,
    () => {
      ev.value = se(e), Jt(ev);
    },
    { immediate: !0, deep: !0 }
  );
};
q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return bF(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
});
let tv = 0;
class u1 {
  constructor(t) {
    this.derivatives = Array.isArray(t) ? t : [t], this.id = tv, t.length === 0 && hF(
      t.length > 0
    ), tv += 1;
  }
  getDerivativeToken(t) {
    return this.derivatives.reduce(
      (n, o) => o(t, n),
      void 0
    );
  }
}
const Ts = new Lc();
function SF(e) {
  const t = Array.isArray(e) ? e : [e];
  return Ts.has(t) || Ts.set(t, new u1(t)), Ts.get(t);
}
const nv = /* @__PURE__ */ new WeakMap();
function Wa(e) {
  let t = nv.get(e) || "";
  return t || (Object.keys(e).forEach((n) => {
    const o = e[n];
    t += n, o instanceof u1 ? t += o.id : o && typeof o == "object" ? t += Wa(o) : t += o;
  }), nv.set(e, t)), t;
}
function CF(e, t) {
  return ir(`${t}_${Wa(e)}`);
}
const sn = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Wd = "_bAmBoO_";
function kd(e, t, n) {
  var o, r;
  if (fr()) {
    Fc(e, sn);
    const i = document.createElement("div");
    i.style.position = "fixed", i.style.left = "0", i.style.top = "0", t == null || t(i), document.body.appendChild(i);
    const a = n ? n(i) : (o = getComputedStyle(i).content) == null ? void 0 : o.includes(Wd);
    return (r = i.parentNode) == null || r.removeChild(i), Vd(sn), a;
  }
  return !1;
}
let Es;
function $F() {
  return Es === void 0 && (Es = kd(
    `@layer ${sn} { .${sn} { content: "${Wd}"!important; } }`,
    (e) => {
      e.className = sn;
    }
  )), Es;
}
let As;
function wF() {
  return As === void 0 && (As = kd(
    `:where(.${sn}) { content: "${Wd}"!important; }`,
    (e) => {
      e.className = sn;
    }
  )), As;
}
let Ms;
function xF() {
  return Ms === void 0 && (Ms = kd(
    `.${sn} { inset-block: 93px !important; }`,
    (e) => {
      e.className = sn;
    },
    (e) => getComputedStyle(e).bottom === "93px"
  )), Ms;
}
const OF = fr();
function kt(e) {
  return typeof e == "number" ? `${e}px` : e;
}
const ma = (e, t = "") => `--${t ? `${t}-` : ""}${e}`.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase(), PF = (e, t, n) => Object.keys(e).length ? `.${t}${n != null && n.scope ? `.${n.scope}` : ""}{${Object.entries(e).map(([o, r]) => `${o}:${r};`).join("")}}` : "", IF = (e, t, n) => {
  const o = {}, r = {};
  return Object.entries(e).forEach(([i, a]) => {
    var l, s, c;
    if ((l = n == null ? void 0 : n.preserve) != null && l[i])
      r[i] = a;
    else if ((typeof a == "string" || typeof a == "number") && !((s = n == null ? void 0 : n.ignore) != null && s[i])) {
      const u = ma(i, n == null ? void 0 : n.prefix);
      o[u] = typeof a == "number" && !((c = n == null ? void 0 : n.unitless) != null && c[i]) ? `${a}px` : String(a), r[i] = `var(${u})`;
    }
  }), [r, PF(o, t, { scope: n == null ? void 0 : n.scope })];
}, ov = {}, TF = "css", Yn = /* @__PURE__ */ new Map();
function EF(e) {
  Yn.set(e, (Yn.get(e) || 0) + 1);
}
function AF(e, t) {
  typeof document < "u" && document.querySelectorAll(`style[${Hd}="${e}"]`).forEach((o) => {
    var r;
    o[Fo] === t && ((r = o.parentNode) == null || r.removeChild(o));
  });
}
const MF = 0;
function RF(e, t) {
  Yn.set(e, (Yn.get(e) || 0) - 1);
  const n = Array.from(Yn.keys()), o = n.filter((r) => (Yn.get(r) || 0) <= 0);
  n.length - o.length > MF && o.forEach((r) => {
    AF(r, t), Yn.delete(r);
  });
}
const DF = (e, t, n, o) => {
  let i = {
    ...n == null ? void 0 : n.getDerivativeToken(e),
    ...t
  };
  return o && (i = o(i)), i;
};
function FF(e, t, n = Z({})) {
  const o = Ti(), r = w(() => Object.assign({}, ...t.value || [])), i = w(() => Wa(r.value)), a = w(() => {
    var s;
    return Wa(((s = n.value) == null ? void 0 : s.override) || ov);
  });
  return _d("token", w(() => {
    var s, c;
    return [((s = n.value) == null ? void 0 : s.salt) || "", (c = e.value) == null ? void 0 : c.id, i.value, a.value];
  }), () => {
    const {
      salt: s = "",
      override: c = ov,
      formatToken: u,
      getComputedToken: d
    } = n.value || {}, f = d ? d(r.value, c, e.value) : DF(r.value, c, e.value, u), p = CF(f, s);
    f._tokenKey = p, EF(p);
    const y = `${TF}-${ir(p)}`;
    return f._hashId = y, [f, y];
  }, (s) => {
    var c;
    RF(s[0]._tokenKey, (c = o.value) == null ? void 0 : c.cache.instanceId);
  });
}
var d1 = {
  animationIterationCount: 1,
  aspectRatio: 1,
  borderImageOutset: 1,
  borderImageSlice: 1,
  borderImageWidth: 1,
  boxFlex: 1,
  boxFlexGroup: 1,
  boxOrdinalGroup: 1,
  columnCount: 1,
  columns: 1,
  flex: 1,
  flexGrow: 1,
  flexPositive: 1,
  flexShrink: 1,
  flexNegative: 1,
  flexOrder: 1,
  gridRow: 1,
  gridRowEnd: 1,
  gridRowSpan: 1,
  gridRowStart: 1,
  gridColumn: 1,
  gridColumnEnd: 1,
  gridColumnSpan: 1,
  gridColumnStart: 1,
  msGridRow: 1,
  msGridRowSpan: 1,
  msGridColumn: 1,
  msGridColumnSpan: 1,
  fontWeight: 1,
  lineHeight: 1,
  opacity: 1,
  order: 1,
  orphans: 1,
  scale: 1,
  tabSize: 1,
  widows: 1,
  zIndex: 1,
  zoom: 1,
  WebkitLineClamp: 1,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
};
function Lo(e, t) {
  const { path: n, parentSelectors: o } = t;
  gF(
    !1,
    `[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${e}${o.length ? ` Selector info: ${o.join(" -> ")}` : ""}`
  );
}
function LF(e) {
  var o;
  return (((o = e.match(/:not\(([^)]*)\)/)) == null ? void 0 : o[1]) || "").split(/(\[[^[]*])|(?=[.#])/).filter((r) => r).length > 1;
}
function NF(e) {
  return e.parentSelectors.reduce((t, n) => t ? n.includes("&") ? n.replace(/&/g, t) : `${t} ${n}` : n, "");
}
const Vj = (e, t, n) => {
  const r = NF(n).match(/:not\([^)]*\)/g) || [];
  r.length > 0 && r.some(LF) && Lo("Concat ':not' selector not support in legacy browsers.", n);
}, Wj = (e, t, n) => {
  switch (e) {
    case "marginLeft":
    case "marginRight":
    case "paddingLeft":
    case "paddingRight":
    case "left":
    case "right":
    case "borderLeft":
    case "borderLeftWidth":
    case "borderLeftStyle":
    case "borderLeftColor":
    case "borderRight":
    case "borderRightWidth":
    case "borderRightStyle":
    case "borderRightColor":
    case "borderTopLeftRadius":
    case "borderTopRightRadius":
    case "borderBottomLeftRadius":
    case "borderBottomRightRadius":
      Lo(
        `You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
        n
      );
      return;
    case "margin":
    case "padding":
    case "borderWidth":
    case "borderStyle":
      if (typeof t == "string") {
        const o = t.split(" ").map((r) => r.trim());
        o.length === 4 && o[1] !== o[3] && Lo(
          `You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
          n
        );
      }
      return;
    case "clear":
    case "textAlign":
      (t === "left" || t === "right") && Lo(
        `You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
        n
      );
      return;
    case "borderRadius":
      typeof t == "string" && t.split("/").map((i) => i.trim()).reduce((i, a) => {
        if (i)
          return i;
        const l = a.split(" ").map((s) => s.trim());
        return l.length >= 2 && l[0] !== l[1] || l.length === 3 && l[1] !== l[2] || l.length === 4 && l[2] !== l[3] ? !0 : i;
      }, !1) && Lo(
        `You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,
        n
      );
      return;
  }
}, kj = (e, t, n) => {
  n.parentSelectors.some((o) => o.split(",").some((i) => i.split("&").length > 2)) && Lo("Should not use more than one `&` in a selector.", n);
}, zr = "data-ant-cssinjs-cache-path", jF = "_FILE_STYLE__";
function zF(e) {
  return Object.keys(e).map((t) => {
    const n = e[t];
    return `${t}:${n}`;
  }).join(";");
}
let ao, f1 = !0;
function BF() {
  var e;
  if (!ao && (ao = {}, fr())) {
    const t = document.createElement("div");
    t.className = zr, t.style.position = "fixed", t.style.visibility = "hidden", t.style.top = "-9999px", document.body.appendChild(t);
    let n = getComputedStyle(t).content || "";
    n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((r) => {
      const [i, a] = r.split(":");
      ao[i] = a;
    });
    const o = document.querySelector(`style[${zr}]`);
    o && (f1 = !1, (e = o.parentNode) == null || e.removeChild(o)), document.body.removeChild(t);
  }
}
function HF(e) {
  return BF(), !!ao[e];
}
function _F(e) {
  const t = ao[e];
  let n = null;
  if (t && fr())
    if (f1)
      n = jF;
    else {
      const o = document.querySelector(`style[${ln}="${ao[e]}"]`);
      o ? n = o.innerHTML : delete ao[e];
    }
  return [n, t];
}
const rv = fr(), VF = "_skip_check_", p1 = "_multi_value_";
function Nc(e) {
  return wa(hh(e), yh).replace(/\{%%%\:[^;];}/g, ";");
}
function WF(e) {
  return typeof e == "object" && e && (VF in e || p1 in e);
}
function kF(e, t, n) {
  if (!t)
    return e;
  const o = `.${t}`, r = n === "low" ? `:where(${o})` : o;
  return e.split(",").map((a) => {
    var u;
    const l = a.trim().split(/\s+/);
    let s = l[0] || "";
    const c = ((u = s.match(/^\w+/)) == null ? void 0 : u[0]) || "";
    return s = `${c}${r}${s.slice(c.length)}`, [s, ...l.slice(1)].join(" ");
  }).join(",");
}
const iv = /* @__PURE__ */ new Set(), jc = (e, t = {}, {
  root: n,
  injectHash: o,
  parentSelectors: r
} = {
  root: !0,
  parentSelectors: []
}) => {
  const {
    hashId: i,
    layer: a,
    path: l,
    hashPriority: s,
    transformers: c = [],
    linters: u = []
  } = t;
  let d = "", f = {};
  function p(v) {
    const b = v.getName(i);
    if (!f[b]) {
      const [O] = jc(v.style, t, {
        root: !1,
        parentSelectors: r
      });
      f[b] = `@keyframes ${v.getName(i)}${O}`;
    }
  }
  function y(v, b = []) {
    return v.forEach((O) => {
      Array.isArray(O) ? y(O, b) : O && b.push(O);
    }), b;
  }
  return y(Array.isArray(e) ? e : [e]).forEach((v) => {
    const b = typeof v == "string" && !n ? {} : v;
    if (typeof b == "string")
      d += `${b}
`;
    else if (b._keyframe)
      p(b);
    else {
      const O = c.reduce((C, x) => {
        var S;
        return ((S = x == null ? void 0 : x.visit) == null ? void 0 : S.call(x, C)) || C;
      }, b);
      Object.keys(O).forEach((C) => {
        const x = O[C];
        if (typeof x == "object" && x && (C !== "animationName" || !x._keyframe) && !WF(x)) {
          let S = !1, P = C.trim(), $ = !1;
          (n || o) && i ? P.startsWith("@") ? S = !0 : P = kF(C, i, s) : n && !i && (P === "&" || P === "") && (P = "", $ = !0);
          const [T, E] = jc(x, t, {
            root: $,
            injectHash: S,
            parentSelectors: [...r, P]
          });
          f = {
            ...f,
            ...E
          }, d += `${P}${T}`;
        } else {
          let S = function($, T) {
            const E = $.replace(/[A-Z]/g, (R) => `-${R.toLowerCase()}`);
            let M = T;
            !d1[$] && typeof M == "number" && M !== 0 && (M = `${M}px`), $ === "animationName" && (T != null && T._keyframe) && (p(T), M = T.getName(i)), d += `${E}:${M};`;
          };
          const P = (x == null ? void 0 : x.value) ?? x;
          typeof x == "object" && (x != null && x[p1]) && Array.isArray(P) ? P.forEach(($) => {
            S(C, $);
          }) : S(C, P);
        }
      });
    }
  }), n ? a && $F() : d = `{${d}}`, [d, f];
};
function m1(e, t) {
  return ir(`${e.join("%")}${t}`);
}
function av(e, t) {
  const n = Ti(), o = w(() => {
    var a;
    return (a = e.value) == null ? void 0 : a.token._tokenKey;
  }), r = w(() => {
    var a;
    return [o.value, ...((a = e.value) == null ? void 0 : a.path) || []];
  });
  let i = rv;
  return _d(
    "style",
    r,
    // Create cache if needed
    () => {
      const {
        path: a,
        hashId: l,
        layer: s,
        nonce: c,
        clientOnly: u,
        order: d = 0
      } = e.value || {}, f = r.value.join("|");
      if (HF(f)) {
        const [$, T] = _F(f);
        if ($)
          return [$, o.value, T, {}, u, d];
      }
      const p = t(), {
        hashPriority: y,
        container: g,
        transformers: v,
        linters: b,
        cache: O
      } = n.value, [C, x] = jc(p, {
        hashId: l,
        hashPriority: y,
        layer: s,
        path: a == null ? void 0 : a.join("-"),
        transformers: v,
        linters: b
      }), S = Nc(C), P = m1(r.value, S);
      if (i) {
        const $ = {
          mark: ln,
          prepend: "queue",
          attachTo: g
        }, T = typeof c == "function" ? c() : c;
        T && ($.csp = {
          nonce: T
        });
        const E = Fc(S, P, $);
        E[Fo] = O.instanceId, E.setAttribute(Hd, o.value), Object.keys(x).forEach((M) => {
          iv.has(M) || (iv.add(M), Fc(Nc(x[M]), `_effect-${M}`, {
            mark: ln,
            prepend: "queue",
            attachTo: g
          }));
        });
      }
      return [S, o.value, P, x, u, d];
    },
    // Remove cache if no need
    ([, , a], l) => {
      (l || n.value.autoClear) && rv && Vd(a, {
        mark: ln
      });
    }
  ), (a) => a;
}
function Xj(e, t = !1) {
  const n = "style%", o = Array.from(e.cache.keys()).filter((c) => c.startsWith(n)), r = {}, i = {};
  let a = "";
  function l(c, u, d, f = {}) {
    const p = {
      ...f,
      [Hd]: u,
      [ln]: d
    }, y = Object.keys(p).map((g) => {
      const v = p[g];
      return v ? `${g}="${v}"` : null;
    }).filter((g) => g).join(" ");
    return t ? c : `<style ${y}>${c}</style>`;
  }
  return o.map((c) => {
    const u = c.slice(n.length).replace(/%/g, "|"), [d, f, p, y, g, v] = e.cache.get(c)[1];
    if (g)
      return null;
    const b = {
      "data-vc-order": "prependQueue",
      "data-vc-priority": `${v}`
    };
    let O = l(d, f, p, b);
    return i[u] = p, y && Object.keys(y).forEach((x) => {
      r[x] || (r[x] = !0, O += l(Nc(y[x]), f, `_effect-${x}`, b));
    }), [v, O];
  }).filter((c) => c).sort((c, u) => c[0] - u[0]).forEach(([, c]) => {
    a += c;
  }), a += l(`.${zr}{content:"${zF(i)}";}`, void 0, void 0, {
    [zr]: zr
  }), a;
}
const XF = "cssVar", KF = (e, t) => {
  const { key: n, prefix: o, unitless: r, ignore: i, token: a, scope: l = "" } = e, {
    cache: { instanceId: s },
    container: c
  } = useContext(lF), { _tokenKey: u } = a, d = [...e.path, n, l, u];
  return _d(
    XF,
    d,
    () => {
      const p = t(), [y, g] = IF(p, n, {
        prefix: o,
        unitless: r,
        ignore: i,
        scope: l
      }), v = m1(d, g);
      return [y, g, v, n];
    },
    ([, , p]) => {
      OF && Vd(p, { mark: ln });
    }
  );
};
class g1 {
  constructor(t, n) {
    this._keyframe = !0, this.name = t, this.style = n;
  }
  getName(t = "") {
    return t ? `${t}-${this.name}` : this.name;
  }
}
function GF(e) {
  if (typeof e == "number")
    return [e];
  const t = String(e).split(/\s+/);
  let n = "", o = 0;
  return t.reduce((r, i) => (i.includes("(") ? (n += i, o += i.split("(").length - 1) : i.includes(")") ? (n += ` ${i}`, o -= i.split(")").length - 1, o === 0 && (r.push(n), n = "")) : o > 0 ? n += ` ${i}` : r.push(i), r), []);
}
function To(e) {
  return e.notSplit = !0, e;
}
const UF = {
  // Inset
  inset: ["top", "right", "bottom", "left"],
  insetBlock: ["top", "bottom"],
  insetBlockStart: ["top"],
  insetBlockEnd: ["bottom"],
  insetInline: ["left", "right"],
  insetInlineStart: ["left"],
  insetInlineEnd: ["right"],
  // Margin
  marginBlock: ["marginTop", "marginBottom"],
  marginBlockStart: ["marginTop"],
  marginBlockEnd: ["marginBottom"],
  marginInline: ["marginLeft", "marginRight"],
  marginInlineStart: ["marginLeft"],
  marginInlineEnd: ["marginRight"],
  // Padding
  paddingBlock: ["paddingTop", "paddingBottom"],
  paddingBlockStart: ["paddingTop"],
  paddingBlockEnd: ["paddingBottom"],
  paddingInline: ["paddingLeft", "paddingRight"],
  paddingInlineStart: ["paddingLeft"],
  paddingInlineEnd: ["paddingRight"],
  // Border
  borderBlock: To(["borderTop", "borderBottom"]),
  borderBlockStart: To(["borderTop"]),
  borderBlockEnd: To(["borderBottom"]),
  borderInline: To(["borderLeft", "borderRight"]),
  borderInlineStart: To(["borderLeft"]),
  borderInlineEnd: To(["borderRight"]),
  // Border width
  borderBlockWidth: ["borderTopWidth", "borderBottomWidth"],
  borderBlockStartWidth: ["borderTopWidth"],
  borderBlockEndWidth: ["borderBottomWidth"],
  borderInlineWidth: ["borderLeftWidth", "borderRightWidth"],
  borderInlineStartWidth: ["borderLeftWidth"],
  borderInlineEndWidth: ["borderRightWidth"],
  // Border style
  borderBlockStyle: ["borderTopStyle", "borderBottomStyle"],
  borderBlockStartStyle: ["borderTopStyle"],
  borderBlockEndStyle: ["borderBottomStyle"],
  borderInlineStyle: ["borderLeftStyle", "borderRightStyle"],
  borderInlineStartStyle: ["borderLeftStyle"],
  borderInlineEndStyle: ["borderRightStyle"],
  // Border color
  borderBlockColor: ["borderTopColor", "borderBottomColor"],
  borderBlockStartColor: ["borderTopColor"],
  borderBlockEndColor: ["borderBottomColor"],
  borderInlineColor: ["borderLeftColor", "borderRightColor"],
  borderInlineStartColor: ["borderLeftColor"],
  borderInlineEndColor: ["borderRightColor"],
  // Border radius
  borderStartStartRadius: ["borderTopLeftRadius"],
  borderStartEndRadius: ["borderTopRightRadius"],
  borderEndStartRadius: ["borderBottomLeftRadius"],
  borderEndEndRadius: ["borderBottomRightRadius"]
};
function qi(e) {
  return { _skip_check_: !0, value: e };
}
const Kj = {
  visit: (e) => {
    const t = {};
    return Object.keys(e).forEach((n) => {
      const o = e[n], r = UF[n];
      if (r && (typeof o == "number" || typeof o == "string")) {
        const i = GF(o);
        r.length && r.notSplit ? r.forEach((a) => {
          t[a] = qi(o);
        }) : r.length === 1 ? t[r[0]] = qi(o) : r.length === 2 ? r.forEach((a, l) => {
          t[a] = qi(i[l] ?? i[0]);
        }) : r.length === 4 ? r.forEach((a, l) => {
          t[a] = qi(i[l] ?? i[l - 2] ?? i[0]);
        }) : t[n] = o;
      } else
        t[n] = o;
    }), t;
  }
}, Rs = /url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;
function qF(e, t) {
  const n = Math.pow(10, t + 1), o = Math.floor(e * n);
  return Math.round(o / 10) * 10 / n;
}
const Gj = (e = {}) => {
  const { rootValue: t = 16, precision: n = 5, mediaQuery: o = !1 } = e, r = (a, l) => {
    if (!l) return a;
    const s = parseFloat(l);
    return s <= 1 ? a : `${qF(s / t, n)}rem`;
  };
  return { visit: (a) => {
    const l = { ...a };
    return Object.entries(a).forEach(([s, c]) => {
      if (typeof c == "string" && c.includes("px")) {
        const d = c.replace(Rs, r);
        l[s] = d;
      }
      !d1[s] && typeof c == "number" && c !== 0 && (l[s] = `${c}px`.replace(Rs, r));
      const u = s.trim();
      if (u.startsWith("@") && u.includes("px") && o) {
        const d = s.replace(Rs, r);
        l[d] = l[s], delete l[s];
      }
    }), l;
  } };
}, YF = {
  // cssinjs
  StyleProvider: i1
}, Uj = {
  supportModernCSS: () => wF() && xF()
};
class v1 {
}
const h1 = "CALC_UNIT", ZF = new RegExp(h1, "g");
function Ds(e) {
  return typeof e == "number" ? `${e}${h1}` : e;
}
class Zn extends v1 {
  constructor(t, n) {
    super(), this.result = "";
    const o = typeof t;
    this.unitlessCssVar = n, t instanceof Zn ? this.result = `(${t.result})` : o === "number" ? this.result = Ds(t) : o === "string" && (this.result = t);
  }
  add(t) {
    return t instanceof Zn ? this.result = `${this.result} + ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} + ${Ds(t)}`), this.lowPriority = !0, this;
  }
  sub(t) {
    return t instanceof Zn ? this.result = `${this.result} - ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} - ${Ds(t)}`), this.lowPriority = !0, this;
  }
  mul(t) {
    return this.lowPriority && (this.result = `(${this.result})`), t instanceof Zn ? this.result = `${this.result} * ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} * ${t}`), this.lowPriority = !1, this;
  }
  div(t) {
    return this.lowPriority && (this.result = `(${this.result})`), t instanceof Zn ? this.result = `${this.result} / ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} / ${t}`), this.lowPriority = !1, this;
  }
  getResult(t) {
    return this.lowPriority || t ? `(${this.result})` : this.result;
  }
  equal(t) {
    const { unit: n } = t || {};
    let o = !0;
    return typeof n == "boolean" ? o = n : Array.from(this.unitlessCssVar).some((r) => this.result.includes(r)) && (o = !1), this.result = this.result.replace(ZF, o ? "px" : ""), typeof this.lowPriority < "u" ? `calc(${this.result})` : this.result;
  }
}
class Qn extends v1 {
  constructor(t) {
    super(), this.result = 0, t instanceof Qn ? this.result = t.result : typeof t == "number" && (this.result = t);
  }
  add(t) {
    return t instanceof Qn ? this.result += t.result : typeof t == "number" && (this.result += t), this;
  }
  sub(t) {
    return t instanceof Qn ? this.result -= t.result : typeof t == "number" && (this.result -= t), this;
  }
  mul(t) {
    return t instanceof Qn ? this.result *= t.result : typeof t == "number" && (this.result *= t), this;
  }
  div(t) {
    return t instanceof Qn ? this.result /= t.result : typeof t == "number" && (this.result /= t), this;
  }
  equal() {
    return this.result;
  }
}
const QF = (e, t) => {
  const n = e === "css" ? Zn : Qn;
  return (o) => new n(o, t);
}, lv = (e, t) => `${[
  t,
  e.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")
].filter(Boolean).join("-")}`;
function sv(e, t = {}, n, o) {
  const r = {
    ...t[e]
  };
  if (o != null && o.deprecatedTokens) {
    const { deprecatedTokens: a } = o;
    a.forEach(([l, s]) => {
      (r != null && r[l] || r != null && r[s]) && (r[s] ?? (r[s] = r == null ? void 0 : r[l]));
    });
  }
  const i = { ...n, ...r };
  return Object.keys(i).forEach((a) => {
    i[a] === t[a] && delete i[a];
  }), i;
}
const y1 = typeof CSSINJS_STATISTIC < "u";
let zc = !0;
function tn(...e) {
  if (!y1)
    return Object.assign({}, ...e);
  zc = !1;
  const t = {};
  return e.forEach((n) => {
    if (typeof n != "object")
      return;
    Object.keys(n).forEach((r) => {
      Object.defineProperty(t, r, {
        configurable: !0,
        enumerable: !0,
        get: () => n[r]
      });
    });
  }), zc = !0, t;
}
const cv = {};
function JF() {
}
const eL = (e) => {
  let t, n = e, o = JF;
  return y1 && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), n = new Proxy(e, {
    get(r, i) {
      return zc && (t == null || t.add(i)), r[i];
    }
  }), o = (r, i) => {
    var a;
    cv[r] = {
      global: Array.from(t),
      component: {
        ...(a = cv[r]) == null ? void 0 : a.component,
        ...i
      }
    };
  }), { token: n, keys: t, flush: o };
};
function uv(e, t = {}, n) {
  return typeof n == "function" ? n(
    tn(t, t[e] ?? {})
  ) : n ?? {};
}
function tL(e) {
  return e === "js" ? { max: Math.max, min: Math.min } : {
    max: (...t) => `max(${t.map((n) => kt(n)).join(",")})`,
    min: (...t) => `min(${t.map((n) => kt(n)).join(",")})`
  };
}
const nL = 1e3 * 60 * 10;
class oL {
  constructor() {
    So(this, "map", /* @__PURE__ */ new Map());
    // Use WeakMap to avoid memory leak
    So(this, "objectIDMap", /* @__PURE__ */ new WeakMap());
    So(this, "nextID", 0);
    So(this, "lastAccessBeat", /* @__PURE__ */ new Map());
    // We will clean up the cache when reach the limit
    So(this, "accessBeat", 0);
  }
  set(t, n) {
    this.clear();
    const o = this.getCompositeKey(t);
    this.map.set(o, n), this.lastAccessBeat.set(o, Date.now());
  }
  get(t) {
    const n = this.getCompositeKey(t), o = this.map.get(n);
    return this.lastAccessBeat.set(n, Date.now()), this.accessBeat += 1, o;
  }
  getCompositeKey(t) {
    return t.map((o) => o && typeof o == "object" ? `obj_${this.getObjectID(o)}` : `${typeof o}_${o}`).join("|");
  }
  getObjectID(t) {
    if (this.objectIDMap.has(t))
      return this.objectIDMap.get(t);
    const n = this.nextID;
    return this.objectIDMap.set(t, n), this.nextID += 1, n;
  }
  clear() {
    if (this.accessBeat > 1e4) {
      const t = Date.now();
      this.lastAccessBeat.forEach((n, o) => {
        t - n > nL && (this.map.delete(o), this.lastAccessBeat.delete(o));
      }), this.accessBeat = 0;
    }
  }
}
const dv = new oL();
function rL(e, t) {
  return w(() => {
    const n = dv.get(t);
    if (n)
      return n;
    const o = e();
    return dv.set(t, o), o;
  });
}
const iL = () => ({});
function aL(e) {
  const {
    useCSP: t = iL,
    useToken: n,
    usePrefix: o,
    getResetStyles: r,
    getCommonStyle: i,
    getCompUnitless: a
  } = e;
  function l(d, f, p, y) {
    const g = Array.isArray(d) ? d[0] : d;
    function v($) {
      return `${String(g)}${$.slice(0, 1).toUpperCase()}${$.slice(1)}`;
    }
    const b = (y == null ? void 0 : y.unitless) || {}, C = {
      ...typeof a == "function" ? a(d) : {},
      [v("zIndexPopup")]: !0
    };
    Object.keys(b).forEach(($) => {
      C[v($)] = b[$];
    });
    const x = {
      ...y,
      unitless: C,
      prefixToken: v
    }, S = c(d, f, p, x), P = s(g, p, x);
    return ($, T = Re($)) => {
      const [, E] = S(Re($), T), [M, R] = P(T);
      return [M, E, R];
    };
  }
  function s(d, f, p) {
    const {
      unitless: y,
      injectStyle: g = !0,
      prefixToken: v,
      ignore: b
    } = p, O = ({
      rootCls: x,
      cssVar: S = {}
    }) => {
      const {
        realToken: P
      } = n();
      return KF({
        path: [d],
        prefix: S.prefix,
        key: S.key,
        unitless: y,
        ignore: b,
        token: P,
        scope: x
      }, () => {
        const $ = uv(d, P, f), T = sv(d, P, $, {
          deprecatedTokens: p == null ? void 0 : p.deprecatedTokens
        });
        return Object.keys($).forEach((E) => {
          T[v(E)] = T[E], delete T[E];
        }), T;
      }), null;
    };
    return (x) => {
      const {
        cssVar: S
      } = n();
      return [(P) => g && S ? m(Te, null, [m(O, {
        rootCls: x,
        cssVar: S,
        component: d
      }, null), P]) : P, S == null ? void 0 : S.key];
    };
  }
  function c(d, f, p, y = {}) {
    const g = Array.isArray(d) ? d : [d, d], [v] = g, b = g.join("-"), O = e.layer || {
      name: "antd"
    };
    return (C, x = C) => {
      const {
        theme: S,
        realToken: P,
        hashId: $,
        token: T,
        cssVar: E
      } = n(), {
        rootPrefixCls: M,
        iconPrefixCls: R
      } = o(), N = t(), F = E ? "css" : "js", H = se(rL(() => {
        const D = /* @__PURE__ */ new Set();
        return E && Object.keys(y.unitless || {}).forEach((_) => {
          D.add(ma(_, E.prefix)), D.add(ma(_, lv(v, E.prefix)));
        }), QF(F, D);
      }, [F, v, E == null ? void 0 : E.prefix])), {
        max: I,
        min: A
      } = tL(F), j = w(() => ({
        theme: S.value,
        token: T.value,
        hashId: $.value,
        nonce: () => N.nonce,
        clientOnly: y.clientOnly,
        layer: O,
        // antd is always at top of styles
        order: y.order || -999
      }));
      return typeof r == "function" && av(w(() => ({
        ...j.value,
        clientOnly: !1,
        path: ["Shared", M]
      })), () => r(T.value, {
        prefix: {
          rootPrefixCls: M,
          iconPrefixCls: R
        },
        csp: N
      })), [av(w(() => ({
        ...j.value,
        path: [b, C, R]
      })), () => {
        if (y.injectStyle === !1)
          return [];
        const {
          token: D,
          flush: _
        } = eL(T), V = uv(v, P, p), J = `.${C}`, oe = sv(v, P, V, {
          deprecatedTokens: y.deprecatedTokens
        });
        E && V && typeof V == "object" && Object.keys(V).forEach((k) => {
          V[k] = `var(${ma(k, lv(v, E.prefix))})`;
        });
        const re = w(() => tn(D.value, {
          componentCls: J,
          prefixCls: C,
          iconCls: `.${R}`,
          antCls: `.${M}`,
          calc: H,
          // @ts-ignore
          max: I,
          // @ts-ignore
          min: A
        }, E ? V : oe)), Q = w(() => f(re.value, {
          hashId: $.value,
          prefixCls: C,
          rootPrefixCls: M,
          iconPrefixCls: R
        }));
        _(v, oe);
        const U = typeof i == "function" ? i(re.value, C, x, y.resetFont) : null;
        return [y.resetStyle === !1 ? null : U, Q.value];
      }), $];
    };
  }
  function u(d, f, p, y = {}) {
    const g = c(d, f, p, {
      resetStyle: !1,
      // Sub Style should default after root one
      order: -998,
      ...y
    });
    return ({
      prefixCls: b,
      rootCls: O = b
    }) => (g(b, O), null);
  }
  return {
    genStyleHooks: l,
    genSubStyleComponent: u,
    genComponentStyleHook: c
  };
}
const lL = {
  size: !0,
  sizeSM: !0,
  sizeLG: !0,
  sizeMD: !0,
  sizeXS: !0,
  sizeXXS: !0,
  sizeMS: !0,
  sizeXL: !0,
  sizeXXL: !0,
  sizeUnit: !0,
  sizeStep: !0,
  motionBase: !0,
  motionUnit: !0
}, sL = {
  lineHeight: !0,
  lineHeightSM: !0,
  lineHeightLG: !0,
  lineHeightHeading1: !0,
  lineHeightHeading2: !0,
  lineHeightHeading3: !0,
  lineHeightHeading4: !0,
  lineHeightHeading5: !0,
  opacityLoading: !0,
  fontWeightStrong: !0,
  zIndexPopupBase: !0,
  zIndexBase: !0,
  opacityImage: !0
}, cL = "1.0.3", uL = SF(ai.defaultAlgorithm), dL = {
  screenXS: !0,
  screenXSMin: !0,
  screenXSMax: !0,
  screenSM: !0,
  screenSMMin: !0,
  screenSMMax: !0,
  screenMD: !0,
  screenMDMin: !0,
  screenMDMax: !0,
  screenLG: !0,
  screenLGMin: !0,
  screenLGMax: !0,
  screenXL: !0,
  screenXLMin: !0,
  screenXLMax: !0,
  screenXXL: !0,
  screenXXLMin: !0
}, b1 = (e, t, n) => {
  const o = n.getDerivativeToken(e), { override: r, ...i } = t;
  let a = {
    ...o,
    override: r
  };
  return a = Ih(a), i && Object.entries(i).forEach(([l, s]) => {
    const { theme: c, ...u } = s;
    let d = u;
    c && (d = b1(
      {
        ...a,
        ...u
      },
      {
        override: u
      },
      c
    )), a[l] = d;
  }), a;
};
function fL() {
  const { token: e, hashId: t, theme: n } = ai.useToken(), o = w(() => ({
    token: e.value,
    hashed: t.value,
    theme: n.value
  })), {
    // 
    override: r,
    // 
    cssVar: i
  } = se(o), a = w(() => o.value.token), l = w(() => o.value.hashed), s = w(() => o.value.theme ?? uL), c = FF(
    // 
    w(() => s.value),
    w(() => [ai.defaultSeed, a.value]),
    w(() => ({
      salt: `${cL}-${l.value || ""}`,
      override: r,
      getComputedToken: b1,
      cssVar: i && {
        prefix: i.prefix,
        key: i.key,
        unitless: sL,
        ignore: lL,
        preserve: dL
      }
    }))
  ), [
    u,
    // token
    d,
    // hashId
    // 
    f
  ] = se(c), p = w(() => c.value[0]), y = w(() => l.value ? c.value[1] : "");
  return [s, f, y, p, i];
}
const { genStyleHooks: Hn } = aL({
  usePrefix: () => {
    const { getPrefixCls: e, iconPrefixCls: t } = pt();
    return {
      iconPrefixCls: se(t),
      rootPrefixCls: e()
    };
  },
  useToken: () => {
    const [e, t, n, o, r] = fL();
    return { theme: e, realToken: t, hashId: n, token: o, cssVar: r };
  },
  useCSP: () => {
    const { csp: e } = pt();
    return (e == null ? void 0 : e.value) ?? {};
  },
  layer: {
    name: "antdx",
    dependencies: ["antd"]
  }
}), pL = (e) => {
  const { componentCls: t, paddingSM: n, padding: o } = e;
  return {
    [t]: {
      [`${t}-content`]: {
        // Shared: filled, outlined, shadow
        "&-filled,&-outlined,&-shadow": {
          padding: `${kt(n)} ${kt(o)}`,
          borderRadius: e.borderRadiusLG
        },
        // Filled:
        "&-filled": {
          backgroundColor: e.colorFillContent
        },
        // Outlined:
        "&-outlined": {
          border: `1px solid ${e.colorBorderSecondary}`
        },
        // Shadow:
        "&-shadow": {
          boxShadow: e.boxShadowTertiary
        }
      }
    }
  };
}, mL = (e) => {
  const { componentCls: t, fontSize: n, lineHeight: o, paddingSM: r, padding: i, calc: a } = e, l = a(n).mul(o).div(2).add(r).equal(), s = `${t}-content`;
  return {
    [t]: {
      [s]: {
        // round:
        "&-round": {
          borderRadius: {
            _skip_check_: !0,
            value: l
          },
          paddingInline: a(i).mul(1.25).equal()
        }
      },
      // corner:
      [`&-start ${s}-corner`]: {
        borderStartStartRadius: e.borderRadiusXS
      },
      [`&-end ${s}-corner`]: {
        borderStartEndRadius: e.borderRadiusXS
      }
    }
  };
}, gL = (e) => {
  const { componentCls: t, padding: n } = e;
  return {
    [`${t}-list`]: {
      display: "flex",
      flexDirection: "column",
      gap: n,
      overflowY: "auto",
      "&::-webkit-scrollbar": {
        width: 8,
        backgroundColor: "transparent"
      },
      "&::-webkit-scrollbar-thumb": {
        backgroundColor: e.colorTextTertiary,
        borderRadius: e.borderRadiusSM
      },
      // For Firefox
      "&": {
        scrollbarWidth: "thin",
        scrollbarColor: `${e.colorTextTertiary} transparent`
      }
    }
  };
}, vL = new g1("loadingMove", {
  "0%": {
    transform: "translateY(0)"
  },
  "10%": {
    transform: "translateY(4px)"
  },
  "20%": {
    transform: "translateY(0)"
  },
  "30%": {
    transform: "translateY(-4px)"
  },
  "40%": {
    transform: "translateY(0)"
  }
}), hL = new g1("cursorBlink", {
  "0%": {
    opacity: 1
  },
  "50%": {
    opacity: 0
  },
  "100%": {
    opacity: 1
  }
}), yL = (e) => {
  const { componentCls: t, fontSize: n, lineHeight: o, paddingSM: r, colorText: i, calc: a } = e;
  return {
    [t]: {
      display: "flex",
      columnGap: r,
      [`&${t}-end`]: {
        justifyContent: "end",
        flexDirection: "row-reverse",
        [`& ${t}-content-wrapper`]: {
          alignItems: "flex-end"
        }
      },
      [`&${t}-rtl`]: {
        direction: "rtl"
      },
      [`&${t}-typing ${t}-content:last-child::after`]: {
        content: '"|"',
        fontWeight: 900,
        userSelect: "none",
        opacity: 1,
        marginInlineStart: "0.1em",
        animationName: hL,
        animationDuration: "0.8s",
        animationIterationCount: "infinite",
        animationTimingFunction: "linear"
      },
      // ============================ Avatar =============================
      [`& ${t}-avatar`]: {
        display: "inline-flex",
        justifyContent: "center",
        alignSelf: "flex-start"
      },
      // ======================== Header & Footer ========================
      [`& ${t}-header, & ${t}-footer`]: {
        fontSize: n,
        lineHeight: o,
        color: e.colorText
      },
      [`& ${t}-header`]: {
        marginBottom: e.paddingXXS
      },
      [`& ${t}-footer`]: {
        marginTop: r
      },
      // =========================== Content =============================
      [`& ${t}-content-wrapper`]: {
        flex: "auto",
        display: "flex",
        flexDirection: "column",
        alignItems: "flex-start",
        minWidth: 0,
        maxWidth: "100%"
      },
      [`& ${t}-content`]: {
        position: "relative",
        boxSizing: "border-box",
        minWidth: 0,
        maxWidth: "100%",
        color: i,
        fontSize: e.fontSize,
        lineHeight: e.lineHeight,
        minHeight: a(r).mul(2).add(a(o).mul(n)).equal(),
        wordBreak: "break-word",
        [`& ${t}-dot`]: {
          position: "relative",
          height: "100%",
          display: "flex",
          alignItems: "center",
          columnGap: e.marginXS,
          padding: `0 ${kt(e.paddingXXS)}`,
          "&-item": {
            backgroundColor: e.colorPrimary,
            borderRadius: "100%",
            width: 4,
            height: 4,
            animationName: vL,
            animationDuration: "2s",
            animationIterationCount: "infinite",
            animationTimingFunction: "linear",
            "&:nth-child(1)": {
              animationDelay: "0s"
            },
            "&:nth-child(2)": {
              animationDelay: "0.2s"
            },
            "&:nth-child(3)": {
              animationDelay: "0.4s"
            }
          }
        }
      }
    }
  };
}, bL = () => ({}), S1 = Hn(
  "Bubble",
  (e) => {
    const t = tn(e, {});
    return [
      yL(t),
      gL(t),
      pL(t),
      mL(t)
    ];
  },
  bL
), C1 = Symbol("BubbleContext"), Bc = K(), SL = (e) => {
  $e(C1, e), ee(
    e,
    () => {
      Bc.value = se(e), Jt(Bc);
    },
    { immediate: !0, deep: !0 }
  );
}, CL = () => Ce(
  C1,
  w(() => Bc.value || {})
), $L = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return SL(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
}), $1 = /* @__PURE__ */ q({
  name: "AXBubble",
  __name: "Bubble",
  props: ot({
    prefixCls: null,
    rootClassName: null,
    styles: null,
    classNames: null,
    avatar: {
      type: Function
    },
    placement: null,
    loading: {
      type: Boolean
    },
    typing: null,
    content: null,
    messageRender: {
      type: Function
    },
    loadingRender: {
      type: Function
    },
    variant: null,
    shape: null,
    _key: null,
    onTypingComplete: null,
    header: null,
    footer: null
  }, {
    classNames: () => ({}),
    styles: () => ({}),
    placement: "start",
    loading: !1,
    content: "",
    variant: "filled"
  }),
  setup(e, {
    expose: t
  }) {
    const n = dt(e, ["prefixCls", "rootClassName", "classNames", "styles", "avatar", "placement", "loading", "loadingRender", "typing", "content", "messageRender", "variant", "shape", "onTypingComplete", "header", "footer", "_key"]);
    Oe(e, "content"), Oe(e, "prefixCls");
    const o = Nt(), r = Z(e.content);
    ee(() => e.content, () => {
      r.value = e.content;
    });
    const {
      onUpdate: i
    } = se(CL()), a = Z(null), {
      direction: l,
      getPrefixCls: s
    } = pt(), c = s("bubble", e.prefixCls), u = Bn("bubble"), [d, f, p, y] = nF(() => e.typing), [g, v] = tF(r, d, f, p), b = Z(!1);
    ee(g, () => {
      i == null || i();
    }), we(() => {
      var R;
      !v.value && !e.loading ? b.value || (b.value = !0, (R = e.onTypingComplete) == null || R.call(e)) : b.value = !1;
    });
    const [O, C, x] = S1(() => c), S = w(() => [c, e.rootClassName, u.value.className, C.value, x, `${c}-${e.placement}`, {
      [`${c}-rtl`]: l.value === "rtl"
    }, {
      [`${c}-typing`]: v.value && !e.loading && !e.messageRender && !o.message && !y.value
    }]), P = (R) => Array.isArray(R) && R.every(Et), $ = w(() => o.avatar ? o.avatar() : typeof e.avatar == "function" ? e.avatar() : Et(e.avatar) || P(e.avatar) ? e.avatar : m(oo, e.avatar, null)), T = w(() => o.message ? o.message({
      content: g.value
    }) : e.messageRender ? e.messageRender(g.value) : g.value), E = w(() => e.loading ? o.loading ? o.loading() : e.loadingRender ? e.loadingRender() : m(oF, {
      prefixCls: c
    }, null) : m(Te, null, [T.value, v.value && Re(y)])), M = w(() => {
      const R = m("div", {
        style: {
          ...u.value.styles.content,
          ...e.styles.content
        },
        class: [`${c}-content`, `${c}-content-${e.variant}`, {
          [`${c}-content-${e.shape}`]: e.shape
        }, u.value.classNames.content, e.classNames.content]
      }, [Re(E)]), N = o.header ? o.header({
        content: g.value,
        info: {
          key: e._key
        }
      }) : typeof e.header == "function" ? e.header(g.value, {
        key: e._key
      }) : e.header, F = o.footer ? o.footer({
        content: g.value,
        info: {
          key: e._key
        }
      }) : typeof e.footer == "function" ? e.footer(g.value, {
        key: e._key
      }) : e.footer;
      return N || F ? m("div", {
        class: `${c}-content-wrapper`
      }, [N && m("div", {
        class: [`${c}-header`, u.value.classNames.header, e.classNames.header],
        style: {
          ...u.value.styles.header,
          ...e.styles.header
        }
      }, [N]), R, F && m("div", {
        class: [`${c}-footer`, u.value.classNames.footer, e.classNames.footer],
        style: {
          ...u.value.styles.footer,
          ...e.styles.footer
        }
      }, [F])]) : R;
    });
    return t({
      nativeElement: a
    }), () => O(m("div", Ge({
      style: {
        ...u.value.style
        // ...(style as object),
      },
      class: Re(S)
    }, n, {
      ref: a
    }), [(o.avatar || e.avatar) && m("div", {
      style: {
        ...u.value.styles.avatar,
        ...e.styles.avatar
      },
      class: [`${c}-avatar`, u.value.classNames.avatar, e.classNames.avatar]
    }, [Re($)]), Re(M)]));
  }
});
var Fs = { exports: {} };
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
var fv;
function wL() {
  return fv || (fv = 1, (function(e) {
    (function() {
      var t = {}.hasOwnProperty;
      function n() {
        for (var i = "", a = 0; a < arguments.length; a++) {
          var l = arguments[a];
          l && (i = r(i, o(l)));
        }
        return i;
      }
      function o(i) {
        if (typeof i == "string" || typeof i == "number")
          return i;
        if (typeof i != "object")
          return "";
        if (Array.isArray(i))
          return n.apply(null, i);
        if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
          return i.toString();
        var a = "";
        for (var l in i)
          t.call(i, l) && i[l] && (a = r(a, l));
        return a;
      }
      function r(i, a) {
        return a ? i ? i + " " + a : i + a : i;
      }
      e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
    })();
  })(Fs)), Fs.exports;
}
var xL = wL();
const pe = /* @__PURE__ */ q8(xL);
function Ml(e) {
  const t = Z(e), n = Z((o) => {
    t.value && t.value(o);
  });
  return t.value = e, n.value;
}
const OL = `accept acceptcharset accesskey action allowfullscreen allowtransparency
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
charset checked classid class colspan cols content contenteditable contextmenu
controls coords crossorigin data datetime default defer dir disabled download draggable
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
mediagroup method min minlength multiple muted name novalidate nonce open
optimum pattern placeholder poster preload radiogroup readonly rel required
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellcheck src srcdoc srclang srcset start step style
summary tabindex target title type usemap value width wmode wrap`, PL = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, pv = `${OL} ${PL}`.split(/[\s\n]+/), IL = "aria-", TL = "data-";
function mv(e, t) {
  return e.indexOf(t) === 0;
}
function pr(e, t = !1) {
  let n;
  t === !1 ? n = {
    aria: !0,
    data: !0,
    attr: !0
  } : t === !0 ? n = {
    aria: !0
  } : n = {
    ...t
  };
  const o = {};
  return Object.keys(e).forEach((r) => {
    // Aria
    (n.aria && (r === "role" || mv(r, IL)) || // Data
    n.data && mv(r, TL) || // Attr
    n.attr && (pv.includes(r) || pv.includes(r.toLowerCase()))) && (o[r] = e[r]);
  }), o;
}
function EL(e) {
  const [t, n] = qe(e.value.length), o = w(() => e.value.slice(0, se(t))), r = w(() => {
    const a = se(o)[se(o).length - 1];
    return a ? a.key : null;
  });
  ee(
    e,
    () => {
      var a;
      if (n(e.value.length), !(se(o).length && se(o).every((l, s) => {
        var c;
        return l.key === ((c = e.value[s]) == null ? void 0 : c.key);
      }))) {
        if (se(o).length === 0)
          n(1);
        else
          for (let l = 0; l < se(o).length; l += 1)
            if (se(o)[l].key !== ((a = e.value[l]) == null ? void 0 : a.key)) {
              n(l);
              break;
            }
      }
    },
    { immediate: !0, deep: !0 }
  );
  const i = Ml((a) => {
    a === se(r) && n(se(t) + 1);
  });
  return [o, i];
}
function AL(e, t) {
  const n = (r, i) => {
    var a;
    return typeof t.value == "function" ? t.value(r, i) : t ? ((a = t.value) == null ? void 0 : a[r.role]) || {} : {};
  };
  return w(() => (e.value || []).map((r, i) => {
    const a = r.key ?? `preset_${i}`;
    return {
      ...n(r, i),
      ...r,
      key: a
    };
  }));
}
const ML = 1, ka = /* @__PURE__ */ q({
  name: "AXBubbleList",
  inheritAttrs: !1,
  __name: "BubbleList",
  props: ot({
    prefixCls: null,
    rootClassName: null,
    items: null,
    autoScroll: {
      type: Boolean
    },
    roles: null
  }, {
    autoScroll: !0
  }),
  setup(e, {
    expose: t
  }) {
    const n = dt(e, ["prefixCls", "rootClassName", "items", "autoScroll", "roles"]);
    Oe(e, "roles"), Oe(e, "items"), Oe(e, "prefixCls");
    const o = Mv(), r = Nt(), i = w(() => pr(Ge(n, o), {
      attr: !0,
      aria: !0
    })), a = Z(e.items), l = Z(e.roles);
    ee(() => e.items, () => {
      a.value = e.items;
    }), ee(() => e.roles, () => {
      l.value = e.roles;
    });
    const s = Z(null), c = Z({}), {
      getPrefixCls: u
    } = pt(), d = u("bubble", e.prefixCls), f = `${d}-list`, [p, y, g] = S1(d), [v, b] = qe(!1);
    cS((N) => {
      b(!0), N(() => {
        b(!1);
      });
    });
    const O = AL(a, l), [C, x] = EL(O), [S, P] = qe(!0), [$, T] = qe(0), E = (N) => {
      const F = N.target;
      P(F.scrollHeight - Math.abs(F.scrollTop) - F.clientHeight <= ML);
    };
    ee([$, s, S], () => {
      e.autoScroll && se(s) && se(S) && (console.log("jadq----"), console.log("jadq----", e.autoScroll, se(s), se(S)), console.log("jadq----"), De(() => {
        se(s).scrollTo({
          top: se(s).scrollHeight
        });
      }));
    }), ee(() => se(C).length, () => {
      var N;
      if (e.autoScroll) {
        const F = (N = se(C)[se(C).length - 2]) == null ? void 0 : N.key, H = se(c)[F];
        if (H) {
          const {
            nativeElement: I
          } = H, {
            top: A = 0,
            bottom: j = 0
          } = (I == null ? void 0 : I.getBoundingClientRect()) ?? {}, {
            top: L,
            bottom: D
          } = se(s).getBoundingClientRect();
          A < D && j > L && (T(se($) + 1), P(!0));
        }
      }
    });
    const M = Ml(() => {
      e.autoScroll && T(se($) + 1);
    }), R = w(() => ({
      onUpdate: M
    }));
    return t({
      nativeElement: s,
      scrollTo: ({
        key: N,
        offset: F,
        behavior: H = "smooth",
        block: I
      }) => {
        if (typeof F == "number")
          se(s).scrollTo({
            top: F,
            behavior: H
          });
        else if (N !== void 0) {
          const A = se(c)[N];
          if (A) {
            const j = se(C).findIndex((L) => L.key === N);
            P(j === se(C).length - 1), A.nativeElement.scrollIntoView({
              behavior: H,
              block: I
            });
          }
        }
      }
    }), () => p(m($L, {
      value: R.value
    }, {
      default: () => [m("div", Ge(i.value, {
        class: pe(f, e.rootClassName, y.value, g, {
          [`${f}-reach-end`]: S.value
        }),
        ref: s,
        onScroll: E
      }), [uS(se(C), ({
        key: N,
        onTypingComplete: F,
        ...H
      }) => {
        var I, A, j;
        return m($1, Ge(H, {
          avatar: r.avatar ? () => {
            var L;
            return (L = r.avatar) == null ? void 0 : L.call(r, {
              item: {
                key: N,
                ...H
              }
            });
          } : H.avatar,
          header: ((I = r.header) == null ? void 0 : I.call(r, {
            item: {
              key: N,
              ...H
            }
          })) ?? H.header,
          footer: ((A = r.footer) == null ? void 0 : A.call(r, {
            item: {
              key: N,
              ...H
            }
          })) ?? H.footer,
          loadingRender: r.loading ? () => r.loading({
            item: {
              key: N,
              ...H
            }
          }) : H.loadingRender,
          content: ((j = r.message) == null ? void 0 : j.call(r, {
            item: {
              key: N,
              ...H
            }
          })) ?? H.content,
          key: N,
          ref: (L) => {
            L ? c.value[N] = L : delete c.value[N];
          },
          typing: v.value ? H.typing : !1,
          onTypingComplete: () => {
            F == null || F(), x(N);
          }
        }), null);
      })])]
    }));
  }
}), ga = Object.assign($1, {
  List: ka
});
ga.install = function(e) {
  return e.component(ga.name, ga), e.component(ka.name, ka), e;
};
const RL = /* @__PURE__ */ q({
  name: "AXConversationsItem",
  __name: "ConversationsItem",
  props: {
    info: null,
    prefixCls: null,
    direction: null,
    menu: null,
    active: {
      type: Boolean
    },
    onClick: {
      type: Function
    }
  },
  setup(e) {
    const t = dt(e, ["prefixCls", "info", "class", "direction", "onClick", "active", "menu"]);
    Oe(e, "class");
    const n = w(() => pr(t, {
      aria: !0,
      data: !0,
      attr: !0
    })), o = (v) => {
      v.stopPropagation();
    }, r = w(() => e.info.disabled), [i, a] = qe(!1), [l, s] = qe(!1), c = w(() => pe(e.class, `${e.prefixCls}-item`, {
      [`${e.prefixCls}-item-active`]: e.active && !r.value
    }, {
      [`${e.prefixCls}-item-disabled`]: r.value
    })), u = () => {
      !r.value && e.onClick && e.onClick(e.info);
    }, d = (v) => {
      v && s(!v);
    }, f = w(() => {
      var v;
      return (v = e.menu) == null ? void 0 : v.trigger;
    }), p = w(() => {
      const {
        trigger: v,
        ...b
      } = e.menu || {};
      return b;
    }), y = w(() => {
      var v;
      return (v = p.value) == null ? void 0 : v.getPopupContainer;
    }), g = (v) => {
      const b = m(bi, {
        onClick: o,
        class: `${e.prefixCls}-menu-icon`
      }, null);
      return f.value ? typeof f.value == "function" ? f.value(v, {
        originNode: b
      }) : f.value : b;
    };
    return () => m(Vt, {
      title: e.info.label,
      open: i.value && l.value,
      onOpenChange: s,
      placement: e.direction === "rtl" ? "left" : "right"
    }, {
      default: () => [m("li", Ge(n.value, {
        class: c.value,
        onClick: u
      }), [e.info.icon && m("div", {
        class: `${e.prefixCls}-icon`
      }, [e.info.icon]), m(Ve.Text, {
        class: `${e.prefixCls}-label`,
        ellipsis: {
          onEllipsis: a
        }
      }, {
        default: () => [e.info.label]
      }), !r.value && e.menu && m(ro, {
        placement: e.direction === "rtl" ? "bottomLeft" : "bottomRight",
        trigger: ["click"],
        disabled: r.value,
        onOpenChange: d,
        getPopupContainer: y.value
      }, {
        default: () => g(e.info),
        overlay: () => m(On, p.value, null)
      })])]
    });
  }
}), w1 = Symbol("GroupTitleContext"), Hc = K(), DL = (e) => {
  $e(w1, e), ee(
    e,
    () => {
      Hc.value = se(e), Jt(Hc);
    },
    { immediate: !0, deep: !0 }
  );
}, FL = () => Ce(
  w1,
  w(() => Hc.value || {})
), LL = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return DL(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
}), gv = /* @__PURE__ */ q({
  name: "AXConversationsGroupTitle",
  __name: "GroupTitle",
  setup(e) {
    const t = Nt(), n = FL(), o = w(() => {
      var r;
      return (r = t.default) == null ? void 0 : r.call(t);
    });
    return () => m("div", {
      class: pe(`${n.value.prefixCls}-group-title`)
    }, [o.value && m(Ve.Text, null, {
      default: () => [o.value]
    })]);
  }
});
function x1(e, t) {
  const { defaultValue: n, value: o = Z() } = t || {};
  let r = typeof e == "function" ? e() : e;
  o.value !== void 0 && (r = se(o)), n !== void 0 && (r = typeof n == "function" ? n() : n);
  const i = Z(r), a = Z(r);
  we(() => {
    let s = o.value !== void 0 ? o.value : i.value;
    t.postState && (s = t.postState(s)), a.value = s;
  });
  function l(s) {
    const c = a.value;
    i.value = s, At(a.value) !== s && t.onChange && t.onChange(s, c);
  }
  return ee(o, () => {
    i.value = o.value;
  }), [a, l];
}
const Ls = "__ungrouped", NL = (e, t = []) => {
  const n = w(() => {
    if (!Re(e))
      return {
        enableGroup: !1,
        sort: void 0,
        title: void 0
      };
    let o = {
      sort: void 0,
      title: void 0
    };
    return typeof Re(e) == "object" && (o = { ...o, ...Re(e) }), {
      enableGroup: !0,
      sort: o.sort,
      title: o.title
    };
  });
  return w(() => {
    if (!n.value.enableGroup)
      return {
        groupList: [
          {
            name: Ls,
            data: Re(t),
            title: void 0
          }
        ],
        enableGroup: n.value.enableGroup
      };
    const o = Re(t).reduce((a, l) => {
      const s = l.group || Ls;
      return a[s] || (a[s] = []), a[s].push(l), a;
    }, {});
    return {
      groupList: (n.value.sort ? Object.keys(o).sort(n.value.sort) : Object.keys(o)).map((a) => ({
        name: a === Ls ? void 0 : a,
        title: n.value.title,
        data: o[a]
      })),
      enableGroup: n.value.enableGroup
    };
  });
}, jL = (e) => {
  const { componentCls: t } = e;
  return {
    [t]: {
      display: "flex",
      flexDirection: "column",
      gap: e.paddingXXS,
      overflowY: "auto",
      padding: e.paddingSM,
      [`&${t}-rtl`]: {
        direction: "rtl"
      },
      // 会话列表
      [`& ${t}-list`]: {
        display: "flex",
        gap: e.paddingXXS,
        flexDirection: "column",
        paddingLeft: 0,
        [`& ${t}-item`]: {
          paddingInlineStart: e.paddingXL
        },
        [`& ${t}-label`]: {
          color: e.colorTextDescription
        }
      },
      // 会话列表项
      [`& ${t}-item`]: {
        display: "flex",
        height: e.controlHeightLG,
        minHeight: e.controlHeightLG,
        gap: e.paddingXS,
        padding: `0 ${kt(e.paddingXS)}`,
        alignItems: "center",
        borderRadius: e.borderRadiusLG,
        cursor: "pointer",
        transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
        // 悬浮样式
        "&:hover": {
          backgroundColor: e.colorBgTextHover
        },
        // 选中样式
        "&-active": {
          backgroundColor: e.colorBgTextHover,
          [`& ${t}-label, ${t}-menu-icon`]: {
            color: e.colorText
          }
        },
        // 禁用样式
        "&-disabled": {
          cursor: "not-allowed",
          [`& ${t}-label`]: {
            color: e.colorTextDisabled
          }
        },
        // 悬浮、选中时激活操作菜单
        "&:hover, &-active": {
          [`& ${t}-menu-icon`]: {
            opacity: 1
          }
        }
      },
      // 会话名
      [`& ${t}-label`]: {
        flex: 1,
        overflow: "hidden",
        textOverflow: "ellipsis",
        color: e.colorText
      },
      // 会话操作菜单
      [`& ${t}-menu-icon`]: {
        opacity: 0,
        fontSize: e.fontSizeXL
      },
      // 会话图标
      [`& ${t}-group-title`]: {
        display: "flex",
        alignItems: "center",
        height: e.controlHeightLG,
        minHeight: e.controlHeightLG,
        padding: `0 ${kt(e.paddingXS)}`
      }
    }
  };
}, zL = () => ({}), BL = Hn(
  "Conversations",
  (e) => {
    const t = tn(e, {});
    return jL(t);
  },
  zL
), HL = /* @__PURE__ */ q({
  name: "AXConversations",
  __name: "Conversations",
  props: ot({
    items: null,
    activeKey: null,
    defaultActiveKey: null,
    onActiveChange: {
      type: Function
    },
    menu: {
      type: Function
    },
    groupable: null,
    styles: null,
    classNames: null,
    prefixCls: null,
    rootClassName: null
  }, {
    styles: () => ({}),
    classNames: () => ({})
  }),
  setup(e) {
    const t = dt(e, ["prefixCls", "rootClassName", "items", "activeKey", "defaultActiveKey", "onActiveChange", "menu", "styles", "classNames", "groupable", "class", "style"]);
    Oe(e, "class"), Oe(e, "activeKey"), Oe(e, "prefixCls");
    const n = Z(e.activeKey), o = w(() => pr(t, {
      attr: !0,
      aria: !0,
      data: !0
    })), [r, i] = x1(e.defaultActiveKey, {
      value: n
    });
    ee(() => e.activeKey, () => {
      n.value = e.activeKey;
    });
    const a = NL(() => e.groupable, () => e.items), {
      getPrefixCls: l,
      direction: s
    } = pt(), c = w(() => l("conversations", e.prefixCls)), u = Bn("conversations"), [d, f, p] = BL(c), y = w(() => pe(c.value, u.value.className, e.class, e.rootClassName, f.value, p, {
      [`${c.value}-rtl`]: s.value === "rtl"
    })), g = (v) => {
      i(v.key), e.onActiveChange && e.onActiveChange(v.key);
    };
    return () => d(m("ul", Ge(o.value, {
      style: {
        ...typeof u.value.style == "object" ? u.value.style : {},
        ...typeof e.style == "object" ? e.style : {}
      },
      class: y.value
    }), [a.value.groupList.map((v, b) => {
      const O = v.data.map((C, x) => m(RL, {
        key: C.key || `key-${x}`,
        info: C,
        prefixCls: c.value,
        direction: s.value,
        class: pe(e.classNames.item, u.value.classNames.item),
        style: {
          ...u.value.styles.item,
          ...e.styles.item
        },
        menu: typeof e.menu == "function" ? e.menu(C) : e.menu,
        active: r.value === C.key,
        onClick: g
      }, null));
      return a.value.enableGroup ? m("li", {
        key: v.name || `key-${b}`
      }, [m(LL, {
        value: {
          prefixCls: c.value
        }
      }, {
        default: () => {
          var C;
          return [((C = v.title) == null ? void 0 : C.call(v, v.name, {
            components: {
              GroupTitle: gv
            }
          })) || m(gv, {
            key: v.name
          }, {
            default: () => [v.name]
          })];
        }
      }), m("ul", {
        class: `${c.value}-list`
      }, [O])]) : O;
    })]));
  }
}), _L = (e) => {
  const { componentCls: t, calc: n } = e, o = n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(), r = n(e.fontSize).mul(e.lineHeight).equal();
  return {
    [t]: {
      gap: e.padding,
      // ======================== Icon ========================
      [`${t}-icon`]: {
        height: n(o).add(r).add(e.paddingXXS).equal(),
        display: "flex",
        img: {
          height: "100%"
        }
      },
      // ==================== Content Wrap ====================
      [`${t}-content-wrapper`]: {
        gap: e.paddingXS,
        flex: "auto",
        minWidth: 0,
        [`${t}-title-wrapper`]: {
          gap: e.paddingXS
        },
        [`${t}-title`]: {
          margin: 0
        },
        [`${t}-extra`]: {
          marginInlineStart: "auto"
        }
      }
    }
  };
}, VL = (e) => {
  const { componentCls: t } = e;
  return {
    [t]: {
      // ======================== Filled ========================
      "&-filled": {
        paddingInline: e.padding,
        paddingBlock: e.paddingSM,
        background: e.colorFillContent,
        borderRadius: e.borderRadiusLG
      },
      // ====================== Borderless ======================
      "&-borderless": {
        [`${t}-title`]: {
          fontSize: e.fontSizeHeading3,
          lineHeight: e.lineHeightHeading3
        }
      }
    }
  };
}, WL = () => ({}), kL = Hn(
  "Welcome",
  (e) => {
    const t = tn(e, {});
    return [_L(t), VL(t)];
  },
  WL
);
function XL(e) {
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Et(e);
}
const KL = /* @__PURE__ */ q({
  name: "AXWelcome",
  __name: "Welcome",
  props: ot({
    prefixCls: null,
    rootClassName: null,
    className: null,
    style: null,
    variant: null,
    classNames: null,
    styles: null,
    icon: null,
    title: null,
    description: null,
    extra: null
  }, {
    variant: "filled",
    classNames: () => ({}),
    styles: () => ({})
  }),
  setup(e) {
    Oe(e, "prefixCls");
    const t = Nt(), {
      direction: n,
      getPrefixCls: o
    } = pt(), r = o("welcome", e.prefixCls), i = Bn("welcome"), [a, l, s] = kL(r), c = w(() => {
      const p = t.icon ? t.icon() : typeof e.icon == "function" ? e.icon() : e.icon;
      if (!p)
        return null;
      let y = p;
      return typeof p == "string" && p.startsWith("http") && (y = m("img", {
        src: p,
        alt: "icon"
      }, null)), m("div", {
        class: pe(`${r}-icon`, i.value.classNames.icon, e.classNames.icon),
        style: e.styles.icon
      }, [y]);
    }), u = w(() => {
      const p = t.title ? t.title() : typeof e.title == "function" ? e.title() : e.title;
      return p ? m(Ve.Title, {
        level: 4,
        class: pe(`${r}-title`, i.value.classNames.title, e.classNames.title),
        style: e.styles.title
      }, XL(p) ? p : {
        default: () => [p]
      }) : null;
    }), d = w(() => t.description ? t.description() : typeof e.description == "function" ? e.description() : e.description), f = w(() => {
      const p = t.extra ? t.extra() : typeof e.extra == "function" ? e.extra() : e.extra;
      return p ? m("div", {
        class: pe(`${r}-extra`, i.value.classNames.extra, e.classNames.extra),
        style: e.styles.extra
      }, [p]) : null;
    });
    return () => a(m(jr, {
      class: pe(r, i.value.className, e.className, e.rootClassName, l.value, s, `${r}-${e.variant}`, {
        [`${r}-rtl`]: n.value === "rtl"
      }),
      style: e.style
    }, {
      default: () => [c.value, m(jr, {
        vertical: !0,
        class: `${r}-content-wrapper`
      }, {
        default: () => [t.extra || e.extra ? m(jr, {
          align: "flex-start",
          class: `${r}-title-wrapper`
        }, {
          default: () => [u.value, f.value]
        }) : u.value, d.value && m(Ve.Text, {
          class: pe(`${r}-description`, i.value.classNames.description, e.classNames.description),
          style: e.styles.description
        }, {
          default: () => [d.value]
        })]
      })]
    }));
  }
}), GL = (e) => {
  const { componentCls: t } = e;
  return {
    [t]: {
      // ======================== Prompt ========================
      "&, & *": {
        boxSizing: "border-box"
      },
      maxWidth: "100%",
      [`&${t}-rtl`]: {
        direction: "rtl"
      },
      [`& ${t}-title`]: {
        marginBlockStart: 0,
        fontWeight: "normal",
        color: e.colorTextTertiary
      },
      [`& ${t}-list`]: {
        display: "flex",
        gap: e.paddingSM,
        overflowX: "auto",
        // Hide scrollbar
        scrollbarWidth: "none",
        "-ms-overflow-style": "none",
        "&::-webkit-scrollbar": {
          display: "none"
        },
        listStyle: "none",
        paddingInlineStart: 0,
        marginBlock: 0,
        alignItems: "stretch",
        "&-wrap": {
          flexWrap: "wrap"
        },
        "&-vertical": {
          flexDirection: "column",
          alignItems: "flex-start"
        }
      },
      // ========================= Item =========================
      [`${t}-item`]: {
        flex: "none",
        display: "flex",
        gap: e.paddingXS,
        height: "auto",
        paddingBlock: e.paddingSM,
        paddingInline: e.padding,
        alignItems: "flex-start",
        justifyContent: "flex-start",
        background: e.colorBgContainer,
        borderRadius: e.borderRadiusLG,
        transition: ["border", "background"].map((n) => `${n} ${e.motionDurationSlow}`).join(","),
        border: `${kt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
        [`&:not(${t}-item-has-nest)`]: {
          "&:hover": {
            cursor: "pointer",
            background: e.colorFillTertiary
          },
          "&:active": {
            background: e.colorFill
          }
        },
        [`${t}-content`]: {
          flex: "auto",
          minWidth: 0,
          display: "flex",
          gap: e.paddingXXS,
          flexDirection: "column",
          alignItems: "flex-start"
        },
        [`${t}-icon, ${t}-label, ${t}-desc`]: {
          margin: 0,
          padding: 0,
          fontSize: e.fontSize,
          lineHeight: e.lineHeight,
          textAlign: "start",
          whiteSpace: "normal"
        },
        [`${t}-label`]: {
          color: e.colorTextHeading,
          fontWeight: 500
        },
        [`${t}-label + ${t}-desc`]: {
          color: e.colorTextTertiary
        },
        // Disabled
        [`&${t}-item-disabled`]: {
          pointerEvents: "none",
          background: e.colorBgContainerDisabled,
          [`${t}-label, ${t}-desc`]: {
            color: e.colorTextTertiary
          }
        }
      }
    }
  };
}, UL = (e) => {
  const { componentCls: t } = e;
  return {
    [t]: {
      // ========================= Parent =========================
      [`${t}-item-has-nest`]: {
        [`> ${t}-content`]: {
          // gap: token.paddingSM,
          [`> ${t}-label`]: {
            fontSize: e.fontSizeLG,
            lineHeight: e.lineHeightLG
          }
        }
      },
      // ========================= Nested =========================
      [`&${t}-nested`]: {
        marginTop: e.paddingXS,
        // ======================== Prompt ========================
        alignSelf: "stretch",
        [`${t}-list`]: {
          alignItems: "stretch"
        },
        // ========================= Item =========================
        [`${t}-item`]: {
          border: 0,
          background: e.colorFillQuaternary
        }
      }
    }
  };
}, qL = () => ({}), YL = Hn(
  "Prompts",
  (e) => {
    const t = tn(e, {});
    return [GL(t), UL(t)];
  },
  qL
), Br = /* @__PURE__ */ q({
  name: "AXPrompts",
  __name: "Prompts",
  props: ot({
    items: null,
    title: {
      type: Function
    },
    onItemClick: {
      type: Function
    },
    vertical: {
      type: Boolean
    },
    wrap: {
      type: Boolean
    },
    styles: null,
    classNames: null,
    prefixCls: null,
    rootClassName: null
  }, {
    styles: () => ({}),
    classNames: () => ({})
  }),
  setup(e) {
    const t = dt(e, ["prefixCls", "title", "class", "items", "onItemClick", "vertical", "wrap", "rootClassName", "styles", "classNames", "style"]);
    Oe(e, "class"), Oe(e, "prefixCls");
    const n = Nt(), {
      getPrefixCls: o,
      direction: r
    } = pt(), i = o("prompts", e.prefixCls), a = Bn("prompts"), [l, s, c] = YL(i), u = w(() => pe(i, a.value.className, e.class, e.rootClassName, s.value, c, {
      [`${i}-rtl`]: r.value === "rtl"
    })), d = w(() => pe(`${i}-list`, a.value.classNames.list, e.classNames.list, {
      [`${i}-list-wrap`]: e.wrap
    }, {
      [`${i}-list-vertical`]: e.vertical
    })), f = w(() => n.title ? n.title() : typeof e.title == "function" ? e.title() : e.title);
    return () => {
      var p;
      return l(m("div", Ge(t, {
        class: u.value,
        style: {
          ...typeof e.style == "object" ? e.style : {},
          ...typeof a.value.style == "object" ? a.value.style : {}
        }
      }), [f.value && m(Ve.Title, {
        level: 5,
        class: pe(`${i}-title`, a.value.classNames.title, e.classNames.title),
        style: {
          ...a.value.styles.title,
          ...e.styles.title
        }
      }, {
        default: () => [f.value]
      }), m("div", {
        class: d.value,
        style: {
          ...a.value.styles.list,
          ...e.styles.list
        }
      }, [(p = e.items) == null ? void 0 : p.map((y, g) => {
        const v = y.children && y.children.length > 0;
        return m("div", {
          key: y.key || `key_${g}`,
          style: {
            ...a.value.styles.item,
            ...e.styles.item
          },
          class: pe(`${i}-item`, a.value.classNames.item, e.classNames.item, {
            [`${i}-item-disabled`]: y.disabled,
            [`${i}-item-has-nest`]: v
          }),
          onClick: () => {
            !v && e.onItemClick && e.onItemClick({
              data: y
            });
          }
        }, [y.icon && m("div", {
          class: `${i}-icon`
        }, [y.icon]), m("div", {
          class: pe(`${i}-content`, a.value.classNames.itemContent, e.classNames.itemContent),
          style: {
            ...a.value.styles.itemContent,
            ...e.styles.itemContent
          }
        }, [y.label && m("h6", {
          class: `${i}-label`
        }, [y.label]), y.description && m("p", {
          class: `${i}-desc`
        }, [y.description]), v && m(Br, {
          class: `${i}-nested`,
          items: y.children,
          vertical: !0,
          onItemClick: e.onItemClick,
          classNames: {
            list: e.classNames.subList,
            item: e.classNames.subItem
          },
          styles: {
            list: e.styles.subList,
            item: e.styles.subItem
          }
        }, null)])]);
      })])]));
    };
  }
});
Br.install = function(e) {
  return e.component(Br.name, Br), e;
};
const ZL = (e) => {
  const { componentCls: t, antCls: n } = e;
  return {
    [t]: {
      [`${n}-cascader-menus ${n}-cascader-menu`]: {
        height: "auto"
      },
      [`${t}-item`]: {
        "&-icon": {
          marginInlineEnd: e.paddingXXS
        },
        "&-extra": {
          marginInlineStart: e.padding
        }
      },
      [`&${t}-block`]: {
        [`${t}-item-extra`]: {
          marginInlineStart: "auto"
        }
      }
    }
  };
}, QL = () => ({}), JL = Hn(
  "Suggestion",
  (e) => {
    const t = tn(e, {});
    return ZL(t);
  },
  QL
);
function eN(e, t, n, o, r) {
  const [i, a] = qe([]), l = (p, y = i.value) => {
    let g = Re(e);
    for (let v = 0; v < p - 1; v += 1) {
      const b = y[v], O = g.find((C) => C.value === b);
      if (!O)
        break;
      g = O.children || [];
    }
    return g;
  }, s = (p) => p.map((y, g) => {
    const b = l(g + 1, p).find((O) => O.value === y);
    return b == null ? void 0 : b.value;
  }), c = (p) => {
    const y = i.value.length || 1, g = l(y), v = g.findIndex(
      (C) => C.value === i.value[y - 1]
    ), b = g.length, O = g[(v + p + b) % b];
    a([...i.value.slice(0, y - 1), O.value]);
  }, u = () => {
    i.value.length > 1 && a(i.value.slice(0, i.value.length - 1));
  }, d = () => {
    const p = l(i.value.length + 1);
    p.length && a([...i.value, p[0].value]);
  }, f = Ml((p) => {
    if (Re(t))
      switch (console.log("e.key", p), p.key) {
        case "ArrowDown":
          c(1), p.preventDefault();
          break;
        case "ArrowUp":
          c(-1), p.preventDefault();
          break;
        case "ArrowRight":
          Re(n) ? u() : d(), p.preventDefault();
          break;
        case "ArrowLeft":
          Re(n) ? d() : u(), p.preventDefault();
          break;
        case "Enter":
          l(i.value.length + 1).length || o(s(i.value)), p.preventDefault();
          break;
        case "Escape":
          r(), p.preventDefault();
          break;
      }
  });
  return ee(() => Re(t), () => {
    Re(t) && a([Re(e)[0].value]);
  }, { immediate: !0 }), [i, f];
}
function tN(e) {
  return dS() ? (fS(e), !0) : !1;
}
const nN = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
function oN(e) {
  return Array.isArray(e) ? e : [e];
}
function rN(e) {
  return lt();
}
function iN(e, t = !0, n) {
  rN() ? be(e, n) : t ? e() : De(e);
}
const O1 = nN ? window : void 0;
function No(e) {
  var t;
  const n = Re(e);
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
}
// @__NO_SIDE_EFFECTS__
function aN() {
  const e = K(!1), t = lt();
  return t && be(() => {
    e.value = !0;
  }, t), e;
}
// @__NO_SIDE_EFFECTS__
function lN(e) {
  const t = /* @__PURE__ */ aN();
  return w(() => (t.value, !!e()));
}
function sN(e, t, n = {}) {
  const { window: o = O1, ...r } = n;
  let i;
  const a = /* @__PURE__ */ lN(() => o && "ResizeObserver" in o), l = () => {
    i && (i.disconnect(), i = void 0);
  }, s = w(() => {
    const d = Re(e);
    return Array.isArray(d) ? d.map((f) => No(f)) : [No(d)];
  }), c = ee(
    s,
    (d) => {
      if (l(), a.value && o) {
        i = new ResizeObserver(t);
        for (const f of d)
          f && i.observe(f, r);
      }
    },
    { immediate: !0, flush: "post" }
  ), u = () => {
    l(), c();
  };
  return tN(u), {
    isSupported: a,
    stop: u
  };
}
function cN(e, t = { width: 0, height: 0 }, n = {}) {
  const { window: o = O1, box: r = "content-box" } = n, i = w(() => {
    var d, f;
    return (f = (d = No(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : f.includes("svg");
  }), a = K(t.width), l = K(t.height), { stop: s } = sN(
    e,
    ([d]) => {
      const f = r === "border-box" ? d.borderBoxSize : r === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
      if (o && i.value) {
        const p = No(e);
        if (p) {
          const y = p.getBoundingClientRect();
          a.value = y.width, l.value = y.height;
        }
      } else if (f) {
        const p = oN(f);
        a.value = p.reduce((y, { inlineSize: g }) => y + g, 0), l.value = p.reduce((y, { blockSize: g }) => y + g, 0);
      } else
        a.value = d.contentRect.width, l.value = d.contentRect.height;
    },
    n
  );
  iN(() => {
    const d = No(e);
    d && (a.value = "offsetWidth" in d ? d.offsetWidth : t.width, l.value = "offsetHeight" in d ? d.offsetHeight : t.height);
  });
  const c = ee(
    () => No(e),
    (d) => {
      a.value = d ? t.width : 0, l.value = d ? t.height : 0;
    }
  );
  function u() {
    s(), c();
  }
  return {
    width: a,
    height: l,
    stop: u
  };
}
const uN = /* @__PURE__ */ q({
  name: "AXSuggestion",
  __name: "Suggestion",
  props: ot({
    prefixCls: null,
    className: null,
    rootClassName: null,
    style: null,
    children: {
      type: Function
    },
    open: {
      type: Boolean
    },
    onOpenChange: {
      type: Function
    },
    items: {
      type: Function
    },
    onSelect: {
      type: Function
    },
    block: {
      type: Boolean
    },
    styles: null,
    classNames: null
  }, {
    open: !1
  }),
  setup(e) {
    Oe(e, "prefixCls");
    const t = Nt(), {
      direction: n,
      getPrefixCls: o
    } = pt(), r = w(() => o("suggestion", e.prefixCls));
    `${r.value}`;
    const i = w(() => n.value === "rtl"), a = Bn("suggestion"), l = Z(), [s, c, u] = JL(r), {
      width: d
    } = cN(l), f = w(() => {
      if (e.block && d.value)
        return {
          width: `${d.value}px`
        };
    }), [p, y] = qe(e.open);
    ee(() => e.open, (E) => {
      y(E);
    });
    const [g, v] = qe(), b = (E) => {
      var M;
      y(E), (M = e.onOpenChange) == null || M.call(e, E);
    }, O = (E) => {
      E === !1 ? b(!1) : (v(E), b(!0));
    }, C = () => {
      b(!1);
    }, x = w(() => typeof e.items == "function" ? e.items(g.value) : e.items), S = (E) => {
      e.onSelect && e.onSelect(E[E.length - 1]), b(!1);
    }, [P, $] = eN(x, p, i, S, C), T = w(() => {
      var E;
      return t.default ? t.default({
        onTrigger: O,
        onKeyDown: $
      }) : (E = e.children) == null ? void 0 : E.call(e, {
        onTrigger: O,
        onKeyDown: $
      });
    });
    return () => s(m(y5, {
      options: x.value,
      open: p.value,
      value: P.value,
      placement: i.value ? "topRight" : "topLeft",
      onDropdownVisibleChange: (E) => {
        E || C();
      },
      popupClassName: pe(e.rootClassName, r.value, c.value, u, {
        [`${r.value}-block`]: e.block
      }),
      onChange: S,
      dropdownStyle: f.value
    }, {
      default: () => m("div", {
        ref: l,
        class: pe(r.value, a.value.className, e.rootClassName, e.className, `${r.value}-wrapper`, c.value, u),
        style: {
          ...a.value.style,
          ...e.style
        }
      }, [T.value])
    }));
  }
}), P1 = Symbol("SenderHeaderContext"), _c = K(), dN = (e) => {
  $e(P1, e), ee(
    e,
    () => {
      _c.value = se(e), Jt(_c);
    },
    { immediate: !0, deep: !0 }
  );
}, fN = () => Ce(
  P1,
  w(() => _c.value || {})
), pN = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return dN(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
}), I1 = Symbol("ActionButtonContext"), Vc = K(), mN = (e) => {
  $e(I1, e), ee(
    e,
    () => {
      Vc.value = se(e), Jt(Vc);
    },
    { immediate: !0, deep: !0 }
  );
}, Xd = () => Ce(
  I1,
  w(() => Vc.value || {})
), gN = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return mN(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
}), Rl = /* @__PURE__ */ q({
  name: "AXSenderActionButton",
  __name: "index",
  props: ot({
    prefixCls: null,
    type: null,
    htmlType: null,
    shape: null,
    size: null,
    loading: null,
    disabled: null,
    ghost: null,
    block: null,
    danger: null,
    icon: null,
    href: null,
    target: null,
    title: null,
    onClick: null,
    onMousedown: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null,
    action: null
  }, {
    type: "text",
    disabled: void 0
  }),
  setup(e) {
    const t = dt(e, ["action", "type", "disabled", "onClick"]);
    Oe(e, "disabled");
    const n = Nt(), o = Xd(), r = w(() => {
      var s;
      const a = o.value.disabled, l = (s = o.value) == null ? void 0 : s[`${e.action}Disabled`];
      return e.disabled ?? a ?? l;
    }), i = w(() => o.value.prefixCls);
    return () => m(ut, Ge({
      type: e.type
    }, t, {
      onClick: (a) => {
        var l, s;
        r.value || ((s = (l = o.value) == null ? void 0 : l[e.action]) == null || s.call(l), e.onClick && !Array.isArray(e.onClick) && e.onClick(a));
      },
      class: pe(i.value, {
        [`${i.value}-disabled`]: r.value
      })
    }), {
      icon: () => n.default()
    });
  }
}), vN = /* @__PURE__ */ q({
  name: "AXSenderClearButton",
  __name: "ClearButton",
  props: ot({
    prefixCls: null,
    type: null,
    htmlType: null,
    shape: null,
    size: null,
    loading: null,
    disabled: null,
    ghost: null,
    block: null,
    danger: null,
    icon: null,
    href: null,
    target: null,
    title: null,
    onClick: null,
    onMousedown: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null
  }, {
    disabled: void 0
  }),
  setup(e) {
    const t = dt(e, ["disabled"]);
    return () => m(Rl, Ge({
      disabled: e.disabled
    }, t, {
      action: "onClear"
    }), {
      default: () => [m(Rd, null, null)]
    });
  }
}), hN = /* @__PURE__ */ q({
  name: "AXSenderStopLoading",
  __name: "StopLoading",
  props: {
    className: null
  },
  setup(e) {
    const t = e;
    return () => m("svg", {
      color: "currentColor",
      viewBox: "0 0 1000 1000",
      xmlns: "http://www.w3.org/2000/svg",
      xmlnsXlink: "http://www.w3.org/1999/xlink",
      class: t.className
    }, [m("title", null, [_r("Stop Loading")]), m("rect", {
      fill: "currentColor",
      height: "250",
      rx: "24",
      ry: "24",
      width: "250",
      x: "375",
      y: "375"
    }, null), m("circle", {
      cx: "500",
      cy: "500",
      fill: "none",
      r: "450",
      stroke: "currentColor",
      "stroke-width": "100",
      opacity: "0.45"
    }, null), m("circle", {
      cx: "500",
      cy: "500",
      fill: "none",
      r: "450",
      stroke: "currentColor",
      "stroke-width": "100",
      "stroke-dasharray": "600 9999999"
    }, [m("animateTransform", {
      attributeName: "transform",
      dur: "1s",
      from: "0 500 500",
      repeatCount: "indefinite",
      to: "360 500 500",
      type: "rotate"
    }, null)])]);
  }
}), vv = /* @__PURE__ */ q({
  name: "AXSenderLoadingButton",
  __name: "LoadingButton",
  props: ot({
    prefixCls: null,
    type: null,
    htmlType: null,
    shape: null,
    size: null,
    loading: null,
    disabled: null,
    ghost: null,
    block: null,
    danger: null,
    icon: null,
    href: null,
    target: null,
    title: null,
    onClick: null,
    onMousedown: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null
  }, {
    type: "primary",
    shape: "circle",
    icon: void 0,
    disabled: void 0
  }),
  setup(e) {
    const t = dt(e, ["type", "shape", "icon", "disabled"]), n = Xd(), {
      token: o
    } = ai.useToken();
    return () => m(Rl, Ge({
      type: e.type,
      disabled: e.disabled,
      shape: e.shape,
      icon: e.icon
    }, t, {
      style: {
        backgroundColor: "transparent",
        color: o.value.colorPrimary
      },
      class: pe(`${n.value.prefixCls}-loading-button`),
      action: "onCancel"
    }), {
      default: () => [m(hN, {
        className: `${n.value.prefixCls}-loading-icon`
      }, null)]
    });
  }
}), hv = /* @__PURE__ */ q({
  name: "AXSenderLoadingButton",
  __name: "SendButton",
  props: ot({
    prefixCls: null,
    type: null,
    htmlType: null,
    shape: null,
    size: null,
    loading: null,
    disabled: null,
    ghost: null,
    block: null,
    danger: null,
    icon: null,
    href: null,
    target: null,
    title: null,
    onClick: null,
    onMousedown: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null
  }, {
    type: "primary",
    shape: "circle",
    disabled: void 0
  }),
  setup(e) {
    const t = dt(e, ["type", "shape", "disabled"]);
    return () => m(Rl, Ge({
      type: e.type,
      shape: e.shape,
      disabled: e.disabled
    }, t, {
      action: "onSend"
    }), {
      default: () => [m(Ed, null, null)]
    });
  }
}), Sr = 1e3, Cr = 4, Yi = 140, Zi = 250, yv = 500, Qi = 0.8, yN = /* @__PURE__ */ q({
  name: "AXSenderRecordingIcon",
  __name: "RecordingIcon",
  props: {
    className: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null
  },
  setup(e) {
    const t = Yi / 2;
    return () => m("svg", {
      color: "currentColor",
      viewBox: `0 0 ${Sr} ${Sr}`,
      xmlns: "http://www.w3.org/2000/svg",
      xmlnsXlink: "http://www.w3.org/1999/xlink",
      class: e.className
    }, [m("title", null, [_r("Speech Recording")]), Array.from({
      length: Cr
    }).map((n, o) => {
      const r = (Sr - Yi * Cr) / (Cr - 1), i = o * (r + Yi), a = Sr / 2 - Zi / 2, l = Sr / 2 - yv / 2;
      return m("rect", {
        fill: "currentColor",
        rx: t,
        ry: t,
        height: Zi,
        width: Yi,
        x: i,
        y: a,
        key: o
      }, [m("animate", {
        attributeName: "height",
        values: `${Zi}; ${yv}; ${Zi}`,
        keyTimes: "0; 0.5; 1",
        dur: `${Qi}s`,
        begin: `${Qi / Cr * o}s`,
        repeatCount: "indefinite"
      }, null), m("animate", {
        attributeName: "y",
        values: `${a}; ${l}; ${a}`,
        keyTimes: "0; 0.5; 1",
        dur: `${Qi}s`,
        begin: `${Qi / Cr * o}s`,
        repeatCount: "indefinite"
      }, null)]);
    })]);
  }
}), bv = /* @__PURE__ */ q({
  name: "AXSenderSpeechButton",
  __name: "index",
  props: ot({
    prefixCls: null,
    type: null,
    htmlType: null,
    shape: null,
    size: null,
    loading: null,
    disabled: null,
    ghost: null,
    block: null,
    danger: null,
    icon: null,
    href: null,
    target: null,
    title: null,
    onClick: null,
    onMousedown: null,
    audioIcon: null,
    audioDisabledIcon: null,
    audioRecordingIcon: null
  }, {
    type: "text",
    disabled: void 0,
    audioIcon: () => m(Md, null, null),
    audioDisabledIcon: () => m(Ad, null, null),
    audioRecordingIcon: void 0
  }),
  setup(e) {
    const t = dt(e, ["type", "disabled", "audioIcon", "audioDisabledIcon", "audioRecordingIcon"]), n = Xd(), {
      token: o
    } = ai.useToken(), r = w(() => n.value.speechRecording), i = w(() => n.value.prefixCls), a = w(() => {
      let l;
      return r.value ? l = e.audioRecordingIcon ? e.audioRecordingIcon : m(yN, {
        className: `${i.value}-recording-icon`
      }, null) : n.value.onSpeechDisabled ? l = e.audioDisabledIcon : l = e.audioIcon, l;
    });
    return () => m(Rl, Ge({
      type: e.type,
      disabled: e.disabled
    }, t, {
      style: {
        display: "flex",
        justifyContent: "center",
        alignItems: "center",
        color: o.value.colorPrimary
      },
      action: "onSpeech"
    }), {
      default: () => [a.value]
    });
  }
}), Hr = /* @__PURE__ */ q({
  name: "AXTransitionCollapse",
  __name: "TransitionCollapse",
  props: {
    prefixCls: {
      default: "ax"
    }
  },
  setup(e) {
    const t = e, n = Nt(), o = w(() => t.prefixCls + "-transition-collapse"), r = {
      beforeEnter(i) {
        i.dataset || (i.dataset = {}), i.dataset.oldPaddingTop = i.style.paddingTop, i.dataset.oldPaddingBottom = i.style.paddingBottom, i.style.maxHeight = "0", i.style.paddingTop = "0", i.style.paddingBottom = "0";
      },
      enter(i) {
        i.dataset.oldOverflow = i.style.overflow, i.scrollHeight !== 0 ? (i.style.maxHeight = `${i.scrollHeight}px`, i.style.paddingTop = i.dataset.oldPaddingTop, i.style.paddingBottom = i.dataset.oldPaddingBottom) : (i.style.maxHeight = `${i.dataset.oldMaxHeight || "999"}px`, i.style.paddingTop = i.dataset.oldPaddingTop, i.style.paddingBottom = i.dataset.oldPaddingBottom), i.style.overflow = "hidden";
      },
      afterEnter(i) {
        i.style.maxHeight = "", i.style.overflow = i.dataset.oldOverflow;
      },
      beforeLeave(i) {
        i.dataset || (i.dataset = {}), i.dataset.oldMaxHeight = i.scrollHeight, i.dataset.oldPaddingTop = i.style.paddingTop, i.dataset.oldPaddingBottom = i.style.paddingBottom, i.dataset.oldOverflow = i.style.overflow, i.style.overflow = "hidden", i.style.maxHeight = `${i.scrollHeight}px`;
      },
      leave(i) {
        i.scrollHeight !== 0 && (i.style.maxHeight = "0", i.style.paddingTop = "0", i.style.paddingBottom = "0");
      },
      afterLeave(i) {
        i.style.maxHeight = "", i.style.overflow = i.dataset.oldOverflow, i.style.paddingTop = i.dataset.oldPaddingTop, i.style.paddingBottom = i.dataset.oldPaddingBottom;
      }
    };
    return () => m(Xt, {
      name: o.value,
      onBeforeEnter: r.beforeEnter,
      onEnter: r.enter,
      onAfterEnter: r.afterEnter,
      onBeforeLeave: r.beforeLeave,
      onLeave: r.leave,
      onAfterLeave: r.afterLeave
    }, {
      default: () => {
        var i;
        return [(i = n.default) == null ? void 0 : i.call(n)];
      }
    });
  }
}), T1 = (e) => {
  const { componentCls: t } = e, n = `${t}-transition-collapse`;
  return {
    [t]: {
      [n]: {
        "&-enter-active": {
          transition: ["max-height", "padding-top", "padding-bottom"].map(
            (o) => `${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`
          ).join(",")
        },
        "&-leave-active": {
          transition: ["max-height", "padding-top", "padding-bottom"].map(
            (o) => `${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`
          ).join(",")
        }
      }
    }
  };
};
Hr.install = function(e) {
  return e.component(Hr.name, Hr), e;
};
const bN = (e) => {
  const { componentCls: t, calc: n } = e, o = `${t}-header`;
  return {
    [t]: {
      [o]: {
        borderBottomWidth: e.lineWidth,
        borderBottomStyle: "solid",
        borderBottomColor: e.colorBorder,
        // ======================== Header ========================
        "&-header": {
          background: e.colorFillAlter,
          fontSize: e.fontSize,
          lineHeight: e.lineHeight,
          paddingBlock: n(e.paddingSM).sub(e.lineWidthBold).equal(),
          paddingInlineStart: e.padding,
          paddingInlineEnd: e.paddingXS,
          display: "flex",
          borderRadius: {
            _skip_check_: !0,
            value: n(e.borderRadius).mul(2).equal()
          },
          borderBottomRightRadius: 0,
          borderBottomLeftRadius: 0,
          [`${o}-title`]: {
            flex: "auto"
          }
        },
        // ======================= Content ========================
        "&-content": {
          padding: e.padding
        },
        // ======================== Motion ========================
        "&-motion": {
          transition: ["height", "border"].map((r) => `${r} ${e.motionDurationSlow}`).join(","),
          overflow: "hidden",
          "&-enter-start, &-leave-active": {
            borderBottomColor: "transparent"
          },
          "&-hidden": {
            display: "none"
          }
        }
      }
    }
  };
}, SN = (e) => {
  const {
    componentCls: t,
    padding: n,
    paddingSM: o,
    paddingXS: r,
    paddingXXS: i,
    lineWidth: a,
    lineWidthBold: l,
    calc: s
  } = e;
  return {
    [t]: {
      position: "relative",
      width: "100%",
      boxSizing: "border-box",
      boxShadow: `${e.boxShadowTertiary}`,
      transition: `background ${e.motionDurationSlow}`,
      // Border
      borderRadius: {
        _skip_check_: !0,
        value: s(e.borderRadius).mul(2).equal()
      },
      borderColor: e.colorBorder,
      borderWidth: 0,
      borderStyle: "solid",
      // Border
      "&:after": {
        content: '""',
        position: "absolute",
        inset: 0,
        pointerEvents: "none",
        transition: `border-color ${e.motionDurationSlow}`,
        borderRadius: {
          _skip_check_: !0,
          value: "inherit"
        },
        borderStyle: "inherit",
        borderColor: "inherit",
        borderWidth: a
      },
      // Focus
      "&:focus-within": {
        boxShadow: `${e.boxShadowSecondary}`,
        borderColor: e.colorPrimary,
        "&:after": {
          borderWidth: l
        }
      },
      "&-disabled": {
        background: e.colorBgContainerDisabled
      },
      // ============================== RTL ==============================
      [`&${t}-rtl`]: {
        direction: "rtl"
      },
      // ============================ Content ============================
      [`${t}-content`]: {
        display: "flex",
        gap: r,
        width: "100%",
        paddingBlock: o,
        paddingInlineStart: n,
        paddingInlineEnd: o,
        boxSizing: "border-box",
        alignItems: "flex-end"
      },
      // ============================ Prefix =============================
      [`${t}-prefix`]: {
        flex: "none"
      },
      // ============================= Input =============================
      [`${t}-input`]: {
        padding: 0,
        borderRadius: 0,
        flex: "auto",
        alignSelf: "center",
        minHeight: "auto"
      },
      // ============================ Actions ============================
      [`${t}-actions-list`]: {
        flex: "none",
        display: "flex",
        "&-presets": {
          gap: e.paddingXS
        }
      },
      [`${t}-actions-btn`]: {
        "&-disabled": {
          opacity: 0.45
        },
        "&-loading-button": {
          padding: 0,
          border: 0
        },
        "&-loading-icon": {
          height: e.controlHeight,
          width: e.controlHeight,
          verticalAlign: "top"
        },
        "&-recording-icon": {
          height: "1.2em",
          width: "1.2em",
          verticalAlign: "top"
        }
      },
      // ============================ Footer =============================
      [`${t}-footer`]: {
        paddingInlineStart: n,
        paddingInlineEnd: o,
        paddingBlockEnd: o,
        paddingBlockStart: i,
        boxSizing: "border-box"
      }
    }
  };
}, CN = () => ({}), $N = Hn(
  "Sender",
  (e) => {
    const { paddingXS: t, calc: n } = e, o = tn(e, {
      SenderContentMaxWidth: `calc(100% - ${kt(
        n(t).add(32).equal()
      )})`
    });
    return [
      SN(o),
      bN(o),
      T1(o)
    ];
  },
  CN
);
let Xa;
!Xa && typeof window < "u" && (Xa = window.SpeechRecognition || window.webkitSpeechRecognition);
function wN(e, t) {
  const n = e, o = w(() => {
    const g = Re(t);
    return typeof g == "object" ? {
      controlledRecording: g.recording,
      onControlledRecordingChange: g.onRecordingChange,
      speechInControlled: typeof g.recording == "boolean"
    } : {
      controlledRecording: void 0,
      onControlledRecordingChange: void 0,
      speechInControlled: !1
    };
  }), r = w(() => o.value.controlledRecording), i = o.value.onControlledRecordingChange, a = o.value.speechInControlled, l = Z(null);
  we((g) => {
    if (typeof navigator < "u" && "permissions" in navigator) {
      let v = null;
      navigator.permissions.query({ name: "microphone" }).then((b) => {
        l.value = b.state, b.onchange = function() {
          l.value = this.state;
        }, v = b;
      }), g(() => {
        v && (v.onchange = null);
      });
    }
  });
  const s = w(() => Xa && l.value !== "denied"), c = Z(null), [u, d] = x1(!1, {
    value: r
  }), f = Z(!1), p = () => {
    if (s.value && !c.value) {
      const g = new Xa();
      g.onstart = () => {
        d(!0);
      }, g.onend = () => {
        d(!1);
      }, g.onresult = (v) => {
        var b, O, C;
        if (!f.value) {
          const x = (C = (O = (b = v.results) == null ? void 0 : b[0]) == null ? void 0 : O[0]) == null ? void 0 : C.transcript;
          n(x);
        }
        f.value = !1;
      }, c.value = g;
    }
  };
  return { speechPermission: s, triggerSpeech: (g) => {
    g && !u.value || (f.value = g, a ? i == null || i(!u.value) : (p(), c.value && (u.value ? (c.value.stop(), i == null || i(!1)) : (c.value.start(), i == null || i(!0)))));
  }, recording: u };
}
function xN(e, t) {
  for (var n = e, o = 0; o < t.length; o += 1) {
    if (n == null)
      return;
    n = n[t[o]];
  }
  return n;
}
const ON = /* @__PURE__ */ q({
  name: "AXSender",
  __name: "Sender",
  props: ot({
    onKeyPress: {
      type: Function
    },
    onFocus: null,
    onBlur: null,
    prefixCls: null,
    defaultValue: null,
    value: null,
    loading: {
      type: Boolean
    },
    placeholder: null,
    readOnly: {
      type: Boolean
    },
    submitType: {
      type: [String, Boolean]
    },
    disabled: {
      type: Boolean
    },
    onSubmit: {
      type: Function
    },
    onChange: {
      type: Function
    },
    onCancel: null,
    onKeyDown: {
      type: Function
    },
    onPaste: {
      type: Function
    },
    onPasteFile: {
      type: Function
    },
    components: null,
    styles: null,
    rootClassName: null,
    classNames: null,
    style: null,
    className: null,
    actions: {
      type: [Function, Boolean]
    },
    allowSpeech: null,
    prefix: {
      type: Function
    },
    footer: {
      type: Function
    },
    header: {
      type: Function
    },
    autoSize: null
  }, {
    styles: () => ({}),
    classNames: () => ({}),
    submitType: "enter",
    actions: void 0,
    disabled: void 0,
    autoSize: () => ({
      maxRows: 8
    })
  }),
  emits: ["update:value"],
  setup(e, {
    expose: t,
    emit: n
  }) {
    const o = dt(e, ["prefixCls", "styles", "classNames", "className", "rootClassName", "style", "defaultValue", "value", "placeholder", "readOnly", "submitType", "onSubmit", "loading", "components", "onCancel", "onChange", "actions", "onKeyPress", "onKeyDown", "disabled", "allowSpeech", "prefix", "footer", "header", "onPaste", "onPasteFile", "autoSize"]);
    Oe(e, "prefixCls");
    function r(U, k, ne) {
      return xN(U, k) || ne;
    }
    const i = {
      SendButton: hv,
      ClearButton: vN,
      LoadingButton: vv,
      SpeechButton: bv
    }, a = Nt(), {
      direction: l,
      getPrefixCls: s
    } = pt(), c = w(() => s("sender", e.prefixCls)), u = Z(null), d = Z(null), f = Bn("sender"), p = w(() => `${c.value}-input`), [y, g, v] = $N(c.value), b = w(() => pe(c.value, f.value.className, e.className, e.rootClassName, g.value, v, {
      [`${c.value}-rtl`]: l.value === "rtl",
      [`${c.value}-disabled`]: e.disabled
    })), O = w(() => `${c.value}-actions-btn`), C = w(() => `${c.value}-actions-list`), x = Z(e.value ?? e.defaultValue ?? ""), S = (U) => {
      x.value = U;
    };
    ee(() => e.value, () => {
      S(e.value);
    });
    const P = (U, k) => {
      S(U), n("update:value", U), e.onChange && e.onChange(U, k);
    }, {
      speechPermission: $,
      triggerSpeech: T,
      recording: E
    } = wN((U) => {
      P(`${x.value} ${U}`);
    }, () => e.allowSpeech), M = r(e.components, ["input"], Je.TextArea), R = w(() => pr(o, {
      attr: !0,
      aria: !0,
      data: !0
    })), N = w(() => ({
      ...R.value,
      ref: d
    })), F = () => {
      x.value && e.onSubmit && !e.loading && e.onSubmit(x.value);
    }, H = () => {
      P("");
    }, I = Z(!1), A = () => {
      I.value = !0;
    }, j = () => {
      I.value = !1;
    }, L = (U) => {
      const k = U.key === "Enter" && !I.value;
      switch (e.submitType) {
        case "enter":
          k && !U.shiftKey && (U.preventDefault(), F());
          break;
        case "shiftEnter":
          k && U.shiftKey && (U.preventDefault(), F());
          break;
      }
      e.onKeyPress && e.onKeyPress(U);
    }, D = (U) => {
      var ne, X;
      const k = (ne = U.clipboardData) == null ? void 0 : ne.files;
      k != null && k.length && e.onPasteFile && (e.onPasteFile(k[0], k), U.preventDefault()), (X = e.onPaste) == null || X.call(e, U);
    }, _ = (U) => {
      var k, ne;
      U.target !== ((k = u.value) == null ? void 0 : k.querySelector(`.${p.value}`)) && U.preventDefault(), (ne = d.value) == null || ne.focus();
    }, V = w(() => {
      let U = m(jr, {
        class: `${C.value}-presets`
      }, {
        default: () => [e.allowSpeech && m(bv, typeof e.allowSpeech == "object" ? {
          audioIcon: e.allowSpeech.audioIcon,
          audioDisabledIcon: e.allowSpeech.audioDisabledIcon,
          audioRecordingIcon: e.allowSpeech.audioRecordingIcon
        } : {}, null), e.loading ? m(vv, null, null) : m(hv, null, null)]
      });
      const k = {
        components: i
      };
      return a.actions ? U = a.actions({
        ori: U,
        info: k
      }) : typeof e.actions == "function" ? U = e.actions(U, k) : (e.actions || e.actions === !1) && (U = e.actions), U;
    }), J = w(() => ({
      prefixCls: O.value,
      onSend: F,
      onSendDisabled: !x.value,
      onClear: H,
      onClearDisabled: !x.value,
      onCancel: e.onCancel,
      onCancelDisabled: !e.loading,
      onSpeech: () => T(!1),
      onSpeechDisabled: !$.value,
      speechRecording: E.value,
      disabled: e.disabled
    })), oe = w(() => {
      let U = null;
      const k = {
        components: i
      };
      return a.footer ? U = a.footer({
        info: k
      }) : typeof e.footer == "function" ? U = e.footer({
        components: i
      }) : e.footer && (U = e.footer), U;
    }), re = w(() => a.header ? a.header() : typeof e.header == "function" ? e.header() : e.header), Q = w(() => a.prefix ? a.prefix() : typeof e.prefix == "function" ? e.prefix() : e.prefix);
    return t({
      nativeElement: u.value,
      // 
      focus: (U) => {
        var k;
        return (k = d.value) == null ? void 0 : k.focus(U);
      },
      // 
      blur: () => {
        var U;
        return (U = d.value) == null ? void 0 : U.blur();
      }
    }), () => y(m("div", {
      ref: u,
      class: b.value,
      style: {
        ...f.value.style,
        ...e.style
      }
    }, [re.value && m(pN, {
      value: {
        prefixCls: c.value
      }
    }, {
      default: () => [re.value]
    }), m(gN, {
      value: J.value
    }, {
      default: () => [m("div", {
        class: `${c.value}-content`,
        onMousedown: _
      }, [Q.value && m("div", {
        class: pe(`${c.value}-prefix`, f.value.classNames.prefix, e.classNames.prefix),
        style: {
          ...f.value.styles.prefix,
          ...e.styles.prefix
        }
      }, [Q.value]), m(M, Ge(N.value, {
        disabled: e.disabled,
        style: {
          ...f.value.styles.input,
          ...e.styles.input
        },
        class: pe(p.value, f.value.classNames.input, e.classNames.input),
        autoSize: e.autoSize,
        value: x.value,
        onChange: (U) => {
          P(U.target.value, U), T(!0);
        },
        onPressEnter: L,
        onCompositionstart: A,
        onCompositionend: j,
        onKeydown: e.onKeyDown,
        placeholder: e.placeholder,
        onPaste: D,
        bordered: !1,
        readOnly: e.readOnly
      }), null), V.value && m("div", {
        class: pe(C.value, f.value.classNames.actions, e.classNames.actions),
        style: {
          ...f.value.styles.actions,
          ...e.styles.actions
        }
      }, [V.value])]), oe.value && m("div", {
        class: pe(`${c.value}-footer`, f.value.classNames.footer, e.classNames.footer),
        style: {
          ...f.value.styles.footer,
          ...e.styles.footer
        }
      }, [oe.value])]
    })]));
  }
}), Wc = /* @__PURE__ */ q({
  name: "AXSenderHeader",
  inheritAttrs: !1,
  __name: "SenderHeader",
  props: ot({
    forceRender: {
      type: Boolean
    },
    open: {
      type: Boolean
    },
    onOpenChange: {
      type: Function
    },
    title: null,
    children: null,
    className: null,
    style: null,
    classNames: null,
    styles: null,
    closable: {
      type: Boolean
    }
  }, {
    classNames: () => ({}),
    styles: () => ({})
  }),
  setup(e) {
    Oe(e, "classNames");
    const t = Nt(), n = fN(), o = w(() => `${n.value.prefixCls}-header`), r = Mv();
    return () => m(Hr, {
      prefixCls: n.value.prefixCls
    }, {
      default: () => {
        var i;
        return [e.open || e.forceRender ? en(m("div", Ge(r, {
          class: pe(o.value, e.className),
          style: {
            ...e.style
          }
        }), [(e.closable !== !1 || e.title) && m("div", {
          class: (
            // We follow antd naming standard here.
            // So the header part is use `-header` suffix.
            // Though its little bit weird for double `-header`.
            pe(`${o.value}-header`, e.classNames.header)
          ),
          style: {
            ...e.styles.header
          }
        }, [m("div", {
          class: `${o.value}-title`
        }, [e.title]), e.closable !== !1 && m("div", {
          class: `${o.value}-close`
        }, [m(ut, {
          type: "text",
          icon: m(hn, null, null),
          size: "small",
          onClick: () => {
            var a;
            (a = e.onOpenChange) == null || a.call(e, !e.open);
          }
        }, null)])]), t.default && m("div", {
          class: pe(`${o.value}-content`, e.classNames.content),
          style: {
            ...e.styles.content
          }
        }, [(i = t.default) == null ? void 0 : i.call(t)])]), [[pn, e.open]]) : null];
      }
    });
  }
}), va = Object.assign(ON, {
  Header: Wc
});
va.install = function(e) {
  return e.component(va.name, va), e.component(Wc.name, Wc), e;
};
function or(e) {
  const t = Z(null);
  let n = null;
  const o = lt(), r = () => {
    var l, s;
    if (!o) return;
    const i = o.refs[e];
    if (i) {
      t.value = i;
      return;
    }
    const a = (s = (l = o.proxy) == null ? void 0 : l.$el) == null ? void 0 : s.querySelector(`[ref="${e}"]`);
    t.value = a ?? null;
  };
  return be(() => {
    n = window.setTimeout(r, 0);
  }), Le(() => {
    n && clearTimeout(n), t.value = null;
  }), t;
}
const E1 = Symbol("AttachmentContext"), kc = K(), PN = (e) => {
  $e(E1, e), ee(
    e,
    () => {
      kc.value = se(e), Jt(kc);
    },
    { immediate: !0, deep: !0 }
  );
}, Dl = () => Ce(
  E1,
  w(() => kc.value || {})
), IN = q({
  inheritAttrs: !1,
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return PN(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
}), TN = /* @__PURE__ */ q({
  name: "AXAttachmentsPlaceholderUploader",
  __name: "PlaceholderUploader",
  props: ot({
    prefixCls: null,
    placeholder: null,
    upload: null,
    className: null,
    style: null
  }, {
    placeholder: () => ({})
  }),
  setup(e, {
    expose: t
  }) {
    const n = `${e.prefixCls}-placeholder`, o = w(() => e.placeholder || {}), r = or("upload-dragger"), i = Dl(), [a, l] = qe(!1), s = () => {
      l(!0);
    }, c = (y) => {
      y.currentTarget.contains(y.relatedTarget) || l(!1);
    }, u = () => {
      l(!1);
    }, d = w(() => {
      var y;
      return (y = r.value) == null ? void 0 : y.$el;
    });
    t({
      nativeElement: d
    });
    const f = (y) => Array.isArray(y) && y.every(Et), p = w(() => Et(e.placeholder) || f(e.placeholder) ? e.placeholder : m(jr, {
      align: "center",
      justify: "center",
      vertical: !0,
      class: `${n}-inner`
    }, {
      default: () => [m(Ve.Text, {
        class: `${n}-icon`
      }, {
        default: () => [o.value.icon]
      }), m(Ve.Title, {
        class: `${n}-title`,
        level: 5
      }, {
        default: () => [o.value.title]
      }), m(Ve.Text, {
        class: `${n}-description`,
        type: "secondary"
      }, {
        default: () => [o.value.description]
      })]
    }));
    return () => m("div", {
      class: pe(n, {
        [`${n}-drag-in`]: a.value,
        [`${n}-disabled`]: i.value.disabled
      }, e.className),
      onDragenter: s,
      onDragleave: c,
      onDrop: u,
      "aria-hidden": i.value.disabled,
      style: e.style
    }, [m(Qb.Dragger, Ge(e.upload, {
      showUploadList: !1,
      ref: "upload-dragger",
      style: {
        padding: 0,
        border: 0,
        background: "transparent"
      }
    }), {
      default: () => [p.value]
    })]);
  }
}), Sv = /* @__PURE__ */ q({
  name: "AXAttachmentsDropArea",
  __name: "DropArea",
  props: {
    prefixCls: null,
    className: null,
    getDropContainer: {
      type: Function
    },
    children: null
  },
  setup(e) {
    const t = Dl(), [n, o] = qe(), [r, i] = qe(null);
    be(() => {
      var s;
      o((s = e.getDropContainer) == null ? void 0 : s.call(e));
    }), ee(() => Re(e.getDropContainer), () => {
      var c;
      const s = (c = e.getDropContainer) == null ? void 0 : c.call(e);
      n.value !== s && o(s);
    }), ee(() => !!n.value, (s, c, u) => {
      if (n.value) {
        const d = () => {
          i(!0);
        }, f = (g) => {
          g.preventDefault();
        }, p = (g) => {
          g.relatedTarget || i(!1);
        }, y = (g) => {
          i(!1), g.preventDefault();
        };
        document.addEventListener("dragenter", d), document.addEventListener("dragover", f), document.addEventListener("dragleave", p), document.addEventListener("drop", y), u(() => {
          document.removeEventListener("dragenter", d), document.removeEventListener("dragover", f), document.removeEventListener("dragleave", p), document.removeEventListener("drop", y);
        });
      }
    });
    const a = w(() => e.getDropContainer && n.value && !t.value.disabled), l = `${e.prefixCls}-drop-area`;
    return () => a.value ? m(Ga, {
      to: n.value
    }, {
      default: () => [m("div", {
        class: pe(l, e.className, {
          [`${l}-on-body`]: n.value.tagName === "BODY"
        }),
        style: {
          display: r.value ? "block" : "none"
        }
      }, [e.children])]
    }) : null;
  }
}), A1 = /* @__PURE__ */ q({
  name: "AXAttachmentsSilentUploader",
  __name: "SilentUploader",
  props: {
    children: null,
    upload: null,
    rootClassName: null
  },
  setup(e, {
    expose: t
  }) {
    const n = or("upload"), o = w(() => {
      var r;
      return (r = n.value) == null ? void 0 : r.$el;
    });
    return t({
      nativeElement: o
    }), () => m(Qb, Ge(e.upload, {
      showUploadList: !1,
      ref: "upload"
    }), {
      default: () => [e.children]
    });
  }
}), M1 = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [o, r] of t)
    n[o] = r;
  return n;
}, EN = {}, AN = {
  width: "1em",
  height: "1em",
  viewBox: "0 0 16 16",
  version: "1.1",
  xmlns: "http://www.w3.org/2000/svg",
  xmlnsXlink: "http://www.w3.org/1999/xlink"
}, MN = /* @__PURE__ */ Xo("title", null, "audio", -1), RN = /* @__PURE__ */ Xo("g", {
  stroke: "none",
  "stroke-width": "1",
  fill: "none",
  "fill-rule": "evenodd"
}, [
  /* @__PURE__ */ Xo("path", {
    d: "M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",
    fill: "currentColor"
  })
], -1), DN = [
  MN,
  RN
];
function FN(e, t) {
  return Dv(), Rv("svg", AN, DN);
}
const LN = /* @__PURE__ */ M1(EN, [["render", FN]]), NN = {}, jN = {
  width: "1em",
  height: "1em",
  viewBox: "0 0 16 16",
  version: "1.1",
  xmlns: "http://www.w3.org/2000/svg",
  xmlnsXlink: "http://www.w3.org/1999/xlink"
}, zN = /* @__PURE__ */ Xo("title", null, "video", -1), BN = /* @__PURE__ */ Xo("g", {
  stroke: "none",
  "stroke-width": "1",
  fill: "none",
  "fill-rule": "evenodd"
}, [
  /* @__PURE__ */ Xo("path", {
    d: "M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",
    fill: "currentColor"
  })
], -1), HN = [
  zN,
  BN
];
function _N(e, t) {
  return Dv(), Rv("svg", jN, HN);
}
const VN = /* @__PURE__ */ M1(NN, [["render", _N]]), WN = (e) => e.indexOf("image/") === 0, Ji = 200;
function kN(e) {
  return new Promise((t) => {
    if (!e || !e.type || !WN(e.type)) {
      t("");
      return;
    }
    const n = new Image();
    if (n.onload = () => {
      const { width: o, height: r } = n, i = o / r, a = i > 1 ? Ji : Ji * i, l = i > 1 ? Ji / i : Ji, s = document.createElement("canvas");
      s.width = a, s.height = l, s.style.cssText = `position: fixed; left: 0; top: 0; width: ${a}px; height: ${l}px; z-index: 9999; display: none;`, document.body.appendChild(s), s.getContext("2d").drawImage(n, 0, 0, a, l);
      const u = s.toDataURL();
      document.body.removeChild(s), window.URL.revokeObjectURL(n.src), t(u);
    }, n.crossOrigin = "anonymous", e.type.startsWith("image/svg+xml")) {
      const o = new FileReader();
      o.onload = () => {
        o.result && typeof o.result == "string" && (n.src = o.result);
      }, o.readAsDataURL(e);
    } else if (e.type.startsWith("image/gif")) {
      const o = new FileReader();
      o.onload = () => {
        o.result && t(o.result);
      }, o.readAsDataURL(e);
    } else
      n.src = window.URL.createObjectURL(e);
  });
}
function Cv(e, t) {
  return t.has(e.substring(1).toLowerCase());
}
const Qe = Math.round;
function Ns(e, t) {
  const n = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], o = n.map((r) => parseFloat(r));
  for (let r = 0; r < 3; r += 1)
    o[r] = t(o[r] || 0, n[r] || "", r);
  return n[3] ? o[3] = n[3].includes("%") ? o[3] / 100 : o[3] : o[3] = 1, o;
}
const $v = (e, t, n) => n === 0 ? e : e / 100;
function $r(e, t) {
  const n = t || 255;
  return e > n ? n : e < 0 ? 0 : e;
}
class Kd {
  constructor(t) {
    ht(this, "isValid", !0), ht(this, "r", 0), ht(this, "g", 0), ht(this, "b", 0), ht(this, "a", 1), ht(this, "_h", void 0), ht(this, "_s", void 0), ht(this, "_l", void 0), ht(this, "_v", void 0), ht(this, "_max", void 0), ht(this, "_min", void 0), ht(this, "_brightness", void 0);
    function n(o) {
      return o[0] in t && o[1] in t && o[2] in t;
    }
    if (t) if (typeof t == "string") {
      let r = function(i) {
        return o.startsWith(i);
      };
      const o = t.trim();
      /^#?[A-F\d]{3,8}$/i.test(o) ? this.fromHexString(o) : r("rgb") ? this.fromRgbString(o) : r("hsl") ? this.fromHslString(o) : (r("hsv") || r("hsb")) && this.fromHsvString(o);
    } else if (t instanceof Kd)
      this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
    else if (n("rgb"))
      this.r = $r(t.r), this.g = $r(t.g), this.b = $r(t.b), this.a = typeof t.a == "number" ? $r(t.a, 1) : 1;
    else if (n("hsl"))
      this.fromHsl(t);
    else if (n("hsv"))
      this.fromHsv(t);
    else
      throw new Error("@ant-design/fast-color: unsupported input " + JSON.stringify(t));
  }
  // ======================= Setter =======================
  setR(t) {
    return this._sc("r", t);
  }
  setG(t) {
    return this._sc("g", t);
  }
  setB(t) {
    return this._sc("b", t);
  }
  setA(t) {
    return this._sc("a", t, 1);
  }
  setHue(t) {
    const n = this.toHsv();
    return n.h = t, this._c(n);
  }
  // ======================= Getter =======================
  /**
   * Returns the perceived luminance of a color, from 0-1.
   * @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
   */
  getLuminance() {
    function t(i) {
      const a = i / 255;
      return a <= 0.03928 ? a / 12.92 : Math.pow((a + 0.055) / 1.055, 2.4);
    }
    const n = t(this.r), o = t(this.g), r = t(this.b);
    return 0.2126 * n + 0.7152 * o + 0.0722 * r;
  }
  getHue() {
    if (typeof this._h > "u") {
      const t = this.getMax() - this.getMin();
      t === 0 ? this._h = 0 : this._h = Qe(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
    }
    return this._h;
  }
  getSaturation() {
    if (typeof this._s > "u") {
      const t = this.getMax() - this.getMin();
      t === 0 ? this._s = 0 : this._s = t / this.getMax();
    }
    return this._s;
  }
  getLightness() {
    return typeof this._l > "u" && (this._l = (this.getMax() + this.getMin()) / 510), this._l;
  }
  getValue() {
    return typeof this._v > "u" && (this._v = this.getMax() / 255), this._v;
  }
  /**
   * Returns the perceived brightness of the color, from 0-255.
   * Note: this is not the b of HSB
   * @see http://www.w3.org/TR/AERT#color-contrast
   */
  getBrightness() {
    return typeof this._brightness > "u" && (this._brightness = (this.r * 299 + this.g * 587 + this.b * 114) / 1e3), this._brightness;
  }
  // ======================== Func ========================
  darken(t = 10) {
    const n = this.getHue(), o = this.getSaturation();
    let r = this.getLightness() - t / 100;
    return r < 0 && (r = 0), this._c({
      h: n,
      s: o,
      l: r,
      a: this.a
    });
  }
  lighten(t = 10) {
    const n = this.getHue(), o = this.getSaturation();
    let r = this.getLightness() + t / 100;
    return r > 1 && (r = 1), this._c({
      h: n,
      s: o,
      l: r,
      a: this.a
    });
  }
  /**
   * Mix the current color a given amount with another color, from 0 to 100.
   * 0 means no mixing (return current color).
   */
  mix(t, n = 50) {
    const o = this._c(t), r = n / 100, i = (l) => (o[l] - this[l]) * r + this[l], a = {
      r: Qe(i("r")),
      g: Qe(i("g")),
      b: Qe(i("b")),
      a: Qe(i("a") * 100) / 100
    };
    return this._c(a);
  }
  /**
   * Mix the color with pure white, from 0 to 100.
   * Providing 0 will do nothing, providing 100 will always return white.
   */
  tint(t = 10) {
    return this.mix({
      r: 255,
      g: 255,
      b: 255,
      a: 1
    }, t);
  }
  /**
   * Mix the color with pure black, from 0 to 100.
   * Providing 0 will do nothing, providing 100 will always return black.
   */
  shade(t = 10) {
    return this.mix({
      r: 0,
      g: 0,
      b: 0,
      a: 1
    }, t);
  }
  onBackground(t) {
    const n = this._c(t), o = this.a + n.a * (1 - this.a), r = (i) => Qe((this[i] * this.a + n[i] * n.a * (1 - this.a)) / o);
    return this._c({
      r: r("r"),
      g: r("g"),
      b: r("b"),
      a: o
    });
  }
  // ======================= Status =======================
  isDark() {
    return this.getBrightness() < 128;
  }
  isLight() {
    return this.getBrightness() >= 128;
  }
  // ======================== MISC ========================
  equals(t) {
    return this.r === t.r && this.g === t.g && this.b === t.b && this.a === t.a;
  }
  clone() {
    return this._c(this);
  }
  // ======================= Format =======================
  toHexString() {
    let t = "#";
    const n = (this.r || 0).toString(16);
    t += n.length === 2 ? n : "0" + n;
    const o = (this.g || 0).toString(16);
    t += o.length === 2 ? o : "0" + o;
    const r = (this.b || 0).toString(16);
    if (t += r.length === 2 ? r : "0" + r, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
      const i = Qe(this.a * 255).toString(16);
      t += i.length === 2 ? i : "0" + i;
    }
    return t;
  }
  /** CSS support color pattern */
  toHsl() {
    return {
      h: this.getHue(),
      s: this.getSaturation(),
      l: this.getLightness(),
      a: this.a
    };
  }
  /** CSS support color pattern */
  toHslString() {
    const t = this.getHue(), n = Qe(this.getSaturation() * 100), o = Qe(this.getLightness() * 100);
    return this.a !== 1 ? `hsla(${t},${n}%,${o}%,${this.a})` : `hsl(${t},${n}%,${o}%)`;
  }
  /** Same as toHsb */
  toHsv() {
    return {
      h: this.getHue(),
      s: this.getSaturation(),
      v: this.getValue(),
      a: this.a
    };
  }
  toRgb() {
    return {
      r: this.r,
      g: this.g,
      b: this.b,
      a: this.a
    };
  }
  toRgbString() {
    return this.a !== 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : `rgb(${this.r},${this.g},${this.b})`;
  }
  toString() {
    return this.toRgbString();
  }
  // ====================== Privates ======================
  /** Return a new FastColor object with one channel changed */
  _sc(t, n, o) {
    const r = this.clone();
    return r[t] = $r(n, o), r;
  }
  _c(t) {
    return new this.constructor(t);
  }
  getMax() {
    return typeof this._max > "u" && (this._max = Math.max(this.r, this.g, this.b)), this._max;
  }
  getMin() {
    return typeof this._min > "u" && (this._min = Math.min(this.r, this.g, this.b)), this._min;
  }
  fromHexString(t) {
    const n = t.replace("#", "");
    function o(r, i) {
      return parseInt(n[r] + n[i || r], 16);
    }
    n.length < 6 ? (this.r = o(0), this.g = o(1), this.b = o(2), this.a = n[3] ? o(3) / 255 : 1) : (this.r = o(0, 1), this.g = o(2, 3), this.b = o(4, 5), this.a = n[6] ? o(6, 7) / 255 : 1);
  }
  fromHsl({
    h: t,
    s: n,
    l: o,
    a: r
  }) {
    if (this._h = t % 360, this._s = n, this._l = o, this.a = typeof r == "number" ? r : 1, n <= 0) {
      const f = Qe(o * 255);
      this.r = f, this.g = f, this.b = f;
    }
    let i = 0, a = 0, l = 0;
    const s = t / 60, c = (1 - Math.abs(2 * o - 1)) * n, u = c * (1 - Math.abs(s % 2 - 1));
    s >= 0 && s < 1 ? (i = c, a = u) : s >= 1 && s < 2 ? (i = u, a = c) : s >= 2 && s < 3 ? (a = c, l = u) : s >= 3 && s < 4 ? (a = u, l = c) : s >= 4 && s < 5 ? (i = u, l = c) : s >= 5 && s < 6 && (i = c, l = u);
    const d = o - c / 2;
    this.r = Qe((i + d) * 255), this.g = Qe((a + d) * 255), this.b = Qe((l + d) * 255);
  }
  fromHsv({
    h: t,
    s: n,
    v: o,
    a: r
  }) {
    this._h = t % 360, this._s = n, this._v = o, this.a = typeof r == "number" ? r : 1;
    const i = Qe(o * 255);
    if (this.r = i, this.g = i, this.b = i, n <= 0)
      return;
    const a = t / 60, l = Math.floor(a), s = a - l, c = Qe(o * (1 - n) * 255), u = Qe(o * (1 - n * s) * 255), d = Qe(o * (1 - n * (1 - s)) * 255);
    switch (l) {
      case 0:
        this.g = d, this.b = c;
        break;
      case 1:
        this.r = u, this.b = c;
        break;
      case 2:
        this.r = c, this.b = d;
        break;
      case 3:
        this.r = c, this.g = u;
        break;
      case 4:
        this.r = d, this.g = c;
        break;
      case 5:
      default:
        this.g = c, this.b = u;
        break;
    }
  }
  fromHsvString(t) {
    const n = Ns(t, $v);
    this.fromHsv({
      h: n[0],
      s: n[1],
      v: n[2],
      a: n[3]
    });
  }
  fromHslString(t) {
    const n = Ns(t, $v);
    this.fromHsl({
      h: n[0],
      s: n[1],
      l: n[2],
      a: n[3]
    });
  }
  fromRgbString(t) {
    const n = Ns(t, (o, r) => (
      // Convert percentage to number. e.g. 50% -> 128
      r.includes("%") ? Qe(o / 100 * 255) : o
    ));
    this.r = n[0], this.g = n[1], this.b = n[2], this.a = n[3];
  }
}
const XN = (e) => {
  const { componentCls: t, antCls: n, calc: o } = e, r = `${t}-list-card`, i = o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();
  return {
    [r]: {
      borderRadius: e.borderRadius,
      position: "relative",
      background: e.colorFillContent,
      borderWidth: e.lineWidth,
      borderStyle: "solid",
      borderColor: "transparent",
      flex: "none",
      // =============================== Desc ================================
      [`${r}-name,${r}-desc`]: {
        display: "flex",
        flexWrap: "nowrap",
        maxWidth: "100%"
      },
      [`${r}-ellipsis-prefix`]: {
        flex: "0 1 auto",
        minWidth: 0,
        overflow: "hidden",
        textOverflow: "ellipsis",
        whiteSpace: "nowrap"
      },
      [`${r}-ellipsis-suffix`]: {
        flex: "none"
      },
      // ============================= Overview ==============================
      "&-type-overview": {
        padding: o(e.paddingSM).sub(e.lineWidth).equal(),
        paddingInlineStart: o(e.padding).add(e.lineWidth).equal(),
        display: "flex",
        flexWrap: "nowrap",
        gap: e.paddingXS,
        alignItems: "flex-start",
        width: 236,
        // Icon
        [`${r}-icon`]: {
          fontSize: o(e.fontSizeLG).mul(2).equal(),
          lineHeight: 1,
          paddingTop: o(e.paddingXXS).mul(1.5).equal(),
          flex: "none"
        },
        // Content
        [`${r}-content`]: {
          flex: "auto",
          minWidth: 0,
          display: "flex",
          flexDirection: "column",
          alignItems: "stretch"
        },
        [`${r}-desc`]: {
          color: e.colorTextTertiary
        }
      },
      // ============================== Preview ==============================
      "&-type-preview": {
        width: i,
        height: i,
        lineHeight: 1,
        display: "flex",
        alignItems: "center",
        [`&:not(${r}-status-error)`]: {
          border: 0
        },
        // Img
        [`${n}-image`]: {
          width: "100%",
          height: "100%",
          borderRadius: "inherit",
          img: {
            height: "100%",
            objectFit: "cover",
            borderRadius: "inherit"
          }
        },
        // Mask
        [`${r}-img-mask`]: {
          position: "absolute",
          inset: 0,
          display: "flex",
          justifyContent: "center",
          alignItems: "center",
          background: `rgba(0, 0, 0, ${e.opacityLoading})`,
          borderRadius: "inherit"
        },
        // Error
        [`&${r}-status-error`]: {
          [`img, ${r}-img-mask`]: {
            borderRadius: o(e.borderRadius).sub(e.lineWidth).equal()
          },
          [`${r}-desc`]: {
            paddingInline: e.paddingXXS
          }
        },
        // Progress
        [`${r}-progress`]: {}
      },
      // ============================ Remove Icon ============================
      [`${r}-remove`]: {
        position: "absolute",
        top: 0,
        insetInlineEnd: 0,
        border: 0,
        padding: e.paddingXXS,
        background: "transparent",
        lineHeight: 1,
        transform: "translate(50%, -50%)",
        fontSize: e.fontSize,
        cursor: "pointer",
        opacity: e.opacityLoading,
        display: "none",
        "&:dir(rtl)": {
          transform: "translate(-50%, -50%)"
        },
        "&:hover": {
          opacity: 1
        },
        "&:active": {
          opacity: e.opacityLoading
        }
      },
      [`&:hover ${r}-remove`]: {
        display: "block"
      },
      // ============================== Status ===============================
      "&-status-error": {
        borderColor: e.colorError,
        [`${r}-desc`]: {
          color: e.colorError
        }
      },
      // ============================== Motion ===============================
      "&-motion": {
        overflow: "hidden",
        transition: ["opacity", "width", "margin", "padding"].map((a) => `${a} ${e.motionDurationSlow}`).join(","),
        [`${r}-remove`]: {
          display: "none !important"
        },
        "&-appear-start": {
          width: 0,
          transition: "none"
        },
        "&-leave-active": {
          opacity: 0,
          width: 0,
          paddingInline: 0,
          borderInlineWidth: 0,
          marginInlineEnd: o(e.paddingSM).mul(-1).equal()
        }
      }
    }
  };
}, Xc = {
  "&, *": {
    boxSizing: "border-box"
  }
}, KN = (e) => {
  const { componentCls: t, calc: n, antCls: o } = e, r = `${t}-drop-area`, i = `${t}-placeholder`;
  return {
    // ============================== Full Screen ==============================
    [r]: {
      position: "absolute",
      inset: 0,
      zIndex: e.zIndexPopupBase,
      ...Xc,
      "&-on-body": {
        position: "fixed",
        inset: 0
      },
      "&-hide-placement": {
        [`${i}-inner`]: {
          display: "none"
        }
      },
      [i]: {
        padding: 0
      }
    },
    "&": {
      // ============================= Placeholder =============================
      [i]: {
        height: "100%",
        borderRadius: e.borderRadius,
        borderWidth: e.lineWidthBold,
        borderStyle: "dashed",
        borderColor: "transparent",
        padding: e.padding,
        position: "relative",
        backdropFilter: "blur(10px)",
        // background: token.colorBgPlaceholderHover,
        ...Xc,
        [`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]: {
          padding: 0
        },
        [`&${i}-drag-in`]: {
          borderColor: e.colorPrimaryHover
        },
        [`&${i}-disabled`]: {
          opacity: 0.25,
          pointerEvents: "none"
        },
        [`${i}-inner`]: {
          gap: n(e.paddingXXS).div(2).equal()
        },
        [`${i}-icon`]: {
          fontSize: e.fontSizeHeading2,
          lineHeight: 1
        },
        [`${i}-title${i}-title`]: {
          margin: 0,
          fontSize: e.fontSize,
          lineHeight: e.lineHeight
        },
        [`${i}-description`]: {}
      }
    }
  };
}, GN = (e) => {
  const { componentCls: t, calc: n } = e, o = `${t}-list`, r = n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();
  return {
    [t]: {
      position: "relative",
      width: "100%",
      ...Xc,
      // =============================== File List ===============================
      [o]: {
        display: "flex",
        flexWrap: "wrap",
        gap: e.paddingSM,
        fontSize: e.fontSize,
        lineHeight: e.lineHeight,
        color: e.colorText,
        paddingBlock: e.paddingSM,
        paddingInline: e.padding,
        width: "100%",
        background: e.colorBgContainer,
        // Hide scrollbar
        scrollbarWidth: "none",
        "-ms-overflow-style": "none",
        "&::-webkit-scrollbar": {
          display: "none"
        },
        // Scroll
        "&-overflow-scrollX, &-overflow-scrollY": {
          "&:before, &:after": {
            content: '""',
            position: "absolute",
            opacity: 0,
            transition: `opacity ${e.motionDurationSlow}`,
            zIndex: 1
          }
        },
        "&-overflow-ping-start:before": {
          opacity: 1
        },
        "&-overflow-ping-end:after": {
          opacity: 1
        },
        "&-overflow-scrollX": {
          overflowX: "auto",
          overflowY: "hidden",
          flexWrap: "nowrap",
          "&:before, &:after": {
            insetBlock: 0,
            width: 8
          },
          "&:before": {
            insetInlineStart: 0,
            background: "linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"
          },
          "&:after": {
            insetInlineEnd: 0,
            background: "linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"
          },
          "&:dir(rtl)": {
            "&:before": {
              background: "linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"
            },
            "&:after": {
              background: "linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"
            }
          }
        },
        "&-overflow-scrollY": {
          overflowX: "hidden",
          overflowY: "auto",
          maxHeight: n(r).mul(3).equal(),
          "&:before, &:after": {
            insetInline: 0,
            height: 8
          },
          "&:before": {
            insetBlockStart: 0,
            background: "linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"
          },
          "&:after": {
            insetBlockEnd: 0,
            background: "linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"
          }
        },
        // ======================================================================
        // ==                              Upload                              ==
        // ======================================================================
        "&-upload-btn": {
          width: r,
          height: r,
          fontSize: e.fontSizeHeading2,
          color: "#999"
        },
        // ======================================================================
        // ==                             PrevNext                             ==
        // ======================================================================
        "&-prev-btn, &-next-btn": {
          position: "absolute",
          top: "50%",
          transform: "translateY(-50%)",
          boxShadow: e.boxShadowTertiary,
          opacity: 0,
          pointerEvents: "none"
        },
        "&-prev-btn": {
          left: {
            _skip_check_: !0,
            value: e.padding
          }
        },
        "&-next-btn": {
          right: {
            _skip_check_: !0,
            value: e.padding
          }
        },
        "&:dir(ltr)": {
          [`&${o}-overflow-ping-start ${o}-prev-btn`]: {
            opacity: 1,
            pointerEvents: "auto"
          },
          [`&${o}-overflow-ping-end ${o}-next-btn`]: {
            opacity: 1,
            pointerEvents: "auto"
          }
        },
        "&:dir(rtl)": {
          [`&${o}-overflow-ping-end ${o}-prev-btn`]: {
            opacity: 1,
            pointerEvents: "auto"
          },
          [`&${o}-overflow-ping-start ${o}-next-btn`]: {
            opacity: 1,
            pointerEvents: "auto"
          }
        }
      }
    }
  };
}, UN = (e) => {
  const { colorBgContainer: t } = e;
  return {
    colorBgPlaceholderHover: new Kd(t).setA(0.85).toRgbString()
  };
}, R1 = Hn(
  "Attachments",
  (e) => {
    const t = tn(e, {});
    return [
      KN(t),
      GN(t),
      XN(t)
    ];
  },
  UN
), wv = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg"]), qN = /* @__PURE__ */ new Set(["mp3", "wav", "flac", "ape", "aac", "ogg"]), YN = /* @__PURE__ */ new Set(["mp4", "avi", "mov", "wmv", "flv", "mkv"]), ZN = /* @__PURE__ */ new Set(["md", "mdx"]), QN = /* @__PURE__ */ new Set(["zip", "rar", "7z", "tar", "gz"]), JN = /* @__PURE__ */ new Set(["xlsx", "xls"]), ej = /* @__PURE__ */ new Set(["ppt", "pptx"]), tj = /* @__PURE__ */ new Set(["doc", "docx"]), nj = /* @__PURE__ */ new Set(["pdf"]);
console.log(11);
const js = " ", ea = "#8c8c8c", Ka = /* @__PURE__ */ q({
  name: "AXAttachmentsFileListCard",
  __name: "FileListCard",
  props: {
    prefixCls: null,
    item: null,
    onRemove: {
      type: Function
    },
    className: null,
    style: null,
    imageProps: null,
    icon: null,
    type: null
  },
  setup(e, {
    expose: t
  }) {
    Oe(e, "prefixCls");
    const n = [{
      key: "default",
      icon: m(Va, null, null),
      color: ea,
      ext: /* @__PURE__ */ new Set([])
    }, {
      key: "excel",
      icon: m(Dd, null, null),
      color: "#22b35e",
      ext: JN
    }, {
      key: "image",
      icon: m(Fd, null, null),
      color: ea,
      ext: wv
    }, {
      key: "markdown",
      icon: m(Ld, null, null),
      color: ea,
      ext: ZN
    }, {
      key: "pdf",
      icon: m(Nd, null, null),
      color: "#ff4d4f",
      ext: nj
    }, {
      key: "ppt",
      icon: m(jd, null, null),
      color: "#ff6e31",
      ext: ej
    }, {
      key: "word",
      icon: m(zd, null, null),
      color: "#1677ff",
      ext: tj
    }, {
      key: "zip",
      icon: m(Bd, null, null),
      color: "#fab714",
      ext: QN
    }, {
      key: "video",
      icon: m(VN, null, null),
      color: "#ff4d4f",
      ext: YN
    }, {
      key: "audio",
      icon: m(LN, null, null),
      color: "#8c8c8c",
      ext: qN
    }];
    function o(R) {
      let N = R;
      const F = ["B", "KB", "MB", "GB", "TB", "PB", "EB"];
      let H = 0;
      for (; N >= 1024 && H < F.length - 1; )
        N /= 1024, H++;
      return `${N.toFixed(0)} ${F[H]}`;
    }
    const r = Dl(), i = w(() => r.value.disabled), a = w(() => e.item.name), l = w(() => e.item.size), s = w(() => e.item.percent), c = w(() => e.item.status || "done"), u = w(() => e.item.description), {
      getPrefixCls: d
    } = pt(), f = w(() => d("attachment", e.prefixCls)), p = `${f.value}-list-card`, [y, g, v] = R1(f), b = or("file-list-card-container"), O = w(() => {
      const R = a.value || "", N = R.match(/^(.*)\.[^.]+$/);
      return {
        namePrefix: N ? N[1] : R,
        nameSuffix: N ? R.slice(N[1].length) : ""
      };
    }), C = w(() => Cv(O.value.nameSuffix, wv)), x = w(() => u.value ? u.value : c.value === "uploading" ? `${s.value || 0}%` : c.value === "error" ? e.item.response || js : l.value ? o(l.value) : js), S = w(() => {
      if (e.icon)
        if (typeof e.icon == "string") {
          const R = n.find((N) => N.key === e.icon);
          if (R)
            return {
              icon: R.icon,
              color: R.color
            };
        } else
          return {
            icon: e.icon,
            color: void 0
          };
      for (const {
        ext: R,
        icon: N,
        color: F
      } of n)
        if (Cv(O.value.nameSuffix, R))
          return {
            icon: N,
            iconColor: F
          };
      return {
        icon: m(Va, {
          key: "defaultIcon"
        }, null),
        iconColor: ea
      };
    }), [P, $] = qe();
    ee(() => e.item.originFileObj, (R, N, F) => {
      if (e.item.originFileObj) {
        let H = !0;
        kN(e.item.originFileObj).then((I) => {
          H && $(I);
        }), F(() => {
          H = !1;
        });
      }
      $(void 0);
    }, {
      immediate: !0
    });
    const T = w(() => e.item.thumbUrl || e.item.url || P.value), E = w(() => e.type === "image" || e.type !== "file" && C.value && (e.item.originFileObj || T.value)), M = w(() => E.value ? m(Te, null, [T.value && m(qn, Ge(e.imageProps, {
      alt: "preview",
      src: T.value
    }), null), c.value !== "done" && m("div", {
      class: `${p}-img-mask`
    }, [c.value === "uploading" && s.value !== void 0 && m(Kb, {
      percent: s.value,
      prefixCls: p
    }, null), c.value === "error" && m("div", {
      class: `${p}-desc`
    }, [m("div", {
      class: `${p}-ellipsis-prefix`
    }, [x.value])])])]) : m(Te, null, [m("div", {
      class: `${p}-icon`,
      style: {
        color: S.value.iconColor
      }
    }, [S.value.icon]), m("div", {
      class: `${p}-content`
    }, [m("div", {
      class: `${p}-name`
    }, [m("div", {
      class: `${p}-ellipsis-prefix`
    }, [O.value.namePrefix ?? js]), m("div", {
      class: `${p}-ellipsis-suffix`
    }, [O.value.nameSuffix])]), m("div", {
      class: `${p}-desc`
    }, [m("div", {
      class: `${p}-ellipsis-prefix`
    }, [x.value])])])]));
    return t({
      nativeElement: b
    }), () => y(m("div", {
      class: pe(p, {
        [`${p}-status-${c.value}`]: c.value,
        [`${p}-type-preview`]: E.value,
        [`${p}-type-overview`]: !E.value
      }, e.className, g.value, v),
      style: e.style,
      ref: "file-list-card-container"
    }, [M.value, !i.value && e.onRemove && m("button", {
      type: "button",
      class: `${p}-remove`,
      onClick: () => {
        e.onRemove(e.item);
      }
    }, [m(jt, null, null)])]));
  }
});
function oj(e) {
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Et(e);
}
const xv = 1, rj = /* @__PURE__ */ q({
  name: "AXAttachmentsFileList",
  __name: "FileList",
  props: {
    prefixCls: null,
    items: null,
    onRemove: {
      type: Function
    },
    overflow: null,
    upload: null,
    imageProps: null,
    listClassName: null,
    listStyle: null,
    itemClassName: null,
    itemStyle: null
  },
  setup(e) {
    const t = w(() => `${e.prefixCls}-list`), n = or("file-list-container"), [o, r] = qe(!1), i = Dl();
    we((v) => {
      r(!0), v(() => {
        r(!1);
      });
    });
    const [a, l] = qe(!1), [s, c] = qe(!1), u = () => {
      const v = n.value;
      v && (e.overflow === "scrollX" ? (l(Math.abs(v.scrollLeft) >= xv), c(v.scrollWidth - v.clientWidth - Math.abs(v.scrollLeft) >= xv)) : e.overflow === "scrollY" && (l(v.scrollTop !== 0), c(v.scrollHeight - v.clientHeight !== v.scrollTop)));
    };
    ee([() => e.overflow, () => e.items.length], () => {
      De(() => {
        u();
      });
    }, {
      immediate: !0
    });
    const d = (v) => {
      const b = n.value;
      b && b.scrollTo({
        left: b.scrollLeft + v * b.clientWidth,
        behavior: "smooth"
      });
    }, f = () => {
      d(-1);
    }, p = () => {
      d(1);
    }, y = (v, b) => {
      const C = v.classList.contains("ant-attachment-list-card-type-preview") ? [{
        width: "0px"
      }, {
        width: "64px"
      }] : [{
        width: "0px"
      }, {
        width: "236px"
      }], x = v.animate(C, {
        duration: 300,
        easing: "ease",
        fill: "forwards"
      });
      x.onfinish = () => b();
    }, g = (v, b) => {
      const C = v.classList.contains("ant-attachment-list-card-type-preview") ? [{
        opacity: 1,
        width: "64px",
        marginRight: "0px"
      }, {
        opacity: 0,
        width: "0px",
        marginRight: "-10px"
      }] : [{
        opacity: 1,
        width: "236px",
        marginRight: "0px"
      }, {
        opacity: 0,
        width: "0px",
        marginRight: "-10px",
        paddingRight: "0px",
        paddingLeft: "0px"
      }], x = v.animate(C, {
        duration: 300,
        easing: "ease",
        fill: "forwards"
      });
      x.onfinish = () => b();
    };
    return () => {
      let v;
      return m("div", {
        class: pe(t.value, {
          [`${t.value}-overflow-${e.overflow}`]: e.overflow,
          [`${t.value}-overflow-ping-start`]: a.value,
          [`${t.value}-overflow-ping-end`]: s.value
        }, e.listClassName),
        ref: "file-list-container",
        onScroll: u,
        style: e.listStyle
      }, [m(ci, {
        onEnter: y,
        onLeave: g,
        css: !1
      }, oj(v = e.items.map((b) => m(Ka, {
        key: b.uid,
        prefixCls: e.prefixCls,
        item: b,
        onRemove: e.onRemove,
        className: pe(e.itemClassName),
        imageProps: e.imageProps,
        style: {
          ...e.itemStyle
        }
      }, null))) ? v : {
        default: () => [v]
      }), !i.value.disabled && m(A1, {
        upload: e.upload,
        children: m(ut, {
          class: `${t.value}-upload-btn`,
          type: "dashed"
        }, {
          default: () => [m(id, {
            class: `${t.value}-upload-btn-icon`
          }, null)]
        })
      }, null), e.overflow === "scrollX" && m(Te, null, [m(ut, {
        size: "small",
        shape: "circle",
        class: `${t.value}-prev-btn`,
        icon: m(dr, null, null),
        onClick: f
      }, null), m(ut, {
        size: "small",
        shape: "circle",
        class: `${t.value}-next-btn`,
        icon: m(Dn, null, null),
        onClick: p
      }, null)])]);
    };
  }
}), ij = /* @__PURE__ */ q({
  name: "AXAttachments",
  __name: "Attachments",
  props: ot({
    capture: null,
    type: null,
    name: null,
    defaultFileList: null,
    action: null,
    directory: null,
    data: null,
    method: null,
    headers: null,
    showUploadList: null,
    multiple: null,
    accept: null,
    beforeUpload: null,
    onChange: {
      type: Function
    },
    "onUpdate:fileList": null,
    onDrop: null,
    listType: null,
    onPreview: null,
    onDownload: null,
    onReject: null,
    onRemove: null,
    remove: null,
    supportServerRender: null,
    disabled: {
      type: Boolean
    },
    prefixCls: null,
    customRequest: null,
    withCredentials: null,
    openFileDialogOnClick: null,
    locale: null,
    id: null,
    previewFile: null,
    transformFile: null,
    iconRender: null,
    isImageUrl: null,
    progress: null,
    itemRender: null,
    maxCount: null,
    height: null,
    removeIcon: null,
    downloadIcon: null,
    previewIcon: null,
    rootClassName: null,
    rootStyle: null,
    style: null,
    className: null,
    classNames: null,
    styles: null,
    children: null,
    placeholder: {
      type: Function
    },
    getDropContainer: {
      type: Function
    },
    items: null,
    overflow: null,
    imageProps: null
  }, {
    items: () => [],
    classNames: () => ({}),
    styles: () => ({})
  }),
  setup(e, {
    expose: t
  }) {
    const n = dt(e, ["prefixCls", "rootClassName", "rootStyle", "className", "style", "items", "children", "getDropContainer", "placeholder", "onChange", "onRemove", "overflow", "imageProps", "disabled", "classNames", "styles"]);
    Oe(e, "prefixCls");
    const o = Nt(), {
      getPrefixCls: r,
      direction: i
    } = pt(), a = r("attachment", e.prefixCls), l = Bn("attachments"), s = w(() => l.value.classNames), c = w(() => l.value.styles), u = or("attachments-container"), d = or("placeholder-uploader"), [f, p, y] = R1(a), g = w(() => pe(p.value, y)), [v, b] = qe(e.items);
    ee(() => e.items, () => {
      b(e.items);
    });
    const O = ($) => {
      var T;
      b($.fileList), (T = e.onChange) == null || T.call(e, $);
    }, C = w(() => ({
      ...n,
      fileList: v.value,
      onChange: O
    })), x = ($) => Promise.resolve(typeof e.onRemove == "function" ? e.onRemove($) : e.onRemove).then((T) => {
      if (T === !1)
        return;
      const E = v.value.filter((M) => M.uid !== $.uid);
      O({
        file: {
          ...$,
          status: "removed"
        },
        fileList: E
      });
    }), S = ($, T) => {
      const E = o.placeholder ? o.placeholder({
        type: $
      }) : typeof e.placeholder == "function" ? e.placeholder($) : e.placeholder;
      return m(TN, {
        placeholder: E,
        upload: C.value,
        prefixCls: a,
        className: pe(s.value.placeholder, e.classNames.placeholder),
        style: {
          ...c.value.placeholder,
          ...e.styles.placeholder,
          ...T == null ? void 0 : T.style
        },
        ref: $ === "inline" ? "placeholder-uploader" : void 0
      }, null);
    }, P = w(() => v.value.length > 0);
    return t({
      nativeElement: u.value,
      upload: ($) => {
        var M, R, N;
        const T = (N = (M = d.value) == null ? void 0 : (R = M.nativeElement).querySelector) == null ? void 0 : N.call(R, 'input[type="file"]');
        if (!T) return;
        const E = new DataTransfer();
        try {
          if ("length" in $ && $.length >= 1)
            for (let F = 0; F < $.length; F++)
              E.items.add($[F]);
          else
            E.items.add($);
          T.files = E.files, T.dispatchEvent(new Event("change", {
            bubbles: !0
          }));
        } catch (F) {
          console.error("upload failed", F);
        }
      }
    }), () => f(m(IN, {
      value: {
        disabled: e.disabled
      }
    }, {
      default: () => [e.children ? m(Te, null, [m(A1, {
        upload: C.value,
        rootClassName: e.rootClassName,
        ref: "attachments-upload",
        children: e.children
      }, null), m(Sv, {
        getDropContainer: e.getDropContainer,
        prefixCls: a,
        className: pe(g.value, e.rootClassName),
        children: S("drop")
      }, null)]) : m("div", {
        class: pe(a, g.value, {
          [`${a}-rtl`]: i.value === "rtl"
        }, e.className, e.rootClassName),
        style: {
          ...e.rootStyle,
          ...e.style
        },
        dir: i.value || "ltr",
        ref: "attachments-container"
      }, [m(rj, {
        prefixCls: a,
        items: v.value,
        onRemove: x,
        overflow: e.overflow,
        upload: C.value,
        listClassName: pe(s.value.list, e.classNames.list),
        listStyle: {
          ...c.value.list,
          ...e.styles.list,
          ...!P.value && {
            display: "none"
          }
        },
        itemClassName: pe(s.value.item, e.classNames.item),
        itemStyle: {
          ...c.value.item,
          ...e.styles.item
        },
        imageProps: e.imageProps
      }, null), S("inline", P.value ? {
        style: {
          display: "none"
        }
      } : {}), m(Sv, {
        getDropContainer: e.getDropContainer || (() => u.value),
        prefixCls: a,
        className: g.value,
        children: S("drop")
      }, null)])]
    }));
  }
}), ha = Object.assign(ij, {
  FileCard: Ka
});
ha.install = function(e) {
  return e.component(ha.name, ha), e.component(Ka.name, Ka), e;
};
const aj = (e, t, n) => {
  const o = w(() => {
    const l = Re(e);
    let s = {
      expandedKeys: [],
      onExpand: () => {
      }
    };
    return l ? (typeof l == "object" && (s = { ...s, ...l }), {
      enableCollapse: !0,
      customizeExpandedKeys: s.expandedKeys,
      customizeOnExpand: s.onExpand
    }) : {
      enableCollapse: !1,
      customizeExpandedKeys: s.expandedKeys,
      customizeOnExpand: s.onExpand
    };
  }), [r, i] = qe(o.value.customizeExpandedKeys), a = (l) => {
    var c, u;
    if (!o.value.enableCollapse)
      return;
    const s = r.value.includes(l) ? r.value.filter((d) => d !== l) : [...r.value, l];
    (u = (c = o.value).customizeOnExpand) == null || u.call(c, s), typeof Re(e) != "object" && i(s);
  };
  return ee(
    o,
    (l) => {
      i(l.customizeExpandedKeys);
    },
    {
      deep: 1
    }
  ), [
    w(() => o.value.enableCollapse),
    r,
    a
    // collapseMotion,
  ];
};
var ya = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.SUCCESS = "success", e.ERROR = "error", e))(ya || {});
const lj = (e) => {
  const { componentCls: t } = e, n = `${t}-item`, o = {
    [ya.PENDING]: e.colorPrimaryText,
    [ya.SUCCESS]: e.colorSuccessText,
    [ya.ERROR]: e.colorErrorText
  }, r = Object.keys(o);
  return r.reduce((i, a) => {
    const l = o[a];
    return r.forEach((s) => {
      const c = `& ${n}-${a}-${s}`, u = a === s ? {} : {
        backgroundColor: "none !important",
        backgroundImage: `linear-gradient(${l}, ${o[s]})`
      };
      i[c] = {
        [`& ${n}-icon, & > *::before`]: {
          backgroundColor: `${l} !important`
        },
        "& > :last-child::before": u
      };
    }), i;
  }, {});
}, sj = (e) => {
  const { calc: t, componentCls: n } = e, o = `${n}-item`, r = {
    content: '""',
    width: t(e.lineWidth).mul(2).equal(),
    display: "block",
    position: "absolute",
    insetInlineEnd: "none",
    backgroundColor: e.colorTextPlaceholder
  };
  return {
    "& > :last-child > :last-child": {
      "&::before": {
        display: "none !important"
      },
      [`&${o}-footer`]: {
        "&::before": {
          display: "block !important",
          bottom: 0
        }
      }
    },
    [`& > ${o}`]: {
      [`& ${o}-header, & ${o}-content, & ${o}-footer`]: {
        position: "relative",
        "&::before": {
          bottom: t(e.itemGap).mul(-1).equal()
        }
      },
      [`& ${o}-header, & ${o}-content`]: {
        marginInlineStart: t(e.itemSize).mul(-1).equal(),
        "&::before": {
          ...r,
          insetInlineStart: t(e.itemSize).div(2).sub(e.lineWidth).equal()
        }
      },
      [`& ${o}-header::before`]: {
        top: e.itemSize,
        bottom: t(e.itemGap).mul(-2).equal()
      },
      [`& ${o}-content::before`]: {
        top: "100%"
      },
      [`& ${o}-footer::before`]: {
        ...r,
        top: 0,
        insetInlineStart: t(e.itemSize).div(-2).sub(e.lineWidth).equal()
      }
    }
  };
}, cj = (e) => {
  const { componentCls: t } = e, n = `${t}-item`;
  return {
    [n]: {
      display: "flex",
      flexDirection: "column",
      [`& ${n}-collapsible`]: {
        cursor: "pointer"
      },
      [`& ${n}-header`]: {
        display: "flex",
        marginBottom: e.itemGap,
        gap: e.itemGap,
        alignItems: "flex-start",
        [`& ${n}-icon`]: {
          height: e.itemSize,
          width: e.itemSize,
          fontSize: e.itemFontSize,
          display: "flex",
          justifyContent: "center",
          alignItems: "center"
        },
        [`& ${n}-extra`]: {
          height: e.itemSize,
          maxHeight: e.itemSize
        },
        [`& ${n}-header-box`]: {
          flex: 1,
          display: "flex",
          flexDirection: "column",
          overflow: "hidden",
          [`& ${n}-title`]: {
            height: e.itemSize,
            lineHeight: `${kt(e.itemSize)}`,
            maxHeight: e.itemSize,
            fontSize: e.itemFontSize,
            overflow: "hidden",
            textOverflow: "ellipsis",
            whiteSpace: "nowrap",
            [`& ${n}-collapse-icon`]: {
              marginInlineEnd: e.marginXS
            }
          },
          [`& ${n}-desc`]: {
            fontSize: e.itemFontSize,
            overflow: "hidden",
            textOverflow: "ellipsis",
            whiteSpace: "nowrap"
          }
        }
      },
      [`& ${n}-content`]: {
        [`& ${n}-content-hidden`]: {
          display: "none"
        },
        [`& ${n}-content-box`]: {
          padding: e.itemGap,
          display: "inline-block",
          maxWidth: `calc(100% - ${e.itemSize})`,
          borderRadius: e.borderRadiusLG,
          backgroundColor: e.colorBgContainer,
          border: `${kt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
        }
      },
      [`& ${n}-footer`]: {
        marginTop: e.itemGap,
        display: "inline-flex"
      }
    }
  };
}, zs = (e, t = "middle") => {
  const { componentCls: n } = e, o = {
    large: {
      itemSize: e.itemSizeLG,
      itemGap: e.itemGapLG,
      itemFontSize: e.itemFontSizeLG
    },
    middle: {
      itemSize: e.itemSize,
      itemGap: e.itemGap,
      itemFontSize: e.itemFontSize
    },
    small: {
      itemSize: e.itemSizeSM,
      itemGap: e.itemGapSM,
      itemFontSize: e.itemFontSizeSM
    }
  }[t];
  return {
    [`&${n}-${t}`]: {
      paddingInlineStart: o.itemSize,
      gap: o.itemGap,
      ...cj({
        ...e,
        ...o
      }),
      ...sj({
        ...e,
        ...o
      })
    }
  };
}, uj = (e) => {
  const { componentCls: t } = e;
  return {
    [t]: {
      display: "flex",
      flexDirection: "column",
      ...lj(e),
      ...zs(e),
      ...zs(e, "large"),
      ...zs(e, "small"),
      [`&${t}-rtl`]: {
        direction: "rtl"
      }
    }
  };
}, dj = Hn("ThoughtChain", (e) => {
  const t = tn(e, {
    // small size tokens
    itemFontSizeSM: e.fontSizeSM,
    itemSizeSM: e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),
    itemGapSM: e.marginSM,
    // default size tokens
    itemFontSize: e.fontSize,
    itemSize: e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),
    itemGap: e.margin,
    // large size tokens
    itemFontSizeLG: e.fontSizeLG,
    itemSizeLG: e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),
    itemGapLG: e.marginLG
  });
  return [
    uj(t),
    T1(t)
  ];
}), D1 = Symbol("ThoughtChainNodeContext"), Kc = K(), fj = (e) => {
  $e(D1, e), ee(
    e,
    () => {
      Kc.value = se(e), Jt(Kc);
    },
    { immediate: !0, deep: !0 }
  );
}, pj = () => Ce(
  D1,
  w(() => Kc.value || {})
), mj = q({
  props: {
    value: mn()
  },
  setup(e, { slots: t }) {
    return fj(w(() => e.value)), () => {
      var n;
      return (n = t.default) == null ? void 0 : n.call(t);
    };
  }
});
let ta = 0;
function gj(e = "v-id") {
  const t = lt();
  return t ? (t != null && t._uidId || (ta++, t._uidId = `${e}-${ta}`), t._uidId) : (ta++, `${e}-${ta}`);
}
const vj = /* @__PURE__ */ q({
  name: "AXThoughtChainNode",
  __name: "item",
  props: ot({
    info: null,
    nextStatus: null,
    onClick: {
      type: Function
    }
  }, {
    info: () => ({})
  }),
  setup(e) {
    const t = dt(e, ["info", "nextStatus", "onClick"]), n = w(() => pr(t, {
      attr: !0,
      aria: !0,
      data: !0
    })), o = pj(), r = w(() => o.value.prefixCls), i = w(() => o.value.enableCollapse), a = w(() => o.value.expandedKeys), l = w(() => o.value.direction), s = w(() => o.value.classNames), c = w(() => o.value.styles), u = gj(), d = w(() => e.info.key ?? u), f = w(() => e.info.icon), p = w(() => e.info.title), y = w(() => e.info.extra), g = w(() => e.info.content), v = w(() => e.info.footer), b = w(() => e.info.status), O = w(() => e.info.description), C = w(() => {
      const E = e.info.tooltip ?? !0, M = l.value === "rtl" ? "topRight" : "topLeft", R = {
        title: p.value,
        placement: M
      }, N = {
        title: O.value,
        placement: M
      };
      return typeof E == "boolean" ? {
        titleConfig: R,
        descriptionConfig: N
      } : {
        titleConfig: {
          ...R,
          ...E.titleConfig ? E.titleConfig : {}
        },
        descriptionConfig: {
          ...N,
          ...E.descriptionConfig ? E.descriptionConfig : {}
        }
      };
    }), x = w(() => !e.info.tooltip), S = w(() => `${r.value}-item`), P = () => {
      var E;
      return (E = e.onClick) == null ? void 0 : E.call(e, d.value);
    }, $ = w(() => {
      var E;
      return (E = a.value) == null ? void 0 : E.includes(d.value);
    }), T = w(() => i.value ? $.value : !0);
    return () => m("div", Ge(n.value, {
      class: pe(S.value, {
        [`${S.value}-${b.value}${e.nextStatus ? `-${e.nextStatus}` : ""}`]: b.value
      }, t.class),
      style: t.style
    }), [m("div", {
      class: pe(`${S.value}-header`, s.value.itemHeader),
      style: c.value.itemHeader,
      onClick: P
    }, [m(oo, {
      icon: f.value,
      class: `${S.value}-icon`
    }, null), m("div", {
      class: pe(`${S.value}-header-box`, {
        [`${S.value}-collapsible`]: i.value && g.value
      })
    }, [m(Ve.Text, {
      strong: !0,
      class: `${S.value}-title`
    }, {
      default: () => [i.value && g.value && (l.value === "rtl" ? m(dr, {
        class: `${S.value}-collapse-icon`,
        rotate: $.value ? -90 : 0
      }, null) : m(Dn, {
        class: `${S.value}-collapse-icon`,
        rotate: $.value ? 90 : 0
      }, null)), x.value ? p.value : m(Vt, C.value.titleConfig, {
        default: () => [p.value]
      })]
    }), O.value && m(Ve.Text, {
      class: `${S.value}-desc`,
      type: "secondary"
    }, {
      default: () => [x.value ? O.value : m(Vt, C.value.descriptionConfig, {
        default: () => [O.value]
      })]
    })]), y.value && m("div", {
      class: `${S.value}-extra`
    }, [y.value])]), m(Hr, {
      prefixCls: r.value
    }, {
      default: () => [g.value && en(m("div", {
        class: pe(`${S.value}-content`)
      }, [m("div", {
        class: pe(`${S.value}-content-box`, s.value.itemContent),
        style: c.value.itemContent
      }, [g.value])]), [[pn, T.value]])]
    }), v.value && m("div", {
      class: pe(`${S.value}-footer`, s.value.itemFooter),
      style: c.value.itemFooter
    }, [v.value])]);
  }
}), hj = /* @__PURE__ */ q({
  name: "AXThoughtChain",
  __name: "ThoughtChain",
  props: ot({
    items: null,
    collapsible: {
      type: Boolean
    },
    size: null,
    styles: null,
    classNames: null,
    prefixCls: null,
    rootClassName: null
  }, {
    styles: () => ({}),
    classNames: () => ({}),
    size: "middle"
  }),
  setup(e) {
    const t = dt(e, ["prefixCls", "rootClassName", "class", "items", "collapsible", "styles", "style", "classNames", "size"]);
    Oe(e, "class"), Oe(e, "prefixCls");
    const n = w(() => pr(t, {
      attr: !0,
      aria: !0,
      data: !0
    })), {
      getPrefixCls: o,
      direction: r
    } = pt(), i = w(() => o()), a = w(() => o("thought-chain", e.prefixCls)), l = Bn("thoughtChain"), [
      s,
      c,
      u
      // collapseMotion
    ] = aj(() => e.collapsible, a.value, i.value), [d, f, p] = dj(a), y = w(() => pe(e.class, e.rootClassName, a.value, l.value.className, f.value, p, {
      [`${a.value}-rtl`]: r.value === "rtl"
    }, `${a.value}-${e.size}`));
    return () => d(m("div", Ge(n.value, {
      class: y.value,
      style: {
        ...typeof l.value.style == "object" ? l.value.style : {},
        ...typeof e.style == "object" ? e.style : {}
      }
    }), [m(mj, {
      value: {
        prefixCls: a.value,
        enableCollapse: s.value,
        // collapseMotion,
        expandedKeys: c.value,
        direction: r.value,
        classNames: {
          itemHeader: pe(l.value.classNames.itemHeader, e.classNames.itemHeader),
          itemContent: pe(l.value.classNames.itemContent, e.classNames.itemContent),
          itemFooter: pe(l.value.classNames.itemFooter, e.classNames.itemFooter)
        },
        styles: {
          itemHeader: {
            ...l.value.styles.itemHeader,
            ...e.styles.itemHeader
          },
          itemContent: {
            ...l.value.styles.itemContent,
            ...e.styles.itemContent
          },
          itemFooter: {
            ...l.value.styles.itemFooter,
            ...e.styles.itemFooter
          }
        }
      }
    }, {
      default: () => {
        var g;
        return [(g = e.items) == null ? void 0 : g.map((v, b) => {
          var O;
          return m(vj, {
            key: v.key || `key_${b}`,
            class: pe(l.value.classNames.item, e.classNames.item),
            style: {
              ...l.value.styles.item,
              ...e.styles.item
            },
            info: {
              ...v,
              icon: v.icon || b + 1
            },
            onClick: u,
            nextStatus: ((O = e.items[b + 1]) == null ? void 0 : O.status) || v.status
          }, null);
        })];
      }
    })]));
  }
}), Ov = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Attachments: ha,
  Bubble: ga,
  BubbleList: ka,
  Conversations: HL,
  Prompts: Br,
  Sender: va,
  Suggestion: uN,
  ThoughtChain: hj,
  Welcome: KL,
  XProvider: J9,
  defaultPrefixCls: yS,
  useXProviderContext: pt
}, Symbol.toStringTag, { value: "Module" })), yj = `

`, bj = `
`, Pv = ":", Gc = (e) => (e ?? "").trim() !== "";
function Sj() {
  let e = "";
  return new TransformStream({
    transform(t, n) {
      e += t;
      const o = e.split(yj);
      o.slice(0, -1).forEach((r) => {
        Gc(r) && n.enqueue(r);
      }), e = o[o.length - 1];
    },
    flush(t) {
      Gc(e) && t.enqueue(e);
    }
  });
}
function Cj() {
  return new TransformStream({
    transform(e, t) {
      const o = e.split(bj).reduce((r, i) => {
        const a = i.indexOf(Pv);
        if (a === -1)
          throw new Error(
            `The key-value separator "${Pv}" is not found in the sse line chunk!`
          );
        const l = i.slice(0, a);
        if (!Gc(l)) return r;
        const s = i.slice(a + 1);
        return { ...r, [l]: s };
      }, {});
      Object.keys(o).length !== 0 && t.enqueue(o);
    }
  });
}
function Iv(e) {
  const { readableStream: t, transformStream: n } = e;
  if (!(t instanceof ReadableStream))
    throw new Error("The options.readableStream must be an instance of ReadableStream.");
  const o = new TextDecoderStream(), r = n ? (
    /**
     * Uint8Array binary -> string -> Output
     */
    t.pipeThrough(o).pipeThrough(n)
  ) : (
    /**
     * Uint8Array binary -> string -> SSE part string -> Default Output {@link SSEOutput}
     */
    t.pipeThrough(o).pipeThrough(Sj()).pipeThrough(Cj())
  );
  return r[Symbol.asyncIterator] = async function* () {
    const i = this.getReader();
    for (; ; ) {
      const { done: a, value: l } = await i.read();
      if (a) break;
      l && (yield l);
    }
  }, r;
}
const $j = async (e, t = {}) => {
  const { fetch: n = globalThis.fetch, middlewares: o = {}, ...r } = t;
  if (typeof n != "function")
    throw new Error("The options.fetch must be a typeof fetch function!");
  let i = [e, r];
  typeof o.onRequest == "function" && (i = await o.onRequest(...i));
  let a = await n(...i);
  if (typeof o.onResponse == "function") {
    const l = await o.onResponse(a);
    if (!(l instanceof Response))
      throw new Error("The options.onResponse must return a Response instance!");
    a = l;
  }
  if (!a.ok)
    throw new Error(`Fetch failed with status ${a.status}`);
  if (!a.body)
    throw new Error("The response body is empty.");
  return a;
};
class Gd {
  constructor(t) {
    this.create = async (a, l, s) => {
      var d, f;
      const c = new AbortController(), u = {
        method: "POST",
        body: JSON.stringify({
          model: this.model,
          ...a
        }),
        headers: this.defaultHeaders,
        signal: c.signal
      };
      (d = l == null ? void 0 : l.onStream) == null || d.call(l, c);
      try {
        const p = await $j(this.baseURL, {
          fetch: this.customOptions.fetch,
          ...u
        });
        if (s) {
          await this.customResponseHandler(p, l, s);
          return;
        }
        const y = p.headers.get("content-type") || "";
        switch (y.split(";")[0].trim()) {
          /** SSE */
          case "text/event-stream":
            await this.sseResponseHandler(p, l);
            break;
          /** JSON */
          case "application/json":
            await this.jsonResponseHandler(p, l);
            break;
          default:
            throw new Error(`The response content-type: ${y} is not support!`);
        }
      } catch (p) {
        const y = p instanceof Error ? p : new Error("Unknown error!");
        throw (f = l == null ? void 0 : l.onError) == null || f.call(l, y), y;
      }
    }, this.customResponseHandler = async (a, l, s) => {
      var u, d;
      const c = [];
      for await (const f of Iv({
        readableStream: a.body,
        transformStream: s
      }))
        c.push(f), (u = l == null ? void 0 : l.onUpdate) == null || u.call(l, f);
      (d = l == null ? void 0 : l.onSuccess) == null || d.call(l, c);
    }, this.sseResponseHandler = async (a, l) => {
      var c, u;
      const s = [];
      for await (const d of Iv({
        readableStream: a.body
      }))
        s.push(d), (c = l == null ? void 0 : l.onUpdate) == null || c.call(l, d);
      (u = l == null ? void 0 : l.onSuccess) == null || u.call(l, s);
    }, this.jsonResponseHandler = async (a, l) => {
      var c, u;
      const s = await a.json();
      (c = l == null ? void 0 : l.onUpdate) == null || c.call(l, s), (u = l == null ? void 0 : l.onSuccess) == null || u.call(l, [s]);
    };
    const { baseURL: n, model: o, dangerouslyApiKey: r, ...i } = t;
    this.baseURL = t.baseURL, this.model = t.model, this.defaultHeaders = {
      "Content-Type": "application/json",
      ...t.dangerouslyApiKey && {
        Authorization: t.dangerouslyApiKey
      }
    }, this.customOptions = i;
  }
  static init(t) {
    if (!t.baseURL || typeof t.baseURL != "string")
      throw new Error("The baseURL is not valid!");
    return new Gd(t);
  }
}
const wj = (e) => w(() => Gd.init(Re(e)));
let Tv = 0;
class xj {
  constructor(t) {
    this.requestingMap = Z({}), this.request = (n, o, r) => {
      const { request: i } = this.config, { onUpdate: a, onSuccess: l, onError: s, onStream: c } = o, u = Tv;
      Tv += 1, this.requestingMap.value[u] = !0, i == null || i(
        n,
        {
          onStream: (d) => {
            this.requestingMap.value[u] && (c == null || c(d));
          },
          // Status should be unique.
          // One get success or error should not get more message
          onUpdate: (d) => {
            this.requestingMap.value[u] && a(d);
          },
          onSuccess: (d) => {
            this.requestingMap.value[u] && (l(d), this.finishRequest(u));
          },
          onError: (d) => {
            this.requestingMap.value[u] && (s(d), this.finishRequest(u));
          }
        },
        r
      );
    }, this.config = t;
  }
  finishRequest(t) {
    delete this.requestingMap.value[t];
  }
  isRequesting() {
    return Object.keys(this.requestingMap.value).length > 0;
  }
}
function qj(e) {
  return [
    w(
      () => {
        const { request: n, ...o } = Re(e);
        return new xj({
          // 
          request: n || wj({
            baseURL: o.baseURL,
            model: o.model,
            dangerouslyApiKey: o.dangerouslyApiKey
          }).value.create,
          ...o
        });
      }
    )
  ];
}
function Oj(e, t) {
  const n = Z(e);
  function o(r) {
    const i = typeof r == "function" ? r(n.value) : r;
    i !== n.value && t(i, n.value), n.value = i;
  }
  return [n, o];
}
function Pj(e) {
  return Array.isArray(e) ? e : [e];
}
function Yj(e) {
  const {
    defaultMessages: t,
    agent: n,
    requestFallback: o,
    requestPlaceholder: r,
    parser: i,
    transformMessage: a,
    transformStream: l,
    resolveAbortController: s
  } = e, c = Z(0), u = w(() => (t || []).map((C, x) => ({
    id: `default_${x}`,
    status: "local",
    ...C
  }))), [d, f] = Oj(u.value, () => {
  }), p = (C, x) => {
    const S = {
      id: `msg_${c.value}`,
      message: C,
      status: x
    };
    return c.value += 1, S;
  }, y = w(() => {
    const C = [];
    return d.value.forEach((x) => {
      const S = i ? i(x.message) : x.message, P = Pj(S);
      P.forEach(($, T) => {
        let E = x.id;
        P.length > 1 && (E = `${E}_${T}`), C.push({
          id: E,
          message: $,
          status: x.status
        });
      });
    }), C;
  }), g = (C) => C.filter((x) => x.status !== "loading" && x.status !== "error").map((x) => x.message), v = () => g(d.value), b = (C) => {
    const { chunk: x, chunks: S, originMessage: P } = C;
    if (typeof a == "function")
      return a(C);
    if (x)
      return x;
    if (Array.isArray(S)) {
      const $ = (S == null ? void 0 : S.length) > 0 ? S == null ? void 0 : S[(S == null ? void 0 : S.length) - 1] : void 0;
      return P || $;
    }
    return S;
  };
  return {
    onRequest: Ml((C) => {
      if (!n)
        throw new Error(
          "The agent parameter is required when using the onRequest method in an agent generated by useXAgent."
        );
      let x = null, S, P = {};
      if (C && typeof C == "object" && "message" in C) {
        const { message: E, ...M } = C;
        S = E, P = M;
      } else
        S = C;
      f((E) => {
        let M = [...E, p(S, "local")];
        if (r) {
          let R;
          typeof r == "function" ? R = r(S, {
            messages: g(M)
          }) : R = r;
          const N = p(R, "loading");
          x = N.id, M = [...M, N];
        }
        return M;
      });
      let $ = null;
      const T = (E, M, R) => {
        let N = d.value.find((F) => F.id === $);
        if (N)
          f((F) => F.map((H) => {
            if (H.id === $) {
              const I = b({
                originMessage: H.message,
                chunk: M,
                chunks: R,
                status: E
              });
              return {
                ...H,
                message: I,
                status: E
              };
            }
            return H;
          }));
        else {
          const F = b({ chunk: M, status: E, chunks: R });
          N = p(F, E), f((H) => [...H.filter((A) => A.id !== x), N]), $ = N.id;
        }
        return N;
      };
      n.request(
        {
          message: S,
          messages: v(),
          ...P
        },
        {
          onUpdate: (E) => {
            T("loading", E, []);
          },
          onSuccess: (E) => {
            T("success", void 0, E);
          },
          onError: async (E) => {
            if (o) {
              let M;
              typeof o == "function" ? M = await o(S, {
                error: E,
                messages: v()
              }) : M = o, f((R) => [
                ...R.filter((N) => N.id !== x && N.id !== $),
                p(M, "error")
              ]);
            } else
              f((M) => M.filter((R) => R.id !== x && R.id !== $));
          },
          onStream: (E) => {
            s == null || s(E);
          }
        },
        l
      );
    }),
    messages: d,
    parsedMessages: y,
    setMessages: f
  };
}
const Ij = function(e) {
  return Object.keys(Ov).forEach((t) => {
    const n = Ov[t];
    n.install && e.use(n);
  }), e.use(YF.StyleProvider), e;
}, Zj = {
  install: Ij
};
export {
  ha as Attachments,
  ga as Bubble,
  ka as BubbleList,
  HL as Conversations,
  g1 as Keyframes,
  Br as Prompts,
  va as Sender,
  i1 as StyleProvider,
  uN as Suggestion,
  u1 as Theme,
  hj as ThoughtChain,
  KL as Welcome,
  xj as XAgent,
  $j as XFetch,
  J9 as XProvider,
  wj as XRequest,
  Iv as XStream,
  Uj as _experimental,
  li as createCache,
  SF as createTheme,
  Zj as default,
  yS as defaultPrefixCls,
  Xj as extractStyle,
  Ij as install,
  Kj as legacyLogicalPropertiesTransformer,
  Vj as legacyNotSelectorLinter,
  Wj as logicalPropertiesLinter,
  kj as parentSelectorLinter,
  Gj as px2remTransformer,
  ai as theme,
  ma as token2CSSVar,
  kt as unit,
  KF as useCSSVarRegister,
  FF as useCacheToken,
  Ti as useStyleInject,
  r1 as useStyleProvider,
  av as useStyleRegister,
  qj as useXAgent,
  Yj as useXChat,
  pt as useXProviderContext
};