2 lines
36 KiB
JavaScript
2 lines
36 KiB
JavaScript
import{ah as x,ai as C,d as U,ar as $,g as _,P as Y,h as v,as as Zn,b as y,O as oe,F as Ne,aE as Qn,M as ye,N as ce,V as Be,aq as se,ax as Z,Y as Te,Q as we,ay as Cn,b3 as Fe,aa as Mn,aw as xn,aV as Xn,aM as Jn,a6 as et,aW as nt,bN as un,R as tt,Z as $e,x as Ze,T as Ge,j as Oe,aZ as at,aD as Sn,b4 as wn}from"./index-4139499d.js";import{a as In,L as ze,M as Kn,H as rt,I as it,O as Se,T as ut,K as lt,s as xe,j as Pe,N as Pn,Q as ot,R as st,V as ct,J as ft,W as On,y as vt}from"./shallowequal-26ff1c74.js";import{c as Ie,i as dt,b as pt,S as De}from"./vnode-b177b857.js";import{w as He}from"./_plugin-vue_export-helper-c6b863a5.js";var ln=["xxxl","xxl","xl","lg","md","sm","xs"],_e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},ue=new Map,We=-1,Ee={},mt={matchHandlers:{},dispatch:function(e){return Ee=e,ue.forEach(function(a){return a(Ee)}),ue.size>=1},subscribe:function(e){return ue.size||this.register(),We+=1,ue.set(We,e),e(Ee),We},unsubscribe:function(e){ue.delete(e),ue.size||this.unregister()},unregister:function(){var e=this;Object.keys(_e).forEach(function(a){var r=_e[a],t=e.matchHandlers[r];t==null||t.mql.removeListener(t==null?void 0:t.listener)}),ue.clear()},register:function(){var e=this;Object.keys(_e).forEach(function(a){var r=_e[a],t=function(d){var p=d.matches;e.dispatch(x(x({},Ee),{},C({},a,p)))},i=window.matchMedia(r);i.addListener(t),e.matchHandlers[r]={mql:i,listener:t},t(i)})}};const on=mt;var me={adjustX:1,adjustY:1},ge=[0,0],gt={topLeft:{points:["bl","tl"],overflow:me,offset:[0,-4],targetOffset:ge},topCenter:{points:["bc","tc"],overflow:me,offset:[0,-4],targetOffset:ge},topRight:{points:["br","tr"],overflow:me,offset:[0,-4],targetOffset:ge},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,4],targetOffset:ge},bottomCenter:{points:["tc","bc"],overflow:me,offset:[0,4],targetOffset:ge},bottomRight:{points:["tr","br"],overflow:me,offset:[0,4],targetOffset:ge}};const yt=gt;var ht=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const Ya=U({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:$.string.def("rc-dropdown"),transitionName:String,overlayClassName:$.string.def(""),openClassName:String,animation:$.any,align:$.object,overlayStyle:{type:Object,default:void 0},placement:$.string.def("bottomLeft"),overlay:$.any,trigger:$.oneOfType([$.string,$.arrayOf($.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:$.array,hideAction:$.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:$.number.def(.15),mouseLeaveDelay:$.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,a){var r=a.slots,t=a.emit,i=a.expose,s=_(!!e.visible);Y(function(){return e.visible},function(f){f!==void 0&&(s.value=f)});var d=_();i({triggerRef:d});var p=function(c){e.visible===void 0&&(s.value=!1),t("overlayClick",c)},I=function(c){e.visible===void 0&&(s.value=c),t("visibleChange",c)},m=function(){var c,M=(c=r.overlay)===null||c===void 0?void 0:c.call(r),P={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:p,getPopupContainer:function(){return d.value.getPopupDomNode()}};return y(Ne,null,[e.arrow&&y("div",{class:"".concat(e.prefixCls,"-arrow")},null),Ie(M,P,!1)])},h=v(function(){var f=e.minOverlayWidthMatchTrigger,c=f===void 0?!e.alignPoint:f;return c}),O=function(){var c,M=(c=r.default)===null||c===void 0?void 0:c.call(r);return s.value&&M?Ie(M[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):M},l=v(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var f=e.prefixCls,c=e.arrow,M=e.showAction,P=e.overlayStyle,V=e.trigger,b=e.placement,w=e.align,R=e.getPopupContainer,j=e.transitionName,S=e.animation,K=e.overlayClassName,E=Zn(e,ht);return y(In,x(x({},E),{},{prefixCls:f,ref:d,popupClassName:oe(K,C({},"".concat(f,"-show-arrow"),c)),popupStyle:P,builtinPlacements:yt,action:V,showAction:M,hideAction:l.value||[],popupPlacement:b,popupAlign:w,popupTransitionName:j,popupAnimation:S,popupVisible:s.value,stretch:h.value?"minWidth":"",onPopupVisibleChange:I,getPopupContainer:R}),{popup:m,default:O})}}});var bt={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 Ct=bt;function sn(n){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(a).filter(function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),r.forEach(function(t){Mt(n,t,a[t])})}return n}function Mt(n,e,a){return e in n?Object.defineProperty(n,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[e]=a,n}var Qe=function(e,a){var r=sn({},e,a.attrs);return y(Qn,sn({},r,{icon:Ct}),null)};Qe.displayName="EllipsisOutlined";Qe.inheritAttrs=!1;const xt=Qe;var _n=Symbol("menuContextKey"),En=function(e){ye(_n,e)},ne=function(){return ce(_n)},An=Symbol("ForceRenderKey"),St=function(e){ye(An,e)},Rn=function(){return ce(An,!1)},Nn=Symbol("menuFirstLevelContextKey"),Tn=function(e){ye(Nn,e)},wt=function(){return ce(Nn,!0)},je=U({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0},isRootMenu:{type:Boolean,default:void 0}},setup:function(e,a){var r=a.slots,t=ne(),i=x({},t);return e.mode!==void 0&&(i.mode=Be(e,"mode")),e.isRootMenu!==void 0&&(i.isRootMenu=Be(e,"isRootMenu")),e.overflowDisabled!==void 0&&(i.overflowDisabled=Be(e,"overflowDisabled")),En(i),function(){var s;return(s=r.default)===null||s===void 0?void 0:s.call(r)}}});const It=En;function Kt(n,e,a,r){for(var t=n.length,i=a+(r?1:-1);r?i--:++i<t;)if(e(n[i],i,n))return i;return-1}function Pt(n){return n!==n}function Ot(n,e,a){for(var r=a-1,t=n.length;++r<t;)if(n[r]===e)return r;return-1}function _t(n,e,a){return e===e?Ot(n,e,a):Kt(n,Pt,a)}function Et(n,e){var a=n==null?0:n.length;return!!a&&_t(n,e,0)>-1}function At(n,e,a){for(var r=-1,t=n==null?0:n.length;++r<t;)if(a(e,n[r]))return!0;return!1}function Rt(){}var Nt=1/0,Tt=ze&&1/Kn(new ze([,-0]))[1]==Nt?function(n){return new ze(n)}:Rt;const Ft=Tt;var Dt=200;function jt(n,e,a){var r=-1,t=Et,i=n.length,s=!0,d=[],p=d;if(a)s=!1,t=At;else if(i>=Dt){var I=e?null:Ft(n);if(I)return Kn(I);s=!1,t=it,p=new rt}else p=e?[]:d;e:for(;++r<i;){var m=n[r],h=e?e(m):m;if(m=a||m!==0?m:0,s&&h===h){for(var O=p.length;O--;)if(p[O]===h)continue e;e&&p.push(h),d.push(m)}else t(p,h,a)||(p!==d&&p.push(h),d.push(m))}return d}function Ue(n){return n&&n.length?jt(n):[]}var Lt=Symbol("siderCollapsed"),Za=Symbol("siderHookProvider"),Ae="$$__vc-menu-more__key",Fn=Symbol("KeyPathContext"),Xe=function(){return ce(Fn,{parentEventKeys:v(function(){return[]}),parentKeys:v(function(){return[]}),parentInfo:{}})},kt=function(e,a,r){var t=Xe(),i=t.parentEventKeys,s=t.parentKeys,d=v(function(){return[].concat(se(i.value),[e])}),p=v(function(){return[].concat(se(s.value),[a])});return ye(Fn,{parentEventKeys:d,parentKeys:p,parentInfo:r}),p},Dn=Symbol("measure"),cn=U({compatConfig:{MODE:3},setup:function(e,a){var r=a.slots;return ye(Dn,!0),function(){var t;return(t=r.default)===null||t===void 0?void 0:t.call(r)}}}),Je=function(){return ce(Dn,!1)};const $t=kt;function jn(n){var e=ne(),a=e.mode,r=e.rtl,t=e.inlineIndent;return v(function(){return a.value!=="inline"?null:r.value?{paddingRight:"".concat(n.value*t.value,"px")}:{paddingLeft:"".concat(n.value*t.value,"px")}})}var Vt=0,Bt=function(){return{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:$.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function}};const Le=U({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:Bt(),slots:["icon","title"],setup:function(e,a){var r=a.slots,t=a.emit,i=a.attrs,s=Mn(),d=Je(),p=Z(s.vnode.key)==="symbol"?String(s.vnode.key):s.vnode.key;Te(Z(s.vnode.key)!=="symbol","MenuItem",'MenuItem `:key="'.concat(String(p),'"` not support Symbol type'));var I="menu_item_".concat(++Vt,"_$$_").concat(p),m=Xe(),h=m.parentEventKeys,O=m.parentKeys,l=ne(),f=l.prefixCls,c=l.activeKeys,M=l.disabled,P=l.changeActiveKeys,V=l.rtl,b=l.inlineCollapsed,w=l.siderCollapsed,R=l.onItemClick,j=l.selectedKeys,S=l.registerMenuInfo,K=l.unRegisterMenuInfo,E=wt(),B=_(!1),z=v(function(){return[].concat(se(O.value),[p])}),Q={eventKey:I,key:p,parentEventKeys:h,parentKeys:O,isLeaf:!0};S(I,Q),we(function(){K(I)}),Y(c,function(){B.value=!!c.value.find(function(o){return o===p})},{immediate:!0});var q=v(function(){return M.value||e.disabled}),te=v(function(){return j.value.includes(p)}),fe=v(function(){var o,u="".concat(f.value,"-item");return o={},C(o,"".concat(u),!0),C(o,"".concat(u,"-danger"),e.danger),C(o,"".concat(u,"-active"),B.value),C(o,"".concat(u,"-selected"),te.value),C(o,"".concat(u,"-disabled"),q.value),o}),ve=function(u){return{key:p,eventKey:I,keyPath:z.value,eventKeyPath:[].concat(se(h.value),[I]),domEvent:u,item:x(x({},e),i)}},he=function(u){if(!q.value){var g=ve(u);t("click",u),R(g)}},be=function(u){q.value||(P(z.value),t("mouseenter",u))},X=function(u){q.value||(P([]),t("mouseleave",u))},de=function(u){if(t("keydown",u),u.which===lt.ENTER){var g=ve(u);t("click",u),R(g)}},pe=function(u){P(z.value),t("focus",u)},G=function(u,g){var N=y("span",{class:"".concat(f.value,"-title-content")},[g]);return(!u||xn(g)&&g.type==="span")&&g&&b.value&&E&&typeof g=="string"?y("div",{class:"".concat(f.value,"-inline-collapsed-noicon")},[g.charAt(0)]):N},Ce=jn(v(function(){return z.value.length}));return function(){var o,u,g,N;if(d)return null;var T=(o=e.title)!==null&&o!==void 0?o:(u=r.title)===null||u===void 0?void 0:u.call(r),F=Cn((g=r.default)===null||g===void 0?void 0:g.call(r)),k=F.length,D=T;typeof T>"u"?D=E&&k?F:"":T===!1&&(D="");var H={title:D};!w.value&&!b.value&&(H.title=null,H.visible=!1);var ae={};e.role==="option"&&(ae["aria-selected"]=te.value);var re=Fe(r,e,"icon");return y(ut,x(x({},H),{},{placement:V.value?"left":"right",overlayClassName:"".concat(f.value,"-inline-collapsed-tooltip")}),{default:function(){return[y(Se.Item,x(x(x({component:"li"},i),{},{id:e.id,style:x(x({},i.style||{}),Ce.value),class:[fe.value,(N={},C(N,"".concat(i.class),!!i.class),C(N,"".concat(f.value,"-item-only-child"),(re?k+1:k)===1),N)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":p,"aria-disabled":e.disabled},ae),{},{onMouseenter:be,onMouseleave:X,onClick:he,onKeydown:de,onFocus:pe,title:typeof T=="string"?T:void 0}),{default:function(){return[Ie(re,{class:"".concat(f.value,"-item-icon")},!1),G(re,F)]}})]}})}}});var ee={adjustX:1,adjustY:1},Gt={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},zt={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Ht={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const fn=U({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,a){var r=a.slots,t=a.emit,i=_(!1),s=ne(),d=s.getPopupContainer,p=s.rtl,I=s.subMenuOpenDelay,m=s.subMenuCloseDelay,h=s.builtinPlacements,O=s.triggerSubMenuAction,l=s.isRootMenu,f=s.forceSubMenuRender,c=s.motion,M=s.defaultMotions,P=Rn(),V=v(function(){return p.value?x(x({},zt),h.value):x(x({},Gt),h.value)}),b=v(function(){return Ht[e.mode]}),w=_();Y(function(){return e.visible},function(S){He.cancel(w.value),w.value=He(function(){i.value=S})},{immediate:!0}),we(function(){He.cancel(w.value)});var R=function(K){t("visibleChange",K)},j=v(function(){var S,K,E=c.value||((S=M.value)===null||S===void 0?void 0:S[e.mode])||((K=M.value)===null||K===void 0?void 0:K.other),B=typeof E=="function"?E():E;return B?Xn(B.name,{css:!0}):void 0});return function(){var S=e.prefixCls,K=e.popupClassName,E=e.mode,B=e.popupOffset,z=e.disabled;return y(In,{prefixCls:S,popupClassName:oe("".concat(S,"-popup"),C({},"".concat(S,"-rtl"),p.value),K),stretch:E==="horizontal"?"minWidth":null,getPopupContainer:l.value?d.value:function(Q){return Q.parentNode},builtinPlacements:V.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:B&&{offset:B},action:z?[]:[O.value],mouseEnterDelay:I.value,mouseLeaveDelay:m.value,onPopupVisibleChange:R,forceRender:P||f.value,popupAnimation:j.value},{popup:r.popup,default:r.default})}}});var Ln=function(e,a){var r,t=a.slots,i=a.attrs,s=ne(),d=s.prefixCls,p=s.mode;return y("ul",x(x({},i),{},{class:oe(d.value,"".concat(d.value,"-sub"),"".concat(d.value,"-").concat(p.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=t.default)===null||r===void 0?void 0:r.call(t)])};Ln.displayName="SubMenuList";const kn=Ln,Wt=U({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,a){var r=a.slots,t=v(function(){return"inline"}),i=ne(),s=i.motion,d=i.mode,p=i.defaultMotions,I=v(function(){return d.value===t.value}),m=_(!I.value),h=v(function(){return I.value?e.open:!1});Y(d,function(){I.value&&(m.value=!1)},{flush:"post"});var O=v(function(){var l,f,c=s.value||((l=p.value)===null||l===void 0?void 0:l[t.value])||((f=p.value)===null||f===void 0?void 0:f.other),M=typeof c=="function"?c():c;return x(x({},M),{},{appear:e.keyPath.length<=1})});return function(){var l;return m.value?null:y(je,{mode:t.value},{default:function(){return[y(Jn,O.value,{default:function(){return[et(y(kn,{id:e.id},{default:function(){return[(l=r.default)===null||l===void 0?void 0:l.call(r)]}}),[[nt,h.value]])]}})]}})}}});var vn=0,Ut=function(){return{icon:$.any,title:$.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Ke=U({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Ut(),slots:["icon","title","expandIcon"],setup:function(e,a){var r,t,i=a.slots,s=a.attrs,d=a.emit;Tn(!1);var p=Je(),I=Mn(),m=Z(I.vnode.key)==="symbol"?String(I.vnode.key):I.vnode.key;Te(Z(I.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(m),'"` not support Symbol type'));var h=un(m)?m:"sub_menu_".concat(++vn,"_$$_not_set_key"),O=(r=e.eventKey)!==null&&r!==void 0?r:un(m)?"sub_menu_".concat(++vn,"_$$_").concat(m):h,l=Xe(),f=l.parentEventKeys,c=l.parentInfo,M=l.parentKeys,P=v(function(){return[].concat(se(M.value),[h])}),V=_([]),b={eventKey:O,key:h,parentEventKeys:f,childrenEventKeys:V,parentKeys:M};(t=c.childrenEventKeys)===null||t===void 0||t.value.push(O),we(function(){if(c.childrenEventKeys){var L;c.childrenEventKeys.value=(L=c.childrenEventKeys)===null||L===void 0?void 0:L.value.filter(function(A){return A!=O})}}),$t(O,h,b);var w=ne(),R=w.prefixCls,j=w.activeKeys,S=w.disabled,K=w.changeActiveKeys,E=w.mode,B=w.inlineCollapsed,z=w.antdMenuTheme,Q=w.openKeys,q=w.overflowDisabled,te=w.onOpenChange,fe=w.registerMenuInfo,ve=w.unRegisterMenuInfo,he=w.selectedSubMenuKeys,be=w.expandIcon,X=m!=null,de=!p&&(Rn()||!X);St(de),(p&&X||!p&&!X||de)&&(fe(O,b),we(function(){ve(O)}));var pe=v(function(){return"".concat(R.value,"-submenu")}),G=v(function(){return S.value||e.disabled}),Ce=_(),o=_(),u=v(function(){return Q.value.includes(h)}),g=v(function(){return!q.value&&u.value}),N=v(function(){return he.value.includes(h)}),T=_(!1);Y(j,function(){T.value=!!j.value.find(function(L){return L===h})},{immediate:!0});var F=function(A){G.value||(d("titleClick",A,h),E.value==="inline"&&te(h,!u.value))},k=function(A){G.value||(K(P.value),d("mouseenter",A))},D=function(A){G.value||(K([]),d("mouseleave",A))},H=jn(v(function(){return P.value.length})),ae=function(A){E.value!=="inline"&&te(h,A)},re=function(){K(P.value)},Me=O&&"".concat(O,"-popup"),tn=v(function(){return oe(R.value,"".concat(R.value,"-").concat(z.value),e.popupClassName)}),Un=function(A,W){if(!W)return B.value&&!M.value.length&&A&&typeof A=="string"?y("div",{class:"".concat(R.value,"-inline-collapsed-noicon")},[A.charAt(0)]):y("span",{class:"".concat(R.value,"-title-content")},[A]);var J=xn(A)&&A.type==="span";return y(Ne,null,[Ie(W,{class:"".concat(R.value,"-item-icon")},!1),J?A:y("span",{class:"".concat(R.value,"-title-content")},[A])])},Ve=v(function(){return E.value!=="inline"&&P.value.length>1?"vertical":E.value}),qn=v(function(){return E.value==="horizontal"?"vertical":E.value}),Yn=v(function(){return Ve.value==="horizontal"?"vertical":Ve.value}),an=function(){var A=pe.value,W=Fe(i,e,"icon"),J=e.expandIcon||i.expandIcon||be.value,ie=Un(Fe(i,e,"title"),W);return y("div",{style:H.value,class:"".concat(A,"-title"),tabindex:G.value?null:-1,ref:Ce,title:typeof ie=="string"?ie:null,"data-menu-id":h,"aria-expanded":g.value,"aria-haspopup":!0,"aria-controls":Me,"aria-disabled":G.value,onClick:F,onFocus:re},[ie,E.value!=="horizontal"&&J?J(x(x({},e),{},{isOpen:g.value})):y("i",{class:"".concat(A,"-arrow")},null)])};return function(){var L;if(p){var A;return X?(A=i.default)===null||A===void 0?void 0:A.call(i):null}var W=pe.value,J=function(){return null};return!q.value&&E.value!=="inline"?J=function(){return y(fn,{mode:Ve.value,prefixCls:W,visible:!e.internalPopupClose&&g.value,popupClassName:tn.value,popupOffset:e.popupOffset,disabled:G.value,onVisibleChange:ae},{default:function(){return[an()]},popup:function(){return y(je,{mode:Yn.value,isRootMenu:!1},{default:function(){return[y(kn,{id:Me,ref:o},{default:i.default})]}})}})}:J=function(){return y(fn,null,{default:an})},y(je,{mode:qn.value},{default:function(){return[y(Se.Item,x(x({component:"li"},s),{},{role:"none",class:oe(W,"".concat(W,"-").concat(E.value),s.class,(L={},C(L,"".concat(W,"-open"),g.value),C(L,"".concat(W,"-active"),T.value),C(L,"".concat(W,"-selected"),N.value),C(L,"".concat(W,"-disabled"),G.value),L)),onMouseenter:k,onMouseleave:D,"data-submenu-id":h}),{default:function(){return y(Ne,null,[J(),!q.value&&y(Wt,{id:Me,open:g.value,keyPath:P.value},{default:i.default})])}})]}})}}});function $n(n,e){if(n.classList)return n.classList.contains(e);var a=n.className;return" ".concat(a," ").indexOf(" ".concat(e," "))>-1}function dn(n,e){n.classList?n.classList.add(e):$n(n,e)||(n.className="".concat(n.className," ").concat(e))}function pn(n,e){if(n.classList)n.classList.remove(e);else if($n(n,e)){var a=n.className;n.className=" ".concat(a," ").replace(" ".concat(e," ")," ")}}var qt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:a,css:!0,onBeforeEnter:function(t){t.style.height="0px",t.style.opacity="0",dn(t,e)},onEnter:function(t){tt(function(){t.style.height="".concat(t.scrollHeight,"px"),t.style.opacity="1"})},onAfterEnter:function(t){t&&(pn(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:function(t){dn(t,e),t.style.height="".concat(t.offsetHeight,"px"),t.style.opacity=null},onLeave:function(t){setTimeout(function(){t.style.height="0px",t.style.opacity="0"})},onAfterLeave:function(t){t&&(pn(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}};const Yt=qt;var Zt=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}},mn=[];const le=U({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Zt(),slots:["expandIcon","overflowedIndicator"],setup:function(e,a){var r=a.slots,t=a.emit,i=a.attrs,s=$e("menu",e),d=s.prefixCls,p=s.direction,I=s.getPrefixCls,m=_({}),h=ce(Lt,_(void 0)),O=v(function(){return h.value!==void 0?h.value:e.inlineCollapsed}),l=_(!1);Ze(function(){l.value=!0}),Ge(function(){Te(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Te(!(h.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var f=_([]),c=_([]),M=_({});Y(m,function(){for(var o={},u=0,g=Object.values(m.value);u<g.length;u++){var N=g[u];o[N.key]=N}M.value=o},{flush:"post"}),Ge(function(){if(e.activeKey!==void 0){var o=[],u=e.activeKey?M.value[e.activeKey]:void 0;u&&e.activeKey!==void 0?o=Ue([].concat(Oe(u.parentKeys),e.activeKey)):o=[],xe(f.value,o)||(f.value=o)}}),Y(function(){return e.selectedKeys},function(o){o&&(c.value=o.slice())},{immediate:!0,deep:!0});var P=_([]);Y([M,c],function(){var o=[];c.value.forEach(function(u){var g=M.value[u];g&&(o=o.concat(Oe(g.parentKeys)))}),o=Ue(o),xe(P.value,o)||(P.value=o)},{immediate:!0});var V=function(u){if(e.selectable){var g=u.key,N=c.value.includes(g),T;e.multiple?N?T=c.value.filter(function(k){return k!==g}):T=[].concat(se(c.value),[g]):T=[g];var F=x(x({},u),{},{selectedKeys:T});xe(T,c.value)||(e.selectedKeys===void 0&&(c.value=T),t("update:selectedKeys",T),N&&e.multiple?t("deselect",F):t("select",F)),K.value!=="inline"&&!e.multiple&&b.value.length&&z(mn)}},b=_([]);Y(function(){return e.openKeys},function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.value;xe(b.value,o)||(b.value=o.slice())},{immediate:!0,deep:!0});var w,R=function(u){clearTimeout(w),w=setTimeout(function(){e.activeKey===void 0&&(f.value=u),t("update:activeKey",u[u.length-1])})},j=v(function(){return!!e.disabled}),S=v(function(){return p.value==="rtl"}),K=_("vertical"),E=_(!1);Ge(function(){(e.mode==="inline"||e.mode==="vertical")&&O.value?(K.value="vertical",E.value=O.value):(K.value=e.mode,E.value=!1)});var B=v(function(){return K.value==="inline"}),z=function(u){b.value=u,t("update:openKeys",u),t("openChange",u)},Q=_(b.value),q=_(!1);Y(b,function(){B.value&&(Q.value=b.value)},{immediate:!0}),Y(B,function(){if(!q.value){q.value=!0;return}B.value?b.value=Q.value:z(mn)},{immediate:!0});var te=v(function(){var o;return o={},C(o,"".concat(d.value),!0),C(o,"".concat(d.value,"-root"),!0),C(o,"".concat(d.value,"-").concat(K.value),!0),C(o,"".concat(d.value,"-inline-collapsed"),E.value),C(o,"".concat(d.value,"-rtl"),S.value),C(o,"".concat(d.value,"-").concat(e.theme),!0),o}),fe=v(function(){return I()}),ve=v(function(){return{horizontal:{name:"".concat(fe.value,"-slide-up")},inline:Yt,other:{name:"".concat(fe.value,"-zoom-big")}}});Tn(!0);var he=function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=[],N=m.value;return u.forEach(function(T){var F=N[T],k=F.key,D=F.childrenEventKeys;g.push.apply(g,[k].concat(se(o(Oe(D)))))}),g},be=function(u){t("click",u),V(u)},X=function(u,g){var N,T=((N=M.value[u])===null||N===void 0?void 0:N.childrenEventKeys)||[],F=b.value.filter(function(D){return D!==u});if(g)F.push(u);else if(K.value!=="inline"){var k=he(Oe(T));F=Ue(F.filter(function(D){return!k.includes(D)}))}xe(b,F)||z(F)},de=function(u,g){m.value=x(x({},m.value),{},C({},u,g))},pe=function(u){delete m.value[u],m.value=x({},m.value)},G=_(0),Ce=v(function(){return e.expandIcon||r.expandIcon?function(o){var u=e.expandIcon||r.expandIcon;return u=typeof u=="function"?u(o):u,Ie(u,{class:"".concat(d.value,"-submenu-expand-icon")},!1)}:null});return It({store:m,prefixCls:d,activeKeys:f,openKeys:b,selectedKeys:c,changeActiveKeys:R,disabled:j,rtl:S,mode:K,inlineIndent:v(function(){return e.inlineIndent}),subMenuCloseDelay:v(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:v(function(){return e.subMenuOpenDelay}),builtinPlacements:v(function(){return e.builtinPlacements}),triggerSubMenuAction:v(function(){return e.triggerSubMenuAction}),getPopupContainer:v(function(){return e.getPopupContainer}),inlineCollapsed:E,antdMenuTheme:v(function(){return e.theme}),siderCollapsed:h,defaultMotions:v(function(){return l.value?ve.value:null}),motion:v(function(){return l.value?e.motion:null}),overflowDisabled:_(void 0),onOpenChange:X,onItemClick:be,registerMenuInfo:de,unRegisterMenuInfo:pe,selectedSubMenuKeys:P,isRootMenu:_(!0),expandIcon:Ce,forceSubMenuRender:v(function(){return e.forceSubMenuRender})}),function(){var o,u,g=Cn((o=r.default)===null||o===void 0?void 0:o.call(r)),N=G.value>=g.length-1||K.value!=="horizontal"||e.disabledOverflow,T=K.value!=="horizontal"||e.disabledOverflow?g:g.map(function(k,D){return y(je,{key:k.key,overflowDisabled:D>G.value},{default:function(){return k}})}),F=((u=r.overflowedIndicator)===null||u===void 0?void 0:u.call(r))||y(xt,null,null);return y(Se,x(x({},i),{},{onMousedown:e.onMousedown,prefixCls:"".concat(d.value,"-overflow"),component:"ul",itemComponent:Le,class:[te.value,i.class],role:"menu",id:e.id,data:T,renderRawItem:function(D){return D},renderRawRest:function(D){var H=D.length,ae=H?g.slice(-H):null;return y(Ne,null,[y(Ke,{eventKey:Ae,key:Ae,title:F,disabled:N,internalPopupClose:H===0},{default:function(){return ae}}),y(cn,null,{default:function(){return[y(Ke,{eventKey:Ae,key:Ae,title:F,disabled:N,internalPopupClose:H===0},{default:function(){return ae}})]}})])},maxCount:K.value!=="horizontal"||e.disabledOverflow?Se.INVALIDATE:Se.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(D){G.value=D}}),{default:function(){return[y(at,{to:"body"},{default:function(){return[y("div",{style:{display:"none"},"aria-hidden":!0},[y(cn,null,{default:function(){return[T]}})])]}})]}})}}});var Qt=function(){return{title:$.any}};const qe=U({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Qt(),slots:["title"],setup:function(e,a){var r=a.slots,t=a.attrs,i=ne(),s=i.prefixCls,d=v(function(){return"".concat(s.value,"-item-group")}),p=Je();return function(){var I,m;return p?(I=r.default)===null||I===void 0?void 0:I.call(r):y("li",x(x({},t),{},{onClick:function(O){return O.stopPropagation()},class:d.value}),[y("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(d.value,"-title")},[Fe(r,e,"title")]),y("ul",{class:"".concat(d.value,"-list")},[(m=r.default)===null||m===void 0?void 0:m.call(r)])])}}});var Xt=function(){return{prefixCls:String,dashed:Boolean}};const Ye=U({compatConfig:{MODE:3},name:"AMenuDivider",props:Xt(),setup:function(e){var a=$e("menu",e),r=a.prefixCls,t=v(function(){var i;return i={},C(i,"".concat(r.value,"-item-divider"),!0),C(i,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),i});return function(){return y("li",{class:t.value},null)}}});le.install=function(n){return n.component(le.name,le),n.component(Le.name,Le),n.component(Ke.name,Ke),n.component(Ye.name,Ye),n.component(qe.name,qe),n};le.Item=Le;le.Divider=Ye;le.SubMenu=Ke;le.ItemGroup=qe;function Jt(n,e){for(var a=-1,r=n==null?0:n.length,t=Array(r);++a<r;)t[a]=e(n[a],a,n);return t}var ea="[object Symbol]";function en(n){return typeof n=="symbol"||dt(n)&&pt(n)==ea}var na=1/0,gn=De?De.prototype:void 0,yn=gn?gn.toString:void 0;function Vn(n){if(typeof n=="string")return n;if(Pe(n))return Jt(n,Vn)+"";if(en(n))return yn?yn.call(n):"";var e=n+"";return e=="0"&&1/n==-na?"-0":e}function ta(n){return n==null?"":Vn(n)}var aa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ra=/^\w*$/;function ia(n,e){if(Pe(n))return!1;var a=typeof n;return a=="number"||a=="symbol"||a=="boolean"||n==null||en(n)?!0:ra.test(n)||!aa.test(n)||e!=null&&n in Object(e)}var ua="Expected a function";function nn(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(ua);var a=function(){var r=arguments,t=e?e.apply(this,r):r[0],i=a.cache;if(i.has(t))return i.get(t);var s=n.apply(this,r);return a.cache=i.set(t,s)||i,s};return a.cache=new(nn.Cache||Pn),a}nn.Cache=Pn;var la=500;function oa(n){var e=nn(n,function(r){return a.size===la&&a.clear(),r}),a=e.cache;return e}var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ca=/\\(\\)?/g,fa=oa(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(sa,function(a,r,t,i){e.push(t?i.replace(ca,"$1"):r||a)}),e});const va=fa;function Bn(n,e){return Pe(n)?n:ia(n,e)?[n]:va(ta(n))}var da=1/0;function Gn(n){if(typeof n=="string"||en(n))return n;var e=n+"";return e=="0"&&1/n==-da?"-0":e}function Qa(n,e){e=Bn(e,n);for(var a=0,r=e.length;n!=null&&a<r;)n=n[Gn(e[a++])];return a&&a==r?n:void 0}var pa=function(){try{var n=ot(Object,"defineProperty");return n({},"",{}),n}catch{}}();const ke=pa;function ma(n,e,a){e=="__proto__"&&ke?ke(n,e,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[e]=a}var ga=Object.prototype,ya=ga.hasOwnProperty;function Xa(n,e,a){var r=n[e];(!(ya.call(n,e)&&st(r,a))||a===void 0&&!(e in n))&&ma(n,e,a)}function ha(n,e){return n!=null&&e in Object(n)}function ba(n,e,a){e=Bn(e,n);for(var r=-1,t=e.length,i=!1;++r<t;){var s=Gn(e[r]);if(!(i=n!=null&&a(n,s)))break;n=n[s]}return i||++r!=t?i:(t=n==null?0:n.length,!!t&&ct(t)&&ft(s,t)&&(Pe(n)||On(n)))}function Ja(n,e){return n!=null&&ba(n,e,ha)}var hn=De?De.isConcatSpreadable:void 0;function Ca(n){return Pe(n)||On(n)||!!(hn&&n&&n[hn])}function zn(n,e,a,r,t){var i=-1,s=n.length;for(a||(a=Ca),t||(t=[]);++i<s;){var d=n[i];e>0&&a(d)?e>1?zn(d,e-1,a,r,t):vt(t,d):r||(t[t.length]=d)}return t}function Ma(n){var e=n==null?0:n.length;return e?zn(n,1):[]}function xa(n,e,a){switch(a.length){case 0:return n.call(e);case 1:return n.call(e,a[0]);case 2:return n.call(e,a[0],a[1]);case 3:return n.call(e,a[0],a[1],a[2])}return n.apply(e,a)}var bn=Math.max;function Sa(n,e,a){return e=bn(e===void 0?n.length-1:e,0),function(){for(var r=arguments,t=-1,i=bn(r.length-e,0),s=Array(i);++t<i;)s[t]=r[e+t];t=-1;for(var d=Array(e+1);++t<e;)d[t]=r[t];return d[e]=a(s),xa(n,this,d)}}function wa(n){return function(){return n}}function Ia(n){return n}var Ka=ke?function(n,e){return ke(n,"toString",{configurable:!0,enumerable:!1,value:wa(e),writable:!0})}:Ia;const Pa=Ka;var Oa=800,_a=16,Ea=Date.now;function Aa(n){var e=0,a=0;return function(){var r=Ea(),t=_a-(r-a);if(a=r,t>0){if(++e>=Oa)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Ra=Aa(Pa);const Na=Ra;function er(n){return Na(Sa(n,void 0,Ma),n+"")}var Ta=function(){return Sn()&&window.document.documentElement},Hn=function(e){if(Sn()&&window.document.documentElement){var a=Array.isArray(e)?e:[e],r=window.document.documentElement;return a.some(function(t){return t in r.style})}return!1},Fa=function(e,a){if(!Hn(e))return!1;var r=document.createElement("div"),t=r.style[e];return r.style[e]=a,r.style[e]!==t};function nr(n,e){return!Array.isArray(n)&&e!==void 0?Fa(n,e):Hn(n)}var Re,Da=function(){if(!Ta())return!1;if(Re!==void 0)return Re;var 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),Re=e.scrollHeight===1,document.body.removeChild(e),Re};const ja=function(){var n=_(!1);return Ze(function(){n.value=Da()}),n};var Wn=Symbol("rowContextKey"),La=function(e){ye(Wn,e)},ka=function(){return ce(Wn,{gutter:v(function(){}),wrap:v(function(){}),supportFlexGap:v(function(){})})};wn("top","middle","bottom","stretch");wn("start","end","center","space-around","space-between");var $a=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},Va=U({compatConfig:{MODE:3},name:"ARow",props:$a(),setup:function(e,a){var r=a.slots,t=$e("row",e),i=t.prefixCls,s=t.direction,d,p=_({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),I=ja();Ze(function(){d=on.subscribe(function(l){var f=e.gutter||0;(!Array.isArray(f)&&Z(f)==="object"||Array.isArray(f)&&(Z(f[0])==="object"||Z(f[1])==="object"))&&(p.value=l)})}),we(function(){on.unsubscribe(d)});var m=v(function(){var l=[0,0],f=e.gutter,c=f===void 0?0:f,M=Array.isArray(c)?c:[c,0];return M.forEach(function(P,V){if(Z(P)==="object")for(var b=0;b<ln.length;b++){var w=ln[b];if(p.value[w]&&P[w]!==void 0){l[V]=P[w];break}}else l[V]=P||0}),l});La({gutter:m,supportFlexGap:I,wrap:v(function(){return e.wrap})});var h=v(function(){var l;return oe(i.value,(l={},C(l,"".concat(i.value,"-no-wrap"),e.wrap===!1),C(l,"".concat(i.value,"-").concat(e.justify),e.justify),C(l,"".concat(i.value,"-").concat(e.align),e.align),C(l,"".concat(i.value,"-rtl"),s.value==="rtl"),l))}),O=v(function(){var l=m.value,f={},c=l[0]>0?"".concat(l[0]/-2,"px"):void 0,M=l[1]>0?"".concat(l[1]/-2,"px"):void 0;return c&&(f.marginLeft=c,f.marginRight=c),I.value?f.rowGap="".concat(l[1],"px"):M&&(f.marginTop=M,f.marginBottom=M),f});return function(){var l;return y("div",{class:h.value,style:O.value},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});const tr=Va;function Ba(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var Ga=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const ar=U({compatConfig:{MODE:3},name:"ACol",props:Ga(),setup:function(e,a){var r=a.slots,t=ka(),i=t.gutter,s=t.supportFlexGap,d=t.wrap,p=$e("col",e),I=p.prefixCls,m=p.direction,h=v(function(){var l,f=e.span,c=e.order,M=e.offset,P=e.push,V=e.pull,b=I.value,w={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(R){var j,S={},K=e[R];typeof K=="number"?S.span=K:Z(K)==="object"&&(S=K||{}),w=x(x({},w),{},(j={},C(j,"".concat(b,"-").concat(R,"-").concat(S.span),S.span!==void 0),C(j,"".concat(b,"-").concat(R,"-order-").concat(S.order),S.order||S.order===0),C(j,"".concat(b,"-").concat(R,"-offset-").concat(S.offset),S.offset||S.offset===0),C(j,"".concat(b,"-").concat(R,"-push-").concat(S.push),S.push||S.push===0),C(j,"".concat(b,"-").concat(R,"-pull-").concat(S.pull),S.pull||S.pull===0),C(j,"".concat(b,"-rtl"),m.value==="rtl"),j))}),oe(b,(l={},C(l,"".concat(b,"-").concat(f),f!==void 0),C(l,"".concat(b,"-order-").concat(c),c),C(l,"".concat(b,"-offset-").concat(M),M),C(l,"".concat(b,"-push-").concat(P),P),C(l,"".concat(b,"-pull-").concat(V),V),l),w)}),O=v(function(){var l=e.flex,f=i.value,c={};if(f&&f[0]>0){var M="".concat(f[0]/2,"px");c.paddingLeft=M,c.paddingRight=M}if(f&&f[1]>0&&!s.value){var P="".concat(f[1]/2,"px");c.paddingTop=P,c.paddingBottom=P}return l&&(c.flex=Ba(l),d.value===!1&&!c.minWidth&&(c.minWidth=0)),c});return function(){var l;return y("div",{class:h.value,style:O.value},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});export{en as A,ar as C,Ya as D,xt as E,qe as I,le as M,on as R,Za as S,Le as _,Ke as a,Ye as b,Vn as c,Yt as d,tr as e,Lt as f,Ta as g,ma as h,nr as i,Xa as j,Qa as k,ia as l,Gn as m,Ja as n,Ia as o,Kt as p,Jt as q,ln as r,At as s,ta as t,ja as u,Et as v,Na as w,Sa as x,Bn as y,er as z};
|