import{d as e,H as o,O as t,E as n,F as r,S as l,r as i,I as a,K as c,ac as s,ad as d,l as u,M as v,W as h,G as m,D as p,ae as g,af as b,ag as f,A as x,ah as C,J as y,ai as w,aj as z,ak as S,al as I,am as k,an as A,ao as P,ap as H,aq as R,ar as T,as as N,at as _,au as O,av as L,aw as B,ax as $,ay as E,az as F,aA as j,_ as M,a0 as V,a1 as K,u as D,a4 as U,f as q,aB as G,c as W,aC as Y,$ as X,x as J,o as Z,a2 as Q,a as ee,b as oe,a7 as te,T as ne}from"./main-DxBfl9jt.js";import{u as re,a as le}from"./index-BVkzzSq5.js";import{s as ie}from"./public-BFbd7SDF.js";import{b as ae}from"./useStore-Bl1aO3ff.js";import{a as ce,F as se,C as de}from"./Flow-CW8Qt0BR.js";import{N as ue}from"./Badge-OF6OsFUO.js";import"./setting-BC6rRJcQ.js";import"./index-CR_r3eNz.js";import"./index-Cw7KyqX3.js";const ve=e({name:"ChevronDownFilled",render:()=>o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}),he=t("n-layout-sider"),me={type:String,default:"static"},pe=n("layout","\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n flex: auto;\n overflow: hidden;\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n",[n("layout-scroll-container","\n overflow-x: hidden;\n box-sizing: border-box;\n height: 100%;\n "),r("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ")]),ge={embedded:Boolean,position:me,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},be=t("n-layout");function fe(t){return e({name:t?"LayoutContent":"Layout",props:Object.assign(Object.assign({},c.props),ge),setup(e){const o=i(null),t=i(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=a(e),l=c("Layout","-layout",pe,s,e,n);h(be,e);let m=0,p=0;d((()=>{if(e.nativeScrollbar){const e=o.value;e&&(e.scrollTop=p,e.scrollLeft=m)}}));const g={scrollTo:function(n,r){if(e.nativeScrollbar){const{value:e}=o;e&&(void 0===r?e.scrollTo(n):e.scrollTo(n,r))}else{const{value:e}=t;e&&e.scrollTo(n,r)}}},b=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=l.value;return{"--n-bezier":o,"--n-color":e.embedded?t.colorEmbedded:t.color,"--n-text-color":t.textColor}})),f=r?v("layout",u((()=>e.embedded?"e":"")),b,e):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:t,hasSiderStyle:{display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},mergedTheme:l,handleNativeElScroll:o=>{var t;const n=o.target;m=n.scrollLeft,p=n.scrollTop,null===(t=e.onScroll)||void 0===t||t.call(e,o)},cssVars:r?void 0:b,themeClass:null==f?void 0:f.themeClass,onRender:null==f?void 0:f.onRender},g)},render(){var e;const{mergedClsPrefix:n,hasSider:r}=this;null===(e=this.onRender)||void 0===e||e.call(this);const i=r?this.hasSiderStyle:void 0,a=[this.themeClass,t&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return o("div",{class:a,style:this.cssVars},this.nativeScrollbar?o("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,i],onScroll:this.handleNativeElScroll},this.$slots):o(l,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,i]}),this.$slots))}})}const xe=fe(!1),Ce=fe(!0),ye=n("layout-header","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n box-sizing: border-box;\n width: 100%;\n background-color: var(--n-color);\n color: var(--n-text-color);\n",[r("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n "),r("bordered","\n border-bottom: solid 1px var(--n-border-color);\n ")]),we={position:me,inverted:Boolean,bordered:{type:Boolean,default:!1}},ze=e({name:"LayoutHeader",props:Object.assign(Object.assign({},c.props),we),setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t}=a(e),n=c("Layout","-layout-header",ye,s,e,o),r=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=n.value,r={"--n-bezier":o};return e.inverted?(r["--n-color"]=t.headerColorInverted,r["--n-text-color"]=t.textColorInverted,r["--n-border-color"]=t.headerBorderColorInverted):(r["--n-color"]=t.headerColor,r["--n-text-color"]=t.textColor,r["--n-border-color"]=t.headerBorderColor),r})),l=t?v("layout-header",u((()=>e.inverted?"a":"b")),r,e):void 0;return{mergedClsPrefix:o,cssVars:t?void 0:r,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return null===(e=this.onRender)||void 0===e||e.call(this),o("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Se=n("layout-sider","\n flex-shrink: 0;\n box-sizing: border-box;\n position: relative;\n z-index: 1;\n color: var(--n-text-color);\n transition:\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n min-width .3s var(--n-bezier),\n max-width .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n background-color: var(--n-color);\n display: flex;\n justify-content: flex-end;\n",[r("bordered",[m("border",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background-color: var(--n-border-color);\n transition: background-color .3s var(--n-bezier);\n ')]),m("left-placement",[r("bordered",[m("border","\n right: 0;\n ")])]),r("right-placement","\n justify-content: flex-start;\n ",[r("bordered",[m("border","\n left: 0;\n ")]),r("collapsed",[n("layout-toggle-button",[n("base-icon","\n transform: rotate(180deg);\n ")]),n("layout-toggle-bar",[p("&:hover",[m("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),m("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),n("layout-toggle-button","\n left: 0;\n transform: translateX(-50%) translateY(-50%);\n ",[n("base-icon","\n transform: rotate(0);\n ")]),n("layout-toggle-bar","\n left: -28px;\n transform: rotate(180deg);\n ",[p("&:hover",[m("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),m("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),r("collapsed",[n("layout-toggle-bar",[p("&:hover",[m("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),m("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),n("layout-toggle-button",[n("base-icon","\n transform: rotate(0);\n ")])]),n("layout-toggle-button","\n transition:\n color .3s var(--n-bezier),\n right .3s var(--n-bezier),\n left .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n cursor: pointer;\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n right: 0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n color: var(--n-toggle-button-icon-color);\n border: var(--n-toggle-button-border);\n background-color: var(--n-toggle-button-color);\n box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);\n transform: translateX(50%) translateY(-50%);\n z-index: 1;\n ",[n("base-icon","\n transition: transform .3s var(--n-bezier);\n transform: rotate(180deg);\n ")]),n("layout-toggle-bar","\n cursor: pointer;\n height: 72px;\n width: 32px;\n position: absolute;\n top: calc(50% - 36px);\n right: -28px;\n ",[m("top, bottom","\n position: absolute;\n width: 4px;\n border-radius: 2px;\n height: 38px;\n left: 14px;\n transition: \n background-color .3s var(--n-bezier),\n transform .3s var(--n-bezier);\n "),m("bottom","\n position: absolute;\n top: 34px;\n "),p("&:hover",[m("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),m("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),m("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),p("&:hover",[m("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),m("border","\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n transition: background-color .3s var(--n-bezier);\n "),n("layout-sider-scroll-container","\n flex-grow: 1;\n flex-shrink: 0;\n box-sizing: border-box;\n height: 100%;\n opacity: 0;\n transition: opacity .3s var(--n-bezier);\n max-width: 100%;\n "),r("show-content",[n("layout-sider-scroll-container",{opacity:1})]),r("absolute-positioned","\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n ")]),Ie=e({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return o("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},o("div",{class:`${e}-layout-toggle-bar__top`}),o("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ke=e({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return o("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},o(g,{clsPrefix:e},{default:()=>o(b,null)}))}}),Ae={position:me,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Pe=e({name:"LayoutSider",props:Object.assign(Object.assign({},c.props),Ae),setup(e){const o=x(be),t=i(null),n=i(null),r=i(e.defaultCollapsed),l=C(y(e,"collapsed"),r),m=u((()=>f(l.value?e.collapsedWidth:e.width))),p=u((()=>"transform"!==e.collapseMode?{}:{minWidth:f(e.width)})),g=u((()=>o?o.siderPlacement:"left"));let b=0,z=0;d((()=>{if(e.nativeScrollbar){const e=t.value;e&&(e.scrollTop=z,e.scrollLeft=b)}})),h(he,{collapsedRef:l,collapseModeRef:y(e,"collapseMode")});const{mergedClsPrefixRef:S,inlineThemeDisabled:I}=a(e),k=c("Layout","-layout-sider",Se,s,e,S);const A={scrollTo:function(o,r){if(e.nativeScrollbar){const{value:e}=t;e&&(void 0===r?e.scrollTo(o):e.scrollTo(o,r))}else{const{value:e}=n;e&&e.scrollTo(o,r)}}},P=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=k.value,{siderToggleButtonColor:n,siderToggleButtonBorder:r,siderToggleBarColor:l,siderToggleBarColorHover:i}=t,a={"--n-bezier":o,"--n-toggle-button-color":n,"--n-toggle-button-border":r,"--n-toggle-bar-color":l,"--n-toggle-bar-color-hover":i};return e.inverted?(a["--n-color"]=t.siderColorInverted,a["--n-text-color"]=t.textColorInverted,a["--n-border-color"]=t.siderBorderColorInverted,a["--n-toggle-button-icon-color"]=t.siderToggleButtonIconColorInverted,a.__invertScrollbar=t.__invertScrollbar):(a["--n-color"]=t.siderColor,a["--n-text-color"]=t.textColor,a["--n-border-color"]=t.siderBorderColor,a["--n-toggle-button-icon-color"]=t.siderToggleButtonIconColor),a})),H=I?v("layout-sider",u((()=>e.inverted?"a":"b")),P,e):void 0;return Object.assign({scrollableElRef:t,scrollbarInstRef:n,mergedClsPrefix:S,mergedTheme:k,styleMaxWidth:m,mergedCollapsed:l,scrollContainerStyle:p,siderPlacement:g,handleNativeElScroll:o=>{var t;const n=o.target;b=n.scrollLeft,z=n.scrollTop,null===(t=e.onScroll)||void 0===t||t.call(e,o)},handleTransitionend:function(o){var t,n;"max-width"===o.propertyName&&(l.value?null===(t=e.onAfterLeave)||void 0===t||t.call(e):null===(n=e.onAfterEnter)||void 0===n||n.call(e))},handleTriggerClick:function(){const{"onUpdate:collapsed":o,onUpdateCollapsed:t,onExpand:n,onCollapse:i}=e,{value:a}=l;t&&w(t,!a),o&&w(o,!a),r.value=!a,a?n&&w(n):i&&w(i)},inlineThemeDisabled:I,cssVars:P,themeClass:null==H?void 0:H.themeClass,onRender:null==H?void 0:H.onRender},A)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return null===(e=this.onRender)||void 0===e||e.call(this),o("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:f(this.width)}]},this.nativeScrollbar?o("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):o(l,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&"true"===this.cssVars.__invertScrollbar?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?o("bar"===r?Ie:ke,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?o("div",{class:`${t}-layout-sider__border`}):null)}}),He=t("n-menu"),Re=t("n-submenu"),Te=t("n-menu-item-group"),Ne=[p("&::before","background-color: var(--n-item-color-hover);"),m("arrow","\n color: var(--n-arrow-color-hover);\n "),m("icon","\n color: var(--n-item-icon-color-hover);\n "),n("menu-item-content-header","\n color: var(--n-item-text-color-hover);\n ",[p("a","\n color: var(--n-item-text-color-hover);\n "),m("extra","\n color: var(--n-item-text-color-hover);\n ")])],_e=[m("icon","\n color: var(--n-item-icon-color-hover-horizontal);\n "),n("menu-item-content-header","\n color: var(--n-item-text-color-hover-horizontal);\n ",[p("a","\n color: var(--n-item-text-color-hover-horizontal);\n "),m("extra","\n color: var(--n-item-text-color-hover-horizontal);\n ")])],Oe=p([n("menu","\n background-color: var(--n-color);\n color: var(--n-item-text-color);\n overflow: hidden;\n transition: background-color .3s var(--n-bezier);\n box-sizing: border-box;\n font-size: var(--n-font-size);\n padding-bottom: 6px;\n ",[r("horizontal","\n max-width: 100%;\n width: 100%;\n display: flex;\n overflow: hidden;\n padding-bottom: 0;\n ",[n("submenu","margin: 0;"),n("menu-item","margin: 0;"),n("menu-item-content","\n padding: 0 20px;\n border-bottom: 2px solid #0000;\n ",[p("&::before","display: none;"),r("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),n("menu-item-content",[r("selected",[m("icon","color: var(--n-item-icon-color-active-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-horizontal);\n ",[p("a","color: var(--n-item-text-color-active-horizontal);"),m("extra","color: var(--n-item-text-color-active-horizontal);")])]),r("child-active","\n border-bottom: 2px solid var(--n-border-color-horizontal);\n ",[n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-horizontal);\n ",[p("a","\n color: var(--n-item-text-color-child-active-horizontal);\n "),m("extra","\n color: var(--n-item-text-color-child-active-horizontal);\n ")]),m("icon","\n color: var(--n-item-icon-color-child-active-horizontal);\n ")]),z("disabled",[z("selected, child-active",[p("&:focus-within",_e)]),r("selected",[Le(null,[m("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-hover-horizontal);\n ",[p("a","color: var(--n-item-text-color-active-hover-horizontal);"),m("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),r("child-active",[Le(null,[m("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover-horizontal);\n ",[p("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),m("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Le("border-bottom: 2px solid var(--n-border-color-horizontal);",_e)]),n("menu-item-content-header",[p("a","color: var(--n-item-text-color-horizontal);")])])]),z("responsive",[n("menu-item-content-header","\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),r("collapsed",[n("menu-item-content",[r("selected",[p("&::before","\n background-color: var(--n-item-color-active-collapsed) !important;\n ")]),n("menu-item-content-header","opacity: 0;"),m("arrow","opacity: 0;"),m("icon","color: var(--n-item-icon-color-collapsed);")])]),n("menu-item","\n height: var(--n-item-height);\n margin-top: 6px;\n position: relative;\n "),n("menu-item-content",'\n box-sizing: border-box;\n line-height: 1.75;\n height: 100%;\n display: grid;\n grid-template-areas: "icon content arrow";\n grid-template-columns: auto 1fr auto;\n align-items: center;\n cursor: pointer;\n position: relative;\n padding-right: 18px;\n transition:\n background-color .3s var(--n-bezier),\n padding-left .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ',[p("> *","z-index: 1;"),p("&::before",'\n z-index: auto;\n content: "";\n background-color: #0000;\n position: absolute;\n left: 8px;\n right: 8px;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),r("disabled","\n opacity: .45;\n cursor: not-allowed;\n "),r("collapsed",[m("arrow","transform: rotate(0);")]),r("selected",[p("&::before","background-color: var(--n-item-color-active);"),m("arrow","color: var(--n-arrow-color-active);"),m("icon","color: var(--n-item-icon-color-active);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active);\n ",[p("a","color: var(--n-item-text-color-active);"),m("extra","color: var(--n-item-text-color-active);")])]),r("child-active",[n("menu-item-content-header","\n color: var(--n-item-text-color-child-active);\n ",[p("a","\n color: var(--n-item-text-color-child-active);\n "),m("extra","\n color: var(--n-item-text-color-child-active);\n ")]),m("arrow","\n color: var(--n-arrow-color-child-active);\n "),m("icon","\n color: var(--n-item-icon-color-child-active);\n ")]),z("disabled",[z("selected, child-active",[p("&:focus-within",Ne)]),r("selected",[Le(null,[m("arrow","color: var(--n-arrow-color-active-hover);"),m("icon","color: var(--n-item-icon-color-active-hover);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-hover);\n ",[p("a","color: var(--n-item-text-color-active-hover);"),m("extra","color: var(--n-item-text-color-active-hover);")])])]),r("child-active",[Le(null,[m("arrow","color: var(--n-arrow-color-child-active-hover);"),m("icon","color: var(--n-item-icon-color-child-active-hover);"),n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover);\n ",[p("a","color: var(--n-item-text-color-child-active-hover);"),m("extra","color: var(--n-item-text-color-child-active-hover);")])])]),r("selected",[Le(null,[p("&::before","background-color: var(--n-item-color-active-hover);")])]),Le(null,Ne)]),m("icon","\n grid-area: icon;\n color: var(--n-item-icon-color);\n transition:\n color .3s var(--n-bezier),\n font-size .3s var(--n-bezier),\n margin-right .3s var(--n-bezier);\n box-sizing: content-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n "),m("arrow","\n grid-area: arrow;\n font-size: 16px;\n color: var(--n-arrow-color);\n transform: rotate(180deg);\n opacity: 1;\n transition:\n color .3s var(--n-bezier),\n transform 0.2s var(--n-bezier),\n opacity 0.2s var(--n-bezier);\n "),n("menu-item-content-header","\n grid-area: content;\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n opacity: 1;\n white-space: nowrap;\n color: var(--n-item-text-color);\n ",[p("a","\n outline: none;\n text-decoration: none;\n transition: color .3s var(--n-bezier);\n color: var(--n-item-text-color);\n ",[p("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),m("extra","\n font-size: .93em;\n color: var(--n-group-text-color);\n transition: color .3s var(--n-bezier);\n ")])]),n("submenu","\n cursor: pointer;\n position: relative;\n margin-top: 6px;\n ",[n("menu-item-content","\n height: var(--n-item-height);\n "),n("submenu-children","\n overflow: hidden;\n padding: 0;\n ",[S({duration:".2s"})])]),n("menu-item-group",[n("menu-item-group-title","\n margin-top: 6px;\n color: var(--n-group-text-color);\n cursor: default;\n font-size: .93em;\n height: 36px;\n display: flex;\n align-items: center;\n transition:\n padding-left .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")])]),n("menu-tooltip",[p("a","\n color: inherit;\n text-decoration: none;\n ")]),n("menu-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 6px 18px;\n ")]);function Le(e,o){return[r("hover",e,o),p("&:hover",e,o)]}const Be=e({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:o}=x(He);return{menuProps:o,style:u((()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}})),iconStyle:u((()=>{const{maxIconSize:o,activeIconSize:t,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${t}px`,marginRight:`${n}px`}}))}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:l,expandIcon:i}}=this,a=n?n(t.rawNode):I(this.icon);return o("div",{onClick:e=>{var o;null===(o=this.onClick)||void 0===o||o.call(this,e)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&o("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),o("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):I(this.title),this.extra||l?o("span",{class:`${e}-menu-item-content-header__extra`}," ",l?l(t.rawNode):I(this.extra)):null),this.showArrow?o(g,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):o(ve,null)}):null)}});function $e(e){const o=x(He),{props:t,mergedCollapsedRef:n}=o,r=x(Re,null),l=x(Te,null),i=u((()=>"horizontal"===t.mode)),a=u((()=>i.value?t.dropdownPlacement:"tmNodes"in e?"right-start":"right")),c=u((()=>{var e;return Math.max(null!==(e=t.collapsedIconSize)&&void 0!==e?e:t.iconSize,t.iconSize)})),s=u((()=>{var o;return!i.value&&e.root&&n.value&&null!==(o=t.collapsedIconSize)&&void 0!==o?o:t.iconSize})),d=u((()=>{if(i.value)return;const{collapsedWidth:o,indent:a,rootIndent:s}=t,{root:d,isGroup:u}=e,v=void 0===s?a:s;return d?n.value?o/2-c.value/2:v:l&&"number"==typeof l.paddingLeftRef.value?a/2+l.paddingLeftRef.value:r&&"number"==typeof r.paddingLeftRef.value?(u?a/2:a)+r.paddingLeftRef.value:0})),v=u((()=>{const{collapsedWidth:o,indent:r,rootIndent:l}=t,{value:a}=c,{root:s}=e;if(i.value)return 8;if(!s)return 8;if(!n.value)return 8;return(void 0===l?r:l)+a+8-(o+a)/2}));return{dropdownPlacement:a,activeIconSize:s,maxIconSize:c,paddingLeft:d,iconMarginRight:v,NMenu:o,NSubmenu:r}}const Ee={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Fe=e({name:"MenuDivider",setup(){const e=x(He),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:o("div",{class:`${t.value}-menu-divider`})}}),je=Object.assign(Object.assign({},Ee),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Me=k(je),Ve=e({name:"MenuOption",props:je,setup(e){const o=$e(e),{NSubmenu:t,NMenu:n}=o,{props:r,mergedClsPrefixRef:l,mergedCollapsedRef:i}=n,a=t?t.mergedDisabledRef:{value:!1},c=u((()=>a.value||e.disabled));return{mergedClsPrefix:l,dropdownPlacement:o.dropdownPlacement,paddingLeft:o.paddingLeft,iconMarginRight:o.iconMarginRight,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:P((()=>e.root&&i.value&&"horizontal"!==r.mode&&!c.value)),selected:P((()=>n.mergedValueRef.value===e.internalKey)),mergedDisabled:c,handleClick:function(o){c.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),function(o){const{onClick:t}=e;t&&t(o)}(o))}}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:l}}=this,i=null==l?void 0:l(n.rawNode);return o("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,null==i?void 0:i.class]}),o(A,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||void 0===this.title,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):I(this.title),trigger:()=>o(Be,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Ke=Object.assign(Object.assign({},Ee),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),De=k(Ke),Ue=e({name:"MenuOptionGroup",props:Ke,setup(e){h(Re,null);const t=$e(e);h(Te,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=x(He);return function(){const{value:l}=n,i=t.paddingLeft.value,{nodeProps:a}=r,c=null==a?void 0:a(e.tmNode.rawNode);return o("div",{class:`${l}-menu-item-group`,role:"group"},o("div",Object.assign({},c,{class:[`${l}-menu-item-group-title`,null==c?void 0:c.class],style:[(null==c?void 0:c.style)||"",void 0!==i?`padding-left: ${i}px;`:""]}),I(e.title),e.extra?o(H,null," ",I(e.extra)):null),o("div",null,e.tmNodes.map((e=>Ge(e,r)))))}}});function qe(e){return"divider"===e.type||"render"===e.type}function Ge(e,t){const{rawNode:n}=e,{show:r}=n;if(!1===r)return null;if(qe(n))return function(e){return"divider"===e.type}(n)?o(Fe,Object.assign({key:e.key},n.props)):null;const{labelField:l}=t,{key:i,level:a,isGroup:c}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[l],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:0===a,isGroup:c});return e.children?e.isGroup?o(Ue,R(s,De,{tmNode:e,tmNodes:e.children,key:i})):o(Xe,R(s,Ye,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):o(Ve,R(s,Me,{key:i,tmNode:e}))}const We=Object.assign(Object.assign({},Ee),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Ye=k(We),Xe=e({name:"Submenu",props:We,setup(e){const o=$e(e),{NMenu:t,NSubmenu:n}=o,{props:r,mergedCollapsedRef:l,mergedThemeRef:a}=t,c=u((()=>{const{disabled:o}=e;return!!(null==n?void 0:n.mergedDisabledRef.value)||(!!r.disabled||o)})),s=i(!1);return h(Re,{paddingLeftRef:o.paddingLeft,mergedDisabledRef:c}),h(Te,null),{menuProps:r,mergedTheme:a,doSelect:t.doSelect,inverted:t.invertedRef,isHorizontal:t.isHorizontalRef,mergedClsPrefix:t.mergedClsPrefixRef,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,iconMarginRight:o.iconMarginRight,dropdownPlacement:o.dropdownPlacement,dropdownShow:s,paddingLeft:o.paddingLeft,mergedDisabled:c,mergedValue:t.mergedValueRef,childActive:P((()=>{var o;return null!==(o=e.virtualChildActive)&&void 0!==o?o:t.activePathRef.value.includes(e.internalKey)})),collapsed:u((()=>"horizontal"!==r.mode&&(!!l.value||!t.mergedExpandedKeysRef.value.includes(e.internalKey)))),dropdownEnabled:u((()=>!c.value&&("horizontal"===r.mode||l.value))),handlePopoverShowChange:function(e){s.value=e},handleClick:function(){c.value||(l.value||t.toggleExpand(e.internalKey),function(){const{onClick:o}=e;o&&o()}())}}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,l=()=>{const{isHorizontal:e,paddingLeft:t,collapsed:n,mergedDisabled:r,maxIconSize:l,activeIconSize:i,title:a,childActive:c,icon:s,handleClick:d,menuProps:{nodeProps:u},dropdownShow:v,iconMarginRight:h,tmNode:m,mergedClsPrefix:p,isEllipsisPlaceholder:g,extra:b}=this,f=null==u?void 0:u(m.rawNode);return o("div",Object.assign({},f,{class:[`${p}-menu-item`,null==f?void 0:f.class],role:"menuitem"}),o(Be,{tmNode:m,paddingLeft:t,collapsed:n,disabled:r,iconMarginRight:h,maxIconSize:l,activeIconSize:i,title:a,extra:b,showArrow:!e,childActive:c,clsPrefix:p,icon:s,hover:v,onClick:d,isEllipsisPlaceholder:g}))},i=()=>o(N,null,{default:()=>{const{tmNodes:e,collapsed:n}=this;return n?null:o("div",{class:`${t}-submenu-children`,role:"menu"},e.map((e=>Ge(e,this.menuProps))))}});return this.root?o(T,Object.assign({size:"large",trigger:"hover"},null===(e=this.menuProps)||void 0===e?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>o("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},l(),this.isHorizontal?null:i())}):o("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},l(),i())}}),Je=Object.assign(Object.assign({},c.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),Ze=e({name:"Menu",inheritAttrs:!1,props:Je,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=a(e),r=c("Menu","-menu",Oe,O,e,t),l=x(he,null),s=u((()=>{var o;const{collapsed:t}=e;if(void 0!==t)return t;if(l){const{collapseModeRef:e,collapsedRef:t}=l;if("width"===e.value)return null!==(o=t.value)&&void 0!==o&&o}return!1})),d=u((()=>{const{keyField:o,childrenField:t,disabledField:n}=e;return L(e.items||e.options,{getIgnored:e=>qe(e),getChildren:e=>e[t],getDisabled:e=>e[n],getKey(e){var t;return null!==(t=e[o])&&void 0!==t?t:e.name}})})),m=u((()=>new Set(d.value.treeNodes.map((e=>e.key))))),{watchProps:p}=e,g=i(null);(null==p?void 0:p.includes("defaultValue"))?B((()=>{g.value=e.defaultValue})):g.value=e.defaultValue;const b=y(e,"value"),f=C(b,g),z=i([]),S=()=>{z.value=e.defaultExpandAll?d.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||d.value.getPath(f.value,{includeSelf:!1}).keyPath};(null==p?void 0:p.includes("defaultExpandedKeys"))?B(S):S();const I=$(e,["expandedNames","expandedKeys"]),k=C(I,z),A=u((()=>d.value.treeNodes)),P=u((()=>d.value.getPath(f.value).keyPath));function H(o){const{"onUpdate:expandedKeys":t,onUpdateExpandedKeys:n,onExpandedNamesChange:r,onOpenNamesChange:l}=e;t&&w(t,o),n&&w(n,o),r&&w(r,o),l&&w(l,o),z.value=o}h(He,{props:e,mergedCollapsedRef:s,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:k,activePathRef:P,mergedClsPrefixRef:t,isHorizontalRef:u((()=>"horizontal"===e.mode)),invertedRef:y(e,"inverted"),doSelect:function(o,t){const{"onUpdate:value":n,onUpdateValue:r,onSelect:l}=e;r&&w(r,o,t);n&&w(n,o,t);l&&w(l,o,t);g.value=o},toggleExpand:function(o){const t=Array.from(k.value),n=t.findIndex((e=>e===o));if(~n)t.splice(n,1);else{if(e.accordion&&m.value.has(o)){const e=t.findIndex((e=>m.value.has(e)));e>-1&&t.splice(e,1)}t.push(o)}H(t)}});const R=u((()=>{const{inverted:o}=e,{common:{cubicBezierEaseInOut:t},self:n}=r.value,{borderRadius:l,borderColorHorizontal:i,fontSize:a,itemHeight:c,dividerColor:s}=n,d={"--n-divider-color":s,"--n-bezier":t,"--n-font-size":a,"--n-border-color-horizontal":i,"--n-border-radius":l,"--n-item-height":c};return o?(d["--n-group-text-color"]=n.groupTextColorInverted,d["--n-color"]=n.colorInverted,d["--n-item-text-color"]=n.itemTextColorInverted,d["--n-item-text-color-hover"]=n.itemTextColorHoverInverted,d["--n-item-text-color-active"]=n.itemTextColorActiveInverted,d["--n-item-text-color-child-active"]=n.itemTextColorChildActiveInverted,d["--n-item-text-color-child-active-hover"]=n.itemTextColorChildActiveInverted,d["--n-item-text-color-active-hover"]=n.itemTextColorActiveHoverInverted,d["--n-item-icon-color"]=n.itemIconColorInverted,d["--n-item-icon-color-hover"]=n.itemIconColorHoverInverted,d["--n-item-icon-color-active"]=n.itemIconColorActiveInverted,d["--n-item-icon-color-active-hover"]=n.itemIconColorActiveHoverInverted,d["--n-item-icon-color-child-active"]=n.itemIconColorChildActiveInverted,d["--n-item-icon-color-child-active-hover"]=n.itemIconColorChildActiveHoverInverted,d["--n-item-icon-color-collapsed"]=n.itemIconColorCollapsedInverted,d["--n-item-text-color-horizontal"]=n.itemTextColorHorizontalInverted,d["--n-item-text-color-hover-horizontal"]=n.itemTextColorHoverHorizontalInverted,d["--n-item-text-color-active-horizontal"]=n.itemTextColorActiveHorizontalInverted,d["--n-item-text-color-child-active-horizontal"]=n.itemTextColorChildActiveHorizontalInverted,d["--n-item-text-color-child-active-hover-horizontal"]=n.itemTextColorChildActiveHoverHorizontalInverted,d["--n-item-text-color-active-hover-horizontal"]=n.itemTextColorActiveHoverHorizontalInverted,d["--n-item-icon-color-horizontal"]=n.itemIconColorHorizontalInverted,d["--n-item-icon-color-hover-horizontal"]=n.itemIconColorHoverHorizontalInverted,d["--n-item-icon-color-active-horizontal"]=n.itemIconColorActiveHorizontalInverted,d["--n-item-icon-color-active-hover-horizontal"]=n.itemIconColorActiveHoverHorizontalInverted,d["--n-item-icon-color-child-active-horizontal"]=n.itemIconColorChildActiveHorizontalInverted,d["--n-item-icon-color-child-active-hover-horizontal"]=n.itemIconColorChildActiveHoverHorizontalInverted,d["--n-arrow-color"]=n.arrowColorInverted,d["--n-arrow-color-hover"]=n.arrowColorHoverInverted,d["--n-arrow-color-active"]=n.arrowColorActiveInverted,d["--n-arrow-color-active-hover"]=n.arrowColorActiveHoverInverted,d["--n-arrow-color-child-active"]=n.arrowColorChildActiveInverted,d["--n-arrow-color-child-active-hover"]=n.arrowColorChildActiveHoverInverted,d["--n-item-color-hover"]=n.itemColorHoverInverted,d["--n-item-color-active"]=n.itemColorActiveInverted,d["--n-item-color-active-hover"]=n.itemColorActiveHoverInverted,d["--n-item-color-active-collapsed"]=n.itemColorActiveCollapsedInverted):(d["--n-group-text-color"]=n.groupTextColor,d["--n-color"]=n.color,d["--n-item-text-color"]=n.itemTextColor,d["--n-item-text-color-hover"]=n.itemTextColorHover,d["--n-item-text-color-active"]=n.itemTextColorActive,d["--n-item-text-color-child-active"]=n.itemTextColorChildActive,d["--n-item-text-color-child-active-hover"]=n.itemTextColorChildActiveHover,d["--n-item-text-color-active-hover"]=n.itemTextColorActiveHover,d["--n-item-icon-color"]=n.itemIconColor,d["--n-item-icon-color-hover"]=n.itemIconColorHover,d["--n-item-icon-color-active"]=n.itemIconColorActive,d["--n-item-icon-color-active-hover"]=n.itemIconColorActiveHover,d["--n-item-icon-color-child-active"]=n.itemIconColorChildActive,d["--n-item-icon-color-child-active-hover"]=n.itemIconColorChildActiveHover,d["--n-item-icon-color-collapsed"]=n.itemIconColorCollapsed,d["--n-item-text-color-horizontal"]=n.itemTextColorHorizontal,d["--n-item-text-color-hover-horizontal"]=n.itemTextColorHoverHorizontal,d["--n-item-text-color-active-horizontal"]=n.itemTextColorActiveHorizontal,d["--n-item-text-color-child-active-horizontal"]=n.itemTextColorChildActiveHorizontal,d["--n-item-text-color-child-active-hover-horizontal"]=n.itemTextColorChildActiveHoverHorizontal,d["--n-item-text-color-active-hover-horizontal"]=n.itemTextColorActiveHoverHorizontal,d["--n-item-icon-color-horizontal"]=n.itemIconColorHorizontal,d["--n-item-icon-color-hover-horizontal"]=n.itemIconColorHoverHorizontal,d["--n-item-icon-color-active-horizontal"]=n.itemIconColorActiveHorizontal,d["--n-item-icon-color-active-hover-horizontal"]=n.itemIconColorActiveHoverHorizontal,d["--n-item-icon-color-child-active-horizontal"]=n.itemIconColorChildActiveHorizontal,d["--n-item-icon-color-child-active-hover-horizontal"]=n.itemIconColorChildActiveHoverHorizontal,d["--n-arrow-color"]=n.arrowColor,d["--n-arrow-color-hover"]=n.arrowColorHover,d["--n-arrow-color-active"]=n.arrowColorActive,d["--n-arrow-color-active-hover"]=n.arrowColorActiveHover,d["--n-arrow-color-child-active"]=n.arrowColorChildActive,d["--n-arrow-color-child-active-hover"]=n.arrowColorChildActiveHover,d["--n-item-color-hover"]=n.itemColorHover,d["--n-item-color-active"]=n.itemColorActive,d["--n-item-color-active-hover"]=n.itemColorActiveHover,d["--n-item-color-active-collapsed"]=n.itemColorActiveCollapsed),d})),T=n?v("menu",u((()=>e.inverted?"a":"b")),R,e):void 0,N=E(),_=i(null),F=i(null);let j=!0;const M=()=>{var e;j?j=!1:null===(e=_.value)||void 0===e||e.sync({showAllItemsBeforeCalculate:!0})};const V=i(-1);const K=u((()=>{const o=V.value;return{children:-1===o?[]:e.options.slice(o)}})),D=u((()=>{const{childrenField:o,disabledField:t,keyField:n}=e;return L([K.value],{getIgnored:e=>qe(e),getChildren:e=>e[o],getDisabled:e=>e[t],getKey(e){var o;return null!==(o=e[n])&&void 0!==o?o:e.name}})})),U=u((()=>L([{}]).treeNodes[0]));return{mergedClsPrefix:t,controlledExpandedKeys:I,uncontrolledExpanededKeys:z,mergedExpandedKeys:k,uncontrolledValue:g,mergedValue:f,activePath:P,tmNodes:A,mergedTheme:r,mergedCollapsed:s,cssVars:n?void 0:R,themeClass:null==T?void 0:T.themeClass,overflowRef:_,counterRef:F,updateCounter:()=>{},onResize:M,onUpdateOverflow:function(e){e||(V.value=-1)},onUpdateCount:function(o){V.value=e.options.length-o},renderCounter:function(){var e;if(-1===V.value)return o(Xe,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:U.value,domId:N,isEllipsisPlaceholder:!0});const t=D.value.treeNodes[0],n=P.value,r=!!(null===(e=t.children)||void 0===e?void 0:e.some((e=>n.includes(e.key))));return o(Xe,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:r,tmNode:t,domId:N,rawNodes:t.rawNode.children||[],tmNodes:t.children||[],isEllipsisPlaceholder:!0})},getCounter:function(){return document.getElementById(N)},onRender:null==T?void 0:T.onRender,showOption:o=>{const t=d.value.getPath(null!=o?o:f.value,{includeSelf:!1}).keyPath;if(!t.length)return;const n=Array.from(k.value),r=new Set([...n,...t]);e.accordion&&m.value.forEach((e=>{r.has(e)&&!t.includes(e)&&r.delete(e)})),H(Array.from(r))},deriveResponsiveState:M}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;null==r||r();const l=()=>this.tmNodes.map((e=>Ge(e,this.$props))),i="horizontal"===t&&this.responsive,a=()=>o("div",j(this.$attrs,{role:"horizontal"===t?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,i&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),i?o(F,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:l,counter:this.renderCounter}):l());return i?o(_,{onResize:this.onResize},{default:a}):a()}}),Qe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},eo=e({name:"ApiOutlined",render:function(e,o){return V(),M("svg",Qe,o[0]||(o[0]=[K("path",{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3c2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4l-186.8-186.8l59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7c35.3 0 68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4c0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3L410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3c51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4l186.8 186.8l-59.4 59.4z",fill:"currentColor"},null,-1)]))}}),oo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},to=e({name:"MenuFoldOutlined",render:function(e,o){return V(),M("svg",oo,o[0]||(o[0]=[K("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z",fill:"currentColor"},null,-1)]))}}),no={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},ro=e({name:"MenuUnfoldOutlined",render:function(e,o){return V(),M("svg",no,o[0]||(o[0]=[K("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z",fill:"currentColor"},null,-1)]))}}),lo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},io=e({name:"AddSquare24Regular",render:function(e,o){return V(),M("svg",lo,o[0]||(o[0]=[K("g",{fill:"none"},[K("path",{d:"M12 7a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7zm-9-.75A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25zM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75V6.25a1.75 1.75 0 0 0-1.75-1.75H6.25z",fill:"currentColor"})],-1)]))}}),ao={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},co=e({name:"Home",render:function(e,o){return V(),M("svg",ao,o[0]||(o[0]=[K("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"},null,-1)]))}}),so={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},uo=e({name:"LogOutOutline",render:function(e,o){return V(),M("svg",so,o[0]||(o[0]=[K("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),K("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),K("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),vo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ho=e({name:"SettingsOutline",render:function(e,o){return V(),M("svg",vo,o[0]||(o[0]=[K("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),mo="_layoutContainer_8k04l_2",po="_sider_8k04l_7",go="_logoContainer_8k04l_12",bo="_logoContainerText_8k04l_23",fo="_logoContainerActive_8k04l_28",xo="_collapsedIconActive_8k04l_33",Co="_collapsedIcon_8k04l_33",yo="_header_8k04l_43",wo="_systemInfo_8k04l_49",zo="_content_8k04l_54",So=e({setup(){const{menuItems:e,menuActive:t,isCollapsed:n,toggleCollapse:r,handleExpand:l,handleCollapse:a,updateMenuActive:c}=(()=>{const e=ae(),t=D(),n=U(),r=q(),{handleError:l}=re(),{resetDataInfo:a,menuActive:c,updateMenuActive:s}=e,d=i(!1),v=i({}),h=e=>{const t={certManage:de,autoDeploy:se,home:co,certApply:io,monitor:ce,settings:ho,logout:uo,authApiManage:eo};return()=>o(Q,null,(()=>o(t[e]||"div")))},m=u((()=>[...G.map((e=>({key:e.name,label:()=>W(Y,{to:e.path},{default:()=>{var o;return[null==(o=null==e?void 0:e.meta)?void 0:o.title]}}),icon:h(e.name)}))),{key:"logout",label:()=>W("a",{onClick:g},[X("t_15_1745457484292")]),icon:h("logout")}])),p=()=>{const e=n.path;if(d.value=e.includes("/children/"),d.value){const e=G.find((e=>e.name===c.value));if(e&&e.children){const o=e.children.find((e=>n.path.includes(e.path)));v.value=o||{}}else v.value={}}else v.value={}};J((()=>n.name),(()=>{n.name!==c.value&&s(n.name),p()}),{immediate:!0});const g=async()=>{try{await le({title:X("t_15_1745457484292"),content:X("t_16_1745457491607"),onPositiveClick:async()=>{try{r.success(X("t_17_1745457488251")),await ie().fetch(),setTimeout((()=>{a(),sessionStorage.clear(),t.push("/login")}),1e3)}catch(e){l(e)}}})}catch(e){l(e)}};return Z((async()=>{p()})),{...e,handleLogout:g,menuItems:m,isChildRoute:d,childRouteConfig:v}})(),s=ee(["cardColor","headerColor","contentColor"]);return()=>W(xe,{class:mo,hasSider:!0,style:s.value},{default:()=>[W(Pe,{width:200,collapsed:n.value,"collapse-mode":"width","collapsed-width":60,onCollapse:a,onExpand:l,class:po,bordered:!0},{default:()=>[W("div",{class:go+" "+(n.value?fo:"")},[n.value?null:W("div",{class:bo},[W("img",{src:"/static/images/logo.png",alt:"logo",class:"h-8 w-8"},null),W("span",{class:"ml-4 text-[1.6rem] font-bold"},[X("t_1_1744164835667")])]),W(A,{placement:"right",trigger:"hover"},{trigger:()=>W("div",{class:Co+" "+(n.value?xo:""),onClick:()=>r()},[W(Q,{size:18},{default:()=>[n.value?W(ro,null,null):W(to,null,null)]})]),default:()=>W("span",null,[n.value?X("t_3_1744098802647"):X("t_4_1744098802046")])})]),W(Ze,{value:t.value,onUpdateValue:c,options:e.value,class:"border-none",collapsed:n.value,"collapsed-width":60,"collapsed-icon-size":20},null)]}),W(xe,null,{default:()=>[W(ze,{class:yo},{default:()=>[W("div",{class:wo},[W(ue,{value:1,show:!1,dot:!0},{default:()=>[W("span",{class:"px-[.5rem] cursor-pointer"},[oe("v1.0.2")])]})])]}),W(Ce,{class:zo},{default:()=>[W(te,null,{default:({Component:e})=>W(ne,{name:"route-slide",mode:"out-in"},{default:()=>[e&&o(e)]})})]})]})]})}});export{So as default};