it-tools/dist/client/assets/chunks/chunk-7c12459d.js
2024-04-28 00:48:29 +08:00

422 lines
85 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as Qo}from"./chunk-cf010ec4.js";import{a as fo,u as go,b as bo,c as et,d as ot}from"./chunk-893bf84a.js";import{z as te,r as Y,A as yo,d as B,h,c as C,B as Ge,i as Z,p as Q,f as tt,F as fe,C as J,w as io,j as O,D as V,E as $,u as Re,G as ge,k as ee,l as q,m as F,H as ze,q as A,I as nt,J as rt,_ as pe,K as ke,t as it,L as le,M as oe,N as Ue,O as lt,P as xo,Q as at,R as Ce,S as Ee,U as Fe,V as We,g as st,W as ct,X as dt}from"./chunk-449c23a2.js";import{o as x,b as Ne,u as ye,v as re,t as ut,x as xe,f as Se,j as qe,D as ht,E as _o,F as ve,V as vt,G as pt,H as mt,I as $e,J as ft,K as gt,L as bt,X as yt,n as T,M as me,q as K,p as _,O as Ae,P as X,w as de,z as Ie,Q as xt,R as Co,k as _t,a as lo,S as Ct,T as wo,N as So,U as Le,W as wt,Y as St,Z as Io,B as Ye,_ as Ze,A as be,$ as It,a0 as zt,a1 as zo,a2 as kt}from"../entries/src_pages_Home.page.16dc467b.js";import{N as ko}from"./chunk-9519e52e.js";import{c as ae,w as At,_ as je,a as he}from"./chunk-a740628f.js";import{C as Ke,r as Pt}from"./chunk-fb60a83f.js";import{_ as Rt}from"./chunk-153e0e77.js";import{_ as Nt}from"./chunk-6deddc2e.js";import{_ as $t}from"./chunk-19e85b99.js";import{u as Ht}from"./chunk-27eb844d.js";import{_ as Tt}from"./chunk-606d31d4.js";import{h as ao,u as Lt}from"./chunk-f696a70e.js";import{f as Kt}from"./chunk-051b56e8.js";import{N as Ao}from"./chunk-f206ee20.js";import{k as Xe}from"./chunk-5d5107c5.js";import{f as Po}from"./chunk-a0dc36f0.js";import{u as Ot}from"./chunk-ee54c1e8.js";import{_ as Bt}from"./chunk-5a4ab062.js";const ne=(e,...o)=>typeof e=="function"?e(...o):typeof e=="string"?te(e):typeof e=="number"?te(String(e)):null;function Mt(e){return o=>{o?e.value=o.$el:e.value=null}}function Et(e,o,t){if(!o)return e;const n=Y(e.value);let r=null;return yo(e,i=>{r!==null&&window.clearTimeout(r),i===!0?t&&!t.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},o):n.value=!1}),n}const Ro=B({name:"ChevronRight",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Ft=B({name:"ChevronDownFilled",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}});function so(e){return Array.isArray(e)?e:[e]}const De={STOP:"STOP"};function No(e,o){const t=o(e);e.children!==void 0&&t!==De.STOP&&e.children.forEach(n=>No(n,o))}function jt(e,o={}){const{preserveGroup:t=!1}=o,n=[],r=t?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(r)}return i(e),n}function Dt(e,o){const{isLeaf:t}=e;return t!==void 0?t:!o(e)}function Vt(e){return e.children}function Gt(e){return e.key}function Ut(){return!1}function Wt(e,o){const{isLeaf:t}=e;return!(t===!1&&!Array.isArray(o(e)))}function qt(e){return e.disabled===!0}function Yt(e,o){return e.isLeaf===!1&&!Array.isArray(o(e))}function Oe(e){var o;return e==null?[]:Array.isArray(e)?e:(o=e.checkedKeys)!==null&&o!==void 0?o:[]}function Be(e){var o;return e==null||Array.isArray(e)?[]:(o=e.indeterminateKeys)!==null&&o!==void 0?o:[]}function Zt(e,o){const t=new Set(e);return o.forEach(n=>{t.has(n)||t.add(n)}),Array.from(t)}function Xt(e,o){const t=new Set(e);return o.forEach(n=>{t.has(n)&&t.delete(n)}),Array.from(t)}function Jt(e){return e?.type==="group"}class Qt extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function en(e,o,t,n){return Pe(o.concat(e),t,n,!1)}function on(e,o){const t=new Set;return e.forEach(n=>{const r=o.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||t.has(i.key));)t.add(i.key),i=i.parent}}),t}function tn(e,o,t,n){const r=Pe(o,t,n,!1),i=Pe(e,t,n,!0),l=on(e,t),c=[];return r.forEach(a=>{(i.has(a)||l.has(a))&&c.push(a)}),c.forEach(a=>r.delete(a)),r}function Me(e,o){const{checkedKeys:t,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:l,leafOnly:c,checkStrategy:a,allowNotLoaded:u}=e;if(!l)return n!==void 0?{checkedKeys:Zt(t,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:Xt(t,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(t),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:v}=o;let p;r!==void 0?p=tn(r,t,o,u):n!==void 0?p=en(n,t,o,u):p=Pe(t,o,u,!1);const b=a==="parent",H=a==="child"||c,z=p,f=new Set,y=Math.max.apply(null,Array.from(v.keys()));for(let P=y;P>=0;P-=1){const G=P===0,j=v.get(P);for(const g of j){if(g.isLeaf)continue;const{key:m,shallowLoaded:w}=g;if(H&&w&&g.children.forEach(s=>{!s.disabled&&!s.isLeaf&&s.shallowLoaded&&z.has(s.key)&&z.delete(s.key)}),g.disabled||!w)continue;let N=!0,S=!1,R=!0;for(const s of g.children){const k=s.key;if(!s.disabled){if(R&&(R=!1),z.has(k))S=!0;else if(f.has(k)){S=!0,N=!1;break}else if(N=!1,S)break}}N&&!R?(b&&g.children.forEach(s=>{!s.disabled&&z.has(s.key)&&z.delete(s.key)}),z.add(m)):S&&f.add(m),G&&H&&z.has(m)&&z.delete(m)}}return{checkedKeys:Array.from(z),indeterminateKeys:Array.from(f)}}function Pe(e,o,t,n){const{treeNodeMap:r,getChildren:i}=o,l=new Set,c=new Set(e);return e.forEach(a=>{const u=r.get(a);u!==void 0&&No(u,v=>{if(v.disabled)return De.STOP;const{key:p}=v;if(!l.has(p)&&(l.add(p),c.add(p),Yt(v.rawNode,i))){if(n)return De.STOP;if(!t)throw new Qt}})}),c}function nn(e,{includeGroup:o=!1,includeSelf:t=!0},n){var r;const i=n.treeNodeMap;let l=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const c={keyPath:[],treeNodePath:[],treeNode:l};if(l?.ignored)return c.treeNode=null,c;for(;l;)!l.ignored&&(o||!l.isGroup)&&c.treeNodePath.push(l),l=l.parent;return c.treeNodePath.reverse(),t||c.treeNodePath.pop(),c.keyPath=c.treeNodePath.map(a=>a.key),c}function rn(e){if(e.length===0)return null;const o=e[0];return o.isGroup||o.ignored||o.disabled?o.getNext():o}function ln(e,o){const t=e.siblings,n=t.length,{index:r}=e;return o?t[(r+1)%n]:r===t.length-1?null:t[r+1]}function co(e,o,{loop:t=!1,includeDisabled:n=!1}={}){const r=o==="prev"?an:ln,i={reverse:o==="prev"};let l=!1,c=null;function a(u){if(u!==null){if(u===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){c=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){c=u;return}if(u.isGroup){const v=Je(u,i);v!==null?c=v:a(r(u,t))}else{const v=r(u,!1);if(v!==null)a(v);else{const p=sn(u);p?.isGroup?a(r(p,t)):t&&a(r(u,!0))}}}}return a(e),c}function an(e,o){const t=e.siblings,n=t.length,{index:r}=e;return o?t[(r-1+n)%n]:r===0?null:t[r-1]}function sn(e){return e.parent}function Je(e,o={}){const{reverse:t=!1}=o,{children:n}=e;if(n){const{length:r}=n,i=t?r-1:0,l=t?-1:r,c=t?-1:1;for(let a=i;a!==l;a+=c){const u=n[a];if(!u.disabled&&!u.ignored)if(u.isGroup){const v=Je(u,o);if(v!==null)return v}else return u}}return null}const cn={getChild(){return this.ignored?null:Je(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return co(this,"next",e)},getPrev(e={}){return co(this,"prev",e)}};function dn(e,o){const t=o?new Set(o):void 0,n=[];function r(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||t===void 0||t.has(l.key))&&r(l.children)})}return r(e),n}function un(e,o){const t=e.key;for(;o;){if(o.key===t)return!0;o=o.parent}return!1}function $o(e,o,t,n,r,i=null,l=0){const c=[];return e.forEach((a,u)=>{var v;const p=Object.create(n);if(p.rawNode=a,p.siblings=c,p.level=l,p.index=u,p.isFirstChild=u===0,p.isLastChild=u+1===e.length,p.parent=i,!p.ignored){const b=r(a);Array.isArray(b)&&(p.children=$o(b,o,t,n,r,p,l+1))}c.push(p),o.set(p.key,p),t.has(l)||t.set(l,[]),(v=t.get(l))===null||v===void 0||v.push(p)}),c}function Ho(e,o={}){var t;const n=new Map,r=new Map,{getDisabled:i=qt,getIgnored:l=Ut,getIsGroup:c=Jt,getKey:a=Gt}=o,u=(t=o.getChildren)!==null&&t!==void 0?t:Vt,v=o.ignoreEmptyChildren?g=>{const m=u(g);return Array.isArray(m)?m.length?m:null:m}:u,p=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return c(this.rawNode)},get isLeaf(){return Dt(this.rawNode,v)},get shallowLoaded(){return Wt(this.rawNode,v)},get ignored(){return l(this.rawNode)},contains(g){return un(this,g)}},cn),b=$o(e,n,r,p,v);function H(g){if(g==null)return null;const m=n.get(g);return m&&!m.isGroup&&!m.ignored?m:null}function z(g){if(g==null)return null;const m=n.get(g);return m&&!m.ignored?m:null}function f(g,m){const w=z(g);return w?w.getPrev(m):null}function y(g,m){const w=z(g);return w?w.getNext(m):null}function P(g){const m=z(g);return m?m.getParent():null}function G(g){const m=z(g);return m?m.getChild():null}const j={treeNodes:b,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:v,getFlattenedNodes(g){return dn(b,g)},getNode:H,getPrev:f,getNext:y,getParent:P,getChild:G,getFirstAvailableNode(){return rn(b)},getPath(g,m={}){return nn(g,m,j)},getCheckedKeys(g,m={}){const{cascade:w=!0,leafOnly:N=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=m;return Me({checkedKeys:Oe(g),indeterminateKeys:Be(g),cascade:w,leafOnly:N,checkStrategy:S,allowNotLoaded:R},j)},check(g,m,w={}){const{cascade:N=!0,leafOnly:S=!1,checkStrategy:R="all",allowNotLoaded:s=!1}=w;return Me({checkedKeys:Oe(m),indeterminateKeys:Be(m),keysToCheck:g==null?[]:so(g),cascade:N,leafOnly:S,checkStrategy:R,allowNotLoaded:s},j)},uncheck(g,m,w={}){const{cascade:N=!0,leafOnly:S=!1,checkStrategy:R="all",allowNotLoaded:s=!1}=w;return Me({checkedKeys:Oe(m),indeterminateKeys:Be(m),keysToUncheck:g==null?[]:so(g),cascade:N,leafOnly:S,checkStrategy:R,allowNotLoaded:s},j)},getNonLeafKeys(g={}){return jt(b,g)}};return j}const hn=x("collapse-transition",{width:"100%"},[Po()]),vn=e=>{const{cubicBezierEaseInOut:o}=e;return{bezier:o}},pn={name:"CollapseTransition",common:Ne,self:vn},mn=pn,fn=Object.assign(Object.assign({},re.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),gn=B({name:"CollapseTransition",props:fn,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t,mergedRtlRef:n}=ye(e),r=re("CollapseTransition","-collapse-transition",hn,mn,e,o),i=ut("CollapseTransition",n,o),l=C(()=>e.collapsed!==void 0?e.collapsed:e.show),c=C(()=>{const{self:{bezier:u}}=r.value;return{"--n-bezier":u}}),a=t?xe("collapse-transition",void 0,c,e):void 0;return{rtlEnabled:i,mergedShow:l,mergedClsPrefix:o,cssVars:t?void 0:c,themeClass:a?.themeClass,onRender:a?.onRender}},render(){return h(Ao,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),h("div",Ge({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),bn={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},yn=e=>{const{primaryColor:o,textColor2:t,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:l,borderRadius:c,fontSizeSmall:a,fontSizeMedium:u,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:H,heightLarge:z,heightHuge:f,textColor3:y,opacityDisabled:P}=e;return Object.assign(Object.assign({},bn),{optionHeightSmall:b,optionHeightMedium:H,optionHeightLarge:z,optionHeightHuge:f,borderRadius:c,fontSizeSmall:a,fontSizeMedium:u,fontSizeLarge:v,fontSizeHuge:p,optionTextColor:t,optionTextColorHover:t,optionTextColorActive:o,optionTextColorChildActive:o,color:i,dividerColor:n,suffixColor:t,prefixColor:t,optionColorHover:r,optionColorActive:Se(o,{alpha:.1}),groupHeaderTextColor:y,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:o,optionColorActiveInverted:o,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:P})},xn=qe({name:"Dropdown",common:Ne,peers:{Popover:ht},self:yn}),To=xn,Lo=B({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Qe=ae("n-dropdown-menu"),He=ae("n-dropdown"),uo=ae("n-dropdown-option");function Ve(e,o){return e.type==="submenu"||e.type===void 0&&e[o]!==void 0}function _n(e){return e.type==="group"}function Ko(e){return e.type==="divider"}function Cn(e){return e.type==="render"}const Oo=B({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const o=Z(He),{hoverKeyRef:t,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:c,mergedShowRef:a,renderLabelRef:u,renderIconRef:v,labelFieldRef:p,childrenFieldRef:b,renderOptionRef:H,nodePropsRef:z,menuPropsRef:f}=o,y=Z(uo,null),P=Z(Qe),G=Z(_o),j=C(()=>e.tmNode.rawNode),g=C(()=>{const{value:L}=b;return Ve(e.tmNode.rawNode,L)}),m=C(()=>{const{disabled:L}=e.tmNode;return L}),w=C(()=>{if(!g.value)return!1;const{key:L,disabled:W}=e.tmNode;if(W)return!1;const{value:ie}=t,{value:se}=n,{value:Te}=r,{value:ce}=i;return ie!==null?ce.includes(L):se!==null?ce.includes(L)&&ce[ce.length-1]!==L:Te!==null?ce.includes(L):!1}),N=C(()=>n.value===null&&!c.value),S=Et(w,300,N),R=C(()=>!!y?.enteringSubmenuRef.value),s=Y(!1);Q(uo,{enteringSubmenuRef:s});function k(){s.value=!0}function I(){s.value=!1}function D(){const{parentKey:L,tmNode:W}=e;W.disabled||a.value&&(r.value=L,n.value=null,t.value=W.key)}function E(){const{tmNode:L}=e;L.disabled||a.value&&t.value!==L.key&&D()}function M(L){if(e.tmNode.disabled||!a.value)return;const{relatedTarget:W}=L;W&&!ao({target:W},"dropdownOption")&&!ao({target:W},"scrollbarRail")&&(t.value=null)}function d(){const{value:L}=g,{tmNode:W}=e;a.value&&!L&&!W.disabled&&(o.doSelect(W.key,W.rawNode),o.doUpdateShow(!1))}return{labelField:p,renderLabel:u,renderIcon:v,siblingHasIcon:P.showIconRef,siblingHasSubmenu:P.hasSubmenuRef,menuProps:f,popoverBody:G,animated:c,mergedShowSubmenu:C(()=>S.value&&!R.value),rawNode:j,hasSubmenu:g,pending:ve(()=>{const{value:L}=i,{key:W}=e.tmNode;return L.includes(W)}),childActive:ve(()=>{const{value:L}=l,{key:W}=e.tmNode,ie=L.findIndex(se=>W===se);return ie===-1?!1:ie<L.length-1}),active:ve(()=>{const{value:L}=l,{key:W}=e.tmNode,ie=L.findIndex(se=>W===se);return ie===-1?!1:ie===L.length-1}),mergedDisabled:m,renderOption:H,nodeProps:z,handleClick:d,handleMouseMove:E,handleMouseEnter:D,handleMouseLeave:M,handleSubmenuBeforeEnter:k,handleSubmenuAfterEnter:I}},render(){var e,o;const{animated:t,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:c,renderLabel:a,renderIcon:u,renderOption:v,nodeProps:p,props:b,scrollable:H}=this;let z=null;if(r){const G=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);z=h(Bo,Object.assign({},G,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const f={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},y=p?.(n),P=h("div",Object.assign({class:[`${i}-dropdown-option`,y?.class],"data-dropdown-option":!0},y),h("div",Ge(f,b),[h("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):ne(n.icon)]),h("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},a?a(n):ne((o=n[this.labelField])!==null&&o!==void 0?o:n.title)),h("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,c&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?h($e,null,{default:()=>h(Ro,null)}):null)]),this.hasSubmenu?h(vt,null,{default:()=>[h(pt,null,{default:()=>h("div",{class:`${i}-dropdown-offset-container`},h(mt,{show:this.mergedShowSubmenu,placement:this.placement,to:H&&this.popoverBody||void 0,teleportDisabled:!H},{default:()=>h("div",{class:`${i}-dropdown-menu-wrapper`},t?h(tt,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>z}):z)}))})]}):null);return v?v({node:P,option:n}):P}}),wn=B({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:o}=Z(Qe),{renderLabelRef:t,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=Z(He);return{labelField:n,showIcon:e,hasSubmenu:o,renderLabel:t,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:o,hasSubmenu:t,showIcon:n,nodeProps:r,renderLabel:i,renderOption:l}=this,{rawNode:c}=this.tmNode,a=h("div",Object.assign({class:`${o}-dropdown-option`},r?.(c)),h("div",{class:`${o}-dropdown-option-body ${o}-dropdown-option-body--group`},h("div",{"data-dropdown-option":!0,class:[`${o}-dropdown-option-body__prefix`,n&&`${o}-dropdown-option-body__prefix--show-icon`]},ne(c.icon)),h("div",{class:`${o}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(c):ne((e=c.title)!==null&&e!==void 0?e:c[this.labelField])),h("div",{class:[`${o}-dropdown-option-body__suffix`,t&&`${o}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:a,option:c}):a}}),Sn=B({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:o,clsPrefix:t}=this,{children:n}=e;return h(fe,null,h(wn,{clsPrefix:t,tmNode:e,key:e.key}),n?.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Ko(i)?h(Lo,{clsPrefix:t,key:r.key}):r.isGroup?(At("dropdown","`group` node is not allowed to be put in `group` node."),null):h(Oo,{clsPrefix:t,tmNode:r,parentKey:o,key:r.key})}))}}),In=B({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:o}}=this.tmNode;return h("div",o,[e?.()])}}),Bo=B({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:o,childrenFieldRef:t}=Z(He);Q(Qe,{showIconRef:C(()=>{const r=o.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>r?r(a):a.icon);const{rawNode:c}=i;return r?r(c):c.icon})}),hasSubmenuRef:C(()=>{const{value:r}=t;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>Ve(a,r));const{rawNode:c}=i;return Ve(c,r)})})});const n=Y(null);return Q(ft,null),Q(gt,null),Q(_o,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:o,scrollable:t}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Cn(i)?h(In,{tmNode:r,key:r.key}):Ko(i)?h(Lo,{clsPrefix:o,key:r.key}):_n(i)?h(Sn,{clsPrefix:o,tmNode:r,parentKey:e,key:r.key}):h(Oo,{clsPrefix:o,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:t})});return h("div",{class:[`${o}-dropdown-menu`,t&&`${o}-dropdown-menu--scrollable`],ref:"bodyRef"},t?h(yt,{contentClass:`${o}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?bt({clsPrefix:o,arrowStyle:this.arrowStyle}):null)}}),zn=x("dropdown-menu",`
transform-origin: var(--v-transform-origin);
background-color: var(--n-color);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
position: relative;
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[Kt(),x("dropdown-option",`
position: relative;
`,[T("a",`
text-decoration: none;
color: inherit;
outline: none;
`,[T("&::before",`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),x("dropdown-option-body",`
display: flex;
cursor: pointer;
position: relative;
height: var(--n-option-height);
line-height: var(--n-option-height);
font-size: var(--n-font-size);
color: var(--n-option-text-color);
transition: color .3s var(--n-bezier);
`,[T("&::before",`
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 4px;
right: 4px;
transition: background-color .3s var(--n-bezier);
border-radius: var(--n-border-radius);
`),me("disabled",[K("pending",`
color: var(--n-option-text-color-hover);
`,[_("prefix, suffix",`
color: var(--n-option-text-color-hover);
`),T("&::before","background-color: var(--n-option-color-hover);")]),K("active",`
color: var(--n-option-text-color-active);
`,[_("prefix, suffix",`
color: var(--n-option-text-color-active);
`),T("&::before","background-color: var(--n-option-color-active);")]),K("child-active",`
color: var(--n-option-text-color-child-active);
`,[_("prefix, suffix",`
color: var(--n-option-text-color-child-active);
`)])]),K("disabled",`
cursor: not-allowed;
opacity: var(--n-option-opacity-disabled);
`),K("group",`
font-size: calc(var(--n-font-size) - 1px);
color: var(--n-group-header-text-color);
`,[_("prefix",`
width: calc(var(--n-option-prefix-width) / 2);
`,[K("show-icon",`
width: calc(var(--n-option-icon-prefix-width) / 2);
`)])]),_("prefix",`
width: var(--n-option-prefix-width);
display: flex;
justify-content: center;
align-items: center;
color: var(--n-prefix-color);
transition: color .3s var(--n-bezier);
z-index: 1;
`,[K("show-icon",`
width: var(--n-option-icon-prefix-width);
`),x("icon",`
font-size: var(--n-option-icon-size);
`)]),_("label",`
white-space: nowrap;
flex: 1;
z-index: 1;
`),_("suffix",`
box-sizing: border-box;
flex-grow: 0;
flex-shrink: 0;
display: flex;
justify-content: flex-end;
align-items: center;
min-width: var(--n-option-suffix-width);
padding: 0 8px;
transition: color .3s var(--n-bezier);
color: var(--n-suffix-color);
z-index: 1;
`,[K("has-submenu",`
width: var(--n-option-icon-suffix-width);
`),x("icon",`
font-size: var(--n-option-icon-size);
`)]),x("dropdown-menu","pointer-events: all;")]),x("dropdown-offset-container",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: -4px;
bottom: -4px;
`)]),x("dropdown-divider",`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 4px 0;
`),x("dropdown-menu-wrapper",`
transform-origin: var(--v-transform-origin);
width: fit-content;
`),T(">",[x("scrollbar",`
height: inherit;
max-height: inherit;
`)]),me("scrollable",`
padding: var(--n-padding);
`),K("scrollable",[_("content",`
padding: var(--n-padding);
`)])]),kn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},An=Object.keys(Co),Pn=Object.assign(Object.assign(Object.assign({},Co),kn),re.props),Rn=B({name:"Dropdown",inheritAttrs:!1,props:Pn,setup(e){const o=Y(!1),t=Ae(J(e,"show"),o),n=C(()=>{const{keyField:I,childrenField:D}=e;return Ho(e.options,{getKey(E){return E[I]},getDisabled(E){return E.disabled===!0},getIgnored(E){return E.type==="divider"||E.type==="render"},getChildren(E){return E[D]}})}),r=C(()=>n.value.treeNodes),i=Y(null),l=Y(null),c=Y(null),a=C(()=>{var I,D,E;return(E=(D=(I=i.value)!==null&&I!==void 0?I:l.value)!==null&&D!==void 0?D:c.value)!==null&&E!==void 0?E:null}),u=C(()=>n.value.getPath(a.value).keyPath),v=C(()=>n.value.getPath(e.value).keyPath),p=ve(()=>e.keyboard&&t.value);Lt({keydown:{ArrowUp:{prevent:!0,handler:m},ArrowRight:{prevent:!0,handler:g},ArrowDown:{prevent:!0,handler:w},ArrowLeft:{prevent:!0,handler:j},Enter:{prevent:!0,handler:N},Escape:G}},p);const{mergedClsPrefixRef:b,inlineThemeDisabled:H}=ye(e),z=re("Dropdown","-dropdown",zn,To,e,b);Q(He,{labelFieldRef:J(e,"labelField"),childrenFieldRef:J(e,"childrenField"),renderLabelRef:J(e,"renderLabel"),renderIconRef:J(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:c,pendingKeyPathRef:u,activeKeyPathRef:v,animatedRef:J(e,"animated"),mergedShowRef:t,nodePropsRef:J(e,"nodeProps"),renderOptionRef:J(e,"renderOption"),menuPropsRef:J(e,"menuProps"),doSelect:f,doUpdateShow:y}),yo(t,I=>{!e.animated&&!I&&P()});function f(I,D){const{onSelect:E}=e;E&&X(E,I,D)}function y(I){const{"onUpdate:show":D,onUpdateShow:E}=e;D&&X(D,I),E&&X(E,I),o.value=I}function P(){i.value=null,l.value=null,c.value=null}function G(){y(!1)}function j(){R("left")}function g(){R("right")}function m(){R("up")}function w(){R("down")}function N(){const I=S();I?.isLeaf&&t.value&&(f(I.key,I.rawNode),y(!1))}function S(){var I;const{value:D}=n,{value:E}=a;return!D||E===null?null:(I=D.getNode(E))!==null&&I!==void 0?I:null}function R(I){const{value:D}=a,{value:{getFirstAvailableNode:E}}=n;let M=null;if(D===null){const d=E();d!==null&&(M=d.key)}else{const d=S();if(d){let L;switch(I){case"down":L=d.getNext();break;case"up":L=d.getPrev();break;case"right":L=d.getChild();break;case"left":L=d.getParent();break}L&&(M=L.key)}}M!==null&&(i.value=null,l.value=M)}const s=C(()=>{const{size:I,inverted:D}=e,{common:{cubicBezierEaseInOut:E},self:M}=z.value,{padding:d,dividerColor:L,borderRadius:W,optionOpacityDisabled:ie,[de("optionIconSuffixWidth",I)]:se,[de("optionSuffixWidth",I)]:Te,[de("optionIconPrefixWidth",I)]:ce,[de("optionPrefixWidth",I)]:Yo,[de("fontSize",I)]:Zo,[de("optionHeight",I)]:Xo,[de("optionIconSize",I)]:Jo}=M,U={"--n-bezier":E,"--n-font-size":Zo,"--n-padding":d,"--n-border-radius":W,"--n-option-height":Xo,"--n-option-prefix-width":Yo,"--n-option-icon-prefix-width":ce,"--n-option-suffix-width":Te,"--n-option-icon-suffix-width":se,"--n-option-icon-size":Jo,"--n-divider-color":L,"--n-option-opacity-disabled":ie};return D?(U["--n-color"]=M.colorInverted,U["--n-option-color-hover"]=M.optionColorHoverInverted,U["--n-option-color-active"]=M.optionColorActiveInverted,U["--n-option-text-color"]=M.optionTextColorInverted,U["--n-option-text-color-hover"]=M.optionTextColorHoverInverted,U["--n-option-text-color-active"]=M.optionTextColorActiveInverted,U["--n-option-text-color-child-active"]=M.optionTextColorChildActiveInverted,U["--n-prefix-color"]=M.prefixColorInverted,U["--n-suffix-color"]=M.suffixColorInverted,U["--n-group-header-text-color"]=M.groupHeaderTextColorInverted):(U["--n-color"]=M.color,U["--n-option-color-hover"]=M.optionColorHover,U["--n-option-color-active"]=M.optionColorActive,U["--n-option-text-color"]=M.optionTextColor,U["--n-option-text-color-hover"]=M.optionTextColorHover,U["--n-option-text-color-active"]=M.optionTextColorActive,U["--n-option-text-color-child-active"]=M.optionTextColorChildActive,U["--n-prefix-color"]=M.prefixColor,U["--n-suffix-color"]=M.suffixColor,U["--n-group-header-text-color"]=M.groupHeaderTextColor),U}),k=H?xe("dropdown",C(()=>`${e.size[0]}${e.inverted?"i":""}`),s,e):void 0;return{mergedClsPrefix:b,mergedTheme:z,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&P()},doUpdateShow:y,cssVars:H?void 0:s,themeClass:k?.themeClass,onRender:k?.onRender}},render(){const e=(n,r,i,l,c)=>{var a;const{mergedClsPrefix:u,menuProps:v}=this;(a=this.onRender)===null||a===void 0||a.call(this);const p=v?.(void 0,this.tmNodes.map(H=>H.rawNode))||{},b={ref:Mt(r),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:c};return h(Bo,Ge(this.$attrs,b,p))},{mergedTheme:o}=this,t={show:this.mergedShow,theme:o.peers.Popover,themeOverrides:o.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h(xt,Object.assign({},Ie(this.$props,An),t),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Nn=e=>{const{baseColor:o,textColor2:t,bodyColor:n,cardColor:r,dividerColor:i,actionColor:l,scrollbarColor:c,scrollbarColorHover:a,invertedColor:u}=e;return{textColor:t,textColorInverted:"#FFF",color:n,colorEmbedded:l,headerColor:r,headerColorInverted:u,footerColor:l,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:r,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:lo(n,c),siderToggleBarColorHover:lo(n,a),__invertScrollbar:"true"}},$n=qe({name:"Layout",common:Ne,peers:{Scrollbar:_t},self:Nn}),Mo=$n;function Hn(e,o,t,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:o,itemColorActiveHoverInverted:o,itemColorActiveCollapsedInverted:o,itemTextColorInverted:e,itemTextColorHoverInverted:t,itemTextColorChildActiveInverted:t,itemTextColorChildActiveHoverInverted:t,itemTextColorActiveInverted:t,itemTextColorActiveHoverInverted:t,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:t,itemTextColorChildActiveHorizontalInverted:t,itemTextColorChildActiveHoverHorizontalInverted:t,itemTextColorActiveHorizontalInverted:t,itemTextColorActiveHoverHorizontalInverted:t,itemIconColorInverted:e,itemIconColorHoverInverted:t,itemIconColorActiveInverted:t,itemIconColorActiveHoverInverted:t,itemIconColorChildActiveInverted:t,itemIconColorChildActiveHoverInverted:t,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:t,itemIconColorActiveHorizontalInverted:t,itemIconColorActiveHoverHorizontalInverted:t,itemIconColorChildActiveHorizontalInverted:t,itemIconColorChildActiveHoverHorizontalInverted:t,arrowColorInverted:e,arrowColorHoverInverted:t,arrowColorActiveInverted:t,arrowColorActiveHoverInverted:t,arrowColorChildActiveInverted:t,arrowColorChildActiveHoverInverted:t,groupTextColorInverted:n}}const Tn=e=>{const{borderRadius:o,textColor3:t,primaryColor:n,textColor2:r,textColor1:i,fontSize:l,dividerColor:c,hoverColor:a,primaryColorHover:u}=e;return Object.assign({borderRadius:o,color:"#0000",groupTextColor:t,itemColorHover:a,itemColorActive:Se(n,{alpha:.1}),itemColorActiveHover:Se(n,{alpha:.1}),itemColorActiveCollapsed:Se(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:c},Hn("#BBB",n,"#FFF","#AAA"))},Ln=qe({name:"Menu",common:Ne,peers:{Tooltip:Ct,Dropdown:To},self:Tn}),Kn=Ln,Eo=ae("n-layout-sider"),Fo={type:String,default:"static"},On=x("layout",`
color: var(--n-text-color);
background-color: var(--n-color);
box-sizing: border-box;
position: relative;
z-index: auto;
flex: auto;
overflow: hidden;
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[x("layout-scroll-container",`
overflow-x: hidden;
box-sizing: border-box;
height: 100%;
`),K("absolute-positioned",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),Bn={embedded:Boolean,position:Fo,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},jo=ae("n-layout");function Mn(e){return B({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},re.props),Bn),setup(o){const t=Y(null),n=Y(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=ye(o),l=re("Layout","-layout",On,Mo,o,r);function c(f,y){if(o.nativeScrollbar){const{value:P}=t;P&&(y===void 0?P.scrollTo(f):P.scrollTo(f,y))}else{const{value:P}=n;P&&P.scrollTo(f,y)}}Q(jo,o);let a=0,u=0;const v=f=>{var y;const P=f.target;a=P.scrollLeft,u=P.scrollTop,(y=o.onScroll)===null||y===void 0||y.call(o,f)};wo(()=>{if(o.nativeScrollbar){const f=t.value;f&&(f.scrollTop=u,f.scrollLeft=a)}});const p={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},b={scrollTo:c},H=C(()=>{const{common:{cubicBezierEaseInOut:f},self:y}=l.value;return{"--n-bezier":f,"--n-color":o.embedded?y.colorEmbedded:y.color,"--n-text-color":y.textColor}}),z=i?xe("layout",C(()=>o.embedded?"e":""),H,o):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:t,scrollbarInstRef:n,hasSiderStyle:p,mergedTheme:l,handleNativeElScroll:v,cssVars:i?void 0:H,themeClass:z?.themeClass,onRender:z?.onRender},b)},render(){var o;const{mergedClsPrefix:t,hasSider:n}=this;(o=this.onRender)===null||o===void 0||o.call(this);const r=n?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${t}-layout-content`,`${t}-layout`,`${t}-layout--${this.position}-positioned`];return h("div",{class:i,style:this.cssVars},this.nativeScrollbar?h("div",{ref:"scrollableElRef",class:`${t}-layout-scroll-container`,style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):h(So,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const En=Mn(!1),Fn=x("layout-sider",`
flex-shrink: 0;
box-sizing: border-box;
position: relative;
z-index: 1;
color: var(--n-text-color);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
min-width .3s var(--n-bezier),
max-width .3s var(--n-bezier),
transform .3s var(--n-bezier),
background-color .3s var(--n-bezier);
background-color: var(--n-color);
display: flex;
justify-content: flex-end;
`,[K("bordered",[_("border",`
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 1px;
background-color: var(--n-border-color);
transition: background-color .3s var(--n-bezier);
`)]),_("left-placement",[K("bordered",[_("border",`
right: 0;
`)])]),K("right-placement",`
justify-content: flex-start;
`,[K("bordered",[_("border",`
left: 0;
`)]),K("collapsed",[x("layout-toggle-button",[x("base-icon",`
transform: rotate(180deg);
`)]),x("layout-toggle-bar",[T("&:hover",[_("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),_("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),x("layout-toggle-button",`
left: 0;
transform: translateX(-50%) translateY(-50%);
`,[x("base-icon",`
transform: rotate(0);
`)]),x("layout-toggle-bar",`
left: -28px;
transform: rotate(180deg);
`,[T("&:hover",[_("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),_("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),K("collapsed",[x("layout-toggle-bar",[T("&:hover",[_("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),_("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),x("layout-toggle-button",[x("base-icon",`
transform: rotate(0);
`)])]),x("layout-toggle-button",`
transition:
color .3s var(--n-bezier),
right .3s var(--n-bezier),
left .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
cursor: pointer;
width: 24px;
height: 24px;
position: absolute;
top: 50%;
right: 0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--n-toggle-button-icon-color);
border: var(--n-toggle-button-border);
background-color: var(--n-toggle-button-color);
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
transform: translateX(50%) translateY(-50%);
z-index: 1;
`,[x("base-icon",`
transition: transform .3s var(--n-bezier);
transform: rotate(180deg);
`)]),x("layout-toggle-bar",`
cursor: pointer;
height: 72px;
width: 32px;
position: absolute;
top: calc(50% - 36px);
right: -28px;
`,[_("top, bottom",`
position: absolute;
width: 4px;
border-radius: 2px;
height: 38px;
left: 14px;
transition:
background-color .3s var(--n-bezier),
transform .3s var(--n-bezier);
`),_("bottom",`
position: absolute;
top: 34px;
`),T("&:hover",[_("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),_("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),_("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),T("&:hover",[_("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),_("border",`
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 1px;
transition: background-color .3s var(--n-bezier);
`),x("layout-sider-scroll-container",`
flex-grow: 1;
flex-shrink: 0;
box-sizing: border-box;
height: 100%;
opacity: 0;
transition: opacity .3s var(--n-bezier);
max-width: 100%;
`),K("show-content",[x("layout-sider-scroll-container",{opacity:1})]),K("absolute-positioned",`
position: absolute;
left: 0;
top: 0;
bottom: 0;
`)]),jn=B({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return h("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},h(ko,{clsPrefix:e},{default:()=>h(Ro,null)}))}}),Dn=B({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return h("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},h("div",{class:`${e}-layout-toggle-bar__top`}),h("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),Vn={position:Fo,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},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,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Gn=B({name:"LayoutSider",props:Object.assign(Object.assign({},re.props),Vn),setup(e){const o=Z(jo),t=Y(null),n=Y(null),r=C(()=>Le(a.value?e.collapsedWidth:e.width)),i=C(()=>e.collapseMode!=="transform"?{}:{minWidth:Le(e.width)}),l=C(()=>o?o.siderPlacement:"left"),c=Y(e.defaultCollapsed),a=Ae(J(e,"collapsed"),c);function u(m,w){if(e.nativeScrollbar){const{value:N}=t;N&&(w===void 0?N.scrollTo(m):N.scrollTo(m,w))}else{const{value:N}=n;N&&N.scrollTo(m,w)}}function v(){const{"onUpdate:collapsed":m,onUpdateCollapsed:w,onExpand:N,onCollapse:S}=e,{value:R}=a;w&&X(w,!R),m&&X(m,!R),c.value=!R,R?N&&X(N):S&&X(S)}let p=0,b=0;const H=m=>{var w;const N=m.target;p=N.scrollLeft,b=N.scrollTop,(w=e.onScroll)===null||w===void 0||w.call(e,m)};wo(()=>{if(e.nativeScrollbar){const m=t.value;m&&(m.scrollTop=b,m.scrollLeft=p)}}),Q(Eo,{collapsedRef:a,collapseModeRef:J(e,"collapseMode")});const{mergedClsPrefixRef:z,inlineThemeDisabled:f}=ye(e),y=re("Layout","-layout-sider",Fn,Mo,e,z);function P(m){var w,N;m.propertyName==="max-width"&&(a.value?(w=e.onAfterLeave)===null||w===void 0||w.call(e):(N=e.onAfterEnter)===null||N===void 0||N.call(e))}const G={scrollTo:u},j=C(()=>{const{common:{cubicBezierEaseInOut:m},self:w}=y.value,{siderToggleButtonColor:N,siderToggleButtonBorder:S,siderToggleBarColor:R,siderToggleBarColorHover:s}=w,k={"--n-bezier":m,"--n-toggle-button-color":N,"--n-toggle-button-border":S,"--n-toggle-bar-color":R,"--n-toggle-bar-color-hover":s};return e.inverted?(k["--n-color"]=w.siderColorInverted,k["--n-text-color"]=w.textColorInverted,k["--n-border-color"]=w.siderBorderColorInverted,k["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColorInverted,k.__invertScrollbar=w.__invertScrollbar):(k["--n-color"]=w.siderColor,k["--n-text-color"]=w.textColor,k["--n-border-color"]=w.siderBorderColor,k["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColor),k}),g=f?xe("layout-sider",C(()=>e.inverted?"a":"b"),j,e):void 0;return Object.assign({scrollableElRef:t,scrollbarInstRef:n,mergedClsPrefix:z,mergedTheme:y,styleMaxWidth:r,mergedCollapsed:a,scrollContainerStyle:i,siderPlacement:l,handleNativeElScroll:H,handleTransitionend:P,handleTriggerClick:v,inlineThemeDisabled:f,cssVars:j,themeClass:g?.themeClass,onRender:g?.onRender},G)},render(){var e;const{mergedClsPrefix:o,mergedCollapsed:t,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h("aside",{class:[`${o}-layout-sider`,this.themeClass,`${o}-layout-sider--${this.position}-positioned`,`${o}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${o}-layout-sider--bordered`,t&&`${o}-layout-sider--collapsed`,(!t||this.showCollapsedContent)&&`${o}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Le(this.width)}]},this.nativeScrollbar?h("div",{class:`${o}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):h(So,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?h(Dn,{clsPrefix:o,style:t?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):h(jn,{clsPrefix:o,style:t?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?h("div",{class:`${o}-layout-sider__border`}):null)}}),_e=ae("n-menu"),eo=ae("n-submenu"),oo=ae("n-menu-item-group"),we=8;function to(e){const o=Z(_e),{props:t,mergedCollapsedRef:n}=o,r=Z(eo,null),i=Z(oo,null),l=C(()=>t.mode==="horizontal"),c=C(()=>l.value?t.dropdownPlacement:"tmNodes"in e?"right-start":"right"),a=C(()=>{var b;return Math.max((b=t.collapsedIconSize)!==null&&b!==void 0?b:t.iconSize,t.iconSize)}),u=C(()=>{var b;return!l.value&&e.root&&n.value&&(b=t.collapsedIconSize)!==null&&b!==void 0?b:t.iconSize}),v=C(()=>{if(l.value)return;const{collapsedWidth:b,indent:H,rootIndent:z}=t,{root:f,isGroup:y}=e,P=z===void 0?H:z;if(f)return n.value?b/2-a.value/2:P;if(i)return H/2+i.paddingLeftRef.value;if(r)return(y?H/2:H)+r.paddingLeftRef.value}),p=C(()=>{const{collapsedWidth:b,indent:H,rootIndent:z}=t,{value:f}=a,{root:y}=e;return l.value||!y||!n.value?we:(z===void 0?H:z)+f+we-(b+f)/2});return{dropdownPlacement:c,activeIconSize:u,maxIconSize:a,paddingLeft:v,iconMarginRight:p,NMenu:o,NSubmenu:r}}const no={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Do=Object.assign(Object.assign({},no),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Un=B({name:"MenuOptionGroup",props:Do,setup(e){Q(eo,null);const o=to(e);Q(oo,{paddingLeftRef:o.paddingLeft});const{mergedClsPrefixRef:t,props:n}=Z(_e);return function(){const{value:r}=t,i=o.paddingLeft.value,{nodeProps:l}=n,c=l?.(e.tmNode.rawNode);return h("div",{class:`${r}-menu-item-group`,role:"group"},h("div",Object.assign({},c,{class:[`${r}-menu-item-group-title`,c?.class],style:[c?.style||"",i!==void 0?`padding-left: ${i}px;`:""]}),ne(e.title),e.extra?h(fe,null," ",ne(e.extra)):null),h("div",null,e.tmNodes.map(a=>ro(a,n))))}}}),Vo=B({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}},setup(e){const{props:o}=Z(_e);return{menuProps:o,style:C(()=>{const{paddingLeft:t}=e;return{paddingLeft:t&&`${t}px`}}),iconStyle:C(()=>{const{maxIconSize:t,activeIconSize:n,iconMarginRight:r}=e;return{width:`${t}px`,height:`${t}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:o,menuProps:{renderIcon:t,renderLabel:n,renderExtra:r,expandIcon:i}}=this,l=t?t(o.rawNode):ne(this.icon);return h("div",{onClick:c=>{var a;(a=this.onClick)===null||a===void 0||a.call(this,c)},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},l&&h("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[l]),h("div",{class:`${e}-menu-item-content-header`,role:"none"},n?n(o.rawNode):ne(this.title),this.extra||r?h("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(o.rawNode):ne(this.extra)):null),this.showArrow?h(ko,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(o.rawNode):h(Ft,null)}):null)}}),Go=Object.assign(Object.assign({},no),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),Wn=B({name:"Submenu",props:Go,setup(e){const o=to(e),{NMenu:t,NSubmenu:n}=o,{props:r,mergedCollapsedRef:i,mergedThemeRef:l}=t,c=C(()=>{const{disabled:b}=e;return n?.mergedDisabledRef.value||r.disabled?!0:b}),a=Y(!1);Q(eo,{paddingLeftRef:o.paddingLeft,mergedDisabledRef:c}),Q(oo,null);function u(){const{onClick:b}=e;b&&b()}function v(){c.value||(i.value||t.toggleExpand(e.internalKey),u())}function p(b){a.value=b}return{menuProps:r,mergedTheme:l,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:a,paddingLeft:o.paddingLeft,mergedDisabled:c,mergedValue:t.mergedValueRef,childActive:ve(()=>t.activePathRef.value.includes(e.internalKey)),collapsed:C(()=>r.mode==="horizontal"?!1:i.value?!0:!t.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:C(()=>!c.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:p,handleClick:v}},render(){var e;const{mergedClsPrefix:o,menuProps:{renderIcon:t,renderLabel:n}}=this,r=()=>{const{isHorizontal:l,paddingLeft:c,collapsed:a,mergedDisabled:u,maxIconSize:v,activeIconSize:p,title:b,childActive:H,icon:z,handleClick:f,menuProps:{nodeProps:y},dropdownShow:P,iconMarginRight:G,tmNode:j,mergedClsPrefix:g}=this,m=y?.(j.rawNode);return h("div",Object.assign({},m,{class:[`${g}-menu-item`,m?.class],role:"menuitem"}),h(Vo,{tmNode:j,paddingLeft:c,collapsed:a,disabled:u,iconMarginRight:G,maxIconSize:v,activeIconSize:p,title:b,extra:this.extra,showArrow:!l,childActive:H,clsPrefix:g,icon:z,hover:P,onClick:f}))},i=()=>h(Ao,null,{default:()=>{const{tmNodes:l,collapsed:c}=this;return c?null:h("div",{class:`${o}-submenu-children`,role:"menu"},l.map(a=>ro(a,this.menuProps)))}});return this.root?h(Rn,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?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:t,renderLabel:n}),{default:()=>h("div",{class:`${o}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),this.isHorizontal?null:i())}):h("div",{class:`${o}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),i())}}),Uo=Object.assign(Object.assign({},no),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),qn=B({name:"MenuOption",props:Uo,setup(e){const o=to(e),{NSubmenu:t,NMenu:n}=o,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:l}=n,c=t?t.mergedDisabledRef:{value:!1},a=C(()=>c.value||e.disabled);function u(p){const{onClick:b}=e;b&&b(p)}function v(p){a.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),u(p))}return{mergedClsPrefix:i,dropdownPlacement:o.dropdownPlacement,paddingLeft:o.paddingLeft,iconMarginRight:o.iconMarginRight,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:ve(()=>e.root&&l.value&&r.mode!=="horizontal"&&!a.value),selected:ve(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:a,handleClick:v}},render(){const{mergedClsPrefix:e,mergedTheme:o,tmNode:t,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r?.(t.rawNode);return h("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i?.class]}),h(wt,{theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(t.rawNode):ne(this.title),trigger:()=>h(Vo,{tmNode:t,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})}))}}),Yn=B({name:"MenuDivider",setup(){const e=Z(_e),{mergedClsPrefixRef:o,isHorizontalRef:t}=e;return()=>t.value?null:h("div",{class:`${o.value}-menu-divider`})}}),Zn=Xe(Do),Xn=Xe(Uo),Jn=Xe(Go);function Wo(e){return e.type==="divider"||e.type==="render"}function Qn(e){return e.type==="divider"}function ro(e,o){const{rawNode:t}=e,{show:n}=t;if(n===!1)return null;if(Wo(t))return Qn(t)?h(Yn,Object.assign({key:e.key},t.props)):null;const{labelField:r}=o,{key:i,level:l,isGroup:c}=e,a=Object.assign(Object.assign({},t),{title:t.title||t[r],extra:t.titleExtra||t.extra,key:i,internalKey:i,level:l,root:l===0,isGroup:c});return e.children?e.isGroup?h(Un,Ie(a,Zn,{tmNode:e,tmNodes:e.children,key:i})):h(Wn,Ie(a,Jn,{key:i,rawNodes:t[o.childrenField],tmNodes:e.children,tmNode:e})):h(qn,Ie(a,Xn,{key:i,tmNode:e}))}const ho=[T("&::before","background-color: var(--n-item-color-hover);"),_("arrow",`
color: var(--n-arrow-color-hover);
`),_("icon",`
color: var(--n-item-icon-color-hover);
`),x("menu-item-content-header",`
color: var(--n-item-text-color-hover);
`,[T("a",`
color: var(--n-item-text-color-hover);
`),_("extra",`
color: var(--n-item-text-color-hover);
`)])],vo=[_("icon",`
color: var(--n-item-icon-color-hover-horizontal);
`),x("menu-item-content-header",`
color: var(--n-item-text-color-hover-horizontal);
`,[T("a",`
color: var(--n-item-text-color-hover-horizontal);
`),_("extra",`
color: var(--n-item-text-color-hover-horizontal);
`)])],er=T([x("menu",`
background-color: var(--n-color);
color: var(--n-item-text-color);
overflow: hidden;
transition: background-color .3s var(--n-bezier);
box-sizing: border-box;
font-size: var(--n-font-size);
padding-bottom: 6px;
`,[K("horizontal",`
display: inline-flex;
padding-bottom: 0;
`,[x("submenu","margin: 0;"),x("menu-item","margin: 0;"),x("menu-item-content",`
padding: 0 20px;
border-bottom: 2px solid #0000;
`,[T("&::before","display: none;"),K("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),x("menu-item-content",[K("selected",[_("icon","color: var(--n-item-icon-color-active-horizontal);"),x("menu-item-content-header",`
color: var(--n-item-text-color-active-horizontal);
`,[T("a","color: var(--n-item-text-color-active-horizontal);"),_("extra","color: var(--n-item-text-color-active-horizontal);")])]),K("child-active",`
border-bottom: 2px solid var(--n-border-color-horizontal);
`,[x("menu-item-content-header",`
color: var(--n-item-text-color-child-active-horizontal);
`,[T("a",`
color: var(--n-item-text-color-child-active-horizontal);
`),_("extra",`
color: var(--n-item-text-color-child-active-horizontal);
`)]),_("icon",`
color: var(--n-item-icon-color-child-active-horizontal);
`)]),me("disabled",[me("selected, child-active",[T("&:focus-within",vo)]),K("selected",[ue(null,[_("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),x("menu-item-content-header",`
color: var(--n-item-text-color-active-hover-horizontal);
`,[T("a","color: var(--n-item-text-color-active-hover-horizontal);"),_("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),K("child-active",[ue(null,[_("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),x("menu-item-content-header",`
color: var(--n-item-text-color-child-active-hover-horizontal);
`,[T("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),_("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ue("border-bottom: 2px solid var(--n-border-color-horizontal);",vo)]),x("menu-item-content-header",[T("a","color: var(--n-item-text-color-horizontal);")])])]),K("collapsed",[x("menu-item-content",[K("selected",[T("&::before",`
background-color: var(--n-item-color-active-collapsed) !important;
`)]),x("menu-item-content-header","opacity: 0;"),_("arrow","opacity: 0;"),_("icon","color: var(--n-item-icon-color-collapsed);")])]),x("menu-item",`
height: var(--n-item-height);
margin-top: 6px;
position: relative;
`),x("menu-item-content",`
box-sizing: border-box;
line-height: 1.75;
height: 100%;
display: grid;
grid-template-areas: "icon content arrow";
grid-template-columns: auto 1fr auto;
align-items: center;
cursor: pointer;
position: relative;
padding-right: 18px;
transition:
background-color .3s var(--n-bezier),
padding-left .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[T("> *","z-index: 1;"),T("&::before",`
z-index: auto;
content: "";
background-color: #0000;
position: absolute;
left: 8px;
right: 8px;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: var(--n-border-radius);
transition: background-color .3s var(--n-bezier);
`),K("disabled",`
opacity: .45;
cursor: not-allowed;
`),K("collapsed",[_("arrow","transform: rotate(0);")]),K("selected",[T("&::before","background-color: var(--n-item-color-active);"),_("arrow","color: var(--n-arrow-color-active);"),_("icon","color: var(--n-item-icon-color-active);"),x("menu-item-content-header",`
color: var(--n-item-text-color-active);
`,[T("a","color: var(--n-item-text-color-active);"),_("extra","color: var(--n-item-text-color-active);")])]),K("child-active",[x("menu-item-content-header",`
color: var(--n-item-text-color-child-active);
`,[T("a",`
color: var(--n-item-text-color-child-active);
`),_("extra",`
color: var(--n-item-text-color-child-active);
`)]),_("arrow",`
color: var(--n-arrow-color-child-active);
`),_("icon",`
color: var(--n-item-icon-color-child-active);
`)]),me("disabled",[me("selected, child-active",[T("&:focus-within",ho)]),K("selected",[ue(null,[_("arrow","color: var(--n-arrow-color-active-hover);"),_("icon","color: var(--n-item-icon-color-active-hover);"),x("menu-item-content-header",`
color: var(--n-item-text-color-active-hover);
`,[T("a","color: var(--n-item-text-color-active-hover);"),_("extra","color: var(--n-item-text-color-active-hover);")])])]),K("child-active",[ue(null,[_("arrow","color: var(--n-arrow-color-child-active-hover);"),_("icon","color: var(--n-item-icon-color-child-active-hover);"),x("menu-item-content-header",`
color: var(--n-item-text-color-child-active-hover);
`,[T("a","color: var(--n-item-text-color-child-active-hover);"),_("extra","color: var(--n-item-text-color-child-active-hover);")])])]),K("selected",[ue(null,[T("&::before","background-color: var(--n-item-color-active-hover);")])]),ue(null,ho)]),_("icon",`
grid-area: icon;
color: var(--n-item-icon-color);
transition:
color .3s var(--n-bezier),
font-size .3s var(--n-bezier),
margin-right .3s var(--n-bezier);
box-sizing: content-box;
display: inline-flex;
align-items: center;
justify-content: center;
`),_("arrow",`
grid-area: arrow;
font-size: 16px;
color: var(--n-arrow-color);
transform: rotate(180deg);
opacity: 1;
transition:
color .3s var(--n-bezier),
transform 0.2s var(--n-bezier),
opacity 0.2s var(--n-bezier);
`),x("menu-item-content-header",`
grid-area: content;
transition:
color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
opacity: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--n-item-text-color);
`,[T("a",`
outline: none;
text-decoration: none;
transition: color .3s var(--n-bezier);
color: var(--n-item-text-color);
`,[T("&::before",`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),_("extra",`
font-size: .93em;
color: var(--n-group-text-color);
transition: color .3s var(--n-bezier);
`)])]),x("submenu",`
cursor: pointer;
position: relative;
margin-top: 6px;
`,[x("menu-item-content",`
height: var(--n-item-height);
`),x("submenu-children",`
overflow: hidden;
padding: 0;
`,[Po({duration:".2s"})])]),x("menu-item-group",[x("menu-item-group-title",`
margin-top: 6px;
color: var(--n-group-text-color);
cursor: default;
font-size: .93em;
height: 36px;
display: flex;
align-items: center;
transition:
padding-left .3s var(--n-bezier),
color .3s var(--n-bezier);
`)])]),x("menu-tooltip",[T("a",`
color: inherit;
text-decoration: none;
`)]),x("menu-divider",`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 6px 18px;
`)]);function ue(e,o){return[K("hover",e,o),T("&:hover",e,o)]}const or=Object.assign(Object.assign({},re.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,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),tr=B({name:"Menu",props:or,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t}=ye(e),n=re("Menu","-menu",er,Kn,e,o),r=Z(Eo,null),i=C(()=>{var S;const{collapsed:R}=e;if(R!==void 0)return R;if(r){const{collapseModeRef:s,collapsedRef:k}=r;if(s.value==="width")return(S=k.value)!==null&&S!==void 0?S:!1}return!1}),l=C(()=>{const{keyField:S,childrenField:R,disabledField:s}=e;return Ho(e.items||e.options,{getIgnored(k){return Wo(k)},getChildren(k){return k[R]},getDisabled(k){return k[s]},getKey(k){var I;return(I=k[S])!==null&&I!==void 0?I:k.name}})}),c=C(()=>new Set(l.value.treeNodes.map(S=>S.key))),{watchProps:a}=e,u=Y(null);a?.includes("defaultValue")?io(()=>{u.value=e.defaultValue}):u.value=e.defaultValue;const v=J(e,"value"),p=Ae(v,u),b=Y([]),H=()=>{b.value=e.defaultExpandAll?l.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||l.value.getPath(p.value,{includeSelf:!1}).keyPath};a?.includes("defaultExpandedKeys")?io(H):H();const z=St(e,["expandedNames","expandedKeys"]),f=Ae(z,b),y=C(()=>l.value.treeNodes),P=C(()=>l.value.getPath(p.value).keyPath);Q(_e,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:p,mergedExpandedKeysRef:f,activePathRef:P,mergedClsPrefixRef:o,isHorizontalRef:C(()=>e.mode==="horizontal"),invertedRef:J(e,"inverted"),doSelect:G,toggleExpand:g});function G(S,R){const{"onUpdate:value":s,onUpdateValue:k,onSelect:I}=e;k&&X(k,S,R),s&&X(s,S,R),I&&X(I,S,R),u.value=S}function j(S){const{"onUpdate:expandedKeys":R,onUpdateExpandedKeys:s,onExpandedNamesChange:k,onOpenNamesChange:I}=e;R&&X(R,S),s&&X(s,S),k&&X(k,S),I&&X(I,S),b.value=S}function g(S){const R=Array.from(f.value),s=R.findIndex(k=>k===S);if(~s)R.splice(s,1);else{if(e.accordion&&c.value.has(S)){const k=R.findIndex(I=>c.value.has(I));k>-1&&R.splice(k,1)}R.push(S)}j(R)}const m=S=>{const R=l.value.getPath(S??p.value,{includeSelf:!1}).keyPath;if(!R.length)return;const s=Array.from(f.value),k=new Set([...s,...R]);e.accordion&&c.value.forEach(I=>{k.has(I)&&!R.includes(I)&&k.delete(I)}),j(Array.from(k))},w=C(()=>{const{inverted:S}=e,{common:{cubicBezierEaseInOut:R},self:s}=n.value,{borderRadius:k,borderColorHorizontal:I,fontSize:D,itemHeight:E,dividerColor:M}=s,d={"--n-divider-color":M,"--n-bezier":R,"--n-font-size":D,"--n-border-color-horizontal":I,"--n-border-radius":k,"--n-item-height":E};return S?(d["--n-group-text-color"]=s.groupTextColorInverted,d["--n-color"]=s.colorInverted,d["--n-item-text-color"]=s.itemTextColorInverted,d["--n-item-text-color-hover"]=s.itemTextColorHoverInverted,d["--n-item-text-color-active"]=s.itemTextColorActiveInverted,d["--n-item-text-color-child-active"]=s.itemTextColorChildActiveInverted,d["--n-item-text-color-child-active-hover"]=s.itemTextColorChildActiveInverted,d["--n-item-text-color-active-hover"]=s.itemTextColorActiveHoverInverted,d["--n-item-icon-color"]=s.itemIconColorInverted,d["--n-item-icon-color-hover"]=s.itemIconColorHoverInverted,d["--n-item-icon-color-active"]=s.itemIconColorActiveInverted,d["--n-item-icon-color-active-hover"]=s.itemIconColorActiveHoverInverted,d["--n-item-icon-color-child-active"]=s.itemIconColorChildActiveInverted,d["--n-item-icon-color-child-active-hover"]=s.itemIconColorChildActiveHoverInverted,d["--n-item-icon-color-collapsed"]=s.itemIconColorCollapsedInverted,d["--n-item-text-color-horizontal"]=s.itemTextColorHorizontalInverted,d["--n-item-text-color-hover-horizontal"]=s.itemTextColorHoverHorizontalInverted,d["--n-item-text-color-active-horizontal"]=s.itemTextColorActiveHorizontalInverted,d["--n-item-text-color-child-active-horizontal"]=s.itemTextColorChildActiveHorizontalInverted,d["--n-item-text-color-child-active-hover-horizontal"]=s.itemTextColorChildActiveHoverHorizontalInverted,d["--n-item-text-color-active-hover-horizontal"]=s.itemTextColorActiveHoverHorizontalInverted,d["--n-item-icon-color-horizontal"]=s.itemIconColorHorizontalInverted,d["--n-item-icon-color-hover-horizontal"]=s.itemIconColorHoverHorizontalInverted,d["--n-item-icon-color-active-horizontal"]=s.itemIconColorActiveHorizontalInverted,d["--n-item-icon-color-active-hover-horizontal"]=s.itemIconColorActiveHoverHorizontalInverted,d["--n-item-icon-color-child-active-horizontal"]=s.itemIconColorChildActiveHorizontalInverted,d["--n-item-icon-color-child-active-hover-horizontal"]=s.itemIconColorChildActiveHoverHorizontalInverted,d["--n-arrow-color"]=s.arrowColorInverted,d["--n-arrow-color-hover"]=s.arrowColorHoverInverted,d["--n-arrow-color-active"]=s.arrowColorActiveInverted,d["--n-arrow-color-active-hover"]=s.arrowColorActiveHoverInverted,d["--n-arrow-color-child-active"]=s.arrowColorChildActiveInverted,d["--n-arrow-color-child-active-hover"]=s.arrowColorChildActiveHoverInverted,d["--n-item-color-hover"]=s.itemColorHoverInverted,d["--n-item-color-active"]=s.itemColorActiveInverted,d["--n-item-color-active-hover"]=s.itemColorActiveHoverInverted,d["--n-item-color-active-collapsed"]=s.itemColorActiveCollapsedInverted):(d["--n-group-text-color"]=s.groupTextColor,d["--n-color"]=s.color,d["--n-item-text-color"]=s.itemTextColor,d["--n-item-text-color-hover"]=s.itemTextColorHover,d["--n-item-text-color-active"]=s.itemTextColorActive,d["--n-item-text-color-child-active"]=s.itemTextColorChildActive,d["--n-item-text-color-child-active-hover"]=s.itemTextColorChildActiveHover,d["--n-item-text-color-active-hover"]=s.itemTextColorActiveHover,d["--n-item-icon-color"]=s.itemIconColor,d["--n-item-icon-color-hover"]=s.itemIconColorHover,d["--n-item-icon-color-active"]=s.itemIconColorActive,d["--n-item-icon-color-active-hover"]=s.itemIconColorActiveHover,d["--n-item-icon-color-child-active"]=s.itemIconColorChildActive,d["--n-item-icon-color-child-active-hover"]=s.itemIconColorChildActiveHover,d["--n-item-icon-color-collapsed"]=s.itemIconColorCollapsed,d["--n-item-text-color-horizontal"]=s.itemTextColorHorizontal,d["--n-item-text-color-hover-horizontal"]=s.itemTextColorHoverHorizontal,d["--n-item-text-color-active-horizontal"]=s.itemTextColorActiveHorizontal,d["--n-item-text-color-child-active-horizontal"]=s.itemTextColorChildActiveHorizontal,d["--n-item-text-color-child-active-hover-horizontal"]=s.itemTextColorChildActiveHoverHorizontal,d["--n-item-text-color-active-hover-horizontal"]=s.itemTextColorActiveHoverHorizontal,d["--n-item-icon-color-horizontal"]=s.itemIconColorHorizontal,d["--n-item-icon-color-hover-horizontal"]=s.itemIconColorHoverHorizontal,d["--n-item-icon-color-active-horizontal"]=s.itemIconColorActiveHorizontal,d["--n-item-icon-color-active-hover-horizontal"]=s.itemIconColorActiveHoverHorizontal,d["--n-item-icon-color-child-active-horizontal"]=s.itemIconColorChildActiveHorizontal,d["--n-item-icon-color-child-active-hover-horizontal"]=s.itemIconColorChildActiveHoverHorizontal,d["--n-arrow-color"]=s.arrowColor,d["--n-arrow-color-hover"]=s.arrowColorHover,d["--n-arrow-color-active"]=s.arrowColorActive,d["--n-arrow-color-active-hover"]=s.arrowColorActiveHover,d["--n-arrow-color-child-active"]=s.arrowColorChildActive,d["--n-arrow-color-child-active-hover"]=s.arrowColorChildActiveHover,d["--n-item-color-hover"]=s.itemColorHover,d["--n-item-color-active"]=s.itemColorActive,d["--n-item-color-active-hover"]=s.itemColorActiveHover,d["--n-item-color-active-collapsed"]=s.itemColorActiveCollapsed),d}),N=t?xe("menu",C(()=>e.inverted?"a":"b"),w,e):void 0;return{mergedClsPrefix:o,controlledExpandedKeys:z,uncontrolledExpanededKeys:b,mergedExpandedKeys:f,uncontrolledValue:u,mergedValue:p,activePath:P,tmNodes:y,mergedTheme:n,mergedCollapsed:i,cssVars:t?void 0:w,themeClass:N?.themeClass,onRender:N?.onRender,showOption:m}},render(){const{mergedClsPrefix:e,mode:o,themeClass:t,onRender:n}=this;return n?.(),h("div",{role:o==="horizontal"?"menubar":"menu",class:[`${e}-menu`,t,`${e}-menu--${o}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(r=>ro(r,this.$props)))}}),nr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},rr=$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M5 12H3l9-9l9 9h-2"}),$("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7"}),$("path",{d:"M10 12h4v4h-4z"})],-1),ir=[rr],lr=B({name:"Home2",render:function(o,t){return O(),V("svg",nr,ir)}}),ar={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},sr=$("path",{d:"M12 3h.393a7.5 7.5 0 0 0 7.92 12.446A9 9 0 1 1 12 2.992z",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),cr=[sr],dr=B({name:"Moon",render:function(o,t){return O(),V("svg",ar,cr)}}),ur={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},hr=$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("circle",{cx:"12",cy:"12",r:"4"}),$("path",{d:"M3 12h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7"})],-1),vr=[hr],pr=B({name:"Sun",render:function(o,t){return O(),V("svg",ur,vr)}}),mr={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fr=$("path",{fill:"currentColor",d:"M8 3C5.79 3 4 4.79 4 7v7c0 1.1.9 2 2 2h3v4c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2v-4h3c1.1 0 2-.9 2-2V3H8m0 2h4v2h2V5h1v4h2V5h1v5H6V7c0-1.1.9-2 2-2m-2 9v-2h12v2H6Z"},null,-1),gr=[fr];function br(e,o){return O(),V("svg",mr,gr)}const yr={name:"mdi-brush-variant",render:br},xr=B({__name:"MenuLayout",setup(e){const o=Re(),{isMenuCollapsed:t,isSmallScreen:n}=ge(o),r=C(()=>n.value?"absolute":"static");return(i,l)=>{const c=Gn,a=En;return O(),ee(a,{"has-sider":""},{default:q(()=>[F(c,{bordered:"","collapse-mode":"width","collapsed-width":0,width:240,collapsed:A(t),"show-trigger":!1,"native-scrollbar":!1,position:A(r)},{default:q(()=>[ze(i.$slots,"sider",{},void 0,!0)]),_:3},8,["collapsed","position"]),F(a,{class:"content"},{default:q(()=>[ze(i.$slots,"content",{},void 0,!0),nt($("div",{class:"overlay",onClick:l[0]||(l[0]=u=>t.value=!0)},null,512),[[rt,A(n)&&!A(t)]])]),_:3})]),_:3})}}});const _r=pe(xr,[["__scopeId","data-v-63c31e01"]]),Cr=B({__name:"NavbarButtons",setup(e){const o=Re(),{isDarkTheme:t}=ge(o);return(n,r)=>{const i=$e,l=ke,c=je;return O(),ee(c,{tooltip:A(t)?n.$t("home.nav.lightMode"):n.$t("home.nav.darkMode"),position:"bottom"},{default:q(()=>[F(l,{circle:"",variant:"text","aria-label":n.$t("home.nav.mode"),onClick:r[0]||(r[0]=()=>A(o).toggleDark())},{default:q(()=>[A(t)?(O(),ee(i,{key:0,size:"25",component:A(pr)},null,8,["component"])):(O(),ee(i,{key:1,size:"25",component:A(dr)},null,8,["component"]))]),_:1},8,["aria-label"])]),_:1},8,["tooltip"])}}});const po=pe(Cr,[["__scopeId","data-v-99ae5a21"]]),wr=["aria-selected"],Sr={"flex-1":"","overflow-hidden":""},Ir={truncate:"","font-bold":"","lh-tight":"","op-90":""},zr={key:0,truncate:"","lh-tight":"","op-60":""},kr=B({__name:"command-palette-option",props:{option:{},selected:{type:Boolean,default:!1}},emits:["activated"],setup(e,{emit:o}){const t=e,{option:n}=ge(t),{selected:r}=ge(t);return(i,l)=>(O(),V("div",{role:"option","aria-selected":A(r),class:Ue({"text-white":A(r),"bg-primary":A(r)}),"w-full":"",flex:"","cursor-pointer":"","items-center":"","overflow-hidden":"",rounded:"","pa-3":"",transition:"","hover:bg-primary":"","hover:text-white":"",onClick:l[0]||(l[0]=()=>o("activated",A(n)))},[A(n).icon?(O(),ee(it(A(n).icon),{key:0,"mr-3":"","h-30px":"","w-30px":"","shrink-0":"","op-50":""})):le("",!0),$("div",Sr,[$("div",Ir,oe(A(n).name),1),A(n).description?(O(),V("div",zr,oe(A(n).description),1)):le("",!0)])],10,wr))}}),Ar={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pr=$("path",{fill:"currentColor",d:"m3.55 19.09l1.41 1.41l1.8-1.79l-1.42-1.42M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6c0-3.32-2.69-6-6-6m8 7h3v-2h-3m-2.76 7.71l1.8 1.79l1.41-1.41l-1.79-1.8M20.45 5l-1.41-1.4l-1.8 1.79l1.42 1.42M13 1h-2v3h2M6.76 5.39L4.96 3.6L3.55 5l1.79 1.81l1.42-1.42M1 13h3v-2H1m12 9h-2v3h2"},null,-1),Rr=[Pr];function Nr(e,o){return O(),V("svg",Ar,Rr)}const $r={name:"mdi-white-balance-sunny",render:Nr},Hr={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tr=$("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"},null,-1),Lr=[Tr];function Kr(e,o){return O(),V("svg",Hr,Lr)}const Or={name:"mdi-github",render:Kr},Br={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mr=$("path",{fill:"currentColor",d:"M20 8h-2.81c-.45-.8-1.07-1.5-1.82-2L17 4.41L15.59 3l-2.17 2.17a6.002 6.002 0 0 0-2.83 0L8.41 3L7 4.41L8.62 6c-.75.5-1.36 1.21-1.81 2H4v2h2.09c-.06.33-.09.66-.09 1v1H4v2h2v1c0 .34.03.67.09 1H4v2h2.81A5.988 5.988 0 0 0 15 20.18c.91-.52 1.67-1.28 2.19-2.18H20v-2h-2.09c.06-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.03-.67-.09-1H20V8m-4 7a4 4 0 0 1-4 4a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4a4 4 0 0 1 4 4v4m-2-5v2h-4v-2h4m-4 4h4v2h-4v-2Z"},null,-1),Er=[Mr];function Fr(e,o){return O(),V("svg",Br,Er)}const jr={name:"mdi-bug-outline",render:Fr},Dr={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Vr=$("path",{fill:"currentColor",d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m2 2a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m10 10a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m0-10a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m-5 5a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m-5 5a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2Z"},null,-1),Gr=[Vr];function Ur(e,o){return O(),V("svg",Dr,Gr)}const Wr={name:"mdi-dice-5",render:Ur},qr={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yr=$("path",{fill:"currentColor",d:"M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"},null,-1),Zr=[Yr];function Xr(e,o){return O(),V("svg",qr,Zr)}const Jr={name:"mdi-information-outline",render:Xr},Qr=lt("command-palette",()=>{const e=Io(),o=Re(),t=fo(),n=Y(""),i=[...e.tools.map(a=>({...a,to:a.path,toolCategory:a.category,category:"Tools"})),{name:"Random tool",description:"Get a random tool from the list.",action:()=>{const{path:a}=he.sample(e.tools);t.push(a)},icon:Wr,category:"Tools",keywords:["random","tool","pick","choose","select"],closeOnSelect:!0},{name:"Toggle dark mode",description:"Toggle dark mode on or off.",action:()=>o.toggleDark(),icon:$r,category:"Actions",keywords:["dark","theme","toggle","mode","light","system"]},{name:"Github repository",href:"https://github.com/zeeklog/it-tools",category:"External",description:"View the source code of it-tools on Github.",keywords:["github","repo","repository","source","code"],icon:Or},{name:"Report a bug or an issue",description:"Report a bug or an issue to help improve it-tools.",href:"https://github.com/zeeklog/it-tools/issues/new/choose",category:"Actions",keywords:["report","issue","bug","problem","error"],icon:jr},{name:"About",description:"Learn more about IT-Tools.",to:"/about",category:"Pages",keywords:["about","learn","more","info","information"],icon:Jr}],{searchResult:l}=Ht({search:n,data:i,options:{keys:[{name:"name",weight:2},"description","keywords","category"],threshold:.3}});return{filteredSearchResult:C(()=>he.chain(l.value).groupBy("category").mapValues(a=>he.take(a,5)).value()),searchPrompt:n}}),ei={"flex-1":""},oi={flex:"","items-center":"","gap-3":"","op-40":""},ti={hidden:"","flex-1":"",border:"","border-current":"","border-op-40":"",rounded:"","border-solid":"","px-5px":"","py-3px":"","sm:inline":""},ni={"ml-3":"","mt-3":"","text-sm":"","font-bold":"","text-primary":"","op-60":""},ri=B({__name:"command-palette",setup(e){const o=Y(!1),t=Y(),n=fo(),r=C(()=>!0),i=Qr(),{searchPrompt:l,filteredSearchResult:c}=xo(i),a=at({passive:!1,onEventFired(f){f.ctrlKey&&f.key==="k"&&f.type==="keydown"&&f.preventDefault(),f.metaKey&&f.key==="k"&&f.type==="keydown"&&f.preventDefault()}});Ce(o,()=>t.value?.focus()),Ce(a.ctrl_k,u),Ce(a.meta_k,u),Ce(a.escape,v);function u(){return o.value=!0}function v(){o.value=!1,l.value=""}const p=Y(0);function b(f){const{key:y}=f,P=y==="Enter",G=["ArrowUp","ArrowDown"].includes(y),j=y==="ArrowDown";if(G){const g=j?1:-1,m=Math.max(he.chain(c.value).values().flatten().size().value()-1,0);p.value=Math.min(Math.max(p.value+g,0),m);return}if(P){const g=he.chain(c.value).values().flatten().nth(p.value).value();z(g)}}function H(f){return he.chain(c.value).values().flatten().findIndex(y=>y===f).value()}function z(f){const{closeOnSelect:y}=f;if(f.action){f.action(),y&&v();return}const P=y||he.isUndefined(y);if(f.to){n.push(f.to),P&&v();return}f.href&&(window.open(f.href,"_blank"),P&&v())}return(f,y)=>{const P=$t,G=ke,j=Nt,g=kr,m=Rt;return O(),V("div",ei,[F(G,{"w-full":"","important:justify-start":"",onClick:y[0]||(y[0]=w=>o.value=!0)},{default:q(()=>[$("span",oi,[F(P),te(" "+oe(f.$t("search.label"))+" ",1),$("span",ti,oe(A(r)?"Cmd":"Ctrl")+" + K ",1)])]),_:1}),F(m,{open:A(o),"onUpdate:open":y[2]||(y[2]=w=>Ee(o)?o.value=w:null),class:"palette-modal","shadow-xl":"","important:max-w-650px":"","important:pa-12px":"",onKeydown:b},{default:q(()=>[F(j,{ref_key:"inputRef",ref:t,value:A(l),"onUpdate:value":y[1]||(y[1]=w=>Ee(l)?l.value=w:null),"raw-text":"",placeholder:"Type to search a tool or a command...",autofocus:"",clearable:""},null,8,["value"]),(O(!0),V(fe,null,Fe(A(c),(w,N)=>(O(),V("div",{key:N},[$("div",ni,oe(N),1),(O(!0),V(fe,null,Fe(w,S=>(O(),ee(g,{key:S.name,option:S,selected:A(p)===H(S),onActivated:z},null,8,["option","selected"]))),128))]))),128))]),_:1},8,["open"])])}}});const ii=pe(ri,[["__scopeId","data-v-b415a78e"]]),mo=B({__name:"locale-selector",setup(e){const{availableLocales:o,locale:t}=Ye(),n={en:"English",es:"Español",fr:"Français",pt:"Português",ru:"Русский",uk:"Українська",zh:"中文",vi:"Tiếng Việt"},r=C(()=>o.map(i=>({label:n[i]??i,value:i})));return(i,l)=>(O(),ee(Tt,{value:A(t),"onUpdate:value":l[0]||(l[0]=c=>Ee(t)?t.value=c:null),options:A(r),placeholder:"Select a language","w-100px":""},null,8,["value","options"]))}}),li={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ai=$("path",{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"},null,-1),si=[ai];function ci(e,o){return O(),V("svg",li,si)}const di={name:"mdi-chevron-right",render:ci},ui={class:"menu-icon-item"},hi={key:0,class:"badge"},vi=B({__name:"MenuIconItem",props:{tool:{}},setup(e){const o=e;We(r=>({c9671612:A(n).primaryColor}));const{tool:t}=ge(o),n=Ze();return(r,i)=>{const l=$e;return O(),V("div",ui,[F(l,{component:A(t).icon},null,8,["component"]),A(t).isNew?(O(),V("div",hi)):le("",!0)])}}});const pi=pe(vi,[["__scopeId","data-v-962461ab"]]),mi=["onClick"],fi={"ml-8px":"","text-13px":""},gi={class:"menu-wrapper"},bi=["onClick"],yi=B({__name:"CollapsibleToolMenu",props:{toolsByCategory:{default:()=>[]}},setup(e){const o=e;We(v=>({"2adda884":A(u).textColor3}));const{toolsByCategory:t}=ge(o),n=go(),r=v=>()=>h(bo,{to:v.path},{default:()=>v.name}),i=v=>()=>h(pi,{tool:v}),l=st("menu-tool-option:collapsed-categories",{},void 0,{deep:!0,serializer:{read:v=>v?JSON.parse(v):null,write:v=>JSON.stringify(v)}});function c({name:v}){l.value[v]=!l.value[v]}const a=C(()=>t.value.map(({name:v,components:p})=>({name:v,isCollapsed:l.value[v],tools:p.map(b=>({label:r(b),icon:i(b),key:b.path}))}))),u=Ze();return(v,p)=>{const b=di,H=tr,z=gn;return O(!0),V(fe,null,Fe(A(a),({name:f,tools:y,isCollapsed:P})=>(O(),V("div",{key:f},[$("div",{"ml-6px":"","mt-12px":"",flex:"","cursor-pointer":"","items-center":"","op-60":"",onClick:G=>c({name:f})},[$("span",{class:Ue({"rotate-0":P,"rotate-90":!P}),"text-16px":"","lh-1":"","op-50":"","transition-transform":""},[F(b)],2),$("span",fi,oe(f),1)],8,mi),F(z,{show:!P},{default:q(()=>[$("div",gi,[$("div",{class:"toggle-bar",onClick:G=>c({name:f})},null,8,bi),F(H,{class:"menu",value:A(n).path,"collapsed-width":64,"collapsed-icon-size":22,options:y,indent:8,"default-expand-all":!0},null,8,["value","options"])])]),_:2},1032,["show"])]))),128)}}});const xi=pe(yi,[["__scopeId","data-v-50838923"]]),_i={class:"sider-content"},Ci={key:0,flex:"","flex-col":"","items-center":""},wi={flex:"","justify-center":""},Si={class:"footer"},Ii={flex:"","items-center":"","justify-center":"","gap-2":""},zi=B({__name:"base.layout",setup(e){We(v=>({"525f0447":A(o).primaryColor}));const o=Ze(),t=Re(),n=be.app.version,r=be.app.lastCommitSha.slice(0,7),{t:i}=Ye(),l=Io(),{favoriteTools:c,toolsByCategory:a}=xo(l),u=C(()=>[...c.value.length>0?[{name:i("tools.categories.favorite-tools"),components:c.value}]:[],...a.value]);return(v,p)=>{const b=yr;return O(),ee(_r,{class:Ue(["menu-layout",{isSmallScreen:A(t).isSmallScreen}])},{sider:q(()=>[F(A(bo),{to:"/",class:"hero-wrapper"}),$("div",_i,[A(t).isSmallScreen?(O(),V("div",Ci,[F(mo,{w:"90%"}),$("div",wi,[F(po)])])):le("",!0),F(xi,{"tools-by-category":A(u)},null,8,["tools-by-category"]),$("div",Si,[$("div",null,[te(" IT-Tools "),F(Ke,{target:"_blank",rel:"noopener",href:`https://github.com/zeeklog/it-tools/tree/v${A(n)}`},{default:q(()=>[te(" v"+oe(A(n)),1)]),_:1},8,["href"]),A(r)&&A(r).length>0?(O(),V(fe,{key:0},[te(" - "),F(Ke,{target:"_blank",rel:"noopener",type:"primary",href:`https://github.com/zeeklog/it-tools/tree/${A(r)}`},{default:q(()=>[te(oe(A(r)),1)]),_:1},8,["href"])],64)):le("",!0)]),$("div",null,[te(" © "+oe(new Date().getFullYear())+" ",1),F(Ke,{target:"_blank",rel:"noopener",href:"https://github.com/zeeklog"},{default:q(()=>[te(" Ne0inHK ")]),_:1})])])])]),content:q(()=>[$("div",Ii,[F(je,{tooltip:v.$t("home.home"),position:"bottom"},{default:q(()=>[F(ke,{to:"/",circle:"",variant:"text","aria-label":v.$t("home.home")},{default:q(()=>[F(A($e),{size:"25",component:A(lr)},null,8,["component"])]),_:1},8,["aria-label"])]),_:1},8,["tooltip"]),F(je,{tooltip:v.$t("home.uiLib"),position:"bottom"},{default:q(()=>[A(be).app.env==="development"?(O(),ee(ke,{key:0,to:"/c-lib",circle:"",variant:"text","aria-label":v.$t("home.uiLib")},{default:q(()=>[F(b,{"text-20px":""})]),_:1},8,["aria-label"])):le("",!0)]),_:1},8,["tooltip"]),F(ii),A(t).isSmallScreen?le("",!0):(O(),ee(mo,{key:0})),$("div",null,[A(t).isSmallScreen?le("",!0):(O(),ee(po,{key:0}))])]),ze(v.$slots,"default",{},void 0,!0)]),_:3},8,["class"])}}});const qo=pe(zi,[["__scopeId","data-v-311f4fa3"]]),ki=e=>(ct("data-v-bc13a56b"),e=e(),dt(),e),Ai={class:"tool-layout"},Pi={class:"tool-header"},Ri={flex:"","flex-nowrap":"","items-center":"","justify-between":""},Ni=ki(()=>$("div",{class:"separator"},null,-1)),$i={class:"description"},Hi={class:"tool-content"},Ti=B({__name:"tool.layout",setup(e){const o=go(),t=C(()=>({title:`${o.meta.name} - Zeeklog Online Tools`,meta:[{name:"description",content:o.meta?.description},{name:"keywords",content:(o.meta.keywords??[]).join(",")}]}));Ot(t);const{t:n}=Ye(),r=C(()=>o.path.trim().replace("/","")),i=C(()=>n(`tools.${r.value}.title`,String(o.meta.name))),l=C(()=>n(`tools.${r.value}.description`,String(o.meta.description)));return(c,a)=>{const u=zt;return O(),ee(qo,null,{default:q(()=>[$("div",Ai,[$("div",Pi,[$("div",Ri,[F(u,null,{default:q(()=>[te(oe(A(i)),1)]),_:1}),$("div",null,[F(It,{tool:{name:A(o).meta.name}},null,8,["tool"])])]),Ni,$("div",$i,oe(A(l)),1)])]),$("div",Hi,[ze(c.$slots,"default",{},void 0,!0)])]),_:3})}}});const Li=pe(Ti,[["__scopeId","data-v-bc13a56b"]]),Ki={base:qo,toolLayout:Li};const Oi=zo.map(({path:e,name:o,component:t,...n})=>({path:e,name:o,component:t,meta:{isTool:!0,layout:Ki.toolLayout,name:o,...n}})),Bi=zo.filter(({redirectFrom:e})=>e&&e.length>0).flatMap(({path:e,redirectFrom:o})=>o?.map(t=>({path:t,redirect:e}))??[]),rl=et({history:ot(be.app.baseUrl),routes:[{path:"/",name:"home",component:kt},{path:"/about",name:"about",component:()=>Qo(()=>import("./chunk-63e1457d.js"),["assets/chunks/chunk-63e1457d.js","assets/chunks/chunk-fb60a83f.js","assets/chunks/chunk-449c23a2.js","assets/static/c-button.1b70e3dc.css","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d8b8b4f8.js","assets/static/c-alert.926bd053.css","assets/chunks/chunk-3db18d93.js","assets/chunks/chunk-a740628f.js","assets/static/lodash.af515ca7.css","assets/chunks/chunk-323c539f.js","assets/chunks/chunk-a3974c29.js","assets/chunks/chunk-e0e1a528.js","assets/chunks/chunk-6deddc2e.js","assets/chunks/chunk-9a43cce8.js","assets/chunks/chunk-340feaf0.js","assets/static/c-input-text.556101b4.css","assets/chunks/chunk-893bf84a.js","assets/chunks/chunk-153e0e77.js","assets/chunks/chunk-767079b6.js","assets/static/c-modal-value.6b78fab4.css","assets/chunks/chunk-606d31d4.js","assets/chunks/chunk-27eb844d.js","assets/static/c-select.8dd6cbf5.css","assets/chunks/chunk-baf8ab22.js","assets/chunks/chunk-a66a4022.js","assets/static/demo-home.page.a31aff5d.css","assets/chunks/chunk-ee54c1e8.js"])},...Oi,...Bi,...be.app.env==="development"?Pt:[],{path:"/:pathMatch(.*)*",name:"NotFound",component:Bt}]});export{yn as a,Tn as b,rl as c,Ki as l,ne as r,vn as s};