import { _ as hd } from '../main.c1853b91.js'
import {
  F as nt,
  i as Mt,
  C as mm,
  T as dc,
  d as J,
  r as dt,
  j as We,
  k as An,
  l as Gn,
  w as ge,
  m as tn,
  p as P,
  q as Ue,
  s as Ye,
  t as ne,
  u as ze,
  v as V,
  x as Me,
  y as Qe,
  z as O0,
  c as v,
  h as lt,
  A as vl,
  B as P0,
  D as Oo,
  E as vo,
  G as Qo,
  n as it,
  H as ot,
  I as fc,
  J as bd,
  K as T0,
  L as pc,
  M as kn,
  N as I0,
  O as Ir,
  P as vn,
  Q as gm,
  R as hm,
  S as E0,
  e as _0,
  U as R0,
  o as Pi,
  a as Za,
  V as Yt,
  g as A0,
  W as D0,
  X as bm,
  b as yd
} from './vendor.015340d9.js'
import {
  T as ut,
  g as zr,
  b as M0,
  D as N0,
  L as B0,
  C as z0,
  a as L0,
  c as F0,
  S as H0,
  d as k0,
  E as j0,
  I as K0,
  e as W0,
  f as V0,
  h as G0,
  i as U0,
  j as X0,
  R as q0,
  P as Y0,
  k as J0,
  l as Q0,
  m as Z0,
  n as eS,
  o as tS,
  p as nS,
  q as oS,
  F as rS,
  r as iS,
  M as lS,
  s as aS,
  t as sS,
  u as cS,
  v as uS,
  w as dS,
  x as fS,
  y as pS,
  z as vS,
  A as mS,
  B as Sd,
  G as gS,
  H as hS,
  J as xd,
  K as bS,
  N as yS
} from './antd.0267aafb.js'
import { _ as ym } from './Dashboard.e7ef6e61.js'
function Lr(e) {
  '@babel/helpers - typeof'
  return (
    (Lr =
      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
          }),
    Lr(e)
  )
}
function SS(e, t) {
  if (Lr(e) !== 'object' || e === null) return e
  var n = e[Symbol.toPrimitive]
  if (n !== void 0) {
    var o = n.call(e, t || 'default')
    if (Lr(o) !== 'object') return o
    throw new TypeError('@@toPrimitive must return a primitive value.')
  }
  return (t === 'string' ? String : Number)(e)
}
function xS(e) {
  var t = SS(e, 'string')
  return Lr(t) === 'symbol' ? t : String(t)
}
function CS(e, t, n) {
  return (
    (t = xS(t)),
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
function Cd(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 N(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? arguments[t] : {}
    t % 2
      ? Cd(Object(n), !0).forEach(function(o) {
          CS(e, o, n[o])
        })
      : Object.getOwnPropertyDescriptors
      ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
      : Cd(Object(n)).forEach(function(o) {
          Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o))
        })
  }
  return e
}
function p() {
  return (
    (p = 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
        }),
    p.apply(this, arguments)
  )
}
const $S = e => typeof e == 'function',
  wS = Array.isArray,
  OS = e => typeof e == 'string',
  PS = e => e !== null && typeof e == 'object',
  TS = /^on[^a-z]/,
  IS = e => TS.test(e),
  vc = e => {
    const t = Object.create(null)
    return n => t[n] || (t[n] = e(n))
  },
  ES = /-(\w)/g,
  cr = vc(e => e.replace(ES, (t, n) => (n ? n.toUpperCase() : ''))),
  _S = /\B([A-Z])/g,
  RS = vc(e => e.replace(_S, '-$1').toLowerCase()),
  wj = vc(e => e.charAt(0).toUpperCase() + e.slice(1)),
  AS = Object.prototype.hasOwnProperty,
  $d = (e, t) => AS.call(e, t)
function DS(e, t, n, o) {
  const r = e[n]
  if (r != null) {
    const i = $d(r, 'default')
    if (i && o === void 0) {
      const l = r.default
      o = r.type !== Function && $S(l) ? l() : l
    }
    r.type === Boolean && (!$d(t, n) && !i ? (o = !1) : o === '' && (o = !0))
  }
  return o
}
function no(e) {
  return typeof e == 'number' ? `${e}px` : e
}
function Fo(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 MS(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 oe() {
  const e = []
  for (let t = 0; t < arguments.length; t++) {
    const n = t < 0 || arguments.length <= t ? void 0 : arguments[t]
    if (n) {
      if (OS(n)) e.push(n)
      else if (wS(n))
        for (let o = 0; o < n.length; o++) {
          const r = oe(n[o])
          r && e.push(r)
        }
      else if (PS(n)) for (const o in n) n[o] && e.push(o)
    }
  }
  return e.join(' ')
}
var Sm = (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 (function() {
      function t() {
        this.__entries__ = []
      }
      return (
        Object.defineProperty(t.prototype, 'size', {
          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 l = i[r]
            n.call(o, l[1], l[0])
          }
        }),
        t
      )
    })()
  })(),
  es =
    typeof window < 'u' &&
    typeof document < 'u' &&
    window.document === document,
  Gi = (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')()
  })(),
  NS = (function() {
    return typeof requestAnimationFrame == 'function'
      ? requestAnimationFrame.bind(Gi)
      : function(e) {
          return setTimeout(function() {
            return e(Date.now())
          }, 1e3 / 60)
        }
  })(),
  BS = 2
function zS(e, t) {
  var n = !1,
    o = !1,
    r = 0
  function i() {
    n && ((n = !1), e()), o && a()
  }
  function l() {
    NS(i)
  }
  function a() {
    var s = Date.now()
    if (n) {
      if (s - r < BS) return
      o = !0
    } else (n = !0), (o = !1), setTimeout(l, t)
    r = s
  }
  return a
}
var LS = 20,
  FS = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'],
  HS = typeof MutationObserver < 'u',
  kS = (function() {
    function e() {
      ;(this.connected_ = !1),
        (this.mutationEventsAdded_ = !1),
        (this.mutationsObserver_ = null),
        (this.observers_ = []),
        (this.onTransitionEnd_ = this.onTransitionEnd_.bind(this)),
        (this.refresh = zS(this.refresh.bind(this), LS))
    }
    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() {
        !es ||
          this.connected_ ||
          (document.addEventListener('transitionend', this.onTransitionEnd_),
          window.addEventListener('resize', this.refresh),
          HS
            ? ((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() {
        !es ||
          !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 = FS.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
    )
  })(),
  xm = 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
  },
  Zo = function(e) {
    var t = e && e.ownerDocument && e.ownerDocument.defaultView
    return t || Gi
  },
  Cm = ml(0, 0, 0, 0)
function Ui(e) {
  return parseFloat(e) || 0
}
function wd(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 + Ui(i)
  }, 0)
}
function jS(e) {
  for (
    var t = ['top', 'right', 'bottom', 'left'], n = {}, o = 0, r = t;
    o < r.length;
    o++
  ) {
    var i = r[o],
      l = e['padding-' + i]
    n[i] = Ui(l)
  }
  return n
}
function KS(e) {
  var t = e.getBBox()
  return ml(0, 0, t.width, t.height)
}
function WS(e) {
  var t = e.clientWidth,
    n = e.clientHeight
  if (!t && !n) return Cm
  var o = Zo(e).getComputedStyle(e),
    r = jS(o),
    i = r.left + r.right,
    l = r.top + r.bottom,
    a = Ui(o.width),
    s = Ui(o.height)
  if (
    (o.boxSizing === 'border-box' &&
      (Math.round(a + i) !== t && (a -= wd(o, 'left', 'right') + i),
      Math.round(s + l) !== n && (s -= wd(o, 'top', 'bottom') + l)),
    !GS(e))
  ) {
    var u = Math.round(a + i) - t,
      c = Math.round(s + l) - n
    Math.abs(u) !== 1 && (a -= u), Math.abs(c) !== 1 && (s -= c)
  }
  return ml(r.left, r.top, a, s)
}
var VS = (function() {
  return typeof SVGGraphicsElement < 'u'
    ? function(e) {
        return e instanceof Zo(e).SVGGraphicsElement
      }
    : function(e) {
        return e instanceof Zo(e).SVGElement && typeof e.getBBox == 'function'
      }
})()
function GS(e) {
  return e === Zo(e).document.documentElement
}
function US(e) {
  return es ? (VS(e) ? KS(e) : WS(e)) : Cm
}
function XS(e) {
  var t = e.x,
    n = e.y,
    o = e.width,
    r = e.height,
    i = typeof DOMRectReadOnly < 'u' ? DOMRectReadOnly : Object,
    l = Object.create(i.prototype)
  return (
    xm(l, {
      x: t,
      y: n,
      width: o,
      height: r,
      top: n,
      right: t + o,
      bottom: r + n,
      left: t
    }),
    l
  )
}
function ml(e, t, n, o) {
  return { x: e, y: t, width: n, height: o }
}
var qS = (function() {
    function e(t) {
      ;(this.broadcastWidth = 0),
        (this.broadcastHeight = 0),
        (this.contentRect_ = ml(0, 0, 0, 0)),
        (this.target = t)
    }
    return (
      (e.prototype.isActive = function() {
        var t = US(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
    )
  })(),
  YS = (function() {
    function e(t, n) {
      var o = XS(n)
      xm(this, { target: t, contentRect: o })
    }
    return e
  })(),
  JS = (function() {
    function e(t, n, o) {
      if (
        ((this.activeObservations_ = []),
        (this.observations_ = new Sm()),
        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 Zo(t).Element))
            throw new TypeError('parameter 1 is not of type "Element".')
          var n = this.observations_
          n.has(t) ||
            (n.set(t, new qS(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 Zo(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 YS(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
    )
  })(),
  $m = typeof WeakMap < 'u' ? new WeakMap() : new Sm(),
  wm = (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 = kS.getInstance(),
        o = new JS(t, n, this)
      $m.set(this, o)
    }
    return e
  })()
;['observe', 'unobserve', 'disconnect'].forEach(function(e) {
  wm.prototype[e] = function() {
    var t
    return (t = $m.get(this))[e].apply(t, arguments)
  }
})
var Om = (function() {
  return typeof Gi.ResizeObserver < 'u' ? Gi.ResizeObserver : wm
})()
const QS = e => e != null && e !== '',
  ts = QS,
  ZS = (e, t) => {
    const n = p({}, 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
    )
  },
  mt = ZS,
  Pm = e => {
    const t = Object.keys(e),
      n = {},
      o = {},
      r = {}
    for (let i = 0, l = t.length; i < l; i++) {
      const a = t[i]
      IS(a)
        ? ((n[a[2].toLowerCase() + a.slice(3)] = e[a]), (o[a] = e[a]))
        : (r[a] = e[a])
    }
    return { onEvents: o, events: n, extraAttrs: r }
  },
  ex = 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 l = i.split(r)
            if (l.length > 1) {
              const a = t ? cr(l[0].trim()) : l[0].trim()
              n[a] = l[1].trim()
            }
          }
        }),
        n)
  },
  Lo = (e, t) => e[t] !== void 0,
  Tm = Symbol('skipFlatten'),
  yt = 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(...yt(r, t))
          : r && r.type === nt
          ? r.key === Tm
            ? o.push(r)
            : o.push(...yt(r.children, t))
          : r && Mt(r)
          ? t && !mc(r)
            ? o.push(r)
            : t || o.push(r)
          : ts(r) && o.push(r)
      }),
      o
    )
  },
  tx = 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 (Mt(e))
      return e.type === nt
        ? t === 'default'
          ? yt(e.children)
          : []
        : e.children && e.children[t]
        ? yt(e.children[t](n))
        : []
    {
      const o = e.$slots[t] && e.$slots[t](n)
      return yt(o)
    }
  },
  Wt = 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
  },
  nx = e => {
    const t = {}
    if (e.$ && e.$.vnode) {
      const n = e.$.vnode.props || {}
      Object.keys(e.$props).forEach(o => {
        const r = e.$props[o],
          i = RS(o)
        ;(r !== void 0 || i in n) && (t[o] = r)
      })
    } else if (Mt(e) && typeof e.type == 'object') {
      const n = e.props || {},
        o = {}
      Object.keys(n).forEach(i => {
        o[cr(i)] = n[i]
      })
      const r = e.type.props || {}
      Object.keys(r).forEach(i => {
        const l = DS(r, o, i, o[i])
        ;(l !== void 0 || i in o) && (t[i] = l)
      })
    }
    return t
  },
  Im = 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 (Mt(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 === nt
        ? (r = e.children)
        : e.children &&
          e.children[t] &&
          ((r = e.children[t]), (r = o && r ? r(n) : r))
    }
    return (
      Array.isArray(r) &&
        ((r = yt(r)),
        (r = r.length === 1 ? r[0] : r),
        (r = r.length === 0 ? void 0 : r)),
      r
    )
  }
function Od() {
  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 = p(p({}, n), e.$attrs)) : (n = p(p({}, n), e.props)),
    Pm(n)[t ? 'onEvents' : 'events']
  )
}
function ox(e, t) {
  let o = ((Mt(e) ? e.props : e.$attrs) || {}).style || {}
  if (typeof o == 'string') o = ex(o, t)
  else if (t && o) {
    const r = {}
    return Object.keys(o).forEach(i => (r[cr(i)] = o[i])), r
  }
  return o
}
function rx(e) {
  return e.length === 1 && e[0].type === nt
}
function mc(e) {
  return (
    e &&
    (e.type === mm ||
      (e.type === nt && e.children.length === 0) ||
      (e.type === dc && e.children.trim() === ''))
  )
}
function Tt() {
  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) === nt
        ? t.push(...Tt(n.children))
        : t.push(n)
    }),
    t.filter(n => !mc(n))
  )
}
function Sr(e) {
  if (e) {
    const t = Tt(e)
    return t.length ? t : void 0
  } else return e
}
function Ft(e) {
  return (
    Array.isArray(e) && e.length === 1 && (e = e[0]),
    e && e.__v_isVNode && typeof e.type != 'symbol'
  )
}
function ao(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 Tn = J({
  compatConfig: { MODE: 3 },
  name: 'ResizeObserver',
  props: { disabled: Boolean, onResize: Function },
  emits: ['resize'],
  setup(e, t) {
    let { slots: n } = t
    const o = dt({ width: 0, height: 0, offsetHeight: 0, offsetWidth: 0 })
    let r = null,
      i = null
    const l = () => {
        i && (i.disconnect(), (i = null))
      },
      a = c => {
        const { onResize: d } = e,
          f = c[0].target,
          { width: m, height: g } = f.getBoundingClientRect(),
          { offsetWidth: h, offsetHeight: b } = f,
          S = Math.floor(m),
          C = Math.floor(g)
        if (
          o.width !== S ||
          o.height !== C ||
          o.offsetWidth !== h ||
          o.offsetHeight !== b
        ) {
          const $ = { width: S, height: C, offsetWidth: h, offsetHeight: b }
          p(o, $),
            d &&
              Promise.resolve().then(() => {
                d(p(p({}, $), { offsetWidth: h, offsetHeight: b }), f)
              })
        }
      },
      s = tn(),
      u = () => {
        const { disabled: c } = e
        if (c) {
          l()
          return
        }
        const d = Wt(s)
        d !== r && (l(), (r = d)), !i && d && ((i = new Om(a)), i.observe(d))
      }
    return (
      We(() => {
        u()
      }),
      An(() => {
        u()
      }),
      Gn(() => {
        l()
      }),
      ge(
        () => e.disabled,
        () => {
          u()
        },
        { flush: 'post' }
      ),
      () => {
        var c
        return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0]
      }
    )
  }
})
let Em = e => setTimeout(e, 16),
  _m = e => clearTimeout(e)
typeof window < 'u' &&
  'requestAnimationFrame' in window &&
  ((Em = e => window.requestAnimationFrame(e)),
  (_m = e => window.cancelAnimationFrame(e)))
let Pd = 0
const gc = new Map()
function Rm(e) {
  gc.delete(e)
}
function He(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1
  Pd += 1
  const n = Pd
  function o(r) {
    if (r === 0) Rm(n), e()
    else {
      const i = Em(() => {
        o(r - 1)
      })
      gc.set(n, i)
    }
  }
  return o(t), n
}
He.cancel = e => {
  const t = gc.get(e)
  return Rm(t), _m(t)
}
const mo = function() {
    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
      t[n] = arguments[n]
    return t
  },
  ix = function() {
    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
      t[n] = arguments[n]
    return t
  },
  Po = e => {
    const t = e
    return (
      (t.install = function(n) {
        n.component(t.displayName || t.name, e)
      }),
      e
    )
  }
function Fr() {
  return { type: [Function, Array] }
}
function Xe(e) {
  return { type: Object, default: e }
}
function Re(e) {
  return { type: Boolean, default: e }
}
function _e(e) {
  return { type: Function, default: e }
}
function wt(e, t) {
  const n = { validator: () => !0, default: e }
  return n
}
function la() {
  return { validator: () => !0 }
}
function $t(e) {
  return { type: Array, default: e }
}
function at(e) {
  return { type: String, default: e }
}
function Pt(e, t) {
  return e ? { type: e, default: t } : wt(t)
}
let Am = !1
try {
  const e = Object.defineProperty({}, 'passive', {
    get() {
      Am = !0
    }
  })
  window.addEventListener('testPassive', null, e),
    window.removeEventListener('testPassive', null, e)
} catch {}
const Rt = Am
function Jt(e, t, n, o) {
  if (e && e.addEventListener) {
    let r = o
    r === void 0 &&
      Rt &&
      (t === 'touchstart' || t === 'touchmove' || t === 'wheel') &&
      (r = { passive: !1 }),
      e.addEventListener(t, n, r)
  }
  return {
    remove: () => {
      e && e.removeEventListener && e.removeEventListener(t, n)
    }
  }
}
const hc = 'anticon',
  lx = Symbol('GlobalFormContextKey'),
  ax = e => {
    Ye(lx, e)
  },
  sx = () => ({
    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()
  }),
  bc = Symbol('configProvider'),
  Dm = {
    getPrefixCls: (e, t) => t || (e ? `ant-${e}` : 'ant'),
    iconPrefixCls: P(() => hc),
    getPopupContainer: P(() => () => document.body),
    direction: P(() => 'ltr')
  },
  Mm = () => Ue(bc, Dm),
  cx = e => Ye(bc, e),
  Nm = Symbol('DisabledContextKey'),
  In = () => Ue(Nm, ne(void 0)),
  ux = e => {
    const t = In()
    return (
      Ye(
        Nm,
        P(() => {
          var n
          return (n = e.value) !== null && n !== void 0 ? n : t.value
        })
      ),
      e
    )
  },
  Bm = {
    items_per_page: '/ page',
    jump_to: 'Go to',
    jump_to_confirm: 'confirm',
    page: '',
    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'
  },
  dx = {
    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'
  },
  fx = dx,
  px = {
    placeholder: 'Select time',
    rangePlaceholder: ['Start time', 'End time']
  },
  zm = px,
  vx = {
    lang: p(
      {
        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']
      },
      fx
    ),
    timePickerLocale: p({}, zm)
  },
  Td = vx,
  jt = '${label} is not a valid ${type}',
  mx = {
    locale: 'en',
    Pagination: Bm,
    DatePicker: Td,
    TimePicker: zm,
    Calendar: Td,
    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: jt,
          method: jt,
          array: jt,
          object: jt,
          number: jt,
          date: jt,
          boolean: jt,
          integer: jt,
          float: jt,
          regexp: jt,
          email: jt,
          url: jt,
          hex: jt
        },
        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'
    }
  },
  jn = mx,
  yc = J({
    compatConfig: { MODE: 3 },
    name: 'LocaleReceiver',
    props: {
      componentName: String,
      defaultLocale: { type: [Object, Function] },
      children: { type: Function }
    },
    setup(e, t) {
      let { slots: n } = t
      const o = Ue('localeData', {}),
        r = P(() => {
          const { componentName: l = 'global', defaultLocale: a } = e,
            s = a || jn[l || 'global'],
            { antLocale: u } = o,
            c = l && u ? u[l] : {}
          return p(p({}, typeof s == 'function' ? s() : s), c || {})
        }),
        i = P(() => {
          const { antLocale: l } = o,
            a = l && l.locale
          return l && l.exist && !a ? jn.locale : a
        })
      return () => {
        const l = e.children || n.default,
          { antLocale: a } = o
        return l == null ? void 0 : l(r.value, i.value, a)
      }
    }
  })
function Sc(e, t, n) {
  const o = Ue('localeData', {})
  return [
    P(() => {
      const { antLocale: i } = o,
        l = ze(t) || jn[e || 'global'],
        a = e && i ? i[e] : {}
      return p(p(p({}, typeof l == 'function' ? l() : l), a || {}), ze(n) || {})
    })
  ]
}
function xc(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 = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)),
      (n ^= n >>> 24),
      (t =
        ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^
        ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)))
  switch (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 = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16))
  }
  return (
    (t ^= t >>> 13),
    (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)),
    ((t ^ (t >>> 15)) >>> 0).toString(36)
  )
}
const Id = '%'
class gx {
  constructor(t) {
    ;(this.cache = new Map()), (this.instanceId = t)
  }
  get(t) {
    return this.cache.get(Array.isArray(t) ? t.join(Id) : t) || null
  }
  update(t, n) {
    const o = Array.isArray(t) ? t.join(Id) : t,
      r = this.cache.get(o),
      i = n(r)
    i === null ? this.cache.delete(o) : this.cache.set(o, i)
  }
}
const hx = gx,
  Lm = 'data-token-hash',
  so = 'data-css-hash',
  Ho = '__cssinjs_instance__'
function Hr() {
  const e = Math.random()
    .toString(12)
    .slice(2)
  if (typeof document < 'u' && document.head && document.body) {
    const t = document.body.querySelectorAll(`style[${so}]`) || [],
      { firstChild: n } = document.head
    Array.from(t).forEach(r => {
      ;(r[Ho] = r[Ho] || e), r[Ho] === e && document.head.insertBefore(r, n)
    })
    const o = {}
    Array.from(document.querySelectorAll(`style[${so}]`)).forEach(r => {
      var i
      const l = r.getAttribute(so)
      o[l]
        ? r[Ho] === e &&
          ((i = r.parentNode) === null || i === void 0 || i.removeChild(r))
        : (o[l] = !0)
    })
  }
  return new hx(e)
}
const Fm = Symbol('StyleContextKey'),
  bx = () => {
    var e, t, n
    const o = tn()
    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 = Hr()),
          o.appContext.config.globalProperties &&
            (o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r))
    } else r = Hr()
    return r
  },
  Hm = { cache: Hr(), defaultCache: !0, hashPriority: 'low' },
  gl = () => {
    const e = bx()
    return Ue(Fm, V(p(p({}, Hm), { cache: e })))
  },
  yx = e => {
    const t = gl(),
      n = V(p(p({}, Hm), { cache: Hr() }))
    return (
      ge(
        [() => ze(e), t],
        () => {
          const o = p({}, t.value),
            r = ze(e)
          Object.keys(r).forEach(l => {
            const a = r[l]
            r[l] !== void 0 && (o[l] = a)
          })
          const { cache: i } = r
          ;(o.cache = o.cache || Hr()),
            (o.defaultCache = !i && t.value.defaultCache),
            (n.value = o)
        },
        { immediate: !0 }
      ),
      Ye(Fm, n),
      n
    )
  },
  Sx = () => ({
    autoClear: Re(),
    mock: at(),
    cache: Xe(),
    defaultCache: Re(),
    hashPriority: at(),
    container: Pt(),
    ssrInline: Re(),
    transformers: $t(),
    linters: $t()
  })
Po(
  J({
    name: 'AStyleProvider',
    inheritAttrs: !1,
    props: Sx(),
    setup(e, t) {
      let { slots: n } = t
      return (
        yx(e),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  })
)
function km(e, t, n, o) {
  const r = gl(),
    i = V(''),
    l = V()
  Me(() => {
    i.value = [e, ...t.value].join('%')
  })
  const a = s => {
    r.value.cache.update(s, u => {
      const [c = 0, d] = u || []
      return c - 1 === 0 ? (o == null || o(d, !1), null) : [c - 1, d]
    })
  }
  return (
    ge(
      i,
      (s, u) => {
        u && a(u),
          r.value.cache.update(s, c => {
            const [d = 0, f] = c || [],
              g = f || n()
            return [d + 1, g]
          }),
          (l.value = r.value.cache.get(i.value)[1])
      },
      { immediate: !0 }
    ),
    Qe(() => {
      a(i.value)
    }),
    l
  )
}
function Ht() {
  return !!(
    typeof window < 'u' &&
    window.document &&
    window.document.createElement
  )
}
function oo(e, t) {
  return e && e.contains ? e.contains(t) : !1
}
const Ed = 'data-vc-order',
  xx = 'vc-util-key',
  ns = new Map()
function jm() {
  let { mark: e } =
    arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
  return e ? (e.startsWith('data-') ? e : `data-${e}`) : xx
}
function hl(e) {
  return e.attachTo
    ? e.attachTo
    : document.querySelector('head') || document.body
}
function Cx(e) {
  return e === 'queue' ? 'prependQueue' : e ? 'prepend' : 'append'
}
function Km(e) {
  return Array.from((ns.get(e) || e).children).filter(
    t => t.tagName === 'STYLE'
  )
}
function Wm(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  if (!Ht()) return null
  const { csp: n, prepend: o } = t,
    r = document.createElement('style')
  r.setAttribute(Ed, Cx(o)),
    n != null && n.nonce && (r.nonce = n == null ? void 0 : n.nonce),
    (r.innerHTML = e)
  const i = hl(t),
    { firstChild: l } = i
  if (o) {
    if (o === 'queue') {
      const a = Km(i).filter(s =>
        ['prepend', 'prependQueue'].includes(s.getAttribute(Ed))
      )
      if (a.length) return i.insertBefore(r, a[a.length - 1].nextSibling), r
    }
    i.insertBefore(r, l)
  } else i.appendChild(r)
  return r
}
function Vm(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  const n = hl(t)
  return Km(n).find(o => o.getAttribute(jm(t)) === e)
}
function Xi(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  const n = Vm(e, t)
  n && hl(t).removeChild(n)
}
function $x(e, t) {
  const n = ns.get(e)
  if (!n || !oo(document, n)) {
    const o = Wm('', t),
      { parentNode: r } = o
    ns.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 l = hl(n)
  $x(l, n)
  const a = Vm(t, n)
  if (a)
    return (
      !((o = n.csp) === null || o === void 0) &&
        o.nonce &&
        a.nonce !== ((r = n.csp) === null || r === void 0 ? void 0 : r.nonce) &&
        (a.nonce = (i = n.csp) === null || i === void 0 ? void 0 : i.nonce),
      a.innerHTML !== e && (a.innerHTML = e),
      a
    )
  const s = Wm(e, n)
  return s.setAttribute(jm(n), t), s
}
function wx(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
}
class er {
  constructor() {
    ;(this.cache = 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 > er.MAX_CACHE_SIZE + er.MAX_CACHE_OFFSET) {
        const [r] = this.keys.reduce(
          (i, l) => {
            const [, a] = i
            return this.internalGet(l)[1] < a ? [l, this.internalGet(l)[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 l = o.get(r)
        l ? l.map || (l.map = new Map()) : o.set(r, { map: 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 => !wx(n, t))),
        this.deleteByPath(this.cache, t)
      )
  }
}
er.MAX_CACHE_SIZE = 20
er.MAX_CACHE_OFFSET = 5
let _d = {}
function Ox(e, t) {}
function Px(e, t, n) {
  !t && !_d[n] && (e(!1, n), (_d[n] = !0))
}
function Gm(e, t) {
  Px(Ox, e, t)
}
function Tx() {}
let Ix = Tx
const kt = Ix
let Rd = 0
class Um {
  constructor(t) {
    ;(this.derivatives = Array.isArray(t) ? t : [t]),
      (this.id = Rd),
      t.length === 0 && kt(t.length > 0),
      (Rd += 1)
  }
  getDerivativeToken(t) {
    return this.derivatives.reduce((n, o) => o(t, n), void 0)
  }
}
const aa = new er()
function Xm(e) {
  const t = Array.isArray(e) ? e : [e]
  return aa.has(t) || aa.set(t, new Um(t)), aa.get(t)
}
const Ad = new WeakMap()
function qi(e) {
  let t = Ad.get(e) || ''
  return (
    t ||
      (Object.keys(e).forEach(n => {
        const o = e[n]
        ;(t += n),
          o instanceof Um
            ? (t += o.id)
            : o && typeof o == 'object'
            ? (t += qi(o))
            : (t += o)
      }),
      Ad.set(e, t)),
    t
  )
}
function Ex(e, t) {
  return xc(`${t}_${qi(e)}`)
}
const Er = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ''),
  qm = '_bAmBoO_'
function _x(e, t, n) {
  var o, r
  if (Ht()) {
    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 l = n
      ? n(i)
      : (o = getComputedStyle(i).content) === null || o === void 0
      ? void 0
      : o.includes(qm)
    return (
      (r = i.parentNode) === null || r === void 0 || r.removeChild(i), Xi(Er), l
    )
  }
  return !1
}
let sa
function Rx() {
  return (
    sa === void 0 &&
      (sa = _x(`@layer ${Er} { .${Er} { content: "${qm}"!important; } }`, e => {
        e.className = Er
      })),
    sa
  )
}
const Dd = {},
  Ax = !0,
  Dx = !1,
  Mx = !Ax && !Dx ? 'css-dev-only-do-not-override' : 'css',
  ro = new Map()
function Nx(e) {
  ro.set(e, (ro.get(e) || 0) + 1)
}
function Bx(e, t) {
  typeof document < 'u' &&
    document.querySelectorAll(`style[${Lm}="${e}"]`).forEach(o => {
      var r
      o[Ho] === t &&
        ((r = o.parentNode) === null || r === void 0 || r.removeChild(o))
    })
}
const zx = 0
function Lx(e, t) {
  ro.set(e, (ro.get(e) || 0) - 1)
  const n = Array.from(ro.keys()),
    o = n.filter(r => (ro.get(r) || 0) <= 0)
  n.length - o.length > zx &&
    o.forEach(r => {
      Bx(r, t), ro.delete(r)
    })
}
const Fx = (e, t, n, o) => {
  const r = n.getDerivativeToken(e)
  let i = p(p({}, r), t)
  return o && (i = o(i)), i
}
function Hx(e, t) {
  let n =
    arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ne({})
  const o = gl(),
    r = P(() => p({}, ...t.value)),
    i = P(() => qi(r.value)),
    l = P(() => qi(n.value.override || Dd))
  return km(
    'token',
    P(() => [n.value.salt || '', e.value.id, i.value, l.value]),
    () => {
      const {
          salt: s = '',
          override: u = Dd,
          formatToken: c,
          getComputedToken: d
        } = n.value,
        f = d ? d(r.value, u, e.value) : Fx(r.value, u, e.value, c),
        m = Ex(f, s)
      ;(f._tokenKey = m), Nx(m)
      const g = `${Mx}-${xc(m)}`
      return (f._hashId = g), [f, g]
    },
    s => {
      var u
      Lx(
        s[0]._tokenKey,
        (u = o.value) === null || u === void 0 ? void 0 : u.cache.instanceId
      )
    }
  )
}
var kx = {
    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,
    fillOpacity: 1,
    floodOpacity: 1,
    stopOpacity: 1,
    strokeDasharray: 1,
    strokeDashoffset: 1,
    strokeMiterlimit: 1,
    strokeOpacity: 1,
    strokeWidth: 1
  },
  Ym = 'comm',
  Jm = 'rule',
  Qm = 'decl',
  jx = '@import',
  Kx = '@keyframes',
  Wx = '@layer',
  Vx = Math.abs,
  Cc = String.fromCharCode
function Zm(e) {
  return e.trim()
}
function Ti(e, t, n) {
  return e.replace(t, n)
}
function Gx(e, t) {
  return e.indexOf(t)
}
function jr(e, t) {
  return e.charCodeAt(t) | 0
}
function Kr(e, t, n) {
  return e.slice(t, n)
}
function zn(e) {
  return e.length
}
function eg(e) {
  return e.length
}
function vi(e, t) {
  return t.push(e), e
}
var bl = 1,
  tr = 1,
  tg = 0,
  en = 0,
  bt = 0,
  ur = ''
function $c(e, t, n, o, r, i, l) {
  return {
    value: e,
    root: t,
    parent: n,
    type: o,
    props: r,
    children: i,
    line: bl,
    column: tr,
    length: l,
    return: ''
  }
}
function Ux() {
  return bt
}
function Xx() {
  return (
    (bt = en > 0 ? jr(ur, --en) : 0), tr--, bt === 10 && ((tr = 1), bl--), bt
  )
}
function on() {
  return (
    (bt = en < tg ? jr(ur, en++) : 0), tr++, bt === 10 && ((tr = 1), bl++), bt
  )
}
function co() {
  return jr(ur, en)
}
function Ii() {
  return en
}
function yl(e, t) {
  return Kr(ur, e, t)
}
function os(e) {
  switch (e) {
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    case 59:
    case 123:
    case 125:
      return 4
    case 58:
      return 3
    case 34:
    case 39:
    case 40:
    case 91:
      return 2
    case 41:
    case 93:
      return 1
  }
  return 0
}
function qx(e) {
  return (bl = tr = 1), (tg = zn((ur = e))), (en = 0), []
}
function Yx(e) {
  return (ur = ''), e
}
function ca(e) {
  return Zm(yl(en - 1, rs(e === 91 ? e + 2 : e === 40 ? e + 1 : e)))
}
function Jx(e) {
  for (; (bt = co()) && bt < 33; ) on()
  return os(e) > 2 || os(bt) > 3 ? '' : ' '
}
function Qx(e, t) {
  for (
    ;
    --t &&
    on() &&
    !(bt < 48 || bt > 102 || (bt > 57 && bt < 65) || (bt > 70 && bt < 97));

  );
  return yl(e, Ii() + (t < 6 && co() == 32 && on() == 32))
}
function rs(e) {
  for (; on(); )
    switch (bt) {
      case e:
        return en
      case 34:
      case 39:
        e !== 34 && e !== 39 && rs(bt)
        break
      case 40:
        e === 41 && rs(e)
        break
      case 92:
        on()
        break
    }
  return en
}
function Zx(e, t) {
  for (; on() && e + bt !== 47 + 10; )
    if (e + bt === 42 + 42 && co() === 47) break
  return '/*' + yl(t, en - 1) + '*' + Cc(e === 47 ? e : on())
}
function eC(e) {
  for (; !os(co()); ) on()
  return yl(e, en)
}
function tC(e) {
  return Yx(Ei('', null, null, null, [''], (e = qx(e)), 0, [0], e))
}
function Ei(e, t, n, o, r, i, l, a, s) {
  for (
    var u = 0,
      c = 0,
      d = l,
      f = 0,
      m = 0,
      g = 0,
      h = 1,
      b = 1,
      S = 1,
      C = 0,
      $ = '',
      O = r,
      x = i,
      w = o,
      y = $;
    b;

  )
    switch (((g = C), (C = on()))) {
      case 40:
        if (g != 108 && jr(y, d - 1) == 58) {
          Gx((y += Ti(ca(C), '&', '&\f')), '&\f') != -1 && (S = -1)
          break
        }
      case 34:
      case 39:
      case 91:
        y += ca(C)
        break
      case 9:
      case 10:
      case 13:
      case 32:
        y += Jx(g)
        break
      case 92:
        y += Qx(Ii() - 1, 7)
        continue
      case 47:
        switch (co()) {
          case 42:
          case 47:
            vi(nC(Zx(on(), Ii()), t, n), s)
            break
          default:
            y += '/'
        }
        break
      case 123 * h:
        a[u++] = zn(y) * S
      case 125 * h:
      case 59:
      case 0:
        switch (C) {
          case 0:
          case 125:
            b = 0
          case 59 + c:
            S == -1 && (y = Ti(y, /\f/g, '')),
              m > 0 &&
                zn(y) - d &&
                vi(
                  m > 32
                    ? Nd(y + ';', o, n, d - 1)
                    : Nd(Ti(y, ' ', '') + ';', o, n, d - 2),
                  s
                )
            break
          case 59:
            y += ';'
          default:
            if (
              (vi((w = Md(y, t, n, u, c, r, a, $, (O = []), (x = []), d)), i),
              C === 123)
            )
              if (c === 0) Ei(y, t, w, w, O, i, d, a, x)
              else
                switch (f === 99 && jr(y, 3) === 110 ? 100 : f) {
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    Ei(
                      e,
                      w,
                      w,
                      o && vi(Md(e, w, w, 0, 0, r, a, $, r, (O = []), d), x),
                      r,
                      x,
                      d,
                      a,
                      o ? O : x
                    )
                    break
                  default:
                    Ei(y, w, w, w, [''], x, 0, a, x)
                }
        }
        ;(u = c = m = 0), (h = S = 1), ($ = y = ''), (d = l)
        break
      case 58:
        ;(d = 1 + zn(y)), (m = g)
      default:
        if (h < 1) {
          if (C == 123) --h
          else if (C == 125 && h++ == 0 && Xx() == 125) continue
        }
        switch (((y += Cc(C)), C * h)) {
          case 38:
            S = c > 0 ? 1 : ((y += '\f'), -1)
            break
          case 44:
            ;(a[u++] = (zn(y) - 1) * S), (S = 1)
            break
          case 64:
            co() === 45 && (y += ca(on())),
              (f = co()),
              (c = d = zn(($ = y += eC(Ii())))),
              C++
            break
          case 45:
            g === 45 && zn(y) == 2 && (h = 0)
        }
    }
  return i
}
function Md(e, t, n, o, r, i, l, a, s, u, c) {
  for (
    var d = r - 1, f = r === 0 ? i : [''], m = eg(f), g = 0, h = 0, b = 0;
    g < o;
    ++g
  )
    for (var S = 0, C = Kr(e, d + 1, (d = Vx((h = l[g])))), $ = e; S < m; ++S)
      ($ = Zm(h > 0 ? f[S] + ' ' + C : Ti(C, /&\f/g, f[S]))) && (s[b++] = $)
  return $c(e, t, n, r === 0 ? Jm : a, s, u, c)
}
function nC(e, t, n) {
  return $c(e, t, n, Ym, Cc(Ux()), Kr(e, 2, -2), 0)
}
function Nd(e, t, n, o) {
  return $c(e, t, n, Qm, Kr(e, 0, o), Kr(e, o + 1, -1), o)
}
function is(e, t) {
  for (var n = '', o = eg(e), r = 0; r < o; r++) n += t(e[r], r, e, t) || ''
  return n
}
function oC(e, t, n, o) {
  switch (e.type) {
    case Wx:
      if (e.children.length) break
    case jx:
    case Qm:
      return (e.return = e.return || e.value)
    case Ym:
      return ''
    case Kx:
      return (e.return = e.value + '{' + is(e.children, o) + '}')
    case Jm:
      e.value = e.props.join(',')
  }
  return zn((n = is(e.children, o))) ? (e.return = e.value + '{' + n + '}') : ''
}
const Bd = 'data-ant-cssinjs-cache-path',
  rC = '_FILE_STYLE__'
let uo,
  ng = !0
function iC() {
  var e
  if (!uo && ((uo = {}), Ht())) {
    const t = document.createElement('div')
    ;(t.className = Bd),
      (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, l] = r.split(':')
        uo[i] = l
      })
    const o = document.querySelector(`style[${Bd}]`)
    o &&
      ((ng = !1),
      (e = o.parentNode) === null || e === void 0 || e.removeChild(o)),
      document.body.removeChild(t)
  }
}
function lC(e) {
  return iC(), !!uo[e]
}
function aC(e) {
  const t = uo[e]
  let n = null
  if (t && Ht())
    if (ng) n = rC
    else {
      const o = document.querySelector(`style[${so}="${uo[e]}"]`)
      o ? (n = o.innerHTML) : delete uo[e]
    }
  return [n, t]
}
const zd = Ht(),
  sC = '_skip_check_',
  og = '_multi_value_'
function Ld(e) {
  return is(tC(e), oC).replace(/\{%%%\:[^;];}/g, ';')
}
function cC(e) {
  return typeof e == 'object' && e && (sC in e || og in e)
}
function uC(e, t, n) {
  if (!t) return e
  const o = `.${t}`,
    r = n === 'low' ? `:where(${o})` : o
  return e
    .split(',')
    .map(l => {
      var a
      const s = l.trim().split(/\s+/)
      let u = s[0] || ''
      const c =
        ((a = u.match(/^\w+/)) === null || a === void 0 ? void 0 : a[0]) || ''
      return (u = `${c}${r}${u.slice(c.length)}`), [u, ...s.slice(1)].join(' ')
    })
    .join(',')
}
const Fd = new Set(),
  ls = 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: l,
      path: a,
      hashPriority: s,
      transformers: u = [],
      linters: c = []
    } = t
    let d = '',
      f = {}
    function m(b) {
      const S = b.getName(i)
      if (!f[S]) {
        const [C] = ls(b.style, t, { root: !1, parentSelectors: r })
        f[S] = `@keyframes ${b.getName(i)}${C}`
      }
    }
    function g(b) {
      let S =
        arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []
      return (
        b.forEach(C => {
          Array.isArray(C) ? g(C, S) : C && S.push(C)
        }),
        S
      )
    }
    if (
      (g(Array.isArray(e) ? e : [e]).forEach(b => {
        const S = typeof b == 'string' && !n ? {} : b
        if (typeof S == 'string')
          d += `${S}
`
        else if (S._keyframe) m(S)
        else {
          const C = u.reduce(($, O) => {
            var x
            return (
              ((x = O == null ? void 0 : O.visit) === null || x === void 0
                ? void 0
                : x.call(O, $)) || $
            )
          }, S)
          Object.keys(C).forEach($ => {
            var O
            const x = C[$]
            if (
              typeof x == 'object' &&
              x &&
              ($ !== 'animationName' || !x._keyframe) &&
              !cC(x)
            ) {
              let w = !1,
                y = $.trim(),
                T = !1
              ;(n || o) && i
                ? y.startsWith('@')
                  ? (w = !0)
                  : (y = uC($, i, s))
                : n && !i && (y === '&' || y === '') && ((y = ''), (T = !0))
              const [I, _] = ls(x, t, {
                root: T,
                injectHash: w,
                parentSelectors: [...r, y]
              })
              ;(f = p(p({}, f), _)), (d += `${y}${I}`)
            } else {
              let w = function(T, I) {
                const _ = T.replace(/[A-Z]/g, z => `-${z.toLowerCase()}`)
                let A = I
                !kx[T] && typeof A == 'number' && A !== 0 && (A = `${A}px`),
                  T === 'animationName' &&
                    I != null &&
                    I._keyframe &&
                    (m(I), (A = I.getName(i))),
                  (d += `${_}:${A};`)
              }
              const y =
                (O = x == null ? void 0 : x.value) !== null && O !== void 0
                  ? O
                  : x
              typeof x == 'object' && x != null && x[og] && Array.isArray(y)
                ? y.forEach(T => {
                    w($, T)
                  })
                : w($, y)
            }
          })
        }
      }),
      !n)
    )
      d = `{${d}}`
    else if (l && Rx()) {
      const b = l.split(',')
      ;(d = `@layer ${b[b.length - 1].trim()} {${d}}`),
        b.length > 1 && (d = `@layer ${l}{%%%:%}${d}`)
    }
    return [d, f]
  }
function dC(e, t) {
  return xc(`${e.join('%')}${t}`)
}
function as(e, t) {
  const n = gl(),
    o = P(() => e.value.token._tokenKey),
    r = P(() => [o.value, ...e.value.path])
  let i = zd
  return (
    km(
      'style',
      r,
      () => {
        const {
            path: l,
            hashId: a,
            layer: s,
            nonce: u,
            clientOnly: c,
            order: d = 0
          } = e.value,
          f = r.value.join('|')
        if (lC(f)) {
          const [y, T] = aC(f)
          if (y) return [y, o.value, T, {}, c, d]
        }
        const m = t(),
          {
            hashPriority: g,
            container: h,
            transformers: b,
            linters: S,
            cache: C
          } = n.value,
          [$, O] = ls(m, {
            hashId: a,
            hashPriority: g,
            layer: s,
            path: l.join('-'),
            transformers: b,
            linters: S
          }),
          x = Ld($),
          w = dC(r.value, x)
        if (i) {
          const y = { mark: so, prepend: 'queue', attachTo: h, priority: d },
            T = typeof u == 'function' ? u() : u
          T && (y.csp = { nonce: T })
          const I = kr(x, w, y)
          ;(I[Ho] = C.instanceId),
            I.setAttribute(Lm, o.value),
            Object.keys(O).forEach(_ => {
              Fd.has(_) ||
                (Fd.add(_),
                kr(Ld(O[_]), `_effect-${_}`, {
                  mark: so,
                  prepend: 'queue',
                  attachTo: h
                }))
            })
        }
        return [x, o.value, w, O, c, d]
      },
      (l, a) => {
        let [, , s] = l
        ;(a || n.value.autoClear) && zd && Xi(s, { mark: so })
      }
    ),
    l => l
  )
}
class fC {
  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
  }
}
const Ve = fC,
  pC = '4.2.6',
  Wr = [
    'blue',
    'purple',
    'cyan',
    'green',
    'magenta',
    'pink',
    'red',
    'orange',
    'yellow',
    'volcano',
    'geekblue',
    'lime',
    'gold'
  ],
  vC = e => {
    const { controlHeight: t } = e
    return {
      controlHeightSM: t * 0.75,
      controlHeightXS: t * 0.5,
      controlHeightLG: t * 1.25
    }
  },
  mC = vC
function gC(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)
  }
}
const rg = {
    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'
  },
  hC = p(p({}, rg), {
    colorPrimary: '#1677ff',
    colorSuccess: '#52c41a',
    colorWarning: '#faad14',
    colorError: '#ff4d4f',
    colorInfo: '#1677ff',
    colorTextBase: '',
    colorBgBase: '',
    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,
    lineWidth: 1,
    lineType: 'solid',
    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)',
    borderRadius: 6,
    sizeUnit: 4,
    sizeStep: 4,
    sizePopupArrow: 16,
    controlHeight: 32,
    zIndexBase: 0,
    zIndexPopupBase: 1e3,
    opacityImage: 1,
    wireframe: !1
  }),
  Sl = hC
function bC(e, t) {
  let { generateColorPalettes: n, generateNeutralColorPalettes: o } = t
  const {
      colorSuccess: r,
      colorWarning: i,
      colorError: l,
      colorInfo: a,
      colorPrimary: s,
      colorBgBase: u,
      colorTextBase: c
    } = e,
    d = n(s),
    f = n(r),
    m = n(i),
    g = n(l),
    h = n(a),
    b = o(u, c)
  return p(p({}, b), {
    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: g[1],
    colorErrorBgHover: g[2],
    colorErrorBorder: g[3],
    colorErrorBorderHover: g[4],
    colorErrorHover: g[5],
    colorError: g[6],
    colorErrorActive: g[7],
    colorErrorTextHover: g[8],
    colorErrorText: g[9],
    colorErrorTextActive: g[10],
    colorWarningBg: m[1],
    colorWarningBgHover: m[2],
    colorWarningBorder: m[3],
    colorWarningBorderHover: m[4],
    colorWarningHover: m[4],
    colorWarning: m[6],
    colorWarningActive: m[7],
    colorWarningTextHover: m[8],
    colorWarningText: m[9],
    colorWarningTextActive: m[10],
    colorInfoBg: h[1],
    colorInfoBgHover: h[2],
    colorInfoBorder: h[3],
    colorInfoBorderHover: h[4],
    colorInfoHover: h[4],
    colorInfo: h[6],
    colorInfoActive: h[7],
    colorInfoTextHover: h[8],
    colorInfoText: h[9],
    colorInfoTextActive: h[10],
    colorBgMask: new ut('#000').setAlpha(0.45).toRgbString(),
    colorWhite: '#fff'
  })
}
const yC = 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
      }
    )
  },
  SC = yC
function xC(e) {
  const { motionUnit: t, motionBase: n, borderRadius: o, lineWidth: r } = e
  return p(
    {
      motionDurationFast: `${(n + t).toFixed(1)}s`,
      motionDurationMid: `${(n + t * 2).toFixed(1)}s`,
      motionDurationSlow: `${(n + t * 3).toFixed(1)}s`,
      lineWidthBold: r + 1
    },
    SC(o)
  )
}
const xn = (e, t) => new ut(e).setAlpha(t).toRgbString(),
  xr = (e, t) => new ut(e).darken(t).toHexString(),
  CC = e => {
    const t = zr(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]
    }
  },
  $C = (e, t) => {
    const n = e || '#fff',
      o = t || '#000'
    return {
      colorBgBase: n,
      colorTextBase: o,
      colorText: xn(o, 0.88),
      colorTextSecondary: xn(o, 0.65),
      colorTextTertiary: xn(o, 0.45),
      colorTextQuaternary: xn(o, 0.25),
      colorFill: xn(o, 0.15),
      colorFillSecondary: xn(o, 0.06),
      colorFillTertiary: xn(o, 0.04),
      colorFillQuaternary: xn(o, 0.02),
      colorBgLayout: xr(n, 4),
      colorBgContainer: xr(n, 0),
      colorBgElevated: xr(n, 0),
      colorBgSpotlight: xn(o, 0.85),
      colorBorder: xr(n, 15),
      colorBorderSecondary: xr(n, 6)
    }
  }
function wC(e) {
  const t = new Array(10).fill(null).map((n, o) => {
    const r = o - 1,
      i = e * Math.pow(2.71828, r / 5),
      l = o > 1 ? Math.floor(i) : Math.ceil(i)
    return Math.floor(l / 2) * 2
  })
  return (
    (t[1] = e),
    t.map(n => {
      const o = n + 8
      return { size: n, lineHeight: o / n }
    })
  )
}
const OC = e => {
    const t = wC(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]
    }
  },
  PC = OC
function TC(e) {
  const t = Object.keys(rg)
    .map(n => {
      const o = zr(e[n])
      return new Array(10)
        .fill(1)
        .reduce((r, i, l) => ((r[`${n}-${l + 1}`] = o[l]), r), {})
    })
    .reduce((n, o) => ((n = p(p({}, n), o)), n), {})
  return p(
    p(
      p(
        p(
          p(
            p(p({}, e), t),
            bC(e, {
              generateColorPalettes: CC,
              generateNeutralColorPalettes: $C
            })
          ),
          PC(e.fontSize)
        ),
        gC(e)
      ),
      mC(e)
    ),
    xC(e)
  )
}
function ua(e) {
  return e >= 0 && e <= 255
}
function mi(e, t) {
  const { r: n, g: o, b: r, a: i } = new ut(e).toRgb()
  if (i < 1) return e
  const { r: l, g: a, b: s } = new ut(t).toRgb()
  for (let u = 0.01; u <= 1; u += 0.01) {
    const c = Math.round((n - l * (1 - u)) / u),
      d = Math.round((o - a * (1 - u)) / u),
      f = Math.round((r - s * (1 - u)) / u)
    if (ua(c) && ua(d) && ua(f))
      return new ut({
        r: c,
        g: d,
        b: f,
        a: Math.round(u * 100) / 100
      }).toRgbString()
  }
  return new ut({ r: n, g: o, b: r, a: 1 }).toRgbString()
}
var IC =
  (globalThis && globalThis.__rest) ||
  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 EC(e) {
  const { override: t } = e,
    n = IC(e, ['override']),
    o = p({}, t)
  Object.keys(Sl).forEach(m => {
    delete o[m]
  })
  const r = p(p({}, n), o),
    i = 480,
    l = 576,
    a = 768,
    s = 992,
    u = 1200,
    c = 1600,
    d = 2e3
  return p(
    p(p({}, r), {
      colorLink: r.colorInfoText,
      colorLinkHover: r.colorInfoHover,
      colorLinkActive: r.colorInfoActive,
      colorFillContent: r.colorFillSecondary,
      colorFillContentHover: r.colorFill,
      colorFillAlter: r.colorFillQuaternary,
      colorBgContainerDisabled: r.colorFillTertiary,
      colorBorderBg: r.colorBgContainer,
      colorSplit: mi(r.colorBorderSecondary, r.colorBgContainer),
      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: mi(r.colorErrorBg, r.colorBgContainer),
      colorWarningOutline: mi(r.colorWarningBg, r.colorBgContainer),
      fontSizeIcon: r.fontSizeSM,
      lineWidth: r.lineWidth,
      controlOutlineWidth: r.lineWidth * 2,
      controlInteractiveSize: r.controlHeight / 2,
      controlItemBgHover: r.colorFillTertiary,
      controlItemBgActive: r.colorPrimaryBg,
      controlItemBgActiveHover: r.colorPrimaryBgHover,
      controlItemBgActiveDisabled: r.colorFill,
      controlTmpOutline: r.colorFillQuaternary,
      controlOutline: mi(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: l - 1,
      screenSM: l,
      screenSMMin: l,
      screenSMMax: a - 1,
      screenMD: a,
      screenMDMin: a,
      screenMDMax: s - 1,
      screenLG: s,
      screenLGMin: s,
      screenLGMax: u - 1,
      screenXL: u,
      screenXLMin: u,
      screenXLMax: c - 1,
      screenXXL: c,
      screenXXLMin: c,
      screenXXLMax: d - 1,
      screenXXXL: d,
      screenXXXLMin: d,
      boxShadowPopoverArrow: '3px 3px 7px rgba(0, 0, 0, 0.1)',
      boxShadowCard: `
      0 1px 2px -2px ${new ut('rgba(0, 0, 0, 0.16)').toRgbString()},
      0 3px 6px 0 ${new ut('rgba(0, 0, 0, 0.12)').toRgbString()},
      0 5px 12px 4px ${new ut('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 wc = e => ({
    color: e.colorLink,
    textDecoration: 'none',
    outline: 'none',
    cursor: 'pointer',
    transition: `color ${e.motionDurationSlow}`,
    '&:focus, &:hover': { color: e.colorLinkHover },
    '&:active': { color: e.colorLinkActive }
  }),
  ig = (e, t, n, o, r) => {
    const i = e / 2,
      l = 0,
      a = i,
      s = (n * 1) / Math.sqrt(2),
      u = i - n * (1 - 1 / Math.sqrt(2)),
      c = i - t * (1 / Math.sqrt(2)),
      d = n * (Math.sqrt(2) - 1) + t * (1 / Math.sqrt(2)),
      f = 2 * i - c,
      m = d,
      g = 2 * i - s,
      h = u,
      b = 2 * i - l,
      S = a,
      C = i * Math.sqrt(2) + n * (Math.sqrt(2) - 2),
      $ = n * (Math.sqrt(2) - 1)
    return {
      pointerEvents: 'none',
      width: e,
      height: e,
      overflow: 'hidden',
      '&::after': {
        content: '""',
        position: 'absolute',
        width: C,
        height: C,
        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(${$}px 100%, 50% ${$}px, ${2 * i -
              $}px 100%, ${$}px 100%)`,
            `path('M ${l} ${a} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${f} ${m} L ${g} ${h} A ${n} ${n} 0 0 0 ${b} ${S} Z')`
          ]
        },
        content: '""'
      }
    }
  }
function _C(e, t) {
  return Wr.reduce((n, o) => {
    const r = e[`${o}-1`],
      i = e[`${o}-3`],
      l = e[`${o}-6`],
      a = e[`${o}-7`]
    return p(
      p({}, n),
      t(o, { lightColor: r, lightBorderColor: i, darkColor: l, textColor: a })
    )
  }, {})
}
const Kn = {
    overflow: 'hidden',
    whiteSpace: 'nowrap',
    textOverflow: 'ellipsis'
  },
  ct = e => ({
    boxSizing: 'border-box',
    margin: 0,
    padding: 0,
    color: e.colorText,
    fontSize: e.fontSize,
    lineHeight: e.lineHeight,
    listStyle: 'none',
    fontFamily: e.fontFamily
  }),
  xl = () => ({
    display: 'inline-flex',
    alignItems: 'center',
    color: 'inherit',
    fontStyle: 'normal',
    lineHeight: 0,
    textAlign: 'center',
    textTransform: 'none',
    verticalAlign: '-0.125em',
    textRendering: 'optimizeLegibility',
    '-webkit-font-smoothing': 'antialiased',
    '-moz-osx-font-smoothing': 'grayscale',
    '> *': { lineHeight: 1 },
    svg: { display: 'inline-block' }
  }),
  Wn = () => ({
    '&::before': { display: 'table', content: '""' },
    '&::after': { display: 'table', clear: 'both', content: '""' }
  }),
  RC = 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
      },
      '&:focus': { textDecoration: e.linkFocusDecoration, outline: 0 },
      '&[disabled]': { color: e.colorTextDisabled, cursor: 'not-allowed' }
    }
  }),
  AC = (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' }
        }
      }
    }
  },
  En = e => ({
    outline: `${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,
    outlineOffset: 1,
    transition: 'outline-offset 0s, outline 0s'
  }),
  nr = e => ({ '&:focus-visible': p({}, En(e)) })
function pt(e, t, n) {
  return o => {
    const r = P(() => (o == null ? void 0 : o.value)),
      [i, l, a] = dr(),
      { getPrefixCls: s, iconPrefixCls: u } = Mm(),
      c = P(() => s()),
      d = P(() => ({
        theme: i.value,
        token: l.value,
        hashId: a.value,
        path: ['Shared', c.value]
      }))
    as(d, () => [{ '&': RC(l.value) }])
    const f = P(() => ({
      theme: i.value,
      token: l.value,
      hashId: a.value,
      path: [e, r.value, u.value]
    }))
    return [
      as(f, () => {
        const { token: m, flush: g } = MC(l.value),
          h = typeof n == 'function' ? n(m) : n,
          b = p(p({}, h), l.value[e]),
          S = `.${r.value}`,
          C = Ze(
            m,
            {
              componentCls: S,
              prefixCls: r.value,
              iconCls: `.${u.value}`,
              antCls: `.${c.value}`
            },
            b
          ),
          $ = t(C, {
            hashId: a.value,
            prefixCls: r.value,
            rootPrefixCls: c.value,
            iconPrefixCls: u.value,
            overrideComponentToken: l.value[e]
          })
        return g(e, b), [AC(l.value, r.value), $]
      }),
      a
    ]
  }
}
const lg = typeof CSSINJS_STATISTIC < 'u'
let ss = !0
function Ze() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n]
  if (!lg) return p({}, ...t)
  ss = !1
  const o = {}
  return (
    t.forEach(r => {
      Object.keys(r).forEach(l => {
        Object.defineProperty(o, l, {
          configurable: !0,
          enumerable: !0,
          get: () => r[l]
        })
      })
    }),
    (ss = !0),
    o
  )
}
function DC() {}
function MC(e) {
  let t,
    n = e,
    o = DC
  return (
    lg &&
      ((t = new Set()),
      (n = new Proxy(e, {
        get(r, i) {
          return ss && t.add(i), r[i]
        }
      })),
      (o = (r, i) => {
        Array.from(t)
      })),
    { token: n, keys: t, flush: o }
  )
}
const NC = Xm(TC),
  ag = { token: Sl, hashed: !0 },
  sg = Symbol('DesignTokenContext'),
  cs = V(),
  BC = e => {
    Ye(sg, e),
      ge(
        e,
        () => {
          ;(cs.value = ze(e)), O0(cs)
        },
        { immediate: !0, deep: !0 }
      )
  },
  zC = J({
    props: { value: Xe() },
    setup(e, t) {
      let { slots: n } = t
      return (
        BC(P(() => e.value)),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  })
function dr() {
  const e = Ue(
      sg,
      P(() => cs.value || ag)
    ),
    t = P(() => `${pC}-${e.value.hashed || ''}`),
    n = P(() => e.value.theme || NC),
    o = Hx(
      n,
      P(() => [Sl, e.value.token]),
      P(() => ({
        salt: t.value,
        override: p({ override: e.value.token }, e.value.components),
        formatToken: EC
      }))
    )
  return [n, P(() => o.value[0]), P(() => (e.value.hashed ? o.value[1] : ''))]
}
const cg = J({
  compatConfig: { MODE: 3 },
  setup() {
    const [, e] = dr(),
      t = P(() =>
        new ut(e.value.colorBgBase).toHsl().l < 0.5 ? { opacity: 0.65 } : {}
      )
    return () =>
      v(
        'svg',
        {
          style: t.value,
          width: '184',
          height: '152',
          viewBox: '0 0 184 152',
          xmlns: 'http://www.w3.org/2000/svg'
        },
        [
          v('g', { fill: 'none', 'fill-rule': 'evenodd' }, [
            v('g', { transform: 'translate(24 31.67)' }, [
              v(
                'ellipse',
                {
                  'fill-opacity': '.8',
                  fill: '#F5F5F7',
                  cx: '67.797',
                  cy: '106.89',
                  rx: '67.797',
                  ry: '12.668'
                },
                null
              ),
              v(
                '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
              ),
              v(
                '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
              ),
              v(
                '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
              ),
              v(
                '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
              )
            ]),
            v(
              '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
            ),
            v('g', { transform: 'translate(149.65 15.383)', fill: '#FFF' }, [
              v(
                'ellipse',
                { cx: '20.654', cy: '3.167', rx: '2.849', ry: '2.815' },
                null
              ),
              v(
                'path',
                { d: 'M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z' },
                null
              )
            ])
          ])
        ]
      )
  }
})
cg.PRESENTED_IMAGE_DEFAULT = !0
const ug = cg,
  dg = J({
    compatConfig: { MODE: 3 },
    setup() {
      const [, e] = dr(),
        t = P(() => {
          const {
            colorFill: n,
            colorFillTertiary: o,
            colorFillQuaternary: r,
            colorBgContainer: i
          } = e.value
          return {
            borderColor: new ut(n).onBackground(i).toHexString(),
            shadowColor: new ut(o).onBackground(i).toHexString(),
            contentColor: new ut(r).onBackground(i).toHexString()
          }
        })
      return () =>
        v(
          'svg',
          {
            width: '64',
            height: '41',
            viewBox: '0 0 64 41',
            xmlns: 'http://www.w3.org/2000/svg'
          },
          [
            v(
              'g',
              {
                transform: 'translate(0 1)',
                fill: 'none',
                'fill-rule': 'evenodd'
              },
              [
                v(
                  'ellipse',
                  {
                    fill: t.value.shadowColor,
                    cx: '32',
                    cy: '33',
                    rx: '32',
                    ry: '7'
                  },
                  null
                ),
                v(
                  'g',
                  { 'fill-rule': 'nonzero', stroke: t.value.borderColor },
                  [
                    v(
                      '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
                    ),
                    v(
                      '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
                    )
                  ]
                )
              ]
            )
          ]
        )
    }
  })
dg.PRESENTED_IMAGE_SIMPLE = !0
const LC = dg,
  FC = e => {
    const {
      componentCls: t,
      margin: n,
      marginXS: o,
      marginXL: r,
      fontSize: i,
      lineHeight: l
    } = e
    return {
      [t]: {
        marginInline: o,
        fontSize: i,
        lineHeight: l,
        textAlign: 'center',
        [`${t}-image`]: {
          height: e.emptyImgHeight,
          marginBottom: o,
          opacity: e.opacityImage,
          img: { height: '100%' },
          svg: { height: '100%', margin: 'auto' }
        },
        [`${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 }
        }
      }
    }
  },
  HC = pt('Empty', e => {
    const { componentCls: t, controlHeightLG: n } = e,
      o = Ze(e, {
        emptyImgCls: `${t}-img`,
        emptyImgHeight: n * 2.5,
        emptyImgHeightMD: n,
        emptyImgHeightSM: n * 0.875
      })
    return [FC(o)]
  })
var kC =
  (globalThis && globalThis.__rest) ||
  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 jC = () => ({
    prefixCls: String,
    imageStyle: Xe(),
    image: wt(),
    description: wt()
  }),
  Oc = J({
    name: 'AEmpty',
    compatConfig: { MODE: 3 },
    inheritAttrs: !1,
    props: jC(),
    setup(e, t) {
      let { slots: n = {}, attrs: o } = t
      const { direction: r, prefixCls: i } = je('empty', e),
        [l, a] = HC(i)
      return () => {
        var s, u
        const c = i.value,
          d = p(p({}, e), o),
          {
            image: f = ((s = n.image) === null || s === void 0
              ? void 0
              : s.call(n)) || lt(ug),
            description: m = ((u = n.description) === null || u === void 0
              ? void 0
              : u.call(n)) || void 0,
            imageStyle: g,
            class: h = ''
          } = d,
          b = kC(d, ['image', 'description', 'imageStyle', 'class']),
          S = typeof f == 'function' ? f() : f,
          C =
            typeof S == 'object' && 'type' in S && S.type.PRESENTED_IMAGE_SIMPLE
        return l(
          v(
            yc,
            {
              componentName: 'Empty',
              children: $ => {
                const O = typeof m < 'u' ? m : $.description,
                  x = typeof O == 'string' ? O : 'empty'
                let w = null
                return (
                  typeof S == 'string'
                    ? (w = v('img', { alt: x, src: S }, null))
                    : (w = S),
                  v(
                    'div',
                    N(
                      {
                        class: oe(c, h, a.value, {
                          [`${c}-normal`]: C,
                          [`${c}-rtl`]: r.value === 'rtl'
                        })
                      },
                      b
                    ),
                    [
                      v('div', { class: `${c}-image`, style: g }, [w]),
                      O && v('p', { class: `${c}-description` }, [O]),
                      n.default &&
                        v('div', { class: `${c}-footer` }, [Tt(n.default())])
                    ]
                  )
                )
              }
            },
            null
          )
        )
      }
    }
  })
Oc.PRESENTED_IMAGE_DEFAULT = () => lt(ug)
Oc.PRESENTED_IMAGE_SIMPLE = () => lt(LC)
const io = Po(Oc),
  Pc = e => {
    const { prefixCls: t } = je('empty', e)
    return (o => {
      switch (o) {
        case 'Table':
        case 'List':
          return v(io, { image: io.PRESENTED_IMAGE_SIMPLE }, null)
        case 'Select':
        case 'TreeSelect':
        case 'Cascader':
        case 'Transfer':
        case 'Mentions':
          return v(
            io,
            { image: io.PRESENTED_IMAGE_SIMPLE, class: `${t.value}-small` },
            null
          )
        default:
          return v(io, null, null)
      }
    })(e.componentName)
  }
function KC(e) {
  return v(Pc, { componentName: e }, null)
}
const fg = Symbol('SizeContextKey'),
  pg = () => Ue(fg, ne(void 0)),
  WC = e => {
    const t = pg()
    return (
      Ye(
        fg,
        P(() => e.value || t.value)
      ),
      e
    )
  },
  je = (e, t) => {
    const n = pg(),
      o = In(),
      r = Ue(
        bc,
        p(p({}, Dm), { renderEmpty: y => lt(Pc, { componentName: y }) })
      ),
      i = P(() => r.getPrefixCls(e, t.prefixCls)),
      l = P(() => {
        var y, T
        return (y = t.direction) !== null && y !== void 0
          ? y
          : (T = r.direction) === null || T === void 0
          ? void 0
          : T.value
      }),
      a = P(() => {
        var y
        return (y = t.iconPrefixCls) !== null && y !== void 0
          ? y
          : r.iconPrefixCls.value
      }),
      s = P(() => r.getPrefixCls()),
      u = P(() => {
        var y
        return (y = r.autoInsertSpaceInButton) === null || y === void 0
          ? void 0
          : y.value
      }),
      c = r.renderEmpty,
      d = r.space,
      f = r.pageHeader,
      m = r.form,
      g = P(() => {
        var y, T
        return (y = t.getTargetContainer) !== null && y !== void 0
          ? y
          : (T = r.getTargetContainer) === null || T === void 0
          ? void 0
          : T.value
      }),
      h = P(() => {
        var y, T, I
        return (T =
          (y = t.getContainer) !== null && y !== void 0
            ? y
            : t.getPopupContainer) !== null && T !== void 0
          ? T
          : (I = r.getPopupContainer) === null || I === void 0
          ? void 0
          : I.value
      }),
      b = P(() => {
        var y, T
        return (y = t.dropdownMatchSelectWidth) !== null && y !== void 0
          ? y
          : (T = r.dropdownMatchSelectWidth) === null || T === void 0
          ? void 0
          : T.value
      }),
      S = P(() => {
        var y
        return (
          (t.virtual === void 0
            ? ((y = r.virtual) === null || y === void 0 ? void 0 : y.value) !==
              !1
            : t.virtual !== !1) && b.value !== !1
        )
      }),
      C = P(() => t.size || n.value),
      $ = P(() => {
        var y, T, I
        return (y = t.autocomplete) !== null && y !== void 0
          ? y
          : (I = (T = r.input) === null || T === void 0 ? void 0 : T.value) ===
              null || I === void 0
          ? void 0
          : I.autocomplete
      }),
      O = P(() => {
        var y
        return (y = t.disabled) !== null && y !== void 0 ? y : o.value
      }),
      x = P(() => {
        var y
        return (y = t.csp) !== null && y !== void 0 ? y : r.csp
      }),
      w = P(() => {
        var y, T
        return (y = t.wave) !== null && y !== void 0
          ? y
          : (T = r.wave) === null || T === void 0
          ? void 0
          : T.value
      })
    return {
      configProvider: r,
      prefixCls: i,
      direction: l,
      size: C,
      getTargetContainer: g,
      getPopupContainer: h,
      space: d,
      pageHeader: f,
      form: m,
      autoInsertSpaceInButton: u,
      renderEmpty: c,
      virtual: S,
      dropdownMatchSelectWidth: b,
      rootPrefixCls: s,
      getPrefixCls: r.getPrefixCls,
      autocomplete: $,
      csp: x,
      iconPrefixCls: a,
      disabled: O,
      select: r.select,
      wave: w
    }
  }
function rt(e, t) {
  const n = p({}, e)
  for (let o = 0; o < t.length; o += 1) {
    const r = t[o]
    delete n[r]
  }
  return n
}
function VC(e, t, n, o) {
  const r = n - t
  return (
    (e /= o / 2),
    e < 1 ? (r / 2) * e * e * e + t : (r / 2) * ((e -= 2) * e * e + 2) + t
  )
}
function us(e) {
  return e != null && e === e.window
}
function GC(e, t) {
  var n, o
  if (typeof window > 'u') return 0
  const r = t ? 'scrollTop' : 'scrollLeft'
  let i = 0
  return (
    us(e)
      ? (i = e[t ? 'scrollY' : 'scrollX'])
      : e instanceof Document
      ? (i = e.documentElement[r])
      : (e instanceof HTMLElement || e) && (i = e[r]),
    e &&
      !us(e) &&
      typeof i != 'number' &&
      (i =
        (o = ((n = e.ownerDocument) !== null && n !== void 0 ? n : e)
          .documentElement) === null || o === void 0
          ? void 0
          : o[r]),
    i
  )
}
function UC(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  const { getContainer: n = () => window, callback: o, duration: r = 450 } = t,
    i = n(),
    l = GC(i, !0),
    a = Date.now(),
    s = () => {
      const c = Date.now() - a,
        d = VC(c > r ? r : c, l, e, r)
      us(i)
        ? i.scrollTo(window.scrollX, d)
        : i instanceof Document
        ? (i.documentElement.scrollTop = d)
        : (i.scrollTop = d),
        c < r ? He(s) : typeof o == 'function' && o()
    }
  He(s)
}
function Hd(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 vg(e, t, n) {
  return t && Hd(e.prototype, t), n && Hd(e, n), e
}
function _i() {
  return (_i =
    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 mg(e, t) {
  ;(e.prototype = Object.create(t.prototype)),
    (e.prototype.constructor = e),
    (e.__proto__ = t)
}
function gg(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 kd(e) {
  return (
    ((t = e) != null && typeof t == 'object' && Array.isArray(t) === !1) == 1 &&
    Object.prototype.toString.call(e) === '[object Object]'
  )
  var t
}
var hg = Object.prototype,
  bg = hg.toString,
  XC = hg.hasOwnProperty,
  yg = /^\s*function (\w+)/
function jd(e) {
  var t,
    n = (t = e == null ? void 0 : e.type) !== null && t !== void 0 ? t : e
  if (n) {
    var o = n.toString().match(yg)
    return o ? o[1] : ''
  }
  return ''
}
var go = function(e) {
    var t, n
    return (
      kd(e) !== !1 &&
      typeof (t = e.constructor) == 'function' &&
      kd((n = t.prototype)) !== !1 &&
      n.hasOwnProperty('isPrototypeOf') !== !1
    )
  },
  qC = function(e) {
    return e
  },
  At = qC,
  Vr = function(e, t) {
    return XC.call(e, t)
  },
  YC =
    Number.isInteger ||
    function(e) {
      return typeof e == 'number' && isFinite(e) && Math.floor(e) === e
    },
  or =
    Array.isArray ||
    function(e) {
      return bg.call(e) === '[object Array]'
    },
  rr = function(e) {
    return bg.call(e) === '[object Function]'
  },
  Yi = function(e) {
    return go(e) && Vr(e, '_vueTypes_name')
  },
  Sg = function(e) {
    return (
      go(e) &&
      (Vr(e, 'type') ||
        ['_vueTypes_name', 'validator', 'default', 'required'].some(function(
          t
        ) {
          return Vr(e, t)
        }))
    )
  }
function Tc(e, t) {
  return Object.defineProperty(e.bind(t), '__original', { value: e })
}
function To(e, t, n) {
  var o
  n === void 0 && (n = !1)
  var r = !0,
    i = ''
  o = go(e) ? e : { type: e }
  var l = Yi(o) ? o._vueTypes_name + ' - ' : ''
  if (Sg(o) && o.type !== null) {
    if (o.type === void 0 || o.type === !0 || (!o.required && t === void 0))
      return r
    or(o.type)
      ? ((r = o.type.some(function(d) {
          return To(d, t, !0) === !0
        })),
        (i = o.type
          .map(function(d) {
            return jd(d)
          })
          .join(' or ')))
      : (r =
          (i = jd(o)) === 'Array'
            ? or(t)
            : i === 'Object'
            ? go(t)
            : i === 'String' ||
              i === 'Number' ||
              i === 'Boolean' ||
              i === 'Function'
            ? (function(d) {
                if (d == null) return ''
                var f = d.constructor.toString().match(yg)
                return f ? f[1] : ''
              })(t) === i
            : t instanceof o.type)
  }
  if (!r) {
    var a = l + 'value "' + t + '" should be of type "' + i + '"'
    return n === !1 ? (At(a), !1) : a
  }
  if (Vr(o, 'validator') && rr(o.validator)) {
    var s = At,
      u = []
    if (
      ((At = function(d) {
        u.push(d)
      }),
      (r = o.validator(t)),
      (At = s),
      !r)
    ) {
      var c =
        (u.length > 1 ? '* ' : '') +
        u.join(`
* `)
      return (u.length = 0), n === !1 ? (At(c), r) : c
    }
  }
  return r
}
function Vt(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
            ? rr(r) || To(this, r, !0) === !0
              ? ((this.default = or(r)
                  ? function() {
                      return [].concat(r)
                    }
                  : go(r)
                  ? function() {
                      return Object.assign({}, r)
                    }
                  : r),
                this)
              : (At(
                  this._vueTypes_name + ' - invalid default value: "' + r + '"'
                ),
                this)
            : this
        }
      }
    }),
    o = n.validator
  return rr(o) && (n.validator = Tc(o, n)), n
}
function mn(e, t) {
  var n = Vt(e, t)
  return Object.defineProperty(n, 'validate', {
    value: function(o) {
      return (
        rr(this.validator) &&
          At(
            this._vueTypes_name +
              ` - calling .validate() will overwrite the current custom validator function. Validator info:
` +
              JSON.stringify(this)
          ),
        (this.validator = Tc(o, this)),
        this
      )
    }
  })
}
function Kd(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), !go(n))) return i
  var l,
    a,
    s = n.validator,
    u = gg(n, ['validator'])
  if (rr(s)) {
    var c = i.validator
    c && (c = (a = (l = c).__original) !== null && a !== void 0 ? a : l),
      (i.validator = Tc(
        c
          ? function(d) {
              return c.call(this, d) && s.call(this, d)
            }
          : s,
        i
      ))
  }
  return Object.assign(i, u)
}
function Cl(e) {
  return e.replace(/^(?!\s*$)/gm, '  ')
}
var JC = function() {
    return mn('any', {})
  },
  QC = function() {
    return mn('function', { type: Function })
  },
  ZC = function() {
    return mn('boolean', { type: Boolean })
  },
  e$ = function() {
    return mn('string', { type: String })
  },
  t$ = function() {
    return mn('number', { type: Number })
  },
  n$ = function() {
    return mn('array', { type: Array })
  },
  o$ = function() {
    return mn('object', { type: Object })
  },
  r$ = function() {
    return Vt('integer', {
      type: Number,
      validator: function(e) {
        return YC(e)
      }
    })
  },
  i$ = function() {
    return Vt('symbol', {
      validator: function(e) {
        return typeof e == 'symbol'
      }
    })
  }
function l$(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 Vt(e.name || '<<anonymous function>>', {
    validator: function(n) {
      var o = e(n)
      return o || At(this._vueTypes_name + ' - ' + t), o
    }
  })
}
function a$(e) {
  if (!or(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 Vt('oneOf', {
    type: n.length > 0 ? n : void 0,
    validator: function(o) {
      var r = e.indexOf(o) !== -1
      return r || At(t), r
    }
  })
}
function s$(e) {
  if (!or(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 (Sg(r)) {
      if (Yi(r) && r._vueTypes_name === 'oneOf') {
        n = n.concat(r.type)
        continue
      }
      if ((rr(r.validator) && (t = !0), r.type !== !0 && r.type)) {
        n = n.concat(r.type)
        continue
      }
    }
    n.push(r)
  }
  return (
    (n = n.filter(function(i, l) {
      return n.indexOf(i) === l
    })),
    Vt(
      'oneOfType',
      t
        ? {
            type: n,
            validator: function(i) {
              var l = [],
                a = e.some(function(s) {
                  var u = To(
                    Yi(s) && s._vueTypes_name === 'oneOf' ? s.type || null : s,
                    i,
                    !0
                  )
                  return typeof u == 'string' && l.push(u), u === !0
                })
              return (
                a ||
                  At(
                    'oneOfType - provided value does not match any of the ' +
                      l.length +
                      ` passed-in validators:
` +
                      Cl(
                        l.join(`
`)
                      )
                  ),
                a
              )
            }
          }
        : { type: n }
    )
  )
}
function c$(e) {
  return Vt('arrayOf', {
    type: Array,
    validator: function(t) {
      var n,
        o = t.every(function(r) {
          return (n = To(e, r, !0)) === !0
        })
      return (
        o ||
          At(
            `arrayOf - value validation error:
` + Cl(n)
          ),
        o
      )
    }
  })
}
function u$(e) {
  return Vt('instanceOf', { type: e })
}
function d$(e) {
  return Vt('objectOf', {
    type: Object,
    validator: function(t) {
      var n,
        o = Object.keys(t).every(function(r) {
          return (n = To(e, t[r], !0)) === !0
        })
      return (
        o ||
          At(
            `objectOf - value validation error:
` + Cl(n)
          ),
        o
      )
    }
  })
}
function f$(e) {
  var t = Object.keys(e),
    n = t.filter(function(r) {
      var i
      return !!(!((i = e[r]) === null || i === void 0) && i.required)
    }),
    o = Vt('shape', {
      type: Object,
      validator: function(r) {
        var i = this
        if (!go(r)) return !1
        var l = Object.keys(r)
        if (
          n.length > 0 &&
          n.some(function(s) {
            return l.indexOf(s) === -1
          })
        ) {
          var a = n.filter(function(s) {
            return l.indexOf(s) === -1
          })
          return (
            At(
              a.length === 1
                ? 'shape - required property "' + a[0] + '" is not defined.'
                : 'shape - required properties "' +
                    a.join('", "') +
                    '" are not defined.'
            ),
            !1
          )
        }
        return l.every(function(s) {
          if (t.indexOf(s) === -1)
            return (
              i._vueTypes_isLoose === !0 ||
              (At(
                'shape - shape definition does not include a "' +
                  s +
                  '" property. Allowed keys: "' +
                  t.join('", "') +
                  '".'
              ),
              !1)
            )
          var u = To(e[s], r[s], !0)
          return (
            typeof u == 'string' &&
              At(
                'shape - "' +
                  s +
                  `" property validation error:
 ` +
                  Cl(u)
              ),
            u === !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 un = (function() {
  function e() {}
  return (
    (e.extend = function(t) {
      var n = this
      if (or(t))
        return (
          t.forEach(function(d) {
            return n.extend(d)
          }),
          this
        )
      var o = t.name,
        r = t.validate,
        i = r !== void 0 && r,
        l = t.getter,
        a = l !== void 0 && l,
        s = gg(t, ['name', 'validate', 'getter'])
      if (Vr(this, o))
        throw new TypeError(
          '[VueTypes error]: Type "' + o + '" already defined'
        )
      var u,
        c = s.type
      return Yi(c)
        ? (delete s.type,
          Object.defineProperty(
            this,
            o,
            a
              ? {
                  get: function() {
                    return Kd(o, c, s)
                  }
                }
              : {
                  value: function() {
                    var d,
                      f = Kd(o, c, s)
                    return (
                      f.validator &&
                        (f.validator = (d = f.validator).bind.apply(
                          d,
                          [f].concat([].slice.call(arguments))
                        )),
                      f
                    )
                  }
                }
          ))
        : ((u = a
            ? {
                get: function() {
                  var d = Object.assign({}, s)
                  return i ? mn(o, d) : Vt(o, d)
                },
                enumerable: !0
              }
            : {
                value: function() {
                  var d,
                    f,
                    m = Object.assign({}, s)
                  return (
                    (d = i ? mn(o, m) : Vt(o, m)),
                    m.validator &&
                      (d.validator = (f = m.validator).bind.apply(
                        f,
                        [d].concat([].slice.call(arguments))
                      )),
                    d
                  )
                },
                enumerable: !0
              }),
          Object.defineProperty(this, o, u))
    }),
    vg(e, null, [
      {
        key: 'any',
        get: function() {
          return JC()
        }
      },
      {
        key: 'func',
        get: function() {
          return QC().def(this.defaults.func)
        }
      },
      {
        key: 'bool',
        get: function() {
          return ZC().def(this.defaults.bool)
        }
      },
      {
        key: 'string',
        get: function() {
          return e$().def(this.defaults.string)
        }
      },
      {
        key: 'number',
        get: function() {
          return t$().def(this.defaults.number)
        }
      },
      {
        key: 'array',
        get: function() {
          return n$().def(this.defaults.array)
        }
      },
      {
        key: 'object',
        get: function() {
          return o$().def(this.defaults.object)
        }
      },
      {
        key: 'integer',
        get: function() {
          return r$().def(this.defaults.integer)
        }
      },
      {
        key: 'symbol',
        get: function() {
          return i$()
        }
      }
    ]),
    e
  )
})()
function xg(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 (
        mg(o, n),
        vg(o, null, [
          {
            key: 'sensibleDefaults',
            get: function() {
              return _i({}, this.defaults)
            },
            set: function(r) {
              this.defaults = r !== !1 ? _i({}, r !== !0 ? r : e) : {}
            }
          }
        ]),
        o
      )
    })(un)).defaults = _i({}, e)),
    t
  )
}
;(un.defaults = {}),
  (un.custom = l$),
  (un.oneOf = a$),
  (un.instanceOf = u$),
  (un.oneOfType = s$),
  (un.arrayOf = c$),
  (un.objectOf = d$),
  (un.shape = f$),
  (un.utils = {
    validate: function(e, t) {
      return To(t, e, !0) === !0
    },
    toType: function(e, t, n) {
      return n === void 0 && (n = !1), n ? mn(e, t) : Vt(e, t)
    }
  })
;(function(e) {
  function t() {
    return e.apply(this, arguments) || this
  }
  return mg(t, e), t
})(xg())
const Cg = xg({
  func: void 0,
  bool: void 0,
  string: void 0,
  number: void 0,
  array: void 0,
  object: void 0,
  integer: void 0
})
Cg.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 k = Cg,
  vt = (e, t, n) => {
    Gm(e, `[ant-design-vue: ${t}] ${n}`)
  }
function Wd(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 $g(e, t) {
  const { label: n, value: o, options: r } = e || {}
  return {
    label: n || (t ? 'children' : 'label'),
    value: o || 'value',
    options: r || 'options'
  }
}
function p$(e) {
  let { fieldNames: t, childrenAsData: n } =
    arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  const o = [],
    { label: r, value: i, options: l } = $g(t, !1)
  function a(s, u) {
    s.forEach(c => {
      const d = c[r]
      if (u || !(l in c)) {
        const f = c[i]
        o.push({
          key: Wd(c, o.length),
          groupOption: u,
          data: c,
          label: d,
          value: f
        })
      } else {
        let f = d
        f === void 0 && n && (f = c.label),
          o.push({ key: Wd(c, o.length), group: !0, data: c, label: f }),
          a(c[l], !0)
      }
    })
  }
  return a(e, !1), o
}
function ds(e) {
  const t = p({}, e)
  return (
    'props' in t ||
      Object.defineProperty(t, 'props', {
        get() {
          return t
        }
      }),
    t
  )
}
function v$(e, t) {
  if (!t || !t.length) return null
  let n = !1
  function o(i, l) {
    let [a, ...s] = l
    if (!a) return [i]
    const u = i.split(a)
    return (
      (n = n || u.length > 1),
      u.reduce((c, d) => [...c, ...o(d, s)], []).filter(c => c)
    )
  }
  const r = o(e, t)
  return n ? r : null
}
function m$() {
  return ''
}
function g$(e) {
  return e ? e.ownerDocument : window.document
}
function wg() {}
const h$ = () => ({
    action: k.oneOfType([k.string, k.arrayOf(k.string)]).def([]),
    showAction: k.any.def([]),
    hideAction: k.any.def([]),
    getPopupClassNameFromAlign: k.any.def(m$),
    onPopupVisibleChange: Function,
    afterPopupVisibleChange: k.func.def(wg),
    popup: k.any,
    arrow: k.bool.def(!0),
    popupStyle: { type: Object, default: void 0 },
    prefixCls: k.string.def('rc-trigger-popup'),
    popupClassName: k.string.def(''),
    popupPlacement: String,
    builtinPlacements: k.object,
    popupTransitionName: String,
    popupAnimation: k.any,
    mouseEnterDelay: k.number.def(0),
    mouseLeaveDelay: k.number.def(0.1),
    zIndex: Number,
    focusDelay: k.number.def(0),
    blurDelay: k.number.def(0.15),
    getPopupContainer: Function,
    getDocument: k.func.def(g$),
    forceRender: { type: Boolean, default: void 0 },
    destroyPopupOnHide: { type: Boolean, default: !1 },
    mask: { type: Boolean, default: !1 },
    maskClosable: { type: Boolean, default: !0 },
    popupAlign: k.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
  }),
  Ic = {
    visible: Boolean,
    prefixCls: String,
    zIndex: Number,
    destroyPopupOnHide: Boolean,
    forceRender: Boolean,
    arrow: { type: Boolean, default: !0 },
    animation: [String, Object],
    transitionName: String,
    stretch: { type: String },
    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 }
  },
  b$ = p(p({}, Ic), { mobile: { type: Object } }),
  y$ = p(p({}, Ic), {
    mask: Boolean,
    mobile: { type: Object },
    maskAnimation: String,
    maskTransitionName: String
  })
function Ec(e) {
  let { prefixCls: t, animation: n, transitionName: o } = e
  return n ? { name: `${t}-${n}` } : o ? { name: o } : {}
}
function Og(e) {
  const {
    prefixCls: t,
    visible: n,
    zIndex: o,
    mask: r,
    maskAnimation: i,
    maskTransitionName: l
  } = e
  if (!r) return null
  let a = {}
  return (
    (l || i) && (a = Ec({ prefixCls: t, transitionName: l, animation: i })),
    v(Oo, N({ appear: !0 }, a), {
      default: () => [
        vl(v('div', { style: { zIndex: o }, class: `${t}-mask` }, null), [
          [P0('if'), n]
        ])
      ]
    })
  )
}
Og.displayName = 'Mask'
const S$ = J({
  compatConfig: { MODE: 3 },
  name: 'MobilePopupInner',
  inheritAttrs: !1,
  props: b$,
  emits: ['mouseenter', 'mouseleave', 'mousedown', 'touchstart', 'align'],
  setup(e, t) {
    let { expose: n, slots: o } = t
    const r = ne()
    return (
      n({ forceAlign: () => {}, getElement: () => r.value }),
      () => {
        var i
        const {
            zIndex: l,
            visible: a,
            prefixCls: s,
            mobile: {
              popupClassName: u,
              popupStyle: c,
              popupMotion: d = {},
              popupRender: f
            } = {}
          } = e,
          m = p({ zIndex: l }, c)
        let g = yt(
          (i = o.default) === null || i === void 0 ? void 0 : i.call(o)
        )
        g.length > 1 && (g = v('div', { class: `${s}-content` }, [g])),
          f && (g = f(g))
        const h = oe(s, u)
        return v(Oo, N({ ref: r }, d), {
          default: () => [a ? v('div', { class: h, style: m }, [g]) : null]
        })
      }
    )
  }
})
var x$ =
  (globalThis && globalThis.__awaiter) ||
  function(e, t, n, o) {
    function r(i) {
      return i instanceof n
        ? i
        : new n(function(l) {
            l(i)
          })
    }
    return new (n || (n = Promise))(function(i, l) {
      function a(c) {
        try {
          u(o.next(c))
        } catch (d) {
          l(d)
        }
      }
      function s(c) {
        try {
          u(o.throw(c))
        } catch (d) {
          l(d)
        }
      }
      function u(c) {
        c.done ? i(c.value) : r(c.value).then(a, s)
      }
      u((o = o.apply(e, t || [])).next())
    })
  }
const Vd = ['measure', 'align', null, 'motion'],
  C$ = (e, t) => {
    const n = V(null),
      o = V(),
      r = V(!1)
    function i(s) {
      r.value || (n.value = s)
    }
    function l() {
      He.cancel(o.value)
    }
    function a(s) {
      l(),
        (o.value = He(() => {
          let u = n.value
          switch (n.value) {
            case 'align':
              u = 'motion'
              break
            case 'motion':
              u = 'stable'
              break
          }
          i(u), s == null || s()
        }))
    }
    return (
      ge(
        e,
        () => {
          i('measure')
        },
        { immediate: !0, flush: 'post' }
      ),
      We(() => {
        ge(
          n,
          () => {
            switch (n.value) {
              case 'measure':
                t()
                break
            }
            n.value &&
              (o.value = He(() =>
                x$(void 0, void 0, void 0, function*() {
                  const s = Vd.indexOf(n.value),
                    u = Vd[s + 1]
                  u && s !== -1 && i(u)
                })
              ))
          },
          { immediate: !0, flush: 'post' }
        )
      }),
      Qe(() => {
        ;(r.value = !0), l()
      }),
      [n, a]
    )
  },
  $$ = e => {
    const t = V({ width: 0, height: 0 })
    function n(r) {
      t.value = { width: r.offsetWidth, height: r.offsetHeight }
    }
    return [
      P(() => {
        const r = {}
        if (e.value) {
          const { width: i, height: l } = t.value
          e.value.indexOf('height') !== -1 && l
            ? (r.height = `${l}px`)
            : e.value.indexOf('minHeight') !== -1 &&
              l &&
              (r.minHeight = `${l}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 Gd(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 Ud(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? arguments[t] : {}
    t % 2
      ? Gd(Object(n), !0).forEach(function(o) {
          w$(e, o, n[o])
        })
      : Object.getOwnPropertyDescriptors
      ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
      : Gd(Object(n)).forEach(function(o) {
          Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o))
        })
  }
  return e
}
function fs(e) {
  '@babel/helpers - typeof'
  return (
    (fs =
      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
          }),
    fs(e)
  )
}
function w$(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Cr,
  O$ = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-', O: '-o-' }
function Ji() {
  if (Cr !== void 0) return Cr
  Cr = ''
  var e = document.createElement('p').style,
    t = 'Transform'
  for (var n in O$) n + t in e && (Cr = n)
  return Cr
}
function Pg() {
  return Ji() ? ''.concat(Ji(), 'TransitionProperty') : 'transitionProperty'
}
function $l() {
  return Ji() ? ''.concat(Ji(), 'Transform') : 'transform'
}
function Xd(e, t) {
  var n = Pg()
  n &&
    ((e.style[n] = t),
    n !== 'transitionProperty' && (e.style.transitionProperty = t))
}
function da(e, t) {
  var n = $l()
  n && ((e.style[n] = t), n !== 'transform' && (e.style.transform = t))
}
function P$(e) {
  return e.style.transitionProperty || e.style[Pg()]
}
function T$(e) {
  var t = window.getComputedStyle(e, null),
    n = t.getPropertyValue('transform') || t.getPropertyValue($l())
  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 I$ = /matrix\((.*)\)/,
  E$ = /matrix3d\((.*)\)/
function _$(e, t) {
  var n = window.getComputedStyle(e, null),
    o = n.getPropertyValue('transform') || n.getPropertyValue($l())
  if (o && o !== 'none') {
    var r,
      i = o.match(I$)
    if (i)
      (i = i[1]),
        (r = i.split(',').map(function(a) {
          return parseFloat(a, 10)
        })),
        (r[4] = t.x),
        (r[5] = t.y),
        da(e, 'matrix('.concat(r.join(','), ')'))
    else {
      var l = o.match(E$)[1]
      ;(r = l.split(',').map(function(a) {
        return parseFloat(a, 10)
      })),
        (r[12] = t.x),
        (r[13] = t.y),
        da(e, 'matrix3d('.concat(r.join(','), ')'))
    }
  } else
    da(
      e,
      'translateX('
        .concat(t.x, 'px) translateY(')
        .concat(t.y, 'px) translateZ(0)')
    )
}
var R$ = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
  Zr
function qd(e) {
  var t = e.style.display
  ;(e.style.display = 'none'), e.offsetHeight, (e.style.display = t)
}
function ko(e, t, n) {
  var o = n
  if (fs(t) === 'object') {
    for (var r in t) t.hasOwnProperty(r) && ko(e, r, t[r])
    return
  }
  if (typeof o < 'u') {
    typeof o == 'number' && (o = ''.concat(o, 'px')), (e.style[t] = o)
    return
  }
  return Zr(e, t)
}
function A$(e) {
  var t,
    n,
    o,
    r = e.ownerDocument,
    i = r.body,
    l = r && r.documentElement
  return (
    (t = e.getBoundingClientRect()),
    (n = Math.floor(t.left)),
    (o = Math.floor(t.top)),
    (n -= l.clientLeft || i.clientLeft || 0),
    (o -= l.clientTop || i.clientTop || 0),
    { left: n, top: o }
  )
}
function Tg(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 Ig(e) {
  return Tg(e)
}
function Eg(e) {
  return Tg(e, !0)
}
function Gr(e) {
  var t = A$(e),
    n = e.ownerDocument,
    o = n.defaultView || n.parentWindow
  return (t.left += Ig(o)), (t.top += Eg(o)), t
}
function _c(e) {
  return e != null && e == e.window
}
function _g(e) {
  return _c(e) ? e.document : e.nodeType === 9 ? e : e.ownerDocument
}
function D$(e, t, n) {
  var o = n,
    r = '',
    i = _g(e)
  return (
    (o = o || i.defaultView.getComputedStyle(e, null)),
    o && (r = o.getPropertyValue(t) || o[t]),
    r
  )
}
var M$ = new RegExp('^('.concat(R$, ')(?!px)[a-z%]+$'), 'i'),
  N$ = /^(top|right|bottom|left)$/,
  fa = 'currentStyle',
  pa = 'runtimeStyle',
  Jn = 'left',
  B$ = 'px'
function z$(e, t) {
  var n = e[fa] && e[fa][t]
  if (M$.test(n) && !N$.test(t)) {
    var o = e.style,
      r = o[Jn],
      i = e[pa][Jn]
    ;(e[pa][Jn] = e[fa][Jn]),
      (o[Jn] = t === 'fontSize' ? '1em' : n || 0),
      (n = o.pixelLeft + B$),
      (o[Jn] = r),
      (e[pa][Jn] = i)
  }
  return n === '' ? 'auto' : n
}
typeof window < 'u' && (Zr = window.getComputedStyle ? D$ : z$)
function gi(e, t) {
  return e === 'left'
    ? t.useCssRight
      ? 'right'
      : e
    : t.useCssBottom
    ? 'bottom'
    : e
}
function Yd(e) {
  if (e === 'left') return 'right'
  if (e === 'right') return 'left'
  if (e === 'top') return 'bottom'
  if (e === 'bottom') return 'top'
}
function Jd(e, t, n) {
  ko(e, 'position') === 'static' && (e.style.position = 'relative')
  var o = -999,
    r = -999,
    i = gi('left', n),
    l = gi('top', n),
    a = Yd(i),
    s = Yd(l)
  i !== 'left' && (o = 999), l !== 'top' && (r = 999)
  var u = '',
    c = Gr(e)
  ;('left' in t || 'top' in t) && ((u = P$(e) || ''), Xd(e, 'none')),
    'left' in t && ((e.style[a] = ''), (e.style[i] = ''.concat(o, 'px'))),
    'top' in t && ((e.style[s] = ''), (e.style[l] = ''.concat(r, 'px'))),
    qd(e)
  var d = Gr(e),
    f = {}
  for (var m in t)
    if (t.hasOwnProperty(m)) {
      var g = gi(m, n),
        h = m === 'left' ? o : r,
        b = c[m] - d[m]
      g === m ? (f[g] = h + b) : (f[g] = h - b)
    }
  ko(e, f), qd(e), ('left' in t || 'top' in t) && Xd(e, u)
  var S = {}
  for (var C in t)
    if (t.hasOwnProperty(C)) {
      var $ = gi(C, n),
        O = t[C] - c[C]
      C === $ ? (S[$] = f[$] + O) : (S[$] = f[$] - O)
    }
  ko(e, S)
}
function L$(e, t) {
  var n = Gr(e),
    o = T$(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),
    _$(e, r)
}
function F$(e, t, n) {
  if (n.ignoreShake) {
    var o = Gr(e),
      r = o.left.toFixed(0),
      i = o.top.toFixed(0),
      l = t.left.toFixed(0),
      a = t.top.toFixed(0)
    if (r === l && i === a) return
  }
  n.useCssRight || n.useCssBottom
    ? Jd(e, t, n)
    : n.useCssTransform && $l() in document.body.style
    ? L$(e, t)
    : Jd(e, t, n)
}
function Rc(e, t) {
  for (var n = 0; n < e.length; n++) t(e[n])
}
function Rg(e) {
  return Zr(e, 'boxSizing') === 'border-box'
}
var H$ = ['margin', 'border', 'padding'],
  ps = -1,
  k$ = 2,
  vs = 1,
  j$ = 0
function K$(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 Pr(e, t, n) {
  var o = 0,
    r,
    i,
    l
  for (i = 0; i < t.length; i++)
    if (((r = t[i]), r))
      for (l = 0; l < n.length; l++) {
        var a = void 0
        r === 'border'
          ? (a = ''.concat(r).concat(n[l], 'Width'))
          : (a = r + n[l]),
          (o += parseFloat(Zr(e, a)) || 0)
      }
  return o
}
var pn = {
  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
  }
}
Rc(['Width', 'Height'], function(e) {
  ;(pn['doc'.concat(e)] = function(t) {
    var n = t.document
    return Math.max(
      n.documentElement['scroll'.concat(e)],
      n.body['scroll'.concat(e)],
      pn['viewport'.concat(e)](n)
    )
  }),
    (pn['viewport'.concat(e)] = function(t) {
      var n = 'client'.concat(e),
        o = t.document,
        r = o.body,
        i = o.documentElement,
        l = i[n]
      return (o.compatMode === 'CSS1Compat' && l) || (r && r[n]) || l
    })
})
function Qd(e, t, n) {
  var o = n
  if (_c(e)) return t === 'width' ? pn.viewportWidth(e) : pn.viewportHeight(e)
  if (e.nodeType === 9) return t === 'width' ? pn.docWidth(e) : pn.docHeight(e)
  var r = t === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'],
    i = Math.floor(
      t === 'width'
        ? e.getBoundingClientRect().width
        : e.getBoundingClientRect().height
    ),
    l = Rg(e),
    a = 0
  ;(i == null || i <= 0) &&
    ((i = void 0),
    (a = Zr(e, t)),
    (a == null || Number(a) < 0) && (a = e.style[t] || 0),
    (a = Math.floor(parseFloat(a)) || 0)),
    o === void 0 && (o = l ? vs : ps)
  var s = i !== void 0 || l,
    u = i || a
  return o === ps
    ? s
      ? u - Pr(e, ['border', 'padding'], r)
      : a
    : s
    ? o === vs
      ? u
      : u + (o === k$ ? -Pr(e, ['border'], r) : Pr(e, ['margin'], r))
    : a + Pr(e, H$.slice(o), r)
}
var W$ = { position: 'absolute', visibility: 'hidden', display: 'block' }
function Zd() {
  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 = Qd.apply(void 0, t))
      : K$(r, W$, function() {
          o = Qd.apply(void 0, t)
        }),
    o
  )
}
Rc(['width', 'height'], function(e) {
  var t = e.charAt(0).toUpperCase() + e.slice(1)
  pn['outer'.concat(t)] = function(o, r) {
    return o && Zd(o, e, r ? j$ : vs)
  }
  var n = e === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']
  pn[e] = function(o, r) {
    var i = r
    if (i !== void 0) {
      if (o) {
        var l = Rg(o)
        return l && (i += Pr(o, ['padding', 'border'], n)), ko(o, e, i)
      }
      return
    }
    return o && Zd(o, e, ps)
  }
})
function Ag(e, t) {
  for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n])
  return e
}
var Fe = {
  getWindow: function(t) {
    if (t && t.document && t.setTimeout) return t
    var n = t.ownerDocument || t
    return n.defaultView || n.parentWindow
  },
  getDocument: _g,
  offset: function(t, n, o) {
    if (typeof n < 'u') F$(t, n, o || {})
    else return Gr(t)
  },
  isWindow: _c,
  each: Rc,
  css: ko,
  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: Ag,
  getWindowScrollLeft: function(t) {
    return Ig(t)
  },
  getWindowScrollTop: function(t) {
    return Eg(t)
  },
  merge: function() {
    for (var t = {}, n = 0; n < arguments.length; n++)
      Fe.mix(t, n < 0 || arguments.length <= n ? void 0 : arguments[n])
    return t
  },
  viewportWidth: 0,
  viewportHeight: 0
}
Ag(Fe, pn)
var va = Fe.getParent
function ms(e) {
  if (Fe.isWindow(e) || e.nodeType === 9) return null
  var t = Fe.getDocument(e),
    n = t.body,
    o,
    r = Fe.css(e, 'position'),
    i = r === 'fixed' || r === 'absolute'
  if (!i) return e.nodeName.toLowerCase() === 'html' ? null : va(e)
  for (o = va(e); o && o !== n && o.nodeType !== 9; o = va(o))
    if (((r = Fe.css(o, 'position')), r !== 'static')) return o
  return null
}
var ef = Fe.getParent
function V$(e) {
  if (Fe.isWindow(e) || e.nodeType === 9) return !1
  var t = Fe.getDocument(e),
    n = t.body,
    o = null
  for (o = ef(e); o && o !== n && o !== t; o = ef(o)) {
    var r = Fe.css(o, 'position')
    if (r === 'fixed') return !0
  }
  return !1
}
function Ac(e, t) {
  for (
    var n = { left: 0, right: 1 / 0, top: 0, bottom: 1 / 0 },
      o = ms(e),
      r = Fe.getDocument(e),
      i = r.defaultView || r.parentWindow,
      l = r.body,
      a = r.documentElement;
    o;

  ) {
    if (
      (navigator.userAgent.indexOf('MSIE') === -1 || o.clientWidth !== 0) &&
      o !== l &&
      o !== a &&
      Fe.css(o, 'overflow') !== 'visible'
    ) {
      var s = Fe.offset(o)
      ;(s.left += o.clientLeft),
        (s.top += o.clientTop),
        (n.top = Math.max(n.top, s.top)),
        (n.right = Math.min(n.right, 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 === l || o === a) break
    o = ms(o)
  }
  var u = null
  if (!Fe.isWindow(e) && e.nodeType !== 9) {
    u = e.style.position
    var c = Fe.css(e, 'position')
    c === 'absolute' && (e.style.position = 'fixed')
  }
  var d = Fe.getWindowScrollLeft(i),
    f = Fe.getWindowScrollTop(i),
    m = Fe.viewportWidth(i),
    g = Fe.viewportHeight(i),
    h = a.scrollWidth,
    b = a.scrollHeight,
    S = window.getComputedStyle(l)
  if (
    (S.overflowX === 'hidden' && (h = i.innerWidth),
    S.overflowY === 'hidden' && (b = i.innerHeight),
    e.style && (e.style.position = u),
    t || V$(e))
  )
    (n.left = Math.max(n.left, d)),
      (n.top = Math.max(n.top, f)),
      (n.right = Math.min(n.right, d + m)),
      (n.bottom = Math.min(n.bottom, f + g))
  else {
    var C = Math.max(h, d + m)
    n.right = Math.min(n.right, C)
    var $ = Math.max(b, f + g)
    n.bottom = Math.min(n.bottom, $)
  }
  return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left
    ? n
    : null
}
function G$(e, t, n, o) {
  var r = Fe.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)),
    Fe.mix(r, i)
  )
}
function Dc(e) {
  var t, n, o
  if (!Fe.isWindow(e) && e.nodeType !== 9)
    (t = Fe.offset(e)), (n = Fe.outerWidth(e)), (o = Fe.outerHeight(e))
  else {
    var r = Fe.getWindow(e)
    ;(t = { left: Fe.getWindowScrollLeft(r), top: Fe.getWindowScrollTop(r) }),
      (n = Fe.viewportWidth(r)),
      (o = Fe.viewportHeight(r))
  }
  return (t.width = n), (t.height = o), t
}
function tf(e, t) {
  var n = t.charAt(0),
    o = t.charAt(1),
    r = e.width,
    i = e.height,
    l = e.left,
    a = e.top
  return (
    n === 'c' ? (a += i / 2) : n === 'b' && (a += i),
    o === 'c' ? (l += r / 2) : o === 'r' && (l += r),
    { left: l, top: a }
  )
}
function hi(e, t, n, o, r) {
  var i = tf(t, n[1]),
    l = tf(e, n[0]),
    a = [l.left - i.left, l.top - i.top]
  return {
    left: Math.round(e.left - a[0] + o[0] - r[0]),
    top: Math.round(e.top - a[1] + o[1] - r[1])
  }
}
function nf(e, t, n) {
  return e.left < n.left || e.left + t.width > n.right
}
function of(e, t, n) {
  return e.top < n.top || e.top + t.height > n.bottom
}
function U$(e, t, n) {
  return e.left > n.right || e.left + t.width < n.left
}
function X$(e, t, n) {
  return e.top > n.bottom || e.top + t.height < n.top
}
function bi(e, t, n) {
  var o = []
  return (
    Fe.each(e, function(r) {
      o.push(
        r.replace(t, function(i) {
          return n[i]
        })
      )
    }),
    o
  )
}
function yi(e, t) {
  return (e[t] = -e[t]), e
}
function rf(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 lf(e, t) {
  ;(e[0] = rf(e[0], t.width)), (e[1] = rf(e[1], t.height))
}
function Dg(e, t, n, o) {
  var r = n.points,
    i = n.offset || [0, 0],
    l = n.targetOffset || [0, 0],
    a = n.overflow,
    s = n.source || e
  ;(i = [].concat(i)), (l = [].concat(l)), (a = a || {})
  var u = {},
    c = 0,
    d = !!(a && a.alwaysByViewport),
    f = Ac(s, d),
    m = Dc(s)
  lf(i, m), lf(l, t)
  var g = hi(m, t, r, i, l),
    h = Fe.merge(m, g)
  if (f && (a.adjustX || a.adjustY) && o) {
    if (a.adjustX && nf(g, m, f)) {
      var b = bi(r, /[lr]/gi, { l: 'r', r: 'l' }),
        S = yi(i, 0),
        C = yi(l, 0),
        $ = hi(m, t, b, S, C)
      U$($, m, f) || ((c = 1), (r = b), (i = S), (l = C))
    }
    if (a.adjustY && of(g, m, f)) {
      var O = bi(r, /[tb]/gi, { t: 'b', b: 't' }),
        x = yi(i, 1),
        w = yi(l, 1),
        y = hi(m, t, O, x, w)
      X$(y, m, f) || ((c = 1), (r = O), (i = x), (l = w))
    }
    c && ((g = hi(m, t, r, i, l)), Fe.mix(h, g))
    var T = nf(g, m, f),
      I = of(g, m, f)
    if (T || I) {
      var _ = r
      T && (_ = bi(r, /[lr]/gi, { l: 'r', r: 'l' })),
        I && (_ = bi(r, /[tb]/gi, { t: 'b', b: 't' })),
        (r = _),
        (i = n.offset || [0, 0]),
        (l = n.targetOffset || [0, 0])
    }
    ;(u.adjustX = a.adjustX && T),
      (u.adjustY = a.adjustY && I),
      (u.adjustX || u.adjustY) && (h = G$(g, m, f, u))
  }
  return (
    h.width !== m.width && Fe.css(s, 'width', Fe.width(s) + h.width - m.width),
    h.height !== m.height &&
      Fe.css(s, 'height', Fe.height(s) + h.height - m.height),
    Fe.offset(
      s,
      { left: h.left, top: h.top },
      {
        useCssRight: n.useCssRight,
        useCssBottom: n.useCssBottom,
        useCssTransform: n.useCssTransform,
        ignoreShake: n.ignoreShake
      }
    ),
    { points: r, offset: i, targetOffset: l, overflow: u }
  )
}
function q$(e, t) {
  var n = Ac(e, t),
    o = Dc(e)
  return (
    !n ||
    o.left + o.width <= n.left ||
    o.top + o.height <= n.top ||
    o.left >= n.right ||
    o.top >= n.bottom
  )
}
function Mc(e, t, n) {
  var o = n.target || t,
    r = Dc(o),
    i = !q$(o, n.overflow && n.overflow.alwaysByViewport)
  return Dg(e, r, n, i)
}
Mc.__getOffsetParent = ms
Mc.__getVisibleRectForElement = Ac
function Y$(e, t, n) {
  var o,
    r,
    i = Fe.getDocument(e),
    l = i.defaultView || i.parentWindow,
    a = Fe.getWindowScrollLeft(l),
    s = Fe.getWindowScrollTop(l),
    u = Fe.viewportWidth(l),
    c = Fe.viewportHeight(l)
  'pageX' in t ? (o = t.pageX) : (o = a + 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 <= a + u && r >= 0 && r <= s + c,
    m = [n.points[0], 'cc']
  return Dg(e, d, Ud(Ud({}, n), {}, { points: m }), f)
}
function ft(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 = Tt(e)[0]), !r)) return null
  const i = vo(r, t, o)
  return (
    (i.props = n ? p(p({}, i.props), t) : i.props),
    kt(typeof i.props.class != 'object'),
    i
  )
}
function J$(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
    n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0
  return e.map(o => ft(o, t, n))
}
function Oj(e, t, n) {
  Qo(vo(e, p({}, t)), n)
}
const Mg = e =>
  (e || []).some(t =>
    Mt(t) ? !(t.type === mm || (t.type === nt && !Mg(t.children))) : !0
  )
    ? e
    : null
function wl(e, t, n, o) {
  var r
  const i = (r = e[t]) === null || r === void 0 ? void 0 : r.call(e, n)
  return Mg(i) ? i : o == null ? void 0 : o()
}
const Nc = 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 Q$(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 Z$(e, t) {
  e !== document.activeElement &&
    oo(t, e) &&
    typeof e.focus == 'function' &&
    e.focus()
}
function af(e, t) {
  let n = null,
    o = null
  function r(l) {
    let [{ target: a }] = l
    if (!document.documentElement.contains(a)) return
    const { width: s, height: u } = a.getBoundingClientRect(),
      c = Math.floor(s),
      d = Math.floor(u)
    ;(n !== c || o !== d) &&
      Promise.resolve().then(() => {
        t({ width: c, height: d })
      }),
      (n = c),
      (o = d)
  }
  const i = new Om(r)
  return (
    e && i.observe(e),
    () => {
      i.disconnect()
    }
  )
}
const ew = (e, t) => {
  let n = !1,
    o = null
  function r() {
    clearTimeout(o)
  }
  function i(l) {
    if (!n || l === !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 tw() {
  ;(this.__data__ = []), (this.size = 0)
}
function Bc(e, t) {
  return e === t || (e !== e && t !== t)
}
function Ol(e, t) {
  for (var n = e.length; n--; ) if (Bc(e[n][0], t)) return n
  return -1
}
var nw = Array.prototype,
  ow = nw.splice
function rw(e) {
  var t = this.__data__,
    n = Ol(t, e)
  if (n < 0) return !1
  var o = t.length - 1
  return n == o ? t.pop() : ow.call(t, n, 1), --this.size, !0
}
function iw(e) {
  var t = this.__data__,
    n = Ol(t, e)
  return n < 0 ? void 0 : t[n][1]
}
function lw(e) {
  return Ol(this.__data__, e) > -1
}
function aw(e, t) {
  var n = this.__data__,
    o = Ol(n, e)
  return o < 0 ? (++this.size, n.push([e, t])) : (n[o][1] = t), this
}
function Dn(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])
  }
}
Dn.prototype.clear = tw
Dn.prototype.delete = rw
Dn.prototype.get = iw
Dn.prototype.has = lw
Dn.prototype.set = aw
function sw() {
  ;(this.__data__ = new Dn()), (this.size = 0)
}
function cw(e) {
  var t = this.__data__,
    n = t.delete(e)
  return (this.size = t.size), n
}
function uw(e) {
  return this.__data__.get(e)
}
function dw(e) {
  return this.__data__.has(e)
}
var fw =
  typeof global == 'object' && global && global.Object === Object && global
const Ng = fw
var pw = typeof self == 'object' && self && self.Object === Object && self,
  vw = Ng || pw || Function('return this')()
const bn = vw
var mw = bn.Symbol
const gn = mw
var Bg = Object.prototype,
  gw = Bg.hasOwnProperty,
  hw = Bg.toString,
  $r = gn ? gn.toStringTag : void 0
function bw(e) {
  var t = gw.call(e, $r),
    n = e[$r]
  try {
    e[$r] = void 0
    var o = !0
  } catch {}
  var r = hw.call(e)
  return o && (t ? (e[$r] = n) : delete e[$r]), r
}
var yw = Object.prototype,
  Sw = yw.toString
function xw(e) {
  return Sw.call(e)
}
var Cw = '[object Null]',
  $w = '[object Undefined]',
  sf = gn ? gn.toStringTag : void 0
function Io(e) {
  return e == null
    ? e === void 0
      ? $w
      : Cw
    : sf && sf in Object(e)
    ? bw(e)
    : xw(e)
}
function ho(e) {
  var t = typeof e
  return e != null && (t == 'object' || t == 'function')
}
var ww = '[object AsyncFunction]',
  Ow = '[object Function]',
  Pw = '[object GeneratorFunction]',
  Tw = '[object Proxy]'
function zg(e) {
  if (!ho(e)) return !1
  var t = Io(e)
  return t == Ow || t == Pw || t == ww || t == Tw
}
var Iw = bn['__core-js_shared__']
const ma = Iw
var cf = (function() {
  var e = /[^.]+$/.exec((ma && ma.keys && ma.keys.IE_PROTO) || '')
  return e ? 'Symbol(src)_1.' + e : ''
})()
function Ew(e) {
  return !!cf && cf in e
}
var _w = Function.prototype,
  Rw = _w.toString
function Eo(e) {
  if (e != null) {
    try {
      return Rw.call(e)
    } catch {}
    try {
      return e + ''
    } catch {}
  }
  return ''
}
var Aw = /[\\^$.*+?()[\]{}|]/g,
  Dw = /^\[object .+?Constructor\]$/,
  Mw = Function.prototype,
  Nw = Object.prototype,
  Bw = Mw.toString,
  zw = Nw.hasOwnProperty,
  Lw = RegExp(
    '^' +
      Bw.call(zw)
        .replace(Aw, '\\$&')
        .replace(
          /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
          '$1.*?'
        ) +
      '$'
  )
function Fw(e) {
  if (!ho(e) || Ew(e)) return !1
  var t = zg(e) ? Lw : Dw
  return t.test(Eo(e))
}
function Hw(e, t) {
  return e == null ? void 0 : e[t]
}
function _o(e, t) {
  var n = Hw(e, t)
  return Fw(n) ? n : void 0
}
var kw = _o(bn, 'Map')
const Ur = kw
var jw = _o(Object, 'create')
const Xr = jw
function Kw() {
  ;(this.__data__ = Xr ? Xr(null) : {}), (this.size = 0)
}
function Ww(e) {
  var t = this.has(e) && delete this.__data__[e]
  return (this.size -= t ? 1 : 0), t
}
var Vw = '__lodash_hash_undefined__',
  Gw = Object.prototype,
  Uw = Gw.hasOwnProperty
function Xw(e) {
  var t = this.__data__
  if (Xr) {
    var n = t[e]
    return n === Vw ? void 0 : n
  }
  return Uw.call(t, e) ? t[e] : void 0
}
var qw = Object.prototype,
  Yw = qw.hasOwnProperty
function Jw(e) {
  var t = this.__data__
  return Xr ? t[e] !== void 0 : Yw.call(t, e)
}
var Qw = '__lodash_hash_undefined__'
function Zw(e, t) {
  var n = this.__data__
  return (
    (this.size += this.has(e) ? 0 : 1),
    (n[e] = Xr && t === void 0 ? Qw : t),
    this
  )
}
function bo(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])
  }
}
bo.prototype.clear = Kw
bo.prototype.delete = Ww
bo.prototype.get = Xw
bo.prototype.has = Jw
bo.prototype.set = Zw
function eO() {
  ;(this.size = 0),
    (this.__data__ = {
      hash: new bo(),
      map: new (Ur || Dn)(),
      string: new bo()
    })
}
function tO(e) {
  var t = typeof e
  return t == 'string' || t == 'number' || t == 'symbol' || t == 'boolean'
    ? e !== '__proto__'
    : e === null
}
function Pl(e, t) {
  var n = e.__data__
  return tO(t) ? n[typeof t == 'string' ? 'string' : 'hash'] : n.map
}
function nO(e) {
  var t = Pl(this, e).delete(e)
  return (this.size -= t ? 1 : 0), t
}
function oO(e) {
  return Pl(this, e).get(e)
}
function rO(e) {
  return Pl(this, e).has(e)
}
function iO(e, t) {
  var n = Pl(this, e),
    o = n.size
  return n.set(e, t), (this.size += n.size == o ? 0 : 1), this
}
function Mn(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])
  }
}
Mn.prototype.clear = eO
Mn.prototype.delete = nO
Mn.prototype.get = oO
Mn.prototype.has = rO
Mn.prototype.set = iO
var lO = 200
function aO(e, t) {
  var n = this.__data__
  if (n instanceof Dn) {
    var o = n.__data__
    if (!Ur || o.length < lO - 1)
      return o.push([e, t]), (this.size = ++n.size), this
    n = this.__data__ = new Mn(o)
  }
  return n.set(e, t), (this.size = n.size), this
}
function Hn(e) {
  var t = (this.__data__ = new Dn(e))
  this.size = t.size
}
Hn.prototype.clear = sw
Hn.prototype.delete = cw
Hn.prototype.get = uw
Hn.prototype.has = dw
Hn.prototype.set = aO
var sO = '__lodash_hash_undefined__'
function cO(e) {
  return this.__data__.set(e, sO), this
}
function uO(e) {
  return this.__data__.has(e)
}
function qr(e) {
  var t = -1,
    n = e == null ? 0 : e.length
  for (this.__data__ = new Mn(); ++t < n; ) this.add(e[t])
}
qr.prototype.add = qr.prototype.push = cO
qr.prototype.has = uO
function dO(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 Lg(e, t) {
  return e.has(t)
}
var fO = 1,
  pO = 2
function Fg(e, t, n, o, r, i) {
  var l = n & fO,
    a = e.length,
    s = t.length
  if (a != s && !(l && s > a)) return !1
  var u = i.get(e),
    c = i.get(t)
  if (u && c) return u == t && c == e
  var d = -1,
    f = !0,
    m = n & pO ? new qr() : void 0
  for (i.set(e, t), i.set(t, e); ++d < a; ) {
    var g = e[d],
      h = t[d]
    if (o) var b = l ? o(h, g, d, t, e, i) : o(g, h, d, e, t, i)
    if (b !== void 0) {
      if (b) continue
      f = !1
      break
    }
    if (m) {
      if (
        !dO(t, function(S, C) {
          if (!Lg(m, C) && (g === S || r(g, S, n, o, i))) return m.push(C)
        })
      ) {
        f = !1
        break
      }
    } else if (!(g === h || r(g, h, n, o, i))) {
      f = !1
      break
    }
  }
  return i.delete(e), i.delete(t), f
}
var vO = bn.Uint8Array
const uf = vO
function mO(e) {
  var t = -1,
    n = Array(e.size)
  return (
    e.forEach(function(o, r) {
      n[++t] = [r, o]
    }),
    n
  )
}
function zc(e) {
  var t = -1,
    n = Array(e.size)
  return (
    e.forEach(function(o) {
      n[++t] = o
    }),
    n
  )
}
var gO = 1,
  hO = 2,
  bO = '[object Boolean]',
  yO = '[object Date]',
  SO = '[object Error]',
  xO = '[object Map]',
  CO = '[object Number]',
  $O = '[object RegExp]',
  wO = '[object Set]',
  OO = '[object String]',
  PO = '[object Symbol]',
  TO = '[object ArrayBuffer]',
  IO = '[object DataView]',
  df = gn ? gn.prototype : void 0,
  ga = df ? df.valueOf : void 0
function EO(e, t, n, o, r, i, l) {
  switch (n) {
    case IO:
      if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
        return !1
      ;(e = e.buffer), (t = t.buffer)
    case TO:
      return !(e.byteLength != t.byteLength || !i(new uf(e), new uf(t)))
    case bO:
    case yO:
    case CO:
      return Bc(+e, +t)
    case SO:
      return e.name == t.name && e.message == t.message
    case $O:
    case OO:
      return e == t + ''
    case xO:
      var a = mO
    case wO:
      var s = o & gO
      if ((a || (a = zc), e.size != t.size && !s)) return !1
      var u = l.get(e)
      if (u) return u == t
      ;(o |= hO), l.set(e, t)
      var c = Fg(a(e), a(t), o, r, i, l)
      return l.delete(e), c
    case PO:
      if (ga) return ga.call(e) == ga.call(t)
  }
  return !1
}
function Hg(e, t) {
  for (var n = -1, o = t.length, r = e.length; ++n < o; ) e[r + n] = t[n]
  return e
}
var _O = Array.isArray
const hn = _O
function RO(e, t, n) {
  var o = t(e)
  return hn(e) ? o : Hg(o, n(e))
}
function AO(e, t) {
  for (var n = -1, o = e == null ? 0 : e.length, r = 0, i = []; ++n < o; ) {
    var l = e[n]
    t(l, n, e) && (i[r++] = l)
  }
  return i
}
function DO() {
  return []
}
var MO = Object.prototype,
  NO = MO.propertyIsEnumerable,
  ff = Object.getOwnPropertySymbols,
  BO = ff
    ? function(e) {
        return e == null
          ? []
          : ((e = Object(e)),
            AO(ff(e), function(t) {
              return NO.call(e, t)
            }))
      }
    : DO
const zO = BO
function LO(e, t) {
  for (var n = -1, o = Array(e); ++n < e; ) o[n] = t(n)
  return o
}
function yo(e) {
  return e != null && typeof e == 'object'
}
var FO = '[object Arguments]'
function pf(e) {
  return yo(e) && Io(e) == FO
}
var kg = Object.prototype,
  HO = kg.hasOwnProperty,
  kO = kg.propertyIsEnumerable,
  jO = pf(
    (function() {
      return arguments
    })()
  )
    ? pf
    : function(e) {
        return yo(e) && HO.call(e, 'callee') && !kO.call(e, 'callee')
      }
const Tl = jO
function KO() {
  return !1
}
var jg = typeof exports == 'object' && exports && !exports.nodeType && exports,
  vf = jg && typeof module == 'object' && module && !module.nodeType && module,
  WO = vf && vf.exports === jg,
  mf = WO ? bn.Buffer : void 0,
  VO = mf ? mf.isBuffer : void 0,
  GO = VO || KO
const Qi = GO
var UO = 9007199254740991,
  XO = /^(?:0|[1-9]\d*)$/
function Lc(e, t) {
  var n = typeof e
  return (
    (t = t ?? UO),
    !!t &&
      (n == 'number' || (n != 'symbol' && XO.test(e))) &&
      e > -1 &&
      e % 1 == 0 &&
      e < t
  )
}
var qO = 9007199254740991
function Fc(e) {
  return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= qO
}
var YO = '[object Arguments]',
  JO = '[object Array]',
  QO = '[object Boolean]',
  ZO = '[object Date]',
  eP = '[object Error]',
  tP = '[object Function]',
  nP = '[object Map]',
  oP = '[object Number]',
  rP = '[object Object]',
  iP = '[object RegExp]',
  lP = '[object Set]',
  aP = '[object String]',
  sP = '[object WeakMap]',
  cP = '[object ArrayBuffer]',
  uP = '[object DataView]',
  dP = '[object Float32Array]',
  fP = '[object Float64Array]',
  pP = '[object Int8Array]',
  vP = '[object Int16Array]',
  mP = '[object Int32Array]',
  gP = '[object Uint8Array]',
  hP = '[object Uint8ClampedArray]',
  bP = '[object Uint16Array]',
  yP = '[object Uint32Array]',
  st = {}
st[dP] = st[fP] = st[pP] = st[vP] = st[mP] = st[gP] = st[hP] = st[bP] = st[
  yP
] = !0
st[YO] = st[JO] = st[cP] = st[QO] = st[uP] = st[ZO] = st[eP] = st[tP] = st[
  nP
] = st[oP] = st[rP] = st[iP] = st[lP] = st[aP] = st[sP] = !1
function SP(e) {
  return yo(e) && Fc(e.length) && !!st[Io(e)]
}
function xP(e) {
  return function(t) {
    return e(t)
  }
}
var Kg = typeof exports == 'object' && exports && !exports.nodeType && exports,
  _r = Kg && typeof module == 'object' && module && !module.nodeType && module,
  CP = _r && _r.exports === Kg,
  ha = CP && Ng.process,
  $P = (function() {
    try {
      var e = _r && _r.require && _r.require('util').types
      return e || (ha && ha.binding && ha.binding('util'))
    } catch {}
  })()
const gf = $P
var hf = gf && gf.isTypedArray,
  wP = hf ? xP(hf) : SP
const Hc = wP
var OP = Object.prototype,
  PP = OP.hasOwnProperty
function TP(e, t) {
  var n = hn(e),
    o = !n && Tl(e),
    r = !n && !o && Qi(e),
    i = !n && !o && !r && Hc(e),
    l = n || o || r || i,
    a = l ? LO(e.length, String) : [],
    s = a.length
  for (var u in e)
    (t || PP.call(e, u)) &&
      !(
        l &&
        (u == 'length' ||
          (r && (u == 'offset' || u == 'parent')) ||
          (i && (u == 'buffer' || u == 'byteLength' || u == 'byteOffset')) ||
          Lc(u, s))
      ) &&
      a.push(u)
  return a
}
var IP = Object.prototype
function Wg(e) {
  var t = e && e.constructor,
    n = (typeof t == 'function' && t.prototype) || IP
  return e === n
}
function Vg(e, t) {
  return function(n) {
    return e(t(n))
  }
}
var EP = Vg(Object.keys, Object)
const _P = EP
var RP = Object.prototype,
  AP = RP.hasOwnProperty
function Gg(e) {
  if (!Wg(e)) return _P(e)
  var t = []
  for (var n in Object(e)) AP.call(e, n) && n != 'constructor' && t.push(n)
  return t
}
function Ug(e) {
  return e != null && Fc(e.length) && !zg(e)
}
function DP(e) {
  return Ug(e) ? TP(e) : Gg(e)
}
function bf(e) {
  return RO(e, DP, zO)
}
var MP = 1,
  NP = Object.prototype,
  BP = NP.hasOwnProperty
function zP(e, t, n, o, r, i) {
  var l = n & MP,
    a = bf(e),
    s = a.length,
    u = bf(t),
    c = u.length
  if (s != c && !l) return !1
  for (var d = s; d--; ) {
    var f = a[d]
    if (!(l ? f in t : BP.call(t, f))) return !1
  }
  var m = i.get(e),
    g = i.get(t)
  if (m && g) return m == t && g == e
  var h = !0
  i.set(e, t), i.set(t, e)
  for (var b = l; ++d < s; ) {
    f = a[d]
    var S = e[f],
      C = t[f]
    if (o) var $ = l ? o(C, S, f, t, e, i) : o(S, C, f, e, t, i)
    if (!($ === void 0 ? S === C || r(S, C, n, o, i) : $)) {
      h = !1
      break
    }
    b || (b = f == 'constructor')
  }
  if (h && !b) {
    var O = e.constructor,
      x = t.constructor
    O != x &&
      'constructor' in e &&
      'constructor' in t &&
      !(
        typeof O == 'function' &&
        O instanceof O &&
        typeof x == 'function' &&
        x instanceof x
      ) &&
      (h = !1)
  }
  return i.delete(e), i.delete(t), h
}
var LP = _o(bn, 'DataView')
const gs = LP
var FP = _o(bn, 'Promise')
const hs = FP
var HP = _o(bn, 'Set')
const jo = HP
var kP = _o(bn, 'WeakMap')
const bs = kP
var yf = '[object Map]',
  jP = '[object Object]',
  Sf = '[object Promise]',
  xf = '[object Set]',
  Cf = '[object WeakMap]',
  $f = '[object DataView]',
  KP = Eo(gs),
  WP = Eo(Ur),
  VP = Eo(hs),
  GP = Eo(jo),
  UP = Eo(bs),
  eo = Io
;((gs && eo(new gs(new ArrayBuffer(1))) != $f) ||
  (Ur && eo(new Ur()) != yf) ||
  (hs && eo(hs.resolve()) != Sf) ||
  (jo && eo(new jo()) != xf) ||
  (bs && eo(new bs()) != Cf)) &&
  (eo = function(e) {
    var t = Io(e),
      n = t == jP ? e.constructor : void 0,
      o = n ? Eo(n) : ''
    if (o)
      switch (o) {
        case KP:
          return $f
        case WP:
          return yf
        case VP:
          return Sf
        case GP:
          return xf
        case UP:
          return Cf
      }
    return t
  })
const ys = eo
var XP = 1,
  wf = '[object Arguments]',
  Of = '[object Array]',
  Si = '[object Object]',
  qP = Object.prototype,
  Pf = qP.hasOwnProperty
function YP(e, t, n, o, r, i) {
  var l = hn(e),
    a = hn(t),
    s = l ? Of : ys(e),
    u = a ? Of : ys(t)
  ;(s = s == wf ? Si : s), (u = u == wf ? Si : u)
  var c = s == Si,
    d = u == Si,
    f = s == u
  if (f && Qi(e)) {
    if (!Qi(t)) return !1
    ;(l = !0), (c = !1)
  }
  if (f && !c)
    return (
      i || (i = new Hn()),
      l || Hc(e) ? Fg(e, t, n, o, r, i) : EO(e, t, s, n, o, r, i)
    )
  if (!(n & XP)) {
    var m = c && Pf.call(e, '__wrapped__'),
      g = d && Pf.call(t, '__wrapped__')
    if (m || g) {
      var h = m ? e.value() : e,
        b = g ? t.value() : t
      return i || (i = new Hn()), r(h, b, n, o, i)
    }
  }
  return f ? (i || (i = new Hn()), zP(e, t, n, o, r, i)) : !1
}
function Xg(e, t, n, o, r) {
  return e === t
    ? !0
    : e == null || t == null || (!yo(e) && !yo(t))
    ? e !== e && t !== t
    : YP(e, t, n, o, Xg, r)
}
function JP(e, t) {
  return Xg(e, t)
}
const QP = {
  align: Object,
  target: [Object, Function],
  onAlign: Function,
  monitorBufferTime: Number,
  monitorWindowResize: Boolean,
  disabled: Boolean
}
function Tf(e) {
  return typeof e != 'function' ? null : e()
}
function If(e) {
  return typeof e != 'object' || !e ? null : e
}
const ZP = J({
  compatConfig: { MODE: 3 },
  name: 'Align',
  props: QP,
  emits: ['align'],
  setup(e, t) {
    let { expose: n, slots: o } = t
    const r = ne({}),
      i = ne(),
      [l, a] = ew(
        () => {
          const { disabled: f, target: m, align: g, onAlign: h } = e
          if (!f && m && i.value) {
            const b = i.value
            let S
            const C = Tf(m),
              $ = If(m)
            ;(r.value.element = C), (r.value.point = $), (r.value.align = g)
            const { activeElement: O } = document
            return (
              C && Nc(C) ? (S = Mc(b, C, g)) : $ && (S = Y$(b, $, g)),
              Z$(O, b),
              h && S && h(b, S),
              !0
            )
          }
          return !1
        },
        P(() => e.monitorBufferTime)
      ),
      s = ne({ cancel: () => {} }),
      u = ne({ cancel: () => {} }),
      c = () => {
        const f = e.target,
          m = Tf(f),
          g = If(f)
        i.value !== u.value.element &&
          (u.value.cancel(),
          (u.value.element = i.value),
          (u.value.cancel = af(i.value, l))),
          (r.value.element !== m ||
            !Q$(r.value.point, g) ||
            !JP(r.value.align, e.align)) &&
            (l(),
            s.value.element !== m &&
              (s.value.cancel(),
              (s.value.element = m),
              (s.value.cancel = af(m, l))))
      }
    We(() => {
      it(() => {
        c()
      })
    }),
      An(() => {
        it(() => {
          c()
        })
      }),
      ge(
        () => e.disabled,
        f => {
          f ? a() : l()
        },
        { immediate: !0, flush: 'post' }
      )
    const d = ne(null)
    return (
      ge(
        () => e.monitorWindowResize,
        f => {
          f
            ? d.value || (d.value = Jt(window, 'resize', l))
            : d.value && (d.value.remove(), (d.value = null))
        },
        { flush: 'post' }
      ),
      Gn(() => {
        s.value.cancel(), u.value.cancel(), d.value && d.value.remove(), a()
      }),
      n({ forceAlign: () => l(!0) }),
      () => {
        const f = o == null ? void 0 : o.default()
        return f ? ft(f[0], { ref: i }, !0, !0) : null
      }
    )
  }
})
mo('bottomLeft', 'bottomRight', 'topLeft', 'topRight')
const e1 = e =>
    e !== void 0 && (e === 'topLeft' || e === 'topRight')
      ? 'slide-down'
      : 'slide-up',
  qg = function(e) {
    let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
    return p(
      e
        ? {
            name: e,
            appear: !0,
            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
    )
  },
  Yg = function(e) {
    let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
    return p(
      e
        ? {
            name: e,
            appear: !0,
            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
    )
  },
  Il = (e, t, n) => (n !== void 0 ? n : `${e}-${t}`),
  t1 = J({
    compatConfig: { MODE: 3 },
    name: 'PopupInner',
    inheritAttrs: !1,
    props: Ic,
    emits: ['mouseenter', 'mouseleave', 'mousedown', 'touchstart', 'align'],
    setup(e, t) {
      let { expose: n, attrs: o, slots: r } = t
      const i = V(),
        l = V(),
        a = V(),
        [s, u] = $$(ot(e, 'stretch')),
        c = () => {
          e.stretch && u(e.getRootDomNode())
        },
        d = V(!1)
      let f
      ge(
        () => e.visible,
        w => {
          clearTimeout(f),
            w
              ? (f = setTimeout(() => {
                  d.value = e.visible
                }))
              : (d.value = !1)
        },
        { immediate: !0 }
      )
      const [m, g] = C$(d, c),
        h = V(),
        b = () => (e.point ? e.point : e.getRootDomNode),
        S = () => {
          var w
          ;(w = i.value) === null || w === void 0 || w.forceAlign()
        },
        C = (w, y) => {
          var T
          const I = e.getClassNameFromAlign(y),
            _ = a.value
          a.value !== I && (a.value = I),
            m.value === 'align' &&
              (_ !== I
                ? Promise.resolve().then(() => {
                    S()
                  })
                : g(() => {
                    var A
                    ;(A = h.value) === null || A === void 0 || A.call(h)
                  }),
              (T = e.onAlign) === null || T === void 0 || T.call(e, w, y))
        },
        $ = P(() => {
          const w = typeof e.animation == 'object' ? e.animation : Ec(e)
          return (
            ['onAfterEnter', 'onAfterLeave'].forEach(y => {
              const T = w[y]
              w[y] = I => {
                g(), (m.value = 'stable'), T == null || T(I)
              }
            }),
            w
          )
        }),
        O = () =>
          new Promise(w => {
            h.value = w
          })
      ge(
        [$, m],
        () => {
          !$.value && m.value === 'motion' && g()
        },
        { immediate: !0 }
      ),
        n({ forceAlign: S, getElement: () => l.value.$el || l.value })
      const x = P(() => {
        var w
        return !(
          !((w = e.align) === null || w === void 0) &&
          w.points &&
          (m.value === 'align' || m.value === 'stable')
        )
      })
      return () => {
        var w
        const {
            zIndex: y,
            align: T,
            prefixCls: I,
            destroyPopupOnHide: _,
            onMouseenter: A,
            onMouseleave: z,
            onTouchstart: M = () => {},
            onMousedown: j
          } = e,
          E = m.value,
          R = [
            p(p({}, s.value), {
              zIndex: y,
              opacity: E === 'motion' || E === 'stable' || !d.value ? null : 0,
              pointerEvents: !d.value && E !== 'stable' ? 'none' : null
            }),
            o.style
          ]
        let L = yt(
          (w = r.default) === null || w === void 0
            ? void 0
            : w.call(r, { visible: e.visible })
        )
        L.length > 1 && (L = v('div', { class: `${I}-content` }, [L]))
        const W = oe(I, o.class, a.value, !e.arrow && `${I}-arrow-hidden`),
          F = d.value || !e.visible ? qg($.value.name, $.value) : {}
        return v(Oo, N(N({ ref: l }, F), {}, { onBeforeEnter: O }), {
          default: () =>
            !_ || e.visible
              ? vl(
                  v(
                    ZP,
                    {
                      target: b(),
                      key: 'popup',
                      ref: i,
                      monitorWindowResize: !0,
                      disabled: x.value,
                      align: T,
                      onAlign: C
                    },
                    {
                      default: () =>
                        v(
                          'div',
                          {
                            class: W,
                            onMouseenter: A,
                            onMouseleave: z,
                            onMousedown: bd(j, ['capture']),
                            [Rt ? 'onTouchstartPassive' : 'onTouchstart']: bd(
                              M,
                              ['capture']
                            ),
                            style: R
                          },
                          [L]
                        )
                    }
                  ),
                  [[fc, d.value]]
                )
              : null
        })
      }
    }
  }),
  n1 = J({
    compatConfig: { MODE: 3 },
    name: 'Popup',
    inheritAttrs: !1,
    props: y$,
    setup(e, t) {
      let { attrs: n, slots: o, expose: r } = t
      const i = V(!1),
        l = V(!1),
        a = V(),
        s = V()
      return (
        ge(
          [() => e.visible, () => e.mobile],
          () => {
            ;(i.value = e.visible), e.visible && e.mobile && (l.value = !0)
          },
          { immediate: !0, flush: 'post' }
        ),
        r({
          forceAlign: () => {
            var u
            ;(u = a.value) === null || u === void 0 || u.forceAlign()
          },
          getElement: () => {
            var u
            return (u = a.value) === null || u === void 0
              ? void 0
              : u.getElement()
          }
        }),
        () => {
          const u = p(p(p({}, e), n), { visible: i.value }),
            c = l.value
              ? v(S$, N(N({}, u), {}, { mobile: e.mobile, ref: a }), {
                  default: o.default
                })
              : v(t1, N(N({}, u), {}, { ref: a }), { default: o.default })
          return v('div', { ref: s }, [v(Og, u, null), c])
        }
      )
    }
  })
function o1(e, t, n) {
  return n ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1]
}
function Ef(e, t, n) {
  const o = e[t] || {}
  return p(p({}, o), n)
}
function r1(e, t, n, o) {
  const { points: r } = n,
    i = Object.keys(e)
  for (let l = 0; l < i.length; l += 1) {
    const a = i[l]
    if (o1(e[a].points, r, o)) return `${t}-placement-${a}`
  }
  return ''
}
const Jg = {
    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(
            nx(this),
            p(p({}, this.$data), n)
          )
          if (o === null) return
          n = p(p({}, n), o || {})
        }
        p(this.$data, n),
          this._.isMounted && this.$forceUpdate(),
          it(() => {
            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))
      }
    }
  },
  Qg = Symbol('PortalContextKey'),
  Zg = function(e) {
    let t =
      arguments.length > 1 && arguments[1] !== void 0
        ? arguments[1]
        : { inTriggerContext: !0 }
    Ye(Qg, {
      inTriggerContext: t.inTriggerContext,
      shouldRender: P(() => {
        const {
          sPopupVisible: n,
          popupRef: o,
          forceRender: r,
          autoDestroy: i
        } = e || {}
        let l = !1
        return (n || o || r) && (l = !0), !n && i && (l = !1), l
      })
    })
  },
  i1 = () => {
    Zg({}, { inTriggerContext: !1 })
    const e = Ue(Qg, { shouldRender: P(() => !1), inTriggerContext: !1 })
    return {
      shouldRender: P(() => e.shouldRender.value || e.inTriggerContext === !1)
    }
  },
  eh = J({
    compatConfig: { MODE: 3 },
    name: 'Portal',
    inheritAttrs: !1,
    props: { getContainer: k.func.isRequired, didUpdate: Function },
    setup(e, t) {
      let { slots: n } = t,
        o = !0,
        r
      const { shouldRender: i } = i1()
      function l() {
        i.value && (r = e.getContainer())
      }
      T0(() => {
        ;(o = !1), l()
      }),
        We(() => {
          r || l()
        })
      const a = ge(i, () => {
        i.value && !r && (r = e.getContainer()), r && a()
      })
      return (
        An(() => {
          it(() => {
            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
              ? v(pc, { to: r }, n)
              : null
            : null
        }
      )
    }
  })
let ba
function Zi(e) {
  if (typeof document > 'u') return 0
  if (e || ba === 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), (ba = r - i)
  }
  return ba
}
function _f(e) {
  const t = e.match(/^(.*)px$/),
    n = Number(t == null ? void 0 : t[1])
  return Number.isNaN(n) ? Zi() : n
}
function l1(e) {
  if (typeof document > 'u' || !e || !(e instanceof Element))
    return { width: 0, height: 0 }
  const { width: t, height: n } = getComputedStyle(e, '::-webkit-scrollbar')
  return { width: _f(t), height: _f(n) }
}
const a1 = `vc-util-locker-${Date.now()}`
let Rf = 0
function s1() {
  return (
    document.body.scrollHeight >
      (window.innerHeight || document.documentElement.clientHeight) &&
    window.innerWidth > document.body.offsetWidth
  )
}
function c1(e) {
  const t = P(() => !!e && !!e.value)
  Rf += 1
  const n = `${a1}_${Rf}`
  Me(
    o => {
      if (Ht()) {
        if (t.value) {
          const r = Zi(),
            i = s1()
          kr(
            `
html body {
  overflow-y: hidden;
  ${i ? `width: calc(100% - ${r}px);` : ''}
}`,
            n
          )
        } else Xi(n)
        o(() => {
          Xi(n)
        })
      }
    },
    { flush: 'post' }
  )
}
let Qn = 0
const Ri = Ht(),
  Af = e => {
    if (!Ri) 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
  },
  u1 = J({
    compatConfig: { MODE: 3 },
    name: 'PortalWrapper',
    inheritAttrs: !1,
    props: {
      wrapperClassName: String,
      forceRender: { type: Boolean, default: void 0 },
      getContainer: k.any,
      visible: { type: Boolean, default: void 0 },
      autoLock: Re(),
      didUpdate: Function
    },
    setup(e, t) {
      let { slots: n } = t
      const o = V(),
        r = V(),
        i = V(),
        l = V(1),
        a = Ht() && document.createElement('div'),
        s = () => {
          var m, g
          o.value === a &&
            ((g =
              (m = o.value) === null || m === void 0
                ? void 0
                : m.parentNode) === null ||
              g === void 0 ||
              g.removeChild(o.value)),
            (o.value = null)
        }
      let u = null
      const c = function() {
          return (arguments.length > 0 && arguments[0] !== void 0
            ? arguments[0]
            : !1) ||
            (o.value && !o.value.parentNode)
            ? ((u = Af(e.getContainer)), u ? (u.appendChild(o.value), !0) : !1)
            : !0
        },
        d = () =>
          Ri ? (o.value || ((o.value = a), c(!0)), f(), o.value) : null,
        f = () => {
          const { wrapperClassName: m } = e
          o.value && m && m !== o.value.className && (o.value.className = m)
        }
      return (
        An(() => {
          f(), c()
        }),
        c1(
          P(
            () =>
              e.autoLock &&
              e.visible &&
              Ht() &&
              (o.value === document.body || o.value === a)
          )
        ),
        We(() => {
          let m = !1
          ge(
            [() => e.visible, () => e.getContainer],
            (g, h) => {
              let [b, S] = g,
                [C, $] = h
              Ri &&
                ((u = Af(e.getContainer)),
                u === document.body && (b && !C ? (Qn += 1) : m && (Qn -= 1))),
                m &&
                  (typeof S == 'function' && typeof $ == 'function'
                    ? S.toString() !== $.toString()
                    : S !== $) &&
                  s(),
                (m = !0)
            },
            { immediate: !0, flush: 'post' }
          ),
            it(() => {
              c() ||
                (i.value = He(() => {
                  l.value += 1
                }))
            })
        }),
        Qe(() => {
          const { visible: m } = e
          Ri && u === document.body && (Qn = m && Qn ? Qn - 1 : Qn),
            s(),
            He.cancel(i.value)
        }),
        () => {
          const { forceRender: m, visible: g } = e
          let h = null
          const b = { getOpenCount: () => Qn, getContainer: d }
          return (
            l.value &&
              (m || g || r.value) &&
              (h = v(
                eh,
                { getContainer: d, ref: r, didUpdate: e.didUpdate },
                {
                  default: () => {
                    var S
                    return (S = n.default) === null || S === void 0
                      ? void 0
                      : S.call(n, b)
                  }
                }
              )),
            h
          )
        }
      )
    }
  }),
  d1 = [
    'onClick',
    'onMousedown',
    'onTouchstart',
    'onMouseenter',
    'onMouseleave',
    'onFocus',
    'onBlur',
    'onContextmenu'
  ],
  El = J({
    compatConfig: { MODE: 3 },
    name: 'Trigger',
    mixins: [Jg],
    inheritAttrs: !1,
    props: h$(),
    setup(e) {
      const t = P(() => {
          const { popupPlacement: r, popupAlign: i, builtinPlacements: l } = e
          return r && l ? Ef(l, r, i) : i
        }),
        n = V(null),
        o = r => {
          n.value = r
        }
      return {
        vcTriggerContext: Ue('vcTriggerContext', {}),
        popupRef: n,
        setPopupRef: o,
        triggerRef: V(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),
        d1.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() {
      Ye('vcTriggerContext', {
        onPopupMouseDown: this.onPopupMouseDown,
        onPopupMouseenter: this.onPopupMouseenter,
        onPopupMouseleave: this.onPopupMouseleave
      }),
        Zg(this)
    },
    deactivated() {
      this.setPopupVisible(!1)
    },
    mounted() {
      this.$nextTick(() => {
        this.updatedCal()
      })
    },
    updated() {
      this.$nextTick(() => {
        this.updatedCal()
      })
    },
    beforeUnmount() {
      this.clearDelayTimer(),
        this.clearOutsideHandler(),
        clearTimeout(this.mouseDownTimeout),
        He.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 = Jt(
              n,
              'mousedown',
              this.onDocumentClick
            ))),
            this.touchOutsideHandler ||
              ((n = n || e.getDocument(this.getRootDomNode())),
              (this.touchOutsideHandler = Jt(
                n,
                'touchstart',
                this.onDocumentClick,
                Rt ? { passive: !1 } : !1
              ))),
            !this.contextmenuOutsideHandler1 &&
              this.isContextmenuToShow() &&
              ((n = n || e.getDocument(this.getRootDomNode())),
              (this.contextmenuOutsideHandler1 = Jt(
                n,
                'scroll',
                this.onContextmenuClose
              ))),
            !this.contextmenuOutsideHandler2 &&
              this.isContextmenuToShow() &&
              (this.contextmenuOutsideHandler2 = Jt(
                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 &&
          oo(
            (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) {
        oo(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()
        ;(!oo(n, t) || this.isContextMenuOnly()) &&
          !oo(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
              : Wt(this.triggerRef)
          return Wt(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
              : Wt(this.triggerRef)
          if (i) return i
        } catch {}
        return Wt(this)
      },
      handleGetPopupClassFromAlign(e) {
        const t = [],
          n = this.$props,
          {
            popupPlacement: o,
            builtinPlacements: r,
            prefixCls: i,
            alignPoint: l,
            getPopupClassNameFromAlign: a
          } = n
        return o && r && t.push(r1(r, i, e, l)), a && t.push(a(e)), t.join(' ')
      },
      getPopupAlign() {
        const e = this.$props,
          { popupPlacement: t, popupAlign: n, builtinPlacements: o } = e
        return t && o ? Ef(o, t, n) : n
      },
      getComponent() {
        const e = {}
        this.isMouseEnterToShow() && (e.onMouseenter = this.onPopupMouseenter),
          this.isMouseLeaveToHide() &&
            (e.onMouseleave = this.onPopupMouseleave),
          (e.onMousedown = this.onPopupMouseDown),
          (e[
            Rt ? 'onTouchstartPassive' : 'onTouchstart'
          ] = this.onPopupMouseDown)
        const {
            handleGetPopupClassFromAlign: t,
            getRootDomNode: n,
            $attrs: o
          } = this,
          {
            prefixCls: r,
            destroyPopupOnHide: i,
            popupClassName: l,
            popupAnimation: a,
            popupTransitionName: s,
            popupStyle: u,
            mask: c,
            maskAnimation: d,
            maskTransitionName: f,
            zIndex: m,
            stretch: g,
            alignPoint: h,
            mobile: b,
            arrow: S,
            forceRender: C
          } = this.$props,
          { sPopupVisible: $, point: O } = this.$data,
          x = p(
            p(
              {
                prefixCls: r,
                arrow: S,
                destroyPopupOnHide: i,
                visible: $,
                point: h ? O : null,
                align: this.align,
                animation: a,
                getClassNameFromAlign: t,
                stretch: g,
                getRootDomNode: n,
                mask: c,
                zIndex: m,
                transitionName: s,
                maskAnimation: d,
                maskTransitionName: f,
                class: l,
                style: u,
                onAlign: o.onPopupAlign || wg
              },
              e
            ),
            { ref: this.setPopupRef, mobile: b, forceRender: C }
          )
        return v(n1, x, {
          default: this.$slots.popup || (() => Im(this, 'popup'))
        })
      },
      attachParent(e) {
        He.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 = He(() => {
                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 &&
            (Lo(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 = Od(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 = Tt(tx(this)),
        { alignPoint: n, getPopupContainer: o } = this.$props,
        r = t[0]
      this.childOriginEvents = Od(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[
              Rt ? 'onTouchstartPassive' : 'onTouchstart'
            ] = this.onTouchstart))
          : ((i.onClick = this.createTwoChains('onClick')),
            (i.onMousedown = this.createTwoChains('onMousedown')),
            (i[
              Rt ? '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 = u => {
              u &&
                (!u.relatedTarget || !oo(u.target, u.relatedTarget)) &&
                this.createTwoChains('onBlur')(u)
            }))
      const l = oe(r && r.props && r.props.class, e.class)
      l && (i.class = l)
      const a = ft(r, p(p({}, i), { ref: 'triggerRef' }), !0, !0),
        s = v(
          u1,
          {
            key: 'portal',
            getContainer: o && (() => o(this.getRootDomNode())),
            didUpdate: this.handlePortalUpdate,
            visible: this.$data.sPopupVisible
          },
          { default: this.getComponent }
        )
      return v(nt, null, [a, s])
    }
  })
var f1 =
  (globalThis && globalThis.__rest) ||
  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 p1 = 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 }
      }
    }
  },
  v1 = J({
    name: 'SelectTrigger',
    inheritAttrs: !1,
    props: {
      dropdownAlign: Object,
      visible: { type: Boolean, default: void 0 },
      disabled: { type: Boolean, default: void 0 },
      dropdownClassName: String,
      dropdownStyle: k.object,
      placement: String,
      empty: { type: Boolean, default: void 0 },
      prefixCls: String,
      popupClassName: String,
      animation: String,
      transitionName: String,
      getPopupContainer: Function,
      dropdownRender: Function,
      containerWidth: Number,
      dropdownMatchSelectWidth: k.oneOfType([Number, Boolean]).def(!0),
      popupElement: k.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 = P(() => {
          const { dropdownMatchSelectWidth: a } = e
          return p1(a)
        }),
        l = ne()
      return (
        r({ getPopupElement: () => l.value }),
        () => {
          const a = p(p({}, e), o),
            { empty: s = !1 } = a,
            u = f1(a, ['empty']),
            {
              visible: c,
              dropdownAlign: d,
              prefixCls: f,
              popupElement: m,
              dropdownClassName: g,
              dropdownStyle: h,
              direction: b = 'ltr',
              placement: S,
              dropdownMatchSelectWidth: C,
              containerWidth: $,
              dropdownRender: O,
              animation: x,
              transitionName: w,
              getPopupContainer: y,
              getTriggerDOMNode: T,
              onPopupVisibleChange: I,
              onPopupMouseEnter: _,
              onPopupFocusin: A,
              onPopupFocusout: z
            } = u,
            M = `${f}-dropdown`
          let j = m
          O && (j = O({ menuNode: m, props: e }))
          const E = x ? `${M}-${x}` : w,
            R = p({ minWidth: `${$}px` }, h)
          return (
            typeof C == 'number'
              ? (R.width = `${C}px`)
              : C && (R.width = `${$}px`),
            v(
              El,
              N(
                N({}, e),
                {},
                {
                  showAction: I ? ['click'] : [],
                  hideAction: I ? ['click'] : [],
                  popupPlacement:
                    S || (b === 'rtl' ? 'bottomRight' : 'bottomLeft'),
                  builtinPlacements: i.value,
                  prefixCls: M,
                  popupTransitionName: E,
                  popupAlign: d,
                  popupVisible: c,
                  getPopupContainer: y,
                  popupClassName: oe(g, { [`${M}-empty`]: s }),
                  popupStyle: R,
                  getTriggerDOMNode: T,
                  onPopupVisibleChange: I
                }
              ),
              {
                default: n.default,
                popup: () =>
                  v(
                    'div',
                    { ref: l, onMouseenter: _, onFocusin: A, onFocusout: z },
                    [j]
                  )
              }
            )
          )
        }
      )
    }
  }),
  m1 = v1,
  Ae = {
    MAC_ENTER: 3,
    BACKSPACE: 8,
    TAB: 9,
    NUM_CENTER: 12,
    ENTER: 13,
    SHIFT: 16,
    CTRL: 17,
    ALT: 18,
    PAUSE: 19,
    CAPS_LOCK: 20,
    ESC: 27,
    SPACE: 32,
    PAGE_UP: 33,
    PAGE_DOWN: 34,
    END: 35,
    HOME: 36,
    LEFT: 37,
    UP: 38,
    RIGHT: 39,
    DOWN: 40,
    PRINT_SCREEN: 44,
    INSERT: 45,
    DELETE: 46,
    ZERO: 48,
    ONE: 49,
    TWO: 50,
    THREE: 51,
    FOUR: 52,
    FIVE: 53,
    SIX: 54,
    SEVEN: 55,
    EIGHT: 56,
    NINE: 57,
    QUESTION_MARK: 63,
    A: 65,
    B: 66,
    C: 67,
    D: 68,
    E: 69,
    F: 70,
    G: 71,
    H: 72,
    I: 73,
    J: 74,
    K: 75,
    L: 76,
    M: 77,
    N: 78,
    O: 79,
    P: 80,
    Q: 81,
    R: 82,
    S: 83,
    T: 84,
    U: 85,
    V: 86,
    W: 87,
    X: 88,
    Y: 89,
    Z: 90,
    META: 91,
    WIN_KEY_RIGHT: 92,
    CONTEXT_MENU: 93,
    NUM_ZERO: 96,
    NUM_ONE: 97,
    NUM_TWO: 98,
    NUM_THREE: 99,
    NUM_FOUR: 100,
    NUM_FIVE: 101,
    NUM_SIX: 102,
    NUM_SEVEN: 103,
    NUM_EIGHT: 104,
    NUM_NINE: 105,
    NUM_MULTIPLY: 106,
    NUM_PLUS: 107,
    NUM_MINUS: 109,
    NUM_PERIOD: 110,
    NUM_DIVISION: 111,
    F1: 112,
    F2: 113,
    F3: 114,
    F4: 115,
    F5: 116,
    F6: 117,
    F7: 118,
    F8: 119,
    F9: 120,
    F10: 121,
    F11: 122,
    F12: 123,
    NUMLOCK: 144,
    SEMICOLON: 186,
    DASH: 189,
    EQUALS: 187,
    COMMA: 188,
    PERIOD: 190,
    SLASH: 191,
    APOSTROPHE: 192,
    SINGLE_QUOTE: 222,
    OPEN_SQUARE_BRACKET: 219,
    BACKSLASH: 220,
    CLOSE_SQUARE_BRACKET: 221,
    WIN_KEY: 224,
    MAC_FF_META: 224,
    WIN_IME: 229,
    isTextModifyingKeyEvent: function(t) {
      const { keyCode: n } = t
      if ((t.altKey && !t.ctrlKey) || t.metaKey || (n >= Ae.F1 && n <= Ae.F12))
        return !1
      switch (n) {
        case Ae.ALT:
        case Ae.CAPS_LOCK:
        case Ae.CONTEXT_MENU:
        case Ae.CTRL:
        case Ae.DOWN:
        case Ae.END:
        case Ae.ESC:
        case Ae.HOME:
        case Ae.INSERT:
        case Ae.LEFT:
        case Ae.MAC_FF_META:
        case Ae.META:
        case Ae.NUMLOCK:
        case Ae.NUM_CENTER:
        case Ae.PAGE_DOWN:
        case Ae.PAGE_UP:
        case Ae.PAUSE:
        case Ae.PRINT_SCREEN:
        case Ae.RIGHT:
        case Ae.SHIFT:
        case Ae.UP:
        case Ae.WIN_KEY:
        case Ae.WIN_KEY_RIGHT:
          return !1
        default:
          return !0
      }
    },
    isCharacterKey: function(t) {
      if (
        (t >= Ae.ZERO && t <= Ae.NINE) ||
        (t >= Ae.NUM_ZERO && t <= Ae.NUM_MULTIPLY) ||
        (t >= Ae.A && t <= Ae.Z) ||
        (window.navigator.userAgent.indexOf('WebKit') !== -1 && t === 0)
      )
        return !0
      switch (t) {
        case Ae.SPACE:
        case Ae.QUESTION_MARK:
        case Ae.NUM_PLUS:
        case Ae.NUM_MINUS:
        case Ae.NUM_PERIOD:
        case Ae.NUM_DIVISION:
        case Ae.SEMICOLON:
        case Ae.DASH:
        case Ae.EQUALS:
        case Ae.COMMA:
        case Ae.PERIOD:
        case Ae.SLASH:
        case Ae.APOSTROPHE:
        case Ae.SINGLE_QUOTE:
        case Ae.OPEN_SQUARE_BRACKET:
        case Ae.BACKSLASH:
        case Ae.CLOSE_SQUARE_BRACKET:
          return !0
        default:
          return !1
      }
    }
  },
  Oe = Ae,
  _l = (e, t) => {
    let { slots: n } = t
    var o
    const {
      class: r,
      customizeIcon: i,
      customizeIconProps: l,
      onMousedown: a,
      onClick: s
    } = e
    let u
    return (
      typeof i == 'function' ? (u = i(l)) : (u = Mt(i) ? vo(i) : i),
      v(
        'span',
        {
          class: r,
          onMousedown: c => {
            c.preventDefault(), a && a(c)
          },
          style: { userSelect: 'none', WebkitUserSelect: 'none' },
          unselectable: 'on',
          onClick: s,
          'aria-hidden': !0
        },
        [
          u !== void 0
            ? u
            : v('span', { class: r.split(/\s+/).map(c => `${c}-icon`) }, [
                (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
              ])
        ]
      )
    )
  }
_l.inheritAttrs = !1
_l.displayName = 'TransBtn'
_l.props = {
  class: String,
  customizeIcon: k.any,
  customizeIconProps: k.any,
  onMousedown: Function,
  onClick: Function
}
const el = _l
var g1 =
  (globalThis && globalThis.__rest) ||
  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 h1 = J({
    compatConfig: { MODE: 3 },
    props: {
      disabled: k.looseBool,
      type: k.string,
      value: k.any,
      tag: { type: String, default: 'input' },
      size: k.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 = V(null)
      return (
        n({
          focus: () => {
            o.value && o.value.focus()
          },
          blur: () => {
            o.value && o.value.blur()
          },
          input: o,
          setSelectionRange: (s, u, c) => {
            var d
            ;(d = o.value) === null ||
              d === void 0 ||
              d.setSelectionRange(s, u, c)
          },
          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: u } = e,
            c = g1(e, ['tag', 'value'])
          return v(s, N(N({}, c), {}, { ref: o, value: u }), null)
        }
      )
    }
  }),
  b1 = h1
function Df(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 y1(e) {
  return Array.prototype.slice
    .apply(e)
    .map(n => `${n}: ${e.getPropertyValue(n)};`)
    .join('')
}
function S1(e) {
  return Object.keys(e).reduce((t, n) => {
    const o = e[n]
    return typeof o > 'u' || o === null || (t += `${n}: ${e[n]};`), t
  }, '')
}
var x1 =
  (globalThis && globalThis.__rest) ||
  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 C1 = J({
    compatConfig: { MODE: 3 },
    inheritAttrs: !1,
    props: {
      disabled: k.looseBool,
      type: k.string,
      value: k.any,
      lazy: k.bool.def(!0),
      tag: { type: String, default: 'input' },
      size: k.string,
      style: k.oneOfType([String, Object]),
      class: k.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 = V(null),
        l = ne(),
        a = ne(!1)
      ge(
        [() => e.value, a],
        () => {
          a.value || (l.value = e.value)
        },
        { immediate: !0 }
      )
      const s = y => {
          n('change', y)
        },
        u = y => {
          ;(a.value = !0), (y.target.composing = !0), n('compositionstart', y)
        },
        c = y => {
          ;(a.value = !1), (y.target.composing = !1), n('compositionend', y)
          const T = document.createEvent('HTMLEvents')
          T.initEvent('input', !0, !0), y.target.dispatchEvent(T), s(y)
        },
        d = y => {
          if (a.value && e.lazy) {
            l.value = y.target.value
            return
          }
          n('input', y)
        },
        f = y => {
          n('blur', y)
        },
        m = y => {
          n('focus', y)
        },
        g = () => {
          i.value && i.value.focus()
        },
        h = () => {
          i.value && i.value.blur()
        },
        b = y => {
          n('keydown', y)
        },
        S = y => {
          n('keyup', y)
        },
        C = (y, T, I) => {
          var _
          ;(_ = i.value) === null ||
            _ === void 0 ||
            _.setSelectionRange(y, T, I)
        },
        $ = () => {
          var y
          ;(y = i.value) === null || y === void 0 || y.select()
        }
      r({
        focus: g,
        blur: h,
        input: P(() => {
          var y
          return (y = i.value) === null || y === void 0 ? void 0 : y.input
        }),
        setSelectionRange: C,
        select: $,
        getSelectionStart: () => {
          var y
          return (y = i.value) === null || y === void 0
            ? void 0
            : y.getSelectionStart()
        },
        getSelectionEnd: () => {
          var y
          return (y = i.value) === null || y === void 0
            ? void 0
            : y.getSelectionEnd()
        },
        getScrollTop: () => {
          var y
          return (y = i.value) === null || y === void 0
            ? void 0
            : y.getScrollTop()
        }
      })
      const O = y => {
          n('mousedown', y)
        },
        x = y => {
          n('paste', y)
        },
        w = P(() =>
          e.style && typeof e.style != 'string' ? S1(e.style) : e.style
        )
      return () => {
        const y = x1(e, ['style', 'lazy'])
        return v(
          b1,
          N(
            N(N({}, y), o),
            {},
            {
              style: w.value,
              onInput: d,
              onChange: s,
              onBlur: f,
              onFocus: m,
              ref: i,
              value: l.value,
              onCompositionstart: u,
              onCompositionend: c,
              onKeyup: S,
              onKeydown: b,
              onPaste: x,
              onMousedown: O
            }
          ),
          null
        )
      }
    }
  }),
  ei = C1,
  $1 = {
    inputRef: k.any,
    prefixCls: String,
    id: String,
    inputElement: k.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: k.oneOfType([k.number, k.string]),
    attrs: k.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 }
  },
  w1 = J({
    compatConfig: { MODE: 3 },
    name: 'SelectInput',
    inheritAttrs: !1,
    props: $1,
    setup(e) {
      let t = null
      const n = Ue('VCSelectContainerEvent')
      return () => {
        var o
        const {
          prefixCls: r,
          id: i,
          inputElement: l,
          disabled: a,
          tabindex: s,
          autofocus: u,
          autocomplete: c,
          editable: d,
          activeDescendantId: f,
          value: m,
          onKeydown: g,
          onMousedown: h,
          onChange: b,
          onPaste: S,
          onCompositionstart: C,
          onCompositionend: $,
          onFocus: O,
          onBlur: x,
          open: w,
          inputRef: y,
          attrs: T
        } = e
        let I = l || v(ei, null, null)
        const _ = I.props || {},
          {
            onKeydown: A,
            onInput: z,
            onFocus: M,
            onBlur: j,
            onMousedown: E,
            onCompositionstart: R,
            onCompositionend: L,
            style: W
          } = _
        return (
          (I = ft(
            I,
            p(
              p(
                p(
                  p(p({ type: 'search' }, _), {
                    id: i,
                    ref: y,
                    disabled: a,
                    tabindex: s,
                    lazy: !1,
                    autocomplete: c || 'off',
                    autofocus: u,
                    class: oe(
                      `${r}-selection-search-input`,
                      (o = I == null ? void 0 : I.props) === null ||
                        o === void 0
                        ? void 0
                        : o.class
                    ),
                    role: 'combobox',
                    'aria-expanded': w,
                    'aria-haspopup': 'listbox',
                    'aria-owns': `${i}_list`,
                    'aria-autocomplete': 'list',
                    'aria-controls': `${i}_list`,
                    'aria-activedescendant': f
                  }),
                  T
                ),
                {
                  value: d ? m : '',
                  readonly: !d,
                  unselectable: d ? null : 'on',
                  style: p(p({}, W), { opacity: d ? null : 0 }),
                  onKeydown: D => {
                    g(D), A && A(D)
                  },
                  onMousedown: D => {
                    h(D), E && E(D)
                  },
                  onInput: D => {
                    b(D), z && z(D)
                  },
                  onCompositionstart(D) {
                    C(D), R && R(D)
                  },
                  onCompositionend(D) {
                    $(D), L && L(D)
                  },
                  onPaste: S,
                  onFocus: function() {
                    clearTimeout(t),
                      M && M(arguments.length <= 0 ? void 0 : arguments[0]),
                      O && O(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, F = new Array(D), H = 0;
                      H < D;
                      H++
                    )
                      F[H] = arguments[H]
                    t = setTimeout(() => {
                      j && j(F[0]), x && x(F[0]), n == null || n.blur(F[0])
                    }, 100)
                  }
                }
              ),
              I.type === 'textarea' ? {} : { type: 'search' }
            ),
            !0,
            !0
          )),
          I
        )
      }
    }
  }),
  th = w1,
  O1 = `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`,
  P1 = `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`,
  Mf = `${O1} ${P1}`.split(/[\s\n]+/),
  T1 = 'aria-',
  I1 = 'data-'
function Nf(e, t) {
  return e.indexOf(t) === 0
}
function fr(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 = p({}, t))
  const o = {}
  return (
    Object.keys(e).forEach(r => {
      ;((n.aria && (r === 'role' || Nf(r, T1))) ||
        (n.data && Nf(r, I1)) ||
        (n.attr && (Mf.includes(r) || Mf.includes(r.toLowerCase())))) &&
        (o[r] = e[r])
    }),
    o
  )
}
const nh = Symbol('OverflowContextProviderKey'),
  Ss = J({
    compatConfig: { MODE: 3 },
    name: 'OverflowContextProvider',
    inheritAttrs: !1,
    props: { value: { type: Object } },
    setup(e, t) {
      let { slots: n } = t
      return (
        Ye(
          nh,
          P(() => e.value)
        ),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  }),
  E1 = () =>
    Ue(
      nh,
      P(() => null)
    )
var _1 =
  (globalThis && globalThis.__rest) ||
  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 Mo = void 0,
  Ai = J({
    compatConfig: { MODE: 3 },
    name: 'Item',
    props: {
      prefixCls: String,
      item: k.any,
      renderItem: Function,
      responsive: Boolean,
      itemKey: { type: [String, Number] },
      registerSize: Function,
      display: Boolean,
      order: Number,
      component: k.any,
      invalidate: Boolean
    },
    setup(e, t) {
      let { slots: n, expose: o } = t
      const r = P(() => e.responsive && !e.display),
        i = ne()
      o({ itemNodeRef: i })
      function l(a) {
        e.registerSize(e.itemKey, a)
      }
      return (
        Gn(() => {
          l(null)
        }),
        () => {
          var a
          const {
              prefixCls: s,
              invalidate: u,
              item: c,
              renderItem: d,
              responsive: f,
              registerSize: m,
              itemKey: g,
              display: h,
              order: b,
              component: S = 'div'
            } = e,
            C = _1(e, [
              'prefixCls',
              'invalidate',
              'item',
              'renderItem',
              'responsive',
              'registerSize',
              'itemKey',
              'display',
              'order',
              'component'
            ]),
            $ = (a = n.default) === null || a === void 0 ? void 0 : a.call(n),
            O = d && c !== Mo ? d(c) : $
          let x
          u ||
            (x = {
              opacity: r.value ? 0 : 1,
              height: r.value ? 0 : Mo,
              overflowY: r.value ? 'hidden' : Mo,
              order: f ? b : Mo,
              pointerEvents: r.value ? 'none' : Mo,
              position: r.value ? 'absolute' : Mo
            })
          const w = {}
          return (
            r.value && (w['aria-hidden'] = !0),
            v(
              Tn,
              {
                disabled: !f,
                onResize: y => {
                  let { offsetWidth: T } = y
                  l(T)
                }
              },
              {
                default: () =>
                  v(
                    S,
                    N(
                      N(N({ class: oe(!u && s), style: x }, w), C),
                      {},
                      { ref: i }
                    ),
                    { default: () => [O] }
                  )
              }
            )
          )
        }
      )
    }
  })
var ya =
  (globalThis && globalThis.__rest) ||
  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 R1 = J({
  compatConfig: { MODE: 3 },
  name: 'RawItem',
  inheritAttrs: !1,
  props: {
    component: k.any,
    title: k.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 = E1()
    return () => {
      var i
      if (!r.value) {
        const { component: d = 'div' } = e,
          f = ya(e, ['component'])
        return v(d, N(N({}, f), o), {
          default: () => [
            (i = n.default) === null || i === void 0 ? void 0 : i.call(n)
          ]
        })
      }
      const l = r.value,
        { className: a } = l,
        s = ya(l, ['className']),
        { class: u } = o,
        c = ya(o, ['class'])
      return v(
        Ss,
        { value: null },
        { default: () => [v(Ai, N(N(N({ class: oe(a, u) }, s), c), e), n)] }
      )
    }
  }
})
var A1 =
  (globalThis && globalThis.__rest) ||
  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 oh = 'responsive',
  rh = 'invalidate'
function D1(e) {
  return `+ ${e.length} ...`
}
const M1 = () => ({
    id: String,
    prefixCls: String,
    data: Array,
    itemKey: [String, Number, Function],
    itemWidth: { type: Number, default: 10 },
    renderItem: Function,
    renderRawItem: Function,
    maxCount: [Number, String],
    renderRest: Function,
    renderRawRest: Function,
    suffix: k.any,
    component: String,
    itemComponent: k.any,
    onVisibleChange: Function,
    ssr: String,
    onMousedown: Function,
    role: String
  }),
  Rl = J({
    name: 'Overflow',
    inheritAttrs: !1,
    props: M1(),
    emits: ['visibleChange'],
    setup(e, t) {
      let { attrs: n, emit: o, slots: r } = t
      const i = P(() => e.ssr === 'full'),
        l = V(null),
        a = P(() => l.value || 0),
        s = V(new Map()),
        u = V(0),
        c = V(0),
        d = V(0),
        f = V(null),
        m = V(null),
        g = P(() =>
          m.value === null && i.value ? Number.MAX_SAFE_INTEGER : m.value || 0
        ),
        h = V(!1),
        b = P(() => `${e.prefixCls}-item`),
        S = P(() => Math.max(u.value, c.value)),
        C = P(() => !!(e.data.length && e.maxCount === oh)),
        $ = P(() => e.maxCount === rh),
        O = P(
          () =>
            C.value ||
            (typeof e.maxCount == 'number' && e.data.length > e.maxCount)
        ),
        x = P(() => {
          let E = e.data
          return (
            C.value
              ? l.value === null && i.value
                ? (E = e.data)
                : (E = e.data.slice(
                    0,
                    Math.min(e.data.length, a.value / e.itemWidth)
                  ))
              : typeof e.maxCount == 'number' &&
                (E = e.data.slice(0, e.maxCount)),
            E
          )
        }),
        w = P(() =>
          C.value ? e.data.slice(g.value + 1) : e.data.slice(x.value.length)
        ),
        y = (E, R) => {
          var L
          return typeof e.itemKey == 'function'
            ? e.itemKey(E)
            : (L = e.itemKey && (E == null ? void 0 : E[e.itemKey])) !== null &&
              L !== void 0
            ? L
            : R
        },
        T = P(() => e.renderItem || (E => E)),
        I = (E, R) => {
          ;(m.value = E),
            R || ((h.value = E < e.data.length - 1), o('visibleChange', E))
        },
        _ = (E, R) => {
          l.value = R.clientWidth
        },
        A = (E, R) => {
          const L = new Map(s.value)
          R === null ? L.delete(E) : L.set(E, R), (s.value = L)
        },
        z = (E, R) => {
          ;(u.value = c.value), (c.value = R)
        },
        M = (E, R) => {
          d.value = R
        },
        j = E => s.value.get(y(x.value[E], E))
      return (
        ge([a, s, c, d, () => e.itemKey, x], () => {
          if (a.value && S.value && x.value) {
            let E = d.value
            const R = x.value.length,
              L = R - 1
            if (!R) {
              I(0), (f.value = null)
              return
            }
            for (let W = 0; W < R; W += 1) {
              const D = j(W)
              if (D === void 0) {
                I(W - 1, !0)
                break
              }
              if (
                ((E += D),
                (L === 0 && E <= a.value) ||
                  (W === L - 1 && E + j(L) <= a.value))
              ) {
                I(L), (f.value = null)
                break
              } else if (E + S.value > a.value) {
                I(W - 1), (f.value = E - D - d.value + c.value)
                break
              }
            }
            e.suffix && j(0) + d.value > a.value && (f.value = null)
          }
        }),
        () => {
          const E = h.value && !!w.value.length,
            {
              itemComponent: R,
              renderRawItem: L,
              renderRawRest: W,
              renderRest: D,
              prefixCls: F = 'rc-overflow',
              suffix: H,
              component: B = 'div',
              id: X,
              onMousedown: ee
            } = e,
            { class: de, style: ie } = n,
            Q = A1(n, ['class', 'style'])
          let se = {}
          f.value !== null &&
            C.value &&
            (se = { position: 'absolute', left: `${f.value}px`, top: 0 })
          const q = {
              prefixCls: b.value,
              responsive: C.value,
              component: R,
              invalidate: $.value
            },
            K = L
              ? (he, Pe) => {
                  const ve = y(he, Pe)
                  return v(
                    Ss,
                    {
                      key: ve,
                      value: p(p({}, q), {
                        order: Pe,
                        item: he,
                        itemKey: ve,
                        registerSize: A,
                        display: Pe <= g.value
                      })
                    },
                    { default: () => [L(he, Pe)] }
                  )
                }
              : (he, Pe) => {
                  const ve = y(he, Pe)
                  return v(
                    Ai,
                    N(
                      N({}, q),
                      {},
                      {
                        order: Pe,
                        key: ve,
                        item: he,
                        renderItem: T.value,
                        itemKey: ve,
                        registerSize: A,
                        display: Pe <= g.value
                      }
                    ),
                    null
                  )
                }
          let U = () => null
          const ue = {
            order: E ? g.value : Number.MAX_SAFE_INTEGER,
            className: `${b.value} ${b.value}-rest`,
            registerSize: z,
            display: E
          }
          if (W)
            W &&
              (U = () =>
                v(
                  Ss,
                  { value: p(p({}, q), ue) },
                  { default: () => [W(w.value)] }
                ))
          else {
            const he = D || D1
            U = () =>
              v(Ai, N(N({}, q), ue), {
                default: () => (typeof he == 'function' ? he(w.value) : he)
              })
          }
          const me = () => {
            var he
            return v(
              B,
              N(
                {
                  id: X,
                  class: oe(!$.value && F, de),
                  style: ie,
                  onMousedown: ee,
                  role: e.role
                },
                Q
              ),
              {
                default: () => [
                  x.value.map(K),
                  O.value ? U() : null,
                  H &&
                    v(
                      Ai,
                      N(
                        N({}, q),
                        {},
                        {
                          order: g.value,
                          class: `${b.value}-suffix`,
                          registerSize: M,
                          display: !0,
                          style: se
                        }
                      ),
                      { default: () => H }
                    ),
                  (he = r.default) === null || he === void 0
                    ? void 0
                    : he.call(r)
                ]
              }
            )
          }
          return v(Tn, { disabled: !C.value, onResize: _ }, { default: me })
        }
      )
    }
  })
Rl.Item = R1
Rl.RESPONSIVE = oh
Rl.INVALIDATE = rh
const Ko = Rl,
  N1 = Symbol('TreeSelectLegacyContextPropsKey')
function kc() {
  return Ue(N1, {})
}
const B1 = {
    id: String,
    prefixCls: String,
    values: k.array,
    open: { type: Boolean, default: void 0 },
    searchValue: String,
    inputRef: k.any,
    placeholder: k.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: k.oneOfType([k.number, k.string]),
    compositionStatus: Boolean,
    removeIcon: k.any,
    choiceTransitionName: String,
    maxTagCount: k.oneOfType([k.number, k.string]),
    maxTagTextLength: Number,
    maxTagPlaceholder: k.any.def(() => e => `+ ${e.length} ...`),
    tagRender: Function,
    onToggleOpen: { type: Function },
    onRemove: Function,
    onInputChange: Function,
    onInputPaste: Function,
    onInputKeyDown: Function,
    onInputMouseDown: Function,
    onInputCompositionStart: Function,
    onInputCompositionEnd: Function
  },
  Bf = e => {
    e.preventDefault(), e.stopPropagation()
  },
  z1 = J({
    name: 'MultipleSelectSelector',
    inheritAttrs: !1,
    props: B1,
    setup(e) {
      const t = V(),
        n = V(0),
        o = V(!1),
        r = kc(),
        i = P(() => `${e.prefixCls}-selection`),
        l = P(() => (e.open || e.mode === 'tags' ? e.searchValue : '')),
        a = P(() => e.mode === 'tags' || (e.showSearch && (e.open || o.value))),
        s = ne('')
      Me(() => {
        s.value = l.value
      }),
        We(() => {
          ge(
            s,
            () => {
              n.value = t.value.scrollWidth
            },
            { flush: 'post', immediate: !0 }
          )
        })
      function u(g, h, b, S, C) {
        return v(
          'span',
          {
            class: oe(`${i.value}-item`, { [`${i.value}-item-disabled`]: b }),
            title:
              typeof g == 'string' || typeof g == 'number'
                ? g.toString()
                : void 0
          },
          [
            v('span', { class: `${i.value}-item-content` }, [h]),
            S &&
              v(
                el,
                {
                  class: `${i.value}-item-remove`,
                  onMousedown: Bf,
                  onClick: C,
                  customizeIcon: e.removeIcon
                },
                { default: () => [kn('×')] }
              )
          ]
        )
      }
      function c(g, h, b, S, C, $) {
        var O
        const x = y => {
          Bf(y), e.onToggleOpen(!open)
        }
        let w = $
        return (
          r.keyEntities &&
            (w =
              ((O = r.keyEntities[g]) === null || O === void 0
                ? void 0
                : O.node) || {}),
          v('span', { key: g, onMousedown: x }, [
            e.tagRender({
              label: h,
              value: g,
              disabled: b,
              closable: S,
              onClose: C,
              option: w
            })
          ])
        )
      }
      function d(g) {
        const { disabled: h, label: b, value: S, option: C } = g,
          $ = !e.disabled && !h
        let O = b
        if (
          typeof e.maxTagTextLength == 'number' &&
          (typeof b == 'string' || typeof b == 'number')
        ) {
          const w = String(O)
          w.length > e.maxTagTextLength &&
            (O = `${w.slice(0, e.maxTagTextLength)}...`)
        }
        const x = w => {
          var y
          w && w.stopPropagation(),
            (y = e.onRemove) === null || y === void 0 || y.call(e, g)
        }
        return typeof e.tagRender == 'function'
          ? c(S, O, h, $, x, C)
          : u(b, O, h, $, x)
      }
      function f(g) {
        const { maxTagPlaceholder: h = S => `+ ${S.length} ...` } = e,
          b = typeof h == 'function' ? h(g) : h
        return u(b, b, !1)
      }
      const m = g => {
        const h = g.target.composing
        ;(s.value = g.target.value), h || e.onInputChange(g)
      }
      return () => {
        const {
            id: g,
            prefixCls: h,
            values: b,
            open: S,
            inputRef: C,
            placeholder: $,
            disabled: O,
            autofocus: x,
            autocomplete: w,
            activeDescendantId: y,
            tabindex: T,
            compositionStatus: I,
            onInputPaste: _,
            onInputKeyDown: A,
            onInputMouseDown: z,
            onInputCompositionStart: M,
            onInputCompositionEnd: j
          } = e,
          E = v(
            'div',
            {
              class: `${i.value}-search`,
              style: { width: n.value + 'px' },
              key: 'input'
            },
            [
              v(
                th,
                {
                  inputRef: C,
                  open: S,
                  prefixCls: h,
                  id: g,
                  inputElement: null,
                  disabled: O,
                  autofocus: x,
                  autocomplete: w,
                  editable: a.value,
                  activeDescendantId: y,
                  value: s.value,
                  onKeydown: A,
                  onMousedown: z,
                  onChange: m,
                  onPaste: _,
                  onCompositionstart: M,
                  onCompositionend: j,
                  tabindex: T,
                  attrs: fr(e, !0),
                  onFocus: () => (o.value = !0),
                  onBlur: () => (o.value = !1)
                },
                null
              ),
              v(
                'span',
                {
                  ref: t,
                  class: `${i.value}-search-mirror`,
                  'aria-hidden': !0
                },
                [s.value, kn(' ')]
              )
            ]
          ),
          R = v(
            Ko,
            {
              prefixCls: `${i.value}-overflow`,
              data: b,
              renderItem: d,
              renderRest: f,
              suffix: E,
              itemKey: 'key',
              maxCount: e.maxTagCount,
              key: 'overflow'
            },
            null
          )
        return v(nt, null, [
          R,
          !b.length &&
            !l.value &&
            !I &&
            v('span', { class: `${i.value}-placeholder` }, [$])
        ])
      }
    }
  }),
  L1 = z1,
  F1 = {
    inputElement: k.any,
    id: String,
    prefixCls: String,
    values: k.array,
    open: { type: Boolean, default: void 0 },
    searchValue: String,
    inputRef: k.any,
    placeholder: k.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: k.oneOfType([k.number, k.string]),
    activeValue: String,
    backfill: { type: Boolean, default: void 0 },
    optionLabelRender: Function,
    onInputChange: Function,
    onInputPaste: Function,
    onInputKeyDown: Function,
    onInputMouseDown: Function,
    onInputCompositionStart: Function,
    onInputCompositionEnd: Function
  },
  jc = J({
    name: 'SingleSelector',
    setup(e) {
      const t = V(!1),
        n = P(() => e.mode === 'combobox'),
        o = P(() => n.value || e.showSearch),
        r = P(() => {
          let c = e.searchValue || ''
          return n.value && e.activeValue && !t.value && (c = e.activeValue), c
        }),
        i = kc()
      ge(
        [n, () => e.activeValue],
        () => {
          n.value && (t.value = !1)
        },
        { immediate: !0 }
      )
      const l = P(() =>
          e.mode !== 'combobox' && !e.open && !e.showSearch
            ? !1
            : !!r.value || e.compositionStatus
        ),
        a = P(() => {
          const c = e.values[0]
          return c && (typeof c.label == 'string' || typeof c.label == 'number')
            ? c.label.toString()
            : void 0
        }),
        s = () => {
          if (e.values[0]) return null
          const c = l.value ? { visibility: 'hidden' } : void 0
          return v(
            'span',
            { class: `${e.prefixCls}-selection-placeholder`, style: c },
            [e.placeholder]
          )
        },
        u = c => {
          c.target.composing || ((t.value = !0), e.onInputChange(c))
        }
      return () => {
        var c, d, f, m
        const {
            inputElement: g,
            prefixCls: h,
            id: b,
            values: S,
            inputRef: C,
            disabled: $,
            autofocus: O,
            autocomplete: x,
            activeDescendantId: w,
            open: y,
            tabindex: T,
            optionLabelRender: I,
            onInputKeyDown: _,
            onInputMouseDown: A,
            onInputPaste: z,
            onInputCompositionStart: M,
            onInputCompositionEnd: j
          } = e,
          E = S[0]
        let R = null
        if (E && i.customSlots) {
          const L = (c = E.key) !== null && c !== void 0 ? c : E.value,
            W =
              ((d = i.keyEntities[L]) === null || d === void 0
                ? void 0
                : d.node) || {}
          ;(R =
            i.customSlots[
              (f = W.slots) === null || f === void 0 ? void 0 : f.title
            ] ||
            i.customSlots.title ||
            E.label),
            typeof R == 'function' && (R = R(W))
        } else R = I && E ? I(E.option) : E == null ? void 0 : E.label
        return v(nt, null, [
          v('span', { class: `${h}-selection-search` }, [
            v(
              th,
              {
                inputRef: C,
                prefixCls: h,
                id: b,
                open: y,
                inputElement: g,
                disabled: $,
                autofocus: O,
                autocomplete: x,
                editable: o.value,
                activeDescendantId: w,
                value: r.value,
                onKeydown: _,
                onMousedown: A,
                onChange: u,
                onPaste: z,
                onCompositionstart: M,
                onCompositionend: j,
                tabindex: T,
                attrs: fr(e, !0)
              },
              null
            )
          ]),
          !n.value &&
            E &&
            !l.value &&
            v('span', { class: `${h}-selection-item`, title: a.value }, [
              v(
                nt,
                { key: (m = E.key) !== null && m !== void 0 ? m : E.value },
                [R]
              )
            ]),
          s()
        ])
      }
    }
  })
jc.props = F1
jc.inheritAttrs = !1
const H1 = jc
function k1(e) {
  return ![
    Oe.ESC,
    Oe.SHIFT,
    Oe.BACKSPACE,
    Oe.TAB,
    Oe.WIN_KEY,
    Oe.ALT,
    Oe.META,
    Oe.WIN_KEY_RIGHT,
    Oe.CTRL,
    Oe.SEMICOLON,
    Oe.EQUALS,
    Oe.CAPS_LOCK,
    Oe.CONTEXT_MENU,
    Oe.F1,
    Oe.F2,
    Oe.F3,
    Oe.F4,
    Oe.F5,
    Oe.F6,
    Oe.F7,
    Oe.F8,
    Oe.F9,
    Oe.F10,
    Oe.F11,
    Oe.F12
  ].includes(e)
}
function ih() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250,
    t = null,
    n
  Qe(() => {
    clearTimeout(n)
  })
  function o(r) {
    ;(r || t === null) && (t = r),
      clearTimeout(n),
      (n = setTimeout(() => {
        t = null
      }, e))
  }
  return [() => t, o]
}
function Yr() {
  const e = t => {
    e.current = t
  }
  return e
}
const j1 = J({
    name: 'Selector',
    inheritAttrs: !1,
    props: {
      id: String,
      prefixCls: String,
      showSearch: { type: Boolean, default: void 0 },
      open: { type: Boolean, default: void 0 },
      values: k.array,
      multiple: { type: Boolean, default: void 0 },
      mode: String,
      searchValue: String,
      activeValue: String,
      inputElement: k.any,
      autofocus: { type: Boolean, default: void 0 },
      activeDescendantId: String,
      tabindex: k.oneOfType([k.number, k.string]),
      disabled: { type: Boolean, default: void 0 },
      placeholder: k.any,
      removeIcon: k.any,
      maxTagCount: k.oneOfType([k.number, k.string]),
      maxTagTextLength: Number,
      maxTagPlaceholder: k.any,
      tagRender: Function,
      optionLabelRender: Function,
      tokenWithEnter: { type: Boolean, default: void 0 },
      choiceTransitionName: String,
      onToggleOpen: { type: Function },
      onSearch: Function,
      onSearchSubmit: Function,
      onRemove: Function,
      onInputKeyDown: { type: Function },
      domRef: Function
    },
    setup(e, t) {
      let { expose: n } = t
      const o = Yr(),
        r = ne(!1),
        [i, l] = ih(0),
        a = S => {
          const { which: C } = S
          ;(C === Oe.UP || C === Oe.DOWN) && S.preventDefault(),
            e.onInputKeyDown && e.onInputKeyDown(S),
            C === Oe.ENTER &&
              e.mode === 'tags' &&
              !r.value &&
              !e.open &&
              e.onSearchSubmit(S.target.value),
            k1(C) && e.onToggleOpen(!0)
        },
        s = () => {
          l(!0)
        }
      let u = null
      const c = S => {
          e.onSearch(S, !0, r.value) !== !1 && e.onToggleOpen(!0)
        },
        d = () => {
          r.value = !0
        },
        f = S => {
          ;(r.value = !1), e.mode !== 'combobox' && c(S.target.value)
        },
        m = S => {
          let {
            target: { value: C }
          } = S
          if (e.tokenWithEnter && u && /[\r\n]/.test(u)) {
            const $ = u
              .replace(/[\r\n]+$/, '')
              .replace(/\r\n/g, ' ')
              .replace(/[\r\n]/g, ' ')
            C = C.replace($, u)
          }
          ;(u = null), c(C)
        },
        g = S => {
          const { clipboardData: C } = S
          u = C.getData('text')
        },
        h = S => {
          let { target: C } = S
          C !== o.current &&
            (document.body.style.msTouchAction !== void 0
              ? setTimeout(() => {
                  o.current.focus()
                })
              : o.current.focus())
        },
        b = S => {
          const C = i()
          S.target !== o.current && !C && S.preventDefault(),
            ((e.mode !== 'combobox' && (!e.showSearch || !C)) || !e.open) &&
              (e.open && e.onSearch('', !0, !1), e.onToggleOpen())
        }
      return (
        n({
          focus: () => {
            o.current.focus()
          },
          blur: () => {
            o.current.blur()
          }
        }),
        () => {
          const { prefixCls: S, domRef: C, mode: $ } = e,
            O = {
              inputRef: o,
              onInputKeyDown: a,
              onInputMouseDown: s,
              onInputChange: m,
              onInputPaste: g,
              compositionStatus: r.value,
              onInputCompositionStart: d,
              onInputCompositionEnd: f
            },
            x =
              $ === 'multiple' || $ === 'tags'
                ? v(L1, N(N({}, e), O), null)
                : v(H1, N(N({}, e), O), null)
          return v(
            'div',
            { ref: C, class: `${S}-selector`, onClick: h, onMousedown: b },
            [x]
          )
        }
      )
    }
  }),
  K1 = j1
function W1(e, t, n) {
  function o(r) {
    var i, l, a
    let s = r.target
    s.shadowRoot && r.composed && (s = r.composedPath()[0] || s)
    const u = [
      (i = e[0]) === null || i === void 0 ? void 0 : i.value,
      (a = (l = e[1]) === null || l === void 0 ? void 0 : l.value) === null ||
      a === void 0
        ? void 0
        : a.getPopupElement()
    ]
    t.value && u.every(c => c && !c.contains(s) && c !== s) && n(!1)
  }
  We(() => {
    window.addEventListener('mousedown', o)
  }),
    Qe(() => {
      window.removeEventListener('mousedown', o)
    })
}
function V1() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10
  const t = V(!1)
  let n
  const o = () => {
    clearTimeout(n)
  }
  return (
    We(() => {
      o()
    }),
    [
      t,
      (i, l) => {
        o(),
          (n = setTimeout(() => {
            ;(t.value = i), l && l()
          }, e))
      },
      o
    ]
  )
}
const lh = Symbol('BaseSelectContextKey')
function G1(e) {
  return Ye(lh, e)
}
function U1() {
  return Ue(lh, {})
}
const ah = () => {
  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 sh(e) {
  if (!I0(e)) return dt(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 dt(t)
}
var X1 =
  (globalThis && globalThis.__rest) ||
  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 q1 = [
    'value',
    'onChange',
    'removeIcon',
    'placeholder',
    'autofocus',
    'maxTagCount',
    'maxTagTextLength',
    'maxTagPlaceholder',
    'choiceTransitionName',
    'onInputKeyDown',
    'onPopupScroll',
    'tabindex',
    'OptionList',
    'notFoundContent'
  ],
  Y1 = () => ({
    prefixCls: String,
    id: String,
    omitDomProps: Array,
    displayValues: Array,
    onDisplayValuesChange: Function,
    activeValue: String,
    activeDescendantId: String,
    onActiveValueChange: Function,
    searchValue: String,
    onSearch: Function,
    onSearchSplit: Function,
    maxLength: Number,
    OptionList: k.any,
    emptyOptions: Boolean
  }),
  ch = () => ({
    showSearch: { type: Boolean, default: void 0 },
    tagRender: { type: Function },
    optionLabelRender: { type: Function },
    direction: { type: String },
    tabindex: Number,
    autofocus: Boolean,
    notFoundContent: k.any,
    placeholder: k.any,
    onClear: Function,
    choiceTransitionName: String,
    mode: String,
    disabled: { type: Boolean, default: void 0 },
    loading: { type: Boolean, default: void 0 },
    open: { type: Boolean, default: void 0 },
    defaultOpen: { type: Boolean, default: void 0 },
    onDropdownVisibleChange: { type: Function },
    getInputElement: { type: Function },
    getRawInputElement: { type: Function },
    maxTagTextLength: Number,
    maxTagCount: { type: [String, Number] },
    maxTagPlaceholder: k.any,
    tokenSeparators: { type: Array },
    allowClear: { type: Boolean, default: void 0 },
    showArrow: { type: Boolean, default: void 0 },
    inputIcon: k.any,
    clearIcon: k.any,
    removeIcon: k.any,
    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 },
    showAction: { type: Array },
    onBlur: { type: Function },
    onFocus: { type: Function },
    onKeyup: Function,
    onKeydown: Function,
    onMousedown: Function,
    onPopupScroll: Function,
    onInputKeyDown: Function,
    onMouseenter: Function,
    onMouseleave: Function,
    onClick: Function
  }),
  J1 = () => p(p({}, Y1()), ch())
function uh(e) {
  return e === 'tags' || e === 'multiple'
}
const Q1 = J({
    compatConfig: { MODE: 3 },
    name: 'BaseSelect',
    inheritAttrs: !1,
    props: mt(J1(), { showAction: [], notFoundContent: 'Not Found' }),
    setup(e, t) {
      let { attrs: n, expose: o, slots: r } = t
      const i = P(() => uh(e.mode)),
        l = P(() =>
          e.showSearch !== void 0
            ? e.showSearch
            : i.value || e.mode === 'combobox'
        ),
        a = V(!1)
      We(() => {
        a.value = ah()
      })
      const s = kc(),
        u = V(null),
        c = Yr(),
        d = V(null),
        f = V(null),
        m = V(null),
        g = ne(!1),
        [h, b, S] = V1()
      o({
        focus: () => {
          var K
          ;(K = f.value) === null || K === void 0 || K.focus()
        },
        blur: () => {
          var K
          ;(K = f.value) === null || K === void 0 || K.blur()
        },
        scrollTo: K => {
          var U
          return (U = m.value) === null || U === void 0 ? void 0 : U.scrollTo(K)
        }
      })
      const O = P(() => {
          var K
          if (e.mode !== 'combobox') return e.searchValue
          const U =
            (K = e.displayValues[0]) === null || K === void 0 ? void 0 : K.value
          return typeof U == 'string' || typeof U == 'number' ? String(U) : ''
        }),
        x = e.open !== void 0 ? e.open : e.defaultOpen,
        w = V(x),
        y = V(x),
        T = K => {
          ;(w.value = e.open !== void 0 ? e.open : K), (y.value = w.value)
        }
      ge(
        () => e.open,
        () => {
          T(e.open)
        }
      )
      const I = P(() => !e.notFoundContent && e.emptyOptions)
      Me(() => {
        ;(y.value = w.value),
          (e.disabled || (I.value && y.value && e.mode === 'combobox')) &&
            (y.value = !1)
      })
      const _ = P(() => (I.value ? !1 : y.value)),
        A = K => {
          const U = K !== void 0 ? K : !y.value
          y.value !== U &&
            !e.disabled &&
            (T(U),
            e.onDropdownVisibleChange && e.onDropdownVisibleChange(U),
            !U &&
              B.value &&
              ((B.value = !1),
              b(!1, () => {
                ;(F.value = !1), (g.value = !1)
              })))
        },
        z = P(() =>
          (e.tokenSeparators || []).some(K =>
            [
              `
`,
              `\r
`
            ].includes(K)
          )
        ),
        M = (K, U, ue) => {
          var me, he
          let Pe = !0,
            ve = K
          ;(me = e.onActiveValueChange) === null ||
            me === void 0 ||
            me.call(e, null)
          const ye = ue ? null : v$(K, e.tokenSeparators)
          return (
            e.mode !== 'combobox' &&
              ye &&
              ((ve = ''),
              (he = e.onSearchSplit) === null ||
                he === void 0 ||
                he.call(e, ye),
              A(!1),
              (Pe = !1)),
            e.onSearch &&
              O.value !== ve &&
              e.onSearch(ve, { source: U ? 'typing' : 'effect' }),
            Pe
          )
        },
        j = K => {
          var U
          !K ||
            !K.trim() ||
            (U = e.onSearch) === null ||
            U === void 0 ||
            U.call(e, K, { source: 'submit' })
        }
      ge(
        y,
        () => {
          !y.value && !i.value && e.mode !== 'combobox' && M('', !1, !1)
        },
        { immediate: !0, flush: 'post' }
      ),
        ge(
          () => e.disabled,
          () => {
            w.value && e.disabled && T(!1), e.disabled && !g.value && b(!1)
          },
          { immediate: !0 }
        )
      const [E, R] = ih(),
        L = function(K) {
          var U
          const ue = E(),
            { which: me } = K
          if (
            (me === Oe.ENTER &&
              (e.mode !== 'combobox' && K.preventDefault(), y.value || A(!0)),
            R(!!O.value),
            me === Oe.BACKSPACE &&
              !ue &&
              i.value &&
              !O.value &&
              e.displayValues.length)
          ) {
            const ye = [...e.displayValues]
            let te = null
            for (let Z = ye.length - 1; Z >= 0; Z -= 1) {
              const fe = ye[Z]
              if (!fe.disabled) {
                ye.splice(Z, 1), (te = fe)
                break
              }
            }
            te && e.onDisplayValuesChange(ye, { type: 'remove', values: [te] })
          }
          for (
            var he = arguments.length,
              Pe = new Array(he > 1 ? he - 1 : 0),
              ve = 1;
            ve < he;
            ve++
          )
            Pe[ve - 1] = arguments[ve]
          y.value && m.value && m.value.onKeydown(K, ...Pe),
            (U = e.onKeydown) === null || U === void 0 || U.call(e, K, ...Pe)
        },
        W = function(K) {
          for (
            var U = arguments.length, ue = new Array(U > 1 ? U - 1 : 0), me = 1;
            me < U;
            me++
          )
            ue[me - 1] = arguments[me]
          y.value && m.value && m.value.onKeyup(K, ...ue),
            e.onKeyup && e.onKeyup(K, ...ue)
        },
        D = K => {
          const U = e.displayValues.filter(ue => ue !== K)
          e.onDisplayValuesChange(U, { type: 'remove', values: [K] })
        },
        F = V(!1),
        H = function() {
          b(!0),
            e.disabled ||
              (e.onFocus && !F.value && e.onFocus(...arguments),
              e.showAction && e.showAction.includes('focus') && A(!0)),
            (F.value = !0)
        },
        B = ne(!1),
        X = function() {
          if (
            B.value ||
            ((g.value = !0),
            b(!1, () => {
              ;(F.value = !1), (g.value = !1), A(!1)
            }),
            e.disabled)
          )
            return
          const K = O.value
          K &&
            (e.mode === 'tags'
              ? e.onSearch(K, { source: 'submit' })
              : e.mode === 'multiple' && e.onSearch('', { source: 'blur' })),
            e.onBlur && e.onBlur(...arguments)
        },
        ee = () => {
          B.value = !0
        },
        de = () => {
          B.value = !1
        }
      Ye('VCSelectContainerEvent', { focus: H, blur: X })
      const ie = []
      We(() => {
        ie.forEach(K => clearTimeout(K)), ie.splice(0, ie.length)
      }),
        Qe(() => {
          ie.forEach(K => clearTimeout(K)), ie.splice(0, ie.length)
        })
      const Q = function(K) {
          var U, ue
          const { target: me } = K,
            he =
              (U = d.value) === null || U === void 0
                ? void 0
                : U.getPopupElement()
          if (he && he.contains(me)) {
            const te = setTimeout(() => {
              var Z
              const fe = ie.indexOf(te)
              fe !== -1 && ie.splice(fe, 1),
                S(),
                !a.value &&
                  !he.contains(document.activeElement) &&
                  ((Z = f.value) === null || Z === void 0 || Z.focus())
            })
            ie.push(te)
          }
          for (
            var Pe = arguments.length,
              ve = new Array(Pe > 1 ? Pe - 1 : 0),
              ye = 1;
            ye < Pe;
            ye++
          )
            ve[ye - 1] = arguments[ye]
          ;(ue = e.onMousedown) === null ||
            ue === void 0 ||
            ue.call(e, K, ...ve)
        },
        se = V(null),
        q = () => {}
      return (
        We(() => {
          ge(
            _,
            () => {
              var K
              if (_.value) {
                const U = Math.ceil(
                  (K = u.value) === null || K === void 0
                    ? void 0
                    : K.offsetWidth
                )
                se.value !== U && !Number.isNaN(U) && (se.value = U)
              }
            },
            { immediate: !0, flush: 'post' }
          )
        }),
        W1([u, d], _, A),
        G1(
          sh(
            p(p({}, Ir(e)), {
              open: y,
              triggerOpen: _,
              showSearch: l,
              multiple: i,
              toggleOpen: A
            })
          )
        ),
        () => {
          const K = p(p({}, e), n),
            {
              prefixCls: U,
              id: ue,
              open: me,
              defaultOpen: he,
              mode: Pe,
              showSearch: ve,
              searchValue: ye,
              onSearch: te,
              allowClear: Z,
              clearIcon: fe,
              showArrow: xe,
              inputIcon: be,
              disabled: Ce,
              loading: Ne,
              getInputElement: Y,
              getPopupContainer: G,
              placement: le,
              animation: $e,
              transitionName: Te,
              dropdownStyle: De,
              dropdownClassName: ae,
              dropdownMatchSelectWidth: ce,
              dropdownRender: pe,
              dropdownAlign: Se,
              showAction: Ie,
              direction: Ee,
              tokenSeparators: we,
              tagRender: ke,
              optionLabelRender: qe,
              onPopupScroll: Be,
              onDropdownVisibleChange: Ge,
              onFocus: Je,
              onBlur: xt,
              onKeyup: Ot,
              onKeydown: It,
              onMousedown: gt,
              onClear: Nt,
              omitDomProps: Gt,
              getRawInputElement: sn,
              displayValues: Sn,
              onDisplayValuesChange: cn,
              emptyOptions: br,
              activeDescendantId: Do,
              activeValue: Un,
              OptionList: oa
            } = K,
            ra = X1(K, [
              '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'
            ]),
            ci = (Pe === 'combobox' && Y && Y()) || null,
            Xn = typeof sn == 'function' && sn(),
            yr = p({}, ra)
          let ui
          Xn &&
            (ui = Yn => {
              A(Yn)
            }),
            q1.forEach(Yn => {
              delete yr[Yn]
            }),
            Gt == null ||
              Gt.forEach(Yn => {
                delete yr[Yn]
              })
          const di = xe !== void 0 ? xe : Ne || (!i.value && Pe !== 'combobox')
          let fi
          di &&
            (fi = v(
              el,
              {
                class: oe(`${U}-arrow`, { [`${U}-arrow-loading`]: Ne }),
                customizeIcon: be,
                customizeIconProps: {
                  loading: Ne,
                  searchValue: O.value,
                  open: y.value,
                  focused: h.value,
                  showSearch: l.value
                }
              },
              null
            ))
          let pi
          const qn = () => {
            Nt == null || Nt(),
              cn([], { type: 'clear', values: Sn }),
              M('', !1, !1)
          }
          !Ce &&
            Z &&
            (Sn.length || O.value) &&
            (pi = v(
              el,
              { class: `${U}-clear`, onMousedown: qn, customizeIcon: fe },
              { default: () => [kn('×')] }
            ))
          const C0 = v(
              oa,
              { ref: m },
              p(p({}, s.customSlots), { option: r.option })
            ),
            $0 = oe(U, n.class, {
              [`${U}-focused`]: h.value,
              [`${U}-multiple`]: i.value,
              [`${U}-single`]: !i.value,
              [`${U}-allow-clear`]: Z,
              [`${U}-show-arrow`]: di,
              [`${U}-disabled`]: Ce,
              [`${U}-loading`]: Ne,
              [`${U}-open`]: y.value,
              [`${U}-customize-input`]: ci,
              [`${U}-show-search`]: l.value
            }),
            md = v(
              m1,
              {
                ref: d,
                disabled: Ce,
                prefixCls: U,
                visible: _.value,
                popupElement: C0,
                containerWidth: se.value,
                animation: $e,
                transitionName: Te,
                dropdownStyle: De,
                dropdownClassName: ae,
                direction: Ee,
                dropdownMatchSelectWidth: ce,
                dropdownRender: pe,
                dropdownAlign: Se,
                placement: le,
                getPopupContainer: G,
                empty: br,
                getTriggerDOMNode: () => c.current,
                onPopupVisibleChange: ui,
                onPopupMouseEnter: q,
                onPopupFocusin: ee,
                onPopupFocusout: de
              },
              {
                default: () =>
                  Xn
                    ? Ft(Xn) && ft(Xn, { ref: c }, !1, !0)
                    : v(
                        K1,
                        N(
                          N({}, e),
                          {},
                          {
                            domRef: c,
                            prefixCls: U,
                            inputElement: ci,
                            ref: f,
                            id: ue,
                            showSearch: l.value,
                            mode: Pe,
                            activeDescendantId: Do,
                            tagRender: ke,
                            optionLabelRender: qe,
                            values: Sn,
                            open: y.value,
                            onToggleOpen: A,
                            activeValue: Un,
                            searchValue: O.value,
                            onSearch: M,
                            onSearchSubmit: j,
                            onRemove: D,
                            tokenWithEnter: z.value
                          }
                        ),
                        null
                      )
              }
            )
          let ia
          return (
            Xn
              ? (ia = md)
              : (ia = v(
                  'div',
                  N(
                    N({}, yr),
                    {},
                    {
                      class: $0,
                      ref: u,
                      onMousedown: Q,
                      onKeydown: L,
                      onKeyup: W
                    }
                  ),
                  [
                    h.value &&
                      !y.value &&
                      v(
                        'span',
                        {
                          style: {
                            width: 0,
                            height: 0,
                            position: 'absolute',
                            overflow: 'hidden',
                            opacity: 0
                          },
                          'aria-live': 'polite'
                        },
                        [
                          `${Sn.map(Yn => {
                            let { label: gd, value: w0 } = Yn
                            return ['number', 'string'].includes(typeof gd)
                              ? gd
                              : w0
                          }).join(', ')}`
                        ]
                      ),
                    md,
                    fi,
                    pi
                  ]
                )),
            ia
          )
        }
      )
    }
  }),
  Al = (e, t) => {
    let { height: n, offset: o, prefixCls: r, onInnerResize: i } = e,
      { slots: l } = t
    var a
    let s = {},
      u = { display: 'flex', flexDirection: 'column' }
    return (
      o !== void 0 &&
        ((s = { height: `${n}px`, position: 'relative', overflow: 'hidden' }),
        (u = p(p({}, u), {
          transform: `translateY(${o}px)`,
          position: 'absolute',
          left: 0,
          right: 0,
          top: 0
        }))),
      v('div', { style: s }, [
        v(
          Tn,
          {
            onResize: c => {
              let { offsetHeight: d } = c
              d && i && i()
            }
          },
          {
            default: () => [
              v('div', { style: u, class: oe({ [`${r}-holder-inner`]: r }) }, [
                (a = l.default) === null || a === void 0 ? void 0 : a.call(l)
              ])
            ]
          }
        )
      ])
    )
  }
Al.displayName = 'Filter'
Al.inheritAttrs = !1
Al.props = {
  prefixCls: String,
  height: Number,
  offset: Number,
  onInnerResize: Function
}
const Z1 = Al,
  dh = (e, t) => {
    let { setRef: n } = e,
      { slots: o } = t
    var r
    const i = yt((r = o.default) === null || r === void 0 ? void 0 : r.call(o))
    return i && i.length ? vo(i[0], { ref: n }) : i
  }
dh.props = { setRef: { type: Function, default: () => {} } }
const eT = dh,
  tT = 20
function zf(e) {
  return 'touches' in e ? e.touches[0].pageY : e.pageY
}
const nT = J({
  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: Yr(),
      thumbRef: Yr(),
      visibleTimeout: null,
      state: dt({ 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,
        Rt ? { passive: !1 } : !1
      ),
      (t = this.thumbRef.current) === null ||
        t === void 0 ||
        t.addEventListener(
          'touchstart',
          this.onMouseDown,
          Rt ? { 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()
    },
    patchEvents() {
      window.addEventListener('mousemove', this.onMouseMove),
        window.addEventListener('mouseup', this.onMouseUp),
        this.thumbRef.current.addEventListener(
          'touchmove',
          this.onMouseMove,
          Rt ? { 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,
          Rt ? { passive: !1 } : !1
        ),
        this.thumbRef.current &&
          (this.thumbRef.current.removeEventListener(
            'touchstart',
            this.onMouseDown,
            Rt ? { passive: !1 } : !1
          ),
          this.thumbRef.current.removeEventListener(
            'touchmove',
            this.onMouseMove,
            Rt ? { passive: !1 } : !1
          ),
          this.thumbRef.current.removeEventListener(
            'touchend',
            this.onMouseUp
          )),
        He.cancel(this.moveRaf)
    },
    onMouseDown(e) {
      const { onStartMove: t } = this.$props
      p(this.state, { dragging: !0, pageY: zf(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 ((He.cancel(this.moveRaf), t)) {
        const i = zf(e) - n,
          l = o + i,
          a = this.getEnableScrollRange(),
          s = this.getEnableHeightRange(),
          u = s ? l / s : 0,
          c = Math.ceil(u * a)
        this.moveRaf = He(() => {
          r(c)
        })
      }
    },
    onMouseUp() {
      const { onStopMove: e } = this.$props
      ;(this.state.dragging = !1), e(), this.removeEvents()
    },
    getSpinHeight() {
      const { height: e, scrollHeight: t } = this.$props
      let n = (e / t) * 100
      return (n = Math.max(n, tT)), (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
    },
    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(),
      l = i && t
    return v(
      'div',
      {
        ref: this.scrollbarRef,
        class: oe(`${n}-scrollbar`, { [`${n}-scrollbar-show`]: i }),
        style: {
          width: '8px',
          top: 0,
          bottom: 0,
          right: 0,
          position: 'absolute',
          display: l ? void 0 : 'none'
        },
        onMousedown: this.onContainerMouseDown,
        onMousemove: this.delayHidden
      },
      [
        v(
          'div',
          {
            ref: this.thumbRef,
            class: oe(`${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 oT(e, t, n, o) {
  const r = new Map(),
    i = new Map(),
    l = ne(Symbol('update'))
  ge(e, () => {
    l.value = Symbol('update')
  })
  let a
  function s() {
    He.cancel(a)
  }
  function u() {
    s(),
      (a = He(() => {
        r.forEach((d, f) => {
          if (d && d.offsetParent) {
            const { offsetHeight: m } = d
            i.get(f) !== m &&
              ((l.value = Symbol('update')), i.set(f, d.offsetHeight))
          }
        })
      }))
  }
  function c(d, f) {
    const m = t(d),
      g = r.get(m)
    f ? (r.set(m, f.$el || f), u()) : r.delete(m),
      !g != !f && (f ? n == null || n(d) : o == null || o(d))
  }
  return (
    Gn(() => {
      s()
    }),
    [c, u, i, l]
  )
}
function rT(e, t, n, o, r, i, l, a) {
  let s
  return u => {
    if (u == null) {
      a()
      return
    }
    He.cancel(s)
    const c = t.value,
      d = o.itemHeight
    if (typeof u == 'number') l(u)
    else if (u && typeof u == 'object') {
      let f
      const { align: m } = u
      'index' in u ? ({ index: f } = u) : (f = c.findIndex(b => r(b) === u.key))
      const { offset: g = 0 } = u,
        h = (b, S) => {
          if (b < 0 || !e.value) return
          const C = e.value.clientHeight
          let $ = !1,
            O = S
          if (C) {
            const x = S || m
            let w = 0,
              y = 0,
              T = 0
            const I = Math.min(c.length, f)
            for (let z = 0; z <= I; z += 1) {
              const M = r(c[z])
              y = w
              const j = n.get(M)
              ;(T = y + (j === void 0 ? d : j)),
                (w = T),
                z === f && j === void 0 && ($ = !0)
            }
            const _ = e.value.scrollTop
            let A = null
            switch (x) {
              case 'top':
                A = y - g
                break
              case 'bottom':
                A = T - C + g
                break
              default: {
                const z = _ + C
                y < _ ? (O = 'top') : T > z && (O = 'bottom')
              }
            }
            A !== null && A !== _ && l(A)
          }
          s = He(() => {
            $ && i(), h(b - 1, O)
          }, 2)
        }
      h(5)
    }
  }
}
const iT = typeof navigator == 'object' && /Firefox/i.test(navigator.userAgent),
  lT = iT,
  fh = (e, t) => {
    let n = !1,
      o = null
    function r() {
      clearTimeout(o),
        (n = !0),
        (o = setTimeout(() => {
          n = !1
        }, 50))
    }
    return function(i) {
      let l =
        arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
      const a = (i < 0 && e.value) || (i > 0 && t.value)
      return l && a ? (clearTimeout(o), (n = !1)) : (!a || n) && r(), !n && a
    }
  }
function aT(e, t, n, o) {
  let r = 0,
    i = null,
    l = null,
    a = !1
  const s = fh(t, n)
  function u(d) {
    if (!e.value) return
    He.cancel(i)
    const { deltaY: f } = d
    ;(r += f),
      (l = f),
      !s(f) &&
        (lT || d.preventDefault(),
        (i = He(() => {
          o(r * (a ? 10 : 1)), (r = 0)
        })))
  }
  function c(d) {
    e.value && (a = d.detail === l)
  }
  return [u, c]
}
const sT = 14 / 15
function cT(e, t, n) {
  let o = !1,
    r = 0,
    i = null,
    l = null
  const a = () => {
      i &&
        (i.removeEventListener('touchmove', s),
        i.removeEventListener('touchend', u))
    },
    s = f => {
      if (o) {
        const m = Math.ceil(f.touches[0].pageY)
        let g = r - m
        ;(r = m),
          n(g) && f.preventDefault(),
          clearInterval(l),
          (l = setInterval(() => {
            ;(g *= sT), (!n(g, !0) || Math.abs(g) <= 0.1) && clearInterval(l)
          }, 16))
      }
    },
    u = () => {
      ;(o = !1), a()
    },
    c = f => {
      a(),
        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', u))
    },
    d = () => {}
  We(() => {
    document.addEventListener('touchmove', d, { passive: !1 }),
      ge(
        e,
        f => {
          t.value.removeEventListener('touchstart', c),
            a(),
            clearInterval(l),
            f && t.value.addEventListener('touchstart', c, { passive: !1 })
        },
        { immediate: !0 }
      )
  }),
    Qe(() => {
      document.removeEventListener('touchmove', d)
    })
}
var uT =
  (globalThis && globalThis.__rest) ||
  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 dT = [],
  fT = { overflowY: 'auto', overflowAnchor: 'none' }
function pT(e, t, n, o, r, i) {
  let { getKey: l } = i
  return e.slice(t, n + 1).map((a, s) => {
    const u = t + s,
      c = r(a, u, {}),
      d = l(a)
    return v(eT, { key: d, setRef: f => o(a, f) }, { default: () => [c] })
  })
}
const vT = J({
    compatConfig: { MODE: 3 },
    name: 'List',
    inheritAttrs: !1,
    props: {
      prefixCls: String,
      data: k.array,
      height: Number,
      itemHeight: Number,
      fullHeight: { type: Boolean, default: void 0 },
      itemKey: { type: [String, Number, Function], required: !0 },
      component: { type: [String, Object] },
      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 = P(() => {
          const { height: D, itemHeight: F, virtual: H } = e
          return !!(H !== !1 && D && F)
        }),
        r = P(() => {
          const { height: D, itemHeight: F, data: H } = e
          return o.value && H && F * H.length > D
        }),
        i = dt({ scrollTop: 0, scrollMoving: !1 }),
        l = P(() => e.data || dT),
        a = V([])
      ge(
        l,
        () => {
          a.value = vn(l.value).slice()
        },
        { immediate: !0 }
      )
      const s = V(D => {})
      ge(
        () => e.itemKey,
        D => {
          typeof D == 'function'
            ? (s.value = D)
            : (s.value = F => (F == null ? void 0 : F[D]))
        },
        { immediate: !0 }
      )
      const u = V(),
        c = V(),
        d = V(),
        f = D => s.value(D),
        m = { getKey: f }
      function g(D) {
        let F
        typeof D == 'function' ? (F = D(i.scrollTop)) : (F = D)
        const H = w(F)
        u.value && (u.value.scrollTop = H), (i.scrollTop = H)
      }
      const [h, b, S, C] = oT(a, f, null, null),
        $ = dt({ scrollHeight: void 0, start: 0, end: 0, offset: void 0 }),
        O = V(0)
      We(() => {
        it(() => {
          var D
          O.value =
            ((D = c.value) === null || D === void 0
              ? void 0
              : D.offsetHeight) || 0
        })
      }),
        An(() => {
          it(() => {
            var D
            O.value =
              ((D = c.value) === null || D === void 0
                ? void 0
                : D.offsetHeight) || 0
          })
        }),
        ge(
          [o, a],
          () => {
            o.value ||
              p($, {
                scrollHeight: void 0,
                start: 0,
                end: a.value.length - 1,
                offset: void 0
              })
          },
          { immediate: !0 }
        ),
        ge(
          [o, a, O, r],
          () => {
            o.value &&
              !r.value &&
              p($, {
                scrollHeight: O.value,
                start: 0,
                end: a.value.length - 1,
                offset: void 0
              }),
              u.value && (i.scrollTop = u.value.scrollTop)
          },
          { immediate: !0 }
        ),
        ge(
          [r, o, () => i.scrollTop, a, C, () => e.height, O],
          () => {
            if (!o.value || !r.value) return
            let D = 0,
              F,
              H,
              B
            const X = a.value.length,
              ee = a.value,
              de = i.scrollTop,
              { itemHeight: ie, height: Q } = e,
              se = de + Q
            for (let q = 0; q < X; q += 1) {
              const K = ee[q],
                U = f(K)
              let ue = S.get(U)
              ue === void 0 && (ue = ie)
              const me = D + ue
              F === void 0 && me >= de && ((F = q), (H = D)),
                B === void 0 && me > se && (B = q),
                (D = me)
            }
            F === void 0 && ((F = 0), (H = 0), (B = Math.ceil(Q / ie))),
              B === void 0 && (B = X - 1),
              (B = Math.min(B + 1, X)),
              p($, { scrollHeight: D, start: F, end: B, offset: H })
          },
          { immediate: !0 }
        )
      const x = P(() => $.scrollHeight - e.height)
      function w(D) {
        let F = D
        return (
          Number.isNaN(x.value) || (F = Math.min(F, x.value)),
          (F = Math.max(F, 0)),
          F
        )
      }
      const y = P(() => i.scrollTop <= 0),
        T = P(() => i.scrollTop >= x.value),
        I = fh(y, T)
      function _(D) {
        g(D)
      }
      function A(D) {
        var F
        const { scrollTop: H } = D.currentTarget
        H !== i.scrollTop && g(H),
          (F = e.onScroll) === null || F === void 0 || F.call(e, D)
      }
      const [z, M] = aT(o, y, T, D => {
        g(F => F + D)
      })
      cT(o, u, (D, F) =>
        I(D, F) ? !1 : (z({ preventDefault() {}, deltaY: D }), !0)
      )
      function j(D) {
        o.value && D.preventDefault()
      }
      const E = () => {
        u.value &&
          (u.value.removeEventListener('wheel', z, Rt ? { passive: !1 } : !1),
          u.value.removeEventListener('DOMMouseScroll', M),
          u.value.removeEventListener('MozMousePixelScroll', j))
      }
      Me(() => {
        it(() => {
          u.value &&
            (E(),
            u.value.addEventListener('wheel', z, Rt ? { passive: !1 } : !1),
            u.value.addEventListener('DOMMouseScroll', M),
            u.value.addEventListener('MozMousePixelScroll', j))
        })
      }),
        Qe(() => {
          E()
        })
      const R = rT(u, a, S, e, f, b, g, () => {
        var D
        ;(D = d.value) === null || D === void 0 || D.delayHidden()
      })
      n({ scrollTo: R })
      const L = P(() => {
        let D = null
        return (
          e.height &&
            ((D = p(
              { [e.fullHeight ? 'height' : 'maxHeight']: e.height + 'px' },
              fT
            )),
            o.value &&
              ((D.overflowY = 'hidden'),
              i.scrollMoving && (D.pointerEvents = 'none'))),
          D
        )
      })
      return (
        ge(
          [() => $.start, () => $.end, a],
          () => {
            if (e.onVisibleChange) {
              const D = a.value.slice($.start, $.end + 1)
              e.onVisibleChange(D, a.value)
            }
          },
          { flush: 'post' }
        ),
        {
          state: i,
          mergedData: a,
          componentStyle: L,
          onFallbackScroll: A,
          onScrollBar: _,
          componentRef: u,
          useVirtual: o,
          calRes: $,
          collectHeight: b,
          setInstance: h,
          sharedConfig: m,
          scrollBarRef: d,
          fillerInnerRef: c,
          delayHideScrollBar: () => {
            var D
            ;(D = d.value) === null || D === void 0 || D.delayHidden()
          }
        }
      )
    },
    render() {
      const e = p(p({}, this.$props), this.$attrs),
        {
          prefixCls: t = 'rc-virtual-list',
          height: n,
          itemHeight: o,
          fullHeight: r,
          data: i,
          itemKey: l,
          virtual: a,
          component: s = 'div',
          onScroll: u,
          children: c = this.$slots.default,
          style: d,
          class: f
        } = e,
        m = uT(e, [
          'prefixCls',
          'height',
          'itemHeight',
          'fullHeight',
          'data',
          'itemKey',
          'virtual',
          'component',
          'onScroll',
          'children',
          'style',
          'class'
        ]),
        g = oe(t, f),
        { scrollTop: h } = this.state,
        { scrollHeight: b, offset: S, start: C, end: $ } = this.calRes,
        {
          componentStyle: O,
          onFallbackScroll: x,
          onScrollBar: w,
          useVirtual: y,
          collectHeight: T,
          sharedConfig: I,
          setInstance: _,
          mergedData: A,
          delayHideScrollBar: z
        } = this
      return v(
        'div',
        N({ style: p(p({}, d), { position: 'relative' }), class: g }, m),
        [
          v(
            s,
            {
              class: `${t}-holder`,
              style: O,
              ref: 'componentRef',
              onScroll: x,
              onMouseenter: z
            },
            {
              default: () => [
                v(
                  Z1,
                  {
                    prefixCls: t,
                    height: b,
                    offset: S,
                    onInnerResize: T,
                    ref: 'fillerInnerRef'
                  },
                  { default: () => pT(A, C, $, _, c, I) }
                )
              ]
            }
          ),
          y &&
            v(
              nT,
              {
                ref: 'scrollBarRef',
                prefixCls: t,
                scrollTop: h,
                height: n,
                scrollHeight: b,
                count: A.length,
                onScroll: w,
                onStartMove: () => {
                  this.state.scrollMoving = !0
                },
                onStopMove: () => {
                  this.state.scrollMoving = !1
                }
              },
              null
            )
        ]
      )
    }
  }),
  ph = vT
function mT(e, t, n) {
  const o = ne(e())
  return (
    ge(t, (r, i) => {
      n ? n(r, i) && (o.value = e()) : (o.value = e())
    }),
    o
  )
}
function gT() {
  return /(mac\sos|macintosh)/i.test(navigator.appVersion)
}
const vh = Symbol('SelectContextKey')
function hT(e) {
  return Ye(vh, e)
}
function bT() {
  return Ue(vh, {})
}
var yT =
  (globalThis && globalThis.__rest) ||
  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 Lf(e) {
  return typeof e == 'string' || typeof e == 'number'
}
const ST = J({
    compatConfig: { MODE: 3 },
    name: 'OptionList',
    inheritAttrs: !1,
    setup(e, t) {
      let { expose: n, slots: o } = t
      const r = U1(),
        i = bT(),
        l = P(() => `${r.prefixCls}-item`),
        a = mT(
          () => i.flattenOptions,
          [() => r.open, () => i.flattenOptions],
          x => x[0]
        ),
        s = Yr(),
        u = x => {
          x.preventDefault()
        },
        c = x => {
          s.current &&
            s.current.scrollTo(typeof x == 'number' ? { index: x } : x)
        },
        d = function(x) {
          let w =
            arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1
          const y = a.value.length
          for (let T = 0; T < y; T += 1) {
            const I = (x + T * w + y) % y,
              { group: _, data: A } = a.value[I]
            if (!_ && !A.disabled) return I
          }
          return -1
        },
        f = dt({ activeIndex: d(0) }),
        m = function(x) {
          let w =
            arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
          f.activeIndex = x
          const y = { source: w ? 'keyboard' : 'mouse' },
            T = a.value[x]
          if (!T) {
            i.onActiveValue(null, -1, y)
            return
          }
          i.onActiveValue(T.value, x, y)
        }
      ge(
        [() => a.value.length, () => r.searchValue],
        () => {
          m(i.defaultActiveFirstOption !== !1 ? d(0) : -1)
        },
        { immediate: !0 }
      )
      const g = x => i.rawValues.has(x) && r.mode !== 'combobox'
      ge(
        [() => r.open, () => r.searchValue],
        () => {
          if (!r.multiple && r.open && i.rawValues.size === 1) {
            const x = Array.from(i.rawValues)[0],
              w = vn(a.value).findIndex(y => {
                let { data: T } = y
                return T[i.fieldNames.value] === x
              })
            w !== -1 &&
              (m(w),
              it(() => {
                c(w)
              }))
          }
          r.open &&
            it(() => {
              var x
              ;(x = s.current) === null || x === void 0 || x.scrollTo(void 0)
            })
        },
        { immediate: !0, flush: 'post' }
      )
      const h = x => {
          x !== void 0 && i.onSelect(x, { selected: !i.rawValues.has(x) }),
            r.multiple || r.toggleOpen(!1)
        },
        b = x => (typeof x.label == 'function' ? x.label() : x.label)
      function S(x) {
        const w = a.value[x]
        if (!w) return null
        const y = w.data || {},
          { value: T } = y,
          { group: I } = w,
          _ = fr(y, !0),
          A = b(w)
        return w
          ? v(
              'div',
              N(
                N({ 'aria-label': typeof A == 'string' && !I ? A : null }, _),
                {},
                {
                  key: x,
                  role: I ? 'presentation' : 'option',
                  id: `${r.id}_list_${x}`,
                  'aria-selected': g(T)
                }
              ),
              [T]
            )
          : null
      }
      return (
        n({
          onKeydown: x => {
            const { which: w, ctrlKey: y } = x
            switch (w) {
              case Oe.N:
              case Oe.P:
              case Oe.UP:
              case Oe.DOWN: {
                let T = 0
                if (
                  (w === Oe.UP
                    ? (T = -1)
                    : w === Oe.DOWN
                    ? (T = 1)
                    : gT() &&
                      y &&
                      (w === Oe.N ? (T = 1) : w === Oe.P && (T = -1)),
                  T !== 0)
                ) {
                  const I = d(f.activeIndex + T, T)
                  c(I), m(I, !0)
                }
                break
              }
              case Oe.ENTER: {
                const T = a.value[f.activeIndex]
                T && !T.data.disabled ? h(T.value) : h(void 0),
                  r.open && x.preventDefault()
                break
              }
              case Oe.ESC:
                r.toggleOpen(!1), r.open && x.stopPropagation()
            }
          },
          onKeyup: () => {},
          scrollTo: x => {
            c(x)
          }
        }),
        () => {
          const { id: x, notFoundContent: w, onPopupScroll: y } = r,
            {
              menuItemSelectedIcon: T,
              fieldNames: I,
              virtual: _,
              listHeight: A,
              listItemHeight: z
            } = i,
            M = o.option,
            { activeIndex: j } = f,
            E = Object.keys(I).map(R => I[R])
          return a.value.length === 0
            ? v(
                'div',
                {
                  role: 'listbox',
                  id: `${x}_list`,
                  class: `${l.value}-empty`,
                  onMousedown: u
                },
                [w]
              )
            : v(nt, null, [
                v(
                  'div',
                  {
                    role: 'listbox',
                    id: `${x}_list`,
                    style: { height: 0, width: 0, overflow: 'hidden' }
                  },
                  [S(j - 1), S(j), S(j + 1)]
                ),
                v(
                  ph,
                  {
                    itemKey: 'key',
                    ref: s,
                    data: a.value,
                    height: A,
                    itemHeight: z,
                    fullHeight: !1,
                    onMousedown: u,
                    onScroll: y,
                    virtual: _
                  },
                  {
                    default: (R, L) => {
                      var W
                      const { group: D, groupOption: F, data: H, value: B } = R,
                        { key: X } = H,
                        ee = typeof R.label == 'function' ? R.label() : R.label
                      if (D) {
                        const fe =
                          (W = H.title) !== null && W !== void 0
                            ? W
                            : Lf(ee) && ee
                        return v(
                          'div',
                          { class: oe(l.value, `${l.value}-group`), title: fe },
                          [M ? M(H) : ee !== void 0 ? ee : X]
                        )
                      }
                      const {
                          disabled: de,
                          title: ie,
                          children: Q,
                          style: se,
                          class: q,
                          className: K
                        } = H,
                        U = yT(H, [
                          'disabled',
                          'title',
                          'children',
                          'style',
                          'class',
                          'className'
                        ]),
                        ue = rt(U, E),
                        me = g(B),
                        he = `${l.value}-option`,
                        Pe = oe(l.value, he, q, K, {
                          [`${he}-grouped`]: F,
                          [`${he}-active`]: j === L && !de,
                          [`${he}-disabled`]: de,
                          [`${he}-selected`]: me
                        }),
                        ve = b(R),
                        ye = !T || typeof T == 'function' || me,
                        te = typeof ve == 'number' ? ve : ve || B
                      let Z = Lf(te) ? te.toString() : void 0
                      return (
                        ie !== void 0 && (Z = ie),
                        v(
                          'div',
                          N(
                            N({}, ue),
                            {},
                            {
                              'aria-selected': me,
                              class: Pe,
                              title: Z,
                              onMousemove: fe => {
                                U.onMousemove && U.onMousemove(fe),
                                  !(j === L || de) && m(L)
                              },
                              onClick: fe => {
                                de || h(B), U.onClick && U.onClick(fe)
                              },
                              style: se
                            }
                          ),
                          [
                            v('div', { class: `${he}-content` }, [
                              M ? M(H) : te
                            ]),
                            Ft(T) || me,
                            ye &&
                              v(
                                el,
                                {
                                  class: `${l.value}-option-state`,
                                  customizeIcon: T,
                                  customizeIconProps: { isSelected: me }
                                },
                                { default: () => [me ? '✓' : null] }
                              )
                          ]
                        )
                      )
                    }
                  }
                )
              ])
        }
      )
    }
  }),
  xT = ST
var CT =
  (globalThis && globalThis.__rest) ||
  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 $T(e) {
  const t = e,
    { key: n, children: o } = t,
    r = t.props,
    { value: i, disabled: l } = r,
    a = CT(r, ['value', 'disabled']),
    s = o == null ? void 0 : o.default
  return p(
    {
      key: n,
      value: i !== void 0 ? i : n,
      children: s,
      disabled: l || l === ''
    },
    a
  )
}
function mh(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
  return yt(e)
    .map((o, r) => {
      var i
      if (!Ft(o) || !o.type) return null
      const {
        type: { isSelectOptGroup: l },
        key: a,
        children: s,
        props: u
      } = o
      if (t || !l) return $T(o)
      const c = s && s.default ? s.default() : void 0,
        d =
          (u == null ? void 0 : u.label) ||
          ((i = s.label) === null || i === void 0 ? void 0 : i.call(s)) ||
          a
      return p(
        p({ key: `__RC_SELECT_GRP__${a === null ? r : String(a)}__` }, u),
        { label: d, options: mh(c || []) }
      )
    })
    .filter(o => o)
}
function wT(e, t, n) {
  const o = V(),
    r = V(),
    i = V(),
    l = V([])
  return (
    ge(
      [e, t],
      () => {
        e.value ? (l.value = vn(e.value).slice()) : (l.value = mh(t.value))
      },
      { immediate: !0, deep: !0 }
    ),
    Me(() => {
      const a = l.value,
        s = new Map(),
        u = new Map(),
        c = n.value
      function d(f) {
        let m =
          arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
        for (let g = 0; g < f.length; g += 1) {
          const h = f[g]
          !h[c.options] || m
            ? (s.set(h[c.value], h), u.set(h[c.label], h))
            : d(h[c.options], !0)
        }
      }
      d(a), (o.value = a), (r.value = s), (i.value = u)
    }),
    { options: o, valueOptions: r, labelOptions: i }
  )
}
let Ff = 0
const OT = Ht()
function PT() {
  let e
  return OT ? ((e = Ff), (Ff += 1)) : (e = 'TEST_OR_SSR'), e
}
function TT() {
  let e =
    arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ne('')
  const t = `rc_select_${PT()}`
  return e.value || t
}
function gh(e) {
  return Array.isArray(e) ? e : e !== void 0 ? [e] : []
}
function Sa(e, t) {
  return gh(e)
    .join('')
    .toUpperCase()
    .includes(t)
}
const IT = (e, t, n, o, r) =>
    P(() => {
      const i = n.value,
        l = r == null ? void 0 : r.value,
        a = o == null ? void 0 : o.value
      if (!i || a === !1) return e.value
      const { options: s, label: u, value: c } = t.value,
        d = [],
        f = typeof a == 'function',
        m = i.toUpperCase(),
        g = f
          ? a
          : (b, S) =>
              l
                ? Sa(S[l], m)
                : S[s]
                ? Sa(S[u !== 'children' ? u : 'label'], m)
                : Sa(S[c], m),
        h = f ? b => ds(b) : b => b
      return (
        e.value.forEach(b => {
          if (b[s]) {
            if (g(i, h(b))) d.push(b)
            else {
              const C = b[s].filter($ => g(i, h($)))
              C.length && d.push(p(p({}, b), { [s]: C }))
            }
            return
          }
          g(i, h(b)) && d.push(b)
        }),
        d
      )
    }),
  ET = (e, t) => {
    const n = V({ values: new Map(), options: new Map() })
    return [
      P(() => {
        const { values: i, options: l } = n.value,
          a = e.value.map(c => {
            var d
            return c.label === void 0
              ? p(p({}, c), {
                  label:
                    (d = i.get(c.value)) === null || d === void 0
                      ? void 0
                      : d.label
                })
              : c
          }),
          s = new Map(),
          u = new Map()
        return (
          a.forEach(c => {
            s.set(c.value, c),
              u.set(c.value, t.value.get(c.value) || l.get(c.value))
          }),
          (n.value.values = s),
          (n.value.options = u),
          a
        )
      }),
      i => t.value.get(i) || n.value.options.get(i)
    ]
  }
function So(e, t) {
  const { defaultValue: n, value: o = ne() } = t || {}
  let r = typeof e == 'function' ? e() : e
  o.value !== void 0 && (r = ze(o)),
    n !== void 0 && (r = typeof n == 'function' ? n() : n)
  const i = ne(r),
    l = ne(r)
  Me(() => {
    let s = o.value !== void 0 ? o.value : i.value
    t.postState && (s = t.postState(s)), (l.value = s)
  })
  function a(s) {
    const u = l.value
    ;(i.value = s), vn(l.value) !== s && t.onChange && t.onChange(s, u)
  }
  return (
    ge(o, () => {
      i.value = o.value
    }),
    [l, a]
  )
}
function tt(e) {
  const t = typeof e == 'function' ? e() : e,
    n = ne(t)
  function o(r) {
    n.value = r
  }
  return [n, o]
}
const _T = ['inputValue']
function hh() {
  return p(p({}, ch()), {
    prefixCls: String,
    id: String,
    backfill: { type: Boolean, default: void 0 },
    fieldNames: Object,
    inputValue: String,
    searchValue: String,
    onSearch: Function,
    autoClearSearchValue: { type: Boolean, default: void 0 },
    onSelect: Function,
    onDeselect: Function,
    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,
    menuItemSelectedIcon: k.any,
    mode: String,
    labelInValue: { type: Boolean, default: void 0 },
    value: k.any,
    defaultValue: k.any,
    onChange: Function,
    children: Array
  })
}
function RT(e) {
  return !e || typeof e != 'object'
}
const AT = J({
    compatConfig: { MODE: 3 },
    name: 'VcSelect',
    inheritAttrs: !1,
    props: mt(hh(), {
      prefixCls: 'vc-select',
      autoClearSearchValue: !0,
      listHeight: 200,
      listItemHeight: 20,
      dropdownMatchSelectWidth: !0
    }),
    setup(e, t) {
      let { expose: n, attrs: o, slots: r } = t
      const i = TT(ot(e, 'id')),
        l = P(() => uh(e.mode)),
        a = P(() => !!(!e.options && e.children)),
        s = P(() =>
          e.filterOption === void 0 && e.mode === 'combobox'
            ? !1
            : e.filterOption
        ),
        u = P(() => $g(e.fieldNames, a.value)),
        [c, d] = So('', {
          value: P(() =>
            e.searchValue !== void 0 ? e.searchValue : e.inputValue
          ),
          postState: q => q || ''
        }),
        f = wT(ot(e, 'options'), ot(e, 'children'), u),
        { valueOptions: m, labelOptions: g, options: h } = f,
        b = q =>
          gh(q).map(U => {
            var ue, me
            let he, Pe, ve, ye
            RT(U)
              ? (he = U)
              : ((ve = U.key),
                (Pe = U.label),
                (he = (ue = U.value) !== null && ue !== void 0 ? ue : ve))
            const te = m.value.get(he)
            return (
              te &&
                (Pe === void 0 &&
                  (Pe =
                    te == null
                      ? void 0
                      : te[e.optionLabelProp || u.value.label]),
                ve === void 0 &&
                  (ve =
                    (me = te == null ? void 0 : te.key) !== null &&
                    me !== void 0
                      ? me
                      : he),
                (ye = te == null ? void 0 : te.disabled)),
              { label: Pe, value: he, key: ve, disabled: ye, option: te }
            )
          }),
        [S, C] = So(e.defaultValue, { value: ot(e, 'value') }),
        $ = P(() => {
          var q
          const K = b(S.value)
          return e.mode === 'combobox' &&
            !(!((q = K[0]) === null || q === void 0) && q.value)
            ? []
            : K
        }),
        [O, x] = ET($, m),
        w = P(() => {
          if (!e.mode && O.value.length === 1) {
            const q = O.value[0]
            if (q.value === null && (q.label === null || q.label === void 0))
              return []
          }
          return O.value.map(q => {
            var K
            return p(p({}, q), {
              label:
                (K = typeof q.label == 'function' ? q.label() : q.label) !==
                  null && K !== void 0
                  ? K
                  : q.value
            })
          })
        }),
        y = P(() => new Set(O.value.map(q => q.value)))
      Me(
        () => {
          var q
          if (e.mode === 'combobox') {
            const K =
              (q = O.value[0]) === null || q === void 0 ? void 0 : q.value
            K != null && d(String(K))
          }
        },
        { flush: 'post' }
      )
      const T = (q, K) => {
          const U = K ?? q
          return { [u.value.value]: q, [u.value.label]: U }
        },
        I = V()
      Me(() => {
        if (e.mode !== 'tags') {
          I.value = h.value
          return
        }
        const q = h.value.slice(),
          K = U => m.value.has(U)
        ;[...O.value]
          .sort((U, ue) => (U.value < ue.value ? -1 : 1))
          .forEach(U => {
            const ue = U.value
            K(ue) || q.push(T(ue, U.label))
          }),
          (I.value = q)
      })
      const _ = IT(I, u, c, s, ot(e, 'optionFilterProp')),
        A = P(() =>
          e.mode !== 'tags' ||
          !c.value ||
          _.value.some(q => q[e.optionFilterProp || 'value'] === c.value)
            ? _.value
            : [T(c.value), ..._.value]
        ),
        z = P(() =>
          e.filterSort
            ? [...A.value].sort((q, K) => e.filterSort(q, K))
            : A.value
        ),
        M = P(() =>
          p$(z.value, { fieldNames: u.value, childrenAsData: a.value })
        ),
        j = q => {
          const K = b(q)
          if (
            (C(K),
            e.onChange &&
              (K.length !== O.value.length ||
                K.some((U, ue) => {
                  var me
                  return (
                    ((me = O.value[ue]) === null || me === void 0
                      ? void 0
                      : me.value) !== (U == null ? void 0 : U.value)
                  )
                })))
          ) {
            const U = e.labelInValue
                ? K.map(me =>
                    p(p({}, me), {
                      originLabel: me.label,
                      label:
                        typeof me.label == 'function' ? me.label() : me.label
                    })
                  )
                : K.map(me => me.value),
              ue = K.map(me => ds(x(me.value)))
            e.onChange(l.value ? U : U[0], l.value ? ue : ue[0])
          }
        },
        [E, R] = tt(null),
        [L, W] = tt(0),
        D = P(() =>
          e.defaultActiveFirstOption !== void 0
            ? e.defaultActiveFirstOption
            : e.mode !== 'combobox'
        ),
        F = function(q, K) {
          let { source: U = 'keyboard' } =
            arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}
          W(K),
            e.backfill &&
              e.mode === 'combobox' &&
              q !== null &&
              U === 'keyboard' &&
              R(String(q))
        },
        H = (q, K) => {
          const U = () => {
            var ue
            const me = x(q),
              he = me == null ? void 0 : me[u.value.label]
            return [
              e.labelInValue
                ? {
                    label: typeof he == 'function' ? he() : he,
                    originLabel: he,
                    value: q,
                    key:
                      (ue = me == null ? void 0 : me.key) !== null &&
                      ue !== void 0
                        ? ue
                        : q
                  }
                : q,
              ds(me)
            ]
          }
          if (K && e.onSelect) {
            const [ue, me] = U()
            e.onSelect(ue, me)
          } else if (!K && e.onDeselect) {
            const [ue, me] = U()
            e.onDeselect(ue, me)
          }
        },
        B = (q, K) => {
          let U
          const ue = l.value ? K.selected : !0
          ue
            ? (U = l.value ? [...O.value, q] : [q])
            : (U = O.value.filter(me => me.value !== q)),
            j(U),
            H(q, ue),
            e.mode === 'combobox'
              ? R('')
              : (!l.value || e.autoClearSearchValue) && (d(''), R(''))
        },
        X = (q, K) => {
          j(q),
            (K.type === 'remove' || K.type === 'clear') &&
              K.values.forEach(U => {
                H(U.value, !1)
              })
        },
        ee = (q, K) => {
          var U
          if ((d(q), R(null), K.source === 'submit')) {
            const ue = (q || '').trim()
            if (ue) {
              const me = Array.from(new Set([...y.value, ue]))
              j(me), H(ue, !0), d('')
            }
            return
          }
          K.source !== 'blur' &&
            (e.mode === 'combobox' && j(q),
            (U = e.onSearch) === null || U === void 0 || U.call(e, q))
        },
        de = q => {
          let K = q
          e.mode !== 'tags' &&
            (K = q
              .map(ue => {
                const me = g.value.get(ue)
                return me == null ? void 0 : me.value
              })
              .filter(ue => ue !== void 0))
          const U = Array.from(new Set([...y.value, ...K]))
          j(U),
            U.forEach(ue => {
              H(ue, !0)
            })
        },
        ie = P(() => e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1)
      hT(
        sh(
          p(p({}, f), {
            flattenOptions: M,
            onActiveValue: F,
            defaultActiveFirstOption: D,
            onSelect: B,
            menuItemSelectedIcon: ot(e, 'menuItemSelectedIcon'),
            rawValues: y,
            fieldNames: u,
            virtual: ie,
            listHeight: ot(e, 'listHeight'),
            listItemHeight: ot(e, 'listItemHeight'),
            childrenAsData: a
          })
        )
      )
      const Q = ne()
      n({
        focus() {
          var q
          ;(q = Q.value) === null || q === void 0 || q.focus()
        },
        blur() {
          var q
          ;(q = Q.value) === null || q === void 0 || q.blur()
        },
        scrollTo(q) {
          var K
          ;(K = Q.value) === null || K === void 0 || K.scrollTo(q)
        }
      })
      const se = P(() =>
        rt(e, [
          'id',
          'mode',
          'prefixCls',
          'backfill',
          'fieldNames',
          'inputValue',
          'searchValue',
          'onSearch',
          'autoClearSearchValue',
          'onSelect',
          'onDeselect',
          'dropdownMatchSelectWidth',
          'filterOption',
          'filterSort',
          'optionFilterProp',
          'optionLabelProp',
          'options',
          'children',
          'defaultActiveFirstOption',
          'menuItemSelectedIcon',
          'virtual',
          'listHeight',
          'listItemHeight',
          'value',
          'defaultValue',
          'labelInValue',
          'onChange'
        ])
      )
      return () =>
        v(
          Q1,
          N(
            N(N({}, se.value), o),
            {},
            {
              id: i,
              prefixCls: e.prefixCls,
              ref: Q,
              omitDomProps: _T,
              mode: e.mode,
              displayValues: w.value,
              onDisplayValuesChange: X,
              searchValue: c.value,
              onSearch: ee,
              onSearchSplit: de,
              dropdownMatchSelectWidth: e.dropdownMatchSelectWidth,
              OptionList: xT,
              emptyOptions: !M.value.length,
              activeValue: E.value,
              activeDescendantId: `${i}_list_${L.value}`
            }
          ),
          r
        )
    }
  }),
  Kc = () => null
Kc.isSelectOption = !0
Kc.displayName = 'ASelectOption'
const DT = Kc,
  Wc = () => null
Wc.isSelectOptGroup = !0
Wc.displayName = 'ASelectOptGroup'
const MT = Wc
var NT = Symbol('iconContext'),
  bh = function() {
    return Ue(NT, {
      prefixCls: ne('anticon'),
      rootClassName: ne(''),
      csp: ne()
    })
  }
function BT() {
  return !!(
    typeof window < 'u' &&
    window.document &&
    window.document.createElement
  )
}
function zT(e, t) {
  return e && e.contains ? e.contains(t) : !1
}
var Hf = 'data-vc-order',
  LT = 'vc-icon-key',
  xs = new Map()
function yh() {
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
    t = e.mark
  return t ? (t.startsWith('data-') ? t : 'data-'.concat(t)) : LT
}
function Vc(e) {
  if (e.attachTo) return e.attachTo
  var t = document.querySelector('head')
  return t || document.body
}
function FT(e) {
  return e === 'queue' ? 'prependQueue' : e ? 'prepend' : 'append'
}
function Sh(e) {
  return Array.from((xs.get(e) || e).children).filter(function(t) {
    return t.tagName === 'STYLE'
  })
}
function xh(e) {
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  if (!BT()) return null
  var n = t.csp,
    o = t.prepend,
    r = document.createElement('style')
  r.setAttribute(Hf, FT(o)),
    n && n.nonce && (r.nonce = n.nonce),
    (r.innerHTML = e)
  var i = Vc(t),
    l = i.firstChild
  if (o) {
    if (o === 'queue') {
      var a = Sh(i).filter(function(s) {
        return ['prepend', 'prependQueue'].includes(s.getAttribute(Hf))
      })
      if (a.length) return i.insertBefore(r, a[a.length - 1].nextSibling), r
    }
    i.insertBefore(r, l)
  } else i.appendChild(r)
  return r
}
function HT(e) {
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
    n = Vc(t)
  return Sh(n).find(function(o) {
    return o.getAttribute(yh(t)) === e
  })
}
function kT(e, t) {
  var n = xs.get(e)
  if (!n || !zT(document, n)) {
    var o = xh('', t),
      r = o.parentNode
    xs.set(e, r), e.removeChild(o)
  }
}
function jT(e, t) {
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
    o = Vc(n)
  kT(o, n)
  var r = HT(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 = xh(e, n)
  return i.setAttribute(yh(n), t), i
}
function kf(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) {
        KT(e, r, n[r])
      })
  }
  return e
}
function KT(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
function jf(e) {
  return (
    typeof e == 'object' &&
    typeof e.name == 'string' &&
    typeof e.theme == 'string' &&
    (typeof e.icon == 'object' || typeof e.icon == 'function')
  )
}
function Cs(e, t, n) {
  return n
    ? lt(
        e.tag,
        kf({ key: t }, n, e.attrs),
        (e.children || []).map(function(o, r) {
          return Cs(
            o,
            ''
              .concat(t, '-')
              .concat(e.tag, '-')
              .concat(r)
          )
        })
      )
    : lt(
        e.tag,
        kf({ key: t }, e.attrs),
        (e.children || []).map(function(o, r) {
          return Cs(
            o,
            ''
              .concat(t, '-')
              .concat(e.tag, '-')
              .concat(r)
          )
        })
      )
}
function Ch(e) {
  return zr(e)[0]
}
function $h(e) {
  return e ? (Array.isArray(e) ? e : [e]) : []
}
var WT = `
.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 wh(e) {
  return e && e.getRootNode && e.getRootNode()
}
function VT(e) {
  return wh(e) instanceof ShadowRoot
}
function GT(e) {
  return VT(e) ? wh(e) : null
}
var UT = function() {
    var t = bh(),
      n = t.prefixCls,
      o = t.csp,
      r = tn(),
      i = WT
    n && (i = i.replace(/anticon/g, n.value)),
      it(function() {
        var l = r.vnode.el,
          a = GT(l)
        jT(i, '@ant-design-vue-icons', {
          prepend: !0,
          csp: o.value,
          attachTo: a
        })
      })
  },
  XT = ['icon', 'primaryColor', 'secondaryColor']
function qT(e, t) {
  if (e == null) return {}
  var n = YT(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 YT(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 Di(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) {
        JT(e, r, n[r])
      })
  }
  return e
}
function JT(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Rr = { primaryColor: '#333', secondaryColor: '#E6E6E6', calculated: !1 }
function QT(e) {
  var t = e.primaryColor,
    n = e.secondaryColor
  ;(Rr.primaryColor = t),
    (Rr.secondaryColor = n || Ch(t)),
    (Rr.calculated = !!n)
}
function ZT() {
  return Di({}, Rr)
}
var pr = function(t, n) {
  var o = Di({}, t, n.attrs),
    r = o.icon,
    i = o.primaryColor,
    l = o.secondaryColor,
    a = qT(o, XT),
    s = Rr
  if (
    (i && (s = { primaryColor: i, secondaryColor: l || Ch(i) }), jf(r), !jf(r))
  )
    return null
  var u = r
  return (
    u &&
      typeof u.icon == 'function' &&
      (u = Di({}, u, { icon: u.icon(s.primaryColor, s.secondaryColor) })),
    Cs(
      u.icon,
      'svg-'.concat(u.name),
      Di({}, a, {
        'data-icon': u.name,
        width: '1em',
        height: '1em',
        fill: 'currentColor',
        'aria-hidden': 'true'
      })
    )
  )
}
pr.props = {
  icon: Object,
  primaryColor: String,
  secondaryColor: String,
  focusable: String
}
pr.inheritAttrs = !1
pr.displayName = 'IconBase'
pr.getTwoToneColors = ZT
pr.setTwoToneColors = QT
const Gc = pr
function eI(e, t) {
  return rI(e) || oI(e, t) || nI(e, t) || tI()
}
function tI() {
  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 nI(e, t) {
  if (e) {
    if (typeof e == 'string') return Kf(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 Kf(e, t)
  }
}
function Kf(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 oI(e, t) {
  var n =
    e == null
      ? null
      : (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']
  if (n != null) {
    var o = [],
      r = !0,
      i = !1,
      l,
      a
    try {
      for (
        n = n.call(e);
        !(r = (l = n.next()).done) && (o.push(l.value), !(t && o.length === t));
        r = !0
      );
    } catch (s) {
      ;(i = !0), (a = s)
    } finally {
      try {
        !r && n.return != null && n.return()
      } finally {
        if (i) throw a
      }
    }
    return o
  }
}
function rI(e) {
  if (Array.isArray(e)) return e
}
function Oh(e) {
  var t = $h(e),
    n = eI(t, 2),
    o = n[0],
    r = n[1]
  return Gc.setTwoToneColors({ primaryColor: o, secondaryColor: r })
}
function iI() {
  var e = Gc.getTwoToneColors()
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor
}
var lI = J({
    name: 'InsertStyles',
    setup: function() {
      return (
        UT(),
        function() {
          return null
        }
      )
    }
  }),
  aI = [
    'class',
    'icon',
    'spin',
    'rotate',
    'tabindex',
    'twoToneColor',
    'onClick'
  ]
function sI(e, t) {
  return fI(e) || dI(e, t) || uI(e, t) || cI()
}
function cI() {
  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 uI(e, t) {
  if (e) {
    if (typeof e == 'string') return Wf(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 Wf(e, t)
  }
}
function Wf(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 dI(e, t) {
  var n =
    e == null
      ? null
      : (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']
  if (n != null) {
    var o = [],
      r = !0,
      i = !1,
      l,
      a
    try {
      for (
        n = n.call(e);
        !(r = (l = n.next()).done) && (o.push(l.value), !(t && o.length === t));
        r = !0
      );
    } catch (s) {
      ;(i = !0), (a = s)
    } finally {
      try {
        !r && n.return != null && n.return()
      } finally {
        if (i) throw a
      }
    }
    return o
  }
}
function fI(e) {
  if (Array.isArray(e)) return e
}
function Vf(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) {
        Tr(e, r, n[r])
      })
  }
  return e
}
function Tr(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
function pI(e, t) {
  if (e == null) return {}
  var n = vI(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 vI(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
}
Oh(M0.primary)
var vr = function(t, n) {
  var o,
    r = Vf({}, t, n.attrs),
    i = r.class,
    l = r.icon,
    a = r.spin,
    s = r.rotate,
    u = r.tabindex,
    c = r.twoToneColor,
    d = r.onClick,
    f = pI(r, aI),
    m = bh(),
    g = m.prefixCls,
    h = m.rootClassName,
    b =
      ((o = {}),
      Tr(o, h.value, !!h.value),
      Tr(o, g.value, !0),
      Tr(o, ''.concat(g.value, '-').concat(l.name), !!l.name),
      Tr(o, ''.concat(g.value, '-spin'), !!a || l.name === 'loading'),
      o),
    S = u
  S === void 0 && d && (S = -1)
  var C = s
      ? {
          msTransform: 'rotate('.concat(s, 'deg)'),
          transform: 'rotate('.concat(s, 'deg)')
        }
      : void 0,
    $ = $h(c),
    O = sI($, 2),
    x = O[0],
    w = O[1]
  return v(
    'span',
    Vf({ role: 'img', 'aria-label': l.name }, f, {
      onClick: d,
      class: [b, i],
      tabindex: S
    }),
    [
      v(Gc, { icon: l, primaryColor: x, secondaryColor: w, style: C }, null),
      v(lI, null, null)
    ]
  )
}
vr.props = { spin: Boolean, rotate: Number, icon: Object, twoToneColor: String }
vr.displayName = 'AntdIcon'
vr.inheritAttrs = !1
vr.getTwoToneColor = iI
vr.setTwoToneColor = Oh
const et = vr
function Gf(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) {
        mI(e, r, n[r])
      })
  }
  return e
}
function mI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Uc = function(t, n) {
  var o = Gf({}, t, n.attrs)
  return v(et, Gf({}, o, { icon: N0 }), null)
}
Uc.displayName = 'DownOutlined'
Uc.inheritAttrs = !1
const Ph = Uc
function Uf(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) {
        gI(e, r, n[r])
      })
  }
  return e
}
function gI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Xc = function(t, n) {
  var o = Uf({}, t, n.attrs)
  return v(et, Uf({}, o, { icon: B0 }), null)
}
Xc.displayName = 'LoadingOutlined'
Xc.inheritAttrs = !1
const xo = Xc
function Xf(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) {
        hI(e, r, n[r])
      })
  }
  return e
}
function hI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var qc = function(t, n) {
  var o = Xf({}, t, n.attrs)
  return v(et, Xf({}, o, { icon: z0 }), null)
}
qc.displayName = 'CheckOutlined'
qc.inheritAttrs = !1
const Th = qc
function qf(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) {
        bI(e, r, n[r])
      })
  }
  return e
}
function bI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Yc = function(t, n) {
  var o = qf({}, t, n.attrs)
  return v(et, qf({}, o, { icon: L0 }), null)
}
Yc.displayName = 'CloseOutlined'
Yc.inheritAttrs = !1
const ti = Yc
function Yf(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) {
        yI(e, r, n[r])
      })
  }
  return e
}
function yI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Jc = function(t, n) {
  var o = Yf({}, t, n.attrs)
  return v(et, Yf({}, o, { icon: F0 }), null)
}
Jc.displayName = 'CloseCircleFilled'
Jc.inheritAttrs = !1
const Ro = Jc
function Jf(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) {
        SI(e, r, n[r])
      })
  }
  return e
}
function SI(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Qc = function(t, n) {
  var o = Jf({}, t, n.attrs)
  return v(et, Jf({}, o, { icon: H0 }), null)
}
Qc.displayName = 'SearchOutlined'
Qc.inheritAttrs = !1
const Zc = Qc
function xI(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
  const {
      loading: n,
      multiple: o,
      prefixCls: r,
      hasFeedback: i,
      feedbackIcon: l,
      showArrow: a
    } = e,
    s = e.suffixIcon || (t.suffixIcon && t.suffixIcon()),
    u = e.clearIcon || (t.clearIcon && t.clearIcon()),
    c =
      e.menuItemSelectedIcon ||
      (t.menuItemSelectedIcon && t.menuItemSelectedIcon()),
    d = e.removeIcon || (t.removeIcon && t.removeIcon()),
    f = u ?? v(Ro, null, null),
    m = S => v(nt, null, [a !== !1 && S, i && l])
  let g = null
  if (s !== void 0) g = m(s)
  else if (n) g = m(v(xo, { spin: !0 }, null))
  else {
    const S = `${r}-suffix`
    g = C => {
      let { open: $, showSearch: O } = C
      return m($ && O ? v(Zc, { class: S }, null) : v(Ph, { class: S }, null))
    }
  }
  let h = null
  c !== void 0 ? (h = c) : o ? (h = v(Th, null, null)) : (h = null)
  let b = null
  return (
    d !== void 0 ? (b = d) : (b = v(ti, null, null)),
    { clearIcon: f, suffixIcon: g, itemIcon: h, removeIcon: b }
  )
}
function eu(e) {
  const t = Symbol('contextKey')
  return {
    useProvide: (r, i) => {
      const l = dt({})
      return (
        Ye(t, l),
        Me(() => {
          p(l, r, i || {})
        }),
        l
      )
    },
    useInject: () => Ue(t, e) || {}
  }
}
const Qf = Symbol('ContextProps'),
  Zf = Symbol('InternalContextProps'),
  ep = {
    id: P(() => {}),
    onFieldBlur: () => {},
    onFieldChange: () => {},
    clearValidate: () => {}
  },
  tp = { addFormItemField: () => {}, removeFormItemField: () => {} },
  Ao = () => {
    const e = Ue(Zf, tp),
      t = Symbol('FormItemFieldKey'),
      n = tn()
    return (
      e.addFormItemField(t, n.type),
      Qe(() => {
        e.removeFormItemField(t)
      }),
      Ye(Zf, tp),
      Ye(Qf, ep),
      Ue(Qf, ep)
    )
  },
  _n = eu({}),
  np = J({
    name: 'NoFormStatus',
    setup(e, t) {
      let { slots: n } = t
      return (
        _n.useProvide({}),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  })
function Wo(e, t, n) {
  return oe({
    [`${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 Dl = (e, t) => t || e,
  CI = e => {
    const { componentCls: t } = e
    return {
      [t]: {
        display: 'inline-flex',
        '&-block': { display: 'flex', width: '100%' },
        '&-vertical': { flexDirection: 'column' }
      }
    }
  },
  $I = CI,
  wI = 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' } }
      }
    }
  },
  Ih = pt('Space', e => [wI(e), $I(e)])
var OI = '[object Symbol]'
function Ml(e) {
  return typeof e == 'symbol' || (yo(e) && Io(e) == OI)
}
function PI(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 TI = 1 / 0,
  op = gn ? gn.prototype : void 0,
  rp = op ? op.toString : void 0
function Eh(e) {
  if (typeof e == 'string') return e
  if (hn(e)) return PI(e, Eh) + ''
  if (Ml(e)) return rp ? rp.call(e) : ''
  var t = e + ''
  return t == '0' && 1 / e == -TI ? '-0' : t
}
var II = /\s/
function EI(e) {
  for (var t = e.length; t-- && II.test(e.charAt(t)); );
  return t
}
var _I = /^\s+/
function RI(e) {
  return e && e.slice(0, EI(e) + 1).replace(_I, '')
}
var ip = 0 / 0,
  AI = /^[-+]0x[0-9a-f]+$/i,
  DI = /^0b[01]+$/i,
  MI = /^0o[0-7]+$/i,
  NI = parseInt
function lp(e) {
  if (typeof e == 'number') return e
  if (Ml(e)) return ip
  if (ho(e)) {
    var t = typeof e.valueOf == 'function' ? e.valueOf() : e
    e = ho(t) ? t + '' : t
  }
  if (typeof e != 'string') return e === 0 ? e : +e
  e = RI(e)
  var n = DI.test(e)
  return n || MI.test(e) ? NI(e.slice(2), n ? 2 : 8) : AI.test(e) ? ip : +e
}
function BI(e) {
  return e
}
function zI(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 LI() {}
var FI = 800,
  HI = 16,
  kI = Date.now
function jI(e) {
  var t = 0,
    n = 0
  return function() {
    var o = kI(),
      r = HI - (o - n)
    if (((n = o), r > 0)) {
      if (++t >= FI) return arguments[0]
    } else t = 0
    return e.apply(void 0, arguments)
  }
}
function KI(e) {
  return function() {
    return e
  }
}
var WI = (function() {
  try {
    var e = _o(Object, 'defineProperty')
    return e({}, '', {}), e
  } catch {}
})()
const tl = WI
var VI = tl
  ? function(e, t) {
      return tl(e, 'toString', {
        configurable: !0,
        enumerable: !1,
        value: KI(t),
        writable: !0
      })
    }
  : BI
const GI = VI
var UI = jI(GI)
const XI = UI
function qI(e, t, n, o) {
  for (var r = e.length, i = n + (o ? 1 : -1); o ? i-- : ++i < r; )
    if (t(e[i], i, e)) return i
  return -1
}
function YI(e) {
  return e !== e
}
function JI(e, t, n) {
  for (var o = n - 1, r = e.length; ++o < r; ) if (e[o] === t) return o
  return -1
}
function QI(e, t, n) {
  return t === t ? JI(e, t, n) : qI(e, YI, n)
}
function ZI(e, t) {
  var n = e == null ? 0 : e.length
  return !!n && QI(e, t, 0) > -1
}
function eE(e, t, n) {
  t == '__proto__' && tl
    ? tl(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 })
    : (e[t] = n)
}
var tE = Object.prototype,
  nE = tE.hasOwnProperty
function oE(e, t, n) {
  var o = e[t]
  ;(!(nE.call(e, t) && Bc(o, n)) || (n === void 0 && !(t in e))) && eE(e, t, n)
}
var ap = Math.max
function rE(e, t, n) {
  return (
    (t = ap(t === void 0 ? e.length - 1 : t, 0)),
    function() {
      for (
        var o = arguments, r = -1, i = ap(o.length - t, 0), l = Array(i);
        ++r < i;

      )
        l[r] = o[t + r]
      r = -1
      for (var a = Array(t + 1); ++r < t; ) a[r] = o[r]
      return (a[t] = n(l)), zI(e, this, a)
    }
  )
}
var iE = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  lE = /^\w*$/
function aE(e, t) {
  if (hn(e)) return !1
  var n = typeof e
  return n == 'number' || n == 'symbol' || n == 'boolean' || e == null || Ml(e)
    ? !0
    : lE.test(e) || !iE.test(e) || (t != null && e in Object(t))
}
var sE = 'Expected a function'
function tu(e, t) {
  if (typeof e != 'function' || (t != null && typeof t != 'function'))
    throw new TypeError(sE)
  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 l = e.apply(this, o)
    return (n.cache = i.set(r, l) || i), l
  }
  return (n.cache = new (tu.Cache || Mn)()), n
}
tu.Cache = Mn
var cE = 500
function uE(e) {
  var t = tu(e, function(o) {
      return n.size === cE && n.clear(), o
    }),
    n = t.cache
  return t
}
var dE = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
  fE = /\\(\\)?/g,
  pE = uE(function(e) {
    var t = []
    return (
      e.charCodeAt(0) === 46 && t.push(''),
      e.replace(dE, function(n, o, r, i) {
        t.push(r ? i.replace(fE, '$1') : o || n)
      }),
      t
    )
  })
const vE = pE
function mE(e) {
  return e == null ? '' : Eh(e)
}
function Nl(e, t) {
  return hn(e) ? e : aE(e, t) ? [e] : vE(mE(e))
}
var gE = 1 / 0
function nu(e) {
  if (typeof e == 'string' || Ml(e)) return e
  var t = e + ''
  return t == '0' && 1 / e == -gE ? '-0' : t
}
function hE(e, t) {
  t = Nl(t, e)
  for (var n = 0, o = t.length; e != null && n < o; ) e = e[nu(t[n++])]
  return n && n == o ? e : void 0
}
var sp = gn ? gn.isConcatSpreadable : void 0
function bE(e) {
  return hn(e) || Tl(e) || !!(sp && e && e[sp])
}
function _h(e, t, n, o, r) {
  var i = -1,
    l = e.length
  for (n || (n = bE), r || (r = []); ++i < l; ) {
    var a = e[i]
    t > 0 && n(a)
      ? t > 1
        ? _h(a, t - 1, n, o, r)
        : Hg(r, a)
      : o || (r[r.length] = a)
  }
  return r
}
function yE(e) {
  var t = e == null ? 0 : e.length
  return t ? _h(e, 1) : []
}
function SE(e) {
  return XI(rE(e, void 0, yE), e + '')
}
var xE = Vg(Object.getPrototypeOf, Object)
const CE = xE
var $E = '[object Object]',
  wE = Function.prototype,
  OE = Object.prototype,
  Rh = wE.toString,
  PE = OE.hasOwnProperty,
  TE = Rh.call(Object)
function Ah(e) {
  if (!yo(e) || Io(e) != $E) return !1
  var t = CE(e)
  if (t === null) return !0
  var n = PE.call(t, 'constructor') && t.constructor
  return typeof n == 'function' && n instanceof n && Rh.call(n) == TE
}
function IE(e, t) {
  return e != null && t in Object(e)
}
function EE(e, t, n) {
  t = Nl(t, e)
  for (var o = -1, r = t.length, i = !1; ++o < r; ) {
    var l = nu(t[o])
    if (!(i = e != null && n(e, l))) break
    e = e[l]
  }
  return i || ++o != r
    ? i
    : ((r = e == null ? 0 : e.length),
      !!r && Fc(r) && Lc(l, r) && (hn(e) || Tl(e)))
}
function _E(e, t) {
  return e != null && EE(e, t, IE)
}
var RE = function() {
  return bn.Date.now()
}
const xa = RE
var AE = 'Expected a function',
  DE = Math.max,
  ME = Math.min
function NE(e, t, n) {
  var o,
    r,
    i,
    l,
    a,
    s,
    u = 0,
    c = !1,
    d = !1,
    f = !0
  if (typeof e != 'function') throw new TypeError(AE)
  ;(t = lp(t) || 0),
    ho(n) &&
      ((c = !!n.leading),
      (d = 'maxWait' in n),
      (i = d ? DE(lp(n.maxWait) || 0, t) : i),
      (f = 'trailing' in n ? !!n.trailing : f))
  function m(w) {
    var y = o,
      T = r
    return (o = r = void 0), (u = w), (l = e.apply(T, y)), l
  }
  function g(w) {
    return (u = w), (a = setTimeout(S, t)), c ? m(w) : l
  }
  function h(w) {
    var y = w - s,
      T = w - u,
      I = t - y
    return d ? ME(I, i - T) : I
  }
  function b(w) {
    var y = w - s,
      T = w - u
    return s === void 0 || y >= t || y < 0 || (d && T >= i)
  }
  function S() {
    var w = xa()
    if (b(w)) return C(w)
    a = setTimeout(S, h(w))
  }
  function C(w) {
    return (a = void 0), f && o ? m(w) : ((o = r = void 0), l)
  }
  function $() {
    a !== void 0 && clearTimeout(a), (u = 0), (o = s = r = a = void 0)
  }
  function O() {
    return a === void 0 ? l : C(xa())
  }
  function x() {
    var w = xa(),
      y = b(w)
    if (((o = arguments), (r = this), (s = w), y)) {
      if (a === void 0) return g(s)
      if (d) return clearTimeout(a), (a = setTimeout(S, t)), m(s)
    }
    return a === void 0 && (a = setTimeout(S, t)), l
  }
  return (x.cancel = $), (x.flush = O), x
}
function BE(e, t, n) {
  for (var o = -1, r = e == null ? 0 : e.length; ++o < r; )
    if (n(t, e[o])) return !0
  return !1
}
function zE(e) {
  for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
    var r = e[t]
    o[r[0]] = r[1]
  }
  return o
}
var LE = '[object Map]',
  FE = '[object Set]',
  HE = Object.prototype,
  kE = HE.hasOwnProperty
function Dh(e) {
  if (e == null) return !0
  if (
    Ug(e) &&
    (hn(e) ||
      typeof e == 'string' ||
      typeof e.splice == 'function' ||
      Qi(e) ||
      Hc(e) ||
      Tl(e))
  )
    return !e.length
  var t = ys(e)
  if (t == LE || t == FE) return !e.size
  if (Wg(e)) return !Gg(e).length
  for (var n in e) if (kE.call(e, n)) return !1
  return !0
}
function jE(e, t, n, o) {
  if (!ho(e)) return e
  t = Nl(t, e)
  for (var r = -1, i = t.length, l = i - 1, a = e; a != null && ++r < i; ) {
    var s = nu(t[r]),
      u = n
    if (s === '__proto__' || s === 'constructor' || s === 'prototype') return e
    if (r != l) {
      var c = a[s]
      ;(u = o ? o(c, s, a) : void 0),
        u === void 0 && (u = ho(c) ? c : Lc(t[r + 1]) ? [] : {})
    }
    oE(a, s, u), (a = a[s])
  }
  return e
}
function KE(e, t, n) {
  for (var o = -1, r = t.length, i = {}; ++o < r; ) {
    var l = t[o],
      a = hE(e, l)
    n(a, l) && jE(i, Nl(l, e), a)
  }
  return i
}
function WE(e, t) {
  return KE(e, t, function(n, o) {
    return _E(e, o)
  })
}
var VE = SE(function(e, t) {
  return e == null ? {} : WE(e, t)
})
const Mh = VE
var GE = 1 / 0,
  UE =
    jo && 1 / zc(new jo([, -0]))[1] == GE
      ? function(e) {
          return new jo(e)
        }
      : LI
const XE = UE
var qE = 200
function YE(e, t, n) {
  var o = -1,
    r = ZI,
    i = e.length,
    l = !0,
    a = [],
    s = a
  if (n) (l = !1), (r = BE)
  else if (i >= qE) {
    var u = t ? null : XE(e)
    if (u) return zc(u)
    ;(l = !1), (r = Lg), (s = new qr())
  } else s = t ? [] : a
  e: for (; ++o < i; ) {
    var c = e[o],
      d = t ? t(c) : c
    if (((c = n || c !== 0 ? c : 0), l && d === d)) {
      for (var f = s.length; f--; ) if (s[f] === d) continue e
      t && s.push(d), a.push(c)
    } else r(s, d, n) || (s !== a && s.push(d), a.push(c))
  }
  return a
}
function Ca(e) {
  return e && e.length ? YE(e) : []
}
const JE = () => ({
    compactSize: String,
    compactDirection: k.oneOf(mo('horizontal', 'vertical')).def('horizontal'),
    isFirstItem: Re(),
    isLastItem: Re()
  }),
  Bl = eu(null),
  ou = (e, t) => {
    const n = Bl.useInject(),
      o = P(() => {
        if (!n || Dh(n)) return ''
        const { compactDirection: r, isFirstItem: i, isLastItem: l } = n,
          a = r === 'vertical' ? '-vertical-' : '-'
        return oe({
          [`${e.value}-compact${a}item`]: !0,
          [`${e.value}-compact${a}first-item`]: i,
          [`${e.value}-compact${a}last-item`]: l,
          [`${e.value}-compact${a}item-rtl`]: t.value === 'rtl'
        })
      })
    return {
      compactSize: P(() => (n == null ? void 0 : n.compactSize)),
      compactDirection: P(() => (n == null ? void 0 : n.compactDirection)),
      compactItemClassnames: o
    }
  },
  cp = J({
    name: 'NoCompactStyle',
    setup(e, t) {
      let { slots: n } = t
      return (
        Bl.useProvide(null),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  }),
  QE = () => ({
    prefixCls: String,
    size: { type: String },
    direction: k.oneOf(mo('horizontal', 'vertical')).def('horizontal'),
    align: k.oneOf(mo('start', 'end', 'center', 'baseline')),
    block: { type: Boolean, default: void 0 }
  }),
  ZE = J({
    name: 'CompactItem',
    props: JE(),
    setup(e, t) {
      let { slots: n } = t
      return (
        Bl.useProvide(e),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  }),
  $s = J({
    name: 'ASpaceCompact',
    inheritAttrs: !1,
    props: QE(),
    setup(e, t) {
      let { attrs: n, slots: o } = t
      const { prefixCls: r, direction: i } = je('space-compact', e),
        l = Bl.useInject(),
        [a, s] = Ih(r),
        u = P(() =>
          oe(r.value, s.value, {
            [`${r.value}-rtl`]: i.value === 'rtl',
            [`${r.value}-block`]: e.block,
            [`${r.value}-vertical`]: e.direction === 'vertical'
          })
        )
      return () => {
        var c
        const d = yt(
          ((c = o.default) === null || c === void 0 ? void 0 : c.call(o)) || []
        )
        return d.length === 0
          ? null
          : a(
              v('div', N(N({}, n), {}, { class: [u.value, n.class] }), [
                d.map((f, m) => {
                  var g
                  const h = (f && f.key) || `${r.value}-item-${m}`,
                    b = !l || Dh(l)
                  return v(
                    ZE,
                    {
                      key: h,
                      compactSize:
                        (g = e.size) !== null && g !== void 0 ? g : 'middle',
                      compactDirection: e.direction,
                      isFirstItem:
                        m === 0 && (b || (l == null ? void 0 : l.isFirstItem)),
                      isLastItem:
                        m === d.length - 1 &&
                        (b || (l == null ? void 0 : l.isLastItem))
                    },
                    { default: () => [f] }
                  )
                })
              ])
            )
      }
    }
  }),
  e_ = e => ({ animationDuration: e, animationFillMode: 'both' }),
  t_ = e => ({ animationDuration: e, animationFillMode: 'both' }),
  ru = function(e, t, n, o) {
    const i = (arguments.length > 4 && arguments[4] !== void 0
    ? arguments[4]
    : !1)
      ? '&'
      : ''
    return {
      [`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]: p(p({}, e_(o)), { animationPlayState: 'paused' }),
      [`${i}${e}-leave`]: p(p({}, t_(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'
      }
    }
  },
  n_ = new Ve('antMoveDownIn', {
    '0%': {
      transform: 'translate3d(0, 100%, 0)',
      transformOrigin: '0 0',
      opacity: 0
    },
    '100%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    }
  }),
  o_ = new Ve('antMoveDownOut', {
    '0%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    },
    '100%': {
      transform: 'translate3d(0, 100%, 0)',
      transformOrigin: '0 0',
      opacity: 0
    }
  }),
  r_ = new Ve('antMoveLeftIn', {
    '0%': {
      transform: 'translate3d(-100%, 0, 0)',
      transformOrigin: '0 0',
      opacity: 0
    },
    '100%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    }
  }),
  i_ = new Ve('antMoveLeftOut', {
    '0%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    },
    '100%': {
      transform: 'translate3d(-100%, 0, 0)',
      transformOrigin: '0 0',
      opacity: 0
    }
  }),
  l_ = new Ve('antMoveRightIn', {
    '0%': {
      transform: 'translate3d(100%, 0, 0)',
      transformOrigin: '0 0',
      opacity: 0
    },
    '100%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    }
  }),
  a_ = new Ve('antMoveRightOut', {
    '0%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    },
    '100%': {
      transform: 'translate3d(100%, 0, 0)',
      transformOrigin: '0 0',
      opacity: 0
    }
  }),
  s_ = new Ve('antMoveUpIn', {
    '0%': {
      transform: 'translate3d(0, -100%, 0)',
      transformOrigin: '0 0',
      opacity: 0
    },
    '100%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    }
  }),
  c_ = new Ve('antMoveUpOut', {
    '0%': {
      transform: 'translate3d(0, 0, 0)',
      transformOrigin: '0 0',
      opacity: 1
    },
    '100%': {
      transform: 'translate3d(0, -100%, 0)',
      transformOrigin: '0 0',
      opacity: 0
    }
  }),
  u_ = {
    'move-up': { inKeyframes: s_, outKeyframes: c_ },
    'move-down': { inKeyframes: n_, outKeyframes: o_ },
    'move-left': { inKeyframes: r_, outKeyframes: i_ },
    'move-right': { inKeyframes: l_, outKeyframes: a_ }
  },
  nl = (e, t) => {
    const { antCls: n } = e,
      o = `${n}-${t}`,
      { inKeyframes: r, outKeyframes: i } = u_[t]
    return [
      ru(o, r, i, e.motionDurationMid),
      {
        [`
        ${o}-enter,
        ${o}-appear
      `]: { opacity: 0, animationTimingFunction: e.motionEaseOutCirc },
        [`${o}-leave`]: { animationTimingFunction: e.motionEaseInOutCirc }
      }
    ]
  },
  iu = new Ve('antSlideUpIn', {
    '0%': { transform: 'scaleY(0.8)', transformOrigin: '0% 0%', opacity: 0 },
    '100%': { transform: 'scaleY(1)', transformOrigin: '0% 0%', opacity: 1 }
  }),
  lu = new Ve('antSlideUpOut', {
    '0%': { transform: 'scaleY(1)', transformOrigin: '0% 0%', opacity: 1 },
    '100%': { transform: 'scaleY(0.8)', transformOrigin: '0% 0%', opacity: 0 }
  }),
  au = new Ve('antSlideDownIn', {
    '0%': {
      transform: 'scaleY(0.8)',
      transformOrigin: '100% 100%',
      opacity: 0
    },
    '100%': { transform: 'scaleY(1)', transformOrigin: '100% 100%', opacity: 1 }
  }),
  su = new Ve('antSlideDownOut', {
    '0%': { transform: 'scaleY(1)', transformOrigin: '100% 100%', opacity: 1 },
    '100%': {
      transform: 'scaleY(0.8)',
      transformOrigin: '100% 100%',
      opacity: 0
    }
  }),
  d_ = new Ve('antSlideLeftIn', {
    '0%': { transform: 'scaleX(0.8)', transformOrigin: '0% 0%', opacity: 0 },
    '100%': { transform: 'scaleX(1)', transformOrigin: '0% 0%', opacity: 1 }
  }),
  f_ = new Ve('antSlideLeftOut', {
    '0%': { transform: 'scaleX(1)', transformOrigin: '0% 0%', opacity: 1 },
    '100%': { transform: 'scaleX(0.8)', transformOrigin: '0% 0%', opacity: 0 }
  }),
  p_ = new Ve('antSlideRightIn', {
    '0%': { transform: 'scaleX(0.8)', transformOrigin: '100% 0%', opacity: 0 },
    '100%': { transform: 'scaleX(1)', transformOrigin: '100% 0%', opacity: 1 }
  }),
  v_ = new Ve('antSlideRightOut', {
    '0%': { transform: 'scaleX(1)', transformOrigin: '100% 0%', opacity: 1 },
    '100%': { transform: 'scaleX(0.8)', transformOrigin: '100% 0%', opacity: 0 }
  }),
  m_ = {
    'slide-up': { inKeyframes: iu, outKeyframes: lu },
    'slide-down': { inKeyframes: au, outKeyframes: su },
    'slide-left': { inKeyframes: d_, outKeyframes: f_ },
    'slide-right': { inKeyframes: p_, outKeyframes: v_ }
  },
  Vn = (e, t) => {
    const { antCls: n } = e,
      o = `${n}-${t}`,
      { inKeyframes: r, outKeyframes: i } = m_[t]
    return [
      ru(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 }
      }
    ]
  },
  g_ = new Ve('antZoomIn', {
    '0%': { transform: 'scale(0.2)', opacity: 0 },
    '100%': { transform: 'scale(1)', opacity: 1 }
  }),
  h_ = new Ve('antZoomOut', {
    '0%': { transform: 'scale(1)' },
    '100%': { transform: 'scale(0.2)', opacity: 0 }
  }),
  up = new Ve('antZoomBigIn', {
    '0%': { transform: 'scale(0.8)', opacity: 0 },
    '100%': { transform: 'scale(1)', opacity: 1 }
  }),
  dp = new Ve('antZoomBigOut', {
    '0%': { transform: 'scale(1)' },
    '100%': { transform: 'scale(0.8)', opacity: 0 }
  }),
  b_ = new Ve('antZoomUpIn', {
    '0%': { transform: 'scale(0.8)', transformOrigin: '50% 0%', opacity: 0 },
    '100%': { transform: 'scale(1)', transformOrigin: '50% 0%' }
  }),
  y_ = new Ve('antZoomUpOut', {
    '0%': { transform: 'scale(1)', transformOrigin: '50% 0%' },
    '100%': { transform: 'scale(0.8)', transformOrigin: '50% 0%', opacity: 0 }
  }),
  S_ = new Ve('antZoomLeftIn', {
    '0%': { transform: 'scale(0.8)', transformOrigin: '0% 50%', opacity: 0 },
    '100%': { transform: 'scale(1)', transformOrigin: '0% 50%' }
  }),
  x_ = new Ve('antZoomLeftOut', {
    '0%': { transform: 'scale(1)', transformOrigin: '0% 50%' },
    '100%': { transform: 'scale(0.8)', transformOrigin: '0% 50%', opacity: 0 }
  }),
  C_ = new Ve('antZoomRightIn', {
    '0%': { transform: 'scale(0.8)', transformOrigin: '100% 50%', opacity: 0 },
    '100%': { transform: 'scale(1)', transformOrigin: '100% 50%' }
  }),
  $_ = new Ve('antZoomRightOut', {
    '0%': { transform: 'scale(1)', transformOrigin: '100% 50%' },
    '100%': { transform: 'scale(0.8)', transformOrigin: '100% 50%', opacity: 0 }
  }),
  w_ = new Ve('antZoomDownIn', {
    '0%': { transform: 'scale(0.8)', transformOrigin: '50% 100%', opacity: 0 },
    '100%': { transform: 'scale(1)', transformOrigin: '50% 100%' }
  }),
  O_ = new Ve('antZoomDownOut', {
    '0%': { transform: 'scale(1)', transformOrigin: '50% 100%' },
    '100%': { transform: 'scale(0.8)', transformOrigin: '50% 100%', opacity: 0 }
  }),
  P_ = {
    zoom: { inKeyframes: g_, outKeyframes: h_ },
    'zoom-big': { inKeyframes: up, outKeyframes: dp },
    'zoom-big-fast': { inKeyframes: up, outKeyframes: dp },
    'zoom-left': { inKeyframes: S_, outKeyframes: x_ },
    'zoom-right': { inKeyframes: C_, outKeyframes: $_ },
    'zoom-up': { inKeyframes: b_, outKeyframes: y_ },
    'zoom-down': { inKeyframes: w_, outKeyframes: O_ }
  },
  zl = (e, t) => {
    const { antCls: n } = e,
      o = `${n}-${t}`,
      { inKeyframes: r, outKeyframes: i } = P_[t]
    return [
      ru(
        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 }
      }
    ]
  },
  T_ = e => ({
    [e.componentCls]: {
      [`${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`
      }
    }
  }),
  Nh = T_,
  fp = 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'
    }
  },
  I_ = e => {
    const { antCls: t, componentCls: n } = e,
      o = `${n}-item`
    return [
      {
        [`${n}-dropdown`]: p(p({}, ct(e)), {
          position: 'absolute',
          top: -9999,
          zIndex: e.zIndexPopup,
          boxSizing: 'border-box',
          padding: e.paddingXXS,
          overflow: 'hidden',
          fontSize: e.fontSize,
          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: iu },
          [`
            &${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: au },
          [`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]: {
            animationName: lu
          },
          [`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]: {
            animationName: su
          },
          '&-hidden': { display: 'none' },
          '&-empty': { color: e.colorTextDisabled },
          [`${o}-empty`]: p(p({}, fp(e)), { color: e.colorTextDisabled }),
          [`${o}`]: p(p({}, fp(e)), {
            cursor: 'pointer',
            transition: `background ${e.motionDurationSlow} ease`,
            borderRadius: e.borderRadiusSM,
            '&-group': {
              color: e.colorTextDescription,
              fontSize: e.fontSizeSM,
              cursor: 'default'
            },
            '&-option': {
              display: 'flex',
              '&-content': p({ flex: 'auto' }, Kn),
              '&-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': { direction: 'rtl' }
        })
      },
      Vn(e, 'slide-up'),
      Vn(e, 'slide-down'),
      nl(e, 'move-up'),
      nl(e, 'move-down')
    ]
  },
  E_ = I_,
  No = 2
function Bh(e) {
  let { controlHeightSM: t, controlHeight: n, lineWidth: o } = e
  const r = (n - t) / 2 - o,
    i = Math.ceil(r / 2)
  return [r, i]
}
function $a(e, t) {
  const { componentCls: n, iconCls: o } = e,
    r = `${n}-selection-overflow`,
    i = e.controlHeightSM,
    [l] = Bh(e),
    a = t ? `${n}-${t}` : ''
  return {
    [`${n}-multiple${a}`]: {
      fontSize: e.fontSize,
      [r]: {
        position: 'relative',
        display: 'flex',
        flex: 'auto',
        flexWrap: 'wrap',
        maxWidth: '100%',
        '&-item': {
          flex: 'none',
          alignSelf: 'center',
          maxWidth: '100%',
          display: 'inline-flex'
        }
      },
      [`${n}-selector`]: {
        display: 'flex',
        flexWrap: 'wrap',
        alignItems: 'center',
        padding: `${l - No}px ${No * 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: `${No}px 0`,
          lineHeight: `${i}px`,
          content: '"\\a0"'
        }
      },
      [`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]: { paddingInlineEnd: e.fontSizeIcon + e.controlPaddingHorizontal },
      [`${n}-selection-item`]: {
        position: 'relative',
        display: 'flex',
        flex: 'none',
        boxSizing: 'border-box',
        maxWidth: '100%',
        height: i,
        marginTop: No,
        marginBottom: No,
        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: No * 2,
        paddingInlineStart: e.paddingXS,
        paddingInlineEnd: e.paddingXS / 2,
        [`${n}-disabled&`]: {
          color: e.colorTextDisabled,
          borderColor: e.colorBorder,
          cursor: 'not-allowed'
        },
        '&-content': {
          display: 'inline-block',
          marginInlineEnd: e.paddingXS / 2,
          overflow: 'hidden',
          whiteSpace: 'pre',
          textOverflow: 'ellipsis'
        },
        '&-remove': p(p({}, xl()), {
          display: 'inline-block',
          color: e.colorIcon,
          fontWeight: 'bold',
          fontSize: 10,
          lineHeight: 'inherit',
          cursor: 'pointer',
          [`> ${o}`]: { verticalAlign: '-0.2em' },
          '&:hover': { color: e.colorIconHover }
        })
      },
      [`${r}-item + ${r}-item`]: {
        [`${n}-selection-search`]: { marginInlineStart: 0 }
      },
      [`${n}-selection-search`]: {
        display: 'inline-flex',
        position: 'relative',
        maxWidth: '100%',
        marginInlineStart: e.inputPaddingHorizontalBase - l,
        '\n          &-input,\n          &-mirror\n        ': {
          height: i,
          fontFamily: e.fontFamily,
          lineHeight: `${i}px`,
          transition: `all ${e.motionDurationSlow}`
        },
        '&-input': { width: '100%', minWidth: 4.1 },
        '&-mirror': {
          position: 'absolute',
          top: 0,
          insetInlineStart: 0,
          insetInlineEnd: 'auto',
          zIndex: 999,
          whiteSpace: 'pre',
          visibility: 'hidden'
        }
      },
      [`${n}-selection-placeholder `]: {
        position: 'absolute',
        top: '50%',
        insetInlineStart: e.inputPaddingHorizontalBase,
        insetInlineEnd: e.inputPaddingHorizontalBase,
        transform: 'translateY(-50%)',
        transition: `all ${e.motionDurationSlow}`
      }
    }
  }
}
function __(e) {
  const { componentCls: t } = e,
    n = Ze(e, {
      controlHeight: e.controlHeightSM,
      controlHeightSM: e.controlHeightXS,
      borderRadius: e.borderRadiusSM,
      borderRadiusSM: e.borderRadiusXS
    }),
    [, o] = Bh(e)
  return [
    $a(e),
    $a(n, 'sm'),
    {
      [`${t}-multiple${t}-sm`]: {
        [`${t}-selection-placeholder`]: {
          insetInlineStart: e.controlPaddingHorizontalSM - e.lineWidth,
          insetInlineEnd: 'auto'
        },
        [`${t}-selection-search`]: { marginInlineStart: o }
      }
    },
    $a(
      Ze(e, {
        fontSize: e.fontSizeLG,
        controlHeight: e.controlHeightLG,
        controlHeightSM: e.controlHeight,
        borderRadius: e.borderRadiusLG,
        borderRadiusSM: e.borderRadius
      }),
      'lg'
    )
  ]
}
function wa(e, t) {
  const { componentCls: n, inputPaddingHorizontalBase: o, borderRadius: r } = e,
    i = e.controlHeight - e.lineWidth * 2,
    l = Math.ceil(e.fontSize * 1.25),
    a = t ? `${n}-${t}` : ''
  return {
    [`${n}-single${a}`]: {
      fontSize: e.fontSize,
      [`${n}-selector`]: p(p({}, ct(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}`,
          '@supports (-moz-appearance: meterbar)': { lineHeight: `${i}px` }
        },
        [`${n}-selection-item`]: { position: 'relative', userSelect: 'none' },
        [`${n}-selection-placeholder`]: {
          transition: 'none',
          pointerEvents: 'none'
        },
        [[
          '&:after',
          `${n}-selection-item:after`,
          `${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: l },
      [`&${n}-open ${n}-selection-item`]: { color: e.colorTextPlaceholder },
      [`&: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 R_(e) {
  const { componentCls: t } = e,
    n = e.controlPaddingHorizontalSM - e.lineWidth
  return [
    wa(e),
    wa(
      Ze(e, {
        controlHeight: e.controlHeightSM,
        borderRadius: e.borderRadiusSM
      }),
      'sm'
    ),
    {
      [`${t}-single${t}-sm`]: {
        [`&:not(${t}-customize-input)`]: {
          [`${t}-selection-search`]: { insetInlineStart: n, insetInlineEnd: n },
          [`${t}-selector`]: { padding: `0 ${n}px` },
          [`&${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 }
        }
      }
    },
    wa(
      Ze(e, {
        controlHeight: e.controlHeightLG,
        fontSize: e.fontSizeLG,
        borderRadius: e.borderRadiusLG
      }),
      'lg'
    )
  ]
}
function A_(e, t, n) {
  const { focusElCls: o, focus: r, borderElCls: i } = n,
    l = i ? '> *' : '',
    a = ['hover', r ? 'focus' : null, 'active']
      .filter(Boolean)
      .map(s => `&:${s} ${l}`)
      .join(',')
  return {
    [`&-item:not(${t}-last-item)`]: { marginInlineEnd: -e.lineWidth },
    '&-item': p(
      p({ [a]: { zIndex: 2 } }, o ? { [`&${o}`]: { zIndex: 2 } } : {}),
      { [`&[disabled] ${l}`]: { zIndex: 0 } }
    )
  }
}
function D_(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 cu(e) {
  let t =
    arguments.length > 1 && arguments[1] !== void 0
      ? arguments[1]
      : { focus: !0 }
  const { componentCls: n } = e,
    o = `${n}-compact`
  return { [o]: p(p({}, A_(e, o, t)), D_(n, o, t)) }
}
const M_ = 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' }
      }
    }
  },
  Oa = function(e, t) {
    let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
    const {
        componentCls: o,
        borderHoverColor: r,
        outlineColor: i,
        antCls: l
      } = t,
      a = n ? { [`${o}-selector`]: { borderColor: r } } : {}
    return {
      [e]: {
        [`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]: p(
          p({}, a),
          {
            [`${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`
            }
          }
        )
      }
    }
  },
  N_ = 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'
        }
      }
    }
  },
  B_ = e => {
    const { componentCls: t, inputPaddingHorizontalBase: n, iconCls: o } = e
    return {
      [t]: p(p({}, ct(e)), {
        position: 'relative',
        display: 'inline-block',
        cursor: 'pointer',
        [`&:not(${t}-customize-input) ${t}-selector`]: p(p({}, M_(e)), N_(e)),
        [`${t}-selection-item`]: p({ flex: 1, fontWeight: 'normal' }, Kn),
        [`${t}-selection-placeholder`]: p(p({}, Kn), {
          flex: 1,
          color: e.colorTextPlaceholder,
          pointerEvents: 'none'
        }),
        [`${t}-arrow`]: p(p({}, xl()), {
          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 }
        }),
        [`${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 } }
      }),
      [`${t}-has-feedback`]: {
        [`${t}-clear`]: { insetInlineEnd: n + e.fontSize + e.paddingXXS }
      }
    }
  },
  z_ = e => {
    const { componentCls: t } = e
    return [
      {
        [t]: {
          [`&-borderless ${t}-selector`]: {
            backgroundColor: 'transparent !important',
            borderColor: 'transparent !important',
            boxShadow: 'none !important'
          },
          [`&${t}-in-form-item`]: { width: '100%' }
        }
      },
      B_(e),
      R_(e),
      __(e),
      E_(e),
      { [`${t}-rtl`]: { direction: 'rtl' } },
      Oa(
        t,
        Ze(e, {
          borderHoverColor: e.colorPrimaryHover,
          outlineColor: e.controlOutline
        })
      ),
      Oa(
        `${t}-status-error`,
        Ze(e, {
          borderHoverColor: e.colorErrorHover,
          outlineColor: e.colorErrorOutline
        }),
        !0
      ),
      Oa(
        `${t}-status-warning`,
        Ze(e, {
          borderHoverColor: e.colorWarningHover,
          outlineColor: e.colorWarningOutline
        }),
        !0
      ),
      cu(e, { borderElCls: `${t}-selector`, focusElCls: `${t}-focused` })
    ]
  },
  L_ = pt(
    'Select',
    (e, t) => {
      let { rootPrefixCls: n } = t
      const o = Ze(e, {
        rootPrefixCls: n,
        inputPaddingHorizontalBase: e.paddingSM - 1
      })
      return [z_(o)]
    },
    e => ({ zIndexPopup: e.zIndexPopupBase + 50 })
  ),
  uu = () =>
    p(
      p(
        {},
        rt(hh(), [
          'inputIcon',
          'mode',
          'getInputElement',
          'getRawInputElement',
          'backfill'
        ])
      ),
      {
        value: Pt([Array, Object, String, Number]),
        defaultValue: Pt([Array, Object, String, Number]),
        notFoundContent: k.any,
        suffixIcon: k.any,
        itemIcon: k.any,
        size: at(),
        mode: at(),
        bordered: Re(!0),
        transitionName: String,
        choiceTransitionName: at(''),
        popupClassName: String,
        dropdownClassName: String,
        placement: at(),
        status: at(),
        'onUpdate:value': _e()
      }
    ),
  pp = 'SECRET_COMBOBOX_MODE_DO_NOT_USE',
  fn = J({
    compatConfig: { MODE: 3 },
    name: 'ASelect',
    Option: DT,
    OptGroup: MT,
    inheritAttrs: !1,
    props: mt(uu(), { listHeight: 256, listItemHeight: 24 }),
    SECRET_COMBOBOX_MODE_DO_NOT_USE: pp,
    slots: Object,
    setup(e, t) {
      let { attrs: n, emit: o, slots: r, expose: i } = t
      const l = ne(),
        a = Ao(),
        s = _n.useInject(),
        u = P(() => Dl(s.status, e.status)),
        c = () => {
          var B
          ;(B = l.value) === null || B === void 0 || B.focus()
        },
        d = () => {
          var B
          ;(B = l.value) === null || B === void 0 || B.blur()
        },
        f = B => {
          var X
          ;(X = l.value) === null || X === void 0 || X.scrollTo(B)
        },
        m = P(() => {
          const { mode: B } = e
          if (B !== 'combobox') return B === pp ? 'combobox' : B
        }),
        {
          prefixCls: g,
          direction: h,
          configProvider: b,
          renderEmpty: S,
          size: C,
          getPrefixCls: $,
          getPopupContainer: O,
          disabled: x,
          select: w
        } = je('select', e),
        { compactSize: y, compactItemClassnames: T } = ou(g, h),
        I = P(() => y.value || C.value),
        _ = In(),
        A = P(() => {
          var B
          return (B = x.value) !== null && B !== void 0 ? B : _.value
        }),
        [z, M] = L_(g),
        j = P(() => $()),
        E = P(() =>
          e.placement !== void 0
            ? e.placement
            : h.value === 'rtl'
            ? 'bottomRight'
            : 'bottomLeft'
        ),
        R = P(() => Il(j.value, e1(E.value), e.transitionName)),
        L = P(() =>
          oe(
            {
              [`${g.value}-lg`]: I.value === 'large',
              [`${g.value}-sm`]: I.value === 'small',
              [`${g.value}-rtl`]: h.value === 'rtl',
              [`${g.value}-borderless`]: !e.bordered,
              [`${g.value}-in-form-item`]: s.isFormItemInput
            },
            Wo(g.value, u.value, s.hasFeedback),
            T.value,
            M.value
          )
        ),
        W = function() {
          for (var B = arguments.length, X = new Array(B), ee = 0; ee < B; ee++)
            X[ee] = arguments[ee]
          o('update:value', X[0]), o('change', ...X), a.onFieldChange()
        },
        D = B => {
          o('blur', B), a.onFieldBlur()
        }
      i({ blur: d, focus: c, scrollTo: f })
      const F = P(() => m.value === 'multiple' || m.value === 'tags'),
        H = P(() =>
          e.showArrow !== void 0
            ? e.showArrow
            : e.loading || !(F.value || m.value === 'combobox')
        )
      return () => {
        var B, X, ee, de
        const {
            notFoundContent: ie,
            listHeight: Q = 256,
            listItemHeight: se = 24,
            popupClassName: q,
            dropdownClassName: K,
            virtual: U,
            dropdownMatchSelectWidth: ue,
            id: me = a.id.value,
            placeholder: he = (B = r.placeholder) === null || B === void 0
              ? void 0
              : B.call(r),
            showArrow: Pe
          } = e,
          { hasFeedback: ve, feedbackIcon: ye } = s
        let te
        ie !== void 0
          ? (te = ie)
          : r.notFoundContent
          ? (te = r.notFoundContent())
          : m.value === 'combobox'
          ? (te = null)
          : (te =
              (S == null ? void 0 : S('Select')) ||
              v(Pc, { componentName: 'Select' }, null))
        const {
            suffixIcon: Z,
            itemIcon: fe,
            removeIcon: xe,
            clearIcon: be
          } = xI(
            p(p({}, e), {
              multiple: F.value,
              prefixCls: g.value,
              hasFeedback: ve,
              feedbackIcon: ye,
              showArrow: H.value
            }),
            r
          ),
          Ce = rt(e, [
            'prefixCls',
            'suffixIcon',
            'itemIcon',
            'removeIcon',
            'clearIcon',
            'size',
            'bordered',
            'status'
          ]),
          Ne = oe(
            q || K,
            { [`${g.value}-dropdown-${h.value}`]: h.value === 'rtl' },
            M.value
          )
        return z(
          v(
            AT,
            N(
              N(N({ ref: l, virtual: U, dropdownMatchSelectWidth: ue }, Ce), n),
              {},
              {
                showSearch:
                  (X = e.showSearch) !== null && X !== void 0
                    ? X
                    : (ee = w == null ? void 0 : w.value) === null ||
                      ee === void 0
                    ? void 0
                    : ee.showSearch,
                placeholder: he,
                listHeight: Q,
                listItemHeight: se,
                mode: m.value,
                prefixCls: g.value,
                direction: h.value,
                inputIcon: Z,
                menuItemSelectedIcon: fe,
                removeIcon: xe,
                clearIcon: be,
                notFoundContent: te,
                class: [L.value, n.class],
                getPopupContainer: O == null ? void 0 : O.value,
                dropdownClassName: Ne,
                onChange: W,
                onBlur: D,
                id: me,
                dropdownRender: Ce.dropdownRender || r.dropdownRender,
                transitionName: R.value,
                children:
                  (de = r.default) === null || de === void 0
                    ? void 0
                    : de.call(r),
                tagRender: e.tagRender || r.tagRender,
                optionLabelRender: r.optionLabel,
                maxTagPlaceholder: e.maxTagPlaceholder || r.maxTagPlaceholder,
                showArrow: ve || Pe,
                disabled: A.value
              }
            ),
            { option: r.option }
          )
        )
      }
    }
  })
fn.install = function(e) {
  return (
    e.component(fn.name, fn),
    e.component(fn.Option.displayName, fn.Option),
    e.component(fn.OptGroup.displayName, fn.OptGroup),
    e
  )
}
fn.Option
fn.OptGroup
const ir = fn
function vp(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) {
        F_(e, r, n[r])
      })
  }
  return e
}
function F_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var du = function(t, n) {
  var o = vp({}, t, n.attrs)
  return v(et, vp({}, o, { icon: k0 }), null)
}
du.displayName = 'CheckCircleOutlined'
du.inheritAttrs = !1
const H_ = du
function mp(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) {
        k_(e, r, n[r])
      })
  }
  return e
}
function k_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var fu = function(t, n) {
  var o = mp({}, t, n.attrs)
  return v(et, mp({}, o, { icon: j0 }), null)
}
fu.displayName = 'ExclamationCircleOutlined'
fu.inheritAttrs = !1
const j_ = fu
function gp(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) {
        K_(e, r, n[r])
      })
  }
  return e
}
function K_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var pu = function(t, n) {
  var o = gp({}, t, n.attrs)
  return v(et, gp({}, o, { icon: K0 }), null)
}
pu.displayName = 'InfoCircleOutlined'
pu.inheritAttrs = !1
const W_ = pu
function hp(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) {
        V_(e, r, n[r])
      })
  }
  return e
}
function V_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var vu = function(t, n) {
  var o = hp({}, t, n.attrs)
  return v(et, hp({}, o, { icon: W0 }), null)
}
vu.displayName = 'CloseCircleOutlined'
vu.inheritAttrs = !1
const G_ = vu
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) {
        U_(e, r, n[r])
      })
  }
  return e
}
function U_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var mu = function(t, n) {
  var o = bp({}, t, n.attrs)
  return v(et, bp({}, o, { icon: V0 }), null)
}
mu.displayName = 'CheckCircleFilled'
mu.inheritAttrs = !1
const Ll = mu
function yp(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) {
        X_(e, r, n[r])
      })
  }
  return e
}
function X_(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 = yp({}, t, n.attrs)
  return v(et, yp({}, o, { icon: G0 }), null)
}
gu.displayName = 'ExclamationCircleFilled'
gu.inheritAttrs = !1
const ni = gu
function Sp(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) {
        q_(e, r, n[r])
      })
  }
  return e
}
function q_(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var hu = function(t, n) {
  var o = Sp({}, t, n.attrs)
  return v(et, Sp({}, o, { icon: U0 }), null)
}
hu.displayName = 'InfoCircleFilled'
hu.inheritAttrs = !1
const Fl = hu,
  Pj = ['xxxl', 'xxl', 'xl', 'lg', 'md', 'sm', 'xs'],
  Y_ = 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 J_() {
  const [, e] = dr()
  return P(() => {
    const t = Y_(e.value),
      n = new Map()
    let o = -1,
      r = {}
    return {
      matchHandlers: {},
      dispatch(i) {
        return (r = i), n.forEach(l => l(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 l = t[i],
            a = this.matchHandlers[l]
          a == null || a.mql.removeListener(a == null ? void 0 : a.listener)
        }),
          n.clear()
      },
      register() {
        Object.keys(t).forEach(i => {
          const l = t[i],
            a = u => {
              let { matches: c } = u
              this.dispatch(p(p({}, r), { [i]: c }))
            },
            s = window.matchMedia(l)
          s.addListener(a),
            (this.matchHandlers[l] = { mql: s, listener: a }),
            a(s)
        })
      },
      responsiveMap: t
    }
  })
}
function zh() {
  const e = V({})
  let t = null
  const n = J_()
  return (
    We(() => {
      t = n.value.subscribe(o => {
        e.value = o
      })
    }),
    Gn(() => {
      n.value.unsubscribe(t)
    }),
    e
  )
}
function nn(e) {
  const t = V()
  return (
    Me(
      () => {
        t.value = e()
      },
      { flush: 'sync' }
    ),
    t
  )
}
const Ut = { adjustX: 1, adjustY: 1 },
  Xt = [0, 0],
  Lh = {
    left: {
      points: ['cr', 'cl'],
      overflow: Ut,
      offset: [-4, 0],
      targetOffset: Xt
    },
    right: {
      points: ['cl', 'cr'],
      overflow: Ut,
      offset: [4, 0],
      targetOffset: Xt
    },
    top: {
      points: ['bc', 'tc'],
      overflow: Ut,
      offset: [0, -4],
      targetOffset: Xt
    },
    bottom: {
      points: ['tc', 'bc'],
      overflow: Ut,
      offset: [0, 4],
      targetOffset: Xt
    },
    topLeft: {
      points: ['bl', 'tl'],
      overflow: Ut,
      offset: [0, -4],
      targetOffset: Xt
    },
    leftTop: {
      points: ['tr', 'tl'],
      overflow: Ut,
      offset: [-4, 0],
      targetOffset: Xt
    },
    topRight: {
      points: ['br', 'tr'],
      overflow: Ut,
      offset: [0, -4],
      targetOffset: Xt
    },
    rightTop: {
      points: ['tl', 'tr'],
      overflow: Ut,
      offset: [4, 0],
      targetOffset: Xt
    },
    bottomRight: {
      points: ['tr', 'br'],
      overflow: Ut,
      offset: [0, 4],
      targetOffset: Xt
    },
    rightBottom: {
      points: ['bl', 'br'],
      overflow: Ut,
      offset: [4, 0],
      targetOffset: Xt
    },
    bottomLeft: {
      points: ['tl', 'bl'],
      overflow: Ut,
      offset: [0, 4],
      targetOffset: Xt
    },
    leftBottom: {
      points: ['br', 'bl'],
      overflow: Ut,
      offset: [-4, 0],
      targetOffset: Xt
    }
  },
  Q_ = { prefixCls: String, id: String, overlayInnerStyle: k.any },
  Z_ = J({
    compatConfig: { MODE: 3 },
    name: 'TooltipContent',
    props: Q_,
    setup(e, t) {
      let { slots: n } = t
      return () => {
        var o
        return v(
          '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 eR =
  (globalThis && globalThis.__rest) ||
  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 xp() {}
const tR = J({
    compatConfig: { MODE: 3 },
    name: 'Tooltip',
    inheritAttrs: !1,
    props: {
      trigger: k.any.def(['hover']),
      defaultVisible: { type: Boolean, default: void 0 },
      visible: { type: Boolean, default: void 0 },
      placement: k.string.def('right'),
      transitionName: String,
      animation: k.any,
      afterVisibleChange: k.func.def(() => {}),
      overlayStyle: { type: Object, default: void 0 },
      overlayClassName: String,
      prefixCls: k.string.def('rc-tooltip'),
      mouseEnterDelay: k.number.def(0.1),
      mouseLeaveDelay: k.number.def(0.1),
      getPopupContainer: Function,
      destroyTooltipOnHide: { type: Boolean, default: !1 },
      align: k.object.def(() => ({})),
      arrowContent: k.any.def(null),
      tipId: String,
      builtinPlacements: k.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 = V(),
        l = () => {
          const { prefixCls: c, tipId: d, overlayInnerStyle: f } = e
          return [
            e.arrow
              ? v('div', { class: `${c}-arrow`, key: 'arrow' }, [
                  ao(n, e, 'arrowContent')
                ])
              : null,
            v(
              Z_,
              { key: 'content', prefixCls: c, id: d, overlayInnerStyle: f },
              { overlay: n.overlay }
            )
          ]
        }
      r({
        getPopupDomNode: () => i.value.getPopupDomNode(),
        triggerDOM: i,
        forcePopupAlign: () => {
          var c
          return (c = i.value) === null || c === void 0
            ? void 0
            : c.forcePopupAlign()
        }
      })
      const s = V(!1),
        u = V(!1)
      return (
        Me(() => {
          const { destroyTooltipOnHide: c } = e
          if (typeof c == 'boolean') s.value = c
          else if (c && typeof c == 'object') {
            const { keepParent: d } = c
            ;(s.value = d === !0), (u.value = d === !1)
          }
        }),
        () => {
          const {
              overlayClassName: c,
              trigger: d,
              mouseEnterDelay: f,
              mouseLeaveDelay: m,
              overlayStyle: g,
              prefixCls: h,
              afterVisibleChange: b,
              transitionName: S,
              animation: C,
              placement: $,
              align: O,
              destroyTooltipOnHide: x,
              defaultVisible: w
            } = e,
            y = eR(e, [
              'overlayClassName',
              'trigger',
              'mouseEnterDelay',
              'mouseLeaveDelay',
              'overlayStyle',
              'prefixCls',
              'afterVisibleChange',
              'transitionName',
              'animation',
              'placement',
              'align',
              'destroyTooltipOnHide',
              'defaultVisible'
            ]),
            T = p({}, y)
          e.visible !== void 0 && (T.popupVisible = e.visible)
          const I = p(
            p(
              p(
                {
                  popupClassName: c,
                  prefixCls: h,
                  action: d,
                  builtinPlacements: Lh,
                  popupPlacement: $,
                  popupAlign: O,
                  afterPopupVisibleChange: b,
                  popupTransitionName: S,
                  popupAnimation: C,
                  defaultPopupVisible: w,
                  destroyPopupOnHide: s.value,
                  autoDestroy: u.value,
                  mouseLeaveDelay: m,
                  popupStyle: g,
                  mouseEnterDelay: f
                },
                T
              ),
              o
            ),
            {
              onPopupVisibleChange: e.onVisibleChange || xp,
              onPopupAlign: e.onPopupAlign || xp,
              ref: i,
              arrow: !!e.arrow,
              popup: l()
            }
          )
          return v(El, I, { default: n.default })
        }
      )
    }
  }),
  bu = () => ({
    trigger: [String, Array],
    open: { type: Boolean, default: void 0 },
    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,
    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,
    onVisibleChange: Function,
    'onUpdate:visible': Function,
    onOpenChange: Function,
    'onUpdate:open': Function
  }),
  nR = { adjustX: 1, adjustY: 1 },
  Cp = { adjustX: 0, adjustY: 0 },
  oR = [0, 0]
function $p(e) {
  return typeof e == 'boolean' ? (e ? nR : Cp) : p(p({}, Cp), e)
}
function Fh(e) {
  const {
      arrowWidth: t = 4,
      horizontalArrowShift: n = 16,
      verticalArrowShift: o = 8,
      autoAdjustOverflow: r,
      arrowPointAtCenter: i
    } = e,
    l = {
      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(l).forEach(a => {
      ;(l[a] = i
        ? p(p({}, l[a]), { overflow: $p(r), targetOffset: oR })
        : p(p({}, Lh[a]), { overflow: $p(r) })),
        (l[a].ignoreShake = !0)
    }),
    l
  )
}
function ws() {
  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 rR = Wr.map(e => `${e}-inverse`),
  iR = ['success', 'processing', 'error', 'default', 'warning']
function lR(e) {
  return (arguments.length > 1 && arguments[1] !== void 0
  ? arguments[1]
  : !0)
    ? [...rR, ...Wr].includes(e)
    : Wr.includes(e)
}
function Tj(e) {
  return iR.includes(e)
}
function aR(e, t) {
  const n = lR(t),
    o = oe({ [`${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 xi(e) {
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ''
  return e.map(n => `${t}${n}`).join(',')
}
const Hh = 8
function kh(e) {
  const t = Hh,
    {
      sizePopupArrow: n,
      contentRadius: o,
      borderRadiusOuter: r,
      limitVerticalRadius: i
    } = e,
    l = n / 2 - Math.ceil(r * (Math.sqrt(2) - 1)),
    a = (o > 12 ? o + 2 : 12) - l,
    s = i ? t - l : a
  return { dropdownArrowOffset: a, dropdownArrowOffsetVertical: s }
}
function jh(e, t) {
  const {
      componentCls: n,
      sizePopupArrow: o,
      marginXXS: r,
      borderRadiusXS: i,
      borderRadiusOuter: l,
      boxShadowPopoverArrow: a
    } = e,
    {
      colorBg: s,
      showArrowCls: u,
      contentRadius: c = e.borderRadiusLG,
      limitVerticalRadius: d
    } = t,
    { dropdownArrowOffsetVertical: f, dropdownArrowOffset: m } = kh({
      sizePopupArrow: o,
      contentRadius: c,
      borderRadiusOuter: l,
      limitVerticalRadius: d
    }),
    g = o / 2 + r
  return {
    [n]: {
      [`${n}-arrow`]: [
        p(
          p(
            { position: 'absolute', zIndex: 1, display: 'block' },
            ig(o, i, l, s, a)
          ),
          { '&:before': { background: s } }
        )
      ],
      [[
        `&-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: m }
      },
      [`&-placement-topRight ${n}-arrow`]: {
        right: { _skip_check_: !0, value: m }
      },
      [[
        `&-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: m }
      },
      [`&-placement-bottomRight ${n}-arrow`]: {
        right: { _skip_check_: !0, value: m }
      },
      [[
        `&-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 },
      [[
        `&-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 },
      [xi(
        ['&-placement-topLeft', '&-placement-top', '&-placement-topRight'].map(
          h => (h += ':not(&-arrow-hidden)')
        ),
        u
      )]: { paddingBottom: g },
      [xi(
        [
          '&-placement-bottomLeft',
          '&-placement-bottom',
          '&-placement-bottomRight'
        ].map(h => (h += ':not(&-arrow-hidden)')),
        u
      )]: { paddingTop: g },
      [xi(
        [
          '&-placement-leftTop',
          '&-placement-left',
          '&-placement-leftBottom'
        ].map(h => (h += ':not(&-arrow-hidden)')),
        u
      )]: { paddingRight: { _skip_check_: !0, value: g } },
      [xi(
        [
          '&-placement-rightTop',
          '&-placement-right',
          '&-placement-rightBottom'
        ].map(h => (h += ':not(&-arrow-hidden)')),
        u
      )]: { paddingLeft: { _skip_check_: !0, value: g } }
    }
  }
}
const sR = e => {
    const {
      componentCls: t,
      tooltipMaxWidth: n,
      tooltipColor: o,
      tooltipBg: r,
      tooltipBorderRadius: i,
      zIndexPopup: l,
      controlHeight: a,
      boxShadowSecondary: s,
      paddingSM: u,
      paddingXS: c,
      tooltipRadiusOuter: d
    } = e
    return [
      {
        [t]: p(
          p(
            p(p({}, ct(e)), {
              position: 'absolute',
              zIndex: l,
              display: 'block',
              '&': [{ width: 'max-content' }, { width: 'intrinsic' }],
              maxWidth: n,
              visibility: 'visible',
              '&-hidden': { display: 'none' },
              '--antd-arrow-background-color': r,
              [`${t}-inner`]: {
                minWidth: a,
                minHeight: a,
                padding: `${u / 2}px ${c}px`,
                color: o,
                textAlign: 'start',
                textDecoration: 'none',
                wordWrap: 'break-word',
                backgroundColor: r,
                borderRadius: i,
                boxShadow: s
              },
              [[
                '&-placement-left',
                '&-placement-leftTop',
                '&-placement-leftBottom',
                '&-placement-right',
                '&-placement-rightTop',
                '&-placement-rightBottom'
              ].join(',')]: {
                [`${t}-inner`]: { borderRadius: Math.min(i, Hh) }
              },
              [`${t}-content`]: { position: 'relative' }
            }),
            _C(e, (f, m) => {
              let { darkColor: g } = m
              return {
                [`&${t}-${f}`]: {
                  [`${t}-inner`]: { backgroundColor: g },
                  [`${t}-arrow`]: { '--antd-arrow-background-color': g }
                }
              }
            })
          ),
          { '&-rtl': { direction: 'rtl' } }
        )
      },
      jh(Ze(e, { borderRadiusOuter: d }), {
        colorBg: 'var(--antd-arrow-background-color)',
        showArrowCls: '',
        contentRadius: i,
        limitVerticalRadius: !0
      }),
      { [`${t}-pure`]: { position: 'relative', maxWidth: 'none' } }
    ]
  },
  cR = (e, t) =>
    pt(
      'Tooltip',
      o => {
        if ((t == null ? void 0 : t.value) === !1) return []
        const {
            borderRadius: r,
            colorTextLightSolid: i,
            colorBgDefault: l,
            borderRadiusOuter: a
          } = o,
          s = Ze(o, {
            tooltipMaxWidth: 250,
            tooltipColor: i,
            tooltipBorderRadius: r,
            tooltipBg: l,
            tooltipRadiusOuter: a > 4 ? 4 : a
          })
        return [sR(s), zl(o, 'zoom-big-fast')]
      },
      o => {
        let { zIndexPopupBase: r, colorBgSpotlight: i } = o
        return { zIndexPopup: r + 70, colorBgDefault: i }
      }
    )(e),
  uR = (e, t) => {
    const n = {},
      o = p({}, e)
    return (
      t.forEach(r => {
        e && r in e && ((n[r] = e[r]), delete o[r])
      }),
      { picked: n, omitted: o }
    )
  },
  dR = () => p(p({}, bu()), { title: k.any }),
  Kh = () => ({
    trigger: 'hover',
    align: {},
    placement: 'top',
    mouseEnterDelay: 0.1,
    mouseLeaveDelay: 0.1,
    arrowPointAtCenter: !1,
    autoAdjustOverflow: !0
  }),
  fR = J({
    compatConfig: { MODE: 3 },
    name: 'ATooltip',
    inheritAttrs: !1,
    props: mt(dR(), {
      trigger: 'hover',
      align: {},
      placement: 'top',
      mouseEnterDelay: 0.1,
      mouseLeaveDelay: 0.1,
      arrowPointAtCenter: !1,
      autoAdjustOverflow: !0
    }),
    slots: Object,
    setup(e, t) {
      let { slots: n, emit: o, attrs: r, expose: i } = t
      const {
          prefixCls: l,
          getPopupContainer: a,
          direction: s,
          rootPrefixCls: u
        } = je('tooltip', e),
        c = P(() => {
          var _
          return (_ = e.open) !== null && _ !== void 0 ? _ : e.visible
        }),
        d = ne(ws([e.open, e.visible])),
        f = ne()
      let m
      ge(c, _ => {
        He.cancel(m),
          (m = He(() => {
            d.value = !!_
          }))
      })
      const g = () => {
          var _
          const A = (_ = e.title) !== null && _ !== void 0 ? _ : n.title
          return !A && A !== 0
        },
        h = _ => {
          const A = g()
          c.value === void 0 && (d.value = A ? !1 : _),
            A ||
              (o('update:visible', _),
              o('visibleChange', _),
              o('update:open', _),
              o('openChange', _))
        }
      i({
        getPopupDomNode: () => f.value.getPopupDomNode(),
        open: d,
        forcePopupAlign: () => {
          var _
          return (_ = f.value) === null || _ === void 0
            ? void 0
            : _.forcePopupAlign()
        }
      })
      const S = P(() => {
          var _
          const {
            builtinPlacements: A,
            autoAdjustOverflow: z,
            arrow: M,
            arrowPointAtCenter: j
          } = e
          let E = j
          return (
            typeof M == 'object' &&
              (E = (_ = M.pointAtCenter) !== null && _ !== void 0 ? _ : j),
            A || Fh({ arrowPointAtCenter: E, autoAdjustOverflow: z })
          )
        }),
        C = _ => _ || _ === '',
        $ = _ => {
          const A = _.type
          if (
            typeof A == 'object' &&
            _.props &&
            (((A.__ANT_BUTTON === !0 || A === 'button') &&
              C(_.props.disabled)) ||
              (A.__ANT_SWITCH === !0 &&
                (C(_.props.disabled) || C(_.props.loading))) ||
              (A.__ANT_RADIO === !0 && C(_.props.disabled)))
          ) {
            const { picked: z, omitted: M } = uR(ox(_), [
                'position',
                'left',
                'right',
                'top',
                'bottom',
                'float',
                'display',
                'zIndex'
              ]),
              j = p(p({ display: 'inline-block' }, z), {
                cursor: 'not-allowed',
                lineHeight: 1,
                width: _.props && _.props.block ? '100%' : void 0
              }),
              E = p(p({}, M), { pointerEvents: 'none' }),
              R = ft(_, { style: E }, !0)
            return v(
              'span',
              { style: j, class: `${l.value}-disabled-compatible-wrapper` },
              [R]
            )
          }
          return _
        },
        O = () => {
          var _, A
          return (_ = e.title) !== null && _ !== void 0
            ? _
            : (A = n.title) === null || A === void 0
            ? void 0
            : A.call(n)
        },
        x = (_, A) => {
          const z = S.value,
            M = Object.keys(z).find(j => {
              var E, R
              return (
                z[j].points[0] ===
                  ((E = A.points) === null || E === void 0 ? void 0 : E[0]) &&
                z[j].points[1] ===
                  ((R = A.points) === null || R === void 0 ? void 0 : R[1])
              )
            })
          if (M) {
            const j = _.getBoundingClientRect(),
              E = { top: '50%', left: '50%' }
            M.indexOf('top') >= 0 || M.indexOf('Bottom') >= 0
              ? (E.top = `${j.height - A.offset[1]}px`)
              : (M.indexOf('Top') >= 0 || M.indexOf('bottom') >= 0) &&
                (E.top = `${-A.offset[1]}px`),
              M.indexOf('left') >= 0 || M.indexOf('Right') >= 0
                ? (E.left = `${j.width - A.offset[0]}px`)
                : (M.indexOf('right') >= 0 || M.indexOf('Left') >= 0) &&
                  (E.left = `${-A.offset[0]}px`),
              (_.style.transformOrigin = `${E.left} ${E.top}`)
          }
        },
        w = P(() => aR(l.value, e.color)),
        y = P(() => r['data-popover-inject']),
        [T, I] = cR(
          l,
          P(() => !y.value)
        )
      return () => {
        var _, A
        const {
          openClassName: z,
          overlayClassName: M,
          overlayStyle: j,
          overlayInnerStyle: E
        } = e
        let R =
          (A = Tt(
            (_ = n.default) === null || _ === void 0 ? void 0 : _.call(n)
          )) !== null && A !== void 0
            ? A
            : null
        R = R.length === 1 ? R[0] : R
        let L = d.value
        if ((c.value === void 0 && g() && (L = !1), !R)) return null
        const W = $(Ft(R) && !rx(R) ? R : v('span', null, [R])),
          D = oe({
            [z || `${l.value}-open`]: !0,
            [W.props && W.props.class]: W.props && W.props.class
          }),
          F = oe(
            M,
            { [`${l.value}-rtl`]: s.value === 'rtl' },
            w.value.className,
            I.value
          ),
          H = p(p({}, w.value.overlayStyle), E),
          B = w.value.arrowStyle,
          X = p(p(p({}, r), e), {
            prefixCls: l.value,
            arrow: !!e.arrow,
            getPopupContainer: a == null ? void 0 : a.value,
            builtinPlacements: S.value,
            visible: L,
            ref: f,
            overlayClassName: F,
            overlayStyle: p(p({}, B), j),
            overlayInnerStyle: H,
            onVisibleChange: h,
            onPopupAlign: x,
            transitionName: Il(u.value, 'zoom-big-fast', e.transitionName)
          })
        return T(
          v(tR, X, {
            default: () => [d.value ? ft(W, { class: D }) : W],
            arrowContent: () =>
              v('span', { class: `${l.value}-arrow-content` }, null),
            overlay: O
          })
        )
      }
    }
  }),
  Vo = Po(fR),
  pR = e => {
    const {
      componentCls: t,
      popoverBg: n,
      popoverColor: o,
      width: r,
      fontWeightStrong: i,
      popoverPadding: l,
      boxShadowSecondary: a,
      colorTextHeading: s,
      borderRadiusLG: u,
      zIndexPopup: c,
      marginXS: d,
      colorBgElevated: f
    } = e
    return [
      {
        [t]: p(p({}, ct(e)), {
          position: 'absolute',
          top: 0,
          left: { _skip_check_: !0, value: 0 },
          zIndex: c,
          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: u,
            boxShadow: a,
            padding: l
          },
          [`${t}-title`]: {
            minWidth: r,
            marginBottom: d,
            color: s,
            fontWeight: i
          },
          [`${t}-inner-content`]: { color: o }
        })
      },
      jh(e, { colorBg: 'var(--antd-arrow-background-color)' }),
      {
        [`${t}-pure`]: {
          position: 'relative',
          maxWidth: 'none',
          [`${t}-content`]: { display: 'inline-block' }
        }
      }
    ]
  },
  vR = e => {
    const { componentCls: t } = e
    return {
      [t]: Wr.map(n => {
        const o = e[`${n}-6`]
        return {
          [`&${t}-${n}`]: {
            '--antd-arrow-background-color': o,
            [`${t}-inner`]: { backgroundColor: o },
            [`${t}-arrow`]: { background: 'transparent' }
          }
        }
      })
    }
  },
  mR = e => {
    const {
        componentCls: t,
        lineWidth: n,
        lineType: o,
        colorSplit: r,
        paddingSM: i,
        controlHeight: l,
        fontSize: a,
        lineHeight: s,
        padding: u
      } = e,
      c = l - Math.round(a * s),
      d = c / 2,
      f = c / 2 - n,
      m = u
    return {
      [t]: {
        [`${t}-inner`]: { padding: 0 },
        [`${t}-title`]: {
          margin: 0,
          padding: `${d}px ${m}px ${f}px`,
          borderBottom: `${n}px ${o} ${r}`
        },
        [`${t}-inner-content`]: { padding: `${i}px ${m}px` }
      }
    }
  },
  gR = pt(
    'Popover',
    e => {
      const { colorBgElevated: t, colorText: n, wireframe: o } = e,
        r = Ze(e, { popoverBg: t, popoverColor: n, popoverPadding: 12 })
      return [pR(r), vR(r), o && mR(r), zl(r, 'zoom-big')]
    },
    e => {
      let { zIndexPopupBase: t } = e
      return { zIndexPopup: t + 30, width: 177 }
    }
  ),
  hR = () => p(p({}, bu()), { content: wt(), title: wt() }),
  bR = J({
    compatConfig: { MODE: 3 },
    name: 'APopover',
    inheritAttrs: !1,
    props: mt(
      hR(),
      p(p({}, Kh()), {
        trigger: 'hover',
        placement: 'top',
        mouseEnterDelay: 0.1,
        mouseLeaveDelay: 0.1
      })
    ),
    setup(e, t) {
      let { expose: n, slots: o, attrs: r } = t
      const i = ne()
      kt(e.visible === void 0),
        n({
          getPopupDomNode: () => {
            var f, m
            return (m =
              (f = i.value) === null || f === void 0
                ? void 0
                : f.getPopupDomNode) === null || m === void 0
              ? void 0
              : m.call(f)
          }
        })
      const { prefixCls: l, configProvider: a } = je('popover', e),
        [s, u] = gR(l),
        c = P(() => a.getPrefixCls()),
        d = () => {
          var f, m
          const {
              title: g = Tt(
                (f = o.title) === null || f === void 0 ? void 0 : f.call(o)
              ),
              content: h = Tt(
                (m = o.content) === null || m === void 0 ? void 0 : m.call(o)
              )
            } = e,
            b = !!(Array.isArray(g) ? g.length : g),
            S = !!(Array.isArray(h) ? h.length : g)
          return !b && !S
            ? null
            : v(nt, null, [
                b && v('div', { class: `${l.value}-title` }, [g]),
                v('div', { class: `${l.value}-inner-content` }, [h])
              ])
        }
      return () => {
        const f = oe(e.overlayClassName, u.value)
        return s(
          v(
            Vo,
            N(
              N(N({}, rt(e, ['title', 'content'])), r),
              {},
              {
                prefixCls: l.value,
                ref: i,
                overlayClassName: f,
                transitionName: Il(c.value, 'zoom-big', e.transitionName),
                'data-popover-inject': !0
              }
            ),
            { title: d, default: o.default }
          )
        )
      }
    }
  }),
  yR = Po(bR),
  Bo = { adjustX: 1, adjustY: 1 },
  zo = [0, 0],
  SR = {
    topLeft: {
      points: ['bl', 'tl'],
      overflow: Bo,
      offset: [0, -4],
      targetOffset: zo
    },
    topCenter: {
      points: ['bc', 'tc'],
      overflow: Bo,
      offset: [0, -4],
      targetOffset: zo
    },
    topRight: {
      points: ['br', 'tr'],
      overflow: Bo,
      offset: [0, -4],
      targetOffset: zo
    },
    bottomLeft: {
      points: ['tl', 'bl'],
      overflow: Bo,
      offset: [0, 4],
      targetOffset: zo
    },
    bottomCenter: {
      points: ['tc', 'bc'],
      overflow: Bo,
      offset: [0, 4],
      targetOffset: zo
    },
    bottomRight: {
      points: ['tr', 'br'],
      overflow: Bo,
      offset: [0, 4],
      targetOffset: zo
    }
  },
  xR = SR
var CR =
  (globalThis && globalThis.__rest) ||
  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 Wh = J({
    compatConfig: { MODE: 3 },
    props: {
      minOverlayWidthMatchTrigger: { type: Boolean, default: void 0 },
      arrow: { type: Boolean, default: !1 },
      prefixCls: k.string.def('rc-dropdown'),
      transitionName: String,
      overlayClassName: k.string.def(''),
      openClassName: String,
      animation: k.any,
      align: k.object,
      overlayStyle: { type: Object, default: void 0 },
      placement: k.string.def('bottomLeft'),
      overlay: k.any,
      trigger: k.oneOfType([k.string, k.arrayOf(k.string)]).def('hover'),
      alignPoint: { type: Boolean, default: void 0 },
      showAction: k.array,
      hideAction: k.array,
      getPopupContainer: Function,
      visible: { type: Boolean, default: void 0 },
      defaultVisible: { type: Boolean, default: !1 },
      mouseEnterDelay: k.number.def(0.15),
      mouseLeaveDelay: k.number.def(0.1)
    },
    emits: ['visibleChange', 'overlayClick'],
    setup(e, t) {
      let { slots: n, emit: o, expose: r } = t
      const i = ne(!!e.visible)
      ge(
        () => e.visible,
        m => {
          m !== void 0 && (i.value = m)
        }
      )
      const l = ne()
      r({ triggerRef: l })
      const a = m => {
          e.visible === void 0 && (i.value = !1), o('overlayClick', m)
        },
        s = m => {
          e.visible === void 0 && (i.value = m), o('visibleChange', m)
        },
        u = () => {
          var m
          const g =
              (m = n.overlay) === null || m === void 0 ? void 0 : m.call(n),
            h = { prefixCls: `${e.prefixCls}-menu`, onClick: a }
          return v(nt, { key: Tm }, [
            e.arrow && v('div', { class: `${e.prefixCls}-arrow` }, null),
            ft(g, h, !1)
          ])
        },
        c = P(() => {
          const { minOverlayWidthMatchTrigger: m = !e.alignPoint } = e
          return m
        }),
        d = () => {
          var m
          const g =
            (m = n.default) === null || m === void 0 ? void 0 : m.call(n)
          return i.value && g
            ? ft(g[0], { class: e.openClassName || `${e.prefixCls}-open` }, !1)
            : g
        },
        f = P(() =>
          !e.hideAction && e.trigger.indexOf('contextmenu') !== -1
            ? ['click']
            : e.hideAction
        )
      return () => {
        const {
            prefixCls: m,
            arrow: g,
            showAction: h,
            overlayStyle: b,
            trigger: S,
            placement: C,
            align: $,
            getPopupContainer: O,
            transitionName: x,
            animation: w,
            overlayClassName: y
          } = e,
          T = CR(e, [
            'prefixCls',
            'arrow',
            'showAction',
            'overlayStyle',
            'trigger',
            'placement',
            'align',
            'getPopupContainer',
            'transitionName',
            'animation',
            'overlayClassName'
          ])
        return v(
          El,
          N(
            N({}, T),
            {},
            {
              prefixCls: m,
              ref: l,
              popupClassName: oe(y, { [`${m}-show-arrow`]: g }),
              popupStyle: b,
              builtinPlacements: xR,
              action: S,
              showAction: h,
              hideAction: f.value || [],
              popupPlacement: C,
              popupAlign: $,
              popupTransitionName: x,
              popupAnimation: w,
              popupVisible: i.value,
              stretch: c.value ? 'minWidth' : '',
              onPopupVisibleChange: s,
              getPopupContainer: O
            }
          ),
          { popup: u, default: d }
        )
      }
    }
  }),
  $R = 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,
        '&.wave-motion-appear': {
          transition: [
            `box-shadow 0.4s ${e.motionEaseOutCirc}`,
            `opacity 2s ${e.motionEaseOutCirc}`
          ].join(','),
          '&-active': { boxShadow: '0 0 0 6px currentcolor', opacity: 0 }
        }
      }
    }
  },
  wR = pt('Wave', e => [$R(e)])
function OR(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 Pa(e) {
  return (
    e &&
    e !== '#fff' &&
    e !== '#ffffff' &&
    e !== 'rgb(255, 255, 255)' &&
    e !== 'rgba(255, 255, 255, 1)' &&
    OR(e) &&
    !/rgba\((?:\d*, ){3}0\)/.test(e) &&
    e !== 'transparent'
  )
}
function PR(e) {
  const {
    borderTopColor: t,
    borderColor: n,
    backgroundColor: o
  } = getComputedStyle(e)
  return Pa(t) ? t : Pa(n) ? n : Pa(o) ? o : null
}
function Ta(e) {
  return Number.isNaN(e) ? 0 : e
}
const TR = J({
  props: { target: Xe(), className: String },
  setup(e) {
    const t = V(null),
      [n, o] = tt(null),
      [r, i] = tt([]),
      [l, a] = tt(0),
      [s, u] = tt(0),
      [c, d] = tt(0),
      [f, m] = tt(0),
      [g, h] = tt(!1)
    function b() {
      const { target: y } = e,
        T = getComputedStyle(y)
      o(PR(y))
      const I = T.position === 'static',
        { borderLeftWidth: _, borderTopWidth: A } = T
      a(I ? y.offsetLeft : Ta(-parseFloat(_))),
        u(I ? y.offsetTop : Ta(-parseFloat(A))),
        d(y.offsetWidth),
        m(y.offsetHeight)
      const {
        borderTopLeftRadius: z,
        borderTopRightRadius: M,
        borderBottomLeftRadius: j,
        borderBottomRightRadius: E
      } = T
      i([z, M, E, j].map(R => Ta(parseFloat(R))))
    }
    let S, C, $
    const O = () => {
        clearTimeout($), He.cancel(C), S == null || S.disconnect()
      },
      x = () => {
        var y
        const T =
          (y = t.value) === null || y === void 0 ? void 0 : y.parentElement
        T && (Qo(null, T), T.parentElement && T.parentElement.removeChild(T))
      }
    We(() => {
      O(),
        ($ = setTimeout(() => {
          x()
        }, 5e3))
      const { target: y } = e
      y &&
        ((C = He(() => {
          b(), h(!0)
        })),
        typeof ResizeObserver < 'u' &&
          ((S = new ResizeObserver(b)), S.observe(y)))
    }),
      Qe(() => {
        O()
      })
    const w = y => {
      y.propertyName === 'opacity' && x()
    }
    return () => {
      if (!g.value) return null
      const y = {
        left: `${l.value}px`,
        top: `${s.value}px`,
        width: `${c.value}px`,
        height: `${f.value}px`,
        borderRadius: r.value.map(T => `${T}px`).join(' ')
      }
      return (
        n && (y['--wave-color'] = n.value),
        v(
          Oo,
          {
            appear: !0,
            name: 'wave-motion',
            appearFromClass: 'wave-motion-appear',
            appearActiveClass: 'wave-motion-appear',
            appearToClass: 'wave-motion-appear wave-motion-appear-active'
          },
          {
            default: () => [
              v(
                'div',
                { ref: t, class: e.className, style: y, onTransitionend: w },
                null
              )
            ]
          }
        )
      )
    }
  }
})
function IR(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),
    Qo(v(TR, { target: e, className: t }, null), n),
    () => {
      Qo(null, n), n.parentElement && n.parentElement.removeChild(n)
    }
  )
}
function ER(e, t) {
  const n = tn()
  let o
  function r() {
    var i
    const l = Wt(n)
    o == null || o(),
      !(
        (!((i = t == null ? void 0 : t.value) === null || i === void 0) &&
          i.disabled) ||
        !l
      ) && (o = IR(l, e.value))
  }
  return (
    Qe(() => {
      o == null || o()
    }),
    r
  )
}
const _R = J({
  compatConfig: { MODE: 3 },
  name: 'Wave',
  props: { disabled: Boolean },
  setup(e, t) {
    let { slots: n } = t
    const o = tn(),
      { prefixCls: r, wave: i } = je('wave', e),
      [, l] = wR(r),
      a = ER(
        P(() => oe(r.value, l.value)),
        i
      )
    let s
    const u = () => {
      Wt(o).removeEventListener('click', s, !0)
    }
    return (
      We(() => {
        ge(
          () => e.disabled,
          () => {
            u(),
              it(() => {
                const c = Wt(o)
                c == null || c.removeEventListener('click', s, !0),
                  !(!c || c.nodeType !== 1 || e.disabled) &&
                    ((s = d => {
                      d.target.tagName === 'INPUT' ||
                        !Nc(d.target) ||
                        !c.getAttribute ||
                        c.getAttribute('disabled') ||
                        c.disabled ||
                        c.className.includes('disabled') ||
                        c.className.includes('-leave') ||
                        a()
                    }),
                    c.addEventListener('click', s, !0))
              })
          },
          { immediate: !0, flush: 'post' }
        )
      }),
      Qe(() => {
        u()
      }),
      () => {
        var c
        return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0]
      }
    )
  }
})
function Os(e) {
  return e === 'danger' ? { danger: !0 } : { type: e }
}
const RR = () => ({
    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: k.any,
    href: String,
    target: String,
    title: String,
    onClick: Fr(),
    onMousedown: Fr()
  }),
  Vh = RR,
  wp = e => {
    e &&
      ((e.style.width = '0px'),
      (e.style.opacity = '0'),
      (e.style.transform = 'scale(0)'))
  },
  Op = e => {
    it(() => {
      e &&
        ((e.style.width = `${e.scrollWidth}px`),
        (e.style.opacity = '1'),
        (e.style.transform = 'scale(1)'))
    })
  },
  Pp = e => {
    e &&
      e.style &&
      ((e.style.width = null),
      (e.style.opacity = null),
      (e.style.transform = null))
  },
  AR = J({
    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 v('span', { class: `${n}-loading-icon` }, [v(xo, null, null)])
        const r = !!o
        return v(
          Oo,
          {
            name: `${n}-loading-icon-motion`,
            onBeforeEnter: wp,
            onEnter: Op,
            onAfterEnter: Pp,
            onBeforeLeave: Op,
            onLeave: i => {
              setTimeout(() => {
                wp(i)
              })
            },
            onAfterLeave: Pp
          },
          {
            default: () => [
              r
                ? v('span', { class: `${n}-loading-icon` }, [v(xo, null, null)])
                : null
            ]
          }
        )
      }
    }
  }),
  Tp = (e, t) => ({
    [`> span, > ${e}`]: {
      '&:not(:last-child)': {
        [`&, & > ${e}`]: { '&:not(:disabled)': { borderInlineEndColor: t } }
      },
      '&:not(:first-child)': {
        [`&, & > ${e}`]: { '&:not(:disabled)': { borderInlineStartColor: t } }
      }
    }
  }),
  DR = e => {
    const {
      componentCls: t,
      fontSize: n,
      lineWidth: o,
      colorPrimaryHover: r,
      colorErrorHover: i
    } = e
    return {
      [`${t}-group`]: [
        {
          position: 'relative',
          display: 'inline-flex',
          [`> 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 }
        },
        Tp(`${t}-primary`, r),
        Tp(`${t}-danger`, i)
      ]
    }
  },
  MR = DR
function NR(e, t) {
  return {
    [`&-item:not(${t}-last-item)`]: { marginBottom: -e.lineWidth },
    '&-item': {
      '&:hover,&:focus,&:active': { zIndex: 2 },
      '&[disabled]': { zIndex: 0 }
    }
  }
}
function BR(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 zR(e) {
  const t = `${e.componentCls}-compact-vertical`
  return { [t]: p(p({}, NR(e, t)), BR(e.componentCls, t)) }
}
const LR = 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' },
        [`> ${n} + span, > span + ${n}`]: { marginInlineStart: e.marginXS },
        '> a': { color: 'currentColor' },
        '&:not(:disabled)': p({}, nr(e)),
        [`&-icon-only${t}-compact-item`]: { flex: 'none' },
        [`&-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: '""'
            }
          }
        },
        '&-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: '""'
              }
            }
          }
        }
      }
    }
  },
  Rn = (e, t) => ({ '&:not(:disabled)': { '&:hover': e, '&:active': t } }),
  FR = e => ({
    minWidth: e.controlHeight,
    paddingInlineStart: 0,
    paddingInlineEnd: 0,
    borderRadius: '50%'
  }),
  HR = e => ({
    borderRadius: e.controlHeight,
    paddingInlineStart: e.controlHeight / 2,
    paddingInlineEnd: e.controlHeight / 2
  }),
  Ps = e => ({
    cursor: 'not-allowed',
    borderColor: e.colorBorder,
    color: e.colorTextDisabled,
    backgroundColor: e.colorBgContainerDisabled,
    boxShadow: 'none'
  }),
  ol = (e, t, n, o, r, i, l) => ({
    [`&${e}-background-ghost`]: p(
      p(
        {
          color: t || void 0,
          backgroundColor: 'transparent',
          borderColor: n || void 0,
          boxShadow: 'none'
        },
        Rn(
          p({ backgroundColor: 'transparent' }, i),
          p({ backgroundColor: 'transparent' }, l)
        )
      ),
      {
        '&:disabled': {
          cursor: 'not-allowed',
          color: o || void 0,
          borderColor: r || void 0
        }
      }
    )
  }),
  yu = e => ({ '&:disabled': p({}, Ps(e)) }),
  Gh = e => p({}, yu(e)),
  rl = e => ({
    '&:disabled': { cursor: 'not-allowed', color: e.colorTextDisabled }
  }),
  Uh = e =>
    p(
      p(
        p(
          p(p({}, Gh(e)), {
            backgroundColor: e.colorBgContainer,
            borderColor: e.colorBorder,
            boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`
          }),
          Rn(
            { color: e.colorPrimaryHover, borderColor: e.colorPrimaryHover },
            { color: e.colorPrimaryActive, borderColor: e.colorPrimaryActive }
          )
        ),
        ol(
          e.componentCls,
          e.colorBgContainer,
          e.colorBgContainer,
          e.colorTextDisabled,
          e.colorBorder
        )
      ),
      {
        [`&${e.componentCls}-dangerous`]: p(
          p(
            p(
              { color: e.colorError, borderColor: e.colorError },
              Rn(
                {
                  color: e.colorErrorHover,
                  borderColor: e.colorErrorBorderHover
                },
                { color: e.colorErrorActive, borderColor: e.colorErrorActive }
              )
            ),
            ol(
              e.componentCls,
              e.colorError,
              e.colorError,
              e.colorTextDisabled,
              e.colorBorder
            )
          ),
          yu(e)
        )
      }
    ),
  kR = e =>
    p(
      p(
        p(
          p(p({}, Gh(e)), {
            color: e.colorTextLightSolid,
            backgroundColor: e.colorPrimary,
            boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`
          }),
          Rn(
            {
              color: e.colorTextLightSolid,
              backgroundColor: e.colorPrimaryHover
            },
            {
              color: e.colorTextLightSolid,
              backgroundColor: e.colorPrimaryActive
            }
          )
        ),
        ol(
          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`]: p(
          p(
            p(
              {
                backgroundColor: e.colorError,
                boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`
              },
              Rn(
                { backgroundColor: e.colorErrorHover },
                { backgroundColor: e.colorErrorActive }
              )
            ),
            ol(
              e.componentCls,
              e.colorError,
              e.colorError,
              e.colorTextDisabled,
              e.colorBorder,
              { color: e.colorErrorHover, borderColor: e.colorErrorHover },
              { color: e.colorErrorActive, borderColor: e.colorErrorActive }
            )
          ),
          yu(e)
        )
      }
    ),
  jR = e => p(p({}, Uh(e)), { borderStyle: 'dashed' }),
  KR = e =>
    p(
      p(
        p(
          { color: e.colorLink },
          Rn({ color: e.colorLinkHover }, { color: e.colorLinkActive })
        ),
        rl(e)
      ),
      {
        [`&${e.componentCls}-dangerous`]: p(
          p(
            { color: e.colorError },
            Rn({ color: e.colorErrorHover }, { color: e.colorErrorActive })
          ),
          rl(e)
        )
      }
    ),
  WR = e =>
    p(
      p(
        p(
          {},
          Rn(
            { color: e.colorText, backgroundColor: e.colorBgTextHover },
            { color: e.colorText, backgroundColor: e.colorBgTextActive }
          )
        ),
        rl(e)
      ),
      {
        [`&${e.componentCls}-dangerous`]: p(
          p({ color: e.colorError }, rl(e)),
          Rn(
            { color: e.colorErrorHover, backgroundColor: e.colorErrorBg },
            { color: e.colorErrorHover, backgroundColor: e.colorErrorBg }
          )
        )
      }
    ),
  VR = e => p(p({}, Ps(e)), { [`&${e.componentCls}:hover`]: p({}, Ps(e)) }),
  GR = e => {
    const { componentCls: t } = e
    return {
      [`${t}-default`]: Uh(e),
      [`${t}-primary`]: kR(e),
      [`${t}-dashed`]: jR(e),
      [`${t}-link`]: KR(e),
      [`${t}-text`]: WR(e),
      [`${t}-disabled`]: VR(e)
    }
  },
  Su = function(e) {
    let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ''
    const {
        componentCls: n,
        iconCls: o,
        controlHeight: r,
        fontSize: i,
        lineHeight: l,
        lineWidth: a,
        borderRadius: s,
        buttonPaddingHorizontal: u
      } = e,
      c = Math.max(0, (r - i * l) / 2 - a),
      d = u - a,
      f = `${n}-icon-only`
    return [
      {
        [`${n}${t}`]: {
          fontSize: i,
          height: r,
          padding: `${c}px ${d}px`,
          borderRadius: s,
          [`&${f}`]: {
            width: r,
            paddingInlineStart: 0,
            paddingInlineEnd: 0,
            [`&${n}-round`]: { width: 'auto' },
            '> span': { transform: 'scale(1.143)' }
          },
          [`&${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
          }
        }
      },
      { [`${n}${n}-circle${t}`]: FR(e) },
      { [`${n}${n}-round${t}`]: HR(e) }
    ]
  },
  UR = e => Su(e),
  XR = e => {
    const t = Ze(e, {
      controlHeight: e.controlHeightSM,
      padding: e.paddingXS,
      buttonPaddingHorizontal: 8,
      borderRadius: e.borderRadiusSM
    })
    return Su(t, `${e.componentCls}-sm`)
  },
  qR = e => {
    const t = Ze(e, {
      controlHeight: e.controlHeightLG,
      fontSize: e.fontSizeLG,
      borderRadius: e.borderRadiusLG
    })
    return Su(t, `${e.componentCls}-lg`)
  },
  YR = e => {
    const { componentCls: t } = e
    return { [t]: { [`&${t}-block`]: { width: '100%' } } }
  },
  JR = pt('Button', e => {
    const { controlTmpOutline: t, paddingContentHorizontal: n } = e,
      o = Ze(e, { colorOutlineDefault: t, buttonPaddingHorizontal: n })
    return [
      LR(o),
      XR(o),
      UR(o),
      qR(o),
      YR(o),
      GR(o),
      MR(o),
      cu(e, { focus: !1 }),
      zR(e)
    ]
  }),
  QR = () => ({ prefixCls: String, size: { type: String } }),
  Xh = eu(),
  Ts = J({
    compatConfig: { MODE: 3 },
    name: 'AButtonGroup',
    props: QR(),
    setup(e, t) {
      let { slots: n } = t
      const { prefixCls: o, direction: r } = je('btn-group', e),
        [, , i] = dr()
      Xh.useProvide(dt({ size: P(() => e.size) }))
      const l = P(() => {
        const { size: a } = e
        let s = ''
        switch (a) {
          case 'large':
            s = 'lg'
            break
          case 'small':
            s = 'sm'
            break
          case 'middle':
          case void 0:
            break
          default:
            vt(!a, 'Button.Group', 'Invalid prop `size`.')
        }
        return {
          [`${o.value}`]: !0,
          [`${o.value}-${s}`]: s,
          [`${o.value}-rtl`]: r.value === 'rtl',
          [i.value]: !0
        }
      })
      return () => {
        var a
        return v('div', { class: l.value }, [
          yt((a = n.default) === null || a === void 0 ? void 0 : a.call(n))
        ])
      }
    }
  }),
  Ip = /^[\u4e00-\u9fa5]{2}$/,
  Ep = Ip.test.bind(Ip)
function Ci(e) {
  return e === 'text' || e === 'link'
}
const ht = J({
  compatConfig: { MODE: 3 },
  name: 'AButton',
  inheritAttrs: !1,
  __ANT_BUTTON: !0,
  props: mt(Vh(), { type: 'default' }),
  slots: Object,
  setup(e, t) {
    let { slots: n, attrs: o, emit: r, expose: i } = t
    const {
        prefixCls: l,
        autoInsertSpaceInButton: a,
        direction: s,
        size: u
      } = je('btn', e),
      [c, d] = JR(l),
      f = Xh.useInject(),
      m = In(),
      g = P(() => {
        var E
        return (E = e.disabled) !== null && E !== void 0 ? E : m.value
      }),
      h = V(null),
      b = V(void 0)
    let S = !1
    const C = V(!1),
      $ = V(!1),
      O = P(() => a.value !== !1),
      { compactSize: x, compactItemClassnames: w } = ou(l, s),
      y = P(() =>
        typeof e.loading == 'object' && e.loading.delay
          ? e.loading.delay || !0
          : !!e.loading
      )
    ge(
      y,
      E => {
        clearTimeout(b.value),
          typeof y.value == 'number'
            ? (b.value = setTimeout(() => {
                C.value = E
              }, y.value))
            : (C.value = E)
      },
      { immediate: !0 }
    )
    const T = P(() => {
        const {
            type: E,
            shape: R = 'default',
            ghost: L,
            block: W,
            danger: D
          } = e,
          F = l.value,
          H = { large: 'lg', small: 'sm', middle: void 0 },
          B = x.value || (f == null ? void 0 : f.size) || u.value,
          X = (B && H[B]) || ''
        return [
          w.value,
          {
            [d.value]: !0,
            [`${F}`]: !0,
            [`${F}-${R}`]: R !== 'default' && R,
            [`${F}-${E}`]: E,
            [`${F}-${X}`]: X,
            [`${F}-loading`]: C.value,
            [`${F}-background-ghost`]: L && !Ci(E),
            [`${F}-two-chinese-chars`]: $.value && O.value,
            [`${F}-block`]: W,
            [`${F}-dangerous`]: !!D,
            [`${F}-rtl`]: s.value === 'rtl'
          }
        ]
      }),
      I = () => {
        const E = h.value
        if (!E || a.value === !1) return
        const R = E.textContent
        S && Ep(R) ? $.value || ($.value = !0) : $.value && ($.value = !1)
      },
      _ = E => {
        if (C.value || g.value) {
          E.preventDefault()
          return
        }
        r('click', E)
      },
      A = E => {
        r('mousedown', E)
      },
      z = (E, R) => {
        const L = R ? ' ' : ''
        if (E.type === dc) {
          let W = E.children.trim()
          return Ep(W) && (W = W.split('').join(L)), v('span', null, [W])
        }
        return E
      }
    return (
      Me(() => {
        vt(
          !(e.ghost && Ci(e.type)),
          'Button',
          "`link` or `text` button can't be a `ghost` button."
        )
      }),
      We(I),
      An(I),
      Qe(() => {
        b.value && clearTimeout(b.value)
      }),
      i({
        focus: () => {
          var E
          ;(E = h.value) === null || E === void 0 || E.focus()
        },
        blur: () => {
          var E
          ;(E = h.value) === null || E === void 0 || E.blur()
        }
      }),
      () => {
        var E, R
        const {
            icon: L = (E = n.icon) === null || E === void 0 ? void 0 : E.call(n)
          } = e,
          W = yt((R = n.default) === null || R === void 0 ? void 0 : R.call(n))
        S = W.length === 1 && !L && !Ci(e.type)
        const { type: D, htmlType: F, href: H, title: B, target: X } = e,
          ee = C.value ? 'loading' : L,
          de = p(p({}, o), {
            title: B,
            disabled: g.value,
            class: [
              T.value,
              o.class,
              { [`${l.value}-icon-only`]: W.length === 0 && !!ee }
            ],
            onClick: _,
            onMousedown: A
          })
        g.value || delete de.disabled
        const ie =
            L && !C.value
              ? L
              : v(
                  AR,
                  { existIcon: !!L, prefixCls: l.value, loading: !!C.value },
                  null
                ),
          Q = W.map(q => z(q, S && O.value))
        if (H !== void 0)
          return c(
            v('a', N(N({}, de), {}, { href: H, target: X, ref: h }), [ie, Q])
          )
        let se = v('button', N(N({}, de), {}, { ref: h, type: F }), [ie, Q])
        if (!Ci(D)) {
          const q = (function() {
            return se
          })()
          se = v(
            _R,
            { ref: 'wave', disabled: !!C.value },
            { default: () => [q] }
          )
        }
        return c(se)
      }
    )
  }
})
ht.Group = Ts
ht.install = function(e) {
  return e.component(ht.name, ht), e.component(Ts.name, Ts), e
}
const qh = () => ({
    arrow: Pt([Boolean, Object]),
    trigger: { type: [Array, String] },
    menu: Xe(),
    overlay: k.any,
    visible: Re(),
    open: Re(),
    disabled: Re(),
    danger: Re(),
    autofocus: Re(),
    align: Xe(),
    getPopupContainer: Function,
    prefixCls: String,
    transitionName: String,
    placement: String,
    overlayClassName: String,
    overlayStyle: Xe(),
    forceRender: Re(),
    mouseEnterDelay: Number,
    mouseLeaveDelay: Number,
    openClassName: String,
    minOverlayWidthMatchTrigger: Re(),
    destroyPopupOnHide: Re(),
    onVisibleChange: { type: Function },
    'onUpdate:visible': { type: Function },
    onOpenChange: { type: Function },
    'onUpdate:open': { type: Function }
  }),
  Ia = Vh(),
  ZR = () =>
    p(p({}, qh()), {
      type: Ia.type,
      size: String,
      htmlType: Ia.htmlType,
      href: String,
      disabled: Re(),
      prefixCls: String,
      icon: k.any,
      title: String,
      loading: Ia.loading,
      onClick: Fr()
    })
function _p(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) {
        eA(e, r, n[r])
      })
  }
  return e
}
function eA(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var xu = function(t, n) {
  var o = _p({}, t, n.attrs)
  return v(et, _p({}, o, { icon: X0 }), null)
}
xu.displayName = 'EllipsisOutlined'
xu.inheritAttrs = !1
const Cu = xu,
  tA = 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
          }
        }
      }
    }
  },
  nA = tA,
  oA = 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 }
          }
        }
      }
    }
  },
  rA = oA,
  iA = e => {
    const {
      componentCls: t,
      menuCls: n,
      zIndexPopup: o,
      dropdownArrowDistance: r,
      dropdownArrowOffset: i,
      sizePopupArrow: l,
      antCls: a,
      iconCls: s,
      motionDurationMid: u,
      dropdownPaddingVertical: c,
      fontSize: d,
      dropdownEdgeChildPadding: f,
      colorTextDisabled: m,
      fontSizeIcon: g,
      controlPaddingHorizontal: h,
      colorBgElevated: b,
      boxShadowPopoverArrow: S
    } = e
    return [
      {
        [t]: p(p({}, ct(e)), {
          position: 'absolute',
          top: -9999,
          left: { _skip_check_: !0, value: -9999 },
          zIndex: o,
          display: 'block',
          '&::before': {
            position: 'absolute',
            insetBlock: -r + l / 2,
            zIndex: -9999,
            opacity: 1e-4,
            content: '""'
          },
          [`${t}-wrap`]: {
            position: 'relative',
            [`${a}-btn > ${s}-down`]: { fontSize: g },
            [`${s}-down::before`]: { transition: `transform ${u}` }
          },
          [`${t}-wrap-open`]: {
            [`${s}-down::before`]: { transform: 'rotate(180deg)' }
          },
          '\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ': {
            display: 'none'
          },
          [`
        &-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 },
          [`${t}-arrow`]: p(
            { position: 'absolute', zIndex: 1, display: 'block' },
            ig(l, e.borderRadiusXS, e.borderRadiusOuter, b, S)
          ),
          [`
        &-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 }
          },
          [`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]: {
            animationName: iu
          },
          [`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]: {
            animationName: au
          },
          [`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]: {
            animationName: lu
          },
          [`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]: {
            animationName: su
          }
        })
      },
      {
        [`${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]: p(
            p(
              {
                padding: f,
                listStyleType: 'none',
                backgroundColor: b,
                backgroundClip: 'padding-box',
                borderRadius: e.borderRadiusLG,
                outline: 'none',
                boxShadow: e.boxShadowSecondary
              },
              nr(e)
            ),
            {
              [`${n}-item-group-title`]: {
                padding: `${c}px ${h}px`,
                color: e.colorTextDescription,
                transition: `all ${u}`
              },
              [`${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 ${u}`,
                  '&:hover': { color: 'inherit' },
                  '&::after': { position: 'absolute', inset: 0, content: '""' }
                }
              },
              [`${n}-item, ${n}-submenu-title`]: p(
                p(
                  {
                    clear: 'both',
                    margin: 0,
                    padding: `${c}px ${h}px`,
                    color: e.colorText,
                    fontWeight: 'normal',
                    fontSize: d,
                    lineHeight: e.lineHeight,
                    cursor: 'pointer',
                    transition: `all ${u}`,
                    '&:hover, &-active': {
                      backgroundColor: e.controlItemBgHover
                    }
                  },
                  nr(e)
                ),
                {
                  '&-selected': {
                    color: e.colorPrimary,
                    backgroundColor: e.controlItemBgActive,
                    '&:hover, &-active': {
                      backgroundColor: e.controlItemBgActiveHover
                    }
                  },
                  '&-disabled': {
                    color: m,
                    cursor: 'not-allowed',
                    '&:hover': {
                      color: m,
                      backgroundColor: b,
                      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: g,
                      fontStyle: 'normal'
                    }
                  }
                }
              ),
              [`${n}-item-group-list`]: {
                margin: `0 ${e.marginXS}px`,
                padding: 0,
                listStyle: 'none'
              },
              [`${n}-submenu-title`]: { paddingInlineEnd: h + e.fontSizeSM },
              [`${n}-submenu-vertical`]: { position: 'relative' },
              [`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]: {
                [`&, ${t}-menu-submenu-arrow-icon`]: {
                  color: m,
                  backgroundColor: b,
                  cursor: 'not-allowed'
                }
              },
              [`${n}-submenu-selected ${t}-menu-submenu-title`]: {
                color: e.colorPrimary
              }
            }
          )
        }
      },
      [
        Vn(e, 'slide-up'),
        Vn(e, 'slide-down'),
        nl(e, 'move-up'),
        nl(e, 'move-down'),
        zl(e, 'zoom-big')
      ]
    ]
  },
  Yh = pt(
    'Dropdown',
    (e, t) => {
      let { rootPrefixCls: n } = t
      const {
          marginXXS: o,
          sizePopupArrow: r,
          controlHeight: i,
          fontSize: l,
          lineHeight: a,
          paddingXXS: s,
          componentCls: u,
          borderRadiusOuter: c,
          borderRadiusLG: d
        } = e,
        f = (i - l * a) / 2,
        { dropdownArrowOffset: m } = kh({
          sizePopupArrow: r,
          contentRadius: d,
          borderRadiusOuter: c
        }),
        g = Ze(e, {
          menuCls: `${u}-menu`,
          rootPrefixCls: n,
          dropdownArrowDistance: r / 2 + o,
          dropdownArrowOffset: m,
          dropdownPaddingVertical: f,
          dropdownEdgeChildPadding: s
        })
      return [iA(g), nA(g), rA(g)]
    },
    e => ({ zIndexPopup: e.zIndexPopupBase + 50 })
  )
var lA =
  (globalThis && globalThis.__rest) ||
  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 aA = ht.Group,
  il = J({
    compatConfig: { MODE: 3 },
    name: 'ADropdownButton',
    inheritAttrs: !1,
    __ANT_BUTTON: !0,
    props: mt(ZR(), {
      trigger: 'hover',
      placement: 'bottomRight',
      type: 'default'
    }),
    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: l, direction: a, getPopupContainer: s } = je(
          'dropdown',
          e
        ),
        u = P(() => `${l.value}-button`),
        [c, d] = Yh(l)
      return () => {
        var f, m
        const g = p(p({}, e), o),
          {
            type: h = 'default',
            disabled: b,
            danger: S,
            loading: C,
            htmlType: $,
            class: O = '',
            overlay: x = (f = n.overlay) === null || f === void 0
              ? void 0
              : f.call(n),
            trigger: w,
            align: y,
            open: T,
            visible: I,
            onVisibleChange: _,
            placement: A = a.value === 'rtl' ? 'bottomLeft' : 'bottomRight',
            href: z,
            title: M,
            icon: j = ((m = n.icon) === null || m === void 0
              ? void 0
              : m.call(n)) || v(Cu, null, null),
            mouseEnterDelay: E,
            mouseLeaveDelay: R,
            overlayClassName: L,
            overlayStyle: W,
            destroyPopupOnHide: D,
            onClick: F,
            'onUpdate:open': H
          } = g,
          B = lA(g, [
            'type',
            'disabled',
            'danger',
            'loading',
            'htmlType',
            'class',
            'overlay',
            'trigger',
            'align',
            'open',
            'visible',
            'onVisibleChange',
            'placement',
            'href',
            'title',
            'icon',
            'mouseEnterDelay',
            'mouseLeaveDelay',
            'overlayClassName',
            'overlayStyle',
            'destroyPopupOnHide',
            'onClick',
            'onUpdate:open'
          ]),
          X = {
            align: y,
            disabled: b,
            trigger: b ? [] : w,
            placement: A,
            getPopupContainer: s == null ? void 0 : s.value,
            onOpenChange: i,
            mouseEnterDelay: E,
            mouseLeaveDelay: R,
            open: T ?? I,
            overlayClassName: L,
            overlayStyle: W,
            destroyPopupOnHide: D
          },
          ee = v(
            ht,
            {
              danger: S,
              type: h,
              disabled: b,
              loading: C,
              onClick: F,
              htmlType: $,
              href: z,
              title: M
            },
            { default: n.default }
          ),
          de = v(ht, { danger: S, type: h, icon: j }, null)
        return c(
          v(aA, N(N({}, B), {}, { class: oe(u.value, O, d.value) }), {
            default: () => [
              n.leftButton ? n.leftButton({ button: ee }) : ee,
              v(fo, X, {
                default: () => [
                  n.rightButton ? n.rightButton({ button: de }) : de
                ],
                overlay: () => x
              })
            ]
          })
        )
      }
    }
  })
function Rp(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) {
        sA(e, r, n[r])
      })
  }
  return e
}
function sA(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var $u = function(t, n) {
  var o = Rp({}, t, n.attrs)
  return v(et, Rp({}, o, { icon: q0 }), null)
}
$u.displayName = 'RightOutlined'
$u.inheritAttrs = !1
const ll = $u,
  Jh = Symbol('OverrideContextKey'),
  Qh = () => Ue(Jh, void 0),
  Zh = e => {
    var t, n, o
    const {
      prefixCls: r,
      mode: i,
      selectable: l,
      validator: a,
      onClick: s,
      expandIcon: u
    } = Qh() || {}
    Ye(Jh, {
      prefixCls: P(() => {
        var c, d
        return (d =
          (c = e.prefixCls) === null || c === void 0 ? void 0 : c.value) !==
          null && d !== void 0
          ? d
          : r == null
          ? void 0
          : r.value
      }),
      mode: P(() => {
        var c, d
        return (d =
          (c = e.mode) === null || c === void 0 ? void 0 : c.value) !== null &&
          d !== void 0
          ? d
          : i == null
          ? void 0
          : i.value
      }),
      selectable: P(() => {
        var c, d
        return (d =
          (c = e.selectable) === null || c === void 0 ? void 0 : c.value) !==
          null && d !== void 0
          ? d
          : l == null
          ? void 0
          : l.value
      }),
      validator: (t = e.validator) !== null && t !== void 0 ? t : a,
      onClick: (n = e.onClick) !== null && n !== void 0 ? n : s,
      expandIcon:
        (o = e.expandIcon) !== null && o !== void 0
          ? o
          : u == null
          ? void 0
          : u.value
    })
  },
  eb = J({
    compatConfig: { MODE: 3 },
    name: 'ADropdown',
    inheritAttrs: !1,
    props: mt(qh(), {
      mouseEnterDelay: 0.15,
      mouseLeaveDelay: 0.1,
      placement: 'bottomLeft',
      trigger: 'hover'
    }),
    slots: Object,
    setup(e, t) {
      let { slots: n, attrs: o, emit: r } = t
      const {
          prefixCls: i,
          rootPrefixCls: l,
          direction: a,
          getPopupContainer: s
        } = je('dropdown', e),
        [u, c] = Yh(i),
        d = P(() => {
          const { placement: b = '', transitionName: S } = e
          return S !== void 0
            ? S
            : b.includes('top')
            ? `${l.value}-slide-down`
            : `${l.value}-slide-up`
        })
      Zh({
        prefixCls: P(() => `${i.value}-menu`),
        expandIcon: P(() =>
          v('span', { class: `${i.value}-menu-submenu-arrow` }, [
            v(ll, { class: `${i.value}-menu-submenu-arrow-icon` }, null)
          ])
        ),
        mode: P(() => 'vertical'),
        selectable: P(() => !1),
        onClick: () => {},
        validator: b => {
          kt()
        }
      })
      const f = () => {
          var b, S, C
          const $ =
              e.overlay ||
              ((b = n.overlay) === null || b === void 0 ? void 0 : b.call(n)),
            O = Array.isArray($) ? $[0] : $
          if (!O) return null
          const x = O.props || {}
          vt(
            !x.mode || x.mode === 'vertical',
            'Dropdown',
            `mode="${x.mode}" is not supported for Dropdown's Menu.`
          )
          const {
              selectable: w = !1,
              expandIcon: y = (C =
                (S = O.children) === null || S === void 0
                  ? void 0
                  : S.expandIcon) === null || C === void 0
                ? void 0
                : C.call(S)
            } = x,
            T =
              typeof y < 'u' && Ft(y)
                ? y
                : v('span', { class: `${i.value}-menu-submenu-arrow` }, [
                    v(ll, { class: `${i.value}-menu-submenu-arrow-icon` }, null)
                  ])
          return Ft(O)
            ? ft(O, { mode: 'vertical', selectable: w, expandIcon: () => T })
            : O
        },
        m = P(() => {
          const b = e.placement
          if (!b) return a.value === 'rtl' ? 'bottomRight' : 'bottomLeft'
          if (b.includes('Center')) {
            const S = b.slice(0, b.indexOf('Center'))
            return (
              vt(
                !b.includes('Center'),
                'Dropdown',
                `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${S}' instead.`
              ),
              S
            )
          }
          return b
        }),
        g = P(() => (typeof e.visible == 'boolean' ? e.visible : e.open)),
        h = b => {
          r('update:visible', b),
            r('visibleChange', b),
            r('update:open', b),
            r('openChange', b)
        }
      return () => {
        var b, S
        const { arrow: C, trigger: $, disabled: O, overlayClassName: x } = e,
          w = (b = n.default) === null || b === void 0 ? void 0 : b.call(n)[0],
          y = ft(
            w,
            p(
              {
                class: oe(
                  (S = w == null ? void 0 : w.props) === null || S === void 0
                    ? void 0
                    : S.class,
                  { [`${i.value}-rtl`]: a.value === 'rtl' },
                  `${i.value}-trigger`
                )
              },
              O ? { disabled: O } : {}
            )
          ),
          T = oe(x, c.value, { [`${i.value}-rtl`]: a.value === 'rtl' }),
          I = O ? [] : $
        let _
        I && I.includes('contextmenu') && (_ = !0)
        const A = Fh({
            arrowPointAtCenter: typeof C == 'object' && C.pointAtCenter,
            autoAdjustOverflow: !0
          }),
          z = rt(
            p(p(p({}, e), o), {
              visible: g.value,
              builtinPlacements: A,
              overlayClassName: T,
              arrow: !!C,
              alignPoint: _,
              prefixCls: i.value,
              getPopupContainer: s == null ? void 0 : s.value,
              transitionName: d.value,
              trigger: I,
              onVisibleChange: h,
              placement: m.value
            }),
            ['overlay', 'onUpdate:visible']
          )
        return u(v(Wh, z, { default: () => [y], overlay: f }))
      }
    }
  })
eb.Button = il
const fo = eb
function cA(e, t, n, o) {
  let r = n ? n.call(o, e, t) : void 0
  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),
    l = Object.keys(t)
  if (i.length !== l.length) return !1
  const a = Object.prototype.hasOwnProperty.bind(t)
  for (let s = 0; s < i.length; s++) {
    const u = i[s]
    if (!a(u)) return !1
    const c = e[u],
      d = t[u]
    if (
      ((r = n ? n.call(o, c, d, u) : void 0),
      r === !1 || (r === void 0 && c !== d))
    )
      return !1
  }
  return !0
}
function wr(e, t) {
  return cA(vn(e), vn(t))
}
const tb = Symbol('menuContextKey'),
  nb = e => {
    Ye(tb, e)
  },
  Nn = () => Ue(tb),
  ob = Symbol('ForceRenderKey'),
  uA = e => {
    Ye(ob, e)
  },
  rb = () => Ue(ob, !1),
  ib = Symbol('menuFirstLevelContextKey'),
  lb = e => {
    Ye(ib, e)
  },
  dA = () => Ue(ib, !0),
  al = J({
    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 = Nn(),
        r = p({}, o)
      return (
        e.mode !== void 0 && (r.mode = ot(e, 'mode')),
        e.overflowDisabled !== void 0 &&
          (r.overflowDisabled = ot(e, 'overflowDisabled')),
        nb(r),
        () => {
          var i
          return (i = n.default) === null || i === void 0 ? void 0 : i.call(n)
        }
      )
    }
  }),
  fA = nb,
  pA = Symbol('siderCollapsed'),
  $i = '$$__vc-menu-more__key',
  ab = Symbol('KeyPathContext'),
  wu = () =>
    Ue(ab, {
      parentEventKeys: P(() => []),
      parentKeys: P(() => []),
      parentInfo: {}
    }),
  vA = (e, t, n) => {
    const { parentEventKeys: o, parentKeys: r } = wu(),
      i = P(() => [...o.value, e]),
      l = P(() => [...r.value, t])
    return Ye(ab, { parentEventKeys: i, parentKeys: l, parentInfo: n }), l
  },
  sb = Symbol('measure'),
  Ap = J({
    compatConfig: { MODE: 3 },
    setup(e, t) {
      let { slots: n } = t
      return (
        Ye(sb, !0),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  }),
  Ou = () => Ue(sb, !1),
  mA = vA
function cb(e) {
  const { mode: t, rtl: n, inlineIndent: o } = Nn()
  return P(() =>
    t.value !== 'inline'
      ? null
      : n.value
      ? { paddingRight: `${e.value * o.value}px` }
      : { paddingLeft: `${e.value * o.value}px` }
  )
}
let gA = 0
const hA = () => ({
    id: String,
    role: String,
    disabled: Boolean,
    danger: Boolean,
    title: { type: [String, Boolean], default: void 0 },
    icon: k.any,
    onMouseenter: Function,
    onMouseleave: Function,
    onClick: Function,
    onKeydown: Function,
    onFocus: Function,
    originItemValue: Xe()
  }),
  lr = J({
    compatConfig: { MODE: 3 },
    name: 'AMenuItem',
    inheritAttrs: !1,
    props: hA(),
    slots: Object,
    setup(e, t) {
      let { slots: n, emit: o, attrs: r } = t
      const i = tn(),
        l = Ou(),
        a = typeof i.vnode.key == 'symbol' ? String(i.vnode.key) : i.vnode.key
      vt(
        typeof i.vnode.key != 'symbol',
        'MenuItem',
        `MenuItem \`:key="${String(a)}"\` not support Symbol type`
      )
      const s = `menu_item_${++gA}_$$_${a}`,
        { parentEventKeys: u, parentKeys: c } = wu(),
        {
          prefixCls: d,
          activeKeys: f,
          disabled: m,
          changeActiveKeys: g,
          rtl: h,
          inlineCollapsed: b,
          siderCollapsed: S,
          onItemClick: C,
          selectedKeys: $,
          registerMenuInfo: O,
          unRegisterMenuInfo: x
        } = Nn(),
        w = dA(),
        y = V(!1),
        T = P(() => [...c.value, a])
      O(s, {
        eventKey: s,
        key: a,
        parentEventKeys: u,
        parentKeys: c,
        isLeaf: !0
      }),
        Qe(() => {
          x(s)
        }),
        ge(
          f,
          () => {
            y.value = !!f.value.find(H => H === a)
          },
          { immediate: !0 }
        )
      const _ = P(() => m.value || e.disabled),
        A = P(() => $.value.includes(a)),
        z = P(() => {
          const H = `${d.value}-item`
          return {
            [`${H}`]: !0,
            [`${H}-danger`]: e.danger,
            [`${H}-active`]: y.value,
            [`${H}-selected`]: A.value,
            [`${H}-disabled`]: _.value
          }
        }),
        M = H => ({
          key: a,
          eventKey: s,
          keyPath: T.value,
          eventKeyPath: [...u.value, s],
          domEvent: H,
          item: p(p({}, e), r)
        }),
        j = H => {
          if (_.value) return
          const B = M(H)
          o('click', H), C(B)
        },
        E = H => {
          _.value || (g(T.value), o('mouseenter', H))
        },
        R = H => {
          _.value || (g([]), o('mouseleave', H))
        },
        L = H => {
          if ((o('keydown', H), H.which === Oe.ENTER)) {
            const B = M(H)
            o('click', H), C(B)
          }
        },
        W = H => {
          g(T.value), o('focus', H)
        },
        D = (H, B) => {
          const X = v('span', { class: `${d.value}-title-content` }, [B])
          return (!H || (Ft(B) && B.type === 'span')) &&
            B &&
            b.value &&
            w &&
            typeof B == 'string'
            ? v('div', { class: `${d.value}-inline-collapsed-noicon` }, [
                B.charAt(0)
              ])
            : X
        },
        F = cb(P(() => T.value.length))
      return () => {
        var H, B, X, ee, de
        if (l) return null
        const ie =
            (H = e.title) !== null && H !== void 0
              ? H
              : (B = n.title) === null || B === void 0
              ? void 0
              : B.call(n),
          Q = yt((X = n.default) === null || X === void 0 ? void 0 : X.call(n)),
          se = Q.length
        let q = ie
        typeof ie > 'u' ? (q = w && se ? Q : '') : ie === !1 && (q = '')
        const K = { title: q }
        !S.value && !b.value && ((K.title = null), (K.open = !1))
        const U = {}
        e.role === 'option' && (U['aria-selected'] = A.value)
        const ue =
          (ee = e.icon) !== null && ee !== void 0
            ? ee
            : (de = n.icon) === null || de === void 0
            ? void 0
            : de.call(n, e)
        return v(
          Vo,
          N(
            N({}, K),
            {},
            {
              placement: h.value ? 'left' : 'right',
              overlayClassName: `${d.value}-inline-collapsed-tooltip`
            }
          ),
          {
            default: () => [
              v(
                Ko.Item,
                N(
                  N(
                    N({ component: 'li' }, r),
                    {},
                    {
                      id: e.id,
                      style: p(p({}, r.style || {}), F.value),
                      class: [
                        z.value,
                        {
                          [`${r.class}`]: !!r.class,
                          [`${d.value}-item-only-child`]:
                            (ue ? se + 1 : se) === 1
                        }
                      ],
                      role: e.role || 'menuitem',
                      tabindex: e.disabled ? null : -1,
                      'data-menu-id': a,
                      'aria-disabled': e.disabled
                    },
                    U
                  ),
                  {},
                  {
                    onMouseenter: E,
                    onMouseleave: R,
                    onClick: j,
                    onKeydown: L,
                    onFocus: W,
                    title: typeof ie == 'string' ? ie : void 0
                  }
                ),
                {
                  default: () => [
                    ft(
                      typeof ue == 'function' ? ue(e.originItemValue) : ue,
                      { class: `${d.value}-item-icon` },
                      !1
                    ),
                    D(ue, Q)
                  ]
                }
              )
            ]
          }
        )
      }
    }
  }),
  Fn = { adjustX: 1, adjustY: 1 },
  bA = {
    topLeft: { points: ['bl', 'tl'], overflow: Fn, offset: [0, -7] },
    bottomLeft: { points: ['tl', 'bl'], overflow: Fn, offset: [0, 7] },
    leftTop: { points: ['tr', 'tl'], overflow: Fn, offset: [-4, 0] },
    rightTop: { points: ['tl', 'tr'], overflow: Fn, offset: [4, 0] }
  },
  yA = {
    topLeft: { points: ['bl', 'tl'], overflow: Fn, offset: [0, -7] },
    bottomLeft: { points: ['tl', 'bl'], overflow: Fn, offset: [0, 7] },
    rightTop: { points: ['tr', 'tl'], overflow: Fn, offset: [-4, 0] },
    leftTop: { points: ['tl', 'tr'], overflow: Fn, offset: [4, 0] }
  },
  SA = {
    horizontal: 'bottomLeft',
    vertical: 'rightTop',
    'vertical-left': 'rightTop',
    'vertical-right': 'leftTop'
  },
  Dp = J({
    compatConfig: { MODE: 3 },
    name: 'PopupTrigger',
    inheritAttrs: !1,
    props: {
      prefixCls: String,
      mode: String,
      visible: Boolean,
      popupClassName: String,
      popupOffset: Array,
      disabled: Boolean,
      onVisibleChange: Function
    },
    slots: Object,
    emits: ['visibleChange'],
    setup(e, t) {
      let { slots: n, emit: o } = t
      const r = V(!1),
        {
          getPopupContainer: i,
          rtl: l,
          subMenuOpenDelay: a,
          subMenuCloseDelay: s,
          builtinPlacements: u,
          triggerSubMenuAction: c,
          forceSubMenuRender: d,
          motion: f,
          defaultMotions: m,
          rootClassName: g
        } = Nn(),
        h = rb(),
        b = P(() => (l.value ? p(p({}, yA), u.value) : p(p({}, bA), u.value))),
        S = P(() => SA[e.mode]),
        C = V()
      ge(
        () => e.visible,
        x => {
          He.cancel(C.value),
            (C.value = He(() => {
              r.value = x
            }))
        },
        { immediate: !0 }
      ),
        Qe(() => {
          He.cancel(C.value)
        })
      const $ = x => {
          o('visibleChange', x)
        },
        O = P(() => {
          var x, w
          const y =
              f.value ||
              ((x = m.value) === null || x === void 0 ? void 0 : x[e.mode]) ||
              ((w = m.value) === null || w === void 0 ? void 0 : w.other),
            T = typeof y == 'function' ? y() : y
          return T ? qg(T.name, { css: !0 }) : void 0
        })
      return () => {
        const {
          prefixCls: x,
          popupClassName: w,
          mode: y,
          popupOffset: T,
          disabled: I
        } = e
        return v(
          El,
          {
            prefixCls: x,
            popupClassName: oe(
              `${x}-popup`,
              { [`${x}-rtl`]: l.value },
              w,
              g.value
            ),
            stretch: y === 'horizontal' ? 'minWidth' : null,
            getPopupContainer: i.value,
            builtinPlacements: b.value,
            popupPlacement: S.value,
            popupVisible: r.value,
            popupAlign: T && { offset: T },
            action: I ? [] : [c.value],
            mouseEnterDelay: a.value,
            mouseLeaveDelay: s.value,
            onPopupVisibleChange: $,
            forceRender: h || d.value,
            popupAnimation: O.value
          },
          { popup: n.popup, default: n.default }
        )
      }
    }
  }),
  ub = (e, t) => {
    let { slots: n, attrs: o } = t
    var r
    const { prefixCls: i, mode: l } = Nn()
    return v(
      'ul',
      N(
        N({}, o),
        {},
        {
          class: oe(
            i.value,
            `${i.value}-sub`,
            `${i.value}-${l.value === 'inline' ? 'inline' : 'vertical'}`
          ),
          'data-menu-list': !0
        }
      ),
      [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)]
    )
  }
ub.displayName = 'SubMenuList'
const db = ub,
  xA = J({
    compatConfig: { MODE: 3 },
    name: 'InlineSubMenuList',
    inheritAttrs: !1,
    props: { id: String, open: Boolean, keyPath: Array },
    setup(e, t) {
      let { slots: n } = t
      const o = P(() => 'inline'),
        { motion: r, mode: i, defaultMotions: l } = Nn(),
        a = P(() => i.value === o.value),
        s = ne(!a.value),
        u = P(() => (a.value ? e.open : !1))
      ge(
        i,
        () => {
          a.value && (s.value = !1)
        },
        { flush: 'post' }
      )
      const c = P(() => {
        var d, f
        const m =
            r.value ||
            ((d = l.value) === null || d === void 0 ? void 0 : d[o.value]) ||
            ((f = l.value) === null || f === void 0 ? void 0 : f.other),
          g = typeof m == 'function' ? m() : m
        return p(p({}, g), { appear: e.keyPath.length <= 1 })
      })
      return () => {
        var d
        return s.value
          ? null
          : v(
              al,
              { mode: o.value },
              {
                default: () => [
                  v(Oo, c.value, {
                    default: () => [
                      vl(
                        v(
                          db,
                          { id: e.id },
                          {
                            default: () => [
                              (d = n.default) === null || d === void 0
                                ? void 0
                                : d.call(n)
                            ]
                          }
                        ),
                        [[fc, u.value]]
                      )
                    ]
                  })
                ]
              }
            )
      }
    }
  })
let Mp = 0
const CA = () => ({
    icon: k.any,
    title: k.any,
    disabled: Boolean,
    level: Number,
    popupClassName: String,
    popupOffset: Array,
    internalPopupClose: Boolean,
    eventKey: String,
    expandIcon: Function,
    theme: String,
    onMouseenter: Function,
    onMouseleave: Function,
    onTitleClick: Function,
    originItemValue: Xe()
  }),
  ar = J({
    compatConfig: { MODE: 3 },
    name: 'ASubMenu',
    inheritAttrs: !1,
    props: CA(),
    slots: Object,
    setup(e, t) {
      let { slots: n, attrs: o, emit: r } = t
      var i, l
      lb(!1)
      const a = Ou(),
        s = tn(),
        u = typeof s.vnode.key == 'symbol' ? String(s.vnode.key) : s.vnode.key
      vt(
        typeof s.vnode.key != 'symbol',
        'SubMenu',
        `SubMenu \`:key="${String(u)}"\` not support Symbol type`
      )
      const c = ts(u) ? u : `sub_menu_${++Mp}_$$_not_set_key`,
        d =
          (i = e.eventKey) !== null && i !== void 0
            ? i
            : ts(u)
            ? `sub_menu_${++Mp}_$$_${u}`
            : c,
        { parentEventKeys: f, parentInfo: m, parentKeys: g } = wu(),
        h = P(() => [...g.value, c]),
        b = V([]),
        S = {
          eventKey: d,
          key: c,
          parentEventKeys: f,
          childrenEventKeys: b,
          parentKeys: g
        }
      ;(l = m.childrenEventKeys) === null || l === void 0 || l.value.push(d),
        Qe(() => {
          var Z
          m.childrenEventKeys &&
            (m.childrenEventKeys.value =
              (Z = m.childrenEventKeys) === null || Z === void 0
                ? void 0
                : Z.value.filter(fe => fe != d))
        }),
        mA(d, c, S)
      const {
          prefixCls: C,
          activeKeys: $,
          disabled: O,
          changeActiveKeys: x,
          mode: w,
          inlineCollapsed: y,
          openKeys: T,
          overflowDisabled: I,
          onOpenChange: _,
          registerMenuInfo: A,
          unRegisterMenuInfo: z,
          selectedSubMenuKeys: M,
          expandIcon: j,
          theme: E
        } = Nn(),
        R = u != null,
        L = !a && (rb() || !R)
      uA(L),
        ((a && R) || (!a && !R) || L) &&
          (A(d, S),
          Qe(() => {
            z(d)
          }))
      const W = P(() => `${C.value}-submenu`),
        D = P(() => O.value || e.disabled),
        F = V(),
        H = V(),
        B = P(() => T.value.includes(c)),
        X = P(() => !I.value && B.value),
        ee = P(() => M.value.includes(c)),
        de = V(!1)
      ge(
        $,
        () => {
          de.value = !!$.value.find(Z => Z === c)
        },
        { immediate: !0 }
      )
      const ie = Z => {
          D.value ||
            (r('titleClick', Z, c), w.value === 'inline' && _(c, !B.value))
        },
        Q = Z => {
          D.value || (x(h.value), r('mouseenter', Z))
        },
        se = Z => {
          D.value || (x([]), r('mouseleave', Z))
        },
        q = cb(P(() => h.value.length)),
        K = Z => {
          w.value !== 'inline' && _(c, Z)
        },
        U = () => {
          x(h.value)
        },
        ue = d && `${d}-popup`,
        me = P(() =>
          oe(C.value, `${C.value}-${e.theme || E.value}`, e.popupClassName)
        ),
        he = (Z, fe) => {
          if (!fe)
            return y.value && !g.value.length && Z && typeof Z == 'string'
              ? v('div', { class: `${C.value}-inline-collapsed-noicon` }, [
                  Z.charAt(0)
                ])
              : v('span', { class: `${C.value}-title-content` }, [Z])
          const xe = Ft(Z) && Z.type === 'span'
          return v(nt, null, [
            ft(
              typeof fe == 'function' ? fe(e.originItemValue) : fe,
              { class: `${C.value}-item-icon` },
              !1
            ),
            xe ? Z : v('span', { class: `${C.value}-title-content` }, [Z])
          ])
        },
        Pe = P(() =>
          w.value !== 'inline' && h.value.length > 1 ? 'vertical' : w.value
        ),
        ve = P(() => (w.value === 'horizontal' ? 'vertical' : w.value)),
        ye = P(() => (Pe.value === 'horizontal' ? 'vertical' : Pe.value)),
        te = () => {
          var Z, fe
          const xe = W.value,
            be =
              (Z = e.icon) !== null && Z !== void 0
                ? Z
                : (fe = n.icon) === null || fe === void 0
                ? void 0
                : fe.call(n, e),
            Ce = e.expandIcon || n.expandIcon || j.value,
            Ne = he(ao(n, e, 'title'), be)
          return v(
            'div',
            {
              style: q.value,
              class: `${xe}-title`,
              tabindex: D.value ? null : -1,
              ref: F,
              title: typeof Ne == 'string' ? Ne : null,
              'data-menu-id': c,
              'aria-expanded': X.value,
              'aria-haspopup': !0,
              'aria-controls': ue,
              'aria-disabled': D.value,
              onClick: ie,
              onFocus: U
            },
            [
              Ne,
              w.value !== 'horizontal' && Ce
                ? Ce(p(p({}, e), { isOpen: X.value }))
                : v('i', { class: `${xe}-arrow` }, null)
            ]
          )
        }
      return () => {
        var Z
        if (a)
          return R
            ? (Z = n.default) === null || Z === void 0
              ? void 0
              : Z.call(n)
            : null
        const fe = W.value
        let xe = () => null
        if (!I.value && w.value !== 'inline') {
          const be = w.value === 'horizontal' ? [0, 8] : [10, 0]
          xe = () =>
            v(
              Dp,
              {
                mode: Pe.value,
                prefixCls: fe,
                visible: !e.internalPopupClose && X.value,
                popupClassName: me.value,
                popupOffset: e.popupOffset || be,
                disabled: D.value,
                onVisibleChange: K
              },
              {
                default: () => [te()],
                popup: () =>
                  v(
                    al,
                    { mode: ye.value },
                    {
                      default: () => [
                        v(db, { id: ue, ref: H }, { default: n.default })
                      ]
                    }
                  )
              }
            )
        } else xe = () => v(Dp, null, { default: te })
        return v(
          al,
          { mode: ve.value },
          {
            default: () => [
              v(
                Ko.Item,
                N(
                  N({ component: 'li' }, o),
                  {},
                  {
                    role: 'none',
                    class: oe(fe, `${fe}-${w.value}`, o.class, {
                      [`${fe}-open`]: X.value,
                      [`${fe}-active`]: de.value,
                      [`${fe}-selected`]: ee.value,
                      [`${fe}-disabled`]: D.value
                    }),
                    onMouseenter: Q,
                    onMouseleave: se,
                    'data-submenu-id': c
                  }
                ),
                {
                  default: () =>
                    v(nt, null, [
                      xe(),
                      !I.value &&
                        v(
                          xA,
                          { id: ue, open: X.value, keyPath: h.value },
                          { default: n.default }
                        )
                    ])
                }
              )
            ]
          }
        )
      }
    }
  })
function fb(e, t) {
  return e.classList
    ? e.classList.contains(t)
    : ` ${e.className} `.indexOf(` ${t} `) > -1
}
function Is(e, t) {
  e.classList
    ? e.classList.add(t)
    : fb(e, t) || (e.className = `${e.className} ${t}`)
}
function Es(e, t) {
  if (e.classList) e.classList.remove(t)
  else if (fb(e, t)) {
    const n = e.className
    e.className = ` ${n} `.replace(` ${t} `, ' ')
  }
}
const $A = 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'), Is(n, e)
      },
      onEnter: n => {
        it(() => {
          ;(n.style.height = `${n.scrollHeight}px`), (n.style.opacity = '1')
        })
      },
      onAfterEnter: n => {
        n && (Es(n, e), (n.style.height = null), (n.style.opacity = null))
      },
      onBeforeLeave: n => {
        Is(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 &&
          (Es(n, e),
          n.style && ((n.style.height = null), (n.style.opacity = null)))
      }
    }
  },
  pb = $A,
  wA = () => ({ title: k.any, originItemValue: Xe() }),
  sl = J({
    compatConfig: { MODE: 3 },
    name: 'AMenuItemGroup',
    inheritAttrs: !1,
    props: wA(),
    slots: Object,
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const { prefixCls: r } = Nn(),
        i = P(() => `${r.value}-item-group`),
        l = Ou()
      return () => {
        var a, s
        return l
          ? (a = n.default) === null || a === void 0
            ? void 0
            : a.call(n)
          : v(
              'li',
              N(
                N({}, o),
                {},
                { onClick: u => u.stopPropagation(), class: i.value }
              ),
              [
                v(
                  'div',
                  {
                    title: typeof e.title == 'string' ? e.title : void 0,
                    class: `${i.value}-title`
                  },
                  [ao(n, e, 'title')]
                ),
                v('ul', { class: `${i.value}-list` }, [
                  (s = n.default) === null || s === void 0 ? void 0 : s.call(n)
                ])
              ]
            )
      }
    }
  }),
  OA = () => ({ prefixCls: String, dashed: Boolean }),
  cl = J({
    compatConfig: { MODE: 3 },
    name: 'AMenuDivider',
    props: OA(),
    setup(e) {
      const { prefixCls: t } = Nn(),
        n = P(() => ({
          [`${t.value}-item-divider`]: !0,
          [`${t.value}-item-divider-dashed`]: !!e.dashed
        }))
      return () => v('li', { class: n.value }, null)
    }
  })
var PA =
  (globalThis && globalThis.__rest) ||
  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 _s(e, t, n) {
  return (e || [])
    .map((o, r) => {
      if (o && typeof o == 'object') {
        const i = o,
          { label: l, children: a, key: s, type: u } = i,
          c = PA(i, ['label', 'children', 'key', 'type']),
          d = s ?? `tmp-${r}`,
          f = n ? n.parentKeys.slice() : [],
          m = [],
          g = {
            eventKey: d,
            key: d,
            parentEventKeys: ne(f),
            parentKeys: ne(f),
            childrenEventKeys: ne(m),
            isLeaf: !1
          }
        if (a || u === 'group') {
          if (u === 'group') {
            const b = _s(a, t, n)
            return v(
              sl,
              N(N({ key: d }, c), {}, { title: l, originItemValue: o }),
              { default: () => [b] }
            )
          }
          t.set(d, g), n && n.childrenEventKeys.push(d)
          const h = _s(a, t, {
            childrenEventKeys: m,
            parentKeys: [].concat(f, d)
          })
          return v(
            ar,
            N(N({ key: d }, c), {}, { title: l, originItemValue: o }),
            { default: () => [h] }
          )
        }
        return u === 'divider'
          ? v(cl, N({ key: d }, c), null)
          : ((g.isLeaf = !0),
            t.set(d, g),
            v(lr, N(N({ key: d }, c), {}, { originItemValue: o }), {
              default: () => [l]
            }))
      }
      return null
    })
    .filter(o => o)
}
function TA(e) {
  const t = V([]),
    n = V(!1),
    o = V(new Map())
  return (
    ge(
      () => e.items,
      () => {
        const r = new Map()
        ;(n.value = !1),
          e.items
            ? ((n.value = !0), (t.value = _s(e.items, r)))
            : (t.value = void 0),
          (o.value = r)
      },
      { immediate: !0, deep: !0 }
    ),
    { itemsNodes: t, store: o, hasItmes: n }
  )
}
const IA = e => {
    const {
      componentCls: t,
      motionDurationSlow: n,
      menuHorizontalHeight: o,
      colorSplit: r,
      lineWidth: i,
      lineType: l,
      menuItemPaddingInline: a
    } = e
    return {
      [`${t}-horizontal`]: {
        lineHeight: `${o}px`,
        border: 0,
        borderBottom: `${i}px ${l} ${r}`,
        boxShadow: 'none',
        '&::after': {
          display: 'block',
          clear: 'both',
          height: 0,
          content: '"\\20"'
        },
        [`${t}-item, ${t}-submenu`]: {
          position: 'relative',
          display: 'inline-block',
          verticalAlign: 'bottom',
          paddingInline: a
        },
        [`> ${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(',')
        },
        [`${t}-submenu-arrow`]: { display: 'none' }
      }
    }
  },
  EA = IA,
  _A = e => {
    let { componentCls: t, menuArrowOffset: n } = e
    return {
      [`${t}-rtl`]: { direction: 'rtl' },
      [`${t}-submenu-rtl`]: { transformOrigin: '100% 0' },
      [`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]: {
        [`${t}-submenu-arrow`]: {
          '&::before': { transform: `rotate(-45deg) translateY(-${n})` },
          '&::after': { transform: `rotate(45deg) translateY(${n})` }
        }
      }
    }
  },
  RA = _A,
  Np = e => p({}, En(e)),
  AA = (e, t) => {
    const {
      componentCls: n,
      colorItemText: o,
      colorItemTextSelected: r,
      colorGroupTitle: i,
      colorItemBg: l,
      colorSubItemBg: a,
      colorItemBgSelected: s,
      colorActiveBarHeight: u,
      colorActiveBarWidth: c,
      colorActiveBarBorderSize: d,
      motionDurationSlow: f,
      motionEaseInOut: m,
      motionEaseOut: g,
      menuItemPaddingInline: h,
      motionDurationMid: b,
      colorItemTextHover: S,
      lineType: C,
      colorSplit: $,
      colorItemTextDisabled: O,
      colorDangerItemText: x,
      colorDangerItemTextHover: w,
      colorDangerItemTextSelected: y,
      colorDangerItemBgActive: T,
      colorDangerItemBgSelected: I,
      colorItemBgHover: _,
      menuSubMenuBg: A,
      colorItemTextSelectedHorizontal: z,
      colorItemBgSelectedHorizontal: M
    } = e
    return {
      [`${n}-${t}`]: {
        color: o,
        background: l,
        [`&${n}-root:focus-visible`]: p({}, Np(e)),
        [`${n}-item-group-title`]: { color: i },
        [`${n}-submenu-selected`]: { [`> ${n}-submenu-title`]: { color: r } },
        [`${n}-item-disabled, ${n}-submenu-disabled`]: {
          color: `${O} !important`
        },
        [`${n}-item:hover, ${n}-submenu-title:hover`]: {
          [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: { color: S }
        },
        [`&:not(${n}-horizontal)`]: {
          [`${n}-item:not(${n}-item-selected)`]: {
            '&:hover': { backgroundColor: _ },
            '&:active': { backgroundColor: s }
          },
          [`${n}-submenu-title`]: {
            '&:hover': { backgroundColor: _ },
            '&:active': { backgroundColor: s }
          }
        },
        [`${n}-item-danger`]: {
          color: x,
          [`&${n}-item:hover`]: {
            [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
              color: w
            }
          },
          [`&${n}-item:active`]: { background: T }
        },
        [`${n}-item a`]: { '&, &:hover': { color: 'inherit' } },
        [`${n}-item-selected`]: {
          color: r,
          [`&${n}-item-danger`]: { color: y },
          'a, a:hover': { color: 'inherit' }
        },
        [`& ${n}-item-selected`]: {
          backgroundColor: s,
          [`&${n}-item-danger`]: { backgroundColor: I }
        },
        [`${n}-item, ${n}-submenu-title`]: {
          [`&:not(${n}-item-disabled):focus-visible`]: p({}, Np(e))
        },
        [`&${n}-submenu > ${n}`]: { backgroundColor: A },
        [`&${n}-popup > ${n}`]: { backgroundColor: l },
        [`&${n}-horizontal`]: p(
          p({}, t === 'dark' ? { borderBottom: 0 } : {}),
          {
            [`> ${n}-item, > ${n}-submenu`]: {
              top: d,
              marginTop: -d,
              marginBottom: 0,
              borderRadius: 0,
              '&::after': {
                position: 'absolute',
                insetInline: h,
                bottom: 0,
                borderBottom: `${u}px solid transparent`,
                transition: `border-color ${f} ${m}`,
                content: '""'
              },
              '&:hover, &-active, &-open': {
                '&::after': { borderBottomWidth: u, borderBottomColor: z }
              },
              '&-selected': {
                color: z,
                backgroundColor: M,
                '&::after': { borderBottomWidth: u, borderBottomColor: z }
              }
            }
          }
        ),
        [`&${n}-root`]: {
          [`&${n}-inline, &${n}-vertical`]: {
            borderInlineEnd: `${d}px ${C} ${$}`
          }
        },
        [`&${n}-inline`]: {
          [`${n}-sub${n}-inline`]: { background: a },
          [`${n}-item, ${n}-submenu-title`]:
            d && c ? { width: `calc(100% + ${d}px)` } : {},
          [`${n}-item`]: {
            position: 'relative',
            '&::after': {
              position: 'absolute',
              insetBlock: 0,
              insetInlineEnd: 0,
              borderInlineEnd: `${c}px solid ${r}`,
              transform: 'scaleY(0.0001)',
              opacity: 0,
              transition: [`transform ${b} ${g}`, `opacity ${b} ${g}`].join(
                ','
              ),
              content: '""'
            },
            [`&${n}-item-danger`]: { '&::after': { borderInlineEndColor: y } }
          },
          [`${n}-selected, ${n}-item-selected`]: {
            '&::after': {
              transform: 'scaleY(1)',
              opacity: 1,
              transition: [`transform ${b} ${m}`, `opacity ${b} ${m}`].join(',')
            }
          }
        }
      }
    }
  },
  Bp = AA,
  zp = e => {
    const {
        componentCls: t,
        menuItemHeight: n,
        itemMarginInline: o,
        padding: r,
        menuArrowSize: i,
        marginXS: l,
        marginXXS: a
      } = e,
      s = r + i + l
    return {
      [`${t}-item`]: { position: 'relative' },
      [`${t}-item, ${t}-submenu-title`]: {
        height: n,
        lineHeight: `${n}px`,
        paddingInline: r,
        overflow: 'hidden',
        textOverflow: 'ellipsis',
        marginInline: o,
        marginBlock: a,
        width: `calc(100% - ${o * 2}px)`
      },
      [`${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 }
    }
  },
  DA = e => {
    const {
        componentCls: t,
        iconCls: n,
        menuItemHeight: o,
        colorTextLightSolid: r,
        dropdownWidth: i,
        controlHeightLG: l,
        motionDurationMid: a,
        motionEaseOut: s,
        paddingXL: u,
        fontSizeSM: c,
        fontSizeLG: d,
        motionDurationSlow: f,
        paddingXS: m,
        boxShadowSecondary: g
      } = e,
      h = {
        height: o,
        lineHeight: `${o}px`,
        listStylePosition: 'inside',
        listStyleType: 'disc'
      }
    return [
      {
        [t]: {
          '&-inline, &-vertical': p(
            { [`&${t}-root`]: { boxShadow: 'none' } },
            zp(e)
          )
        },
        [`${t}-submenu-popup`]: {
          [`${t}-vertical`]: p(p({}, zp(e)), { boxShadow: g })
        }
      },
      {
        [`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
          minWidth: i,
          maxHeight: `calc(100vh - ${l * 2.5}px)`,
          padding: '0',
          overflow: 'hidden',
          borderInlineEnd: 0,
          "&:not([class*='-active'])": {
            overflowX: 'hidden',
            overflowY: 'auto'
          }
        }
      },
      {
        [`${t}-inline`]: {
          width: '100%',
          [`&${t}-root`]: {
            [`${t}-item, ${t}-submenu-title`]: {
              display: 'flex',
              alignItems: 'center',
              transition: [
                `border-color ${f}`,
                `background ${f}`,
                `padding ${a} ${s}`
              ].join(','),
              [`> ${t}-title-content`]: {
                flex: 'auto',
                minWidth: 0,
                overflow: 'hidden',
                textOverflow: 'ellipsis'
              },
              '> *': { flex: 'none' }
            }
          },
          [`${t}-sub${t}-inline`]: {
            padding: 0,
            border: 0,
            borderRadius: 0,
            boxShadow: 'none',
            [`& > ${t}-submenu > ${t}-submenu-title`]: h,
            [`& ${t}-item-group-title`]: { paddingInlineStart: u }
          },
          [`${t}-item`]: h
        }
      },
      {
        [`${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% - ${c}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`]: p(p({}, Kn), { paddingInline: m })
        }
      }
    ]
  },
  MA = DA,
  Lp = e => {
    const {
      componentCls: t,
      fontSize: n,
      motionDurationSlow: o,
      motionDurationMid: r,
      motionEaseInOut: i,
      motionEaseOut: l,
      iconCls: a,
      controlHeightSM: s
    } = e
    return {
      [`${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, ${a}`]: {
          minWidth: n,
          fontSize: n,
          transition: [
            `font-size ${r} ${l}`,
            `margin ${o} ${i}`,
            `color ${o}`
          ].join(','),
          '+ span': {
            marginInlineStart: s - n,
            opacity: 1,
            transition: [`opacity ${o} ${i}`, `margin ${o}`, `color ${o}`].join(
              ','
            )
          }
        },
        [`${t}-item-icon`]: p({}, xl()),
        [`&${t}-item-only-child`]: {
          [`> ${a}, > ${t}-item-icon`]: { marginInlineEnd: 0 }
        }
      },
      [`${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'
        }
      }
    }
  },
  Fp = e => {
    const {
      componentCls: t,
      motionDurationSlow: n,
      motionEaseInOut: o,
      borderRadius: r,
      menuArrowSize: i,
      menuArrowOffset: l
    } = 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(-${l})` },
          '&::after': { transform: `rotate(-45deg) translateY(${l})` }
        }
      }
    }
  },
  NA = e => {
    const {
      antCls: t,
      componentCls: n,
      fontSize: o,
      motionDurationSlow: r,
      motionDurationMid: i,
      motionEaseInOut: l,
      lineHeight: a,
      paddingXS: s,
      padding: u,
      colorSplit: c,
      lineWidth: d,
      zIndexPopup: f,
      borderRadiusLG: m,
      radiusSubMenuItem: g,
      menuArrowSize: h,
      menuArrowOffset: b,
      lineType: S,
      menuPanelMaskInset: C
    } = e
    return [
      {
        '': { [`${n}`]: p(p({}, Wn()), { '&-hidden': { display: 'none' } }) },
        [`${n}-submenu-hidden`]: { display: 'none' }
      },
      {
        [n]: p(
          p(
            p(
              p(
                p(p(p({}, ct(e)), Wn()), {
                  marginBottom: 0,
                  paddingInlineStart: 0,
                  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': {
                    display: 'flex',
                    [`${n}-item`]: { flex: 'none' }
                  },
                  [`${n}-item, ${n}-submenu, ${n}-submenu-title`]: {
                    borderRadius: e.radiusItem
                  },
                  [`${n}-item-group-title`]: {
                    padding: `${s}px ${u}px`,
                    fontSize: o,
                    lineHeight: a,
                    transition: `all ${r}`
                  },
                  [`&-horizontal ${n}-submenu`]: {
                    transition: [
                      `border-color ${r} ${l}`,
                      `background ${r} ${l}`
                    ].join(',')
                  },
                  [`${n}-submenu, ${n}-submenu-inline`]: {
                    transition: [
                      `border-color ${r} ${l}`,
                      `background ${r} ${l}`,
                      `padding ${i} ${l}`
                    ].join(',')
                  },
                  [`${n}-submenu ${n}-sub`]: {
                    cursor: 'initial',
                    transition: [
                      `background ${r} ${l}`,
                      `padding ${r} ${l}`
                    ].join(',')
                  },
                  [`${n}-title-content`]: { transition: `color ${r}` },
                  [`${n}-item a`]: {
                    '&::before': {
                      position: 'absolute',
                      inset: 0,
                      backgroundColor: 'transparent',
                      content: '""'
                    }
                  },
                  [`${n}-item-divider`]: {
                    overflow: 'hidden',
                    lineHeight: 0,
                    borderColor: c,
                    borderStyle: S,
                    borderWidth: 0,
                    borderTopWidth: d,
                    marginBlock: d,
                    padding: 0,
                    '&-dashed': { borderStyle: 'dashed' }
                  }
                }),
                Lp(e)
              ),
              {
                [`${n}-item-group`]: {
                  [`${n}-item-group-list`]: {
                    margin: 0,
                    padding: 0,
                    [`${n}-item, ${n}-submenu-title`]: {
                      paddingInline: `${o * 2}px ${u}px`
                    }
                  }
                },
                '&-submenu': {
                  '&-popup': {
                    position: 'absolute',
                    zIndex: f,
                    background: 'transparent',
                    borderRadius: m,
                    boxShadow: 'none',
                    transformOrigin: '0 0',
                    '&::before': {
                      position: 'absolute',
                      inset: `${C}px 0 0`,
                      zIndex: -1,
                      width: '100%',
                      height: '100%',
                      opacity: 0,
                      content: '""'
                    }
                  },
                  '&-placement-rightTop::before': {
                    top: 0,
                    insetInlineStart: C
                  },
                  [`> ${n}`]: p(p(p({ borderRadius: m }, Lp(e)), Fp(e)), {
                    [`${n}-item, ${n}-submenu > ${n}-submenu-title`]: {
                      borderRadius: g
                    },
                    [`${n}-submenu-title::after`]: {
                      transition: `transform ${r} ${l}`
                    }
                  })
                }
              }
            ),
            Fp(e)
          ),
          {
            [`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]: {
              '&::before': { transform: `rotate(-45deg) translateX(${b})` },
              '&::after': { transform: `rotate(45deg) translateX(-${b})` }
            },
            [`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]: {
              transform: `translateY(-${h * 0.2}px)`,
              '&::after': { transform: `rotate(-45deg) translateX(-${b})` },
              '&::before': { transform: `rotate(45deg) translateX(${b})` }
            }
          }
        )
      },
      { [`${t}-layout-header`]: { [n]: { lineHeight: 'inherit' } } }
    ]
  },
  BA = (e, t) =>
    pt(
      'Menu',
      (o, r) => {
        let { overrideComponentToken: i } = r
        if ((t == null ? void 0 : t.value) === !1) return []
        const {
            colorBgElevated: l,
            colorPrimary: a,
            colorError: s,
            colorErrorHover: u,
            colorTextLightSolid: c
          } = o,
          { controlHeightLG: d, fontSize: f } = o,
          m = (f / 7) * 5,
          g = Ze(o, {
            menuItemHeight: d,
            menuItemPaddingInline: o.margin,
            menuArrowSize: m,
            menuHorizontalHeight: d * 1.15,
            menuArrowOffset: `${m * 0.25}px`,
            menuPanelMaskInset: -7,
            menuSubMenuBg: l
          }),
          h = new ut(c).setAlpha(0.65).toRgbString(),
          b = Ze(
            g,
            {
              colorItemText: h,
              colorItemTextHover: c,
              colorGroupTitle: h,
              colorItemTextSelected: c,
              colorItemBg: '#001529',
              colorSubItemBg: '#000c17',
              colorItemBgActive: 'transparent',
              colorItemBgSelected: a,
              colorActiveBarWidth: 0,
              colorActiveBarHeight: 0,
              colorActiveBarBorderSize: 0,
              colorItemTextDisabled: new ut(c).setAlpha(0.25).toRgbString(),
              colorDangerItemText: s,
              colorDangerItemTextHover: u,
              colorDangerItemTextSelected: c,
              colorDangerItemBgActive: s,
              colorDangerItemBgSelected: s,
              menuSubMenuBg: '#001529',
              colorItemTextSelectedHorizontal: c,
              colorItemBgSelectedHorizontal: a
            },
            p({}, i)
          )
        return [
          NA(g),
          EA(g),
          MA(g),
          Bp(g, 'light'),
          Bp(b, 'dark'),
          RA(g),
          Nh(g),
          Vn(g, 'slide-up'),
          Vn(g, 'slide-down'),
          zl(g, 'zoom-big')
        ]
      },
      o => {
        const {
          colorPrimary: r,
          colorError: i,
          colorTextDisabled: l,
          colorErrorBg: a,
          colorText: s,
          colorTextDescription: u,
          colorBgContainer: c,
          colorFillAlter: d,
          colorFillContent: f,
          lineWidth: m,
          lineWidthBold: g,
          controlItemBgActive: h,
          colorBgTextHover: b
        } = o
        return {
          dropdownWidth: 160,
          zIndexPopup: o.zIndexPopupBase + 50,
          radiusItem: o.borderRadiusLG,
          radiusSubMenuItem: o.borderRadiusSM,
          colorItemText: s,
          colorItemTextHover: s,
          colorItemTextHoverHorizontal: r,
          colorGroupTitle: u,
          colorItemTextSelected: r,
          colorItemTextSelectedHorizontal: r,
          colorItemBg: c,
          colorItemBgHover: b,
          colorItemBgActive: f,
          colorSubItemBg: d,
          colorItemBgSelected: h,
          colorItemBgSelectedHorizontal: 'transparent',
          colorActiveBarWidth: 0,
          colorActiveBarHeight: g,
          colorActiveBarBorderSize: m,
          colorItemTextDisabled: l,
          colorDangerItemText: i,
          colorDangerItemTextHover: i,
          colorDangerItemTextSelected: i,
          colorDangerItemBgActive: a,
          colorDangerItemBgSelected: a,
          itemMarginInline: o.marginXXS
        }
      }
    )(e),
  zA = () => ({
    id: String,
    prefixCls: String,
    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
  }),
  Hp = [],
  Qt = J({
    compatConfig: { MODE: 3 },
    name: 'AMenu',
    inheritAttrs: !1,
    props: zA(),
    slots: Object,
    setup(e, t) {
      let { slots: n, emit: o, attrs: r } = t
      const { direction: i, getPrefixCls: l } = je('menu', e),
        a = Qh(),
        s = P(() => {
          var Q
          return l(
            'menu',
            e.prefixCls ||
              ((Q = a == null ? void 0 : a.prefixCls) === null || Q === void 0
                ? void 0
                : Q.value)
          )
        }),
        [u, c] = BA(
          s,
          P(() => !a)
        ),
        d = V(new Map()),
        f = Ue(pA, ne(void 0)),
        m = P(() => (f.value !== void 0 ? f.value : e.inlineCollapsed)),
        { itemsNodes: g } = TA(e),
        h = V(!1)
      We(() => {
        h.value = !0
      }),
        Me(() => {
          vt(
            !(e.inlineCollapsed === !0 && e.mode !== 'inline'),
            'Menu',
            '`inlineCollapsed` should only be used when `mode` is inline.'
          ),
            vt(
              !(f.value !== void 0 && e.inlineCollapsed === !0),
              'Menu',
              '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.'
            )
        })
      const b = ne([]),
        S = ne([]),
        C = ne({})
      ge(
        d,
        () => {
          const Q = {}
          for (const se of d.value.values()) Q[se.key] = se
          C.value = Q
        },
        { flush: 'post' }
      ),
        Me(() => {
          if (e.activeKey !== void 0) {
            let Q = []
            const se = e.activeKey ? C.value[e.activeKey] : void 0
            se && e.activeKey !== void 0
              ? (Q = Ca([].concat(ze(se.parentKeys), e.activeKey)))
              : (Q = []),
              wr(b.value, Q) || (b.value = Q)
          }
        }),
        ge(
          () => e.selectedKeys,
          Q => {
            Q && (S.value = Q.slice())
          },
          { immediate: !0, deep: !0 }
        )
      const $ = ne([])
      ge(
        [C, S],
        () => {
          let Q = []
          S.value.forEach(se => {
            const q = C.value[se]
            q && (Q = Q.concat(ze(q.parentKeys)))
          }),
            (Q = Ca(Q)),
            wr($.value, Q) || ($.value = Q)
        },
        { immediate: !0 }
      )
      const O = Q => {
          if (e.selectable) {
            const { key: se } = Q,
              q = S.value.includes(se)
            let K
            e.multiple
              ? q
                ? (K = S.value.filter(ue => ue !== se))
                : (K = [...S.value, se])
              : (K = [se])
            const U = p(p({}, Q), { selectedKeys: K })
            wr(K, S.value) ||
              (e.selectedKeys === void 0 && (S.value = K),
              o('update:selectedKeys', K),
              q && e.multiple ? o('deselect', U) : o('select', U))
          }
          _.value !== 'inline' && !e.multiple && x.value.length && M(Hp)
        },
        x = ne([])
      ge(
        () => e.openKeys,
        function() {
          let Q =
            arguments.length > 0 && arguments[0] !== void 0
              ? arguments[0]
              : x.value
          wr(x.value, Q) || (x.value = Q.slice())
        },
        { immediate: !0, deep: !0 }
      )
      let w
      const y = Q => {
          clearTimeout(w),
            (w = setTimeout(() => {
              e.activeKey === void 0 && (b.value = Q),
                o('update:activeKey', Q[Q.length - 1])
            }))
        },
        T = P(() => !!e.disabled),
        I = P(() => i.value === 'rtl'),
        _ = ne('vertical'),
        A = V(!1)
      Me(() => {
        var Q
        ;(e.mode === 'inline' || e.mode === 'vertical') && m.value
          ? ((_.value = 'vertical'), (A.value = m.value))
          : ((_.value = e.mode), (A.value = !1)),
          !((Q = a == null ? void 0 : a.mode) === null || Q === void 0) &&
            Q.value &&
            (_.value = a.mode.value)
      })
      const z = P(() => _.value === 'inline'),
        M = Q => {
          ;(x.value = Q), o('update:openKeys', Q), o('openChange', Q)
        },
        j = ne(x.value),
        E = V(!1)
      ge(
        x,
        () => {
          z.value && (j.value = x.value)
        },
        { immediate: !0 }
      ),
        ge(
          z,
          () => {
            if (!E.value) {
              E.value = !0
              return
            }
            z.value ? (x.value = j.value) : M(Hp)
          },
          { immediate: !0 }
        )
      const R = P(() => ({
          [`${s.value}`]: !0,
          [`${s.value}-root`]: !0,
          [`${s.value}-${_.value}`]: !0,
          [`${s.value}-inline-collapsed`]: A.value,
          [`${s.value}-rtl`]: I.value,
          [`${s.value}-${e.theme}`]: !0
        })),
        L = P(() => l()),
        W = P(() => ({
          horizontal: { name: `${L.value}-slide-up` },
          inline: pb(`${L.value}-motion-collapse`),
          other: { name: `${L.value}-zoom-big` }
        }))
      lb(!0)
      const D = function() {
          let Q =
            arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
          const se = [],
            q = d.value
          return (
            Q.forEach(K => {
              const { key: U, childrenEventKeys: ue } = q.get(K)
              se.push(U, ...D(ze(ue)))
            }),
            se
          )
        },
        F = Q => {
          var se
          o('click', Q),
            O(Q),
            (se = a == null ? void 0 : a.onClick) === null ||
              se === void 0 ||
              se.call(a)
        },
        H = (Q, se) => {
          var q
          const K =
            ((q = C.value[Q]) === null || q === void 0
              ? void 0
              : q.childrenEventKeys) || []
          let U = x.value.filter(ue => ue !== Q)
          if (se) U.push(Q)
          else if (_.value !== 'inline') {
            const ue = D(ze(K))
            U = Ca(U.filter(me => !ue.includes(me)))
          }
          wr(x, U) || M(U)
        },
        B = (Q, se) => {
          d.value.set(Q, se), (d.value = new Map(d.value))
        },
        X = Q => {
          d.value.delete(Q), (d.value = new Map(d.value))
        },
        ee = ne(0),
        de = P(() => {
          var Q
          return e.expandIcon ||
            n.expandIcon ||
            (!(
              (Q = a == null ? void 0 : a.expandIcon) === null || Q === void 0
            ) &&
              Q.value)
            ? se => {
                let q = e.expandIcon || n.expandIcon
                return (
                  (q = typeof q == 'function' ? q(se) : q),
                  ft(q, { class: `${s.value}-submenu-expand-icon` }, !1)
                )
              }
            : null
        })
      fA({
        prefixCls: s,
        activeKeys: b,
        openKeys: x,
        selectedKeys: S,
        changeActiveKeys: y,
        disabled: T,
        rtl: I,
        mode: _,
        inlineIndent: P(() => e.inlineIndent),
        subMenuCloseDelay: P(() => e.subMenuCloseDelay),
        subMenuOpenDelay: P(() => e.subMenuOpenDelay),
        builtinPlacements: P(() => e.builtinPlacements),
        triggerSubMenuAction: P(() => e.triggerSubMenuAction),
        getPopupContainer: P(() => e.getPopupContainer),
        inlineCollapsed: A,
        theme: P(() => e.theme),
        siderCollapsed: f,
        defaultMotions: P(() => (h.value ? W.value : null)),
        motion: P(() => (h.value ? e.motion : null)),
        overflowDisabled: V(void 0),
        onOpenChange: H,
        onItemClick: F,
        registerMenuInfo: B,
        unRegisterMenuInfo: X,
        selectedSubMenuKeys: $,
        expandIcon: de,
        forceSubMenuRender: P(() => e.forceSubMenuRender),
        rootClassName: c
      })
      const ie = () => {
        var Q
        return (
          g.value ||
          yt((Q = n.default) === null || Q === void 0 ? void 0 : Q.call(n))
        )
      }
      return () => {
        var Q
        const se = ie(),
          q =
            ee.value >= se.length - 1 ||
            _.value !== 'horizontal' ||
            e.disabledOverflow,
          K = ue =>
            _.value !== 'horizontal' || e.disabledOverflow
              ? ue
              : ue.map((me, he) =>
                  v(
                    al,
                    { key: me.key, overflowDisabled: he > ee.value },
                    { default: () => me }
                  )
                ),
          U =
            ((Q = n.overflowedIndicator) === null || Q === void 0
              ? void 0
              : Q.call(n)) || v(Cu, null, null)
        return u(
          v(
            Ko,
            N(
              N({}, r),
              {},
              {
                onMousedown: e.onMousedown,
                prefixCls: `${s.value}-overflow`,
                component: 'ul',
                itemComponent: lr,
                class: [R.value, r.class, c.value],
                role: 'menu',
                id: e.id,
                data: K(se),
                renderRawItem: ue => ue,
                renderRawRest: ue => {
                  const me = ue.length,
                    he = me ? se.slice(-me) : null
                  return v(nt, null, [
                    v(
                      ar,
                      {
                        eventKey: $i,
                        key: $i,
                        title: U,
                        disabled: q,
                        internalPopupClose: me === 0
                      },
                      { default: () => he }
                    ),
                    v(Ap, null, {
                      default: () => [
                        v(
                          ar,
                          {
                            eventKey: $i,
                            key: $i,
                            title: U,
                            disabled: q,
                            internalPopupClose: me === 0
                          },
                          { default: () => he }
                        )
                      ]
                    })
                  ])
                },
                maxCount:
                  _.value !== 'horizontal' || e.disabledOverflow
                    ? Ko.INVALIDATE
                    : Ko.RESPONSIVE,
                ssr: 'full',
                'data-menu-list': !0,
                onVisibleChange: ue => {
                  ee.value = ue
                }
              }
            ),
            {
              default: () => [
                v(
                  pc,
                  { to: 'body' },
                  {
                    default: () => [
                      v(
                        'div',
                        { style: { display: 'none' }, 'aria-hidden': !0 },
                        [v(Ap, null, { default: () => [K(ie())] })]
                      )
                    ]
                  }
                )
              ]
            }
          )
        )
      }
    }
  })
Qt.install = function(e) {
  return (
    e.component(Qt.name, Qt),
    e.component(lr.name, lr),
    e.component(ar.name, ar),
    e.component(cl.name, cl),
    e.component(sl.name, sl),
    e
  )
}
Qt.Item = lr
Qt.Divider = cl
Qt.SubMenu = ar
Qt.ItemGroup = sl
var LA =
  (globalThis && globalThis.__rest) ||
  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 FA = {
    prefixCls: String,
    name: String,
    id: String,
    type: String,
    defaultChecked: { type: [Boolean, Number], default: void 0 },
    checked: { type: [Boolean, Number], default: void 0 },
    disabled: Boolean,
    tabindex: { type: [Number, String] },
    readonly: Boolean,
    autofocus: Boolean,
    value: k.any,
    required: Boolean
  },
  vb = J({
    compatConfig: { MODE: 3 },
    name: 'Checkbox',
    inheritAttrs: !1,
    props: mt(FA, {
      prefixCls: 'rc-checkbox',
      type: 'checkbox',
      defaultChecked: !1
    }),
    emits: ['click', 'change'],
    setup(e, t) {
      let { attrs: n, emit: o, expose: r } = t
      const i = ne(e.checked === void 0 ? e.defaultChecked : e.checked),
        l = ne()
      ge(
        () => e.checked,
        () => {
          i.value = e.checked
        }
      ),
        r({
          focus() {
            var c
            ;(c = l.value) === null || c === void 0 || c.focus()
          },
          blur() {
            var c
            ;(c = l.value) === null || c === void 0 || c.blur()
          }
        })
      const a = ne(),
        s = c => {
          if (e.disabled) return
          e.checked === void 0 && (i.value = c.target.checked),
            (c.shiftKey = a.value)
          const d = {
            target: p(p({}, e), { checked: c.target.checked }),
            stopPropagation() {
              c.stopPropagation()
            },
            preventDefault() {
              c.preventDefault()
            },
            nativeEvent: c
          }
          e.checked !== void 0 && (l.value.checked = !!e.checked),
            o('change', d),
            (a.value = !1)
        },
        u = c => {
          o('click', c), (a.value = c.shiftKey)
        }
      return () => {
        const {
            prefixCls: c,
            name: d,
            id: f,
            type: m,
            disabled: g,
            readonly: h,
            tabindex: b,
            autofocus: S,
            value: C,
            required: $
          } = e,
          O = LA(e, [
            'prefixCls',
            'name',
            'id',
            'type',
            'disabled',
            'readonly',
            'tabindex',
            'autofocus',
            'value',
            'required'
          ]),
          {
            class: x,
            onFocus: w,
            onBlur: y,
            onKeydown: T,
            onKeypress: I,
            onKeyup: _
          } = n,
          A = p(p({}, O), n),
          z = Object.keys(A).reduce(
            (E, R) => (
              (R.startsWith('data-') ||
                R.startsWith('aria-') ||
                R === 'role') &&
                (E[R] = A[R]),
              E
            ),
            {}
          ),
          M = oe(c, x, { [`${c}-checked`]: i.value, [`${c}-disabled`]: g }),
          j = p(
            p(
              {
                name: d,
                id: f,
                type: m,
                readonly: h,
                disabled: g,
                tabindex: b,
                class: `${c}-input`,
                checked: !!i.value,
                autofocus: S,
                value: C
              },
              z
            ),
            {
              onChange: s,
              onClick: u,
              onFocus: w,
              onBlur: y,
              onKeydown: T,
              onKeypress: I,
              onKeyup: _,
              required: $
            }
          )
        return v('span', { class: M }, [
          v('input', N({ ref: l }, j), null),
          v('span', { class: `${c}-inner` }, null)
        ])
      }
    }
  }),
  mb = Symbol('radioGroupContextKey'),
  HA = e => {
    Ye(mb, e)
  },
  kA = () => Ue(mb, void 0),
  gb = Symbol('radioOptionTypeContextKey'),
  jA = e => {
    Ye(gb, e)
  },
  KA = () => Ue(gb, void 0),
  WA = new Ve('antRadioEffect', {
    '0%': { transform: 'scale(1)', opacity: 0.5 },
    '100%': { transform: 'scale(1.6)', opacity: 0 }
  }),
  VA = e => {
    const { componentCls: t, antCls: n } = e,
      o = `${t}-group`
    return {
      [o]: p(p({}, ct(e)), {
        display: 'inline-block',
        fontSize: 0,
        [`&${o}-rtl`]: { direction: 'rtl' },
        [`${n}-badge ${n}-badge-count`]: { zIndex: 1 },
        [`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]: {
          borderInlineStart: 'none'
        }
      })
    }
  },
  GA = e => {
    const {
        componentCls: t,
        radioWrapperMarginRight: n,
        radioCheckedColor: o,
        radioSize: r,
        motionDurationSlow: i,
        motionDurationMid: l,
        motionEaseInOut: a,
        motionEaseInOutCirc: s,
        radioButtonBg: u,
        colorBorder: c,
        lineWidth: d,
        radioDotSize: f,
        colorBgContainerDisabled: m,
        colorTextDisabled: g,
        paddingXS: h,
        radioDotDisabledColor: b,
        lineType: S,
        radioDotDisabledSize: C,
        wireframe: $,
        colorWhite: O
      } = e,
      x = `${t}-inner`
    return {
      [`${t}-wrapper`]: p(p({}, ct(e)), {
        position: 'relative',
        display: 'inline-flex',
        alignItems: 'baseline',
        marginInlineStart: 0,
        marginInlineEnd: n,
        cursor: 'pointer',
        [`&${t}-wrapper-rtl`]: { direction: 'rtl' },
        '&-disabled': { cursor: 'not-allowed', color: e.colorTextDisabled },
        '&::after': {
          display: 'inline-block',
          width: 0,
          overflow: 'hidden',
          content: '"\\a0"'
        },
        [`${t}-checked::after`]: {
          position: 'absolute',
          insetBlockStart: 0,
          insetInlineStart: 0,
          width: '100%',
          height: '100%',
          border: `${d}px ${S} ${o}`,
          borderRadius: '50%',
          visibility: 'hidden',
          animationName: WA,
          animationDuration: i,
          animationTimingFunction: a,
          animationFillMode: 'both',
          content: '""'
        },
        [t]: p(p({}, ct(e)), {
          position: 'relative',
          display: 'inline-block',
          outline: 'none',
          cursor: 'pointer',
          alignSelf: 'center'
        }),
        [`${t}-wrapper:hover &,
        &:hover ${x}`]: { borderColor: o },
        [`${t}-input:focus-visible + ${x}`]: p({}, En(e)),
        [`${t}:hover::after, ${t}-wrapper:hover &::after`]: {
          visibility: 'visible'
        },
        [`${t}-inner`]: {
          '&::after': {
            boxSizing: 'border-box',
            position: 'absolute',
            insetBlockStart: '50%',
            insetInlineStart: '50%',
            display: 'block',
            width: r,
            height: r,
            marginBlockStart: r / -2,
            marginInlineStart: r / -2,
            backgroundColor: $ ? o : O,
            borderBlockStart: 0,
            borderInlineStart: 0,
            borderRadius: r,
            transform: 'scale(0)',
            opacity: 0,
            transition: `all ${i} ${s}`,
            content: '""'
          },
          boxSizing: 'border-box',
          position: 'relative',
          insetBlockStart: 0,
          insetInlineStart: 0,
          display: 'block',
          width: r,
          height: r,
          backgroundColor: u,
          borderColor: c,
          borderStyle: 'solid',
          borderWidth: d,
          borderRadius: '50%',
          transition: `all ${l}`
        },
        [`${t}-input`]: {
          position: 'absolute',
          insetBlockStart: 0,
          insetInlineEnd: 0,
          insetBlockEnd: 0,
          insetInlineStart: 0,
          zIndex: 1,
          cursor: 'pointer',
          opacity: 0
        },
        [`${t}-checked`]: {
          [x]: {
            borderColor: o,
            backgroundColor: $ ? u : o,
            '&::after': {
              transform: `scale(${f / r})`,
              opacity: 1,
              transition: `all ${i} ${s}`
            }
          }
        },
        [`${t}-disabled`]: {
          cursor: 'not-allowed',
          [x]: {
            backgroundColor: m,
            borderColor: c,
            cursor: 'not-allowed',
            '&::after': { backgroundColor: b }
          },
          [`${t}-input`]: { cursor: 'not-allowed' },
          [`${t}-disabled + span`]: { color: g, cursor: 'not-allowed' },
          [`&${t}-checked`]: {
            [x]: { '&::after': { transform: `scale(${C / r})` } }
          }
        },
        [`span${t} + *`]: { paddingInlineStart: h, paddingInlineEnd: h }
      })
    }
  },
  UA = e => {
    const {
      radioButtonColor: t,
      controlHeight: n,
      componentCls: o,
      lineWidth: r,
      lineType: i,
      colorBorder: l,
      motionDurationSlow: a,
      motionDurationMid: s,
      radioButtonPaddingHorizontal: u,
      fontSize: c,
      radioButtonBg: d,
      fontSizeLG: f,
      controlHeightLG: m,
      controlHeightSM: g,
      paddingXS: h,
      borderRadius: b,
      borderRadiusSM: S,
      borderRadiusLG: C,
      radioCheckedColor: $,
      radioButtonCheckedBg: O,
      radioButtonHoverColor: x,
      radioButtonActiveColor: w,
      radioSolidCheckedColor: y,
      colorTextDisabled: T,
      colorBgContainerDisabled: I,
      radioDisabledButtonCheckedColor: _,
      radioDisabledButtonCheckedBg: A
    } = e
    return {
      [`${o}-button-wrapper`]: {
        position: 'relative',
        display: 'inline-block',
        height: n,
        margin: 0,
        paddingInline: u,
        paddingBlock: 0,
        color: t,
        fontSize: c,
        lineHeight: `${n - r * 2}px`,
        background: d,
        border: `${r}px ${i} ${l}`,
        borderBlockStartWidth: r + 0.02,
        borderInlineStartWidth: 0,
        borderInlineEndWidth: r,
        cursor: 'pointer',
        transition: [
          `color ${s}`,
          `background ${s}`,
          `border-color ${s}`,
          `box-shadow ${s}`
        ].join(','),
        a: { color: t },
        [`> ${o}-button`]: {
          position: 'absolute',
          insetBlockStart: 0,
          insetInlineStart: 0,
          zIndex: -1,
          width: '100%',
          height: '100%'
        },
        '&:not(:first-child)': {
          '&::before': {
            position: 'absolute',
            insetBlockStart: -r,
            insetInlineStart: -r,
            display: 'block',
            boxSizing: 'content-box',
            width: 1,
            height: '100%',
            paddingBlock: r,
            paddingInline: 0,
            backgroundColor: l,
            transition: `background-color ${a}`,
            content: '""'
          }
        },
        '&:first-child': {
          borderInlineStart: `${r}px ${i} ${l}`,
          borderStartStartRadius: b,
          borderEndStartRadius: b
        },
        '&:last-child': { borderStartEndRadius: b, borderEndEndRadius: b },
        '&:first-child:last-child': { borderRadius: b },
        [`${o}-group-large &`]: {
          height: m,
          fontSize: f,
          lineHeight: `${m - r * 2}px`,
          '&:first-child': {
            borderStartStartRadius: C,
            borderEndStartRadius: C
          },
          '&:last-child': { borderStartEndRadius: C, borderEndEndRadius: C }
        },
        [`${o}-group-small &`]: {
          height: g,
          paddingInline: h - r,
          paddingBlock: 0,
          lineHeight: `${g - r * 2}px`,
          '&:first-child': {
            borderStartStartRadius: S,
            borderEndStartRadius: S
          },
          '&:last-child': { borderStartEndRadius: S, borderEndEndRadius: S }
        },
        '&:hover': { position: 'relative', color: $ },
        '&:has(:focus-visible)': p({}, En(e)),
        [`${o}-inner, input[type='checkbox'], input[type='radio']`]: {
          width: 0,
          height: 0,
          opacity: 0,
          pointerEvents: 'none'
        },
        [`&-checked:not(${o}-button-wrapper-disabled)`]: {
          zIndex: 1,
          color: $,
          background: O,
          borderColor: $,
          '&::before': { backgroundColor: $ },
          '&:first-child': { borderColor: $ },
          '&:hover': {
            color: x,
            borderColor: x,
            '&::before': { backgroundColor: x }
          },
          '&:active': {
            color: w,
            borderColor: w,
            '&::before': { backgroundColor: w }
          }
        },
        [`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]: {
          color: y,
          background: $,
          borderColor: $,
          '&:hover': { color: y, background: x, borderColor: x },
          '&:active': { color: y, background: w, borderColor: w }
        },
        '&-disabled': {
          color: T,
          backgroundColor: I,
          borderColor: l,
          cursor: 'not-allowed',
          '&:first-child, &:hover': {
            color: T,
            backgroundColor: I,
            borderColor: l
          }
        },
        [`&-disabled${o}-button-wrapper-checked`]: {
          color: _,
          backgroundColor: A,
          borderColor: l,
          boxShadow: 'none'
        }
      }
    }
  },
  hb = pt('Radio', e => {
    const {
        padding: t,
        lineWidth: n,
        controlItemBgActiveDisabled: o,
        colorTextDisabled: r,
        colorBgContainer: i,
        fontSizeLG: l,
        controlOutline: a,
        colorPrimaryHover: s,
        colorPrimaryActive: u,
        colorText: c,
        colorPrimary: d,
        marginXS: f,
        controlOutlineWidth: m,
        colorTextLightSolid: g,
        wireframe: h
      } = e,
      b = `0 0 0 ${m}px ${a}`,
      S = b,
      C = l,
      $ = 4,
      O = C - $ * 2,
      x = h ? O : C - ($ + n) * 2,
      w = d,
      y = c,
      T = s,
      I = u,
      _ = t - n,
      M = Ze(e, {
        radioFocusShadow: b,
        radioButtonFocusShadow: S,
        radioSize: C,
        radioDotSize: x,
        radioDotDisabledSize: O,
        radioCheckedColor: w,
        radioDotDisabledColor: r,
        radioSolidCheckedColor: g,
        radioButtonBg: i,
        radioButtonCheckedBg: i,
        radioButtonColor: y,
        radioButtonHoverColor: T,
        radioButtonActiveColor: I,
        radioButtonPaddingHorizontal: _,
        radioDisabledButtonCheckedBg: o,
        radioDisabledButtonCheckedColor: r,
        radioWrapperMarginRight: f
      })
    return [VA(M), GA(M), UA(M)]
  })
var XA =
  (globalThis && globalThis.__rest) ||
  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 bb = () => ({
    prefixCls: String,
    checked: Re(),
    disabled: Re(),
    isGroup: Re(),
    value: k.any,
    name: String,
    id: String,
    autofocus: Re(),
    onChange: _e(),
    onFocus: _e(),
    onBlur: _e(),
    onClick: _e(),
    'onUpdate:checked': _e(),
    'onUpdate:value': _e()
  }),
  Lt = J({
    compatConfig: { MODE: 3 },
    name: 'ARadio',
    inheritAttrs: !1,
    props: bb(),
    setup(e, t) {
      let { emit: n, expose: o, slots: r, attrs: i } = t
      const l = Ao(),
        a = _n.useInject(),
        s = KA(),
        u = kA(),
        c = In(),
        d = P(() => {
          var T
          return (T = h.value) !== null && T !== void 0 ? T : c.value
        }),
        f = ne(),
        { prefixCls: m, direction: g, disabled: h } = je('radio', e),
        b = P(() =>
          (u == null ? void 0 : u.optionType.value) === 'button' ||
          s === 'button'
            ? `${m.value}-button`
            : m.value
        ),
        S = In(),
        [C, $] = hb(m)
      o({
        focus: () => {
          f.value.focus()
        },
        blur: () => {
          f.value.blur()
        }
      })
      const w = T => {
          const I = T.target.checked
          n('update:checked', I),
            n('update:value', I),
            n('change', T),
            l.onFieldChange()
        },
        y = T => {
          n('change', T), u && u.onChange && u.onChange(T)
        }
      return () => {
        var T
        const I = u,
          { prefixCls: _, id: A = l.id.value } = e,
          z = XA(e, ['prefixCls', 'id']),
          M = p(
            p(
              { prefixCls: b.value, id: A },
              rt(z, ['onUpdate:checked', 'onUpdate:value'])
            ),
            { disabled: (T = h.value) !== null && T !== void 0 ? T : S.value }
          )
        I
          ? ((M.name = I.name.value),
            (M.onChange = y),
            (M.checked = e.value === I.value.value),
            (M.disabled = d.value || I.disabled.value))
          : (M.onChange = w)
        const j = oe(
          {
            [`${b.value}-wrapper`]: !0,
            [`${b.value}-wrapper-checked`]: M.checked,
            [`${b.value}-wrapper-disabled`]: M.disabled,
            [`${b.value}-wrapper-rtl`]: g.value === 'rtl',
            [`${b.value}-wrapper-in-form-item`]: a.isFormItemInput
          },
          i.class,
          $.value
        )
        return C(
          v('label', N(N({}, i), {}, { class: j }), [
            v(vb, N(N({}, M), {}, { type: 'radio', ref: f }), null),
            r.default && v('span', null, [r.default()])
          ])
        )
      }
    }
  }),
  qA = () => ({
    prefixCls: String,
    value: k.any,
    size: at(),
    options: $t(),
    disabled: Re(),
    name: String,
    buttonStyle: at('outline'),
    id: String,
    optionType: at('default'),
    onChange: _e(),
    'onUpdate:value': _e()
  }),
  YA = J({
    compatConfig: { MODE: 3 },
    name: 'ARadioGroup',
    inheritAttrs: !1,
    props: qA(),
    setup(e, t) {
      let { slots: n, emit: o, attrs: r } = t
      const i = Ao(),
        { prefixCls: l, direction: a, size: s } = je('radio', e),
        [u, c] = hb(l),
        d = ne(e.value),
        f = ne(!1)
      return (
        ge(
          () => e.value,
          g => {
            ;(d.value = g), (f.value = !1)
          }
        ),
        HA({
          onChange: g => {
            const h = d.value,
              { value: b } = g.target
            'value' in e || (d.value = b),
              !f.value &&
                b !== h &&
                ((f.value = !0),
                o('update:value', b),
                o('change', g),
                i.onFieldChange()),
              it(() => {
                f.value = !1
              })
          },
          value: d,
          disabled: P(() => e.disabled),
          name: P(() => e.name),
          optionType: P(() => e.optionType)
        }),
        () => {
          var g
          const { options: h, buttonStyle: b, id: S = i.id.value } = e,
            C = `${l.value}-group`,
            $ = oe(
              C,
              `${C}-${b}`,
              { [`${C}-${s.value}`]: s.value, [`${C}-rtl`]: a.value === 'rtl' },
              r.class,
              c.value
            )
          let O = null
          return (
            h && h.length > 0
              ? (O = h.map(x => {
                  if (typeof x == 'string' || typeof x == 'number')
                    return v(
                      Lt,
                      {
                        key: x,
                        prefixCls: l.value,
                        disabled: e.disabled,
                        value: x,
                        checked: d.value === x
                      },
                      { default: () => [x] }
                    )
                  const { value: w, disabled: y, label: T } = x
                  return v(
                    Lt,
                    {
                      key: `radio-group-value-options-${w}`,
                      prefixCls: l.value,
                      disabled: y || e.disabled,
                      value: w,
                      checked: d.value === w
                    },
                    { default: () => [T] }
                  )
                }))
              : (O =
                  (g = n.default) === null || g === void 0
                    ? void 0
                    : g.call(n)),
            u(v('div', N(N({}, r), {}, { class: $, id: S }), [O]))
          )
        }
      )
    }
  }),
  JA = J({
    compatConfig: { MODE: 3 },
    name: 'ARadioButton',
    inheritAttrs: !1,
    props: bb(),
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const { prefixCls: r } = je('radio', e)
      return (
        jA('button'),
        () => {
          var i
          return v(Lt, N(N(N({}, o), e), {}, { prefixCls: r.value }), {
            default: () => [
              (i = n.default) === null || i === void 0 ? void 0 : i.call(n)
            ]
          })
        }
      )
    }
  })
Lt.Group = YA
Lt.Button = JA
Lt.install = function(e) {
  return (
    e.component(Lt.name, Lt),
    e.component(Lt.Group.name, Lt.Group),
    e.component(Lt.Button.name, Lt.Button),
    e
  )
}
const QA = e => ({
    '&::-moz-placeholder': { opacity: 1 },
    '&::placeholder': { color: e, userSelect: 'none' },
    '&:placeholder-shown': { textOverflow: 'ellipsis' }
  }),
  Pu = e => ({
    borderColor: e.inputBorderHoverColor,
    borderInlineEndWidth: e.lineWidth
  }),
  Rs = e => ({
    borderColor: e.inputBorderHoverColor,
    boxShadow: `0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,
    borderInlineEndWidth: e.lineWidth,
    outline: 0
  }),
  ZA = e => ({
    color: e.colorTextDisabled,
    backgroundColor: e.colorBgContainerDisabled,
    borderColor: e.colorBorder,
    boxShadow: 'none',
    cursor: 'not-allowed',
    opacity: 1,
    '&:hover': p({}, Pu(Ze(e, { inputBorderHoverColor: e.colorBorder })))
  }),
  yb = 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
    }
  },
  Tu = e => ({
    padding: `${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM -
      1}px`,
    borderRadius: e.borderRadiusSM
  }),
  Sb = (e, t) => {
    const {
      componentCls: n,
      colorError: o,
      colorWarning: r,
      colorErrorOutline: i,
      colorWarningOutline: l,
      colorErrorBorderHover: a,
      colorWarningBorderHover: s
    } = e
    return {
      [`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]: {
        borderColor: o,
        '&:hover': { borderColor: a },
        '&:focus, &-focused': p(
          {},
          Rs(
            Ze(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': p(
          {},
          Rs(
            Ze(e, {
              inputBorderActiveColor: r,
              inputBorderHoverColor: r,
              controlOutline: l
            })
          )
        ),
        [`${n}-prefix`]: { color: r }
      }
    }
  },
  Iu = e =>
    p(
      p(
        {
          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}`
        },
        QA(e.colorTextPlaceholder)
      ),
      {
        '&:hover': p({}, Pu(e)),
        '&:focus, &-focused': p({}, Rs(e)),
        '&-disabled, &[disabled]': p({}, ZA(e)),
        '&-borderless': {
          '&, &:hover, &:focus, &-focused, &-disabled, &[disabled]': {
            backgroundColor: 'transparent',
            border: 'none',
            boxShadow: 'none'
          }
        },
        'textarea&': {
          maxWidth: '100%',
          height: 'auto',
          minHeight: e.controlHeight,
          lineHeight: e.lineHeight,
          verticalAlign: 'bottom',
          transition: `all ${e.motionDurationSlow}, height 0s`,
          resize: 'vertical'
        },
        '&-lg': p({}, yb(e)),
        '&-sm': p({}, Tu(e)),
        '&-rtl': { direction: 'rtl' },
        '&-textarea-rtl': { direction: 'rtl' }
      }
    ),
  eD = e => {
    const { componentCls: t, antCls: n } = e
    return {
      position: 'relative',
      display: 'table',
      width: '100%',
      borderCollapse: 'separate',
      borderSpacing: 0,
      "&[class*='col-']": {
        paddingInlineEnd: e.paddingXS,
        '&:last-child': { paddingInlineEnd: 0 }
      },
      [`&-lg ${t}, &-lg > ${t}-group-addon`]: p({}, yb(e)),
      [`&-sm ${t}, &-sm > ${t}-group-addon`]: p({}, Tu(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,
          [`${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 }
            }
          },
          [`${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 }
        }
      },
      [`> ${t}:first-child, ${t}-group-addon:first-child`]: {
        borderStartEndRadius: 0,
        borderEndEndRadius: 0,
        [`${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,
        [`${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`]: p(p({ display: 'block' }, Wn()), {
        [`${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
        },
        [`${t}`]: { float: 'none' },
        [`& > ${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 },
        [`& > ${n}-select > ${n}-select-arrow`]: { zIndex: 1 },
        [`& > *: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
        },
        [`& > ${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'
      },
      [`&&-lg ${n}-select-single ${n}-select-selector`]: {
        height: `${e.controlHeightLG}px`,
        [`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
          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`]: {
          lineHeight: `${e.controlHeightSM - 2}px`
        },
        [`${n}-select-selection-search-input`]: {
          height: `${e.controlHeightSM}px`
        }
      }
    }
  },
  tD = e => {
    const { componentCls: t, controlHeightSM: n, lineWidth: o } = e,
      r = 16,
      i = (n - o * 2 - r) / 2
    return {
      [t]: p(p(p(p({}, ct(e)), Iu(e)), Sb(e, t)), {
        '&[type="color"]': {
          height: e.controlHeight,
          [`&${t}-lg`]: { height: e.controlHeightLG },
          [`&${t}-sm`]: { height: n, paddingTop: i, paddingBottom: i }
        }
      })
    }
  },
  nD = e => {
    const { componentCls: t } = e
    return {
      [`${t}-clear-icon`]: {
        margin: 0,
        color: e.colorTextQuaternary,
        fontSize: e.fontSizeIcon,
        verticalAlign: -1,
        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-with-clear-btn': {
        padding: '0 !important',
        border: '0 !important',
        [`${t}-clear-icon`]: {
          position: 'absolute',
          insetBlockStart: e.paddingXS,
          insetInlineEnd: e.paddingXS,
          zIndex: 1
        }
      }
    }
  },
  oD = e => {
    const {
      componentCls: t,
      inputAffixPadding: n,
      colorTextDescription: o,
      motionDurationSlow: r,
      colorIcon: i,
      colorIconHover: l,
      iconCls: a
    } = e
    return {
      [`${t}-affix-wrapper`]: p(
        p(
          p(
            p(p({}, Iu(e)), {
              display: 'inline-flex',
              [`&:not(${t}-affix-wrapper-disabled):hover`]: p(p({}, Pu(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 }
              }
            }),
            nD(e)
          ),
          {
            [`${a}${t}-password-icon`]: {
              color: i,
              cursor: 'pointer',
              transition: `all ${r}`,
              '&:hover': { color: l }
            }
          }
        ),
        Sb(e, `${t}-affix-wrapper`)
      )
    }
  },
  rD = e => {
    const {
      componentCls: t,
      colorError: n,
      colorSuccess: o,
      borderRadiusLG: r,
      borderRadiusSM: i
    } = e
    return {
      [`${t}-group`]: p(p(p({}, ct(e)), eD(e)), {
        '&-rtl': { direction: 'rtl' },
        '&-wrapper': {
          display: 'inline-block',
          width: '100%',
          textAlign: 'start',
          verticalAlign: 'top',
          '&-rtl': { direction: 'rtl' },
          '&-lg': { [`${t}-group-addon`]: { borderRadius: r } },
          '&-sm': { [`${t}-group-addon`]: { borderRadius: i } },
          '&-status-error': {
            [`${t}-group-addon`]: { color: n, borderColor: n }
          },
          '&-status-warning': {
            [`${t}-group-addon:last-child`]: { color: o, borderColor: o }
          }
        }
      })
    }
  },
  iD = 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 },
        [`${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' },
        [`&${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 Eu(e) {
  return Ze(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 lD = 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': {
          [`> ${t}`]: { height: '100%' },
          '&::after': {
            color: e.colorTextDescription,
            whiteSpace: 'nowrap',
            content: 'attr(data-count)',
            pointerEvents: 'none',
            float: 'right'
          }
        },
        '&-rtl': { '&::after': { float: 'left' } }
      }
    }
  },
  _u = pt('Input', e => {
    const t = Eu(e)
    return [tD(t), lD(t), oD(t), rD(t), iD(t), cu(t)]
  })
function aD(e) {
  const t = V(),
    n = V(!1)
  function o() {
    for (var r = arguments.length, i = new Array(r), l = 0; l < r; l++)
      i[l] = arguments[l]
    n.value ||
      (He.cancel(t.value),
      (t.value = He(() => {
        e(...i)
      })))
  }
  return (
    Qe(() => {
      ;(n.value = !0), He.cancel(t.value)
    }),
    o
  )
}
function sD(e) {
  const t = V([]),
    n = V(typeof e == 'function' ? e() : e),
    o = aD(() => {
      let i = n.value
      t.value.forEach(l => {
        i = l(i)
      }),
        (t.value = []),
        (n.value = i)
    })
  function r(i) {
    t.value.push(i), o()
  }
  return [n, r]
}
const cD = J({
    compatConfig: { MODE: 3 },
    name: 'TabNode',
    props: {
      id: { type: String },
      prefixCls: { type: String },
      tab: { type: Object },
      active: { type: Boolean },
      closable: { type: Boolean },
      editable: { type: Object },
      onClick: { type: Function },
      onResize: { type: Function },
      renderWrapper: { type: Function },
      removeAriaLabel: { type: String },
      onFocus: { type: Function }
    },
    emits: ['click', 'resize', 'remove', 'focus'],
    setup(e, t) {
      let { expose: n, attrs: o } = t
      const r = ne()
      function i(s) {
        var u
        ;(!((u = e.tab) === null || u === void 0) && u.disabled) || e.onClick(s)
      }
      n({ domRef: r })
      function l(s) {
        var u
        s.preventDefault(),
          s.stopPropagation(),
          e.editable.onEdit('remove', {
            key: (u = e.tab) === null || u === void 0 ? void 0 : u.key,
            event: s
          })
      }
      const a = P(() => {
        var s
        return (
          e.editable &&
          e.closable !== !1 &&
          !(!((s = e.tab) === null || s === void 0) && s.disabled)
        )
      })
      return () => {
        var s
        const {
            prefixCls: u,
            id: c,
            active: d,
            tab: { key: f, tab: m, disabled: g, closeIcon: h },
            renderWrapper: b,
            removeAriaLabel: S,
            editable: C,
            onFocus: $
          } = e,
          O = `${u}-tab`,
          x = v(
            'div',
            {
              key: f,
              ref: r,
              class: oe(O, {
                [`${O}-with-remove`]: a.value,
                [`${O}-active`]: d,
                [`${O}-disabled`]: g
              }),
              style: o.style,
              onClick: i
            },
            [
              v(
                'div',
                {
                  role: 'tab',
                  'aria-selected': d,
                  id: c && `${c}-tab-${f}`,
                  class: `${O}-btn`,
                  'aria-controls': c && `${c}-panel-${f}`,
                  'aria-disabled': g,
                  tabindex: g ? null : 0,
                  onClick: w => {
                    w.stopPropagation(), i(w)
                  },
                  onKeydown: w => {
                    ;[Oe.SPACE, Oe.ENTER].includes(w.which) &&
                      (w.preventDefault(), i(w))
                  },
                  onFocus: $
                },
                [typeof m == 'function' ? m() : m]
              ),
              a.value &&
                v(
                  'button',
                  {
                    type: 'button',
                    'aria-label': S || 'remove',
                    tabindex: 0,
                    class: `${O}-remove`,
                    onClick: w => {
                      w.stopPropagation(), l(w)
                    }
                  },
                  [
                    (h == null ? void 0 : h()) ||
                      ((s = C.removeIcon) === null || s === void 0
                        ? void 0
                        : s.call(C)) ||
                      '×'
                  ]
                )
            ]
          )
        return b ? b(x) : x
      }
    }
  }),
  kp = { width: 0, height: 0, left: 0, top: 0 }
function uD(e, t) {
  const n = ne(new Map())
  return (
    Me(() => {
      var o, r
      const i = new Map(),
        l = e.value,
        a =
          t.value.get((o = l[0]) === null || o === void 0 ? void 0 : o.key) ||
          kp,
        s = a.left + a.width
      for (let u = 0; u < l.length; u += 1) {
        const { key: c } = l[u]
        let d = t.value.get(c)
        d ||
          (d =
            t.value.get(
              (r = l[u - 1]) === null || r === void 0 ? void 0 : r.key
            ) || kp)
        const f = i.get(c) || p({}, d)
        ;(f.right = s - f.left - f.width), i.set(c, f)
      }
      n.value = new Map(i)
    }),
    n
  )
}
const xb = J({
    compatConfig: { MODE: 3 },
    name: 'AddButton',
    inheritAttrs: !1,
    props: {
      prefixCls: String,
      editable: { type: Object },
      locale: { type: Object, default: void 0 }
    },
    setup(e, t) {
      let { expose: n, attrs: o } = t
      const r = ne()
      return (
        n({ domRef: r }),
        () => {
          const { prefixCls: i, editable: l, locale: a } = e
          return !l || l.showAdd === !1
            ? null
            : v(
                'button',
                {
                  ref: r,
                  type: 'button',
                  class: `${i}-nav-add`,
                  style: o.style,
                  'aria-label':
                    (a == null ? void 0 : a.addAriaLabel) || 'Add tab',
                  onClick: s => {
                    l.onEdit('add', { event: s })
                  }
                },
                [l.addIcon ? l.addIcon() : '+']
              )
        }
      )
    }
  }),
  dD = {
    prefixCls: { type: String },
    id: { type: String },
    tabs: { type: Object },
    rtl: { type: Boolean },
    tabBarGutter: { type: Number },
    activeKey: { type: [String, Number] },
    mobile: { type: Boolean },
    moreIcon: k.any,
    moreTransitionName: { type: String },
    editable: { type: Object },
    locale: { type: Object, default: void 0 },
    removeAriaLabel: String,
    onTabClick: { type: Function },
    popupClassName: String,
    getPopupContainer: _e()
  },
  fD = J({
    compatConfig: { MODE: 3 },
    name: 'OperationNode',
    inheritAttrs: !1,
    props: dD,
    emits: ['tabClick'],
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o } = t
      const [r, i] = tt(!1),
        [l, a] = tt(null),
        s = m => {
          const g = e.tabs.filter(S => !S.disabled)
          let h = g.findIndex(S => S.key === l.value) || 0
          const b = g.length
          for (let S = 0; S < b; S += 1) {
            h = (h + m + b) % b
            const C = g[h]
            if (!C.disabled) {
              a(C.key)
              return
            }
          }
        },
        u = m => {
          const { which: g } = m
          if (!r.value) {
            ;[Oe.DOWN, Oe.SPACE, Oe.ENTER].includes(g) &&
              (i(!0), m.preventDefault())
            return
          }
          switch (g) {
            case Oe.UP:
              s(-1), m.preventDefault()
              break
            case Oe.DOWN:
              s(1), m.preventDefault()
              break
            case Oe.ESC:
              i(!1)
              break
            case Oe.SPACE:
            case Oe.ENTER:
              l.value !== null && e.onTabClick(l.value, m)
              break
          }
        },
        c = P(() => `${e.id}-more-popup`),
        d = P(() => (l.value !== null ? `${c.value}-${l.value}` : null)),
        f = (m, g) => {
          m.preventDefault(),
            m.stopPropagation(),
            e.editable.onEdit('remove', { key: g, event: m })
        }
      return (
        We(() => {
          ge(
            l,
            () => {
              const m = document.getElementById(d.value)
              m && m.scrollIntoView && m.scrollIntoView(!1)
            },
            { flush: 'post', immediate: !0 }
          )
        }),
        ge(r, () => {
          r.value || a(null)
        }),
        Zh({}),
        () => {
          var m
          const {
            prefixCls: g,
            id: h,
            tabs: b,
            locale: S,
            mobile: C,
            moreIcon: $ = ((m = o.moreIcon) === null || m === void 0
              ? void 0
              : m.call(o)) || v(Cu, null, null),
            moreTransitionName: O,
            editable: x,
            tabBarGutter: w,
            rtl: y,
            onTabClick: T,
            popupClassName: I
          } = e
          if (!b.length) return null
          const _ = `${g}-dropdown`,
            A = S == null ? void 0 : S.dropdownAriaLabel,
            z = { [y ? 'marginRight' : 'marginLeft']: w }
          b.length || ((z.visibility = 'hidden'), (z.order = 1))
          const M = oe({ [`${_}-rtl`]: y, [`${I}`]: !0 }),
            j = C
              ? null
              : v(
                  Wh,
                  {
                    prefixCls: _,
                    trigger: ['hover'],
                    visible: r.value,
                    transitionName: O,
                    onVisibleChange: i,
                    overlayClassName: M,
                    mouseEnterDelay: 0.1,
                    mouseLeaveDelay: 0.1,
                    getPopupContainer: e.getPopupContainer
                  },
                  {
                    overlay: () =>
                      v(
                        Qt,
                        {
                          onClick: E => {
                            let { key: R, domEvent: L } = E
                            T(R, L), i(!1)
                          },
                          id: c.value,
                          tabindex: -1,
                          role: 'listbox',
                          'aria-activedescendant': d.value,
                          selectedKeys: [l.value],
                          'aria-label': A !== void 0 ? A : 'expanded dropdown'
                        },
                        {
                          default: () => [
                            b.map(E => {
                              var R, L
                              const W = x && E.closable !== !1 && !E.disabled
                              return v(
                                lr,
                                {
                                  key: E.key,
                                  id: `${c.value}-${E.key}`,
                                  role: 'option',
                                  'aria-controls': h && `${h}-panel-${E.key}`,
                                  disabled: E.disabled
                                },
                                {
                                  default: () => [
                                    v('span', null, [
                                      typeof E.tab == 'function'
                                        ? E.tab()
                                        : E.tab
                                    ]),
                                    W &&
                                      v(
                                        'button',
                                        {
                                          type: 'button',
                                          'aria-label':
                                            e.removeAriaLabel || 'remove',
                                          tabindex: 0,
                                          class: `${_}-menu-item-remove`,
                                          onClick: D => {
                                            D.stopPropagation(), f(D, E.key)
                                          }
                                        },
                                        [
                                          ((R = E.closeIcon) === null ||
                                          R === void 0
                                            ? void 0
                                            : R.call(E)) ||
                                            ((L = x.removeIcon) === null ||
                                            L === void 0
                                              ? void 0
                                              : L.call(x)) ||
                                            '×'
                                        ]
                                      )
                                  ]
                                }
                              )
                            })
                          ]
                        }
                      ),
                    default: () =>
                      v(
                        'button',
                        {
                          type: 'button',
                          class: `${g}-nav-more`,
                          style: z,
                          tabindex: -1,
                          'aria-hidden': 'true',
                          'aria-haspopup': 'listbox',
                          'aria-controls': c.value,
                          id: `${h}-more`,
                          'aria-expanded': r.value,
                          onKeydown: u
                        },
                        [$]
                      )
                  }
                )
          return v(
            'div',
            { class: oe(`${g}-nav-operations`, n.class), style: n.style },
            [j, v(xb, { prefixCls: g, locale: S, editable: x }, null)]
          )
        }
      )
    }
  }),
  Cb = Symbol('tabsContextKey'),
  pD = e => {
    Ye(Cb, e)
  },
  $b = () => Ue(Cb, { tabs: ne([]), prefixCls: ne() }),
  vD = 0.1,
  jp = 0.01,
  Mi = 20,
  Kp = Math.pow(0.995, Mi)
function mD(e, t) {
  const [n, o] = tt(),
    [r, i] = tt(0),
    [l, a] = tt(0),
    [s, u] = tt(),
    c = ne()
  function d(x) {
    const { screenX: w, screenY: y } = x.touches[0]
    o({ x: w, y }), clearInterval(c.value)
  }
  function f(x) {
    if (!n.value) return
    x.preventDefault()
    const { screenX: w, screenY: y } = x.touches[0],
      T = w - n.value.x,
      I = y - n.value.y
    t(T, I), o({ x: w, y })
    const _ = Date.now()
    a(_ - r.value), i(_), u({ x: T, y: I })
  }
  function m() {
    if (!n.value) return
    const x = s.value
    if ((o(null), u(null), x)) {
      const w = x.x / l.value,
        y = x.y / l.value,
        T = Math.abs(w),
        I = Math.abs(y)
      if (Math.max(T, I) < vD) return
      let _ = w,
        A = y
      c.value = setInterval(() => {
        if (Math.abs(_) < jp && Math.abs(A) < jp) {
          clearInterval(c.value)
          return
        }
        ;(_ *= Kp), (A *= Kp), t(_ * Mi, A * Mi)
      }, Mi)
    }
  }
  const g = ne()
  function h(x) {
    const { deltaX: w, deltaY: y } = x
    let T = 0
    const I = Math.abs(w),
      _ = Math.abs(y)
    I === _
      ? (T = g.value === 'x' ? w : y)
      : I > _
      ? ((T = w), (g.value = 'x'))
      : ((T = y), (g.value = 'y')),
      t(-T, -T) && x.preventDefault()
  }
  const b = ne({ onTouchStart: d, onTouchMove: f, onTouchEnd: m, onWheel: h })
  function S(x) {
    b.value.onTouchStart(x)
  }
  function C(x) {
    b.value.onTouchMove(x)
  }
  function $(x) {
    b.value.onTouchEnd(x)
  }
  function O(x) {
    b.value.onWheel(x)
  }
  We(() => {
    var x, w
    document.addEventListener('touchmove', C, { passive: !1 }),
      document.addEventListener('touchend', $, { passive: !1 }),
      (x = e.value) === null ||
        x === void 0 ||
        x.addEventListener('touchstart', S, { passive: !1 }),
      (w = e.value) === null ||
        w === void 0 ||
        w.addEventListener('wheel', O, { passive: !1 })
  }),
    Qe(() => {
      document.removeEventListener('touchmove', C),
        document.removeEventListener('touchend', $)
    })
}
function Wp(e, t) {
  const n = ne(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]
}
const gD = () => {
    const e = ne(new Map()),
      t = n => o => {
        e.value.set(n, o)
      }
    return (
      gm(() => {
        e.value = new Map()
      }),
      [t, e]
    )
  },
  hD = gD,
  Vp = { width: 0, height: 0, left: 0, top: 0, right: 0 },
  bD = () => ({
    id: { type: String },
    tabPosition: { type: String },
    activeKey: { type: [String, Number] },
    rtl: { type: Boolean },
    animated: Xe(),
    editable: Xe(),
    moreIcon: k.any,
    moreTransitionName: { type: String },
    mobile: { type: Boolean },
    tabBarGutter: { type: Number },
    renderTabBar: { type: Function },
    locale: Xe(),
    popupClassName: String,
    getPopupContainer: _e(),
    onTabClick: { type: Function },
    onTabScroll: { type: Function }
  }),
  yD = (e, t) => {
    const { offsetWidth: n, offsetHeight: o, offsetTop: r, offsetLeft: i } = e,
      { width: l, height: a, x: s, y: u } = e.getBoundingClientRect()
    return Math.abs(l - n) < 1 ? [l, a, s - t.x, u - t.y] : [n, o, i, r]
  },
  Gp = J({
    compatConfig: { MODE: 3 },
    name: 'TabNavList',
    inheritAttrs: !1,
    props: bD(),
    slots: Object,
    emits: ['tabClick', 'tabScroll'],
    setup(e, t) {
      let { attrs: n, slots: o } = t
      const { tabs: r, prefixCls: i } = $b(),
        l = V(),
        a = V(),
        s = V(),
        u = V(),
        [c, d] = hD(),
        f = P(() => e.tabPosition === 'top' || e.tabPosition === 'bottom'),
        [m, g] = Wp(0, (te, Z) => {
          f.value &&
            e.onTabScroll &&
            e.onTabScroll({ direction: te > Z ? 'left' : 'right' })
        }),
        [h, b] = Wp(0, (te, Z) => {
          !f.value &&
            e.onTabScroll &&
            e.onTabScroll({ direction: te > Z ? 'top' : 'bottom' })
        }),
        [S, C] = tt(0),
        [$, O] = tt(0),
        [x, w] = tt(null),
        [y, T] = tt(null),
        [I, _] = tt(0),
        [A, z] = tt(0),
        [M, j] = sD(new Map()),
        E = uD(r, M),
        R = P(() => `${i.value}-nav-operations-hidden`),
        L = V(0),
        W = V(0)
      Me(() => {
        f.value
          ? e.rtl
            ? ((L.value = 0), (W.value = Math.max(0, S.value - x.value)))
            : ((L.value = Math.min(0, x.value - S.value)), (W.value = 0))
          : ((L.value = Math.min(0, y.value - $.value)), (W.value = 0))
      })
      const D = te => (te < L.value ? L.value : te > W.value ? W.value : te),
        F = V(),
        [H, B] = tt(),
        X = () => {
          B(Date.now())
        },
        ee = () => {
          clearTimeout(F.value)
        },
        de = (te, Z) => {
          te(fe => D(fe + Z))
        }
      mD(l, (te, Z) => {
        if (f.value) {
          if (x.value >= S.value) return !1
          de(g, te)
        } else {
          if (y.value >= $.value) return !1
          de(b, Z)
        }
        return ee(), X(), !0
      }),
        ge(H, () => {
          ee(),
            H.value &&
              (F.value = setTimeout(() => {
                B(0)
              }, 100))
        })
      const ie = function() {
          let te =
            arguments.length > 0 && arguments[0] !== void 0
              ? arguments[0]
              : e.activeKey
          const Z = E.value.get(te) || {
            width: 0,
            height: 0,
            left: 0,
            right: 0,
            top: 0
          }
          if (f.value) {
            let fe = m.value
            e.rtl
              ? Z.right < m.value
                ? (fe = Z.right)
                : Z.right + Z.width > m.value + x.value &&
                  (fe = Z.right + Z.width - x.value)
              : Z.left < -m.value
              ? (fe = -Z.left)
              : Z.left + Z.width > -m.value + x.value &&
                (fe = -(Z.left + Z.width - x.value)),
              b(0),
              g(D(fe))
          } else {
            let fe = h.value
            Z.top < -h.value
              ? (fe = -Z.top)
              : Z.top + Z.height > -h.value + y.value &&
                (fe = -(Z.top + Z.height - y.value)),
              g(0),
              b(D(fe))
          }
        },
        Q = V(0),
        se = V(0)
      Me(() => {
        let te, Z, fe, xe, be, Ce
        const Ne = E.value
        ;['top', 'bottom'].includes(e.tabPosition)
          ? ((te = 'width'),
            (xe = x.value),
            (be = S.value),
            (Ce = I.value),
            (Z = e.rtl ? 'right' : 'left'),
            (fe = Math.abs(m.value)))
          : ((te = 'height'),
            (xe = y.value),
            (be = S.value),
            (Ce = A.value),
            (Z = 'top'),
            (fe = -h.value))
        let Y = xe
        be + Ce > xe && be < xe && (Y = xe - Ce)
        const G = r.value
        if (!G.length) return ([Q.value, se.value] = [0, 0])
        const le = G.length
        let $e = le
        for (let De = 0; De < le; De += 1) {
          const ae = Ne.get(G[De].key) || Vp
          if (ae[Z] + ae[te] > fe + Y) {
            $e = De - 1
            break
          }
        }
        let Te = 0
        for (let De = le - 1; De >= 0; De -= 1)
          if ((Ne.get(G[De].key) || Vp)[Z] < fe) {
            Te = De + 1
            break
          }
        return ([Q.value, se.value] = [Te, $e])
      })
      const q = () => {
        j(() => {
          var te
          const Z = new Map(),
            fe =
              (te = a.value) === null || te === void 0
                ? void 0
                : te.getBoundingClientRect()
          return (
            r.value.forEach(xe => {
              let { key: be } = xe
              const Ce = d.value.get(be),
                Ne = (Ce == null ? void 0 : Ce.$el) || Ce
              if (Ne) {
                const [Y, G, le, $e] = yD(Ne, fe)
                Z.set(be, { width: Y, height: G, left: le, top: $e })
              }
            }),
            Z
          )
        })
      }
      ge(
        () => r.value.map(te => te.key).join('%%'),
        () => {
          q()
        },
        { flush: 'post' }
      )
      const K = () => {
          var te, Z, fe, xe, be
          const Ce =
              ((te = l.value) === null || te === void 0
                ? void 0
                : te.offsetWidth) || 0,
            Ne =
              ((Z = l.value) === null || Z === void 0
                ? void 0
                : Z.offsetHeight) || 0,
            Y =
              ((fe = u.value) === null || fe === void 0 ? void 0 : fe.$el) ||
              {},
            G = Y.offsetWidth || 0,
            le = Y.offsetHeight || 0
          w(Ce), T(Ne), _(G), z(le)
          const $e =
              (((xe = a.value) === null || xe === void 0
                ? void 0
                : xe.offsetWidth) || 0) - G,
            Te =
              (((be = a.value) === null || be === void 0
                ? void 0
                : be.offsetHeight) || 0) - le
          C($e), O(Te), q()
        },
        U = P(() => [
          ...r.value.slice(0, Q.value),
          ...r.value.slice(se.value + 1)
        ]),
        [ue, me] = tt(),
        he = P(() => E.value.get(e.activeKey)),
        Pe = V(),
        ve = () => {
          He.cancel(Pe.value)
        }
      ge([he, f, () => e.rtl], () => {
        const te = {}
        he.value &&
          (f.value
            ? (e.rtl
                ? (te.right = no(he.value.right))
                : (te.left = no(he.value.left)),
              (te.width = no(he.value.width)))
            : ((te.top = no(he.value.top)), (te.height = no(he.value.height)))),
          ve(),
          (Pe.value = He(() => {
            me(te)
          }))
      }),
        ge(
          [() => e.activeKey, he, E, f],
          () => {
            ie()
          },
          { flush: 'post' }
        ),
        ge(
          [() => e.rtl, () => e.tabBarGutter, () => e.activeKey, () => r.value],
          () => {
            K()
          },
          { flush: 'post' }
        )
      const ye = te => {
        let { position: Z, prefixCls: fe, extra: xe } = te
        if (!xe) return null
        const be = xe == null ? void 0 : xe({ position: Z })
        return be ? v('div', { class: `${fe}-extra-content` }, [be]) : null
      }
      return (
        Qe(() => {
          ee(), ve()
        }),
        () => {
          const {
              id: te,
              animated: Z,
              activeKey: fe,
              rtl: xe,
              editable: be,
              locale: Ce,
              tabPosition: Ne,
              tabBarGutter: Y,
              onTabClick: G
            } = e,
            { class: le, style: $e } = n,
            Te = i.value,
            De = !!U.value.length,
            ae = `${Te}-nav-wrap`
          let ce, pe, Se, Ie
          f.value
            ? xe
              ? ((pe = m.value > 0), (ce = m.value + x.value < S.value))
              : ((ce = m.value < 0), (pe = -m.value + x.value < S.value))
            : ((Se = h.value < 0), (Ie = -h.value + y.value < $.value))
          const Ee = {}
          Ne === 'top' || Ne === 'bottom'
            ? (Ee[xe ? 'marginRight' : 'marginLeft'] =
                typeof Y == 'number' ? `${Y}px` : Y)
            : (Ee.marginTop = typeof Y == 'number' ? `${Y}px` : Y)
          const we = r.value.map((ke, qe) => {
            const { key: Be } = ke
            return v(
              cD,
              {
                id: te,
                prefixCls: Te,
                key: Be,
                tab: ke,
                style: qe === 0 ? void 0 : Ee,
                closable: ke.closable,
                editable: be,
                active: Be === fe,
                removeAriaLabel: Ce == null ? void 0 : Ce.removeAriaLabel,
                ref: c(Be),
                onClick: Ge => {
                  G(Be, Ge)
                },
                onFocus: () => {
                  ie(Be),
                    X(),
                    l.value &&
                      (xe || (l.value.scrollLeft = 0), (l.value.scrollTop = 0))
                }
              },
              o
            )
          })
          return v(
            'div',
            {
              role: 'tablist',
              class: oe(`${Te}-nav`, le),
              style: $e,
              onKeydown: () => {
                X()
              }
            },
            [
              v(
                ye,
                { position: 'left', prefixCls: Te, extra: o.leftExtra },
                null
              ),
              v(
                Tn,
                { onResize: K },
                {
                  default: () => [
                    v(
                      'div',
                      {
                        class: oe(ae, {
                          [`${ae}-ping-left`]: ce,
                          [`${ae}-ping-right`]: pe,
                          [`${ae}-ping-top`]: Se,
                          [`${ae}-ping-bottom`]: Ie
                        }),
                        ref: l
                      },
                      [
                        v(
                          Tn,
                          { onResize: K },
                          {
                            default: () => [
                              v(
                                'div',
                                {
                                  ref: a,
                                  class: `${Te}-nav-list`,
                                  style: {
                                    transform: `translate(${m.value}px, ${h.value}px)`,
                                    transition: H.value ? 'none' : void 0
                                  }
                                },
                                [
                                  we,
                                  v(
                                    xb,
                                    {
                                      ref: u,
                                      prefixCls: Te,
                                      locale: Ce,
                                      editable: be,
                                      style: p(
                                        p({}, we.length === 0 ? void 0 : Ee),
                                        { visibility: De ? 'hidden' : null }
                                      )
                                    },
                                    null
                                  ),
                                  v(
                                    'div',
                                    {
                                      class: oe(`${Te}-ink-bar`, {
                                        [`${Te}-ink-bar-animated`]: Z.inkBar
                                      }),
                                      style: ue.value
                                    },
                                    null
                                  )
                                ]
                              )
                            ]
                          }
                        )
                      ]
                    )
                  ]
                }
              ),
              v(
                fD,
                N(
                  N({}, e),
                  {},
                  {
                    removeAriaLabel: Ce == null ? void 0 : Ce.removeAriaLabel,
                    ref: s,
                    prefixCls: Te,
                    tabs: U.value,
                    class: !De && R.value
                  }
                ),
                Mh(o, ['moreIcon'])
              ),
              v(
                ye,
                { position: 'right', prefixCls: Te, extra: o.rightExtra },
                null
              ),
              v(
                ye,
                {
                  position: 'right',
                  prefixCls: Te,
                  extra: o.tabBarExtraContent
                },
                null
              )
            ]
          )
        }
      )
    }
  }),
  SD = J({
    compatConfig: { MODE: 3 },
    name: 'TabPanelList',
    inheritAttrs: !1,
    props: {
      activeKey: { type: [String, Number] },
      id: { type: String },
      rtl: { type: Boolean },
      animated: { type: Object, default: void 0 },
      tabPosition: { type: String },
      destroyInactiveTabPane: { type: Boolean }
    },
    setup(e) {
      const { tabs: t, prefixCls: n } = $b()
      return () => {
        const {
            id: o,
            activeKey: r,
            animated: i,
            tabPosition: l,
            rtl: a,
            destroyInactiveTabPane: s
          } = e,
          u = i.tabPane,
          c = n.value,
          d = t.value.findIndex(f => f.key === r)
        return v('div', { class: `${c}-content-holder` }, [
          v(
            'div',
            {
              class: [
                `${c}-content`,
                `${c}-content-${l}`,
                { [`${c}-content-animated`]: u }
              ],
              style:
                d && u
                  ? { [a ? 'marginRight' : 'marginLeft']: `-${d}00%` }
                  : null
            },
            [
              t.value.map(f =>
                ft(f.node, {
                  key: f.key,
                  prefixCls: c,
                  tabKey: f.key,
                  id: o,
                  animated: u,
                  active: f.key === r,
                  destroyInactiveTabPane: s
                })
              )
            ]
          )
        ])
      }
    }
  })
function Up(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) {
        xD(e, r, n[r])
      })
  }
  return e
}
function xD(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Ru = function(t, n) {
  var o = Up({}, t, n.attrs)
  return v(et, Up({}, o, { icon: Y0 }), null)
}
Ru.displayName = 'PlusOutlined'
Ru.inheritAttrs = !1
const CD = Ru,
  $D = e => {
    const { componentCls: t, motionDurationSlow: n } = e
    return [
      {
        [t]: {
          [`${t}-switch`]: {
            '&-appear, &-enter': {
              transition: 'none',
              '&-start': { opacity: 0 },
              '&-active': { opacity: 1, transition: `opacity ${n}` }
            },
            '&-leave': {
              position: 'absolute',
              transition: 'none',
              inset: 0,
              '&-start': { opacity: 1 },
              '&-active': { opacity: 0, transition: `opacity ${n}` }
            }
          }
        }
      },
      [Vn(e, 'slide-up'), Vn(e, 'slide-down')]
    ]
  },
  wD = $D,
  OD = e => {
    const {
      componentCls: t,
      tabsCardHorizontalPadding: n,
      tabsCardHeadBackground: o,
      tabsCardGutter: r,
      colorSplit: i
    } = e
    return {
      [`${t}-card`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          [`${t}-tab`]: {
            margin: 0,
            padding: n,
            background: o,
            border: `${e.lineWidth}px ${e.lineType} ${i}`,
            transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
          },
          [`${t}-tab-active`]: {
            color: e.colorPrimary,
            background: e.colorBgContainer
          },
          [`${t}-ink-bar`]: { visibility: 'hidden' }
        },
        [`&${t}-top, &${t}-bottom`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab + ${t}-tab`]: {
              marginLeft: { _skip_check_: !0, value: `${r}px` }
            }
          }
        },
        [`&${t}-top`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab`]: {
              borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
            },
            [`${t}-tab-active`]: { borderBottomColor: e.colorBgContainer }
          }
        },
        [`&${t}-bottom`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab`]: {
              borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`
            },
            [`${t}-tab-active`]: { borderTopColor: e.colorBgContainer }
          }
        },
        [`&${t}-left, &${t}-right`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab + ${t}-tab`]: { marginTop: `${r}px` }
          }
        },
        [`&${t}-left`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab`]: {
              borderRadius: {
                _skip_check_: !0,
                value: `${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`
              }
            },
            [`${t}-tab-active`]: {
              borderRightColor: { _skip_check_: !0, value: e.colorBgContainer }
            }
          }
        },
        [`&${t}-right`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab`]: {
              borderRadius: {
                _skip_check_: !0,
                value: `0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`
              }
            },
            [`${t}-tab-active`]: {
              borderLeftColor: { _skip_check_: !0, value: e.colorBgContainer }
            }
          }
        }
      }
    }
  },
  PD = e => {
    const {
      componentCls: t,
      tabsHoverColor: n,
      dropdownEdgeChildVerticalPadding: o
    } = e
    return {
      [`${t}-dropdown`]: p(p({}, ct(e)), {
        position: 'absolute',
        top: -9999,
        left: { _skip_check_: !0, value: -9999 },
        zIndex: e.zIndexPopup,
        display: 'block',
        '&-hidden': { display: 'none' },
        [`${t}-dropdown-menu`]: {
          maxHeight: e.tabsDropdownHeight,
          margin: 0,
          padding: `${o}px 0`,
          overflowX: 'hidden',
          overflowY: 'auto',
          textAlign: { _skip_check_: !0, value: 'left' },
          listStyleType: 'none',
          backgroundColor: e.colorBgContainer,
          backgroundClip: 'padding-box',
          borderRadius: e.borderRadiusLG,
          outline: 'none',
          boxShadow: e.boxShadowSecondary,
          '&-item': p(p({}, Kn), {
            display: 'flex',
            alignItems: 'center',
            minWidth: e.tabsDropdownWidth,
            margin: 0,
            padding: `${e.paddingXXS}px ${e.paddingSM}px`,
            color: e.colorText,
            fontWeight: 'normal',
            fontSize: e.fontSize,
            lineHeight: e.lineHeight,
            cursor: 'pointer',
            transition: `all ${e.motionDurationSlow}`,
            '> span': { flex: 1, whiteSpace: 'nowrap' },
            '&-remove': {
              flex: 'none',
              marginLeft: { _skip_check_: !0, value: e.marginSM },
              color: e.colorTextDescription,
              fontSize: e.fontSizeSM,
              background: 'transparent',
              border: 0,
              cursor: 'pointer',
              '&:hover': { color: n }
            },
            '&:hover': { background: e.controlItemBgHover },
            '&-disabled': {
              '&, &:hover': {
                color: e.colorTextDisabled,
                background: 'transparent',
                cursor: 'not-allowed'
              }
            }
          })
        }
      })
    }
  },
  TD = e => {
    const { componentCls: t, margin: n, colorSplit: o } = e
    return {
      [`${t}-top, ${t}-bottom`]: {
        flexDirection: 'column',
        [`> ${t}-nav, > div > ${t}-nav`]: {
          margin: `0 0 ${n}px 0`,
          '&::before': {
            position: 'absolute',
            right: { _skip_check_: !0, value: 0 },
            left: { _skip_check_: !0, value: 0 },
            borderBottom: `${e.lineWidth}px ${e.lineType} ${o}`,
            content: "''"
          },
          [`${t}-ink-bar`]: {
            height: e.lineWidthBold,
            '&-animated': {
              transition: `width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`
            }
          },
          [`${t}-nav-wrap`]: {
            '&::before, &::after': {
              top: 0,
              bottom: 0,
              width: e.controlHeight
            },
            '&::before': {
              left: { _skip_check_: !0, value: 0 },
              boxShadow: e.boxShadowTabsOverflowLeft
            },
            '&::after': {
              right: { _skip_check_: !0, value: 0 },
              boxShadow: e.boxShadowTabsOverflowRight
            },
            [`&${t}-nav-wrap-ping-left::before`]: { opacity: 1 },
            [`&${t}-nav-wrap-ping-right::after`]: { opacity: 1 }
          }
        }
      },
      [`${t}-top`]: {
        [`> ${t}-nav,
        > div > ${t}-nav`]: {
          '&::before': { bottom: 0 },
          [`${t}-ink-bar`]: { bottom: 0 }
        }
      },
      [`${t}-bottom`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          order: 1,
          marginTop: `${n}px`,
          marginBottom: 0,
          '&::before': { top: 0 },
          [`${t}-ink-bar`]: { top: 0 }
        },
        [`> ${t}-content-holder, > div > ${t}-content-holder`]: { order: 0 }
      },
      [`${t}-left, ${t}-right`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          flexDirection: 'column',
          minWidth: e.controlHeight * 1.25,
          [`${t}-tab`]: {
            padding: `${e.paddingXS}px ${e.paddingLG}px`,
            textAlign: 'center'
          },
          [`${t}-tab + ${t}-tab`]: { margin: `${e.margin}px 0 0 0` },
          [`${t}-nav-wrap`]: {
            flexDirection: 'column',
            '&::before, &::after': {
              right: { _skip_check_: !0, value: 0 },
              left: { _skip_check_: !0, value: 0 },
              height: e.controlHeight
            },
            '&::before': { top: 0, boxShadow: e.boxShadowTabsOverflowTop },
            '&::after': { bottom: 0, boxShadow: e.boxShadowTabsOverflowBottom },
            [`&${t}-nav-wrap-ping-top::before`]: { opacity: 1 },
            [`&${t}-nav-wrap-ping-bottom::after`]: { opacity: 1 }
          },
          [`${t}-ink-bar`]: {
            width: e.lineWidthBold,
            '&-animated': {
              transition: `height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`
            }
          },
          [`${t}-nav-list, ${t}-nav-operations`]: {
            flex: '1 0 auto',
            flexDirection: 'column'
          }
        }
      },
      [`${t}-left`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          [`${t}-ink-bar`]: { right: { _skip_check_: !0, value: 0 } }
        },
        [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
          marginLeft: { _skip_check_: !0, value: `-${e.lineWidth}px` },
          borderLeft: {
            _skip_check_: !0,
            value: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`
          },
          [`> ${t}-content > ${t}-tabpane`]: {
            paddingLeft: { _skip_check_: !0, value: e.paddingLG }
          }
        }
      },
      [`${t}-right`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          order: 1,
          [`${t}-ink-bar`]: { left: { _skip_check_: !0, value: 0 } }
        },
        [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
          order: 0,
          marginRight: { _skip_check_: !0, value: -e.lineWidth },
          borderRight: {
            _skip_check_: !0,
            value: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`
          },
          [`> ${t}-content > ${t}-tabpane`]: {
            paddingRight: { _skip_check_: !0, value: e.paddingLG }
          }
        }
      }
    }
  },
  ID = e => {
    const { componentCls: t, padding: n } = e
    return {
      [t]: {
        '&-small': {
          [`> ${t}-nav`]: {
            [`${t}-tab`]: {
              padding: `${e.paddingXS}px 0`,
              fontSize: e.fontSize
            }
          }
        },
        '&-large': {
          [`> ${t}-nav`]: {
            [`${t}-tab`]: { padding: `${n}px 0`, fontSize: e.fontSizeLG }
          }
        }
      },
      [`${t}-card`]: {
        [`&${t}-small`]: {
          [`> ${t}-nav`]: {
            [`${t}-tab`]: { padding: `${e.paddingXXS * 1.5}px ${n}px` }
          },
          [`&${t}-bottom`]: {
            [`> ${t}-nav ${t}-tab`]: {
              borderRadius: `0 0 ${e.borderRadius}px ${e.borderRadius}px`
            }
          },
          [`&${t}-top`]: {
            [`> ${t}-nav ${t}-tab`]: {
              borderRadius: `${e.borderRadius}px ${e.borderRadius}px 0 0`
            }
          },
          [`&${t}-right`]: {
            [`> ${t}-nav ${t}-tab`]: {
              borderRadius: {
                _skip_check_: !0,
                value: `0 ${e.borderRadius}px ${e.borderRadius}px 0`
              }
            }
          },
          [`&${t}-left`]: {
            [`> ${t}-nav ${t}-tab`]: {
              borderRadius: {
                _skip_check_: !0,
                value: `${e.borderRadius}px 0 0 ${e.borderRadius}px`
              }
            }
          }
        },
        [`&${t}-large`]: {
          [`> ${t}-nav`]: {
            [`${t}-tab`]: {
              padding: `${e.paddingXS}px ${n}px ${e.paddingXXS * 1.5}px`
            }
          }
        }
      }
    }
  },
  ED = e => {
    const {
        componentCls: t,
        tabsActiveColor: n,
        tabsHoverColor: o,
        iconCls: r,
        tabsHorizontalGutter: i
      } = e,
      l = `${t}-tab`
    return {
      [l]: {
        position: 'relative',
        display: 'inline-flex',
        alignItems: 'center',
        padding: `${e.paddingSM}px 0`,
        fontSize: `${e.fontSize}px`,
        background: 'transparent',
        border: 0,
        outline: 'none',
        cursor: 'pointer',
        '&-btn, &-remove': p(
          { '&:focus:not(:focus-visible), &:active': { color: n } },
          nr(e)
        ),
        '&-btn': { outline: 'none', transition: 'all 0.3s' },
        '&-remove': {
          flex: 'none',
          marginRight: { _skip_check_: !0, value: -e.marginXXS },
          marginLeft: { _skip_check_: !0, value: e.marginXS },
          color: e.colorTextDescription,
          fontSize: e.fontSizeSM,
          background: 'transparent',
          border: 'none',
          outline: 'none',
          cursor: 'pointer',
          transition: `all ${e.motionDurationSlow}`,
          '&:hover': { color: e.colorTextHeading }
        },
        '&:hover': { color: o },
        [`&${l}-active ${l}-btn`]: {
          color: e.colorPrimary,
          textShadow: e.tabsActiveTextShadow
        },
        [`&${l}-disabled`]: {
          color: e.colorTextDisabled,
          cursor: 'not-allowed'
        },
        [`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]: {
          '&:focus, &:active': { color: e.colorTextDisabled }
        },
        [`& ${l}-remove ${r}`]: { margin: 0 },
        [r]: { marginRight: { _skip_check_: !0, value: e.marginSM } }
      },
      [`${l} + ${l}`]: { margin: { _skip_check_: !0, value: `0 0 0 ${i}px` } }
    }
  },
  _D = e => {
    const {
      componentCls: t,
      tabsHorizontalGutter: n,
      iconCls: o,
      tabsCardGutter: r
    } = e
    return {
      [`${t}-rtl`]: {
        direction: 'rtl',
        [`${t}-nav`]: {
          [`${t}-tab`]: {
            margin: { _skip_check_: !0, value: `0 0 0 ${n}px` },
            [`${t}-tab:last-of-type`]: {
              marginLeft: { _skip_check_: !0, value: 0 }
            },
            [o]: {
              marginRight: { _skip_check_: !0, value: 0 },
              marginLeft: { _skip_check_: !0, value: `${e.marginSM}px` }
            },
            [`${t}-tab-remove`]: {
              marginRight: { _skip_check_: !0, value: `${e.marginXS}px` },
              marginLeft: { _skip_check_: !0, value: `-${e.marginXXS}px` },
              [o]: { margin: 0 }
            }
          }
        },
        [`&${t}-left`]: {
          [`> ${t}-nav`]: { order: 1 },
          [`> ${t}-content-holder`]: { order: 0 }
        },
        [`&${t}-right`]: {
          [`> ${t}-nav`]: { order: 0 },
          [`> ${t}-content-holder`]: { order: 1 }
        },
        [`&${t}-card${t}-top, &${t}-card${t}-bottom`]: {
          [`> ${t}-nav, > div > ${t}-nav`]: {
            [`${t}-tab + ${t}-tab`]: {
              marginRight: { _skip_check_: !0, value: `${r}px` },
              marginLeft: { _skip_check_: !0, value: 0 }
            }
          }
        }
      },
      [`${t}-dropdown-rtl`]: { direction: 'rtl' },
      [`${t}-menu-item`]: {
        [`${t}-dropdown-rtl`]: {
          textAlign: { _skip_check_: !0, value: 'right' }
        }
      }
    }
  },
  RD = e => {
    const {
      componentCls: t,
      tabsCardHorizontalPadding: n,
      tabsCardHeight: o,
      tabsCardGutter: r,
      tabsHoverColor: i,
      tabsActiveColor: l,
      colorSplit: a
    } = e
    return {
      [t]: p(
        p(
          p(p({}, ct(e)), {
            display: 'flex',
            [`> ${t}-nav, > div > ${t}-nav`]: {
              position: 'relative',
              display: 'flex',
              flex: 'none',
              alignItems: 'center',
              [`${t}-nav-wrap`]: {
                position: 'relative',
                display: 'flex',
                flex: 'auto',
                alignSelf: 'stretch',
                overflow: 'hidden',
                whiteSpace: 'nowrap',
                transform: 'translate(0)',
                '&::before, &::after': {
                  position: 'absolute',
                  zIndex: 1,
                  opacity: 0,
                  transition: `opacity ${e.motionDurationSlow}`,
                  content: "''",
                  pointerEvents: 'none'
                }
              },
              [`${t}-nav-list`]: {
                position: 'relative',
                display: 'flex',
                transition: `opacity ${e.motionDurationSlow}`
              },
              [`${t}-nav-operations`]: {
                display: 'flex',
                alignSelf: 'stretch'
              },
              [`${t}-nav-operations-hidden`]: {
                position: 'absolute',
                visibility: 'hidden',
                pointerEvents: 'none'
              },
              [`${t}-nav-more`]: {
                position: 'relative',
                padding: n,
                background: 'transparent',
                border: 0,
                '&::after': {
                  position: 'absolute',
                  right: { _skip_check_: !0, value: 0 },
                  bottom: 0,
                  left: { _skip_check_: !0, value: 0 },
                  height: e.controlHeightLG / 8,
                  transform: 'translateY(100%)',
                  content: "''"
                }
              },
              [`${t}-nav-add`]: p(
                {
                  minWidth: `${o}px`,
                  marginLeft: { _skip_check_: !0, value: `${r}px` },
                  padding: `0 ${e.paddingXS}px`,
                  background: 'transparent',
                  border: `${e.lineWidth}px ${e.lineType} ${a}`,
                  borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,
                  outline: 'none',
                  cursor: 'pointer',
                  color: e.colorText,
                  transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
                  '&:hover': { color: i },
                  '&:active, &:focus:not(:focus-visible)': { color: l }
                },
                nr(e)
              )
            },
            [`${t}-extra-content`]: { flex: 'none' },
            [`${t}-ink-bar`]: {
              position: 'absolute',
              background: e.colorPrimary,
              pointerEvents: 'none'
            }
          }),
          ED(e)
        ),
        {
          [`${t}-content`]: {
            position: 'relative',
            display: 'flex',
            width: '100%',
            '&-animated': { transition: 'margin 0.3s' }
          },
          [`${t}-content-holder`]: { flex: 'auto', minWidth: 0, minHeight: 0 },
          [`${t}-tabpane`]: { outline: 'none', flex: 'none', width: '100%' }
        }
      ),
      [`${t}-centered`]: {
        [`> ${t}-nav, > div > ${t}-nav`]: {
          [`${t}-nav-wrap`]: {
            [`&:not([class*='${t}-nav-wrap-ping'])`]: {
              justifyContent: 'center'
            }
          }
        }
      }
    }
  },
  AD = pt(
    'Tabs',
    e => {
      const t = e.controlHeightLG,
        n = Ze(e, {
          tabsHoverColor: e.colorPrimaryHover,
          tabsActiveColor: e.colorPrimaryActive,
          tabsCardHorizontalPadding: `${(t -
            Math.round(e.fontSize * e.lineHeight)) /
            2 -
            e.lineWidth}px ${e.padding}px`,
          tabsCardHeight: t,
          tabsCardGutter: e.marginXXS / 2,
          tabsHorizontalGutter: 32,
          tabsCardHeadBackground: e.colorFillAlter,
          dropdownEdgeChildVerticalPadding: e.paddingXXS,
          tabsActiveTextShadow: '0 0 0.25px currentcolor',
          tabsDropdownHeight: 200,
          tabsDropdownWidth: 120
        })
      return [ID(n), _D(n), TD(n), PD(n), OD(n), RD(n), wD(n)]
    },
    e => ({ zIndexPopup: e.zIndexPopupBase + 50 })
  )
let Xp = 0
const wb = () => ({
  prefixCls: { type: String },
  id: { type: String },
  popupClassName: String,
  getPopupContainer: _e(),
  activeKey: { type: [String, Number] },
  defaultActiveKey: { type: [String, Number] },
  direction: at(),
  animated: Pt([Boolean, Object]),
  renderTabBar: _e(),
  tabBarGutter: { type: Number },
  tabBarStyle: Xe(),
  tabPosition: at(),
  destroyInactiveTabPane: Re(),
  hideAdd: Boolean,
  type: at(),
  size: at(),
  centered: Boolean,
  onEdit: _e(),
  onChange: _e(),
  onTabClick: _e(),
  onTabScroll: _e(),
  'onUpdate:activeKey': _e(),
  locale: Xe(),
  onPrevClick: _e(),
  onNextClick: _e(),
  tabBarExtraContent: k.any
})
function DD(e) {
  return e
    .map(t => {
      if (Ft(t)) {
        const n = p({}, t.props || {})
        for (const [f, m] of Object.entries(n)) delete n[f], (n[cr(f)] = m)
        const o = t.children || {},
          r = t.key !== void 0 ? t.key : void 0,
          {
            tab: i = o.tab,
            disabled: l,
            forceRender: a,
            closable: s,
            animated: u,
            active: c,
            destroyInactiveTabPane: d
          } = n
        return p(p({ key: r }, n), {
          node: t,
          closeIcon: o.closeIcon,
          tab: i,
          disabled: l === '' || l,
          forceRender: a === '' || a,
          closable: s === '' || s,
          animated: u === '' || u,
          active: c === '' || c,
          destroyInactiveTabPane: d === '' || d
        })
      }
      return null
    })
    .filter(t => t)
}
const MD = J({
    compatConfig: { MODE: 3 },
    name: 'InternalTabs',
    inheritAttrs: !1,
    props: p(
      p(
        {},
        mt(wb(), { tabPosition: 'top', animated: { inkBar: !0, tabPane: !1 } })
      ),
      { tabs: $t() }
    ),
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o } = t
      vt(
        e.onPrevClick === void 0 && e.onNextClick === void 0,
        'Tabs',
        '`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead.'
      ),
        vt(
          e.tabBarExtraContent === void 0,
          'Tabs',
          '`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead.'
        ),
        vt(
          o.tabBarExtraContent === void 0,
          'Tabs',
          '`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.'
        )
      const {
          prefixCls: r,
          direction: i,
          size: l,
          rootPrefixCls: a,
          getPopupContainer: s
        } = je('tabs', e),
        [u, c] = AD(r),
        d = P(() => i.value === 'rtl'),
        f = P(() => {
          const { animated: y, tabPosition: T } = e
          return y === !1 || ['left', 'right'].includes(T)
            ? { inkBar: !1, tabPane: !1 }
            : y === !0
            ? { inkBar: !0, tabPane: !0 }
            : p({ inkBar: !0, tabPane: !1 }, typeof y == 'object' ? y : {})
        }),
        [m, g] = tt(!1)
      We(() => {
        g(ah())
      })
      const [h, b] = So(
          () => {
            var y
            return (y = e.tabs[0]) === null || y === void 0 ? void 0 : y.key
          },
          { value: P(() => e.activeKey), defaultValue: e.defaultActiveKey }
        ),
        [S, C] = tt(() => e.tabs.findIndex(y => y.key === h.value))
      Me(() => {
        var y
        let T = e.tabs.findIndex(I => I.key === h.value)
        T === -1 &&
          ((T = Math.max(0, Math.min(S.value, e.tabs.length - 1))),
          b((y = e.tabs[T]) === null || y === void 0 ? void 0 : y.key)),
          C(T)
      })
      const [$, O] = So(null, { value: P(() => e.id) }),
        x = P(() =>
          m.value && !['left', 'right'].includes(e.tabPosition)
            ? 'top'
            : e.tabPosition
        )
      We(() => {
        e.id || (O(`rc-tabs-${Xp}`), (Xp += 1))
      })
      const w = (y, T) => {
        var I, _
        ;(I = e.onTabClick) === null || I === void 0 || I.call(e, y, T)
        const A = y !== h.value
        b(y), A && ((_ = e.onChange) === null || _ === void 0 || _.call(e, y))
      }
      return (
        pD({ tabs: P(() => e.tabs), prefixCls: r }),
        () => {
          const {
              id: y,
              type: T,
              tabBarGutter: I,
              tabBarStyle: _,
              locale: A,
              destroyInactiveTabPane: z,
              renderTabBar: M = o.renderTabBar,
              onTabScroll: j,
              hideAdd: E,
              centered: R
            } = e,
            L = {
              id: $.value,
              activeKey: h.value,
              animated: f.value,
              tabPosition: x.value,
              rtl: d.value,
              mobile: m.value
            }
          let W
          T === 'editable-card' &&
            (W = {
              onEdit: (B, X) => {
                let { key: ee, event: de } = X
                var ie
                ;(ie = e.onEdit) === null ||
                  ie === void 0 ||
                  ie.call(e, B === 'add' ? de : ee, B)
              },
              removeIcon: () => v(ti, null, null),
              addIcon: o.addIcon ? o.addIcon : () => v(CD, null, null),
              showAdd: E !== !0
            })
          let D
          const F = p(p({}, L), {
            moreTransitionName: `${a.value}-slide-up`,
            editable: W,
            locale: A,
            tabBarGutter: I,
            onTabClick: w,
            onTabScroll: j,
            style: _,
            getPopupContainer: s.value,
            popupClassName: oe(e.popupClassName, c.value)
          })
          M
            ? (D = M(p(p({}, F), { DefaultTabBar: Gp })))
            : (D = v(
                Gp,
                F,
                Mh(o, [
                  'moreIcon',
                  'leftExtra',
                  'rightExtra',
                  'tabBarExtraContent'
                ])
              ))
          const H = r.value
          return u(
            v(
              'div',
              N(
                N({}, n),
                {},
                {
                  id: y,
                  class: oe(
                    H,
                    `${H}-${x.value}`,
                    {
                      [c.value]: !0,
                      [`${H}-${l.value}`]: l.value,
                      [`${H}-card`]: ['card', 'editable-card'].includes(T),
                      [`${H}-editable-card`]: T === 'editable-card',
                      [`${H}-centered`]: R,
                      [`${H}-mobile`]: m.value,
                      [`${H}-editable`]: T === 'editable-card',
                      [`${H}-rtl`]: d.value
                    },
                    n.class
                  )
                }
              ),
              [
                D,
                v(
                  SD,
                  N(
                    N({ destroyInactiveTabPane: z }, L),
                    {},
                    { animated: f.value }
                  ),
                  null
                )
              ]
            )
          )
        }
      )
    }
  }),
  po = J({
    compatConfig: { MODE: 3 },
    name: 'ATabs',
    inheritAttrs: !1,
    props: mt(wb(), {
      tabPosition: 'top',
      animated: { inkBar: !0, tabPane: !1 }
    }),
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o, emit: r } = t
      const i = l => {
        r('update:activeKey', l), r('change', l)
      }
      return () => {
        var l
        const a = DD(
          yt((l = o.default) === null || l === void 0 ? void 0 : l.call(o))
        )
        return v(
          MD,
          N(
            N(N({}, rt(e, ['onUpdate:activeKey'])), n),
            {},
            { onChange: i, tabs: a }
          ),
          o
        )
      }
    }
  }),
  ND = () => ({
    tab: k.any,
    disabled: { type: Boolean },
    forceRender: { type: Boolean },
    closable: { type: Boolean },
    animated: { type: Boolean },
    active: { type: Boolean },
    destroyInactiveTabPane: { type: Boolean },
    prefixCls: { type: String },
    tabKey: { type: [String, Number] },
    id: { type: String }
  }),
  Go = J({
    compatConfig: { MODE: 3 },
    name: 'ATabPane',
    inheritAttrs: !1,
    __ANT_TAB_PANE: !0,
    props: ND(),
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o } = t
      const r = ne(e.forceRender)
      ge(
        [() => e.active, () => e.destroyInactiveTabPane],
        () => {
          e.active ? (r.value = !0) : e.destroyInactiveTabPane && (r.value = !1)
        },
        { immediate: !0 }
      )
      const i = P(() =>
        e.active
          ? {}
          : e.animated
          ? { visibility: 'hidden', height: 0, overflowY: 'hidden' }
          : { display: 'none' }
      )
      return () => {
        var l
        const { prefixCls: a, forceRender: s, id: u, active: c, tabKey: d } = e
        return v(
          'div',
          {
            id: u && `${u}-panel-${d}`,
            role: 'tabpanel',
            tabindex: c ? 0 : -1,
            'aria-labelledby': u && `${u}-tab-${d}`,
            'aria-hidden': !c,
            style: [i.value, n.style],
            class: [`${a}-tabpane`, c && `${a}-tabpane-active`, n.class]
          },
          [
            (c || r.value || s) &&
              ((l = o.default) === null || l === void 0 ? void 0 : l.call(o))
          ]
        )
      }
    }
  })
po.TabPane = Go
po.install = function(e) {
  return e.component(po.name, po), e.component(Go.name, Go), e
}
const BD = e => {
    const {
      antCls: t,
      componentCls: n,
      cardHeadHeight: o,
      cardPaddingBase: r,
      cardHeadTabsMarginBottom: i
    } = e
    return p(
      p(
        {
          display: 'flex',
          justifyContent: 'center',
          flexDirection: 'column',
          minHeight: o,
          marginBottom: -1,
          padding: `0 ${r}px`,
          color: e.colorTextHeading,
          fontWeight: e.fontWeightStrong,
          fontSize: e.fontSizeLG,
          background: 'transparent',
          borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,
          borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
        },
        Wn()
      ),
      {
        '&-wrapper': { width: '100%', display: 'flex', alignItems: 'center' },
        '&-title': p(p({ display: 'inline-block', flex: 1 }, Kn), {
          [`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]: { insetInlineStart: 0, marginTop: 0, marginBottom: 0 }
        }),
        [`${t}-tabs-top`]: {
          clear: 'both',
          marginBottom: i,
          color: e.colorText,
          fontWeight: 'normal',
          fontSize: e.fontSize,
          '&-bar': {
            borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`
          }
        }
      }
    )
  },
  zD = e => {
    const {
      cardPaddingBase: t,
      colorBorderSecondary: n,
      cardShadow: o,
      lineWidth: r
    } = e
    return {
      width: '33.33%',
      padding: t,
      border: 0,
      borderRadius: 0,
      boxShadow: `
      ${r}px 0 0 0 ${n},
      0 ${r}px 0 0 ${n},
      ${r}px ${r}px 0 0 ${n},
      ${r}px 0 0 0 ${n} inset,
      0 ${r}px 0 0 ${n} inset;
    `,
      transition: `all ${e.motionDurationMid}`,
      '&-hoverable:hover': { position: 'relative', zIndex: 1, boxShadow: o }
    }
  },
  LD = e => {
    const {
      componentCls: t,
      iconCls: n,
      cardActionsLiMargin: o,
      cardActionsIconSize: r,
      colorBorderSecondary: i
    } = e
    return p(
      p(
        {
          margin: 0,
          padding: 0,
          listStyle: 'none',
          background: e.colorBgContainer,
          borderTop: `${e.lineWidth}px ${e.lineType} ${i}`,
          display: 'flex',
          borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `
        },
        Wn()
      ),
      {
        '& > li': {
          margin: o,
          color: e.colorTextDescription,
          textAlign: 'center',
          '> span': {
            position: 'relative',
            display: 'block',
            minWidth: e.cardActionsIconSize * 2,
            fontSize: e.fontSize,
            lineHeight: e.lineHeight,
            cursor: 'pointer',
            '&:hover': {
              color: e.colorPrimary,
              transition: `color ${e.motionDurationMid}`
            },
            [`a:not(${t}-btn), > ${n}`]: {
              display: 'inline-block',
              width: '100%',
              color: e.colorTextDescription,
              lineHeight: `${e.fontSize * e.lineHeight}px`,
              transition: `color ${e.motionDurationMid}`,
              '&:hover': { color: e.colorPrimary }
            },
            [`> ${n}`]: { fontSize: r, lineHeight: `${r * e.lineHeight}px` }
          },
          '&:not(:last-child)': {
            borderInlineEnd: `${e.lineWidth}px ${e.lineType} ${i}`
          }
        }
      }
    )
  },
  FD = e =>
    p(p({ margin: `-${e.marginXXS}px 0`, display: 'flex' }, Wn()), {
      '&-avatar': { paddingInlineEnd: e.padding },
      '&-detail': {
        overflow: 'hidden',
        flex: 1,
        '> div:not(:last-child)': { marginBottom: e.marginXS }
      },
      '&-title': p(
        {
          color: e.colorTextHeading,
          fontWeight: e.fontWeightStrong,
          fontSize: e.fontSizeLG
        },
        Kn
      ),
      '&-description': { color: e.colorTextDescription }
    }),
  HD = e => {
    const { componentCls: t, cardPaddingBase: n, colorFillAlter: o } = e
    return {
      [`${t}-head`]: {
        padding: `0 ${n}px`,
        background: o,
        '&-title': { fontSize: e.fontSize }
      },
      [`${t}-body`]: { padding: `${e.padding}px ${n}px` }
    }
  },
  kD = e => {
    const { componentCls: t } = e
    return { overflow: 'hidden', [`${t}-body`]: { userSelect: 'none' } }
  },
  jD = e => {
    const {
      componentCls: t,
      cardShadow: n,
      cardHeadPadding: o,
      colorBorderSecondary: r,
      boxShadow: i,
      cardPaddingBase: l
    } = e
    return {
      [t]: p(p({}, ct(e)), {
        position: 'relative',
        background: e.colorBgContainer,
        borderRadius: e.borderRadiusLG,
        [`&:not(${t}-bordered)`]: { boxShadow: i },
        [`${t}-head`]: BD(e),
        [`${t}-extra`]: {
          marginInlineStart: 'auto',
          color: '',
          fontWeight: 'normal',
          fontSize: e.fontSize
        },
        [`${t}-body`]: p(
          {
            padding: l,
            borderRadius: ` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`
          },
          Wn()
        ),
        [`${t}-grid`]: zD(e),
        [`${t}-cover`]: {
          '> *': { display: 'block', width: '100%' },
          img: {
            borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
          }
        },
        [`${t}-actions`]: LD(e),
        [`${t}-meta`]: FD(e)
      }),
      [`${t}-bordered`]: {
        border: `${e.lineWidth}px ${e.lineType} ${r}`,
        [`${t}-cover`]: {
          marginTop: -1,
          marginInlineStart: -1,
          marginInlineEnd: -1
        }
      },
      [`${t}-hoverable`]: {
        cursor: 'pointer',
        transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
        '&:hover': { borderColor: 'transparent', boxShadow: n }
      },
      [`${t}-contain-grid`]: {
        [`${t}-body`]: { display: 'flex', flexWrap: 'wrap' },
        [`&:not(${t}-loading) ${t}-body`]: {
          marginBlockStart: -e.lineWidth,
          marginInlineStart: -e.lineWidth,
          padding: 0
        }
      },
      [`${t}-contain-tabs`]: {
        [`> ${t}-head`]: { [`${t}-head-title, ${t}-extra`]: { paddingTop: o } }
      },
      [`${t}-type-inner`]: HD(e),
      [`${t}-loading`]: kD(e),
      [`${t}-rtl`]: { direction: 'rtl' }
    }
  },
  KD = e => {
    const { componentCls: t, cardPaddingSM: n, cardHeadHeightSM: o } = e
    return {
      [`${t}-small`]: {
        [`> ${t}-head`]: {
          minHeight: o,
          padding: `0 ${n}px`,
          fontSize: e.fontSize,
          [`> ${t}-head-wrapper`]: {
            [`> ${t}-extra`]: { fontSize: e.fontSize }
          }
        },
        [`> ${t}-body`]: { padding: n }
      },
      [`${t}-small${t}-contain-tabs`]: {
        [`> ${t}-head`]: {
          [`${t}-head-title, ${t}-extra`]: {
            minHeight: o,
            paddingTop: 0,
            display: 'flex',
            alignItems: 'center'
          }
        }
      }
    }
  },
  WD = pt('Card', e => {
    const t = Ze(e, {
      cardShadow: e.boxShadowCard,
      cardHeadHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
      cardHeadHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
      cardHeadPadding: e.padding,
      cardPaddingBase: e.paddingLG,
      cardHeadTabsMarginBottom: -e.padding - e.lineWidth,
      cardActionsLiMargin: `${e.paddingSM}px 0`,
      cardActionsIconSize: e.fontSize,
      cardPaddingSM: 12
    })
    return [jD(t), KD(t)]
  }),
  VD = () => ({ prefixCls: String, width: { type: [Number, String] } }),
  GD = J({
    compatConfig: { MODE: 3 },
    name: 'SkeletonTitle',
    props: VD(),
    setup(e) {
      return () => {
        const { prefixCls: t, width: n } = e,
          o = typeof n == 'number' ? `${n}px` : n
        return v('h3', { class: t, style: { width: o } }, null)
      }
    }
  }),
  Au = GD,
  UD = () => ({
    prefixCls: String,
    width: { type: [Number, String, Array] },
    rows: Number
  }),
  XD = J({
    compatConfig: { MODE: 3 },
    name: 'SkeletonParagraph',
    props: UD(),
    setup(e) {
      const t = n => {
        const { width: o, rows: r = 2 } = e
        if (Array.isArray(o)) return o[n]
        if (r - 1 === n) return o
      }
      return () => {
        const { prefixCls: n, rows: o } = e,
          r = [...Array(o)].map((i, l) => {
            const a = t(l)
            return v(
              'li',
              { key: l, style: { width: typeof a == 'number' ? `${a}px` : a } },
              null
            )
          })
        return v('ul', { class: n }, [r])
      }
    }
  }),
  qD = XD,
  Hl = () => ({
    prefixCls: String,
    size: [String, Number],
    shape: String,
    active: { type: Boolean, default: void 0 }
  }),
  Ob = e => {
    const { prefixCls: t, size: n, shape: o } = e,
      r = oe({ [`${t}-lg`]: n === 'large', [`${t}-sm`]: n === 'small' }),
      i = oe({
        [`${t}-circle`]: o === 'circle',
        [`${t}-square`]: o === 'square',
        [`${t}-round`]: o === 'round'
      }),
      l =
        typeof n == 'number'
          ? { width: `${n}px`, height: `${n}px`, lineHeight: `${n}px` }
          : {}
    return v('span', { class: oe(t, r, i), style: l }, null)
  }
Ob.displayName = 'SkeletonElement'
const kl = Ob,
  YD = new Ve('ant-skeleton-loading', {
    '0%': { transform: 'translateX(-37.5%)' },
    '100%': { transform: 'translateX(37.5%)' }
  }),
  jl = e => ({ height: e, lineHeight: `${e}px` }),
  Uo = e => p({ width: e }, jl(e)),
  JD = e => ({
    position: 'relative',
    zIndex: 0,
    overflow: 'hidden',
    background: 'transparent',
    '&::after': {
      position: 'absolute',
      top: 0,
      insetInlineEnd: '-150%',
      bottom: 0,
      insetInlineStart: '-150%',
      background: e.skeletonLoadingBackground,
      animationName: YD,
      animationDuration: e.skeletonLoadingMotionDuration,
      animationTimingFunction: 'ease',
      animationIterationCount: 'infinite',
      content: '""'
    }
  }),
  Ea = e => p({ width: e * 5, minWidth: e * 5 }, jl(e)),
  QD = e => {
    const {
      skeletonAvatarCls: t,
      color: n,
      controlHeight: o,
      controlHeightLG: r,
      controlHeightSM: i
    } = e
    return {
      [`${t}`]: p(
        { display: 'inline-block', verticalAlign: 'top', background: n },
        Uo(o)
      ),
      [`${t}${t}-circle`]: { borderRadius: '50%' },
      [`${t}${t}-lg`]: p({}, Uo(r)),
      [`${t}${t}-sm`]: p({}, Uo(i))
    }
  },
  ZD = e => {
    const {
      controlHeight: t,
      borderRadiusSM: n,
      skeletonInputCls: o,
      controlHeightLG: r,
      controlHeightSM: i,
      color: l
    } = e
    return {
      [`${o}`]: p(
        {
          display: 'inline-block',
          verticalAlign: 'top',
          background: l,
          borderRadius: n
        },
        Ea(t)
      ),
      [`${o}-lg`]: p({}, Ea(r)),
      [`${o}-sm`]: p({}, Ea(i))
    }
  },
  qp = e => p({ width: e }, jl(e)),
  eM = e => {
    const {
      skeletonImageCls: t,
      imageSizeBase: n,
      color: o,
      borderRadiusSM: r
    } = e
    return {
      [`${t}`]: p(
        p(
          {
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center',
            verticalAlign: 'top',
            background: o,
            borderRadius: r
          },
          qp(n * 2)
        ),
        {
          [`${t}-path`]: { fill: '#bfbfbf' },
          [`${t}-svg`]: p(p({}, qp(n)), { maxWidth: n * 4, maxHeight: n * 4 }),
          [`${t}-svg${t}-svg-circle`]: { borderRadius: '50%' }
        }
      ),
      [`${t}${t}-circle`]: { borderRadius: '50%' }
    }
  },
  _a = (e, t, n) => {
    const { skeletonButtonCls: o } = e
    return {
      [`${n}${o}-circle`]: { width: t, minWidth: t, borderRadius: '50%' },
      [`${n}${o}-round`]: { borderRadius: t }
    }
  },
  Ra = e => p({ width: e * 2, minWidth: e * 2 }, jl(e)),
  tM = e => {
    const {
      borderRadiusSM: t,
      skeletonButtonCls: n,
      controlHeight: o,
      controlHeightLG: r,
      controlHeightSM: i,
      color: l
    } = e
    return p(
      p(
        p(
          p(
            p(
              {
                [`${n}`]: p(
                  {
                    display: 'inline-block',
                    verticalAlign: 'top',
                    background: l,
                    borderRadius: t,
                    width: o * 2,
                    minWidth: o * 2
                  },
                  Ra(o)
                )
              },
              _a(e, o, n)
            ),
            { [`${n}-lg`]: p({}, Ra(r)) }
          ),
          _a(e, r, `${n}-lg`)
        ),
        { [`${n}-sm`]: p({}, Ra(i)) }
      ),
      _a(e, i, `${n}-sm`)
    )
  },
  nM = e => {
    const {
      componentCls: t,
      skeletonAvatarCls: n,
      skeletonTitleCls: o,
      skeletonParagraphCls: r,
      skeletonButtonCls: i,
      skeletonInputCls: l,
      skeletonImageCls: a,
      controlHeight: s,
      controlHeightLG: u,
      controlHeightSM: c,
      color: d,
      padding: f,
      marginSM: m,
      borderRadius: g,
      skeletonTitleHeight: h,
      skeletonBlockRadius: b,
      skeletonParagraphLineHeight: S,
      controlHeightXS: C,
      skeletonParagraphMarginTop: $
    } = e
    return {
      [`${t}`]: {
        display: 'table',
        width: '100%',
        [`${t}-header`]: {
          display: 'table-cell',
          paddingInlineEnd: f,
          verticalAlign: 'top',
          [`${n}`]: p(
            { display: 'inline-block', verticalAlign: 'top', background: d },
            Uo(s)
          ),
          [`${n}-circle`]: { borderRadius: '50%' },
          [`${n}-lg`]: p({}, Uo(u)),
          [`${n}-sm`]: p({}, Uo(c))
        },
        [`${t}-content`]: {
          display: 'table-cell',
          width: '100%',
          verticalAlign: 'top',
          [`${o}`]: {
            width: '100%',
            height: h,
            background: d,
            borderRadius: b,
            [`+ ${r}`]: { marginBlockStart: c }
          },
          [`${r}`]: {
            padding: 0,
            '> li': {
              width: '100%',
              height: S,
              listStyle: 'none',
              background: d,
              borderRadius: b,
              '+ li': { marginBlockStart: C }
            }
          },
          [`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]: {
            width: '61%'
          }
        },
        [`&-round ${t}-content`]: { [`${o}, ${r} > li`]: { borderRadius: g } }
      },
      [`${t}-with-avatar ${t}-content`]: {
        [`${o}`]: { marginBlockStart: m, [`+ ${r}`]: { marginBlockStart: $ } }
      },
      [`${t}${t}-element`]: p(
        p(
          p(p({ display: 'inline-block', width: 'auto' }, tM(e)), QD(e)),
          ZD(e)
        ),
        eM(e)
      ),
      [`${t}${t}-block`]: {
        width: '100%',
        [`${i}`]: { width: '100%' },
        [`${l}`]: { width: '100%' }
      },
      [`${t}${t}-active`]: {
        [`
        ${o},
        ${r} > li,
        ${n},
        ${i},
        ${l},
        ${a}
      `]: p({}, JD(e))
      }
    }
  },
  oi = pt(
    'Skeleton',
    e => {
      const { componentCls: t } = e,
        n = Ze(e, {
          skeletonAvatarCls: `${t}-avatar`,
          skeletonTitleCls: `${t}-title`,
          skeletonParagraphCls: `${t}-paragraph`,
          skeletonButtonCls: `${t}-button`,
          skeletonInputCls: `${t}-input`,
          skeletonImageCls: `${t}-image`,
          imageSizeBase: e.controlHeight * 1.5,
          skeletonTitleHeight: e.controlHeight / 2,
          skeletonBlockRadius: e.borderRadiusSM,
          skeletonParagraphLineHeight: e.controlHeight / 2,
          skeletonParagraphMarginTop: e.marginLG + e.marginXXS,
          borderRadius: 100,
          skeletonLoadingBackground: `linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,
          skeletonLoadingMotionDuration: '1.4s'
        })
      return [nM(n)]
    },
    e => {
      const { colorFillContent: t, colorFill: n } = e
      return { color: t, colorGradientEnd: n }
    }
  ),
  oM = () => ({
    active: { type: Boolean, default: void 0 },
    loading: { type: Boolean, default: void 0 },
    prefixCls: String,
    avatar: { type: [Boolean, Object], default: void 0 },
    title: { type: [Boolean, Object], default: void 0 },
    paragraph: { type: [Boolean, Object], default: void 0 },
    round: { type: Boolean, default: void 0 }
  })
function Aa(e) {
  return e && typeof e == 'object' ? e : {}
}
function rM(e, t) {
  return e && !t
    ? { size: 'large', shape: 'square' }
    : { size: 'large', shape: 'circle' }
}
function iM(e, t) {
  return !e && t ? { width: '38%' } : e && t ? { width: '50%' } : {}
}
function lM(e, t) {
  const n = {}
  return (
    (!e || !t) && (n.width = '61%'), !e && t ? (n.rows = 3) : (n.rows = 2), n
  )
}
const aM = J({
    compatConfig: { MODE: 3 },
    name: 'ASkeleton',
    props: mt(oM(), { avatar: !1, title: !0, paragraph: !0 }),
    setup(e, t) {
      let { slots: n } = t
      const { prefixCls: o, direction: r } = je('skeleton', e),
        [i, l] = oi(o)
      return () => {
        var a
        const {
            loading: s,
            avatar: u,
            title: c,
            paragraph: d,
            active: f,
            round: m
          } = e,
          g = o.value
        if (s || e.loading === void 0) {
          const h = !!u || u === '',
            b = !!c || c === '',
            S = !!d || d === ''
          let C
          if (h) {
            const x = p(p({ prefixCls: `${g}-avatar` }, rM(b, S)), Aa(u))
            C = v('div', { class: `${g}-header` }, [v(kl, x, null)])
          }
          let $
          if (b || S) {
            let x
            if (b) {
              const y = p(p({ prefixCls: `${g}-title` }, iM(h, S)), Aa(c))
              x = v(Au, y, null)
            }
            let w
            if (S) {
              const y = p(p({ prefixCls: `${g}-paragraph` }, lM(h, b)), Aa(d))
              w = v(qD, y, null)
            }
            $ = v('div', { class: `${g}-content` }, [x, w])
          }
          const O = oe(g, {
            [`${g}-with-avatar`]: h,
            [`${g}-active`]: f,
            [`${g}-rtl`]: r.value === 'rtl',
            [`${g}-round`]: m,
            [l.value]: !0
          })
          return i(v('div', { class: O }, [C, $]))
        }
        return (a = n.default) === null || a === void 0 ? void 0 : a.call(n)
      }
    }
  }),
  zt = aM,
  sM = () => p(p({}, Hl()), { size: String, block: Boolean }),
  cM = J({
    compatConfig: { MODE: 3 },
    name: 'ASkeletonButton',
    props: mt(sM(), { size: 'default' }),
    setup(e) {
      const { prefixCls: t } = je('skeleton', e),
        [n, o] = oi(t),
        r = P(() =>
          oe(
            t.value,
            `${t.value}-element`,
            { [`${t.value}-active`]: e.active, [`${t.value}-block`]: e.block },
            o.value
          )
        )
      return () =>
        n(
          v('div', { class: r.value }, [
            v(kl, N(N({}, e), {}, { prefixCls: `${t.value}-button` }), null)
          ])
        )
    }
  }),
  Pb = cM,
  uM = J({
    compatConfig: { MODE: 3 },
    name: 'ASkeletonInput',
    props: p(p({}, rt(Hl(), ['shape'])), { size: String, block: Boolean }),
    setup(e) {
      const { prefixCls: t } = je('skeleton', e),
        [n, o] = oi(t),
        r = P(() =>
          oe(
            t.value,
            `${t.value}-element`,
            { [`${t.value}-active`]: e.active, [`${t.value}-block`]: e.block },
            o.value
          )
        )
      return () =>
        n(
          v('div', { class: r.value }, [
            v(kl, N(N({}, e), {}, { prefixCls: `${t.value}-input` }), null)
          ])
        )
    }
  }),
  Tb = uM,
  dM =
    'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z',
  fM = J({
    compatConfig: { MODE: 3 },
    name: 'ASkeletonImage',
    props: rt(Hl(), ['size', 'shape', 'active']),
    setup(e) {
      const { prefixCls: t } = je('skeleton', e),
        [n, o] = oi(t),
        r = P(() => oe(t.value, `${t.value}-element`, o.value))
      return () =>
        n(
          v('div', { class: r.value }, [
            v('div', { class: `${t.value}-image` }, [
              v(
                'svg',
                {
                  viewBox: '0 0 1098 1024',
                  xmlns: 'http://www.w3.org/2000/svg',
                  class: `${t.value}-image-svg`
                },
                [v('path', { d: dM, class: `${t.value}-image-path` }, null)]
              )
            ])
          ])
        )
    }
  }),
  Ib = fM,
  pM = () => p(p({}, Hl()), { shape: String }),
  vM = J({
    compatConfig: { MODE: 3 },
    name: 'ASkeletonAvatar',
    props: mt(pM(), { size: 'default', shape: 'circle' }),
    setup(e) {
      const { prefixCls: t } = je('skeleton', e),
        [n, o] = oi(t),
        r = P(() =>
          oe(
            t.value,
            `${t.value}-element`,
            { [`${t.value}-active`]: e.active },
            o.value
          )
        )
      return () =>
        n(
          v('div', { class: r.value }, [
            v(kl, N(N({}, e), {}, { prefixCls: `${t.value}-avatar` }), null)
          ])
        )
    }
  }),
  Eb = vM
zt.Button = Pb
zt.Avatar = Eb
zt.Input = Tb
zt.Image = Ib
zt.Title = Au
zt.install = function(e) {
  return (
    e.component(zt.name, zt),
    e.component(zt.Button.name, Pb),
    e.component(zt.Avatar.name, Eb),
    e.component(zt.Input.name, Tb),
    e.component(zt.Image.name, Ib),
    e.component(zt.Title.name, Au),
    e
  )
}
const { TabPane: mM } = po,
  gM = () => ({
    prefixCls: String,
    title: k.any,
    extra: k.any,
    bordered: { type: Boolean, default: !0 },
    bodyStyle: { type: Object, default: void 0 },
    headStyle: { type: Object, default: void 0 },
    loading: { type: Boolean, default: !1 },
    hoverable: { type: Boolean, default: !1 },
    type: { type: String },
    size: { type: String },
    actions: k.any,
    tabList: { type: Array },
    tabBarExtraContent: k.any,
    activeTabKey: String,
    defaultActiveTabKey: String,
    cover: k.any,
    onTabChange: { type: Function }
  }),
  hM = J({
    compatConfig: { MODE: 3 },
    name: 'ACard',
    inheritAttrs: !1,
    props: gM(),
    slots: Object,
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const { prefixCls: r, direction: i, size: l } = je('card', e),
        [a, s] = WD(r),
        u = f =>
          f.map((g, h) =>
            (Mt(g) && !mc(g)) || !Mt(g)
              ? v(
                  'li',
                  {
                    style: { width: `${100 / f.length}%` },
                    key: `action-${h}`
                  },
                  [v('span', null, [g])]
                )
              : null
          ),
        c = f => {
          var m
          ;(m = e.onTabChange) === null || m === void 0 || m.call(e, f)
        },
        d = function() {
          let f =
              arguments.length > 0 && arguments[0] !== void 0
                ? arguments[0]
                : [],
            m
          return (
            f.forEach(g => {
              g && Ah(g.type) && g.type.__ANT_CARD_GRID && (m = !0)
            }),
            m
          )
        }
      return () => {
        var f, m, g, h, b, S
        const {
            headStyle: C = {},
            bodyStyle: $ = {},
            loading: O,
            bordered: x = !0,
            type: w,
            tabList: y,
            hoverable: T,
            activeTabKey: I,
            defaultActiveTabKey: _,
            tabBarExtraContent: A = Sr(
              (f = n.tabBarExtraContent) === null || f === void 0
                ? void 0
                : f.call(n)
            ),
            title: z = Sr(
              (m = n.title) === null || m === void 0 ? void 0 : m.call(n)
            ),
            extra: M = Sr(
              (g = n.extra) === null || g === void 0 ? void 0 : g.call(n)
            ),
            actions: j = Sr(
              (h = n.actions) === null || h === void 0 ? void 0 : h.call(n)
            ),
            cover: E = Sr(
              (b = n.cover) === null || b === void 0 ? void 0 : b.call(n)
            )
          } = e,
          R = yt((S = n.default) === null || S === void 0 ? void 0 : S.call(n)),
          L = r.value,
          W = {
            [`${L}`]: !0,
            [s.value]: !0,
            [`${L}-loading`]: O,
            [`${L}-bordered`]: x,
            [`${L}-hoverable`]: !!T,
            [`${L}-contain-grid`]: d(R),
            [`${L}-contain-tabs`]: y && y.length,
            [`${L}-${l.value}`]: l.value,
            [`${L}-type-${w}`]: !!w,
            [`${L}-rtl`]: i.value === 'rtl'
          },
          D = v(
            zt,
            { loading: !0, active: !0, paragraph: { rows: 4 }, title: !1 },
            { default: () => [R] }
          ),
          F = I !== void 0,
          H = {
            size: 'large',
            [F ? 'activeKey' : 'defaultActiveKey']: F ? I : _,
            onChange: c,
            class: `${L}-head-tabs`
          }
        let B
        const X =
          y && y.length
            ? v(po, H, {
                default: () => [
                  y.map(Q => {
                    const { tab: se, slots: q } = Q,
                      K = q == null ? void 0 : q.tab
                    vt(
                      !q,
                      'Card',
                      'tabList slots is deprecated, Please use `customTab` instead.'
                    )
                    let U = se !== void 0 ? se : n[K] ? n[K](Q) : null
                    return (
                      (U = wl(n, 'customTab', Q, () => [U])),
                      v(mM, { tab: U, key: Q.key, disabled: Q.disabled }, null)
                    )
                  })
                ],
                rightExtra: A ? () => A : null
              })
            : null
        ;(z || M || X) &&
          (B = v('div', { class: `${L}-head`, style: C }, [
            v('div', { class: `${L}-head-wrapper` }, [
              z && v('div', { class: `${L}-head-title` }, [z]),
              M && v('div', { class: `${L}-extra` }, [M])
            ]),
            X
          ]))
        const ee = E ? v('div', { class: `${L}-cover` }, [E]) : null,
          de = v('div', { class: `${L}-body`, style: $ }, [O ? D : R]),
          ie = j && j.length ? v('ul', { class: `${L}-actions` }, [u(j)]) : null
        return a(
          v(
            'div',
            N(N({ ref: 'cardContainerRef' }, o), {}, { class: [W, o.class] }),
            [B, ee, R && R.length ? de : null, ie]
          )
        )
      }
    }
  }),
  Xo = hM,
  bM = () => ({
    prefixCls: String,
    title: la(),
    description: la(),
    avatar: la()
  }),
  As = J({
    compatConfig: { MODE: 3 },
    name: 'ACardMeta',
    props: bM(),
    slots: Object,
    setup(e, t) {
      let { slots: n } = t
      const { prefixCls: o } = je('card', e)
      return () => {
        const r = { [`${o.value}-meta`]: !0 },
          i = ao(n, e, 'avatar'),
          l = ao(n, e, 'title'),
          a = ao(n, e, 'description'),
          s = i ? v('div', { class: `${o.value}-meta-avatar` }, [i]) : null,
          u = l ? v('div', { class: `${o.value}-meta-title` }, [l]) : null,
          c = a
            ? v('div', { class: `${o.value}-meta-description` }, [a])
            : null,
          d =
            u || c
              ? v('div', { class: `${o.value}-meta-detail` }, [u, c])
              : null
        return v('div', { class: r }, [s, d])
      }
    }
  }),
  yM = () => ({ prefixCls: String, hoverable: { type: Boolean, default: !0 } }),
  Ds = J({
    compatConfig: { MODE: 3 },
    name: 'ACardGrid',
    __ANT_CARD_GRID: !0,
    props: yM(),
    setup(e, t) {
      let { slots: n } = t
      const { prefixCls: o } = je('card', e),
        r = P(() => ({
          [`${o.value}-grid`]: !0,
          [`${o.value}-grid-hoverable`]: e.hoverable
        }))
      return () => {
        var i
        return v('div', { class: r.value }, [
          (i = n.default) === null || i === void 0 ? void 0 : i.call(n)
        ])
      }
    }
  })
Xo.Meta = As
Xo.Grid = Ds
Xo.install = function(e) {
  return (
    e.component(Xo.name, Xo),
    e.component(As.name, As),
    e.component(Ds.name, Ds),
    e
  )
}
const _b = Symbol('TreeContextKey'),
  SM = J({
    compatConfig: { MODE: 3 },
    name: 'TreeContext',
    props: { value: { type: Object } },
    setup(e, t) {
      let { slots: n } = t
      return (
        Ye(
          _b,
          P(() => e.value)
        ),
        () => {
          var o
          return (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        }
      )
    }
  }),
  Du = () =>
    Ue(
      _b,
      P(() => ({}))
    ),
  Rb = Symbol('KeysStateKey'),
  xM = e => {
    Ye(Rb, e)
  },
  Ab = () =>
    Ue(Rb, {
      expandedKeys: V([]),
      selectedKeys: V([]),
      loadedKeys: V([]),
      loadingKeys: V([]),
      checkedKeys: V([]),
      halfCheckedKeys: V([]),
      expandedKeysSet: P(() => new Set()),
      selectedKeysSet: P(() => new Set()),
      loadedKeysSet: P(() => new Set()),
      loadingKeysSet: P(() => new Set()),
      checkedKeysSet: P(() => new Set()),
      halfCheckedKeysSet: P(() => new Set()),
      flattenNodes: V([])
    }),
  CM = e => {
    let { prefixCls: t, level: n, isStart: o, isEnd: r } = e
    const i = `${t}-indent-unit`,
      l = []
    for (let a = 0; a < n; a += 1)
      l.push(
        v(
          'span',
          {
            key: a,
            class: { [i]: !0, [`${i}-start`]: o[a], [`${i}-end`]: r[a] }
          },
          null
        )
      )
    return v('span', { 'aria-hidden': 'true', class: `${t}-indent` }, [l])
  },
  $M = CM,
  Db = {
    eventKey: [String, Number],
    prefixCls: String,
    title: k.any,
    data: { type: Object, default: void 0 },
    parent: { type: Object, default: void 0 },
    isStart: { type: Array },
    isEnd: { type: Array },
    active: { type: Boolean, default: void 0 },
    onMousemove: { type: Function },
    isLeaf: { type: Boolean, default: void 0 },
    checkable: { type: Boolean, default: void 0 },
    selectable: { type: Boolean, default: void 0 },
    disabled: { type: Boolean, default: void 0 },
    disableCheckbox: { type: Boolean, default: void 0 },
    icon: k.any,
    switcherIcon: k.any,
    domRef: { type: Function }
  },
  wM = {
    prefixCls: { type: String },
    motion: { type: Object },
    focusable: { type: Boolean },
    activeItem: { type: Object },
    focused: { type: Boolean },
    tabindex: { type: Number },
    checkable: { type: Boolean },
    selectable: { type: Boolean },
    disabled: { type: Boolean },
    height: { type: Number },
    itemHeight: { type: Number },
    virtual: { type: Boolean },
    onScroll: { type: Function },
    onKeydown: { type: Function },
    onFocus: { type: Function },
    onBlur: { type: Function },
    onActiveChange: { type: Function },
    onContextmenu: { type: Function },
    onListChangeStart: { type: Function },
    onListChangeEnd: { type: Function }
  },
  Mb = () => ({
    prefixCls: String,
    focusable: { type: Boolean, default: void 0 },
    activeKey: [Number, String],
    tabindex: Number,
    children: k.any,
    treeData: { type: Array },
    fieldNames: { type: Object },
    showLine: { type: [Boolean, Object], default: void 0 },
    showIcon: { type: Boolean, default: void 0 },
    icon: k.any,
    selectable: { type: Boolean, default: void 0 },
    expandAction: [String, Boolean],
    disabled: { type: Boolean, default: void 0 },
    multiple: { type: Boolean, default: void 0 },
    checkable: { type: Boolean, default: void 0 },
    checkStrictly: { type: Boolean, default: void 0 },
    draggable: { type: [Function, Boolean] },
    defaultExpandParent: { type: Boolean, default: void 0 },
    autoExpandParent: { type: Boolean, default: void 0 },
    defaultExpandAll: { type: Boolean, default: void 0 },
    defaultExpandedKeys: { type: Array },
    expandedKeys: { type: Array },
    defaultCheckedKeys: { type: Array },
    checkedKeys: { type: [Object, Array] },
    defaultSelectedKeys: { type: Array },
    selectedKeys: { type: Array },
    allowDrop: { type: Function },
    dropIndicatorRender: { type: Function },
    onFocus: { type: Function },
    onBlur: { type: Function },
    onKeydown: { type: Function },
    onContextmenu: { type: Function },
    onClick: { type: Function },
    onDblclick: { type: Function },
    onScroll: { type: Function },
    onExpand: { type: Function },
    onCheck: { type: Function },
    onSelect: { type: Function },
    onLoad: { type: Function },
    loadData: { type: Function },
    loadedKeys: { type: Array },
    onMouseenter: { type: Function },
    onMouseleave: { type: Function },
    onRightClick: { type: Function },
    onDragstart: { type: Function },
    onDragenter: { type: Function },
    onDragover: { type: Function },
    onDragleave: { type: Function },
    onDragend: { type: Function },
    onDrop: { type: Function },
    onActiveChange: { type: Function },
    filterTreeNode: { type: Function },
    motion: k.any,
    switcherIcon: k.any,
    height: Number,
    itemHeight: Number,
    virtual: { type: Boolean, default: void 0 },
    direction: { type: String },
    rootClassName: String,
    rootStyle: Object
  })
var OM =
  (globalThis && globalThis.__rest) ||
  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 Yp = 'open',
  Jp = 'close',
  PM = '---',
  Ms = J({
    compatConfig: { MODE: 3 },
    name: 'ATreeNode',
    inheritAttrs: !1,
    props: Db,
    isTreeNode: 1,
    setup(e, t) {
      let { attrs: n, slots: o, expose: r } = t
      'slots' in e.data,
        `${Object.keys(e.data.slots || {}).map(Y => '`v-slot:' + Y + '` ')}`
      const i = V(!1),
        l = Du(),
        {
          expandedKeysSet: a,
          selectedKeysSet: s,
          loadedKeysSet: u,
          loadingKeysSet: c,
          checkedKeysSet: d,
          halfCheckedKeysSet: f
        } = Ab(),
        { dragOverNodeKey: m, dropPosition: g, keyEntities: h } = l.value,
        b = P(() =>
          Ni(e.eventKey, {
            expandedKeysSet: a.value,
            selectedKeysSet: s.value,
            loadedKeysSet: u.value,
            loadingKeysSet: c.value,
            checkedKeysSet: d.value,
            halfCheckedKeysSet: f.value,
            dragOverNodeKey: m,
            dropPosition: g,
            keyEntities: h
          })
        ),
        S = nn(() => b.value.expanded),
        C = nn(() => b.value.selected),
        $ = nn(() => b.value.checked),
        O = nn(() => b.value.loaded),
        x = nn(() => b.value.loading),
        w = nn(() => b.value.halfChecked),
        y = nn(() => b.value.dragOver),
        T = nn(() => b.value.dragOverGapTop),
        I = nn(() => b.value.dragOverGapBottom),
        _ = nn(() => b.value.pos),
        A = V(),
        z = P(() => {
          const { eventKey: Y } = e,
            { keyEntities: G } = l.value,
            { children: le } = G[Y] || {}
          return !!(le || []).length
        }),
        M = P(() => {
          const { isLeaf: Y } = e,
            { loadData: G } = l.value,
            le = z.value
          return Y === !1 ? !1 : Y || (!G && !le) || (G && O.value && !le)
        }),
        j = P(() => (M.value ? null : S.value ? Yp : Jp)),
        E = P(() => {
          const { disabled: Y } = e,
            { disabled: G } = l.value
          return !!(G || Y)
        }),
        R = P(() => {
          const { checkable: Y } = e,
            { checkable: G } = l.value
          return !G || Y === !1 ? !1 : G
        }),
        L = P(() => {
          const { selectable: Y } = e,
            { selectable: G } = l.value
          return typeof Y == 'boolean' ? Y : G
        }),
        W = P(() => {
          const {
            data: Y,
            active: G,
            checkable: le,
            disableCheckbox: $e,
            disabled: Te,
            selectable: De
          } = e
          return p(
            p(
              {
                active: G,
                checkable: le,
                disableCheckbox: $e,
                disabled: Te,
                selectable: De
              },
              Y
            ),
            {
              dataRef: Y,
              data: Y,
              isLeaf: M.value,
              checked: $.value,
              expanded: S.value,
              loading: x.value,
              selected: C.value,
              halfChecked: w.value
            }
          )
        }),
        D = tn(),
        F = P(() => {
          const { eventKey: Y } = e,
            { keyEntities: G } = l.value,
            { parent: le } = G[Y] || {}
          return p(p({}, Bi(p({}, e, b.value))), { parent: le })
        }),
        H = dt({
          eventData: F,
          eventKey: P(() => e.eventKey),
          selectHandle: A,
          pos: _,
          key: D.vnode.key
        })
      r(H)
      const B = Y => {
          const { onNodeDoubleClick: G } = l.value
          G(Y, F.value)
        },
        X = Y => {
          if (E.value) return
          const { onNodeSelect: G } = l.value
          Y.preventDefault(), G(Y, F.value)
        },
        ee = Y => {
          if (E.value) return
          const { disableCheckbox: G } = e,
            { onNodeCheck: le } = l.value
          if (!R.value || G) return
          Y.preventDefault()
          const $e = !$.value
          le(Y, F.value, $e)
        },
        de = Y => {
          const { onNodeClick: G } = l.value
          G(Y, F.value), L.value ? X(Y) : ee(Y)
        },
        ie = Y => {
          const { onNodeMouseEnter: G } = l.value
          G(Y, F.value)
        },
        Q = Y => {
          const { onNodeMouseLeave: G } = l.value
          G(Y, F.value)
        },
        se = Y => {
          const { onNodeContextMenu: G } = l.value
          G(Y, F.value)
        },
        q = Y => {
          const { onNodeDragStart: G } = l.value
          Y.stopPropagation(), (i.value = !0), G(Y, H)
          try {
            Y.dataTransfer.setData('text/plain', '')
          } catch {}
        },
        K = Y => {
          const { onNodeDragEnter: G } = l.value
          Y.preventDefault(), Y.stopPropagation(), G(Y, H)
        },
        U = Y => {
          const { onNodeDragOver: G } = l.value
          Y.preventDefault(), Y.stopPropagation(), G(Y, H)
        },
        ue = Y => {
          const { onNodeDragLeave: G } = l.value
          Y.stopPropagation(), G(Y, H)
        },
        me = Y => {
          const { onNodeDragEnd: G } = l.value
          Y.stopPropagation(), (i.value = !1), G(Y, H)
        },
        he = Y => {
          const { onNodeDrop: G } = l.value
          Y.preventDefault(), Y.stopPropagation(), (i.value = !1), G(Y, H)
        },
        Pe = Y => {
          const { onNodeExpand: G } = l.value
          x.value || G(Y, F.value)
        },
        ve = () => {
          const { data: Y } = e,
            { draggable: G } = l.value
          return !!(G && (!G.nodeDraggable || G.nodeDraggable(Y)))
        },
        ye = () => {
          const { draggable: Y, prefixCls: G } = l.value
          return Y && Y != null && Y.icon
            ? v('span', { class: `${G}-draggable-icon` }, [Y.icon])
            : null
        },
        te = () => {
          var Y, G, le
          const {
              switcherIcon: $e = o.switcherIcon ||
                ((Y = l.value.slots) === null || Y === void 0
                  ? void 0
                  : Y[
                      (le =
                        (G = e.data) === null || G === void 0
                          ? void 0
                          : G.slots) === null || le === void 0
                        ? void 0
                        : le.switcherIcon
                    ])
            } = e,
            { switcherIcon: Te } = l.value,
            De = $e || Te
          return typeof De == 'function' ? De(W.value) : De
        },
        Z = () => {
          const { loadData: Y, onNodeLoad: G } = l.value
          x.value ||
            (Y && S.value && !M.value && !z.value && !O.value && G(F.value))
        }
      We(() => {
        Z()
      }),
        An(() => {
          Z()
        })
      const fe = () => {
          const { prefixCls: Y } = l.value,
            G = te()
          if (M.value)
            return G !== !1
              ? v(
                  'span',
                  { class: oe(`${Y}-switcher`, `${Y}-switcher-noop`) },
                  [G]
                )
              : null
          const le = oe(`${Y}-switcher`, `${Y}-switcher_${S.value ? Yp : Jp}`)
          return G !== !1 ? v('span', { onClick: Pe, class: le }, [G]) : null
        },
        xe = () => {
          var Y, G
          const { disableCheckbox: le } = e,
            { prefixCls: $e } = l.value,
            Te = E.value
          return R.value
            ? v(
                'span',
                {
                  class: oe(
                    `${$e}-checkbox`,
                    $.value && `${$e}-checkbox-checked`,
                    !$.value && w.value && `${$e}-checkbox-indeterminate`,
                    (Te || le) && `${$e}-checkbox-disabled`
                  ),
                  onClick: ee
                },
                [
                  (G = (Y = l.value).customCheckable) === null || G === void 0
                    ? void 0
                    : G.call(Y)
                ]
              )
            : null
        },
        be = () => {
          const { prefixCls: Y } = l.value
          return v(
            'span',
            {
              class: oe(
                `${Y}-iconEle`,
                `${Y}-icon__${j.value || 'docu'}`,
                x.value && `${Y}-icon_loading`
              )
            },
            null
          )
        },
        Ce = () => {
          const { disabled: Y, eventKey: G } = e,
            {
              draggable: le,
              dropLevelOffset: $e,
              dropPosition: Te,
              prefixCls: De,
              indent: ae,
              dropIndicatorRender: ce,
              dragOverNodeKey: pe,
              direction: Se
            } = l.value
          return !Y && le !== !1 && pe === G
            ? ce({
                dropPosition: Te,
                dropLevelOffset: $e,
                indent: ae,
                prefixCls: De,
                direction: Se
              })
            : null
        },
        Ne = () => {
          var Y, G, le, $e, Te, De
          const { icon: ae = o.icon, data: ce } = e,
            pe =
              o.title ||
              ((Y = l.value.slots) === null || Y === void 0
                ? void 0
                : Y[
                    (le =
                      (G = e.data) === null || G === void 0
                        ? void 0
                        : G.slots) === null || le === void 0
                      ? void 0
                      : le.title
                  ]) ||
              (($e = l.value.slots) === null || $e === void 0
                ? void 0
                : $e.title) ||
              e.title,
            { prefixCls: Se, showIcon: Ie, icon: Ee, loadData: we } = l.value,
            ke = E.value,
            qe = `${Se}-node-content-wrapper`
          let Be
          if (Ie) {
            const xt =
              ae ||
              ((Te = l.value.slots) === null || Te === void 0
                ? void 0
                : Te[
                    (De = ce == null ? void 0 : ce.slots) === null ||
                    De === void 0
                      ? void 0
                      : De.icon
                  ]) ||
              Ee
            Be = xt
              ? v(
                  'span',
                  { class: oe(`${Se}-iconEle`, `${Se}-icon__customize`) },
                  [typeof xt == 'function' ? xt(W.value) : xt]
                )
              : be()
          } else we && x.value && (Be = be())
          let Ge
          typeof pe == 'function' ? (Ge = pe(W.value)) : (Ge = pe),
            (Ge = Ge === void 0 ? PM : Ge)
          const Je = v('span', { class: `${Se}-title` }, [Ge])
          return v(
            'span',
            {
              ref: A,
              title: typeof pe == 'string' ? pe : '',
              class: oe(
                `${qe}`,
                `${qe}-${j.value || 'normal'}`,
                !ke && (C.value || i.value) && `${Se}-node-selected`
              ),
              onMouseenter: ie,
              onMouseleave: Q,
              onContextmenu: se,
              onClick: de,
              onDblclick: B
            },
            [Be, Je, Ce()]
          )
        }
      return () => {
        const Y = p(p({}, e), n),
          {
            eventKey: G,
            isLeaf: le,
            isStart: $e,
            isEnd: Te,
            domRef: De,
            active: ae,
            data: ce,
            onMousemove: pe,
            selectable: Se
          } = Y,
          Ie = OM(Y, [
            'eventKey',
            'isLeaf',
            'isStart',
            'isEnd',
            'domRef',
            'active',
            'data',
            'onMousemove',
            'selectable'
          ]),
          {
            prefixCls: Ee,
            filterTreeNode: we,
            keyEntities: ke,
            dropContainerKey: qe,
            dropTargetKey: Be,
            draggingNodeKey: Ge
          } = l.value,
          Je = E.value,
          xt = fr(Ie, { aria: !0, data: !0 }),
          { level: Ot } = ke[G] || {},
          It = Te[Te.length - 1],
          gt = ve(),
          Nt = !Je && gt,
          Gt = Ge === G,
          sn = Se !== void 0 ? { 'aria-selected': !!Se } : void 0
        return v(
          'div',
          N(
            N(
              {
                ref: De,
                class: oe(n.class, `${Ee}-treenode`, {
                  [`${Ee}-treenode-disabled`]: Je,
                  [`${Ee}-treenode-switcher-${
                    S.value ? 'open' : 'close'
                  }`]: !le,
                  [`${Ee}-treenode-checkbox-checked`]: $.value,
                  [`${Ee}-treenode-checkbox-indeterminate`]: w.value,
                  [`${Ee}-treenode-selected`]: C.value,
                  [`${Ee}-treenode-loading`]: x.value,
                  [`${Ee}-treenode-active`]: ae,
                  [`${Ee}-treenode-leaf-last`]: It,
                  [`${Ee}-treenode-draggable`]: Nt,
                  dragging: Gt,
                  'drop-target': Be === G,
                  'drop-container': qe === G,
                  'drag-over': !Je && y.value,
                  'drag-over-gap-top': !Je && T.value,
                  'drag-over-gap-bottom': !Je && I.value,
                  'filter-node': we && we(F.value)
                }),
                style: n.style,
                draggable: Nt,
                'aria-grabbed': Gt,
                onDragstart: Nt ? q : void 0,
                onDragenter: gt ? K : void 0,
                onDragover: gt ? U : void 0,
                onDragleave: gt ? ue : void 0,
                onDrop: gt ? he : void 0,
                onDragend: gt ? me : void 0,
                onMousemove: pe
              },
              sn
            ),
            xt
          ),
          [
            v($M, { prefixCls: Ee, level: Ot, isStart: $e, isEnd: Te }, null),
            ye(),
            fe(),
            xe(),
            Ne()
          ]
        )
      }
    }
  })
globalThis && globalThis.__rest
function dn(e, t) {
  if (!e) return []
  const n = e.slice(),
    o = n.indexOf(t)
  return o >= 0 && n.splice(o, 1), n
}
function $n(e, t) {
  const n = (e || []).slice()
  return n.indexOf(t) === -1 && n.push(t), n
}
function Mu(e) {
  return e.split('-')
}
function Nb(e, t) {
  return `${e}-${t}`
}
function TM(e) {
  return e && e.type && e.type.isTreeNode
}
function IM(e, t) {
  const n = [],
    o = t[e]
  function r() {
    ;(arguments.length > 0 && arguments[0] !== void 0
      ? arguments[0]
      : []
    ).forEach(l => {
      let { key: a, children: s } = l
      n.push(a), r(s)
    })
  }
  return r(o.children), n
}
function EM(e) {
  if (e.parent) {
    const t = Mu(e.pos)
    return Number(t[t.length - 1]) === e.parent.children.length - 1
  }
  return !1
}
function _M(e) {
  const t = Mu(e.pos)
  return Number(t[t.length - 1]) === 0
}
function Qp(e, t, n, o, r, i, l, a, s, u) {
  var c
  const { clientX: d, clientY: f } = e,
    { top: m, height: g } = e.target.getBoundingClientRect(),
    b =
      ((u === 'rtl' ? -1 : 1) * (((r == null ? void 0 : r.x) || 0) - d) - 12) /
      o
  let S = a[n.eventKey]
  if (f < m + g / 2) {
    const _ = l.findIndex(M => M.key === S.key),
      A = _ <= 0 ? 0 : _ - 1,
      z = l[A].key
    S = a[z]
  }
  const C = S.key,
    $ = S,
    O = S.key
  let x = 0,
    w = 0
  if (!s.has(C))
    for (let _ = 0; _ < b && EM(S); _ += 1) (S = S.parent), (w += 1)
  const y = t.eventData,
    T = S.node
  let I = !0
  return (
    _M(S) &&
    S.level === 0 &&
    f < m + g / 2 &&
    i({ dragNode: y, dropNode: T, dropPosition: -1 }) &&
    S.key === n.eventKey
      ? (x = -1)
      : ($.children || []).length && s.has(O)
      ? i({ dragNode: y, dropNode: T, dropPosition: 0 })
        ? (x = 0)
        : (I = !1)
      : w === 0
      ? b > -1.5
        ? i({ dragNode: y, dropNode: T, dropPosition: 1 })
          ? (x = 1)
          : (I = !1)
        : i({ dragNode: y, dropNode: T, dropPosition: 0 })
        ? (x = 0)
        : i({ dragNode: y, dropNode: T, dropPosition: 1 })
        ? (x = 1)
        : (I = !1)
      : i({ dragNode: y, dropNode: T, dropPosition: 1 })
      ? (x = 1)
      : (I = !1),
    {
      dropPosition: x,
      dropLevelOffset: w,
      dropTargetKey: S.key,
      dropTargetPos: S.pos,
      dragOverNodeKey: O,
      dropContainerKey:
        x === 0
          ? null
          : ((c = S.parent) === null || c === void 0 ? void 0 : c.key) || null,
      dropAllowed: I
    }
  )
}
function Zp(e, t) {
  if (!e) return
  const { multiple: n } = t
  return n ? e.slice() : e.length ? [e[0]] : e
}
function Da(e) {
  if (!e) return null
  let t
  if (Array.isArray(e)) t = { checkedKeys: e, halfCheckedKeys: void 0 }
  else if (typeof e == 'object')
    t = {
      checkedKeys: e.checked || void 0,
      halfCheckedKeys: e.halfChecked || void 0
    }
  else return null
  return t
}
function Ns(e, t) {
  const n = new Set()
  function o(r) {
    if (n.has(r)) return
    const i = t[r]
    if (!i) return
    n.add(r)
    const { parent: l, node: a } = i
    a.disabled || (l && o(l.key))
  }
  return (
    (e || []).forEach(r => {
      o(r)
    }),
    [...n]
  )
}
var RM =
  (globalThis && globalThis.__rest) ||
  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 ri(e, t) {
  return e ?? t
}
function Kl(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 Bs(e) {
  function t() {
    let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
    return Tt(n).map(r => {
      var i, l, a, s
      if (!TM(r)) return null
      const u = r.children || {},
        c = r.key,
        d = {}
      for (const [_, A] of Object.entries(r.props)) d[cr(_)] = A
      const {
          isLeaf: f,
          checkable: m,
          selectable: g,
          disabled: h,
          disableCheckbox: b
        } = d,
        S = {
          isLeaf: f || f === '' || void 0,
          checkable: m || m === '' || void 0,
          selectable: g || g === '' || void 0,
          disabled: h || h === '' || void 0,
          disableCheckbox: b || b === '' || void 0
        },
        C = p(p({}, d), S),
        {
          title: $ = (i = u.title) === null || i === void 0
            ? void 0
            : i.call(u, C),
          icon: O = (l = u.icon) === null || l === void 0
            ? void 0
            : l.call(u, C),
          switcherIcon: x = (a = u.switcherIcon) === null || a === void 0
            ? void 0
            : a.call(u, C)
        } = d,
        w = RM(d, ['title', 'icon', 'switcherIcon']),
        y = (s = u.default) === null || s === void 0 ? void 0 : s.call(u),
        T = p(
          p(p({}, w), {
            title: $,
            icon: O,
            switcherIcon: x,
            key: c,
            isLeaf: f
          }),
          S
        ),
        I = t(y)
      return I.length && (T.children = I), T
    })
  }
  return t(e)
}
function AM(e, t, n) {
  const { _title: o, key: r, children: i } = Kl(n),
    l = new Set(t === !0 ? [] : t),
    a = []
  function s(u) {
    let c =
      arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null
    return u.map((d, f) => {
      const m = Nb(c ? c.pos : '0', f),
        g = ri(d[r], m)
      let h
      for (let S = 0; S < o.length; S += 1) {
        const C = o[S]
        if (d[C] !== void 0) {
          h = d[C]
          break
        }
      }
      const b = p(p({}, rt(d, [...o, r, i])), {
        title: h,
        key: g,
        parent: c,
        pos: m,
        children: null,
        data: d,
        isStart: [...(c ? c.isStart : []), f === 0],
        isEnd: [...(c ? c.isEnd : []), f === u.length - 1]
      })
      return (
        a.push(b),
        t === !0 || l.has(g)
          ? (b.children = s(d[i] || [], b))
          : (b.children = []),
        b
      )
    })
  }
  return s(e), a
}
function DM(e, t, n) {
  let o = {}
  typeof n == 'object' ? (o = n) : (o = { externalGetKey: n }), (o = o || {})
  const { childrenPropName: r, externalGetKey: i, fieldNames: l } = o,
    { key: a, children: s } = Kl(l),
    u = r || s
  let c
  i
    ? typeof i == 'string'
      ? (c = f => f[i])
      : typeof i == 'function' && (c = f => i(f))
    : (c = (f, m) => ri(f[a], m))
  function d(f, m, g, h) {
    const b = f ? f[u] : e,
      S = f ? Nb(g.pos, m) : '0',
      C = f ? [...h, f] : []
    if (f) {
      const $ = c(f, S),
        O = {
          node: f,
          index: m,
          pos: S,
          key: $,
          parentPos: g.node ? g.pos : null,
          level: g.level + 1,
          nodes: C
        }
      t(O)
    }
    b &&
      b.forEach(($, O) => {
        d($, O, { node: f, pos: S, level: g ? g.level + 1 : -1 }, C)
      })
  }
  d(null)
}
function Nu(e) {
  let {
      initWrapper: t,
      processEntity: n,
      onProcessFinished: o,
      externalGetKey: r,
      childrenPropName: i,
      fieldNames: l
    } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
    a = arguments.length > 2 ? arguments[2] : void 0
  const s = r || a,
    u = {},
    c = {}
  let d = { posEntities: u, keyEntities: c }
  return (
    t && (d = t(d) || d),
    DM(
      e,
      f => {
        const {
            node: m,
            index: g,
            pos: h,
            key: b,
            parentPos: S,
            level: C,
            nodes: $
          } = f,
          O = { node: m, nodes: $, index: g, key: b, pos: h, level: C },
          x = ri(b, h)
        ;(u[h] = O),
          (c[x] = O),
          (O.parent = u[S]),
          O.parent &&
            ((O.parent.children = O.parent.children || []),
            O.parent.children.push(O)),
          n && n(O, d)
      },
      { externalGetKey: s, childrenPropName: i, fieldNames: l }
    ),
    o && o(d),
    d
  )
}
function Ni(e, t) {
  let {
    expandedKeysSet: n,
    selectedKeysSet: o,
    loadedKeysSet: r,
    loadingKeysSet: i,
    checkedKeysSet: l,
    halfCheckedKeysSet: a,
    dragOverNodeKey: s,
    dropPosition: u,
    keyEntities: c
  } = t
  const d = c[e]
  return {
    eventKey: e,
    expanded: n.has(e),
    selected: o.has(e),
    loaded: r.has(e),
    loading: i.has(e),
    checked: l.has(e),
    halfChecked: a.has(e),
    pos: String(d ? d.pos : ''),
    parent: d.parent,
    dragOver: s === e && u === 0,
    dragOverGapTop: s === e && u === -1,
    dragOverGapBottom: s === e && u === 1
  }
}
function Bi(e) {
  const {
      data: t,
      expanded: n,
      selected: o,
      checked: r,
      loaded: i,
      loading: l,
      halfChecked: a,
      dragOver: s,
      dragOverGapTop: u,
      dragOverGapBottom: c,
      pos: d,
      active: f,
      eventKey: m
    } = e,
    g = p(p({ dataRef: t }, t), {
      expanded: n,
      selected: o,
      checked: r,
      loaded: i,
      loading: l,
      halfChecked: a,
      dragOver: s,
      dragOverGapTop: u,
      dragOverGapBottom: c,
      pos: d,
      active: f,
      eventKey: m,
      key: m
    })
  return (
    'props' in g ||
      Object.defineProperty(g, 'props', {
        get() {
          return e
        }
      }),
    g
  )
}
function Bb(e, t) {
  const n = new Set()
  return (
    e.forEach(o => {
      t.has(o) || n.add(o)
    }),
    n
  )
}
function MM(e) {
  const { disabled: t, disableCheckbox: n, checkable: o } = e || {}
  return !!(t || n) || o === !1
}
function NM(e, t, n, o) {
  const r = new Set(e),
    i = new Set()
  for (let a = 0; a <= n; a += 1)
    (t.get(a) || new Set()).forEach(u => {
      const { key: c, node: d, children: f = [] } = u
      r.has(c) &&
        !o(d) &&
        f
          .filter(m => !o(m.node))
          .forEach(m => {
            r.add(m.key)
          })
    })
  const l = new Set()
  for (let a = n; a >= 0; a -= 1)
    (t.get(a) || new Set()).forEach(u => {
      const { parent: c, node: d } = u
      if (o(d) || !u.parent || l.has(u.parent.key)) return
      if (o(u.parent.node)) {
        l.add(c.key)
        return
      }
      let f = !0,
        m = !1
      ;(c.children || [])
        .filter(g => !o(g.node))
        .forEach(g => {
          let { key: h } = g
          const b = r.has(h)
          f && !b && (f = !1), !m && (b || i.has(h)) && (m = !0)
        }),
        f && r.add(c.key),
        m && i.add(c.key),
        l.add(c.key)
    })
  return { checkedKeys: Array.from(r), halfCheckedKeys: Array.from(Bb(i, r)) }
}
function BM(e, t, n, o, r) {
  const i = new Set(e)
  let l = new Set(t)
  for (let s = 0; s <= o; s += 1)
    (n.get(s) || new Set()).forEach(c => {
      const { key: d, node: f, children: m = [] } = c
      !i.has(d) &&
        !l.has(d) &&
        !r(f) &&
        m
          .filter(g => !r(g.node))
          .forEach(g => {
            i.delete(g.key)
          })
    })
  l = new Set()
  const a = new Set()
  for (let s = o; s >= 0; s -= 1)
    (n.get(s) || new Set()).forEach(c => {
      const { parent: d, node: f } = c
      if (r(f) || !c.parent || a.has(c.parent.key)) return
      if (r(c.parent.node)) {
        a.add(d.key)
        return
      }
      let m = !0,
        g = !1
      ;(d.children || [])
        .filter(h => !r(h.node))
        .forEach(h => {
          let { key: b } = h
          const S = i.has(b)
          m && !S && (m = !1), !g && (S || l.has(b)) && (g = !0)
        }),
        m || i.delete(d.key),
        g && l.add(d.key),
        a.add(d.key)
    })
  return { checkedKeys: Array.from(i), halfCheckedKeys: Array.from(Bb(l, i)) }
}
function qo(e, t, n, o, r, i) {
  let l
  i ? (l = i) : (l = MM)
  const a = new Set(e.filter(u => !!n[u]))
  let s
  return (
    t === !0 ? (s = NM(a, r, o, l)) : (s = BM(a, t.halfCheckedKeys, r, o, l)), s
  )
}
function zb(e) {
  const t = ne(0),
    n = V()
  return (
    Me(() => {
      const o = new Map()
      let r = 0
      const i = e.value || {}
      for (const l in i)
        if (Object.prototype.hasOwnProperty.call(i, l)) {
          const a = i[l],
            { level: s } = a
          let u = o.get(s)
          u || ((u = new Set()), o.set(s, u)), u.add(a), (r = Math.max(r, s))
        }
      ;(t.value = r), (n.value = o)
    }),
    { maxLevel: t, levelEntities: n }
  )
}
function ev(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) {
        zM(e, r, n[r])
      })
  }
  return e
}
function zM(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Bu = function(t, n) {
  var o = ev({}, t, n.attrs)
  return v(et, ev({}, o, { icon: J0 }), null)
}
Bu.displayName = 'LeftOutlined'
Bu.inheritAttrs = !1
const tv = Bu,
  LM = () => Ht() && window.document.documentElement,
  Lb = e => {
    if (Ht() && window.document.documentElement) {
      const t = Array.isArray(e) ? e : [e],
        { documentElement: n } = window.document
      return t.some(o => o in n.style)
    }
    return !1
  },
  FM = (e, t) => {
    if (!Lb(e)) return !1
    const n = document.createElement('div'),
      o = n.style[e]
    return (n.style[e] = t), n.style[e] !== o
  }
function zu(e, t) {
  return !Array.isArray(e) && t !== void 0 ? FM(e, t) : Lb(e)
}
let wi
const HM = () => {
    if (!LM()) return !1
    if (wi !== void 0) return wi
    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),
      (wi = e.scrollHeight === 1),
      document.body.removeChild(e),
      wi
    )
  },
  kM = () => {
    const e = V(!1)
    return (
      We(() => {
        e.value = HM()
      }),
      e
    )
  },
  jM = new Ve('antCheckboxEffect', {
    '0%': { transform: 'scale(1)', opacity: 0.5 },
    '100%': { transform: 'scale(1.6)', opacity: 0 }
  }),
  KM = e => {
    const { checkboxCls: t } = e,
      n = `${t}-wrapper`
    return [
      {
        [`${t}-group`]: p(p({}, ct(e)), {
          display: 'inline-flex',
          flexWrap: 'wrap',
          columnGap: e.marginXS,
          [`> ${e.antCls}-row`]: { flex: 1 }
        }),
        [n]: p(p({}, ct(e)), {
          display: 'inline-flex',
          alignItems: 'baseline',
          cursor: 'pointer',
          '&:after': {
            display: 'inline-block',
            width: 0,
            overflow: 'hidden',
            content: "'\\a0'"
          },
          [`& + ${n}`]: { marginInlineStart: 0 },
          [`&${n}-in-form-item`]: {
            'input[type="checkbox"]': { width: 14, height: 14 }
          }
        }),
        [t]: p(p({}, ct(e)), {
          position: 'relative',
          whiteSpace: 'nowrap',
          lineHeight: 1,
          cursor: 'pointer',
          alignSelf: 'center',
          [`${t}-input`]: {
            position: 'absolute',
            inset: 0,
            zIndex: 1,
            cursor: 'pointer',
            opacity: 0,
            margin: 0,
            [`&:focus-visible + ${t}-inner`]: p({}, En(e))
          },
          [`${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}`
            }
          },
          '& + span': {
            paddingInlineStart: e.paddingXS,
            paddingInlineEnd: e.paddingXS
          }
        })
      },
      {
        [t]: {
          '&-indeterminate': {
            [`${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: '""'
              }
            }
          }
        }
      },
      {
        [`${n}:hover ${t}:after`]: { visibility: 'visible' },
        [`
        ${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
          }
        }
      },
      {
        [`${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}`
            }
          },
          '&:after': {
            position: 'absolute',
            top: 0,
            insetInlineStart: 0,
            width: '100%',
            height: '100%',
            borderRadius: e.borderRadiusSM,
            visibility: 'hidden',
            border: `${e.lineWidthBold}px solid ${e.colorPrimary}`,
            animationName: jM,
            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 }
        }
      },
      {
        [`${n}-disabled`]: { cursor: 'not-allowed' },
        [`${t}-disabled`]: {
          [`&, ${t}-input`]: { cursor: 'not-allowed', pointerEvents: 'none' },
          [`${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 Fb(e, t) {
  const n = Ze(t, {
    checkboxCls: `.${e}`,
    checkboxSize: t.controlInteractiveSize
  })
  return [KM(n)]
}
const Hb = pt('Checkbox', (e, t) => {
    let { prefixCls: n } = t
    return [Fb(n, e)]
  }),
  WM = () => ({
    name: String,
    prefixCls: String,
    options: $t([]),
    disabled: Boolean,
    id: String
  }),
  VM = () =>
    p(p({}, WM()), {
      defaultValue: $t(),
      value: $t(),
      onChange: _e(),
      'onUpdate:value': _e()
    }),
  GM = () => ({
    prefixCls: String,
    defaultChecked: Re(),
    checked: Re(),
    disabled: Re(),
    isGroup: Re(),
    value: k.any,
    name: String,
    id: String,
    indeterminate: Re(),
    type: at('checkbox'),
    autofocus: Re(),
    onChange: _e(),
    'onUpdate:checked': _e(),
    onClick: _e(),
    skipGroup: Re(!1)
  }),
  UM = () => p(p({}, GM()), { indeterminate: Re(!1) }),
  kb = Symbol('CheckboxGroupContext')
var nv =
  (globalThis && globalThis.__rest) ||
  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 Pn = J({
    compatConfig: { MODE: 3 },
    name: 'ACheckbox',
    inheritAttrs: !1,
    __ANT_CHECKBOX: !0,
    props: UM(),
    setup(e, t) {
      let { emit: n, attrs: o, slots: r, expose: i } = t
      const l = Ao(),
        a = _n.useInject(),
        { prefixCls: s, direction: u, disabled: c } = je('checkbox', e),
        d = In(),
        [f, m] = Hb(s),
        g = Ue(kb, void 0),
        h = Symbol('checkboxUniId'),
        b = P(() => (g == null ? void 0 : g.disabled.value) || c.value)
      Me(() => {
        !e.skipGroup && g && g.registerValue(h, e.value)
      }),
        Qe(() => {
          g && g.cancelValue(h)
        }),
        We(() => {
          kt(!!(e.checked !== void 0 || g || e.value === void 0))
        })
      const S = x => {
          const w = x.target.checked
          n('update:checked', w), n('change', x), l.onFieldChange()
        },
        C = ne()
      return (
        i({
          focus: () => {
            var x
            ;(x = C.value) === null || x === void 0 || x.focus()
          },
          blur: () => {
            var x
            ;(x = C.value) === null || x === void 0 || x.blur()
          }
        }),
        () => {
          var x
          const w = yt(
              (x = r.default) === null || x === void 0 ? void 0 : x.call(r)
            ),
            { indeterminate: y, skipGroup: T, id: I = l.id.value } = e,
            _ = nv(e, ['indeterminate', 'skipGroup', 'id']),
            {
              onMouseenter: A,
              onMouseleave: z,
              onInput: M,
              class: j,
              style: E
            } = o,
            R = nv(o, [
              'onMouseenter',
              'onMouseleave',
              'onInput',
              'class',
              'style'
            ]),
            L = p(p(p(p({}, _), { id: I, prefixCls: s.value }), R), {
              disabled: b.value
            })
          g && !T
            ? ((L.onChange = function() {
                for (
                  var H = arguments.length, B = new Array(H), X = 0;
                  X < H;
                  X++
                )
                  B[X] = arguments[X]
                n('change', ...B), g.toggleOption({ label: w, value: e.value })
              }),
              (L.name = g.name.value),
              (L.checked = g.mergedValue.value.includes(e.value)),
              (L.disabled = b.value || d.value),
              (L.indeterminate = y))
            : (L.onChange = S)
          const W = oe(
              {
                [`${s.value}-wrapper`]: !0,
                [`${s.value}-rtl`]: u.value === 'rtl',
                [`${s.value}-wrapper-checked`]: L.checked,
                [`${s.value}-wrapper-disabled`]: L.disabled,
                [`${s.value}-wrapper-in-form-item`]: a.isFormItemInput
              },
              j,
              m.value
            ),
            D = oe({ [`${s.value}-indeterminate`]: y }, m.value)
          return f(
            v(
              'label',
              { class: W, style: E, onMouseenter: A, onMouseleave: z },
              [
                v(
                  vb,
                  N(
                    N({ 'aria-checked': y ? 'mixed' : void 0 }, L),
                    {},
                    { class: D, ref: C }
                  ),
                  null
                ),
                w.length ? v('span', null, [w]) : null
              ]
            )
          )
        }
      )
    }
  }),
  zs = J({
    compatConfig: { MODE: 3 },
    name: 'ACheckboxGroup',
    inheritAttrs: !1,
    props: VM(),
    setup(e, t) {
      let { slots: n, attrs: o, emit: r, expose: i } = t
      const l = Ao(),
        { prefixCls: a, direction: s } = je('checkbox', e),
        u = P(() => `${a.value}-group`),
        [c, d] = Hb(u),
        f = ne((e.value === void 0 ? e.defaultValue : e.value) || [])
      ge(
        () => e.value,
        () => {
          f.value = e.value || []
        }
      )
      const m = P(() =>
          e.options.map(O =>
            typeof O == 'string' || typeof O == 'number'
              ? { label: O, value: O }
              : O
          )
        ),
        g = ne(Symbol()),
        h = ne(new Map()),
        b = O => {
          h.value.delete(O), (g.value = Symbol())
        },
        S = (O, x) => {
          h.value.set(O, x), (g.value = Symbol())
        },
        C = ne(new Map())
      return (
        ge(g, () => {
          const O = new Map()
          for (const x of h.value.values()) O.set(x, !0)
          C.value = O
        }),
        Ye(kb, {
          cancelValue: b,
          registerValue: S,
          toggleOption: O => {
            const x = f.value.indexOf(O.value),
              w = [...f.value]
            x === -1 ? w.push(O.value) : w.splice(x, 1),
              e.value === void 0 && (f.value = w)
            const y = w
              .filter(T => C.value.has(T))
              .sort((T, I) => {
                const _ = m.value.findIndex(z => z.value === T),
                  A = m.value.findIndex(z => z.value === I)
                return _ - A
              })
            r('update:value', y), r('change', y), l.onFieldChange()
          },
          mergedValue: f,
          name: P(() => e.name),
          disabled: P(() => e.disabled)
        }),
        i({ mergedValue: f }),
        () => {
          var O
          const { id: x = l.id.value } = e
          let w = null
          return (
            m.value &&
              m.value.length > 0 &&
              (w = m.value.map(y => {
                var T
                return v(
                  Pn,
                  {
                    prefixCls: a.value,
                    key: y.value.toString(),
                    disabled: 'disabled' in y ? y.disabled : e.disabled,
                    indeterminate: y.indeterminate,
                    value: y.value,
                    checked: f.value.indexOf(y.value) !== -1,
                    onChange: y.onChange,
                    class: `${u.value}-item`
                  },
                  {
                    default: () => [
                      n.label !== void 0
                        ? (T = n.label) === null || T === void 0
                          ? void 0
                          : T.call(n, y)
                        : y.label
                    ]
                  }
                )
              })),
            c(
              v(
                'div',
                N(
                  N({}, o),
                  {},
                  {
                    class: [
                      u.value,
                      { [`${u.value}-rtl`]: s.value === 'rtl' },
                      o.class,
                      d.value
                    ],
                    id: x
                  }
                ),
                [
                  w ||
                    ((O = n.default) === null || O === void 0
                      ? void 0
                      : O.call(n))
                ]
              )
            )
          )
        }
      )
    }
  })
Pn.Group = zs
Pn.install = function(e) {
  return e.component(Pn.name, Pn), e.component(zs.name, zs), e
}
let zi = p({}, jn.Modal)
function XM(e) {
  e ? (zi = p(p({}, zi), e)) : (zi = p({}, jn.Modal))
}
function Ij() {
  return zi
}
const Ls = 'internalMark',
  Li = J({
    compatConfig: { MODE: 3 },
    name: 'ALocaleProvider',
    props: { locale: { type: Object }, ANT_MARK__: String },
    setup(e, t) {
      let { slots: n } = t
      kt(e.ANT_MARK__ === Ls)
      const o = dt({
        antLocale: p(p({}, e.locale), { exist: !0 }),
        ANT_MARK__: Ls
      })
      return (
        Ye('localeData', o),
        ge(
          () => e.locale,
          r => {
            XM(r && r.Modal), (o.antLocale = p(p({}, r), { exist: !0 }))
          },
          { immediate: !0 }
        ),
        () => {
          var r
          return (r = n.default) === null || r === void 0 ? void 0 : r.call(n)
        }
      )
    }
  })
Li.install = function(e) {
  return e.component(Li.name, Li), e
}
const qM = Po(Li),
  jb = J({
    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 l = P(() => (e.duration === void 0 ? 4.5 : e.duration)),
        a = () => {
          l.value &&
            !i &&
            (r = setTimeout(() => {
              u()
            }, l.value * 1e3))
        },
        s = () => {
          r && (clearTimeout(r), (r = null))
        },
        u = d => {
          d && d.stopPropagation(), s()
          const { onClose: f, noticeKey: m } = e
          f && f(m)
        },
        c = () => {
          s(), a()
        }
      return (
        We(() => {
          a()
        }),
        Gn(() => {
          ;(i = !0), s()
        }),
        ge(
          [l, () => e.updateMark, () => e.visible],
          (d, f) => {
            let [m, g, h] = d,
              [b, S, C] = f
            ;(m !== b || g !== S || (h !== C && C)) && c()
          },
          { flush: 'post' }
        ),
        () => {
          var d, f
          const {
              prefixCls: m,
              closable: g,
              closeIcon: h = (d = o.closeIcon) === null || d === void 0
                ? void 0
                : d.call(o),
              onClick: b,
              holder: S
            } = e,
            { class: C, style: $ } = n,
            O = `${m}-notice`,
            x = Object.keys(n).reduce(
              (y, T) => (
                (T.startsWith('data-') ||
                  T.startsWith('aria-') ||
                  T === 'role') &&
                  (y[T] = n[T]),
                y
              ),
              {}
            ),
            w = v(
              'div',
              N(
                {
                  class: oe(O, C, { [`${O}-closable`]: g }),
                  style: $,
                  onMouseenter: s,
                  onMouseleave: a,
                  onClick: b
                },
                x
              ),
              [
                v('div', { class: `${O}-content` }, [
                  (f = o.default) === null || f === void 0 ? void 0 : f.call(o)
                ]),
                g
                  ? v('a', { tabindex: 0, onClick: u, class: `${O}-close` }, [
                      h || v('span', { class: `${O}-close-x` }, null)
                    ])
                  : null
              ]
            )
          return S ? v(pc, { to: S }, { default: () => w }) : w
        }
      )
    }
  })
var YM =
  (globalThis && globalThis.__rest) ||
  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 ov = 0
const JM = Date.now()
function rv() {
  const e = ov
  return (ov += 1), `rcNotification_${JM}_${e}`
}
const Fs = J({
  name: 'Notification',
  inheritAttrs: !1,
  props: [
    'prefixCls',
    'transitionName',
    'animation',
    'maxCount',
    'closeIcon',
    'hashId'
  ],
  setup(e, t) {
    let { attrs: n, expose: o, slots: r } = t
    const i = new Map(),
      l = ne([]),
      a = P(() => {
        const { prefixCls: c, animation: d = 'fade' } = e
        let f = e.transitionName
        return !f && d && (f = `${c}-${d}`), Yg(f)
      }),
      s = (c, d) => {
        const f = c.key || rv(),
          m = p(p({}, c), { key: f }),
          { maxCount: g } = e,
          h = l.value.map(S => S.notice.key).indexOf(f),
          b = l.value.concat()
        h !== -1
          ? b.splice(h, 1, { notice: m, holderCallback: d })
          : (g &&
              l.value.length >= g &&
              ((m.key = b[0].notice.key),
              (m.updateMark = rv()),
              (m.userPassKey = f),
              b.shift()),
            b.push({ notice: m, holderCallback: d })),
          (l.value = b)
      },
      u = c => {
        l.value = vn(l.value).filter(d => {
          let {
            notice: { key: f, userPassKey: m }
          } = d
          return (m || f) !== c
        })
      }
    return (
      o({ add: s, remove: u, notices: l }),
      () => {
        var c
        const {
            prefixCls: d,
            closeIcon: f = (c = r.closeIcon) === null || c === void 0
              ? void 0
              : c.call(r, { prefixCls: d })
          } = e,
          m = l.value.map((h, b) => {
            let { notice: S, holderCallback: C } = h
            const $ = b === l.value.length - 1 ? S.updateMark : void 0,
              { key: O, userPassKey: x } = S,
              { content: w } = S,
              y = p(
                p(
                  p(
                    {
                      prefixCls: d,
                      closeIcon:
                        typeof f == 'function' ? f({ prefixCls: d }) : f
                    },
                    S
                  ),
                  S.props
                ),
                {
                  key: O,
                  noticeKey: x || O,
                  updateMark: $,
                  onClose: T => {
                    var I
                    u(T), (I = S.onClose) === null || I === void 0 || I.call(S)
                  },
                  onClick: S.onClick
                }
              )
            return C
              ? v(
                  'div',
                  {
                    key: O,
                    class: `${d}-hook-holder`,
                    ref: T => {
                      typeof O > 'u' ||
                        (T ? (i.set(O, T), C(T, y)) : i.delete(O))
                    }
                  },
                  null
                )
              : v(jb, N(N({}, y), {}, { class: oe(y.class, e.hashId) }), {
                  default: () => [
                    typeof w == 'function' ? w({ prefixCls: d }) : w
                  ]
                })
          }),
          g = { [d]: 1, [n.class]: !!n.class, [e.hashId]: !0 }
        return v(
          'div',
          { class: g, style: n.style || { top: '65px', left: '50%' } },
          [v(hm, N({ tag: 'div' }, a.value), { default: () => [m] })]
        )
      }
    )
  }
})
Fs.newInstance = function(t, n) {
  const o = t || {},
    {
      name: r = 'notification',
      getContainer: i,
      appContext: l,
      prefixCls: a,
      rootPrefixCls: s,
      transitionName: u,
      hasTransitionName: c,
      useStyle: d
    } = o,
    f = YM(o, [
      'name',
      'getContainer',
      'appContext',
      'prefixCls',
      'rootPrefixCls',
      'transitionName',
      'hasTransitionName',
      'useStyle'
    ]),
    m = document.createElement('div')
  i ? i().appendChild(m) : document.body.appendChild(m)
  const g = J({
      compatConfig: { MODE: 3 },
      name: 'NotificationWrapper',
      setup(b, S) {
        let { attrs: C } = S
        const $ = V(),
          O = P(() => Et.getPrefixCls(r, a)),
          [, x] = d(O)
        return (
          We(() => {
            n({
              notice(w) {
                var y
                ;(y = $.value) === null || y === void 0 || y.add(w)
              },
              removeNotice(w) {
                var y
                ;(y = $.value) === null || y === void 0 || y.remove(w)
              },
              destroy() {
                Qo(null, m), m.parentNode && m.parentNode.removeChild(m)
              },
              component: $
            })
          }),
          () => {
            const w = Et,
              y = w.getRootPrefixCls(s, O.value),
              T = c ? u : `${O.value}-${u}`
            return v(qN, N(N({}, w), {}, { prefixCls: y }), {
              default: () => [
                v(
                  Fs,
                  N(
                    N({ ref: $ }, C),
                    {},
                    { prefixCls: O.value, transitionName: T, hashId: x.value }
                  ),
                  null
                )
              ]
            })
          }
        )
      }
    }),
    h = v(g, f)
  ;(h.appContext = l || h.appContext), Qo(h, m)
}
const Kb = Fs
let iv = 0
const QM = Date.now()
function lv() {
  const e = iv
  return (iv += 1), `rcNotification_${QM}_${e}`
}
const ZM = J({
    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 = new Map(),
        i = P(() => e.notices),
        l = P(() => {
          let c = e.transitionName
          if (!c && e.animation)
            switch (typeof e.animation) {
              case 'string':
                c = e.animation
                break
              case 'function':
                c = e.animation().name
                break
              case 'object':
                c = e.animation.name
                break
              default:
                c = `${e.prefixCls}-fade`
                break
            }
          return Yg(c)
        }),
        a = c => e.remove(c),
        s = ne({})
      ge(i, () => {
        const c = {}
        Object.keys(s.value).forEach(d => {
          c[d] = []
        }),
          e.notices.forEach(d => {
            const { placement: f = 'topRight' } = d.notice
            f && ((c[f] = c[f] || []), c[f].push(d))
          }),
          (s.value = c)
      })
      const u = P(() => Object.keys(s.value))
      return () => {
        var c
        const {
            prefixCls: d,
            closeIcon: f = (c = o.closeIcon) === null || c === void 0
              ? void 0
              : c.call(o, { prefixCls: d })
          } = e,
          m = u.value.map(g => {
            var h, b
            const S = s.value[g],
              C =
                (h = e.getClassName) === null || h === void 0
                  ? void 0
                  : h.call(e, g),
              $ =
                (b = e.getStyles) === null || b === void 0
                  ? void 0
                  : b.call(e, g),
              O = S.map((y, T) => {
                let { notice: I, holderCallback: _ } = y
                const A = T === i.value.length - 1 ? I.updateMark : void 0,
                  { key: z, userPassKey: M } = I,
                  { content: j } = I,
                  E = p(
                    p(
                      p(
                        {
                          prefixCls: d,
                          closeIcon:
                            typeof f == 'function' ? f({ prefixCls: d }) : f
                        },
                        I
                      ),
                      I.props
                    ),
                    {
                      key: z,
                      noticeKey: M || z,
                      updateMark: A,
                      onClose: R => {
                        var L
                        a(R),
                          (L = I.onClose) === null || L === void 0 || L.call(I)
                      },
                      onClick: I.onClick
                    }
                  )
                return _
                  ? v(
                      'div',
                      {
                        key: z,
                        class: `${d}-hook-holder`,
                        ref: R => {
                          typeof z > 'u' ||
                            (R ? (r.set(z, R), _(R, E)) : r.delete(z))
                        }
                      },
                      null
                    )
                  : v(jb, N(N({}, E), {}, { class: oe(E.class, e.hashId) }), {
                      default: () => [
                        typeof j == 'function' ? j({ prefixCls: d }) : j
                      ]
                    })
              }),
              x = {
                [d]: 1,
                [`${d}-${g}`]: 1,
                [n.class]: !!n.class,
                [e.hashId]: !0,
                [C]: !!C
              }
            function w() {
              var y
              S.length > 0 ||
                (Reflect.deleteProperty(s.value, g),
                (y = e.onAllRemoved) === null || y === void 0 || y.call(e))
            }
            return v(
              'div',
              {
                key: g,
                class: x,
                style: n.style || $ || { top: '65px', left: '50%' }
              },
              [
                v(hm, N(N({ tag: 'div' }, l.value), {}, { onAfterLeave: w }), {
                  default: () => [O]
                })
              ]
            )
          })
        return v(eh, { getContainer: e.getContainer }, { default: () => [m] })
      }
    }
  }),
  eN = ZM
var tN =
  (globalThis && globalThis.__rest) ||
  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 nN = () => document.body
let av = 0
function oN() {
  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 l = r[i]
          l !== void 0 && (e[i] = l)
        })
    }),
    e
  )
}
function Wb() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
  const {
      getContainer: t = nN,
      motion: n,
      prefixCls: o,
      maxCount: r,
      getClassName: i,
      getStyles: l,
      onAllRemoved: a
    } = e,
    s = tN(e, [
      'getContainer',
      'motion',
      'prefixCls',
      'maxCount',
      'getClassName',
      'getStyles',
      'onAllRemoved'
    ]),
    u = V([]),
    c = V(),
    d = (S, C) => {
      const $ = S.key || lv(),
        O = p(p({}, S), { key: $ }),
        x = u.value.map(y => y.notice.key).indexOf($),
        w = u.value.concat()
      x !== -1
        ? w.splice(x, 1, { notice: O, holderCallback: C })
        : (r &&
            u.value.length >= r &&
            ((O.key = w[0].notice.key),
            (O.updateMark = lv()),
            (O.userPassKey = $),
            w.shift()),
          w.push({ notice: O, holderCallback: C })),
        (u.value = w)
    },
    f = S => {
      u.value = u.value.filter(C => {
        let {
          notice: { key: $, userPassKey: O }
        } = C
        return (O || $) !== S
      })
    },
    m = () => {
      u.value = []
    },
    g = () =>
      v(
        eN,
        {
          ref: c,
          prefixCls: o,
          maxCount: r,
          notices: u.value,
          remove: f,
          getClassName: i,
          getStyles: l,
          animation: n,
          hashId: e.hashId,
          onAllRemoved: a,
          getContainer: t
        },
        null
      ),
    h = V([]),
    b = {
      open: S => {
        const C = oN(s, S)
        ;(C.key === null || C.key === void 0) &&
          ((C.key = `vc-notification-${av}`), (av += 1)),
          (h.value = [...h.value, { type: 'open', config: C }])
      },
      close: S => {
        h.value = [...h.value, { type: 'close', key: S }]
      },
      destroy: () => {
        h.value = [...h.value, { type: 'destroy' }]
      }
    }
  return (
    ge(h, () => {
      h.value.length &&
        (h.value.forEach(S => {
          switch (S.type) {
            case 'open':
              d(S.config)
              break
            case 'close':
              f(S.key)
              break
            case 'destroy':
              m()
              break
          }
        }),
        (h.value = []))
    }),
    [b, g]
  )
}
const rN = e => {
    const {
        componentCls: t,
        iconCls: n,
        boxShadowSecondary: o,
        colorBgElevated: r,
        colorSuccess: i,
        colorError: l,
        colorWarning: a,
        colorInfo: s,
        fontSizeLG: u,
        motionEaseInOutCirc: c,
        motionDurationSlow: d,
        marginXS: f,
        paddingXS: m,
        borderRadiusLG: g,
        zIndexPopup: h,
        messageNoticeContentPadding: b
      } = e,
      S = new Ve('MessageMoveIn', {
        '0%': { padding: 0, transform: 'translateY(-100%)', opacity: 0 },
        '100%': { padding: m, transform: 'translateY(0)', opacity: 1 }
      }),
      C = new Ve('MessageMoveOut', {
        '0%': { maxHeight: e.height, padding: m, opacity: 1 },
        '100%': { maxHeight: 0, padding: 0, opacity: 0 }
      })
    return [
      {
        [t]: p(p({}, ct(e)), {
          position: 'fixed',
          top: f,
          left: '50%',
          transform: 'translateX(-50%)',
          width: '100%',
          pointerEvents: 'none',
          zIndex: h,
          [`${t}-move-up`]: { animationFillMode: 'forwards' },
          [`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]: {
            animationName: S,
            animationDuration: d,
            animationPlayState: 'paused',
            animationTimingFunction: c
          },
          [`
        ${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: C,
            animationDuration: d,
            animationPlayState: 'paused',
            animationTimingFunction: c
          },
          [`${t}-move-up-leave${t}-move-up-leave-active`]: {
            animationPlayState: 'running'
          },
          '&-rtl': { direction: 'rtl', span: { direction: 'rtl' } }
        })
      },
      {
        [`${t}-notice`]: {
          padding: m,
          textAlign: 'center',
          [n]: {
            verticalAlign: 'text-bottom',
            marginInlineEnd: f,
            fontSize: u
          },
          [`${t}-notice-content`]: {
            display: 'inline-block',
            padding: b,
            background: r,
            borderRadius: g,
            boxShadow: o,
            pointerEvents: 'all'
          },
          [`${t}-success ${n}`]: { color: i },
          [`${t}-error ${n}`]: { color: l },
          [`${t}-warning ${n}`]: { color: a },
          [`
        ${t}-info ${n},
        ${t}-loading ${n}`]: { color: s }
        }
      },
      { [`${t}-notice-pure-panel`]: { padding: 0, textAlign: 'start' } }
    ]
  },
  Vb = pt(
    'Message',
    e => {
      const t = Ze(e, {
        messageNoticeContentPadding: `${(e.controlHeightLG -
          e.fontSize * e.lineHeight) /
          2}px ${e.paddingSM}px`
      })
      return [rN(t)]
    },
    e => ({ height: 150, zIndexPopup: e.zIndexPopupBase + 10 })
  ),
  iN = {
    info: v(Fl, null, null),
    success: v(Ll, null, null),
    error: v(Ro, null, null),
    warning: v(ni, null, null),
    loading: v(xo, null, null)
  },
  lN = J({
    name: 'PureContent',
    inheritAttrs: !1,
    props: ['prefixCls', 'type', 'icon'],
    setup(e, t) {
      let { slots: n } = t
      return () => {
        var o
        return v(
          'div',
          {
            class: oe(
              `${e.prefixCls}-custom-content`,
              `${e.prefixCls}-${e.type}`
            )
          },
          [
            e.icon || iN[e.type],
            v('span', null, [
              (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
            ])
          ]
        )
      }
    }
  })
var aN =
  (globalThis && globalThis.__rest) ||
  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 sN = 8,
  cN = 3,
  uN = J({
    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: l } = je('message', e),
        a = P(() => i('message', e.prefixCls)),
        [, s] = Vb(a),
        u = () => {
          var h
          const b = (h = e.top) !== null && h !== void 0 ? h : sN
          return {
            left: '50%',
            transform: 'translateX(-50%)',
            top: typeof b == 'number' ? `${b}px` : b
          }
        },
        c = () => oe(s.value, e.rtl ? `${a.value}-rtl` : ''),
        d = () => {
          var h
          return Ec({
            prefixCls: a.value,
            animation:
              (h = e.animation) !== null && h !== void 0 ? h : 'move-up',
            transitionName: e.transitionName
          })
        },
        f = v('span', { class: `${a.value}-close-x` }, [
          v(ti, { class: `${a.value}-close-icon` }, null)
        ]),
        [m, g] = Wb({
          getStyles: u,
          prefixCls: a.value,
          getClassName: c,
          motion: d,
          closable: !1,
          closeIcon: f,
          duration: (o = e.duration) !== null && o !== void 0 ? o : cN,
          getContainer:
            (r = e.staticGetContainer) !== null && r !== void 0 ? r : l.value,
          maxCount: e.maxCount,
          onAllRemoved: e.onAllRemoved
        })
      return n(p(p({}, m), { prefixCls: a, hashId: s })), g
    }
  })
let sv = 0
function dN(e) {
  const t = V(null),
    n = Symbol('messageHolderKey'),
    o = s => {
      var u
      ;(u = t.value) === null || u === void 0 || u.close(s)
    },
    r = s => {
      if (!t.value) {
        const x = () => {}
        return (x.then = () => {}), x
      }
      const { open: u, prefixCls: c, hashId: d } = t.value,
        f = `${c}-notice`,
        { content: m, icon: g, type: h, key: b, class: S, onClose: C } = s,
        $ = aN(s, ['content', 'icon', 'type', 'key', 'class', 'onClose'])
      let O = b
      return (
        O == null && ((sv += 1), (O = `antd-message-${sv}`)),
        MS(
          x => (
            u(
              p(p({}, $), {
                key: O,
                content: () =>
                  v(
                    lN,
                    {
                      prefixCls: c,
                      type: h,
                      icon: typeof g == 'function' ? g() : g
                    },
                    { default: () => [typeof m == 'function' ? m() : m] }
                  ),
                placement: 'top',
                class: oe(h && `${f}-${h}`, d, S),
                onClose: () => {
                  C == null || C(), x()
                }
              })
            ),
            () => {
              o(O)
            }
          )
        )
      )
    },
    l = {
      open: r,
      destroy: s => {
        var u
        s !== void 0
          ? o(s)
          : (u = t.value) === null || u === void 0 || u.destroy()
      }
    }
  return (
    ['info', 'success', 'warning', 'error', 'loading'].forEach(s => {
      const u = (c, d, f) => {
        let m
        c && typeof c == 'object' && 'content' in c
          ? (m = c)
          : (m = { content: c })
        let g, h
        typeof d == 'function' ? (h = d) : ((g = d), (h = f))
        const b = p(p({ onClose: h, duration: g }, m), { type: s })
        return r(b)
      }
      l[s] = u
    }),
    [l, () => v(uN, N(N({ key: n }, e), {}, { ref: t }), null)]
  )
}
function fN(e) {
  return dN(e)
}
let Gb = 3,
  Ub,
  Dt,
  pN = 1,
  Xb = '',
  qb = 'move-up',
  Yb = !1,
  Jb = () => document.body,
  Qb,
  Zb = !1
function vN() {
  return pN++
}
function mN(e) {
  e.top !== void 0 && ((Ub = e.top), (Dt = null)),
    e.duration !== void 0 && (Gb = e.duration),
    e.prefixCls !== void 0 && (Xb = e.prefixCls),
    e.getContainer !== void 0 && ((Jb = e.getContainer), (Dt = null)),
    e.transitionName !== void 0 &&
      ((qb = e.transitionName), (Dt = null), (Yb = !0)),
    e.maxCount !== void 0 && ((Qb = e.maxCount), (Dt = null)),
    e.rtl !== void 0 && (Zb = e.rtl)
}
function gN(e, t) {
  if (Dt) {
    t(Dt)
    return
  }
  Kb.newInstance(
    {
      appContext: e.appContext,
      prefixCls: e.prefixCls || Xb,
      rootPrefixCls: e.rootPrefixCls,
      transitionName: qb,
      hasTransitionName: Yb,
      style: { top: Ub },
      getContainer: Jb || e.getPopupContainer,
      maxCount: Qb,
      name: 'message',
      useStyle: Vb
    },
    n => {
      if (Dt) {
        t(Dt)
        return
      }
      ;(Dt = n), t(n)
    }
  )
}
const ey = { info: Fl, success: Ll, error: Ro, warning: ni, loading: xo },
  hN = Object.keys(ey)
function bN(e) {
  const t = e.duration !== void 0 ? e.duration : Gb,
    n = e.key || vN(),
    o = new Promise(i => {
      const l = () => (typeof e.onClose == 'function' && e.onClose(), i(!0))
      gN(e, a => {
        a.notice({
          key: n,
          duration: t,
          style: e.style || {},
          class: e.class,
          content: s => {
            let { prefixCls: u } = s
            const c = ey[e.type],
              d = c ? v(c, null, null) : '',
              f = oe(`${u}-custom-content`, {
                [`${u}-${e.type}`]: e.type,
                [`${u}-rtl`]: Zb === !0
              })
            return v('div', { class: f }, [
              typeof e.icon == 'function' ? e.icon() : e.icon || d,
              v('span', null, [
                typeof e.content == 'function' ? e.content() : e.content
              ])
            ])
          },
          onClose: l,
          onClick: e.onClick
        })
      })
    }),
    r = () => {
      Dt && Dt.removeNotice(n)
    }
  return (r.then = (i, l) => o.then(i, l)), (r.promise = o), r
}
function yN(e) {
  return Object.prototype.toString.call(e) === '[object Object]' && !!e.content
}
const Jr = {
  open: bN,
  config: mN,
  destroy(e) {
    if (Dt)
      if (e) {
        const { removeNotice: t } = Dt
        t(e)
      } else {
        const { destroy: t } = Dt
        t(), (Dt = null)
      }
  }
}
function SN(e, t) {
  e[t] = (n, o, r) =>
    yN(n)
      ? e.open(p(p({}, n), { type: t }))
      : (typeof o == 'function' && ((r = o), (o = void 0)),
        e.open({ content: n, duration: o, type: t, onClose: r }))
}
hN.forEach(e => SN(Jr, e))
Jr.warn = Jr.warning
Jr.useMessage = fN
const xN = Jr,
  CN = e => {
    const { componentCls: t, width: n, notificationMarginEdge: o } = e,
      r = new Ve('antNotificationTopFadeIn', {
        '0%': { marginTop: '-100%', opacity: 0 },
        '100%': { marginTop: 0, opacity: 1 }
      }),
      i = new Ve('antNotificationBottomFadeIn', {
        '0%': { marginBottom: '-100%', opacity: 0 },
        '100%': { marginBottom: 0, opacity: 1 }
      }),
      l = new Ve('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: l
        }
      }
    }
  },
  $N = CN,
  wN = e => {
    const {
        iconCls: t,
        componentCls: n,
        boxShadowSecondary: o,
        fontSizeLG: r,
        notificationMarginBottom: i,
        borderRadiusLG: l,
        colorSuccess: a,
        colorInfo: s,
        colorWarning: u,
        colorError: c,
        colorTextHeading: d,
        notificationBg: f,
        notificationPadding: m,
        notificationMarginEdge: g,
        motionDurationMid: h,
        motionEaseInOut: b,
        fontSize: S,
        lineHeight: C,
        width: $,
        notificationIconSize: O
      } = e,
      x = `${n}-notice`,
      w = new Ve('antNotificationFadeIn', {
        '0%': { left: { _skip_check_: !0, value: $ }, opacity: 0 },
        '100%': { left: { _skip_check_: !0, value: 0 }, opacity: 1 }
      }),
      y = new Ve('antNotificationFadeOut', {
        '0%': { maxHeight: e.animationMaxHeight, marginBottom: i, opacity: 1 },
        '100%': {
          maxHeight: 0,
          marginBottom: 0,
          paddingTop: 0,
          paddingBottom: 0,
          opacity: 0
        }
      })
    return [
      {
        [n]: p(
          p(
            p(p({}, ct(e)), {
              position: 'fixed',
              zIndex: e.zIndexPopup,
              marginInlineEnd: g,
              [`${n}-hook-holder`]: { position: 'relative' },
              [`&${n}-top, &${n}-bottom`]: {
                [`${n}-notice`]: { marginInline: 'auto auto' }
              },
              [`&${n}-topLeft, &${n}-bottomLeft`]: {
                [`${n}-notice`]: {
                  marginInlineEnd: 'auto',
                  marginInlineStart: 0
                }
              },
              [`${n}-fade-enter, ${n}-fade-appear`]: {
                animationDuration: e.motionDurationMid,
                animationTimingFunction: b,
                animationFillMode: 'both',
                opacity: 0,
                animationPlayState: 'paused'
              },
              [`${n}-fade-leave`]: {
                animationTimingFunction: b,
                animationFillMode: 'both',
                animationDuration: h,
                animationPlayState: 'paused'
              },
              [`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]: {
                animationName: w,
                animationPlayState: 'running'
              },
              [`${n}-fade-leave${n}-fade-leave-active`]: {
                animationName: y,
                animationPlayState: 'running'
              }
            }),
            $N(e)
          ),
          {
            '&-rtl': {
              direction: 'rtl',
              [`${n}-notice-btn`]: { float: 'left' }
            }
          }
        )
      },
      {
        [x]: {
          position: 'relative',
          width: $,
          maxWidth: `calc(100vw - ${g * 2}px)`,
          marginBottom: i,
          marginInlineStart: 'auto',
          padding: m,
          overflow: 'hidden',
          lineHeight: C,
          wordWrap: 'break-word',
          background: f,
          borderRadius: l,
          boxShadow: o,
          [`${n}-close-icon`]: { fontSize: S, cursor: 'pointer' },
          [`${x}-message`]: {
            marginBottom: e.marginXS,
            color: d,
            fontSize: r,
            lineHeight: e.lineHeightLG
          },
          [`${x}-description`]: { fontSize: S },
          [`&${x}-closable ${x}-message`]: { paddingInlineEnd: e.paddingLG },
          [`${x}-with-icon ${x}-message`]: {
            marginBottom: e.marginXS,
            marginInlineStart: e.marginSM + O,
            fontSize: r
          },
          [`${x}-with-icon ${x}-description`]: {
            marginInlineStart: e.marginSM + O,
            fontSize: S
          },
          [`${x}-icon`]: {
            position: 'absolute',
            fontSize: O,
            lineHeight: 0,
            [`&-success${t}`]: { color: a },
            [`&-info${t}`]: { color: s },
            [`&-warning${t}`]: { color: u },
            [`&-error${t}`]: { color: c }
          },
          [`${x}-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
            }
          },
          [`${x}-btn`]: { float: 'right', marginTop: e.marginSM }
        }
      },
      { [`${x}-pure-panel`]: { margin: 0 } }
    ]
  },
  ty = pt(
    'Notification',
    e => {
      const t = e.paddingMD,
        n = e.paddingLG,
        o = Ze(e, {
          notificationBg: e.colorBgElevated,
          notificationPaddingVertical: t,
          notificationPaddingHorizontal: n,
          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 [wN(o)]
    },
    e => ({ zIndexPopup: e.zIndexPopupBase + 50, width: 384 })
  )
function ON(e, t) {
  return (
    t ||
    v('span', { class: `${e}-close-x` }, [
      v(ti, { class: `${e}-close-icon` }, null)
    ])
  )
}
v(Fl, null, null),
  v(Ll, null, null),
  v(Ro, null, null),
  v(ni, null, null),
  v(xo, null, null)
const PN = { success: Ll, info: Fl, error: Ro, warning: ni }
function TN(e) {
  let {
      prefixCls: t,
      icon: n,
      type: o,
      message: r,
      description: i,
      btn: l
    } = e,
    a = null
  if (n) a = v('span', { class: `${t}-icon` }, [Fo(n)])
  else if (o) {
    const s = PN[o]
    a = v(s, { class: `${t}-icon ${t}-icon-${o}` }, null)
  }
  return v('div', { class: oe({ [`${t}-with-icon`]: a }), role: 'alert' }, [
    a,
    v('div', { class: `${t}-message` }, [r]),
    v('div', { class: `${t}-description` }, [i]),
    l && v('div', { class: `${t}-btn` }, [l])
  ])
}
function ny(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 IN(e) {
  return { name: `${e}-fade` }
}
var EN =
  (globalThis && globalThis.__rest) ||
  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 cv = 24,
  _N = 4.5,
  RN = J({
    name: 'Holder',
    inheritAttrs: !1,
    props: ['prefixCls', 'class', 'type', 'icon', 'content', 'onAllRemoved'],
    setup(e, t) {
      let { expose: n } = t
      const { getPrefixCls: o, getPopupContainer: r } = je('notification', e),
        i = P(() => e.prefixCls || o('notification')),
        l = f => {
          var m, g
          return ny(
            f,
            (m = e.top) !== null && m !== void 0 ? m : cv,
            (g = e.bottom) !== null && g !== void 0 ? g : cv
          )
        },
        [, a] = ty(i),
        s = () => oe(a.value, { [`${i.value}-rtl`]: e.rtl }),
        u = () => IN(i.value),
        [c, d] = Wb({
          prefixCls: i.value,
          getStyles: l,
          getClassName: s,
          motion: u,
          closable: !0,
          closeIcon: ON(i.value),
          duration: _N,
          getContainer: () => {
            var f, m
            return (
              ((f = e.getPopupContainer) === null || f === void 0
                ? void 0
                : f.call(e)) ||
              ((m = r.value) === null || m === void 0 ? void 0 : m.call(r)) ||
              document.body
            )
          },
          maxCount: e.maxCount,
          hashId: a.value,
          onAllRemoved: e.onAllRemoved
        })
      return n(p(p({}, c), { prefixCls: i.value, hashId: a })), d
    }
  })
function AN(e) {
  const t = V(null),
    n = Symbol('notificationHolderKey'),
    o = a => {
      if (!t.value) return
      const { open: s, prefixCls: u, hashId: c } = t.value,
        d = `${u}-notice`,
        { message: f, description: m, icon: g, type: h, btn: b, class: S } = a,
        C = EN(a, ['message', 'description', 'icon', 'type', 'btn', 'class'])
      return s(
        p(p({ placement: 'topRight' }, C), {
          content: () =>
            v(
              TN,
              {
                prefixCls: d,
                icon: typeof g == 'function' ? g() : g,
                type: h,
                message: typeof f == 'function' ? f() : f,
                description: typeof m == 'function' ? m() : m,
                btn: typeof b == 'function' ? b() : b
              },
              null
            ),
          class: oe(h && `${d}-${h}`, c, S)
        })
      )
    },
    i = {
      open: o,
      destroy: a => {
        var s, u
        a !== void 0
          ? (s = t.value) === null || s === void 0 || s.close(a)
          : (u = t.value) === null || u === void 0 || u.destroy()
      }
    }
  return (
    ['success', 'info', 'warning', 'error'].forEach(a => {
      i[a] = s => o(p(p({}, s), { type: a }))
    }),
    [i, () => v(RN, N(N({ key: n }, e), {}, { ref: t }), null)]
  )
}
function DN(e) {
  return AN(e)
}
globalThis && globalThis.__awaiter
const lo = {}
let oy = 4.5,
  ry = '24px',
  iy = '24px',
  Hs = '',
  ly = 'topRight',
  ay = () => document.body,
  sy = null,
  ks = !1,
  cy
function MN(e) {
  const {
    duration: t,
    placement: n,
    bottom: o,
    top: r,
    getContainer: i,
    closeIcon: l,
    prefixCls: a
  } = e
  a !== void 0 && (Hs = a),
    t !== void 0 && (oy = t),
    n !== void 0 && (ly = n),
    o !== void 0 && (iy = typeof o == 'number' ? `${o}px` : o),
    r !== void 0 && (ry = typeof r == 'number' ? `${r}px` : r),
    i !== void 0 && (ay = i),
    l !== void 0 && (sy = l),
    e.rtl !== void 0 && (ks = e.rtl),
    e.maxCount !== void 0 && (cy = e.maxCount)
}
function NN(e, t) {
  let {
    prefixCls: n,
    placement: o = ly,
    getContainer: r = ay,
    top: i,
    bottom: l,
    closeIcon: a = sy,
    appContext: s
  } = e
  const { getPrefixCls: u } = XN(),
    c = u('notification', n || Hs),
    d = `${c}-${o}-${ks}`,
    f = lo[d]
  if (f) {
    Promise.resolve(f).then(g => {
      t(g)
    })
    return
  }
  const m = oe(`${c}-${o}`, { [`${c}-rtl`]: ks === !0 })
  Kb.newInstance(
    {
      name: 'notification',
      prefixCls: n || Hs,
      useStyle: ty,
      class: m,
      style: ny(o, i ?? ry, l ?? iy),
      appContext: s,
      getContainer: r,
      closeIcon: g => {
        let { prefixCls: h } = g
        return v('span', { class: `${h}-close-x` }, [
          Fo(a, {}, v(ti, { class: `${h}-close-icon` }, null))
        ])
      },
      maxCount: cy,
      hasTransitionName: !0
    },
    g => {
      ;(lo[d] = g), t(g)
    }
  )
}
const BN = { success: H_, info: W_, error: G_, warning: j_ }
function zN(e) {
  const { icon: t, type: n, description: o, message: r, btn: i } = e,
    l = e.duration === void 0 ? oy : e.duration
  NN(e, a => {
    a.notice({
      content: s => {
        let { prefixCls: u } = s
        const c = `${u}-notice`
        let d = null
        if (t) d = () => v('span', { class: `${c}-icon` }, [Fo(t)])
        else if (n) {
          const f = BN[n]
          d = () => v(f, { class: `${c}-icon ${c}-icon-${n}` }, null)
        }
        return v('div', { class: d ? `${c}-with-icon` : '' }, [
          d && d(),
          v('div', { class: `${c}-message` }, [
            !o && d
              ? v(
                  'span',
                  { class: `${c}-message-single-line-auto-margin` },
                  null
                )
              : null,
            Fo(r)
          ]),
          v('div', { class: `${c}-description` }, [Fo(o)]),
          i ? v('span', { class: `${c}-btn` }, [Fo(i)]) : null
        ])
      },
      duration: l,
      closable: !0,
      onClose: e.onClose,
      onClick: e.onClick,
      key: e.key,
      style: e.style || {},
      class: e.class
    })
  })
}
const sr = {
    open: zN,
    close(e) {
      Object.keys(lo).forEach(t =>
        Promise.resolve(lo[t]).then(n => {
          n.removeNotice(e)
        })
      )
    },
    config: MN,
    destroy() {
      Object.keys(lo).forEach(e => {
        Promise.resolve(lo[e]).then(t => {
          t.destroy()
        }),
          delete lo[e]
      })
    }
  },
  LN = ['success', 'info', 'warning', 'error']
LN.forEach(e => {
  sr[e] = t => sr.open(p(p({}, t), { type: e }))
})
sr.warn = sr.warning
sr.useNotification = DN
const Kt = sr,
  FN = `-ant-${Date.now()}-${Math.random()}`
function HN(e, t) {
  const n = {},
    o = (l, a) => {
      let s = l.clone()
      return (s = (a == null ? void 0 : a(s)) || s), s.toRgbString()
    },
    r = (l, a) => {
      const s = new ut(l),
        u = zr(s.toRgbString())
      ;(n[`${a}-color`] = o(s)),
        (n[`${a}-color-disabled`] = u[1]),
        (n[`${a}-color-hover`] = u[4]),
        (n[`${a}-color-active`] = u[6]),
        (n[`${a}-color-outline`] = s
          .clone()
          .setAlpha(0.2)
          .toRgbString()),
        (n[`${a}-color-deprecated-bg`] = u[0]),
        (n[`${a}-color-deprecated-border`] = u[2])
    }
  if (t.primaryColor) {
    r(t.primaryColor, 'primary')
    const l = new ut(t.primaryColor),
      a = zr(l.toRgbString())
    a.forEach((u, c) => {
      n[`primary-${c + 1}`] = u
    }),
      (n['primary-color-deprecated-l-35'] = o(l, u => u.lighten(35))),
      (n['primary-color-deprecated-l-20'] = o(l, u => u.lighten(20))),
      (n['primary-color-deprecated-t-20'] = o(l, u => u.tint(20))),
      (n['primary-color-deprecated-t-50'] = o(l, u => u.tint(50))),
      (n['primary-color-deprecated-f-12'] = o(l, u =>
        u.setAlpha(u.getAlpha() * 0.12)
      ))
    const s = new ut(a[0])
    ;(n['primary-color-active-deprecated-f-30'] = o(s, u =>
      u.setAlpha(u.getAlpha() * 0.3)
    )),
      (n['primary-color-active-deprecated-d-02'] = o(s, u => u.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(l => `--${e}-${l}: ${n[l]};`).join(`
`)}
  }
  `.trim()
  )
}
function kN(e, t) {
  const n = HN(e, t)
  Ht() ? kr(n, `${FN}-dynamic-theme`) : kt()
}
const jN = e => {
    const [t, n] = dr()
    return as(
      P(() => ({
        theme: t.value,
        token: n.value,
        hashId: '',
        path: ['ant-design-icons', e.value]
      })),
      () => [
        {
          [`.${e.value}`]: p(p({}, xl()), {
            [`.${e.value} .${e.value}-icon`]: { display: 'block' }
          })
        }
      ]
    )
  },
  KN = jN
function WN(e, t) {
  const n = P(() => (e == null ? void 0 : e.value) || {}),
    o = P(() =>
      n.value.inherit === !1 || !(t != null && t.value) ? ag : t.value
    )
  return P(() => {
    if (!(e != null && e.value)) return t == null ? void 0 : t.value
    const i = p({}, o.value.components)
    return (
      Object.keys(e.value.components || {}).forEach(l => {
        i[l] = p(p({}, i[l]), e.value.components[l])
      }),
      p(p(p({}, o.value), n.value), {
        token: p(p({}, o.value.token), n.value.token),
        components: i
      })
    )
  })
}
var VN =
  (globalThis && globalThis.__rest) ||
  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 GN = 'ant'
function Yo() {
  return Et.prefixCls || GN
}
function uy() {
  return Et.iconPrefixCls || hc
}
const Lu = dt({}),
  Et = dt({})
Me(() => {
  p(Et, Lu),
    (Et.prefixCls = Yo()),
    (Et.iconPrefixCls = uy()),
    (Et.getPrefixCls = (e, t) =>
      t || (e ? `${Et.prefixCls}-${e}` : Et.prefixCls)),
    (Et.getRootPrefixCls = () => (Et.prefixCls ? Et.prefixCls : Yo()))
})
let Ma
const UN = e => {
    Ma && Ma(),
      (Ma = Me(() => {
        p(Lu, dt(e)), p(Et, dt(e))
      })),
      e.theme && kN(Yo(), e.theme)
  },
  XN = () => ({
    getPrefixCls: (e, t) => t || (e ? `${Yo()}-${e}` : Yo()),
    getIconPrefixCls: uy,
    getRootPrefixCls: () => (Et.prefixCls ? Et.prefixCls : Yo())
  }),
  Ar = J({
    compatConfig: { MODE: 3 },
    name: 'AConfigProvider',
    inheritAttrs: !1,
    props: sx(),
    setup(e, t) {
      let { slots: n } = t
      const o = Mm(),
        r = (E, R) => {
          const { prefixCls: L = 'ant' } = e
          if (R) return R
          const W = L || o.getPrefixCls('')
          return E ? `${W}-${E}` : W
        },
        i = P(() => e.iconPrefixCls || o.iconPrefixCls.value || hc),
        l = P(() => i.value !== o.iconPrefixCls.value),
        a = P(() => {
          var E
          return (
            e.csp || ((E = o.csp) === null || E === void 0 ? void 0 : E.value)
          )
        }),
        s = KN(i),
        u = WN(
          P(() => e.theme),
          P(() => {
            var E
            return (E = o.theme) === null || E === void 0 ? void 0 : E.value
          })
        ),
        c = E => (e.renderEmpty || n.renderEmpty || o.renderEmpty || KC)(E),
        d = P(() => {
          var E, R
          return (E = e.autoInsertSpaceInButton) !== null && E !== void 0
            ? E
            : (R = o.autoInsertSpaceInButton) === null || R === void 0
            ? void 0
            : R.value
        }),
        f = P(() => {
          var E
          return (
            e.locale ||
            ((E = o.locale) === null || E === void 0 ? void 0 : E.value)
          )
        })
      ge(
        f,
        () => {
          Lu.locale = f.value
        },
        { immediate: !0 }
      )
      const m = P(() => {
          var E
          return (
            e.direction ||
            ((E = o.direction) === null || E === void 0 ? void 0 : E.value)
          )
        }),
        g = P(() => {
          var E, R
          return (E = e.space) !== null && E !== void 0
            ? E
            : (R = o.space) === null || R === void 0
            ? void 0
            : R.value
        }),
        h = P(() => {
          var E, R
          return (E = e.virtual) !== null && E !== void 0
            ? E
            : (R = o.virtual) === null || R === void 0
            ? void 0
            : R.value
        }),
        b = P(() => {
          var E, R
          return (E = e.dropdownMatchSelectWidth) !== null && E !== void 0
            ? E
            : (R = o.dropdownMatchSelectWidth) === null || R === void 0
            ? void 0
            : R.value
        }),
        S = P(() => {
          var E
          return e.getTargetContainer !== void 0
            ? e.getTargetContainer
            : (E = o.getTargetContainer) === null || E === void 0
            ? void 0
            : E.value
        }),
        C = P(() => {
          var E
          return e.getPopupContainer !== void 0
            ? e.getPopupContainer
            : (E = o.getPopupContainer) === null || E === void 0
            ? void 0
            : E.value
        }),
        $ = P(() => {
          var E
          return e.pageHeader !== void 0
            ? e.pageHeader
            : (E = o.pageHeader) === null || E === void 0
            ? void 0
            : E.value
        }),
        O = P(() => {
          var E
          return e.input !== void 0
            ? e.input
            : (E = o.input) === null || E === void 0
            ? void 0
            : E.value
        }),
        x = P(() => {
          var E
          return e.pagination !== void 0
            ? e.pagination
            : (E = o.pagination) === null || E === void 0
            ? void 0
            : E.value
        }),
        w = P(() => {
          var E
          return e.form !== void 0
            ? e.form
            : (E = o.form) === null || E === void 0
            ? void 0
            : E.value
        }),
        y = P(() => {
          var E
          return e.select !== void 0
            ? e.select
            : (E = o.select) === null || E === void 0
            ? void 0
            : E.value
        }),
        T = P(() => e.componentSize),
        I = P(() => e.componentDisabled),
        _ = P(() => {
          var E, R
          return (E = e.wave) !== null && E !== void 0
            ? E
            : (R = o.wave) === null || R === void 0
            ? void 0
            : R.value
        }),
        A = {
          csp: a,
          autoInsertSpaceInButton: d,
          locale: f,
          direction: m,
          space: g,
          virtual: h,
          dropdownMatchSelectWidth: b,
          getPrefixCls: r,
          iconPrefixCls: i,
          theme: P(() => {
            var E, R
            return (E = u.value) !== null && E !== void 0
              ? E
              : (R = o.theme) === null || R === void 0
              ? void 0
              : R.value
          }),
          renderEmpty: c,
          getTargetContainer: S,
          getPopupContainer: C,
          pageHeader: $,
          input: O,
          pagination: x,
          form: w,
          select: y,
          componentSize: T,
          componentDisabled: I,
          transformCellText: P(() => e.transformCellText),
          wave: _
        },
        z = P(() => {
          const E = u.value || {},
            { algorithm: R, token: L } = E,
            W = VN(E, ['algorithm', 'token']),
            D = R && (!Array.isArray(R) || R.length > 0) ? Xm(R) : void 0
          return p(p({}, W), { theme: D, token: p(p({}, Sl), L) })
        }),
        M = P(() => {
          var E, R
          let L = {}
          return (
            f.value &&
              (L =
                ((E = f.value.Form) === null || E === void 0
                  ? void 0
                  : E.defaultValidateMessages) ||
                ((R = jn.Form) === null || R === void 0
                  ? void 0
                  : R.defaultValidateMessages) ||
                {}),
            e.form &&
              e.form.validateMessages &&
              (L = p(p({}, L), e.form.validateMessages)),
            L
          )
        })
      cx(A), ax({ validateMessages: M }), WC(T), ux(I)
      const j = E => {
        var R, L
        let W = l.value
          ? s((R = n.default) === null || R === void 0 ? void 0 : R.call(n))
          : (L = n.default) === null || L === void 0
          ? void 0
          : L.call(n)
        if (e.theme) {
          const D = (function() {
            return W
          })()
          W = v(zC, { value: z.value }, { default: () => [D] })
        }
        return v(
          qM,
          { locale: f.value || E, ANT_MARK__: Ls },
          { default: () => [W] }
        )
      }
      return (
        Me(() => {
          m.value &&
            (xN.config({ rtl: m.value === 'rtl' }),
            Kt.config({ rtl: m.value === 'rtl' }))
        }),
        () => v(yc, { children: (E, R, L) => j(L) }, null)
      )
    }
  })
Ar.config = UN
Ar.install = function(e) {
  e.component(Ar.name, Ar)
}
const qN = Ar
fo.Button = il
fo.install = function(e) {
  return e.component(fo.name, fo), e.component(il.name, il), e
}
const Dr = e => e != null && (Array.isArray(e) ? Tt(e).length : !0)
function Fu(e) {
  return Dr(e.prefix) || Dr(e.suffix) || Dr(e.allowClear)
}
function Fi(e) {
  return Dr(e.addonBefore) || Dr(e.addonAfter)
}
function js(e) {
  return typeof e > 'u' || e === null ? '' : String(e)
}
function Mr(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 dy(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 YN = () => ({
    addonBefore: k.any,
    addonAfter: k.any,
    prefix: k.any,
    suffix: k.any,
    clearIcon: k.any,
    affixWrapperClassName: String,
    groupClassName: String,
    wrapperClassName: String,
    inputClassName: String,
    allowClear: { type: Boolean, default: void 0 }
  }),
  fy = () =>
    p(p({}, YN()), {
      value: { type: [String, Number, Symbol], default: void 0 },
      defaultValue: { type: [String, Number, Symbol], default: void 0 },
      inputElement: k.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 }
    }),
  py = () =>
    p(p({}, fy()), {
      id: String,
      placeholder: { type: [String, Number] },
      autocomplete: String,
      type: at('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
    }),
  JN = J({
    name: 'BaseInput',
    inheritAttrs: !1,
    props: fy(),
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const r = ne(),
        i = a => {
          var s
          if (
            !((s = r.value) === null || s === void 0) &&
            s.contains(a.target)
          ) {
            const { triggerFocus: u } = e
            u == null || u()
          }
        },
        l = () => {
          var a
          const {
            allowClear: s,
            value: u,
            disabled: c,
            readonly: d,
            handleReset: f,
            suffix: m = n.suffix,
            prefixCls: g
          } = e
          if (!s) return null
          const h = !c && !d && u,
            b = `${g}-clear-icon`,
            S =
              ((a = n.clearIcon) === null || a === void 0
                ? void 0
                : a.call(n)) || '*'
          return v(
            'span',
            {
              onClick: f,
              onMousedown: C => C.preventDefault(),
              class: oe({ [`${b}-hidden`]: !h, [`${b}-has-suffix`]: !!m }, b),
              role: 'button',
              tabindex: -1
            },
            [S]
          )
        }
      return () => {
        var a, s
        const {
          focused: u,
          value: c,
          disabled: d,
          allowClear: f,
          readonly: m,
          hidden: g,
          prefixCls: h,
          prefix: b = (a = n.prefix) === null || a === void 0
            ? void 0
            : a.call(n),
          suffix: S = (s = n.suffix) === null || s === void 0
            ? void 0
            : s.call(n),
          addonAfter: C = n.addonAfter,
          addonBefore: $ = n.addonBefore,
          inputElement: O,
          affixWrapperClassName: x,
          wrapperClassName: w,
          groupClassName: y
        } = e
        let T = ft(O, { value: c, hidden: g })
        if (Fu({ prefix: b, suffix: S, allowClear: f })) {
          const I = `${h}-affix-wrapper`,
            _ = oe(
              I,
              {
                [`${I}-disabled`]: d,
                [`${I}-focused`]: u,
                [`${I}-readonly`]: m,
                [`${I}-input-with-clear-btn`]: S && f && c
              },
              !Fi({ addonAfter: C, addonBefore: $ }) && o.class,
              x
            ),
            A = (S || f) && v('span', { class: `${h}-suffix` }, [l(), S])
          T = v(
            'span',
            {
              class: _,
              style: o.style,
              hidden: !Fi({ addonAfter: C, addonBefore: $ }) && g,
              onMousedown: i,
              ref: r
            },
            [
              b && v('span', { class: `${h}-prefix` }, [b]),
              ft(O, { style: null, value: c, hidden: null }),
              A
            ]
          )
        }
        if (Fi({ addonAfter: C, addonBefore: $ })) {
          const I = `${h}-group`,
            _ = `${I}-addon`,
            A = oe(`${h}-wrapper`, I, w),
            z = oe(`${h}-group-wrapper`, o.class, y)
          return v('span', { class: z, style: o.style, hidden: g }, [
            v('span', { class: A }, [
              $ && v('span', { class: _ }, [$]),
              ft(T, { style: null, hidden: null }),
              C && v('span', { class: _ }, [C])
            ])
          ])
        }
        return T
      }
    }
  })
var QN =
  (globalThis && globalThis.__rest) ||
  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 ZN = J({
    name: 'VCInput',
    inheritAttrs: !1,
    props: py(),
    setup(e, t) {
      let { slots: n, attrs: o, expose: r, emit: i } = t
      const l = V(e.value === void 0 ? e.defaultValue : e.value),
        a = V(!1),
        s = V(),
        u = V()
      ge(
        () => e.value,
        () => {
          l.value = e.value
        }
      ),
        ge(
          () => e.disabled,
          () => {
            e.disabled && (a.value = !1)
          }
        )
      const c = y => {
          s.value && dy(s.value.input, y)
        },
        d = () => {
          var y
          ;(y = s.value.input) === null || y === void 0 || y.blur()
        },
        f = (y, T, I) => {
          var _
          ;(_ = s.value.input) === null ||
            _ === void 0 ||
            _.setSelectionRange(y, T, I)
        },
        m = () => {
          var y
          ;(y = s.value.input) === null || y === void 0 || y.select()
        }
      r({
        focus: c,
        blur: d,
        input: P(() => {
          var y
          return (y = s.value.input) === null || y === void 0 ? void 0 : y.input
        }),
        stateValue: l,
        setSelectionRange: f,
        select: m
      })
      const g = y => {
          i('change', y)
        },
        h = (y, T) => {
          l.value !== y &&
            (e.value === void 0
              ? (l.value = y)
              : it(() => {
                  var I
                  s.value.input.value !== l.value &&
                    ((I = u.value) === null || I === void 0 || I.$forceUpdate())
                }),
            it(() => {
              T && T()
            }))
        },
        b = y => {
          const { value: T } = y.target
          if (l.value === T) return
          const I = y.target.value
          Mr(s.value.input, y, g), h(I)
        },
        S = y => {
          y.keyCode === 13 && i('pressEnter', y), i('keydown', y)
        },
        C = y => {
          ;(a.value = !0), i('focus', y)
        },
        $ = y => {
          ;(a.value = !1), i('blur', y)
        },
        O = y => {
          Mr(s.value.input, y, g),
            h('', () => {
              c()
            })
        },
        x = () => {
          var y, T
          const {
              addonBefore: I = n.addonBefore,
              addonAfter: _ = n.addonAfter,
              disabled: A,
              valueModifiers: z = {},
              htmlSize: M,
              autocomplete: j,
              prefixCls: E,
              inputClassName: R,
              prefix: L = (y = n.prefix) === null || y === void 0
                ? void 0
                : y.call(n),
              suffix: W = (T = n.suffix) === null || T === void 0
                ? void 0
                : T.call(n),
              allowClear: D,
              type: F = 'text'
            } = e,
            H = rt(e, [
              'prefixCls',
              'onPressEnter',
              'addonBefore',
              'addonAfter',
              'prefix',
              'suffix',
              'allowClear',
              'defaultValue',
              'size',
              'bordered',
              'htmlSize',
              'lazy',
              'showCount',
              'valueModifiers',
              'showCount',
              'affixWrapperClassName',
              'groupClassName',
              'inputClassName',
              'wrapperClassName'
            ]),
            B = p(p(p({}, H), o), {
              autocomplete: j,
              onChange: b,
              onInput: b,
              onFocus: C,
              onBlur: $,
              onKeydown: S,
              class: oe(
                E,
                { [`${E}-disabled`]: A },
                R,
                !Fi({ addonAfter: _, addonBefore: I }) &&
                  !Fu({ prefix: L, suffix: W, allowClear: D }) &&
                  o.class
              ),
              ref: s,
              key: 'ant-input',
              size: M,
              type: F,
              lazy: e.lazy
            })
          return (
            z.lazy && delete B.onInput,
            B.autofocus || delete B.autofocus,
            v(ei, rt(B, ['size']), null)
          )
        },
        w = () => {
          var y
          const {
              maxlength: T,
              suffix: I = (y = n.suffix) === null || y === void 0
                ? void 0
                : y.call(n),
              showCount: _,
              prefixCls: A
            } = e,
            z = Number(T) > 0
          if (I || _) {
            const M = [...js(l.value)].length,
              j =
                typeof _ == 'object'
                  ? _.formatter({ count: M, maxlength: T })
                  : `${M}${z ? ` / ${T}` : ''}`
            return v(nt, null, [
              !!_ &&
                v(
                  'span',
                  {
                    class: oe(`${A}-show-count-suffix`, {
                      [`${A}-show-count-has-suffix`]: !!I
                    })
                  },
                  [j]
                ),
              I
            ])
          }
          return null
        }
      return (
        We(() => {}),
        () => {
          const { prefixCls: y, disabled: T } = e,
            I = QN(e, ['prefixCls', 'disabled'])
          return v(
            JN,
            N(
              N(N({}, I), o),
              {},
              {
                ref: u,
                prefixCls: y,
                inputElement: x(),
                handleReset: O,
                value: js(l.value),
                focused: a.value,
                triggerFocus: c,
                suffix: w(),
                disabled: T
              }
            ),
            n
          )
        }
      )
    }
  }),
  vy = () =>
    rt(py(), [
      'wrapperClassName',
      'groupClassName',
      'inputClassName',
      'affixWrapperClassName'
    ]),
  Hu = vy,
  my = () =>
    p(p({}, rt(vy(), ['prefix', 'addonBefore', 'addonAfter', 'suffix'])), {
      rows: Number,
      autosize: { type: [Boolean, Object], default: void 0 },
      autoSize: { type: [Boolean, Object], default: void 0 },
      onResize: { type: Function },
      onCompositionstart: Fr(),
      onCompositionend: Fr(),
      valueModifiers: Object
    })
var eB =
  (globalThis && globalThis.__rest) ||
  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 Ct = J({
    compatConfig: { MODE: 3 },
    name: 'AInput',
    inheritAttrs: !1,
    props: Hu(),
    setup(e, t) {
      let { slots: n, attrs: o, expose: r, emit: i } = t
      const l = ne(),
        a = Ao(),
        s = _n.useInject(),
        u = P(() => Dl(s.status, e.status)),
        { direction: c, prefixCls: d, size: f, autocomplete: m } = je(
          'input',
          e
        ),
        { compactSize: g, compactItemClassnames: h } = ou(d, c),
        b = P(() => g.value || f.value),
        [S, C] = _u(d),
        $ = In()
      r({
        focus: M => {
          var j
          ;(j = l.value) === null || j === void 0 || j.focus(M)
        },
        blur: () => {
          var M
          ;(M = l.value) === null || M === void 0 || M.blur()
        },
        input: l,
        setSelectionRange: (M, j, E) => {
          var R
          ;(R = l.value) === null ||
            R === void 0 ||
            R.setSelectionRange(M, j, E)
        },
        select: () => {
          var M
          ;(M = l.value) === null || M === void 0 || M.select()
        }
      })
      const T = ne([]),
        I = () => {
          T.value.push(
            setTimeout(() => {
              var M, j, E, R
              !((M = l.value) === null || M === void 0) &&
                M.input &&
                ((j = l.value) === null || j === void 0
                  ? void 0
                  : j.input.getAttribute('type')) === 'password' &&
                !((E = l.value) === null || E === void 0) &&
                E.input.hasAttribute('value') &&
                ((R = l.value) === null ||
                  R === void 0 ||
                  R.input.removeAttribute('value'))
            })
          )
        }
      We(() => {
        I()
      }),
        gm(() => {
          T.value.forEach(M => clearTimeout(M))
        }),
        Qe(() => {
          T.value.forEach(M => clearTimeout(M))
        })
      const _ = M => {
          I(), i('blur', M), a.onFieldBlur()
        },
        A = M => {
          I(), i('focus', M)
        },
        z = M => {
          i('update:value', M.target.value),
            i('change', M),
            i('input', M),
            a.onFieldChange()
        }
      return () => {
        var M, j, E, R, L, W
        const { hasFeedback: D, feedbackIcon: F } = s,
          {
            allowClear: H,
            bordered: B = !0,
            prefix: X = (M = n.prefix) === null || M === void 0
              ? void 0
              : M.call(n),
            suffix: ee = (j = n.suffix) === null || j === void 0
              ? void 0
              : j.call(n),
            addonAfter: de = (E = n.addonAfter) === null || E === void 0
              ? void 0
              : E.call(n),
            addonBefore: ie = (R = n.addonBefore) === null || R === void 0
              ? void 0
              : R.call(n),
            id: Q = (L = a.id) === null || L === void 0 ? void 0 : L.value
          } = e,
          se = eB(e, [
            'allowClear',
            'bordered',
            'prefix',
            'suffix',
            'addonAfter',
            'addonBefore',
            'id'
          ]),
          q = (D || ee) && v(nt, null, [ee, D && F]),
          K = d.value,
          U = Fu({ prefix: X, suffix: ee }) || !!D,
          ue = n.clearIcon || (() => v(Ro, null, null))
        return S(
          v(
            ZN,
            N(
              N(N({}, o), rt(se, ['onUpdate:value', 'onChange', 'onInput'])),
              {},
              {
                onChange: z,
                id: Q,
                disabled:
                  (W = e.disabled) !== null && W !== void 0 ? W : $.value,
                ref: l,
                prefixCls: K,
                autocomplete: m.value,
                onBlur: _,
                onFocus: A,
                prefix: X,
                suffix: q,
                allowClear: H,
                addonAfter:
                  de &&
                  v(cp, null, {
                    default: () => [v(np, null, { default: () => [de] })]
                  }),
                addonBefore:
                  ie &&
                  v(cp, null, {
                    default: () => [v(np, null, { default: () => [ie] })]
                  }),
                class: [o.class, h.value],
                inputClassName: oe(
                  {
                    [`${K}-sm`]: b.value === 'small',
                    [`${K}-lg`]: b.value === 'large',
                    [`${K}-rtl`]: c.value === 'rtl',
                    [`${K}-borderless`]: !B
                  },
                  !U && Wo(K, u.value),
                  C.value
                ),
                affixWrapperClassName: oe(
                  {
                    [`${K}-affix-wrapper-sm`]: b.value === 'small',
                    [`${K}-affix-wrapper-lg`]: b.value === 'large',
                    [`${K}-affix-wrapper-rtl`]: c.value === 'rtl',
                    [`${K}-affix-wrapper-borderless`]: !B
                  },
                  Wo(`${K}-affix-wrapper`, u.value, D),
                  C.value
                ),
                wrapperClassName: oe(
                  { [`${K}-group-rtl`]: c.value === 'rtl' },
                  C.value
                ),
                groupClassName: oe(
                  {
                    [`${K}-group-wrapper-sm`]: b.value === 'small',
                    [`${K}-group-wrapper-lg`]: b.value === 'large',
                    [`${K}-group-wrapper-rtl`]: c.value === 'rtl'
                  },
                  Wo(`${K}-group-wrapper`, u.value, D),
                  C.value
                )
              }
            ),
            p(p({}, n), { clearIcon: ue })
          )
        )
      }
    }
  }),
  tB = J({
    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: l } = je(
          'input-group',
          e
        ),
        a = _n.useInject()
      _n.useProvide(a, { isFormItemInput: !1 })
      const s = P(() => l('input')),
        [u, c] = _u(s),
        d = P(() => {
          const f = r.value
          return {
            [`${f}`]: !0,
            [c.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 u(
          v('span', N(N({}, o), {}, { class: oe(d.value, o.class) }), [
            (f = n.default) === null || f === void 0 ? void 0 : f.call(n)
          ])
        )
      }
    }
  })
var nB =
  (globalThis && globalThis.__rest) ||
  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 oB = J({
    compatConfig: { MODE: 3 },
    name: 'AInputSearch',
    inheritAttrs: !1,
    props: p(p({}, Hu()), {
      inputPrefixCls: String,
      enterButton: k.any,
      onSearch: { type: Function }
    }),
    setup(e, t) {
      let { slots: n, attrs: o, expose: r, emit: i } = t
      const l = V(),
        a = V(!1)
      r({
        focus: () => {
          var x
          ;(x = l.value) === null || x === void 0 || x.focus()
        },
        blur: () => {
          var x
          ;(x = l.value) === null || x === void 0 || x.blur()
        }
      })
      const c = x => {
          i('update:value', x.target.value),
            x &&
              x.target &&
              x.type === 'click' &&
              i('search', x.target.value, x),
            i('change', x)
        },
        d = x => {
          var w
          document.activeElement ===
            ((w = l.value) === null || w === void 0 ? void 0 : w.input) &&
            x.preventDefault()
        },
        f = x => {
          var w, y
          i(
            'search',
            (y = (w = l.value) === null || w === void 0 ? void 0 : w.input) ===
              null || y === void 0
              ? void 0
              : y.stateValue,
            x
          )
        },
        m = x => {
          a.value || e.loading || f(x)
        },
        g = x => {
          ;(a.value = !0), i('compositionstart', x)
        },
        h = x => {
          ;(a.value = !1), i('compositionend', x)
        },
        { prefixCls: b, getPrefixCls: S, direction: C, size: $ } = je(
          'input-search',
          e
        ),
        O = P(() => S('input', e.inputPrefixCls))
      return () => {
        var x, w, y, T
        const {
            disabled: I,
            loading: _,
            addonAfter: A = (x = n.addonAfter) === null || x === void 0
              ? void 0
              : x.call(n),
            suffix: z = (w = n.suffix) === null || w === void 0
              ? void 0
              : w.call(n)
          } = e,
          M = nB(e, ['disabled', 'loading', 'addonAfter', 'suffix'])
        let {
          enterButton: j = (T =
            (y = n.enterButton) === null || y === void 0
              ? void 0
              : y.call(n)) !== null && T !== void 0
            ? T
            : !1
        } = e
        j = j || j === ''
        const E = typeof j == 'boolean' ? v(Zc, null, null) : null,
          R = `${b.value}-button`,
          L = Array.isArray(j) ? j[0] : j
        let W
        const D = L.type && Ah(L.type) && L.type.__ANT_BUTTON
        if (D || L.tagName === 'button')
          W = ft(
            L,
            p(
              { onMousedown: d, onClick: f, key: 'enterButton' },
              D ? { class: R, size: $.value } : {}
            ),
            !1
          )
        else {
          const H = E && !j
          W = v(
            ht,
            {
              class: R,
              type: j ? 'primary' : void 0,
              size: $.value,
              disabled: I,
              key: 'enterButton',
              onMousedown: d,
              onClick: f,
              loading: _,
              icon: H ? E : null
            },
            { default: () => [H ? null : E || j] }
          )
        }
        A && (W = [W, A])
        const F = oe(
          b.value,
          {
            [`${b.value}-rtl`]: C.value === 'rtl',
            [`${b.value}-${$.value}`]: !!$.value,
            [`${b.value}-with-button`]: !!j
          },
          o.class
        )
        return v(
          Ct,
          N(
            N(
              N(
                { ref: l },
                rt(M, ['onUpdate:value', 'onSearch', 'enterButton'])
              ),
              o
            ),
            {},
            {
              onPressEnter: m,
              onCompositionstart: g,
              onCompositionend: h,
              size: $.value,
              prefixCls: O.value,
              addonAfter: W,
              suffix: z,
              onChange: c,
              class: F,
              disabled: I
            }
          ),
          n
        )
      }
    }
  }),
  uv = e => e != null && (Array.isArray(e) ? Tt(e).length : !0)
function rB(e) {
  return uv(e.addonBefore) || uv(e.addonAfter)
}
const iB = ['text', 'input'],
  lB = J({
    compatConfig: { MODE: 3 },
    name: 'ClearableLabeledInput',
    inheritAttrs: !1,
    props: {
      prefixCls: String,
      inputType: k.oneOf(mo('text', 'input')),
      value: wt(),
      defaultValue: wt(),
      allowClear: { type: Boolean, default: void 0 },
      element: wt(),
      handleReset: Function,
      disabled: { type: Boolean, default: void 0 },
      direction: { type: String },
      size: { type: String },
      suffix: wt(),
      prefix: wt(),
      addonBefore: wt(),
      addonAfter: wt(),
      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 = _n.useInject(),
        i = a => {
          const {
              value: s,
              disabled: u,
              readonly: c,
              handleReset: d,
              suffix: f = n.suffix
            } = e,
            m = !u && !c && s,
            g = `${a}-clear-icon`
          return v(
            Ro,
            {
              onClick: d,
              onMousedown: h => h.preventDefault(),
              class: oe({ [`${g}-hidden`]: !m, [`${g}-has-suffix`]: !!f }, g),
              role: 'button'
            },
            null
          )
        },
        l = (a, s) => {
          const {
              value: u,
              allowClear: c,
              direction: d,
              bordered: f,
              hidden: m,
              status: g,
              addonAfter: h = n.addonAfter,
              addonBefore: b = n.addonBefore,
              hashId: S
            } = e,
            { status: C, hasFeedback: $ } = r
          if (!c) return ft(s, { value: u, disabled: e.disabled })
          const O = oe(
            `${a}-affix-wrapper`,
            `${a}-affix-wrapper-textarea-with-clear-btn`,
            Wo(`${a}-affix-wrapper`, Dl(C, g), $),
            {
              [`${a}-affix-wrapper-rtl`]: d === 'rtl',
              [`${a}-affix-wrapper-borderless`]: !f,
              [`${o.class}`]: !rB({ addonAfter: h, addonBefore: b }) && o.class
            },
            S
          )
          return v('span', { class: O, style: o.style, hidden: m }, [
            ft(s, { style: null, value: u, disabled: e.disabled }),
            i(a)
          ])
        }
      return () => {
        var a
        const {
          prefixCls: s,
          inputType: u,
          element: c = (a = n.element) === null || a === void 0
            ? void 0
            : a.call(n)
        } = e
        return u === iB[0] ? l(s, c) : null
      }
    }
  }),
  aB = `
  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;
`,
  sB = [
    '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'
  ],
  Na = {}
let qt
function cB(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 && Na[n]) return Na[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')),
    l =
      parseFloat(o.getPropertyValue('border-bottom-width')) +
      parseFloat(o.getPropertyValue('border-top-width')),
    s = {
      sizingStyle: sB.map(u => `${u}:${o.getPropertyValue(u)}`).join(';'),
      paddingSize: i,
      borderSize: l,
      boxSizing: r
    }
  return t && n && (Na[n] = s), s
}
function uB(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
  qt ||
    ((qt = document.createElement('textarea')),
    qt.setAttribute('tab-index', '-1'),
    qt.setAttribute('aria-hidden', 'true'),
    document.body.appendChild(qt)),
    e.getAttribute('wrap')
      ? qt.setAttribute('wrap', e.getAttribute('wrap'))
      : qt.removeAttribute('wrap')
  const { paddingSize: r, borderSize: i, boxSizing: l, sizingStyle: a } = cB(
    e,
    t
  )
  qt.setAttribute('style', `${a};${aB}`),
    (qt.value = e.value || e.placeholder || '')
  let s,
    u,
    c,
    d = qt.scrollHeight
  if (
    (l === 'border-box' ? (d += i) : l === 'content-box' && (d -= r),
    n !== null || o !== null)
  ) {
    qt.value = ' '
    const m = qt.scrollHeight - r
    n !== null &&
      ((s = m * n),
      l === 'border-box' && (s = s + r + i),
      (d = Math.max(s, d))),
      o !== null &&
        ((u = m * o),
        l === 'border-box' && (u = u + r + i),
        (c = d > u ? '' : 'hidden'),
        (d = Math.min(u, d)))
  }
  const f = { height: `${d}px`, overflowY: c, resize: 'none' }
  return s && (f.minHeight = `${s}px`), u && (f.maxHeight = `${u}px`), f
}
const Ba = 0,
  za = 1,
  La = 2,
  dB = J({
    compatConfig: { MODE: 3 },
    name: 'ResizableTextArea',
    inheritAttrs: !1,
    props: my(),
    setup(e, t) {
      let { attrs: n, emit: o, expose: r } = t,
        i,
        l
      const a = ne(),
        s = ne({}),
        u = ne(La)
      Qe(() => {
        He.cancel(i), He.cancel(l)
      })
      const c = () => {
          try {
            if (a.value && document.activeElement === a.value.input) {
              const w = a.value.getSelectionStart(),
                y = a.value.getSelectionEnd(),
                T = a.value.getScrollTop()
              a.value.setSelectionRange(w, y), a.value.setScrollTop(T)
            }
          } catch {}
        },
        d = ne(),
        f = ne()
      Me(() => {
        const w = e.autoSize || e.autosize
        w
          ? ((d.value = w.minRows), (f.value = w.maxRows))
          : ((d.value = void 0), (f.value = void 0))
      })
      const m = P(() => !!(e.autoSize || e.autosize)),
        g = () => {
          u.value = Ba
        }
      ge(
        [() => e.value, d, f, m],
        () => {
          m.value && g()
        },
        { immediate: !0 }
      )
      const h = ne()
      ge(
        [u, a],
        () => {
          if (a.value)
            if (u.value === Ba) u.value = za
            else if (u.value === za) {
              const w = uB(a.value.input, !1, d.value, f.value)
              ;(u.value = La), (h.value = w)
            } else c()
        },
        { immediate: !0, flush: 'post' }
      )
      const b = tn(),
        S = ne(),
        C = () => {
          He.cancel(S.value)
        },
        $ = w => {
          u.value === La &&
            (o('resize', w),
            m.value &&
              (C(),
              (S.value = He(() => {
                g()
              }))))
        }
      Qe(() => {
        C()
      }),
        r({
          resizeTextarea: () => {
            g()
          },
          textArea: P(() => {
            var w
            return (w = a.value) === null || w === void 0 ? void 0 : w.input
          }),
          instance: b
        }),
        kt(e.autosize === void 0)
      const x = () => {
        const { prefixCls: w, disabled: y } = e,
          T = rt(e, [
            'prefixCls',
            'onPressEnter',
            'autoSize',
            'autosize',
            'defaultValue',
            'allowClear',
            'type',
            'maxlength',
            'valueModifiers'
          ]),
          I = oe(w, n.class, { [`${w}-disabled`]: y }),
          _ = m.value ? h.value : null,
          A = [n.style, s.value, _],
          z = p(p(p({}, T), n), { style: A, class: I })
        return (
          (u.value === Ba || u.value === za) &&
            A.push({ overflowX: 'hidden', overflowY: 'hidden' }),
          z.autofocus || delete z.autofocus,
          z.rows === 0 && delete z.rows,
          v(
            Tn,
            { onResize: $, disabled: !m.value },
            {
              default: () => [
                v(ei, N(N({}, z), {}, { ref: a, tag: 'textarea' }), null)
              ]
            }
          )
        )
      }
      return () => x()
    }
  }),
  fB = dB
function gy(e, t) {
  return [...(e || '')].slice(0, t).join('')
}
function dv(e, t, n, o) {
  let r = n
  return (
    e
      ? (r = gy(n, o))
      : [...(t || '')].length < n.length &&
        [...(n || '')].length > o &&
        (r = t),
    r
  )
}
const hy = J({
  compatConfig: { MODE: 3 },
  name: 'ATextarea',
  inheritAttrs: !1,
  props: my(),
  setup(e, t) {
    let { attrs: n, expose: o, emit: r } = t
    var i
    const l = Ao(),
      a = _n.useInject(),
      s = P(() => Dl(a.status, e.status)),
      u = V((i = e.value) !== null && i !== void 0 ? i : e.defaultValue),
      c = V(),
      d = V(''),
      { prefixCls: f, size: m, direction: g } = je('input', e),
      [h, b] = _u(f),
      S = In(),
      C = P(() => e.showCount === '' || e.showCount || !1),
      $ = P(() => Number(e.maxlength) > 0),
      O = V(!1),
      x = V(),
      w = V(0),
      y = D => {
        ;(O.value = !0),
          (x.value = d.value),
          (w.value = D.currentTarget.selectionStart),
          r('compositionstart', D)
      },
      T = D => {
        var F
        O.value = !1
        let H = D.currentTarget.value
        if ($.value) {
          const B =
            w.value >= e.maxlength + 1 ||
            w.value ===
              ((F = x.value) === null || F === void 0 ? void 0 : F.length)
          H = dv(B, x.value, H, e.maxlength)
        }
        H !== d.value && (z(H), Mr(D.currentTarget, D, E, H)),
          r('compositionend', D)
      },
      I = tn()
    ge(
      () => e.value,
      () => {
        var D
        'value' in I.vnode.props,
          (u.value = (D = e.value) !== null && D !== void 0 ? D : '')
      }
    )
    const _ = D => {
        var F
        dy((F = c.value) === null || F === void 0 ? void 0 : F.textArea, D)
      },
      A = () => {
        var D, F
        ;(F = (D = c.value) === null || D === void 0 ? void 0 : D.textArea) ===
          null ||
          F === void 0 ||
          F.blur()
      },
      z = (D, F) => {
        u.value !== D &&
          (e.value === void 0
            ? (u.value = D)
            : it(() => {
                var H, B, X
                c.value.textArea.value !== d.value &&
                  ((X =
                    (H = c.value) === null || H === void 0
                      ? void 0
                      : (B = H.instance).update) === null ||
                    X === void 0 ||
                    X.call(B))
              }),
          it(() => {
            F && F()
          }))
      },
      M = D => {
        D.keyCode === 13 && r('pressEnter', D), r('keydown', D)
      },
      j = D => {
        const { onBlur: F } = e
        F == null || F(D), l.onFieldBlur()
      },
      E = D => {
        r('update:value', D.target.value),
          r('change', D),
          r('input', D),
          l.onFieldChange()
      },
      R = D => {
        Mr(c.value.textArea, D, E),
          z('', () => {
            _()
          })
      },
      L = D => {
        let F = D.target.value
        if (u.value !== F) {
          if ($.value) {
            const H = D.target,
              B =
                H.selectionStart >= e.maxlength + 1 ||
                H.selectionStart === F.length ||
                !H.selectionStart
            F = dv(B, d.value, F, e.maxlength)
          }
          Mr(D.currentTarget, D, E, F), z(F)
        }
      },
      W = () => {
        var D, F
        const { class: H } = n,
          { bordered: B = !0 } = e,
          X = p(p(p({}, rt(e, ['allowClear'])), n), {
            class: [
              {
                [`${f.value}-borderless`]: !B,
                [`${H}`]: H && !C.value,
                [`${f.value}-sm`]: m.value === 'small',
                [`${f.value}-lg`]: m.value === 'large'
              },
              Wo(f.value, s.value),
              b.value
            ],
            disabled: S.value,
            showCount: null,
            prefixCls: f.value,
            onInput: L,
            onChange: L,
            onBlur: j,
            onKeydown: M,
            onCompositionstart: y,
            onCompositionend: T
          })
        return (
          !((D = e.valueModifiers) === null || D === void 0) &&
            D.lazy &&
            delete X.onInput,
          v(
            fB,
            N(
              N({}, X),
              {},
              {
                id:
                  (F = X == null ? void 0 : X.id) !== null && F !== void 0
                    ? F
                    : l.id.value,
                ref: c,
                maxlength: e.maxlength,
                lazy: e.lazy
              }
            ),
            null
          )
        )
      }
    return (
      o({ focus: _, blur: A, resizableTextArea: c }),
      Me(() => {
        let D = js(u.value)
        !O.value &&
          $.value &&
          (e.value === null || e.value === void 0) &&
          (D = gy(D, e.maxlength)),
          (d.value = D)
      }),
      () => {
        var D
        const { maxlength: F, bordered: H = !0, hidden: B } = e,
          { style: X, class: ee } = n,
          de = p(p(p({}, e), n), {
            prefixCls: f.value,
            inputType: 'text',
            handleReset: R,
            direction: g.value,
            bordered: H,
            style: C.value ? void 0 : X,
            hashId: b.value,
            disabled: (D = e.disabled) !== null && D !== void 0 ? D : S.value
          })
        let ie = v(lB, N(N({}, de), {}, { value: d.value, status: e.status }), {
          element: W
        })
        if (C.value || a.hasFeedback) {
          const Q = [...d.value].length
          let se = ''
          typeof C.value == 'object'
            ? (se = C.value.formatter({
                value: d.value,
                count: Q,
                maxlength: F
              }))
            : (se = `${Q}${$.value ? ` / ${F}` : ''}`),
            (ie = v(
              'div',
              {
                hidden: B,
                class: oe(
                  `${f.value}-textarea`,
                  {
                    [`${f.value}-textarea-rtl`]: g.value === 'rtl',
                    [`${f.value}-textarea-show-count`]: C.value,
                    [`${f.value}-textarea-in-form-item`]: a.isFormItemInput
                  },
                  `${f.value}-textarea-show-count`,
                  ee,
                  b.value
                ),
                style: X,
                'data-count': typeof se != 'object' ? se : void 0
              },
              [
                ie,
                a.hasFeedback &&
                  v('span', { class: `${f.value}-textarea-suffix` }, [
                    a.feedbackIcon
                  ])
              ]
            ))
        }
        return h(ie)
      }
    )
  }
})
function fv(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) {
        pB(e, r, n[r])
      })
  }
  return e
}
function pB(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var ku = function(t, n) {
  var o = fv({}, t, n.attrs)
  return v(et, fv({}, o, { icon: Q0 }), null)
}
ku.displayName = 'EyeOutlined'
ku.inheritAttrs = !1
const vB = ku
function pv(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) {
        mB(e, r, n[r])
      })
  }
  return e
}
function mB(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var ju = function(t, n) {
  var o = pv({}, t, n.attrs)
  return v(et, pv({}, o, { icon: Z0 }), null)
}
ju.displayName = 'EyeInvisibleOutlined'
ju.inheritAttrs = !1
const gB = ju
var hB =
  (globalThis && globalThis.__rest) ||
  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 bB = { click: 'onClick', hover: 'onMouseover' },
  yB = e => (e ? v(vB, null, null) : v(gB, null, null)),
  SB = J({
    compatConfig: { MODE: 3 },
    name: 'AInputPassword',
    inheritAttrs: !1,
    props: p(p({}, Hu()), {
      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 l = V(!1),
        a = () => {
          const { disabled: b } = e
          b || ((l.value = !l.value), i('update:visible', l.value))
        }
      Me(() => {
        e.visible !== void 0 && (l.value = !!e.visible)
      })
      const s = V()
      r({
        focus: () => {
          var b
          ;(b = s.value) === null || b === void 0 || b.focus()
        },
        blur: () => {
          var b
          ;(b = s.value) === null || b === void 0 || b.blur()
        }
      })
      const d = b => {
          const { action: S, iconRender: C = n.iconRender || yB } = e,
            $ = bB[S] || '',
            O = C(l.value),
            x = {
              [$]: a,
              class: `${b}-icon`,
              key: 'passwordIcon',
              onMousedown: w => {
                w.preventDefault()
              },
              onMouseup: w => {
                w.preventDefault()
              }
            }
          return ft(Ft(O) ? O : v('span', null, [O]), x)
        },
        { prefixCls: f, getPrefixCls: m } = je('input-password', e),
        g = P(() => m('input', e.inputPrefixCls)),
        h = () => {
          const { size: b, visibilityToggle: S } = e,
            C = hB(e, ['size', 'visibilityToggle']),
            $ = S && d(f.value),
            O = oe(f.value, o.class, { [`${f.value}-${b}`]: !!b }),
            x = p(p(p({}, rt(C, ['suffix', 'iconRender', 'action'])), o), {
              type: l.value ? 'text' : 'password',
              class: O,
              prefixCls: g.value,
              suffix: $
            })
          return b && (x.size = b), v(Ct, N({ ref: s }, x), n)
        }
      return () => h()
    }
  })
Ct.Group = tB
Ct.Search = oB
Ct.TextArea = hy
Ct.Password = SB
Ct.install = function(e) {
  return (
    e.component(Ct.name, Ct),
    e.component(Ct.Group.name, Ct.Group),
    e.component(Ct.Search.name, Ct.Search),
    e.component(Ct.TextArea.name, Ct.TextArea),
    e.component(Ct.Password.name, Ct.Password),
    e
  )
}
function xB(e, t, n) {
  var o = n || {},
    r = o.noTrailing,
    i = r === void 0 ? !1 : r,
    l = o.noLeading,
    a = l === void 0 ? !1 : l,
    s = o.debounceMode,
    u = s === void 0 ? void 0 : s,
    c,
    d = !1,
    f = 0
  function m() {
    c && clearTimeout(c)
  }
  function g(b) {
    var S = b || {},
      C = S.upcomingOnly,
      $ = C === void 0 ? !1 : C
    m(), (d = !$)
  }
  function h() {
    for (var b = arguments.length, S = new Array(b), C = 0; C < b; C++)
      S[C] = arguments[C]
    var $ = this,
      O = Date.now() - f
    if (d) return
    function x() {
      ;(f = Date.now()), t.apply($, S)
    }
    function w() {
      c = void 0
    }
    !a && u && !c && x(),
      m(),
      u === void 0 && O > e
        ? a
          ? ((f = Date.now()), i || (c = setTimeout(u ? w : x, e)))
          : x()
        : i !== !0 && (c = setTimeout(u ? w : x, u === void 0 ? e - O : e))
  }
  return (h.cancel = g), h
}
function CB(e, t, n) {
  var o = n || {},
    r = o.atBegin,
    i = r === void 0 ? !1 : r
  return xB(e, t, { debounceMode: i !== !1 })
}
const $B = new Ve('antSpinMove', { to: { opacity: 1 } }),
  wB = new Ve('antRotate', { to: { transform: 'rotate(405deg)' } }),
  OB = e => ({
    [`${e.componentCls}`]: p(p({}, ct(e)), {
      position: 'absolute',
      display: 'none',
      color: e.colorPrimary,
      textAlign: 'center',
      verticalAlign: 'middle',
      opacity: 0,
      transition: `transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,
      '&-spinning': { position: 'static', display: 'inline-block', opacity: 1 },
      '&-nested-loading': {
        position: 'relative',
        [`> div > ${e.componentCls}`]: {
          position: 'absolute',
          top: 0,
          insetInlineStart: 0,
          zIndex: 4,
          display: 'block',
          width: '100%',
          height: '100%',
          maxHeight: e.contentHeight,
          [`${e.componentCls}-dot`]: {
            position: 'absolute',
            top: '50%',
            insetInlineStart: '50%',
            margin: -e.spinDotSize / 2
          },
          [`${e.componentCls}-text`]: {
            position: 'absolute',
            top: '50%',
            width: '100%',
            paddingTop: (e.spinDotSize - e.fontSize) / 2 + 2,
            textShadow: `0 1px 2px ${e.colorBgContainer}`
          },
          [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: {
            marginTop: -(e.spinDotSize / 2) - 10
          },
          '&-sm': {
            [`${e.componentCls}-dot`]: { margin: -e.spinDotSizeSM / 2 },
            [`${e.componentCls}-text`]: {
              paddingTop: (e.spinDotSizeSM - e.fontSize) / 2 + 2
            },
            [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: {
              marginTop: -(e.spinDotSizeSM / 2) - 10
            }
          },
          '&-lg': {
            [`${e.componentCls}-dot`]: { margin: -(e.spinDotSizeLG / 2) },
            [`${e.componentCls}-text`]: {
              paddingTop: (e.spinDotSizeLG - e.fontSize) / 2 + 2
            },
            [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: {
              marginTop: -(e.spinDotSizeLG / 2) - 10
            }
          }
        },
        [`${e.componentCls}-container`]: {
          position: 'relative',
          transition: `opacity ${e.motionDurationSlow}`,
          '&::after': {
            position: 'absolute',
            top: 0,
            insetInlineEnd: 0,
            bottom: 0,
            insetInlineStart: 0,
            zIndex: 10,
            width: '100%',
            height: '100%',
            background: e.colorBgContainer,
            opacity: 0,
            transition: `all ${e.motionDurationSlow}`,
            content: '""',
            pointerEvents: 'none'
          }
        },
        [`${e.componentCls}-blur`]: {
          clear: 'both',
          opacity: 0.5,
          userSelect: 'none',
          pointerEvents: 'none',
          '&::after': { opacity: 0.4, pointerEvents: 'auto' }
        }
      },
      '&-tip': { color: e.spinDotDefault },
      [`${e.componentCls}-dot`]: {
        position: 'relative',
        display: 'inline-block',
        fontSize: e.spinDotSize,
        width: '1em',
        height: '1em',
        '&-item': {
          position: 'absolute',
          display: 'block',
          width: (e.spinDotSize - e.marginXXS / 2) / 2,
          height: (e.spinDotSize - e.marginXXS / 2) / 2,
          backgroundColor: e.colorPrimary,
          borderRadius: '100%',
          transform: 'scale(0.75)',
          transformOrigin: '50% 50%',
          opacity: 0.3,
          animationName: $B,
          animationDuration: '1s',
          animationIterationCount: 'infinite',
          animationTimingFunction: 'linear',
          animationDirection: 'alternate',
          '&:nth-child(1)': { top: 0, insetInlineStart: 0 },
          '&:nth-child(2)': {
            top: 0,
            insetInlineEnd: 0,
            animationDelay: '0.4s'
          },
          '&:nth-child(3)': {
            insetInlineEnd: 0,
            bottom: 0,
            animationDelay: '0.8s'
          },
          '&:nth-child(4)': {
            bottom: 0,
            insetInlineStart: 0,
            animationDelay: '1.2s'
          }
        },
        '&-spin': {
          transform: 'rotate(45deg)',
          animationName: wB,
          animationDuration: '1.2s',
          animationIterationCount: 'infinite',
          animationTimingFunction: 'linear'
        }
      },
      [`&-sm ${e.componentCls}-dot`]: {
        fontSize: e.spinDotSizeSM,
        i: {
          width: (e.spinDotSizeSM - e.marginXXS / 2) / 2,
          height: (e.spinDotSizeSM - e.marginXXS / 2) / 2
        }
      },
      [`&-lg ${e.componentCls}-dot`]: {
        fontSize: e.spinDotSizeLG,
        i: {
          width: (e.spinDotSizeLG - e.marginXXS) / 2,
          height: (e.spinDotSizeLG - e.marginXXS) / 2
        }
      },
      [`&${e.componentCls}-show-text ${e.componentCls}-text`]: {
        display: 'block'
      }
    })
  }),
  PB = pt(
    'Spin',
    e => {
      const t = Ze(e, {
        spinDotDefault: e.colorTextDescription,
        spinDotSize: e.controlHeightLG / 2,
        spinDotSizeSM: e.controlHeightLG * 0.35,
        spinDotSizeLG: e.controlHeight
      })
      return [OB(t)]
    },
    { contentHeight: 400 }
  )
var TB =
  (globalThis && globalThis.__rest) ||
  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 IB = () => ({
  prefixCls: String,
  spinning: { type: Boolean, default: void 0 },
  size: String,
  wrapperClassName: String,
  tip: k.any,
  delay: Number,
  indicator: k.any
})
let Hi = null
function EB(e, t) {
  return !!e && !!t && !isNaN(Number(t))
}
function _B(e) {
  const t = e.indicator
  Hi = typeof t == 'function' ? t : () => v(t, null, null)
}
const Nr = J({
  compatConfig: { MODE: 3 },
  name: 'ASpin',
  inheritAttrs: !1,
  props: mt(IB(), { size: 'default', spinning: !0, wrapperClassName: '' }),
  setup(e, t) {
    let { attrs: n, slots: o } = t
    const { prefixCls: r, size: i, direction: l } = je('spin', e),
      [a, s] = PB(r),
      u = V(e.spinning && !EB(e.spinning, e.delay))
    let c
    return (
      ge(
        [() => e.spinning, () => e.delay],
        () => {
          c == null || c.cancel(),
            (c = CB(e.delay, () => {
              u.value = e.spinning
            })),
            c == null || c()
        },
        { immediate: !0, flush: 'post' }
      ),
      Qe(() => {
        c == null || c.cancel()
      }),
      () => {
        var d, f
        const { class: m } = n,
          g = TB(n, ['class']),
          {
            tip: h = (d = o.tip) === null || d === void 0 ? void 0 : d.call(o)
          } = e,
          b = (f = o.default) === null || f === void 0 ? void 0 : f.call(o),
          S = {
            [s.value]: !0,
            [r.value]: !0,
            [`${r.value}-sm`]: i.value === 'small',
            [`${r.value}-lg`]: i.value === 'large',
            [`${r.value}-spinning`]: u.value,
            [`${r.value}-show-text`]: !!h,
            [`${r.value}-rtl`]: l.value === 'rtl',
            [m]: !!m
          }
        function C(O) {
          const x = `${O}-dot`
          let w = ao(o, e, 'indicator')
          return w === null
            ? null
            : (Array.isArray(w) && (w = w.length === 1 ? w[0] : w),
              Mt(w)
                ? vo(w, { class: x })
                : Hi && Mt(Hi())
                ? vo(Hi(), { class: x })
                : v('span', { class: `${x} ${O}-dot-spin` }, [
                    v('i', { class: `${O}-dot-item` }, null),
                    v('i', { class: `${O}-dot-item` }, null),
                    v('i', { class: `${O}-dot-item` }, null),
                    v('i', { class: `${O}-dot-item` }, null)
                  ]))
        }
        const $ = v(
          'div',
          N(
            N({}, g),
            {},
            { class: S, 'aria-live': 'polite', 'aria-busy': u.value }
          ),
          [C(r.value), h ? v('div', { class: `${r.value}-text` }, [h]) : null]
        )
        if (b && Tt(b).length) {
          const O = {
            [`${r.value}-container`]: !0,
            [`${r.value}-blur`]: u.value
          }
          return a(
            v(
              'div',
              {
                class: [
                  `${r.value}-nested-loading`,
                  e.wrapperClassName,
                  s.value
                ]
              },
              [
                u.value && v('div', { key: 'loading' }, [$]),
                v('div', { class: O, key: 'container' }, [b])
              ]
            )
          )
        }
        return a($)
      }
    )
  }
})
Nr.setDefaultIndicator = _B
Nr.install = function(e) {
  return e.component(Nr.name, Nr), e
}
function vv(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) {
        RB(e, r, n[r])
      })
  }
  return e
}
function RB(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Ku = function(t, n) {
  var o = vv({}, t, n.attrs)
  return v(et, vv({}, o, { icon: eS }), null)
}
Ku.displayName = 'DoubleLeftOutlined'
Ku.inheritAttrs = !1
const mv = Ku
function gv(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) {
        AB(e, r, n[r])
      })
  }
  return e
}
function AB(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Wu = function(t, n) {
  var o = gv({}, t, n.attrs)
  return v(et, gv({}, o, { icon: tS }), null)
}
Wu.displayName = 'DoubleRightOutlined'
Wu.inheritAttrs = !1
const hv = Wu,
  DB = J({
    name: 'MiniSelect',
    compatConfig: { MODE: 3 },
    inheritAttrs: !1,
    props: uu(),
    Option: ir.Option,
    setup(e, t) {
      let { attrs: n, slots: o } = t
      return () => {
        const r = p(p(p({}, e), { size: 'small' }), n)
        return v(ir, r, o)
      }
    }
  }),
  MB = J({
    name: 'MiddleSelect',
    inheritAttrs: !1,
    props: uu(),
    Option: ir.Option,
    setup(e, t) {
      let { attrs: n, slots: o } = t
      return () => {
        const r = p(p(p({}, e), { size: 'middle' }), n)
        return v(ir, r, o)
      }
    }
  }),
  Zn = J({
    compatConfig: { MODE: 3 },
    name: 'Pager',
    inheritAttrs: !1,
    props: {
      rootPrefixCls: String,
      page: Number,
      active: { type: Boolean, default: void 0 },
      last: { type: Boolean, default: void 0 },
      locale: k.object,
      showTitle: { type: Boolean, default: void 0 },
      itemRender: { type: Function, default: () => {} },
      onClick: { type: Function },
      onKeypress: { type: Function }
    },
    eimt: ['click', 'keypress'],
    setup(e, t) {
      let { emit: n, attrs: o } = t
      const r = () => {
          n('click', e.page)
        },
        i = l => {
          n('keypress', l, r, e.page)
        }
      return () => {
        const { showTitle: l, page: a, itemRender: s } = e,
          { class: u, style: c } = o,
          d = `${e.rootPrefixCls}-item`,
          f = oe(
            d,
            `${d}-${e.page}`,
            { [`${d}-active`]: e.active, [`${d}-disabled`]: !e.page },
            u
          )
        return v(
          'li',
          {
            onClick: r,
            onKeypress: i,
            title: l ? String(a) : null,
            tabindex: '0',
            class: f,
            style: c
          },
          [
            s({
              page: a,
              type: 'page',
              originalElement: v('a', { rel: 'nofollow' }, [a])
            })
          ]
        )
      }
    }
  }),
  to = {
    ZERO: 48,
    NINE: 57,
    NUMPAD_ZERO: 96,
    NUMPAD_NINE: 105,
    BACKSPACE: 8,
    DELETE: 46,
    ENTER: 13,
    ARROW_UP: 38,
    ARROW_DOWN: 40
  },
  NB = J({
    compatConfig: { MODE: 3 },
    props: {
      disabled: { type: Boolean, default: void 0 },
      changeSize: Function,
      quickGo: Function,
      selectComponentClass: k.any,
      current: Number,
      pageSizeOptions: k.array.def(['10', '20', '50', '100']),
      pageSize: Number,
      buildOptionText: Function,
      locale: k.object,
      rootPrefixCls: String,
      selectPrefixCls: String,
      goButton: k.any
    },
    setup(e) {
      const t = ne(''),
        n = P(() => (!t.value || isNaN(t.value) ? void 0 : Number(t.value))),
        o = s => `${s.value} ${e.locale.items_per_page}`,
        r = s => {
          const { value: u } = s.target
          t.value !== u && (t.value = u)
        },
        i = s => {
          const { goButton: u, quickGo: c, rootPrefixCls: d } = e
          if (!(u || t.value === ''))
            if (
              s.relatedTarget &&
              (s.relatedTarget.className.indexOf(`${d}-item-link`) >= 0 ||
                s.relatedTarget.className.indexOf(`${d}-item`) >= 0)
            ) {
              t.value = ''
              return
            } else c(n.value), (t.value = '')
        },
        l = s => {
          t.value !== '' &&
            (s.keyCode === to.ENTER || s.type === 'click') &&
            (e.quickGo(n.value), (t.value = ''))
        },
        a = P(() => {
          const { pageSize: s, pageSizeOptions: u } = e
          return u.some(c => c.toString() === s.toString())
            ? u
            : u.concat([s.toString()]).sort((c, d) => {
                const f = isNaN(Number(c)) ? 0 : Number(c),
                  m = isNaN(Number(d)) ? 0 : Number(d)
                return f - m
              })
        })
      return () => {
        const {
            rootPrefixCls: s,
            locale: u,
            changeSize: c,
            quickGo: d,
            goButton: f,
            selectComponentClass: m,
            selectPrefixCls: g,
            pageSize: h,
            disabled: b
          } = e,
          S = `${s}-options`
        let C = null,
          $ = null,
          O = null
        if (!c && !d) return null
        if (c && m) {
          const x = e.buildOptionText || o,
            w = a.value.map((y, T) =>
              v(
                m.Option,
                { key: T, value: y },
                { default: () => [x({ value: y })] }
              )
            )
          C = v(
            m,
            {
              disabled: b,
              prefixCls: g,
              showSearch: !1,
              class: `${S}-size-changer`,
              optionLabelProp: 'children',
              value: (h || a.value[0]).toString(),
              onChange: y => c(Number(y)),
              getPopupContainer: y => y.parentNode
            },
            { default: () => [w] }
          )
        }
        return (
          d &&
            (f &&
              (O =
                typeof f == 'boolean'
                  ? v(
                      'button',
                      {
                        type: 'button',
                        onClick: l,
                        onKeyup: l,
                        disabled: b,
                        class: `${S}-quick-jumper-button`
                      },
                      [u.jump_to_confirm]
                    )
                  : v('span', { onClick: l, onKeyup: l }, [f])),
            ($ = v('div', { class: `${S}-quick-jumper` }, [
              u.jump_to,
              v(
                ei,
                {
                  disabled: b,
                  type: 'text',
                  value: t.value,
                  onInput: r,
                  onChange: r,
                  onKeyup: l,
                  onBlur: i
                },
                null
              ),
              u.page,
              O
            ]))),
          v('li', { class: `${S}` }, [C, $])
        )
      }
    }
  }),
  BB = {
    items_per_page: '条/页',
    jump_to: '跳至',
    jump_to_confirm: '确定',
    page: '页',
    prev_page: '上一页',
    next_page: '下一页',
    prev_5: '向前 5 页',
    next_5: '向后 5 页',
    prev_3: '向前 3 页',
    next_3: '向后 3 页'
  }
var zB =
  (globalThis && globalThis.__rest) ||
  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 LB(e) {
  return typeof e == 'number' && isFinite(e) && Math.floor(e) === e
}
function FB(e) {
  let { originalElement: t } = e
  return t
}
function Cn(e, t, n) {
  const o = typeof e > 'u' ? t.statePageSize : e
  return Math.floor((n.total - 1) / o) + 1
}
const HB = J({
    compatConfig: { MODE: 3 },
    name: 'Pagination',
    mixins: [Jg],
    inheritAttrs: !1,
    props: {
      disabled: { type: Boolean, default: void 0 },
      prefixCls: k.string.def('rc-pagination'),
      selectPrefixCls: k.string.def('rc-select'),
      current: Number,
      defaultCurrent: k.number.def(1),
      total: k.number.def(0),
      pageSize: Number,
      defaultPageSize: k.number.def(10),
      hideOnSinglePage: { type: Boolean, default: !1 },
      showSizeChanger: { type: Boolean, default: void 0 },
      showLessItems: { type: Boolean, default: !1 },
      selectComponentClass: k.any,
      showPrevNextJumpers: { type: Boolean, default: !0 },
      showQuickJumper: k.oneOfType([k.looseBool, k.object]).def(!1),
      showTitle: { type: Boolean, default: !0 },
      pageSizeOptions: k.arrayOf(k.oneOfType([k.number, k.string])),
      buildOptionText: Function,
      showTotal: Function,
      simple: { type: Boolean, default: void 0 },
      locale: k.object.def(BB),
      itemRender: k.func.def(FB),
      prevIcon: k.any,
      nextIcon: k.any,
      jumpPrevIcon: k.any,
      jumpNextIcon: k.any,
      totalBoundaryShowSizeChanger: k.number.def(50)
    },
    data() {
      const e = this.$props
      let t = ws([this.current, this.defaultCurrent])
      const n = ws([this.pageSize, this.defaultPageSize])
      return (
        (t = Math.min(t, Cn(n, void 0, e))),
        { stateCurrent: t, stateCurrentInputValue: t, statePageSize: n }
      )
    },
    watch: {
      current(e) {
        this.setState({ stateCurrent: e, stateCurrentInputValue: e })
      },
      pageSize(e) {
        const t = {}
        let n = this.stateCurrent
        const o = Cn(e, this.$data, this.$props)
        ;(n = n > o ? o : n),
          Lo(this, 'current') ||
            ((t.stateCurrent = n), (t.stateCurrentInputValue = n)),
          (t.statePageSize = e),
          this.setState(t)
      },
      stateCurrent(e, t) {
        this.$nextTick(() => {
          if (this.$refs.paginationNode) {
            const n = this.$refs.paginationNode.querySelector(
              `.${this.prefixCls}-item-${t}`
            )
            n && document.activeElement === n && n.blur()
          }
        })
      },
      total() {
        const e = {},
          t = Cn(this.pageSize, this.$data, this.$props)
        if (Lo(this, 'current')) {
          const n = Math.min(this.current, t)
          ;(e.stateCurrent = n), (e.stateCurrentInputValue = n)
        } else {
          let n = this.stateCurrent
          n === 0 && t > 0 ? (n = 1) : (n = Math.min(this.stateCurrent, t)),
            (e.stateCurrent = n)
        }
        this.setState(e)
      }
    },
    methods: {
      getJumpPrevPage() {
        return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5))
      },
      getJumpNextPage() {
        return Math.min(
          Cn(void 0, this.$data, this.$props),
          this.stateCurrent + (this.showLessItems ? 3 : 5)
        )
      },
      getItemIcon(e, t) {
        const { prefixCls: n } = this.$props
        return (
          Im(this, e, this.$props) ||
          v(
            'button',
            { type: 'button', 'aria-label': t, class: `${n}-item-link` },
            null
          )
        )
      },
      getValidValue(e) {
        const t = e.target.value,
          n = Cn(void 0, this.$data, this.$props),
          { stateCurrentInputValue: o } = this.$data
        let r
        return (
          t === ''
            ? (r = t)
            : isNaN(Number(t))
            ? (r = o)
            : t >= n
            ? (r = n)
            : (r = Number(t)),
          r
        )
      },
      isValid(e) {
        return LB(e) && e !== this.stateCurrent
      },
      shouldDisplayQuickJumper() {
        const { showQuickJumper: e, pageSize: t, total: n } = this.$props
        return n <= t ? !1 : e
      },
      handleKeyDown(e) {
        ;(e.keyCode === to.ARROW_UP || e.keyCode === to.ARROW_DOWN) &&
          e.preventDefault()
      },
      handleKeyUp(e) {
        const t = this.getValidValue(e),
          n = this.stateCurrentInputValue
        t !== n && this.setState({ stateCurrentInputValue: t }),
          e.keyCode === to.ENTER
            ? this.handleChange(t)
            : e.keyCode === to.ARROW_UP
            ? this.handleChange(t - 1)
            : e.keyCode === to.ARROW_DOWN && this.handleChange(t + 1)
      },
      changePageSize(e) {
        let t = this.stateCurrent
        const n = t,
          o = Cn(e, this.$data, this.$props)
        ;(t = t > o ? o : t),
          o === 0 && (t = this.stateCurrent),
          typeof e == 'number' &&
            (Lo(this, 'pageSize') || this.setState({ statePageSize: e }),
            Lo(this, 'current') ||
              this.setState({ stateCurrent: t, stateCurrentInputValue: t })),
          this.__emit('update:pageSize', e),
          t !== n && this.__emit('update:current', t),
          this.__emit('showSizeChange', t, e),
          this.__emit('change', t, e)
      },
      handleChange(e) {
        const { disabled: t } = this.$props
        let n = e
        if (this.isValid(n) && !t) {
          const o = Cn(void 0, this.$data, this.$props)
          return (
            n > o ? (n = o) : n < 1 && (n = 1),
            Lo(this, 'current') ||
              this.setState({ stateCurrent: n, stateCurrentInputValue: n }),
            this.__emit('update:current', n),
            this.__emit('change', n, this.statePageSize),
            n
          )
        }
        return this.stateCurrent
      },
      prev() {
        this.hasPrev() && this.handleChange(this.stateCurrent - 1)
      },
      next() {
        this.hasNext() && this.handleChange(this.stateCurrent + 1)
      },
      jumpPrev() {
        this.handleChange(this.getJumpPrevPage())
      },
      jumpNext() {
        this.handleChange(this.getJumpNextPage())
      },
      hasPrev() {
        return this.stateCurrent > 1
      },
      hasNext() {
        return this.stateCurrent < Cn(void 0, this.$data, this.$props)
      },
      getShowSizeChanger() {
        const {
          showSizeChanger: e,
          total: t,
          totalBoundaryShowSizeChanger: n
        } = this.$props
        return typeof e < 'u' ? e : t > n
      },
      runIfEnter(e, t) {
        if (e.key === 'Enter' || e.charCode === 13) {
          e.preventDefault()
          for (
            var n = arguments.length, o = new Array(n > 2 ? n - 2 : 0), r = 2;
            r < n;
            r++
          )
            o[r - 2] = arguments[r]
          t(...o)
        }
      },
      runIfEnterPrev(e) {
        this.runIfEnter(e, this.prev)
      },
      runIfEnterNext(e) {
        this.runIfEnter(e, this.next)
      },
      runIfEnterJumpPrev(e) {
        this.runIfEnter(e, this.jumpPrev)
      },
      runIfEnterJumpNext(e) {
        this.runIfEnter(e, this.jumpNext)
      },
      handleGoTO(e) {
        ;(e.keyCode === to.ENTER || e.type === 'click') &&
          this.handleChange(this.stateCurrentInputValue)
      },
      renderPrev(e) {
        const { itemRender: t } = this.$props,
          n = t({
            page: e,
            type: 'prev',
            originalElement: this.getItemIcon('prevIcon', 'prev page')
          }),
          o = !this.hasPrev()
        return Ft(n) ? ft(n, o ? { disabled: o } : {}) : n
      },
      renderNext(e) {
        const { itemRender: t } = this.$props,
          n = t({
            page: e,
            type: 'next',
            originalElement: this.getItemIcon('nextIcon', 'next page')
          }),
          o = !this.hasNext()
        return Ft(n) ? ft(n, o ? { disabled: o } : {}) : n
      }
    },
    render() {
      const {
          prefixCls: e,
          disabled: t,
          hideOnSinglePage: n,
          total: o,
          locale: r,
          showQuickJumper: i,
          showLessItems: l,
          showTitle: a,
          showTotal: s,
          simple: u,
          itemRender: c,
          showPrevNextJumpers: d,
          jumpPrevIcon: f,
          jumpNextIcon: m,
          selectComponentClass: g,
          selectPrefixCls: h,
          pageSizeOptions: b
        } = this.$props,
        { stateCurrent: S, statePageSize: C } = this,
        $ = Pm(this.$attrs).extraAttrs,
        { class: O } = $,
        x = zB($, ['class'])
      if (n === !0 && this.total <= C) return null
      const w = Cn(void 0, this.$data, this.$props),
        y = []
      let T = null,
        I = null,
        _ = null,
        A = null,
        z = null
      const M = i && i.goButton,
        j = l ? 1 : 2,
        E = S - 1 > 0 ? S - 1 : 0,
        R = S + 1 < w ? S + 1 : w,
        L = this.hasPrev(),
        W = this.hasNext()
      if (u)
        return (
          M &&
            (typeof M == 'boolean'
              ? (z = v(
                  'button',
                  {
                    type: 'button',
                    onClick: this.handleGoTO,
                    onKeyup: this.handleGoTO
                  },
                  [r.jump_to_confirm]
                ))
              : (z = v(
                  'span',
                  { onClick: this.handleGoTO, onKeyup: this.handleGoTO },
                  [M]
                )),
            (z = v(
              'li',
              {
                title: a ? `${r.jump_to}${S}/${w}` : null,
                class: `${e}-simple-pager`
              },
              [z]
            ))),
          v(
            'ul',
            N(
              { class: oe(`${e} ${e}-simple`, { [`${e}-disabled`]: t }, O) },
              x
            ),
            [
              v(
                'li',
                {
                  title: a ? r.prev_page : null,
                  onClick: this.prev,
                  tabindex: L ? 0 : null,
                  onKeypress: this.runIfEnterPrev,
                  class: oe(`${e}-prev`, { [`${e}-disabled`]: !L }),
                  'aria-disabled': !L
                },
                [this.renderPrev(E)]
              ),
              v(
                'li',
                { title: a ? `${S}/${w}` : null, class: `${e}-simple-pager` },
                [
                  v(
                    ei,
                    {
                      type: 'text',
                      value: this.stateCurrentInputValue,
                      disabled: t,
                      onKeydown: this.handleKeyDown,
                      onKeyup: this.handleKeyUp,
                      onInput: this.handleKeyUp,
                      onChange: this.handleKeyUp,
                      size: '3'
                    },
                    null
                  ),
                  v('span', { class: `${e}-slash` }, [kn('／')]),
                  w
                ]
              ),
              v(
                'li',
                {
                  title: a ? r.next_page : null,
                  onClick: this.next,
                  tabindex: W ? 0 : null,
                  onKeypress: this.runIfEnterNext,
                  class: oe(`${e}-next`, { [`${e}-disabled`]: !W }),
                  'aria-disabled': !W
                },
                [this.renderNext(R)]
              ),
              z
            ]
          )
        )
      if (w <= 3 + j * 2) {
        const X = {
          locale: r,
          rootPrefixCls: e,
          showTitle: a,
          itemRender: c,
          onClick: this.handleChange,
          onKeypress: this.runIfEnter
        }
        w ||
          y.push(
            v(
              Zn,
              N(
                N({}, X),
                {},
                { key: 'noPager', page: 1, class: `${e}-item-disabled` }
              ),
              null
            )
          )
        for (let ee = 1; ee <= w; ee += 1) {
          const de = S === ee
          y.push(
            v(Zn, N(N({}, X), {}, { key: ee, page: ee, active: de }), null)
          )
        }
      } else {
        const X = l ? r.prev_3 : r.prev_5,
          ee = l ? r.next_3 : r.next_5
        d &&
          ((T = v(
            'li',
            {
              title: this.showTitle ? X : null,
              key: 'prev',
              onClick: this.jumpPrev,
              tabindex: '0',
              onKeypress: this.runIfEnterJumpPrev,
              class: oe(`${e}-jump-prev`, {
                [`${e}-jump-prev-custom-icon`]: !!f
              })
            },
            [
              c({
                page: this.getJumpPrevPage(),
                type: 'jump-prev',
                originalElement: this.getItemIcon('jumpPrevIcon', 'prev page')
              })
            ]
          )),
          (I = v(
            'li',
            {
              title: this.showTitle ? ee : null,
              key: 'next',
              tabindex: '0',
              onClick: this.jumpNext,
              onKeypress: this.runIfEnterJumpNext,
              class: oe(`${e}-jump-next`, {
                [`${e}-jump-next-custom-icon`]: !!m
              })
            },
            [
              c({
                page: this.getJumpNextPage(),
                type: 'jump-next',
                originalElement: this.getItemIcon('jumpNextIcon', 'next page')
              })
            ]
          ))),
          (A = v(
            Zn,
            {
              locale: r,
              last: !0,
              rootPrefixCls: e,
              onClick: this.handleChange,
              onKeypress: this.runIfEnter,
              key: w,
              page: w,
              active: !1,
              showTitle: a,
              itemRender: c
            },
            null
          )),
          (_ = v(
            Zn,
            {
              locale: r,
              rootPrefixCls: e,
              onClick: this.handleChange,
              onKeypress: this.runIfEnter,
              key: 1,
              page: 1,
              active: !1,
              showTitle: a,
              itemRender: c
            },
            null
          ))
        let de = Math.max(1, S - j),
          ie = Math.min(S + j, w)
        S - 1 <= j && (ie = 1 + j * 2), w - S <= j && (de = w - j * 2)
        for (let Q = de; Q <= ie; Q += 1) {
          const se = S === Q
          y.push(
            v(
              Zn,
              {
                locale: r,
                rootPrefixCls: e,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: Q,
                page: Q,
                active: se,
                showTitle: a,
                itemRender: c
              },
              null
            )
          )
        }
        S - 1 >= j * 2 &&
          S !== 1 + 2 &&
          ((y[0] = v(
            Zn,
            {
              locale: r,
              rootPrefixCls: e,
              onClick: this.handleChange,
              onKeypress: this.runIfEnter,
              key: de,
              page: de,
              class: `${e}-item-after-jump-prev`,
              active: !1,
              showTitle: this.showTitle,
              itemRender: c
            },
            null
          )),
          y.unshift(T)),
          w - S >= j * 2 &&
            S !== w - 2 &&
            ((y[y.length - 1] = v(
              Zn,
              {
                locale: r,
                rootPrefixCls: e,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: ie,
                page: ie,
                class: `${e}-item-before-jump-next`,
                active: !1,
                showTitle: this.showTitle,
                itemRender: c
              },
              null
            )),
            y.push(I)),
          de !== 1 && y.unshift(_),
          ie !== w && y.push(A)
      }
      let D = null
      s &&
        (D = v('li', { class: `${e}-total-text` }, [
          s(o, [o === 0 ? 0 : (S - 1) * C + 1, S * C > o ? o : S * C])
        ]))
      const F = !L || !w,
        H = !W || !w,
        B = this.buildOptionText || this.$slots.buildOptionText
      return v(
        'ul',
        N(
          N({ unselectable: 'on', ref: 'paginationNode' }, x),
          {},
          { class: oe({ [`${e}`]: !0, [`${e}-disabled`]: t }, O) }
        ),
        [
          D,
          v(
            'li',
            {
              title: a ? r.prev_page : null,
              onClick: this.prev,
              tabindex: F ? null : 0,
              onKeypress: this.runIfEnterPrev,
              class: oe(`${e}-prev`, { [`${e}-disabled`]: F }),
              'aria-disabled': F
            },
            [this.renderPrev(E)]
          ),
          y,
          v(
            'li',
            {
              title: a ? r.next_page : null,
              onClick: this.next,
              tabindex: H ? null : 0,
              onKeypress: this.runIfEnterNext,
              class: oe(`${e}-next`, { [`${e}-disabled`]: H }),
              'aria-disabled': H
            },
            [this.renderNext(R)]
          ),
          v(
            NB,
            {
              disabled: t,
              locale: r,
              rootPrefixCls: e,
              selectComponentClass: g,
              selectPrefixCls: h,
              changeSize: this.getShowSizeChanger()
                ? this.changePageSize
                : null,
              current: S,
              pageSize: C,
              pageSizeOptions: b,
              buildOptionText: B || null,
              quickGo: this.shouldDisplayQuickJumper()
                ? this.handleChange
                : null,
              goButton: M
            },
            null
          )
        ]
      )
    }
  }),
  kB = e => {
    const { componentCls: t } = e
    return {
      [`${t}-disabled`]: {
        '&, &:hover': {
          cursor: 'not-allowed',
          [`${t}-item-link`]: {
            color: e.colorTextDisabled,
            cursor: 'not-allowed'
          }
        },
        '&:focus-visible': {
          cursor: 'not-allowed',
          [`${t}-item-link`]: {
            color: e.colorTextDisabled,
            cursor: 'not-allowed'
          }
        }
      },
      [`&${t}-disabled`]: {
        cursor: 'not-allowed',
        [`&${t}-mini`]: {
          [`
          &:hover ${t}-item:not(${t}-item-active),
          &:active ${t}-item:not(${t}-item-active),
          &:hover ${t}-item-link,
          &:active ${t}-item-link
        `]: { backgroundColor: 'transparent' }
        },
        [`${t}-item`]: {
          cursor: 'not-allowed',
          '&:hover, &:active': { backgroundColor: 'transparent' },
          a: {
            color: e.colorTextDisabled,
            backgroundColor: 'transparent',
            border: 'none',
            cursor: 'not-allowed'
          },
          '&-active': {
            borderColor: e.colorBorder,
            backgroundColor: e.paginationItemDisabledBgActive,
            '&:hover, &:active': {
              backgroundColor: e.paginationItemDisabledBgActive
            },
            a: { color: e.paginationItemDisabledColorActive }
          }
        },
        [`${t}-item-link`]: {
          color: e.colorTextDisabled,
          cursor: 'not-allowed',
          '&:hover, &:active': { backgroundColor: 'transparent' },
          [`${t}-simple&`]: {
            backgroundColor: 'transparent',
            '&:hover, &:active': { backgroundColor: 'transparent' }
          }
        },
        [`${t}-simple-pager`]: { color: e.colorTextDisabled },
        [`${t}-jump-prev, ${t}-jump-next`]: {
          [`${t}-item-link-icon`]: { opacity: 0 },
          [`${t}-item-ellipsis`]: { opacity: 1 }
        }
      },
      [`&${t}-simple`]: {
        [`${t}-prev, ${t}-next`]: {
          [`&${t}-disabled ${t}-item-link`]: {
            '&:hover, &:active': { backgroundColor: 'transparent' }
          }
        }
      }
    }
  },
  jB = e => {
    const { componentCls: t } = e
    return {
      [`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]: {
        height: e.paginationItemSizeSM,
        lineHeight: `${e.paginationItemSizeSM}px`
      },
      [`&${t}-mini ${t}-item`]: {
        minWidth: e.paginationItemSizeSM,
        height: e.paginationItemSizeSM,
        margin: 0,
        lineHeight: `${e.paginationItemSizeSM - 2}px`
      },
      [`&${t}-mini ${t}-item:not(${t}-item-active)`]: {
        backgroundColor: 'transparent',
        borderColor: 'transparent',
        '&:hover': { backgroundColor: e.colorBgTextHover },
        '&:active': { backgroundColor: e.colorBgTextActive }
      },
      [`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]: {
        minWidth: e.paginationItemSizeSM,
        height: e.paginationItemSizeSM,
        margin: 0,
        lineHeight: `${e.paginationItemSizeSM}px`,
        [`&:hover ${t}-item-link`]: { backgroundColor: e.colorBgTextHover },
        [`&:active ${t}-item-link`]: { backgroundColor: e.colorBgTextActive },
        [`&${t}-disabled:hover ${t}-item-link`]: {
          backgroundColor: 'transparent'
        }
      },
      [`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]: {
        backgroundColor: 'transparent',
        borderColor: 'transparent',
        '&::after': {
          height: e.paginationItemSizeSM,
          lineHeight: `${e.paginationItemSizeSM}px`
        }
      },
      [`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]: {
        height: e.paginationItemSizeSM,
        marginInlineEnd: 0,
        lineHeight: `${e.paginationItemSizeSM}px`
      },
      [`&${t}-mini ${t}-options`]: {
        marginInlineStart: e.paginationMiniOptionsMarginInlineStart,
        '&-size-changer': { top: e.paginationMiniOptionsSizeChangerTop },
        '&-quick-jumper': {
          height: e.paginationItemSizeSM,
          lineHeight: `${e.paginationItemSizeSM}px`,
          input: p(p({}, Tu(e)), {
            width: e.paginationMiniQuickJumperInputWidth,
            height: e.controlHeightSM
          })
        }
      }
    }
  },
  KB = e => {
    const { componentCls: t } = e
    return {
      [`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]: {
        height: e.paginationItemSizeSM,
        lineHeight: `${e.paginationItemSizeSM}px`,
        verticalAlign: 'top',
        [`${t}-item-link`]: {
          height: e.paginationItemSizeSM,
          backgroundColor: 'transparent',
          border: 0,
          '&:hover': { backgroundColor: e.colorBgTextHover },
          '&:active': { backgroundColor: e.colorBgTextActive },
          '&::after': {
            height: e.paginationItemSizeSM,
            lineHeight: `${e.paginationItemSizeSM}px`
          }
        }
      },
      [`&${t}-simple ${t}-simple-pager`]: {
        display: 'inline-block',
        height: e.paginationItemSizeSM,
        marginInlineEnd: e.marginXS,
        input: {
          boxSizing: 'border-box',
          height: '100%',
          marginInlineEnd: e.marginXS,
          padding: `0 ${e.paginationItemPaddingInline}px`,
          textAlign: 'center',
          backgroundColor: e.paginationItemInputBg,
          border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
          borderRadius: e.borderRadius,
          outline: 'none',
          transition: `border-color ${e.motionDurationMid}`,
          color: 'inherit',
          '&:hover': { borderColor: e.colorPrimary },
          '&:focus': {
            borderColor: e.colorPrimaryHover,
            boxShadow: `${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`
          },
          '&[disabled]': {
            color: e.colorTextDisabled,
            backgroundColor: e.colorBgContainerDisabled,
            borderColor: e.colorBorder,
            cursor: 'not-allowed'
          }
        }
      }
    }
  },
  WB = e => {
    const { componentCls: t } = e
    return {
      [`${t}-jump-prev, ${t}-jump-next`]: {
        outline: 0,
        [`${t}-item-container`]: {
          position: 'relative',
          [`${t}-item-link-icon`]: {
            color: e.colorPrimary,
            fontSize: e.fontSizeSM,
            opacity: 0,
            transition: `all ${e.motionDurationMid}`,
            '&-svg': {
              top: 0,
              insetInlineEnd: 0,
              bottom: 0,
              insetInlineStart: 0,
              margin: 'auto'
            }
          },
          [`${t}-item-ellipsis`]: {
            position: 'absolute',
            top: 0,
            insetInlineEnd: 0,
            bottom: 0,
            insetInlineStart: 0,
            display: 'block',
            margin: 'auto',
            color: e.colorTextDisabled,
            fontFamily: 'Arial, Helvetica, sans-serif',
            letterSpacing: e.paginationEllipsisLetterSpacing,
            textAlign: 'center',
            textIndent: e.paginationEllipsisTextIndent,
            opacity: 1,
            transition: `all ${e.motionDurationMid}`
          }
        },
        '&:hover': {
          [`${t}-item-link-icon`]: { opacity: 1 },
          [`${t}-item-ellipsis`]: { opacity: 0 }
        },
        '&:focus-visible': p(
          {
            [`${t}-item-link-icon`]: { opacity: 1 },
            [`${t}-item-ellipsis`]: { opacity: 0 }
          },
          En(e)
        )
      },
      [`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]: { marginInlineEnd: e.marginXS },
      [`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]: {
        display: 'inline-block',
        minWidth: e.paginationItemSize,
        height: e.paginationItemSize,
        color: e.colorText,
        fontFamily: e.paginationFontFamily,
        lineHeight: `${e.paginationItemSize}px`,
        textAlign: 'center',
        verticalAlign: 'middle',
        listStyle: 'none',
        borderRadius: e.borderRadius,
        cursor: 'pointer',
        transition: `all ${e.motionDurationMid}`
      },
      [`${t}-prev, ${t}-next`]: {
        fontFamily: 'Arial, Helvetica, sans-serif',
        outline: 0,
        button: { color: e.colorText, cursor: 'pointer', userSelect: 'none' },
        [`${t}-item-link`]: {
          display: 'block',
          width: '100%',
          height: '100%',
          padding: 0,
          fontSize: e.fontSizeSM,
          textAlign: 'center',
          backgroundColor: 'transparent',
          border: `${e.lineWidth}px ${e.lineType} transparent`,
          borderRadius: e.borderRadius,
          outline: 'none',
          transition: `all ${e.motionDurationMid}`
        },
        [`&:focus-visible ${t}-item-link`]: p({}, En(e)),
        [`&:hover ${t}-item-link`]: { backgroundColor: e.colorBgTextHover },
        [`&:active ${t}-item-link`]: { backgroundColor: e.colorBgTextActive },
        [`&${t}-disabled:hover`]: {
          [`${t}-item-link`]: { backgroundColor: 'transparent' }
        }
      },
      [`${t}-slash`]: {
        marginInlineEnd: e.paginationSlashMarginInlineEnd,
        marginInlineStart: e.paginationSlashMarginInlineStart
      },
      [`${t}-options`]: {
        display: 'inline-block',
        marginInlineStart: e.margin,
        verticalAlign: 'middle',
        '&-size-changer.-select': { display: 'inline-block', width: 'auto' },
        '&-quick-jumper': {
          display: 'inline-block',
          height: e.controlHeight,
          marginInlineStart: e.marginXS,
          lineHeight: `${e.controlHeight}px`,
          verticalAlign: 'top',
          input: p(p({}, Iu(e)), {
            width: e.controlHeightLG * 1.25,
            height: e.controlHeight,
            boxSizing: 'border-box',
            margin: 0,
            marginInlineStart: e.marginXS,
            marginInlineEnd: e.marginXS
          })
        }
      }
    }
  },
  VB = e => {
    const { componentCls: t } = e
    return {
      [`${t}-item`]: p(
        p(
          {
            display: 'inline-block',
            minWidth: e.paginationItemSize,
            height: e.paginationItemSize,
            marginInlineEnd: e.marginXS,
            fontFamily: e.paginationFontFamily,
            lineHeight: `${e.paginationItemSize - 2}px`,
            textAlign: 'center',
            verticalAlign: 'middle',
            listStyle: 'none',
            backgroundColor: 'transparent',
            border: `${e.lineWidth}px ${e.lineType} transparent`,
            borderRadius: e.borderRadius,
            outline: 0,
            cursor: 'pointer',
            userSelect: 'none',
            a: {
              display: 'block',
              padding: `0 ${e.paginationItemPaddingInline}px`,
              color: e.colorText,
              transition: 'none',
              '&:hover': { textDecoration: 'none' }
            },
            [`&:not(${t}-item-active)`]: {
              '&:hover': {
                transition: `all ${e.motionDurationMid}`,
                backgroundColor: e.colorBgTextHover
              },
              '&:active': { backgroundColor: e.colorBgTextActive }
            }
          },
          nr(e)
        ),
        {
          '&-active': {
            fontWeight: e.paginationFontWeightActive,
            backgroundColor: e.paginationItemBgActive,
            borderColor: e.colorPrimary,
            a: { color: e.colorPrimary },
            '&:hover': { borderColor: e.colorPrimaryHover },
            '&:hover a': { color: e.colorPrimaryHover }
          }
        }
      )
    }
  },
  GB = e => {
    const { componentCls: t } = e
    return {
      [t]: p(
        p(
          p(
            p(
              p(
                p(
                  p(p({}, ct(e)), {
                    'ul, ol': { margin: 0, padding: 0, listStyle: 'none' },
                    '&::after': {
                      display: 'block',
                      clear: 'both',
                      height: 0,
                      overflow: 'hidden',
                      visibility: 'hidden',
                      content: '""'
                    },
                    [`${t}-total-text`]: {
                      display: 'inline-block',
                      height: e.paginationItemSize,
                      marginInlineEnd: e.marginXS,
                      lineHeight: `${e.paginationItemSize - 2}px`,
                      verticalAlign: 'middle'
                    }
                  }),
                  VB(e)
                ),
                WB(e)
              ),
              KB(e)
            ),
            jB(e)
          ),
          kB(e)
        ),
        {
          [`@media only screen and (max-width: ${e.screenLG}px)`]: {
            [`${t}-item`]: {
              '&-after-jump-prev, &-before-jump-next': { display: 'none' }
            }
          },
          [`@media only screen and (max-width: ${e.screenSM}px)`]: {
            [`${t}-options`]: { display: 'none' }
          }
        }
      ),
      [`&${e.componentCls}-rtl`]: { direction: 'rtl' }
    }
  },
  UB = e => {
    const { componentCls: t } = e
    return {
      [`${t}${t}-disabled`]: {
        '&, &:hover': { [`${t}-item-link`]: { borderColor: e.colorBorder } },
        '&:focus-visible': {
          [`${t}-item-link`]: { borderColor: e.colorBorder }
        },
        [`${t}-item, ${t}-item-link`]: {
          backgroundColor: e.colorBgContainerDisabled,
          borderColor: e.colorBorder,
          [`&:hover:not(${t}-item-active)`]: {
            backgroundColor: e.colorBgContainerDisabled,
            borderColor: e.colorBorder,
            a: { color: e.colorTextDisabled }
          },
          [`&${t}-item-active`]: {
            backgroundColor: e.paginationItemDisabledBgActive
          }
        },
        [`${t}-prev, ${t}-next`]: {
          '&:hover button': {
            backgroundColor: e.colorBgContainerDisabled,
            borderColor: e.colorBorder,
            color: e.colorTextDisabled
          },
          [`${t}-item-link`]: {
            backgroundColor: e.colorBgContainerDisabled,
            borderColor: e.colorBorder
          }
        }
      },
      [t]: {
        [`${t}-prev, ${t}-next`]: {
          '&:hover button': {
            borderColor: e.colorPrimaryHover,
            backgroundColor: e.paginationItemBg
          },
          [`${t}-item-link`]: {
            backgroundColor: e.paginationItemLinkBg,
            borderColor: e.colorBorder
          },
          [`&:hover ${t}-item-link`]: {
            borderColor: e.colorPrimary,
            backgroundColor: e.paginationItemBg,
            color: e.colorPrimary
          },
          [`&${t}-disabled`]: {
            [`${t}-item-link`]: {
              borderColor: e.colorBorder,
              color: e.colorTextDisabled
            }
          }
        },
        [`${t}-item`]: {
          backgroundColor: e.paginationItemBg,
          border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
          [`&:hover:not(${t}-item-active)`]: {
            borderColor: e.colorPrimary,
            backgroundColor: e.paginationItemBg,
            a: { color: e.colorPrimary }
          },
          '&-active': { borderColor: e.colorPrimary }
        }
      }
    }
  },
  XB = pt('Pagination', e => {
    const t = Ze(
      e,
      {
        paginationItemSize: e.controlHeight,
        paginationFontFamily: e.fontFamily,
        paginationItemBg: e.colorBgContainer,
        paginationItemBgActive: e.colorBgContainer,
        paginationFontWeightActive: e.fontWeightStrong,
        paginationItemSizeSM: e.controlHeightSM,
        paginationItemInputBg: e.colorBgContainer,
        paginationMiniOptionsSizeChangerTop: 0,
        paginationItemDisabledBgActive: e.controlItemBgActiveDisabled,
        paginationItemDisabledColorActive: e.colorTextDisabled,
        paginationItemLinkBg: e.colorBgContainer,
        inputOutlineOffset: '0 0',
        paginationMiniOptionsMarginInlineStart: e.marginXXS / 2,
        paginationMiniQuickJumperInputWidth: e.controlHeightLG * 1.1,
        paginationItemPaddingInline: e.marginXXS * 1.5,
        paginationEllipsisLetterSpacing: e.marginXXS / 2,
        paginationSlashMarginInlineStart: e.marginXXS,
        paginationSlashMarginInlineEnd: e.marginSM,
        paginationEllipsisTextIndent: '0.13em'
      },
      Eu(e)
    )
    return [GB(t), e.wireframe && UB(t)]
  })
var qB =
  (globalThis && globalThis.__rest) ||
  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 YB = () => ({
    total: Number,
    defaultCurrent: Number,
    disabled: Re(),
    current: Number,
    defaultPageSize: Number,
    pageSize: Number,
    hideOnSinglePage: Re(),
    showSizeChanger: Re(),
    pageSizeOptions: $t(),
    buildOptionText: _e(),
    showQuickJumper: Pt([Boolean, Object]),
    showTotal: _e(),
    size: at(),
    simple: Re(),
    locale: Object,
    prefixCls: String,
    selectPrefixCls: String,
    totalBoundaryShowSizeChanger: Number,
    selectComponentClass: String,
    itemRender: _e(),
    role: String,
    responsive: Boolean,
    showLessItems: Re(),
    onChange: _e(),
    onShowSizeChange: _e(),
    'onUpdate:current': _e(),
    'onUpdate:pageSize': _e()
  }),
  JB = J({
    compatConfig: { MODE: 3 },
    name: 'APagination',
    inheritAttrs: !1,
    props: YB(),
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const { prefixCls: r, configProvider: i, direction: l, size: a } = je(
          'pagination',
          e
        ),
        [s, u] = XB(r),
        c = P(() => i.getPrefixCls('select', e.selectPrefixCls)),
        d = zh(),
        [f] = Sc('Pagination', Bm, ot(e, 'locale')),
        m = g => {
          const h = v('span', { class: `${g}-item-ellipsis` }, [kn('•••')]),
            b = v(
              'button',
              { class: `${g}-item-link`, type: 'button', tabindex: -1 },
              [l.value === 'rtl' ? v(ll, null, null) : v(tv, null, null)]
            ),
            S = v(
              'button',
              { class: `${g}-item-link`, type: 'button', tabindex: -1 },
              [l.value === 'rtl' ? v(tv, null, null) : v(ll, null, null)]
            ),
            C = v('a', { rel: 'nofollow', class: `${g}-item-link` }, [
              v('div', { class: `${g}-item-container` }, [
                l.value === 'rtl'
                  ? v(hv, { class: `${g}-item-link-icon` }, null)
                  : v(mv, { class: `${g}-item-link-icon` }, null),
                h
              ])
            ]),
            $ = v('a', { rel: 'nofollow', class: `${g}-item-link` }, [
              v('div', { class: `${g}-item-container` }, [
                l.value === 'rtl'
                  ? v(mv, { class: `${g}-item-link-icon` }, null)
                  : v(hv, { class: `${g}-item-link-icon` }, null),
                h
              ])
            ])
          return { prevIcon: b, nextIcon: S, jumpPrevIcon: C, jumpNextIcon: $ }
        }
      return () => {
        var g
        const {
            itemRender: h = n.itemRender,
            buildOptionText: b = n.buildOptionText,
            selectComponentClass: S,
            responsive: C
          } = e,
          $ = qB(e, [
            'itemRender',
            'buildOptionText',
            'selectComponentClass',
            'responsive'
          ]),
          O =
            a.value === 'small' ||
            !!(
              !((g = d.value) === null || g === void 0) &&
              g.xs &&
              !a.value &&
              C
            ),
          x = p(
            p(
              p(p(p({}, $), m(r.value)), {
                prefixCls: r.value,
                selectPrefixCls: c.value,
                selectComponentClass: S || (O ? DB : MB),
                locale: f.value,
                buildOptionText: b
              }),
              o
            ),
            {
              class: oe(
                {
                  [`${r.value}-mini`]: O,
                  [`${r.value}-rtl`]: l.value === 'rtl'
                },
                o.class,
                u.value
              ),
              itemRender: h
            }
          )
        return s(v(HB, x, null))
      }
    }
  }),
  QB = Po(JB),
  ZB = () => {
    const e = V(!1)
    return (
      Qe(() => {
        e.value = !0
      }),
      e
    )
  },
  ez = ZB,
  tz = {
    type: { type: String },
    actionFn: Function,
    close: Function,
    autofocus: Boolean,
    prefixCls: String,
    buttonProps: Xe(),
    emitEvent: Boolean,
    quitOnNullishReturnValue: Boolean
  }
function bv(e) {
  return !!(e && e.then)
}
const nz = J({
  compatConfig: { MODE: 3 },
  name: 'ActionButton',
  props: tz,
  setup(e, t) {
    let { slots: n } = t
    const o = V(!1),
      r = V(),
      i = V(!1)
    let l
    const a = ez()
    We(() => {
      e.autofocus &&
        (l = setTimeout(() => {
          var d, f
          return (f =
            (d = Wt(r.value)) === null || d === void 0 ? void 0 : d.focus) ===
            null || f === void 0
            ? void 0
            : f.call(d)
        }))
    }),
      Qe(() => {
        clearTimeout(l)
      })
    const s = function() {
        for (var d, f = arguments.length, m = new Array(f), g = 0; g < f; g++)
          m[g] = arguments[g]
        ;(d = e.close) === null || d === void 0 || d.call(e, ...m)
      },
      u = d => {
        bv(d) &&
          ((i.value = !0),
          d.then(
            function() {
              a.value || (i.value = !1), s(...arguments), (o.value = !1)
            },
            f => (a.value || (i.value = !1), (o.value = !1), Promise.reject(f))
          ))
      },
      c = d => {
        const { actionFn: f } = e
        if (o.value) return
        if (((o.value = !0), !f)) {
          s()
          return
        }
        let m
        if (e.emitEvent) {
          if (((m = f(d)), e.quitOnNullishReturnValue && !bv(m))) {
            ;(o.value = !1), s(d)
            return
          }
        } else if (f.length) (m = f(e.close)), (o.value = !1)
        else if (((m = f()), !m)) {
          s()
          return
        }
        u(m)
      }
    return () => {
      const { type: d, prefixCls: f, buttonProps: m } = e
      return v(
        ht,
        N(
          N(
            N({}, Os(d)),
            {},
            { onClick: c, loading: i.value, prefixCls: f },
            m
          ),
          {},
          { ref: r }
        ),
        n
      )
    }
  }
})
var oz =
  (globalThis && globalThis.__rest) ||
  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 rz = {
    border: 0,
    background: 'transparent',
    padding: 0,
    lineHeight: 'inherit',
    display: 'inline-block'
  },
  iz = J({
    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 l = V(),
        a = f => {
          const { keyCode: m } = f
          m === Oe.ENTER && f.preventDefault()
        },
        s = f => {
          const { keyCode: m } = f
          m === Oe.ENTER && o('click', f)
        },
        u = f => {
          o('click', f)
        },
        c = () => {
          l.value && l.value.focus()
        },
        d = () => {
          l.value && l.value.blur()
        }
      return (
        We(() => {
          e.autofocus && c()
        }),
        i({ focus: c, blur: d }),
        () => {
          var f
          const { noStyle: m, disabled: g } = e,
            h = oz(e, ['noStyle', 'disabled'])
          let b = {}
          return (
            m || (b = p({}, rz)),
            g && (b.pointerEvents = 'none'),
            v(
              'div',
              N(
                N(N({ role: 'button', tabindex: 0, ref: l }, h), r),
                {},
                {
                  onClick: u,
                  onKeydown: a,
                  onKeyup: s,
                  style: p(p({}, b), r.style || {})
                }
              ),
              [(f = n.default) === null || f === void 0 ? void 0 : f.call(n)]
            )
          )
        }
      )
    }
  }),
  yv = iz,
  lz = { small: 8, middle: 16, large: 24 },
  az = () => ({
    prefixCls: String,
    size: { type: [String, Number, Array] },
    direction: k.oneOf(mo('horizontal', 'vertical')).def('horizontal'),
    align: k.oneOf(mo('start', 'end', 'center', 'baseline')),
    wrap: Re()
  })
function sz(e) {
  return typeof e == 'string' ? lz[e] : e || 0
}
const Br = J({
  compatConfig: { MODE: 3 },
  name: 'ASpace',
  inheritAttrs: !1,
  props: az(),
  slots: Object,
  setup(e, t) {
    let { slots: n, attrs: o } = t
    const { prefixCls: r, space: i, direction: l } = je('space', e),
      [a, s] = Ih(r),
      u = kM(),
      c = P(() => {
        var S, C, $
        return ($ =
          (S = e.size) !== null && S !== void 0
            ? S
            : (C = i == null ? void 0 : i.value) === null || C === void 0
            ? void 0
            : C.size) !== null && $ !== void 0
          ? $
          : 'small'
      }),
      d = ne(),
      f = ne()
    ge(
      c,
      () => {
        ;[d.value, f.value] = (Array.isArray(c.value)
          ? c.value
          : [c.value, c.value]
        ).map(S => sz(S))
      },
      { immediate: !0 }
    )
    const m = P(() =>
        e.align === void 0 && e.direction === 'horizontal' ? 'center' : e.align
      ),
      g = P(() =>
        oe(r.value, s.value, `${r.value}-${e.direction}`, {
          [`${r.value}-rtl`]: l.value === 'rtl',
          [`${r.value}-align-${m.value}`]: m.value
        })
      ),
      h = P(() => (l.value === 'rtl' ? 'marginLeft' : 'marginRight')),
      b = P(() => {
        const S = {}
        return (
          u.value &&
            ((S.columnGap = `${d.value}px`), (S.rowGap = `${f.value}px`)),
          p(
            p({}, S),
            e.wrap && { flexWrap: 'wrap', marginBottom: `${-f.value}px` }
          )
        )
      })
    return () => {
      var S, C
      const { wrap: $, direction: O = 'horizontal' } = e,
        x = (S = n.default) === null || S === void 0 ? void 0 : S.call(n),
        w = Tt(x),
        y = w.length
      if (y === 0) return null
      const T = (C = n.split) === null || C === void 0 ? void 0 : C.call(n),
        I = `${r.value}-item`,
        _ = d.value,
        A = y - 1
      return v(
        'div',
        N(
          N({}, o),
          {},
          { class: [g.value, o.class], style: [b.value, o.style] }
        ),
        [
          w.map((z, M) => {
            let j = x.indexOf(z)
            j === -1 && (j = `$$space-${M}`)
            let E = {}
            return (
              u.value ||
                (O === 'vertical'
                  ? M < A && (E = { marginBottom: `${_ / (T ? 2 : 1)}px` })
                  : (E = p(
                      p({}, M < A && { [h.value]: `${_ / (T ? 2 : 1)}px` }),
                      $ && { paddingBottom: `${f.value}px` }
                    ))),
              a(
                v(nt, { key: j }, [
                  v('div', { class: I, style: E }, [z]),
                  M < A &&
                    T &&
                    v('span', { class: `${I}-split`, style: E }, [T])
                ])
              )
            )
          })
        ]
      )
    }
  }
})
Br.Compact = $s
Br.install = function(e) {
  return e.component(Br.name, Br), e.component($s.name, $s), e
}
const by = Br,
  cz = e => {
    const {
      componentCls: t,
      iconCls: n,
      zIndexPopup: o,
      colorText: r,
      colorWarning: i,
      marginXS: l,
      fontSize: a,
      fontWeightStrong: s,
      lineHeight: u
    } = e
    return {
      [t]: {
        zIndex: o,
        [`${t}-inner-content`]: { color: r },
        [`${t}-message`]: {
          position: 'relative',
          marginBottom: l,
          color: r,
          fontSize: a,
          display: 'flex',
          flexWrap: 'nowrap',
          alignItems: 'start',
          [`> ${t}-message-icon ${n}`]: {
            color: i,
            fontSize: a,
            flex: 'none',
            lineHeight: 1,
            paddingTop: (Math.round(a * u) - a) / 2
          },
          '&-title': { flex: 'auto', marginInlineStart: l },
          '&-title-only': { fontWeight: s }
        },
        [`${t}-description`]: {
          position: 'relative',
          marginInlineStart: a + l,
          marginBottom: l,
          color: r,
          fontSize: a
        },
        [`${t}-buttons`]: { textAlign: 'end', button: { marginInlineStart: l } }
      }
    }
  },
  uz = pt(
    'Popconfirm',
    e => cz(e),
    e => {
      const { zIndexPopupBase: t } = e
      return { zIndexPopup: t + 60 }
    }
  )
var dz =
  (globalThis && globalThis.__rest) ||
  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 fz = () =>
    p(p({}, bu()), {
      prefixCls: String,
      content: wt(),
      title: wt(),
      description: wt(),
      okType: at('primary'),
      disabled: { type: Boolean, default: !1 },
      okText: wt(),
      cancelText: wt(),
      icon: wt(),
      okButtonProps: Xe(),
      cancelButtonProps: Xe(),
      showCancel: { type: Boolean, default: !0 },
      onConfirm: Function,
      onCancel: Function
    }),
  pz = J({
    compatConfig: { MODE: 3 },
    name: 'APopconfirm',
    inheritAttrs: !1,
    props: mt(
      fz(),
      p(p({}, Kh()), {
        trigger: 'click',
        placement: 'top',
        mouseEnterDelay: 0.1,
        mouseLeaveDelay: 0.1,
        arrowPointAtCenter: !1,
        autoAdjustOverflow: !0,
        okType: 'primary',
        disabled: !1
      })
    ),
    slots: Object,
    setup(e, t) {
      let { slots: n, emit: o, expose: r, attrs: i } = t
      const l = ne()
      kt(e.visible === void 0),
        r({
          getPopupDomNode: () => {
            var w, y
            return (y =
              (w = l.value) === null || w === void 0
                ? void 0
                : w.getPopupDomNode) === null || y === void 0
              ? void 0
              : y.call(w)
          }
        })
      const [a, s] = So(!1, { value: ot(e, 'open') }),
        u = (w, y) => {
          e.open === void 0 && s(w), o('update:open', w), o('openChange', w, y)
        },
        c = w => {
          u(!1, w)
        },
        d = w => {
          var y
          return (y = e.onConfirm) === null || y === void 0
            ? void 0
            : y.call(e, w)
        },
        f = w => {
          var y
          u(!1, w), (y = e.onCancel) === null || y === void 0 || y.call(e, w)
        },
        m = w => {
          w.keyCode === Oe.ESC && a && u(!1, w)
        },
        g = w => {
          const { disabled: y } = e
          y || u(w)
        },
        { prefixCls: h, getPrefixCls: b } = je('popconfirm', e),
        S = P(() => b()),
        C = P(() => b('btn')),
        [$] = uz(h),
        [O] = Sc('Popconfirm', jn.Popconfirm),
        x = () => {
          var w, y, T, I, _
          const {
              okButtonProps: A,
              cancelButtonProps: z,
              title: M = (w = n.title) === null || w === void 0
                ? void 0
                : w.call(n),
              description: j = (y = n.description) === null || y === void 0
                ? void 0
                : y.call(n),
              cancelText: E = (T = n.cancel) === null || T === void 0
                ? void 0
                : T.call(n),
              okText: R = (I = n.okText) === null || I === void 0
                ? void 0
                : I.call(n),
              okType: L,
              icon: W = ((_ = n.icon) === null || _ === void 0
                ? void 0
                : _.call(n)) || v(ni, null, null),
              showCancel: D = !0
            } = e,
            { cancelButton: F, okButton: H } = n,
            B = p({ onClick: f, size: 'small' }, z),
            X = p(p(p({ onClick: d }, Os(L)), { size: 'small' }), A)
          return v('div', { class: `${h.value}-inner-content` }, [
            v('div', { class: `${h.value}-message` }, [
              W && v('span', { class: `${h.value}-message-icon` }, [W]),
              v(
                'div',
                {
                  class: [
                    `${h.value}-message-title`,
                    { [`${h.value}-message-title-only`]: !!j }
                  ]
                },
                [M]
              )
            ]),
            j && v('div', { class: `${h.value}-description` }, [j]),
            v('div', { class: `${h.value}-buttons` }, [
              D
                ? F
                  ? F(B)
                  : v(ht, B, { default: () => [E || O.value.cancelText] })
                : null,
              H
                ? H(X)
                : v(
                    nz,
                    {
                      buttonProps: p(p({ size: 'small' }, Os(L)), A),
                      actionFn: d,
                      close: c,
                      prefixCls: C.value,
                      quitOnNullishReturnValue: !0,
                      emitEvent: !0
                    },
                    { default: () => [R || O.value.okText] }
                  )
            ])
          ])
        }
      return () => {
        var w
        const { placement: y, overlayClassName: T, trigger: I = 'click' } = e,
          _ = dz(e, ['placement', 'overlayClassName', 'trigger']),
          A = rt(_, [
            'title',
            'content',
            'cancelText',
            'okText',
            'onUpdate:open',
            'onConfirm',
            'onCancel',
            'prefixCls'
          ]),
          z = oe(h.value, T)
        return $(
          v(
            yR,
            N(
              N(N({}, A), i),
              {},
              {
                trigger: I,
                placement: y,
                onOpenChange: g,
                open: a.value,
                overlayClassName: z,
                transitionName: Il(S.value, 'zoom-big', e.transitionName),
                ref: l,
                'data-popover-inject': !0
              }
            ),
            {
              default: () => [
                J$(
                  ((w = n.default) === null || w === void 0
                    ? void 0
                    : w.call(n)) || [],
                  {
                    onKeydown: M => {
                      m(M)
                    }
                  },
                  !1
                )
              ],
              content: x
            }
          )
        )
      }
    }
  }),
  vz = Po(pz),
  yy = Symbol('TableContextProps'),
  mz = e => {
    Ye(yy, e)
  },
  yn = () => Ue(yy, {}),
  gz = 'RC_TABLE_KEY'
function Sy(e) {
  return e == null ? [] : Array.isArray(e) ? e : [e]
}
function xy(e, t) {
  if (!t && typeof t != 'number') return e
  const n = Sy(t)
  let o = e
  for (let r = 0; r < n.length; r += 1) {
    if (!o) return null
    const i = n[r]
    o = o[i]
  }
  return o
}
function Wl(e) {
  const t = [],
    n = {}
  return (
    e.forEach(o => {
      const { key: r, dataIndex: i } = o || {}
      let l = r || Sy(i).join('-') || gz
      for (; n[l]; ) l = `${l}_next`
      ;(n[l] = !0), t.push(l)
    }),
    t
  )
}
function hz() {
  const e = {}
  function t(i, l) {
    l &&
      Object.keys(l).forEach(a => {
        const s = l[a]
        s && typeof s == 'object'
          ? ((i[a] = i[a] || {}), t(i[a], s))
          : (i[a] = s)
      })
  }
  for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++)
    o[r] = arguments[r]
  return (
    o.forEach(i => {
      t(e, i)
    }),
    e
  )
}
function Ks(e) {
  return e != null
}
const Cy = Symbol('SlotsContextProps'),
  bz = e => {
    Ye(Cy, e)
  },
  Vu = () =>
    Ue(
      Cy,
      P(() => ({}))
    ),
  $y = Symbol('ContextProps'),
  yz = e => {
    Ye($y, e)
  },
  Sz = () => Ue($y, { onResizeColumn: () => {} })
globalThis && globalThis.__rest
const Jo = 'RC_TABLE_INTERNAL_COL_DEFINE',
  wy = Symbol('HoverContextProps'),
  xz = e => {
    Ye(wy, e)
  },
  Cz = () => Ue(wy, { startRow: V(-1), endRow: V(-1), onHover() {} }),
  Ws = V(!1),
  $z = () => {
    We(() => {
      Ws.value = Ws.value || zu('position', 'sticky')
    })
  },
  wz = () => Ws
var Oz =
  (globalThis && globalThis.__rest) ||
  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 Pz(e, t, n, o) {
  const r = e + t - 1
  return e <= o && r >= n
}
function Tz(e) {
  return e && typeof e == 'object' && !Array.isArray(e) && !Mt(e)
}
const Vl = J({
  name: 'Cell',
  props: [
    'prefixCls',
    'record',
    'index',
    'renderIndex',
    'dataIndex',
    'customRender',
    'component',
    'colSpan',
    'rowSpan',
    'fixLeft',
    'fixRight',
    'firstFixLeft',
    'lastFixLeft',
    'firstFixRight',
    'lastFixRight',
    'appendNode',
    'additionalProps',
    'ellipsis',
    'align',
    'rowType',
    'isSticky',
    'column',
    'cellType',
    'transformCellText'
  ],
  setup(e, t) {
    let { slots: n } = t
    const o = Vu(),
      { onHover: r, startRow: i, endRow: l } = Cz(),
      a = P(() => {
        var h, b, S, C
        return (S =
          (h = e.colSpan) !== null && h !== void 0
            ? h
            : (b = e.additionalProps) === null || b === void 0
            ? void 0
            : b.colSpan) !== null && S !== void 0
          ? S
          : (C = e.additionalProps) === null || C === void 0
          ? void 0
          : C.colspan
      }),
      s = P(() => {
        var h, b, S, C
        return (S =
          (h = e.rowSpan) !== null && h !== void 0
            ? h
            : (b = e.additionalProps) === null || b === void 0
            ? void 0
            : b.rowSpan) !== null && S !== void 0
          ? S
          : (C = e.additionalProps) === null || C === void 0
          ? void 0
          : C.rowspan
      }),
      u = nn(() => {
        const { index: h } = e
        return Pz(h, s.value || 1, i.value, l.value)
      }),
      c = wz(),
      d = (h, b) => {
        var S
        const { record: C, index: $, additionalProps: O } = e
        C && r($, $ + b - 1),
          (S = O == null ? void 0 : O.onMouseenter) === null ||
            S === void 0 ||
            S.call(O, h)
      },
      f = h => {
        var b
        const { record: S, additionalProps: C } = e
        S && r(-1, -1),
          (b = C == null ? void 0 : C.onMouseleave) === null ||
            b === void 0 ||
            b.call(C, h)
      },
      m = h => {
        const b = Tt(h)[0]
        return Mt(b)
          ? b.type === dc
            ? b.children
            : Array.isArray(b.children)
            ? m(b.children)
            : void 0
          : b
      },
      g = V(null)
    return (
      ge([u, () => e.prefixCls, g], () => {
        const h = Wt(g.value)
        h &&
          (u.value
            ? Is(h, `${e.prefixCls}-cell-row-hover`)
            : Es(h, `${e.prefixCls}-cell-row-hover`))
      }),
      () => {
        var h, b, S, C, $, O
        const {
            prefixCls: x,
            record: w,
            index: y,
            renderIndex: T,
            dataIndex: I,
            customRender: _,
            component: A = 'td',
            fixLeft: z,
            fixRight: M,
            firstFixLeft: j,
            lastFixLeft: E,
            firstFixRight: R,
            lastFixRight: L,
            appendNode: W = (h = n.appendNode) === null || h === void 0
              ? void 0
              : h.call(n),
            additionalProps: D = {},
            ellipsis: F,
            align: H,
            rowType: B,
            isSticky: X,
            column: ee = {},
            cellType: de
          } = e,
          ie = `${x}-cell`
        let Q, se
        const q = (b = n.default) === null || b === void 0 ? void 0 : b.call(n)
        if (Ks(q) || de === 'header') se = q
        else {
          const Y = xy(w, I)
          if (((se = Y), _)) {
            const G = _({
              text: Y,
              value: Y,
              record: w,
              index: y,
              renderIndex: T,
              column: ee.__originColumn__
            })
            Tz(G) ? ((se = G.children), (Q = G.props)) : (se = G)
          }
          if (
            !(Jo in ee) &&
            de === 'body' &&
            o.value.bodyCell &&
            !(!((S = ee.slots) === null || S === void 0) && S.customRender)
          ) {
            const G = wl(
              o.value,
              'bodyCell',
              {
                text: Y,
                value: Y,
                record: w,
                index: y,
                column: ee.__originColumn__
              },
              () => {
                const le = se === void 0 ? Y : se
                return [
                  (typeof le == 'object' && Ft(le)) || typeof le != 'object'
                    ? le
                    : null
                ]
              }
            )
            se = yt(G)
          }
          e.transformCellText &&
            (se = e.transformCellText({
              text: se,
              record: w,
              index: y,
              column: ee.__originColumn__
            }))
        }
        typeof se == 'object' && !Array.isArray(se) && !Mt(se) && (se = null),
          F && (E || R) && (se = v('span', { class: `${ie}-content` }, [se])),
          Array.isArray(se) && se.length === 1 && (se = se[0])
        const K = Q || {},
          { colSpan: U, rowSpan: ue, style: me, class: he } = K,
          Pe = Oz(K, ['colSpan', 'rowSpan', 'style', 'class']),
          ve =
            (C = U !== void 0 ? U : a.value) !== null && C !== void 0 ? C : 1,
          ye =
            ($ = ue !== void 0 ? ue : s.value) !== null && $ !== void 0 ? $ : 1
        if (ve === 0 || ye === 0) return null
        const te = {},
          Z = typeof z == 'number' && c.value,
          fe = typeof M == 'number' && c.value
        Z && ((te.position = 'sticky'), (te.left = `${z}px`)),
          fe && ((te.position = 'sticky'), (te.right = `${M}px`))
        const xe = {}
        H && (xe.textAlign = H)
        let be
        const Ce = F === !0 ? { showTitle: !0 } : F
        Ce &&
          (Ce.showTitle || B === 'header') &&
          (typeof se == 'string' || typeof se == 'number'
            ? (be = se.toString())
            : Mt(se) && (be = m([se])))
        const Ne = p(p(p({ title: be }, Pe), D), {
          colSpan: ve !== 1 ? ve : null,
          rowSpan: ye !== 1 ? ye : null,
          class: oe(
            ie,
            {
              [`${ie}-fix-left`]: Z && c.value,
              [`${ie}-fix-left-first`]: j && c.value,
              [`${ie}-fix-left-last`]: E && c.value,
              [`${ie}-fix-right`]: fe && c.value,
              [`${ie}-fix-right-first`]: R && c.value,
              [`${ie}-fix-right-last`]: L && c.value,
              [`${ie}-ellipsis`]: F,
              [`${ie}-with-append`]: W,
              [`${ie}-fix-sticky`]: (Z || fe) && X && c.value
            },
            D.class,
            he
          ),
          onMouseenter: Y => {
            d(Y, ye)
          },
          onMouseleave: f,
          style: [D.style, xe, te, me]
        })
        return v(A, N(N({}, Ne), {}, { ref: g }), {
          default: () => [
            W,
            se,
            (O = n.dragHandle) === null || O === void 0 ? void 0 : O.call(n)
          ]
        })
      }
    )
  }
})
function Gu(e, t, n, o, r) {
  const i = n[e] || {},
    l = n[t] || {}
  let a, s
  i.fixed === 'left' ? (a = o.left[e]) : l.fixed === 'right' && (s = o.right[t])
  let u = !1,
    c = !1,
    d = !1,
    f = !1
  const m = n[t + 1],
    g = n[e - 1]
  return (
    r === 'rtl'
      ? a !== void 0
        ? (f = !(g && g.fixed === 'left'))
        : s !== void 0 && (d = !(m && m.fixed === 'right'))
      : a !== void 0
      ? (u = !(m && m.fixed === 'left'))
      : s !== void 0 && (c = !(g && g.fixed === 'right')),
    {
      fixLeft: a,
      fixRight: s,
      lastFixLeft: u,
      firstFixRight: c,
      lastFixRight: d,
      firstFixLeft: f,
      isSticky: o.isSticky
    }
  )
}
const Sv = {
    mouse: { start: 'mousedown', move: 'mousemove', stop: 'mouseup' },
    touch: { start: 'touchstart', move: 'touchmove', stop: 'touchend' }
  },
  xv = 50,
  Iz = J({
    compatConfig: { MODE: 3 },
    name: 'DragHandle',
    props: {
      prefixCls: String,
      width: { type: Number, required: !0 },
      minWidth: { type: Number, default: xv },
      maxWidth: { type: Number, default: 1 / 0 },
      column: { type: Object, default: void 0 }
    },
    setup(e) {
      let t = 0,
        n = { remove: () => {} },
        o = { remove: () => {} }
      const r = () => {
        n.remove(), o.remove()
      }
      Gn(() => {
        r()
      }),
        Me(() => {
          vt(
            !isNaN(e.width),
            'Table',
            'width must be a number when use resizable'
          )
        })
      const { onResizeColumn: i } = Sz(),
        l = P(() =>
          typeof e.minWidth == 'number' && !isNaN(e.minWidth) ? e.minWidth : xv
        ),
        a = P(() =>
          typeof e.maxWidth == 'number' && !isNaN(e.maxWidth)
            ? e.maxWidth
            : 1 / 0
        ),
        s = tn()
      let u = 0
      const c = V(!1)
      let d
      const f = $ => {
          let O = 0
          $.touches
            ? $.touches.length
              ? (O = $.touches[0].pageX)
              : (O = $.changedTouches[0].pageX)
            : (O = $.pageX)
          const x = t - O
          let w = Math.max(u - x, l.value)
          ;(w = Math.min(w, a.value)),
            He.cancel(d),
            (d = He(() => {
              i(w, e.column.__originColumn__)
            }))
        },
        m = $ => {
          f($)
        },
        g = $ => {
          ;(c.value = !1), f($), r()
        },
        h = ($, O) => {
          ;(c.value = !0),
            r(),
            (u = s.vnode.el.parentNode.getBoundingClientRect().width),
            !($ instanceof MouseEvent && $.which !== 1) &&
              ($.stopPropagation && $.stopPropagation(),
              (t = $.touches ? $.touches[0].pageX : $.pageX),
              (n = Jt(document.documentElement, O.move, m)),
              (o = Jt(document.documentElement, O.stop, g)))
        },
        b = $ => {
          $.stopPropagation(), $.preventDefault(), h($, Sv.mouse)
        },
        S = $ => {
          $.stopPropagation(), $.preventDefault(), h($, Sv.touch)
        },
        C = $ => {
          $.stopPropagation(), $.preventDefault()
        }
      return () => {
        const { prefixCls: $ } = e,
          O = { [Rt ? 'onTouchstartPassive' : 'onTouchstart']: x => S(x) }
        return v(
          'div',
          N(
            N(
              {
                class: `${$}-resize-handle ${c.value ? 'dragging' : ''}`,
                onMousedown: b
              },
              O
            ),
            {},
            { onClick: C }
          ),
          [v('div', { class: `${$}-resize-handle-line` }, null)]
        )
      }
    }
  }),
  Ez = J({
    name: 'HeaderRow',
    props: [
      'cells',
      'stickyOffsets',
      'flattenColumns',
      'rowComponent',
      'cellComponent',
      'index',
      'customHeaderRow'
    ],
    setup(e) {
      const t = yn()
      return () => {
        const { prefixCls: n, direction: o } = t,
          {
            cells: r,
            stickyOffsets: i,
            flattenColumns: l,
            rowComponent: a,
            cellComponent: s,
            customHeaderRow: u,
            index: c
          } = e
        let d
        u &&
          (d = u(
            r.map(m => m.column),
            c
          ))
        const f = Wl(r.map(m => m.column))
        return v(a, d, {
          default: () => [
            r.map((m, g) => {
              const { column: h } = m,
                b = Gu(m.colStart, m.colEnd, l, i, o)
              let S
              h && h.customHeaderCell && (S = m.column.customHeaderCell(h))
              const C = h
              return v(
                Vl,
                N(
                  N(
                    N({}, m),
                    {},
                    {
                      cellType: 'header',
                      ellipsis: h.ellipsis,
                      align: h.align,
                      component: s,
                      prefixCls: n,
                      key: f[g]
                    },
                    b
                  ),
                  {},
                  { additionalProps: S, rowType: 'header', column: h }
                ),
                {
                  default: () => h.title,
                  dragHandle: () =>
                    C.resizable
                      ? v(
                          Iz,
                          {
                            prefixCls: n,
                            width: C.width,
                            minWidth: C.minWidth,
                            maxWidth: C.maxWidth,
                            column: C
                          },
                          null
                        )
                      : null
                }
              )
            })
          ]
        })
      }
    }
  })
function _z(e) {
  const t = []
  function n(r, i) {
    let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0
    t[l] = t[l] || []
    let a = i
    return r.filter(Boolean).map(u => {
      const c = {
        key: u.key,
        class: oe(u.className, u.class),
        column: u,
        colStart: a
      }
      let d = 1
      const f = u.children
      return (
        f &&
          f.length > 0 &&
          ((d = n(f, a, l + 1).reduce((m, g) => m + g, 0)),
          (c.hasSubColumns = !0)),
        'colSpan' in u && ({ colSpan: d } = u),
        'rowSpan' in u && (c.rowSpan = u.rowSpan),
        (c.colSpan = d),
        (c.colEnd = c.colStart + d - 1),
        t[l].push(c),
        (a += d),
        d
      )
    })
  }
  n(e, 0)
  const o = t.length
  for (let r = 0; r < o; r += 1)
    t[r].forEach(i => {
      !('rowSpan' in i) && !i.hasSubColumns && (i.rowSpan = o - r)
    })
  return t
}
const Cv = J({
    name: 'TableHeader',
    inheritAttrs: !1,
    props: ['columns', 'flattenColumns', 'stickyOffsets', 'customHeaderRow'],
    setup(e) {
      const t = yn(),
        n = P(() => _z(e.columns))
      return () => {
        const { prefixCls: o, getComponent: r } = t,
          { stickyOffsets: i, flattenColumns: l, customHeaderRow: a } = e,
          s = r(['header', 'wrapper'], 'thead'),
          u = r(['header', 'row'], 'tr'),
          c = r(['header', 'cell'], 'th')
        return v(
          s,
          { class: `${o}-thead` },
          {
            default: () => [
              n.value.map((d, f) =>
                v(
                  Ez,
                  {
                    key: f,
                    flattenColumns: l,
                    cells: d,
                    stickyOffsets: i,
                    rowComponent: u,
                    cellComponent: c,
                    customHeaderRow: a,
                    index: f
                  },
                  null
                )
              )
            ]
          }
        )
      }
    }
  }),
  Oy = Symbol('ExpandedRowProps'),
  Rz = e => {
    Ye(Oy, e)
  },
  Az = () => Ue(Oy, {}),
  Py = J({
    name: 'ExpandedRow',
    inheritAttrs: !1,
    props: [
      'prefixCls',
      'component',
      'cellComponent',
      'expanded',
      'colSpan',
      'isEmpty'
    ],
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const r = yn(),
        i = Az(),
        { fixHeader: l, fixColumn: a, componentWidth: s, horizonScroll: u } = i
      return () => {
        const {
          prefixCls: c,
          component: d,
          cellComponent: f,
          expanded: m,
          colSpan: g,
          isEmpty: h
        } = e
        return v(
          d,
          { class: o.class, style: { display: m ? null : 'none' } },
          {
            default: () => [
              v(
                Vl,
                { component: f, prefixCls: c, colSpan: g },
                {
                  default: () => {
                    var b
                    let S =
                      (b = n.default) === null || b === void 0
                        ? void 0
                        : b.call(n)
                    return (
                      (h ? u.value : a.value) &&
                        (S = v(
                          'div',
                          {
                            style: {
                              width: `${s.value -
                                (l.value ? r.scrollbarSize : 0)}px`,
                              position: 'sticky',
                              left: 0,
                              overflow: 'hidden'
                            },
                            class: `${c}-expanded-row-fixed`
                          },
                          [S]
                        )),
                      S
                    )
                  }
                }
              )
            ]
          }
        )
      }
    }
  }),
  Dz = J({
    name: 'MeasureCell',
    props: ['columnKey'],
    setup(e, t) {
      let { emit: n } = t
      const o = ne()
      return (
        We(() => {
          o.value && n('columnResize', e.columnKey, o.value.offsetWidth)
        }),
        () =>
          v(
            Tn,
            {
              onResize: r => {
                let { offsetWidth: i } = r
                n('columnResize', e.columnKey, i)
              }
            },
            {
              default: () => [
                v(
                  'td',
                  { ref: o, style: { padding: 0, border: 0, height: 0 } },
                  [
                    v('div', { style: { height: 0, overflow: 'hidden' } }, [
                      kn(' ')
                    ])
                  ]
                )
              ]
            }
          )
      )
    }
  }),
  Ty = Symbol('BodyContextProps'),
  Mz = e => {
    Ye(Ty, e)
  },
  Iy = () => Ue(Ty, {}),
  Nz = J({
    name: 'BodyRow',
    inheritAttrs: !1,
    props: [
      'record',
      'index',
      'renderIndex',
      'recordKey',
      'expandedKeys',
      'rowComponent',
      'cellComponent',
      'customRow',
      'rowExpandable',
      'indent',
      'rowKey',
      'getRowKey',
      'childrenColumnName'
    ],
    setup(e, t) {
      let { attrs: n } = t
      const o = yn(),
        r = Iy(),
        i = V(!1),
        l = P(() => e.expandedKeys && e.expandedKeys.has(e.recordKey))
      Me(() => {
        l.value && (i.value = !0)
      })
      const a = P(
          () =>
            r.expandableType === 'row' &&
            (!e.rowExpandable || e.rowExpandable(e.record))
        ),
        s = P(() => r.expandableType === 'nest'),
        u = P(
          () =>
            e.childrenColumnName && e.record && e.record[e.childrenColumnName]
        ),
        c = P(() => a.value || s.value),
        d = (b, S) => {
          r.onTriggerExpand(b, S)
        },
        f = P(() => {
          var b
          return (
            ((b = e.customRow) === null || b === void 0
              ? void 0
              : b.call(e, e.record, e.index)) || {}
          )
        }),
        m = function(b) {
          var S, C
          r.expandRowByClick && c.value && d(e.record, b)
          for (
            var $ = arguments.length, O = new Array($ > 1 ? $ - 1 : 0), x = 1;
            x < $;
            x++
          )
            O[x - 1] = arguments[x]
          ;(C = (S = f.value) === null || S === void 0 ? void 0 : S.onClick) ===
            null ||
            C === void 0 ||
            C.call(S, b, ...O)
        },
        g = P(() => {
          const { record: b, index: S, indent: C } = e,
            { rowClassName: $ } = r
          return typeof $ == 'string'
            ? $
            : typeof $ == 'function'
            ? $(b, S, C)
            : ''
        }),
        h = P(() => Wl(r.flattenColumns))
      return () => {
        const { class: b, style: S } = n,
          {
            record: C,
            index: $,
            rowKey: O,
            indent: x = 0,
            rowComponent: w,
            cellComponent: y
          } = e,
          { prefixCls: T, fixedInfoList: I, transformCellText: _ } = o,
          {
            flattenColumns: A,
            expandedRowClassName: z,
            indentSize: M,
            expandIcon: j,
            expandedRowRender: E,
            expandIconColumnIndex: R
          } = r,
          L = v(
            w,
            N(
              N({}, f.value),
              {},
              {
                'data-row-key': O,
                class: oe(
                  b,
                  `${T}-row`,
                  `${T}-row-level-${x}`,
                  g.value,
                  f.value.class
                ),
                style: [S, f.value.style],
                onClick: m
              }
            ),
            {
              default: () => [
                A.map((D, F) => {
                  const { customRender: H, dataIndex: B, className: X } = D,
                    ee = h[F],
                    de = I[F]
                  let ie
                  D.customCell && (ie = D.customCell(C, $, D))
                  const Q =
                    F === (R || 0) && s.value
                      ? v(nt, null, [
                          v(
                            'span',
                            {
                              style: { paddingLeft: `${M * x}px` },
                              class: `${T}-row-indent indent-level-${x}`
                            },
                            null
                          ),
                          j({
                            prefixCls: T,
                            expanded: l.value,
                            expandable: u.value,
                            record: C,
                            onExpand: d
                          })
                        ])
                      : null
                  return v(
                    Vl,
                    N(
                      N(
                        {
                          cellType: 'body',
                          class: X,
                          ellipsis: D.ellipsis,
                          align: D.align,
                          component: y,
                          prefixCls: T,
                          key: ee,
                          record: C,
                          index: $,
                          renderIndex: e.renderIndex,
                          dataIndex: B,
                          customRender: H
                        },
                        de
                      ),
                      {},
                      {
                        additionalProps: ie,
                        column: D,
                        transformCellText: _,
                        appendNode: Q
                      }
                    ),
                    null
                  )
                })
              ]
            }
          )
        let W
        if (a.value && (i.value || l.value)) {
          const D = E({
              record: C,
              index: $,
              indent: x + 1,
              expanded: l.value
            }),
            F = z && z(C, $, x)
          W = v(
            Py,
            {
              expanded: l.value,
              class: oe(
                `${T}-expanded-row`,
                `${T}-expanded-row-level-${x + 1}`,
                F
              ),
              prefixCls: T,
              component: w,
              cellComponent: y,
              colSpan: A.length,
              isEmpty: !1
            },
            { default: () => [D] }
          )
        }
        return v(nt, null, [L, W])
      }
    }
  })
function Ey(e, t, n, o, r, i) {
  const l = []
  l.push({ record: e, indent: t, index: i })
  const a = r(e),
    s = o == null ? void 0 : o.has(a)
  if (e && Array.isArray(e[n]) && s)
    for (let u = 0; u < e[n].length; u += 1) {
      const c = Ey(e[n][u], t + 1, n, o, r, u)
      l.push(...c)
    }
  return l
}
function Bz(e, t, n, o) {
  return P(() => {
    const i = t.value,
      l = n.value,
      a = e.value
    if (l != null && l.size) {
      const s = []
      for (let u = 0; u < (a == null ? void 0 : a.length); u += 1) {
        const c = a[u]
        s.push(...Ey(c, 0, i, l, o.value, u))
      }
      return s
    }
    return a == null
      ? void 0
      : a.map((s, u) => ({ record: s, indent: 0, index: u }))
  })
}
const _y = Symbol('ResizeContextProps'),
  zz = e => {
    Ye(_y, e)
  },
  Lz = () => Ue(_y, { onColumnResize: () => {} }),
  Fz = J({
    name: 'TableBody',
    props: [
      'data',
      'getRowKey',
      'measureColumnWidth',
      'expandedKeys',
      'customRow',
      'rowExpandable',
      'childrenColumnName'
    ],
    setup(e, t) {
      let { slots: n } = t
      const o = Lz(),
        r = yn(),
        i = Iy(),
        l = Bz(
          ot(e, 'data'),
          ot(e, 'childrenColumnName'),
          ot(e, 'expandedKeys'),
          ot(e, 'getRowKey')
        ),
        a = V(-1),
        s = V(-1)
      let u
      return (
        xz({
          startRow: a,
          endRow: s,
          onHover: (c, d) => {
            clearTimeout(u),
              (u = setTimeout(() => {
                ;(a.value = c), (s.value = d)
              }, 100))
          }
        }),
        () => {
          var c
          const {
              data: d,
              getRowKey: f,
              measureColumnWidth: m,
              expandedKeys: g,
              customRow: h,
              rowExpandable: b,
              childrenColumnName: S
            } = e,
            { onColumnResize: C } = o,
            { prefixCls: $, getComponent: O } = r,
            { flattenColumns: x } = i,
            w = O(['body', 'wrapper'], 'tbody'),
            y = O(['body', 'row'], 'tr'),
            T = O(['body', 'cell'], 'td')
          let I
          d.length
            ? (I = l.value.map((A, z) => {
                const { record: M, indent: j, index: E } = A,
                  R = f(M, z)
                return v(
                  Nz,
                  {
                    key: R,
                    rowKey: R,
                    record: M,
                    recordKey: R,
                    index: z,
                    renderIndex: E,
                    rowComponent: y,
                    cellComponent: T,
                    expandedKeys: g,
                    customRow: h,
                    getRowKey: f,
                    rowExpandable: b,
                    childrenColumnName: S,
                    indent: j
                  },
                  null
                )
              }))
            : (I = v(
                Py,
                {
                  expanded: !0,
                  class: `${$}-placeholder`,
                  prefixCls: $,
                  component: y,
                  cellComponent: T,
                  colSpan: x.length,
                  isEmpty: !0
                },
                {
                  default: () => [
                    (c = n.emptyNode) === null || c === void 0
                      ? void 0
                      : c.call(n)
                  ]
                }
              ))
          const _ = Wl(x)
          return v(
            w,
            { class: `${$}-tbody` },
            {
              default: () => [
                m &&
                  v(
                    'tr',
                    {
                      'aria-hidden': 'true',
                      class: `${$}-measure-row`,
                      style: { height: 0, fontSize: 0 }
                    },
                    [
                      _.map(A =>
                        v(Dz, { key: A, columnKey: A, onColumnResize: C }, null)
                      )
                    ]
                  ),
                I
              ]
            }
          )
        }
      )
    }
  }),
  Ln = {}
var Hz =
  (globalThis && globalThis.__rest) ||
  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 Vs(e) {
  return e.reduce((t, n) => {
    const { fixed: o } = n,
      r = o === !0 ? 'left' : o,
      i = n.children
    return i && i.length > 0
      ? [...t, ...Vs(i).map(l => p({ fixed: r }, l))]
      : [...t, p(p({}, n), { fixed: r })]
  }, [])
}
function kz(e) {
  return e.map(t => {
    const { fixed: n } = t,
      o = Hz(t, ['fixed'])
    let r = n
    return (
      n === 'left' ? (r = 'right') : n === 'right' && (r = 'left'),
      p({ fixed: r }, o)
    )
  })
}
function jz(e, t) {
  let {
    prefixCls: n,
    columns: o,
    expandable: r,
    expandedKeys: i,
    getRowKey: l,
    onTriggerExpand: a,
    expandIcon: s,
    rowExpandable: u,
    expandIconColumnIndex: c,
    direction: d,
    expandRowByClick: f,
    expandColumnWidth: m,
    expandFixed: g
  } = e
  const h = Vu(),
    b = P(() => {
      if (r.value) {
        let $ = o.value.slice()
        if (!$.includes(Ln)) {
          const M = c.value || 0
          M >= 0 && $.splice(M, 0, Ln)
        }
        const O = $.indexOf(Ln)
        $ = $.filter((M, j) => M !== Ln || j === O)
        const x = o.value[O]
        let w
        ;(g.value === 'left' || g.value) && !c.value
          ? (w = 'left')
          : (g.value === 'right' || g.value) && c.value === o.value.length
          ? (w = 'right')
          : (w = x ? x.fixed : null)
        const y = i.value,
          T = u.value,
          I = s.value,
          _ = n.value,
          A = f.value,
          z = {
            [Jo]: {
              class: `${n.value}-expand-icon-col`,
              columnType: 'EXPAND_COLUMN'
            },
            title: wl(h.value, 'expandColumnTitle', {}, () => ['']),
            fixed: w,
            class: `${n.value}-row-expand-icon-cell`,
            width: m.value,
            customRender: M => {
              let { record: j, index: E } = M
              const R = l.value(j, E),
                L = y.has(R),
                W = T ? T(j) : !0,
                D = I({
                  prefixCls: _,
                  expanded: L,
                  expandable: W,
                  record: j,
                  onExpand: a
                })
              return A
                ? v('span', { onClick: F => F.stopPropagation() }, [D])
                : D
            }
          }
        return $.map(M => (M === Ln ? z : M))
      }
      return o.value.filter($ => $ !== Ln)
    }),
    S = P(() => {
      let $ = b.value
      return (
        t.value && ($ = t.value($)),
        $.length || ($ = [{ customRender: () => null }]),
        $
      )
    }),
    C = P(() => (d.value === 'rtl' ? kz(Vs(S.value)) : Vs(S.value)))
  return [S, C]
}
function Ry(e) {
  const t = V(e)
  let n
  const o = V([])
  function r(i) {
    o.value.push(i),
      He.cancel(n),
      (n = He(() => {
        const l = o.value
        ;(o.value = []),
          l.forEach(a => {
            t.value = a(t.value)
          })
      }))
  }
  return (
    Qe(() => {
      He.cancel(n)
    }),
    [t, r]
  )
}
function Kz(e) {
  const t = ne(e || null),
    n = ne()
  function o() {
    clearTimeout(n.value)
  }
  function r(l) {
    ;(t.value = l),
      o(),
      (n.value = setTimeout(() => {
        ;(t.value = null), (n.value = void 0)
      }, 100))
  }
  function i() {
    return t.value
  }
  return (
    Qe(() => {
      o()
    }),
    [r, i]
  )
}
function Wz(e, t, n) {
  return P(() => {
    const r = [],
      i = []
    let l = 0,
      a = 0
    const s = e.value,
      u = t.value,
      c = n.value
    for (let d = 0; d < u; d += 1)
      if (c === 'rtl') {
        ;(i[d] = a), (a += s[d] || 0)
        const f = u - d - 1
        ;(r[f] = l), (l += s[f] || 0)
      } else {
        ;(r[d] = l), (l += s[d] || 0)
        const f = u - d - 1
        ;(i[f] = a), (a += s[f] || 0)
      }
    return { left: r, right: i }
  })
}
var Vz =
  (globalThis && globalThis.__rest) ||
  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 Ay(e) {
  let { colWidths: t, columns: n, columCount: o } = e
  const r = [],
    i = o || n.length
  let l = !1
  for (let a = i - 1; a >= 0; a -= 1) {
    const s = t[a],
      u = n && n[a],
      c = u && u[Jo]
    if (s || c || l) {
      const d = c || {},
        f = Vz(d, ['columnType'])
      r.unshift(
        v(
          'col',
          N(
            { key: a, style: { width: typeof s == 'number' ? `${s}px` : s } },
            f
          ),
          null
        )
      ),
        (l = !0)
    }
  }
  return v('colgroup', null, [r])
}
function Gs(e, t) {
  let { slots: n } = t
  var o
  return v('div', null, [
    (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
  ])
}
Gs.displayName = 'Panel'
let Gz = 0
const Uz = J({
    name: 'TableSummary',
    props: ['fixed'],
    setup(e, t) {
      let { slots: n } = t
      const o = yn(),
        r = `table-summary-uni-key-${++Gz}`,
        i = P(() => e.fixed === '' || e.fixed)
      return (
        Me(() => {
          o.summaryCollect(r, i.value)
        }),
        Qe(() => {
          o.summaryCollect(r, !1)
        }),
        () => {
          var l
          return (l = n.default) === null || l === void 0 ? void 0 : l.call(n)
        }
      )
    }
  }),
  Xz = Uz,
  qz = J({
    compatConfig: { MODE: 3 },
    name: 'ATableSummaryRow',
    setup(e, t) {
      let { slots: n } = t
      return () => {
        var o
        return v('tr', null, [
          (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
        ])
      }
    }
  }),
  Dy = Symbol('SummaryContextProps'),
  Yz = e => {
    Ye(Dy, e)
  },
  Jz = () => Ue(Dy, {}),
  Qz = J({
    name: 'ATableSummaryCell',
    props: ['index', 'colSpan', 'rowSpan', 'align'],
    setup(e, t) {
      let { attrs: n, slots: o } = t
      const r = yn(),
        i = Jz()
      return () => {
        const { index: l, colSpan: a = 1, rowSpan: s, align: u } = e,
          { prefixCls: c, direction: d } = r,
          { scrollColumnIndex: f, stickyOffsets: m, flattenColumns: g } = i,
          b = l + a - 1 + 1 === f ? a + 1 : a,
          S = Gu(l, l + b - 1, g, m, d)
        return v(
          Vl,
          N(
            {
              class: n.class,
              index: l,
              component: 'td',
              prefixCls: c,
              record: null,
              dataIndex: null,
              align: u,
              colSpan: b,
              rowSpan: s,
              customRender: () => {
                var C
                return (C = o.default) === null || C === void 0
                  ? void 0
                  : C.call(o)
              }
            },
            S
          ),
          null
        )
      }
    }
  }),
  Oi = J({
    name: 'TableFooter',
    inheritAttrs: !1,
    props: ['stickyOffsets', 'flattenColumns'],
    setup(e, t) {
      let { slots: n } = t
      const o = yn()
      return (
        Yz(
          dt({
            stickyOffsets: ot(e, 'stickyOffsets'),
            flattenColumns: ot(e, 'flattenColumns'),
            scrollColumnIndex: P(() => {
              const r = e.flattenColumns.length - 1,
                i = e.flattenColumns[r]
              return i != null && i.scrollbar ? r : null
            })
          })
        ),
        () => {
          var r
          const { prefixCls: i } = o
          return v('tfoot', { class: `${i}-summary` }, [
            (r = n.default) === null || r === void 0 ? void 0 : r.call(n)
          ])
        }
      )
    }
  }),
  Zz = Xz
function eL(e) {
  let { prefixCls: t, record: n, onExpand: o, expanded: r, expandable: i } = e
  const l = `${t}-row-expand-icon`
  if (!i) return v('span', { class: [l, `${t}-row-spaced`] }, null)
  const a = s => {
    o(n, s), s.stopPropagation()
  }
  return v(
    'span',
    {
      class: { [l]: !0, [`${t}-row-expanded`]: r, [`${t}-row-collapsed`]: !r },
      onClick: a
    },
    null
  )
}
function tL(e, t, n) {
  const o = []
  function r(i) {
    ;(i || []).forEach((l, a) => {
      o.push(t(l, a)), r(l[n])
    })
  }
  return r(e), o
}
const nL = J({
    name: 'StickyScrollBar',
    inheritAttrs: !1,
    props: ['offsetScroll', 'container', 'scrollBodyRef', 'scrollBodySizeInfo'],
    emits: ['scroll'],
    setup(e, t) {
      let { emit: n, expose: o } = t
      const r = yn(),
        i = V(0),
        l = V(0),
        a = V(0)
      Me(
        () => {
          ;(i.value = e.scrollBodySizeInfo.scrollWidth || 0),
            (l.value = e.scrollBodySizeInfo.clientWidth || 0),
            (a.value = i.value && l.value * (l.value / i.value))
        },
        { flush: 'post' }
      )
      const s = V(),
        [u, c] = Ry({ scrollLeft: 0, isHiddenScrollBar: !0 }),
        d = ne({ delta: 0, x: 0 }),
        f = V(!1),
        m = () => {
          f.value = !1
        },
        g = y => {
          ;(d.value = { delta: y.pageX - u.value.scrollLeft, x: 0 }),
            (f.value = !0),
            y.preventDefault()
        },
        h = y => {
          const { buttons: T } = y || (window == null ? void 0 : window.event)
          if (!f.value || T === 0) {
            f.value && (f.value = !1)
            return
          }
          let I = d.value.x + y.pageX - d.value.x - d.value.delta
          I <= 0 && (I = 0),
            I + a.value >= l.value && (I = l.value - a.value),
            n('scroll', { scrollLeft: (I / l.value) * (i.value + 2) }),
            (d.value.x = y.pageX)
        },
        b = () => {
          if (!e.scrollBodyRef.value) return
          const y = Df(e.scrollBodyRef.value).top,
            T = y + e.scrollBodyRef.value.offsetHeight,
            I =
              e.container === window
                ? document.documentElement.scrollTop + window.innerHeight
                : Df(e.container).top + e.container.clientHeight
          T - Zi() <= I || y >= I - e.offsetScroll
            ? c(_ => p(p({}, _), { isHiddenScrollBar: !0 }))
            : c(_ => p(p({}, _), { isHiddenScrollBar: !1 }))
        }
      o({
        setScrollLeft: y => {
          c(T => p(p({}, T), { scrollLeft: (y / i.value) * l.value || 0 }))
        }
      })
      let C = null,
        $ = null,
        O = null,
        x = null
      We(() => {
        ;(C = Jt(document.body, 'mouseup', m, !1)),
          ($ = Jt(document.body, 'mousemove', h, !1)),
          (O = Jt(window, 'resize', b, !1))
      }),
        E0(() => {
          it(() => {
            b()
          })
        }),
        We(() => {
          setTimeout(() => {
            ge(
              [a, f],
              () => {
                b()
              },
              { immediate: !0, flush: 'post' }
            )
          })
        }),
        ge(
          () => e.container,
          () => {
            x == null || x.remove(), (x = Jt(e.container, 'scroll', b, !1))
          },
          { immediate: !0, flush: 'post' }
        ),
        Qe(() => {
          C == null || C.remove(),
            $ == null || $.remove(),
            x == null || x.remove(),
            O == null || O.remove()
        }),
        ge(
          () => p({}, u.value),
          (y, T) => {
            y.isHiddenScrollBar !==
              (T == null ? void 0 : T.isHiddenScrollBar) &&
              !y.isHiddenScrollBar &&
              c(I => {
                const _ = e.scrollBodyRef.value
                return _
                  ? p(p({}, I), {
                      scrollLeft: (_.scrollLeft / _.scrollWidth) * _.clientWidth
                    })
                  : I
              })
          },
          { immediate: !0 }
        )
      const w = Zi()
      return () => {
        if (i.value <= l.value || !a.value || u.value.isHiddenScrollBar)
          return null
        const { prefixCls: y } = r
        return v(
          'div',
          {
            style: {
              height: `${w}px`,
              width: `${l.value}px`,
              bottom: `${e.offsetScroll}px`
            },
            class: `${y}-sticky-scroll`
          },
          [
            v(
              'div',
              {
                onMousedown: g,
                ref: s,
                class: oe(`${y}-sticky-scroll-bar`, {
                  [`${y}-sticky-scroll-bar-active`]: f.value
                }),
                style: {
                  width: `${a.value}px`,
                  transform: `translate3d(${u.value.scrollLeft}px, 0, 0)`
                }
              },
              null
            )
          ]
        )
      }
    }
  }),
  $v = Ht() ? window : null
function oL(e, t) {
  return P(() => {
    const {
        offsetHeader: n = 0,
        offsetSummary: o = 0,
        offsetScroll: r = 0,
        getContainer: i = () => $v
      } = typeof e.value == 'object' ? e.value : {},
      l = i() || $v,
      a = !!e.value
    return {
      isSticky: a,
      stickyClassName: a ? `${t.value}-sticky-holder` : '',
      offsetHeader: n,
      offsetSummary: o,
      offsetScroll: r,
      container: l
    }
  })
}
function rL(e, t) {
  return P(() => {
    const n = [],
      o = e.value,
      r = t.value
    for (let i = 0; i < r; i += 1) {
      const l = o[i]
      if (l !== void 0) n[i] = l
      else return null
    }
    return n
  })
}
const wv = J({
  name: 'FixedHolder',
  inheritAttrs: !1,
  props: [
    'columns',
    'flattenColumns',
    'stickyOffsets',
    'customHeaderRow',
    'noData',
    'maxContentScroll',
    'colWidths',
    'columCount',
    'direction',
    'fixHeader',
    'stickyTopOffset',
    'stickyBottomOffset',
    'stickyClassName'
  ],
  emits: ['scroll'],
  setup(e, t) {
    let { attrs: n, slots: o, emit: r } = t
    const i = yn(),
      l = P(() => (i.isSticky && !e.fixHeader ? 0 : i.scrollbarSize)),
      a = ne(),
      s = h => {
        const { currentTarget: b, deltaX: S } = h
        S &&
          (r('scroll', { currentTarget: b, scrollLeft: b.scrollLeft + S }),
          h.preventDefault())
      },
      u = ne()
    We(() => {
      it(() => {
        u.value = Jt(a.value, 'wheel', s)
      })
    }),
      Qe(() => {
        var h
        ;(h = u.value) === null || h === void 0 || h.remove()
      })
    const c = P(() =>
        e.flattenColumns.every(
          h => h.width && h.width !== 0 && h.width !== '0px'
        )
      ),
      d = ne([]),
      f = ne([])
    Me(() => {
      const h = e.flattenColumns[e.flattenColumns.length - 1],
        b = {
          fixed: h ? h.fixed : null,
          scrollbar: !0,
          customHeaderCell: () => ({ class: `${i.prefixCls}-cell-scrollbar` })
        }
      ;(d.value = l.value ? [...e.columns, b] : e.columns),
        (f.value = l.value ? [...e.flattenColumns, b] : e.flattenColumns)
    })
    const m = P(() => {
        const { stickyOffsets: h, direction: b } = e,
          { right: S, left: C } = h
        return p(p({}, h), {
          left: b === 'rtl' ? [...C.map($ => $ + l.value), 0] : C,
          right: b === 'rtl' ? S : [...S.map($ => $ + l.value), 0],
          isSticky: i.isSticky
        })
      }),
      g = rL(ot(e, 'colWidths'), ot(e, 'columCount'))
    return () => {
      var h
      const {
          noData: b,
          columCount: S,
          stickyTopOffset: C,
          stickyBottomOffset: $,
          stickyClassName: O,
          maxContentScroll: x
        } = e,
        { isSticky: w } = i
      return v(
        'div',
        {
          style: p(
            { overflow: 'hidden' },
            w ? { top: `${C}px`, bottom: `${$}px` } : {}
          ),
          ref: a,
          class: oe(n.class, { [O]: !!O })
        },
        [
          v(
            'table',
            {
              style: {
                tableLayout: 'fixed',
                visibility: b || g.value ? null : 'hidden'
              }
            },
            [
              (!b || !x || c.value) &&
                v(
                  Ay,
                  {
                    colWidths: g.value ? [...g.value, l.value] : [],
                    columCount: S + 1,
                    columns: f.value
                  },
                  null
                ),
              (h = o.default) === null || h === void 0
                ? void 0
                : h.call(
                    o,
                    p(p({}, e), {
                      stickyOffsets: m.value,
                      columns: d.value,
                      flattenColumns: f.value
                    })
                  )
            ]
          )
        ]
      )
    }
  }
})
function Ov(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 dt(zE(n.map(r => [r, ot(e, r)])))
}
const iL = [],
  lL = {},
  Us = 'rc-table-internal-hook',
  aL = J({
    name: 'VcTable',
    inheritAttrs: !1,
    props: [
      'prefixCls',
      'data',
      'columns',
      'rowKey',
      'tableLayout',
      'scroll',
      'rowClassName',
      'title',
      'footer',
      'id',
      'showHeader',
      'components',
      'customRow',
      'customHeaderRow',
      'direction',
      'expandFixed',
      'expandColumnWidth',
      'expandedRowKeys',
      'defaultExpandedRowKeys',
      'expandedRowRender',
      'expandRowByClick',
      'expandIcon',
      'onExpand',
      'onExpandedRowsChange',
      'onUpdate:expandedRowKeys',
      'defaultExpandAllRows',
      'indentSize',
      'expandIconColumnIndex',
      'expandedRowClassName',
      'childrenColumnName',
      'rowExpandable',
      'sticky',
      'transformColumns',
      'internalHooks',
      'internalRefs',
      'canExpandable',
      'onUpdateInternalRefs',
      'transformCellText'
    ],
    emits: [
      'expand',
      'expandedRowsChange',
      'updateInternalRefs',
      'update:expandedRowKeys'
    ],
    setup(e, t) {
      let { attrs: n, slots: o, emit: r } = t
      const i = P(() => e.data || iL),
        l = P(() => !!i.value.length),
        a = P(() => hz(e.components, {})),
        s = (G, le) => xy(a.value, G) || le,
        u = P(() => {
          const G = e.rowKey
          return typeof G == 'function' ? G : le => le && le[G]
        }),
        c = P(() => e.expandIcon || eL),
        d = P(() => e.childrenColumnName || 'children'),
        f = P(() =>
          e.expandedRowRender
            ? 'row'
            : e.canExpandable ||
              i.value.some(G => G && typeof G == 'object' && G[d.value])
            ? 'nest'
            : !1
        ),
        m = V([])
      Me(() => {
        e.defaultExpandedRowKeys && (m.value = e.defaultExpandedRowKeys),
          e.defaultExpandAllRows && (m.value = tL(i.value, u.value, d.value))
      })()
      const h = P(() => new Set(e.expandedRowKeys || m.value || [])),
        b = G => {
          const le = u.value(G, i.value.indexOf(G))
          let $e
          const Te = h.value.has(le)
          Te
            ? (h.value.delete(le), ($e = [...h.value]))
            : ($e = [...h.value, le]),
            (m.value = $e),
            r('expand', !Te, G),
            r('update:expandedRowKeys', $e),
            r('expandedRowsChange', $e)
        },
        S = ne(0),
        [C, $] = jz(
          p(p({}, Ir(e)), {
            expandable: P(() => !!e.expandedRowRender),
            expandedKeys: h,
            getRowKey: u,
            onTriggerExpand: b,
            expandIcon: c
          }),
          P(() => (e.internalHooks === Us ? e.transformColumns : null))
        ),
        O = P(() => ({ columns: C.value, flattenColumns: $.value })),
        x = ne(),
        w = ne(),
        y = ne(),
        T = ne({ scrollWidth: 0, clientWidth: 0 }),
        I = ne(),
        [_, A] = tt(!1),
        [z, M] = tt(!1),
        [j, E] = Ry(new Map()),
        R = P(() => Wl($.value)),
        L = P(() => R.value.map(G => j.value.get(G))),
        W = P(() => $.value.length),
        D = Wz(L, W, ot(e, 'direction')),
        F = P(() => e.scroll && Ks(e.scroll.y)),
        H = P(() => (e.scroll && Ks(e.scroll.x)) || !!e.expandFixed),
        B = P(
          () =>
            H.value &&
            $.value.some(G => {
              let { fixed: le } = G
              return le
            })
        ),
        X = ne(),
        ee = oL(ot(e, 'sticky'), ot(e, 'prefixCls')),
        de = dt({}),
        ie = P(() => {
          const G = Object.values(de)[0]
          return (F.value || ee.value.isSticky) && G
        }),
        Q = (G, le) => {
          le ? (de[G] = le) : delete de[G]
        },
        se = ne({}),
        q = ne({}),
        K = ne({})
      Me(() => {
        F.value &&
          (q.value = { overflowY: 'scroll', maxHeight: no(e.scroll.y) }),
          H.value &&
            ((se.value = { overflowX: 'auto' }),
            F.value || (q.value = { overflowY: 'hidden' }),
            (K.value = {
              width: e.scroll.x === !0 ? 'auto' : no(e.scroll.x),
              minWidth: '100%'
            }))
      })
      const U = (G, le) => {
          Nc(x.value) &&
            E($e => {
              if ($e.get(G) !== le) {
                const Te = new Map($e)
                return Te.set(G, le), Te
              }
              return $e
            })
        },
        [ue, me] = Kz(null)
      function he(G, le) {
        if (!le) return
        if (typeof le == 'function') {
          le(G)
          return
        }
        const $e = le.$el || le
        $e.scrollLeft !== G && ($e.scrollLeft = G)
      }
      const Pe = G => {
          let { currentTarget: le, scrollLeft: $e } = G
          var Te
          const De = e.direction === 'rtl',
            ae = typeof $e == 'number' ? $e : le.scrollLeft,
            ce = le || lL
          if (
            ((!me() || me() === ce) &&
              (ue(ce),
              he(ae, w.value),
              he(ae, y.value),
              he(ae, I.value),
              he(
                ae,
                (Te = X.value) === null || Te === void 0
                  ? void 0
                  : Te.setScrollLeft
              )),
            le)
          ) {
            const { scrollWidth: pe, clientWidth: Se } = le
            De ? (A(-ae < pe - Se), M(-ae > 0)) : (A(ae > 0), M(ae < pe - Se))
          }
        },
        ve = () => {
          H.value && y.value ? Pe({ currentTarget: y.value }) : (A(!1), M(!1))
        }
      let ye
      const te = G => {
          G !== S.value && (ve(), (S.value = x.value ? x.value.offsetWidth : G))
        },
        Z = G => {
          let { width: le } = G
          if ((clearTimeout(ye), S.value === 0)) {
            te(le)
            return
          }
          ye = setTimeout(() => {
            te(le)
          }, 100)
        }
      ge(
        [H, () => e.data, () => e.columns],
        () => {
          H.value && ve()
        },
        { flush: 'post' }
      )
      const [fe, xe] = tt(0)
      $z(),
        We(() => {
          it(() => {
            var G, le
            ve(),
              xe(l1(y.value).width),
              (T.value = {
                scrollWidth:
                  ((G = y.value) === null || G === void 0
                    ? void 0
                    : G.scrollWidth) || 0,
                clientWidth:
                  ((le = y.value) === null || le === void 0
                    ? void 0
                    : le.clientWidth) || 0
              })
          })
        }),
        An(() => {
          it(() => {
            var G, le
            const $e =
                ((G = y.value) === null || G === void 0
                  ? void 0
                  : G.scrollWidth) || 0,
              Te =
                ((le = y.value) === null || le === void 0
                  ? void 0
                  : le.clientWidth) || 0
            ;(T.value.scrollWidth !== $e || T.value.clientWidth !== Te) &&
              (T.value = { scrollWidth: $e, clientWidth: Te })
          })
        }),
        Me(
          () => {
            e.internalHooks === Us &&
              e.internalRefs &&
              e.onUpdateInternalRefs({
                body: y.value ? y.value.$el || y.value : null
              })
          },
          { flush: 'post' }
        )
      const be = P(() =>
          e.tableLayout
            ? e.tableLayout
            : B.value
            ? e.scroll.x === 'max-content'
              ? 'auto'
              : 'fixed'
            : F.value ||
              ee.value.isSticky ||
              $.value.some(G => {
                let { ellipsis: le } = G
                return le
              })
            ? 'fixed'
            : 'auto'
        ),
        Ce = () => {
          var G
          return l.value
            ? null
            : ((G = o.emptyText) === null || G === void 0
                ? void 0
                : G.call(o)) || 'No Data'
        }
      mz(
        dt(
          p(p({}, Ir(Ov(e, 'prefixCls', 'direction', 'transformCellText'))), {
            getComponent: s,
            scrollbarSize: fe,
            fixedInfoList: P(() =>
              $.value.map((G, le) => Gu(le, le, $.value, D.value, e.direction))
            ),
            isSticky: P(() => ee.value.isSticky),
            summaryCollect: Q
          })
        )
      ),
        Mz(
          dt(
            p(
              p(
                {},
                Ir(
                  Ov(
                    e,
                    'rowClassName',
                    'expandedRowClassName',
                    'expandRowByClick',
                    'expandedRowRender',
                    'expandIconColumnIndex',
                    'indentSize'
                  )
                )
              ),
              {
                columns: C,
                flattenColumns: $,
                tableLayout: be,
                expandIcon: c,
                expandableType: f,
                onTriggerExpand: b
              }
            )
          )
        ),
        zz({ onColumnResize: U }),
        Rz({ componentWidth: S, fixHeader: F, fixColumn: B, horizonScroll: H })
      const Ne = () =>
          v(
            Fz,
            {
              data: i.value,
              measureColumnWidth: F.value || H.value || ee.value.isSticky,
              expandedKeys: h.value,
              rowExpandable: e.rowExpandable,
              getRowKey: u.value,
              customRow: e.customRow,
              childrenColumnName: d.value
            },
            { emptyNode: Ce }
          ),
        Y = () =>
          v(
            Ay,
            {
              colWidths: $.value.map(G => {
                let { width: le } = G
                return le
              }),
              columns: $.value
            },
            null
          )
      return () => {
        var G
        const {
            prefixCls: le,
            scroll: $e,
            tableLayout: Te,
            direction: De,
            title: ae = o.title,
            footer: ce = o.footer,
            id: pe,
            showHeader: Se,
            customHeaderRow: Ie
          } = e,
          {
            isSticky: Ee,
            offsetHeader: we,
            offsetSummary: ke,
            offsetScroll: qe,
            stickyClassName: Be,
            container: Ge
          } = ee.value,
          Je = s(['table'], 'table'),
          xt = s(['body']),
          Ot =
            (G = o.summary) === null || G === void 0
              ? void 0
              : G.call(o, { pageData: i.value })
        let It = () => null
        const gt = {
          colWidths: L.value,
          columCount: $.value.length,
          stickyOffsets: D.value,
          customHeaderRow: Ie,
          fixHeader: F.value,
          scroll: $e
        }
        if (F.value || Ee) {
          let sn = () => null
          typeof xt == 'function'
            ? ((sn = () =>
                xt(i.value, { scrollbarSize: fe.value, ref: y, onScroll: Pe })),
              (gt.colWidths = $.value.map((cn, br) => {
                let { width: Do } = cn
                const Un = br === C.value.length - 1 ? Do - fe.value : Do
                return typeof Un == 'number' && !Number.isNaN(Un) ? Un : 0
              })))
            : (sn = () =>
                v(
                  'div',
                  {
                    style: p(p({}, se.value), q.value),
                    onScroll: Pe,
                    ref: y,
                    class: oe(`${le}-body`)
                  },
                  [
                    v(
                      Je,
                      { style: p(p({}, K.value), { tableLayout: be.value }) },
                      {
                        default: () => [
                          Y(),
                          Ne(),
                          !ie.value &&
                            Ot &&
                            v(
                              Oi,
                              {
                                stickyOffsets: D.value,
                                flattenColumns: $.value
                              },
                              { default: () => [Ot] }
                            )
                        ]
                      }
                    )
                  ]
                ))
          const Sn = p(
            p(
              p(
                {
                  noData: !i.value.length,
                  maxContentScroll: H.value && $e.x === 'max-content'
                },
                gt
              ),
              O.value
            ),
            { direction: De, stickyClassName: Be, onScroll: Pe }
          )
          It = () =>
            v(nt, null, [
              Se !== !1 &&
                v(
                  wv,
                  N(
                    N({}, Sn),
                    {},
                    { stickyTopOffset: we, class: `${le}-header`, ref: w }
                  ),
                  {
                    default: cn =>
                      v(nt, null, [
                        v(Cv, cn, null),
                        ie.value === 'top' && v(Oi, cn, { default: () => [Ot] })
                      ])
                  }
                ),
              sn(),
              ie.value &&
                ie.value !== 'top' &&
                v(
                  wv,
                  N(
                    N({}, Sn),
                    {},
                    { stickyBottomOffset: ke, class: `${le}-summary`, ref: I }
                  ),
                  { default: cn => v(Oi, cn, { default: () => [Ot] }) }
                ),
              Ee &&
                y.value &&
                v(
                  nL,
                  {
                    ref: X,
                    offsetScroll: qe,
                    scrollBodyRef: y,
                    onScroll: Pe,
                    container: Ge,
                    scrollBodySizeInfo: T.value
                  },
                  null
                )
            ])
        } else
          It = () =>
            v(
              'div',
              {
                style: p(p({}, se.value), q.value),
                class: oe(`${le}-content`),
                onScroll: Pe,
                ref: y
              },
              [
                v(
                  Je,
                  { style: p(p({}, K.value), { tableLayout: be.value }) },
                  {
                    default: () => [
                      Y(),
                      Se !== !1 && v(Cv, N(N({}, gt), O.value), null),
                      Ne(),
                      Ot &&
                        v(
                          Oi,
                          { stickyOffsets: D.value, flattenColumns: $.value },
                          { default: () => [Ot] }
                        )
                    ]
                  }
                )
              ]
            )
        const Nt = fr(n, { aria: !0, data: !0 }),
          Gt = () =>
            v(
              'div',
              N(
                N({}, Nt),
                {},
                {
                  class: oe(le, {
                    [`${le}-rtl`]: De === 'rtl',
                    [`${le}-ping-left`]: _.value,
                    [`${le}-ping-right`]: z.value,
                    [`${le}-layout-fixed`]: Te === 'fixed',
                    [`${le}-fixed-header`]: F.value,
                    [`${le}-fixed-column`]: B.value,
                    [`${le}-scroll-horizontal`]: H.value,
                    [`${le}-has-fix-left`]: $.value[0] && $.value[0].fixed,
                    [`${le}-has-fix-right`]:
                      $.value[W.value - 1] &&
                      $.value[W.value - 1].fixed === 'right',
                    [n.class]: n.class
                  }),
                  style: n.style,
                  id: pe,
                  ref: x
                }
              ),
              [
                ae &&
                  v(
                    Gs,
                    { class: `${le}-title` },
                    { default: () => [ae(i.value)] }
                  ),
                v('div', { class: `${le}-container` }, [It()]),
                ce &&
                  v(
                    Gs,
                    { class: `${le}-footer` },
                    { default: () => [ce(i.value)] }
                  )
              ]
            )
        return H.value ? v(Tn, { onResize: Z }, { default: Gt }) : Gt()
      }
    }
  })
function sL() {
  const e = p({}, arguments.length <= 0 ? void 0 : arguments[0])
  for (let t = 1; t < arguments.length; t++) {
    const n = t < 0 || arguments.length <= t ? void 0 : arguments[t]
    n &&
      Object.keys(n).forEach(o => {
        const r = n[o]
        r !== void 0 && (e[o] = r)
      })
  }
  return e
}
const Xs = 10
function cL(e, t) {
  const n = { current: e.current, pageSize: e.pageSize }
  return (
    Object.keys(t && typeof t == 'object' ? t : {}).forEach(r => {
      const i = e[r]
      typeof i != 'function' && (n[r] = i)
    }),
    n
  )
}
function uL(e, t, n) {
  const o = P(() => (t.value && typeof t.value == 'object' ? t.value : {})),
    r = P(() => o.value.total || 0),
    [i, l] = tt(() => ({
      current: 'defaultCurrent' in o.value ? o.value.defaultCurrent : 1,
      pageSize: 'defaultPageSize' in o.value ? o.value.defaultPageSize : Xs
    })),
    a = P(() => {
      const c = sL(i.value, o.value, {
          total: r.value > 0 ? r.value : e.value
        }),
        d = Math.ceil((r.value || e.value) / c.pageSize)
      return c.current > d && (c.current = d || 1), c
    }),
    s = (c, d) => {
      t.value !== !1 && l({ current: c ?? 1, pageSize: d || a.value.pageSize })
    },
    u = (c, d) => {
      var f, m
      t.value &&
        ((m = (f = o.value).onChange) === null ||
          m === void 0 ||
          m.call(f, c, d)),
        s(c, d),
        n(c, d || a.value.pageSize)
    }
  return [
    P(() => (t.value === !1 ? {} : p(p({}, a.value), { onChange: u }))),
    s
  ]
}
function dL(e, t, n) {
  const o = V({})
  ge(
    [e, t, n],
    () => {
      const i = new Map(),
        l = n.value,
        a = t.value
      function s(u) {
        u.forEach((c, d) => {
          const f = l(c, d)
          i.set(f, c), c && typeof c == 'object' && a in c && s(c[a] || [])
        })
      }
      s(e.value), (o.value = { kvMap: i })
    },
    { deep: !0, immediate: !0 }
  )
  function r(i) {
    return o.value.kvMap.get(i)
  }
  return [r]
}
const wn = {},
  qs = 'SELECT_ALL',
  Ys = 'SELECT_INVERT',
  Js = 'SELECT_NONE',
  fL = []
function My(e, t) {
  let n = []
  return (
    (t || []).forEach(o => {
      n.push(o),
        o && typeof o == 'object' && e in o && (n = [...n, ...My(e, o[e])])
    }),
    n
  )
}
function pL(e, t) {
  const n = P(() => {
      const I = e.value || {},
        { checkStrictly: _ = !0 } = I
      return p(p({}, I), { checkStrictly: _ })
    }),
    [o, r] = So(
      n.value.selectedRowKeys || n.value.defaultSelectedRowKeys || fL,
      { value: P(() => n.value.selectedRowKeys) }
    ),
    i = V(new Map()),
    l = I => {
      if (n.value.preserveSelectedRowKeys) {
        const _ = new Map()
        I.forEach(A => {
          let z = t.getRecordByKey(A)
          !z && i.value.has(A) && (z = i.value.get(A)), _.set(A, z)
        }),
          (i.value = _)
      }
    }
  Me(() => {
    l(o.value)
  })
  const a = P(() =>
      n.value.checkStrictly
        ? null
        : Nu(t.data.value, {
            externalGetKey: t.getRowKey.value,
            childrenPropName: t.childrenColumnName.value
          }).keyEntities
    ),
    s = P(() => My(t.childrenColumnName.value, t.pageData.value)),
    u = P(() => {
      const I = new Map(),
        _ = t.getRowKey.value,
        A = n.value.getCheckboxProps
      return (
        s.value.forEach((z, M) => {
          const j = _(z, M),
            E = (A ? A(z) : null) || {}
          I.set(j, E)
        }),
        I
      )
    }),
    { maxLevel: c, levelEntities: d } = zb(a),
    f = I => {
      var _
      return !!(
        !((_ = u.value.get(t.getRowKey.value(I))) === null || _ === void 0) &&
        _.disabled
      )
    },
    m = P(() => {
      if (n.value.checkStrictly) return [o.value || [], []]
      const { checkedKeys: I, halfCheckedKeys: _ } = qo(
        o.value,
        !0,
        a.value,
        c.value,
        d.value,
        f
      )
      return [I || [], _]
    }),
    g = P(() => m.value[0]),
    h = P(() => m.value[1]),
    b = P(() => {
      const I = n.value.type === 'radio' ? g.value.slice(0, 1) : g.value
      return new Set(I)
    }),
    S = P(() => (n.value.type === 'radio' ? new Set() : new Set(h.value))),
    [C, $] = tt(null),
    O = I => {
      let _, A
      l(I)
      const { preserveSelectedRowKeys: z, onChange: M } = n.value,
        { getRecordByKey: j } = t
      z
        ? ((_ = I), (A = I.map(E => i.value.get(E))))
        : ((_ = []),
          (A = []),
          I.forEach(E => {
            const R = j(E)
            R !== void 0 && (_.push(E), A.push(R))
          })),
        r(_),
        M == null || M(_, A)
    },
    x = (I, _, A, z) => {
      const { onSelect: M } = n.value,
        { getRecordByKey: j } = t || {}
      if (M) {
        const E = A.map(R => j(R))
        M(j(I), _, E, z)
      }
      O(A)
    },
    w = P(() => {
      const {
          onSelectInvert: I,
          onSelectNone: _,
          selections: A,
          hideSelectAll: z
        } = n.value,
        { data: M, pageData: j, getRowKey: E, locale: R } = t
      return !A || z
        ? null
        : (A === !0 ? [qs, Ys, Js] : A).map(W =>
            W === qs
              ? {
                  key: 'all',
                  text: R.value.selectionAll,
                  onSelect() {
                    O(
                      M.value
                        .map((D, F) => E.value(D, F))
                        .filter(D => {
                          const F = u.value.get(D)
                          return !(F != null && F.disabled) || b.value.has(D)
                        })
                    )
                  }
                }
              : W === Ys
              ? {
                  key: 'invert',
                  text: R.value.selectInvert,
                  onSelect() {
                    const D = new Set(b.value)
                    j.value.forEach((H, B) => {
                      const X = E.value(H, B),
                        ee = u.value.get(X)
                      ;(ee != null && ee.disabled) ||
                        (D.has(X) ? D.delete(X) : D.add(X))
                    })
                    const F = Array.from(D)
                    I &&
                      (vt(
                        !1,
                        'Table',
                        '`onSelectInvert` will be removed in future. Please use `onChange` instead.'
                      ),
                      I(F)),
                      O(F)
                  }
                }
              : W === Js
              ? {
                  key: 'none',
                  text: R.value.selectNone,
                  onSelect() {
                    _ == null || _(),
                      O(
                        Array.from(b.value).filter(D => {
                          const F = u.value.get(D)
                          return F == null ? void 0 : F.disabled
                        })
                      )
                  }
                }
              : W
          )
    }),
    y = P(() => s.value.length)
  return [
    I => {
      var _
      const {
          onSelectAll: A,
          onSelectMultiple: z,
          columnWidth: M,
          type: j,
          fixed: E,
          renderCell: R,
          hideSelectAll: L,
          checkStrictly: W
        } = n.value,
        {
          prefixCls: D,
          getRecordByKey: F,
          getRowKey: H,
          expandType: B,
          getPopupContainer: X
        } = t
      if (!e.value) return I.filter(te => te !== wn)
      let ee = I.slice()
      const de = new Set(b.value),
        ie = s.value.map(H.value).filter(te => !u.value.get(te).disabled),
        Q = ie.every(te => de.has(te)),
        se = ie.some(te => de.has(te)),
        q = () => {
          const te = []
          Q
            ? ie.forEach(fe => {
                de.delete(fe), te.push(fe)
              })
            : ie.forEach(fe => {
                de.has(fe) || (de.add(fe), te.push(fe))
              })
          const Z = Array.from(de)
          A == null ||
            A(
              !Q,
              Z.map(fe => F(fe)),
              te.map(fe => F(fe))
            ),
            O(Z)
        }
      let K
      if (j !== 'radio') {
        let te
        if (w.value) {
          const Ce = v(
            Qt,
            { getPopupContainer: X.value },
            {
              default: () => [
                w.value.map((Ne, Y) => {
                  const { key: G, text: le, onSelect: $e } = Ne
                  return v(
                    Qt.Item,
                    {
                      key: G || Y,
                      onClick: () => {
                        $e == null || $e(ie)
                      }
                    },
                    { default: () => [le] }
                  )
                })
              ]
            }
          )
          te = v('div', { class: `${D.value}-selection-extra` }, [
            v(
              fo,
              { overlay: Ce, getPopupContainer: X.value },
              { default: () => [v('span', null, [v(Ph, null, null)])] }
            )
          ])
        }
        const Z = s.value
            .map((Ce, Ne) => {
              const Y = H.value(Ce, Ne),
                G = u.value.get(Y) || {}
              return p({ checked: de.has(Y) }, G)
            })
            .filter(Ce => {
              let { disabled: Ne } = Ce
              return Ne
            }),
          fe = !!Z.length && Z.length === y.value,
          xe =
            fe &&
            Z.every(Ce => {
              let { checked: Ne } = Ce
              return Ne
            }),
          be =
            fe &&
            Z.some(Ce => {
              let { checked: Ne } = Ce
              return Ne
            })
        K =
          !L &&
          v('div', { class: `${D.value}-selection` }, [
            v(
              Pn,
              {
                checked: fe ? xe : !!y.value && Q,
                indeterminate: fe ? !xe && be : !Q && se,
                onChange: q,
                disabled: y.value === 0 || fe,
                'aria-label': te ? 'Custom selection' : 'Select all',
                skipGroup: !0
              },
              null
            ),
            te
          ])
      }
      let U
      j === 'radio'
        ? (U = te => {
            let { record: Z, index: fe } = te
            const xe = H.value(Z, fe),
              be = de.has(xe)
            return {
              node: v(
                Lt,
                N(
                  N({}, u.value.get(xe)),
                  {},
                  {
                    checked: be,
                    onClick: Ce => Ce.stopPropagation(),
                    onChange: Ce => {
                      de.has(xe) || x(xe, !0, [xe], Ce.nativeEvent)
                    }
                  }
                ),
                null
              ),
              checked: be
            }
          })
        : (U = te => {
            let { record: Z, index: fe } = te
            var xe
            const be = H.value(Z, fe),
              Ce = de.has(be),
              Ne = S.value.has(be),
              Y = u.value.get(be)
            let G
            return (
              B.value === 'nest'
                ? ((G = Ne),
                  vt(
                    typeof (Y == null ? void 0 : Y.indeterminate) != 'boolean',
                    'Table',
                    'set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.'
                  ))
                : (G =
                    (xe = Y == null ? void 0 : Y.indeterminate) !== null &&
                    xe !== void 0
                      ? xe
                      : Ne),
              {
                node: v(
                  Pn,
                  N(
                    N({}, Y),
                    {},
                    {
                      indeterminate: G,
                      checked: Ce,
                      skipGroup: !0,
                      onClick: le => le.stopPropagation(),
                      onChange: le => {
                        let { nativeEvent: $e } = le
                        const { shiftKey: Te } = $e
                        let De = -1,
                          ae = -1
                        if (Te && W) {
                          const ce = new Set([C.value, be])
                          ie.some((pe, Se) => {
                            if (ce.has(pe))
                              if (De === -1) De = Se
                              else return (ae = Se), !0
                            return !1
                          })
                        }
                        if (ae !== -1 && De !== ae && W) {
                          const ce = ie.slice(De, ae + 1),
                            pe = []
                          Ce
                            ? ce.forEach(Ie => {
                                de.has(Ie) && (pe.push(Ie), de.delete(Ie))
                              })
                            : ce.forEach(Ie => {
                                de.has(Ie) || (pe.push(Ie), de.add(Ie))
                              })
                          const Se = Array.from(de)
                          z == null ||
                            z(
                              !Ce,
                              Se.map(Ie => F(Ie)),
                              pe.map(Ie => F(Ie))
                            ),
                            O(Se)
                        } else {
                          const ce = g.value
                          if (W) {
                            const pe = Ce ? dn(ce, be) : $n(ce, be)
                            x(be, !Ce, pe, $e)
                          } else {
                            const pe = qo(
                                [...ce, be],
                                !0,
                                a.value,
                                c.value,
                                d.value,
                                f
                              ),
                              { checkedKeys: Se, halfCheckedKeys: Ie } = pe
                            let Ee = Se
                            if (Ce) {
                              const we = new Set(Se)
                              we.delete(be),
                                (Ee = qo(
                                  Array.from(we),
                                  { checked: !1, halfCheckedKeys: Ie },
                                  a.value,
                                  c.value,
                                  d.value,
                                  f
                                ).checkedKeys)
                            }
                            x(be, !Ce, Ee, $e)
                          }
                        }
                        $(be)
                      }
                    }
                  ),
                  null
                ),
                checked: Ce
              }
            )
          })
      const ue = te => {
        let { record: Z, index: fe } = te
        const { node: xe, checked: be } = U({ record: Z, index: fe })
        return R ? R(be, Z, fe, xe) : xe
      }
      if (!ee.includes(wn))
        if (
          ee.findIndex(te => {
            var Z
            return (
              ((Z = te[Jo]) === null || Z === void 0
                ? void 0
                : Z.columnType) === 'EXPAND_COLUMN'
            )
          }) === 0
        ) {
          const [te, ...Z] = ee
          ee = [te, wn, ...Z]
        } else ee = [wn, ...ee]
      const me = ee.indexOf(wn)
      ee = ee.filter((te, Z) => te !== wn || Z === me)
      const he = ee[me - 1],
        Pe = ee[me + 1]
      let ve = E
      ve === void 0 &&
        ((Pe == null ? void 0 : Pe.fixed) !== void 0
          ? (ve = Pe.fixed)
          : (he == null ? void 0 : he.fixed) !== void 0 && (ve = he.fixed)),
        ve &&
          he &&
          ((_ = he[Jo]) === null || _ === void 0 ? void 0 : _.columnType) ===
            'EXPAND_COLUMN' &&
          he.fixed === void 0 &&
          (he.fixed = ve)
      const ye = {
        fixed: ve,
        width: M,
        className: `${D.value}-selection-column`,
        title: n.value.columnTitle || K,
        customRender: ue,
        [Jo]: { class: `${D.value}-selection-col` }
      }
      return ee.map(te => (te === wn ? ye : te))
    },
    b
  ]
}
function Pv(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) {
        vL(e, r, n[r])
      })
  }
  return e
}
function vL(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 = Pv({}, t, n.attrs)
  return v(et, Pv({}, o, { icon: nS }), null)
}
Uu.displayName = 'CaretDownOutlined'
Uu.inheritAttrs = !1
const mL = Uu
function Tv(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) {
        gL(e, r, n[r])
      })
  }
  return e
}
function gL(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Xu = function(t, n) {
  var o = Tv({}, t, n.attrs)
  return v(et, Tv({}, o, { icon: oS }), null)
}
Xu.displayName = 'CaretUpOutlined'
Xu.inheritAttrs = !1
const hL = Xu
var bL =
  (globalThis && globalThis.__rest) ||
  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 Co(e, t) {
  return 'key' in e && e.key !== void 0 && e.key !== null
    ? e.key
    : e.dataIndex
    ? Array.isArray(e.dataIndex)
      ? e.dataIndex.join('.')
      : e.dataIndex
    : t
}
function ii(e, t) {
  return t ? `${t}-${e}` : `${e}`
}
function qu(e, t) {
  return typeof e == 'function' ? e(t) : e
}
function Ny() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
  const t = yt(e),
    n = []
  return (
    t.forEach(o => {
      var r, i, l, a
      if (!o) return
      const s = o.key,
        u = ((r = o.props) === null || r === void 0 ? void 0 : r.style) || {},
        c = ((i = o.props) === null || i === void 0 ? void 0 : i.class) || '',
        d = o.props || {}
      for (const [b, S] of Object.entries(d)) d[cr(b)] = S
      const f = o.children || {},
        { default: m } = f,
        g = bL(f, ['default']),
        h = p(p(p({}, g), d), { style: u, class: c })
      if (
        (s && (h.key = s),
        !((l = o.type) === null || l === void 0) && l.__ANT_TABLE_COLUMN_GROUP)
      )
        h.children = Ny(typeof m == 'function' ? m() : m)
      else {
        const b = (a = o.children) === null || a === void 0 ? void 0 : a.default
        h.customRender = h.customRender || b
      }
      n.push(h)
    }),
    n
  )
}
const ki = 'ascend',
  Fa = 'descend'
function ul(e) {
  return typeof e.sorter == 'object' && typeof e.sorter.multiple == 'number'
    ? e.sorter.multiple
    : !1
}
function Iv(e) {
  return typeof e == 'function'
    ? e
    : e && typeof e == 'object' && e.compare
    ? e.compare
    : !1
}
function yL(e, t) {
  return t ? e[e.indexOf(t) + 1] : e[0]
}
function Qs(e, t, n) {
  let o = []
  function r(i, l) {
    o.push({
      column: i,
      key: Co(i, l),
      multiplePriority: ul(i),
      sortOrder: i.sortOrder
    })
  }
  return (
    (e || []).forEach((i, l) => {
      const a = ii(l, n)
      i.children
        ? ('sortOrder' in i && r(i, a), (o = [...o, ...Qs(i.children, t, a)]))
        : i.sorter &&
          ('sortOrder' in i
            ? r(i, a)
            : t &&
              i.defaultSortOrder &&
              o.push({
                column: i,
                key: Co(i, a),
                multiplePriority: ul(i),
                sortOrder: i.defaultSortOrder
              }))
    }),
    o
  )
}
function By(e, t, n, o, r, i, l, a) {
  return (t || []).map((s, u) => {
    const c = ii(u, a)
    let d = s
    if (d.sorter) {
      const f = d.sortDirections || r,
        m = d.showSorterTooltip === void 0 ? l : d.showSorterTooltip,
        g = Co(d, c),
        h = n.find(I => {
          let { key: _ } = I
          return _ === g
        }),
        b = h ? h.sortOrder : null,
        S = yL(f, b),
        C =
          f.includes(ki) &&
          v(
            hL,
            {
              class: oe(`${e}-column-sorter-up`, { active: b === ki }),
              role: 'presentation'
            },
            null
          ),
        $ =
          f.includes(Fa) &&
          v(
            mL,
            {
              role: 'presentation',
              class: oe(`${e}-column-sorter-down`, { active: b === Fa })
            },
            null
          ),
        { cancelSort: O, triggerAsc: x, triggerDesc: w } = i || {}
      let y = O
      S === Fa ? (y = w) : S === ki && (y = x)
      const T = typeof m == 'object' ? m : { title: y }
      d = p(p({}, d), {
        className: oe(d.className, { [`${e}-column-sort`]: b }),
        title: I => {
          const _ = v('div', { class: `${e}-column-sorters` }, [
            v('span', { class: `${e}-column-title` }, [qu(s.title, I)]),
            v(
              'span',
              {
                class: oe(`${e}-column-sorter`, {
                  [`${e}-column-sorter-full`]: !!(C && $)
                })
              },
              [v('span', { class: `${e}-column-sorter-inner` }, [C, $])]
            )
          ])
          return m ? v(Vo, T, { default: () => [_] }) : _
        },
        customHeaderCell: I => {
          const _ = (s.customHeaderCell && s.customHeaderCell(I)) || {},
            A = _.onClick,
            z = _.onKeydown
          return (
            (_.onClick = M => {
              o({ column: s, key: g, sortOrder: S, multiplePriority: ul(s) }),
                A && A(M)
            }),
            (_.onKeydown = M => {
              M.keyCode === Oe.ENTER &&
                (o({
                  column: s,
                  key: g,
                  sortOrder: S,
                  multiplePriority: ul(s)
                }),
                z == null || z(M))
            }),
            b && (_['aria-sort'] = b === 'ascend' ? 'ascending' : 'descending'),
            (_.class = oe(_.class, `${e}-column-has-sorters`)),
            (_.tabindex = 0),
            _
          )
        }
      })
    }
    return (
      'children' in d &&
        (d = p(p({}, d), { children: By(e, d.children, n, o, r, i, l, c) })),
      d
    )
  })
}
function Ev(e) {
  const { column: t, sortOrder: n } = e
  return { column: t, order: n, field: t.dataIndex, columnKey: t.key }
}
function _v(e) {
  const t = e
    .filter(n => {
      let { sortOrder: o } = n
      return o
    })
    .map(Ev)
  return t.length === 0 && e.length
    ? p(p({}, Ev(e[e.length - 1])), { column: void 0 })
    : t.length <= 1
    ? t[0] || {}
    : t
}
function Zs(e, t, n) {
  const o = t.slice().sort((l, a) => a.multiplePriority - l.multiplePriority),
    r = e.slice(),
    i = o.filter(l => {
      let {
        column: { sorter: a },
        sortOrder: s
      } = l
      return Iv(a) && s
    })
  return i.length
    ? r
        .sort((l, a) => {
          for (let s = 0; s < i.length; s += 1) {
            const u = i[s],
              {
                column: { sorter: c },
                sortOrder: d
              } = u,
              f = Iv(c)
            if (f && d) {
              const m = f(l, a, d)
              if (m !== 0) return d === ki ? m : -m
            }
          }
          return 0
        })
        .map(l => {
          const a = l[n]
          return a ? p(p({}, l), { [n]: Zs(a, t, n) }) : l
        })
    : r
}
function SL(e) {
  let {
    prefixCls: t,
    mergedColumns: n,
    onSorterChange: o,
    sortDirections: r,
    tableLocale: i,
    showSorterTooltip: l
  } = e
  const [a, s] = tt(Qs(n.value, !0)),
    u = P(() => {
      let g = !0
      const h = Qs(n.value, !1)
      if (!h.length) return a.value
      const b = []
      function S($) {
        g ? b.push($) : b.push(p(p({}, $), { sortOrder: null }))
      }
      let C = null
      return (
        h.forEach($ => {
          C === null
            ? (S($),
              $.sortOrder && ($.multiplePriority === !1 ? (g = !1) : (C = !0)))
            : ((C && $.multiplePriority !== !1) || (g = !1), S($))
        }),
        b
      )
    }),
    c = P(() => {
      const g = u.value.map(h => {
        let { column: b, sortOrder: S } = h
        return { column: b, order: S }
      })
      return {
        sortColumns: g,
        sortColumn: g[0] && g[0].column,
        sortOrder: g[0] && g[0].order
      }
    })
  function d(g) {
    let h
    g.multiplePriority === !1 ||
    !u.value.length ||
    u.value[0].multiplePriority === !1
      ? (h = [g])
      : (h = [
          ...u.value.filter(b => {
            let { key: S } = b
            return S !== g.key
          }),
          g
        ]),
      s(h),
      o(_v(h), h)
  }
  const f = g => By(t.value, g, u.value, d, r.value, i.value, l.value),
    m = P(() => _v(u.value))
  return [f, u, c, m]
}
function Rv(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) {
        xL(e, r, n[r])
      })
  }
  return e
}
function xL(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 = Rv({}, t, n.attrs)
  return v(et, Rv({}, o, { icon: rS }), null)
}
Yu.displayName = 'FilterFilled'
Yu.inheritAttrs = !1
const CL = Yu,
  $L = e => {
    const { keyCode: t } = e
    t === Oe.ENTER && e.stopPropagation()
  },
  wL = (e, t) => {
    let { slots: n } = t
    var o
    return v('div', { onClick: r => r.stopPropagation(), onKeydown: $L }, [
      (o = n.default) === null || o === void 0 ? void 0 : o.call(n)
    ])
  },
  OL = wL,
  Av = J({
    compatConfig: { MODE: 3 },
    name: 'FilterSearch',
    inheritAttrs: !1,
    props: {
      value: at(),
      onChange: _e(),
      filterSearch: Pt([Boolean, Function]),
      tablePrefixCls: at(),
      locale: Xe()
    },
    setup(e) {
      return () => {
        const {
          value: t,
          onChange: n,
          filterSearch: o,
          tablePrefixCls: r,
          locale: i
        } = e
        return o
          ? v('div', { class: `${r}-filter-dropdown-search` }, [
              v(
                Ct,
                {
                  placeholder: i.filterSearchPlaceholder,
                  onChange: n,
                  value: t,
                  htmlSize: 1,
                  class: `${r}-filter-dropdown-search-input`
                },
                { prefix: () => v(Zc, null, null) }
              )
            ])
          : null
      }
    }
  })
var Dv =
  (globalThis && globalThis.__rest) ||
  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 PL = J({
  compatConfig: { MODE: 3 },
  name: 'MotionTreeNode',
  inheritAttrs: !1,
  props: p(p({}, Db), {
    active: Boolean,
    motion: Object,
    motionNodes: { type: Array },
    onMotionStart: Function,
    onMotionEnd: Function,
    motionType: String
  }),
  setup(e, t) {
    let { attrs: n, slots: o } = t
    const r = V(!0),
      i = Du(),
      l = V(!1),
      a = P(() => (e.motion ? e.motion : pb())),
      s = (u, c) => {
        var d, f, m, g
        c === 'appear'
          ? (f =
              (d = a.value) === null || d === void 0
                ? void 0
                : d.onAfterEnter) === null ||
            f === void 0 ||
            f.call(d, u)
          : c === 'leave' &&
            ((g =
              (m = a.value) === null || m === void 0
                ? void 0
                : m.onAfterLeave) === null ||
              g === void 0 ||
              g.call(m, u)),
          l.value || e.onMotionEnd(),
          (l.value = !0)
      }
    return (
      ge(
        () => e.motionNodes,
        () => {
          e.motionNodes &&
            e.motionType === 'hide' &&
            r.value &&
            it(() => {
              r.value = !1
            })
        },
        { immediate: !0, flush: 'post' }
      ),
      We(() => {
        e.motionNodes && e.onMotionStart()
      }),
      Qe(() => {
        e.motionNodes && s()
      }),
      () => {
        const {
            motion: u,
            motionNodes: c,
            motionType: d,
            active: f,
            eventKey: m
          } = e,
          g = Dv(e, [
            'motion',
            'motionNodes',
            'motionType',
            'active',
            'eventKey'
          ])
        return c
          ? v(
              Oo,
              N(
                N({}, a.value),
                {},
                {
                  appear: d === 'show',
                  onAfterAppear: h => s(h, 'appear'),
                  onAfterLeave: h => s(h, 'leave')
                }
              ),
              {
                default: () => [
                  vl(
                    v(
                      'div',
                      { class: `${i.value.prefixCls}-treenode-motion` },
                      [
                        c.map(h => {
                          const b = Dv(h.data, []),
                            { title: S, key: C, isStart: $, isEnd: O } = h
                          return (
                            delete b.children,
                            v(
                              Ms,
                              N(
                                N({}, b),
                                {},
                                {
                                  title: S,
                                  active: f,
                                  data: h.data,
                                  key: C,
                                  eventKey: C,
                                  isStart: $,
                                  isEnd: O
                                }
                              ),
                              o
                            )
                          )
                        })
                      ]
                    ),
                    [[fc, r.value]]
                  )
                ]
              }
            )
          : v(
              Ms,
              N(
                N({ class: n.class, style: n.style }, g),
                {},
                { active: f, eventKey: m }
              ),
              o
            )
      }
    )
  }
})
function TL() {
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
    t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []
  const n = e.length,
    o = t.length
  if (Math.abs(n - o) !== 1) return { add: !1, key: null }
  function r(i, l) {
    const a = new Map()
    i.forEach(u => {
      a.set(u, !0)
    })
    const s = l.filter(u => !a.has(u))
    return s.length === 1 ? s[0] : null
  }
  return n < o ? { add: !0, key: r(e, t) } : { add: !1, key: r(t, e) }
}
function Mv(e, t, n) {
  const o = e.findIndex(l => l.key === n),
    r = e[o + 1],
    i = t.findIndex(l => l.key === n)
  if (r) {
    const l = t.findIndex(a => a.key === r.key)
    return t.slice(i + 1, l)
  }
  return t.slice(i + 1)
}
var Nv =
  (globalThis && globalThis.__rest) ||
  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 Bv = {
    width: 0,
    height: 0,
    display: 'flex',
    overflow: 'hidden',
    opacity: 0,
    border: 0,
    padding: 0,
    margin: 0
  },
  IL = () => {},
  $o = `RC_TREE_MOTION_${Math.random()}`,
  ec = { key: $o },
  zy = { key: $o, level: 0, index: 0, pos: '0', node: ec, nodes: [ec] },
  zv = {
    parent: null,
    children: [],
    pos: zy.pos,
    data: ec,
    title: null,
    key: $o,
    isStart: [],
    isEnd: []
  }
function Lv(e, t, n, o) {
  return t === !1 || !n ? e : e.slice(0, Math.ceil(n / o) + 1)
}
function Fv(e) {
  const { key: t, pos: n } = e
  return ri(t, n)
}
function EL(e) {
  let t = String(e.key),
    n = e
  for (; n.parent; ) (n = n.parent), (t = `${n.key} > ${t}`)
  return t
}
const _L = J({
  compatConfig: { MODE: 3 },
  name: 'NodeList',
  inheritAttrs: !1,
  props: wM,
  setup(e, t) {
    let { expose: n, attrs: o } = t
    const r = ne(),
      i = ne(),
      { expandedKeys: l, flattenNodes: a } = Ab()
    n({
      scrollTo: h => {
        r.value.scrollTo(h)
      },
      getIndentWidth: () => i.value.offsetWidth
    })
    const s = V(a.value),
      u = V([]),
      c = ne(null)
    function d() {
      ;(s.value = a.value),
        (u.value = []),
        (c.value = null),
        e.onListChangeEnd()
    }
    const f = Du()
    ge([() => l.value.slice(), a], (h, b) => {
      let [S, C] = h,
        [$, O] = b
      const x = TL($, S)
      if (x.key !== null) {
        const { virtual: w, height: y, itemHeight: T } = e
        if (x.add) {
          const I = O.findIndex(z => {
              let { key: M } = z
              return M === x.key
            }),
            _ = Lv(Mv(O, C, x.key), w, y, T),
            A = O.slice()
          A.splice(I + 1, 0, zv),
            (s.value = A),
            (u.value = _),
            (c.value = 'show')
        } else {
          const I = C.findIndex(z => {
              let { key: M } = z
              return M === x.key
            }),
            _ = Lv(Mv(C, O, x.key), w, y, T),
            A = C.slice()
          A.splice(I + 1, 0, zv),
            (s.value = A),
            (u.value = _),
            (c.value = 'hide')
        }
      } else O !== C && (s.value = C)
    }),
      ge(
        () => f.value.dragging,
        h => {
          h || d()
        }
      )
    const m = P(() => (e.motion === void 0 ? s.value : a.value)),
      g = () => {
        e.onActiveChange(null)
      }
    return () => {
      const h = p(p({}, e), o),
        {
          prefixCls: b,
          selectable: S,
          checkable: C,
          disabled: $,
          motion: O,
          height: x,
          itemHeight: w,
          virtual: y,
          focusable: T,
          activeItem: I,
          focused: _,
          tabindex: A,
          onKeydown: z,
          onFocus: M,
          onBlur: j,
          onListChangeStart: E,
          onListChangeEnd: R
        } = h,
        L = Nv(h, [
          'prefixCls',
          'selectable',
          'checkable',
          'disabled',
          'motion',
          'height',
          'itemHeight',
          'virtual',
          'focusable',
          'activeItem',
          'focused',
          'tabindex',
          'onKeydown',
          'onFocus',
          'onBlur',
          'onListChangeStart',
          'onListChangeEnd'
        ])
      return v(nt, null, [
        _ && I && v('span', { style: Bv, 'aria-live': 'assertive' }, [EL(I)]),
        v('div', null, [
          v(
            'input',
            {
              style: Bv,
              disabled: T === !1 || $,
              tabindex: T !== !1 ? A : null,
              onKeydown: z,
              onFocus: M,
              onBlur: j,
              value: '',
              onChange: IL,
              'aria-label': 'for screen reader'
            },
            null
          )
        ]),
        v(
          'div',
          {
            class: `${b}-treenode`,
            'aria-hidden': !0,
            style: {
              position: 'absolute',
              pointerEvents: 'none',
              visibility: 'hidden',
              height: 0,
              overflow: 'hidden'
            }
          },
          [
            v('div', { class: `${b}-indent` }, [
              v('div', { ref: i, class: `${b}-indent-unit` }, null)
            ])
          ]
        ),
        v(
          ph,
          N(
            N({}, rt(L, ['onActiveChange'])),
            {},
            {
              data: m.value,
              itemKey: Fv,
              height: x,
              fullHeight: !1,
              virtual: y,
              itemHeight: w,
              prefixCls: `${b}-list`,
              ref: r,
              onVisibleChange: (W, D) => {
                const F = new Set(W)
                D.filter(B => !F.has(B)).some(B => Fv(B) === $o) && d()
              }
            }
          ),
          {
            default: W => {
              const { pos: D } = W,
                F = Nv(W.data, []),
                { title: H, key: B, isStart: X, isEnd: ee } = W,
                de = ri(B, D)
              return (
                delete F.key,
                delete F.children,
                v(
                  PL,
                  N(
                    N({}, F),
                    {},
                    {
                      eventKey: de,
                      title: H,
                      active: !!I && B === I.key,
                      data: W.data,
                      isStart: X,
                      isEnd: ee,
                      motion: O,
                      motionNodes: B === $o ? u.value : null,
                      motionType: c.value,
                      onMotionStart: E,
                      onMotionEnd: d,
                      onMousemove: g
                    }
                  ),
                  null
                )
              )
            }
          }
        )
      ])
    }
  }
})
function RL(e) {
  let { dropPosition: t, dropLevelOffset: n, indent: o } = e
  const r = {
    pointerEvents: 'none',
    position: 'absolute',
    right: 0,
    backgroundColor: 'red',
    height: '2px'
  }
  switch (t) {
    case -1:
      ;(r.top = 0), (r.left = `${-n * o}px`)
      break
    case 1:
      ;(r.bottom = 0), (r.left = `${-n * o}px`)
      break
    case 0:
      ;(r.bottom = 0), (r.left = `${o}`)
      break
  }
  return v('div', { style: r }, null)
}
const AL = 10,
  DL = J({
    compatConfig: { MODE: 3 },
    name: 'Tree',
    inheritAttrs: !1,
    props: mt(Mb(), {
      prefixCls: 'vc-tree',
      showLine: !1,
      showIcon: !0,
      selectable: !0,
      multiple: !1,
      checkable: !1,
      disabled: !1,
      checkStrictly: !1,
      draggable: !1,
      expandAction: !1,
      defaultExpandParent: !0,
      autoExpandParent: !1,
      defaultExpandAll: !1,
      defaultExpandedKeys: [],
      defaultCheckedKeys: [],
      defaultSelectedKeys: [],
      dropIndicatorRender: RL,
      allowDrop: () => !0
    }),
    setup(e, t) {
      let { attrs: n, slots: o, expose: r } = t
      const i = V(!1)
      let l = {}
      const a = V(),
        s = V([]),
        u = V([]),
        c = V([]),
        d = V([]),
        f = V([]),
        m = V([]),
        g = {},
        h = dt({
          draggingNodeKey: null,
          dragChildrenKeys: [],
          dropTargetKey: null,
          dropPosition: null,
          dropContainerKey: null,
          dropLevelOffset: null,
          dropTargetPos: null,
          dropAllowed: !0,
          dragOverNodeKey: null
        }),
        b = V([])
      ge(
        [() => e.treeData, () => e.children],
        () => {
          b.value =
            e.treeData !== void 0 ? e.treeData.slice() : Bs(vn(e.children))
        },
        { immediate: !0, deep: !0 }
      )
      const S = V({}),
        C = V(!1),
        $ = V(null),
        O = V(!1),
        x = P(() => Kl(e.fieldNames)),
        w = V()
      let y = null,
        T = null,
        I = null
      const _ = P(() => ({
          expandedKeysSet: A.value,
          selectedKeysSet: z.value,
          loadedKeysSet: M.value,
          loadingKeysSet: j.value,
          checkedKeysSet: E.value,
          halfCheckedKeysSet: R.value,
          dragOverNodeKey: h.dragOverNodeKey,
          dropPosition: h.dropPosition,
          keyEntities: S.value
        })),
        A = P(() => new Set(m.value)),
        z = P(() => new Set(s.value)),
        M = P(() => new Set(d.value)),
        j = P(() => new Set(f.value)),
        E = P(() => new Set(u.value)),
        R = P(() => new Set(c.value))
      Me(() => {
        if (b.value) {
          const ae = Nu(b.value, { fieldNames: x.value })
          S.value = p({ [$o]: zy }, ae.keyEntities)
        }
      })
      let L = !1
      ge(
        [() => e.expandedKeys, () => e.autoExpandParent, S],
        (ae, ce) => {
          let [pe, Se] = ae,
            [Ie, Ee] = ce,
            we = m.value
          if (e.expandedKeys !== void 0 || (L && Se !== Ee))
            we =
              e.autoExpandParent || (!L && e.defaultExpandParent)
                ? Ns(e.expandedKeys, S.value)
                : e.expandedKeys
          else if (!L && e.defaultExpandAll) {
            const ke = p({}, S.value)
            delete ke[$o], (we = Object.keys(ke).map(qe => ke[qe].key))
          } else
            !L &&
              e.defaultExpandedKeys &&
              (we =
                e.autoExpandParent || e.defaultExpandParent
                  ? Ns(e.defaultExpandedKeys, S.value)
                  : e.defaultExpandedKeys)
          we && (m.value = we), (L = !0)
        },
        { immediate: !0 }
      )
      const W = V([])
      Me(() => {
        W.value = AM(b.value, m.value, x.value)
      }),
        Me(() => {
          e.selectable &&
            (e.selectedKeys !== void 0
              ? (s.value = Zp(e.selectedKeys, e))
              : !L &&
                e.defaultSelectedKeys &&
                (s.value = Zp(e.defaultSelectedKeys, e)))
        })
      const { maxLevel: D, levelEntities: F } = zb(S)
      Me(() => {
        if (e.checkable) {
          let ae
          if (
            (e.checkedKeys !== void 0
              ? (ae = Da(e.checkedKeys) || {})
              : !L && e.defaultCheckedKeys
              ? (ae = Da(e.defaultCheckedKeys) || {})
              : b.value &&
                (ae = Da(e.checkedKeys) || {
                  checkedKeys: u.value,
                  halfCheckedKeys: c.value
                }),
            ae)
          ) {
            let { checkedKeys: ce = [], halfCheckedKeys: pe = [] } = ae
            e.checkStrictly ||
              ({ checkedKeys: ce, halfCheckedKeys: pe } = qo(
                ce,
                !0,
                S.value,
                D.value,
                F.value
              )),
              (u.value = ce),
              (c.value = pe)
          }
        }
      }),
        Me(() => {
          e.loadedKeys && (d.value = e.loadedKeys)
        })
      const H = () => {
          p(h, {
            dragOverNodeKey: null,
            dropPosition: null,
            dropLevelOffset: null,
            dropTargetKey: null,
            dropContainerKey: null,
            dropTargetPos: null,
            dropAllowed: !1
          })
        },
        B = ae => {
          w.value.scrollTo(ae)
        }
      ge(
        () => e.activeKey,
        () => {
          e.activeKey !== void 0 && ($.value = e.activeKey)
        },
        { immediate: !0 }
      ),
        ge(
          $,
          ae => {
            it(() => {
              ae !== null && B({ key: ae })
            })
          },
          { immediate: !0, flush: 'post' }
        )
      const X = ae => {
          e.expandedKeys === void 0 && (m.value = ae)
        },
        ee = () => {
          h.draggingNodeKey !== null &&
            p(h, {
              draggingNodeKey: null,
              dropPosition: null,
              dropContainerKey: null,
              dropTargetKey: null,
              dropLevelOffset: null,
              dropAllowed: !0,
              dragOverNodeKey: null
            }),
            (y = null),
            (I = null)
        },
        de = (ae, ce) => {
          const { onDragend: pe } = e
          ;(h.dragOverNodeKey = null),
            ee(),
            pe == null || pe({ event: ae, node: ce.eventData }),
            (T = null)
        },
        ie = ae => {
          de(ae, null), window.removeEventListener('dragend', ie)
        },
        Q = (ae, ce) => {
          const { onDragstart: pe } = e,
            { eventKey: Se, eventData: Ie } = ce
          ;(T = ce), (y = { x: ae.clientX, y: ae.clientY })
          const Ee = dn(m.value, Se)
          ;(h.draggingNodeKey = Se),
            (h.dragChildrenKeys = IM(Se, S.value)),
            (a.value = w.value.getIndentWidth()),
            X(Ee),
            window.addEventListener('dragend', ie),
            pe && pe({ event: ae, node: Ie })
        },
        se = (ae, ce) => {
          const {
              onDragenter: pe,
              onExpand: Se,
              allowDrop: Ie,
              direction: Ee
            } = e,
            { pos: we, eventKey: ke } = ce
          if ((I !== ke && (I = ke), !T)) {
            H()
            return
          }
          const {
            dropPosition: qe,
            dropLevelOffset: Be,
            dropTargetKey: Ge,
            dropContainerKey: Je,
            dropTargetPos: xt,
            dropAllowed: Ot,
            dragOverNodeKey: It
          } = Qp(ae, T, ce, a.value, y, Ie, W.value, S.value, A.value, Ee)
          if (h.dragChildrenKeys.indexOf(Ge) !== -1 || !Ot) {
            H()
            return
          }
          if (
            (l || (l = {}),
            Object.keys(l).forEach(gt => {
              clearTimeout(l[gt])
            }),
            T.eventKey !== ce.eventKey &&
              (l[we] = window.setTimeout(() => {
                if (h.draggingNodeKey === null) return
                let gt = m.value.slice()
                const Nt = S.value[ce.eventKey]
                Nt &&
                  (Nt.children || []).length &&
                  (gt = $n(m.value, ce.eventKey)),
                  X(gt),
                  Se &&
                    Se(gt, {
                      node: ce.eventData,
                      expanded: !0,
                      nativeEvent: ae
                    })
              }, 800)),
            T.eventKey === Ge && Be === 0)
          ) {
            H()
            return
          }
          p(h, {
            dragOverNodeKey: It,
            dropPosition: qe,
            dropLevelOffset: Be,
            dropTargetKey: Ge,
            dropContainerKey: Je,
            dropTargetPos: xt,
            dropAllowed: Ot
          }),
            pe && pe({ event: ae, node: ce.eventData, expandedKeys: m.value })
        },
        q = (ae, ce) => {
          const { onDragover: pe, allowDrop: Se, direction: Ie } = e
          if (!T) return
          const {
            dropPosition: Ee,
            dropLevelOffset: we,
            dropTargetKey: ke,
            dropContainerKey: qe,
            dropAllowed: Be,
            dropTargetPos: Ge,
            dragOverNodeKey: Je
          } = Qp(ae, T, ce, a.value, y, Se, W.value, S.value, A.value, Ie)
          h.dragChildrenKeys.indexOf(ke) !== -1 ||
            !Be ||
            (T.eventKey === ke && we === 0
              ? (h.dropPosition === null &&
                  h.dropLevelOffset === null &&
                  h.dropTargetKey === null &&
                  h.dropContainerKey === null &&
                  h.dropTargetPos === null &&
                  h.dropAllowed === !1 &&
                  h.dragOverNodeKey === null) ||
                H()
              : (Ee === h.dropPosition &&
                  we === h.dropLevelOffset &&
                  ke === h.dropTargetKey &&
                  qe === h.dropContainerKey &&
                  Ge === h.dropTargetPos &&
                  Be === h.dropAllowed &&
                  Je === h.dragOverNodeKey) ||
                p(h, {
                  dropPosition: Ee,
                  dropLevelOffset: we,
                  dropTargetKey: ke,
                  dropContainerKey: qe,
                  dropTargetPos: Ge,
                  dropAllowed: Be,
                  dragOverNodeKey: Je
                }),
            pe && pe({ event: ae, node: ce.eventData }))
        },
        K = (ae, ce) => {
          I === ce.eventKey &&
            !ae.currentTarget.contains(ae.relatedTarget) &&
            (H(), (I = null))
          const { onDragleave: pe } = e
          pe && pe({ event: ae, node: ce.eventData })
        },
        U = function(ae, ce) {
          let pe =
            arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
          var Se
          const {
            dragChildrenKeys: Ie,
            dropPosition: Ee,
            dropTargetKey: we,
            dropTargetPos: ke,
            dropAllowed: qe
          } = h
          if (!qe) return
          const { onDrop: Be } = e
          if (((h.dragOverNodeKey = null), ee(), we === null)) return
          const Ge = p(p({}, Ni(we, vn(_.value))), {
            active:
              ((Se = le.value) === null || Se === void 0 ? void 0 : Se.key) ===
              we,
            data: S.value[we].node
          })
          Ie.indexOf(we)
          const Je = Mu(ke),
            xt = {
              event: ae,
              node: Bi(Ge),
              dragNode: T ? T.eventData : null,
              dragNodesKeys: [T.eventKey].concat(Ie),
              dropToGap: Ee !== 0,
              dropPosition: Ee + Number(Je[Je.length - 1])
            }
          pe || Be == null || Be(xt), (T = null)
        },
        ue = (ae, ce) => {
          const { expanded: pe, key: Se } = ce,
            Ie = W.value.filter(we => we.key === Se)[0],
            Ee = Bi(p(p({}, Ni(Se, _.value)), { data: Ie.data }))
          X(pe ? dn(m.value, Se) : $n(m.value, Se)), Ce(ae, Ee)
        },
        me = (ae, ce) => {
          const { onClick: pe, expandAction: Se } = e
          Se === 'click' && ue(ae, ce), pe && pe(ae, ce)
        },
        he = (ae, ce) => {
          const { onDblclick: pe, expandAction: Se } = e
          ;(Se === 'doubleclick' || Se === 'dblclick') && ue(ae, ce),
            pe && pe(ae, ce)
        },
        Pe = (ae, ce) => {
          let pe = s.value
          const { onSelect: Se, multiple: Ie } = e,
            { selected: Ee } = ce,
            we = ce[x.value.key],
            ke = !Ee
          ke ? (Ie ? (pe = $n(pe, we)) : (pe = [we])) : (pe = dn(pe, we))
          const qe = S.value,
            Be = pe
              .map(Ge => {
                const Je = qe[Ge]
                return Je ? Je.node : null
              })
              .filter(Ge => Ge)
          e.selectedKeys === void 0 && (s.value = pe),
            Se &&
              Se(pe, {
                event: 'select',
                selected: ke,
                node: ce,
                selectedNodes: Be,
                nativeEvent: ae
              })
        },
        ve = (ae, ce, pe) => {
          const { checkStrictly: Se, onCheck: Ie } = e,
            Ee = ce[x.value.key]
          let we
          const ke = { event: 'check', node: ce, checked: pe, nativeEvent: ae },
            qe = S.value
          if (Se) {
            const Be = pe ? $n(u.value, Ee) : dn(u.value, Ee),
              Ge = dn(c.value, Ee)
            ;(we = { checked: Be, halfChecked: Ge }),
              (ke.checkedNodes = Be.map(Je => qe[Je])
                .filter(Je => Je)
                .map(Je => Je.node)),
              e.checkedKeys === void 0 && (u.value = Be)
          } else {
            let { checkedKeys: Be, halfCheckedKeys: Ge } = qo(
              [...u.value, Ee],
              !0,
              qe,
              D.value,
              F.value
            )
            if (!pe) {
              const Je = new Set(Be)
              Je.delete(Ee),
                ({ checkedKeys: Be, halfCheckedKeys: Ge } = qo(
                  Array.from(Je),
                  { checked: !1, halfCheckedKeys: Ge },
                  qe,
                  D.value,
                  F.value
                ))
            }
            ;(we = Be),
              (ke.checkedNodes = []),
              (ke.checkedNodesPositions = []),
              (ke.halfCheckedKeys = Ge),
              Be.forEach(Je => {
                const xt = qe[Je]
                if (!xt) return
                const { node: Ot, pos: It } = xt
                ke.checkedNodes.push(Ot),
                  ke.checkedNodesPositions.push({ node: Ot, pos: It })
              }),
              e.checkedKeys === void 0 && ((u.value = Be), (c.value = Ge))
          }
          Ie && Ie(we, ke)
        },
        ye = ae => {
          const ce = ae[x.value.key],
            pe = new Promise((Se, Ie) => {
              const { loadData: Ee, onLoad: we } = e
              if (!Ee || M.value.has(ce) || j.value.has(ce)) return null
              Ee(ae)
                .then(() => {
                  const qe = $n(d.value, ce),
                    Be = dn(f.value, ce)
                  we && we(qe, { event: 'load', node: ae }),
                    e.loadedKeys === void 0 && (d.value = qe),
                    (f.value = Be),
                    Se()
                })
                .catch(qe => {
                  const Be = dn(f.value, ce)
                  if (
                    ((f.value = Be), (g[ce] = (g[ce] || 0) + 1), g[ce] >= AL)
                  ) {
                    const Ge = $n(d.value, ce)
                    e.loadedKeys === void 0 && (d.value = Ge), Se()
                  }
                  Ie(qe)
                }),
                (f.value = $n(f.value, ce))
            })
          return pe.catch(() => {}), pe
        },
        te = (ae, ce) => {
          const { onMouseenter: pe } = e
          pe && pe({ event: ae, node: ce })
        },
        Z = (ae, ce) => {
          const { onMouseleave: pe } = e
          pe && pe({ event: ae, node: ce })
        },
        fe = (ae, ce) => {
          const { onRightClick: pe } = e
          pe && (ae.preventDefault(), pe({ event: ae, node: ce }))
        },
        xe = ae => {
          const { onFocus: ce } = e
          ;(C.value = !0), ce && ce(ae)
        },
        be = ae => {
          const { onBlur: ce } = e
          ;(C.value = !1), G(null), ce && ce(ae)
        },
        Ce = (ae, ce) => {
          let pe = m.value
          const { onExpand: Se, loadData: Ie } = e,
            { expanded: Ee } = ce,
            we = ce[x.value.key]
          if (O.value) return
          pe.indexOf(we)
          const ke = !Ee
          if (
            (ke ? (pe = $n(pe, we)) : (pe = dn(pe, we)),
            X(pe),
            Se && Se(pe, { node: ce, expanded: ke, nativeEvent: ae }),
            ke && Ie)
          ) {
            const qe = ye(ce)
            qe &&
              qe
                .then(() => {})
                .catch(Be => {
                  const Ge = dn(m.value, we)
                  X(Ge), Promise.reject(Be)
                })
          }
        },
        Ne = () => {
          O.value = !0
        },
        Y = () => {
          setTimeout(() => {
            O.value = !1
          })
        },
        G = ae => {
          const { onActiveChange: ce } = e
          $.value !== ae &&
            (e.activeKey !== void 0 && ($.value = ae),
            ae !== null && B({ key: ae }),
            ce && ce(ae))
        },
        le = P(() =>
          $.value === null
            ? null
            : W.value.find(ae => {
                let { key: ce } = ae
                return ce === $.value
              }) || null
        ),
        $e = ae => {
          let ce = W.value.findIndex(Se => {
            let { key: Ie } = Se
            return Ie === $.value
          })
          ce === -1 && ae < 0 && (ce = W.value.length),
            (ce = (ce + ae + W.value.length) % W.value.length)
          const pe = W.value[ce]
          if (pe) {
            const { key: Se } = pe
            G(Se)
          } else G(null)
        },
        Te = P(() =>
          Bi(
            p(p({}, Ni($.value, _.value)), { data: le.value.data, active: !0 })
          )
        ),
        De = ae => {
          const { onKeydown: ce, checkable: pe, selectable: Se } = e
          switch (ae.which) {
            case Oe.UP: {
              $e(-1), ae.preventDefault()
              break
            }
            case Oe.DOWN: {
              $e(1), ae.preventDefault()
              break
            }
          }
          const Ie = le.value
          if (Ie && Ie.data) {
            const Ee =
                Ie.data.isLeaf === !1 || !!(Ie.data.children || []).length,
              we = Te.value
            switch (ae.which) {
              case Oe.LEFT: {
                Ee && A.value.has($.value)
                  ? Ce({}, we)
                  : Ie.parent && G(Ie.parent.key),
                  ae.preventDefault()
                break
              }
              case Oe.RIGHT: {
                Ee && !A.value.has($.value)
                  ? Ce({}, we)
                  : Ie.children && Ie.children.length && G(Ie.children[0].key),
                  ae.preventDefault()
                break
              }
              case Oe.ENTER:
              case Oe.SPACE: {
                pe && !we.disabled && we.checkable !== !1 && !we.disableCheckbox
                  ? ve({}, we, !E.value.has($.value))
                  : !pe &&
                    Se &&
                    !we.disabled &&
                    we.selectable !== !1 &&
                    Pe({}, we)
                break
              }
            }
          }
          ce && ce(ae)
        }
      return (
        r({
          onNodeExpand: Ce,
          scrollTo: B,
          onKeydown: De,
          selectedKeys: P(() => s.value),
          checkedKeys: P(() => u.value),
          halfCheckedKeys: P(() => c.value),
          loadedKeys: P(() => d.value),
          loadingKeys: P(() => f.value),
          expandedKeys: P(() => m.value)
        }),
        Gn(() => {
          window.removeEventListener('dragend', ie), (i.value = !0)
        }),
        xM({
          expandedKeys: m,
          selectedKeys: s,
          loadedKeys: d,
          loadingKeys: f,
          checkedKeys: u,
          halfCheckedKeys: c,
          expandedKeysSet: A,
          selectedKeysSet: z,
          loadedKeysSet: M,
          loadingKeysSet: j,
          checkedKeysSet: E,
          halfCheckedKeysSet: R,
          flattenNodes: W
        }),
        () => {
          const {
              draggingNodeKey: ae,
              dropLevelOffset: ce,
              dropContainerKey: pe,
              dropTargetKey: Se,
              dropPosition: Ie,
              dragOverNodeKey: Ee
            } = h,
            {
              prefixCls: we,
              showLine: ke,
              focusable: qe,
              tabindex: Be = 0,
              selectable: Ge,
              showIcon: Je,
              icon: xt = o.icon,
              switcherIcon: Ot,
              draggable: It,
              checkable: gt,
              checkStrictly: Nt,
              disabled: Gt,
              motion: sn,
              loadData: Sn,
              filterTreeNode: cn,
              height: br,
              itemHeight: Do,
              virtual: Un,
              dropIndicatorRender: oa,
              onContextmenu: ra,
              onScroll: ci,
              direction: Xn,
              rootClassName: yr,
              rootStyle: ui
            } = e,
            { class: di, style: fi } = n,
            pi = fr(p(p({}, e), n), { aria: !0, data: !0 })
          let qn
          return (
            It
              ? typeof It == 'object'
                ? (qn = It)
                : typeof It == 'function'
                ? (qn = { nodeDraggable: It })
                : (qn = {})
              : (qn = !1),
            v(
              SM,
              {
                value: {
                  prefixCls: we,
                  selectable: Ge,
                  showIcon: Je,
                  icon: xt,
                  switcherIcon: Ot,
                  draggable: qn,
                  draggingNodeKey: ae,
                  checkable: gt,
                  customCheckable: o.checkable,
                  checkStrictly: Nt,
                  disabled: Gt,
                  keyEntities: S.value,
                  dropLevelOffset: ce,
                  dropContainerKey: pe,
                  dropTargetKey: Se,
                  dropPosition: Ie,
                  dragOverNodeKey: Ee,
                  dragging: ae !== null,
                  indent: a.value,
                  direction: Xn,
                  dropIndicatorRender: oa,
                  loadData: Sn,
                  filterTreeNode: cn,
                  onNodeClick: me,
                  onNodeDoubleClick: he,
                  onNodeExpand: Ce,
                  onNodeSelect: Pe,
                  onNodeCheck: ve,
                  onNodeLoad: ye,
                  onNodeMouseEnter: te,
                  onNodeMouseLeave: Z,
                  onNodeContextMenu: fe,
                  onNodeDragStart: Q,
                  onNodeDragEnter: se,
                  onNodeDragOver: q,
                  onNodeDragLeave: K,
                  onNodeDragEnd: de,
                  onNodeDrop: U,
                  slots: o
                }
              },
              {
                default: () => [
                  v(
                    'div',
                    {
                      role: 'tree',
                      class: oe(we, di, yr, {
                        [`${we}-show-line`]: ke,
                        [`${we}-focused`]: C.value,
                        [`${we}-active-focused`]: $.value !== null
                      }),
                      style: ui
                    },
                    [
                      v(
                        _L,
                        N(
                          {
                            ref: w,
                            prefixCls: we,
                            style: fi,
                            disabled: Gt,
                            selectable: Ge,
                            checkable: !!gt,
                            motion: sn,
                            height: br,
                            itemHeight: Do,
                            virtual: Un,
                            focusable: qe,
                            focused: C.value,
                            tabindex: Be,
                            activeItem: le.value,
                            onFocus: xe,
                            onBlur: be,
                            onKeydown: De,
                            onActiveChange: G,
                            onListChangeStart: Ne,
                            onListChangeEnd: Y,
                            onContextmenu: ra,
                            onScroll: ci
                          },
                          pi
                        ),
                        null
                      )
                    ]
                  )
                ]
              }
            )
          )
        }
      )
    }
  })
function Hv(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) {
        ML(e, r, n[r])
      })
  }
  return e
}
function ML(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Ju = function(t, n) {
  var o = Hv({}, t, n.attrs)
  return v(et, Hv({}, o, { icon: iS }), null)
}
Ju.displayName = 'FileOutlined'
Ju.inheritAttrs = !1
const Ly = Ju
function kv(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) {
        NL(e, r, n[r])
      })
  }
  return e
}
function NL(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 = kv({}, t, n.attrs)
  return v(et, kv({}, o, { icon: lS }), null)
}
Qu.displayName = 'MinusSquareOutlined'
Qu.inheritAttrs = !1
const BL = Qu
function jv(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) {
        zL(e, r, n[r])
      })
  }
  return e
}
function zL(e, t, n) {
  return (
    t in e
      ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        })
      : (e[t] = n),
    e
  )
}
var Zu = function(t, n) {
  var o = jv({}, t, n.attrs)
  return v(et, jv({}, o, { icon: aS }), null)
}
Zu.displayName = 'PlusSquareOutlined'
Zu.inheritAttrs = !1
const LL = Zu
function Kv(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) {
        FL(e, r, n[r])
      })
  }
  return e
}
function FL(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 = Kv({}, t, n.attrs)
  return v(et, Kv({}, o, { icon: sS }), null)
}
ed.displayName = 'CaretDownFilled'
ed.inheritAttrs = !1
const HL = ed
function kL(e, t, n, o, r) {
  const { isLeaf: i, expanded: l, loading: a } = n
  let s = t
  if (a) return v(xo, { class: `${e}-switcher-loading-icon` }, null)
  let u
  r && typeof r == 'object' && (u = r.showLeafIcon)
  let c = null
  const d = `${e}-switcher-icon`
  return i
    ? r
      ? u && o
        ? o(n)
        : (typeof r == 'object' && !u
            ? (c = v('span', { class: `${e}-switcher-leaf-line` }, null))
            : (c = v(Ly, { class: `${e}-switcher-line-icon` }, null)),
          c)
      : null
    : ((c = v(HL, { class: d }, null)),
      r &&
        (c = l
          ? v(BL, { class: `${e}-switcher-line-icon` }, null)
          : v(LL, { class: `${e}-switcher-line-icon` }, null)),
      typeof t == 'function'
        ? (s = t(p(p({}, n), { defaultIcon: c, switcherCls: d })))
        : Ft(s) && (s = vo(s, { class: d })),
      s || c)
}
const Wv = 4
function jL(e) {
  const {
      dropPosition: t,
      dropLevelOffset: n,
      prefixCls: o,
      indent: r,
      direction: i = 'ltr'
    } = e,
    l = i === 'ltr' ? 'left' : 'right',
    a = i === 'ltr' ? 'right' : 'left',
    s = { [l]: `${-n * r + Wv}px`, [a]: 0 }
  switch (t) {
    case -1:
      s.top = '-3px'
      break
    case 1:
      s.bottom = '-3px'
      break
    default:
      ;(s.bottom = '-3px'), (s[l] = `${r + Wv}px`)
      break
  }
  return v('div', { style: s, class: `${o}-drop-indicator` }, null)
}
const KL = new Ve('ant-tree-node-fx-do-not-use', {
    '0%': { opacity: 0 },
    '100%': { opacity: 1 }
  }),
  WL = (e, t) => ({
    [`.${e}-switcher-icon`]: {
      display: 'inline-block',
      fontSize: 10,
      verticalAlign: 'baseline',
      svg: { transition: `transform ${t.motionDurationSlow}` }
    }
  }),
  VL = (e, t) => ({
    [`.${e}-drop-indicator`]: {
      position: 'absolute',
      zIndex: 1,
      height: 2,
      backgroundColor: t.colorPrimary,
      borderRadius: 1,
      pointerEvents: 'none',
      '&:after': {
        position: 'absolute',
        top: -3,
        insetInlineStart: -6,
        width: 8,
        height: 8,
        backgroundColor: 'transparent',
        border: `${t.lineWidthBold}px solid ${t.colorPrimary}`,
        borderRadius: '50%',
        content: '""'
      }
    }
  }),
  GL = (e, t) => {
    const {
        treeCls: n,
        treeNodeCls: o,
        treeNodePadding: r,
        treeTitleHeight: i
      } = t,
      l = (i - t.fontSizeLG) / 2,
      a = t.paddingXS
    return {
      [n]: p(p({}, ct(t)), {
        background: t.colorBgContainer,
        borderRadius: t.borderRadius,
        transition: `background-color ${t.motionDurationSlow}`,
        [`&${n}-rtl`]: {
          [`${n}-switcher`]: {
            '&_close': {
              [`${n}-switcher-icon`]: { svg: { transform: 'rotate(90deg)' } }
            }
          }
        },
        [`&-focused:not(:hover):not(${n}-active-focused)`]: p({}, En(t)),
        [`${n}-list-holder-inner`]: { alignItems: 'flex-start' },
        [`&${n}-block-node`]: {
          [`${n}-list-holder-inner`]: {
            alignItems: 'stretch',
            [`${n}-node-content-wrapper`]: { flex: 'auto' },
            [`${o}.dragging`]: {
              position: 'relative',
              '&:after': {
                position: 'absolute',
                top: 0,
                insetInlineEnd: 0,
                bottom: r,
                insetInlineStart: 0,
                border: `1px solid ${t.colorPrimary}`,
                opacity: 0,
                animationName: KL,
                animationDuration: t.motionDurationSlow,
                animationPlayState: 'running',
                animationFillMode: 'forwards',
                content: '""',
                pointerEvents: 'none'
              }
            }
          }
        },
        [`${o}`]: {
          display: 'flex',
          alignItems: 'flex-start',
          padding: `0 0 ${r}px 0`,
          outline: 'none',
          '&-rtl': { direction: 'rtl' },
          '&-disabled': {
            [`${n}-node-content-wrapper`]: {
              color: t.colorTextDisabled,
              cursor: 'not-allowed',
              '&:hover': { background: 'transparent' }
            }
          },
          [`&-active ${n}-node-content-wrapper`]: p({}, En(t)),
          [`&:not(${o}-disabled).filter-node ${n}-title`]: {
            color: 'inherit',
            fontWeight: 500
          },
          '&-draggable': {
            [`${n}-draggable-icon`]: {
              width: i,
              lineHeight: `${i}px`,
              textAlign: 'center',
              visibility: 'visible',
              opacity: 0.2,
              transition: `opacity ${t.motionDurationSlow}`,
              [`${o}:hover &`]: { opacity: 0.45 }
            },
            [`&${o}-disabled`]: {
              [`${n}-draggable-icon`]: { visibility: 'hidden' }
            }
          }
        },
        [`${n}-indent`]: {
          alignSelf: 'stretch',
          whiteSpace: 'nowrap',
          userSelect: 'none',
          '&-unit': { display: 'inline-block', width: i }
        },
        [`${n}-draggable-icon`]: { visibility: 'hidden' },
        [`${n}-switcher`]: p(p({}, WL(e, t)), {
          position: 'relative',
          flex: 'none',
          alignSelf: 'stretch',
          width: i,
          margin: 0,
          lineHeight: `${i}px`,
          textAlign: 'center',
          cursor: 'pointer',
          userSelect: 'none',
          '&-noop': { cursor: 'default' },
          '&_close': {
            [`${n}-switcher-icon`]: { svg: { transform: 'rotate(-90deg)' } }
          },
          '&-loading-icon': { color: t.colorPrimary },
          '&-leaf-line': {
            position: 'relative',
            zIndex: 1,
            display: 'inline-block',
            width: '100%',
            height: '100%',
            '&:before': {
              position: 'absolute',
              top: 0,
              insetInlineEnd: i / 2,
              bottom: -r,
              marginInlineStart: -1,
              borderInlineEnd: `1px solid ${t.colorBorder}`,
              content: '""'
            },
            '&:after': {
              position: 'absolute',
              width: (i / 2) * 0.8,
              height: i / 2,
              borderBottom: `1px solid ${t.colorBorder}`,
              content: '""'
            }
          }
        }),
        [`${n}-checkbox`]: {
          top: 'initial',
          marginInlineEnd: a,
          marginBlockStart: l
        },
        [`${n}-node-content-wrapper, ${n}-checkbox + span`]: {
          position: 'relative',
          zIndex: 'auto',
          minHeight: i,
          margin: 0,
          padding: `0 ${t.paddingXS / 2}px`,
          color: 'inherit',
          lineHeight: `${i}px`,
          background: 'transparent',
          borderRadius: t.borderRadius,
          cursor: 'pointer',
          transition: `all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,
          '&:hover': { backgroundColor: t.controlItemBgHover },
          [`&${n}-node-selected`]: { backgroundColor: t.controlItemBgActive },
          [`${n}-iconEle`]: {
            display: 'inline-block',
            width: i,
            height: i,
            lineHeight: `${i}px`,
            textAlign: 'center',
            verticalAlign: 'top',
            '&:empty': { display: 'none' }
          }
        },
        [`${n}-unselectable ${n}-node-content-wrapper:hover`]: {
          backgroundColor: 'transparent'
        },
        [`${n}-node-content-wrapper`]: p(
          { lineHeight: `${i}px`, userSelect: 'none' },
          VL(e, t)
        ),
        [`${o}.drop-container`]: {
          '> [draggable]': { boxShadow: `0 0 0 2px ${t.colorPrimary}` }
        },
        '&-show-line': {
          [`${n}-indent`]: {
            '&-unit': {
              position: 'relative',
              height: '100%',
              '&:before': {
                position: 'absolute',
                top: 0,
                insetInlineEnd: i / 2,
                bottom: -r,
                borderInlineEnd: `1px solid ${t.colorBorder}`,
                content: '""'
              },
              '&-end': { '&:before': { display: 'none' } }
            }
          },
          [`${n}-switcher`]: {
            background: 'transparent',
            '&-line-icon': { verticalAlign: '-0.15em' }
          }
        },
        [`${o}-leaf-last`]: {
          [`${n}-switcher`]: {
            '&-leaf-line': {
              '&:before': {
                top: 'auto !important',
                bottom: 'auto !important',
                height: `${i / 2}px !important`
              }
            }
          }
        }
      })
    }
  },
  UL = e => {
    const { treeCls: t, treeNodeCls: n, treeNodePadding: o } = e
    return {
      [`${t}${t}-directory`]: {
        [n]: {
          position: 'relative',
          '&:before': {
            position: 'absolute',
            top: 0,
            insetInlineEnd: 0,
            bottom: o,
            insetInlineStart: 0,
            transition: `background-color ${e.motionDurationMid}`,
            content: '""',
            pointerEvents: 'none'
          },
          '&:hover': { '&:before': { background: e.controlItemBgHover } },
          '> *': { zIndex: 1 },
          [`${t}-switcher`]: { transition: `color ${e.motionDurationMid}` },
          [`${t}-node-content-wrapper`]: {
            borderRadius: 0,
            userSelect: 'none',
            '&:hover': { background: 'transparent' },
            [`&${t}-node-selected`]: {
              color: e.colorTextLightSolid,
              background: 'transparent'
            }
          },
          '&-selected': {
            '\n            &:hover::before,\n            &::before\n          ': {
              background: e.colorPrimary
            },
            [`${t}-switcher`]: { color: e.colorTextLightSolid },
            [`${t}-node-content-wrapper`]: {
              color: e.colorTextLightSolid,
              background: 'transparent'
            }
          }
        }
      }
    }
  },
  XL = (e, t) => {
    const n = `.${e}`,
      o = `${n}-treenode`,
      r = t.paddingXS / 2,
      i = t.controlHeightSM,
      l = Ze(t, {
        treeCls: n,
        treeNodeCls: o,
        treeNodePadding: r,
        treeTitleHeight: i
      })
    return [GL(e, l), UL(l)]
  },
  qL = pt('Tree', (e, t) => {
    let { prefixCls: n } = t
    return [{ [e.componentCls]: Fb(`${n}-checkbox`, e) }, XL(n, e), Nh(e)]
  }),
  Fy = () => {
    const e = Mb()
    return p(p({}, e), {
      showLine: Pt([Boolean, Object]),
      multiple: Re(),
      autoExpandParent: Re(),
      checkStrictly: Re(),
      checkable: Re(),
      disabled: Re(),
      defaultExpandAll: Re(),
      defaultExpandParent: Re(),
      defaultExpandedKeys: $t(),
      expandedKeys: $t(),
      checkedKeys: Pt([Array, Object]),
      defaultCheckedKeys: $t(),
      selectedKeys: $t(),
      defaultSelectedKeys: $t(),
      selectable: Re(),
      loadedKeys: $t(),
      draggable: Re(),
      showIcon: Re(),
      icon: _e(),
      switcherIcon: k.any,
      prefixCls: String,
      replaceFields: Xe(),
      blockNode: Re(),
      openAnimation: k.any,
      onDoubleclick: e.onDblclick,
      'onUpdate:selectedKeys': _e(),
      'onUpdate:checkedKeys': _e(),
      'onUpdate:expandedKeys': _e()
    })
  },
  ji = J({
    compatConfig: { MODE: 3 },
    name: 'ATree',
    inheritAttrs: !1,
    props: mt(Fy(), {
      checkable: !1,
      selectable: !0,
      showIcon: !1,
      blockNode: !1
    }),
    slots: Object,
    setup(e, t) {
      let { attrs: n, expose: o, emit: r, slots: i } = t
      e.treeData === void 0 && i.default
      const { prefixCls: l, direction: a, virtual: s } = je('tree', e),
        [u, c] = qL(l),
        d = ne()
      o({
        treeRef: d,
        onNodeExpand: function() {
          var b
          ;(b = d.value) === null ||
            b === void 0 ||
            b.onNodeExpand(...arguments)
        },
        scrollTo: b => {
          var S
          ;(S = d.value) === null || S === void 0 || S.scrollTo(b)
        },
        selectedKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0
            ? void 0
            : b.selectedKeys
        }),
        checkedKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0 ? void 0 : b.checkedKeys
        }),
        halfCheckedKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0
            ? void 0
            : b.halfCheckedKeys
        }),
        loadedKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0 ? void 0 : b.loadedKeys
        }),
        loadingKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0 ? void 0 : b.loadingKeys
        }),
        expandedKeys: P(() => {
          var b
          return (b = d.value) === null || b === void 0
            ? void 0
            : b.expandedKeys
        })
      }),
        Me(() => {
          vt(
            e.replaceFields === void 0,
            'Tree',
            '`replaceFields` is deprecated, please use fieldNames instead'
          )
        })
      const m = (b, S) => {
          r('update:checkedKeys', b), r('check', b, S)
        },
        g = (b, S) => {
          r('update:expandedKeys', b), r('expand', b, S)
        },
        h = (b, S) => {
          r('update:selectedKeys', b), r('select', b, S)
        }
      return () => {
        const {
            showIcon: b,
            showLine: S,
            switcherIcon: C = i.switcherIcon,
            icon: $ = i.icon,
            blockNode: O,
            checkable: x,
            selectable: w,
            fieldNames: y = e.replaceFields,
            motion: T = e.openAnimation,
            itemHeight: I = 28,
            onDoubleclick: _,
            onDblclick: A
          } = e,
          z = p(
            p(
              p({}, n),
              rt(e, [
                'onUpdate:checkedKeys',
                'onUpdate:expandedKeys',
                'onUpdate:selectedKeys',
                'onDoubleclick'
              ])
            ),
            {
              showLine: !!S,
              dropIndicatorRender: jL,
              fieldNames: y,
              icon: $,
              itemHeight: I
            }
          ),
          M = i.default ? Tt(i.default()) : void 0
        return u(
          v(
            DL,
            N(
              N({}, z),
              {},
              {
                virtual: s.value,
                motion: T,
                ref: d,
                prefixCls: l.value,
                class: oe(
                  {
                    [`${l.value}-icon-hide`]: !b,
                    [`${l.value}-block-node`]: O,
                    [`${l.value}-unselectable`]: !w,
                    [`${l.value}-rtl`]: a.value === 'rtl'
                  },
                  n.class,
                  c.value
                ),
                direction: a.value,
                checkable: x,
                selectable: w,
                switcherIcon: j => kL(l.value, C, j, i.leafIcon, S),
                onCheck: m,
                onExpand: g,
                onSelect: h,
                onDblclick: A || _,
                children: M
              }
            ),
            p(p({}, i), {
              checkable: () =>
                v('span', { class: `${l.value}-checkbox-inner` }, null)
            })
          )
        )
      }
    }
  })
function Vv(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) {
        YL(e, r, n[r])
      })
  }
  return e
}
function YL(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 = Vv({}, t, n.attrs)
  return v(et, Vv({}, o, { icon: cS }), null)
}
td.displayName = 'FolderOpenOutlined'
td.inheritAttrs = !1
const JL = td
function Gv(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) {
        QL(e, r, n[r])
      })
  }
  return e
}
function QL(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 = Gv({}, t, n.attrs)
  return v(et, Gv({}, o, { icon: uS }), null)
}
nd.displayName = 'FolderOutlined'
nd.inheritAttrs = !1
const ZL = nd
var On
;(function(e) {
  ;(e[(e.None = 0)] = 'None'),
    (e[(e.Start = 1)] = 'Start'),
    (e[(e.End = 2)] = 'End')
})(On || (On = {}))
function od(e, t, n) {
  function o(r) {
    const i = r[t.key],
      l = r[t.children]
    n(i, r) !== !1 && od(l || [], t, n)
  }
  e.forEach(o)
}
function eF(e) {
  let {
    treeData: t,
    expandedKeys: n,
    startKey: o,
    endKey: r,
    fieldNames: i = { title: 'title', key: 'key', children: 'children' }
  } = e
  const l = []
  let a = On.None
  if (o && o === r) return [o]
  if (!o || !r) return []
  function s(u) {
    return u === o || u === r
  }
  return (
    od(t, i, u => {
      if (a === On.End) return !1
      if (s(u)) {
        if ((l.push(u), a === On.None)) a = On.Start
        else if (a === On.Start) return (a = On.End), !1
      } else a === On.Start && l.push(u)
      return n.includes(u)
    }),
    l
  )
}
function Ha(e, t, n) {
  const o = [...t],
    r = []
  return (
    od(e, n, (i, l) => {
      const a = o.indexOf(i)
      return a !== -1 && (r.push(l), o.splice(a, 1)), !!o.length
    }),
    r
  )
}
var tF =
  (globalThis && globalThis.__rest) ||
  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 nF = () => p(p({}, Fy()), { expandAction: Pt([Boolean, String]) })
function oF(e) {
  const { isLeaf: t, expanded: n } = e
  return t ? v(Ly, null, null) : n ? v(JL, null, null) : v(ZL, null, null)
}
const ka = J({
    compatConfig: { MODE: 3 },
    name: 'ADirectoryTree',
    inheritAttrs: !1,
    props: mt(nF(), { showIcon: !0, expandAction: 'click' }),
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o, emit: r, expose: i } = t
      var l
      const a = ne(
        e.treeData ||
          Bs(Tt((l = o.default) === null || l === void 0 ? void 0 : l.call(o)))
      )
      ge(
        () => e.treeData,
        () => {
          a.value = e.treeData
        }
      ),
        An(() => {
          it(() => {
            var I
            e.treeData === void 0 &&
              o.default &&
              (a.value = Bs(
                Tt(
                  (I = o.default) === null || I === void 0 ? void 0 : I.call(o)
                )
              ))
          })
        })
      const s = ne(),
        u = ne(),
        c = P(() => Kl(e.fieldNames)),
        d = ne()
      i({
        scrollTo: I => {
          var _
          ;(_ = d.value) === null || _ === void 0 || _.scrollTo(I)
        },
        selectedKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0
            ? void 0
            : I.selectedKeys
        }),
        checkedKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0 ? void 0 : I.checkedKeys
        }),
        halfCheckedKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0
            ? void 0
            : I.halfCheckedKeys
        }),
        loadedKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0 ? void 0 : I.loadedKeys
        }),
        loadingKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0 ? void 0 : I.loadingKeys
        }),
        expandedKeys: P(() => {
          var I
          return (I = d.value) === null || I === void 0
            ? void 0
            : I.expandedKeys
        })
      })
      const m = () => {
          const { keyEntities: I } = Nu(a.value, { fieldNames: c.value })
          let _
          return (
            e.defaultExpandAll
              ? (_ = Object.keys(I))
              : e.defaultExpandParent
              ? (_ = Ns(e.expandedKeys || e.defaultExpandedKeys || [], I))
              : (_ = e.expandedKeys || e.defaultExpandedKeys),
            _
          )
        },
        g = ne(e.selectedKeys || e.defaultSelectedKeys || []),
        h = ne(m())
      ge(
        () => e.selectedKeys,
        () => {
          e.selectedKeys !== void 0 && (g.value = e.selectedKeys)
        },
        { immediate: !0 }
      ),
        ge(
          () => e.expandedKeys,
          () => {
            e.expandedKeys !== void 0 && (h.value = e.expandedKeys)
          },
          { immediate: !0 }
        )
      const S = NE(
          (I, _) => {
            const { isLeaf: A } = _
            A ||
              I.shiftKey ||
              I.metaKey ||
              I.ctrlKey ||
              d.value.onNodeExpand(I, _)
          },
          200,
          { leading: !0 }
        ),
        C = (I, _) => {
          e.expandedKeys === void 0 && (h.value = I),
            r('update:expandedKeys', I),
            r('expand', I, _)
        },
        $ = (I, _) => {
          const { expandAction: A } = e
          A === 'click' && S(I, _), r('click', I, _)
        },
        O = (I, _) => {
          const { expandAction: A } = e
          ;(A === 'dblclick' || A === 'doubleclick') && S(I, _),
            r('doubleclick', I, _),
            r('dblclick', I, _)
        },
        x = (I, _) => {
          const { multiple: A } = e,
            { node: z, nativeEvent: M } = _,
            j = z[c.value.key],
            E = p(p({}, _), { selected: !0 }),
            R =
              (M == null ? void 0 : M.ctrlKey) ||
              (M == null ? void 0 : M.metaKey),
            L = M == null ? void 0 : M.shiftKey
          let W
          A && R
            ? ((W = I),
              (s.value = j),
              (u.value = W),
              (E.selectedNodes = Ha(a.value, W, c.value)))
            : A && L
            ? ((W = Array.from(
                new Set([
                  ...(u.value || []),
                  ...eF({
                    treeData: a.value,
                    expandedKeys: h.value,
                    startKey: j,
                    endKey: s.value,
                    fieldNames: c.value
                  })
                ])
              )),
              (E.selectedNodes = Ha(a.value, W, c.value)))
            : ((W = [j]),
              (s.value = j),
              (u.value = W),
              (E.selectedNodes = Ha(a.value, W, c.value))),
            r('update:selectedKeys', W),
            r('select', W, E),
            e.selectedKeys === void 0 && (g.value = W)
        },
        w = (I, _) => {
          r('update:checkedKeys', I), r('check', I, _)
        },
        { prefixCls: y, direction: T } = je('tree', e)
      return () => {
        const I = oe(
            `${y.value}-directory`,
            { [`${y.value}-directory-rtl`]: T.value === 'rtl' },
            n.class
          ),
          { icon: _ = o.icon, blockNode: A = !0 } = e,
          z = tF(e, ['icon', 'blockNode'])
        return v(
          ji,
          N(
            N(N({}, n), {}, { icon: _ || oF, ref: d, blockNode: A }, z),
            {},
            {
              prefixCls: y.value,
              class: I,
              expandedKeys: h.value,
              selectedKeys: g.value,
              onSelect: x,
              onClick: $,
              onDblclick: O,
              onExpand: C,
              onCheck: w
            }
          ),
          o
        )
      }
    }
  }),
  ja = Ms,
  rF = p(ji, {
    DirectoryTree: ka,
    TreeNode: ja,
    install: e => (
      e.component(ji.name, ji),
      e.component(ja.name, ja),
      e.component(ka.name, ka),
      e
    )
  })
function Uv(e, t) {
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
  const o = new Set()
  function r(i, l) {
    let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1
    const s = o.has(i)
    if ((Gm(!s, 'Warning: There may be circular references'), s)) return !1
    if (i === l) return !0
    if (n && a > 1) return !1
    o.add(i)
    const u = a + 1
    if (Array.isArray(i)) {
      if (!Array.isArray(l) || i.length !== l.length) return !1
      for (let c = 0; c < i.length; c++) if (!r(i[c], l[c], u)) return !1
      return !0
    }
    if (i && l && typeof i == 'object' && typeof l == 'object') {
      const c = Object.keys(i)
      return c.length !== Object.keys(l).length
        ? !1
        : c.every(d => r(i[d], l[d], u))
    }
    return !1
  }
  return r(e, t)
}
const { SubMenu: iF, Item: lF } = Qt
function aF(e) {
  return e.some(t => {
    let { children: n } = t
    return n && n.length > 0
  })
}
function Hy(e, t) {
  return typeof t == 'string' || typeof t == 'number'
    ? t == null
      ? void 0
      : t
          .toString()
          .toLowerCase()
          .includes(e.trim().toLowerCase())
    : !1
}
function ky(e) {
  let {
    filters: t,
    prefixCls: n,
    filteredKeys: o,
    filterMultiple: r,
    searchValue: i,
    filterSearch: l
  } = e
  return t.map((a, s) => {
    const u = String(a.value)
    if (a.children)
      return v(
        iF,
        { key: u || s, title: a.text, popupClassName: `${n}-dropdown-submenu` },
        {
          default: () => [
            ky({
              filters: a.children,
              prefixCls: n,
              filteredKeys: o,
              filterMultiple: r,
              searchValue: i,
              filterSearch: l
            })
          ]
        }
      )
    const c = r ? Pn : Lt,
      d = v(
        lF,
        { key: a.value !== void 0 ? u : s },
        {
          default: () => [
            v(c, { checked: o.includes(u) }, null),
            v('span', null, [a.text])
          ]
        }
      )
    return i.trim()
      ? typeof l == 'function'
        ? l(i, a)
          ? d
          : void 0
        : Hy(i, a.text)
        ? d
        : void 0
      : d
  })
}
const sF = J({
  name: 'FilterDropdown',
  props: [
    'tablePrefixCls',
    'prefixCls',
    'dropdownPrefixCls',
    'column',
    'filterState',
    'filterMultiple',
    'filterMode',
    'filterSearch',
    'columnKey',
    'triggerFilter',
    'locale',
    'getPopupContainer'
  ],
  setup(e, t) {
    let { slots: n } = t
    const o = Vu(),
      r = P(() => {
        var B
        return (B = e.filterMode) !== null && B !== void 0 ? B : 'menu'
      }),
      i = P(() => {
        var B
        return (B = e.filterSearch) !== null && B !== void 0 ? B : !1
      }),
      l = P(
        () => e.column.filterDropdownOpen || e.column.filterDropdownVisible
      ),
      a = P(
        () =>
          e.column.onFilterDropdownOpenChange ||
          e.column.onFilterDropdownVisibleChange
      ),
      s = V(!1),
      u = P(() => {
        var B
        return !!(
          e.filterState &&
          ((!((B = e.filterState.filteredKeys) === null || B === void 0) &&
            B.length) ||
            e.filterState.forceFiltered)
        )
      }),
      c = P(() => {
        var B
        return Gl((B = e.column) === null || B === void 0 ? void 0 : B.filters)
      }),
      d = P(() => {
        const {
          filterDropdown: B,
          slots: X = {},
          customFilterDropdown: ee
        } = e.column
        return (
          B ||
          (X.filterDropdown && o.value[X.filterDropdown]) ||
          (ee && o.value.customFilterDropdown)
        )
      }),
      f = P(() => {
        const { filterIcon: B, slots: X = {} } = e.column
        return (
          B ||
          (X.filterIcon && o.value[X.filterIcon]) ||
          o.value.customFilterIcon
        )
      }),
      m = B => {
        var X
        ;(s.value = B), (X = a.value) === null || X === void 0 || X.call(a, B)
      },
      g = P(() => (typeof l.value == 'boolean' ? l.value : s.value)),
      h = P(() => {
        var B
        return (B = e.filterState) === null || B === void 0
          ? void 0
          : B.filteredKeys
      }),
      b = V([]),
      S = B => {
        let { selectedKeys: X } = B
        b.value = X
      },
      C = (B, X) => {
        let { node: ee, checked: de } = X
        e.filterMultiple
          ? S({ selectedKeys: B })
          : S({ selectedKeys: de && ee.key ? [ee.key] : [] })
      }
    ge(
      h,
      () => {
        s.value && S({ selectedKeys: h.value || [] })
      },
      { immediate: !0 }
    )
    const $ = V([]),
      O = V(),
      x = B => {
        O.value = setTimeout(() => {
          $.value = B
        })
      },
      w = () => {
        clearTimeout(O.value)
      }
    Qe(() => {
      clearTimeout(O.value)
    })
    const y = V(''),
      T = B => {
        const { value: X } = B.target
        y.value = X
      }
    ge(s, () => {
      s.value || (y.value = '')
    })
    const I = B => {
        const { column: X, columnKey: ee, filterState: de } = e,
          ie = B && B.length ? B : null
        if (
          (ie === null && (!de || !de.filteredKeys)) ||
          Uv(ie, de == null ? void 0 : de.filteredKeys, !0)
        )
          return null
        e.triggerFilter({ column: X, key: ee, filteredKeys: ie })
      },
      _ = () => {
        m(!1), I(b.value)
      },
      A = function() {
        let { confirm: B, closeDropdown: X } =
          arguments.length > 0 && arguments[0] !== void 0
            ? arguments[0]
            : { confirm: !1, closeDropdown: !1 }
        B && I([]),
          X && m(!1),
          (y.value = ''),
          e.column.filterResetToDefaultFilteredValue
            ? (b.value = (e.column.defaultFilteredValue || []).map(ee =>
                String(ee)
              ))
            : (b.value = [])
      },
      z = function() {
        let { closeDropdown: B } =
          arguments.length > 0 && arguments[0] !== void 0
            ? arguments[0]
            : { closeDropdown: !0 }
        B && m(!1), I(b.value)
      },
      M = B => {
        B && h.value !== void 0 && (b.value = h.value || []),
          m(B),
          !B && !d.value && _()
      },
      { direction: j } = je('', e),
      E = B => {
        if (B.target.checked) {
          const X = c.value
          b.value = X
        } else b.value = []
      },
      R = B => {
        let { filters: X } = B
        return (X || []).map((ee, de) => {
          const ie = String(ee.value),
            Q = { title: ee.text, key: ee.value !== void 0 ? ie : de }
          return ee.children && (Q.children = R({ filters: ee.children })), Q
        })
      },
      L = B => {
        var X
        return p(p({}, B), {
          text: B.title,
          value: B.key,
          children:
            ((X = B.children) === null || X === void 0
              ? void 0
              : X.map(ee => L(ee))) || []
        })
      },
      W = P(() => R({ filters: e.column.filters })),
      D = P(() =>
        oe({
          [`${e.dropdownPrefixCls}-menu-without-submenu`]: !aF(
            e.column.filters || []
          )
        })
      ),
      F = () => {
        const B = b.value,
          {
            column: X,
            locale: ee,
            tablePrefixCls: de,
            filterMultiple: ie,
            dropdownPrefixCls: Q,
            getPopupContainer: se,
            prefixCls: q
          } = e
        return (X.filters || []).length === 0
          ? v(
              io,
              {
                image: io.PRESENTED_IMAGE_SIMPLE,
                description: ee.filterEmptyText,
                imageStyle: { height: 24 },
                style: { margin: 0, padding: '16px 0' }
              },
              null
            )
          : r.value === 'tree'
          ? v(nt, null, [
              v(
                Av,
                {
                  filterSearch: i.value,
                  value: y.value,
                  onChange: T,
                  tablePrefixCls: de,
                  locale: ee
                },
                null
              ),
              v('div', { class: `${de}-filter-dropdown-tree` }, [
                ie
                  ? v(
                      Pn,
                      {
                        class: `${de}-filter-dropdown-checkall`,
                        onChange: E,
                        checked: B.length === c.value.length,
                        indeterminate: B.length > 0 && B.length < c.value.length
                      },
                      { default: () => [ee.filterCheckall] }
                    )
                  : null,
                v(
                  rF,
                  {
                    checkable: !0,
                    selectable: !1,
                    blockNode: !0,
                    multiple: ie,
                    checkStrictly: !ie,
                    class: `${Q}-menu`,
                    onCheck: C,
                    checkedKeys: B,
                    selectedKeys: B,
                    showIcon: !1,
                    treeData: W.value,
                    autoExpandParent: !0,
                    defaultExpandAll: !0,
                    filterTreeNode: y.value.trim()
                      ? K =>
                          typeof i.value == 'function'
                            ? i.value(y.value, L(K))
                            : Hy(y.value, K.title)
                      : void 0
                  },
                  null
                )
              ])
            ])
          : v(nt, null, [
              v(
                Av,
                {
                  filterSearch: i.value,
                  value: y.value,
                  onChange: T,
                  tablePrefixCls: de,
                  locale: ee
                },
                null
              ),
              v(
                Qt,
                {
                  multiple: ie,
                  prefixCls: `${Q}-menu`,
                  class: D.value,
                  onClick: w,
                  onSelect: S,
                  onDeselect: S,
                  selectedKeys: B,
                  getPopupContainer: se,
                  openKeys: $.value,
                  onOpenChange: x
                },
                {
                  default: () =>
                    ky({
                      filters: X.filters || [],
                      filterSearch: i.value,
                      prefixCls: q,
                      filteredKeys: b.value,
                      filterMultiple: ie,
                      searchValue: y.value
                    })
                }
              )
            ])
      },
      H = P(() => {
        const B = b.value
        return e.column.filterResetToDefaultFilteredValue
          ? Uv(
              (e.column.defaultFilteredValue || []).map(X => String(X)),
              B,
              !0
            )
          : B.length === 0
      })
    return () => {
      var B
      const {
        tablePrefixCls: X,
        prefixCls: ee,
        column: de,
        dropdownPrefixCls: ie,
        locale: Q,
        getPopupContainer: se
      } = e
      let q
      typeof d.value == 'function'
        ? (q = d.value({
            prefixCls: `${ie}-custom`,
            setSelectedKeys: ue => S({ selectedKeys: ue }),
            selectedKeys: b.value,
            confirm: z,
            clearFilters: A,
            filters: de.filters,
            visible: g.value,
            column: de.__originColumn__,
            close: () => {
              m(!1)
            }
          }))
        : d.value
        ? (q = d.value)
        : (q = v(nt, null, [
            F(),
            v('div', { class: `${ee}-dropdown-btns` }, [
              v(
                ht,
                {
                  type: 'link',
                  size: 'small',
                  disabled: H.value,
                  onClick: () => A()
                },
                { default: () => [Q.filterReset] }
              ),
              v(
                ht,
                { type: 'primary', size: 'small', onClick: _ },
                { default: () => [Q.filterConfirm] }
              )
            ])
          ]))
      const K = v(OL, { class: `${ee}-dropdown` }, { default: () => [q] })
      let U
      return (
        typeof f.value == 'function'
          ? (U = f.value({ filtered: u.value, column: de.__originColumn__ }))
          : f.value
          ? (U = f.value)
          : (U = v(CL, null, null)),
        v('div', { class: `${ee}-column` }, [
          v('span', { class: `${X}-column-title` }, [
            (B = n.default) === null || B === void 0 ? void 0 : B.call(n)
          ]),
          v(
            fo,
            {
              overlay: K,
              trigger: ['click'],
              open: g.value,
              onOpenChange: M,
              getPopupContainer: se,
              placement: j.value === 'rtl' ? 'bottomLeft' : 'bottomRight'
            },
            {
              default: () => [
                v(
                  'span',
                  {
                    role: 'button',
                    tabindex: -1,
                    class: oe(`${ee}-trigger`, { active: u.value }),
                    onClick: ue => {
                      ue.stopPropagation()
                    }
                  },
                  [U]
                )
              ]
            }
          )
        ])
      )
    }
  }
})
function tc(e, t, n) {
  let o = []
  return (
    (e || []).forEach((r, i) => {
      var l, a
      const s = ii(i, n),
        u =
          r.filterDropdown ||
          ((l = r == null ? void 0 : r.slots) === null || l === void 0
            ? void 0
            : l.filterDropdown) ||
          r.customFilterDropdown
      if (r.filters || u || 'onFilter' in r)
        if ('filteredValue' in r) {
          let c = r.filteredValue
          u ||
            (c =
              (a = c == null ? void 0 : c.map(String)) !== null && a !== void 0
                ? a
                : c),
            o.push({
              column: r,
              key: Co(r, s),
              filteredKeys: c,
              forceFiltered: r.filtered
            })
        } else
          o.push({
            column: r,
            key: Co(r, s),
            filteredKeys:
              t && r.defaultFilteredValue ? r.defaultFilteredValue : void 0,
            forceFiltered: r.filtered
          })
      'children' in r && (o = [...o, ...tc(r.children, t, s)])
    }),
    o
  )
}
function jy(e, t, n, o, r, i, l, a) {
  return n.map((s, u) => {
    var c
    const d = ii(u, a),
      { filterMultiple: f = !0, filterMode: m, filterSearch: g } = s
    let h = s
    const b =
      s.filterDropdown ||
      ((c = s == null ? void 0 : s.slots) === null || c === void 0
        ? void 0
        : c.filterDropdown) ||
      s.customFilterDropdown
    if (h.filters || b) {
      const S = Co(h, d),
        C = o.find($ => {
          let { key: O } = $
          return S === O
        })
      h = p(p({}, h), {
        title: $ =>
          v(
            sF,
            {
              tablePrefixCls: e,
              prefixCls: `${e}-filter`,
              dropdownPrefixCls: t,
              column: h,
              columnKey: S,
              filterState: C,
              filterMultiple: f,
              filterMode: m,
              filterSearch: g,
              triggerFilter: i,
              locale: r,
              getPopupContainer: l
            },
            { default: () => [qu(s.title, $)] }
          )
      })
    }
    return (
      'children' in h &&
        (h = p(p({}, h), { children: jy(e, t, h.children, o, r, i, l, d) })),
      h
    )
  })
}
function Gl(e) {
  let t = []
  return (
    (e || []).forEach(n => {
      let { value: o, children: r } = n
      t.push(o), r && (t = [...t, ...Gl(r)])
    }),
    t
  )
}
function Xv(e) {
  const t = {}
  return (
    e.forEach(n => {
      let { key: o, filteredKeys: r, column: i } = n
      var l
      const a =
          i.filterDropdown ||
          ((l = i == null ? void 0 : i.slots) === null || l === void 0
            ? void 0
            : l.filterDropdown) ||
          i.customFilterDropdown,
        { filters: s } = i
      if (a) t[o] = r || null
      else if (Array.isArray(r)) {
        const u = Gl(s)
        t[o] = u.filter(c => r.includes(String(c)))
      } else t[o] = null
    }),
    t
  )
}
function qv(e, t) {
  return t.reduce((n, o) => {
    const {
      column: { onFilter: r, filters: i },
      filteredKeys: l
    } = o
    return r && l && l.length
      ? n.filter(a =>
          l.some(s => {
            const u = Gl(i),
              c = u.findIndex(f => String(f) === String(s)),
              d = c !== -1 ? u[c] : s
            return r(d, a)
          })
        )
      : n
  }, e)
}
function Ky(e) {
  return e.flatMap(t => ('children' in t ? [t, ...Ky(t.children || [])] : [t]))
}
function cF(e) {
  let {
    prefixCls: t,
    dropdownPrefixCls: n,
    mergedColumns: o,
    locale: r,
    onFilterChange: i,
    getPopupContainer: l
  } = e
  const a = P(() => Ky(o.value)),
    [s, u] = tt(tc(a.value, !0)),
    c = P(() => {
      const g = tc(a.value, !1)
      if (g.length === 0) return g
      let h = !0,
        b = !0
      if (
        (g.forEach(S => {
          let { filteredKeys: C } = S
          C !== void 0 ? (h = !1) : (b = !1)
        }),
        h)
      ) {
        const S = (a.value || []).map((C, $) => Co(C, ii($)))
        return s.value
          .filter(C => {
            let { key: $ } = C
            return S.includes($)
          })
          .map(C => {
            const $ = a.value[S.findIndex(O => O === C.key)]
            return p(p({}, C), {
              column: p(p({}, C.column), $),
              forceFiltered: $.filtered
            })
          })
      }
      return (
        vt(
          b,
          'Table',
          'Columns should all contain `filteredValue` or not contain `filteredValue`.'
        ),
        g
      )
    }),
    d = P(() => Xv(c.value)),
    f = g => {
      const h = c.value.filter(b => {
        let { key: S } = b
        return S !== g.key
      })
      h.push(g), u(h), i(Xv(h), h)
    }
  return [g => jy(t.value, n.value, g, c.value, r.value, f, l.value), c, d]
}
function Wy(e, t) {
  return e.map(n => {
    const o = p({}, n)
    return (
      (o.title = qu(o.title, t)),
      'children' in o && (o.children = Wy(o.children, t)),
      o
    )
  })
}
function uF(e) {
  return [n => Wy(n, e.value)]
}
function dF(e) {
  return function(n) {
    let { prefixCls: o, onExpand: r, record: i, expanded: l, expandable: a } = n
    const s = `${o}-row-expand-icon`
    return v(
      'button',
      {
        type: 'button',
        onClick: u => {
          r(i, u), u.stopPropagation()
        },
        class: oe(s, {
          [`${s}-spaced`]: !a,
          [`${s}-expanded`]: a && l,
          [`${s}-collapsed`]: a && !l
        }),
        'aria-label': l ? e.collapse : e.expand,
        'aria-expanded': l
      },
      null
    )
  }
}
function Vy(e, t) {
  const n = t.value
  return e.map(o => {
    var r
    if (o === wn || o === Ln) return o
    const i = p({}, o),
      { slots: l = {} } = i
    return (
      (i.__originColumn__ = o),
      vt(
        !('slots' in i),
        'Table',
        '`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead.'
      ),
      Object.keys(l).forEach(a => {
        const s = l[a]
        i[a] === void 0 && n[s] && (i[a] = n[s])
      }),
      t.value.headerCell &&
        !(!((r = o.slots) === null || r === void 0) && r.title) &&
        (i.title = wl(
          t.value,
          'headerCell',
          { title: o.title, column: o },
          () => [o.title]
        )),
      'children' in i &&
        Array.isArray(i.children) &&
        (i.children = Vy(i.children, t)),
      i
    )
  })
}
function fF(e) {
  return [n => Vy(n, e)]
}
const pF = e => {
    const { componentCls: t } = e,
      n = `${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,
      o = (r, i, l) => ({
        [`&${t}-${r}`]: {
          [`> ${t}-container`]: {
            [`> ${t}-content, > ${t}-body`]: {
              '> table > tbody > tr > td': {
                [`> ${t}-expanded-row-fixed`]: {
                  margin: `-${i}px -${l + e.lineWidth}px`
                }
              }
            }
          }
        }
      })
    return {
      [`${t}-wrapper`]: {
        [`${t}${t}-bordered`]: p(
          p(
            p(
              {
                [`> ${t}-title`]: { border: n, borderBottom: 0 },
                [`> ${t}-container`]: {
                  borderInlineStart: n,
                  [`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]: {
                    '> table': {
                      '\n                > thead > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ': {
                        borderInlineEnd: n
                      },
                      '> thead': {
                        '> tr:not(:last-child) > th': { borderBottom: n },
                        '> tr > th::before': {
                          backgroundColor: 'transparent !important'
                        }
                      },
                      '\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ': {
                        [`> ${t}-cell-fix-right-first::after`]: {
                          borderInlineEnd: n
                        }
                      },
                      '> tbody > tr > td': {
                        [`> ${t}-expanded-row-fixed`]: {
                          margin: `-${
                            e.tablePaddingVertical
                          }px -${e.tablePaddingHorizontal + e.lineWidth}px`,
                          '&::after': {
                            position: 'absolute',
                            top: 0,
                            insetInlineEnd: e.lineWidth,
                            bottom: 0,
                            borderInlineEnd: n,
                            content: '""'
                          }
                        }
                      }
                    }
                  },
                  [`
            > ${t}-content,
            > ${t}-header
          `]: { '> table': { borderTop: n } }
                },
                [`&${t}-scroll-horizontal`]: {
                  [`> ${t}-container > ${t}-body`]: {
                    '> table > tbody': {
                      [`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]: { '> td': { borderInlineEnd: 0 } }
                    }
                  }
                }
              },
              o(
                'middle',
                e.tablePaddingVerticalMiddle,
                e.tablePaddingHorizontalMiddle
              )
            ),
            o(
              'small',
              e.tablePaddingVerticalSmall,
              e.tablePaddingHorizontalSmall
            )
          ),
          { [`> ${t}-footer`]: { border: n, borderTop: 0 } }
        ),
        [`${t}-cell`]: {
          [`${t}-container:first-child`]: { borderTop: 0 },
          '&-scrollbar:not([rowspan])': {
            boxShadow: `0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`
          }
        }
      }
    }
  },
  vF = pF,
  mF = e => {
    const { componentCls: t } = e
    return {
      [`${t}-wrapper`]: {
        [`${t}-cell-ellipsis`]: p(p({}, Kn), {
          wordBreak: 'keep-all',
          [`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]: {
            overflow: 'visible',
            [`${t}-cell-content`]: {
              display: 'block',
              overflow: 'hidden',
              textOverflow: 'ellipsis'
            }
          },
          [`${t}-column-title`]: {
            overflow: 'hidden',
            textOverflow: 'ellipsis',
            wordBreak: 'keep-all'
          }
        })
      }
    }
  },
  gF = mF,
  hF = e => {
    const { componentCls: t } = e
    return {
      [`${t}-wrapper`]: {
        [`${t}-tbody > tr${t}-placeholder`]: {
          textAlign: 'center',
          color: e.colorTextDisabled,
          '&:hover > td': { background: e.colorBgContainer }
        }
      }
    }
  },
  bF = hF,
  yF = e => {
    const {
        componentCls: t,
        antCls: n,
        controlInteractiveSize: o,
        motionDurationSlow: r,
        lineWidth: i,
        paddingXS: l,
        lineType: a,
        tableBorderColor: s,
        tableExpandIconBg: u,
        tableExpandColumnWidth: c,
        borderRadius: d,
        fontSize: f,
        fontSizeSM: m,
        lineHeight: g,
        tablePaddingVertical: h,
        tablePaddingHorizontal: b,
        tableExpandedRowBg: S,
        paddingXXS: C
      } = e,
      $ = o / 2 - i,
      O = $ * 2 + i * 3,
      x = `${i}px ${a} ${s}`,
      w = C - i
    return {
      [`${t}-wrapper`]: {
        [`${t}-expand-icon-col`]: { width: c },
        [`${t}-row-expand-icon-cell`]: {
          textAlign: 'center',
          [`${t}-row-expand-icon`]: {
            display: 'inline-flex',
            float: 'none',
            verticalAlign: 'sub'
          }
        },
        [`${t}-row-indent`]: { height: 1, float: 'left' },
        [`${t}-row-expand-icon`]: p(p({}, wc(e)), {
          position: 'relative',
          float: 'left',
          boxSizing: 'border-box',
          width: O,
          height: O,
          padding: 0,
          color: 'inherit',
          lineHeight: `${O}px`,
          background: u,
          border: x,
          borderRadius: d,
          transform: `scale(${o / O})`,
          transition: `all ${r}`,
          userSelect: 'none',
          '&:focus, &:hover, &:active': { borderColor: 'currentcolor' },
          '&::before, &::after': {
            position: 'absolute',
            background: 'currentcolor',
            transition: `transform ${r} ease-out`,
            content: '""'
          },
          '&::before': {
            top: $,
            insetInlineEnd: w,
            insetInlineStart: w,
            height: i
          },
          '&::after': {
            top: w,
            bottom: w,
            insetInlineStart: $,
            width: i,
            transform: 'rotate(90deg)'
          },
          '&-collapsed::before': { transform: 'rotate(-180deg)' },
          '&-collapsed::after': { transform: 'rotate(0deg)' },
          '&-spaced': {
            '&::before, &::after': { display: 'none', content: 'none' },
            background: 'transparent',
            border: 0,
            visibility: 'hidden'
          }
        }),
        [`${t}-row-indent + ${t}-row-expand-icon`]: {
          marginTop: (f * g - i * 3) / 2 - Math.ceil((m * 1.4 - i * 3) / 2),
          marginInlineEnd: l
        },
        [`tr${t}-expanded-row`]: {
          '&, &:hover': { '> td': { background: S } },
          [`${n}-descriptions-view`]: {
            display: 'flex',
            table: { flex: 'auto', width: 'auto' }
          }
        },
        [`${t}-expanded-row-fixed`]: {
          position: 'relative',
          margin: `-${h}px -${b}px`,
          padding: `${h}px ${b}px`
        }
      }
    }
  },
  SF = yF,
  xF = e => {
    const {
        componentCls: t,
        antCls: n,
        iconCls: o,
        tableFilterDropdownWidth: r,
        tableFilterDropdownSearchWidth: i,
        paddingXXS: l,
        paddingXS: a,
        colorText: s,
        lineWidth: u,
        lineType: c,
        tableBorderColor: d,
        tableHeaderIconColor: f,
        fontSizeSM: m,
        tablePaddingHorizontal: g,
        borderRadius: h,
        motionDurationSlow: b,
        colorTextDescription: S,
        colorPrimary: C,
        tableHeaderFilterActiveBg: $,
        colorTextDisabled: O,
        tableFilterDropdownBg: x,
        tableFilterDropdownHeight: w,
        controlItemBgHover: y,
        controlItemBgActive: T,
        boxShadowSecondary: I
      } = e,
      _ = `${n}-dropdown`,
      A = `${t}-filter-dropdown`,
      z = `${n}-tree`,
      M = `${u}px ${c} ${d}`
    return [
      {
        [`${t}-wrapper`]: {
          [`${t}-filter-column`]: {
            display: 'flex',
            justifyContent: 'space-between'
          },
          [`${t}-filter-trigger`]: {
            position: 'relative',
            display: 'flex',
            alignItems: 'center',
            marginBlock: -l,
            marginInline: `${l}px ${-g / 2}px`,
            padding: `0 ${l}px`,
            color: f,
            fontSize: m,
            borderRadius: h,
            cursor: 'pointer',
            transition: `all ${b}`,
            '&:hover': { color: S, background: $ },
            '&.active': { color: C }
          }
        }
      },
      {
        [`${n}-dropdown`]: {
          [A]: p(p({}, ct(e)), {
            minWidth: r,
            backgroundColor: x,
            borderRadius: h,
            boxShadow: I,
            [`${_}-menu`]: {
              maxHeight: w,
              overflowX: 'hidden',
              border: 0,
              boxShadow: 'none',
              '&:empty::after': {
                display: 'block',
                padding: `${a}px 0`,
                color: O,
                fontSize: m,
                textAlign: 'center',
                content: '"Not Found"'
              }
            },
            [`${A}-tree`]: {
              paddingBlock: `${a}px 0`,
              paddingInline: a,
              [z]: { padding: 0 },
              [`${z}-treenode ${z}-node-content-wrapper:hover`]: {
                backgroundColor: y
              },
              [`${z}-treenode-checkbox-checked ${z}-node-content-wrapper`]: {
                '&, &:hover': { backgroundColor: T }
              }
            },
            [`${A}-search`]: {
              padding: a,
              borderBottom: M,
              '&-input': { input: { minWidth: i }, [o]: { color: O } }
            },
            [`${A}-checkall`]: {
              width: '100%',
              marginBottom: l,
              marginInlineStart: l
            },
            [`${A}-btns`]: {
              display: 'flex',
              justifyContent: 'space-between',
              padding: `${a - u}px ${a}px`,
              overflow: 'hidden',
              backgroundColor: 'inherit',
              borderTop: M
            }
          })
        }
      },
      {
        [`${n}-dropdown ${A}, ${A}-submenu`]: {
          [`${n}-checkbox-wrapper + span`]: { paddingInlineStart: a, color: s },
          '> ul': {
            maxHeight: 'calc(100vh - 130px)',
            overflowX: 'hidden',
            overflowY: 'auto'
          }
        }
      }
    ]
  },
  CF = xF,
  $F = e => {
    const {
        componentCls: t,
        lineWidth: n,
        colorSplit: o,
        motionDurationSlow: r,
        zIndexTableFixed: i,
        tableBg: l,
        zIndexTableSticky: a
      } = e,
      s = o
    return {
      [`${t}-wrapper`]: {
        [`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]: { position: 'sticky !important', zIndex: i, background: l },
        [`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]: {
          position: 'absolute',
          top: 0,
          right: { _skip_check_: !0, value: 0 },
          bottom: -n,
          width: 30,
          transform: 'translateX(100%)',
          transition: `box-shadow ${r}`,
          content: '""',
          pointerEvents: 'none'
        },
        [`${t}-cell-fix-left-all::after`]: { display: 'none' },
        [`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]: {
          position: 'absolute',
          top: 0,
          bottom: -n,
          left: { _skip_check_: !0, value: 0 },
          width: 30,
          transform: 'translateX(-100%)',
          transition: `box-shadow ${r}`,
          content: '""',
          pointerEvents: 'none'
        },
        [`${t}-container`]: {
          '&::before, &::after': {
            position: 'absolute',
            top: 0,
            bottom: 0,
            zIndex: a + 1,
            width: 30,
            transition: `box-shadow ${r}`,
            content: '""',
            pointerEvents: 'none'
          },
          '&::before': { insetInlineStart: 0 },
          '&::after': { insetInlineEnd: 0 }
        },
        [`${t}-ping-left`]: {
          [`&:not(${t}-has-fix-left) ${t}-container`]: {
            position: 'relative',
            '&::before': { boxShadow: `inset 10px 0 8px -8px ${s}` }
          },
          [`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]: { boxShadow: `inset 10px 0 8px -8px ${s}` },
          [`${t}-cell-fix-left-last::before`]: {
            backgroundColor: 'transparent !important'
          }
        },
        [`${t}-ping-right`]: {
          [`&:not(${t}-has-fix-right) ${t}-container`]: {
            position: 'relative',
            '&::after': { boxShadow: `inset -10px 0 8px -8px ${s}` }
          },
          [`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]: { boxShadow: `inset -10px 0 8px -8px ${s}` }
        }
      }
    }
  },
  wF = $F,
  OF = e => {
    const { componentCls: t, antCls: n } = e
    return {
      [`${t}-wrapper`]: {
        [`${t}-pagination${n}-pagination`]: { margin: `${e.margin}px 0` },
        [`${t}-pagination`]: {
          display: 'flex',
          flexWrap: 'wrap',
          rowGap: e.paddingXS,
          '> *': { flex: 'none' },
          '&-left': { justifyContent: 'flex-start' },
          '&-center': { justifyContent: 'center' },
          '&-right': { justifyContent: 'flex-end' }
        }
      }
    }
  },
  PF = OF,
  TF = e => {
    const { componentCls: t, tableRadius: n } = e
    return {
      [`${t}-wrapper`]: {
        [t]: {
          [`${t}-title, ${t}-header`]: { borderRadius: `${n}px ${n}px 0 0` },
          [`${t}-title + ${t}-container`]: {
            borderStartStartRadius: 0,
            borderStartEndRadius: 0,
            table: {
              borderRadius: 0,
              '> thead > tr:first-child': {
                'th:first-child': { borderRadius: 0 },
                'th:last-child': { borderRadius: 0 }
              }
            }
          },
          '&-container': {
            borderStartStartRadius: n,
            borderStartEndRadius: n,
            'table > thead > tr:first-child': {
              '> *:first-child': { borderStartStartRadius: n },
              '> *:last-child': { borderStartEndRadius: n }
            }
          },
          '&-footer': { borderRadius: `0 0 ${n}px ${n}px` }
        }
      }
    }
  },
  IF = TF,
  EF = e => {
    const { componentCls: t } = e
    return {
      [`${t}-wrapper-rtl`]: {
        direction: 'rtl',
        table: { direction: 'rtl' },
        [`${t}-pagination-left`]: { justifyContent: 'flex-end' },
        [`${t}-pagination-right`]: { justifyContent: 'flex-start' },
        [`${t}-row-expand-icon`]: {
          '&::after': { transform: 'rotate(-90deg)' },
          '&-collapsed::before': { transform: 'rotate(180deg)' },
          '&-collapsed::after': { transform: 'rotate(0deg)' }
        }
      }
    }
  },
  _F = EF,
  RF = e => {
    const {
      componentCls: t,
      antCls: n,
      iconCls: o,
      fontSizeIcon: r,
      paddingXS: i,
      tableHeaderIconColor: l,
      tableHeaderIconColorHover: a
    } = e
    return {
      [`${t}-wrapper`]: {
        [`${t}-selection-col`]: { width: e.tableSelectionColumnWidth },
        [`${t}-bordered ${t}-selection-col`]: {
          width: e.tableSelectionColumnWidth + i * 2
        },
        [`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column
      `]: {
          paddingInlineEnd: e.paddingXS,
          paddingInlineStart: e.paddingXS,
          textAlign: 'center',
          [`${n}-radio-wrapper`]: { marginInlineEnd: 0 }
        },
        [`table tr th${t}-selection-column${t}-cell-fix-left`]: {
          zIndex: e.zIndexTableFixed + 1
        },
        [`table tr th${t}-selection-column::after`]: {
          backgroundColor: 'transparent !important'
        },
        [`${t}-selection`]: {
          position: 'relative',
          display: 'inline-flex',
          flexDirection: 'column'
        },
        [`${t}-selection-extra`]: {
          position: 'absolute',
          top: 0,
          zIndex: 1,
          cursor: 'pointer',
          transition: `all ${e.motionDurationSlow}`,
          marginInlineStart: '100%',
          paddingInlineStart: `${e.tablePaddingHorizontal / 4}px`,
          [o]: {
            color: l,
            fontSize: r,
            verticalAlign: 'baseline',
            '&:hover': { color: a }
          }
        }
      }
    }
  },
  AF = RF,
  DF = e => {
    const { componentCls: t } = e,
      n = (o, r, i, l) => ({
        [`${t}${t}-${o}`]: {
          fontSize: l,
          [`
        ${t}-title,
        ${t}-footer,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]: { padding: `${r}px ${i}px` },
          [`${t}-filter-trigger`]: { marginInlineEnd: `-${i / 2}px` },
          [`${t}-expanded-row-fixed`]: { margin: `-${r}px -${i}px` },
          [`${t}-tbody`]: {
            [`${t}-wrapper:only-child ${t}`]: {
              marginBlock: `-${r}px`,
              marginInline: `${e.tableExpandColumnWidth - i}px -${i}px`
            }
          },
          [`${t}-selection-column`]: { paddingInlineStart: `${i / 4}px` }
        }
      })
    return {
      [`${t}-wrapper`]: p(
        p(
          {},
          n(
            'middle',
            e.tablePaddingVerticalMiddle,
            e.tablePaddingHorizontalMiddle,
            e.tableFontSizeMiddle
          )
        ),
        n(
          'small',
          e.tablePaddingVerticalSmall,
          e.tablePaddingHorizontalSmall,
          e.tableFontSizeSmall
        )
      )
    }
  },
  MF = DF,
  NF = e => {
    const { componentCls: t } = e
    return {
      [`${t}-wrapper ${t}-resize-handle`]: {
        position: 'absolute',
        top: 0,
        height: '100% !important',
        bottom: 0,
        left: ' auto !important',
        right: ' -8px',
        cursor: 'col-resize',
        touchAction: 'none',
        userSelect: 'auto',
        width: '16px',
        zIndex: 1,
        '&-line': {
          display: 'block',
          width: '1px',
          marginLeft: '7px',
          height: '100% !important',
          backgroundColor: e.colorPrimary,
          opacity: 0
        },
        '&:hover &-line': { opacity: 1 }
      },
      [`${t}-wrapper  ${t}-resize-handle.dragging`]: {
        overflow: 'hidden',
        [`${t}-resize-handle-line`]: { opacity: 1 },
        '&:before': {
          position: 'absolute',
          top: 0,
          bottom: 0,
          content: '" "',
          width: '200vw',
          transform: 'translateX(-50%)',
          opacity: 0
        }
      }
    }
  },
  BF = NF,
  zF = e => {
    const {
      componentCls: t,
      marginXXS: n,
      fontSizeIcon: o,
      tableHeaderIconColor: r,
      tableHeaderIconColorHover: i
    } = e
    return {
      [`${t}-wrapper`]: {
        [`${t}-thead th${t}-column-has-sorters`]: {
          outline: 'none',
          cursor: 'pointer',
          transition: `all ${e.motionDurationSlow}`,
          '&:hover': {
            background: e.tableHeaderSortHoverBg,
            '&::before': { backgroundColor: 'transparent !important' }
          },
          '&:focus-visible': { color: e.colorPrimary },
          [`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]: { background: e.tableFixedHeaderSortActiveBg }
        },
        [`${t}-thead th${t}-column-sort`]: {
          background: e.tableHeaderSortBg,
          '&::before': { backgroundColor: 'transparent !important' }
        },
        [`td${t}-column-sort`]: { background: e.tableBodySortBg },
        [`${t}-column-title`]: { position: 'relative', zIndex: 1, flex: 1 },
        [`${t}-column-sorters`]: {
          display: 'flex',
          flex: 'auto',
          alignItems: 'center',
          justifyContent: 'space-between',
          '&::after': {
            position: 'absolute',
            inset: 0,
            width: '100%',
            height: '100%',
            content: '""'
          }
        },
        [`${t}-column-sorter`]: {
          marginInlineStart: n,
          color: r,
          fontSize: 0,
          transition: `color ${e.motionDurationSlow}`,
          '&-inner': {
            display: 'inline-flex',
            flexDirection: 'column',
            alignItems: 'center'
          },
          '&-up, &-down': {
            fontSize: o,
            '&.active': { color: e.colorPrimary }
          },
          [`${t}-column-sorter-up + ${t}-column-sorter-down`]: {
            marginTop: '-0.3em'
          }
        },
        [`${t}-column-sorters:hover ${t}-column-sorter`]: { color: i }
      }
    }
  },
  LF = zF,
  FF = e => {
    const {
        componentCls: t,
        opacityLoading: n,
        tableScrollThumbBg: o,
        tableScrollThumbBgHover: r,
        tableScrollThumbSize: i,
        tableScrollBg: l,
        zIndexTableSticky: a
      } = e,
      s = `${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`
    return {
      [`${t}-wrapper`]: {
        [`${t}-sticky`]: {
          '&-holder': {
            position: 'sticky',
            zIndex: a,
            background: e.colorBgContainer
          },
          '&-scroll': {
            position: 'sticky',
            bottom: 0,
            height: `${i}px !important`,
            zIndex: a,
            display: 'flex',
            alignItems: 'center',
            background: l,
            borderTop: s,
            opacity: n,
            '&:hover': { transformOrigin: 'center bottom' },
            '&-bar': {
              height: i,
              backgroundColor: o,
              borderRadius: 100,
              transition: `all ${e.motionDurationSlow}, transform none`,
              position: 'absolute',
              bottom: 0,
              '&:hover, &-active': { backgroundColor: r }
            }
          }
        }
      }
    }
  },
  HF = FF,
  kF = e => {
    const { componentCls: t, lineWidth: n, tableBorderColor: o } = e,
      r = `${n}px ${e.lineType} ${o}`
    return {
      [`${t}-wrapper`]: {
        [`${t}-summary`]: {
          position: 'relative',
          zIndex: e.zIndexTableFixed,
          background: e.tableBg,
          '> tr': { '> th, > td': { borderBottom: r } }
        },
        [`div${t}-summary`]: { boxShadow: `0 -${n}px 0 ${o}` }
      }
    }
  },
  Yv = kF,
  jF = e => {
    const {
        componentCls: t,
        fontWeightStrong: n,
        tablePaddingVertical: o,
        tablePaddingHorizontal: r,
        lineWidth: i,
        lineType: l,
        tableBorderColor: a,
        tableFontSize: s,
        tableBg: u,
        tableRadius: c,
        tableHeaderTextColor: d,
        motionDurationMid: f,
        tableHeaderBg: m,
        tableHeaderCellSplitColor: g,
        tableRowHoverBg: h,
        tableSelectedRowBg: b,
        tableSelectedRowHoverBg: S,
        tableFooterTextColor: C,
        tableFooterBg: $,
        paddingContentVerticalLG: O
      } = e,
      x = `${i}px ${l} ${a}`
    return {
      [`${t}-wrapper`]: p(p({ clear: 'both', maxWidth: '100%' }, Wn()), {
        [t]: p(p({}, ct(e)), {
          fontSize: s,
          background: u,
          borderRadius: `${c}px ${c}px 0 0`
        }),
        table: {
          width: '100%',
          textAlign: 'start',
          borderRadius: `${c}px ${c}px 0 0`,
          borderCollapse: 'separate',
          borderSpacing: 0
        },
        [`
          ${t}-thead > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]: {
          position: 'relative',
          padding: `${O}px ${r}px`,
          overflowWrap: 'break-word'
        },
        [`${t}-title`]: { padding: `${o}px ${r}px` },
        [`${t}-thead`]: {
          '\n          > tr > th,\n          > tr > td\n        ': {
            position: 'relative',
            color: d,
            fontWeight: n,
            textAlign: 'start',
            background: m,
            borderBottom: x,
            transition: `background ${f} ease`,
            "&[colspan]:not([colspan='1'])": { textAlign: 'center' },
            [`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]: {
              position: 'absolute',
              top: '50%',
              insetInlineEnd: 0,
              width: 1,
              height: '1.6em',
              backgroundColor: g,
              transform: 'translateY(-50%)',
              transition: `background-color ${f}`,
              content: '""'
            }
          },
          '> tr:not(:last-child) > th[colspan]': { borderBottom: 0 }
        },
        [`${t}:not(${t}-bordered)`]: {
          [`${t}-tbody`]: {
            '> tr': {
              '> td': { borderTop: x, borderBottom: 'transparent' },
              '&:last-child > td': { borderBottom: x },
              [`&:first-child > td,
              &${t}-measure-row + tr > td`]: {
                borderTop: 'none',
                borderTopColor: 'transparent'
              }
            }
          }
        },
        [`${t}${t}-bordered`]: {
          [`${t}-tbody`]: { '> tr': { '> td': { borderBottom: x } } }
        },
        [`${t}-tbody`]: {
          '> tr': {
            '> td': {
              transition: `background ${f}, border-color ${f}`,
              [`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]: {
                [t]: {
                  marginBlock: `-${o}px`,
                  marginInline: `${e.tableExpandColumnWidth - r}px -${r}px`,
                  [`${t}-tbody > tr:last-child > td`]: {
                    borderBottom: 0,
                    '&:first-child, &:last-child': { borderRadius: 0 }
                  }
                }
              }
            },
            [`
            &${t}-row:hover > td,
            > td${t}-cell-row-hover
          `]: { background: h },
            [`&${t}-row-selected`]: {
              '> td': { background: b },
              '&:hover > td': { background: S }
            }
          }
        },
        [`${t}-footer`]: { padding: `${o}px ${r}px`, color: C, background: $ }
      })
    }
  },
  KF = pt('Table', e => {
    const {
        controlItemBgActive: t,
        controlItemBgActiveHover: n,
        colorTextPlaceholder: o,
        colorTextHeading: r,
        colorSplit: i,
        colorBorderSecondary: l,
        fontSize: a,
        padding: s,
        paddingXS: u,
        paddingSM: c,
        controlHeight: d,
        colorFillAlter: f,
        colorIcon: m,
        colorIconHover: g,
        opacityLoading: h,
        colorBgContainer: b,
        borderRadiusLG: S,
        colorFillContent: C,
        colorFillSecondary: $,
        controlInteractiveSize: O
      } = e,
      x = new ut(m),
      w = new ut(g),
      y = t,
      T = 2,
      I = new ut($).onBackground(b).toHexString(),
      _ = new ut(C).onBackground(b).toHexString(),
      A = new ut(f).onBackground(b).toHexString(),
      z = Ze(e, {
        tableFontSize: a,
        tableBg: b,
        tableRadius: S,
        tablePaddingVertical: s,
        tablePaddingHorizontal: s,
        tablePaddingVerticalMiddle: c,
        tablePaddingHorizontalMiddle: u,
        tablePaddingVerticalSmall: u,
        tablePaddingHorizontalSmall: u,
        tableBorderColor: l,
        tableHeaderTextColor: r,
        tableHeaderBg: A,
        tableFooterTextColor: r,
        tableFooterBg: A,
        tableHeaderCellSplitColor: l,
        tableHeaderSortBg: I,
        tableHeaderSortHoverBg: _,
        tableHeaderIconColor: x
          .clone()
          .setAlpha(x.getAlpha() * h)
          .toRgbString(),
        tableHeaderIconColorHover: w
          .clone()
          .setAlpha(w.getAlpha() * h)
          .toRgbString(),
        tableBodySortBg: A,
        tableFixedHeaderSortActiveBg: I,
        tableHeaderFilterActiveBg: C,
        tableFilterDropdownBg: b,
        tableRowHoverBg: A,
        tableSelectedRowBg: y,
        tableSelectedRowHoverBg: n,
        zIndexTableFixed: T,
        zIndexTableSticky: T + 1,
        tableFontSizeMiddle: a,
        tableFontSizeSmall: a,
        tableSelectionColumnWidth: d,
        tableExpandIconBg: b,
        tableExpandColumnWidth: O + 2 * e.padding,
        tableExpandedRowBg: f,
        tableFilterDropdownWidth: 120,
        tableFilterDropdownHeight: 264,
        tableFilterDropdownSearchWidth: 140,
        tableScrollThumbSize: 8,
        tableScrollThumbBg: o,
        tableScrollThumbBgHover: r,
        tableScrollBg: i
      })
    return [
      jF(z),
      PF(z),
      Yv(z),
      LF(z),
      CF(z),
      vF(z),
      IF(z),
      SF(z),
      Yv(z),
      bF(z),
      AF(z),
      wF(z),
      HF(z),
      gF(z),
      MF(z),
      BF(z),
      _F(z)
    ]
  }),
  WF = [],
  Gy = () => ({
    prefixCls: at(),
    columns: $t(),
    rowKey: Pt([String, Function]),
    tableLayout: at(),
    rowClassName: Pt([String, Function]),
    title: _e(),
    footer: _e(),
    id: at(),
    showHeader: Re(),
    components: Xe(),
    customRow: _e(),
    customHeaderRow: _e(),
    direction: at(),
    expandFixed: Pt([Boolean, String]),
    expandColumnWidth: Number,
    expandedRowKeys: $t(),
    defaultExpandedRowKeys: $t(),
    expandedRowRender: _e(),
    expandRowByClick: Re(),
    expandIcon: _e(),
    onExpand: _e(),
    onExpandedRowsChange: _e(),
    'onUpdate:expandedRowKeys': _e(),
    defaultExpandAllRows: Re(),
    indentSize: Number,
    expandIconColumnIndex: Number,
    showExpandColumn: Re(),
    expandedRowClassName: _e(),
    childrenColumnName: at(),
    rowExpandable: _e(),
    sticky: Pt([Boolean, Object]),
    dropdownPrefixCls: String,
    dataSource: $t(),
    pagination: Pt([Boolean, Object]),
    loading: Pt([Boolean, Object]),
    size: at(),
    bordered: Re(),
    locale: Xe(),
    onChange: _e(),
    onResizeColumn: _e(),
    rowSelection: Xe(),
    getPopupContainer: _e(),
    scroll: Xe(),
    sortDirections: $t(),
    showSorterTooltip: Pt([Boolean, Object], !0),
    transformCellText: _e()
  }),
  VF = J({
    name: 'InternalTable',
    inheritAttrs: !1,
    props: mt(p(p({}, Gy()), { contextSlots: Xe() }), { rowKey: 'key' }),
    setup(e, t) {
      let { attrs: n, slots: o, expose: r, emit: i } = t
      vt(
        !(typeof e.rowKey == 'function' && e.rowKey.length > 1),
        'Table',
        '`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.'
      ),
        bz(P(() => e.contextSlots)),
        yz({
          onResizeColumn: (ve, ye) => {
            i('resizeColumn', ve, ye)
          }
        })
      const l = zh(),
        a = P(() => {
          const ve = new Set(Object.keys(l.value).filter(ye => l.value[ye]))
          return e.columns.filter(
            ye => !ye.responsive || ye.responsive.some(te => ve.has(te))
          )
        }),
        {
          size: s,
          renderEmpty: u,
          direction: c,
          prefixCls: d,
          configProvider: f
        } = je('table', e),
        [m, g] = KF(d),
        h = P(() => {
          var ve
          return (
            e.transformCellText ||
            ((ve = f.transformCellText) === null || ve === void 0
              ? void 0
              : ve.value)
          )
        }),
        [b] = Sc('Table', jn.Table, ot(e, 'locale')),
        S = P(() => e.dataSource || WF),
        C = P(() => f.getPrefixCls('dropdown', e.dropdownPrefixCls)),
        $ = P(() => e.childrenColumnName || 'children'),
        O = P(() =>
          S.value.some(ve => (ve == null ? void 0 : ve[$.value]))
            ? 'nest'
            : e.expandedRowRender
            ? 'row'
            : null
        ),
        x = dt({ body: null }),
        w = ve => {
          p(x, ve)
        },
        y = P(() =>
          typeof e.rowKey == 'function'
            ? e.rowKey
            : ve => (ve == null ? void 0 : ve[e.rowKey])
        ),
        [T] = dL(S, $, y),
        I = {},
        _ = function(ve, ye) {
          let te =
            arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
          const { pagination: Z, scroll: fe, onChange: xe } = e,
            be = p(p({}, I), ve)
          te &&
            (I.resetPagination(),
            be.pagination.current && (be.pagination.current = 1),
            Z && Z.onChange && Z.onChange(1, be.pagination.pageSize)),
            fe &&
              fe.scrollToFirstRowOnChange !== !1 &&
              x.body &&
              UC(0, { getContainer: () => x.body }),
            xe == null ||
              xe(be.pagination, be.filters, be.sorter, {
                currentDataSource: qv(
                  Zs(S.value, be.sorterStates, $.value),
                  be.filterStates
                ),
                action: ye
              })
        },
        A = (ve, ye) => {
          _({ sorter: ve, sorterStates: ye }, 'sort', !1)
        },
        [z, M, j, E] = SL({
          prefixCls: d,
          mergedColumns: a,
          onSorterChange: A,
          sortDirections: P(() => e.sortDirections || ['ascend', 'descend']),
          tableLocale: b,
          showSorterTooltip: ot(e, 'showSorterTooltip')
        }),
        R = P(() => Zs(S.value, M.value, $.value)),
        L = (ve, ye) => {
          _({ filters: ve, filterStates: ye }, 'filter', !0)
        },
        [W, D, F] = cF({
          prefixCls: d,
          locale: b,
          dropdownPrefixCls: C,
          mergedColumns: a,
          onFilterChange: L,
          getPopupContainer: ot(e, 'getPopupContainer')
        }),
        H = P(() => qv(R.value, D.value)),
        [B] = fF(ot(e, 'contextSlots')),
        X = P(() => {
          const ve = {},
            ye = F.value
          return (
            Object.keys(ye).forEach(te => {
              ye[te] !== null && (ve[te] = ye[te])
            }),
            p(p({}, j.value), { filters: ve })
          )
        }),
        [ee] = uF(X),
        de = (ve, ye) => {
          _(
            {
              pagination: p(p({}, I.pagination), { current: ve, pageSize: ye })
            },
            'paginate'
          )
        },
        [ie, Q] = uL(
          P(() => H.value.length),
          ot(e, 'pagination'),
          de
        )
      Me(() => {
        ;(I.sorter = E.value),
          (I.sorterStates = M.value),
          (I.filters = F.value),
          (I.filterStates = D.value),
          (I.pagination =
            e.pagination === !1 ? {} : cL(ie.value, e.pagination)),
          (I.resetPagination = Q)
      })
      const se = P(() => {
        if (e.pagination === !1 || !ie.value.pageSize) return H.value
        const { current: ve = 1, total: ye, pageSize: te = Xs } = ie.value
        return (
          vt(ve > 0, 'Table', '`current` should be positive number.'),
          H.value.length < ye
            ? H.value.length > te
              ? H.value.slice((ve - 1) * te, ve * te)
              : H.value
            : H.value.slice((ve - 1) * te, ve * te)
        )
      })
      Me(
        () => {
          it(() => {
            const { total: ve, pageSize: ye = Xs } = ie.value
            H.value.length < ve &&
              H.value.length > ye &&
              vt(
                !1,
                'Table',
                '`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.'
              )
          })
        },
        { flush: 'post' }
      )
      const q = P(() =>
          e.showExpandColumn === !1
            ? -1
            : O.value === 'nest' && e.expandIconColumnIndex === void 0
            ? e.rowSelection
              ? 1
              : 0
            : e.expandIconColumnIndex > 0 && e.rowSelection
            ? e.expandIconColumnIndex - 1
            : e.expandIconColumnIndex
        ),
        K = ne()
      ge(
        () => e.rowSelection,
        () => {
          K.value = e.rowSelection ? p({}, e.rowSelection) : e.rowSelection
        },
        { deep: !0, immediate: !0 }
      )
      const [U, ue] = pL(K, {
          prefixCls: d,
          data: H,
          pageData: se,
          getRowKey: y,
          getRecordByKey: T,
          expandType: O,
          childrenColumnName: $,
          locale: b,
          getPopupContainer: P(() => e.getPopupContainer)
        }),
        me = (ve, ye, te) => {
          let Z
          const { rowClassName: fe } = e
          return (
            typeof fe == 'function' ? (Z = oe(fe(ve, ye, te))) : (Z = oe(fe)),
            oe(
              { [`${d.value}-row-selected`]: ue.value.has(y.value(ve, ye)) },
              Z
            )
          )
        }
      r({ selectedKeySet: ue })
      const he = P(() => (typeof e.indentSize == 'number' ? e.indentSize : 15)),
        Pe = ve => ee(U(W(z(B(ve)))))
      return () => {
        var ve
        const {
          expandIcon: ye = o.expandIcon || dF(b.value),
          pagination: te,
          loading: Z,
          bordered: fe
        } = e
        let xe, be
        if (
          te !== !1 &&
          !((ve = ie.value) === null || ve === void 0) &&
          ve.total
        ) {
          let G
          ie.value.size
            ? (G = ie.value.size)
            : (G =
                s.value === 'small' || s.value === 'middle' ? 'small' : void 0)
          const le = De =>
              v(
                QB,
                N(
                  N({}, ie.value),
                  {},
                  {
                    class: [
                      `${d.value}-pagination ${d.value}-pagination-${De}`,
                      ie.value.class
                    ],
                    size: G
                  }
                ),
                null
              ),
            $e = c.value === 'rtl' ? 'left' : 'right',
            { position: Te } = ie.value
          if (Te !== null && Array.isArray(Te)) {
            const De = Te.find(pe => pe.includes('top')),
              ae = Te.find(pe => pe.includes('bottom')),
              ce = Te.every(pe => `${pe}` == 'none')
            !De && !ae && !ce && (be = le($e)),
              De && (xe = le(De.toLowerCase().replace('top', ''))),
              ae && (be = le(ae.toLowerCase().replace('bottom', '')))
          } else be = le($e)
        }
        let Ce
        typeof Z == 'boolean'
          ? (Ce = { spinning: Z })
          : typeof Z == 'object' && (Ce = p({ spinning: !0 }, Z))
        const Ne = oe(
            `${d.value}-wrapper`,
            { [`${d.value}-wrapper-rtl`]: c.value === 'rtl' },
            n.class,
            g.value
          ),
          Y = rt(e, ['columns'])
        return m(
          v('div', { class: Ne, style: n.style }, [
            v(Nr, N({ spinning: !1 }, Ce), {
              default: () => [
                xe,
                v(
                  aL,
                  N(
                    N(N({}, n), Y),
                    {},
                    {
                      expandedRowKeys: e.expandedRowKeys,
                      defaultExpandedRowKeys: e.defaultExpandedRowKeys,
                      expandIconColumnIndex: q.value,
                      indentSize: he.value,
                      expandIcon: ye,
                      columns: a.value,
                      direction: c.value,
                      prefixCls: d.value,
                      class: oe({
                        [`${d.value}-middle`]: s.value === 'middle',
                        [`${d.value}-small`]: s.value === 'small',
                        [`${d.value}-bordered`]: fe,
                        [`${d.value}-empty`]: S.value.length === 0
                      }),
                      data: se.value,
                      rowKey: y.value,
                      rowClassName: me,
                      internalHooks: Us,
                      internalRefs: x,
                      onUpdateInternalRefs: w,
                      transformColumns: Pe,
                      transformCellText: h.value
                    }
                  ),
                  p(p({}, o), {
                    emptyText: () => {
                      var G, le
                      return (
                        ((G = o.emptyText) === null || G === void 0
                          ? void 0
                          : G.call(o)) ||
                        ((le = e.locale) === null || le === void 0
                          ? void 0
                          : le.emptyText) ||
                        u('Table')
                      )
                    }
                  })
                ),
                be
              ]
            })
          ])
        )
      }
    }
  }),
  GF = J({
    name: 'ATable',
    inheritAttrs: !1,
    props: mt(Gy(), { rowKey: 'key' }),
    slots: Object,
    setup(e, t) {
      let { attrs: n, slots: o, expose: r } = t
      const i = ne()
      return (
        r({ table: i }),
        () => {
          var l
          const a =
            e.columns ||
            Ny((l = o.default) === null || l === void 0 ? void 0 : l.call(o))
          return v(
            VF,
            N(
              N(N({ ref: i }, n), e),
              {},
              {
                columns: a || [],
                expandedRowRender: o.expandedRowRender || e.expandedRowRender,
                contextSlots: p({}, o)
              }
            ),
            o
          )
        }
      )
    }
  }),
  Ka = GF,
  Wa = J({
    name: 'ATableColumn',
    slots: Object,
    render() {
      return null
    }
  }),
  Va = J({
    name: 'ATableColumnGroup',
    slots: Object,
    __ANT_TABLE_COLUMN_GROUP: !0,
    render() {
      return null
    }
  }),
  nc = qz,
  oc = Qz,
  Ga = p(Zz, { Cell: oc, Row: nc, name: 'ATableSummary' }),
  Ua = p(Ka, {
    SELECTION_ALL: qs,
    SELECTION_INVERT: Ys,
    SELECTION_NONE: Js,
    SELECTION_COLUMN: wn,
    EXPAND_COLUMN: Ln,
    Column: Wa,
    ColumnGroup: Va,
    Summary: Ga,
    install: e => (
      e.component(Ga.name, Ga),
      e.component(oc.name, oc),
      e.component(nc.name, nc),
      e.component(Ka.name, Ka),
      e.component(Wa.name, Wa),
      e.component(Va.name, Va),
      e
    )
  })
function Jv(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) {
        UF(e, r, n[r])
      })
  }
  return e
}
function UF(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 = Jv({}, t, n.attrs)
  return v(et, Jv({}, o, { icon: dS }), null)
}
rd.displayName = 'EnterOutlined'
rd.inheritAttrs = !1
const XF = rd,
  qF = (e, t, n, o) => {
    const { sizeMarginHeadingVerticalEnd: r, fontWeightStrong: i } = o
    return {
      marginBottom: r,
      color: n,
      fontWeight: i,
      fontSize: e,
      lineHeight: t
    }
  },
  YF = 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}
    `
        ] = qF(
          e[`fontSizeHeading${o}`],
          e[`lineHeightHeading${o}`],
          e.colorTextHeading,
          e
        )
      }),
      n
    )
  },
  JF = e => {
    const { componentCls: t } = e
    return {
      'a&, a': p(p({}, wc(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' }
        }
      })
    }
  },
  QF = () => ({
    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, backgroundColor: fS[2] },
    'u, ins': { textDecoration: 'underline', textDecorationSkipInk: 'auto' },
    's, del': { textDecoration: 'line-through' },
    strong: { fontWeight: 600 },
    '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, 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,
      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
    }
  }),
  ZF = e => {
    const { componentCls: t } = e,
      o = Eu(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,
          fontWeight: 'normal',
          fontSize: e.fontSize,
          fontStyle: 'normal',
          pointerEvents: 'none'
        },
        textarea: {
          margin: '0!important',
          MozTransition: 'none',
          height: '1em'
        }
      }
    }
  },
  eH = e => ({
    '&-copy-success': {
      '\n    &,\n    &:hover,\n    &:focus': { color: e.colorSuccess }
    }
  }),
  tH = () => ({
    '\n  a&-ellipsis,\n  span&-ellipsis\n  ': {
      display: 'inline-block',
      maxWidth: '100%'
    },
    '&-single-line': { whiteSpace: 'nowrap' },
    '&-ellipsis-single-line': {
      overflow: 'hidden',
      textOverflow: 'ellipsis',
      'a&, span&': { verticalAlign: 'bottom' }
    },
    '&-ellipsis-multiple-line': {
      display: '-webkit-box',
      overflow: 'hidden',
      WebkitLineClamp: 3,
      WebkitBoxOrient: 'vertical'
    }
  }),
  nH = e => {
    const { componentCls: t, sizeMarginHeadingVerticalStart: n } = e
    return {
      [t]: p(
        p(
          p(
            p(
              p(
                p(
                  p(
                    p(
                      p(
                        {
                          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'
                          }
                        },
                        YF(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
                          }
                        }
                      }
                    ),
                    QF()
                  ),
                  JF(e)
                ),
                {
                  [`
        ${t}-expand,
        ${t}-edit,
        ${t}-copy
      `]: p(p({}, wc(e)), { marginInlineStart: e.marginXXS })
                }
              ),
              ZF(e)
            ),
            eH(e)
          ),
          tH()
        ),
        { '&-rtl': { direction: 'rtl' } }
      )
    }
  },
  Uy = pt('Typography', e => [nH(e)], {
    sizeMarginHeadingVerticalStart: '1.2em',
    sizeMarginHeadingVerticalEnd: '0.5em'
  }),
  oH = () => ({
    prefixCls: String,
    value: String,
    maxlength: Number,
    autoSize: { type: [Boolean, Object] },
    onSave: Function,
    onCancel: Function,
    onEnd: Function,
    onChange: Function,
    originContent: String,
    direction: String,
    component: String
  }),
  rH = J({
    compatConfig: { MODE: 3 },
    name: 'Editable',
    inheritAttrs: !1,
    props: oH(),
    setup(e, t) {
      let { emit: n, slots: o, attrs: r } = t
      const { prefixCls: i } = Ir(e),
        l = dt({
          current: e.value || '',
          lastKeyCode: void 0,
          inComposition: !1,
          cancelFlag: !1
        })
      ge(
        () => e.value,
        C => {
          l.current = C
        }
      )
      const a = ne()
      We(() => {
        var C
        if (a.value) {
          const $ =
              (C = a.value) === null || C === void 0
                ? void 0
                : C.resizableTextArea,
            O = $ == null ? void 0 : $.textArea
          O.focus()
          const { length: x } = O.value
          O.setSelectionRange(x, x)
        }
      })
      function s(C) {
        a.value = C
      }
      function u(C) {
        let {
          target: { value: $ }
        } = C
        ;(l.current = $.replace(/[\r\n]/g, '')), n('change', l.current)
      }
      function c() {
        l.inComposition = !0
      }
      function d() {
        l.inComposition = !1
      }
      function f(C) {
        const { keyCode: $ } = C
        $ === Oe.ENTER && C.preventDefault(),
          !l.inComposition && (l.lastKeyCode = $)
      }
      function m(C) {
        const { keyCode: $, ctrlKey: O, altKey: x, metaKey: w, shiftKey: y } = C
        l.lastKeyCode === $ &&
          !l.inComposition &&
          !O &&
          !x &&
          !w &&
          !y &&
          ($ === Oe.ENTER
            ? (h(), n('end'))
            : $ === Oe.ESC && ((l.current = e.originContent), n('cancel')))
      }
      function g() {
        h()
      }
      function h() {
        n('save', l.current.trim())
      }
      const [b, S] = Uy(i)
      return () => {
        const C = oe(
          {
            [`${i.value}`]: !0,
            [`${i.value}-edit-content`]: !0,
            [`${i.value}-rtl`]: e.direction === 'rtl',
            [e.component ? `${i.value}-${e.component}` : '']: !0
          },
          r.class,
          S.value
        )
        return b(
          v('div', N(N({}, r), {}, { class: C }), [
            v(
              hy,
              {
                ref: s,
                maxlength: e.maxlength,
                value: l.current,
                onChange: u,
                onKeydown: f,
                onKeyup: m,
                onCompositionstart: c,
                onCompositionend: d,
                onBlur: g,
                rows: 1,
                autoSize: e.autoSize === void 0 || e.autoSize
              },
              null
            ),
            o.enterIcon
              ? o.enterIcon({
                  className: `${e.prefixCls}-edit-content-confirm`
                })
              : v(XF, { class: `${e.prefixCls}-edit-content-confirm` }, null)
          ])
        )
      }
    }
  }),
  iH = rH,
  lH = 3,
  aH = 8
let Bt
const Xa = { padding: 0, margin: 0, display: 'inline', lineHeight: 'inherit' }
function Xy(e, t) {
  e.setAttribute('aria-hidden', 'true')
  const n = window.getComputedStyle(t),
    o = y1(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 sH(e) {
  const t = document.createElement('div')
  Xy(t, e),
    t.appendChild(document.createTextNode('text')),
    document.body.appendChild(t)
  const n = t.getBoundingClientRect().height
  return document.body.removeChild(t), n
}
const cH = (e, t, n, o, r) => {
  Bt ||
    ((Bt = document.createElement('div')),
    Bt.setAttribute('aria-hidden', 'true'),
    document.body.appendChild(Bt))
  const { rows: i, suffix: l = '' } = t,
    a = sH(e),
    s = Math.round(a * i * 100) / 100
  Xy(Bt, e)
  const u = _0({
    render() {
      return v('div', { style: Xa }, [
        v('span', { style: Xa }, [n, l]),
        v('span', { style: Xa }, [o])
      ])
    }
  })
  u.mount(Bt)
  function c() {
    return Math.round(Bt.getBoundingClientRect().height * 100) / 100 - 0.1 <= s
  }
  if (c()) return u.unmount(), { content: n, text: Bt.innerHTML, ellipsis: !1 }
  const d = Array.prototype.slice
      .apply(Bt.childNodes[0].childNodes[0].cloneNode(!0).childNodes)
      .filter($ => {
        let { nodeType: O, data: x } = $
        return O !== aH && x !== ''
      }),
    f = Array.prototype.slice.apply(
      Bt.childNodes[0].childNodes[1].cloneNode(!0).childNodes
    )
  u.unmount()
  const m = []
  Bt.innerHTML = ''
  const g = document.createElement('span')
  Bt.appendChild(g)
  const h = document.createTextNode(r + l)
  g.appendChild(h),
    f.forEach($ => {
      Bt.appendChild($)
    })
  function b($) {
    g.insertBefore($, h)
  }
  function S($, O) {
    let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0,
      w =
        arguments.length > 3 && arguments[3] !== void 0
          ? arguments[3]
          : O.length,
      y = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0
    const T = Math.floor((x + w) / 2),
      I = O.slice(0, T)
    if ((($.textContent = I), x >= w - 1))
      for (let _ = w; _ >= x; _ -= 1) {
        const A = O.slice(0, _)
        if ((($.textContent = A), c() || !A))
          return _ === O.length
            ? { finished: !1, vNode: O }
            : { finished: !0, vNode: A }
      }
    return c() ? S($, O, T, w, T) : S($, O, x, T, y)
  }
  function C($) {
    if ($.nodeType === lH) {
      const x = $.textContent || '',
        w = document.createTextNode(x)
      return b(w), S(w, x)
    }
    return { finished: !1, vNode: null }
  }
  return (
    d.some($ => {
      const { finished: O, vNode: x } = C($)
      return x && m.push(x), O
    }),
    { content: m, text: Bt.innerHTML, ellipsis: !0 }
  )
}
var uH =
  (globalThis && globalThis.__rest) ||
  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 dH = () => ({ prefixCls: String, direction: String, component: String }),
  fH = J({
    name: 'ATypography',
    inheritAttrs: !1,
    props: dH(),
    setup(e, t) {
      let { slots: n, attrs: o } = t
      const { prefixCls: r, direction: i } = je('typography', e),
        [l, a] = Uy(r)
      return () => {
        var s
        const u = p(p({}, e), o),
          { prefixCls: c, direction: d, component: f = 'article' } = u,
          m = uH(u, ['prefixCls', 'direction', 'component'])
        return l(
          v(
            f,
            N(
              N({}, m),
              {},
              {
                class: oe(
                  r.value,
                  { [`${r.value}-rtl`]: i.value === 'rtl' },
                  o.class,
                  a.value
                )
              }
            ),
            {
              default: () => [
                (s = n.default) === null || s === void 0 ? void 0 : s.call(n)
              ]
            }
          )
        )
      }
    }
  }),
  _t = fH,
  pH = () => {
    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()
      }
    )
  },
  vH = pH,
  Qv = { 'text/plain': 'Text', 'text/html': 'Url', default: 'Text' },
  mH = 'Copy to clipboard: #{key}, Enter'
function gH(e) {
  const t = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C'
  return e.replace(/#{\s*key\s*}/g, t)
}
function hH(e, t) {
  let n,
    o,
    r,
    i,
    l,
    a = !1
  t || (t = {})
  const s = t.debug || !1
  try {
    if (
      ((o = vH()),
      (r = document.createRange()),
      (i = document.getSelection()),
      (l = document.createElement('span')),
      (l.textContent = e),
      (l.style.all = 'unset'),
      (l.style.position = 'fixed'),
      (l.style.top = 0),
      (l.style.clip = 'rect(0, 0, 0, 0)'),
      (l.style.whiteSpace = 'pre'),
      (l.style.webkitUserSelect = 'text'),
      (l.style.MozUserSelect = 'text'),
      (l.style.msUserSelect = 'text'),
      (l.style.userSelect = 'text'),
      l.addEventListener('copy', function(c) {
        if ((c.stopPropagation(), t.format))
          if ((c.preventDefault(), typeof c.clipboardData > 'u')) {
            s && console.warn('unable to use e.clipboardData'),
              s && console.warn('trying IE specific stuff'),
              window.clipboardData.clearData()
            const d = Qv[t.format] || Qv.default
            window.clipboardData.setData(d, e)
          } else
            c.clipboardData.clearData(), c.clipboardData.setData(t.format, e)
        t.onCopy && (c.preventDefault(), t.onCopy(c.clipboardData))
      }),
      document.body.appendChild(l),
      r.selectNodeContents(l),
      i.addRange(r),
      !document.execCommand('copy'))
    )
      throw new Error('copy command was unsuccessful')
    a = !0
  } catch (u) {
    s && console.error('unable to copy using execCommand: ', u),
      s && console.warn('trying IE specific stuff')
    try {
      window.clipboardData.setData(t.format || 'text', e),
        t.onCopy && t.onCopy(window.clipboardData),
        (a = !0)
    } catch (c) {
      s && console.error('unable to copy using clipboardData: ', c),
        s && console.error('falling back to prompt'),
        (n = gH('message' in t ? t.message : mH)),
        window.prompt(n, e)
    }
  } finally {
    i &&
      (typeof i.removeRange == 'function'
        ? i.removeRange(r)
        : i.removeAllRanges()),
      l && document.body.removeChild(l),
      o()
  }
  return a
}
function Zv(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) {
        bH(e, r, n[r])
      })
  }
  return e
}
function bH(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 = Zv({}, t, n.attrs)
  return v(et, Zv({}, o, { icon: pS }), null)
}
id.displayName = 'CopyOutlined'
id.inheritAttrs = !1
const yH = id
function em(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) {
        SH(e, r, n[r])
      })
  }
  return e
}
function SH(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 = em({}, t, n.attrs)
  return v(et, em({}, o, { icon: vS }), null)
}
ld.displayName = 'EditOutlined'
ld.inheritAttrs = !1
const xH = ld
var CH =
  (globalThis && globalThis.__rest) ||
  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 $H = zu('webkitLineClamp'),
  wH = zu('textOverflow'),
  tm = '...',
  li = () => ({
    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
  }),
  OH = J({
    compatConfig: { MODE: 3 },
    name: 'TypographyBase',
    inheritAttrs: !1,
    props: li(),
    setup(e, t) {
      let { slots: n, attrs: o, emit: r } = t
      const { prefixCls: i, direction: l } = je('typography', e),
        a = dt({
          copied: !1,
          ellipsisText: '',
          ellipsisContent: null,
          isEllipsis: !1,
          expanded: !1,
          clientRendered: !1,
          expandStr: '',
          copyStr: '',
          copiedStr: '',
          editStr: '',
          copyId: void 0,
          rafId: void 0,
          prevProps: void 0,
          originContent: ''
        }),
        s = ne(),
        u = ne(),
        c = P(() => {
          const E = e.ellipsis
          return E
            ? p({ rows: 1, expandable: !1 }, typeof E == 'object' ? E : null)
            : {}
        })
      We(() => {
        ;(a.clientRendered = !0), T()
      }),
        Qe(() => {
          clearTimeout(a.copyId), He.cancel(a.rafId)
        }),
        ge(
          [() => c.value.rows, () => e.content],
          () => {
            it(() => {
              w()
            })
          },
          { flush: 'post', deep: !0 }
        ),
        Me(() => {
          e.content === void 0 && (kt(!e.editable), kt(!e.ellipsis))
        })
      function d() {
        var E
        return e.ellipsis || e.editable
          ? e.content
          : (E = Wt(s.value)) === null || E === void 0
          ? void 0
          : E.innerText
      }
      function f(E) {
        const { onExpand: R } = c.value
        ;(a.expanded = !0), R == null || R(E)
      }
      function m(E) {
        E.preventDefault(), (a.originContent = e.content), x(!0)
      }
      function g(E) {
        h(E), x(!1)
      }
      function h(E) {
        const { onChange: R } = C.value
        E !== e.content && (r('update:content', E), R == null || R(E))
      }
      function b() {
        var E, R
        ;(R = (E = C.value).onCancel) === null || R === void 0 || R.call(E),
          x(!1)
      }
      function S(E) {
        E.preventDefault(), E.stopPropagation()
        const { copyable: R } = e,
          L = p({}, typeof R == 'object' ? R : null)
        L.text === void 0 && (L.text = d()),
          hH(L.text || ''),
          (a.copied = !0),
          it(() => {
            L.onCopy && L.onCopy(E),
              (a.copyId = setTimeout(() => {
                a.copied = !1
              }, 3e3))
          })
      }
      const C = P(() => {
          const E = e.editable
          return E ? p({}, typeof E == 'object' ? E : null) : { editing: !1 }
        }),
        [$, O] = So(!1, { value: P(() => C.value.editing) })
      function x(E) {
        const { onStart: R } = C.value
        E && R && R(), O(E)
      }
      ge(
        $,
        E => {
          var R
          E || (R = u.value) === null || R === void 0 || R.focus()
        },
        { flush: 'post' }
      )
      function w(E) {
        if (E) {
          const { width: R, height: L } = E
          if (!R || !L) return
        }
        He.cancel(a.rafId),
          (a.rafId = He(() => {
            T()
          }))
      }
      const y = P(() => {
          const {
            rows: E,
            expandable: R,
            suffix: L,
            onEllipsis: W,
            tooltip: D
          } = c.value
          return L || D || e.editable || e.copyable || R || W
            ? !1
            : E === 1
            ? wH
            : $H
        }),
        T = () => {
          const { ellipsisText: E, isEllipsis: R } = a,
            { rows: L, suffix: W, onEllipsis: D } = c.value
          if (
            !L ||
            L < 0 ||
            !Wt(s.value) ||
            a.expanded ||
            e.content === void 0 ||
            y.value
          )
            return
          const { content: F, text: H, ellipsis: B } = cH(
            Wt(s.value),
            { rows: L, suffix: W },
            e.content,
            j(!0),
            tm
          )
          ;(E !== H || a.isEllipsis !== B) &&
            ((a.ellipsisText = H),
            (a.ellipsisContent = F),
            (a.isEllipsis = B),
            R !== B && D && D(B))
        }
      function I(E, R) {
        let {
            mark: L,
            code: W,
            underline: D,
            delete: F,
            strong: H,
            keyboard: B
          } = E,
          X = R
        function ee(de, ie) {
          if (!de) return
          const Q = (function() {
            return X
          })()
          X = v(ie, null, { default: () => [Q] })
        }
        return (
          ee(H, 'strong'),
          ee(D, 'u'),
          ee(F, 'del'),
          ee(W, 'code'),
          ee(L, 'mark'),
          ee(B, 'kbd'),
          X
        )
      }
      function _(E) {
        const { expandable: R, symbol: L } = c.value
        if (!R || (!E && (a.expanded || !a.isEllipsis))) return null
        const W = (n.ellipsisSymbol ? n.ellipsisSymbol() : L) || a.expandStr
        return v(
          'a',
          {
            key: 'expand',
            class: `${i.value}-expand`,
            onClick: f,
            'aria-label': a.expandStr
          },
          [W]
        )
      }
      function A() {
        if (!e.editable) return
        const { tooltip: E, triggerType: R = ['icon'] } = e.editable,
          L = n.editableIcon
            ? n.editableIcon()
            : v(xH, { role: 'button' }, null),
          W = n.editableTooltip ? n.editableTooltip() : a.editStr,
          D = typeof W == 'string' ? W : ''
        return R.indexOf('icon') !== -1
          ? v(
              Vo,
              { key: 'edit', title: E === !1 ? '' : W },
              {
                default: () => [
                  v(
                    yv,
                    {
                      ref: u,
                      class: `${i.value}-edit`,
                      onClick: m,
                      'aria-label': D
                    },
                    { default: () => [L] }
                  )
                ]
              }
            )
          : null
      }
      function z() {
        if (!e.copyable) return
        const { tooltip: E } = e.copyable,
          R = a.copied ? a.copiedStr : a.copyStr,
          L = n.copyableTooltip ? n.copyableTooltip({ copied: a.copied }) : R,
          W = typeof L == 'string' ? L : '',
          D = a.copied ? v(Th, null, null) : v(yH, null, null),
          F = n.copyableIcon ? n.copyableIcon({ copied: !!a.copied }) : D
        return v(
          Vo,
          { key: 'copy', title: E === !1 ? '' : L },
          {
            default: () => [
              v(
                yv,
                {
                  class: [
                    `${i.value}-copy`,
                    { [`${i.value}-copy-success`]: a.copied }
                  ],
                  onClick: S,
                  'aria-label': W
                },
                { default: () => [F] }
              )
            ]
          }
        )
      }
      function M() {
        const { class: E, style: R } = o,
          { maxlength: L, autoSize: W, onEnd: D } = C.value
        return v(
          iH,
          {
            class: E,
            style: R,
            prefixCls: i.value,
            value: e.content,
            originContent: a.originContent,
            maxlength: L,
            autoSize: W,
            onSave: g,
            onChange: h,
            onCancel: b,
            onEnd: D,
            direction: l.value,
            component: e.component
          },
          { enterIcon: n.editableEnterIcon }
        )
      }
      function j(E) {
        return [_(E), A(), z()].filter(R => R)
      }
      return () => {
        var E
        const { triggerType: R = ['icon'] } = C.value,
          L =
            e.ellipsis || e.editable
              ? e.content !== void 0
                ? e.content
                : (E = n.default) === null || E === void 0
                ? void 0
                : E.call(n)
              : n.default
              ? n.default()
              : e.content
        return $.value
          ? M()
          : v(
              yc,
              {
                componentName: 'Text',
                children: W => {
                  const D = p(p({}, e), o),
                    {
                      type: F,
                      disabled: H,
                      content: B,
                      class: X,
                      style: ee
                    } = D,
                    de = CH(D, [
                      'type',
                      'disabled',
                      'content',
                      'class',
                      'style'
                    ]),
                    { rows: ie, suffix: Q, tooltip: se } = c.value,
                    { edit: q, copy: K, copied: U, expand: ue } = W
                  ;(a.editStr = q),
                    (a.copyStr = K),
                    (a.copiedStr = U),
                    (a.expandStr = ue)
                  const me = rt(de, [
                      'prefixCls',
                      'editable',
                      'copyable',
                      'ellipsis',
                      'mark',
                      'code',
                      'delete',
                      'underline',
                      'strong',
                      'keyboard',
                      'onUpdate:content'
                    ]),
                    he = y.value,
                    Pe = ie === 1 && he,
                    ve = ie && ie > 1 && he
                  let ye = L,
                    te
                  if (ie && a.isEllipsis && !a.expanded && !he) {
                    const { title: xe } = de
                    let be = xe || ''
                    !xe &&
                      (typeof L == 'string' || typeof L == 'number') &&
                      (be = String(L)),
                      (be =
                        be == null
                          ? void 0
                          : be.slice(String(a.ellipsisContent || '').length)),
                      (ye = v(nt, null, [
                        vn(a.ellipsisContent),
                        v('span', { title: be, 'aria-hidden': 'true' }, [tm]),
                        Q
                      ]))
                  } else ye = v(nt, null, [L, Q])
                  ye = I(e, ye)
                  const Z = se && ie && a.isEllipsis && !a.expanded && !he,
                    fe = n.ellipsisTooltip ? n.ellipsisTooltip() : se
                  return v(
                    Tn,
                    { onResize: w, disabled: !ie },
                    {
                      default: () => [
                        v(
                          _t,
                          N(
                            {
                              ref: s,
                              class: [
                                {
                                  [`${i.value}-${F}`]: F,
                                  [`${i.value}-disabled`]: H,
                                  [`${i.value}-ellipsis`]: ie,
                                  [`${i.value}-single-line`]:
                                    ie === 1 && !a.isEllipsis,
                                  [`${i.value}-ellipsis-single-line`]: Pe,
                                  [`${i.value}-ellipsis-multiple-line`]: ve
                                },
                                X
                              ],
                              style: p(p({}, ee), {
                                WebkitLineClamp: ve ? ie : void 0
                              }),
                              'aria-label': te,
                              direction: l.value,
                              onClick: R.indexOf('text') !== -1 ? m : () => {}
                            },
                            me
                          ),
                          {
                            default: () => [
                              Z
                                ? v(
                                    Vo,
                                    { title: se === !0 ? L : fe },
                                    { default: () => [v('span', null, [ye])] }
                                  )
                                : ye,
                              j()
                            ]
                          }
                        )
                      ]
                    }
                  )
                }
              },
              null
            )
      }
    }
  }),
  ai = OH
var PH =
  (globalThis && globalThis.__rest) ||
  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 TH = () =>
    rt(p(p({}, li()), { ellipsis: { type: Boolean, default: void 0 } }), [
      'component'
    ]),
  Ul = (e, t) => {
    let { slots: n, attrs: o } = t
    const r = p(p({}, e), o),
      { ellipsis: i, rel: l } = r,
      a = PH(r, ['ellipsis', 'rel'])
    kt()
    const s = p(p({}, a), {
      rel: l === void 0 && a.target === '_blank' ? 'noopener noreferrer' : l,
      ellipsis: !!i,
      component: 'a'
    })
    return delete s.navigate, v(ai, s, n)
  }
Ul.displayName = 'ATypographyLink'
Ul.inheritAttrs = !1
Ul.props = TH()
const qy = Ul,
  IH = () => rt(li(), ['component']),
  Xl = (e, t) => {
    let { slots: n, attrs: o } = t
    const r = p(p(p({}, e), { component: 'div' }), o)
    return v(ai, r, n)
  }
Xl.displayName = 'ATypographyParagraph'
Xl.inheritAttrs = !1
Xl.props = IH()
const Yy = Xl,
  EH = () =>
    p(p({}, rt(li(), ['component'])), {
      ellipsis: { type: [Boolean, Object], default: void 0 }
    }),
  ql = (e, t) => {
    let { slots: n, attrs: o } = t
    const { ellipsis: r } = e
    kt()
    const i = p(
      p(p({}, e), {
        ellipsis: r && typeof r == 'object' ? rt(r, ['expandable', 'rows']) : r,
        component: 'span'
      }),
      o
    )
    return v(ai, i, n)
  }
ql.displayName = 'ATypographyText'
ql.inheritAttrs = !1
ql.props = EH()
const Jy = ql
var _H =
  (globalThis && globalThis.__rest) ||
  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 RH = ix(1, 2, 3, 4, 5),
  AH = () => p(p({}, rt(li(), ['component', 'strong'])), { level: Number }),
  Yl = (e, t) => {
    let { slots: n, attrs: o } = t
    const { level: r = 1 } = e,
      i = _H(e, ['level'])
    let l
    RH.includes(r) ? (l = `h${r}`) : (kt(), (l = 'h1'))
    const a = p(p(p({}, i), { component: l }), o)
    return v(ai, a, n)
  }
Yl.displayName = 'ATypographyTitle'
Yl.inheritAttrs = !1
Yl.props = AH()
const Qy = Yl
_t.Text = Jy
_t.Title = Qy
_t.Paragraph = Yy
_t.Link = qy
_t.Base = ai
_t.install = function(e) {
  return (
    e.component(_t.name, _t),
    e.component(_t.Text.displayName, Jy),
    e.component(_t.Title.displayName, Qy),
    e.component(_t.Paragraph.displayName, Yy),
    e.component(_t.Link.displayName, qy),
    e
  )
}
function Zy(e, t) {
  return function() {
    return e.apply(t, arguments)
  }
}
const { toString: DH } = Object.prototype,
  { getPrototypeOf: ad } = Object,
  Jl = (e => t => {
    const n = DH.call(t)
    return e[n] || (e[n] = n.slice(8, -1).toLowerCase())
  })(Object.create(null)),
  an = e => ((e = e.toLowerCase()), t => Jl(t) === e),
  Ql = e => t => typeof t === e,
  { isArray: mr } = Array,
  Qr = Ql('undefined')
function MH(e) {
  return (
    e !== null &&
    !Qr(e) &&
    e.constructor !== null &&
    !Qr(e.constructor) &&
    Zt(e.constructor.isBuffer) &&
    e.constructor.isBuffer(e)
  )
}
const e0 = an('ArrayBuffer')
function NH(e) {
  let t
  return (
    typeof ArrayBuffer < 'u' && ArrayBuffer.isView
      ? (t = ArrayBuffer.isView(e))
      : (t = e && e.buffer && e0(e.buffer)),
    t
  )
}
const BH = Ql('string'),
  Zt = Ql('function'),
  t0 = Ql('number'),
  Zl = e => e !== null && typeof e == 'object',
  zH = e => e === !0 || e === !1,
  Ki = e => {
    if (Jl(e) !== 'object') return !1
    const t = ad(e)
    return (
      (t === null ||
        t === Object.prototype ||
        Object.getPrototypeOf(t) === null) &&
      !(Symbol.toStringTag in e) &&
      !(Symbol.iterator in e)
    )
  },
  LH = an('Date'),
  FH = an('File'),
  HH = an('Blob'),
  kH = an('FileList'),
  jH = e => Zl(e) && Zt(e.pipe),
  KH = e => {
    let t
    return (
      e &&
      ((typeof FormData == 'function' && e instanceof FormData) ||
        (Zt(e.append) &&
          ((t = Jl(e)) === 'formdata' ||
            (t === 'object' &&
              Zt(e.toString) &&
              e.toString() === '[object FormData]'))))
    )
  },
  WH = an('URLSearchParams'),
  [VH, GH, UH, XH] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(
    an
  ),
  qH = e =>
    e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')
function si(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > 'u') return
  let o, r
  if ((typeof e != 'object' && (e = [e]), mr(e)))
    for (o = 0, r = e.length; o < r; o++) t.call(null, e[o], o, e)
  else {
    const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e),
      l = i.length
    let a
    for (o = 0; o < l; o++) (a = i[o]), t.call(null, e[a], a, e)
  }
}
function n0(e, t) {
  t = t.toLowerCase()
  const n = Object.keys(e)
  let o = n.length,
    r
  for (; o-- > 0; ) if (((r = n[o]), t === r.toLowerCase())) return r
  return null
}
const o0 = (() =>
    typeof globalThis < 'u'
      ? globalThis
      : typeof self < 'u'
      ? self
      : typeof window < 'u'
      ? window
      : global)(),
  r0 = e => !Qr(e) && e !== o0
function rc() {
  const { caseless: e } = (r0(this) && this) || {},
    t = {},
    n = (o, r) => {
      const i = (e && n0(t, r)) || r
      Ki(t[i]) && Ki(o)
        ? (t[i] = rc(t[i], o))
        : Ki(o)
        ? (t[i] = rc({}, o))
        : mr(o)
        ? (t[i] = o.slice())
        : (t[i] = o)
    }
  for (let o = 0, r = arguments.length; o < r; o++)
    arguments[o] && si(arguments[o], n)
  return t
}
const YH = (e, t, n, { allOwnKeys: o } = {}) => (
    si(
      t,
      (r, i) => {
        n && Zt(r) ? (e[i] = Zy(r, n)) : (e[i] = r)
      },
      { allOwnKeys: o }
    ),
    e
  ),
  JH = e => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e),
  QH = (e, t, n, o) => {
    ;(e.prototype = Object.create(t.prototype, o)),
      (e.prototype.constructor = e),
      Object.defineProperty(e, 'super', { value: t.prototype }),
      n && Object.assign(e.prototype, n)
  },
  ZH = (e, t, n, o) => {
    let r, i, l
    const a = {}
    if (((t = t || {}), e == null)) return t
    do {
      for (r = Object.getOwnPropertyNames(e), i = r.length; i-- > 0; )
        (l = r[i]), (!o || o(l, e, t)) && !a[l] && ((t[l] = e[l]), (a[l] = !0))
      e = n !== !1 && ad(e)
    } while (e && (!n || n(e, t)) && e !== Object.prototype)
    return t
  },
  ek = (e, t, n) => {
    ;(e = String(e)),
      (n === void 0 || n > e.length) && (n = e.length),
      (n -= t.length)
    const o = e.indexOf(t, n)
    return o !== -1 && o === n
  },
  tk = e => {
    if (!e) return null
    if (mr(e)) return e
    let t = e.length
    if (!t0(t)) return null
    const n = new Array(t)
    for (; t-- > 0; ) n[t] = e[t]
    return n
  },
  nk = (e => t => e && t instanceof e)(
    typeof Uint8Array < 'u' && ad(Uint8Array)
  ),
  ok = (e, t) => {
    const o = (e && e[Symbol.iterator]).call(e)
    let r
    for (; (r = o.next()) && !r.done; ) {
      const i = r.value
      t.call(e, i[0], i[1])
    }
  },
  rk = (e, t) => {
    let n
    const o = []
    for (; (n = e.exec(t)) !== null; ) o.push(n)
    return o
  },
  ik = an('HTMLFormElement'),
  lk = e =>
    e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, o, r) {
      return o.toUpperCase() + r
    }),
  nm = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
  ak = an('RegExp'),
  i0 = (e, t) => {
    const n = Object.getOwnPropertyDescriptors(e),
      o = {}
    si(n, (r, i) => {
      let l
      ;(l = t(r, i, e)) !== !1 && (o[i] = l || r)
    }),
      Object.defineProperties(e, o)
  },
  sk = e => {
    i0(e, (t, n) => {
      if (Zt(e) && ['arguments', 'caller', 'callee'].indexOf(n) !== -1)
        return !1
      const o = e[n]
      if (Zt(o)) {
        if (((t.enumerable = !1), 'writable' in t)) {
          t.writable = !1
          return
        }
        t.set ||
          (t.set = () => {
            throw Error("Can not rewrite read-only method '" + n + "'")
          })
      }
    })
  },
  ck = (e, t) => {
    const n = {},
      o = r => {
        r.forEach(i => {
          n[i] = !0
        })
      }
    return mr(e) ? o(e) : o(String(e).split(t)), n
  },
  uk = () => {},
  dk = (e, t) => (e != null && Number.isFinite((e = +e)) ? e : t),
  qa = 'abcdefghijklmnopqrstuvwxyz',
  om = '0123456789',
  l0 = { DIGIT: om, ALPHA: qa, ALPHA_DIGIT: qa + qa.toUpperCase() + om },
  fk = (e = 16, t = l0.ALPHA_DIGIT) => {
    let n = ''
    const { length: o } = t
    for (; e--; ) n += t[(Math.random() * o) | 0]
    return n
  }
function pk(e) {
  return !!(
    e &&
    Zt(e.append) &&
    e[Symbol.toStringTag] === 'FormData' &&
    e[Symbol.iterator]
  )
}
const vk = e => {
    const t = new Array(10),
      n = (o, r) => {
        if (Zl(o)) {
          if (t.indexOf(o) >= 0) return
          if (!('toJSON' in o)) {
            t[r] = o
            const i = mr(o) ? [] : {}
            return (
              si(o, (l, a) => {
                const s = n(l, r + 1)
                !Qr(s) && (i[a] = s)
              }),
              (t[r] = void 0),
              i
            )
          }
        }
        return o
      }
    return n(e, 0)
  },
  mk = an('AsyncFunction'),
  gk = e => e && (Zl(e) || Zt(e)) && Zt(e.then) && Zt(e.catch),
  re = {
    isArray: mr,
    isArrayBuffer: e0,
    isBuffer: MH,
    isFormData: KH,
    isArrayBufferView: NH,
    isString: BH,
    isNumber: t0,
    isBoolean: zH,
    isObject: Zl,
    isPlainObject: Ki,
    isReadableStream: VH,
    isRequest: GH,
    isResponse: UH,
    isHeaders: XH,
    isUndefined: Qr,
    isDate: LH,
    isFile: FH,
    isBlob: HH,
    isRegExp: ak,
    isFunction: Zt,
    isStream: jH,
    isURLSearchParams: WH,
    isTypedArray: nk,
    isFileList: kH,
    forEach: si,
    merge: rc,
    extend: YH,
    trim: qH,
    stripBOM: JH,
    inherits: QH,
    toFlatObject: ZH,
    kindOf: Jl,
    kindOfTest: an,
    endsWith: ek,
    toArray: tk,
    forEachEntry: ok,
    matchAll: rk,
    isHTMLForm: ik,
    hasOwnProperty: nm,
    hasOwnProp: nm,
    reduceDescriptors: i0,
    freezeMethods: sk,
    toObjectSet: ck,
    toCamelCase: lk,
    noop: uk,
    toFiniteNumber: dk,
    findKey: n0,
    global: o0,
    isContextDefined: r0,
    ALPHABET: l0,
    generateString: fk,
    isSpecCompliantForm: pk,
    toJSONObject: vk,
    isAsyncFn: mk,
    isThenable: gk
  }
function Ke(e, t, n, o, r) {
  Error.call(this),
    Error.captureStackTrace
      ? Error.captureStackTrace(this, this.constructor)
      : (this.stack = new Error().stack),
    (this.message = e),
    (this.name = 'AxiosError'),
    t && (this.code = t),
    n && (this.config = n),
    o && (this.request = o),
    r && (this.response = r)
}
re.inherits(Ke, Error, {
  toJSON: function() {
    return {
      message: this.message,
      name: this.name,
      description: this.description,
      number: this.number,
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      config: re.toJSONObject(this.config),
      code: this.code,
      status:
        this.response && this.response.status ? this.response.status : null
    }
  }
})
const a0 = Ke.prototype,
  s0 = {}
;[
  'ERR_BAD_OPTION_VALUE',
  'ERR_BAD_OPTION',
  'ECONNABORTED',
  'ETIMEDOUT',
  'ERR_NETWORK',
  'ERR_FR_TOO_MANY_REDIRECTS',
  'ERR_DEPRECATED',
  'ERR_BAD_RESPONSE',
  'ERR_BAD_REQUEST',
  'ERR_CANCELED',
  'ERR_NOT_SUPPORT',
  'ERR_INVALID_URL'
].forEach(e => {
  s0[e] = { value: e }
})
Object.defineProperties(Ke, s0)
Object.defineProperty(a0, 'isAxiosError', { value: !0 })
Ke.from = (e, t, n, o, r, i) => {
  const l = Object.create(a0)
  return (
    re.toFlatObject(
      e,
      l,
      function(s) {
        return s !== Error.prototype
      },
      a => a !== 'isAxiosError'
    ),
    Ke.call(l, e.message, t, n, o, r),
    (l.cause = e),
    (l.name = e.name),
    i && Object.assign(l, i),
    l
  )
}
const hk = null
function ic(e) {
  return re.isPlainObject(e) || re.isArray(e)
}
function c0(e) {
  return re.endsWith(e, '[]') ? e.slice(0, -2) : e
}
function rm(e, t, n) {
  return e
    ? e
        .concat(t)
        .map(function(r, i) {
          return (r = c0(r)), !n && i ? '[' + r + ']' : r
        })
        .join(n ? '.' : '')
    : t
}
function bk(e) {
  return re.isArray(e) && !e.some(ic)
}
const yk = re.toFlatObject(re, {}, null, function(t) {
  return /^is[A-Z]/.test(t)
})
function ea(e, t, n) {
  if (!re.isObject(e)) throw new TypeError('target must be an object')
  ;(t = t || new FormData()),
    (n = re.toFlatObject(
      n,
      { metaTokens: !0, dots: !1, indexes: !1 },
      !1,
      function(h, b) {
        return !re.isUndefined(b[h])
      }
    ))
  const o = n.metaTokens,
    r = n.visitor || c,
    i = n.dots,
    l = n.indexes,
    s = (n.Blob || (typeof Blob < 'u' && Blob)) && re.isSpecCompliantForm(t)
  if (!re.isFunction(r)) throw new TypeError('visitor must be a function')
  function u(g) {
    if (g === null) return ''
    if (re.isDate(g)) return g.toISOString()
    if (!s && re.isBlob(g))
      throw new Ke('Blob is not supported. Use a Buffer instead.')
    return re.isArrayBuffer(g) || re.isTypedArray(g)
      ? s && typeof Blob == 'function'
        ? new Blob([g])
        : Buffer.from(g)
      : g
  }
  function c(g, h, b) {
    let S = g
    if (g && !b && typeof g == 'object') {
      if (re.endsWith(h, '{}'))
        (h = o ? h : h.slice(0, -2)), (g = JSON.stringify(g))
      else if (
        (re.isArray(g) && bk(g)) ||
        ((re.isFileList(g) || re.endsWith(h, '[]')) && (S = re.toArray(g)))
      )
        return (
          (h = c0(h)),
          S.forEach(function($, O) {
            !(re.isUndefined($) || $ === null) &&
              t.append(
                l === !0 ? rm([h], O, i) : l === null ? h : h + '[]',
                u($)
              )
          }),
          !1
        )
    }
    return ic(g) ? !0 : (t.append(rm(b, h, i), u(g)), !1)
  }
  const d = [],
    f = Object.assign(yk, {
      defaultVisitor: c,
      convertValue: u,
      isVisitable: ic
    })
  function m(g, h) {
    if (!re.isUndefined(g)) {
      if (d.indexOf(g) !== -1)
        throw Error('Circular reference detected in ' + h.join('.'))
      d.push(g),
        re.forEach(g, function(S, C) {
          ;(!(re.isUndefined(S) || S === null) &&
            r.call(t, S, re.isString(C) ? C.trim() : C, h, f)) === !0 &&
            m(S, h ? h.concat(C) : [C])
        }),
        d.pop()
    }
  }
  if (!re.isObject(e)) throw new TypeError('data must be an object')
  return m(e), t
}
function im(e) {
  const t = {
    '!': '%21',
    "'": '%27',
    '(': '%28',
    ')': '%29',
    '~': '%7E',
    '%20': '+',
    '%00': '\0'
  }
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
    return t[o]
  })
}
function sd(e, t) {
  ;(this._pairs = []), e && ea(e, this, t)
}
const u0 = sd.prototype
u0.append = function(t, n) {
  this._pairs.push([t, n])
}
u0.toString = function(t) {
  const n = t
    ? function(o) {
        return t.call(this, o, im)
      }
    : im
  return this._pairs
    .map(function(r) {
      return n(r[0]) + '=' + n(r[1])
    }, '')
    .join('&')
}
function Sk(e) {
  return encodeURIComponent(e)
    .replace(/%3A/gi, ':')
    .replace(/%24/g, '$')
    .replace(/%2C/gi, ',')
    .replace(/%20/g, '+')
    .replace(/%5B/gi, '[')
    .replace(/%5D/gi, ']')
}
function d0(e, t, n) {
  if (!t) return e
  const o = (n && n.encode) || Sk,
    r = n && n.serialize
  let i
  if (
    (r
      ? (i = r(t, n))
      : (i = re.isURLSearchParams(t) ? t.toString() : new sd(t, n).toString(o)),
    i)
  ) {
    const l = e.indexOf('#')
    l !== -1 && (e = e.slice(0, l)),
      (e += (e.indexOf('?') === -1 ? '?' : '&') + i)
  }
  return e
}
class xk {
  constructor() {
    this.handlers = []
  }
  use(t, n, o) {
    return (
      this.handlers.push({
        fulfilled: t,
        rejected: n,
        synchronous: o ? o.synchronous : !1,
        runWhen: o ? o.runWhen : null
      }),
      this.handlers.length - 1
    )
  }
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null)
  }
  clear() {
    this.handlers && (this.handlers = [])
  }
  forEach(t) {
    re.forEach(this.handlers, function(o) {
      o !== null && t(o)
    })
  }
}
const lm = xk,
  f0 = {
    silentJSONParsing: !0,
    forcedJSONParsing: !0,
    clarifyTimeoutError: !1
  },
  Ck = typeof URLSearchParams < 'u' ? URLSearchParams : sd,
  $k = typeof FormData < 'u' ? FormData : null,
  wk = typeof Blob < 'u' ? Blob : null,
  Ok = {
    isBrowser: !0,
    classes: { URLSearchParams: Ck, FormData: $k, Blob: wk },
    protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
  },
  cd = typeof window < 'u' && typeof document < 'u',
  Pk = (e => cd && ['ReactNative', 'NativeScript', 'NS'].indexOf(e) < 0)(
    typeof navigator < 'u' && navigator.product
  ),
  Tk = (() =>
    typeof WorkerGlobalScope < 'u' &&
    self instanceof WorkerGlobalScope &&
    typeof self.importScripts == 'function')(),
  Ik = (cd && window.location.href) || 'http://localhost',
  Ek = Object.freeze(
    Object.defineProperty(
      {
        __proto__: null,
        hasBrowserEnv: cd,
        hasStandardBrowserEnv: Pk,
        hasStandardBrowserWebWorkerEnv: Tk,
        origin: Ik
      },
      Symbol.toStringTag,
      { value: 'Module' }
    )
  ),
  rn = { ...Ek, ...Ok }
function _k(e, t) {
  return ea(
    e,
    new rn.classes.URLSearchParams(),
    Object.assign(
      {
        visitor: function(n, o, r, i) {
          return rn.isNode && re.isBuffer(n)
            ? (this.append(o, n.toString('base64')), !1)
            : i.defaultVisitor.apply(this, arguments)
        }
      },
      t
    )
  )
}
function Rk(e) {
  return re
    .matchAll(/\w+|\[(\w*)]/g, e)
    .map(t => (t[0] === '[]' ? '' : t[1] || t[0]))
}
function Ak(e) {
  const t = {},
    n = Object.keys(e)
  let o
  const r = n.length
  let i
  for (o = 0; o < r; o++) (i = n[o]), (t[i] = e[i])
  return t
}
function p0(e) {
  function t(n, o, r, i) {
    let l = n[i++]
    if (l === '__proto__') return !0
    const a = Number.isFinite(+l),
      s = i >= n.length
    return (
      (l = !l && re.isArray(r) ? r.length : l),
      s
        ? (re.hasOwnProp(r, l) ? (r[l] = [r[l], o]) : (r[l] = o), !a)
        : ((!r[l] || !re.isObject(r[l])) && (r[l] = []),
          t(n, o, r[l], i) && re.isArray(r[l]) && (r[l] = Ak(r[l])),
          !a)
    )
  }
  if (re.isFormData(e) && re.isFunction(e.entries)) {
    const n = {}
    return (
      re.forEachEntry(e, (o, r) => {
        t(Rk(o), r, n, 0)
      }),
      n
    )
  }
  return null
}
function Dk(e, t, n) {
  if (re.isString(e))
    try {
      return (t || JSON.parse)(e), re.trim(e)
    } catch (o) {
      if (o.name !== 'SyntaxError') throw o
    }
  return (n || JSON.stringify)(e)
}
const ud = {
  transitional: f0,
  adapter: ['xhr', 'http', 'fetch'],
  transformRequest: [
    function(t, n) {
      const o = n.getContentType() || '',
        r = o.indexOf('application/json') > -1,
        i = re.isObject(t)
      if ((i && re.isHTMLForm(t) && (t = new FormData(t)), re.isFormData(t)))
        return r ? JSON.stringify(p0(t)) : t
      if (
        re.isArrayBuffer(t) ||
        re.isBuffer(t) ||
        re.isStream(t) ||
        re.isFile(t) ||
        re.isBlob(t) ||
        re.isReadableStream(t)
      )
        return t
      if (re.isArrayBufferView(t)) return t.buffer
      if (re.isURLSearchParams(t))
        return (
          n.setContentType(
            'application/x-www-form-urlencoded;charset=utf-8',
            !1
          ),
          t.toString()
        )
      let a
      if (i) {
        if (o.indexOf('application/x-www-form-urlencoded') > -1)
          return _k(t, this.formSerializer).toString()
        if ((a = re.isFileList(t)) || o.indexOf('multipart/form-data') > -1) {
          const s = this.env && this.env.FormData
          return ea(a ? { 'files[]': t } : t, s && new s(), this.formSerializer)
        }
      }
      return i || r ? (n.setContentType('application/json', !1), Dk(t)) : t
    }
  ],
  transformResponse: [
    function(t) {
      const n = this.transitional || ud.transitional,
        o = n && n.forcedJSONParsing,
        r = this.responseType === 'json'
      if (re.isResponse(t) || re.isReadableStream(t)) return t
      if (t && re.isString(t) && ((o && !this.responseType) || r)) {
        const l = !(n && n.silentJSONParsing) && r
        try {
          return JSON.parse(t)
        } catch (a) {
          if (l)
            throw a.name === 'SyntaxError'
              ? Ke.from(a, Ke.ERR_BAD_RESPONSE, this, null, this.response)
              : a
        }
      }
      return t
    }
  ],
  timeout: 0,
  xsrfCookieName: 'XSRF-TOKEN',
  xsrfHeaderName: 'X-XSRF-TOKEN',
  maxContentLength: -1,
  maxBodyLength: -1,
  env: { FormData: rn.classes.FormData, Blob: rn.classes.Blob },
  validateStatus: function(t) {
    return t >= 200 && t < 300
  },
  headers: {
    common: {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': void 0
    }
  }
}
re.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], e => {
  ud.headers[e] = {}
})
const dd = ud,
  Mk = re.toObjectSet([
    'age',
    'authorization',
    'content-length',
    'content-type',
    'etag',
    'expires',
    'from',
    'host',
    'if-modified-since',
    'if-unmodified-since',
    'last-modified',
    'location',
    'max-forwards',
    'proxy-authorization',
    'referer',
    'retry-after',
    'user-agent'
  ]),
  Nk = e => {
    const t = {}
    let n, o, r
    return (
      e &&
        e
          .split(
            `
`
          )
          .forEach(function(l) {
            ;(r = l.indexOf(':')),
              (n = l
                .substring(0, r)
                .trim()
                .toLowerCase()),
              (o = l.substring(r + 1).trim()),
              !(!n || (t[n] && Mk[n])) &&
                (n === 'set-cookie'
                  ? t[n]
                    ? t[n].push(o)
                    : (t[n] = [o])
                  : (t[n] = t[n] ? t[n] + ', ' + o : o))
          }),
      t
    )
  },
  am = Symbol('internals')
function Or(e) {
  return (
    e &&
    String(e)
      .trim()
      .toLowerCase()
  )
}
function Wi(e) {
  return e === !1 || e == null ? e : re.isArray(e) ? e.map(Wi) : String(e)
}
function Bk(e) {
  const t = Object.create(null),
    n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g
  let o
  for (; (o = n.exec(e)); ) t[o[1]] = o[2]
  return t
}
const zk = e => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())
function Ya(e, t, n, o, r) {
  if (re.isFunction(o)) return o.call(this, t, n)
  if ((r && (t = n), !!re.isString(t))) {
    if (re.isString(o)) return t.indexOf(o) !== -1
    if (re.isRegExp(o)) return o.test(t)
  }
}
function Lk(e) {
  return e
    .trim()
    .toLowerCase()
    .replace(/([a-z\d])(\w*)/g, (t, n, o) => n.toUpperCase() + o)
}
function Fk(e, t) {
  const n = re.toCamelCase(' ' + t)
  ;['get', 'set', 'has'].forEach(o => {
    Object.defineProperty(e, o + n, {
      value: function(r, i, l) {
        return this[o].call(this, t, r, i, l)
      },
      configurable: !0
    })
  })
}
class ta {
  constructor(t) {
    t && this.set(t)
  }
  set(t, n, o) {
    const r = this
    function i(a, s, u) {
      const c = Or(s)
      if (!c) throw new Error('header name must be a non-empty string')
      const d = re.findKey(r, c)
      ;(!d || r[d] === void 0 || u === !0 || (u === void 0 && r[d] !== !1)) &&
        (r[d || s] = Wi(a))
    }
    const l = (a, s) => re.forEach(a, (u, c) => i(u, c, s))
    if (re.isPlainObject(t) || t instanceof this.constructor) l(t, n)
    else if (re.isString(t) && (t = t.trim()) && !zk(t)) l(Nk(t), n)
    else if (re.isHeaders(t)) for (const [a, s] of t.entries()) i(s, a, o)
    else t != null && i(n, t, o)
    return this
  }
  get(t, n) {
    if (((t = Or(t)), t)) {
      const o = re.findKey(this, t)
      if (o) {
        const r = this[o]
        if (!n) return r
        if (n === !0) return Bk(r)
        if (re.isFunction(n)) return n.call(this, r, o)
        if (re.isRegExp(n)) return n.exec(r)
        throw new TypeError('parser must be boolean|regexp|function')
      }
    }
  }
  has(t, n) {
    if (((t = Or(t)), t)) {
      const o = re.findKey(this, t)
      return !!(o && this[o] !== void 0 && (!n || Ya(this, this[o], o, n)))
    }
    return !1
  }
  delete(t, n) {
    const o = this
    let r = !1
    function i(l) {
      if (((l = Or(l)), l)) {
        const a = re.findKey(o, l)
        a && (!n || Ya(o, o[a], a, n)) && (delete o[a], (r = !0))
      }
    }
    return re.isArray(t) ? t.forEach(i) : i(t), r
  }
  clear(t) {
    const n = Object.keys(this)
    let o = n.length,
      r = !1
    for (; o--; ) {
      const i = n[o]
      ;(!t || Ya(this, this[i], i, t, !0)) && (delete this[i], (r = !0))
    }
    return r
  }
  normalize(t) {
    const n = this,
      o = {}
    return (
      re.forEach(this, (r, i) => {
        const l = re.findKey(o, i)
        if (l) {
          ;(n[l] = Wi(r)), delete n[i]
          return
        }
        const a = t ? Lk(i) : String(i).trim()
        a !== i && delete n[i], (n[a] = Wi(r)), (o[a] = !0)
      }),
      this
    )
  }
  concat(...t) {
    return this.constructor.concat(this, ...t)
  }
  toJSON(t) {
    const n = Object.create(null)
    return (
      re.forEach(this, (o, r) => {
        o != null && o !== !1 && (n[r] = t && re.isArray(o) ? o.join(', ') : o)
      }),
      n
    )
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]()
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ': ' + n).join(`
`)
  }
  get [Symbol.toStringTag]() {
    return 'AxiosHeaders'
  }
  static from(t) {
    return t instanceof this ? t : new this(t)
  }
  static concat(t, ...n) {
    const o = new this(t)
    return n.forEach(r => o.set(r)), o
  }
  static accessor(t) {
    const o = (this[am] = this[am] = { accessors: {} }).accessors,
      r = this.prototype
    function i(l) {
      const a = Or(l)
      o[a] || (Fk(r, l), (o[a] = !0))
    }
    return re.isArray(t) ? t.forEach(i) : i(t), this
  }
}
ta.accessor([
  'Content-Type',
  'Content-Length',
  'Accept',
  'Accept-Encoding',
  'User-Agent',
  'Authorization'
])
re.reduceDescriptors(ta.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1)
  return {
    get: () => e,
    set(o) {
      this[n] = o
    }
  }
})
re.freezeMethods(ta)
const ln = ta
function Ja(e, t) {
  const n = this || dd,
    o = t || n,
    r = ln.from(o.headers)
  let i = o.data
  return (
    re.forEach(e, function(a) {
      i = a.call(n, i, r.normalize(), t ? t.status : void 0)
    }),
    r.normalize(),
    i
  )
}
function v0(e) {
  return !!(e && e.__CANCEL__)
}
function gr(e, t, n) {
  Ke.call(this, e ?? 'canceled', Ke.ERR_CANCELED, t, n),
    (this.name = 'CanceledError')
}
re.inherits(gr, Ke, { __CANCEL__: !0 })
function m0(e, t, n) {
  const o = n.config.validateStatus
  !n.status || !o || o(n.status)
    ? e(n)
    : t(
        new Ke(
          'Request failed with status code ' + n.status,
          [Ke.ERR_BAD_REQUEST, Ke.ERR_BAD_RESPONSE][
            Math.floor(n.status / 100) - 4
          ],
          n.config,
          n.request,
          n
        )
      )
}
function Hk(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e)
  return (t && t[1]) || ''
}
function kk(e, t) {
  e = e || 10
  const n = new Array(e),
    o = new Array(e)
  let r = 0,
    i = 0,
    l
  return (
    (t = t !== void 0 ? t : 1e3),
    function(s) {
      const u = Date.now(),
        c = o[i]
      l || (l = u), (n[r] = s), (o[r] = u)
      let d = i,
        f = 0
      for (; d !== r; ) (f += n[d++]), (d = d % e)
      if (((r = (r + 1) % e), r === i && (i = (i + 1) % e), u - l < t)) return
      const m = c && u - c
      return m ? Math.round((f * 1e3) / m) : void 0
    }
  )
}
function jk(e, t) {
  let n = 0
  const o = 1e3 / t
  let r = null
  return function() {
    const l = this === !0,
      a = Date.now()
    if (l || a - n > o)
      return (
        r && (clearTimeout(r), (r = null)), (n = a), e.apply(null, arguments)
      )
    r ||
      (r = setTimeout(
        () => ((r = null), (n = Date.now()), e.apply(null, arguments)),
        o - (a - n)
      ))
  }
}
const dl = (e, t, n = 3) => {
    let o = 0
    const r = kk(50, 250)
    return jk(i => {
      const l = i.loaded,
        a = i.lengthComputable ? i.total : void 0,
        s = l - o,
        u = r(s),
        c = l <= a
      o = l
      const d = {
        loaded: l,
        total: a,
        progress: a ? l / a : void 0,
        bytes: s,
        rate: u || void 0,
        estimated: u && a && c ? (a - l) / u : void 0,
        event: i,
        lengthComputable: a != null
      }
      ;(d[t ? 'download' : 'upload'] = !0), e(d)
    }, n)
  },
  Kk = rn.hasStandardBrowserEnv
    ? (function() {
        const t = /(msie|trident)/i.test(navigator.userAgent),
          n = document.createElement('a')
        let o
        function r(i) {
          let l = i
          return (
            t && (n.setAttribute('href', l), (l = n.href)),
            n.setAttribute('href', l),
            {
              href: n.href,
              protocol: n.protocol ? n.protocol.replace(/:$/, '') : '',
              host: n.host,
              search: n.search ? n.search.replace(/^\?/, '') : '',
              hash: n.hash ? n.hash.replace(/^#/, '') : '',
              hostname: n.hostname,
              port: n.port,
              pathname:
                n.pathname.charAt(0) === '/' ? n.pathname : '/' + n.pathname
            }
          )
        }
        return (
          (o = r(window.location.href)),
          function(l) {
            const a = re.isString(l) ? r(l) : l
            return a.protocol === o.protocol && a.host === o.host
          }
        )
      })()
    : (function() {
        return function() {
          return !0
        }
      })(),
  Wk = rn.hasStandardBrowserEnv
    ? {
        write(e, t, n, o, r, i) {
          const l = [e + '=' + encodeURIComponent(t)]
          re.isNumber(n) && l.push('expires=' + new Date(n).toGMTString()),
            re.isString(o) && l.push('path=' + o),
            re.isString(r) && l.push('domain=' + r),
            i === !0 && l.push('secure'),
            (document.cookie = l.join('; '))
        },
        read(e) {
          const t = document.cookie.match(
            new RegExp('(^|;\\s*)(' + e + ')=([^;]*)')
          )
          return t ? decodeURIComponent(t[3]) : null
        },
        remove(e) {
          this.write(e, '', Date.now() - 864e5)
        }
      }
    : {
        write() {},
        read() {
          return null
        },
        remove() {}
      }
function Vk(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)
}
function Gk(e, t) {
  return t ? e.replace(/\/?\/$/, '') + '/' + t.replace(/^\/+/, '') : e
}
function g0(e, t) {
  return e && !Vk(t) ? Gk(e, t) : t
}
const sm = e => (e instanceof ln ? { ...e } : e)
function wo(e, t) {
  t = t || {}
  const n = {}
  function o(u, c, d) {
    return re.isPlainObject(u) && re.isPlainObject(c)
      ? re.merge.call({ caseless: d }, u, c)
      : re.isPlainObject(c)
      ? re.merge({}, c)
      : re.isArray(c)
      ? c.slice()
      : c
  }
  function r(u, c, d) {
    if (re.isUndefined(c)) {
      if (!re.isUndefined(u)) return o(void 0, u, d)
    } else return o(u, c, d)
  }
  function i(u, c) {
    if (!re.isUndefined(c)) return o(void 0, c)
  }
  function l(u, c) {
    if (re.isUndefined(c)) {
      if (!re.isUndefined(u)) return o(void 0, u)
    } else return o(void 0, c)
  }
  function a(u, c, d) {
    if (d in t) return o(u, c)
    if (d in e) return o(void 0, u)
  }
  const s = {
    url: i,
    method: i,
    data: i,
    baseURL: l,
    transformRequest: l,
    transformResponse: l,
    paramsSerializer: l,
    timeout: l,
    timeoutMessage: l,
    withCredentials: l,
    withXSRFToken: l,
    adapter: l,
    responseType: l,
    xsrfCookieName: l,
    xsrfHeaderName: l,
    onUploadProgress: l,
    onDownloadProgress: l,
    decompress: l,
    maxContentLength: l,
    maxBodyLength: l,
    beforeRedirect: l,
    transport: l,
    httpAgent: l,
    httpsAgent: l,
    cancelToken: l,
    socketPath: l,
    responseEncoding: l,
    validateStatus: a,
    headers: (u, c) => r(sm(u), sm(c), !0)
  }
  return (
    re.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
      const d = s[c] || r,
        f = d(e[c], t[c], c)
      ;(re.isUndefined(f) && d !== a) || (n[c] = f)
    }),
    n
  )
}
const h0 = e => {
    const t = wo({}, e)
    let {
      data: n,
      withXSRFToken: o,
      xsrfHeaderName: r,
      xsrfCookieName: i,
      headers: l,
      auth: a
    } = t
    ;(t.headers = l = ln.from(l)),
      (t.url = d0(g0(t.baseURL, t.url), e.params, e.paramsSerializer)),
      a &&
        l.set(
          'Authorization',
          'Basic ' +
            btoa(
              (a.username || '') +
                ':' +
                (a.password ? unescape(encodeURIComponent(a.password)) : '')
            )
        )
    let s
    if (re.isFormData(n)) {
      if (rn.hasStandardBrowserEnv || rn.hasStandardBrowserWebWorkerEnv)
        l.setContentType(void 0)
      else if ((s = l.getContentType()) !== !1) {
        const [u, ...c] = s
          ? s
              .split(';')
              .map(d => d.trim())
              .filter(Boolean)
          : []
        l.setContentType([u || 'multipart/form-data', ...c].join('; '))
      }
    }
    if (
      rn.hasStandardBrowserEnv &&
      (o && re.isFunction(o) && (o = o(t)), o || (o !== !1 && Kk(t.url)))
    ) {
      const u = r && i && Wk.read(i)
      u && l.set(r, u)
    }
    return t
  },
  Uk = typeof XMLHttpRequest < 'u',
  Xk =
    Uk &&
    function(e) {
      return new Promise(function(n, o) {
        const r = h0(e)
        let i = r.data
        const l = ln.from(r.headers).normalize()
        let { responseType: a } = r,
          s
        function u() {
          r.cancelToken && r.cancelToken.unsubscribe(s),
            r.signal && r.signal.removeEventListener('abort', s)
        }
        let c = new XMLHttpRequest()
        c.open(r.method.toUpperCase(), r.url, !0), (c.timeout = r.timeout)
        function d() {
          if (!c) return
          const m = ln.from(
              'getAllResponseHeaders' in c && c.getAllResponseHeaders()
            ),
            h = {
              data:
                !a || a === 'text' || a === 'json'
                  ? c.responseText
                  : c.response,
              status: c.status,
              statusText: c.statusText,
              headers: m,
              config: e,
              request: c
            }
          m0(
            function(S) {
              n(S), u()
            },
            function(S) {
              o(S), u()
            },
            h
          ),
            (c = null)
        }
        'onloadend' in c
          ? (c.onloadend = d)
          : (c.onreadystatechange = function() {
              !c ||
                c.readyState !== 4 ||
                (c.status === 0 &&
                  !(c.responseURL && c.responseURL.indexOf('file:') === 0)) ||
                setTimeout(d)
            }),
          (c.onabort = function() {
            c &&
              (o(new Ke('Request aborted', Ke.ECONNABORTED, r, c)), (c = null))
          }),
          (c.onerror = function() {
            o(new Ke('Network Error', Ke.ERR_NETWORK, r, c)), (c = null)
          }),
          (c.ontimeout = function() {
            let g = r.timeout
              ? 'timeout of ' + r.timeout + 'ms exceeded'
              : 'timeout exceeded'
            const h = r.transitional || f0
            r.timeoutErrorMessage && (g = r.timeoutErrorMessage),
              o(
                new Ke(
                  g,
                  h.clarifyTimeoutError ? Ke.ETIMEDOUT : Ke.ECONNABORTED,
                  r,
                  c
                )
              ),
              (c = null)
          }),
          i === void 0 && l.setContentType(null),
          'setRequestHeader' in c &&
            re.forEach(l.toJSON(), function(g, h) {
              c.setRequestHeader(h, g)
            }),
          re.isUndefined(r.withCredentials) ||
            (c.withCredentials = !!r.withCredentials),
          a && a !== 'json' && (c.responseType = r.responseType),
          typeof r.onDownloadProgress == 'function' &&
            c.addEventListener('progress', dl(r.onDownloadProgress, !0)),
          typeof r.onUploadProgress == 'function' &&
            c.upload &&
            c.upload.addEventListener('progress', dl(r.onUploadProgress)),
          (r.cancelToken || r.signal) &&
            ((s = m => {
              c &&
                (o(!m || m.type ? new gr(null, e, c) : m),
                c.abort(),
                (c = null))
            }),
            r.cancelToken && r.cancelToken.subscribe(s),
            r.signal &&
              (r.signal.aborted ? s() : r.signal.addEventListener('abort', s)))
        const f = Hk(r.url)
        if (f && rn.protocols.indexOf(f) === -1) {
          o(new Ke('Unsupported protocol ' + f + ':', Ke.ERR_BAD_REQUEST, e))
          return
        }
        c.send(i || null)
      })
    },
  qk = (e, t) => {
    let n = new AbortController(),
      o
    const r = function(s) {
      if (!o) {
        ;(o = !0), l()
        const u = s instanceof Error ? s : this.reason
        n.abort(
          u instanceof Ke ? u : new gr(u instanceof Error ? u.message : u)
        )
      }
    }
    let i =
      t &&
      setTimeout(() => {
        r(new Ke(`timeout ${t} of ms exceeded`, Ke.ETIMEDOUT))
      }, t)
    const l = () => {
      e &&
        (i && clearTimeout(i),
        (i = null),
        e.forEach(s => {
          s &&
            (s.removeEventListener
              ? s.removeEventListener('abort', r)
              : s.unsubscribe(r))
        }),
        (e = null))
    }
    e.forEach(s => s && s.addEventListener && s.addEventListener('abort', r))
    const { signal: a } = n
    return (
      (a.unsubscribe = l),
      [
        a,
        () => {
          i && clearTimeout(i), (i = null)
        }
      ]
    )
  },
  Yk = qk,
  Jk = function*(e, t) {
    let n = e.byteLength
    if (!t || n < t) {
      yield e
      return
    }
    let o = 0,
      r
    for (; o < n; ) (r = o + t), yield e.slice(o, r), (o = r)
  },
  Qk = async function*(e, t, n) {
    for await (const o of e)
      yield* Jk(ArrayBuffer.isView(o) ? o : await n(String(o)), t)
  },
  cm = (e, t, n, o, r) => {
    const i = Qk(e, t, r)
    let l = 0
    return new ReadableStream(
      {
        type: 'bytes',
        async pull(a) {
          const { done: s, value: u } = await i.next()
          if (s) {
            a.close(), o()
            return
          }
          let c = u.byteLength
          n && n((l += c)), a.enqueue(new Uint8Array(u))
        },
        cancel(a) {
          return o(a), i.return()
        }
      },
      { highWaterMark: 2 }
    )
  },
  um = (e, t) => {
    const n = e != null
    return o =>
      setTimeout(() => t({ lengthComputable: n, total: e, loaded: o }))
  },
  na =
    typeof fetch == 'function' &&
    typeof Request == 'function' &&
    typeof Response == 'function',
  b0 = na && typeof ReadableStream == 'function',
  lc =
    na &&
    (typeof TextEncoder == 'function'
      ? (e => t => e.encode(t))(new TextEncoder())
      : async e => new Uint8Array(await new Response(e).arrayBuffer())),
  Zk =
    b0 &&
    (() => {
      let e = !1
      const t = new Request(rn.origin, {
        body: new ReadableStream(),
        method: 'POST',
        get duplex() {
          return (e = !0), 'half'
        }
      }).headers.has('Content-Type')
      return e && !t
    })(),
  dm = 64 * 1024,
  ac =
    b0 &&
    !!(() => {
      try {
        return re.isReadableStream(new Response('').body)
      } catch {}
    })(),
  fl = { stream: ac && (e => e.body) }
na &&
  (e => {
    ;['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(t => {
      !fl[t] &&
        (fl[t] = re.isFunction(e[t])
          ? n => n[t]()
          : (n, o) => {
              throw new Ke(
                `Response type '${t}' is not supported`,
                Ke.ERR_NOT_SUPPORT,
                o
              )
            })
    })
  })(new Response())
const ej = async e => {
    if (e == null) return 0
    if (re.isBlob(e)) return e.size
    if (re.isSpecCompliantForm(e))
      return (await new Request(e).arrayBuffer()).byteLength
    if (re.isArrayBufferView(e)) return e.byteLength
    if ((re.isURLSearchParams(e) && (e = e + ''), re.isString(e)))
      return (await lc(e)).byteLength
  },
  tj = async (e, t) => {
    const n = re.toFiniteNumber(e.getContentLength())
    return n ?? ej(t)
  },
  nj =
    na &&
    (async e => {
      let {
        url: t,
        method: n,
        data: o,
        signal: r,
        cancelToken: i,
        timeout: l,
        onDownloadProgress: a,
        onUploadProgress: s,
        responseType: u,
        headers: c,
        withCredentials: d = 'same-origin',
        fetchOptions: f
      } = h0(e)
      u = u ? (u + '').toLowerCase() : 'text'
      let [m, g] = r || i || l ? Yk([r, i], l) : [],
        h,
        b
      const S = () => {
        !h &&
          setTimeout(() => {
            m && m.unsubscribe()
          }),
          (h = !0)
      }
      let C
      try {
        if (
          s &&
          Zk &&
          n !== 'get' &&
          n !== 'head' &&
          (C = await tj(c, o)) !== 0
        ) {
          let w = new Request(t, { method: 'POST', body: o, duplex: 'half' }),
            y
          re.isFormData(o) &&
            (y = w.headers.get('content-type')) &&
            c.setContentType(y),
            w.body && (o = cm(w.body, dm, um(C, dl(s)), null, lc))
        }
        re.isString(d) || (d = d ? 'cors' : 'omit'),
          (b = new Request(t, {
            ...f,
            signal: m,
            method: n.toUpperCase(),
            headers: c.normalize().toJSON(),
            body: o,
            duplex: 'half',
            withCredentials: d
          }))
        let $ = await fetch(b)
        const O = ac && (u === 'stream' || u === 'response')
        if (ac && (a || O)) {
          const w = {}
          ;['status', 'statusText', 'headers'].forEach(T => {
            w[T] = $[T]
          })
          const y = re.toFiniteNumber($.headers.get('content-length'))
          $ = new Response(cm($.body, dm, a && um(y, dl(a, !0)), O && S, lc), w)
        }
        u = u || 'text'
        let x = await fl[re.findKey(fl, u) || 'text']($, e)
        return (
          !O && S(),
          g && g(),
          await new Promise((w, y) => {
            m0(w, y, {
              data: x,
              headers: ln.from($.headers),
              status: $.status,
              statusText: $.statusText,
              config: e,
              request: b
            })
          })
        )
      } catch ($) {
        throw (S(),
        $ && $.name === 'TypeError' && /fetch/i.test($.message)
          ? Object.assign(new Ke('Network Error', Ke.ERR_NETWORK, e, b), {
              cause: $.cause || $
            })
          : Ke.from($, $ && $.code, e, b))
      }
    }),
  sc = { http: hk, xhr: Xk, fetch: nj }
re.forEach(sc, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, 'name', { value: t })
    } catch {}
    Object.defineProperty(e, 'adapterName', { value: t })
  }
})
const fm = e => `- ${e}`,
  oj = e => re.isFunction(e) || e === null || e === !1,
  y0 = {
    getAdapter: e => {
      e = re.isArray(e) ? e : [e]
      const { length: t } = e
      let n, o
      const r = {}
      for (let i = 0; i < t; i++) {
        n = e[i]
        let l
        if (
          ((o = n),
          !oj(n) && ((o = sc[(l = String(n)).toLowerCase()]), o === void 0))
        )
          throw new Ke(`Unknown adapter '${l}'`)
        if (o) break
        r[l || '#' + i] = o
      }
      if (!o) {
        const i = Object.entries(r).map(
          ([a, s]) =>
            `adapter ${a} ` +
            (s === !1
              ? 'is not supported by the environment'
              : 'is not available in the build')
        )
        let l = t
          ? i.length > 1
            ? `since :
` +
              i.map(fm).join(`
`)
            : ' ' + fm(i[0])
          : 'as no adapter specified'
        throw new Ke(
          'There is no suitable adapter to dispatch the request ' + l,
          'ERR_NOT_SUPPORT'
        )
      }
      return o
    },
    adapters: sc
  }
function Qa(e) {
  if (
    (e.cancelToken && e.cancelToken.throwIfRequested(),
    e.signal && e.signal.aborted)
  )
    throw new gr(null, e)
}
function pm(e) {
  return (
    Qa(e),
    (e.headers = ln.from(e.headers)),
    (e.data = Ja.call(e, e.transformRequest)),
    ['post', 'put', 'patch'].indexOf(e.method) !== -1 &&
      e.headers.setContentType('application/x-www-form-urlencoded', !1),
    y0
      .getAdapter(e.adapter || dd.adapter)(e)
      .then(
        function(o) {
          return (
            Qa(e),
            (o.data = Ja.call(e, e.transformResponse, o)),
            (o.headers = ln.from(o.headers)),
            o
          )
        },
        function(o) {
          return (
            v0(o) ||
              (Qa(e),
              o &&
                o.response &&
                ((o.response.data = Ja.call(
                  e,
                  e.transformResponse,
                  o.response
                )),
                (o.response.headers = ln.from(o.response.headers)))),
            Promise.reject(o)
          )
        }
      )
  )
}
const S0 = '1.7.2',
  fd = {}
;['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(
  (e, t) => {
    fd[e] = function(o) {
      return typeof o === e || 'a' + (t < 1 ? 'n ' : ' ') + e
    }
  }
)
const vm = {}
fd.transitional = function(t, n, o) {
  function r(i, l) {
    return (
      '[Axios v' +
      S0 +
      "] Transitional option '" +
      i +
      "'" +
      l +
      (o ? '. ' + o : '')
    )
  }
  return (i, l, a) => {
    if (t === !1)
      throw new Ke(
        r(l, ' has been removed' + (n ? ' in ' + n : '')),
        Ke.ERR_DEPRECATED
      )
    return (
      n &&
        !vm[l] &&
        ((vm[l] = !0),
        console.warn(
          r(
            l,
            ' has been deprecated since v' +
              n +
              ' and will be removed in the near future'
          )
        )),
      t ? t(i, l, a) : !0
    )
  }
}
function rj(e, t, n) {
  if (typeof e != 'object')
    throw new Ke('options must be an object', Ke.ERR_BAD_OPTION_VALUE)
  const o = Object.keys(e)
  let r = o.length
  for (; r-- > 0; ) {
    const i = o[r],
      l = t[i]
    if (l) {
      const a = e[i],
        s = a === void 0 || l(a, i, e)
      if (s !== !0)
        throw new Ke('option ' + i + ' must be ' + s, Ke.ERR_BAD_OPTION_VALUE)
      continue
    }
    if (n !== !0) throw new Ke('Unknown option ' + i, Ke.ERR_BAD_OPTION)
  }
}
const cc = { assertOptions: rj, validators: fd },
  Bn = cc.validators
class pl {
  constructor(t) {
    ;(this.defaults = t),
      (this.interceptors = { request: new lm(), response: new lm() })
  }
  async request(t, n) {
    try {
      return await this._request(t, n)
    } catch (o) {
      if (o instanceof Error) {
        let r
        Error.captureStackTrace
          ? Error.captureStackTrace((r = {}))
          : (r = new Error())
        const i = r.stack ? r.stack.replace(/^.+\n/, '') : ''
        try {
          o.stack
            ? i &&
              !String(o.stack).endsWith(i.replace(/^.+\n.+\n/, '')) &&
              (o.stack +=
                `
` + i)
            : (o.stack = i)
        } catch {}
      }
      throw o
    }
  }
  _request(t, n) {
    typeof t == 'string' ? ((n = n || {}), (n.url = t)) : (n = t || {}),
      (n = wo(this.defaults, n))
    const { transitional: o, paramsSerializer: r, headers: i } = n
    o !== void 0 &&
      cc.assertOptions(
        o,
        {
          silentJSONParsing: Bn.transitional(Bn.boolean),
          forcedJSONParsing: Bn.transitional(Bn.boolean),
          clarifyTimeoutError: Bn.transitional(Bn.boolean)
        },
        !1
      ),
      r != null &&
        (re.isFunction(r)
          ? (n.paramsSerializer = { serialize: r })
          : cc.assertOptions(
              r,
              { encode: Bn.function, serialize: Bn.function },
              !0
            )),
      (n.method = (n.method || this.defaults.method || 'get').toLowerCase())
    let l = i && re.merge(i.common, i[n.method])
    i &&
      re.forEach(
        ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
        g => {
          delete i[g]
        }
      ),
      (n.headers = ln.concat(l, i))
    const a = []
    let s = !0
    this.interceptors.request.forEach(function(h) {
      ;(typeof h.runWhen == 'function' && h.runWhen(n) === !1) ||
        ((s = s && h.synchronous), a.unshift(h.fulfilled, h.rejected))
    })
    const u = []
    this.interceptors.response.forEach(function(h) {
      u.push(h.fulfilled, h.rejected)
    })
    let c,
      d = 0,
      f
    if (!s) {
      const g = [pm.bind(this), void 0]
      for (
        g.unshift.apply(g, a),
          g.push.apply(g, u),
          f = g.length,
          c = Promise.resolve(n);
        d < f;

      )
        c = c.then(g[d++], g[d++])
      return c
    }
    f = a.length
    let m = n
    for (d = 0; d < f; ) {
      const g = a[d++],
        h = a[d++]
      try {
        m = g(m)
      } catch (b) {
        h.call(this, b)
        break
      }
    }
    try {
      c = pm.call(this, m)
    } catch (g) {
      return Promise.reject(g)
    }
    for (d = 0, f = u.length; d < f; ) c = c.then(u[d++], u[d++])
    return c
  }
  getUri(t) {
    t = wo(this.defaults, t)
    const n = g0(t.baseURL, t.url)
    return d0(n, t.params, t.paramsSerializer)
  }
}
re.forEach(['delete', 'get', 'head', 'options'], function(t) {
  pl.prototype[t] = function(n, o) {
    return this.request(
      wo(o || {}, { method: t, url: n, data: (o || {}).data })
    )
  }
})
re.forEach(['post', 'put', 'patch'], function(t) {
  function n(o) {
    return function(i, l, a) {
      return this.request(
        wo(a || {}, {
          method: t,
          headers: o ? { 'Content-Type': 'multipart/form-data' } : {},
          url: i,
          data: l
        })
      )
    }
  }
  ;(pl.prototype[t] = n()), (pl.prototype[t + 'Form'] = n(!0))
})
const Vi = pl
class pd {
  constructor(t) {
    if (typeof t != 'function')
      throw new TypeError('executor must be a function.')
    let n
    this.promise = new Promise(function(i) {
      n = i
    })
    const o = this
    this.promise.then(r => {
      if (!o._listeners) return
      let i = o._listeners.length
      for (; i-- > 0; ) o._listeners[i](r)
      o._listeners = null
    }),
      (this.promise.then = r => {
        let i
        const l = new Promise(a => {
          o.subscribe(a), (i = a)
        }).then(r)
        return (
          (l.cancel = function() {
            o.unsubscribe(i)
          }),
          l
        )
      }),
      t(function(i, l, a) {
        o.reason || ((o.reason = new gr(i, l, a)), n(o.reason))
      })
  }
  throwIfRequested() {
    if (this.reason) throw this.reason
  }
  subscribe(t) {
    if (this.reason) {
      t(this.reason)
      return
    }
    this._listeners ? this._listeners.push(t) : (this._listeners = [t])
  }
  unsubscribe(t) {
    if (!this._listeners) return
    const n = this._listeners.indexOf(t)
    n !== -1 && this._listeners.splice(n, 1)
  }
  static source() {
    let t
    return {
      token: new pd(function(r) {
        t = r
      }),
      cancel: t
    }
  }
}
const ij = pd
function lj(e) {
  return function(n) {
    return e.apply(null, n)
  }
}
function aj(e) {
  return re.isObject(e) && e.isAxiosError === !0
}
const uc = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
}
Object.entries(uc).forEach(([e, t]) => {
  uc[t] = e
})
const sj = uc
function x0(e) {
  const t = new Vi(e),
    n = Zy(Vi.prototype.request, t)
  return (
    re.extend(n, Vi.prototype, t, { allOwnKeys: !0 }),
    re.extend(n, t, null, { allOwnKeys: !0 }),
    (n.create = function(r) {
      return x0(wo(e, r))
    }),
    n
  )
}
const St = x0(dd)
St.Axios = Vi
St.CanceledError = gr
St.CancelToken = ij
St.isCancel = v0
St.VERSION = S0
St.toFormData = ea
St.AxiosError = Ke
St.Cancel = St.CanceledError
St.all = function(t) {
  return Promise.all(t)
}
St.spread = lj
St.isAxiosError = aj
St.mergeConfig = wo
St.AxiosHeaders = ln
St.formToJSON = e => p0(re.isHTMLForm(e) ? new FormData(e) : e)
St.getAdapter = y0.getAdapter
St.HttpStatusCode = sj
St.default = St
const cj = St,
  hr = cj.create({
    baseURL: window.wcv_vendor_product_data.rest_url,
    headers: { 'Content-Type': 'application/json' }
  })
hr.interceptors.request.use(
  e => ((e.headers['X-WP-Nonce'] = window.wcv_vendor_product_data.nonce), e),
  async e => await Promise.reject(e)
)
const uj = async e => (await hr.get('/products', { params: e })).data,
  dj = async e => (await hr.post(`/products/${e}/approve`)).data,
  fj = async (e, t, n) =>
    (
      await hr.post(`/products/${e}/request-change`, {
        message: t,
        include_suggestions: n
      })
    ).data,
  pj = async e => (await hr.post(`/products/${e}/unpublish`)).data,
  vj = async () => (await hr.get('/products/vendors')).data,
  Le = e => {
    var t, n
    return (
      ((n = (t = window.wcv_vendor_product_data) == null ? void 0 : t.i18n) ==
      null
        ? void 0
        : n[e]) || e
    )
  },
  vd = R0('product', () => {
    const e = ne([]),
      t = ne([]),
      n = ne(!1),
      o = ne(!1),
      r = ne('published'),
      i = ne(''),
      l = ne(void 0),
      a = ne({ current_page: 1, per_page: 10, total: 0, total_pages: 0 }),
      s = async C => {
        var $, O
        n.value = !0
        try {
          const x = {
            status: r.value,
            page: C ?? a.value.current_page,
            per_page: a.value.per_page
          }
          i.value && (x.search = i.value), l.value && (x.vendor_id = l.value)
          const w = await uj(x)
          w.success
            ? ((e.value = w.data), w.pagination && (a.value = w.pagination))
            : Kt.error({
                message: Le('error') || 'Error',
                description:
                  Le('failedToLoadProducts') || 'Failed to load products',
                placement: 'topRight',
                duration: 5
              })
        } catch (x) {
          Kt.error({
            message: Le('error') || 'Error',
            description:
              ((O = ($ = x.response) == null ? void 0 : $.data) == null
                ? void 0
                : O.message) ||
              Le('failedToLoadProducts') ||
              'Failed to load products',
            placement: 'topRight',
            duration: 5
          })
        } finally {
          n.value = !1
        }
      }
    return {
      products: e,
      vendors: t,
      isLoading: n,
      isLoadingVendors: o,
      status: r,
      search: i,
      selectedVendorId: l,
      pagination: a,
      fetchProducts: s,
      fetchVendors: async () => {
        o.value = !0
        try {
          const C = await vj()
          C.success && (t.value = C.data)
        } catch (C) {
          const $ = C instanceof Error ? C : new Error(String(C))
          Kt.error({
            message: Le('error') || 'Error',
            description:
              $.message ||
              Le('failedToLoadVendors') ||
              'Failed to load vendors',
            placement: 'topRight',
            duration: 5
          })
        } finally {
          o.value = !1
        }
      },
      approveProductAction: async C => {
        var $, O
        n.value = !0
        try {
          const x = await dj(C)
          x.success
            ? (await s(),
              Kt.success({
                message: Le('success') || 'Success',
                description:
                  x.message ||
                  Le('productApprovedSuccessfully') ||
                  'Product approved successfully',
                placement: 'topRight',
                duration: 5
              }))
            : Kt.error({
                message: Le('error') || 'Error',
                description:
                  x.message ||
                  Le('failedToApproveProduct') ||
                  'Failed to approve product',
                placement: 'topRight',
                duration: 5
              })
        } catch (x) {
          Kt.error({
            message: Le('error') || 'Error',
            description:
              ((O = ($ = x.response) == null ? void 0 : $.data) == null
                ? void 0
                : O.message) ||
              Le('failedToApproveProduct') ||
              'Failed to approve product',
            placement: 'topRight',
            duration: 5
          })
        } finally {
          n.value = !1
        }
      },
      requestProductChangeAction: async (C, $, O) => {
        var x, w
        n.value = !0
        try {
          const y = await fj(C, $, O)
          y.success
            ? (await s(),
              Kt.success({
                message: Le('success') || 'Success',
                description:
                  y.message ||
                  Le('changeRequestSentSuccessfully') ||
                  'Change request sent successfully',
                placement: 'topRight',
                duration: 5
              }))
            : Kt.error({
                message: Le('error') || 'Error',
                description:
                  y.message ||
                  Le('failedToRequestChange') ||
                  'Failed to request change',
                placement: 'topRight',
                duration: 5
              })
        } catch (y) {
          Kt.error({
            message: Le('error') || 'Error',
            description:
              ((w = (x = y.response) == null ? void 0 : x.data) == null
                ? void 0
                : w.message) ||
              Le('failedToRequestChange') ||
              'Failed to request change',
            placement: 'topRight',
            duration: 5
          })
        } finally {
          n.value = !1
        }
      },
      unpublishProductAction: async C => {
        var $, O
        n.value = !0
        try {
          const x = await pj(C)
          x.success
            ? (await s(),
              Kt.success({
                message: Le('success') || 'Success',
                description:
                  x.message ||
                  Le('productUnpublishedSuccessfully') ||
                  'Product unpublished successfully',
                placement: 'topRight',
                duration: 5
              }))
            : Kt.error({
                message: Le('error') || 'Error',
                description:
                  x.message ||
                  Le('failedToUnpublishProduct') ||
                  'Failed to unpublish product',
                placement: 'topRight',
                duration: 5
              })
        } catch (x) {
          Kt.error({
            message: Le('error') || 'Error',
            description:
              ((O = ($ = x.response) == null ? void 0 : $.data) == null
                ? void 0
                : O.message) ||
              Le('failedToUnpublishProduct') ||
              'Failed to unpublish product',
            placement: 'topRight',
            duration: 5
          })
        } finally {
          n.value = !1
        }
      },
      setStatus: C => {
        ;(r.value = C), (a.value.current_page = 1), s(1)
      },
      setSearch: C => {
        ;(i.value = C), (a.value.current_page = 1), s(1)
      },
      setVendorFilter: C => {
        ;(l.value = C), (a.value.current_page = 1), s(1)
      },
      setPage: C => {
        ;(a.value.current_page = C), s(C)
      },
      setPageSize: C => {
        ;(a.value.per_page = C), (a.value.current_page = 1), s(1)
      }
    }
  })
function mj(e, t, n, o, r, i, l) {
  const a = vd()
  return {
    columns: P(() => [
      {
        title: Le('productName'),
        dataIndex: 'name',
        key: 'name',
        width: '30%',
        customRender: ({ record: u }) =>
          lt(
            _t.Text,
            {
              strong: !0,
              onClick: () => r(u),
              style: { cursor: 'pointer', color: '#1890ff' },
              onMouseenter: c => {
                const d = c.target
                d && (d.style.textDecoration = 'underline')
              },
              onMouseleave: c => {
                const d = c.target
                d && (d.style.textDecoration = 'none')
              }
            },
            { default: () => u.name }
          )
      },
      {
        title: Le('vendor'),
        dataIndex: 'vendor_name',
        key: 'vendor_name',
        width: '30%',
        customRender: ({ record: u }) => {
          const c = `?page=wcv-all-vendors#/vendor-edit/${u.vendor_id}`
          return lt(
            _t.Text,
            {
              onClick: () => {
                window.location.href = c
              },
              style: { cursor: 'pointer', color: '#1890ff' },
              onMouseenter: d => {
                const f = d.target
                f && (f.style.textDecoration = 'underline')
              },
              onMouseleave: d => {
                const f = d.target
                f && (f.style.textDecoration = 'none')
              }
            },
            { default: () => u.vendor_name }
          )
        }
      },
      {
        title: Le('actions'),
        key: 'actions',
        width: '20%',
        align: 'right',
        customRender: ({ record: u }) => {
          const c = []
          return (
            l(u) &&
              c.push(
                lt(
                  ht,
                  {
                    type: 'link',
                    size: 'small',
                    icon: lt(mS),
                    onClick: () => i(u),
                    class: 'btn-ai-review'
                  },
                  { default: () => Le('viewAIReview') || 'View AI Review' }
                )
              ),
            u.status === 'pending'
              ? c.push(
                  lt(
                    ht,
                    {
                      type: 'primary',
                      size: 'small',
                      icon: lt(Sd),
                      onClick: () => e(u),
                      loading: a.isLoading
                    },
                    { default: () => Le('approve') }
                  ),
                  lt(
                    ht,
                    {
                      type: 'default',
                      size: 'small',
                      icon: lt(gS),
                      onClick: () => t(u),
                      loading: a.isLoading,
                      class: 'btn-request-change'
                    },
                    { default: () => Le('requestChange') }
                  )
                )
              : u.status === 'publish'
              ? c.push(
                  lt(
                    ht,
                    {
                      type: 'link',
                      size: 'small',
                      icon: lt(hS),
                      onClick: () => o(u),
                      class: 'btn-view'
                    },
                    { default: () => Le('view') }
                  ),
                  lt(
                    ht,
                    {
                      type: 'link',
                      size: 'small',
                      icon: lt(xd),
                      onClick: () => r(u),
                      class: 'btn-edit'
                    },
                    { default: () => Le('edit') }
                  ),
                  lt(
                    vz,
                    {
                      title:
                        Le('confirmUnpublish') ||
                        'Are you sure you want to unpublish this product?',
                      okText: Le('yes') || 'Yes',
                      cancelText: Le('no') || 'No',
                      onConfirm: () => n(u)
                    },
                    {
                      default: () =>
                        lt(
                          ht,
                          {
                            type: 'link',
                            size: 'small',
                            icon: lt(bS),
                            danger: !0,
                            loading: a.isLoading
                          },
                          { default: () => Le('unpublish') }
                        )
                    }
                  )
                )
              : u.status === 'draft' &&
                c.push(
                  lt(
                    ht,
                    {
                      type: 'link',
                      size: 'small',
                      icon: lt(xd),
                      onClick: () => r(u),
                      class: 'btn-edit'
                    },
                    { default: () => Le('edit') }
                  ),
                  lt(
                    ht,
                    {
                      type: 'primary',
                      size: 'small',
                      icon: lt(Sd),
                      onClick: () => e(u),
                      loading: a.isLoading
                    },
                    { default: () => Le('approve') }
                  )
                ),
            lt(
              by,
              { size: 'small', wrap: !1, align: 'end' },
              { default: () => c }
            )
          )
        }
      }
    ])
  }
}
const gj = J({
  __name: 'SearchFilters',
  setup(e) {
    const t = vd(),
      n = ne(''),
      o = () => {
        t.setSearch(n.value)
      },
      r = i => {
        t.setVendorFilter(i)
      }
    return (i, l) => (
      Pi(),
      Za(
        ze(by),
        { size: 12, align: 'center', class: 'search-filter-container' },
        {
          default: Yt(() => [
            v(
              ze(Ct),
              {
                value: n.value,
                'onUpdate:value': l[0] || (l[0] = a => (n.value = a)),
                placeholder: ze(Le)('searchProducts'),
                class: 'search-input',
                onPressEnter: o
              },
              { prefix: Yt(() => [v(ze(yS))]), _: 1 },
              8,
              ['value', 'placeholder']
            ),
            v(
              ze(ir),
              {
                value: ze(t).selectedVendorId,
                placeholder: ze(Le)('filterByVendor'),
                class: 'filter-select',
                'allow-clear': '',
                loading: ze(t).isLoadingVendors,
                onChange: r
              },
              {
                default: Yt(() => [
                  (Pi(!0),
                  A0(
                    nt,
                    null,
                    D0(
                      ze(t).vendors,
                      a => (
                        Pi(),
                        Za(
                          ze(ir).Option,
                          { key: a.id, value: a.id },
                          { default: Yt(() => [kn(bm(a.name), 1)]), _: 2 },
                          1032,
                          ['value']
                        )
                      )
                    ),
                    128
                  ))
                ]),
                _: 1
              },
              8,
              ['value', 'placeholder', 'loading']
            )
          ]),
          _: 1
        }
      )
    )
  }
})
const hj = ym(gj, [['__scopeId', 'data-v-c96c97ba']]),
  bj = J({
    __name: 'ProductsTable',
    setup(e) {
      const t = yd(() =>
          hd(
            () => import('../components/RequestChangeModal.619683ff.js'),
            [
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/components/RequestChangeModal.619683ff.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/vendor.015340d9.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/main.c1853b91.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/antd.0267aafb.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/Dashboard.e7ef6e61.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/assets/Dashboard-7a942db1.css'
            ],
            import.meta.url
          )
        ),
        n = yd(() =>
          hd(
            () => import('../components/AIReview/AIReviewDrawer.83e25de3.js'),
            [
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/components/AIReview/AIReviewDrawer.83e25de3.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/vendor.015340d9.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/Dashboard.e7ef6e61.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/main.c1853b91.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/assets/Dashboard-7a942db1.css',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/common/antd.0267aafb.js',
              window.wcv_vendor_product_data.pluginDirUrl +
                'dist/assets/AIReviewDrawer-2ee2bf85.css'
            ],
            import.meta.url
          )
        ),
        o = vd(),
        r = ne(o.status),
        i = ne(!1),
        l = ne(null),
        a = ne(!1),
        s = ne(null),
        u = ne(''),
        c = P(() => ({
          current: o.pagination.current_page,
          pageSize: o.pagination.per_page,
          total: o.pagination.total,
          showSizeChanger: !0,
          showTotal: (w, y) => `${y[0]}-${y[1]} of ${w} items`,
          pageSizeOptions: ['5', '10', '15', '20', '50', '100']
        })),
        d = w => {
          w.pageSize !== o.pagination.per_page
            ? o.setPageSize(w.pageSize ?? 10)
            : w.current !== o.pagination.current_page &&
              o.setPage(w.current ?? 1)
        }
      We(() => {
        o.fetchVendors(), o.fetchProducts()
      })
      const f = async w => {
          await o.approveProductAction(w.id)
        },
        m = w => {
          ;(l.value = w), (i.value = !0)
        },
        g = async (w, y) => {
          l.value &&
            (await o.requestProductChangeAction(l.value.id, w, y),
            (i.value = !1),
            (l.value = null))
        },
        h = async w => {
          await o.unpublishProductAction(w.id)
        },
        b = w => {
          w.permalink
            ? window.open(w.permalink, '_blank')
            : window.open(
                `/wp-admin/post.php?post=${w.id}&action=edit`,
                '_blank'
              )
        },
        S = w => {
          window.open(`/wp-admin/post.php?post=${w.id}&action=edit`, '_blank')
        },
        C = w => {
          ;(r.value = w), o.setStatus(w)
        },
        $ = w => {
          w.ai_review &&
            typeof w.ai_review == 'object' &&
            Object.keys(w.ai_review).length > 0 &&
            ((s.value = w.ai_review), (u.value = w.name), (a.value = !0))
        },
        O = w =>
          !!(
            w.ai_review &&
            typeof w.ai_review == 'object' &&
            Object.keys(w.ai_review).length > 0
          ),
        { columns: x } = mj(f, m, h, b, S, $, O)
      return (w, y) => (
        Pi(),
        Za(
          ze(Xo),
          { bordered: !1 },
          {
            title: Yt(() => [
              v(
                ze(_t).Title,
                { level: 4, style: { margin: '0' } },
                { default: Yt(() => [kn(bm(ze(Le)('products')), 1)]), _: 1 }
              )
            ]),
            extra: Yt(() => [v(hj)]),
            default: Yt(() => [
              v(
                ze(po),
                {
                  activeKey: r.value,
                  'onUpdate:activeKey': y[0] || (y[0] = T => (r.value = T)),
                  onChange: C
                },
                {
                  default: Yt(() => [
                    v(
                      ze(Go),
                      { key: 'published', tab: ze(Le)('publishedProducts') },
                      {
                        default: Yt(() => [
                          v(
                            ze(Ua),
                            {
                              columns: ze(x),
                              'data-source': ze(o).products,
                              loading: ze(o).isLoading,
                              pagination: c.value,
                              'row-key': 'id',
                              onChange: d
                            },
                            null,
                            8,
                            ['columns', 'data-source', 'loading', 'pagination']
                          )
                        ]),
                        _: 1
                      },
                      8,
                      ['tab']
                    ),
                    v(
                      ze(Go),
                      { key: 'pending', tab: ze(Le)('pendingProducts') },
                      {
                        default: Yt(() => [
                          v(
                            ze(Ua),
                            {
                              columns: ze(x),
                              'data-source': ze(o).products,
                              loading: ze(o).isLoading,
                              pagination: c.value,
                              'row-key': 'id',
                              onChange: d
                            },
                            null,
                            8,
                            ['columns', 'data-source', 'loading', 'pagination']
                          )
                        ]),
                        _: 1
                      },
                      8,
                      ['tab']
                    ),
                    v(
                      ze(Go),
                      { key: 'draft', tab: ze(Le)('draftProducts') },
                      {
                        default: Yt(() => [
                          v(
                            ze(Ua),
                            {
                              columns: ze(x),
                              'data-source': ze(o).products,
                              loading: ze(o).isLoading,
                              pagination: c.value,
                              'row-key': 'id',
                              onChange: d
                            },
                            null,
                            8,
                            ['columns', 'data-source', 'loading', 'pagination']
                          )
                        ]),
                        _: 1
                      },
                      8,
                      ['tab']
                    )
                  ]),
                  _: 1
                },
                8,
                ['activeKey']
              ),
              v(
                ze(t),
                {
                  open: i.value,
                  'onUpdate:open': y[1] || (y[1] = T => (i.value = T)),
                  product: l.value,
                  onConfirm: g
                },
                null,
                8,
                ['open', 'product']
              ),
              v(
                ze(n),
                {
                  open: a.value,
                  'onUpdate:open': y[2] || (y[2] = T => (a.value = T)),
                  review: s.value,
                  'product-name': u.value
                },
                null,
                8,
                ['open', 'review', 'product-name']
              )
            ]),
            _: 1
          }
        )
      )
    }
  })
const yj = ym(bj, [['__scopeId', 'data-v-d6caeda7']]),
  Ej = Object.freeze(
    Object.defineProperty(
      { __proto__: null, default: yj },
      Symbol.toStringTag,
      { value: 'Module' }
    )
  )
export {
  Tj as $,
  Ll as A,
  ht as B,
  ti as C,
  nz as D,
  ni as E,
  Oj as F,
  Ij as G,
  qN as H,
  Fl as I,
  Et as J,
  Ve as K,
  Mm as L,
  jn as M,
  Le as N,
  Ct as O,
  k as P,
  Pn as Q,
  J_ as R,
  kM as S,
  _t as T,
  Pj as U,
  Pt as V,
  Po as W,
  wj as X,
  _C as Y,
  lR as Z,
  p as _,
  N as a,
  _R as a0,
  Fr as a1,
  $t as a2,
  _e as a3,
  vt as a4,
  cp as a5,
  ao as a6,
  Xo as a7,
  Vo as a8,
  Ej as a9,
  mt as b,
  oe as c,
  oo as d,
  Oe as e,
  u1 as f,
  qg as g,
  pt as h,
  ru as i,
  zl as j,
  nr as k,
  Wn as l,
  Ze as m,
  Sc as n,
  rt as o,
  fr as p,
  je as q,
  ct as r,
  Il as s,
  LM as t,
  Zg as u,
  Jt as v,
  kt as w,
  Xe as x,
  Os as y,
  Ro as z
}
