import{d as J,au as Se,j as r,at as Ce,aa as L,i as I,P as Nn,aq as xe,e as c,aj as d,ar as me,y as te,ae as j,F as Fe,ax as An,aB as Be,aw as he,ad as ke,ag as De,M as Le,ai as vn,am as Te,a3 as cn,aC as fn,aD as Fn,ac as kn,a0 as Dn,aE as Ln,aF as nn,U as Tn,a8 as dn,x as $n,af as We,l as Ee,aG as jn}from"./index-0ae7844c.js";import{b as mn,S as Ge,c as pn,d as zn,e as Vn,T as Bn}from"./isSymbol-d0ec885c.js";import{c as _e}from"./vnode-454b4aa7.js";import{K as Wn,s as we}from"./shallowequal-a089597b.js";import{R as yn}from"./index-c2776ddf.js";import{w as Ue}from"./_plugin-vue_export-helper-277b1c3f.js";var gn=Symbol("OverflowContextProviderKey"),Ye=J({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,l){var a=l.slots;return Se(gn,r(function(){return e.value})),function(){var n;return(n=a.default)===null||n===void 0?void 0:n.call(a)}}}),Gn=function(){return Ce(gn,r(function(){return null}))},Un=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Me=void 0;const Ae=J({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:L.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:L.any,invalidate:Boolean},setup:function(e,l){var a=l.slots,n=l.expose,o=r(function(){return e.responsive&&!e.display}),s=I();n({itemNodeRef:s});function m(v){e.registerSize(e.itemKey,v)}return Nn(function(){m(null)}),function(){var v,b=e.prefixCls,p=e.invalidate,y=e.item,M=e.renderItem,h=e.responsive;e.registerSize,e.itemKey,e.display;var C=e.order,f=e.component,w=f===void 0?"div":f,E=xe(e,Un),Y=(v=a.default)===null||v===void 0?void 0:v.call(a),x=M&&y!==Me?M(y):Y,S;p||(S={opacity:o.value?0:1,height:o.value?0:Me,overflowY:o.value?"hidden":Me,order:h?C:Me,pointerEvents:o.value?"none":Me,position:o.value?"absolute":Me});var z={};return o.value&&(z["aria-hidden"]=!0),c(yn,{disabled:!h,onResize:function(N){var K=N.offsetWidth;m(K)}},{default:function(){return c(w,d(d(d({class:me(!p&&b),style:S},z),E),{},{ref:s}),{default:function(){return[x]}})}})}}});var Hn=["component"],Yn=["className"],qn=["class"];const Xn=J({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:L.any,title:L.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,l){var a=l.slots,n=l.attrs,o=Gn();return function(){if(!o.value){var s,m=e.component,v=m===void 0?"div":m,b=xe(e,Hn);return c(v,d(d({},b),n),{default:function(){return[(s=a.default)===null||s===void 0?void 0:s.call(a)]}})}var p=o.value,y=p.className,M=xe(p,Yn),h=n.class,C=xe(n,qn);return c(Ye,{value:null},{default:function(){return[c(Ae,d(d(d({class:me(y,h)},M),C),e),a)]}})}}});var Zn=["class","style"],hn="responsive",Cn="invalidate";function Jn(t){return"+ ".concat(t.length," ...")}var Qn=function(){return{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:L.any,component:String,itemComponent:L.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},ze=J({name:"Overflow",inheritAttrs:!1,props:Qn(),emits:["visibleChange"],setup:function(e,l){var a=l.attrs,n=l.emit,o=l.slots,s=r(function(){return e.ssr==="full"}),m=I(null),v=r(function(){return m.value||0}),b=I(new Map),p=I(0),y=I(0),M=I(0),h=I(null),C=I(null),f=r(function(){return C.value===null&&s.value?Number.MAX_SAFE_INTEGER:C.value||0}),w=I(!1),E=r(function(){return"".concat(e.prefixCls,"-item")}),Y=r(function(){return Math.max(p.value,y.value)}),x=r(function(){return!!(e.data.length&&e.maxCount===hn)}),S=r(function(){return e.maxCount===Cn}),z=r(function(){return x.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),B=r(function(){var P=e.data;return x.value?m.value===null&&s.value?P=e.data:P=e.data.slice(0,Math.min(e.data.length,v.value/e.itemWidth)):typeof e.maxCount=="number"&&(P=e.data.slice(0,e.maxCount)),P}),N=r(function(){return x.value?e.data.slice(f.value+1):e.data.slice(B.value.length)}),K=function(_,A){var R;return typeof e.itemKey=="function"?e.itemKey(_):(R=e.itemKey&&(_==null?void 0:_[e.itemKey]))!==null&&R!==void 0?R:A},O=r(function(){return e.renderItem||function(P){return P}}),W=function(_,A){C.value=_,A||(w.value=_v.value){W(R-1),h.value=P-ee-M.value+y.value;break}}e.suffix&&ue(0)+M.value>v.value&&(h.value=null)}}),function(){var P=w.value&&!!N.value.length,_=e.itemComponent,A=e.renderRawItem,R=e.renderRawRest,ee=e.renderRest,re=e.prefixCls,q=re===void 0?"rc-overflow":re,se=e.suffix,i=e.component,u=i===void 0?"div":i,g=e.id,F=e.onMousedown,k=a.class,$=a.style,V=xe(a,Zn),T={};h.value!==null&&x.value&&(T={position:"absolute",left:"".concat(h.value,"px"),top:0});var U={prefixCls:E.value,responsive:x.value,component:_,invalidate:S.value},oe=A?function(Z,H){var ce=K(Z,H);return c(Ye,{key:ce,value:d(d({},U),{},{order:H,item:Z,itemKey:ce,registerSize:ae,display:H<=f.value})},{default:function(){return[A(Z,H)]}})}:function(Z,H){var ce=K(Z,H);return c(Ae,d(d({},U),{},{order:H,key:ce,item:Z,renderItem:O.value,itemKey:ce,registerSize:ae,display:H<=f.value}),null)},le=function(){return null},ve={order:P?f.value:Number.MAX_SAFE_INTEGER,className:"".concat(E.value," ").concat(E.value,"-rest"),registerSize:Q,display:P};if(R)R&&(le=function(){return c(Ye,{value:d(d({},U),ve)},{default:function(){return[R(N.value)]}})});else{var be=ee||Jn;le=function(){return c(Ae,d(d({},U),ve),{default:function(){return typeof be=="function"?be(N.value):be}})}}var Ve=function(){var H;return c(u,d({id:g,class:me(!S.value&&q,k),style:$,onMousedown:F},V),{default:function(){return[B.value.map(oe),z.value?le():null,se&&c(Ae,d(d({},U),{},{order:f.value,class:"".concat(E.value,"-suffix"),registerSize:ie,display:!0,style:T}),{default:function(){return se}}),(H=o.default)===null||H===void 0?void 0:H.call(o)]}})};return c(yn,{disabled:!x.value,onResize:X},{default:Ve})}}});ze.Item=Xn;ze.RESPONSIVE=hn;ze.INVALIDATE=Cn;const Pe=ze;var Ie={adjustX:1,adjustY:1},Ke=[0,0],et={topLeft:{points:["bl","tl"],overflow:Ie,offset:[0,-4],targetOffset:Ke},topCenter:{points:["bc","tc"],overflow:Ie,offset:[0,-4],targetOffset:Ke},topRight:{points:["br","tr"],overflow:Ie,offset:[0,-4],targetOffset:Ke},bottomLeft:{points:["tl","bl"],overflow:Ie,offset:[0,4],targetOffset:Ke},bottomCenter:{points:["tc","bc"],overflow:Ie,offset:[0,4],targetOffset:Ke},bottomRight:{points:["tr","br"],overflow:Ie,offset:[0,4],targetOffset:Ke}};const nt=et;var tt=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const Wt=J({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:L.string.def("rc-dropdown"),transitionName:String,overlayClassName:L.string.def(""),openClassName:String,animation:L.any,align:L.object,overlayStyle:{type:Object,default:void 0},placement:L.string.def("bottomLeft"),overlay:L.any,trigger:L.oneOfType([L.string,L.arrayOf(L.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:L.array,hideAction:L.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:L.number.def(.15),mouseLeaveDelay:L.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,l){var a=l.slots,n=l.emit,o=l.expose,s=I(!!e.visible);te(function(){return e.visible},function(C){C!==void 0&&(s.value=C)});var m=I();o({triggerRef:m});var v=function(f){e.visible===void 0&&(s.value=!1),n("overlayClick",f)},b=function(f){e.visible===void 0&&(s.value=f),n("visibleChange",f)},p=function(){var f,w=(f=a.overlay)===null||f===void 0?void 0:f.call(a),E={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:v,getPopupContainer:function(){return m.value.getPopupDomNode()}};return c(Fe,null,[e.arrow&&c("div",{class:"".concat(e.prefixCls,"-arrow")},null),_e(w,E,!1)])},y=r(function(){var C=e.minOverlayWidthMatchTrigger,f=C===void 0?!e.alignPoint:C;return f}),M=function(){var f,w=(f=a.default)===null||f===void 0?void 0:f.call(a);return s.value&&w?_e(w[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):w},h=r(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var C=e.prefixCls,f=e.arrow,w=e.showAction,E=e.overlayStyle,Y=e.trigger,x=e.placement,S=e.align,z=e.getPopupContainer,B=e.transitionName,N=e.animation,K=e.overlayClassName,O=xe(e,tt);return c(mn,d(d({},O),{},{prefixCls:C,ref:m,popupClassName:me(K,j({},"".concat(C,"-show-arrow"),f)),popupStyle:E,builtinPlacements:nt,action:Y,showAction:w,hideAction:h.value||[],popupPlacement:x,popupAlign:S,popupTransitionName:B,popupAnimation:N,popupVisible:s.value,stretch:y.value?"minWidth":"",onPopupVisibleChange:b,getPopupContainer:z}),{popup:p,default:M})}}});var at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const lt=at;function tn(t){for(var e=1;e-1}function pt(t,e,l){for(var a=-1,n=t==null?0:t.length;++a=bt){var b=e?null:Ct(t);if(b)return pn(b);s=!1,n=Vn,v=new zn}else v=e?[]:m;e:for(;++a"u"?T=O&&V?$:"":k===!1&&(T="");var U={title:T};!S.value&&!x.value&&(U.title=null,U.visible=!1);var oe={};e.role==="option"&&(oe["aria-selected"]=ie.value);var le=Te(a,e,"icon");return c(Bn,d(d({},U),{},{placement:Y.value?"left":"right",overlayClassName:"".concat(C.value,"-inline-collapsed-tooltip")}),{default:function(){return[c(Pe.Item,d(d(d({component:"li"},o),{},{id:e.id,style:d(d({},o.style||{}),se.value),class:[ue.value,(F={},j(F,"".concat(o.class),!!o.class),j(F,"".concat(C.value,"-item-only-child"),(le?V+1:V)===1),F)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":v,"aria-disabled":e.disabled},oe),{},{onMouseenter:A,onMouseleave:R,onClick:_,onKeydown:ee,onFocus:re,title:typeof k=="string"?k:void 0}),{default:function(){return[_e(le,{class:"".concat(C.value,"-item-icon")},!1),q(le,$)]}})]}})}}});var de={adjustX:1,adjustY:1},Pt={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:de,offset:[4,0]}},_t={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:de,offset:[4,0]}},Ot={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const ln=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,l){var a=l.slots,n=l.emit,o=I(!1),s=pe(),m=s.getPopupContainer,v=s.rtl,b=s.subMenuOpenDelay,p=s.subMenuCloseDelay,y=s.builtinPlacements,M=s.triggerSubMenuAction,h=s.isRootMenu,C=s.forceSubMenuRender,f=s.motion,w=s.defaultMotions,E=Kn(),Y=r(function(){return v.value?d(d({},_t),y.value):d(d({},Pt),y.value)}),x=r(function(){return Ot[e.mode]}),S=I();te(function(){return e.visible},function(N){Ue.cancel(S.value),S.value=Ue(function(){o.value=N})},{immediate:!0}),Le(function(){Ue.cancel(S.value)});var z=function(K){n("visibleChange",K)},B=r(function(){var N,K,O=f.value||((N=w.value)===null||N===void 0?void 0:N[e.mode])||((K=w.value)===null||K===void 0?void 0:K.other),W=typeof O=="function"?O():O;return W?Fn(W.name,{css:!0}):void 0});return function(){var N=e.prefixCls,K=e.popupClassName,O=e.mode,W=e.popupOffset,X=e.disabled;return c(mn,{prefixCls:N,popupClassName:me("".concat(N,"-popup"),j({},"".concat(N,"-rtl"),v.value),K),stretch:O==="horizontal"?"minWidth":null,getPopupContainer:h.value?m.value:function(ae){return ae.parentNode},builtinPlacements:Y.value,popupPlacement:x.value,popupVisible:o.value,popupAlign:W&&{offset:W},action:X?[]:[M.value],mouseEnterDelay:b.value,mouseLeaveDelay:p.value,onPopupVisibleChange:z,forceRender:E||C.value,popupAnimation:B.value},{popup:a.popup,default:a.default})}}});var On=function(e,l){var a,n=l.slots,o=l.attrs,s=pe(),m=s.prefixCls,v=s.mode;return c("ul",d(d({},o),{},{class:me(m.value,"".concat(m.value,"-sub"),"".concat(m.value,"-").concat(v.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(a=n.default)===null||a===void 0?void 0:a.call(n)])};On.displayName="SubMenuList";const Rn=On,Rt=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,l){var a=l.slots,n=r(function(){return"inline"}),o=pe(),s=o.motion,m=o.mode,v=o.defaultMotions,b=r(function(){return m.value===n.value}),p=I(!b.value),y=r(function(){return b.value?e.open:!1});te(m,function(){b.value&&(p.value=!1)},{flush:"post"});var M=r(function(){var h,C,f=s.value||((h=v.value)===null||h===void 0?void 0:h[n.value])||((C=v.value)===null||C===void 0?void 0:C.other),w=typeof f=="function"?f():f;return d(d({},w),{},{appear:e.keyPath.length<=1})});return function(){var h;return p.value?null:c($e,{mode:n.value},{default:function(){return[c(kn,M.value,{default:function(){return[Dn(c(Rn,{id:e.id},{default:function(){return[(h=a.default)===null||h===void 0?void 0:h.call(a)]}}),[[Ln,y.value]])]}})]}})}}});var un=0,Et=function(){return{icon:L.any,title:L.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Oe=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Et(),slots:["icon","title","expandIcon"],setup:function(e,l){var a,n,o=l.slots,s=l.attrs,m=l.emit;Sn(!1);var v=Qe(),b=cn(),p=ke(b.vnode.key)==="symbol"?String(b.vnode.key):b.vnode.key;De(ke(b.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(p),'"` not support Symbol type'));var y=nn(p)?p:"sub_menu_".concat(++un,"_$$_not_set_key"),M=(a=e.eventKey)!==null&&a!==void 0?a:nn(p)?"sub_menu_".concat(++un,"_$$_").concat(p):y,h=Je(),C=h.parentEventKeys,f=h.parentInfo,w=h.parentKeys,E=r(function(){return[].concat(he(w.value),[y])}),Y=I([]),x={eventKey:M,key:y,parentEventKeys:C,childrenEventKeys:Y,parentKeys:w};(n=f.childrenEventKeys)===null||n===void 0||n.value.push(M),Le(function(){if(f.childrenEventKeys){var G;f.childrenEventKeys.value=(G=f.childrenEventKeys)===null||G===void 0?void 0:G.value.filter(function(D){return D!=M})}}),xt(M,y,x);var S=pe(),z=S.prefixCls,B=S.activeKeys,N=S.disabled,K=S.changeActiveKeys,O=S.mode,W=S.inlineCollapsed,X=S.antdMenuTheme,ae=S.openKeys,Q=S.overflowDisabled,ie=S.onOpenChange,ue=S.registerMenuInfo,P=S.unRegisterMenuInfo,_=S.selectedSubMenuKeys,A=S.expandIcon,R=p!=null,ee=!v&&(Kn()||!R);rt(ee),(v&&R||!v&&!R||ee)&&(ue(M,x),Le(function(){P(M)}));var re=r(function(){return"".concat(z.value,"-submenu")}),q=r(function(){return N.value||e.disabled}),se=I(),i=I(),u=r(function(){return ae.value.includes(y)}),g=r(function(){return!Q.value&&u.value}),F=r(function(){return _.value.includes(y)}),k=I(!1);te(B,function(){k.value=!!B.value.find(function(G){return G===y})},{immediate:!0});var $=function(D){q.value||(m("titleClick",D,y),O.value==="inline"&&ie(y,!u.value))},V=function(D){q.value||(K(E.value),m("mouseenter",D))},T=function(D){q.value||(K([]),m("mouseleave",D))},U=_n(r(function(){return E.value.length})),oe=function(D){O.value!=="inline"&&ie(y,D)},le=function(){K(E.value)},ve=M&&"".concat(M,"-popup"),be=r(function(){return me(z.value,"".concat(z.value,"-").concat(X.value),e.popupClassName)}),Ve=function(D,ne){if(!ne)return W.value&&!w.value.length&&D&&typeof D=="string"?c("div",{class:"".concat(z.value,"-inline-collapsed-noicon")},[D.charAt(0)]):c("span",{class:"".concat(z.value,"-title-content")},[D]);var fe=fn(D)&&D.type==="span";return c(Fe,null,[_e(ne,{class:"".concat(z.value,"-item-icon")},!1),fe?D:c("span",{class:"".concat(z.value,"-title-content")},[D])])},Z=r(function(){return O.value!=="inline"&&E.value.length>1?"vertical":O.value}),H=r(function(){return O.value==="horizontal"?"vertical":O.value}),ce=r(function(){return Z.value==="horizontal"?"vertical":Z.value}),Re=function(){var D=re.value,ne=Te(o,e,"icon"),fe=e.expandIcon||o.expandIcon||A.value,ye=Ve(Te(o,e,"title"),ne);return c("div",{style:U.value,class:"".concat(D,"-title"),tabindex:q.value?null:-1,ref:se,title:typeof ye=="string"?ye:null,"data-menu-id":y,"aria-expanded":g.value,"aria-haspopup":!0,"aria-controls":ve,"aria-disabled":q.value,onClick:$,onFocus:le},[ye,O.value!=="horizontal"&&fe?fe(d(d({},e),{},{isOpen:g.value})):c("i",{class:"".concat(D,"-arrow")},null)])};return function(){var G;if(v){var D;return R?(D=o.default)===null||D===void 0?void 0:D.call(o):null}var ne=re.value,fe=function(){return null};return!Q.value&&O.value!=="inline"?fe=function(){return c(ln,{mode:Z.value,prefixCls:ne,visible:!e.internalPopupClose&&g.value,popupClassName:be.value,popupOffset:e.popupOffset,disabled:q.value,onVisibleChange:oe},{default:function(){return[Re()]},popup:function(){return c($e,{mode:ce.value,isRootMenu:!1},{default:function(){return[c(Rn,{id:ve,ref:i},{default:o.default})]}})}})}:fe=function(){return c(ln,null,{default:Re})},c($e,{mode:H.value},{default:function(){return[c(Pe.Item,d(d({component:"li"},s),{},{role:"none",class:me(ne,"".concat(ne,"-").concat(O.value),s.class,(G={},j(G,"".concat(ne,"-open"),g.value),j(G,"".concat(ne,"-active"),k.value),j(G,"".concat(ne,"-selected"),F.value),j(G,"".concat(ne,"-disabled"),q.value),G)),onMouseenter:V,onMouseleave:T,"data-submenu-id":y}),{default:function(){return c(Fe,null,[fe(),!Q.value&&c(Rt,{id:ve,open:g.value,keyPath:E.value},{default:o.default})])}})]}})}}});function En(t,e){if(t.classList)return t.classList.contains(e);var l=t.className;return" ".concat(l," ").indexOf(" ".concat(e," "))>-1}function rn(t,e){t.classList?t.classList.add(e):En(t,e)||(t.className="".concat(t.className," ").concat(e))}function on(t,e){if(t.classList)t.classList.remove(e);else if(En(t,e)){var l=t.className;t.className=" ".concat(l," ").replace(" ".concat(e," ")," ")}}var Nt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:l,css:!0,onBeforeEnter:function(n){n.style.height="0px",n.style.opacity="0",rn(n,e)},onEnter:function(n){Tn(function(){n.style.height="".concat(n.scrollHeight,"px"),n.style.opacity="1"})},onAfterEnter:function(n){n&&(on(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:function(n){rn(n,e),n.style.height="".concat(n.offsetHeight,"px"),n.style.opacity=null},onLeave:function(n){setTimeout(function(){n.style.height="0px",n.style.opacity="0"})},onAfterLeave:function(n){n&&(on(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}};const At=Nt;var Ft=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.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}},sn=[];const ge=J({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Ft(),slots:["expandIcon","overflowedIndicator"],setup:function(e,l){var a=l.slots,n=l.emit,o=l.attrs,s=dn("menu",e),m=s.prefixCls,v=s.direction,b=s.getPrefixCls,p=I({}),y=Ce(It,I(void 0)),M=r(function(){return y.value!==void 0?y.value:e.inlineCollapsed}),h=I(!1);$n(function(){h.value=!0}),We(function(){De(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),De(!(y.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var C=I([]),f=I([]),w=I({});te(p,function(){for(var i={},u=0,g=Object.values(p.value);u0&&arguments[0]!==void 0?arguments[0]:x.value;we(x.value,i)||(x.value=i.slice())},{immediate:!0,deep:!0});var S,z=function(u){clearTimeout(S),S=setTimeout(function(){e.activeKey===void 0&&(C.value=u),n("update:activeKey",u[u.length-1])})},B=r(function(){return!!e.disabled}),N=r(function(){return v.value==="rtl"}),K=I("vertical"),O=I(!1);We(function(){(e.mode==="inline"||e.mode==="vertical")&&M.value?(K.value="vertical",O.value=M.value):(K.value=e.mode,O.value=!1)});var W=r(function(){return K.value==="inline"}),X=function(u){x.value=u,n("update:openKeys",u),n("openChange",u)},ae=I(x.value),Q=I(!1);te(x,function(){W.value&&(ae.value=x.value)},{immediate:!0}),te(W,function(){if(!Q.value){Q.value=!0;return}W.value?x.value=ae.value:X(sn)},{immediate:!0});var ie=r(function(){var i;return i={},j(i,"".concat(m.value),!0),j(i,"".concat(m.value,"-root"),!0),j(i,"".concat(m.value,"-").concat(K.value),!0),j(i,"".concat(m.value,"-inline-collapsed"),O.value),j(i,"".concat(m.value,"-rtl"),N.value),j(i,"".concat(m.value,"-").concat(e.theme),!0),i}),ue=r(function(){return b()}),P=r(function(){return{horizontal:{name:"".concat(ue.value,"-slide-up")},inline:At,other:{name:"".concat(ue.value,"-zoom-big")}}});Sn(!0);var _=function i(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=[],F=p.value;return u.forEach(function(k){var $=F[k],V=$.key,T=$.childrenEventKeys;g.push.apply(g,[V].concat(he(i(Ee(T)))))}),g},A=function(u){n("click",u),Y(u)},R=function(u,g){var F,k=((F=w.value[u])===null||F===void 0?void 0:F.childrenEventKeys)||[],$=x.value.filter(function(T){return T!==u});if(g)$.push(u);else if(K.value!=="inline"){var V=_(Ee(k));$=He($.filter(function(T){return!V.includes(T)}))}we(x,$)||X($)},ee=function(u,g){p.value=d(d({},p.value),{},j({},u,g))},re=function(u){delete p.value[u],p.value=d({},p.value)},q=I(0),se=r(function(){return e.expandIcon||a.expandIcon?function(i){var u=e.expandIcon||a.expandIcon;return u=typeof u=="function"?u(i):u,_e(u,{class:"".concat(m.value,"-submenu-expand-icon")},!1)}:null});return st({store:p,prefixCls:m,activeKeys:C,openKeys:x,selectedKeys:f,changeActiveKeys:z,disabled:B,rtl:N,mode:K,inlineIndent:r(function(){return e.inlineIndent}),subMenuCloseDelay:r(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:r(function(){return e.subMenuOpenDelay}),builtinPlacements:r(function(){return e.builtinPlacements}),triggerSubMenuAction:r(function(){return e.triggerSubMenuAction}),getPopupContainer:r(function(){return e.getPopupContainer}),inlineCollapsed:O,antdMenuTheme:r(function(){return e.theme}),siderCollapsed:y,defaultMotions:r(function(){return h.value?P.value:null}),motion:r(function(){return h.value?e.motion:null}),overflowDisabled:I(void 0),onOpenChange:R,onItemClick:A,registerMenuInfo:ee,unRegisterMenuInfo:re,selectedSubMenuKeys:E,isRootMenu:I(!0),expandIcon:se,forceSubMenuRender:r(function(){return e.forceSubMenuRender})}),function(){var i,u,g=vn((i=a.default)===null||i===void 0?void 0:i.call(a)),F=q.value>=g.length-1||K.value!=="horizontal"||e.disabledOverflow,k=K.value!=="horizontal"||e.disabledOverflow?g:g.map(function(V,T){return c($e,{key:V.key,overflowDisabled:T>q.value},{default:function(){return V}})}),$=((u=a.overflowedIndicator)===null||u===void 0?void 0:u.call(a))||c(it,null,null);return c(Pe,d(d({},o),{},{onMousedown:e.onMousedown,prefixCls:"".concat(m.value,"-overflow"),component:"ul",itemComponent:je,class:[ie.value,o.class],role:"menu",id:e.id,data:k,renderRawItem:function(T){return T},renderRawRest:function(T){var U=T.length,oe=U?g.slice(-U):null;return c(Fe,null,[c(Oe,{eventKey:Ne,key:Ne,title:$,disabled:F,internalPopupClose:U===0},{default:function(){return oe}}),c(an,null,{default:function(){return[c(Oe,{eventKey:Ne,key:Ne,title:$,disabled:F,internalPopupClose:U===0},{default:function(){return oe}})]}})])},maxCount:K.value!=="horizontal"||e.disabledOverflow?Pe.INVALIDATE:Pe.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(T){q.value=T}}),{default:function(){return[c(jn,{to:"body"},{default:function(){return[c("div",{style:{display:"none"},"aria-hidden":!0},[c(an,null,{default:function(){return[k]}})])]}})]}})}}});var kt=function(){return{title:L.any}};const qe=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:kt(),slots:["title"],setup:function(e,l){var a=l.slots,n=l.attrs,o=pe(),s=o.prefixCls,m=r(function(){return"".concat(s.value,"-item-group")}),v=Qe();return function(){var b,p;return v?(b=a.default)===null||b===void 0?void 0:b.call(a):c("li",d(d({},n),{},{onClick:function(M){return M.stopPropagation()},class:m.value}),[c("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(m.value,"-title")},[Te(a,e,"title")]),c("ul",{class:"".concat(m.value,"-list")},[(p=a.default)===null||p===void 0?void 0:p.call(a)])])}}});var Dt=function(){return{prefixCls:String,dashed:Boolean}};const Xe=J({compatConfig:{MODE:3},name:"AMenuDivider",props:Dt(),setup:function(e){var l=dn("menu",e),a=l.prefixCls,n=r(function(){var o;return o={},j(o,"".concat(a.value,"-item-divider"),!0),j(o,"".concat(a.value,"-item-divider-dashed"),!!e.dashed),o});return function(){return c("li",{class:n.value},null)}}});ge.install=function(t){return t.component(ge.name,ge),t.component(je.name,je),t.component(Oe.name,Oe),t.component(Xe.name,Xe),t.component(qe.name,qe),t};ge.Item=je;ge.Divider=Xe;ge.SubMenu=Oe;ge.ItemGroup=qe;export{Wt as D,it as E,qe as I,ge as M,Pe as O,Gt as S,je as _,Oe as a,Xe as b,It as c,vt as d,At as e,pt as f,mt as g};