diff --git a/assets/Result.08eef20a.js b/assets/Result.08eef20a.js new file mode 100644 index 00000000..f2f60a88 --- /dev/null +++ b/assets/Result.08eef20a.js @@ -0,0 +1,32 @@ +import{h as e,k as c,B as u,d as B,p as F,q as v,x as h,G as S,P as M,av as V,aw as b,ax as R,ay as I,az as L,I as d}from"./index.f7ae9ef9.js";const $=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),e("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),e("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),e("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),e("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),e("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),E=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),e("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),e("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),D=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),e("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),e("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),e("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),e("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),e("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),P=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),e("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),T=c("result",` + color: var(--n-text-color); + line-height: var(--n-line-height); + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier); +`,[c("result-icon",` + display: flex; + justify-content: center; + transition: color .3s var(--n-bezier); + `,[u("status-image",` + font-size: var(--n-icon-size); + width: 1em; + height: 1em; + `),c("base-icon",` + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),c("result-content",{marginTop:"24px"}),c("result-footer",` + margin-top: 24px; + text-align: center; + `),c("result-header",[u("title",` + margin-top: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + text-align: center; + color: var(--n-title-text-color); + font-size: var(--n-title-font-size); + `),u("description",` + margin-top: 4px; + text-align: center; + font-size: var(--n-font-size); + `)])]),_={403:P,404:$,418:D,500:E,info:e(V,null),success:e(b,null),warning:e(R,null),error:e(I,null)},j=Object.assign(Object.assign({},v.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),N=B({name:"Result",props:j,setup(s){const{mergedClsPrefixRef:a,inlineThemeDisabled:i}=F(s),t=v("Result","-result",T,L,s,a),l=h(()=>{const{size:o,status:f}=s,{common:{cubicBezierEaseInOut:r},self:{textColor:g,lineHeight:x,titleTextColor:z,titleFontWeight:m,[d("iconColor",f)]:p,[d("fontSize",o)]:w,[d("titleFontSize",o)]:C,[d("iconSize",o)]:y}}=t.value;return{"--n-bezier":r,"--n-font-size":w,"--n-icon-size":y,"--n-line-height":x,"--n-text-color":g,"--n-title-font-size":C,"--n-title-font-weight":m,"--n-title-text-color":z,"--n-icon-color":p||""}}),n=i?S("result",h(()=>{const{size:o,status:f}=s;let r="";return o&&(r+=o[0]),f&&(r+=f[0]),r}),l,s):void 0;return{mergedClsPrefix:a,cssVars:i?void 0:l,themeClass:n==null?void 0:n.themeClass,onRender:n==null?void 0:n.onRender}},render(){var s;const{status:a,$slots:i,mergedClsPrefix:t,onRender:l}=this;return l==null||l(),e("div",{class:[`${t}-result`,this.themeClass],style:this.cssVars},e("div",{class:`${t}-result-icon`},((s=i.icon)===null||s===void 0?void 0:s.call(i))||e(M,{clsPrefix:t},{default:()=>_[a]})),e("div",{class:`${t}-result-header`},this.title?e("div",{class:`${t}-result-header__title`},this.title):null,this.description?e("div",{class:`${t}-result-header__description`},this.description):null),i.default&&e("div",{class:`${t}-result-content`},i),i.footer&&e("div",{class:`${t}-result-footer`},i.footer()))}});export{N}; diff --git a/assets/Result.08eef20a.js.gz b/assets/Result.08eef20a.js.gz new file mode 100644 index 00000000..52f5f300 Binary files /dev/null and b/assets/Result.08eef20a.js.gz differ diff --git a/assets/index.0d9096a4.css b/assets/index.0d9096a4.css new file mode 100644 index 00000000..db37093a --- /dev/null +++ b/assets/index.0d9096a4.css @@ -0,0 +1 @@ +.scroll-reveal{width:100%;height:100%} diff --git a/assets/index.184de73a.css b/assets/index.184de73a.css new file mode 100644 index 00000000..32fc9851 --- /dev/null +++ b/assets/index.184de73a.css @@ -0,0 +1 @@ +.rely-about .n-card{margin-top:18px}.rely-about .n-card:first-child{margin-top:0} diff --git a/assets/index.3f9db04e.css b/assets/index.3f9db04e.css new file mode 100644 index 00000000..908bad7b --- /dev/null +++ b/assets/index.3f9db04e.css @@ -0,0 +1 @@ +.echart{width:100%;height:100%}.echart .n-card{margin-top:18px}.echart .n-card:first-child{margin-top:0}.echart .chart--container{width:100%;height:500px}.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height)} diff --git a/assets/index.43129635.js b/assets/index.43129635.js new file mode 100644 index 00000000..0bcf3f20 --- /dev/null +++ b/assets/index.43129635.js @@ -0,0 +1 @@ +import{d as e,a7 as r,aE as n}from"./index.f7ae9ef9.js";const a=e({name:"Rely",setup(){return{}},render(){return r(n,null,null)}});export{a as default}; diff --git a/assets/index.4a9527dd.css b/assets/index.4a9527dd.css new file mode 100644 index 00000000..433c8477 --- /dev/null +++ b/assets/index.4a9527dd.css @@ -0,0 +1 @@ +.fade-enter-active,.fade-leave-active{-webkit-transition:all .35s;-o-transition:all .35s;transition:all .35s}.fade-enter-from{opacity:0;-webkit-transform:translateX(-30px);-ms-transform:translateX(-30px);transform:translate(-30px)}.fade-leave-to{opacity:0;-webkit-transform:translateX(30px);-ms-transform:translateX(30px);transform:translate(30px)}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layout{-webkit-box-sizing:border-box;box-sizing:border-box}.layout>.layout-full{height:100%}.layout .layout-content__router-view{height:var(--layout-content-height);padding:9px}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.layout-header>.layout-header__method{width:100%}.layout-header>.layout-header__method .layout-header__method--icon{cursor:pointer;outline:none;border:none}.setting-drawer__space{width:100%}.setting-drawer__space .n-descriptions-table-content{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.menu-tag{height:46px}.menu-tag .menu-tag-sapce{width:calc(100% - 18px);padding:9px}.menu-tag .n-tag{cursor:pointer} diff --git a/assets/index.4a9527dd.css.gz b/assets/index.4a9527dd.css.gz new file mode 100644 index 00000000..00778cb7 Binary files /dev/null and b/assets/index.4a9527dd.css.gz differ diff --git a/assets/index.6a9d9035.css b/assets/index.6a9d9035.css new file mode 100644 index 00000000..600ed853 --- /dev/null +++ b/assets/index.6a9d9035.css @@ -0,0 +1 @@ +.login{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-size:2.25rem}.login .login-title{padding:18px 0}.login .login-icon{border:none;outline:none}.login .n-card{width:360px} diff --git a/assets/index.90c2c2db.js b/assets/index.90c2c2db.js new file mode 100644 index 00000000..8edcee52 --- /dev/null +++ b/assets/index.90c2c2db.js @@ -0,0 +1 @@ +import{d as e,a7 as u,am as a,ai as l}from"./index.f7ae9ef9.js";const o=e({name:"ScrollReveal",render(){return u("div",{class:"scroll-reveal"},[u(a,{title:"\u63D0\u793A"},{default:()=>[l("RayScrollReveal\u7EC4\u4EF6\u6709\u70B9\u95EE\u9898, \u6682\u65F6\u79FB\u9664. \u4E0D\u80FD\u6B63\u5E38\u7684\u5B9E\u73B0\u6EDA\u52A8\u52A8\u753B. \u5F88\u662F\u64CD\u86CB!!!")]})])}});export{o as default}; diff --git a/assets/index.ae5dbf7a.js b/assets/index.ae5dbf7a.js new file mode 100644 index 00000000..285174b4 --- /dev/null +++ b/assets/index.ae5dbf7a.js @@ -0,0 +1,30 @@ +import{n as K,k as M,ao as G,m as E,ap as q,B as T,d as W,p as Q,r as k,i as I,x as j,q as $,aq as D,w as U,G as X,F as Y,Z,o as J,ar as ee,H as te,h as O,_ as oe,as as re,I as ne,at as ae,a7 as F,au as se,ah as ie,ab as le}from"./index.f7ae9ef9.js";const de=!1,ce=(e={})=>{var n;const{root:i=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(n=e.threshold)!==null&&n!==void 0?n:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof i=="string"?document.querySelector(i):i)||document.documentElement})}},C=new WeakMap,P=new WeakMap,_=new WeakMap,ue=(e,n,i)=>{if(!e)return()=>{};const s=ce(n),{root:c}=s.options;let l;const u=C.get(c);u?l=u:(l=new Map,C.set(c,l));let h,a;l.has(s.hash)?(a=l.get(s.hash),a[1].has(e)||(h=a[0],a[1].add(e),h.observe(e))):(h=new IntersectionObserver(b=>{b.forEach(f=>{if(f.isIntersecting){const p=P.get(f.target),g=_.get(f.target);p&&p(),g&&(g.value=!0)}})},s.options),h.observe(e),a=[h,new Set([e])],l.set(s.hash,a));let m=!1;const y=()=>{m||(P.delete(e),_.delete(e),m=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&l.delete(s.hash),l.size||C.delete(c))};return P.set(e,y),_.set(e,i),y},fe=K("n-avatar-group"),ve=M("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[G(E("&","--n-merged-color: var(--n-color-modal);")),q(E("&","--n-merged-color: var(--n-color-popover);")),E("img",` + width: 100%; + height: 100%; + `),T("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),M("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),T("text","line-height: 1.25")]),he=Object.assign(Object.assign({},$.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),ge=W({name:"Avatar",props:he,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Q(e),s=k(!1);let c=null;const l=k(null),u=k(null),h=()=>{const{value:t}=l;if(t&&(c===null||c!==t.innerHTML)){c=t.innerHTML;const{value:o}=u;if(o){const{offsetWidth:d,offsetHeight:r}=o,{offsetWidth:v,offsetHeight:S}=t,R=.9,L=Math.min(d/v*R,r/S*R,1);t.style.transform=`translateX(-50%) translateY(-50%) scale(${L})`}}},a=I(fe,null),m=j(()=>{const{size:t}=e;if(t)return t;const{size:o}=a||{};return o||"medium"}),y=$("Avatar","-avatar",ve,re,e,n),b=I(D,null),f=j(()=>{if(a)return!0;const{round:t,circle:o}=e;return t!==void 0||o!==void 0?t||o:b?b.roundRef.value:!1}),p=j(()=>a?!0:e.bordered||!1),g=t=>{var o;if(!x.value)return;s.value=!0;const{onError:d,imgProps:r}=e;(o=r==null?void 0:r.onError)===null||o===void 0||o.call(r,t),d&&d(t)};U(()=>e.src,()=>s.value=!1);const B=j(()=>{const t=m.value,o=f.value,d=p.value,{color:r}=e,{self:{borderRadius:v,fontSize:S,color:R,border:L,colorModal:A,colorPopover:N},common:{cubicBezierEaseInOut:V}}=y.value;let w;return typeof t=="number"?w=`${t}px`:w=y.value.self[ne("height",t)],{"--n-font-size":S,"--n-border":d?L:"none","--n-border-radius":o?"50%":v,"--n-color":r||R,"--n-color-modal":r||A,"--n-color-popover":r||N,"--n-bezier":V,"--n-merged-size":`var(--n-avatar-size-override, ${w})`}}),z=i?X("avatar",j(()=>{const t=m.value,o=f.value,d=p.value,{color:r}=e;let v="";return t&&(typeof t=="number"?v+=`a${t}`:v+=t[0]),o&&(v+="b"),d&&(v+="c"),r&&(v+=ae(r)),v}),B,e):void 0,x=k(!e.lazy);Y(()=>{if(de)return;let t;const o=Z(()=>{t==null||t(),t=void 0,e.lazy&&(t=ue(u.value,e.intersectionObserverOptions,x))});J(()=>{o(),t==null||t()})});const H=k(!e.lazy);return{textRef:l,selfRef:u,mergedRoundRef:f,mergedClsPrefix:n,fitTextTransform:h,cssVars:i?void 0:B,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,hasLoadError:s,handleError:g,shouldStartLoading:x,loaded:H,mergedOnLoad:t=>{var o;const{onLoad:d,imgProps:r}=e;d==null||d(t),(o=r==null?void 0:r.onLoad)===null||o===void 0||o.call(r,t),H.value=!0}}},render(){var e,n;const{$slots:i,src:s,mergedClsPrefix:c,lazy:l,onRender:u,mergedOnLoad:h,shouldStartLoading:a,loaded:m,hasLoadError:y}=this;u==null||u();let b;const f=!m&&!y&&(this.renderPlaceholder?this.renderPlaceholder():(n=(e=this.$slots).placeholder)===null||n===void 0?void 0:n.call(e));return this.hasLoadError?b=this.renderFallback?this.renderFallback():ee(i.fallback,()=>[O("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):b=te(i.default,p=>{if(p)return O(oe,{onResize:this.fitTextTransform},{default:()=>O("span",{ref:"textRef",class:`${c}-avatar__text`},p)});if(s){const{imgProps:g}=this;return O("img",Object.assign(Object.assign({},g),{loading:"eager",src:a||m?s:void 0,onLoad:h,"data-image-src":s,onError:this.handleError,style:[g==null?void 0:g.style,{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),O("span",{ref:"selfRef",class:[`${c}-avatar`,this.themeClass],style:this.cssVars},b,l&&f)}});function me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!le(e)}const pe=W({name:"RayLink",setup(){return{handleLinkClick:i=>{window.open(i.src)},avatarOptions:[{key:"yunhome",src:"https://yunkuangao.me/",tooltip:"\u4E91\u4E4B\u5BB6",icon:"https://yunkuangao.me/wp-content/uploads/2022/05/cropped-cropped-QQ%E5%9B%BE%E7%89%8720220511113928.jpg"},{key:"yun-cloud-images",src:"https://yunkuangao.com/",tooltip:"\u4E91\u56FE\u5E8A",icon:"https://yunkuangao.com/images/20170801_005902048_iOS.md.jpg"},{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray\u7684\u524D\u7AEF\u5B66\u4E60\u7B14\u8BB0",icon:"https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray\u7684\u9762\u8BD5\u9898\u603B\u7ED3",icon:"https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"}]}},render(){let e;return F(ie,null,me(e=this.avatarOptions.map(n=>F(se,null,{trigger:()=>F(ge,{round:!0,src:n.icon,style:["cursor: pointer"],onClick:this.handleLinkClick.bind(this,n),objectFit:"cover"},null),default:()=>n.tooltip})))?e:{default:()=>[e]})}});export{pe as R}; diff --git a/assets/index.ae5dbf7a.js.gz b/assets/index.ae5dbf7a.js.gz new file mode 100644 index 00000000..5d77e022 Binary files /dev/null and b/assets/index.ae5dbf7a.js.gz differ diff --git a/assets/index.d3847385.js b/assets/index.d3847385.js new file mode 100644 index 00000000..257f9bef --- /dev/null +++ b/assets/index.d3847385.js @@ -0,0 +1,325 @@ +import{i as ce,g as Zt,w as we,o as Qt,a as en,d as Q,r as q,u as tn,c as nn,h as x,b as Qe,e as rn,f as Ae,j as an,k as P,l as _,m as j,n as Ke,p as Oe,q as le,s as Ee,t as St,v as et,x as z,y as ze,z as Pt,A as on,B as J,C as Z,D as tt,E as sn,F as ln,G as Je,T as dn,H as Ve,I as B,J as nt,K as fn,L as ye,M as cn,N as un,O as bn,P as gn,Q as mn,R as hn,S as pn,U as vn,V as rt,W as je,X as yn,Y as xn,Z as wn,_ as at,$ as Fe,a0 as We,a1 as Rn,a2 as Sn,a3 as Pn,a4 as kn,a5 as $n,a6 as kt,a7 as I,a8 as Cn,a9 as it,aa as Fn,ab as _n,ac as zn,ad as Tn,ae as An,af as En,ag as On,ah as Ln,ai as ot,aj as qn,ak as jn,al as Wn,am as In,an as Mn}from"./index.f7ae9ef9.js";import{N as Bn}from"./Result.08eef20a.js";import{R as Nn}from"./index.ae5dbf7a.js";function Vn(t,e,n){var r;const a=ce(t,null);if(a===null)return;const i=(r=Zt())===null||r===void 0?void 0:r.proxy;we(n,o),o(n.value),Qt(()=>{o(void 0,n.value)});function o(d,f){const c=a[e];f!==void 0&&s(c,f),d!==void 0&&l(c,d)}function s(d,f){d[f]||(d[f]=[]),d[f].splice(d[f].findIndex(c=>c===i),1)}function l(d,f){d[f]||(d[f]=[]),~d[f].findIndex(c=>c===i)||d[f].push(i)}}let st=!1;function Dn(){if(!!en&&!!window.CSS&&!st&&(st=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const Hn=Qe(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Qe("&::-webkit-scrollbar",{width:0,height:0})]),Un=Q({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=q(null);function e(a){!(a.currentTarget.offsetWidth=e||A<0||c&&L>=i}function g(){var R=Ie();if(v(R))return T(R);s=setTimeout(g,m(R))}function T(R){return s=void 0,h&&r?u(R):(r=a=void 0,o)}function y(){s!==void 0&&clearTimeout(s),d=0,r=l=a=s=void 0}function C(){return s===void 0?o:T(Ie())}function O(){var R=Ie(),A=v(R);if(r=arguments,a=this,l=R,A){if(s===void 0)return w(l);if(c)return clearTimeout(s),s=setTimeout(g,e),u(l)}return s===void 0&&(s=setTimeout(g,e)),o}return O.cancel=y,O.flush=C,O}var or="Expected a function";function Me(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(or);return Ae(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ir(t,e,{leading:r,maxWait:e,trailing:a})}const sr=Q({name:"Add",render(){return x("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),lr=P("form",[_("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[P("form-item",{width:"auto",marginRight:"18px"},[j("&:last-child",{marginRight:0})])])]),Pe=Ke("n-form"),$t=Ke("n-form-item-insts");var dr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(f){try{d(r.next(f))}catch(c){o(c)}}function l(f){try{d(r.throw(f))}catch(c){o(c)}}function d(f){f.done?i(f.value):a(f.value).then(s,l)}d((r=r.apply(t,e||[])).next())})};const fr=Object.assign(Object.assign({},le.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:t=>t.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),cr=Q({name:"Form",props:fr,setup(t){const{mergedClsPrefixRef:e}=Oe(t);le("Form","-form",lr,St,t,e);const n={},r=q(void 0),a=l=>{const d=r.value;(d===void 0||l>=d)&&(r.value=l)};function i(l,d=()=>!0){return dr(this,void 0,void 0,function*(){return yield new Promise((f,c)=>{const h=[];for(const u of et(n)){const w=n[u];for(const m of w)m.path&&h.push(m.internalValidate(null,d))}Promise.all(h).then(u=>{if(u.some(w=>!w.valid)){const w=u.filter(m=>m.errors).map(m=>m.errors);l&&l(w),c(w)}else l&&l(),f()})})})}function o(){for(const l of et(n)){const d=n[l];for(const f of d)f.restoreValidation()}}return Ee(Pe,{props:t,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:a}),Ee($t,{formItems:n}),Object.assign({validate:i,restoreValidation:o},{mergedClsPrefix:e})},render(){const{mergedClsPrefix:t}=this;return x("form",{class:[`${t}-form`,this.inline&&`${t}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function fe(){return fe=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Te(t,e,n){return br()?Te=Reflect.construct.bind():Te=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),d=new l;return o&&Se(d,o.prototype),d},Te.apply(null,arguments)}function gr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function He(t){var e=typeof Map=="function"?new Map:void 0;return He=function(r){if(r===null||!gr(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Te(r,arguments,De(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Se(a,r)},He(t)}var mr=/%[sdj%]/g,hr=function(){};typeof process<"u"&&process.env;function Ue(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function X(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return t}function pr(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function M(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||pr(e)&&typeof t=="string"&&!t)}function vr(t,e,n){var r=[],a=0,i=t.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}t.forEach(function(s){e(s,o)})}function ft(t,e,n){var r=0,a=t.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},xe={integer:function(e){return xe.number(e)&&parseInt(e,10)===e},float:function(e){return xe.number(e)&&!xe.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!xe.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(gt.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Pr())},hex:function(e){return typeof e=="string"&&!!e.match(gt.hex)}},kr=function(e,n,r,a,i){if(e.required&&n===void 0){Ct(e,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?xe[s](n)||a.push(X(i.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&a.push(X(i.messages.types[s],e.fullField,e.type))},$r=function(e,n,r,a,i){var o=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,c=null,h=typeof n=="number",u=typeof n=="string",w=Array.isArray(n);if(h?c="number":u?c="string":w&&(c="array"),!c)return!1;w&&(f=n.length),u&&(f=n.replace(d,"_").length),o?f!==e.len&&a.push(X(i.messages[c].len,e.fullField,e.len)):s&&!l&&fe.max?a.push(X(i.messages[c].max,e.fullField,e.max)):s&&l&&(fe.max)&&a.push(X(i.messages[c].range,e.fullField,e.min,e.max))},he="enum",Cr=function(e,n,r,a,i){e[he]=Array.isArray(e[he])?e[he]:[],e[he].indexOf(n)===-1&&a.push(X(i.messages[he],e.fullField,e[he].join(", ")))},Fr=function(e,n,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||a.push(X(i.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||a.push(X(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},$={required:Ct,whitespace:Sr,type:kr,range:$r,enum:Cr,pattern:Fr},_r=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n,"string")&&!e.required)return r();$.required(e,n,a,o,i,"string"),M(n,"string")||($.type(e,n,a,o,i),$.range(e,n,a,o,i),$.pattern(e,n,a,o,i),e.whitespace===!0&&$.whitespace(e,n,a,o,i))}r(o)},zr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&$.type(e,n,a,o,i)}r(o)},Tr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&($.type(e,n,a,o,i),$.range(e,n,a,o,i))}r(o)},Ar=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&$.type(e,n,a,o,i)}r(o)},Er=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),M(n)||$.type(e,n,a,o,i)}r(o)},Or=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&($.type(e,n,a,o,i),$.range(e,n,a,o,i))}r(o)},Lr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&($.type(e,n,a,o,i),$.range(e,n,a,o,i))}r(o)},qr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();$.required(e,n,a,o,i,"array"),n!=null&&($.type(e,n,a,o,i),$.range(e,n,a,o,i))}r(o)},jr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&$.type(e,n,a,o,i)}r(o)},Wr="enum",Ir=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i),n!==void 0&&$[Wr](e,n,a,o,i)}r(o)},Mr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n,"string")&&!e.required)return r();$.required(e,n,a,o,i),M(n,"string")||$.pattern(e,n,a,o,i)}r(o)},Br=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n,"date")&&!e.required)return r();if($.required(e,n,a,o,i),!M(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),$.type(e,l,a,o,i),l&&$.range(e,l.getTime(),a,o,i)}}r(o)},Nr=function(e,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;$.required(e,n,a,o,i,s),r(o)},Be=function(e,n,r,a,i){var o=e.type,s=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(M(n,o)&&!e.required)return r();$.required(e,n,a,s,i,o),M(n,o)||$.type(e,n,a,s,i)}r(s)},Vr=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(M(n)&&!e.required)return r();$.required(e,n,a,o,i)}r(o)},Re={string:_r,method:zr,number:Tr,boolean:Ar,regexp:Er,integer:Or,float:Lr,array:qr,object:jr,enum:Ir,pattern:Mr,date:Br,url:Be,hex:Be,email:Be,required:Nr,any:Vr};function Ye(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ge=Ye(),ke=function(){function t(n){this.rules=null,this._messages=Ge,this.define(n)}var e=t.prototype;return e.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},e.messages=function(r){return r&&(this._messages=bt(Ye(),r)),this._messages},e.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,d=i;if(typeof l=="function"&&(d=l,l={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,s),Promise.resolve(s);function f(m){var v=[],g={};function T(C){if(Array.isArray(C)){var O;v=(O=v).concat.apply(O,C)}else v.push(C)}for(var y=0;yt.size!==void 0?t.size:(e==null?void 0:e.props.size)!==void 0?e.props.size:"medium")}}function Hr(t){const e=ce(Pe,null),n=z(()=>{const{labelPlacement:u}=t;return u!==void 0?u:e!=null&&e.props.labelPlacement?e.props.labelPlacement:"top"}),r=z(()=>n.value==="left"&&(t.labelWidth==="auto"||(e==null?void 0:e.props.labelWidth)==="auto")),a=z(()=>{if(n.value==="top")return;const{labelWidth:u}=t;if(u!==void 0&&u!=="auto")return ze(u);if(r.value){const w=e==null?void 0:e.maxChildLabelWidthRef.value;return w!==void 0?ze(w):void 0}if((e==null?void 0:e.props.labelWidth)!==void 0)return ze(e.props.labelWidth)}),i=z(()=>{const{labelAlign:u}=t;if(u)return u;if(e!=null&&e.props.labelAlign)return e.props.labelAlign}),o=z(()=>{var u;return[(u=t.labelProps)===null||u===void 0?void 0:u.style,t.labelStyle,{width:a.value}]}),s=z(()=>{const{showRequireMark:u}=t;return u!==void 0?u:e==null?void 0:e.props.showRequireMark}),l=z(()=>{const{requireMarkPlacement:u}=t;return u!==void 0?u:(e==null?void 0:e.props.requireMarkPlacement)||"right"}),d=q(!1),f=z(()=>{const{validationStatus:u}=t;if(u!==void 0)return u;if(d.value)return"error"}),c=z(()=>{const{showFeedback:u}=t;return u!==void 0?u:(e==null?void 0:e.props.showFeedback)!==void 0?e.props.showFeedback:!0}),h=z(()=>{const{showLabel:u}=t;return u!==void 0?u:(e==null?void 0:e.props.showLabel)!==void 0?e.props.showLabel:!0});return{validationErrored:d,mergedLabelStyle:o,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:f,mergedShowFeedback:c,mergedShowLabel:h,isAutoLabelWidth:r}}function Ur(t){const e=ce(Pe,null),n=z(()=>{const{rulePath:o}=t;if(o!==void 0)return o;const{path:s}=t;if(s!==void 0)return s}),r=z(()=>{const o=[],{rule:s}=t;if(s!==void 0&&(Array.isArray(s)?o.push(...s):o.push(s)),e){const{rules:l}=e.props,{value:d}=n;if(l!==void 0&&d!==void 0){const f=Pt(l,d);f!==void 0&&(Array.isArray(f)?o.push(...f):o.push(f))}}return o}),a=z(()=>r.value.some(o=>o.required)),i=z(()=>a.value||t.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:mt}=on;function Yr({name:t="fade-down",fromOffset:e="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:a=mt,leaveCubicBezier:i=mt}={}){return[j(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0,transform:`translateY(${e})`}),j(`&.${t}-transition-enter-to, &.${t}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),j(`&.${t}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),j(`&.${t}-transition-enter-active`,{transition:`opacity ${n} ${a}, transform ${n} ${a}`})]}const Gr=P("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[P("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + `,[J("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),J("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),P("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),_("auto-label-width",[P("form-item-label","white-space: nowrap;")]),_("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: start; + `,[P("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[_("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),_("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),_("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),_("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),J("text",` + grid-area: text; + `),J("asterisk",` + grid-area: mark; + align-self: end; + `)])]),_("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[_("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),P("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),P("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),P("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[j("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),P("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[_("warning",{color:"var(--n-feedback-text-color-warning)"}),_("error",{color:"var(--n-feedback-text-color-error)"}),Yr({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var ht=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(f){try{d(r.next(f))}catch(c){o(c)}}function l(f){try{d(r.throw(f))}catch(c){o(c)}}function d(f){f.done?i(f.value):a(f.value).then(s,l)}d((r=r.apply(t,e||[])).next())})};const Xr=Object.assign(Object.assign({},le.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function pt(t,e){return(...n)=>{try{const r=t(...n);return!e&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||nt("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(e?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){nt("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const vt=Q({name:"FormItem",props:Xr,setup(t){Vn($t,"formItems",Z(t,"path"));const{mergedClsPrefixRef:e,inlineThemeDisabled:n}=Oe(t),r=ce(Pe,null),a=Dr(t),i=Hr(t),{validationErrored:o}=i,{mergedRequired:s,mergedRules:l}=Ur(t),{mergedSize:d}=a,{mergedLabelPlacement:f,mergedLabelAlign:c,mergedRequireMarkPlacement:h}=i,u=q([]),w=q(tt()),m=r?Z(r.props,"disabled"):q(!1),v=le("Form","-form-item",Gr,St,t,e);we(Z(t,"path"),()=>{t.ignorePathChange||g()});function g(){u.value=[],o.value=!1,t.feedback&&(w.value=tt())}function T(){A("blur")}function y(){A("change")}function C(){A("focus")}function O(){A("input")}function R(S,D){return ht(this,void 0,void 0,function*(){let H,N,te,ie;return typeof S=="string"?(H=S,N=D):S!==null&&typeof S=="object"&&(H=S.trigger,N=S.callback,te=S.shouldRuleBeApplied,ie=S.options),yield new Promise((oe,se)=>{A(H,te,ie).then(({valid:re,errors:ne})=>{re?(N&&N(),oe()):(N&&N(ne),se(ne))})})})}const A=(S=null,D=()=>!0,H={suppressWarning:!0})=>ht(this,void 0,void 0,function*(){const{path:N}=t;H?H.first||(H.first=t.first):H={};const{value:te}=l,ie=r?Pt(r.props.model,N||""):void 0,oe={},se={},re=(S?te.filter(U=>Array.isArray(U.trigger)?U.trigger.includes(S):U.trigger===S):te).filter(D).map((U,K)=>{const E=Object.assign({},U);if(E.validator&&(E.validator=pt(E.validator,!1)),E.asyncValidator&&(E.asyncValidator=pt(E.asyncValidator,!0)),E.renderMessage){const V=`__renderMessage__${K}`;se[V]=E.message,E.message=V,oe[V]=E.renderMessage}return E});if(!re.length)return{valid:!0};const ne=N!=null?N:"__n_no_path__",ue=new ke({[ne]:re}),{validateMessages:be}=(r==null?void 0:r.props)||{};return be&&ue.messages(be),yield new Promise(U=>{ue.validate({[ne]:ie},H,K=>{K!=null&&K.length?(u.value=K.map(E=>{const V=(E==null?void 0:E.message)||"";return{key:V,render:()=>V.startsWith("__renderMessage__")?oe[V]():V}}),K.forEach(E=>{var V;!((V=E.message)===null||V===void 0)&&V.startsWith("__renderMessage__")&&(E.message=se[E.message])}),o.value=!0,U({valid:!1,errors:K})):(g(),U({valid:!0}))})})});Ee(sn,{path:Z(t,"path"),disabled:m,mergedSize:a.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:T,handleContentChange:y,handleContentFocus:C,handleContentInput:O});const L={validate:R,restoreValidation:g,internalValidate:A},Y=q(null);ln(()=>{if(!i.isAutoLabelWidth.value)return;const S=Y.value;if(S!==null){const D=S.style.whiteSpace;S.style.whiteSpace="nowrap",S.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(S).width.slice(0,-2))),S.style.whiteSpace=D}});const ee=z(()=>{var S;const{value:D}=d,{value:H}=f,N=H==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:te},self:{labelTextColor:ie,asteriskColor:oe,lineHeight:se,feedbackTextColor:re,feedbackTextColorWarning:ne,feedbackTextColorError:ue,feedbackPadding:be,[B("labelHeight",D)]:U,[B("blankHeight",D)]:K,[B("feedbackFontSize",D)]:E,[B("feedbackHeight",D)]:V,[B("labelPadding",N)]:pe,[B("labelTextAlign",N)]:Le,[B(B("labelFontSize",H),D)]:$e}}=v.value;let ve=(S=c.value)!==null&&S!==void 0?S:Le;return H==="top"&&(ve=ve==="right"?"flex-end":"flex-start"),{"--n-bezier":te,"--n-line-height":se,"--n-blank-height":K,"--n-label-font-size":$e,"--n-label-text-align":ve,"--n-label-height":U,"--n-label-padding":pe,"--n-asterisk-color":oe,"--n-label-text-color":ie,"--n-feedback-padding":be,"--n-feedback-font-size":E,"--n-feedback-height":V,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ne,"--n-feedback-text-color-error":ue}}),G=n?Je("form-item",z(()=>{var S;return`${d.value[0]}${f.value[0]}${((S=c.value)===null||S===void 0?void 0:S[0])||""}`}),ee,t):void 0,W=z(()=>f.value==="left"&&h.value==="left"&&c.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:Y,mergedClsPrefix:e,mergedRequired:s,feedbackId:w,renderExplains:u,reverseColSpace:W},i),a),L),{cssVars:n?void 0:ee,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{$slots:t,mergedClsPrefix:e,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:a,onRender:i}=this,o=r!==void 0?r:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const d=x("span",{class:`${e}-form-item-label__text`},l),f=o?x("span",{class:`${e}-form-item-label__asterisk`},a!=="left"?"\xA0*":"*\xA0"):a==="right-hanging"&&x("span",{class:`${e}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:c}=this;return x("label",Object.assign({},c,{class:[c==null?void 0:c.class,`${e}-form-item-label`,`${e}-form-item-label--${a}-mark`,this.reverseColSpace&&`${e}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),a==="left"?[f,d]:[d,f])};return x("div",{class:[`${e}-form-item`,this.themeClass,`${e}-form-item--${this.mergedSize}-size`,`${e}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${e}-form-item--auto-label-width`,!n&&`${e}-form-item--no-label`],style:this.cssVars},n&&s(),x("div",{class:[`${e}-form-item-blank`,this.mergedValidationStatus&&`${e}-form-item-blank--${this.mergedValidationStatus}`]},t),this.mergedShowFeedback?x("div",{key:this.feedbackId,class:`${e}-form-item-feedback-wrapper`},x(dn,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return Ve(t.feedback,d=>{var f;const{feedback:c}=this,h=d||c?x("div",{key:"__feedback__",class:`${e}-form-item-feedback__line`},d||c):this.renderExplains.length?(f=this.renderExplains)===null||f===void 0?void 0:f.map(({key:u,render:w})=>x("div",{key:u,class:`${e}-form-item-feedback__line`},w())):null;return h?l==="warning"?x("div",{key:"controlled-warning",class:`${e}-form-item-feedback ${e}-form-item-feedback--warning`},h):l==="error"?x("div",{key:"controlled-error",class:`${e}-form-item-feedback ${e}-form-item-feedback--error`},h):l==="success"?x("div",{key:"controlled-success",class:`${e}-form-item-feedback ${e}-form-item-feedback--success`},h):x("div",{key:"controlled-default",class:`${e}-form-item-feedback`},h):null})}})):null)}}),Kr=t=>{const{primaryColor:e,successColor:n,warningColor:r,errorColor:a,infoColor:i,fontWeightStrong:o}=t;return{fontWeight:o,rotate:"252deg",colorStartPrimary:ye(e,{alpha:.6}),colorEndPrimary:e,colorStartInfo:ye(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ye(r,{alpha:.6}),colorEndWarning:r,colorStartError:ye(a,{alpha:.6}),colorEndError:a,colorStartSuccess:ye(n,{alpha:.6}),colorEndSuccess:n}},Jr={name:"GradientText",common:fn,self:Kr},Zr=Jr,Qr=P("gradient-text",` + display: inline-block; + font-weight: var(--n-font-weight); + -webkit-background-clip: text; + background-clip: text; + color: #0000; + white-space: nowrap; + background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier); +`),ea=Object.assign(Object.assign({},le.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),ta=Q({name:"GradientText",props:ea,setup(t){Dn();const{mergedClsPrefixRef:e,inlineThemeDisabled:n}=Oe(t),r=z(()=>{const{type:d}=t;return d==="danger"?"error":d}),a=z(()=>{let d=t.size||t.fontSize;return d&&(d=ze(d)),d||void 0}),i=z(()=>{const d=t.color||t.gradient;if(typeof d=="string")return d;if(d){const f=d.deg||0,c=d.from,h=d.to;return`linear-gradient(${f}deg, ${c} 0%, ${h} 100%)`}}),o=le("GradientText","-gradient-text",Qr,Zr,t,e),s=z(()=>{const{value:d}=r,{common:{cubicBezierEaseInOut:f},self:{rotate:c,[B("colorStart",d)]:h,[B("colorEnd",d)]:u,fontWeight:w}}=o.value;return{"--n-bezier":f,"--n-rotate":c,"--n-color-start":h,"--n-color-end":u,"--n-font-weight":w}}),l=n?Je("gradient-text",z(()=>r.value[0]),s,t):void 0;return{mergedClsPrefix:e,compatibleType:r,styleFontSize:a,styleBgImage:i,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{mergedClsPrefix:t,onRender:e}=this;return e==null||e(),x("span",{class:[`${t}-gradient-text`,`${t}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Ze=Ke("n-tabs"),Ft={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},yt=Q({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Ft,setup(t){const e=ce(Ze,null);return e||cn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:e.paneStyleRef,class:e.paneClassRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){return x("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),na=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},pn(Ft,["displayDirective"])),Xe=Q({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:na,setup(t){const{mergedClsPrefixRef:e,valueRef:n,typeRef:r,closableRef:a,tabStyleRef:i,tabChangeIdRef:o,onBeforeLeaveRef:s,triggerRef:l,handleAdd:d,activateTab:f,handleClose:c}=ce(Ze);return{trigger:l,mergedClosable:z(()=>{if(t.internalAddable)return!1;const{closable:h}=t;return h===void 0?a.value:h}),style:i,clsPrefix:e,value:n,type:r,handleClose(h){h.stopPropagation(),!t.disabled&&c(t.name)},activateTab(){if(t.disabled)return;if(t.internalAddable){d();return}const{name:h}=t,u=++o.id;if(h!==n.value){const{value:w}=s;w?Promise.resolve(w(t.name,n.value)).then(m=>{m&&o.id===u&&f(h)}):f(h)}}}},render(){const{internalAddable:t,clsPrefix:e,name:n,disabled:r,label:a,tab:i,value:o,mergedClosable:s,style:l,trigger:d,$slots:{default:f}}=this,c=a!=null?a:i;return x("div",{class:`${e}-tabs-tab-wrapper`},this.internalLeftPadded?x("div",{class:`${e}-tabs-tab-pad`}):null,x("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},un({class:[`${e}-tabs-tab`,o===n&&`${e}-tabs-tab--active`,r&&`${e}-tabs-tab--disabled`,s&&`${e}-tabs-tab--closable`,t&&`${e}-tabs-tab--addable`],onClick:d==="click"?this.activateTab:void 0,onMouseenter:d==="hover"?this.activateTab:void 0,style:t?void 0:l},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),x("span",{class:`${e}-tabs-tab__label`},t?x(bn,null,x("div",{class:`${e}-tabs-tab__height-placeholder`},"\xA0"),x(gn,{clsPrefix:e},{default:()=>x(sr,null)})):f?f():typeof c=="object"?c:mn(c!=null?c:n)),s&&this.type==="card"?x(hn,{clsPrefix:e,class:`${e}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),ra=P("tabs",` + box-sizing: border-box; + width: 100%; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[_("segment-type",[P("tabs-rail",[j("&.transition-disabled","color: red;",[P("tabs-tab",` + transition: none; + `)])])]),P("tabs-rail",` + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[P("tabs-tab-wrapper",` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[P("tabs-tab",` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[_("active",` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + `),j("&:hover",` + color: var(--n-tab-text-color-hover); + `)])])]),_("flex",[P("tabs-nav",{width:"100%"},[P("tabs-wrapper",{width:"100%"},[P("tabs-tab",{marginRight:0})])])]),P("tabs-nav",` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[J("prefix, suffix",` + display: flex; + align-items: center; + `),J("prefix","padding-right: 16px;"),J("suffix","padding-left: 16px;")]),P("tabs-nav-scroll-wrapper",` + flex: 1; + position: relative; + overflow: hidden; + `,[_("shadow-before",[j("&::before",` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),_("shadow-after",[j("&::after",` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),j("&::before, &::after",` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 20px; + z-index: 1; + `),j("&::before",` + left: 0; + `),j("&::after",` + right: 0; + `)]),P("tabs-nav-scroll-content",` + display: flex; + position: relative; + min-width: 100%; + width: fit-content; + `),P("tabs-wrapper",` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),P("tabs-tab-wrapper",` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),P("tabs-tab",` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[_("disabled",{cursor:"not-allowed"}),J("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),J("label",` + display: flex; + align-items: center; + `)]),P("tabs-bar",` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[j("&.transition-disabled",` + transition: none; + `),_("disabled",` + background-color: var(--n-tab-text-color-disabled) + `)]),P("tabs-pane-wrapper",` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),P("tab-pane",` + color: var(--n-pane-text-color); + width: 100%; + padding: var(--n-pane-padding); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[j("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),j("&.next-transition-leave-active, &.prev-transition-leave-active",` + position: absolute; + `),j("&.next-transition-enter-from, &.prev-transition-leave-to",` + transform: translateX(32px); + opacity: 0; + `),j("&.next-transition-leave-to, &.prev-transition-enter-from",` + transform: translateX(-32px); + opacity: 0; + `),j("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` + transform: translateX(0); + opacity: 1; + `)]),P("tabs-tab-pad",` + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),_("line-type, bar-type",[P("tabs-tab",` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[j("&:hover",{color:"var(--n-tab-text-color-hover)"}),_("active",` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),_("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),P("tabs-nav",[_("line-type",[J("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-tab-border-color); + `),P("tabs-nav-scroll-content",` + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-tab-border-color); + `),P("tabs-bar",` + border-radius: 0; + bottom: -1px; + `)]),_("card-type",[J("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-tab-border-color); + `),P("tabs-pad",` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-tab-border-color); + `),P("tabs-tab-pad",` + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-tab-border-color); + `),P("tabs-tab",` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[_("addable",` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + `,[J("height-placeholder",` + width: 0; + font-size: var(--n-tab-font-size); + `),vn("disabled",[j("&:hover",` + color: var(--n-tab-text-color-hover); + `)])]),_("closable","padding-right: 6px;"),_("active",` + border-bottom: 1px solid #0000; + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),_("disabled","color: var(--n-tab-text-color-disabled);")]),P("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")])])]),aa=Object.assign(Object.assign({},le.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),ia=Q({name:"Tabs",props:aa,setup(t,{slots:e}){var n,r,a,i;const{mergedClsPrefixRef:o,inlineThemeDisabled:s}=Oe(t),l=le("Tabs","-tabs",ra,kn,t,o),d=q(null),f=q(null),c=q(null),h=q(null),u=q(null),w=q(!0),m=q(!0),v=rt(t,["labelSize","size"]),g=rt(t,["activeName","value"]),T=q((r=(n=g.value)!==null&&n!==void 0?n:t.defaultValue)!==null&&r!==void 0?r:e.default?(i=(a=je(e.default())[0])===null||a===void 0?void 0:a.props)===null||i===void 0?void 0:i.name:null),y=yn(g,T),C={id:0},O=z(()=>{if(!(!t.justifyContent||t.type==="card"))return{display:"flex",justifyContent:t.justifyContent}});we(y,()=>{C.id=0,L(),Y()});function R(){var b;const{value:p}=y;return p===null?null:(b=d.value)===null||b===void 0?void 0:b.querySelector(`[data-name="${p}"]`)}function A(b){if(t.type==="card")return;const{value:p}=f;if(!!p&&b){const k=`${o.value}-tabs-bar--disabled`,{barWidth:F}=t;if(b.dataset.disabled==="true"?p.classList.add(k):p.classList.remove(k),typeof F=="number"&&b.offsetWidth>=F){const ae=Math.floor((b.offsetWidth-F)/2)+b.offsetLeft;p.style.left=`${ae}px`,p.style.maxWidth=`${F}px`}else p.style.left=`${b.offsetLeft}px`,p.style.maxWidth=`${b.offsetWidth}px`;p.style.width="8192px",p.offsetWidth}}function L(){if(t.type==="card")return;const b=R();b&&A(b)}function Y(b){var p;const k=(p=u.value)===null||p===void 0?void 0:p.$el;if(!k)return;const F=R();if(!F)return;const{scrollLeft:ae,offsetWidth:de}=k,{offsetLeft:me,offsetWidth:Ce}=F;ae>me?k.scrollTo({top:0,left:me,behavior:"smooth"}):me+Ce>ae+de&&k.scrollTo({top:0,left:me+Ce-de,behavior:"smooth"})}const ee=q(null);let G=0,W=null;function S(b){const p=ee.value;if(p){G=b.getBoundingClientRect().height;const k=`${G}px`,F=()=>{p.style.height=k,p.style.maxHeight=k};W?(F(),W(),W=null):W=F}}function D(b){const p=ee.value;if(p){const k=b.getBoundingClientRect().height,F=()=>{document.body.offsetHeight,p.style.maxHeight=`${k}px`,p.style.height=`${Math.max(G,k)}px`};W?(W(),W=null,F()):W=F}}function H(){const b=ee.value;b&&(b.style.maxHeight="",b.style.height="")}const N={value:[]},te=q("next");function ie(b){const p=y.value;let k="next";for(const F of N.value){if(F===p)break;if(F===b){k="prev";break}}te.value=k,oe(b)}function oe(b){const{onActiveNameChange:p,onUpdateValue:k,"onUpdate:value":F}=t;p&&Fe(p,b),k&&Fe(k,b),F&&Fe(F,b),T.value=b}function se(b){const{onClose:p}=t;p&&Fe(p,b)}function re(){const{value:b}=f;if(!b)return;const p="transition-disabled";b.classList.add(p),L(),b.classList.remove(p)}let ne=0;function ue(b){var p;if(b.contentRect.width===0&&b.contentRect.height===0||ne===b.contentRect.width)return;ne=b.contentRect.width;const{type:k}=t;(k==="line"||k==="bar")&&re(),k!=="segment"&&pe((p=u.value)===null||p===void 0?void 0:p.$el)}const be=Me(ue,64);we([()=>t.justifyContent,()=>t.size],()=>{We(()=>{const{type:b}=t;(b==="line"||b==="bar")&&re()})});const U=q(!1);function K(b){var p;const{target:k,contentRect:{width:F}}=b,ae=k.parentElement.offsetWidth;if(!U.value)aede.$el.offsetWidth&&(U.value=!1)}pe((p=u.value)===null||p===void 0?void 0:p.$el)}const E=Me(K,64);function V(){const{onAdd:b}=t;b&&b(),We(()=>{const p=R(),{value:k}=u;!p||!k||k.scrollTo({left:p.offsetLeft,top:0,behavior:"smooth"})})}function pe(b){if(!b)return;const{scrollLeft:p,scrollWidth:k,offsetWidth:F}=b;w.value=p<=0,m.value=p+F>=k}const Le=Me(b=>{pe(b.target)},64);Ee(Ze,{triggerRef:Z(t,"trigger"),tabStyleRef:Z(t,"tabStyle"),paneClassRef:Z(t,"paneClass"),paneStyleRef:Z(t,"paneStyle"),mergedClsPrefixRef:o,typeRef:Z(t,"type"),closableRef:Z(t,"closable"),valueRef:y,tabChangeIdRef:C,onBeforeLeaveRef:Z(t,"onBeforeLeave"),activateTab:ie,handleClose:se,handleAdd:V}),xn(()=>{L(),Y()}),wn(()=>{const{value:b}=c;if(!b)return;const{value:p}=o,k=`${p}-tabs-nav-scroll-wrapper--shadow-before`,F=`${p}-tabs-nav-scroll-wrapper--shadow-after`;w.value?b.classList.remove(k):b.classList.add(k),m.value?b.classList.remove(F):b.classList.add(F)});const $e=q(null);we(y,()=>{if(t.type==="segment"){const b=$e.value;b&&We(()=>{b.classList.add("transition-disabled"),b.offsetWidth,b.classList.remove("transition-disabled")})}});const ve={syncBarPosition:()=>{L()}},qe=z(()=>{const{value:b}=v,{type:p}=t,k={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[p],F=`${b}${k}`,{self:{barColor:ae,closeIconColor:de,closeIconColorHover:me,closeIconColorPressed:Ce,tabColor:_t,tabBorderColor:zt,paneTextColor:Tt,tabFontWeight:At,tabBorderRadius:Et,tabFontWeightActive:Ot,colorSegment:Lt,fontWeightStrong:qt,tabColorSegment:jt,closeSize:Wt,closeIconSize:It,closeColorHover:Mt,closeColorPressed:Bt,closeBorderRadius:Nt,[B("panePadding",b)]:Vt,[B("tabPadding",F)]:Dt,[B("tabGap",F)]:Ht,[B("tabTextColor",p)]:Ut,[B("tabTextColorActive",p)]:Yt,[B("tabTextColorHover",p)]:Gt,[B("tabTextColorDisabled",p)]:Xt,[B("tabFontSize",b)]:Kt},common:{cubicBezierEaseInOut:Jt}}=l.value;return{"--n-bezier":Jt,"--n-color-segment":Lt,"--n-bar-color":ae,"--n-tab-font-size":Kt,"--n-tab-text-color":Ut,"--n-tab-text-color-active":Yt,"--n-tab-text-color-disabled":Xt,"--n-tab-text-color-hover":Gt,"--n-pane-text-color":Tt,"--n-tab-border-color":zt,"--n-tab-border-radius":Et,"--n-close-size":Wt,"--n-close-icon-size":It,"--n-close-color-hover":Mt,"--n-close-color-pressed":Bt,"--n-close-border-radius":Nt,"--n-close-icon-color":de,"--n-close-icon-color-hover":me,"--n-close-icon-color-pressed":Ce,"--n-tab-color":_t,"--n-tab-font-weight":At,"--n-tab-font-weight-active":Ot,"--n-tab-padding":Dt,"--n-tab-gap":Ht,"--n-pane-padding":Vt,"--n-font-weight-strong":qt,"--n-tab-color-segment":jt}}),ge=s?Je("tabs",z(()=>`${v.value[0]}${t.type[0]}`),qe,t):void 0;return Object.assign({mergedClsPrefix:o,mergedValue:y,renderedNames:new Set,tabsRailElRef:$e,tabsPaneWrapperRef:ee,tabsElRef:d,barElRef:f,addTabInstRef:h,xScrollInstRef:u,scrollWrapperElRef:c,addTabFixed:U,tabWrapperStyle:O,handleNavResize:be,mergedSize:v,handleScroll:Le,handleTabsResize:E,cssVars:s?void 0:qe,themeClass:ge==null?void 0:ge.themeClass,animationDirection:te,renderNameListRef:N,onAnimationBeforeLeave:S,onAnimationEnter:D,onAnimationAfterEnter:H,onRender:ge==null?void 0:ge.onRender},ve)},render(){const{mergedClsPrefix:t,type:e,addTabFixed:n,addable:r,mergedSize:a,renderNameListRef:i,onRender:o,$slots:{default:s,prefix:l,suffix:d}}=this;o==null||o();const f=s?je(s()).filter(v=>v.type.__TAB_PANE__===!0):[],c=s?je(s()).filter(v=>v.type.__TAB__===!0):[],h=!c.length,u=e==="card",w=e==="segment",m=!u&&!w&&this.justifyContent;return i.value=[],x("div",{class:[`${t}-tabs`,this.themeClass,`${t}-tabs--${e}-type`,`${t}-tabs--${a}-size`,m&&`${t}-tabs--flex`],style:this.cssVars},x("div",{class:[`${t}-tabs-nav--${e}-type`,`${t}-tabs-nav`]},Ve(l,v=>v&&x("div",{class:`${t}-tabs-nav__prefix`},v)),w?x("div",{class:`${t}-tabs-rail`,ref:"tabsRailElRef"},h?f.map((v,g)=>(i.value.push(v.props.name),x(Xe,Object.assign({},v.props,{internalCreatedByPane:!0,internalLeftPadded:g!==0}),v.children?{default:v.children.tab}:void 0))):c.map((v,g)=>(i.value.push(v.props.name),g===0?v:Rt(v)))):x(at,{onResize:this.handleNavResize},{default:()=>x("div",{class:`${t}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},x(Un,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:()=>{const v=x("div",{style:this.tabWrapperStyle,class:`${t}-tabs-wrapper`},m?null:x("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),h?f.map((T,y)=>(i.value.push(T.props.name),Ne(x(Xe,Object.assign({},T.props,{internalCreatedByPane:!0,internalLeftPadded:y!==0&&(!m||m==="center"||m==="start"||m==="end")}),T.children?{default:T.children.tab}:void 0)))):c.map((T,y)=>(i.value.push(T.props.name),Ne(y!==0&&!m?Rt(T):T))),!n&&r&&u?wt(r,(h?f.length:c.length)!==0):null,m?null:x("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));let g=v;return u&&r&&(g=x(at,{onResize:this.handleTabsResize},{default:()=>v})),x("div",{ref:"tabsElRef",class:`${t}-tabs-nav-scroll-content`},g,u?x("div",{class:`${t}-tabs-pad`}):null,u?null:x("div",{ref:"barElRef",class:`${t}-tabs-bar`}))}}))}),n&&r&&u?wt(r,!0):null,Ve(d,v=>v&&x("div",{class:`${t}-tabs-nav__suffix`},v))),h&&(this.animated?x("div",{ref:"tabsPaneWrapperRef",class:`${t}-tabs-pane-wrapper`},xt(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):xt(f,this.mergedValue,this.renderedNames)))}});function xt(t,e,n,r,a,i,o){const s=[];return t.forEach(l=>{const{name:d,displayDirective:f,"display-directive":c}=l.props,h=w=>f===w||c===w,u=e===d;if(l.key!==void 0&&(l.key=d),u||h("show")||h("show:lazy")&&n.has(d)){n.has(d)||n.add(d);const w=!h("if");s.push(w?Rn(l,[[$n,u]]):l)}}),o?x(Sn,{name:`${o}-transition`,onBeforeLeave:r,onEnter:a,onAfterEnter:i},{default:()=>s}):s}function wt(t,e){return x(Xe,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:e,disabled:typeof t=="object"&&t.disabled})}function Rt(t){const e=Pn(t);return e.props?e.props.internalLeftPadded=!0:e.props={internalLeftPadded:!0},e}function Ne(t){return Array.isArray(t.dynamicProps)?t.dynamicProps.includes("internalLeftPadded")||t.dynamicProps.push("internalLeftPadded"):t.dynamicProps=["internalLeftPadded"],t}function oa(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!_n(t)}const sa=Q({name:"Signin",setup(){const{t}=kt(),e=()=>({name:"admin",pwd:"123456"}),n=zn(),r=q(e()),a=q(),i=q(!1),o={name:{required:!0,message:t("LoginModule.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("LoginModule.PasswordPlaceholder"),trigger:["blur","input"]}};return{signinForm:r,loginFormRef:a,handleLogin:()=>{var l;(l=a.value)==null||l.validate(d=>{d?window.$message.error("\u4E0D\u53EF\u4EE5\u8FD9\u6837\u54DF, \u4E0D\u53EF\u4EE5\u54DF"):(window.$message.info("\u767B\u9646\u4E2D..."),i.value=!0,setTimeout(()=>{n.push("/dashboard"),Cn("token","tokenValue")},2*1e3))})},rules:o,loading:i,t}},render(){let t;return I(cr,{model:this.signinForm,ref:"loginFormRef",rules:this.rules},{default:()=>[I(vt,{label:this.t("LoginModule.Name"),path:"name"},{default:()=>[I(it,{value:this.signinForm.name,"onUpdate:value":e=>this.signinForm.name=e,placeholder:this.t("LoginModule.NamePlaceholder")},null)]}),I(vt,{label:this.t("LoginModule.Password"),path:"pwd"},{default:()=>[I(it,{value:this.signinForm.pwd,"onUpdate:value":e=>this.signinForm.pwd=e,type:"password",placeholder:this.t("LoginModule.PasswordPlaceholder")},null)]}),I(Fn,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:this.loading},oa(t=this.t("LoginModule.Login"))?t:{default:()=>[t]})]})}}),la=Q({name:"Register",render(){return I(Bn,{status:"info",title:"\u63D0\u793A",description:"\u6211\u5B9E\u5728\u662F\u4E0D\u60F3\u5199\u4E86..."},null)}}),ua=Q({name:"Login",setup(){const t=Tn({tabsValue:"signin"}),{t:e}=kt(),{height:n}=An(),r=En(),{updateLocale:a}=r;return{...On(t),windowHeight:n,updateLocale:a,ray:e}},render(){return I("div",{class:["login"],style:[`height: ${this.windowHeight}px`]},[I(Ln,null,{default:()=>[I(ta,{class:"login-title",type:"info"},{default:()=>[ot("Ray Template")]}),I(qn,{options:jn(),onSelect:t=>this.updateLocale(t)},{default:()=>[I(Wn,{customClassName:"login-icon",name:"language",size:"18"},null)]})]}),I(In,null,{default:()=>[I(ia,{value:this.tabsValue,"onUpdate:value":t=>this.tabsValue=t},{default:()=>[I(yt,{tab:this.ray("LoginModule.Signin"),name:"signin"},{default:()=>[I(sa,null,null)]}),I(yt,{tab:this.ray("LoginModule.Register"),name:"register"},{default:()=>[I(la,null,null)]})]}),I(Mn,null,{default:()=>[ot("\u53CB\u60C5\u94FE\u63A5")]}),I(Nn,null,null)]})])}});export{ua as default}; diff --git a/assets/index.d3847385.js.gz b/assets/index.d3847385.js.gz new file mode 100644 index 00000000..aac5f37f Binary files /dev/null and b/assets/index.d3847385.js.gz differ diff --git a/assets/index.daf1209c.js b/assets/index.daf1209c.js new file mode 100644 index 00000000..aeecc75e --- /dev/null +++ b/assets/index.daf1209c.js @@ -0,0 +1 @@ +import{d as r,a7 as e,am as n,h as f,al as d,aA as p,aB as c,aC as b,ab as E,aD as o,ai as t,ah as l}from"./index.f7ae9ef9.js";import{R as m}from"./index.ae5dbf7a.js";function i(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!E(a)}const h=r({name:"Dashboard",setup(){return{coverLetterOptions:[{label:"\u638C\u63E1\u642C\u7816\u6846\u67B6",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("Vue3.x")]}),e(o,{type:"info"},{default:()=>[t("React")]})]})},{label:"\u4ECE\u4E8B\u642C\u7816\u65F6\u957F",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("\u7EC3\u4E60\u65F6\u957F\u4E24\u5E74\u534A\u7684\u5C0F\u767D\u524D\u7AEF\u642C\u7816\u5E08")]})]})},{label:"\u4E2A\u4EBA",des:()=>e(l,{align:"center"},{default:()=>[e(d,{name:"ray",size:"22"},null),t("\u52AA\u529B\u642C\u7816\u3001\u52AA\u529B\u6478\u9C7C, \u5EFA\u8BBE\u7F8E\u4E3D\u5BB6\u56ED")]}),span:2},{label:"\u8865\u5145\u8BF4\u660E",des:()=>e(l,{align:"center"},{default:()=>[t("\u5982\u679C\u6709\u5E0C\u671B\u8865\u5145\u7684\u529F\u80FD\u53EF\u4EE5\u5728"),e("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("\u63D0\u4E00\u4E2A Issues")]}),span:2}]}},render(){let a;return e(b,{class:"dashboard-layout layout-full"},{default:()=>[e(n,null,{header:()=>f(d,{name:"ray",size:"64"},{}),default:()=>"\u5F53\u4F60\u770B\u89C1\u8FD9\u4E2A\u9875\u9762\u540E, \u5C31\u8BF4\u660E\u9879\u76EE\u5DF2\u7ECF\u542F\u52A8\u6210\u529F\u4E86~"}),e(n,{title:"\u4E2A\u4EBA\u4ECB\u7ECD"},{default:()=>[e(p,{bordered:!0,labelPlacement:"left",column:2},i(a=this.coverLetterOptions.map(u=>{let s;return e(c,{key:u.label,label:u.label,span:u==null?void 0:u.span},i(s=u.des())?s:{default:()=>[s]})}))?a:{default:()=>[a]})]}),e(n,{title:"\u53CB\u60C5\u94FE\u63A5"},{default:()=>[e(m,null,null)]})]})}});export{h as default}; diff --git a/assets/index.daf1209c.js.gz b/assets/index.daf1209c.js.gz new file mode 100644 index 00000000..2b6fef26 Binary files /dev/null and b/assets/index.daf1209c.js.gz differ diff --git a/assets/index.dc50c796.css b/assets/index.dc50c796.css new file mode 100644 index 00000000..c79faabe --- /dev/null +++ b/assets/index.dc50c796.css @@ -0,0 +1 @@ +.dashboard-layout .n-card{margin-top:18px}.dashboard-layout .n-card:first-child{margin-top:0}.dashboard-layout .dashboard-link{text-decoration:none} diff --git a/assets/index.e24e9a37.js b/assets/index.e24e9a37.js new file mode 100644 index 00000000..d373f084 --- /dev/null +++ b/assets/index.e24e9a37.js @@ -0,0 +1 @@ +import{d as t,a7 as e,aa as r,ai as o,ac as s}from"./index.f7ae9ef9.js";import{N as n}from"./Result.08eef20a.js";const i=t({name:"ErrorPage",setup(){const a=s();return{handleBack:()=>{a.push("/dashboard")}}},render(){return e("div",{class:"error-page"},[e(n,{status:"500",title:"\u5C0F\u8C03\u76AE\u4F60\u8D70\u9519\u5730\u65B9\u4E86"},{footer:()=>e(r,{onClick:this.handleBack.bind(this)},{default:()=>[o("\u8FD4\u56DE\u9996\u9875")]})})])}});export{i as default}; diff --git a/assets/index.f0f1f76c.js b/assets/index.f0f1f76c.js new file mode 100644 index 00000000..c3a35291 --- /dev/null +++ b/assets/index.f0f1f76c.js @@ -0,0 +1 @@ +import{d as F,r as h,aF as k,a7 as u,am as s,ai as C,aA as p,aB as c,aD as x,ab as A}from"./index.f7ae9ef9.js";function d(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!A(t)}const B=F({name:"RelyAbout",setup(){const{pkg:t}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^0.27.2","crypto-js":"^4.1.1",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.0",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"0.0.0"}},{dependencies:n,devDependencies:e,name:m,version:E}=t,y=[{title:"\u4F9D\u8D56\u540D\u79F0",key:"name"},{title:"\u4F9D\u8D56\u7248\u672C",key:"relyVersion"},{title:"\u4F9D\u8D56\u5730\u5740",key:"relyAddress"}],l=h([]),v=[{name:"\u9879\u76EE\u540D\u79F0",label:m},{name:"\u7248\u672C\u4FE1\u606F",label:E},{name:"\u9879\u76EE\u5730\u5740",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],g=()=>{const i=a=>Object.keys(a).reduce((r,o)=>(r.push({name:o,relyVersion:a[o],relyAddress:""}),r),[]),b=i(n),D=i(e);l.value=[...b,...D]},f=i=>{i.url&&window.open(i.url)};return k(()=>{g()}),{columns:y,relyData:l,templateOptions:v,handleTagClick:f}},render(){let t,n;return u("div",{class:"rely-about"},[u(s,{title:"\u5173\u4E8E\u9879\u76EE"},{default:()=>[C("ray template \u662F\u4E00\u4E2A\u57FA\u4E8E: tsx pinia vue3.x vite sass \u7684\u4E2D\u540E\u53F0\u89E3\u51B3\u65B9\u6848. \u9879\u76EE\u5E72\u51C0\u4E0E\u8F7B\u5DE7, \u5DF2\u7ECF\u96C6\u6210\u4E86\u5F88\u591A\u9879\u76EE\u4E2D\u53EF\u80FD\u9700\u8981\u7684\u642C\u7816\u5DE5\u5177\u53EF\u4EE5\u8BA9\u4F60\u5FEB\u901F\u8D77\u4E00\u4E2A\u76F8\u5173\u9879\u76EE, \u5E76\u4E14\u4E0D\u9700\u8981\u5254\u9664\u5927\u91CF\u65E0\u7528\u9875\u9762\u4E0E\u7EC4\u4EF6.")]}),u(s,{title:"\u9879\u76EE\u4FE1\u606F"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(t=this.templateOptions.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[u(x,{bordered:!1,type:"info",onClick:this.handleTagClick.bind(this,e),style:[e.url?"cursor: pointer":""]},{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),u(s,{title:"\u9879\u76EE\u4F9D\u8D56"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(n=this.relyData.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{B as default}; diff --git a/assets/index.f0f1f76c.js.gz b/assets/index.f0f1f76c.js.gz new file mode 100644 index 00000000..0f61da2c Binary files /dev/null and b/assets/index.f0f1f76c.js.gz differ diff --git a/assets/index.f7ae9ef9.js b/assets/index.f7ae9ef9.js new file mode 100644 index 00000000..26c17825 --- /dev/null +++ b/assets/index.f7ae9ef9.js @@ -0,0 +1,2346 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerpolicy&&(i.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?i.credentials="include":n.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function fc(e,t){const o=Object.create(null),r=e.split(",");for(let n=0;n!!o[n.toLowerCase()]:n=>!!o[n]}const $0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_0=fc($0);function tp(e){return!!e||e===""}function hc(e){if(Oe(e)){const t={};for(let o=0;o{if(o){const r=o.split(z0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function pc(e){let t="";if(St(e))t=e;else if(Oe(e))for(let o=0;o{},k0=()=>!1,E0=/^on[^a-z]/,Yl=e=>E0.test(e),mc=e=>e.startsWith("onUpdate:"),wt=Object.assign,gc=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},I0=Object.prototype.hasOwnProperty,Fe=(e,t)=>I0.call(e,t),Oe=Array.isArray,ci=e=>Xl(e)==="[object Map]",R0=e=>Xl(e)==="[object Set]",Le=e=>typeof e=="function",St=e=>typeof e=="string",vc=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",op=e=>kt(e)&&Le(e.then)&&Le(e.catch),O0=Object.prototype.toString,Xl=e=>O0.call(e),A0=e=>Xl(e).slice(8,-1),M0=e=>Xl(e)==="[object Object]",bc=e=>St(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tl=fc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zl=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},B0=/-(\w)/g,_o=Zl(e=>e.replace(B0,(t,o)=>o?o.toUpperCase():"")),L0=/\B([A-Z])/g,Dn=Zl(e=>e.replace(L0,"-$1").toLowerCase()),Jl=Zl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ea=Zl(e=>e?`on${Jl(e)}`:""),$i=(e,t)=>!Object.is(e,t),Ia=(e,t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},rp=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ud;const D0=()=>Ud||(Ud=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kt;class np{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Kt&&(this.parent=Kt,this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}run(t){if(this.active){const o=Kt;try{return Kt=this,t()}finally{Kt=o}}}on(){Kt=this}off(){Kt=this.parent}stop(t){if(this.active){let o,r;for(o=0,r=this.effects.length;o{const t=new Set(e);return t.w=0,t.n=0,t},ip=e=>(e.w&fr)>0,lp=e=>(e.n&fr)>0,j0=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let o=0;for(let r=0;r{(c==="length"||c>=r)&&a.push(s)});else switch(o!==void 0&&a.push(l.get(o)),t){case"add":Oe(e)?bc(o)&&a.push(l.get("length")):(a.push(l.get(Vr)),ci(e)&&a.push(l.get(ds)));break;case"delete":Oe(e)||(a.push(l.get(Vr)),ci(e)&&a.push(l.get(ds)));break;case"set":ci(e)&&a.push(l.get(Vr));break}if(a.length===1)a[0]&&us(a[0]);else{const s=[];for(const c of a)c&&s.push(...c);us(Cc(s))}}function us(e,t){const o=Oe(e)?e:[...e];for(const r of o)r.computed&&Gd(r);for(const r of o)r.computed||Gd(r)}function Gd(e,t){(e!==uo||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const V0=fc("__proto__,__v_isRef,__isVue"),cp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vc)),U0=wc(),K0=wc(!1,!0),G0=wc(!0),qd=q0();function q0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...o){const r=Ne(this);for(let i=0,l=this.length;i{e[t]=function(...o){Fn();const r=Ne(this)[t].apply(this,o);return Hn(),r}}),e}function wc(e=!1,t=!1){return function(r,n,i){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_isShallow")return t;if(n==="__v_raw"&&i===(e?t?d1:pp:t?hp:fp).get(r))return r;const l=Oe(r);if(!e&&l&&Fe(qd,n))return Reflect.get(qd,n,i);const a=Reflect.get(r,n,i);return(vc(n)?cp.has(n):V0(n))||(e||Xt(r,"get",n),t)?a:ct(a)?l&&bc(n)?a:a.value:kt(a)?e?Po(a):io(a):a}}const Y0=dp(),X0=dp(!0);function dp(e=!1){return function(o,r,n,i){let l=o[r];if(_i(l)&&ct(l)&&!ct(n))return!1;if(!e&&!_i(n)&&(fs(n)||(n=Ne(n),l=Ne(l)),!Oe(o)&&ct(l)&&!ct(n)))return l.value=n,!0;const a=Oe(o)&&bc(r)?Number(r)e,Ql=e=>Reflect.getPrototypeOf(e);function nl(e,t,o=!1,r=!1){e=e.__v_raw;const n=Ne(e),i=Ne(t);o||(t!==i&&Xt(n,"get",t),Xt(n,"get",i));const{has:l}=Ql(n),a=r?Sc:o?Pc:Pi;if(l.call(n,t))return a(e.get(t));if(l.call(n,i))return a(e.get(i));e!==n&&e.get(t)}function il(e,t=!1){const o=this.__v_raw,r=Ne(o),n=Ne(e);return t||(e!==n&&Xt(r,"has",e),Xt(r,"has",n)),e===n?o.has(e):o.has(e)||o.has(n)}function ll(e,t=!1){return e=e.__v_raw,!t&&Xt(Ne(e),"iterate",Vr),Reflect.get(e,"size",e)}function Yd(e){e=Ne(e);const t=Ne(this);return Ql(t).has.call(t,e)||(t.add(e),Wo(t,"add",e,e)),this}function Xd(e,t){t=Ne(t);const o=Ne(this),{has:r,get:n}=Ql(o);let i=r.call(o,e);i||(e=Ne(e),i=r.call(o,e));const l=n.call(o,e);return o.set(e,t),i?$i(t,l)&&Wo(o,"set",e,t):Wo(o,"add",e,t),this}function Zd(e){const t=Ne(this),{has:o,get:r}=Ql(t);let n=o.call(t,e);n||(e=Ne(e),n=o.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return n&&Wo(t,"delete",e,void 0),i}function Jd(){const e=Ne(this),t=e.size!==0,o=e.clear();return t&&Wo(e,"clear",void 0,void 0),o}function al(e,t){return function(r,n){const i=this,l=i.__v_raw,a=Ne(l),s=t?Sc:e?Pc:Pi;return!e&&Xt(a,"iterate",Vr),l.forEach((c,d)=>r.call(n,s(c),s(d),i))}}function sl(e,t,o){return function(...r){const n=this.__v_raw,i=Ne(n),l=ci(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=n[e](...r),d=o?Sc:t?Pc:Pi;return!t&&Xt(i,"iterate",s?ds:Vr),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function Jo(e){return function(...t){return e==="delete"?!1:this}}function o1(){const e={get(i){return nl(this,i)},get size(){return ll(this)},has:il,add:Yd,set:Xd,delete:Zd,clear:Jd,forEach:al(!1,!1)},t={get(i){return nl(this,i,!1,!0)},get size(){return ll(this)},has:il,add:Yd,set:Xd,delete:Zd,clear:Jd,forEach:al(!1,!0)},o={get(i){return nl(this,i,!0)},get size(){return ll(this,!0)},has(i){return il.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:al(!0,!1)},r={get(i){return nl(this,i,!0,!0)},get size(){return ll(this,!0)},has(i){return il.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:al(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sl(i,!1,!1),o[i]=sl(i,!0,!1),t[i]=sl(i,!1,!0),r[i]=sl(i,!0,!0)}),[e,o,t,r]}const[r1,n1,i1,l1]=o1();function $c(e,t){const o=t?e?l1:i1:e?n1:r1;return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Fe(o,n)&&n in r?o:r,n,i)}const a1={get:$c(!1,!1)},s1={get:$c(!1,!0)},c1={get:$c(!0,!1)},fp=new WeakMap,hp=new WeakMap,pp=new WeakMap,d1=new WeakMap;function u1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function f1(e){return e.__v_skip||!Object.isExtensible(e)?0:u1(A0(e))}function io(e){return _i(e)?e:_c(e,!1,up,a1,fp)}function h1(e){return _c(e,!1,t1,s1,hp)}function Po(e){return _c(e,!0,e1,c1,pp)}function _c(e,t,o,r,n){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const l=f1(e);if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function Do(e){return _i(e)?Do(e.__v_raw):!!(e&&e.__v_isReactive)}function _i(e){return!!(e&&e.__v_isReadonly)}function fs(e){return!!(e&&e.__v_isShallow)}function mp(e){return Do(e)||_i(e)}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}function hr(e){return Ol(e,"__v_skip",!0),e}const Pi=e=>kt(e)?io(e):e,Pc=e=>kt(e)?Po(e):e;function gp(e){sr&&uo&&(e=Ne(e),sp(e.dep||(e.dep=Cc())))}function vp(e,t){e=Ne(e),e.dep&&us(e.dep)}function ct(e){return!!(e&&e.__v_isRef===!0)}function U(e){return bp(e,!1)}function p1(e){return bp(e,!0)}function bp(e,t){return ct(e)?e:new m1(e,t)}class m1{constructor(t,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?t:Ne(t),this._value=o?t:Pi(t)}get value(){return gp(this),this._value}set value(t){t=this.__v_isShallow?t:Ne(t),$i(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Pi(t),vp(this))}}function Fo(e){return ct(e)?e.value:e}const g1={get:(e,t,o)=>Fo(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ct(n)&&!ct(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function xp(e){return Do(e)?e:new Proxy(e,g1)}function zc(e){const t=Oe(e)?new Array(e.length):{};for(const o in e)t[o]=Be(e,o);return t}class v1{constructor(t,o,r){this._object=t,this._key=o,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Be(e,t,o){const r=e[t];return ct(r)?r:new v1(e,t,o)}class b1{constructor(t,o,r,n){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new yc(t,()=>{this._dirty||(this._dirty=!0,vp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Ne(this);return gp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function x1(e,t,o=!1){let r,n;const i=Le(e);return i?(r=e,n=ho):(r=e.get,n=e.set),new b1(r,n,i||!n,o)}function cr(e,t,o,r){let n;try{n=r?e(...r):e()}catch(i){ea(i,t,o)}return n}function to(e,t,o,r){if(Le(e)){const i=cr(e,t,o,r);return i&&op(i)&&i.catch(l=>{ea(l,t,o)}),i}const n=[];for(let i=0;i>>1;zi(Gt[r])Lo&&Gt.splice(t,1)}function Sp(e,t,o,r){Oe(e)?o.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&o.push(e),wp()}function S1(e){Sp(e,ai,di,xn)}function $1(e){Sp(e,rr,ui,Cn)}function ta(e,t=null){if(di.length){for(ps=t,ai=[...new Set(di)],di.length=0,xn=0;xnzi(o)-zi(r)),Cn=0;Cne.id==null?1/0:e.id;function _p(e){hs=!1,Al=!0,ta(e),Gt.sort((o,r)=>zi(o)-zi(r));const t=ho;try{for(Lo=0;Lop.trim())),u&&(n=o.map(rp))}let a,s=r[a=Ea(t)]||r[a=Ea(_o(t))];!s&&i&&(s=r[a=Ea(Dn(t))]),s&&to(s,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,to(c,e,6,n)}}function Pp(e,t,o=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!Le(e)){const s=c=>{const d=Pp(c,t,!0);d&&(a=!0,wt(l,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(r.set(e,null),null):(Oe(i)?i.forEach(s=>l[s]=null):wt(l,i),r.set(e,l),l)}function oa(e,t){return!e||!Yl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,Dn(t))||Fe(e,t))}let Rt=null,zp=null;function Ml(e){const t=Rt;return Rt=e,zp=e&&e.type.__scopeId||null,t}function ms(e,t=Rt,o){if(!t||e._n)return e;const r=(...n)=>{r._d&&du(-1);const i=Ml(t),l=e(...n);return Ml(i),r._d&&du(1),l};return r._n=!0,r._c=!0,r._d=!0,r}function Ra(e){const{type:t,vnode:o,proxy:r,withProxy:n,props:i,propsOptions:[l],slots:a,attrs:s,emit:c,render:d,renderCache:u,data:f,setupState:p,ctx:h,inheritAttrs:b}=e;let v,g;const S=Ml(e);try{if(o.shapeFlag&4){const w=n||r;v=Co(d.call(w,w,u,i,p,f,h)),g=s}else{const w=t;v=Co(w.length>1?w(i,{attrs:s,slots:a,emit:c}):w(i,null)),g=t.props?s:P1(s)}}catch(w){pi.length=0,ea(w,e,1),v=ve(Yt)}let I=v;if(g&&b!==!1){const w=Object.keys(g),{shapeFlag:C}=I;w.length&&C&7&&(l&&w.some(mc)&&(g=z1(g,l)),I=zo(I,g))}return o.dirs&&(I=zo(I),I.dirs=I.dirs?I.dirs.concat(o.dirs):o.dirs),o.transition&&(I.transition=o.transition),v=I,Ml(S),v}const P1=e=>{let t;for(const o in e)(o==="class"||o==="style"||Yl(o))&&((t||(t={}))[o]=e[o]);return t},z1=(e,t)=>{const o={};for(const r in e)(!mc(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function T1(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Qd(r,l,c):!!l;if(s&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;function I1(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):$1(e)}function Re(e,t){if(Ct){let o=Ct.provides;const r=Ct.parent&&Ct.parent.provides;r===o&&(o=Ct.provides=Object.create(r)),o[e]=t}}function ge(e,t,o=!1){const r=Ct||Rt;if(r){const n=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return o&&Le(t)?t.call(r.proxy):t}}function Nt(e,t){return kc(e,null,t)}const eu={};function Ke(e,t,o){return kc(e,t,o)}function kc(e,t,{immediate:o,deep:r,flush:n,onTrack:i,onTrigger:l}=tt){const a=Ct;let s,c=!1,d=!1;if(ct(e)?(s=()=>e.value,c=fs(e)):Do(e)?(s=()=>e,r=!0):Oe(e)?(d=!0,c=e.some(g=>Do(g)||fs(g)),s=()=>e.map(g=>{if(ct(g))return g.value;if(Do(g))return Nr(g);if(Le(g))return cr(g,a,2)})):Le(e)?t?s=()=>cr(e,a,2):s=()=>{if(!(a&&a.isUnmounted))return u&&u(),to(e,a,3,[f])}:s=ho,t&&r){const g=s;s=()=>Nr(g())}let u,f=g=>{u=v.onStop=()=>{cr(g,a,4)}};if(Ii)return f=ho,t?o&&to(t,a,3,[s(),d?[]:void 0,f]):s(),ho;let p=d?[]:eu;const h=()=>{if(!!v.active)if(t){const g=v.run();(r||c||(d?g.some((S,I)=>$i(S,p[I])):$i(g,p)))&&(u&&u(),to(t,a,3,[g,p===eu?void 0:p,f]),p=g)}else v.run()};h.allowRecurse=!!t;let b;n==="sync"?b=h:n==="post"?b=()=>Ht(h,a&&a.suspense):b=()=>S1(h);const v=new yc(s,b);return t?o?h():p=v.run():n==="post"?Ht(v.run.bind(v),a&&a.suspense):v.run(),()=>{v.stop(),a&&a.scope&&gc(a.scope.effects,v)}}function R1(e,t,o){const r=this.proxy,n=St(e)?e.includes(".")?Tp(r,e):()=>r[e]:e.bind(r,r);let i;Le(t)?i=t:(i=t.handler,o=t);const l=Ct;Rn(this);const a=kc(n,i.bind(r),o);return l?Rn(l):Ur(),a}function Tp(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;n{Nr(o,t)});else if(M0(e))for(const o in e)Nr(e[o],t);return e}function kp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),$t(()=>{e.isUnmounting=!0}),e}const Qt=[Function,Array],O1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qt,onEnter:Qt,onAfterEnter:Qt,onEnterCancelled:Qt,onBeforeLeave:Qt,onLeave:Qt,onAfterLeave:Qt,onLeaveCancelled:Qt,onBeforeAppear:Qt,onAppear:Qt,onAfterAppear:Qt,onAppearCancelled:Qt},setup(e,{slots:t}){const o=lo(),r=kp();let n;return()=>{const i=t.default&&Ec(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const b of i)if(b.type!==Yt){l=b;break}}const a=Ne(e),{mode:s}=a;if(r.isLeaving)return Oa(l);const c=tu(l);if(!c)return Oa(l);const d=Ti(c,a,r,o);ki(c,d);const u=o.subTree,f=u&&tu(u);let p=!1;const{getTransitionKey:h}=c.type;if(h){const b=h();n===void 0?n=b:b!==n&&(n=b,p=!0)}if(f&&f.type!==Yt&&(!Fr(c,f)||p)){const b=Ti(f,a,r,o);if(ki(f,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,o.update()},Oa(l);s==="in-out"&&c.type!==Yt&&(b.delayLeave=(v,g,S)=>{const I=Ip(r,f);I[String(f.key)]=f,v._leaveCb=()=>{g(),v._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=S})}return l}}},Ep=O1;function Ip(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Ti(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:b,onAppear:v,onAfterAppear:g,onAppearCancelled:S}=t,I=String(e.key),w=Ip(o,e),C=(y,T)=>{y&&to(y,r,9,T)},P=(y,T)=>{const $=T[1];C(y,T),Oe(y)?y.every(B=>B.length<=1)&&$():y.length<=1&&$()},x={mode:i,persisted:l,beforeEnter(y){let T=a;if(!o.isMounted)if(n)T=b||a;else return;y._leaveCb&&y._leaveCb(!0);const $=w[I];$&&Fr(e,$)&&$.el._leaveCb&&$.el._leaveCb(),C(T,[y])},enter(y){let T=s,$=c,B=d;if(!o.isMounted)if(n)T=v||s,$=g||c,B=S||d;else return;let O=!1;const X=y._enterCb=j=>{O||(O=!0,j?C(B,[y]):C($,[y]),x.delayedLeave&&x.delayedLeave(),y._enterCb=void 0)};T?P(T,[y,X]):X()},leave(y,T){const $=String(e.key);if(y._enterCb&&y._enterCb(!0),o.isUnmounting)return T();C(u,[y]);let B=!1;const O=y._leaveCb=X=>{B||(B=!0,T(),X?C(h,[y]):C(p,[y]),y._leaveCb=void 0,w[$]===e&&delete w[$])};w[$]=e,f?P(f,[y,O]):O()},clone(y){return Ti(y,t,o,r)}};return x}function Oa(e){if(ra(e))return e=zo(e),e.children=null,e}function tu(e){return ra(e)?e.children?e.children[0]:void 0:e}function ki(e,t){e.shapeFlag&6&&e.component?ki(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ec(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,ra=e=>e.type.__isKeepAlive;function Rp(e,t){Ap(e,"a",t)}function Op(e,t){Ap(e,"da",t)}function Ap(e,t,o=Ct){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(na(t,r,o),o){let n=o.parent;for(;n&&n.parent;)ra(n.parent.vnode)&&A1(r,t,o,n),n=n.parent}}function A1(e,t,o,r){const n=na(t,e,r,!0);Ui(()=>{gc(r[t],n)},o)}function na(e,t,o=Ct,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(o.isUnmounted)return;Fn(),Rn(o);const a=to(t,o,e,l);return Ur(),Hn(),a});return r?n.unshift(i):n.push(i),i}}const Ko=e=>(t,o=Ct)=>(!Ii||e==="sp")&&na(e,t,o),Go=Ko("bm"),Bt=Ko("m"),M1=Ko("bu"),Mp=Ko("u"),$t=Ko("bum"),Ui=Ko("um"),B1=Ko("sp"),L1=Ko("rtg"),D1=Ko("rtc");function F1(e,t=Ct){na("ec",e,t)}function oo(e,t){const o=Rt;if(o===null)return e;const r=sa(o)||o.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;ipr(t)?!(t.type===Yt||t.type===Ze&&!Dp(t.children)):!0)?e:null}const gs=e=>e?qp(e)?sa(e)||e.proxy:gs(e.parent):null,Bl=wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gs(e.parent),$root:e=>gs(e.root),$emit:e=>e.emit,$options:e=>Hp(e),$forceUpdate:e=>e.f||(e.f=()=>yp(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>R1.bind(e)}),W1={get({_:e},t){const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;let c;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(r!==tt&&Fe(r,t))return l[t]=1,r[t];if(n!==tt&&Fe(n,t))return l[t]=2,n[t];if((c=e.propsOptions[0])&&Fe(c,t))return l[t]=3,i[t];if(o!==tt&&Fe(o,t))return l[t]=4,o[t];vs&&(l[t]=0)}}const d=Bl[t];let u,f;if(d)return t==="$attrs"&&Xt(e,"get",t),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(o!==tt&&Fe(o,t))return l[t]=4,o[t];if(f=s.config.globalProperties,Fe(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return n!==tt&&Fe(n,t)?(n[t]=o,!0):r!==tt&&Fe(r,t)?(r[t]=o,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,propsOptions:i}},l){let a;return!!o[l]||e!==tt&&Fe(e,l)||t!==tt&&Fe(t,l)||(a=i[0])&&Fe(a,l)||Fe(r,l)||Fe(Bl,l)||Fe(n.config.globalProperties,l)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Fe(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};let vs=!0;function V1(e){const t=Hp(e),o=e.proxy,r=e.ctx;vs=!1,t.beforeCreate&&ru(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:p,updated:h,activated:b,deactivated:v,beforeDestroy:g,beforeUnmount:S,destroyed:I,unmounted:w,render:C,renderTracked:P,renderTriggered:x,errorCaptured:y,serverPrefetch:T,expose:$,inheritAttrs:B,components:O,directives:X,filters:j}=t;if(c&&U1(c,r,null,e.appContext.config.unwrapInjectedRef),l)for(const K in l){const re=l[K];Le(re)&&(r[K]=re.bind(o))}if(n){const K=n.call(o,o);kt(K)&&(e.data=io(K))}if(vs=!0,i)for(const K in i){const re=i[K],me=Le(re)?re.bind(o,o):Le(re.get)?re.get.bind(o,o):ho,we=!Le(re)&&Le(re.set)?re.set.bind(o):ho,Se=M({get:me,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Ee=>Se.value=Ee})}if(a)for(const K in a)Fp(a[K],r,o,K);if(s){const K=Le(s)?s.call(o):s;Reflect.ownKeys(K).forEach(re=>{Re(re,K[re])})}d&&ru(d,e,"c");function L(K,re){Oe(re)?re.forEach(me=>K(me.bind(o))):re&&K(re.bind(o))}if(L(Go,u),L(Bt,f),L(M1,p),L(Mp,h),L(Rp,b),L(Op,v),L(F1,y),L(D1,P),L(L1,x),L($t,S),L(Ui,w),L(B1,T),Oe($))if($.length){const K=e.exposed||(e.exposed={});$.forEach(re=>{Object.defineProperty(K,re,{get:()=>o[re],set:me=>o[re]=me})})}else e.exposed||(e.exposed={});C&&e.render===ho&&(e.render=C),B!=null&&(e.inheritAttrs=B),O&&(e.components=O),X&&(e.directives=X)}function U1(e,t,o=ho,r=!1){Oe(e)&&(e=bs(e));for(const n in e){const i=e[n];let l;kt(i)?"default"in i?l=ge(i.from||n,i.default,!0):l=ge(i.from||n):l=ge(i),ct(l)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[n]=l}}function ru(e,t,o){to(Oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Fp(e,t,o,r){const n=r.includes(".")?Tp(o,r):()=>o[r];if(St(e)){const i=t[e];Le(i)&&Ke(n,i)}else if(Le(e))Ke(n,e.bind(o));else if(kt(e))if(Oe(e))e.forEach(i=>Fp(i,t,o,r));else{const i=Le(e.handler)?e.handler.bind(o):t[e.handler];Le(i)&&Ke(n,i,e)}}function Hp(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(c=>Ll(s,c,l,!0)),Ll(s,t,l)),i.set(t,s),s}function Ll(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Ll(e,i,o,!0),n&&n.forEach(l=>Ll(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=K1[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const K1={data:nu,props:Lr,emits:Lr,methods:Lr,computed:Lr,beforeCreate:At,created:At,beforeMount:At,mounted:At,beforeUpdate:At,updated:At,beforeDestroy:At,beforeUnmount:At,destroyed:At,unmounted:At,activated:At,deactivated:At,errorCaptured:At,serverPrefetch:At,components:Lr,directives:Lr,watch:q1,provide:nu,inject:G1};function nu(e,t){return t?e?function(){return wt(Le(e)?e.call(this,this):e,Le(t)?t.call(this,this):t)}:t:e}function G1(e,t){return Lr(bs(e),bs(t))}function bs(e){if(Oe(e)){const t={};for(let o=0;o0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,p]=jp(u,t,!0);wt(l,f),p&&a.push(...p)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return r.set(e,Pn),Pn;if(Oe(i))for(let d=0;d-1,p[1]=b<0||h-1||Fe(p,"default"))&&a.push(u)}}}const c=[l,a];return r.set(e,c),c}function iu(e){return e[0]!=="$"}function lu(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function au(e,t){return lu(e)===lu(t)}function su(e,t){return Oe(t)?t.findIndex(o=>au(o,e)):Le(t)&&au(t,e)?0:-1}const Wp=e=>e[0]==="_"||e==="$stable",Rc=e=>Oe(e)?e.map(Co):[Co(e)],Z1=(e,t,o)=>{if(t._n)return t;const r=ms((...n)=>Rc(t(...n)),o);return r._c=!1,r},Vp=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Wp(n))continue;const i=e[n];if(Le(i))t[n]=Z1(n,i,r);else if(i!=null){const l=Rc(i);t[n]=()=>l}}},Up=(e,t)=>{const o=Rc(t);e.slots.default=()=>o},J1=(e,t)=>{if(e.vnode.shapeFlag&32){const o=t._;o?(e.slots=Ne(t),Ol(t,"_",o)):Vp(t,e.slots={})}else e.slots={},t&&Up(e,t);Ol(e.slots,aa,1)},Q1=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=tt;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:(wt(n,t),!o&&a===1&&delete n._):(i=!t.$stable,Vp(t,n)),l=t}else t&&(Up(e,t),l={default:1});if(i)for(const a in n)!Wp(a)&&!(a in l)&&delete n[a]};function Kp(){return{app:null,config:{isNativeTag:k0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ex=0;function tx(e,t){return function(r,n=null){Le(r)||(r=Object.assign({},r)),n!=null&&!kt(n)&&(n=null);const i=Kp(),l=new Set;let a=!1;const s=i.app={_uid:ex++,_component:r,_props:n,_container:null,_context:i,_instance:null,version:wx,get config(){return i.config},set config(c){},use(c,...d){return l.has(c)||(c&&Le(c.install)?(l.add(c),c.install(s,...d)):Le(c)&&(l.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,u){if(!a){const f=ve(r,n);return f.appContext=i,d&&t?t(f,c):e(f,c,u),a=!0,s._container=c,c.__vue_app__=s,sa(f.component)||f.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Cs(e,t,o,r,n=!1){if(Oe(e)){e.forEach((f,p)=>Cs(f,t&&(Oe(t)?t[p]:t),o,r,n));return}if(fi(r)&&!n)return;const i=r.shapeFlag&4?sa(r.component)||r.component.proxy:r.el,l=n?null:i,{i:a,r:s}=e,c=t&&t.r,d=a.refs===tt?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==s&&(St(c)?(d[c]=null,Fe(u,c)&&(u[c]=null)):ct(c)&&(c.value=null)),Le(s))cr(s,a,12,[l,d]);else{const f=St(s),p=ct(s);if(f||p){const h=()=>{if(e.f){const b=f?d[s]:s.value;n?Oe(b)&&gc(b,i):Oe(b)?b.includes(i)||b.push(i):f?(d[s]=[i],Fe(u,s)&&(u[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else f?(d[s]=l,Fe(u,s)&&(u[s]=l)):p&&(s.value=l,e.k&&(d[e.k]=l))};l?(h.id=-1,Ht(h,o)):h()}}}const Ht=I1;function ox(e){return rx(e)}function rx(e,t){const o=D0();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:p=ho,cloneNode:h,insertStaticContent:b}=e,v=(_,A,W,J=null,ee=null,D=null,te=!1,q=null,V=!!A.dynamicChildren)=>{if(_===A)return;_&&!Fr(_,A)&&(J=ue(_),De(_,ee,D,!0),_=null),A.patchFlag===-2&&(V=!1,A.dynamicChildren=null);const{type:z,ref:H,shapeFlag:ie}=A;switch(z){case la:g(_,A,W,J);break;case Yt:S(_,A,W,J);break;case Aa:_==null&&I(A,W,J,te);break;case Ze:X(_,A,W,J,ee,D,te,q,V);break;default:ie&1?P(_,A,W,J,ee,D,te,q,V):ie&6?j(_,A,W,J,ee,D,te,q,V):(ie&64||ie&128)&&z.process(_,A,W,J,ee,D,te,q,V,Ae)}H!=null&&ee&&Cs(H,_&&_.ref,D,A||_,!A)},g=(_,A,W,J)=>{if(_==null)r(A.el=a(A.children),W,J);else{const ee=A.el=_.el;A.children!==_.children&&c(ee,A.children)}},S=(_,A,W,J)=>{_==null?r(A.el=s(A.children||""),W,J):A.el=_.el},I=(_,A,W,J)=>{[_.el,_.anchor]=b(_.children,A,W,J,_.el,_.anchor)},w=({el:_,anchor:A},W,J)=>{let ee;for(;_&&_!==A;)ee=f(_),r(_,W,J),_=ee;r(A,W,J)},C=({el:_,anchor:A})=>{let W;for(;_&&_!==A;)W=f(_),n(_),_=W;n(A)},P=(_,A,W,J,ee,D,te,q,V)=>{te=te||A.type==="svg",_==null?x(A,W,J,ee,D,te,q,V):$(_,A,ee,D,te,q,V)},x=(_,A,W,J,ee,D,te,q)=>{let V,z;const{type:H,props:ie,shapeFlag:se,transition:xe,patchFlag:Ie,dirs:Me}=_;if(_.el&&h!==void 0&&Ie===-1)V=_.el=h(_.el);else{if(V=_.el=l(_.type,D,ie&&ie.is,ie),se&8?d(V,_.children):se&16&&T(_.children,V,null,J,ee,D&&H!=="foreignObject",te,q),Me&&Er(_,null,J,"created"),ie){for(const Ue in ie)Ue!=="value"&&!Tl(Ue)&&i(V,Ue,null,ie[Ue],D,_.children,J,ee,Z);"value"in ie&&i(V,"value",null,ie.value),(z=ie.onVnodeBeforeMount)&&vo(z,J,_)}y(V,_,_.scopeId,te,J)}Me&&Er(_,null,J,"beforeMount");const je=(!ee||ee&&!ee.pendingBranch)&&xe&&!xe.persisted;je&&xe.beforeEnter(V),r(V,A,W),((z=ie&&ie.onVnodeMounted)||je||Me)&&Ht(()=>{z&&vo(z,J,_),je&&xe.enter(V),Me&&Er(_,null,J,"mounted")},ee)},y=(_,A,W,J,ee)=>{if(W&&p(_,W),J)for(let D=0;D{for(let z=V;z<_.length;z++){const H=_[z]=q?ir(_[z]):Co(_[z]);v(null,H,A,W,J,ee,D,te,q)}},$=(_,A,W,J,ee,D,te)=>{const q=A.el=_.el;let{patchFlag:V,dynamicChildren:z,dirs:H}=A;V|=_.patchFlag&16;const ie=_.props||tt,se=A.props||tt;let xe;W&&Ir(W,!1),(xe=se.onVnodeBeforeUpdate)&&vo(xe,W,A,_),H&&Er(A,_,W,"beforeUpdate"),W&&Ir(W,!0);const Ie=ee&&A.type!=="foreignObject";if(z?B(_.dynamicChildren,z,q,W,J,Ie,D):te||me(_,A,q,null,W,J,Ie,D,!1),V>0){if(V&16)O(q,A,ie,se,W,J,ee);else if(V&2&&ie.class!==se.class&&i(q,"class",null,se.class,ee),V&4&&i(q,"style",ie.style,se.style,ee),V&8){const Me=A.dynamicProps;for(let je=0;je{xe&&vo(xe,W,A,_),H&&Er(A,_,W,"updated")},J)},B=(_,A,W,J,ee,D,te)=>{for(let q=0;q{if(W!==J){for(const q in J){if(Tl(q))continue;const V=J[q],z=W[q];V!==z&&q!=="value"&&i(_,q,z,V,te,A.children,ee,D,Z)}if(W!==tt)for(const q in W)!Tl(q)&&!(q in J)&&i(_,q,W[q],null,te,A.children,ee,D,Z);"value"in J&&i(_,"value",W.value,J.value)}},X=(_,A,W,J,ee,D,te,q,V)=>{const z=A.el=_?_.el:a(""),H=A.anchor=_?_.anchor:a("");let{patchFlag:ie,dynamicChildren:se,slotScopeIds:xe}=A;xe&&(q=q?q.concat(xe):xe),_==null?(r(z,W,J),r(H,W,J),T(A.children,W,H,ee,D,te,q,V)):ie>0&&ie&64&&se&&_.dynamicChildren?(B(_.dynamicChildren,se,W,ee,D,te,q),(A.key!=null||ee&&A===ee.subTree)&&Oc(_,A,!0)):me(_,A,W,H,ee,D,te,q,V)},j=(_,A,W,J,ee,D,te,q,V)=>{A.slotScopeIds=q,_==null?A.shapeFlag&512?ee.ctx.activate(A,W,J,te,V):G(A,W,J,ee,D,te,V):L(_,A,V)},G=(_,A,W,J,ee,D,te)=>{const q=_.component=mx(_,J,ee);if(ra(_)&&(q.ctx.renderer=Ae),gx(q),q.asyncDep){if(ee&&ee.registerDep(q,K),!_.el){const V=q.subTree=ve(Yt);S(null,V,A,W)}return}K(q,_,A,W,ee,D,te)},L=(_,A,W)=>{const J=A.component=_.component;if(T1(_,A,W))if(J.asyncDep&&!J.asyncResolved){re(J,A,W);return}else J.next=A,w1(J.update),J.update();else A.el=_.el,J.vnode=A},K=(_,A,W,J,ee,D,te)=>{const q=()=>{if(_.isMounted){let{next:H,bu:ie,u:se,parent:xe,vnode:Ie}=_,Me=H,je;Ir(_,!1),H?(H.el=Ie.el,re(_,H,te)):H=Ie,ie&&Ia(ie),(je=H.props&&H.props.onVnodeBeforeUpdate)&&vo(je,xe,H,Ie),Ir(_,!0);const Ue=Ra(_),_t=_.subTree;_.subTree=Ue,v(_t,Ue,u(_t.el),ue(_t),_,ee,D),H.el=Ue.el,Me===null&&k1(_,Ue.el),se&&Ht(se,ee),(je=H.props&&H.props.onVnodeUpdated)&&Ht(()=>vo(je,xe,H,Ie),ee)}else{let H;const{el:ie,props:se}=A,{bm:xe,m:Ie,parent:Me}=_,je=fi(A);if(Ir(_,!1),xe&&Ia(xe),!je&&(H=se&&se.onVnodeBeforeMount)&&vo(H,Me,A),Ir(_,!0),ie&&ye){const Ue=()=>{_.subTree=Ra(_),ye(ie,_.subTree,_,ee,null)};je?A.type.__asyncLoader().then(()=>!_.isUnmounted&&Ue()):Ue()}else{const Ue=_.subTree=Ra(_);v(null,Ue,W,J,_,ee,D),A.el=Ue.el}if(Ie&&Ht(Ie,ee),!je&&(H=se&&se.onVnodeMounted)){const Ue=A;Ht(()=>vo(H,Me,Ue),ee)}(A.shapeFlag&256||Me&&fi(Me.vnode)&&Me.vnode.shapeFlag&256)&&_.a&&Ht(_.a,ee),_.isMounted=!0,A=W=J=null}},V=_.effect=new yc(q,()=>yp(z),_.scope),z=_.update=()=>V.run();z.id=_.uid,Ir(_,!0),z()},re=(_,A,W)=>{A.component=_;const J=_.vnode.props;_.vnode=A,_.next=null,X1(_,A.props,J,W),Q1(_,A.children,W),Fn(),ta(void 0,_.update),Hn()},me=(_,A,W,J,ee,D,te,q,V=!1)=>{const z=_&&_.children,H=_?_.shapeFlag:0,ie=A.children,{patchFlag:se,shapeFlag:xe}=A;if(se>0){if(se&128){Se(z,ie,W,J,ee,D,te,q,V);return}else if(se&256){we(z,ie,W,J,ee,D,te,q,V);return}}xe&8?(H&16&&Z(z,ee,D),ie!==z&&d(W,ie)):H&16?xe&16?Se(z,ie,W,J,ee,D,te,q,V):Z(z,ee,D,!0):(H&8&&d(W,""),xe&16&&T(ie,W,J,ee,D,te,q,V))},we=(_,A,W,J,ee,D,te,q,V)=>{_=_||Pn,A=A||Pn;const z=_.length,H=A.length,ie=Math.min(z,H);let se;for(se=0;seH?Z(_,ee,D,!0,!1,ie):T(A,W,J,ee,D,te,q,V,ie)},Se=(_,A,W,J,ee,D,te,q,V)=>{let z=0;const H=A.length;let ie=_.length-1,se=H-1;for(;z<=ie&&z<=se;){const xe=_[z],Ie=A[z]=V?ir(A[z]):Co(A[z]);if(Fr(xe,Ie))v(xe,Ie,W,null,ee,D,te,q,V);else break;z++}for(;z<=ie&&z<=se;){const xe=_[ie],Ie=A[se]=V?ir(A[se]):Co(A[se]);if(Fr(xe,Ie))v(xe,Ie,W,null,ee,D,te,q,V);else break;ie--,se--}if(z>ie){if(z<=se){const xe=se+1,Ie=xese)for(;z<=ie;)De(_[z],ee,D,!0),z++;else{const xe=z,Ie=z,Me=new Map;for(z=Ie;z<=se;z++){const ne=A[z]=V?ir(A[z]):Co(A[z]);ne.key!=null&&Me.set(ne.key,z)}let je,Ue=0;const _t=se-Ie+1;let go=!1,$r=0;const Lt=new Array(_t);for(z=0;z<_t;z++)Lt[z]=0;for(z=xe;z<=ie;z++){const ne=_[z];if(Ue>=_t){De(ne,ee,D,!0);continue}let fe;if(ne.key!=null)fe=Me.get(ne.key);else for(je=Ie;je<=se;je++)if(Lt[je-Ie]===0&&Fr(ne,A[je])){fe=je;break}fe===void 0?De(ne,ee,D,!0):(Lt[fe-Ie]=z+1,fe>=$r?$r=fe:go=!0,v(ne,A[fe],W,null,ee,D,te,q,V),Ue++)}const _r=go?nx(Lt):Pn;for(je=_r.length-1,z=_t-1;z>=0;z--){const ne=Ie+z,fe=A[ne],ke=ne+1{const{el:D,type:te,transition:q,children:V,shapeFlag:z}=_;if(z&6){Ee(_.component.subTree,A,W,J);return}if(z&128){_.suspense.move(A,W,J);return}if(z&64){te.move(_,A,W,Ae);return}if(te===Ze){r(D,A,W);for(let ie=0;ieq.enter(D),ee);else{const{leave:ie,delayLeave:se,afterLeave:xe}=q,Ie=()=>r(D,A,W),Me=()=>{ie(D,()=>{Ie(),xe&&xe()})};se?se(D,Ie,Me):Me()}else r(D,A,W)},De=(_,A,W,J=!1,ee=!1)=>{const{type:D,props:te,ref:q,children:V,dynamicChildren:z,shapeFlag:H,patchFlag:ie,dirs:se}=_;if(q!=null&&Cs(q,null,W,_,!0),H&256){A.ctx.deactivate(_);return}const xe=H&1&&se,Ie=!fi(_);let Me;if(Ie&&(Me=te&&te.onVnodeBeforeUnmount)&&vo(Me,A,_),H&6)Q(_.component,W,J);else{if(H&128){_.suspense.unmount(W,J);return}xe&&Er(_,null,A,"beforeUnmount"),H&64?_.type.remove(_,A,W,ee,Ae,J):z&&(D!==Ze||ie>0&&ie&64)?Z(z,A,W,!1,!0):(D===Ze&&ie&384||!ee&&H&16)&&Z(V,A,W),J&&Xe(_)}(Ie&&(Me=te&&te.onVnodeUnmounted)||xe)&&Ht(()=>{Me&&vo(Me,A,_),xe&&Er(_,null,A,"unmounted")},W)},Xe=_=>{const{type:A,el:W,anchor:J,transition:ee}=_;if(A===Ze){Y(W,J);return}if(A===Aa){C(_);return}const D=()=>{n(W),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(_.shapeFlag&1&&ee&&!ee.persisted){const{leave:te,delayLeave:q}=ee,V=()=>te(W,D);q?q(_.el,D,V):V()}else D()},Y=(_,A)=>{let W;for(;_!==A;)W=f(_),n(_),_=W;n(A)},Q=(_,A,W)=>{const{bum:J,scope:ee,update:D,subTree:te,um:q}=_;J&&Ia(J),ee.stop(),D&&(D.active=!1,De(te,_,A,W)),q&&Ht(q,A),Ht(()=>{_.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},Z=(_,A,W,J=!1,ee=!1,D=0)=>{for(let te=D;te<_.length;te++)De(_[te],A,W,J,ee)},ue=_=>_.shapeFlag&6?ue(_.component.subTree):_.shapeFlag&128?_.suspense.next():f(_.anchor||_.el),pe=(_,A,W)=>{_==null?A._vnode&&De(A._vnode,null,null,!0):v(A._vnode||null,_,A,null,null,null,W),$p(),A._vnode=_},Ae={p:v,um:De,m:Ee,r:Xe,mt:G,mc:T,pc:me,pbc:B,n:ue,o:e};let ze,ye;return t&&([ze,ye]=t(Ae)),{render:pe,hydrate:ze,createApp:tx(pe,ze)}}function Ir({effect:e,update:t},o){e.allowRecurse=t.allowRecurse=o}function Oc(e,t,o=!1){const r=e.children,n=t.children;if(Oe(r)&&Oe(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}const ix=e=>e.__isTeleport,hi=e=>e&&(e.disabled||e.disabled===""),cu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ys=(e,t)=>{const o=e&&e.to;return St(o)?t?t(o):null:o},lx={__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,c){const{mc:d,pc:u,pbc:f,o:{insert:p,querySelector:h,createText:b,createComment:v}}=c,g=hi(t.props);let{shapeFlag:S,children:I,dynamicChildren:w}=t;if(e==null){const C=t.el=b(""),P=t.anchor=b("");p(C,o,r),p(P,o,r);const x=t.target=ys(t.props,h),y=t.targetAnchor=b("");x&&(p(y,x),l=l||cu(x));const T=($,B)=>{S&16&&d(I,$,B,n,i,l,a,s)};g?T(o,P):x&&T(x,y)}else{t.el=e.el;const C=t.anchor=e.anchor,P=t.target=e.target,x=t.targetAnchor=e.targetAnchor,y=hi(e.props),T=y?o:P,$=y?C:x;if(l=l||cu(P),w?(f(e.dynamicChildren,w,T,n,i,l,a),Oc(e,t,!0)):s||u(e,t,T,$,n,i,l,a,!1),g)y||cl(t,o,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=ys(t.props,h);B&&cl(t,B,null,c,0)}else y&&cl(t,P,x,c,1)}},remove(e,t,o,r,{um:n,o:{remove:i}},l){const{shapeFlag:a,children:s,anchor:c,targetAnchor:d,target:u,props:f}=e;if(u&&i(d),(l||!hi(f))&&(i(c),a&16))for(let p=0;p0?fo||Pn:null,sx(),Ei>0&&fo&&fo.push(e),e}function Ss(e,t,o,r,n){return cx(ve(e,t,o,r,n,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function Fr(e,t){return e.type===t.type&&e.key===t.key}const aa="__vInternal",Gp=({key:e})=>e!=null?e:null,kl=({ref:e,ref_key:t,ref_for:o})=>e!=null?St(e)||ct(e)||Le(e)?{i:Rt,r:e,k:t,f:!!o}:e:null;function dx(e,t=null,o=null,r=0,n=null,i=e===Ze?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gp(t),ref:t&&kl(t),scopeId:zp,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null};return a?(Ac(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=St(o)?8:16),Ei>0&&!l&&fo&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&fo.push(s),s}const ve=ux;function ux(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===Bp)&&(e=Yt),pr(e)){const a=zo(e,t,!0);return o&&Ac(a,o),Ei>0&&!i&&fo&&(a.shapeFlag&6?fo[fo.indexOf(e)]=a:fo.push(a)),a.patchFlag|=-2,a}if(yx(e)&&(e=e.__vccOpts),t){t=fx(t);let{class:a,style:s}=t;a&&!St(a)&&(t.class=pc(a)),kt(s)&&(mp(s)&&!Oe(s)&&(s=wt({},s)),t.style=hc(s))}const l=St(e)?1:E1(e)?128:ix(e)?64:kt(e)?4:Le(e)?2:0;return dx(e,t,o,r,n,l,i,!0)}function fx(e){return e?mp(e)||aa in e?wt({},e):e:null}function zo(e,t,o=!1){const{props:r,ref:n,patchFlag:i,children:l}=e,a=t?qo(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gp(a),ref:t&&t.ref?o&&n?Oe(n)?n.concat(kl(t)):[n,kl(t)]:kl(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zo(e.ssContent),ssFallback:e.ssFallback&&zo(e.ssFallback),el:e.el,anchor:e.anchor}}function Zr(e=" ",t=0){return ve(la,null,e,t)}function Co(e){return e==null||typeof e=="boolean"?ve(Yt):Oe(e)?ve(Ze,null,e.slice()):typeof e=="object"?ir(e):ve(la,null,String(e))}function ir(e){return e.el===null||e.memo?e:zo(e)}function Ac(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Oe(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Ac(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!(aa in t)?t._ctx=Rt:n===3&&Rt&&(Rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Le(t)?(t={default:t,_ctx:Rt},o=32):(t=String(t),r&64?(o=16,t=[Zr(t)]):o=8);e.children=t,e.shapeFlag|=o}function qo(...e){const t={};for(let o=0;oCt||Rt,Rn=e=>{Ct=e,e.scope.on()},Ur=()=>{Ct&&Ct.scope.off(),Ct=null};function qp(e){return e.vnode.shapeFlag&4}let Ii=!1;function gx(e,t=!1){Ii=t;const{props:o,children:r}=e.vnode,n=qp(e);Y1(e,o,n,t),J1(e,r);const i=n?vx(e,t):void 0;return Ii=!1,i}function vx(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=hr(new Proxy(e.ctx,W1));const{setup:r}=o;if(r){const n=e.setupContext=r.length>1?xx(e):null;Rn(e),Fn();const i=cr(r,e,0,[e.props,n]);if(Hn(),Ur(),op(i)){if(i.then(Ur,Ur),t)return i.then(l=>{uu(e,l,t)}).catch(l=>{ea(l,e,0)});e.asyncDep=i}else uu(e,i,t)}else Yp(e,t)}function uu(e,t,o){Le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=xp(t)),Yp(e,o)}let fu;function Yp(e,t,o){const r=e.type;if(!e.render){if(!t&&fu&&!r.render){const n=r.template;if(n){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:s}=r,c=wt(wt({isCustomElement:i,delimiters:a},l),s);r.render=fu(n,c)}}e.render=r.render||ho}Rn(e),Fn(),V1(e),Hn(),Ur()}function bx(e){return new Proxy(e.attrs,{get(t,o){return Xt(e,"get","$attrs"),t[o]}})}function xx(e){const t=r=>{e.exposed=r||{}};let o;return{get attrs(){return o||(o=bx(e))},slots:e.slots,emit:e.emit,expose:t}}function sa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xp(hr(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Bl)return Bl[o](e)}}))}function Cx(e,t=!0){return Le(e)?e.displayName||e.name:e.name||t&&e.__name}function yx(e){return Le(e)&&"__vccOpts"in e}const M=(e,t)=>x1(e,t,Ii);function m(e,t,o){const r=arguments.length;return r===2?kt(t)&&!Oe(t)?pr(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&pr(o)&&(o=[o]),ve(e,t,o))}const wx="3.2.37",Sx="http://www.w3.org/2000/svg",Hr=typeof document<"u"?document:null,hu=Hr&&Hr.createElement("template"),$x={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t?Hr.createElementNS(Sx,e):Hr.createElement(e,o?{is:o}:void 0);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Hr.createTextNode(e),createComment:e=>Hr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{hu.innerHTML=r?`${e}`:e;const a=hu.content;if(r){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function _x(e,t,o){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}function Px(e,t,o){const r=e.style,n=St(o);if(o&&!n){for(const i in o)$s(r,i,o[i]);if(t&&!St(t))for(const i in t)o[i]==null&&$s(r,i,"")}else{const i=r.display;n?t!==o&&(r.cssText=o):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const pu=/\s*!important$/;function $s(e,t,o){if(Oe(o))o.forEach(r=>$s(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const r=zx(e,t);pu.test(o)?e.setProperty(Dn(r),o.replace(pu,""),"important"):e[r]=o}}const mu=["Webkit","Moz","ms"],Ma={};function zx(e,t){const o=Ma[t];if(o)return o;let r=_o(t);if(r!=="filter"&&r in e)return Ma[t]=r;r=Jl(r);for(let n=0;n{let e=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const o=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(o&&Number(o[1])<=53)}return[e,t]})();let _s=0;const Ix=Promise.resolve(),Rx=()=>{_s=0},Ox=()=>_s||(Ix.then(Rx),_s=Xp());function Ax(e,t,o,r){e.addEventListener(t,o,r)}function Mx(e,t,o,r){e.removeEventListener(t,o,r)}function Bx(e,t,o,r,n=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[a,s]=Lx(t);if(r){const c=i[t]=Dx(r,n);Ax(e,a,c,s)}else l&&(Mx(e,a,l,s),i[t]=void 0)}}const vu=/(?:Once|Passive|Capture)$/;function Lx(e){let t;if(vu.test(e)){t={};let o;for(;o=e.match(vu);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[Dn(e.slice(2)),t]}function Dx(e,t){const o=r=>{const n=r.timeStamp||Xp();(Ex||n>=o.attached-1)&&to(Fx(r,o.value),t,5,[r])};return o.value=e,o.attached=Ox(),o}function Fx(e,t){if(Oe(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const bu=/^on[a-z]/,Hx=(e,t,o,r,n=!1,i,l,a,s)=>{t==="class"?_x(e,r,n):t==="style"?Px(e,o,r):Yl(t)?mc(t)||Bx(e,t,o,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nx(e,t,r,n))?kx(e,t,r,i,l,a,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Tx(e,t,r,n))};function Nx(e,t,o,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&bu.test(t)&&Le(o)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||bu.test(t)&&St(o)?!1:t in e}const Qo="transition",Yn="animation",Ot=(e,{slots:t})=>m(Ep,Jp(e),t);Ot.displayName="Transition";const Zp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jx=Ot.props=wt({},Ep.props,Zp),Rr=(e,t=[])=>{Oe(e)?e.forEach(o=>o(...t)):e&&e(...t)},xu=e=>e?Oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Jp(e){const t={};for(const O in e)O in Zp||(t[O]=e[O]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:d=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:p=`${o}-leave-to`}=e,h=Wx(n),b=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:S,onEnterCancelled:I,onLeave:w,onLeaveCancelled:C,onBeforeAppear:P=g,onAppear:x=S,onAppearCancelled:y=I}=t,T=(O,X,j)=>{nr(O,X?d:a),nr(O,X?c:l),j&&j()},$=(O,X)=>{O._isLeaving=!1,nr(O,u),nr(O,p),nr(O,f),X&&X()},B=O=>(X,j)=>{const G=O?x:S,L=()=>T(X,O,j);Rr(G,[X,L]),Cu(()=>{nr(X,O?s:i),Mo(X,O?d:a),xu(G)||yu(X,r,b,L)})};return wt(t,{onBeforeEnter(O){Rr(g,[O]),Mo(O,i),Mo(O,l)},onBeforeAppear(O){Rr(P,[O]),Mo(O,s),Mo(O,c)},onEnter:B(!1),onAppear:B(!0),onLeave(O,X){O._isLeaving=!0;const j=()=>$(O,X);Mo(O,u),em(),Mo(O,f),Cu(()=>{!O._isLeaving||(nr(O,u),Mo(O,p),xu(w)||yu(O,r,v,j))}),Rr(w,[O,j])},onEnterCancelled(O){T(O,!1),Rr(I,[O])},onAppearCancelled(O){T(O,!0),Rr(y,[O])},onLeaveCancelled(O){$(O),Rr(C,[O])}})}function Wx(e){if(e==null)return null;if(kt(e))return[Ba(e.enter),Ba(e.leave)];{const t=Ba(e);return[t,t]}}function Ba(e){return rp(e)}function Mo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e._vtc||(e._vtc=new Set)).add(t)}function nr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function Cu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vx=0;function yu(e,t,o,r){const n=e._endId=++Vx,i=()=>{n===e._endId&&r()};if(o)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Qp(e,t);if(!l)return r();const c=l+"end";let d=0;const u=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++d>=s&&u()};setTimeout(()=>{d(o[h]||"").split(", "),n=r(Qo+"Delay"),i=r(Qo+"Duration"),l=wu(n,i),a=r(Yn+"Delay"),s=r(Yn+"Duration"),c=wu(a,s);let d=null,u=0,f=0;t===Qo?l>0&&(d=Qo,u=l,f=i.length):t===Yn?c>0&&(d=Yn,u=c,f=s.length):(u=Math.max(l,c),d=u>0?l>c?Qo:Yn:null,f=d?d===Qo?i.length:s.length:0);const p=d===Qo&&/\b(transform|all)(,|$)/.test(o[Qo+"Property"]);return{type:d,timeout:u,propCount:f,hasTransform:p}}function wu(e,t){for(;e.lengthSu(o)+Su(e[r])))}function Su(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function em(){return document.body.offsetHeight}const tm=new WeakMap,om=new WeakMap,Ux={name:"TransitionGroup",props:wt({},jx,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=lo(),r=kp();let n,i;return Mp(()=>{if(!n.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!Xx(n[0].el,o.vnode.el,l))return;n.forEach(Gx),n.forEach(qx);const a=n.filter(Yx);em(),a.forEach(s=>{const c=s.el,d=c.style;Mo(c,l),d.transform=d.webkitTransform=d.transitionDuration="";const u=c._moveCb=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",u),c._moveCb=null,nr(c,l))};c.addEventListener("transitionend",u)})}),()=>{const l=Ne(e),a=Jp(l);let s=l.tag||Ze;n=i,i=t.default?Ec(t.default()):[];for(let c=0;c{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),o.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(r);const{hasTransform:i}=Qp(r);return n.removeChild(r),i}const On={beforeMount(e,{value:t},{transition:o}){e._vod=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):Xn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),Xn(e,!0),r.enter(e)):r.leave(e,()=>{Xn(e,!1)}):Xn(e,t))},beforeUnmount(e,{value:t}){Xn(e,t)}};function Xn(e,t){e.style.display=t?e._vod:"none"}const Zx=wt({patchProp:Hx},$x);let $u;function Jx(){return $u||($u=ox(Zx))}const Mc=(...e)=>{const t=Jx().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=Qx(r);if(!n)return;const i=t._component;!Le(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.innerHTML="";const l=o(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t};function Qx(e){return St(e)?document.querySelector(e):e}if(typeof window<"u"){let e=function(){var t=document.body,o=document.getElementById("__svg__icons__dom__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__svg__icons__dom__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='',t.insertBefore(o,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}let Dl=[];const rm=new WeakMap;function eC(){Dl.forEach(e=>e(...rm.get(e))),Dl=[]}function tC(e,...t){rm.set(e,t),!Dl.includes(e)&&Dl.push(e)===1&&requestAnimationFrame(eC)}function _u(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function An(e){return e.composedPath()[0]||null}function co(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function La(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Bc(e,t){const o=e.trim().split(/\s+/g),r={top:o[0]};switch(o.length){case 1:r.right=o[0],r.bottom=o[0],r.left=o[0];break;case 2:r.right=o[1],r.left=o[1],r.bottom=o[0];break;case 3:r.right=o[1],r.bottom=o[2],r.left=o[1];break;case 4:r.right=o[1],r.bottom=o[2],r.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function oC(e,t){const[o,r]=e.split(" ");return t?t==="row"?o:r:{row:o,col:r||o}}const Pu={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function nm(e,t,o){t/=100,o/=100;const r=t*Math.min(o,1-o)+o;return[e,r?(2-2*o/r)*100:0,r*100]}function El(e,t,o){t/=100,o/=100;const r=o-o*t/2,n=Math.min(r,1-r);return[e,n?(o-r)/n*100:0,r*100]}function ar(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Ps(e,t,o){e/=255,t/=255,o/=255;let r=Math.max(e,t,o),n=r-Math.min(e,t,o),i=n&&(r==e?(t-o)/n:r==t?2+(o-e)/n:4+(e-t)/n);return[60*(i<0?i+6:i),r&&n/r*100,r*100]}function zs(e,t,o){e/=255,t/=255,o/=255;let r=Math.max(e,t,o),n=r-Math.min(e,t,o),i=1-Math.abs(r+r-n-1),l=n&&(r==e?(t-o)/n:r==t?2+(o-e)/n:4+(e-t)/n);return[60*(l<0?l+6:l),i?n/i*100:0,(r+r-n)*50]}function Ts(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const Eo="^\\s*",Io="\\s*$",mr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",qt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",jr="([0-9A-Fa-f])",Wr="([0-9A-Fa-f]{2})",rC=new RegExp(`${Eo}hsl\\s*\\(${qt},${mr},${mr}\\)${Io}`),nC=new RegExp(`${Eo}hsv\\s*\\(${qt},${mr},${mr}\\)${Io}`),iC=new RegExp(`${Eo}hsla\\s*\\(${qt},${mr},${mr},${qt}\\)${Io}`),lC=new RegExp(`${Eo}hsva\\s*\\(${qt},${mr},${mr},${qt}\\)${Io}`),aC=new RegExp(`${Eo}rgb\\s*\\(${qt},${qt},${qt}\\)${Io}`),sC=new RegExp(`${Eo}rgba\\s*\\(${qt},${qt},${qt},${qt}\\)${Io}`),Lc=new RegExp(`${Eo}#${jr}${jr}${jr}${Io}`),Dc=new RegExp(`${Eo}#${Wr}${Wr}${Wr}${Io}`),Fc=new RegExp(`${Eo}#${jr}${jr}${jr}${jr}${Io}`),Hc=new RegExp(`${Eo}#${Wr}${Wr}${Wr}${Wr}${Io}`);function Dt(e){return parseInt(e,16)}function zn(e){try{let t;if(t=iC.exec(e))return[To(t[1]),gt(t[5]),gt(t[9]),Ho(t[13])];if(t=rC.exec(e))return[To(t[1]),gt(t[5]),gt(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Kr(e){try{let t;if(t=lC.exec(e))return[To(t[1]),gt(t[5]),gt(t[9]),Ho(t[13])];if(t=nC.exec(e))return[To(t[1]),gt(t[5]),gt(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function xt(e){try{let t;if(t=Dc.exec(e))return[Dt(t[1]),Dt(t[2]),Dt(t[3]),1];if(t=aC.exec(e))return[dt(t[1]),dt(t[5]),dt(t[9]),1];if(t=sC.exec(e))return[dt(t[1]),dt(t[5]),dt(t[9]),Ho(t[13])];if(t=Lc.exec(e))return[Dt(t[1]+t[1]),Dt(t[2]+t[2]),Dt(t[3]+t[3]),1];if(t=Hc.exec(e))return[Dt(t[1]),Dt(t[2]),Dt(t[3]),Ho(Dt(t[4])/255)];if(t=Fc.exec(e))return[Dt(t[1]+t[1]),Dt(t[2]+t[2]),Dt(t[3]+t[3]),Ho(Dt(t[4]+t[4])/255)];if(e in Pu)return xt(Pu[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function cC(e){return e>1?1:e<0?0:e}function dC(e,t,o){return`rgb(${dt(e)}, ${dt(t)}, ${dt(o)})`}function ks(e,t,o,r){return`rgba(${dt(e)}, ${dt(t)}, ${dt(o)}, ${cC(r)})`}function Da(e,t,o,r,n){return dt((e*t*(1-r)+o*r)/n)}function Ce(e,t){Array.isArray(e)||(e=xt(e)),Array.isArray(t)||(t=xt(t));const o=e[3],r=t[3],n=Ho(o+r-o*r);return ks(Da(e[0],o,t[0],r,n),Da(e[1],o,t[1],r,n),Da(e[2],o,t[2],r,n),n)}function ae(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:xt(e);return t.alpha?ks(o,r,n,t.alpha):ks(o,r,n,i)}function pt(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:xt(e),{lightness:l=1,alpha:a=1}=t;return wo([o*l,r*l,n*l,i*a])}function Ho(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function To(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function dt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function gt(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Es(e){const[t,o,r]=Array.isArray(e)?e:xt(e);return dC(t,o,r)}function wo(e){const[t,o,r]=e;return 3 in e?`rgba(${dt(t)}, ${dt(o)}, ${dt(r)}, ${Ho(e[3])})`:`rgba(${dt(t)}, ${dt(o)}, ${dt(r)}, 1)`}function Is(e){return`hsv(${To(e[0])}, ${gt(e[1])}%, ${gt(e[2])}%)`}function Gr(e){const[t,o,r]=e;return 3 in e?`hsva(${To(t)}, ${gt(o)}%, ${gt(r)}%, ${Ho(e[3])})`:`hsva(${To(t)}, ${gt(o)}%, ${gt(r)}%, 1)`}function Rs(e){return`hsl(${To(e[0])}, ${gt(e[1])}%, ${gt(e[2])}%)`}function dr(e){const[t,o,r]=e;return 3 in e?`hsla(${To(t)}, ${gt(o)}%, ${gt(r)}%, ${Ho(e[3])})`:`hsla(${To(t)}, ${gt(o)}%, ${gt(r)}%, 1)`}function ur(e){if(typeof e=="string"){let r;if(r=Dc.exec(e))return`${r[0]}FF`;if(r=Hc.exec(e))return r[0];if(r=Lc.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Fc.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>dt(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,o=e.length===3?"FF":dt(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+o}function mi(e){if(typeof e=="string"){let t;if(t=Dc.exec(e))return t[0];if(t=Hc.exec(e))return t[0].slice(0,7);if(t=Lc.exec(e)||Fc.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>dt(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ca(e=8){return Math.random().toString(16).slice(2,2+e)}function im(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function zu(e,t="default",o=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const n=r[t];if(typeof n=="function")return n()}return o}function So(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function Nc(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,o)}function Ri(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(Zr(String(r)));return}if(Array.isArray(r)){Ri(r,t,o);return}if(r.type===Ze){if(r.children===null)return;Array.isArray(r.children)&&Ri(r.children,t,o)}else r.type!==Yt&&o.push(r)}}),o}function $e(e,...t){if(Array.isArray(e))e.forEach(o=>$e(o,...t));else return e(...t)}function en(e){return Object.keys(e)}const st=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Zr(e):typeof e=="number"?Zr(String(e)):null;function gr(e,t){console.error(`[naive/${e}]: ${t}`)}function Nn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Os(e,t="default",o=void 0){const r=e[t];if(!r)return gr("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Ri(r(o));return n.length===1?n[0]:(gr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function uC(e){return t=>{t?e.value=t.$el:e.value=null}}function P9(e){return e}function Ki(e){return e.some(t=>pr(t)?!(t.type===Yt||t.type===Ze&&!Ki(t.children)):!0)?e:null}function qr(e,t){return e&&Ki(e())||t()}function fC(e,t,o){return e&&Ki(e(t))||o(t)}function ot(e,t){const o=e&&Ki(e());return t(o||null)}function Tn(e){return!(e&&Ki(e()))}const Tu=le({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),hC=/^(\d|\.)+$/,ku=/(\d|\.)+/;function No(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(hC.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=ku.exec(e);return n?e.replace(ku,String((Number(n[0])+o)*t)):e}return e}function Fl(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function pC(e){let t=0;for(let o=0;o{let n=pC(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function vC(e,t){const o=[];return t.split(lm).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function bC(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=gC(t,o):t=vC(t,o))}),t.join(", ").replace(mC," ")}function Eu(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function da(e){return document.head.querySelector(`style[cssr-id="${e}"]`)}function xC(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function dl(e){return e?/^\s*@(s|m)/.test(e):!1}const CC=/[A-Z]/g;function am(e){return e.replace(CC,t=>"-"+t.toLowerCase())}function yC(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${am(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function wC(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Iu(e,t,o,r){if(!t)return"";const n=wC(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=am(a),s!=null&&l.push(` ${a}${yC(s)}`)}),e&&l.push("}"),l.join(` +`)}function As(e,t,o){!e||e.forEach(r=>{if(Array.isArray(r))As(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?As(n,t,o):n&&o(n)}else r&&o(r)})}function sm(e,t,o,r,n,i){const l=e.$;let a="";if(!l||typeof l=="string")dl(l)?a=l:t.push(l);else if(typeof l=="function"){const d=l({context:r.context,props:n});dl(d)?a=d:t.push(d)}else if(l.before&&l.before(r.context),!l.$||typeof l.$=="string")dl(l.$)?a=l.$:t.push(l.$);else if(l.$){const d=l.$({context:r.context,props:n});dl(d)?a=d:t.push(d)}const s=bC(t),c=Iu(s,e.props,r,n);a?(o.push(`${a} {`),i&&c&&i.insertRule(`${a} { +${c} +} +`)):(i&&c&&i.insertRule(c),!i&&c.length&&o.push(c)),e.children&&As(e.children,{context:r.context,props:n},d=>{if(typeof d=="string"){const u=Iu(s,{raw:d},r,n);i?i.insertRule(u):o.push(u)}else sm(d,t,o,r,n,i)}),t.pop(),a&&o.push("}"),l&&l.after&&l.after(r.context)}function cm(e,t,o,r=!1){const n=[];return sm(e,[],n,t,o,r?e.instance.__styleSheet:void 0),r?"":n.join(` + +`)}function Oi(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function SC(e,t,o){const{els:r}=t;if(o===void 0)r.forEach(Eu),t.els=[];else{const n=da(o);n&&r.includes(n)&&(Eu(n),t.els=r.filter(i=>i!==n))}}function Ru(e,t){e.push(t)}function $C(e,t,o,r,n,i,l,a,s){if(i&&!s){if(o===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[o]||(f[o]=!0,cm(t,e,r,i));return}let c;if(o===void 0&&(c=t.render(r),o=Oi(c)),s){s.adapter(o,c!=null?c:t.render(r));return}const d=da(o);if(d!==null&&!l)return d;const u=d!=null?d:xC(o);if(c===void 0&&(c=t.render(r)),u.textContent=c,d!==null)return d;if(a){const f=document.head.querySelector(`meta[name="${a}"]`);if(f)return document.head.insertBefore(u,f),Ru(t.els,u),u}return n?document.head.insertBefore(u,document.head.querySelector("style, link")):document.head.appendChild(u),Ru(t.els,u),u}function _C(e){return cm(this,this.instance,e)}function PC(e={}){const{id:t,ssr:o,props:r,head:n=!1,silent:i=!1,force:l=!1,anchorMetaName:a}=e;return $C(this.instance,this,t,r,n,i,l,a,o)}function zC(e={}){const{id:t}=e;SC(this.instance,this,t)}const ul=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:_C,mount:PC,unmount:zC}},TC=function(e,t,o,r){return Array.isArray(t)?ul(e,{$:null},null,t):Array.isArray(o)?ul(e,t,null,o):Array.isArray(r)?ul(e,t,o,r):ul(e,t,o,null)};function dm(e={}){let t=null;const o={c:(...r)=>TC(o,...r),use:(r,...n)=>r.install(o,...n),find:da,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return o}function kC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return da(e)!==null}function EC(e){let t=".",o="__",r="--",n;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(o=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){n=h.c;const b=h.context;b.bem={},b.bem.b=null,b.bem.els=null}};function l(h){let b,v;return{before(g){b=g.bem.b,v=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=v},$({context:g,props:S}){return h=typeof h=="string"?h:h({context:g,props:S}),g.bem.b=h,`${(S==null?void 0:S.bPrefix)||t}${g.bem.b}`}}}function a(h){let b;return{before(v){b=v.bem.els},after(v){v.bem.els=b},$({context:v,props:g}){return h=typeof h=="string"?h:h({context:v,props:g}),v.bem.els=h.split(",").map(S=>S.trim()),v.bem.els.map(S=>`${(g==null?void 0:g.bPrefix)||t}${v.bem.b}${o}${S}`).join(", ")}}}function s(h){return{$({context:b,props:v}){h=typeof h=="string"?h:h({context:b,props:v});const g=h.split(",").map(w=>w.trim());function S(w){return g.map(C=>`&${(v==null?void 0:v.bPrefix)||t}${b.bem.b}${w!==void 0?`${o}${w}`:""}${r}${C}`).join(", ")}const I=b.bem.els;return I!==null?S(I[0]):S()}}}function c(h){return{$({context:b,props:v}){h=typeof h=="string"?h:h({context:b,props:v});const g=b.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${o}${g[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:(...h)=>n(l(h[0]),h[1],h[2]),cE:(...h)=>n(a(h[0]),h[1],h[2]),cM:(...h)=>n(s(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}function ce(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}ce("abc","def");const IC="n",Ai=`.${IC}-`,RC="__",OC="--",um=dm(),fm=EC({blockPrefix:Ai,elementPrefix:RC,modifierPrefix:OC});um.use(fm);const{c:E,find:z9}=um,{cB:R,cE:k,cM:N,cNotM:Je}=fm;function jc(e){return E(({props:{bPrefix:t}})=>`${t||Ai}modal, ${t||Ai}drawer`,[e])}function hm(e){return E(({props:{bPrefix:t}})=>`${t||Ai}popover`,[e])}function pm(e){return E(({props:{bPrefix:t}})=>`&${t||Ai}modal`,e)}const AC=(...e)=>E(">",[R(...e)]);let Fa;function MC(){return Fa===void 0&&(Fa=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Fa}const tn=typeof document<"u"&&typeof window<"u",BC=new WeakSet;function mm(e){return!BC.has(e)}function LC(e,t,o){if(!t)return e;const r=U(e.value);let n=null;return Ke(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function DC(e){const t=U(!!e.value);if(t.value)return Po(t);const o=Ke(e,r=>{r&&(t.value=!0,o())});return Po(t)}function Tt(e){const t=M(e),o=U(t.value);return Ke(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}function Wc(){return lo()!==null}const Vc=typeof window<"u";let kn,gi;const FC=()=>{var e,t;kn=Vc?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,gi=!1,kn!==void 0?kn.then(()=>{gi=!0}):gi=!0};FC();function HC(e){if(gi)return;let t=!1;Bt(()=>{gi||kn==null||kn.then(()=>{t||e()})}),$t(()=>{t=!0})}function Il(e){return e.composedPath()[0]}const NC={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function jC(e,t,o){if(e==="mousemoveoutside"){const r=n=>{t.contains(Il(n))||o(n)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const n=l=>{r=!t.contains(Il(l))},i=l=>{!r||t.contains(Il(l))||o(l)};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function gm(e,t,o){const r=NC[e];let n=r.get(t);n===void 0&&r.set(t,n=new WeakMap);let i=n.get(o);return i===void 0&&n.set(o,i=jC(e,t,o)),i}function WC(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=gm(e,t,o);return Object.keys(n).forEach(i=>{Ge(i,document,n[i],r)}),!0}return!1}function VC(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=gm(e,t,o);return Object.keys(n).forEach(i=>{He(i,document,n[i],r)}),!0}return!1}function UC(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function n(x,y,T){const $=x[y];return x[y]=function(){return T.apply(x,arguments),$.apply(x,arguments)},x}function i(x,y){x[y]=Event.prototype[y]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var x;return(x=l.get(this))!==null&&x!==void 0?x:null}function c(x,y){a!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:y!=null?y:a.get})}const d={bubble:{},capture:{}},u={};function f(){const x=function(y){const{type:T,eventPhase:$,bubbles:B}=y,O=Il(y);if($===2)return;const X=$===1?"capture":"bubble";let j=O;const G=[];for(;j===null&&(j=window),G.push(j),j!==window;)j=j.parentNode||null;const L=d.capture[T],K=d.bubble[T];if(n(y,"stopPropagation",o),n(y,"stopImmediatePropagation",r),c(y,s),X==="capture"){if(L===void 0)return;for(let re=G.length-1;re>=0&&!e.has(y);--re){const me=G[re],we=L.get(me);if(we!==void 0){l.set(y,me);for(const Se of we){if(t.has(y))break;Se(y)}}if(re===0&&!B&&K!==void 0){const Se=K.get(me);if(Se!==void 0)for(const Ee of Se){if(t.has(y))break;Ee(y)}}}}else if(X==="bubble"){if(K===void 0)return;for(let re=0;reO(y))};return x.displayName="evtdUnifiedWindowEventHandler",x}const h=f(),b=p();function v(x,y){const T=d[x];return T[y]===void 0&&(T[y]=new Map,window.addEventListener(y,h,x==="capture")),T[y]}function g(x){return u[x]===void 0&&(u[x]=new Set,window.addEventListener(x,b)),u[x]}function S(x,y){let T=x.get(y);return T===void 0&&x.set(y,T=new Set),T}function I(x,y,T,$){const B=d[y][T];if(B!==void 0){const O=B.get(x);if(O!==void 0&&O.has($))return!0}return!1}function w(x,y){const T=u[x];return!!(T!==void 0&&T.has(y))}function C(x,y,T,$){let B;if(typeof $=="object"&&$.once===!0?B=L=>{P(x,y,B,$),T(L)}:B=T,WC(x,y,B,$))return;const X=$===!0||typeof $=="object"&&$.capture===!0?"capture":"bubble",j=v(X,x),G=S(j,y);if(G.has(B)||G.add(B),y===window){const L=g(x);L.has(B)||L.add(B)}}function P(x,y,T,$){if(VC(x,y,T,$))return;const O=$===!0||typeof $=="object"&&$.capture===!0,X=O?"capture":"bubble",j=v(X,x),G=S(j,y);if(y===window&&!I(y,O?"bubble":"capture",x,T)&&w(x,T)){const K=u[x];K.delete(T),K.size===0&&(window.removeEventListener(x,b),u[x]=void 0)}G.has(T)&&G.delete(T),G.size===0&&j.delete(y),j.size===0&&(window.removeEventListener(x,h,X==="capture"),d[X][x]=void 0)}return{on:C,off:P}}const{on:Ge,off:He}=UC(),si=U(null);function Ou(e){if(e.clientX>0||e.clientY>0)si.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:r,width:n,height:i}=t.getBoundingClientRect();o>0||r>0?si.value={x:o+n/2,y:r+i/2}:si.value={x:0,y:0}}else si.value=null}}let fl=0,Au=!0;function vm(){if(!Vc)return Po(U(null));fl===0&&Ge("click",document,Ou,!0);const e=()=>{fl+=1};return Au&&(Au=Wc())?(Go(e),$t(()=>{fl-=1,fl===0&&He("click",document,Ou,!0)})):e(),Po(si)}const KC=U(void 0);let hl=0;function Mu(){KC.value=Date.now()}let Bu=!0;function bm(e){if(!Vc)return Po(U(!1));const t=U(!1);let o=null;function r(){o!==null&&window.clearTimeout(o)}function n(){r(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}hl===0&&Ge("click",window,Mu,!0);const i=()=>{hl+=1,Ge("click",window,n,!0)};return Bu&&(Bu=Wc())?(Go(i),$t(()=>{hl-=1,hl===0&&He("click",window,Mu,!0),He("click",window,n,!0),r()})):i(),Po(t)}function po(e,t){return Ke(e,o=>{o!==void 0&&(t.value=o)}),M(()=>e.value===void 0?t.value:e.value)}function on(){const e=U(!1);return Bt(()=>{e.value=!0}),Po(e)}function Uc(e,t){return M(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const GC=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function qC(){return GC}function YC(e={},t){const o=io({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:n}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},l=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},a=()=>{(t===void 0||t.value)&&(Ge("keydown",document,i),Ge("keyup",document,l)),t!==void 0&&Ke(t,s=>{s?(Ge("keydown",document,i),Ge("keyup",document,l)):(He("keydown",document,i),He("keyup",document,l))})};return Wc()?(Go(a),$t(()=>{(t===void 0||t.value)&&(He("keydown",document,i),He("keyup",document,l))})):a(),Po(o)}const XC="n-internal-select-menu-body",Gi="n-modal-body",xm="n-modal",qi="n-drawer-body",Kc="n-drawer",jn="n-popover-body",Cm="__disabled__";function Vo(e){const t=ge(Gi,null),o=ge(qi,null),r=ge(jn,null),n=ge(XC,null),i=U();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Bt(()=>{Ge("fullscreenchange",document,l)}),$t(()=>{He("fullscreenchange",document,l)})}return Tt(()=>{var l;const{to:a}=e;return a!==void 0?a===!1?Cm:a===!0?i.value||"body":a:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:a!=null?a:i.value||"body"})}Vo.tdkey=Cm;Vo.propTo={type:[String,Object,Boolean],default:void 0};function Ms(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return r()}function Bs(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(Zr(String(r)));return}if(Array.isArray(r)){Bs(r,t,o);return}if(r.type===Ze){if(r.children===null)return;Array.isArray(r.children)&&Bs(r.children,t,o)}else r.type!==Yt&&o.push(r)}}),o}function Lu(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const n=Bs(r());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let er=null;function ym(){if(er===null&&(er=document.getElementById("v-binder-view-measurer"),er===null)){er=document.createElement("div"),er.id="v-binder-view-measurer";const{style:e}=er;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(er)}return er.getBoundingClientRect()}function ZC(e,t){const o=ym();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Ha(e){const t=e.getBoundingClientRect(),o=ym();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function JC(e){return e.nodeType===9?null:e.parentNode}function wm(e){if(e===null)return null;const t=JC(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return wm(t)}const QC=le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Re("VBinder",(t=lo())===null||t===void 0?void 0:t.proxy);const o=ge("VBinder",null),r=U(null),n=g=>{r.value=g,o&&e.syncTargetWithParent&&o.setTargetRef(g)};let i=[];const l=()=>{let g=r.value;for(;g=wm(g),g!==null;)i.push(g);for(const S of i)Ge("scroll",S,u,!0)},a=()=>{for(const g of i)He("scroll",g,u,!0);i=[]},s=new Set,c=g=>{s.size===0&&l(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&a()},u=()=>{tC(f)},f=()=>{s.forEach(g=>g())},p=new Set,h=g=>{p.size===0&&Ge("resize",window,v),p.has(g)||p.add(g)},b=g=>{p.has(g)&&p.delete(g),p.size===0&&He("resize",window,v)},v=()=>{p.forEach(g=>g())};return $t(()=>{He("resize",window,v),a()}),{targetRef:r,setTargetRef:n,addScrollListener:c,removeScrollListener:d,addResizeListener:h,removeResizeListener:b}},render(){return Ms("binder",this.$slots)}}),Gc=QC,qc=le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ge("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?oo(Lu("follower",this.$slots),[[t]]):Lu("follower",this.$slots)}}),fn="@@mmoContext",ey={mounted(e,{value:t}){e[fn]={handler:void 0},typeof t=="function"&&(e[fn].handler=t,Ge("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[fn];typeof t=="function"?o.handler?o.handler!==t&&(He("mousemoveoutside",e,o.handler),o.handler=t,Ge("mousemoveoutside",e,t)):(e[fn].handler=t,Ge("mousemoveoutside",e,t)):o.handler&&(He("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[fn];t&&He("mousemoveoutside",e,t),e[fn].handler=void 0}},ty=ey,hn="@@coContext",oy={mounted(e,{value:t,modifiers:o}){e[hn]={handler:void 0},typeof t=="function"&&(e[hn].handler=t,Ge("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const r=e[hn];typeof t=="function"?r.handler?r.handler!==t&&(He("clickoutside",e,r.handler,{capture:o.capture}),r.handler=t,Ge("clickoutside",e,t,{capture:o.capture})):(e[hn].handler=t,Ge("clickoutside",e,t,{capture:o.capture})):r.handler&&(He("clickoutside",e,r.handler,{capture:o.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[hn];o&&He("clickoutside",e,o,{capture:t.capture}),e[hn].handler=void 0}},Mi=oy;function ry(e,t){console.error(`[vdirs/${e}]: ${t}`)}class ny{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:r}=this;if(o!==void 0){t.style.zIndex=`${o}`,r.delete(t);return}const{nextZIndex:n}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,r.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,o){const{elementZIndex:r}=this;r.has(t)?r.delete(t):o===void 0&&ry("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,r)=>o[1]-r[1]),this.nextZIndex=2e3,t.forEach(o=>{const r=o[0],n=this.nextZIndex++;`${n}`!==r.style.zIndex&&(r.style.zIndex=`${n}`)})}}const Na=new ny,pn="@@ziContext",iy={mounted(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o;e[pn]={enabled:!!n,initialized:!1},n&&(Na.ensureZIndex(e,r),e[pn].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o,i=e[pn].enabled;n&&!i&&(Na.ensureZIndex(e,r),e[pn].initialized=!0),e[pn].enabled=!!n},unmounted(e,t){if(!e[pn].initialized)return;const{value:o={}}=t,{zIndex:r}=o;Na.unregister(e,r)}},ua=iy,Sm=Symbol("@css-render/vue3-ssr");function ly(e,t){return``}function ay(e,t){const o=ge(Sm,null);if(o===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(ly(e,t)))}const sy=typeof document<"u";function Yi(){if(sy)return;const e=ge(Sm,null);if(e!==null)return{adapter:ay,context:e}}function Du(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:pl}=dm(),cy="vueuc-style";function Fu(e){return typeof e=="string"?document.querySelector(e):e()}const Yc=le({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:DC(Be(e,"show")),mergedTo:M(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?Ms("lazy-teleport",this.$slots):m(ia,{disabled:this.disabled,to:this.mergedTo},Ms("lazy-teleport",this.$slots)):null}}),ml={top:"bottom",bottom:"top",left:"right",right:"left"},Hu={start:"end",center:"center",end:"start"},ja={top:"height",bottom:"height",left:"width",right:"width"},dy={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},uy={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},fy={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Nu={top:!0,bottom:!1,left:!0,right:!1},ju={top:"end",bottom:"start",left:"end",right:"start"};function hy(e,t,o,r,n,i){if(!n||i)return{placement:e,top:0,left:0};const[l,a]=e.split("-");let s=a!=null?a:"center",c={top:0,left:0};const d=(p,h,b)=>{let v=0,g=0;const S=o[p]-t[h]-t[p];return S>0&&r&&(b?g=Nu[h]?S:-S:v=Nu[h]?S:-S),{left:v,top:g}},u=l==="left"||l==="right";if(s!=="center"){const p=fy[e],h=ml[p],b=ja[p];if(o[b]>t[b]){if(t[p]+t[b]t[h]&&(s=Hu[a])}else{const p=l==="bottom"||l==="top"?"left":"top",h=ml[p],b=ja[p],v=(o[b]-t[b])/2;(t[p]t[h]?(s=ju[p],c=d(b,p,u)):(s=ju[h],c=d(b,h,u)))}let f=l;return t[l] *",{pointerEvents:"all"})])]),Xc=le({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ge("VBinder"),o=Tt(()=>e.enabled!==void 0?e.enabled:e.show),r=U(null),n=U(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(s),f.includes("resize")&&t.addResizeListener(s)},l=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Bt(()=>{o.value&&(s(),i())});const a=Yi();gy.mount({id:"vueuc/binder",head:!0,anchorMetaName:cy,ssr:a}),$t(()=>{l()}),HC(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const f=r.value;if(f===null)return;const p=t.targetRef,{x:h,y:b,overlap:v}=e,g=h!==void 0&&b!==void 0?ZC(h,b):Ha(p);f.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:S,minWidth:I,placement:w,internalShift:C,flip:P}=e;f.setAttribute("v-placement",w),v?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;S==="target"?x.width=`${g.width}px`:S!==void 0?x.width=S:x.width="",I==="target"?x.minWidth=`${g.width}px`:I!==void 0?x.minWidth=I:x.minWidth="";const y=Ha(f),T=Ha(n.value),{left:$,top:B,placement:O}=hy(w,g,y,C,P,v),X=py(O,v),{left:j,top:G,transform:L}=my(O,T,g,B,$,v);f.setAttribute("v-placement",O),f.style.setProperty("--v-offset-left",`${Math.round($)}px`),f.style.setProperty("--v-offset-top",`${Math.round(B)}px`),f.style.transform=`translateX(${j}) translateY(${G}) ${L}`,f.style.setProperty("--v-transform-origin",X),f.style.transformOrigin=X};Ke(o,f=>{f?(i(),c()):l()});const c=()=>{zt().then(s).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Ke(Be(e,f),s)}),["teleportDisabled"].forEach(f=>{Ke(Be(e,f),c)}),Ke(Be(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),f.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=on(),u=Tt(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:u,syncPosition:s}},render(){return m(Yc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?oo(o,[[ua,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Yr=[],vy=function(){return Yr.some(function(e){return e.activeTargets.length>0})},by=function(){return Yr.some(function(e){return e.skippedTargets.length>0})},Wu="ResizeObserver loop completed with undelivered notifications.",xy=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Wu}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Wu),window.dispatchEvent(e)},Bi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Bi||(Bi={}));var Xr=function(e){return Object.freeze(e)},Cy=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Xr(this)}return e}(),$m=function(){function e(t,o,r,n){return this.x=t,this.y=o,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Xr(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,r=t.y,n=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,c=t.height;return{x:o,y:r,top:n,right:i,bottom:l,left:a,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Zc=function(e){return e instanceof SVGElement&&"getBBox"in e},_m=function(e){if(Zc(e)){var t=e.getBBox(),o=t.width,r=t.height;return!o&&!r}var n=e,i=n.offsetWidth,l=n.offsetHeight;return!(i||l||e.getClientRects().length)},Vu=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},yy=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},vi=typeof window<"u"?window:{},gl=new WeakMap,Uu=/auto|scroll/,wy=/^tb|vertical/,Sy=/msie|trident/i.test(vi.navigator&&vi.navigator.userAgent),bo=function(e){return parseFloat(e||"0")},En=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Cy((o?t:e)||0,(o?e:t)||0)},Ku=Xr({devicePixelContentBoxSize:En(),borderBoxSize:En(),contentBoxSize:En(),contentRect:new $m(0,0,0,0)}),Pm=function(e,t){if(t===void 0&&(t=!1),gl.has(e)&&!t)return gl.get(e);if(_m(e))return gl.set(e,Ku),Ku;var o=getComputedStyle(e),r=Zc(e)&&e.ownerSVGElement&&e.getBBox(),n=!Sy&&o.boxSizing==="border-box",i=wy.test(o.writingMode||""),l=!r&&Uu.test(o.overflowY||""),a=!r&&Uu.test(o.overflowX||""),s=r?0:bo(o.paddingTop),c=r?0:bo(o.paddingRight),d=r?0:bo(o.paddingBottom),u=r?0:bo(o.paddingLeft),f=r?0:bo(o.borderTopWidth),p=r?0:bo(o.borderRightWidth),h=r?0:bo(o.borderBottomWidth),b=r?0:bo(o.borderLeftWidth),v=u+c,g=s+d,S=b+p,I=f+h,w=a?e.offsetHeight-I-e.clientHeight:0,C=l?e.offsetWidth-S-e.clientWidth:0,P=n?v+S:0,x=n?g+I:0,y=r?r.width:bo(o.width)-P-C,T=r?r.height:bo(o.height)-x-w,$=y+v+C+S,B=T+g+w+I,O=Xr({devicePixelContentBoxSize:En(Math.round(y*devicePixelRatio),Math.round(T*devicePixelRatio),i),borderBoxSize:En($,B,i),contentBoxSize:En(y,T,i),contentRect:new $m(u,s,y,T)});return gl.set(e,O),O},zm=function(e,t,o){var r=Pm(e,o),n=r.borderBoxSize,i=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case Bi.DEVICE_PIXEL_CONTENT_BOX:return l;case Bi.BORDER_BOX:return n;default:return i}},$y=function(){function e(t){var o=Pm(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Xr([o.borderBoxSize]),this.contentBoxSize=Xr([o.contentBoxSize]),this.devicePixelContentBoxSize=Xr([o.devicePixelContentBoxSize])}return e}(),Tm=function(e){if(_m(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},_y=function(){var e=1/0,t=[];Yr.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(c){var d=new $y(c.target),u=Tm(c.target);a.push(d),c.lastReportedSize=zm(c.target,c.observedBox),ue?o.activeTargets.push(n):o.skippedTargets.push(n))})})},Py=function(){var e=0;for(Gu(e);vy();)e=_y(),Gu(e);return by()&&xy(),e>0},Wa,km=[],zy=function(){return km.splice(0).forEach(function(e){return e()})},Ty=function(e){if(!Wa){var t=0,o=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return zy()}).observe(o,r),Wa=function(){o.textContent="".concat(t?t--:t++)}}km.push(e),Wa()},ky=function(e){Ty(function(){requestAnimationFrame(e)})},Rl=0,Ey=function(){return!!Rl},Iy=250,Ry={attributes:!0,characterData:!0,childList:!0,subtree:!0},qu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Yu=function(e){return e===void 0&&(e=0),Date.now()+e},Va=!1,Oy=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Iy),!Va){Va=!0;var r=Yu(t);ky(function(){var n=!1;try{n=Py()}finally{if(Va=!1,t=r-Yu(),!Ey())return;n?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Ry)};document.body?o():vi.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qu.forEach(function(o){return vi.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),qu.forEach(function(o){return vi.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Ls=new Oy,Xu=function(e){!Rl&&e>0&&Ls.start(),Rl+=e,!Rl&&Ls.stop()},Ay=function(e){return!Zc(e)&&!yy(e)&&getComputedStyle(e).display==="inline"},My=function(){function e(t,o){this.target=t,this.observedBox=o||Bi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=zm(this.target,this.observedBox,!0);return Ay(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),By=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),vl=new WeakMap,Zu=function(e,t){for(var o=0;o=0&&(i&&Yr.splice(Yr.indexOf(r),1),r.observationTargets.splice(n,1),Xu(-1))},e.disconnect=function(t){var o=this,r=vl.get(t);r.observationTargets.slice().forEach(function(n){return o.unobserve(t,n.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ly=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");bl.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Vu(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");bl.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Vu(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");bl.unobserve(this,t)},e.prototype.disconnect=function(){bl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Dy{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new Ly(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const r=this.elHandlersMap.get(o.target);r!==void 0&&r(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ju=new Dy,Ds=le({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=lo().proxy;function r(n){const{onResize:i}=e;i!==void 0&&i(n)}Bt(()=>{const n=o.$el;if(n===void 0){Du("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){Du("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(Ju.registerHandler(n.nextElementSibling,r),t=!0)}),$t(()=>{t&&Ju.unregisterHandler(o.$el.nextElementSibling)})},render(){return j1(this.$slots,"default")}});function Em(e){return e instanceof HTMLElement}function Im(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Em(o)&&(Om(o)||Rm(o)))return!0}return!1}function Om(e){if(!Fy(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Fy(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Zn=[];const Jc=le({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ca(),o=U(null),r=U(null);let n=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return Zn[Zn.length-1]===t}function s(v){var g;v.code==="Escape"&&a()&&((g=e.onEsc)===null||g===void 0||g.call(e,v))}Bt(()=>{Ke(()=>e.active,v=>{v?(u(),Ge("keydown",document,s)):(He("keydown",document,s),n&&f())},{immediate:!0})}),$t(()=>{He("keydown",document,s),n&&f()});function c(v){if(!i&&a()){const g=d();if(g===null||g.contains(An(v)))return;p("first")}}function d(){const v=o.value;if(v===null)return null;let g=v;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function u(){var v;if(!e.disabled){if(Zn.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?p("first"):(v=Fu(g))===null||v===void 0||v.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",c,!0)}}function f(){var v;if(e.disabled||(document.removeEventListener("focus",c,!0),Zn=Zn.filter(S=>S!==t),a()))return;const{finalFocusTo:g}=e;g!==void 0?(v=Fu(g))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function p(v){if(!!a()&&e.active){const g=o.value,S=r.value;if(g!==null&&S!==null){const I=d();if(I==null||I===S){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const w=v==="first"?Im(I):Rm(I);i=!1,w||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function h(v){if(i)return;const g=d();g!==null&&(v.relatedTarget!==null&&g.contains(v.relatedTarget)?p("last"):p("first"))}function b(v){i||(v.relatedTarget!==null&&v.relatedTarget===o.value?p("last"):p("first"))}return{focusableStartRef:o,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return m(Ze,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let mn=0,Qu="",ef="",tf="",of="";const rf=U("0px");function Am(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=Qu,t.style.overflow=ef,t.style.overflowX=tf,t.style.overflowY=of,rf.value="0px"};Bt(()=>{o=Ke(e,i=>{if(i){if(!mn){const l=window.innerWidth-t.offsetWidth;l>0&&(Qu=t.style.marginRight,t.style.marginRight=`${l}px`,rf.value=`${l}px`),ef=t.style.overflow,tf=t.style.overflowX,of=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,mn++}else mn--,mn||n(),r=!1},{immediate:!0})}),$t(()=>{o==null||o(),r&&(mn--,mn||n(),r=!1)})}const Qc=U(!1),nf=()=>{Qc.value=!0},lf=()=>{Qc.value=!1};let Jn=0;const Mm=()=>(tn&&(Go(()=>{Jn||(window.addEventListener("compositionstart",nf),window.addEventListener("compositionend",lf)),Jn++}),$t(()=>{Jn<=1?(window.removeEventListener("compositionstart",nf),window.removeEventListener("compositionend",lf),Jn=0):Jn--})),Qc);function ed(e){const t={isDeactivated:!1};let o=!1;return Rp(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),Op(()=>{t.isDeactivated=!0,o||(o=!0)}),t}const af="n-form-item";function fa(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=ge(af,null);Re(af,null);const i=M(o?()=>o(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),l=M(r?()=>r(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),a=M(()=>{const{status:s}=e;return s||(n==null?void 0:n.mergedValidationStatus.value)});return $t(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var Hy=typeof global=="object"&&global&&global.Object===Object&&global;const Bm=Hy;var Ny=typeof self=="object"&&self&&self.Object===Object&&self,jy=Bm||Ny||Function("return this")();const Ro=jy;var Wy=Ro.Symbol;const vr=Wy;var Lm=Object.prototype,Vy=Lm.hasOwnProperty,Uy=Lm.toString,Qn=vr?vr.toStringTag:void 0;function Ky(e){var t=Vy.call(e,Qn),o=e[Qn];try{e[Qn]=void 0;var r=!0}catch{}var n=Uy.call(e);return r&&(t?e[Qn]=o:delete e[Qn]),n}var Gy=Object.prototype,qy=Gy.toString;function Yy(e){return qy.call(e)}var Xy="[object Null]",Zy="[object Undefined]",sf=vr?vr.toStringTag:void 0;function rn(e){return e==null?e===void 0?Zy:Xy:sf&&sf in Object(e)?Ky(e):Yy(e)}function br(e){return e!=null&&typeof e=="object"}var Jy="[object Symbol]";function td(e){return typeof e=="symbol"||br(e)&&rn(e)==Jy}function Dm(e,t){for(var o=-1,r=e==null?0:e.length,n=Array(r);++o0){if(++t>=S2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function z2(e){return function(){return e}}var T2=function(){try{var e=ln(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Hl=T2;var k2=Hl?function(e,t){return Hl(e,"toString",{configurable:!0,enumerable:!1,value:z2(t),writable:!0})}:od;const E2=k2;var I2=P2(E2);const R2=I2;var O2=9007199254740991,A2=/^(?:0|[1-9]\d*)$/;function nd(e,t){var o=typeof e;return t=t==null?O2:t,!!t&&(o=="number"||o!="symbol"&&A2.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=N2}function Wn(e){return e!=null&&ld(e.length)&&!rd(e)}function j2(e,t,o){if(!Cr(o))return!1;var r=typeof t;return(r=="number"?Wn(o)&&nd(t,o.length):r=="string"&&t in o)?Xi(o[t],e):!1}function W2(e){return H2(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&j2(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function lS(e,t){var o=this.__data__,r=ha(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function Yo(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tn?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(n);++r=r?e:IS(e,t,o)}var OS="\\ud800-\\udfff",AS="\\u0300-\\u036f",MS="\\ufe20-\\ufe2f",BS="\\u20d0-\\u20ff",LS=AS+MS+BS,DS="\\ufe0e\\ufe0f",FS="\\u200d",HS=RegExp("["+FS+OS+LS+DS+"]");function Zm(e){return HS.test(e)}function NS(e){return e.split("")}var Jm="\\ud800-\\udfff",jS="\\u0300-\\u036f",WS="\\ufe20-\\ufe2f",VS="\\u20d0-\\u20ff",US=jS+WS+VS,KS="\\ufe0e\\ufe0f",GS="["+Jm+"]",Hs="["+US+"]",Ns="\\ud83c[\\udffb-\\udfff]",qS="(?:"+Hs+"|"+Ns+")",Qm="[^"+Jm+"]",eg="(?:\\ud83c[\\udde6-\\uddff]){2}",tg="[\\ud800-\\udbff][\\udc00-\\udfff]",YS="\\u200d",og=qS+"?",rg="["+KS+"]?",XS="(?:"+YS+"(?:"+[Qm,eg,tg].join("|")+")"+rg+og+")*",ZS=rg+og+XS,JS="(?:"+[Qm+Hs+"?",Hs,eg,tg,GS].join("|")+")",QS=RegExp(Ns+"(?="+Ns+")|"+JS+ZS,"g");function e3(e){return e.match(QS)||[]}function t3(e){return Zm(e)?e3(e):NS(e)}function o3(e){return function(t){t=Km(t);var o=Zm(t)?t3(t):void 0,r=o?o[0]:t.charAt(0),n=o?RS(o,1).join(""):t.slice(1);return r[e]()+n}}var r3=o3("toUpperCase");const n3=r3;function i3(){this.__data__=new Yo,this.size=0}function l3(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function a3(e){return this.__data__.get(e)}function s3(e){return this.__data__.has(e)}var c3=200;function d3(e,t){var o=this.__data__;if(o instanceof Yo){var r=o.__data__;if(!Di||r.lengtha))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=o&F3?new Vl:void 0;for(i.set(e,t),i.set(t,e);++u{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Fi,ssr:l}),a!=null&&a.preflightStyleDisabled||dg.mount({id:"n-global",head:!0,anchorMetaName:Fi,ssr:l})};l?c():Go(c)}return M(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:b,peers:v}=p,{common:g=void 0,[e]:{common:S=void 0,self:I=void 0,peers:w={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:C=void 0,[e]:P={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:x,peers:y={}}=P,T=wn({},d||S||g||r.common,C,x,b),$=wn((c=u||I||r.self)===null||c===void 0?void 0:c(T),h,P,p);return{common:T,self:$,peers:wn({},r.peers,w,f),peerOverrides:wn({},h.peers,y,v)}})}Pe.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ug="n";function Ye(e={},t={defaultBordered:!0}){const o=ge(Uo,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:M(()=>{var r,n;const{bordered:i}=e;return i!==void 0?i:(n=(r=o==null?void 0:o.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:M(()=>(o==null?void 0:o.mergedClsPrefixRef.value)||ug),namespaceRef:M(()=>o==null?void 0:o.mergedNamespaceRef.value)}}const F4={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},H4=F4;function qa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,r=e.formats[o]||e.formats[e.defaultWidth];return r}}function ei(e){return function(t,o){var r=o!=null&&o.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):i;n=e.formattingValues[l]||e.formattingValues[i]}else{var a=e.defaultWidth,s=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[s]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}function ti(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var l=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?j4(a,function(u){return u.test(l)}):N4(a,function(u){return u.test(l)}),c;c=e.valueCallback?e.valueCallback(s):s,c=o.valueCallback?o.valueCallback(c):c;var d=t.slice(l.length);return{value:c,rest:d}}}function N4(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function j4(e,t){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var n=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;var a=t.slice(n.length);return{value:l,rest:a}}}var V4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U4=function(t,o,r){var n,i=V4[t];return typeof i=="string"?n=i:o===1?n=i.one:n=i.other.replace("{{count}}",o.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const K4=U4;var G4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},q4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Y4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},X4={date:qa({formats:G4,defaultWidth:"full"}),time:qa({formats:q4,defaultWidth:"full"}),dateTime:qa({formats:Y4,defaultWidth:"full"})};const Z4=X4;var J4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q4=function(t,o,r,n){return J4[t]};const e5=Q4;var t5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},i5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a5=function(t,o){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},s5={ordinalNumber:a5,era:ei({values:t5,defaultWidth:"wide"}),quarter:ei({values:o5,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ei({values:r5,defaultWidth:"wide"}),day:ei({values:n5,defaultWidth:"wide"}),dayPeriod:ei({values:i5,defaultWidth:"wide",formattingValues:l5,defaultFormattingWidth:"wide"})};const c5=s5;var d5=/^(\d+)(th|st|nd|rd)?/i,u5=/\d+/i,f5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h5={any:[/^b/i,/^(a|c)/i]},p5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m5={any:[/1/i,/2/i,/3/i,/4/i]},g5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},C5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},w5={ordinalNumber:W4({matchPattern:d5,parsePattern:u5,valueCallback:function(t){return parseInt(t,10)}}),era:ti({matchPatterns:f5,defaultMatchWidth:"wide",parsePatterns:h5,defaultParseWidth:"any"}),quarter:ti({matchPatterns:p5,defaultMatchWidth:"wide",parsePatterns:m5,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ti({matchPatterns:g5,defaultMatchWidth:"wide",parsePatterns:v5,defaultParseWidth:"any"}),day:ti({matchPatterns:b5,defaultMatchWidth:"wide",parsePatterns:x5,defaultParseWidth:"any"}),dayPeriod:ti({matchPatterns:C5,defaultMatchWidth:"any",parsePatterns:y5,defaultParseWidth:"any"})};const S5=w5;var $5={code:"en-US",formatDistance:K4,formatLong:Z4,formatRelative:e5,localize:c5,match:S5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const _5=$5,P5={name:"en-US",locale:_5},z5=P5;function fg(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=ge(Uo,null)||{},r=M(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:H4[e]});return{dateLocaleRef:M(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:z5}),localeRef:r}}function an(e,t,o){if(!t)return;const r=Yi(),n=ge(Uo,null),i=()=>{const l=o==null?void 0:o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Fi,props:{bPrefix:l?`.${l}-`:void 0},ssr:r}),n!=null&&n.preflightStyleDisabled||dg.mount({id:"n-global",head:!0,anchorMetaName:Fi,ssr:r})};r?i():Go(i)}function ut(e,t,o,r){var n;o||Nn("useThemeClass","cssVarsRef is not passed");const i=(n=ge(Uo,null))===null||n===void 0?void 0:n.mergedThemeHashRef,l=U(""),a=Yi();let s;const c=`__${e}`,d=()=>{let u=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(u+="-"+p),f&&(u+="-"+f);const{themeOverrides:h,builtinThemeOverrides:b}=r;h&&(u+="-"+Oi(JSON.stringify(h))),b&&(u+="-"+Oi(JSON.stringify(b))),l.value=u,s=()=>{const v=o.value;let g="";for(const S in v)g+=`${S}: ${v[S]};`;E(`.${u}`,g).mount({id:u,ssr:a}),s=void 0}};return Nt(()=>{d()}),{themeClass:l,onRender:()=>{s==null||s()}}}function Zo(e,t,o){if(!t)return;const r=Yi(),n=M(()=>{const{value:l}=t;if(!l)return;const a=l[e];if(!!a)return a}),i=()=>{Nt(()=>{const{value:l}=o,a=`${l}${e}Rtl`;if(kC(a,r))return;const{value:s}=n;!s||s.style.mount({id:a,head:!0,anchorMetaName:Fi,props:{bPrefix:l?`.${l}-`:void 0},ssr:r})})};return r?i():Go(i),n}function Vn(e,t){return le({name:n3(e),setup(){var o;const r=(o=ge(Uo,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var n;const i=(n=r==null?void 0:r.value)===null||n===void 0?void 0:n[e];return i?i():t}}})}const hg=le({name:"ChevronRight",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("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"}))}}),T5=Vn("close",m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),k5=le({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),E5=le({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),m("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),m("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),m("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),m("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hd=Vn("error",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ul=Vn("info",m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),pd=Vn("success",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),md=Vn("warning",m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),I5=le({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),R5=Vn("clear",m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),O5=le({name:"ChevronDownFilled",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("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"}))}}),Zi=le({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=on();return()=>m(Ot,{name:"icon-switch-transition",appear:o.value},t)}}),gd=le({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function r(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:s}=e;s&&s()}function n(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(a){if(a.style.transition="none",e.width){const s=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${s}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const s=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${s}px`}a.offsetWidth}function l(a){var s;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const a=e.group?Kx:Ot;return m(a,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:l,onBeforeLeave:o,onLeave:r,onAfterLeave:n},t)}}}),A5=R("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[E("svg",` + height: 1em; + width: 1em; + `)]),ko=le({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){an("-base-icon",A5,Be(e,"clsPrefix"))},render(){return m("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),M5=R("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[N("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),E("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),Je("disabled",[E("&:hover",` + color: var(--n-close-icon-color-hover); + `),E("&:hover::before",` + background-color: var(--n-close-color-hover); + `),E("&:focus::before",` + background-color: var(--n-close-color-hover); + `),E("&:active",` + color: var(--n-close-icon-color-pressed); + `),E("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),N("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),N("round",[E("&::before",` + border-radius: 50%; + `)])]),Un=le({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return an("-base-close",M5,Be(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e;return m(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},m(ko,{clsPrefix:t},{default:()=>m(T5,null)}))}}}),{cubicBezierEaseInOut:B5}=ao;function Qr({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${B5} !important`}={}){return[E("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:o,opacity:0}),E("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),E("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}const L5=E([E("@keyframes loading-container-rotate",` + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } + `),E("@keyframes loading-layer-rotate",` + 12.5% { + -webkit-transform: rotate(135deg); + transform: rotate(135deg); + } + 25% { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); + } + 37.5% { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } + 50% { + -webkit-transform: rotate(540deg); + transform: rotate(540deg); + } + 62.5% { + -webkit-transform: rotate(675deg); + transform: rotate(675deg); + } + 75% { + -webkit-transform: rotate(810deg); + transform: rotate(810deg); + } + 87.5% { + -webkit-transform: rotate(945deg); + transform: rotate(945deg); + } + 100% { + -webkit-transform: rotate(1080deg); + transform: rotate(1080deg); + } + `),E("@keyframes loading-left-spin",` + from { + -webkit-transform: rotate(265deg); + transform: rotate(265deg); + } + 50% { + -webkit-transform: rotate(130deg); + transform: rotate(130deg); + } + to { + -webkit-transform: rotate(265deg); + transform: rotate(265deg); + } + `),E("@keyframes loading-right-spin",` + from { + -webkit-transform: rotate(-265deg); + transform: rotate(-265deg); + } + 50% { + -webkit-transform: rotate(-130deg); + transform: rotate(-130deg); + } + to { + -webkit-transform: rotate(-265deg); + transform: rotate(-265deg); + } + `),R("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[k("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Qr()]),k("container",` + display: inline-flex; + position: relative; + direction: ltr; + line-height: 0; + animation: loading-container-rotate 1568.2352941176ms linear infinite; + font-size: 0; + letter-spacing: 0; + white-space: nowrap; + opacity: 1; + width: 100%; + height: 100%; + `,[k("svg",` + stroke: var(--n-text-color); + fill: transparent; + position: absolute; + height: 100%; + overflow: hidden; + `),k("container-layer",` + position: absolute; + width: 100%; + height: 100%; + animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + `,[k("container-layer-left",` + display: inline-flex; + position: relative; + width: 50%; + height: 100%; + overflow: hidden; + `,[k("svg",` + animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + width: 200%; + `)]),k("container-layer-patch",` + position: absolute; + top: 0; + left: 47.5%; + box-sizing: border-box; + width: 5%; + height: 100%; + overflow: hidden; + `,[k("svg",` + left: -900%; + width: 2000%; + transform: rotate(180deg); + `)]),k("container-layer-right",` + display: inline-flex; + position: relative; + width: 50%; + height: 100%; + overflow: hidden; + `,[k("svg",` + animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + left: -100%; + width: 200%; + `)])])]),k("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Qr({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),D5={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ga=le({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},D5),setup(e){an("-base-loading",L5,Be(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(Zi,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("div",{class:`${e}-base-loading__container-layer`},m("div",{class:`${e}-base-loading__container-layer-left`},m("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},m("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),m("div",{class:`${e}-base-loading__container-layer-patch`},m("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},m("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),m("div",{class:`${e}-base-loading__container-layer-right`},m("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},m("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Af(e){return Array.isArray(e)?e:[e]}const Gs={STOP:"STOP"};function pg(e,t){const o=t(e);e.children!==void 0&&o!==Gs.STOP&&e.children.forEach(r=>pg(r,t))}function F5(e,t={}){const{preserveGroup:o=!1}=t,r=[],n=o?l=>{l.isLeaf||(r.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||r.push(l.key),i(l.children))};function i(l){l.forEach(n)}return i(e),r}function H5(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function N5(e){return e.children}function j5(e){return e.key}function W5(){return!1}function V5(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function U5(e){return e.disabled===!0}function K5(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ya(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Xa(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function G5(e,t){const o=new Set(e);return t.forEach(r=>{o.has(r)||o.add(r)}),Array.from(o)}function q5(e,t){const o=new Set(e);return t.forEach(r=>{o.has(r)&&o.delete(r)}),Array.from(o)}function Y5(e){return(e==null?void 0:e.type)==="group"}class X5 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Z5(e,t,o,r){return Kl(t.concat(e),o,r,!1)}function J5(e,t){const o=new Set;return e.forEach(r=>{const n=t.treeNodeMap.get(r);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function Q5(e,t,o,r){const n=Kl(t,o,r,!1),i=Kl(e,o,r,!0),l=J5(e,o),a=[];return n.forEach(s=>{(i.has(s)||l.has(s))&&a.push(s)}),a.forEach(s=>n.delete(s)),n}function Za(e,t){const{checkedKeys:o,keysToCheck:r,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:a,checkStrategy:s,allowNotLoaded:c}=e;if(!l)return r!==void 0?{checkedKeys:G5(o,r),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:q5(o,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;n!==void 0?u=Q5(n,o,t,c):r!==void 0?u=Z5(r,o,t,c):u=Kl(o,t,c,!1);const f=s==="parent",p=s==="child"||a,h=u,b=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let g=v;g>=0;g-=1){const S=g===0,I=d.get(g);for(const w of I){if(w.isLeaf)continue;const{key:C,shallowLoaded:P}=w;if(p&&P&&w.children.forEach($=>{!$.disabled&&!$.isLeaf&&$.shallowLoaded&&h.has($.key)&&h.delete($.key)}),w.disabled||!P)continue;let x=!0,y=!1,T=!0;for(const $ of w.children){const B=$.key;if(!$.disabled){if(T&&(T=!1),h.has(B))y=!0;else if(b.has(B)){y=!0,x=!1;break}else if(x=!1,y)break}}x&&!T?(f&&w.children.forEach($=>{!$.disabled&&h.has($.key)&&h.delete($.key)}),h.add(C)):y&&b.add(C),S&&p&&h.has(C)&&h.delete(C)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(b)}}function Kl(e,t,o,r){const{treeNodeMap:n,getChildren:i}=t,l=new Set,a=new Set(e);return e.forEach(s=>{const c=n.get(s);c!==void 0&&pg(c,d=>{if(d.disabled)return Gs.STOP;const{key:u}=d;if(!l.has(u)&&(l.add(u),a.add(u),K5(d.rawNode,i))){if(r)return Gs.STOP;if(!o)throw new X5}})}),a}function e6(e,{includeGroup:t=!1,includeSelf:o=!0},r){var n;const i=r.treeNodeMap;let l=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const a={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return a.treeNode=null,a;for(;l;)!l.ignored&&(t||!l.isGroup)&&a.treeNodePath.push(l),l=l.parent;return a.treeNodePath.reverse(),o||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map(s=>s.key),a}function t6(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function o6(e,t){const o=e.siblings,r=o.length,{index:n}=e;return t?o[(n+1)%r]:n===o.length-1?null:o[n+1]}function Mf(e,t,{loop:o=!1,includeDisabled:r=!1}={}){const n=t==="prev"?r6:o6,i={reverse:t==="prev"};let l=!1,a=null;function s(c){if(c!==null){if(c===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){a=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){a=c;return}if(c.isGroup){const d=vd(c,i);d!==null?a=d:s(n(c,o))}else{const d=n(c,!1);if(d!==null)s(d);else{const u=n6(c);u!=null&&u.isGroup?s(n(u,o)):o&&s(n(c,!0))}}}}return s(e),a}function r6(e,t){const o=e.siblings,r=o.length,{index:n}=e;return t?o[(n-1+r)%r]:n===0?null:o[n-1]}function n6(e){return e.parent}function vd(e,t={}){const{reverse:o=!1}=t,{children:r}=e;if(r){const{length:n}=r,i=o?n-1:0,l=o?-1:n,a=o?-1:1;for(let s=i;s!==l;s+=a){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=vd(c,t);if(d!==null)return d}else return c}}return null}const i6={getChild(){return this.ignored?null:vd(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Mf(this,"next",e)},getPrev(e={}){return Mf(this,"prev",e)}};function l6(e,t){const o=t?new Set(t):void 0,r=[];function n(i){i.forEach(l=>{r.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||o===void 0||o.has(l.key))&&n(l.children)})}return n(e),r}function a6(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function mg(e,t,o,r,n,i=null,l=0){const a=[];return e.forEach((s,c)=>{var d;const u=Object.create(r);if(u.rawNode=s,u.siblings=a,u.level=l,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=n(s);Array.isArray(f)&&(u.children=mg(f,t,o,r,n,u,l+1))}a.push(u),t.set(u.key,u),o.has(l)||o.set(l,[]),(d=o.get(l))===null||d===void 0||d.push(u)}),a}function gg(e,t={}){var o;const r=new Map,n=new Map,{getDisabled:i=U5,getIgnored:l=W5,getIsGroup:a=Y5,getKey:s=j5}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:N5,d=t.ignoreEmptyChildren?w=>{const C=c(w);return Array.isArray(C)?C.length?C:null:C}:c,u=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return H5(this.rawNode,d)},get shallowLoaded(){return V5(this.rawNode,d)},get ignored(){return l(this.rawNode)},contains(w){return a6(this,w)}},i6),f=mg(e,r,n,u,d);function p(w){if(w==null)return null;const C=r.get(w);return C&&!C.isGroup&&!C.ignored?C:null}function h(w){if(w==null)return null;const C=r.get(w);return C&&!C.ignored?C:null}function b(w,C){const P=h(w);return P?P.getPrev(C):null}function v(w,C){const P=h(w);return P?P.getNext(C):null}function g(w){const C=h(w);return C?C.getParent():null}function S(w){const C=h(w);return C?C.getChild():null}const I={treeNodes:f,treeNodeMap:r,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:d,getFlattenedNodes(w){return l6(f,w)},getNode:p,getPrev:b,getNext:v,getParent:g,getChild:S,getFirstAvailableNode(){return t6(f)},getPath(w,C={}){return e6(w,C,I)},getCheckedKeys(w,C={}){const{cascade:P=!0,leafOnly:x=!1,checkStrategy:y="all",allowNotLoaded:T=!1}=C;return Za({checkedKeys:Ya(w),indeterminateKeys:Xa(w),cascade:P,leafOnly:x,checkStrategy:y,allowNotLoaded:T},I)},check(w,C,P={}){const{cascade:x=!0,leafOnly:y=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=P;return Za({checkedKeys:Ya(C),indeterminateKeys:Xa(C),keysToCheck:w==null?[]:Af(w),cascade:x,leafOnly:y,checkStrategy:T,allowNotLoaded:$},I)},uncheck(w,C,P={}){const{cascade:x=!0,leafOnly:y=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=P;return Za({checkedKeys:Ya(C),indeterminateKeys:Xa(C),keysToUncheck:w==null?[]:Af(w),cascade:x,leafOnly:y,checkStrategy:T,allowNotLoaded:$},I)},getNonLeafKeys(w={}){return F5(f,w)}};return I}const he={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},s6=xt(he.neutralBase),vg=xt(he.neutralInvertBase),c6="rgba("+vg.slice(0,3).join(", ")+", ";function We(e){return c6+String(e)+")"}function d6(e){const t=Array.from(vg);return t[3]=Number(e),Ce(s6,t)}const u6=Object.assign(Object.assign({name:"common"},ao),{baseColor:he.neutralBase,primaryColor:he.primaryDefault,primaryColorHover:he.primaryHover,primaryColorPressed:he.primaryActive,primaryColorSuppl:he.primarySuppl,infoColor:he.infoDefault,infoColorHover:he.infoHover,infoColorPressed:he.infoActive,infoColorSuppl:he.infoSuppl,successColor:he.successDefault,successColorHover:he.successHover,successColorPressed:he.successActive,successColorSuppl:he.successSuppl,warningColor:he.warningDefault,warningColorHover:he.warningHover,warningColorPressed:he.warningActive,warningColorSuppl:he.warningSuppl,errorColor:he.errorDefault,errorColorHover:he.errorHover,errorColorPressed:he.errorActive,errorColorSuppl:he.errorSuppl,textColorBase:he.neutralTextBase,textColor1:We(he.alpha1),textColor2:We(he.alpha2),textColor3:We(he.alpha3),textColorDisabled:We(he.alpha4),placeholderColor:We(he.alpha4),placeholderColorDisabled:We(he.alpha5),iconColor:We(he.alpha4),iconColorDisabled:We(he.alpha5),iconColorHover:We(Number(he.alpha4)*1.25),iconColorPressed:We(Number(he.alpha4)*.8),opacity1:he.alpha1,opacity2:he.alpha2,opacity3:he.alpha3,opacity4:he.alpha4,opacity5:he.alpha5,dividerColor:We(he.alphaDivider),borderColor:We(he.alphaBorder),closeIconColorHover:We(Number(he.alphaClose)),closeIconColor:We(Number(he.alphaClose)),closeIconColorPressed:We(Number(he.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:We(he.alpha4),clearColorHover:pt(We(he.alpha4),{alpha:1.25}),clearColorPressed:pt(We(he.alpha4),{alpha:.8}),scrollbarColor:We(he.alphaScrollbar),scrollbarColorHover:We(he.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:We(he.alphaProgressRail),railColor:We(he.alphaRail),popoverColor:he.neutralPopover,tableColor:he.neutralCard,cardColor:he.neutralCard,modalColor:he.neutralModal,bodyColor:he.neutralBody,tagColor:d6(he.alphaTag),avatarColor:We(he.alphaAvatar),invertedColor:he.neutralBase,inputColor:We(he.alphaInput),codeColor:We(he.alphaCode),tabColor:We(he.alphaTab),actionColor:We(he.alphaAction),tableHeaderColor:We(he.alphaAction),hoverColor:We(he.alphaPending),tableColorHover:We(he.alphaTablePending),tableColorStriped:We(he.alphaTableStriped),pressedColor:We(he.alphaPressed),opacityDisabled:he.alphaDisabled,inputColorDisabled:We(he.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),de=u6,_e={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},f6=xt(_e.neutralBase),bg=xt(_e.neutralInvertBase),h6="rgba("+bg.slice(0,3).join(", ")+", ";function Bf(e){return h6+String(e)+")"}function It(e){const t=Array.from(bg);return t[3]=Number(e),Ce(f6,t)}const p6=Object.assign(Object.assign({name:"common"},ao),{baseColor:_e.neutralBase,primaryColor:_e.primaryDefault,primaryColorHover:_e.primaryHover,primaryColorPressed:_e.primaryActive,primaryColorSuppl:_e.primarySuppl,infoColor:_e.infoDefault,infoColorHover:_e.infoHover,infoColorPressed:_e.infoActive,infoColorSuppl:_e.infoSuppl,successColor:_e.successDefault,successColorHover:_e.successHover,successColorPressed:_e.successActive,successColorSuppl:_e.successSuppl,warningColor:_e.warningDefault,warningColorHover:_e.warningHover,warningColorPressed:_e.warningActive,warningColorSuppl:_e.warningSuppl,errorColor:_e.errorDefault,errorColorHover:_e.errorHover,errorColorPressed:_e.errorActive,errorColorSuppl:_e.errorSuppl,textColorBase:_e.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:It(_e.alpha4),placeholderColor:It(_e.alpha4),placeholderColorDisabled:It(_e.alpha5),iconColor:It(_e.alpha4),iconColorHover:pt(It(_e.alpha4),{lightness:.75}),iconColorPressed:pt(It(_e.alpha4),{lightness:.9}),iconColorDisabled:It(_e.alpha5),opacity1:_e.alpha1,opacity2:_e.alpha2,opacity3:_e.alpha3,opacity4:_e.alpha4,opacity5:_e.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:It(Number(_e.alphaClose)),closeIconColorHover:It(Number(_e.alphaClose)),closeIconColorPressed:It(Number(_e.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:It(_e.alpha4),clearColorHover:pt(It(_e.alpha4),{lightness:.75}),clearColorPressed:pt(It(_e.alpha4),{lightness:.9}),scrollbarColor:Bf(_e.alphaScrollbar),scrollbarColorHover:Bf(_e.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:It(_e.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:_e.neutralPopover,tableColor:_e.neutralCard,cardColor:_e.neutralCard,modalColor:_e.neutralModal,bodyColor:_e.neutralBody,tagColor:"#eee",avatarColor:It(_e.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:It(_e.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:_e.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),qe=p6,m6={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},xg=e=>{const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:a}=e;return Object.assign(Object.assign({},m6),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:a,textColor:t,iconColor:o,extraTextColor:r})},g6={name:"Empty",common:qe,self:xg},v6=g6,b6={name:"Empty",common:de,self:xg},sn=b6,Cg=e=>{const{scrollbarColor:t,scrollbarColorHover:o}=e;return{color:t,colorHover:o}},x6={name:"Scrollbar",common:qe,self:Cg},Ji=x6,C6={name:"Scrollbar",common:de,self:Cg},jt=C6,{cubicBezierEaseInOut:Lf}=ao;function va({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=Lf,leaveCubicBezier:n=Lf}={}){return[E(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),E(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),E(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),E(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const y6=R("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[E(">",[R("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + max-height: inherit; + scrollbar-width: none; + `,[E("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),E(">",[R("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),E(">, +",[R("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + -webkit-user-select: none; + `,[N("horizontal",` + left: 2px; + right: 2px; + bottom: 4px; + height: var(--n-scrollbar-height); + `,[E(">",[k("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),N("vertical",` + right: 4px; + top: 2px; + bottom: 2px; + width: var(--n-scrollbar-width); + `,[E(">",[k("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),N("disabled",[E(">",[k("scrollbar",{pointerEvents:"none"})])]),E(">",[k("scrollbar",` + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[va(),E("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),w6=Object.assign(Object.assign({},Pe.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),yg=le({name:"Scrollbar",props:w6,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Ye(e),n=Zo("Scrollbar",r,t),i=U(null),l=U(null),a=U(null),s=U(null),c=U(null),d=U(null),u=U(null),f=U(null),p=U(null),h=U(null),b=U(null),v=U(0),g=U(0),S=U(!1),I=U(!1);let w=!1,C=!1,P,x,y=0,T=0,$=0,B=0;const O=qC(),X=M(()=>{const{value:ne}=f,{value:fe}=d,{value:ke}=h;return ne===null||fe===null||ke===null?0:Math.min(ne,ke*ne/fe+e.size*1.5)}),j=M(()=>`${X.value}px`),G=M(()=>{const{value:ne}=p,{value:fe}=u,{value:ke}=b;return ne===null||fe===null||ke===null?0:ke*ne/fe+e.size*1.5}),L=M(()=>`${G.value}px`),K=M(()=>{const{value:ne}=f,{value:fe}=v,{value:ke}=d,{value:Qe}=h;if(ne===null||ke===null||Qe===null)return 0;{const ft=ke-ne;return ft?fe/ft*(Qe-X.value):0}}),re=M(()=>`${K.value}px`),me=M(()=>{const{value:ne}=p,{value:fe}=g,{value:ke}=u,{value:Qe}=b;if(ne===null||ke===null||Qe===null)return 0;{const ft=ke-ne;return ft?fe/ft*(Qe-G.value):0}}),we=M(()=>`${me.value}px`),Se=M(()=>{const{value:ne}=f,{value:fe}=d;return ne!==null&&fe!==null&&fe>ne}),Ee=M(()=>{const{value:ne}=p,{value:fe}=u;return ne!==null&&fe!==null&&fe>ne}),De=M(()=>{const{trigger:ne}=e;return ne==="none"||S.value}),Xe=M(()=>{const{trigger:ne}=e;return ne==="none"||I.value}),Y=M(()=>{const{container:ne}=e;return ne?ne():l.value}),Q=M(()=>{const{content:ne}=e;return ne?ne():a.value}),Z=ed(()=>{e.container||Ae({top:v.value,left:g.value})}),ue=()=>{Z.isDeactivated||ie()},pe=ne=>{if(Z.isDeactivated)return;const{onResize:fe}=e;fe&&fe(ne),ie()},Ae=(ne,fe)=>{if(!e.scrollable)return;if(typeof ne=="number"){ye(fe!=null?fe:0,ne,0,!1,"auto");return}const{left:ke,top:Qe,index:ft,elSize:Et,position:Vt,behavior:at,el:Jt,debounce:Pr=!0}=ne;(ke!==void 0||Qe!==void 0)&&ye(ke!=null?ke:0,Qe!=null?Qe:0,0,!1,at),Jt!==void 0?ye(0,Jt.offsetTop,Jt.offsetHeight,Pr,at):ft!==void 0&&Et!==void 0?ye(0,ft*Et,Et,Pr,at):Vt==="bottom"?ye(0,Number.MAX_SAFE_INTEGER,0,!1,at):Vt==="top"&&ye(0,0,0,!1,at)},ze=(ne,fe)=>{if(!e.scrollable)return;const{value:ke}=Y;!ke||(typeof ne=="object"?ke.scrollBy(ne):ke.scrollBy(ne,fe||0))};function ye(ne,fe,ke,Qe,ft){const{value:Et}=Y;if(!!Et){if(Qe){const{scrollTop:Vt,offsetHeight:at}=Et;if(fe>Vt){fe+ke<=Vt+at||Et.scrollTo({left:ne,top:fe+ke-at,behavior:ft});return}}Et.scrollTo({left:ne,top:fe,behavior:ft})}}function _(){D(),te(),ie()}function A(){W()}function W(){J(),ee()}function J(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{I.value=!1},e.duration)}function ee(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{S.value=!1},e.duration)}function D(){P!==void 0&&window.clearTimeout(P),S.value=!0}function te(){x!==void 0&&window.clearTimeout(x),I.value=!0}function q(ne){const{onScroll:fe}=e;fe&&fe(ne),V()}function V(){const{value:ne}=Y;ne&&(v.value=ne.scrollTop,g.value=ne.scrollLeft*(n!=null&&n.value?-1:1))}function z(){const{value:ne}=Q;ne&&(d.value=ne.offsetHeight,u.value=ne.offsetWidth);const{value:fe}=Y;fe&&(f.value=fe.offsetHeight,p.value=fe.offsetWidth);const{value:ke}=c,{value:Qe}=s;ke&&(b.value=ke.offsetWidth),Qe&&(h.value=Qe.offsetHeight)}function H(){const{value:ne}=Y;ne&&(v.value=ne.scrollTop,g.value=ne.scrollLeft*(n!=null&&n.value?-1:1),f.value=ne.offsetHeight,p.value=ne.offsetWidth,d.value=ne.scrollHeight,u.value=ne.scrollWidth);const{value:fe}=c,{value:ke}=s;fe&&(b.value=fe.offsetWidth),ke&&(h.value=ke.offsetHeight)}function ie(){!e.scrollable||(e.useUnifiedContainer?H():(z(),V()))}function se(ne){var fe;return!(!((fe=i.value)===null||fe===void 0)&&fe.contains(An(ne)))}function xe(ne){ne.preventDefault(),ne.stopPropagation(),C=!0,Ge("mousemove",window,Ie,!0),Ge("mouseup",window,Me,!0),T=g.value,$=n!=null&&n.value?window.innerWidth-ne.clientX:ne.clientX}function Ie(ne){if(!C)return;P!==void 0&&window.clearTimeout(P),x!==void 0&&window.clearTimeout(x);const{value:fe}=p,{value:ke}=u,{value:Qe}=G;if(fe===null||ke===null)return;const Et=(n!=null&&n.value?window.innerWidth-ne.clientX-$:ne.clientX-$)*(ke-fe)/(fe-Qe),Vt=ke-fe;let at=T+Et;at=Math.min(Vt,at),at=Math.max(at,0);const{value:Jt}=Y;if(Jt){Jt.scrollLeft=at*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:Pr}=e;Pr&&Pr(at)}}function Me(ne){ne.preventDefault(),ne.stopPropagation(),He("mousemove",window,Ie,!0),He("mouseup",window,Me,!0),C=!1,ie(),se(ne)&&W()}function je(ne){ne.preventDefault(),ne.stopPropagation(),w=!0,Ge("mousemove",window,Ue,!0),Ge("mouseup",window,_t,!0),y=v.value,B=ne.clientY}function Ue(ne){if(!w)return;P!==void 0&&window.clearTimeout(P),x!==void 0&&window.clearTimeout(x);const{value:fe}=f,{value:ke}=d,{value:Qe}=X;if(fe===null||ke===null)return;const Et=(ne.clientY-B)*(ke-fe)/(fe-Qe),Vt=ke-fe;let at=y+Et;at=Math.min(Vt,at),at=Math.max(at,0);const{value:Jt}=Y;Jt&&(Jt.scrollTop=at)}function _t(ne){ne.preventDefault(),ne.stopPropagation(),He("mousemove",window,Ue,!0),He("mouseup",window,_t,!0),w=!1,ie(),se(ne)&&W()}Nt(()=>{const{value:ne}=Ee,{value:fe}=Se,{value:ke}=t,{value:Qe}=c,{value:ft}=s;Qe&&(ne?Qe.classList.remove(`${ke}-scrollbar-rail--disabled`):Qe.classList.add(`${ke}-scrollbar-rail--disabled`)),ft&&(fe?ft.classList.remove(`${ke}-scrollbar-rail--disabled`):ft.classList.add(`${ke}-scrollbar-rail--disabled`))}),Bt(()=>{e.container||ie()}),$t(()=>{P!==void 0&&window.clearTimeout(P),x!==void 0&&window.clearTimeout(x),He("mousemove",window,Ue,!0),He("mouseup",window,_t,!0)});const go=Pe("Scrollbar","-scrollbar",y6,Ji,e,t),$r=M(()=>{const{common:{cubicBezierEaseInOut:ne,scrollbarBorderRadius:fe,scrollbarHeight:ke,scrollbarWidth:Qe},self:{color:ft,colorHover:Et}}=go.value;return{"--n-scrollbar-bezier":ne,"--n-scrollbar-color":ft,"--n-scrollbar-color-hover":Et,"--n-scrollbar-border-radius":fe,"--n-scrollbar-width":Qe,"--n-scrollbar-height":ke}}),Lt=o?ut("scrollbar",void 0,$r,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ae,scrollBy:ze,sync:ie,syncUnifiedContainer:H,handleMouseEnterWrapper:_,handleMouseLeaveWrapper:A}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:v,wrapperRef:i,containerRef:l,contentRef:a,yRailRef:s,xRailRef:c,needYBar:Se,needXBar:Ee,yBarSizePx:j,xBarSizePx:L,yBarTopPx:re,xBarLeftPx:we,isShowXBar:De,isShowYBar:Xe,isIos:O,handleScroll:q,handleContentResize:ue,handleContainerResize:pe,handleYScrollMouseDown:je,handleXScrollMouseDown:xe,cssVars:o?void 0:$r,themeClass:Lt==null?void 0:Lt.themeClass,onRender:Lt==null?void 0:Lt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:r,rtlEnabled:n,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const l=this.trigger==="none",a=()=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},m(l?Tu:Ot,l?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,u;return(d=this.onRender)===null||d===void 0||d.call(this),m("div",qo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(u=t.default)===null||u===void 0?void 0:u.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m(Ds,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:a(),this.xScrollable&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(l?Tu:Ot,l?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():m(Ds,{onResize:this.handleContainerResize},{default:s});return i?m(Ze,null,c,a()):c}}),yr=yg,wg=yg,S6={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},$6=e=>{const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:h,heightSmall:b,heightMedium:v,heightLarge:g,heightHuge:S}=e;return Object.assign(Object.assign({},S6),{optionFontSizeSmall:u,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:h,optionHeightSmall:b,optionHeightMedium:v,optionHeightLarge:g,optionHeightHuge:S,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},_6={name:"InternalSelectMenu",common:de,peers:{Scrollbar:jt,Empty:sn},self:$6},Qi=_6,{cubicBezierEaseIn:Df,cubicBezierEaseOut:Ff}=ao;function bd({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[E("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Df}, transform ${t} ${Df} ${n&&","+n}`}),E("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ff}, transform ${t} ${Ff} ${n&&","+n}`}),E("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),E("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const P6=R("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),z6=le({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){an("-base-wave",P6,Be(e,"clsPrefix"));const t=U(null),o=U(!1);let r=null;return $t(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),zt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),T6={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Sg=e=>{const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},T6),{fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t})},k6={name:"Popover",common:qe,self:Sg},xd=k6,E6={name:"Popover",common:de,self:Sg},cn=E6,Ja={top:"bottom",bottom:"top",left:"right",right:"left"},bt="var(--n-arrow-height) * 1.414",I6=E([R("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[E(">",[R("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Je("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Je("scrollable",[Je("show-header-or-footer","padding: var(--n-padding);")])]),k("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),k("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),N("scrollable, show-header-or-footer",[k("content",` + padding: var(--n-padding); + `)])]),R("popover-shared",` + transform-origin: inherit; + `,[R("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[R("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${bt}); + height: calc(${bt}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),E("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),E("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),E("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),E("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),eo("top-start",` + top: calc(${bt} / -2); + left: calc(${Oo("top-start")} - var(--v-offset-left)); + `),eo("top",` + top: calc(${bt} / -2); + transform: translateX(calc(${bt} / -2)) rotate(45deg); + left: 50%; + `),eo("top-end",` + top: calc(${bt} / -2); + right: calc(${Oo("top-end")} + var(--v-offset-left)); + `),eo("bottom-start",` + bottom: calc(${bt} / -2); + left: calc(${Oo("bottom-start")} - var(--v-offset-left)); + `),eo("bottom",` + bottom: calc(${bt} / -2); + transform: translateX(calc(${bt} / -2)) rotate(45deg); + left: 50%; + `),eo("bottom-end",` + bottom: calc(${bt} / -2); + right: calc(${Oo("bottom-end")} + var(--v-offset-left)); + `),eo("left-start",` + left: calc(${bt} / -2); + top: calc(${Oo("left-start")} - var(--v-offset-top)); + `),eo("left",` + left: calc(${bt} / -2); + transform: translateY(calc(${bt} / -2)) rotate(45deg); + top: 50%; + `),eo("left-end",` + left: calc(${bt} / -2); + bottom: calc(${Oo("left-end")} + var(--v-offset-top)); + `),eo("right-start",` + right: calc(${bt} / -2); + top: calc(${Oo("right-start")} - var(--v-offset-top)); + `),eo("right",` + right: calc(${bt} / -2); + transform: translateY(calc(${bt} / -2)) rotate(45deg); + top: 50%; + `),eo("right-end",` + right: calc(${bt} / -2); + bottom: calc(${Oo("right-end")} + var(--v-offset-top)); + `),...A4({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",a=`calc((${`var(--v-target-${r}, 0px)`} - ${bt}) / 2)`,s=Oo(n);return E(`[v-placement="${n}"] >`,[R("popover-shared",[N("center-arrow",[R("popover-arrow",`${t}: calc(max(${a}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function Oo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function eo(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return E(`[v-placement="${e}"] >`,[R("popover-shared",` + margin-${Ja[o]}: var(--n-space); + `,[N("show-arrow",` + margin-${Ja[o]}: var(--n-space-arrow); + `),N("overlap",` + margin: 0; + `),AC("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${o}: 100%; + ${Ja[o]}: auto; + ${r} + `,[R("popover-arrow",t)])])])}const $g=Object.assign(Object.assign({},Pe.props),{to:Vo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),_g=({arrowStyle:e,clsPrefix:t})=>m("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},m("div",{class:`${t}-popover-arrow`,style:e})),R6=le({name:"PopoverBody",inheritAttrs:!1,props:$g,setup(e,{slots:t,attrs:o}){const{namespaceRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:i}=Ye(e),l=Pe("Popover","-popover",I6,xd,e,n),a=U(null),s=ge("NPopover"),c=U(null),d=U(e.show),u=U(!1);Nt(()=>{const{show:x}=e;x&&!MC()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=M(()=>{const{trigger:x,onClickoutside:y}=e,T=[],{positionManuallyRef:{value:$}}=s;return $||(x==="click"&&!y&&T.push([Mi,w,void 0,{capture:!0}]),x==="hover"&&T.push([ty,I])),y&&T.push([Mi,w,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&T.push([On,e.show]),T}),p=M(()=>{const x=e.width==="trigger"?void 0:No(e.width),y=[];x&&y.push({width:x});const{maxWidth:T,minWidth:$}=e;return T&&y.push({maxWidth:No(T)}),$&&y.push({maxWidth:No($)}),i||y.push(h.value),y}),h=M(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:y,cubicBezierEaseOut:T},self:{space:$,spaceArrow:B,padding:O,fontSize:X,textColor:j,dividerColor:G,color:L,boxShadow:K,borderRadius:re,arrowHeight:me,arrowOffset:we,arrowOffsetVertical:Se}}=l.value;return{"--n-box-shadow":K,"--n-bezier":x,"--n-bezier-ease-in":y,"--n-bezier-ease-out":T,"--n-font-size":X,"--n-text-color":j,"--n-color":L,"--n-divider-color":G,"--n-border-radius":re,"--n-arrow-height":me,"--n-arrow-offset":we,"--n-arrow-offset-vertical":Se,"--n-padding":O,"--n-space":$,"--n-space-arrow":B}}),b=i?ut("popover",void 0,h,e):void 0;s.setBodyInstance({syncPosition:v}),$t(()=>{s.setBodyInstance(null)}),Ke(Be(e,"show"),x=>{e.animated||(x?d.value=!0:d.value=!1)});function v(){var x;(x=a.value)===null||x===void 0||x.syncPosition()}function g(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(x)}function S(x){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(x)}function I(x){e.trigger==="hover"&&!C().contains(An(x))&&s.handleMouseMoveOutside(x)}function w(x){(e.trigger==="click"&&!C().contains(An(x))||e.onClickoutside)&&s.handleClickOutside(x)}function C(){return s.getTriggerElement()}Re(jn,c),Re(qi,null),Re(Gi,null);function P(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let y;const T=s.internalRenderBodyRef.value,{value:$}=n;if(T)y=T([`${$}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${$}-popover-shared--overlap`,e.showArrow&&`${$}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${$}-popover-shared--center-arrow`],c,p.value,g,S);else{const{value:B}=s.extraClassRef,{internalTrapFocus:O}=e,X=!Tn(t.header)||!Tn(t.footer),j=()=>{var G;const L=X?m(Ze,null,ot(t.header,me=>me?m("div",{class:`${$}-popover__header`,style:e.headerStyle},me):null),ot(t.default,me=>me?m("div",{class:`${$}-popover__content`,style:e.contentStyle},t):null),ot(t.footer,me=>me?m("div",{class:`${$}-popover__footer`,style:e.footerStyle},me):null)):e.scrollable?(G=t.default)===null||G===void 0?void 0:G.call(t):m("div",{class:`${$}-popover__content`,style:e.contentStyle},t),K=e.scrollable?m(wg,{contentClass:X?void 0:`${$}-popover__content`,contentStyle:X?void 0:e.contentStyle},{default:()=>L}):L,re=e.showArrow?_g({arrowStyle:e.arrowStyle,clsPrefix:$}):null;return[K,re]};y=m("div",qo({class:[`${$}-popover`,`${$}-popover-shared`,b==null?void 0:b.themeClass.value,B.map(G=>`${$}-${G}`),{[`${$}-popover--scrollable`]:e.scrollable,[`${$}-popover--show-header-or-footer`]:X,[`${$}-popover--raw`]:e.raw,[`${$}-popover-shared--overlap`]:e.overlap,[`${$}-popover-shared--show-arrow`]:e.showArrow,[`${$}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:S},o),O?m(Jc,{active:e.show,autoFocus:!0},{default:j}):j())}return oo(y,f.value)}return{displayed:u,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:a,adjustedTo:Vo(e),followerEnabled:d,renderContentNode:P}},render(){return m(Xc,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Vo.tdkey},{default:()=>this.animated?m(Ot,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),O6=Object.keys($g),A6={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function M6(e,t,o){A6[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[r],i=o[r];n?e.props[r]=(...l)=>{n(...l),i(...l)}:e.props[r]=i})}const B6=Zr("").type,ba={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Vo.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},L6=Object.assign(Object.assign(Object.assign({},Pe.props),ba),{internalOnAfterLeave:Function,internalRenderBody:Function}),Pg=le({name:"Popover",inheritAttrs:!1,props:L6,__popover__:!0,setup(e){const t=on(),o=U(null),r=M(()=>e.show),n=U(e.defaultShow),i=po(r,n),l=Tt(()=>e.disabled?!1:i.value),a=()=>{if(e.disabled)return!0;const{getDisabled:j}=e;return!!(j!=null&&j())},s=()=>a()?!1:i.value,c=Uc(e,["arrow","showArrow"]),d=M(()=>e.overlap?!1:c.value);let u=null;const f=U(null),p=U(null),h=Tt(()=>e.x!==void 0&&e.y!==void 0);function b(j){const{"onUpdate:show":G,onUpdateShow:L,onShow:K,onHide:re}=e;n.value=j,G&&$e(G,j),L&&$e(L,j),j&&K&&$e(K,!0),j&&re&&$e(re,!1)}function v(){u&&u.syncPosition()}function g(){const{value:j}=f;j&&(window.clearTimeout(j),f.value=null)}function S(){const{value:j}=p;j&&(window.clearTimeout(j),p.value=null)}function I(){const j=a();if(e.trigger==="focus"&&!j){if(s())return;b(!0)}}function w(){const j=a();if(e.trigger==="focus"&&!j){if(!s())return;b(!1)}}function C(){const j=a();if(e.trigger==="hover"&&!j){if(S(),f.value!==null||s())return;const G=()=>{b(!0),f.value=null},{delay:L}=e;L===0?G():f.value=window.setTimeout(G,L)}}function P(){const j=a();if(e.trigger==="hover"&&!j){if(g(),p.value!==null||!s())return;const G=()=>{b(!1),p.value=null},{duration:L}=e;L===0?G():p.value=window.setTimeout(G,L)}}function x(){P()}function y(j){var G;!s()||(e.trigger==="click"&&(g(),S(),b(!1)),(G=e.onClickoutside)===null||G===void 0||G.call(e,j))}function T(){if(e.trigger==="click"&&!a()){g(),S();const j=!s();b(j)}}function $(j){!e.internalTrapFocus||j.key==="Escape"&&(g(),S(),b(!1))}function B(j){n.value=j}function O(){var j;return(j=o.value)===null||j===void 0?void 0:j.targetRef}function X(j){u=j}return Re("NPopover",{getTriggerElement:O,handleKeydown:$,handleMouseEnter:C,handleMouseLeave:P,handleClickOutside:y,handleMouseMoveOutside:x,setBodyInstance:X,positionManuallyRef:h,isMountedRef:t,zIndexRef:Be(e,"zIndex"),extraClassRef:Be(e,"internalExtraClass"),internalRenderBodyRef:Be(e,"internalRenderBody")}),Nt(()=>{i.value&&a()&&b(!1)}),{binderInstRef:o,positionManually:h,mergedShowConsideringDisabledProp:l,uncontrolledShow:n,mergedShowArrow:d,getMergedShow:s,setShow:B,handleClick:T,handleMouseEnter:C,handleMouseLeave:P,handleFocus:I,handleBlur:w,syncPosition:v}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(o.activator?r=Os(o,"activator"):r=Os(o,"trigger"),r)){r=zo(r),r=r.type===B6?m("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:l}=this,a=[i,...l],s={onBlur:c=>{a.forEach(d=>{d.onBlur(c)})},onFocus:c=>{a.forEach(d=>{d.onFocus(c)})},onClick:c=>{a.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{a.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{a.forEach(d=>{d.onMouseleave(c)})}};M6(r,l?"nested":t?"manual":this.trigger,s)}}return m(Gc,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?oo(m("div",{style:{position:"fixed",inset:0}}),[[ua,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(qc,null,{default:()=>r}),m(R6,So(this.$props,O6,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,a;return(a=(l=this.$slots).default)===null||a===void 0?void 0:a.call(l)},header:()=>{var l,a;return(a=(l=this.$slots).header)===null||a===void 0?void 0:a.call(l)},footer:()=>{var l,a;return(a=(l=this.$slots).footer)===null||a===void 0?void 0:a.call(l)}})]}})}}),zg={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},D6={name:"Tag",common:de,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:b,closeColorHover:v,closeColorPressed:g,borderRadiusSmall:S,fontSizeMini:I,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:P,heightMini:x,heightTiny:y,heightSmall:T,heightMedium:$,buttonColor2Hover:B,buttonColor2Pressed:O,fontWeightStrong:X}=e;return Object.assign(Object.assign({},zg),{closeBorderRadius:S,heightTiny:x,heightSmall:y,heightMedium:T,heightLarge:$,borderRadius:S,opacityDisabled:f,fontSizeTiny:I,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:P,fontWeightStrong:X,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:B,colorPressedCheckable:O,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:b,closeColorHover:v,closeColorPressed:g,borderPrimary:`1px solid ${ae(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:ae(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:pt(n,{lightness:.7}),closeIconColorHoverPrimary:pt(n,{lightness:.7}),closeIconColorPressedPrimary:pt(n,{lightness:.7}),closeColorHoverPrimary:ae(n,{alpha:.16}),closeColorPressedPrimary:ae(n,{alpha:.12}),borderInfo:`1px solid ${ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ae(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:pt(i,{alpha:.7}),closeIconColorHoverInfo:pt(i,{alpha:.7}),closeIconColorPressedInfo:pt(i,{alpha:.7}),closeColorHoverInfo:ae(i,{alpha:.16}),closeColorPressedInfo:ae(i,{alpha:.12}),borderSuccess:`1px solid ${ae(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:ae(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:pt(l,{alpha:.7}),closeIconColorHoverSuccess:pt(l,{alpha:.7}),closeIconColorPressedSuccess:pt(l,{alpha:.7}),closeColorHoverSuccess:ae(l,{alpha:.16}),closeColorPressedSuccess:ae(l,{alpha:.12}),borderWarning:`1px solid ${ae(a,{alpha:.3})}`,textColorWarning:a,colorWarning:ae(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:pt(a,{alpha:.7}),closeIconColorHoverWarning:pt(a,{alpha:.7}),closeIconColorPressedWarning:pt(a,{alpha:.7}),closeColorHoverWarning:ae(a,{alpha:.16}),closeColorPressedWarning:ae(a,{alpha:.11}),borderError:`1px solid ${ae(s,{alpha:.3})}`,textColorError:s,colorError:ae(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:pt(s,{alpha:.7}),closeIconColorHoverError:pt(s,{alpha:.7}),closeIconColorPressedError:pt(s,{alpha:.7}),closeColorHoverError:ae(s,{alpha:.16}),closeColorPressedError:ae(s,{alpha:.12})})}},Tg=D6,F6=e=>{const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:b,borderRadiusSmall:v,fontSizeMini:g,fontSizeTiny:S,fontSizeSmall:I,fontSizeMedium:w,heightMini:C,heightTiny:P,heightSmall:x,heightMedium:y,closeColorHover:T,closeColorPressed:$,buttonColor2Hover:B,buttonColor2Pressed:O,fontWeightStrong:X}=e;return Object.assign(Object.assign({},zg),{closeBorderRadius:v,heightTiny:C,heightSmall:P,heightMedium:x,heightLarge:y,borderRadius:v,opacityDisabled:u,fontSizeTiny:g,fontSizeSmall:S,fontSizeMedium:I,fontSizeLarge:w,fontWeightStrong:X,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:B,colorPressedCheckable:O,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:b,closeColorHover:T,closeColorPressed:$,borderPrimary:`1px solid ${ae(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:ae(n,{alpha:.12}),colorBorderedPrimary:ae(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:ae(n,{alpha:.12}),closeColorPressedPrimary:ae(n,{alpha:.18}),borderInfo:`1px solid ${ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ae(i,{alpha:.12}),colorBorderedInfo:ae(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ae(i,{alpha:.12}),closeColorPressedInfo:ae(i,{alpha:.18}),borderSuccess:`1px solid ${ae(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:ae(l,{alpha:.12}),colorBorderedSuccess:ae(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:ae(l,{alpha:.12}),closeColorPressedSuccess:ae(l,{alpha:.18}),borderWarning:`1px solid ${ae(a,{alpha:.35})}`,textColorWarning:a,colorWarning:ae(a,{alpha:.15}),colorBorderedWarning:ae(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:ae(a,{alpha:.12}),closeColorPressedWarning:ae(a,{alpha:.18}),borderError:`1px solid ${ae(s,{alpha:.23})}`,textColorError:s,colorError:ae(s,{alpha:.1}),colorBorderedError:ae(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ae(s,{alpha:.12}),closeColorPressedError:ae(s,{alpha:.18})})},H6={name:"Tag",common:qe,self:F6},N6=H6,j6={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},W6=R("tag",` + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[N("strong",` + font-weight: var(--n-font-weight-strong); + `),k("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),k("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),k("avatar",` + display: flex; + margin: 0 6px 0 0; + `),k("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),N("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[k("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),k("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),N("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),N("icon, avatar",[N("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),N("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),N("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Je("disabled",[E("&:hover","background-color: var(--n-color-hover-checkable);",[Je("checked","color: var(--n-text-color-hover-checkable);")]),E("&:active","background-color: var(--n-color-pressed-checkable);",[Je("checked","color: var(--n-text-color-pressed-checkable);")])]),N("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Je("disabled",[E("&:hover","background-color: var(--n-color-checked-hover);"),E("&:active","background-color: var(--n-color-checked-pressed);")])])])]),V6=Object.assign(Object.assign(Object.assign({},Pe.props),j6),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),U6="n-tag",K6=le({name:"Tag",props:V6,setup(e){const t=U(null),{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Ye(e),l=Pe("Tag","-tag",W6,N6,e,r);Re(U6,{roundRef:Be(e,"round")});function a(p){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:b,onUpdateChecked:v,"onUpdate:checked":g}=e;v&&v(!h),g&&g(!h),b&&b(!h)}}function s(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&$e(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},d=Zo("Tag",i,r),u=M(()=>{const{type:p,size:h,color:{color:b,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:S,closeMargin:I,closeMarginRtl:w,borderRadius:C,opacityDisabled:P,textColorCheckable:x,textColorHoverCheckable:y,textColorPressedCheckable:T,textColorChecked:$,colorCheckable:B,colorHoverCheckable:O,colorPressedCheckable:X,colorChecked:j,colorCheckedHover:G,colorCheckedPressed:L,closeBorderRadius:K,fontWeightStrong:re,[ce("colorBordered",p)]:me,[ce("closeSize",h)]:we,[ce("closeIconSize",h)]:Se,[ce("fontSize",h)]:Ee,[ce("height",h)]:De,[ce("color",p)]:Xe,[ce("textColor",p)]:Y,[ce("border",p)]:Q,[ce("closeIconColor",p)]:Z,[ce("closeIconColorHover",p)]:ue,[ce("closeIconColorPressed",p)]:pe,[ce("closeColorHover",p)]:Ae,[ce("closeColorPressed",p)]:ze}}=l.value;return{"--n-font-weight-strong":re,"--n-avatar-size-override":`calc(${De} - 8px)`,"--n-bezier":g,"--n-border-radius":C,"--n-border":Q,"--n-close-icon-size":Se,"--n-close-color-pressed":ze,"--n-close-color-hover":Ae,"--n-close-border-radius":K,"--n-close-icon-color":Z,"--n-close-icon-color-hover":ue,"--n-close-icon-color-pressed":pe,"--n-close-icon-color-disabled":Z,"--n-close-margin":I,"--n-close-margin-rtl":w,"--n-close-size":we,"--n-color":b||(o.value?me:Xe),"--n-color-checkable":B,"--n-color-checked":j,"--n-color-checked-hover":G,"--n-color-checked-pressed":L,"--n-color-hover-checkable":O,"--n-color-pressed-checkable":X,"--n-font-size":Ee,"--n-height":De,"--n-opacity-disabled":P,"--n-padding":S,"--n-text-color":v||Y,"--n-text-color-checkable":x,"--n-text-color-checked":$,"--n-text-color-hover-checkable":y,"--n-text-color-pressed-checkable":T}}),f=n?ut("tag",M(()=>{let p="";const{type:h,size:b,color:{color:v,textColor:g}={}}=e;return p+=h[0],p+=b[0],v&&(p+=`a${Fl(v)}`),g&&(p+=`b${Fl(g)}`),o.value&&(p+="c"),p}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:o,handleClick:a,handleCloseClick:s,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:r,closable:n,color:{borderColor:i}={},round:l,onRender:a,$slots:s}=this;a==null||a();const c=ot(s.avatar,u=>u&&m("div",{class:`${o}-tag__avatar`},u)),d=ot(s.icon,u=>u&&m("div",{class:`${o}-tag__icon`},u));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:r,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:l,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?m(Un,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),G6=R("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[E(">",[k("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[E("&:hover",` + color: var(--n-clear-color-hover)!important; + `),E("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),k("placeholder",` + display: flex; + `),k("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Qr({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),qs=le({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return an("-base-clear",G6,Be(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(Zi,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},qr(this.$slots.icon,()=>[m(ko,{clsPrefix:e},{default:()=>m(R5,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),q6=le({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return m(ga,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(qs,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(ko,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>qr(t.default,()=>[m(I5,null)])})}):null})}}}),Y6={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},X6={name:"InternalSelection",common:de,peers:{Popover:cn},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:b,clearColorPressed:v,placeholderColor:g,placeholderColorDisabled:S,fontSizeTiny:I,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:P,heightTiny:x,heightSmall:y,heightMedium:T,heightLarge:$}=e;return Object.assign(Object.assign({},Y6),{fontSizeTiny:I,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:P,heightTiny:x,heightSmall:y,heightMedium:T,heightLarge:$,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:g,placeholderColorDisabled:S,color:n,colorDisabled:i,colorActive:ae(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${ae(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${ae(l,{alpha:.4})}`,caretColor:l,arrowColor:f,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${ae(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${ae(s,{alpha:.4})}`,colorActiveWarning:ae(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${ae(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${ae(d,{alpha:.4})}`,colorActiveError:ae(d,{alpha:.1}),caretColorError:d,clearColor:h,clearColorHover:b,clearColorPressed:v})}},Cd=X6,{cubicBezierEaseInOut:tr}=ao;function Z6({duration:e=".2s",delay:t=".1s"}={}){return[E("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),E("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),E("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${tr}, + max-width ${e} ${tr} ${t}, + margin-left ${e} ${tr} ${t}, + margin-right ${e} ${tr} ${t}; + `),E("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${tr} ${t}, + max-width ${e} ${tr}, + margin-left ${e} ${tr}, + margin-right ${e} ${tr}; + `)]}const J6={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},Q6={name:"Alert",common:de,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:b,errorColorSuppl:v,fontSize:g}=e;return Object.assign(Object.assign({},J6),{fontSize:g,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${ae(p,{alpha:.35})}`,colorInfo:ae(p,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${ae(h,{alpha:.35})}`,colorSuccess:ae(h,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:h,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${ae(b,{alpha:.35})}`,colorWarning:ae(b,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:b,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${ae(v,{alpha:.35})}`,colorError:ae(v,{alpha:.25}),titleTextColorError:l,iconColorError:v,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},e$=Q6,{cubicBezierEaseInOut:xo,cubicBezierEaseOut:t$,cubicBezierEaseIn:o$}=ao;function kg({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:l=void 0,reverse:a=!1}={}){const s=a?"leave":"enter",c=a?"enter":"leave";return[E(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),E(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},l),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),E(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${xo} ${r}, + opacity ${t} ${t$} ${r}, + margin-top ${t} ${xo} ${r}, + margin-bottom ${t} ${xo} ${r}, + padding-top ${t} ${xo} ${r}, + padding-bottom ${t} ${xo} ${r} + ${o?","+o:""} + `),E(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${xo}, + opacity ${t} ${o$}, + margin-top ${t} ${xo}, + margin-bottom ${t} ${xo}, + padding-top ${t} ${xo}, + padding-bottom ${t} ${xo} + ${o?","+o:""} + `)]}const r$={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},n$=e=>{const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return Object.assign(Object.assign({},r$),{borderRadius:t,railColor:o,railColorActive:r,linkColor:ae(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r})},i$={name:"Anchor",common:de,self:n$},l$=i$,a$=tn&&"chrome"in window;tn&&navigator.userAgent.includes("Firefox");const Eg=tn&&navigator.userAgent.includes("Safari")&&!a$,Ig={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},s$={name:"Input",common:de,self(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:b,fontSizeMedium:v,fontSizeLarge:g,heightTiny:S,heightSmall:I,heightMedium:w,heightLarge:C,clearColor:P,clearColorHover:x,clearColorPressed:y,placeholderColor:T,placeholderColorDisabled:$,iconColor:B,iconColorDisabled:O,iconColorHover:X,iconColorPressed:j}=e;return Object.assign(Object.assign({},Ig),{countTextColorDisabled:r,countTextColor:o,heightTiny:S,heightSmall:I,heightMedium:w,heightLarge:C,fontSizeTiny:h,fontSizeSmall:b,fontSizeMedium:v,fontSizeLarge:g,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:T,placeholderColorDisabled:$,color:l,colorDisabled:a,colorFocus:ae(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${ae(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:ae(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${ae(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:ae(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${ae(d,{alpha:.3})}`,caretColorError:d,clearColor:P,clearColorHover:x,clearColorPressed:y,iconColor:B,iconColorDisabled:O,iconColorHover:X,iconColorPressed:j,suffixTextColor:t})}},so=s$,c$=e=>{const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,borderColor:s,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:b,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:S,heightTiny:I,heightSmall:w,heightMedium:C,heightLarge:P,actionColor:x,clearColor:y,clearColorHover:T,clearColorPressed:$,placeholderColor:B,placeholderColorDisabled:O,iconColor:X,iconColorDisabled:j,iconColorHover:G,iconColorPressed:L}=e;return Object.assign(Object.assign({},Ig),{countTextColorDisabled:r,countTextColor:o,heightTiny:I,heightSmall:w,heightMedium:C,heightLarge:P,fontSizeTiny:b,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:S,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:B,placeholderColorDisabled:O,color:l,colorDisabled:a,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ae(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ae(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:l,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${ae(u,{alpha:.2})}`,caretColorError:u,clearColor:y,clearColorHover:T,clearColorPressed:$,iconColor:X,iconColorDisabled:j,iconColorHover:G,iconColorPressed:L,suffixTextColor:t})},d$={name:"Input",common:qe,self:c$},Rg=d$,Og="n-input";function u$(e){let t=0;for(const o of e)t++;return t}function Cl(e){return e===""||e==null}function f$(e){const t=U(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:l,selectionEnd:a,value:s}=i;if(l==null||a==null){n();return}t.value={start:l,end:a,beforeText:s.slice(0,l),afterText:s.slice(a)}}function r(){var i;const{value:l}=t,{value:a}=e;if(!l||!a)return;const{value:s}=a,{start:c,beforeText:d,afterText:u}=l;let f=s.length;if(s.endsWith(u))f=s.length-u.length;else if(s.startsWith(d))f=d.length;else{const p=d[c-1],h=s.indexOf(p,c-1);h!==-1&&(f=h+1)}(i=a.setSelectionRange)===null||i===void 0||i.call(a,f,f)}function n(){t.value=null}return Ke(e,n),{recordCursor:o,restoreCursor:r}}const Hf=le({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:n,countGraphemesRef:i}=ge(Og),l=M(()=>{const{value:a}=o;return a===null||Array.isArray(a)?0:(i.value||u$)(a)});return()=>{const{value:a}=r,{value:s}=o;return m("span",{class:`${n.value}-input-word-count`},fC(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[a===void 0?l.value:`${l.value} / ${a}`]))}}}),h$=R("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[k("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),k("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),k("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[E("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),E("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),E("&:-webkit-autofill ~",[k("placeholder","display: none;")])]),N("round",[Je("textarea","border-radius: calc(var(--n-height) / 2);")]),k("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[E("span",` + width: 100%; + display: inline-block; + `)]),N("textarea",[k("placeholder","overflow: visible;")]),Je("autosize","width: 100%;"),N("autosize",[k("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),R("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),k("input-mirror",` + padding: 0; + height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),k("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[E("+",[k("placeholder",` + display: flex; + align-items: center; + `)])]),Je("textarea",[k("placeholder","white-space: nowrap;")]),k("eye",` + transition: color .3s var(--n-bezier); + `),N("textarea","width: 100%;",[R("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),N("resizable",[R("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),k("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + `),k("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),N("pair",[k("input-el, placeholder","text-align: center;"),k("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[R("icon",` + color: var(--n-icon-color); + `),R("base-icon",` + color: var(--n-icon-color); + `)])]),N("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[k("border","border: var(--n-border-disabled);"),k("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),k("placeholder","color: var(--n-placeholder-color-disabled);"),k("separator","color: var(--n-text-color-disabled);",[R("icon",` + color: var(--n-icon-color-disabled); + `),R("base-icon",` + color: var(--n-icon-color-disabled); + `)]),R("input-word-count",` + color: var(--n-count-text-color-disabled); + `),k("suffix, prefix","color: var(--n-text-color-disabled);",[R("icon",` + color: var(--n-icon-color-disabled); + `),R("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),Je("disabled",[k("eye",` + display: flex; + align-items: center; + justify-content: center; + color: var(--n-icon-color); + cursor: pointer; + `,[E("&:hover",` + color: var(--n-icon-color-hover); + `),E("&:active",` + color: var(--n-icon-color-pressed); + `)]),E("&:hover",[k("state-border","border: var(--n-border-hover);")]),N("focus","background-color: var(--n-color-focus);",[k("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),k("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),k("state-border",` + border-color: #0000; + z-index: 1; + `),k("prefix","margin-right: 4px;"),k("suffix",` + margin-left: 4px; + `),k("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[R("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),R("base-clear",` + font-size: var(--n-icon-size); + `,[k("placeholder",[R("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),E(">",[R("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),R("base-icon",` + font-size: var(--n-icon-size); + `)]),R("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>N(`${e}-status`,[Je("disabled",[R("base-loading",` + color: var(--n-loading-color-${e}) + `),k("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),k("state-border",` + border: var(--n-border-${e}); + `),E("&:hover",[k("state-border",` + border: var(--n-border-hover-${e}); + `)]),E("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[k("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),N("focus",` + background-color: var(--n-color-focus-${e}); + `,[k("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),p$=R("input",[N("disabled",[k("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]),m$=Object.assign(Object.assign({},Pe.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),g$=le({name:"Input",props:m$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Ye(e),i=Pe("Input","-input",h$,Rg,e,t);Eg&&an("-input-safari",p$,t);const l=U(null),a=U(null),s=U(null),c=U(null),d=U(null),u=U(null),f=U(null),p=f$(f),h=U(null),{localeRef:b}=fg("Input"),v=U(e.defaultValue),g=Be(e,"value"),S=po(g,v),I=fa(e),{mergedSizeRef:w,mergedDisabledRef:C,mergedStatusRef:P}=I,x=U(!1),y=U(!1),T=U(!1),$=U(!1);let B=null;const O=M(()=>{const{placeholder:F,pair:oe}=e;return oe?Array.isArray(F)?F:F===void 0?["",""]:[F,F]:F===void 0?[b.value.placeholder]:[F]}),X=M(()=>{const{value:F}=T,{value:oe}=S,{value:Te}=O;return!F&&(Cl(oe)||Array.isArray(oe)&&Cl(oe[0]))&&Te[0]}),j=M(()=>{const{value:F}=T,{value:oe}=S,{value:Te}=O;return!F&&Te[1]&&(Cl(oe)||Array.isArray(oe)&&Cl(oe[1]))}),G=Tt(()=>e.internalForceFocus||x.value),L=Tt(()=>{if(C.value||e.readonly||!e.clearable||!G.value&&!y.value)return!1;const{value:F}=S,{value:oe}=G;return e.pair?!!(Array.isArray(F)&&(F[0]||F[1]))&&(y.value||oe):!!F&&(y.value||oe)}),K=M(()=>{const{showPasswordOn:F}=e;if(F)return F;if(e.showPasswordToggle)return"click"}),re=U(!1),me=M(()=>{const{textDecoration:F}=e;return F?Array.isArray(F)?F.map(oe=>({textDecoration:oe})):[{textDecoration:F}]:["",""]}),we=U(void 0),Se=()=>{var F,oe;if(e.type==="textarea"){const{autosize:Te}=e;if(Te&&(we.value=(oe=(F=h.value)===null||F===void 0?void 0:F.$el)===null||oe===void 0?void 0:oe.offsetWidth),!a.value||typeof Te=="boolean")return;const{paddingTop:lt,paddingBottom:ht,lineHeight:nt}=window.getComputedStyle(a.value),zr=Number(lt.slice(0,-2)),Tr=Number(ht.slice(0,-2)),kr=Number(nt.slice(0,-2)),{value:Gn}=s;if(!Gn)return;if(Te.minRows){const qn=Math.max(Te.minRows,1),ka=`${zr+Tr+kr*qn}px`;Gn.style.minHeight=ka}if(Te.maxRows){const qn=`${zr+Tr+kr*Te.maxRows}px`;Gn.style.maxHeight=qn}}},Ee=M(()=>{const{maxlength:F}=e;return F===void 0?void 0:Number(F)});Bt(()=>{const{value:F}=S;Array.isArray(F)||Vt(F)});const De=lo().proxy;function Xe(F){const{onUpdateValue:oe,"onUpdate:value":Te,onInput:lt}=e,{nTriggerFormInput:ht}=I;oe&&$e(oe,F),Te&&$e(Te,F),lt&&$e(lt,F),v.value=F,ht()}function Y(F){const{onChange:oe}=e,{nTriggerFormChange:Te}=I;oe&&$e(oe,F),v.value=F,Te()}function Q(F){const{onBlur:oe}=e,{nTriggerFormBlur:Te}=I;oe&&$e(oe,F),Te()}function Z(F){const{onFocus:oe}=e,{nTriggerFormFocus:Te}=I;oe&&$e(oe,F),Te()}function ue(F){const{onClear:oe}=e;oe&&$e(oe,F)}function pe(F){const{onInputBlur:oe}=e;oe&&$e(oe,F)}function Ae(F){const{onInputFocus:oe}=e;oe&&$e(oe,F)}function ze(){const{onDeactivate:F}=e;F&&$e(F)}function ye(){const{onActivate:F}=e;F&&$e(F)}function _(F){const{onClick:oe}=e;oe&&$e(oe,F)}function A(F){const{onWrapperFocus:oe}=e;oe&&$e(oe,F)}function W(F){const{onWrapperBlur:oe}=e;oe&&$e(oe,F)}function J(){T.value=!0}function ee(F){T.value=!1,F.target===u.value?D(F,1):D(F,0)}function D(F,oe=0,Te="input"){const lt=F.target.value;if(Vt(lt),F instanceof InputEvent&&!F.isComposing&&(T.value=!1),e.type==="textarea"){const{value:nt}=h;nt&&nt.syncUnifiedContainer()}if(B=lt,T.value)return;p.recordCursor();const ht=te(lt);if(ht)if(!e.pair)Te==="input"?Xe(lt):Y(lt);else{let{value:nt}=S;Array.isArray(nt)?nt=[nt[0],nt[1]]:nt=["",""],nt[oe]=lt,Te==="input"?Xe(nt):Y(nt)}De.$forceUpdate(),ht||zt(p.restoreCursor)}function te(F){const{countGraphemes:oe,maxlength:Te,minlength:lt}=e;if(oe){let nt;if(Te!==void 0&&(nt===void 0&&(nt=oe(F)),nt>Number(Te))||lt!==void 0&&(nt===void 0&&(nt=oe(F)),nt{lt.preventDefault(),He("mouseup",document,oe)};if(Ge("mouseup",document,oe),K.value!=="mousedown")return;re.value=!0;const Te=()=>{re.value=!1,He("mouseup",document,Te)};Ge("mouseup",document,Te)}function $r(F){var oe;switch((oe=e.onKeydown)===null||oe===void 0||oe.call(e,F),F.key){case"Escape":_r();break;case"Enter":Lt(F);break}}function Lt(F){var oe,Te;if(e.passivelyActivated){const{value:lt}=$;if(lt){e.internalDeactivateOnEnter&&_r();return}F.preventDefault(),e.type==="textarea"?(oe=a.value)===null||oe===void 0||oe.focus():(Te=d.value)===null||Te===void 0||Te.focus()}}function _r(){e.passivelyActivated&&($.value=!1,zt(()=>{var F;(F=l.value)===null||F===void 0||F.focus()}))}function ne(){var F,oe,Te;C.value||(e.passivelyActivated?(F=l.value)===null||F===void 0||F.focus():((oe=a.value)===null||oe===void 0||oe.focus(),(Te=d.value)===null||Te===void 0||Te.focus()))}function fe(){var F;!((F=l.value)===null||F===void 0)&&F.contains(document.activeElement)&&document.activeElement.blur()}function ke(){var F,oe;(F=a.value)===null||F===void 0||F.select(),(oe=d.value)===null||oe===void 0||oe.select()}function Qe(){C.value||(a.value?a.value.focus():d.value&&d.value.focus())}function ft(){const{value:F}=l;(F==null?void 0:F.contains(document.activeElement))&&F!==document.activeElement&&_r()}function Et(F){if(e.type==="textarea"){const{value:oe}=a;oe==null||oe.scrollTo(F)}else{const{value:oe}=d;oe==null||oe.scrollTo(F)}}function Vt(F){const{type:oe,pair:Te,autosize:lt}=e;if(!Te&<)if(oe==="textarea"){const{value:ht}=s;ht&&(ht.textContent=(F!=null?F:"")+`\r +`)}else{const{value:ht}=c;ht&&(F?ht.textContent=F:ht.innerHTML=" ")}}function at(){Se()}const Jt=U({top:"0"});function Pr(F){var oe;const{scrollTop:Te}=F.target;Jt.value.top=`${-Te}px`,(oe=h.value)===null||oe===void 0||oe.syncUnifiedContainer()}let ol=null;Nt(()=>{const{autosize:F,type:oe}=e;F&&oe==="textarea"?ol=Ke(S,Te=>{!Array.isArray(Te)&&Te!==B&&Vt(Te)}):ol==null||ol()});let rl=null;Nt(()=>{e.type==="textarea"?rl=Ke(S,F=>{var oe;!Array.isArray(F)&&F!==B&&((oe=h.value)===null||oe===void 0||oe.syncUnifiedContainer())}):rl==null||rl()}),Re(Og,{mergedValueRef:S,maxlengthRef:Ee,mergedClsPrefixRef:t,countGraphemesRef:Be(e,"countGraphemes")});const Db={wrapperElRef:l,inputElRef:d,textareaElRef:a,isCompositing:T,focus:ne,blur:fe,select:ke,deactivate:ft,activate:Qe,scrollTo:Et},Fb=Zo("Input",n,t),Vd=M(()=>{const{value:F}=w,{common:{cubicBezierEaseInOut:oe},self:{color:Te,borderRadius:lt,textColor:ht,caretColor:nt,caretColorError:zr,caretColorWarning:Tr,textDecorationColor:kr,border:Gn,borderDisabled:qn,borderHover:ka,borderFocus:Hb,placeholderColor:Nb,placeholderColorDisabled:jb,lineHeightTextarea:Wb,colorDisabled:Vb,colorFocus:Ub,textColorDisabled:Kb,boxShadowFocus:Gb,iconSize:qb,colorFocusWarning:Yb,boxShadowFocusWarning:Xb,borderWarning:Zb,borderFocusWarning:Jb,borderHoverWarning:Qb,colorFocusError:e0,boxShadowFocusError:t0,borderError:o0,borderFocusError:r0,borderHoverError:n0,clearSize:i0,clearColor:l0,clearColorHover:a0,clearColorPressed:s0,iconColor:c0,iconColorDisabled:d0,suffixTextColor:u0,countTextColor:f0,countTextColorDisabled:h0,iconColorHover:p0,iconColorPressed:m0,loadingColor:g0,loadingColorError:v0,loadingColorWarning:b0,[ce("padding",F)]:x0,[ce("fontSize",F)]:C0,[ce("height",F)]:y0}}=i.value,{left:w0,right:S0}=Bc(x0);return{"--n-bezier":oe,"--n-count-text-color":f0,"--n-count-text-color-disabled":h0,"--n-color":Te,"--n-font-size":C0,"--n-border-radius":lt,"--n-height":y0,"--n-padding-left":w0,"--n-padding-right":S0,"--n-text-color":ht,"--n-caret-color":nt,"--n-text-decoration-color":kr,"--n-border":Gn,"--n-border-disabled":qn,"--n-border-hover":ka,"--n-border-focus":Hb,"--n-placeholder-color":Nb,"--n-placeholder-color-disabled":jb,"--n-icon-size":qb,"--n-line-height-textarea":Wb,"--n-color-disabled":Vb,"--n-color-focus":Ub,"--n-text-color-disabled":Kb,"--n-box-shadow-focus":Gb,"--n-loading-color":g0,"--n-caret-color-warning":Tr,"--n-color-focus-warning":Yb,"--n-box-shadow-focus-warning":Xb,"--n-border-warning":Zb,"--n-border-focus-warning":Jb,"--n-border-hover-warning":Qb,"--n-loading-color-warning":b0,"--n-caret-color-error":zr,"--n-color-focus-error":e0,"--n-box-shadow-focus-error":t0,"--n-border-error":o0,"--n-border-focus-error":r0,"--n-border-hover-error":n0,"--n-loading-color-error":v0,"--n-clear-color":l0,"--n-clear-size":i0,"--n-clear-color-hover":a0,"--n-clear-color-pressed":s0,"--n-icon-color":c0,"--n-icon-color-hover":p0,"--n-icon-color-pressed":m0,"--n-icon-color-disabled":d0,"--n-suffix-text-color":u0}}),un=r?ut("input",M(()=>{const{value:F}=w;return F[0]}),Vd,e):void 0;return Object.assign(Object.assign({},Db),{wrapperElRef:l,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:a,textareaMirrorElRef:s,textareaScrollbarInstRef:h,rtlEnabled:Fb,uncontrolledValue:v,mergedValue:S,passwordVisible:re,mergedPlaceholder:O,showPlaceholder1:X,showPlaceholder2:j,mergedFocus:G,isComposing:T,activated:$,showClearButton:L,mergedSize:w,mergedDisabled:C,textDecorationStyle:me,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:K,placeholderStyle:Jt,mergedStatus:P,textAreaScrollContainerWidth:we,handleTextAreaScroll:Pr,handleCompositionStart:J,handleCompositionEnd:ee,handleInput:D,handleInputBlur:q,handleInputFocus:V,handleWrapperBlur:z,handleWrapperFocus:H,handleMouseEnter:je,handleMouseLeave:Ue,handleMouseDown:Me,handleChange:se,handleClick:xe,handleClear:Ie,handlePasswordToggleClick:_t,handlePasswordToggleMousedown:go,handleWrapperKeydown:$r,handleTextAreaMirrorResize:at,getTextareaScrollContainer:()=>a.value,mergedTheme:i,cssVars:r?void 0:Vd,themeClass:un==null?void 0:un.themeClass,onRender:un==null?void 0:un.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:r,themeClass:n,type:i,countGraphemes:l,onRender:a}=this,s=this.$slots;return a==null||a(),m("div",{ref:"wrapperElRef",class:[`${o}-input`,n,r&&`${o}-input--${r}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},m("div",{class:`${o}-input-wrapper`},ot(s.prefix,c=>c&&m("div",{class:`${o}-input__prefix`},c)),i==="textarea"?m(yr,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:u}=this,f={width:this.autosize&&u&&`${u}px`};return m(Ze,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,f],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m(Ds,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${o}-input__input`},m("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&ot(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[ot(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(qs,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var u,f;return(f=(u=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?m(q6,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?m(Hf,null,{default:d=>{var u;return(u=s.count)===null||u===void 0?void 0:u.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?qr(s["password-visible-icon"],()=>[m(ko,{clsPrefix:o},{default:()=>m(k5,null)})]):qr(s["password-invisible-icon"],()=>[m(ko,{clsPrefix:o},{default:()=>m(E5,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},qr(s.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${o}-input-wrapper`},m("div",{class:`${o}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),ot(s.suffix,c=>(this.clearable||c)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(qs,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?m("div",{class:`${o}-input__border`}):null,this.mergedBordered?m("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?m(Hf,null,{default:c=>{var d;const{renderCount:u}=this;return u?u(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),v$=R("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[E(">",[R("input",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),E("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),R("button",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[k("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),E("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[k("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),E("*",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[E(">",[R("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),R("base-selection",[R("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),R("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),k("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),E("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[E(">",[R("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),R("base-selection",[R("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),R("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),k("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]),b$={},x$=le({name:"InputGroup",props:b$,setup(e){const{mergedClsPrefixRef:t}=Ye(e);return an("-input-group",v$,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:`${e}-input-group`},this.$slots)}});function C$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const y$={name:"AutoComplete",common:de,peers:{InternalSelectMenu:Qi,Input:so},self:C$},w$=y$,Ag=e=>{const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Ce(r,o),colorModal:Ce(d,o),colorPopover:Ce(u,o)}},S$={name:"Avatar",common:qe,self:Ag},T9=S$,$$={name:"Avatar",common:de,self:Ag},Mg=$$,_$=()=>({gap:"-12px"}),P$={name:"AvatarGroup",common:de,peers:{Avatar:Mg},self:_$},z$=P$,T$={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},k$={name:"BackTop",common:de,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},T$),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},E$=k$,I$={name:"Badge",common:de,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},R$=I$,O$={fontWeightActive:"400"},A$=e=>{const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return Object.assign(Object.assign({},O$),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o})},M$={name:"Breadcrumb",common:de,self:A$},B$=M$;function Or(e){return Ce(e,[255,255,255,.16])}function yl(e){return Ce(e,[0,0,0,.12])}const L$="n-button-group",D$={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Bg=e=>{const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:b,primaryColor:v,baseColor:g,infoColor:S,infoColorHover:I,infoColorPressed:w,successColor:C,successColorHover:P,successColorPressed:x,warningColor:y,warningColorHover:T,warningColorPressed:$,errorColor:B,errorColorHover:O,errorColorPressed:X,fontWeight:j,buttonColor2:G,buttonColor2Hover:L,buttonColor2Pressed:K,fontWeightStrong:re}=e;return Object.assign(Object.assign({},D$),{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:G,colorSecondaryHover:L,colorSecondaryPressed:K,colorTertiary:G,colorTertiaryHover:L,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:L,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:u,textColorText:u,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:u,border:`1px solid ${b}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${b}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:v,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:v,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:u,textColorGhostPrimary:v,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:S,colorHoverInfo:I,colorPressedInfo:w,colorFocusInfo:I,colorDisabledInfo:S,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:S,textColorTextHoverInfo:I,textColorTextPressedInfo:w,textColorTextFocusInfo:I,textColorTextDisabledInfo:u,textColorGhostInfo:S,textColorGhostHoverInfo:I,textColorGhostPressedInfo:w,textColorGhostFocusInfo:I,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${I}`,borderPressedInfo:`1px solid ${w}`,borderFocusInfo:`1px solid ${I}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:C,colorHoverSuccess:P,colorPressedSuccess:x,colorFocusSuccess:P,colorDisabledSuccess:C,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:C,textColorTextHoverSuccess:P,textColorTextPressedSuccess:x,textColorTextFocusSuccess:P,textColorTextDisabledSuccess:u,textColorGhostSuccess:C,textColorGhostHoverSuccess:P,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:P,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${P}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${P}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:y,colorHoverWarning:T,colorPressedWarning:$,colorFocusWarning:T,colorDisabledWarning:y,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:y,textColorTextHoverWarning:T,textColorTextPressedWarning:$,textColorTextFocusWarning:T,textColorTextDisabledWarning:u,textColorGhostWarning:y,textColorGhostHoverWarning:T,textColorGhostPressedWarning:$,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:y,borderWarning:`1px solid ${y}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${$}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${y}`,rippleColorWarning:y,colorError:B,colorHoverError:O,colorPressedError:X,colorFocusError:O,colorDisabledError:B,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:B,textColorTextHoverError:O,textColorTextPressedError:X,textColorTextFocusError:O,textColorTextDisabledError:u,textColorGhostError:B,textColorGhostHoverError:O,textColorGhostPressedError:X,textColorGhostFocusError:O,textColorGhostDisabledError:B,borderError:`1px solid ${B}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${X}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${B}`,rippleColorError:B,waveOpacity:"0.6",fontWeight:j,fontWeightStrong:re})},F$={name:"Button",common:qe,self:Bg},yd=F$,H$={name:"Button",common:de,self(e){const t=Bg(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Wt=H$,N$=E([R("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[N("color",[k("border",{borderColor:"var(--n-border-color)"}),N("disabled",[k("border",{borderColor:"var(--n-border-color-disabled)"})]),Je("disabled",[E("&:focus",[k("state-border",{borderColor:"var(--n-border-color-focus)"})]),E("&:hover",[k("state-border",{borderColor:"var(--n-border-color-hover)"})]),E("&:active",[k("state-border",{borderColor:"var(--n-border-color-pressed)"})]),N("pressed",[k("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),N("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[k("border",{border:"var(--n-border-disabled)"})]),Je("disabled",[E("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[k("state-border",{border:"var(--n-border-focus)"})]),E("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[k("state-border",{border:"var(--n-border-hover)"})]),E("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[k("state-border",{border:"var(--n-border-pressed)"})]),N("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[k("state-border",{border:"var(--n-border-pressed)"})])]),N("loading","cursor: wait;"),R("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[N("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),tn&&"MozBoxSizing"in document.createElement("div").style?E("&::moz-focus-inner",{border:0}):null,k("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),k("border",{border:"var(--n-border)"}),k("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),k("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[R("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[Qr({top:"50%",originalTransform:"translateY(-50%)"})]),Z6()]),k("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[E("~",[k("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),N("block",` + display: flex; + width: 100%; + `),N("dashed",[k("border, state-border",{borderStyle:"dashed !important"})]),N("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),E("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),E("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),j$=Object.assign(Object.assign({},Pe.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Eg}}),W$=le({name:"Button",props:j$,setup(e){const t=U(null),o=U(null),r=U(!1),n=Tt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ge(L$,{}),{mergedSizeRef:l}=fa({},{defaultSize:"medium",mergedSize:w=>{const{size:C}=e;if(C)return C;const{size:P}=i;if(P)return P;const{mergedSize:x}=w||{};return x?x.value:"medium"}}),a=M(()=>e.focusable&&!e.disabled),s=w=>{var C;a.value||w.preventDefault(),!e.nativeFocusBehavior&&(w.preventDefault(),!e.disabled&&a.value&&((C=t.value)===null||C===void 0||C.focus({preventScroll:!0})))},c=w=>{var C;if(!e.disabled&&!e.loading){const{onClick:P}=e;P&&$e(P,w),e.text||(C=o.value)===null||C===void 0||C.play()}},d=w=>{switch(w.key){case"Enter":if(!e.keyboard)return;r.value=!1}},u=w=>{switch(w.key){case"Enter":if(!e.keyboard||e.loading){w.preventDefault();return}r.value=!0}},f=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:b}=Ye(e),v=Pe("Button","-button",N$,yd,e,h),g=Zo("Button",b,h),S=M(()=>{const w=v.value,{common:{cubicBezierEaseInOut:C,cubicBezierEaseOut:P},self:x}=w,{rippleDuration:y,opacityDisabled:T,fontWeight:$,fontWeightStrong:B}=x,O=l.value,{dashed:X,type:j,ghost:G,text:L,color:K,round:re,circle:me,textColor:we,secondary:Se,tertiary:Ee,quaternary:De,strong:Xe}=e,Y={"font-weight":Xe?B:$};let Q={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const Z=j==="tertiary",ue=j==="default",pe=Z?"default":j;if(L){const q=we||K;Q={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":q||x[ce("textColorText",pe)],"--n-text-color-hover":q?Or(q):x[ce("textColorTextHover",pe)],"--n-text-color-pressed":q?yl(q):x[ce("textColorTextPressed",pe)],"--n-text-color-focus":q?Or(q):x[ce("textColorTextHover",pe)],"--n-text-color-disabled":q||x[ce("textColorTextDisabled",pe)]}}else if(G||X){const q=we||K;Q={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||x[ce("rippleColor",pe)],"--n-text-color":q||x[ce("textColorGhost",pe)],"--n-text-color-hover":q?Or(q):x[ce("textColorGhostHover",pe)],"--n-text-color-pressed":q?yl(q):x[ce("textColorGhostPressed",pe)],"--n-text-color-focus":q?Or(q):x[ce("textColorGhostHover",pe)],"--n-text-color-disabled":q||x[ce("textColorGhostDisabled",pe)]}}else if(Se){const q=ue?x.textColor:Z?x.textColorTertiary:x[ce("color",pe)],V=K||q,z=j!=="default"&&j!=="tertiary";Q={"--n-color":z?ae(V,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":z?ae(V,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":z?ae(V,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":z?ae(V,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":V,"--n-text-color-hover":V,"--n-text-color-pressed":V,"--n-text-color-focus":V,"--n-text-color-disabled":V}}else if(Ee||De){const q=ue?x.textColor:Z?x.textColorTertiary:x[ce("color",pe)],V=K||q;Ee?(Q["--n-color"]=x.colorTertiary,Q["--n-color-hover"]=x.colorTertiaryHover,Q["--n-color-pressed"]=x.colorTertiaryPressed,Q["--n-color-focus"]=x.colorSecondaryHover,Q["--n-color-disabled"]=x.colorTertiary):(Q["--n-color"]=x.colorQuaternary,Q["--n-color-hover"]=x.colorQuaternaryHover,Q["--n-color-pressed"]=x.colorQuaternaryPressed,Q["--n-color-focus"]=x.colorQuaternaryHover,Q["--n-color-disabled"]=x.colorQuaternary),Q["--n-ripple-color"]="#0000",Q["--n-text-color"]=V,Q["--n-text-color-hover"]=V,Q["--n-text-color-pressed"]=V,Q["--n-text-color-focus"]=V,Q["--n-text-color-disabled"]=V}else Q={"--n-color":K||x[ce("color",pe)],"--n-color-hover":K?Or(K):x[ce("colorHover",pe)],"--n-color-pressed":K?yl(K):x[ce("colorPressed",pe)],"--n-color-focus":K?Or(K):x[ce("colorFocus",pe)],"--n-color-disabled":K||x[ce("colorDisabled",pe)],"--n-ripple-color":K||x[ce("rippleColor",pe)],"--n-text-color":we||(K?x.textColorPrimary:Z?x.textColorTertiary:x[ce("textColor",pe)]),"--n-text-color-hover":we||(K?x.textColorHoverPrimary:x[ce("textColorHover",pe)]),"--n-text-color-pressed":we||(K?x.textColorPressedPrimary:x[ce("textColorPressed",pe)]),"--n-text-color-focus":we||(K?x.textColorFocusPrimary:x[ce("textColorFocus",pe)]),"--n-text-color-disabled":we||(K?x.textColorDisabledPrimary:x[ce("textColorDisabled",pe)])};let Ae={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};L?Ae={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Ae={"--n-border":x[ce("border",pe)],"--n-border-hover":x[ce("borderHover",pe)],"--n-border-pressed":x[ce("borderPressed",pe)],"--n-border-focus":x[ce("borderFocus",pe)],"--n-border-disabled":x[ce("borderDisabled",pe)]};const{[ce("height",O)]:ze,[ce("fontSize",O)]:ye,[ce("padding",O)]:_,[ce("paddingRound",O)]:A,[ce("iconSize",O)]:W,[ce("borderRadius",O)]:J,[ce("iconMargin",O)]:ee,waveOpacity:D}=x,te={"--n-width":me&&!L?ze:"initial","--n-height":L?"initial":ze,"--n-font-size":ye,"--n-padding":me||L?"initial":re?A:_,"--n-icon-size":W,"--n-icon-margin":ee,"--n-border-radius":L?"initial":me||re?ze:J};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":C,"--n-bezier-ease-out":P,"--n-ripple-duration":y,"--n-opacity-disabled":T,"--n-wave-opacity":D},Y),Q),Ae),te)}),I=p?ut("button",M(()=>{let w="";const{dashed:C,type:P,ghost:x,text:y,color:T,round:$,circle:B,textColor:O,secondary:X,tertiary:j,quaternary:G,strong:L}=e;C&&(w+="a"),x&&(w+="b"),y&&(w+="c"),$&&(w+="d"),B&&(w+="e"),X&&(w+="f"),j&&(w+="g"),G&&(w+="h"),L&&(w+="i"),T&&(w+="j"+Fl(T)),O&&(w+="k"+Fl(O));const{value:K}=l;return w+="l"+K[0],w+="m"+P[0],w}),S,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:h,mergedFocusable:a,mergedSize:l,showBorder:n,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:M(()=>{const{color:w}=e;if(!w)return null;const C=Or(w);return{"--n-border-color":w,"--n-border-color-hover":C,"--n-border-color-pressed":yl(w),"--n-border-color-focus":C,"--n-border-color-disabled":w}}),cssVars:p?void 0:S,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const r=ot(this.$slots.default,n=>n&&m("span",{class:`${e}-button__content`},n));return m(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,m(gd,{width:!0},{default:()=>ot(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&m("span",{class:`${e}-button__icon`,style:{margin:Tn(this.$slots.default)?"0":""}},m(Zi,null,{default:()=>this.loading?m(ga,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&r,this.text?null:m(z6,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Sn=W$,V$={titleFontSize:"22px"},U$=e=>{const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},V$),{borderRadius:t,borderColor:Ce(f,a),borderColorModal:Ce(p,a),borderColorPopover:Ce(h,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:Ce(f,u),cellColorHoverModal:Ce(p,u),cellColorHoverPopover:Ce(h,u),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})},K$={name:"Calendar",common:de,peers:{Button:Wt},self:U$},G$=K$,Lg=e=>{const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}},q$={name:"ColorPicker",common:qe,peers:{Input:Rg,Button:yd},self:Lg},Y$=q$,X$={name:"ColorPicker",common:de,peers:{Input:so,Button:Wt},self:Lg},Z$=X$;function J$(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Hi(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function Q$(e){return e=Math.round(e),e>=360?359:e<0?0:e}function e8(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const t8={rgb:{hex(e){return ur(xt(e))},hsl(e){const[t,o,r,n]=xt(e);return dr([...zs(t,o,r),n])},hsv(e){const[t,o,r,n]=xt(e);return Gr([...Ps(t,o,r),n])}},hex:{rgb(e){return wo(xt(e))},hsl(e){const[t,o,r,n]=xt(e);return dr([...zs(t,o,r),n])},hsv(e){const[t,o,r,n]=xt(e);return Gr([...Ps(t,o,r),n])}},hsl:{hex(e){const[t,o,r,n]=zn(e);return ur([...Ts(t,o,r),n])},rgb(e){const[t,o,r,n]=zn(e);return wo([...Ts(t,o,r),n])},hsv(e){const[t,o,r,n]=zn(e);return Gr([...nm(t,o,r),n])}},hsv:{hex(e){const[t,o,r,n]=Kr(e);return ur([...ar(t,o,r),n])},rgb(e){const[t,o,r,n]=Kr(e);return wo([...ar(t,o,r),n])},hsl(e){const[t,o,r,n]=Kr(e);return dr([...El(t,o,r),n])}}};function Dg(e,t,o){return o=o||Hi(e),o?o===t?e:t8[o][t](e):null}const gn="12px",o8=12,Ar="6px",r8=6,n8="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",i8=le({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=U(null);function o(i){!t.value||(Ge("mousemove",document,r),Ge("mouseup",document,n),r(i))}function r(i){const{value:l}=t;if(!l)return;const{width:a,left:s}=l.getBoundingClientRect(),c=Q$((i.clientX-s-r8)/(a-o8)*360);e.onUpdateHue(c)}function n(){var i;He("mousemove",document,r),He("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,style:{height:gn,borderRadius:Ar}},m("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:n8,height:gn,borderRadius:Ar,position:"relative"},onMousedown:this.handleMouseDown},m("div",{style:{position:"absolute",left:Ar,right:Ar,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Ar})`,borderRadius:Ar,width:gn,height:gn}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Ar,width:gn,height:gn}})))))}}),oi="12px",l8=12,Mr="6px",a8=le({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=U(null);function o(i){!t.value||!e.rgba||(Ge("mousemove",document,r),Ge("mouseup",document,n),r(i))}function r(i){const{value:l}=t;if(!l)return;const{width:a,left:s}=l.getBoundingClientRect(),c=(i.clientX-s)/(a-l8);e.onUpdateAlpha(e8(c))}function n(){var i;He("mousemove",document,r),He("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:M(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:oi,borderRadius:Mr},onMousedown:this.handleMouseDown},m("div",{style:{borderRadius:Mr,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},m("div",{class:`${e}-color-picker-checkboard`}),m("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&m("div",{style:{position:"absolute",left:Mr,right:Mr,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Mr})`,borderRadius:Mr,width:oi,height:oi}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:wo(this.rgba),borderRadius:Mr,width:oi,height:oi}}))))}}),wl="12px",Sl="6px",s8=le({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=U(null);function o(i){!t.value||(Ge("mousemove",document,r),Ge("mouseup",document,n),r(i))}function r(i){const{value:l}=t;if(!l)return;const{width:a,height:s,left:c,bottom:d}=l.getBoundingClientRect(),u=(d-i.clientY)/s,f=(i.clientX-c)/a,p=100*(f>1?1:f<0?0:f),h=100*(u>1?1:u<0?0:u);e.onUpdateSV(p,h)}function n(){var i;He("mousemove",document,r),He("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:M(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},m("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),m("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&m("div",{class:`${e}-color-picker-handle`,style:{width:wl,height:wl,borderRadius:Sl,left:`calc(${this.displayedSv[0]}% - ${Sl})`,bottom:`calc(${this.displayedSv[1]}% - ${Sl})`}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:Sl,width:wl,height:wl}})))}}),wd="n-color-picker";function c8(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function d8(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function u8(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function f8(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function h8(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const p8={paddingSmall:"0 4px"},Nf=le({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=U(""),{themeRef:o}=ge(wd,null);Nt(()=>{t.value=r()});function r(){const{value:l}=e;if(l===null)return"";const{label:a}=e;return a==="HEX"?l:a==="A"?`${Math.floor(l*100)}%`:String(Math.floor(l))}function n(l){t.value=l}function i(l){let a,s;switch(e.label){case"HEX":s=f8(l),s&&e.onUpdateValue(l),t.value=r();break;case"H":a=d8(l),a===!1?t.value=r():e.onUpdateValue(a);break;case"S":case"L":case"V":a=u8(l),a===!1?t.value=r():e.onUpdateValue(a);break;case"A":a=h8(l),a===!1?t.value=r():e.onUpdateValue(a);break;case"R":case"G":case"B":a=c8(l),a===!1?t.value=r():e.onUpdateValue(a);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:n}},render(){const{mergedTheme:e}=this;return m(g$,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:p8,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),m8=le({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?ur:mi)(o));return}let n;switch(e.valueArr===null?n=[0,0,0,0]:n=Array.from(e.valueArr),e.mode){case"hsv":n[t]=o,e.onUpdateValue((r?Gr:Is)(n));break;case"rgb":n[t]=o,e.onUpdateValue((r?wo:Es)(n));break;case"hsl":n[t]=o,e.onUpdateValue((r?dr:Rs)(n));break}}}},render(){const{clsPrefix:e,modes:t}=this;return m("div",{class:`${e}-color-picker-input`},m("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),m(x$,null,{default:()=>{const{mode:o,valueArr:r,showAlpha:n}=this;if(o==="hex"){let i=null;try{i=r===null?null:(n?ur:mi)(r)}catch{}return m(Nf,{label:"HEX",showAlpha:n,value:i,onUpdateValue:l=>{this.handleUnitUpdateValue(0,l)}})}return(o+(n?"a":"")).split("").map((i,l)=>m(Nf,{label:i.toUpperCase(),value:r===null?null:r[l],onUpdateValue:a=>{this.handleUnitUpdateValue(l,a)}}))}}))}}),g8=le({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=ge(wd,null);return()=>{const{hsla:r,value:n,clsPrefix:i,onClick:l,disabled:a}=e,s=t.label||o.value;return m("div",{class:[`${i}-color-picker-trigger`,a&&`${i}-color-picker-trigger--disabled`],onClick:a?void 0:l},m("div",{class:`${i}-color-picker-trigger__fill`},m("div",{class:`${i}-color-picker-checkboard`}),m("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?dr(r):""}}),n&&r?m("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(n):n):null))}}});function v8(e,t){if(t==="hsv"){const[o,r,n,i]=Kr(e);return wo([...ar(o,r,n),i])}return e}function b8(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const x8=le({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=M(()=>e.swatches.map(i=>{const l=Hi(i);return{value:i,mode:l,legalValue:v8(i,l)}}));function o(i){const{mode:l}=e;let{value:a,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(a)?a=b8(a):(gr("color-picker",`color ${a} in swatches is invalid.`),a="#000000")),s===l?a:Dg(a,l,s)}function r(i){e.onUpdateColor(o(i))}function n(i,l){i.key==="Enter"&&r(l)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:n}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>m("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:o=>this.handleSwatchKeyDown(o,t)},m("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),C8=le({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Hi(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var r;const n=o.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,Dg(n.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-preview__preview`},m("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),m("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),y8=E([R("color-picker",` + display: inline-block; + box-sizing: border-box; + height: var(--n-height); + font-size: var(--n-font-size); + width: 100%; + position: relative; + `),R("color-picker-panel",` + margin: 4px 0; + width: 240px; + font-size: var(--n-panel-font-size); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + `,[bd(),R("input",` + text-align: center; + `)]),R("color-picker-checkboard",` + background: white; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[E("&::after",` + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 12px 12px; + background-position: 0 0, 0 6px, 6px -6px, -6px 0px; + background-repeat: repeat; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),R("color-picker-slider",` + margin-bottom: 8px; + position: relative; + box-sizing: border-box; + `,[k("image",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),E("&::after",` + content: ""; + position: absolute; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + pointer-events: none; + `)]),R("color-picker-handle",` + z-index: 1; + box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); + position: absolute; + background-color: white; + overflow: hidden; + `,[k("fill",` + box-sizing: border-box; + border: 2px solid white; + `)]),R("color-picker-pallete",` + height: 180px; + position: relative; + margin-bottom: 8px; + cursor: crosshair; + `,[k("layer",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[N("shadowed",` + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + `)])]),R("color-picker-preview",` + display: flex; + `,[k("sliders",` + flex: 1 0 auto; + `),k("preview",` + position: relative; + height: 30px; + width: 30px; + margin: 0 0 8px 6px; + border-radius: 50%; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + overflow: hidden; + `),k("fill",` + display: block; + width: 30px; + height: 30px; + `),k("input",` + position: absolute; + top: 0; + left: 0; + width: 30px; + height: 30px; + opacity: 0; + z-index: 1; + `)]),R("color-picker-input",` + display: flex; + align-items: center; + `,[R("input",` + flex-grow: 1; + flex-basis: 0; + `),k("mode",` + width: 72px; + text-align: center; + `)]),R("color-picker-control",` + padding: 12px; + `),R("color-picker-action",` + display: flex; + margin-top: -4px; + border-top: 1px solid var(--n-divider-color); + padding: 8px 12px; + justify-content: flex-end; + `,[R("button","margin-left: 8px;")]),R("color-picker-trigger",` + border: var(--n-border); + height: 100%; + box-sizing: border-box; + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + cursor: pointer; + `,[k("value",` + white-space: nowrap; + position: relative; + `),k("fill",` + border-radius: var(--n-border-radius); + position: absolute; + display: flex; + align-items: center; + justify-content: center; + left: 4px; + right: 4px; + top: 4px; + bottom: 4px; + `),N("disabled","cursor: not-allowed"),R("color-picker-checkboard",` + border-radius: var(--n-border-radius); + `,[E("&::after",` + --n-block-size: calc((var(--n-height) - 8px) / 3); + background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); + background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; + `)])]),R("color-picker-swatches",` + display: grid; + grid-gap: 8px; + flex-wrap: wrap; + position: relative; + grid-template-columns: repeat(auto-fill, 18px); + margin-top: 10px; + `,[R("color-picker-swatch",` + width: 18px; + height: 18px; + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 8px 8px; + background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; + background-repeat: repeat; + `,[k("fill",` + position: relative; + width: 100%; + height: 100%; + border-radius: 3px; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + cursor: pointer; + `),E("&:focus",` + outline: none; + `,[k("fill",[E("&::after",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: inherit; + filter: blur(2px); + content: ""; + `)])])])])]),w8=Object.assign(Object.assign({},Pe.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Vo.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),S8=le({name:"ColorPicker",props:w8,setup(e,{slots:t}){const o=U(null);let r=null;const n=fa(e),{mergedSizeRef:i,mergedDisabledRef:l}=n,{localeRef:a}=fg("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=Ye(e),u=Pe("ColorPicker","-color-picker",y8,Y$,e,s);Re(wd,{themeRef:u,renderLabelRef:Be(e,"renderLabel"),colorPickerSlots:t});const f=U(e.defaultShow),p=po(Be(e,"show"),f);function h(D){const{onUpdateShow:te,"onUpdate:show":q}=e;te&&$e(te,D),q&&$e(q,D),f.value=D}const{defaultValue:b}=e,v=U(b===void 0?J$(e.modes,e.showAlpha):b),g=po(Be(e,"value"),v),S=U([g.value]),I=U(0),w=M(()=>Hi(g.value)),{modes:C}=e,P=U(Hi(g.value)||C[0]||"rgb");function x(){const{modes:D}=e,{value:te}=P,q=D.findIndex(V=>V===te);~q?P.value=D[(q+1)%D.length]:P.value="rgb"}let y,T,$,B,O,X,j,G;const L=M(()=>{const{value:D}=g;if(!D)return null;switch(w.value){case"hsv":return Kr(D);case"hsl":return[y,T,$,G]=zn(D),[...nm(y,T,$),G];case"rgb":case"hex":return[O,X,j,G]=xt(D),[...Ps(O,X,j),G]}}),K=M(()=>{const{value:D}=g;if(!D)return null;switch(w.value){case"rgb":case"hex":return xt(D);case"hsv":return[y,T,B,G]=Kr(D),[...ar(y,T,B),G];case"hsl":return[y,T,$,G]=zn(D),[...Ts(y,T,$),G]}}),re=M(()=>{const{value:D}=g;if(!D)return null;switch(w.value){case"hsl":return zn(D);case"hsv":return[y,T,B,G]=Kr(D),[...El(y,T,B),G];case"rgb":case"hex":return[O,X,j,G]=xt(D),[...zs(O,X,j),G]}}),me=M(()=>{switch(P.value){case"rgb":case"hex":return K.value;case"hsv":return L.value;case"hsl":return re.value}}),we=U(0),Se=U(1),Ee=U([0,0]);function De(D,te){const{value:q}=L,V=we.value,z=q?q[3]:1;Ee.value=[D,te];const{showAlpha:H}=e;switch(P.value){case"hsv":Q((H?Gr:Is)([V,D,te,z]),"cursor");break;case"hsl":Q((H?dr:Rs)([...El(V,D,te),z]),"cursor");break;case"rgb":Q((H?wo:Es)([...ar(V,D,te),z]),"cursor");break;case"hex":Q((H?ur:mi)([...ar(V,D,te),z]),"cursor");break}}function Xe(D){we.value=D;const{value:te}=L;if(!te)return;const[,q,V,z]=te,{showAlpha:H}=e;switch(P.value){case"hsv":Q((H?Gr:Is)([D,q,V,z]),"cursor");break;case"rgb":Q((H?wo:Es)([...ar(D,q,V),z]),"cursor");break;case"hex":Q((H?ur:mi)([...ar(D,q,V),z]),"cursor");break;case"hsl":Q((H?dr:Rs)([...El(D,q,V),z]),"cursor");break}}function Y(D){switch(P.value){case"hsv":[y,T,B]=L.value,Q(Gr([y,T,B,D]),"cursor");break;case"rgb":[O,X,j]=K.value,Q(wo([O,X,j,D]),"cursor");break;case"hex":[O,X,j]=K.value,Q(ur([O,X,j,D]),"cursor");break;case"hsl":[y,T,$]=re.value,Q(dr([y,T,$,D]),"cursor");break}Se.value=D}function Q(D,te){te==="cursor"?r=D:r=null;const{nTriggerFormChange:q,nTriggerFormInput:V}=n,{onUpdateValue:z,"onUpdate:value":H}=e;z&&$e(z,D),H&&$e(H,D),q(),V(),v.value=D}function Z(D){Q(D,"input"),zt(ue)}function ue(D=!0){const{value:te}=g;if(te){const{nTriggerFormChange:q,nTriggerFormInput:V}=n,{onComplete:z}=e;z&&z(te);const{value:H}=S,{value:ie}=I;D&&(H.splice(ie+1,H.length,te),I.value=ie+1),q(),V()}}function pe(){const{value:D}=I;D-1<0||(Q(S.value[D-1],"input"),ue(!1),I.value=D-1)}function Ae(){const{value:D}=I;D<0||D+1>=S.value.length||(Q(S.value[D+1],"input"),ue(!1),I.value=D+1)}function ze(){Q(null,"input"),h(!1)}function ye(){const{value:D}=g,{onConfirm:te}=e;te&&te(D),h(!1)}const _=M(()=>I.value>=1),A=M(()=>{const{value:D}=S;return D.length>1&&I.value{D||(S.value=[g.value],I.value=0)}),Nt(()=>{if(!(r&&r===g.value)){const{value:D}=L;D&&(we.value=D[0],Se.value=D[3],Ee.value=[D[1],D[2]])}r=null});const W=M(()=>{const{value:D}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:q,color:V,panelFontSize:z,boxShadow:H,border:ie,borderRadius:se,dividerColor:xe,[ce("height",D)]:Ie,[ce("fontSize",D)]:Me}}=u.value;return{"--n-bezier":te,"--n-text-color":q,"--n-color":V,"--n-panel-font-size":z,"--n-font-size":Me,"--n-box-shadow":H,"--n-border":ie,"--n-border-radius":se,"--n-height":Ie,"--n-divider-color":xe}}),J=d?ut("color-picker",M(()=>i.value[0]),W,e):void 0;function ee(){var D;const{value:te}=K,{value:q}=we,{internalActions:V,modes:z,actions:H}=e,{value:ie}=u,{value:se}=s;return m("div",{class:[`${se}-color-picker-panel`,J==null?void 0:J.themeClass.value],onDragstart:xe=>{xe.preventDefault()},style:d?void 0:W.value},m("div",{class:`${se}-color-picker-control`},m(s8,{clsPrefix:se,rgba:te,displayedHue:q,displayedSv:Ee.value,onUpdateSV:De,onComplete:ue}),m("div",{class:`${se}-color-picker-preview`},m("div",{class:`${se}-color-picker-preview__sliders`},m(i8,{clsPrefix:se,hue:q,onUpdateHue:Xe,onComplete:ue}),e.showAlpha?m(a8,{clsPrefix:se,rgba:te,alpha:Se.value,onUpdateAlpha:Y,onComplete:ue}):null),e.showPreview?m(C8,{clsPrefix:se,mode:P.value,color:K.value&&mi(K.value),onUpdateColor:xe=>Q(xe,"input")}):null),m(m8,{clsPrefix:se,showAlpha:e.showAlpha,mode:P.value,modes:z,onUpdateMode:x,value:g.value,valueArr:me.value,onUpdateValue:Z}),((D=e.swatches)===null||D===void 0?void 0:D.length)&&m(x8,{clsPrefix:se,mode:P.value,swatches:e.swatches,onUpdateColor:xe=>Q(xe,"input")})),H!=null&&H.length?m("div",{class:`${se}-color-picker-action`},H.includes("confirm")&&m(Sn,{size:"small",onClick:ye,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>a.value.confirm}),H.includes("clear")&&m(Sn,{size:"small",onClick:ze,disabled:!g.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>a.value.clear})):null,t.action?m("div",{class:`${se}-color-picker-action`},{default:t.action}):V?m("div",{class:`${se}-color-picker-action`},V.includes("undo")&&m(Sn,{size:"small",onClick:pe,disabled:!_.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>a.value.undo}),V.includes("redo")&&m(Sn,{size:"small",onClick:Ae,disabled:!A.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>a.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:o,hsla:re,rgba:K,mergedShow:p,mergedDisabled:l,isMounted:on(),adjustedTo:Vo(e),mergedValue:g,handleTriggerClick(){h(!0)},handleClickOutside(D){var te;!((te=o.value)===null||te===void 0)&&te.contains(An(D))||h(!1)},renderPanel:ee,cssVars:d?void 0:W,themeClass:J==null?void 0:J.themeClass,onRender:J==null?void 0:J.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},m(Gc,null,{default:()=>[m(qc,null,{default:()=>m(g8,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),m(Xc,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Vo.tdkey,to:this.adjustedTo},{default:()=>m(Ot,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?oo(this.renderPanel(),[[Mi,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),$8={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},Fg=e=>{const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:b,boxShadow1:v,popoverColor:g,actionColor:S}=e;return Object.assign(Object.assign({},$8),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:S,colorEmbeddedModal:S,colorEmbeddedPopover:S,textColor:l,titleTextColor:a,borderColor:s,actionColor:S,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:v,borderRadius:o})},_8={name:"Card",common:qe,self:Fg},Hg=_8,P8={name:"Card",common:de,self(e){const t=Fg(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}},Ng=P8,z8=E([R("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[pm({background:"var(--n-color-modal)"}),N("hoverable",[E("&:hover","box-shadow: var(--n-box-shadow);")]),N("content-segmented",[E(">",[k("content",{paddingTop:"var(--n-padding-bottom)"})])]),N("content-soft-segmented",[E(">",[k("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),N("footer-segmented",[E(">",[k("footer",{paddingTop:"var(--n-padding-bottom)"})])]),N("footer-soft-segmented",[E(">",[k("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),E(">",[R("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[k("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),k("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),k("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),k("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),k("content","flex: 1; min-width: 0;"),k("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[E("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),k("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),R("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[E("img",` + display: block; + width: 100%; + `)]),N("bordered",` + border: 1px solid var(--n-border-color); + `,[E("&:target","border-color: var(--n-color-target);")]),N("action-segmented",[E(">",[k("action",[E("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),N("content-segmented, content-soft-segmented",[E(">",[k("content",{transition:"border-color 0.3s var(--n-bezier)"},[E("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),N("footer-segmented, footer-soft-segmented",[E(">",[k("footer",{transition:"border-color 0.3s var(--n-bezier)"},[E("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),N("embedded",` + background-color: var(--n-color-embedded); + `)]),jc(R("card",` + background: var(--n-color-modal); + `,[N("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),hm(R("card",` + background: var(--n-color-popover); + `,[N("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),Sd={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},hoverable:Boolean,role:String,onClose:[Function,Array]},T8=en(Sd),k8=Object.assign(Object.assign({},Pe.props),Sd),E8=le({name:"Card",props:k8,setup(e){const t=()=>{const{onClose:c}=e;c&&$e(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n}=Ye(e),i=Pe("Card","-card",z8,Hg,e,r),l=Zo("Card",n,r),a=M(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:b,borderColor:v,actionColor:g,borderRadius:S,lineHeight:I,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:P,closeColorHover:x,closeColorPressed:y,closeBorderRadius:T,closeIconSize:$,closeSize:B,boxShadow:O,colorPopover:X,colorEmbedded:j,colorEmbeddedModal:G,colorEmbeddedPopover:L,[ce("padding",c)]:K,[ce("fontSize",c)]:re,[ce("titleFontSize",c)]:me},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:Ee,bottom:De}=Bc(K);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":d,"--n-color-modal":u,"--n-color-popover":X,"--n-color-embedded":j,"--n-color-embedded-modal":G,"--n-color-embedded-popover":L,"--n-color-target":f,"--n-text-color":p,"--n-line-height":I,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":b,"--n-close-icon-color":w,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":P,"--n-close-color-hover":x,"--n-close-color-pressed":y,"--n-border-color":v,"--n-box-shadow":O,"--n-padding-top":Se,"--n-padding-bottom":De,"--n-padding-left":Ee,"--n-font-size":re,"--n-title-font-size":me,"--n-close-size":B,"--n-close-icon-size":$,"--n-close-border-radius":T}}),s=o?ut("card",M(()=>e.size[0]),a,e):void 0;return{rtlEnabled:l,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:l,$slots:a}=this;return i==null||i(),m("div",{class:[`${r}-card`,this.themeClass,l&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:o}],style:this.cssVars,role:this.role},ot(a.cover,s=>s&&m("div",{class:`${r}-card-cover`,role:"none"},s)),ot(a.header,s=>s||this.title||this.closable?m("div",{class:`${r}-card-header`,style:this.headerStyle},m("div",{class:`${r}-card-header__main`,role:"heading"},s||this.title),ot(a["header-extra"],c=>c&&m("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},c)),this.closable?m(Un,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),ot(a.default,s=>s&&m("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},s)),ot(a.footer,s=>s&&[m("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},s)]),ot(a.action,s=>s&&m("div",{class:`${r}-card__action`,role:"none"},s)))}}),I8=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),R8={name:"Carousel",common:de,self:I8},O8=R8,A8={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"},M8=e=>{const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},A8),{labelLineHeight:h,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ae(s,{alpha:.3})}`,textColor:c,textColorDisabled:l})},B8={name:"Checkbox",common:de,self(e){const{cardColor:t}=e,o=M8(e);return o.color="#0000",o.checkMarkColor=t,o}},Kn=B8,L8=e=>{const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}},D8={name:"Cascader",common:de,peers:{InternalSelectMenu:Qi,InternalSelection:Cd,Scrollbar:jt,Checkbox:Kn,Empty:v6},self:L8},F8=D8,H8={name:"Code",common:de,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}},jg=H8,N8=e=>{const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0"}},j8={name:"Collapse",common:de,self:N8},W8=j8,V8=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},U8={name:"CollapseTransition",common:de,self:V8},K8=U8,G8={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(gr("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},Wg=le({name:"ConfigProvider",alias:["App"],props:G8,setup(e){const t=ge(Uo,null),o=M(()=>{const{theme:h}=e;if(h===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return h===void 0?b:b===void 0?h:Object.assign({},b,h)}),r=M(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?h:wn({},b,h)}}}),n=Tt(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=Tt(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),l=M(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),a=M(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),s=M(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t==null?void 0:t.mergedClsPrefixRef.value}),c=M(()=>{var h;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const g of b)v[g.name]=hr(g),(h=g.peers)===null||h===void 0||h.forEach(S=>{S.name in v||(v[S.name]=hr(S))});return v}),d=M(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=M(()=>{const{value:h}=o,{value:b}=r,v=b&&Object.keys(b).length!==0,g=h==null?void 0:h.name;return g?v?`${g}-${Oi(JSON.stringify(r.value))}`:g:v?Oi(JSON.stringify(r.value)):""});return Re(Uo,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:M(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:M(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:M(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:M(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){var e,t,o,r;return this.abstract?(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||ug}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),q8={name:"Popselect",common:de,peers:{Popover:cn,InternalSelectMenu:Qi}},Vg=q8;function Y8(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const X8={name:"Select",common:de,peers:{InternalSelection:Cd,InternalSelectMenu:Qi},self:Y8},Ug=X8,Z8={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},J8=e=>{const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},Z8),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:l})},Q8={name:"Pagination",common:de,peers:{Select:Ug,Input:so,Popselect:Vg},self(e){const{primaryColor:t,opacity3:o}=e,r=ae(t,{alpha:Number(o)}),n=J8(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}},Kg=Q8,Gg={padding:"8px 14px"},e_={name:"Tooltip",common:de,peers:{Popover:cn},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return Object.assign(Object.assign({},Gg),{borderRadius:t,boxShadow:o,color:r,textColor:n})}},xa=e_,t_=e=>{const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return Object.assign(Object.assign({},Gg),{borderRadius:t,boxShadow:o,color:Ce(r,"rgba(0, 0, 0, .85)"),textColor:r})},o_={name:"Tooltip",common:qe,peers:{Popover:xd},self:t_},$d=o_,r_={name:"Ellipsis",common:de,peers:{Tooltip:xa}},qg=r_,n_={name:"Ellipsis",common:qe,peers:{Tooltip:$d}},i_=n_,l_={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px"},a_={name:"Radio",common:de,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:b}=e;return Object.assign(Object.assign({},l_),{labelLineHeight:b,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${ae(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${ae(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},Yg=a_,s_={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"},Xg=e=>{const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:b,textColor3:v,opacityDisabled:g}=e;return Object.assign(Object.assign({},s_),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:b,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:ae(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},c_={name:"Dropdown",common:qe,peers:{Popover:xd},self:Xg},Zg=c_,d_={name:"Dropdown",common:de,peers:{Popover:cn},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=Xg(e);return n.colorInverted=r,n.optionColorActive=ae(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},_d=d_,u_={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},f_=e=>{const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:b,dividerColor:v,heightSmall:g,opacityDisabled:S,tableColorStriped:I}=e;return Object.assign(Object.assign({},u_),{actionDividerColor:v,lineHeight:f,borderRadius:u,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:b,borderColor:Ce(t,v),tdColorHover:Ce(t,a),tdColorStriped:Ce(t,I),thColor:Ce(t,l),thColorHover:Ce(Ce(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:d,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Ce(o,v),tdColorHoverModal:Ce(o,a),tdColorStripedModal:Ce(o,I),thColorModal:Ce(o,l),thColorHoverModal:Ce(Ce(o,l),a),tdColorModal:o,borderColorPopover:Ce(r,v),tdColorHoverPopover:Ce(r,a),tdColorStripedPopover:Ce(r,I),thColorPopover:Ce(r,l),thColorHoverPopover:Ce(Ce(r,l),a),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:S})},h_={name:"DataTable",common:de,peers:{Button:Wt,Checkbox:Kn,Radio:Yg,Pagination:Kg,Scrollbar:jt,Empty:sn,Popover:cn,Ellipsis:qg,Dropdown:_d},self(e){const t=f_(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},p_=h_,m_=Object.assign(Object.assign({},ba),Pe.props),Ni=le({name:"Tooltip",props:m_,__popover__:!0,setup(e){const t=Pe("Tooltip","-tooltip",void 0,$d,e),o=U(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(n){o.value.setShow(n)}}),{popoverRef:o,mergedTheme:t,popoverThemeOverrides:M(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Pg,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),g_=R("ellipsis",{overflow:"hidden"},[Je("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),N("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),N("cursor-pointer",` + cursor: pointer; + `)]);function jf(e){return`${e}-ellipsis--line-clamp`}function Wf(e,t){return`${e}-ellipsis--cursor-${t}`}const v_=Object.assign(Object.assign({},Pe.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),b_=le({name:"Ellipsis",inheritAttrs:!1,props:v_,setup(e,{slots:t,attrs:o}){const{mergedClsPrefixRef:r}=Ye(e),n=Pe("Ellipsis","-ellipsis",g_,i_,e,r),i=U(null),l=U(null),a=U(null),s=U(!1),c=M(()=>{const{lineClamp:v}=e,{value:g}=s;return v!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":v}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let v=!1;const{value:g}=s;if(g)return!0;const{value:S}=i;if(S){const{lineClamp:I}=e;if(p(S),I!==void 0)v=S.scrollHeight<=S.offsetHeight;else{const{value:w}=l;w&&(v=w.getBoundingClientRect().width<=S.getBoundingClientRect().width)}h(S,v)}return v}const u=M(()=>e.expandTrigger==="click"?()=>{var v;const{value:g}=s;g&&((v=a.value)===null||v===void 0||v.setShow(!1)),s.value=!g}:void 0),f=()=>m("span",Object.assign({},qo(o,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?jf(r.value):void 0,e.expandTrigger==="click"?Wf(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:u.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:m("span",{ref:"triggerInnerRef"},t));function p(v){if(!v)return;const g=c.value,S=jf(r.value);e.lineClamp!==void 0?b(v,S,"add"):b(v,S,"remove");for(const I in g)v.style[I]!==g[I]&&(v.style[I]=g[I])}function h(v,g){const S=Wf(r.value,"pointer");e.expandTrigger==="click"&&!g?b(v,S,"add"):b(v,S,"remove")}function b(v,g,S){S==="add"?v.classList.contains(g)||v.classList.add(g):v.classList.contains(g)&&v.classList.remove(g)}return{mergedTheme:n,triggerRef:i,triggerInnerRef:l,tooltipRef:a,handleClick:u,renderTrigger:f,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:r}=this;if(t){const{mergedTheme:n}=this;return m(Ni,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:o,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return o()}}),Jg=le({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return m("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Qg=e=>{const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}},x_={name:"Icon",common:qe,self:Qg},C_=x_,y_={name:"Icon",common:de,self:Qg},w_=y_,S_=R("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[N("color-transition",{transition:"color .3s var(--n-bezier)"}),N("depth",{color:"var(--n-color)"},[E("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),E("svg",{height:"1em",width:"1em"})]),$_=Object.assign(Object.assign({},Pe.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),__=le({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:$_,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Icon","-icon",S_,C_,e,t),n=M(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:a},self:s}=r.value;if(l!==void 0){const{color:c,[`opacity${l}Depth`]:d}=s;return{"--n-bezier":a,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":a,"--n-color":"","--n-opacity":""}}),i=o?ut("icon",M(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:M(()=>{const{size:l,color:a}=e;return{fontSize:No(l),color:a}}),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:r,component:n,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&gr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),m("i",qo(this.$attrs,{role:"img",class:[`${r}-icon`,l,{[`${r}-icon--depth`]:o,[`${r}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?m(n):this.$slots)}}),Pd="n-dropdown-menu",Ca="n-dropdown",Vf="n-dropdown-option";function Ys(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function P_(e){return e.type==="group"}function ev(e){return e.type==="divider"}function z_(e){return e.type==="render"}const tv=le({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 t=ge(Ca),{hoverKeyRef:o,keyboardKeyRef:r,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:a,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:h,menuPropsRef:b}=t,v=ge(Vf,null),g=ge(Pd),S=ge(jn),I=M(()=>e.tmNode.rawNode),w=M(()=>{const{value:K}=f;return Ys(e.tmNode.rawNode,K)}),C=M(()=>{const{disabled:K}=e.tmNode;return K}),P=M(()=>{if(!w.value)return!1;const{key:K,disabled:re}=e.tmNode;if(re)return!1;const{value:me}=o,{value:we}=r,{value:Se}=n,{value:Ee}=i;return me!==null?Ee.includes(K):we!==null?Ee.includes(K)&&Ee[Ee.length-1]!==K:Se!==null?Ee.includes(K):!1}),x=M(()=>r.value===null&&!a.value),y=LC(P,300,x),T=M(()=>!!(v!=null&&v.enteringSubmenuRef.value)),$=U(!1);Re(Vf,{enteringSubmenuRef:$});function B(){$.value=!0}function O(){$.value=!1}function X(){const{parentKey:K,tmNode:re}=e;re.disabled||!s.value||(n.value=K,r.value=null,o.value=re.key)}function j(){const{tmNode:K}=e;K.disabled||!s.value||o.value!==K.key&&X()}function G(K){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:re}=K;re&&!_u({target:re},"dropdownOption")&&!_u({target:re},"scrollbarRail")&&(o.value=null)}function L(){const{value:K}=w,{tmNode:re}=e;!s.value||!K&&!re.disabled&&(t.doSelect(re.key,re.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:S,animated:a,mergedShowSubmenu:M(()=>y.value&&!T.value),rawNode:I,hasSubmenu:w,pending:Tt(()=>{const{value:K}=i,{key:re}=e.tmNode;return K.includes(re)}),childActive:Tt(()=>{const{value:K}=l,{key:re}=e.tmNode,me=K.findIndex(we=>re===we);return me===-1?!1:me{const{value:K}=l,{key:re}=e.tmNode,me=K.findIndex(we=>re===we);return me===-1?!1:me===K.length-1}),mergedDisabled:C,renderOption:p,nodeProps:h,handleClick:L,handleMouseMove:j,handleMouseEnter:X,handleMouseLeave:G,handleSubmenuBeforeEnter:B,handleSubmenuAfterEnter:O}},render(){var e,t;const{animated:o,rawNode:r,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:a,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:p}=this;let h=null;if(n){const S=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);h=m(ov,Object.assign({},S,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={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},v=u==null?void 0:u(r),g=m("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),m("div",qo(b,f),[m("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):st(r.icon)]),m("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):st((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),m("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,a&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?m(__,null,{default:()=>m(hg,null)}):null)]),this.hasSubmenu?m(Gc,null,{default:()=>[m(qc,null,{default:()=>m("div",{class:`${i}-dropdown-offset-container`},m(Xc,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>m("div",{class:`${i}-dropdown-menu-wrapper`},o?m(Ot,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return d?d({node:g,option:r}):g}}),T_=le({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=ge(Pd),{renderLabelRef:o,labelFieldRef:r,nodePropsRef:n,renderOptionRef:i}=ge(Ca);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:r,nodeProps:n,renderLabel:i,renderOption:l}=this,{rawNode:a}=this.tmNode,s=m("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(a)),m("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},m("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},st(a.icon)),m("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(a):st((e=a.title)!==null&&e!==void 0?e:a[this.labelField])),m("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:s,option:a}):s}}),k_=le({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:r}=e;return m(Ze,null,m(T_,{clsPrefix:o,tmNode:e,key:e.key}),r==null?void 0:r.map(n=>{const{rawNode:i}=n;return i.show===!1?null:ev(i)?m(Jg,{clsPrefix:o,key:n.key}):n.isGroup?(gr("dropdown","`group` node is not allowed to be put in `group` node."),null):m(tv,{clsPrefix:o,tmNode:n,parentKey:t,key:n.key})}))}}),E_=le({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return m("div",t,[e==null?void 0:e()])}}),ov=le({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:t,childrenFieldRef:o}=ge(Ca);Re(Pd,{showIconRef:M(()=>{const n=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>n?n(s):s.icon);const{rawNode:a}=i;return n?n(a):a.icon})}),hasSubmenuRef:M(()=>{const{value:n}=o;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>Ys(s,n));const{rawNode:a}=i;return Ys(a,n)})})});const r=U(null);return Re(Gi,null),Re(qi,null),Re(jn,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,r=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:z_(i)?m(E_,{tmNode:n,key:n.key}):ev(i)?m(Jg,{clsPrefix:t,key:n.key}):P_(i)?m(k_,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):m(tv,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:o})});return m("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?m(wg,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?_g({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),I_=R("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); +`,[bd(),R("dropdown-option",` + position: relative; + `,[E("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[E("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),R("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); + `,[E("&::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); + `),Je("disabled",[N("pending",` + color: var(--n-option-text-color-hover); + `,[k("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),E("&::before","background-color: var(--n-option-color-hover);")]),N("active",` + color: var(--n-option-text-color-active); + `,[k("prefix, suffix",` + color: var(--n-option-text-color-active); + `),E("&::before","background-color: var(--n-option-color-active);")]),N("child-active",` + color: var(--n-option-text-color-child-active); + `,[k("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),N("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),N("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[k("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[N("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),k("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; + `,[N("show-icon",` + width: var(--n-option-icon-prefix-width); + `),R("icon",` + font-size: var(--n-option-icon-size); + `)]),k("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),k("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; + `,[N("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),R("icon",` + font-size: var(--n-option-icon-size); + `)]),R("dropdown-menu","pointer-events: all;")]),R("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),R("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),R("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),E(">",[R("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Je("scrollable",` + padding: var(--n-padding); + `),N("scrollable",[k("content",` + padding: var(--n-padding); + `)])]),R_={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]},O_=Object.keys(ba),A_=Object.assign(Object.assign(Object.assign({},ba),R_),Pe.props),rv=le({name:"Dropdown",inheritAttrs:!1,props:A_,setup(e){const t=U(!1),o=po(Be(e,"show"),t),r=M(()=>{const{keyField:O,childrenField:X}=e;return gg(e.options,{getKey(j){return j[O]},getDisabled(j){return j.disabled===!0},getIgnored(j){return j.type==="divider"||j.type==="render"},getChildren(j){return j[X]}})}),n=M(()=>r.value.treeNodes),i=U(null),l=U(null),a=U(null),s=M(()=>{var O,X,j;return(j=(X=(O=i.value)!==null&&O!==void 0?O:l.value)!==null&&X!==void 0?X:a.value)!==null&&j!==void 0?j:null}),c=M(()=>r.value.getPath(s.value).keyPath),d=M(()=>r.value.getPath(e.value).keyPath),u=Tt(()=>e.keyboard&&o.value);YC({keydown:{ArrowUp:{prevent:!0,handler:C},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:P},ArrowLeft:{prevent:!0,handler:I},Enter:{prevent:!0,handler:x},Escape:S}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=Ye(e),h=Pe("Dropdown","-dropdown",I_,Zg,e,f);Re(Ca,{labelFieldRef:Be(e,"labelField"),childrenFieldRef:Be(e,"childrenField"),renderLabelRef:Be(e,"renderLabel"),renderIconRef:Be(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:Be(e,"animated"),mergedShowRef:o,nodePropsRef:Be(e,"nodeProps"),renderOptionRef:Be(e,"renderOption"),menuPropsRef:Be(e,"menuProps"),doSelect:b,doUpdateShow:v}),Ke(o,O=>{!e.animated&&!O&&g()});function b(O,X){const{onSelect:j}=e;j&&$e(j,O,X)}function v(O){const{"onUpdate:show":X,onUpdateShow:j}=e;X&&$e(X,O),j&&$e(j,O),t.value=O}function g(){i.value=null,l.value=null,a.value=null}function S(){v(!1)}function I(){T("left")}function w(){T("right")}function C(){T("up")}function P(){T("down")}function x(){const O=y();(O==null?void 0:O.isLeaf)&&o.value&&(b(O.key,O.rawNode),v(!1))}function y(){var O;const{value:X}=r,{value:j}=s;return!X||j===null?null:(O=X.getNode(j))!==null&&O!==void 0?O:null}function T(O){const{value:X}=s,{value:{getFirstAvailableNode:j}}=r;let G=null;if(X===null){const L=j();L!==null&&(G=L.key)}else{const L=y();if(L){let K;switch(O){case"down":K=L.getNext();break;case"up":K=L.getPrev();break;case"right":K=L.getChild();break;case"left":K=L.getParent();break}K&&(G=K.key)}}G!==null&&(i.value=null,l.value=G)}const $=M(()=>{const{size:O,inverted:X}=e,{common:{cubicBezierEaseInOut:j},self:G}=h.value,{padding:L,dividerColor:K,borderRadius:re,optionOpacityDisabled:me,[ce("optionIconSuffixWidth",O)]:we,[ce("optionSuffixWidth",O)]:Se,[ce("optionIconPrefixWidth",O)]:Ee,[ce("optionPrefixWidth",O)]:De,[ce("fontSize",O)]:Xe,[ce("optionHeight",O)]:Y,[ce("optionIconSize",O)]:Q}=G,Z={"--n-bezier":j,"--n-font-size":Xe,"--n-padding":L,"--n-border-radius":re,"--n-option-height":Y,"--n-option-prefix-width":De,"--n-option-icon-prefix-width":Ee,"--n-option-suffix-width":Se,"--n-option-icon-suffix-width":we,"--n-option-icon-size":Q,"--n-divider-color":K,"--n-option-opacity-disabled":me};return X?(Z["--n-color"]=G.colorInverted,Z["--n-option-color-hover"]=G.optionColorHoverInverted,Z["--n-option-color-active"]=G.optionColorActiveInverted,Z["--n-option-text-color"]=G.optionTextColorInverted,Z["--n-option-text-color-hover"]=G.optionTextColorHoverInverted,Z["--n-option-text-color-active"]=G.optionTextColorActiveInverted,Z["--n-option-text-color-child-active"]=G.optionTextColorChildActiveInverted,Z["--n-prefix-color"]=G.prefixColorInverted,Z["--n-suffix-color"]=G.suffixColorInverted,Z["--n-group-header-text-color"]=G.groupHeaderTextColorInverted):(Z["--n-color"]=G.color,Z["--n-option-color-hover"]=G.optionColorHover,Z["--n-option-color-active"]=G.optionColorActive,Z["--n-option-text-color"]=G.optionTextColor,Z["--n-option-text-color-hover"]=G.optionTextColorHover,Z["--n-option-text-color-active"]=G.optionTextColorActive,Z["--n-option-text-color-child-active"]=G.optionTextColorChildActive,Z["--n-prefix-color"]=G.prefixColor,Z["--n-suffix-color"]=G.suffixColor,Z["--n-group-header-text-color"]=G.groupHeaderTextColor),Z}),B=p?ut("dropdown",M(()=>`${e.size[0]}${e.inverted?"i":""}`),$,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:n,mergedShow:o,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:v,cssVars:p?void 0:$,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const e=(r,n,i,l,a)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},f={ref:uC(n),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:a};return m(ov,qo(this.$attrs,f,u))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return m(Pg,Object.assign({},So(this.$props,O_),o),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}}),M_={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},B_=e=>{const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},M_),{panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},L_={name:"TimePicker",common:de,peers:{Scrollbar:jt,Button:Wt,Input:so},self:B_},nv=L_,D_={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},F_=e=>{const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},D_),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:ae(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c})},H_={name:"DatePicker",common:de,peers:{Input:so,Button:Wt,TimePicker:nv,Scrollbar:jt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=F_(e);return n.itemColorDisabled=Ce(t,o),n.itemColorIncluded=ae(r,{alpha:.15}),n.itemColorHover=Ce(t,o),n}},N_=H_,j_={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},iv=e=>{const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},j_),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:Ce(n,t),thColorModal:Ce(i,t),thColorPopover:Ce(l,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Ce(n,a),borderColorModal:Ce(i,a),borderColorPopover:Ce(l,a),borderRadius:s})},W_={name:"Descriptions",common:qe,self:iv},V_=W_,U_={name:"Descriptions",common:de,self:iv},K_=U_,lv="DESCRIPTION_ITEM_FLAG";function G_(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[lv]:!1}const q_=E([R("descriptions",{fontSize:"var(--n-font-size)"},[R("descriptions-separator",` + display: inline-block; + margin: 0 8px 0 2px; + `),R("descriptions-table-wrapper",[R("descriptions-table",[R("descriptions-table-row",[R("descriptions-table-header",{padding:"var(--n-th-padding)"}),R("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),Je("bordered",[R("descriptions-table-wrapper",[R("descriptions-table",[R("descriptions-table-row",[E("&:last-child",[R("descriptions-table-content",{paddingBottom:0})])])])])]),N("left-label-placement",[R("descriptions-table-content",[E("> *",{verticalAlign:"top"})])]),N("left-label-align",[E("th",{textAlign:"left"})]),N("center-label-align",[E("th",{textAlign:"center"})]),N("right-label-align",[E("th",{textAlign:"right"})]),N("bordered",[R("descriptions-table-wrapper",` + border-radius: var(--n-border-radius); + overflow: hidden; + background: var(--n-merged-td-color); + border: 1px solid var(--n-merged-border-color); + `,[R("descriptions-table",[R("descriptions-table-row",[E("&:not(:last-child)",[R("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),R("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),R("descriptions-table-header",` + font-weight: 400; + background-clip: padding-box; + background-color: var(--n-merged-th-color); + `,[E("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),R("descriptions-table-content",[E("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),R("descriptions-header",` + font-weight: var(--n-th-font-weight); + font-size: 18px; + transition: color .3s var(--n-bezier); + line-height: var(--n-line-height); + margin-bottom: 16px; + color: var(--n-title-text-color); + `),R("descriptions-table-wrapper",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[R("descriptions-table",` + width: 100%; + border-collapse: separate; + border-spacing: 0; + box-sizing: border-box; + `,[R("descriptions-table-row",` + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[R("descriptions-table-header",` + font-weight: var(--n-th-font-weight); + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-th-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),R("descriptions-table-content",` + vertical-align: top; + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-td-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[k("content",` + transition: color .3s var(--n-bezier); + display: inline-block; + color: var(--n-td-text-color); + `)]),k("label",` + font-weight: var(--n-th-font-weight); + transition: color .3s var(--n-bezier); + display: inline-block; + margin-right: 14px; + color: var(--n-th-text-color); + `)])])])]),R("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + `),jc(R("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),hm(R("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),Y_=Object.assign(Object.assign({},Pe.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),X_=le({name:"Descriptions",props:Y_,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Descriptions","-descriptions",q_,V_,e,t),n=M(()=>{const{size:l,bordered:a}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:u,thColorPopover:f,thTextColor:p,thFontWeight:h,tdTextColor:b,tdColor:v,tdColorModal:g,tdColorPopover:S,borderColor:I,borderColorModal:w,borderColorPopover:C,borderRadius:P,lineHeight:x,[ce("fontSize",l)]:y,[ce(a?"thPaddingBordered":"thPadding",l)]:T,[ce(a?"tdPaddingBordered":"tdPadding",l)]:$}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":T,"--n-td-padding":$,"--n-font-size":y,"--n-bezier":s,"--n-th-font-weight":h,"--n-line-height":x,"--n-th-text-color":p,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":u,"--n-th-color-popover":f,"--n-td-color":v,"--n-td-color-modal":g,"--n-td-color-popover":S,"--n-border-radius":P,"--n-border-color":I,"--n-border-color-modal":w,"--n-border-color-popover":C}}),i=o?ut("descriptions",M(()=>{let l="";const{size:a,bordered:s}=e;return s&&(l+="a"),l+=a[0],l}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Uc(e,["columns","column"]),inlineThemeDisabled:o}},render(){const e=this.$slots.default,t=e?Ri(e()):[];t.length;const{compitableColumn:o,labelPlacement:r,labelAlign:n,size:i,bordered:l,title:a,cssVars:s,mergedClsPrefix:c,separator:d,onRender:u}=this;u==null||u();const f=t.filter(v=>G_(v)),p={span:0,row:[],secondRow:[],rows:[]},b=f.reduce((v,g,S)=>{const I=g.props||{},w=f.length-1===S,C=["label"in I?I.label:zu(g,"label")],P=[zu(g)],x=I.span||1,y=v.span;v.span+=x;const T=I.labelStyle||I["label-style"]||this.labelStyle,$=I.contentStyle||I["content-style"]||this.contentStyle;if(r==="left")l?v.row.push(m("th",{class:`${c}-descriptions-table-header`,colspan:1,style:T},C),m("td",{class:`${c}-descriptions-table-content`,colspan:w?(o-y)*2+1:x*2-1,style:$},P)):v.row.push(m("td",{class:`${c}-descriptions-table-content`,colspan:w?(o-y)*2:x*2},m("span",{class:`${c}-descriptions-table-content__label`,style:T},[...C,d&&m("span",{class:`${c}-descriptions-separator`},d)]),m("span",{class:`${c}-descriptions-table-content__content`,style:$},P)));else{const B=w?(o-y)*2:x*2;v.row.push(m("th",{class:`${c}-descriptions-table-header`,colspan:B,style:T},C)),v.secondRow.push(m("td",{class:`${c}-descriptions-table-content`,colspan:B,style:$},P))}return(v.span>=o||w)&&(v.span=0,v.row.length&&(v.rows.push(v.row),v.row=[]),r!=="left"&&v.secondRow.length&&(v.rows.push(v.secondRow),v.secondRow=[])),v},p).rows.map(v=>m("tr",{class:`${c}-descriptions-table-row`},v));return m("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${n}-label-align`,`${c}-descriptions--${i}-size`,l&&`${c}-descriptions--bordered`]},a||this.$slots.header?m("div",{class:`${c}-descriptions-header`},a||im(this,"header")):null,m("div",{class:`${c}-descriptions-table-wrapper`},m("table",{class:`${c}-descriptions-table`},m("tbody",null,b))))}}),Z_={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},J_=le({name:"DescriptionsItem",[lv]:!0,props:Z_,render(){return null}}),Q_={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},av=e=>{const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:b,fontWeightStrong:v,lineHeight:g,fontSize:S}=e;return Object.assign(Object.assign({},Q_),{fontSize:S,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:b,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:b,titleFontWeight:v})},eP={name:"Dialog",common:qe,peers:{Button:yd},self:av},sv=eP,tP={name:"Dialog",common:de,peers:{Button:Wt},self:av},cv=tP,ya={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},dv=en(ya),oP=E([R("dialog",` + word-break: break-word; + line-height: var(--n-line-height); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[k("icon",{color:"var(--n-icon-color)"}),N("bordered",{border:"var(--n-border)"}),N("icon-top",[k("close",{margin:"var(--n-close-margin)"}),k("icon",{margin:"var(--n-icon-margin)"}),k("content",{textAlign:"center"}),k("title",{justifyContent:"center"}),k("action",{justifyContent:"center"})]),N("icon-left",[k("icon",{margin:"var(--n-icon-margin)"}),N("closable",[k("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),k("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),k("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[N("last","margin-bottom: 0;")]),k("action",` + display: flex; + justify-content: flex-end; + `,[E("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),k("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),k("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),R("dialog-icon-container",{display:"flex",justifyContent:"center"})]),jc(R("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),R("dialog",[pm(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]),rP={default:()=>m(Ul,null),info:()=>m(Ul,null),success:()=>m(pd,null),warning:()=>m(md,null),error:()=>m(hd,null)},uv=le({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Pe.props),ya),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r}=Ye(e),n=M(()=>{var u,f;const{iconPlacement:p}=e;return p||((f=(u=t==null?void 0:t.value)===null||u===void 0?void 0:u.Dialog)===null||f===void 0?void 0:f.iconPlacement)||"left"});function i(u){const{onPositiveClick:f}=e;f&&f(u)}function l(u){const{onNegativeClick:f}=e;f&&f(u)}function a(){const{onClose:u}=e;u&&u()}const s=Pe("Dialog","-dialog",oP,sv,e,o),c=M(()=>{const{type:u}=e,f=n.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:h,lineHeight:b,border:v,titleTextColor:g,textColor:S,color:I,closeBorderRadius:w,closeColorHover:C,closeColorPressed:P,closeIconColor:x,closeIconColorHover:y,closeIconColorPressed:T,closeIconSize:$,borderRadius:B,titleFontWeight:O,titleFontSize:X,padding:j,iconSize:G,actionSpace:L,contentMargin:K,closeSize:re,[f==="top"?"iconMarginIconTop":"iconMargin"]:me,[f==="top"?"closeMarginIconTop":"closeMargin"]:we,[ce("iconColor",u)]:Se}}=s.value;return{"--n-font-size":h,"--n-icon-color":Se,"--n-bezier":p,"--n-close-margin":we,"--n-icon-margin":me,"--n-icon-size":G,"--n-close-size":re,"--n-close-icon-size":$,"--n-close-border-radius":w,"--n-close-color-hover":C,"--n-close-color-pressed":P,"--n-close-icon-color":x,"--n-close-icon-color-hover":y,"--n-close-icon-color-pressed":T,"--n-color":I,"--n-text-color":S,"--n-border-radius":B,"--n-padding":j,"--n-line-height":b,"--n-border":v,"--n-content-margin":K,"--n-title-font-size":X,"--n-title-font-weight":O,"--n-title-text-color":g,"--n-action-space":L}}),d=r?ut("dialog",M(()=>`${e.type[0]}${n.value[0]}`),c,e):void 0;return{mergedClsPrefix:o,mergedIconPlacement:n,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:l,handleCloseClick:a,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:r,closable:n,showIcon:i,title:l,content:a,action:s,negativeText:c,positiveText:d,positiveButtonProps:u,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:b,loading:v,type:g,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const I=i?m(ko,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>ot(this.$slots.icon,C=>C||(this.icon?st(this.icon):rP[this.type]()))}):null,w=ot(this.$slots.action,C=>C||d||c||s?m("div",{class:`${S}-dialog__action`},C||(s?[st(s)]:[this.negativeText&&m(Sn,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>st(this.negativeText)}),this.positiveText&&m(Sn,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:v,loading:v,onClick:p},u),{default:()=>st(this.positiveText)})])):null);return m("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${o}`,t&&`${S}-dialog--bordered`],style:r,role:"dialog"},n?m(Un,{clsPrefix:S,class:`${S}-dialog__close`,onClick:this.handleCloseClick}):null,i&&o==="top"?m("div",{class:`${S}-dialog-icon-container`},I):null,m("div",{class:`${S}-dialog__title`},i&&o==="left"?I:null,qr(this.$slots.header,()=>[st(l)])),m("div",{class:[`${S}-dialog__content`,w?"":`${S}-dialog__content--last`]},qr(this.$slots.default,()=>[st(a)])),w)}}),fv="n-dialog-provider",hv="n-dialog-api",nP="n-dialog-reactive-list",pv=e=>{const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}},iP={name:"Modal",common:qe,peers:{Scrollbar:Ji,Dialog:sv,Card:Hg},self:pv},lP=iP,aP={name:"Modal",common:de,peers:{Scrollbar:jt,Dialog:cv,Card:Ng},self:pv},sP=aP,zd=Object.assign(Object.assign({},Sd),ya),cP=en(zd),dP=le({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},zd),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=U(null),o=U(null),r=U(e.show),n=U(null),i=U(null);Ke(Be(e,"show"),v=>{v&&(r.value=!0)}),Am(M(()=>e.blockScroll&&r.value));const l=ge(xm);function a(){if(l.transformOriginRef.value==="center")return"";const{value:v}=n,{value:g}=i;if(v===null||g===null)return"";if(o.value){const S=o.value.containerScrollTop;return`${v}px ${g+S}px`}return""}function s(v){if(l.transformOriginRef.value==="center")return;const g=l.getMousePosition();if(!g||!o.value)return;const S=o.value.containerScrollTop,{offsetLeft:I,offsetTop:w}=v;if(g){const C=g.y,P=g.x;n.value=-(I-P),i.value=-(w-C-S)}v.style.transformOrigin=a()}function c(v){zt(()=>{s(v)})}function d(v){v.style.transformOrigin=a(),e.onBeforeLeave()}function u(){r.value=!1,n.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:v}=e;v&&v()}function p(){e.onNegativeClick()}function h(){e.onPositiveClick()}const b=U(null);return Ke(b,v=>{v&&zt(()=>{const g=v.el;g&&t.value!==g&&(t.value=g)})}),Re(Gi,t),Re(qi,null),Re(jn,null),{mergedTheme:l.mergedThemeRef,appear:l.appearRef,isMounted:l.isMountedRef,mergedClsPrefix:l.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:r,childNodeRef:b,handlePositiveClick:h,handleNegativeClick:p,handleCloseClick:f,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:r,handleBeforeLeave:n,preset:i,mergedClsPrefix:l}=this;let a=null;if(!i){if(a=Os(e),!a){gr("modal","default slot is empty");return}a=zo(a),a.props=qo({class:`${l}-modal`},t,a.props||{})}return this.displayDirective==="show"||this.displayed||this.show?oo(m("div",{role:"none",class:`${l}-modal-body-wrapper`},m(yr,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${l}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),m(Jc,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return m(Ot,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:n},{default:()=>{const d=[[On,this.show]],{onClickoutside:u}=this;return u&&d.push([Mi,this.onClickoutside,void 0,{capture:!0}]),oo(this.preset==="confirm"||this.preset==="dialog"?m(uv,Object.assign({},this.$attrs,{class:[`${l}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},So(this.$props,dv),{"aria-modal":"true"}),e):this.preset==="card"?m(E8,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${l}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},So(this.$props,T8),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=a,d)}})}})]}})),[[On,this.displayDirective==="if"||this.displayed||this.show]]):null}}),uP=E([R("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),R("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[va({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),R("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[R("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `)]),R("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[bd({duration:".25s",enterScale:".5"})])]),fP=Object.assign(Object.assign(Object.assign(Object.assign({},Pe.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),zd),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),hP=le({name:"Modal",inheritAttrs:!1,props:fP,setup(e){const t=U(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Ye(e),i=Pe("Modal","-modal",uP,lP,e,o),l=bm(64),a=vm(),s=on(),c=e.internalDialog?ge(fv,null):null,d=Mm();function u(C){const{onUpdateShow:P,"onUpdate:show":x,onHide:y}=e;P&&$e(P,C),x&&$e(x,C),y&&!C&&y(C)}function f(){const{onClose:C}=e;C?Promise.resolve(C()).then(P=>{P!==!1&&u(!1)}):u(!1)}function p(){const{onPositiveClick:C}=e;C?Promise.resolve(C()).then(P=>{P!==!1&&u(!1)}):u(!1)}function h(){const{onNegativeClick:C}=e;C?Promise.resolve(C()).then(P=>{P!==!1&&u(!1)}):u(!1)}function b(){const{onBeforeLeave:C,onBeforeHide:P}=e;C&&$e(C),P&&P()}function v(){const{onAfterLeave:C,onAfterHide:P}=e;C&&$e(C),P&&P()}function g(C){var P;const{onMaskClick:x}=e;x&&x(C),e.maskClosable&&!((P=t.value)===null||P===void 0)&&P.contains(An(C))&&u(!1)}function S(C){var P;(P=e.onEsc)===null||P===void 0||P.call(e),e.show&&e.closeOnEsc&&mm(C)&&!d.value&&u(!1)}Re(xm,{getMousePosition:()=>{if(c){const{clickedRef:C,clickPositionRef:P}=c;if(C.value&&P.value)return P.value}return l.value?a.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:Be(e,"internalAppear"),transformOriginRef:Be(e,"transformOrigin")});const I=M(()=>{const{common:{cubicBezierEaseOut:C},self:{boxShadow:P,color:x,textColor:y}}=i.value;return{"--n-bezier-ease-out":C,"--n-box-shadow":P,"--n-color":x,"--n-text-color":y}}),w=n?ut("theme-class",void 0,I,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:s,containerRef:t,presetProps:M(()=>So(e,cP)),handleEsc:S,handleAfterLeave:v,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:u,handleNegativeClick:h,handlePositiveClick:p,handleCloseClick:f,cssVars:n?void 0:I,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e}=this;return m(Yc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return oo(m("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},m(dP,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var r;return m(Ot,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ua,{zIndex:this.zIndex,enabled:this.show}]])}})}}),pP=Object.assign(Object.assign({},ya),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),mP=le({name:"DialogEnvironment",props:Object.assign(Object.assign({},pP),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function o(){const{onInternalAfterLeave:d,internalKey:u,onAfterLeave:f}=e;d&&d(u),f&&f()}function r(d){const{onPositiveClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&s()}):s()}function n(d){const{onNegativeClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&s()}):s()}function l(d){const{onMaskClick:u,maskClosable:f}=e;u&&(u(d),f&&s())}function a(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:l,handleEsc:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:i,handleEsc:l,to:a,maskClosable:s,show:c}=this;return m(hP,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:l,to:a,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>m(uv,Object.assign({},So(this.$props,dv),{style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}))})}}),gP={injectionKey:String,to:[String,Object]},mv=le({name:"DialogProvider",props:gP,setup(){const e=U([]),t={};function o(a={}){const s=ca(),c=io(Object.assign(Object.assign({},a),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(a=>s=>o(Object.assign(Object.assign({},s),{type:a})));function n(a){const{value:s}=e;s.splice(s.findIndex(c=>c.key===a),1)}function i(){Object.values(t).forEach(a=>a.hide())}const l={create:o,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return Re(hv,l),Re(fv,{clickedRef:bm(64),clickPositionRef:vm()}),Re(nP,e),Object.assign(Object.assign({},l),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return m(Ze,null,[this.dialogList.map(o=>m(mP,Nc(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function vP(){const e=ge(hv,null);return e===null&&Nn("use-dialog","No outer founded."),e}const gv=e=>{const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}},bP={name:"Divider",common:qe,self:gv},xP=bP,CP={name:"Divider",common:de,self:gv},yP=CP,wP=R("divider",` + position: relative; + display: flex; + width: 100%; + box-sizing: border-box; + font-size: 16px; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); +`,[Je("vertical",` + margin-top: 24px; + margin-bottom: 24px; + `,[Je("no-title",` + display: flex; + align-items: center; + `)]),k("title",` + display: flex; + align-items: center; + margin-left: 12px; + margin-right: 12px; + white-space: nowrap; + font-weight: var(--n-font-weight); + `),N("title-position-left",[k("line",[N("left",{width:"28px"})])]),N("title-position-right",[k("line",[N("right",{width:"28px"})])]),N("dashed",[k("line",` + background-color: #0000; + height: 0px; + width: 100%; + border-style: dashed; + border-width: 1px 0 0; + `)]),N("vertical",` + display: inline-block; + height: 1em; + margin: 0 8px; + vertical-align: middle; + width: 1px; + `),k("line",` + border: none; + transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); + height: 1px; + width: 100%; + margin: 0; + `),Je("dashed",[k("line",{backgroundColor:"var(--n-color)"})]),N("dashed",[k("line",{borderColor:"var(--n-color)"})]),N("vertical",{backgroundColor:"var(--n-color)"})]),SP=Object.assign(Object.assign({},Pe.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Qa=le({name:"Divider",props:SP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Divider","-divider",wP,xP,e,t),n=M(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:a,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":l,"--n-color":a,"--n-text-color":s,"--n-font-weight":c}}),i=o?ut("divider",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:r,dashed:n,cssVars:i,mergedClsPrefix:l}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{role:"separator",class:[`${l}-divider`,this.themeClass,{[`${l}-divider--vertical`]:r,[`${l}-divider--no-title`]:!t.default,[`${l}-divider--dashed`]:n,[`${l}-divider--title-position-${o}`]:t.default&&o}],style:i},r?null:m("div",{class:`${l}-divider__line ${l}-divider__line--left`}),!r&&t.default?m(Ze,null,m("div",{class:`${l}-divider__title`},this.$slots),m("div",{class:`${l}-divider__line ${l}-divider__line--right`})):null)}}),vv=e=>{const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}},$P={name:"Drawer",common:qe,peers:{Scrollbar:Ji},self:vv},_P=$P,PP={name:"Drawer",common:de,peers:{Scrollbar:jt},self:vv},zP=PP,TP=le({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=U(!!e.show),o=U(null),r=ge(Kc);let n=0,i="",l=null;const a=U(!1),s=U(!1),c=M(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:u}=Ye(e),f=Zo("Drawer",u,d),p=x=>{s.value=!0,n=c.value?x.clientY:x.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",S),document.body.addEventListener("mouseleave",w),document.body.addEventListener("mouseup",I)},h=()=>{l!==null&&(window.clearTimeout(l),l=null),s.value?a.value=!0:l=window.setTimeout(()=>{a.value=!0},300)},b=()=>{l!==null&&(window.clearTimeout(l),l=null),a.value=!1},{doUpdateHeight:v,doUpdateWidth:g}=r,S=x=>{var y,T;if(s.value)if(c.value){let $=((y=o.value)===null||y===void 0?void 0:y.offsetHeight)||0;const B=n-x.clientY;$+=e.placement==="bottom"?B:-B,v($),n=x.clientY}else{let $=((T=o.value)===null||T===void 0?void 0:T.offsetWidth)||0;const B=n-x.clientX;$+=e.placement==="right"?B:-B,g($),n=x.clientX}},I=()=>{s.value&&(n=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",S),document.body.removeEventListener("mouseup",I),document.body.removeEventListener("mouseleave",w))},w=I;Nt(()=>{e.show&&(t.value=!0)}),Ke(()=>e.show,x=>{x||I()}),$t(()=>{I()});const C=M(()=>{const{show:x}=e,y=[[On,x]];return e.showMask||y.push([Mi,e.onClickoutside,void 0,{capture:!0}]),y});function P(){var x;t.value=!1,(x=e.onAfterLeave)===null||x===void 0||x.call(e)}return Am(M(()=>e.blockScroll&&t.value)),Re(qi,o),Re(jn,null),Re(Gi,null),{bodyRef:o,rtlEnabled:f,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:M(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:P,bodyDirectives:C,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:h,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:a}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?oo(m("div",{role:"none"},m(Jc,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>m(Ot,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>oo(m("div",qo(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?m("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?m("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):m(yr,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[On,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:kP,cubicBezierEaseOut:EP}=ao;function IP({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[E(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${kP}`}),E(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${EP}`}),E(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),E(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),E(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),E(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:RP,cubicBezierEaseOut:OP}=ao;function AP({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[E(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${RP}`}),E(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${OP}`}),E(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),E(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),E(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),E(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:MP,cubicBezierEaseOut:BP}=ao;function LP({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[E(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${MP}`}),E(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${BP}`}),E(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),E(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),E(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),E(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:DP,cubicBezierEaseOut:FP}=ao;function HP({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[E(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${DP}`}),E(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${FP}`}),E(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),E(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),E(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),E(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const NP=E([R("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[IP(),AP(),LP(),HP(),N("unselectable",` + user-select: none; + -webkit-user-select: none; + `),N("native-scrollbar",[R("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),k("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[N("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),R("drawer-content-wrapper",` + box-sizing: border-box; + `),R("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[N("native-scrollbar",[R("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),R("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),R("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),R("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[k("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),R("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),N("right-placement",` + top: 0; + bottom: 0; + right: 0; + `,[k("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),N("left-placement",` + top: 0; + bottom: 0; + left: 0; + `,[k("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),N("top-placement",` + top: 0; + left: 0; + right: 0; + `,[k("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),N("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + `,[k("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),E("body",[E(">",[R("drawer-container",{position:"fixed"})])]),R("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[E("> *",{pointerEvents:"all"})]),R("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[N("invisible",` + background-color: rgba(0, 0, 0, 0) + `),va({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),jP=Object.assign(Object.assign({},Pe.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),WP=le({name:"Drawer",inheritAttrs:!1,props:jP,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:r}=Ye(e),n=on(),i=Pe("Drawer","-drawer",NP,_P,e,t),l=U(e.defaultWidth),a=U(e.defaultHeight),s=po(Be(e,"width"),l),c=po(Be(e,"height"),a),d=M(()=>{const{placement:C}=e;return C==="top"||C==="bottom"?"":No(s.value)}),u=M(()=>{const{placement:C}=e;return C==="left"||C==="right"?"":No(c.value)}),f=C=>{const{onUpdateWidth:P,"onUpdate:width":x}=e;P&&$e(P,C),x&&$e(x,C),l.value=C},p=C=>{const{onUpdateHeight:P,"onUpdate:width":x}=e;P&&$e(P,C),x&&$e(x,C),a.value=C},h=M(()=>[{width:d.value,height:u.value},e.drawerStyle||""]);function b(C){const{onMaskClick:P,maskClosable:x}=e;x&&S(!1),P&&P(C)}const v=Mm();function g(C){var P;(P=e.onEsc)===null||P===void 0||P.call(e),e.show&&e.closeOnEsc&&mm(C)&&!v.value&&S(!1)}function S(C){const{onHide:P,onUpdateShow:x,"onUpdate:show":y}=e;x&&$e(x,C),y&&$e(y,C),P&&!C&&$e(P,C)}Re(Kc,{isMountedRef:n,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:S,doUpdateHeight:p,doUpdateWidth:f});const I=M(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:P,cubicBezierEaseOut:x},self:{color:y,textColor:T,boxShadow:$,lineHeight:B,headerPadding:O,footerPadding:X,bodyPadding:j,titleFontSize:G,titleTextColor:L,titleFontWeight:K,headerBorderBottom:re,footerBorderTop:me,closeIconColor:we,closeIconColorHover:Se,closeIconColorPressed:Ee,closeColorHover:De,closeColorPressed:Xe,closeIconSize:Y,closeSize:Q,closeBorderRadius:Z,resizableTriggerColorHover:ue}}=i.value;return{"--n-line-height":B,"--n-color":y,"--n-text-color":T,"--n-box-shadow":$,"--n-bezier":C,"--n-bezier-out":x,"--n-bezier-in":P,"--n-header-padding":O,"--n-body-padding":j,"--n-footer-padding":X,"--n-title-text-color":L,"--n-title-font-size":G,"--n-title-font-weight":K,"--n-header-border-bottom":re,"--n-footer-border-top":me,"--n-close-icon-color":we,"--n-close-icon-color-hover":Se,"--n-close-icon-color-pressed":Ee,"--n-close-size":Q,"--n-close-color-hover":De,"--n-close-color-pressed":Xe,"--n-close-icon-size":Y,"--n-close-border-radius":Z,"--n-resize-trigger-color-hover":ue}}),w=r?ut("drawer",void 0,I,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:h,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:I,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender,isMounted:n}},render(){const{mergedClsPrefix:e}=this;return m(Yc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),oo(m("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?m(Ot,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,m(TP,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ua,{zIndex:this.zIndex,enabled:this.show}]])}})}}),VP={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},UP=le({name:"DrawerContent",props:VP,setup(){const e=ge(Kc,null);e||Nn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:r,bodyStyle:n,bodyContentStyle:i,headerStyle:l,footerStyle:a,scrollbarProps:s,closable:c,$slots:d}=this;return m("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?m("div",{class:`${t}-drawer-header`,style:l,role:"none"},m("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&m(Un,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?m("div",{class:`${t}-drawer-body`,style:n,role:"none"},m("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):m(yr,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?m("div",{class:`${t}-drawer-footer`,style:a,role:"none"},d.footer()):null)}}),KP={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},GP={name:"DynamicInput",common:de,peers:{Input:so,Button:Wt},self(){return KP}},qP=GP,bv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},YP={name:"Space",self(){return bv}},xv=YP,XP=()=>bv,ZP={name:"Space",self:XP},JP=ZP;let es;const QP=()=>{if(!tn)return!0;if(es===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),es=t}return es},ez=Object.assign(Object.assign({},Pe.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),In=le({name:"Space",props:ez,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ye(e),r=Pe("Space","-space",void 0,JP,e,t),n=Zo("Space",o,t);return{useGap:QP(),rtlEnabled:n,mergedClsPrefix:t,margin:M(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ce("gap",i)]:l}}=r.value,{row:a,col:s}=oC(l);return{horizontal:co(s),vertical:co(a)}})}},render(){const{vertical:e,align:t,inline:o,justify:r,itemStyle:n,margin:i,wrap:l,mergedClsPrefix:a,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:u}=this,f=Ri(im(this));if(!f.length)return null;const p=`${i.horizontal}px`,h=`${i.horizontal/2}px`,b=`${i.vertical}px`,v=`${i.vertical/2}px`,g=f.length-1,S=r.startsWith("space-");return m("div",{role:"none",class:[`${a}-space`,s&&`${a}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!l||e?"nowrap":"wrap",marginTop:c||e?"":`-${v}`,marginBottom:c||e?"":`-${v}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||u)?f:f.map((I,w)=>m("div",{role:"none",style:[n,{maxWidth:"100%"},c?"":e?{marginBottom:w!==g?b:""}:s?{marginLeft:S?r==="space-between"&&w===g?"":h:w!==g?p:"",marginRight:S?r==="space-between"&&w===0?"":h:"",paddingTop:v,paddingBottom:v}:{marginRight:S?r==="space-between"&&w===g?"":h:w!==g?p:"",marginLeft:S?r==="space-between"&&w===0?"":h:"",paddingTop:v,paddingBottom:v}]},I)))}}),tz={name:"DynamicTags",common:de,peers:{Input:so,Button:Wt,Tag:Tg,Space:xv},self(){return{inputWidth:"64px"}}},oz=tz,rz={name:"Element",common:de},nz=rz,iz={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right"},Cv=e=>{const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return Object.assign(Object.assign({},iz),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s})},lz={name:"Form",common:qe,self:Cv},k9=lz,az={name:"Form",common:de,self:Cv},sz=az,cz=le({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=ge(Uo,null),{body:t}=document,{style:o}=t;let r=!1,n=!0;Go(()=>{Nt(()=>{var i,l;const{textColor2:a,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:u,lineHeight:f}=e?wn({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||qe,(l=e.mergedThemeOverridesRef.value)===null||l===void 0?void 0:l.common):qe;if(r||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=d,o.color=a,o.fontSize=s,o.fontFamily=c,o.lineHeight=f;const p=`color .3s ${u}, background-color .3s ${u}`;n?setTimeout(()=>{o.transition=p},0):o.transition=p,t.setAttribute("n-styled",""),r=!0,n=!1}})}),Ui(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),dz={name:"GradientText",common:de,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:d,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:a}}},uz=dz,fz=e=>{const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}},hz={name:"IconWrapper",common:de,self:fz},pz=hz,mz={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},yv=e=>{const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:b,boxShadow2:v,lineHeight:g,fontSize:S}=e;return Object.assign(Object.assign({},mz),{borderRadius:h,lineHeight:g,fontSize:S,headerFontWeight:b,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:v})},gz={name:"Notification",common:qe,peers:{Scrollbar:Ji},self:yv},vz=gz,bz={name:"Notification",common:de,peers:{Scrollbar:jt},self:yv},xz=bz,Cz={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},wv=e=>{const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:b}=e;return Object.assign(Object.assign({},Cz),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:u,closeColorHover:h,closeColorPressed:b,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:b,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:b,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:b,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:b,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:b,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:p})},yz={name:"Message",common:qe,self:wv},wz=yz,Sz={name:"Message",common:de,self:wv},$z=Sz,_z={name:"ButtonGroup",common:de},Pz=_z,zz={name:"InputNumber",common:de,peers:{Button:Wt,Input:so},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},Tz=zz,kz={name:"Layout",common:de,peers:{Scrollbar:jt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ce(o,l),siderToggleBarColorHover:Ce(o,a),__invertScrollbar:"false"}}},Ez=kz,Iz=e=>{const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:c,footerColor:l,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ce(r,a),siderToggleBarColorHover:Ce(r,s),__invertScrollbar:"true"}},Rz={name:"Layout",common:qe,peers:{Scrollbar:Ji},self:Iz},Td=Rz,Oz=e=>{const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Ce(r,s),colorPopover:n,colorHoverPopover:Ce(n,s),borderColor:i,borderColorModal:Ce(r,i),borderColorPopover:Ce(n,i),borderRadius:l,fontSize:a}},Az={name:"List",common:de,self:Oz},Mz=Az,Bz={name:"LoadingBar",common:de,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Lz=Bz,Dz=e=>{const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}},Fz={name:"LoadingBar",common:qe,self:Dz},Hz=Fz,Nz={name:"Log",common:de,peers:{Scrollbar:jt,Code:jg},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},jz=Nz,Wz={name:"Mention",common:de,peers:{InternalSelectMenu:Qi,Input:so},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},Vz=Wz;function Uz(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}const Sv=e=>{const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:ae(r,{alpha:.1}),itemColorActiveHover:ae(r,{alpha:.1}),itemColorActiveCollapsed:ae(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a},Uz("#BBB",r,"#FFF","#AAA"))},Kz={name:"Menu",common:qe,peers:{Tooltip:$d,Dropdown:Zg},self:Sv},Gz=Kz,qz={name:"Menu",common:de,peers:{Tooltip:xa,Dropdown:_d},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=Sv(e);return r.itemColorActive=ae(t,{alpha:.15}),r.itemColorActiveHover=ae(t,{alpha:.15}),r.itemColorActiveCollapsed=ae(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}},Yz=qz,Xz={titleFontSize:"18px",backSize:"22px"};function Zz(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return Object.assign(Object.assign({},Xz),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r})}const Jz={name:"PageHeader",common:de,self:Zz},Qz={iconSize:"22px"},eT=e=>{const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Qz),{fontSize:t,iconColor:o})},tT={name:"Popconfirm",common:de,peers:{Button:Wt,Popover:cn},self:eT},oT=tT,rT=e=>{const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},nT={name:"Progress",common:de,self(e){const t=rT(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},$v=nT,iT={name:"Rate",common:de,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},lT=iT,aT={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},_v=e=>{const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return Object.assign(Object.assign({},aT),{lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l})},sT={name:"Result",common:qe,self:_v},E9=sT,cT={name:"Result",common:de,self:_v},dT=cT,uT={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},fT={name:"Slider",common:de,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},uT),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:d,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},hT=fT,pT=e=>{const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}},mT={name:"Spin",common:de,self:pT},gT=mT,vT=e=>{const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},bT={name:"Statistic",common:de,self:vT},xT=bT,CT={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},yT=e=>{const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return Object.assign(Object.assign({},CT),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},wT={name:"Steps",common:de,self:yT},ST=wT,Pv={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},$T={name:"Switch",common:de,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e,a="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},Pv),{iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:a,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${ae(n,{alpha:.3})}`})}},_T=$T,PT=e=>{const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Pv),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ae(t,{alpha:.2})}`})},zT={name:"Switch",common:qe,self:PT},TT=zT,kT={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},ET=e=>{const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},kT),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:u,borderRadius:c,borderColor:Ce(o,t),borderColorModal:Ce(r,t),borderColorPopover:Ce(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Ce(o,l),tdColorStripedModal:Ce(r,l),tdColorStripedPopover:Ce(n,l),thColor:Ce(o,i),thColorModal:Ce(r,i),thColorPopover:Ce(n,i),thTextColor:a,tdTextColor:s,thFontWeight:d})},IT={name:"Table",common:de,self:ET},RT=IT,OT={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},zv=e=>{const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:p,borderRadius:h,fontSize:b,fontWeightStrong:v}=e;return Object.assign(Object.assign({},OT),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:h,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:v})},AT={name:"Tabs",common:qe,self:zv},I9=AT,MT={name:"Tabs",common:de,self(e){const t=zv(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}},BT=MT,LT=e=>{const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}},DT={name:"Thing",common:de,self:LT},FT=DT,HT={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},NT={name:"Timeline",common:de,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},HT),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s})}},jT=NT,WT={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},VT={name:"Transfer",common:de,peers:{Checkbox:Kn,Scrollbar:jt,Input:so,Empty:sn,Button:Wt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:b,closeColorPressed:v,closeIconColor:g,closeIconColorHover:S,closeIconColorPressed:I,dividerColor:w}=e;return Object.assign(Object.assign({},WT),{itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:w,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:p,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:h,titleFontWeight:t,closeColorHover:b,closeColorPressed:v,closeIconColor:g,closeIconColorHover:S,closeIconColorPressed:I})}},UT=VT,KT=e=>{const{borderRadiusSmall:t,hoverColor:o,pressedColor:r,primaryColor:n,textColor3:i,textColor2:l,textColorDisabled:a,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:r,nodeColorActive:ae(n,{alpha:.1}),arrowColor:i,nodeTextColor:l,nodeTextColorDisabled:a,loadingColor:n,dropMarkColor:n}},GT={name:"Tree",common:de,peers:{Checkbox:Kn,Scrollbar:jt,Empty:sn},self(e){const{primaryColor:t}=e,o=KT(e);return o.nodeColorActive=ae(t,{alpha:.15}),o}},Tv=GT,qT={name:"TreeSelect",common:de,peers:{Tree:Tv,Empty:sn,InternalSelection:Cd}},YT=qT,XT={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},ZT=e=>{const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:p,successColor:h,codeColor:b}=e;return Object.assign(Object.assign({},XT),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:o,codeColor:b,codeBorder:"1px solid #0000"})},JT={name:"Typography",common:de,self:ZT},QT=JT,ek=e=>{const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:ae(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},tk={name:"Upload",common:de,peers:{Button:Wt,Progress:$v},self(e){const{errorColor:t}=e,o=ek(e);return o.itemColorHoverError=ae(t,{alpha:.09}),o}},ok=tk,rk={name:"Watermark",common:de,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},nk=rk,ik={name:"Row",common:de},lk=ik,ak={name:"Image",common:de,peers:{Tooltip:xa},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},kv="n-layout-sider",kd={type:String,default:"static"},sk=R("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); +`,[R("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),N("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),ck={embedded:Boolean,position:kd,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},Ev="n-layout";function Iv(e){return le({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Pe.props),ck),setup(t){const o=U(null),r=U(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Ye(t),l=Pe("Layout","-layout",sk,Td,t,n);function a(b,v){if(t.nativeScrollbar){const{value:g}=o;g&&(v===void 0?g.scrollTo(b):g.scrollTo(b,v))}else{const{value:g}=r;g&&g.scrollTo(b,v)}}Re(Ev,t);let s=0,c=0;const d=b=>{var v;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(v=t.onScroll)===null||v===void 0||v.call(t,b)};ed(()=>{if(t.nativeScrollbar){const b=o.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:a},p=M(()=>{const{common:{cubicBezierEaseInOut:b},self:v}=l.value;return{"--n-bezier":b,"--n-color":t.embedded?v.colorEmbedded:v.color,"--n-text-color":v.textColor}}),h=i?ut("layout",M(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:r,hasSiderStyle:u,mergedTheme:l,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:o,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return m("div",{class:i,style:this.cssVars},this.nativeScrollbar?m("div",{ref:"scrollableElRef",class:`${o}-layout-scroll-container`,style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):m(yr,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const Uf=Iv(!1),dk=Iv(!0),uk=R("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[N("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),N("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),fk={position:kd,inverted:Boolean,bordered:{type:Boolean,default:!1}},hk=le({name:"LayoutHeader",props:Object.assign(Object.assign({},Pe.props),fk),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Layout","-layout-header",uk,Td,e,t),n=M(()=>{const{common:{cubicBezierEaseInOut:l},self:a}=r.value,s={"--n-bezier":l};return e.inverted?(s["--n-color"]=a.headerColorInverted,s["--n-text-color"]=a.textColorInverted,s["--n-border-color"]=a.headerBorderColorInverted):(s["--n-color"]=a.headerColor,s["--n-text-color"]=a.textColor,s["--n-border-color"]=a.headerBorderColor),s}),i=o?ut("layout-header",M(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("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)}}),pk=R("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; +`,[N("bordered",[k("border",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 1px; + background-color: var(--n-border-color); + transition: background-color .3s var(--n-bezier); + `)]),k("left-placement",[N("bordered",[k("border",` + right: 0; + `)])]),N("right-placement",` + justify-content: flex-start; + `,[N("bordered",[k("border",` + left: 0; + `)]),N("collapsed",[R("layout-toggle-button",[R("base-icon",` + transform: rotate(180deg); + `)]),R("layout-toggle-bar",[E("&:hover",[k("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),k("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),R("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[R("base-icon",` + transform: rotate(0); + `)]),R("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[E("&:hover",[k("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),k("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),N("collapsed",[R("layout-toggle-bar",[E("&:hover",[k("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),k("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),R("layout-toggle-button",[R("base-icon",` + transform: rotate(0); + `)])]),R("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; + `,[R("base-icon",` + transition: transform .3s var(--n-bezier); + transform: rotate(180deg); + `)]),R("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[k("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); + `),k("bottom",` + position: absolute; + top: 34px; + `),E("&:hover",[k("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),k("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),k("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),E("&:hover",[k("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),k("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--n-bezier); + `),R("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%; + `),N("show-content",[R("layout-sider-scroll-container",{opacity:1})]),N("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `)]),mk=le({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},m(ko,{clsPrefix:e},{default:()=>m(hg,null)}))}}),gk=le({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return m("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},m("div",{class:`${e}-layout-toggle-bar__top`}),m("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),vk={position:kd,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},bk=le({name:"LayoutSider",props:Object.assign(Object.assign({},Pe.props),vk),setup(e){const t=ge(Ev),o=U(null),r=U(null),n=M(()=>No(s.value?e.collapsedWidth:e.width)),i=M(()=>e.collapseMode!=="transform"?{}:{minWidth:No(e.width)}),l=M(()=>t?t.siderPlacement:"left"),a=U(e.defaultCollapsed),s=po(Be(e,"collapsed"),a);function c(C,P){if(e.nativeScrollbar){const{value:x}=o;x&&(P===void 0?x.scrollTo(C):x.scrollTo(C,P))}else{const{value:x}=r;x&&x.scrollTo(C,P)}}function d(){const{"onUpdate:collapsed":C,onUpdateCollapsed:P,onExpand:x,onCollapse:y}=e,{value:T}=s;P&&$e(P,!T),C&&$e(C,!T),a.value=!T,T?x&&$e(x):y&&$e(y)}let u=0,f=0;const p=C=>{var P;const x=C.target;u=x.scrollLeft,f=x.scrollTop,(P=e.onScroll)===null||P===void 0||P.call(e,C)};ed(()=>{if(e.nativeScrollbar){const C=o.value;C&&(C.scrollTop=f,C.scrollLeft=u)}}),Re(kv,{collapsedRef:s,collapseModeRef:Be(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:b}=Ye(e),v=Pe("Layout","-layout-sider",pk,Td,e,h);function g(C){var P,x;C.propertyName==="max-width"&&(s.value?(P=e.onAfterLeave)===null||P===void 0||P.call(e):(x=e.onAfterEnter)===null||x===void 0||x.call(e))}const S={scrollTo:c},I=M(()=>{const{common:{cubicBezierEaseInOut:C},self:P}=v.value,{siderToggleButtonColor:x,siderToggleButtonBorder:y,siderToggleBarColor:T,siderToggleBarColorHover:$}=P,B={"--n-bezier":C,"--n-toggle-button-color":x,"--n-toggle-button-border":y,"--n-toggle-bar-color":T,"--n-toggle-bar-color-hover":$};return e.inverted?(B["--n-color"]=P.siderColorInverted,B["--n-text-color"]=P.textColorInverted,B["--n-border-color"]=P.siderBorderColorInverted,B["--n-toggle-button-icon-color"]=P.siderToggleButtonIconColorInverted,B.__invertScrollbar=P.__invertScrollbar):(B["--n-color"]=P.siderColor,B["--n-text-color"]=P.textColor,B["--n-border-color"]=P.siderBorderColor,B["--n-toggle-button-icon-color"]=P.siderToggleButtonIconColor),B}),w=b?ut("layout-sider",M(()=>e.inverted?"a":"b"),I,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:v,styleMaxWidth:n,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:l,handleNativeElScroll:p,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:I,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender},S)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("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`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:No(this.width)}]},this.nativeScrollbar?m("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):m(yr,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),r?r==="bar"?m(gk,{clsPrefix:t,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):m(mk,{clsPrefix:t,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?m("div",{class:`${t}-layout-sider__border`}):null)}}),xk={extraFontSize:"12px",width:"440px"},Ck={name:"Transfer",common:de,peers:{Checkbox:Kn,Scrollbar:jt,Input:so,Empty:sn,Button:Wt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:b,hoverColor:v}=e;return Object.assign(Object.assign({},xk),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:b,filterDividerColor:"#0000",itemTextColor:b,itemTextColorDisabled:h,itemColorPending:v,titleFontWeight:r,iconColor:o,iconColorDisabled:t})}},yk=Ck,Rv="n-loading-bar",Ov="n-loading-bar-api",wk=R("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[va({enterDuration:"0.3s",leaveDuration:"0.8s"}),R("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[N("starting",` + background: var(--n-color-loading); + `),N("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),N("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var ts=globalThis&&globalThis.__awaiter||function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(l){l(i)})}return new(o||(o=Promise))(function(i,l){function a(d){try{c(r.next(d))}catch(u){l(u)}}function s(d){try{c(r.throw(d))}catch(u){l(u)}}function c(d){d.done?i(d.value):n(d.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};function $l(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const Sk=le({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Ye(),{props:t,mergedClsPrefixRef:o}=ge(Rv),r=U(null),n=U(!1),i=U(!1),l=U(!1),a=U(!1);let s=!1;const c=U(!1),d=M(()=>{const{loadingBarStyle:C}=t;return C?C[c.value?"error":"loading"]:""});function u(){return ts(this,void 0,void 0,function*(){n.value=!1,l.value=!1,s=!1,c.value=!1,a.value=!0,yield zt(),a.value=!1})}function f(C=0,P=80,x="starting"){return ts(this,void 0,void 0,function*(){yield u(),l.value=!0,i.value=!0,yield zt();const y=r.value;!y||(y.style.maxWidth=`${C}%`,y.style.transition="none",y.offsetWidth,y.className=$l(x,o.value),y.style.transition="",y.style.maxWidth=`${P}%`)})}function p(){if(s||c.value||!l.value)return;s=!0;const C=r.value;!C||(C.className=$l("finishing",o.value),C.style.maxWidth="100%",C.offsetWidth,l.value=!1)}function h(){if(!(s||c.value))if(!l.value)f(100,100,"error").then(()=>{c.value=!0;const C=r.value;!C||(C.className=$l("error",o.value),C.offsetWidth,l.value=!1)});else{c.value=!0;const C=r.value;if(!C)return;C.className=$l("error",o.value),C.style.maxWidth="100%",C.offsetWidth,l.value=!1}}function b(){n.value=!0}function v(){n.value=!1}function g(){return ts(this,void 0,void 0,function*(){yield u()})}const S=Pe("LoadingBar","-loading-bar",wk,Hz,t,o),I=M(()=>{const{self:{height:C,colorError:P,colorLoading:x}}=S.value;return{"--n-height":C,"--n-color-loading":x,"--n-color-error":P}}),w=e?ut("loading-bar",void 0,I,t):void 0;return{mergedClsPrefix:o,loadingBarRef:r,started:i,loading:l,entering:n,transitionDisabled:a,start:f,error:h,finish:p,handleEnter:b,handleAfterEnter:v,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:I,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return m(Ot,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),oo(m("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},m("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[On,this.loading||!this.loading&&this.entering]])}})}}),$k=Object.assign(Object.assign({},Pe.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),Av=le({name:"LoadingBarProvider",props:$k,setup(e){const t=on(),o=U(null),r={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():zt(()=>{var l;(l=o.value)===null||l===void 0||l.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():zt(()=>{var l;(l=o.value)===null||l===void 0||l.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():zt(()=>{var l;(l=o.value)===null||l===void 0||l.finish()})}},{mergedClsPrefixRef:n}=Ye(e);return Re(Ov,r),Re(Rv,{props:e,mergedClsPrefixRef:n}),Object.assign(r,{loadingBarRef:o})},render(){var e,t;return m(Ze,null,m(ia,{disabled:this.to===!1,to:this.to||"body"},m(Sk,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function _k(){const e=ge(Ov,null);return e===null&&Nn("use-loading-bar","No outer founded."),e}const el="n-menu",Ed="n-submenu",Id="n-menu-item-group",_l=8;function Rd(e){const t=ge(el),{props:o,mergedCollapsedRef:r}=t,n=ge(Ed,null),i=ge(Id,null),l=M(()=>o.mode==="horizontal"),a=M(()=>l.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=M(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=M(()=>{var f;return!l.value&&e.root&&r.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=M(()=>{if(l.value)return;const{collapsedWidth:f,indent:p,rootIndent:h}=o,{root:b,isGroup:v}=e,g=h===void 0?p:h;if(b)return r.value?f/2-s.value/2:g;if(i)return p/2+i.paddingLeftRef.value;if(n)return(v?p/2:p)+n.paddingLeftRef.value}),u=M(()=>{const{collapsedWidth:f,indent:p,rootIndent:h}=o,{value:b}=s,{root:v}=e;return l.value||!v||!r.value?_l:(h===void 0?p:h)+b+_l-(f+b)/2});return{dropdownPlacement:a,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:n}}const Od={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Mv=Object.assign(Object.assign({},Od),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Pk=le({name:"MenuOptionGroup",props:Mv,setup(e){Re(Ed,null);const t=Rd(e);Re(Id,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:r}=ge(el);return function(){const{value:n}=o,i=t.paddingLeft.value,{nodeProps:l}=r,a=l==null?void 0:l(e.tmNode.rawNode);return m("div",{class:`${n}-menu-item-group`,role:"group"},m("div",Object.assign({},a,{class:[`${n}-menu-item-group-title`,a==null?void 0:a.class],style:[(a==null?void 0:a.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),st(e.title),e.extra?m(Ze,null," ",st(e.extra)):null),m("div",null,e.tmNodes.map(s=>Ad(s,r))))}}}),Bv=le({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:t}=ge(el);return{menuProps:t,style:M(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:M(()=>{const{maxIconSize:o,activeIconSize:r,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${r}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:r,renderExtra:n,expandIcon:i}}=this,l=o?o(t.rawNode):st(this.icon);return m("div",{onClick:a=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,a)},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&&m("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[l]),m("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):st(this.title),this.extra||n?m("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):st(this.extra)):null),this.showArrow?m(ko,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):m(O5,null)}):null)}}),Lv=Object.assign(Object.assign({},Od),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),zk=le({name:"Submenu",props:Lv,setup(e){const t=Rd(e),{NMenu:o,NSubmenu:r}=t,{props:n,mergedCollapsedRef:i,mergedThemeRef:l}=o,a=M(()=>{const{disabled:f}=e;return r!=null&&r.mergedDisabledRef.value||n.disabled?!0:f}),s=U(!1);Re(Ed,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:a}),Re(Id,null);function c(){const{onClick:f}=e;f&&f()}function d(){a.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){s.value=f}return{menuProps:n,mergedTheme:l,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:a,mergedValue:o.mergedValueRef,childActive:Tt(()=>o.activePathRef.value.includes(e.internalKey)),collapsed:M(()=>n.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:M(()=>!a.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:r}}=this,n=()=>{const{isHorizontal:l,paddingLeft:a,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:p,icon:h,handleClick:b,menuProps:{nodeProps:v},dropdownShow:g,iconMarginRight:S,tmNode:I,mergedClsPrefix:w}=this,C=v==null?void 0:v(I.rawNode);return m("div",Object.assign({},C,{class:[`${w}-menu-item`,C==null?void 0:C.class],role:"menuitem"}),m(Bv,{tmNode:I,paddingLeft:a,collapsed:s,disabled:c,iconMarginRight:S,maxIconSize:d,activeIconSize:u,title:f,extra:this.extra,showArrow:!l,childActive:p,clsPrefix:w,icon:h,hover:g,onClick:b}))},i=()=>m(gd,null,{default:()=>{const{tmNodes:l,collapsed:a}=this;return a?null:m("div",{class:`${t}-submenu-children`,role:"menu"},l.map(s=>Ad(s,this.menuProps)))}});return this.root?m(rv,Object.assign({size:"large"},(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,trigger:"hover",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:o,renderLabel:r}),{default:()=>m("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},n(),this.isHorizontal?null:i())}):m("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},n(),i())}}),Dv=Object.assign(Object.assign({},Od),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Tk=le({name:"MenuOption",props:Dv,setup(e){const t=Rd(e),{NSubmenu:o,NMenu:r}=t,{props:n,mergedClsPrefixRef:i,mergedCollapsedRef:l}=r,a=o?o.mergedDisabledRef:{value:!1},s=M(()=>a.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:n,dropdownEnabled:Tt(()=>e.root&&l.value&&n.mode!=="horizontal"&&!s.value),selected:Tt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:r,nodeProps:n}}=this,i=n==null?void 0:n(o.rawNode);return m("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),m(Ni,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(o.rawNode):st(this.title),trigger:()=>m(Bv,{tmNode:o,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})}))}}),kk=le({name:"MenuDivider",setup(){const e=ge(el),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:m("div",{class:`${t.value}-menu-divider`})}}),Ek=en(Mv),Ik=en(Dv),Rk=en(Lv);function Fv(e){return e.type==="divider"||e.type==="render"}function Ok(e){return e.type==="divider"}function Ad(e,t){const{rawNode:o}=e,{show:r}=o;if(r===!1)return null;if(Fv(o))return Ok(o)?m(kk,Object.assign({key:e.key},o.props)):null;const{labelField:n}=t,{key:i,level:l,isGroup:a}=e,s=Object.assign(Object.assign({},o),{title:o.title||o[n],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:l,root:l===0,isGroup:a});return e.children?e.isGroup?m(Pk,So(s,Ek,{tmNode:e,tmNodes:e.children,key:i})):m(zk,So(s,Rk,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):m(Tk,So(s,Ik,{key:i,tmNode:e}))}const Kf=[E("&::before","background-color: var(--n-item-color-hover);"),k("arrow",` + color: var(--n-arrow-color-hover); + `),k("icon",` + color: var(--n-item-icon-color-hover); + `),R("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[E("a",` + color: var(--n-item-text-color-hover); + `),k("extra",` + color: var(--n-item-text-color-hover); + `)])],Gf=[k("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),R("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[E("a",` + color: var(--n-item-text-color-hover-horizontal); + `),k("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],Ak=E([R("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; + `,[N("horizontal",` + display: inline-flex; + padding-bottom: 0; + `,[R("submenu","margin: 0;"),R("menu-item","margin: 0;"),R("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[E("&::before","display: none;"),N("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),R("menu-item-content",[N("selected",[k("icon","color: var(--n-item-icon-color-active-horizontal);"),R("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[E("a","color: var(--n-item-text-color-active-horizontal);"),k("extra","color: var(--n-item-text-color-active-horizontal);")])]),N("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[R("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[E("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),k("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),k("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),Je("disabled",[Je("selected, child-active",[E("&:focus-within",Gf)]),N("selected",[Br(null,[k("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),R("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[E("a","color: var(--n-item-text-color-active-hover-horizontal);"),k("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),N("child-active",[Br(null,[k("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),R("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[E("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),k("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Br("border-bottom: 2px solid var(--n-border-color-horizontal);",Gf)]),R("menu-item-content-header",[E("a","color: var(--n-item-text-color-horizontal);")])])]),N("collapsed",[R("menu-item-content",[N("selected",[E("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),R("menu-item-content-header","opacity: 0;"),k("arrow","opacity: 0;"),k("icon","color: var(--n-item-icon-color-collapsed);")])]),R("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),R("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); + `,[E("> *","z-index: 1;"),E("&::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); + `),N("disabled",` + opacity: .45; + cursor: not-allowed; + `),N("collapsed",[k("arrow","transform: rotate(0);")]),N("selected",[E("&::before","background-color: var(--n-item-color-active);"),k("arrow","color: var(--n-arrow-color-active);"),k("icon","color: var(--n-item-icon-color-active);"),R("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[E("a","color: var(--n-item-text-color-active);"),k("extra","color: var(--n-item-text-color-active);")])]),N("child-active",[R("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[E("a",` + color: var(--n-item-text-color-child-active); + `),k("extra",` + color: var(--n-item-text-color-child-active); + `)]),k("arrow",` + color: var(--n-arrow-color-child-active); + `),k("icon",` + color: var(--n-item-icon-color-child-active); + `)]),Je("disabled",[Je("selected, child-active",[E("&:focus-within",Kf)]),N("selected",[Br(null,[k("arrow","color: var(--n-arrow-color-active-hover);"),k("icon","color: var(--n-item-icon-color-active-hover);"),R("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[E("a","color: var(--n-item-text-color-active-hover);"),k("extra","color: var(--n-item-text-color-active-hover);")])])]),N("child-active",[Br(null,[k("arrow","color: var(--n-arrow-color-child-active-hover);"),k("icon","color: var(--n-item-icon-color-child-active-hover);"),R("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[E("a","color: var(--n-item-text-color-child-active-hover);"),k("extra","color: var(--n-item-text-color-child-active-hover);")])])]),N("selected",[Br(null,[E("&::before","background-color: var(--n-item-color-active-hover);")])]),Br(null,Kf)]),k("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; + `),k("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); + `),R("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); + `,[E("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[E("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),k("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),R("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[R("menu-item-content",` + height: var(--n-item-height); + `),R("submenu-children",` + overflow: hidden; + padding: 0; + `,[kg({duration:".2s"})])]),R("menu-item-group",[R("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); + `)])]),R("menu-tooltip",[E("a",` + color: inherit; + text-decoration: none; + `)]),R("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function Br(e,t){return[N("hover",e,t),E("&:hover",e,t)]}const Mk=Object.assign(Object.assign({},Pe.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,defalut:!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"}}),Bk=le({name:"Menu",props:Mk,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Menu","-menu",Ak,Gz,e,t),n=ge(kv,null),i=M(()=>{var y;const{collapsed:T}=e;if(T!==void 0)return T;if(n){const{collapseModeRef:$,collapsedRef:B}=n;if($.value==="width")return(y=B.value)!==null&&y!==void 0?y:!1}return!1}),l=M(()=>{const{keyField:y,childrenField:T,disabledField:$}=e;return gg(e.items||e.options,{getIgnored(B){return Fv(B)},getChildren(B){return B[T]},getDisabled(B){return B[$]},getKey(B){var O;return(O=B[y])!==null&&O!==void 0?O:B.name}})}),a=M(()=>new Set(l.value.treeNodes.map(y=>y.key))),{watchProps:s}=e,c=U(null);s!=null&&s.includes("defaultValue")?Nt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=Be(e,"value"),u=po(d,c),f=U([]),p=()=>{f.value=e.defaultExpandAll?l.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||l.value.getPath(u.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Nt(p):p();const h=Uc(e,["expandedNames","expandedKeys"]),b=po(h,f),v=M(()=>l.value.treeNodes),g=M(()=>l.value.getPath(u.value).keyPath);Re(el,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:u,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:M(()=>e.mode==="horizontal"),invertedRef:Be(e,"inverted"),doSelect:S,toggleExpand:w});function S(y,T){const{"onUpdate:value":$,onUpdateValue:B,onSelect:O}=e;B&&$e(B,y,T),$&&$e($,y,T),O&&$e(O,y,T),c.value=y}function I(y){const{"onUpdate:expandedKeys":T,onUpdateExpandedKeys:$,onExpandedNamesChange:B,onOpenNamesChange:O}=e;T&&$e(T,y),$&&$e($,y),B&&$e(B,y),O&&$e(O,y),f.value=y}function w(y){const T=Array.from(b.value),$=T.findIndex(B=>B===y);if(~$)T.splice($,1);else{if(e.accordion&&a.value.has(y)){const B=T.findIndex(O=>a.value.has(O));B>-1&&T.splice(B,1)}T.push(y)}I(T)}const C=y=>{const T=l.value.getPath(y!=null?y:u.value,{includeSelf:!1}).keyPath;if(!T.length)return;const $=Array.from(b.value),B=new Set([...$,...T]);e.accordion&&a.value.forEach(O=>{B.has(O)&&!T.includes(O)&&B.delete(O)}),I(Array.from(B))},P=M(()=>{const{inverted:y}=e,{common:{cubicBezierEaseInOut:T},self:$}=r.value,{borderRadius:B,borderColorHorizontal:O,fontSize:X,itemHeight:j,dividerColor:G}=$,L={"--n-divider-color":G,"--n-bezier":T,"--n-font-size":X,"--n-border-color-horizontal":O,"--n-border-radius":B,"--n-item-height":j};return y?(L["--n-group-text-color"]=$.groupTextColorInverted,L["--n-color"]=$.colorInverted,L["--n-item-text-color"]=$.itemTextColorInverted,L["--n-item-text-color-hover"]=$.itemTextColorHoverInverted,L["--n-item-text-color-active"]=$.itemTextColorActiveInverted,L["--n-item-text-color-child-active"]=$.itemTextColorChildActiveInverted,L["--n-item-text-color-child-active-hover"]=$.itemTextColorChildActiveInverted,L["--n-item-text-color-active-hover"]=$.itemTextColorActiveHoverInverted,L["--n-item-icon-color"]=$.itemIconColorInverted,L["--n-item-icon-color-hover"]=$.itemIconColorHoverInverted,L["--n-item-icon-color-active"]=$.itemIconColorActiveInverted,L["--n-item-icon-color-active-hover"]=$.itemIconColorActiveHoverInverted,L["--n-item-icon-color-child-active"]=$.itemIconColorChildActiveInverted,L["--n-item-icon-color-child-active-hover"]=$.itemIconColorChildActiveHoverInverted,L["--n-item-icon-color-collapsed"]=$.itemIconColorCollapsedInverted,L["--n-item-text-color-horizontal"]=$.itemTextColorHorizontalInverted,L["--n-item-text-color-hover-horizontal"]=$.itemTextColorHoverHorizontalInverted,L["--n-item-text-color-active-horizontal"]=$.itemTextColorActiveHorizontalInverted,L["--n-item-text-color-child-active-horizontal"]=$.itemTextColorChildActiveHorizontalInverted,L["--n-item-text-color-child-active-hover-horizontal"]=$.itemTextColorChildActiveHoverHorizontalInverted,L["--n-item-text-color-active-hover-horizontal"]=$.itemTextColorActiveHoverHorizontalInverted,L["--n-item-icon-color-horizontal"]=$.itemIconColorHorizontalInverted,L["--n-item-icon-color-hover-horizontal"]=$.itemIconColorHoverHorizontalInverted,L["--n-item-icon-color-active-horizontal"]=$.itemIconColorActiveHorizontalInverted,L["--n-item-icon-color-active-hover-horizontal"]=$.itemIconColorActiveHoverHorizontalInverted,L["--n-item-icon-color-child-active-horizontal"]=$.itemIconColorChildActiveHorizontalInverted,L["--n-item-icon-color-child-active-hover-horizontal"]=$.itemIconColorChildActiveHoverHorizontalInverted,L["--n-arrow-color"]=$.arrowColorInverted,L["--n-arrow-color-hover"]=$.arrowColorHoverInverted,L["--n-arrow-color-active"]=$.arrowColorActiveInverted,L["--n-arrow-color-active-hover"]=$.arrowColorActiveHoverInverted,L["--n-arrow-color-child-active"]=$.arrowColorChildActiveInverted,L["--n-arrow-color-child-active-hover"]=$.arrowColorChildActiveHoverInverted,L["--n-item-color-hover"]=$.itemColorHoverInverted,L["--n-item-color-active"]=$.itemColorActiveInverted,L["--n-item-color-active-hover"]=$.itemColorActiveHoverInverted,L["--n-item-color-active-collapsed"]=$.itemColorActiveCollapsedInverted):(L["--n-group-text-color"]=$.groupTextColor,L["--n-color"]=$.color,L["--n-item-text-color"]=$.itemTextColor,L["--n-item-text-color-hover"]=$.itemTextColorHover,L["--n-item-text-color-active"]=$.itemTextColorActive,L["--n-item-text-color-child-active"]=$.itemTextColorChildActive,L["--n-item-text-color-child-active-hover"]=$.itemTextColorChildActiveHover,L["--n-item-text-color-active-hover"]=$.itemTextColorActiveHover,L["--n-item-icon-color"]=$.itemIconColor,L["--n-item-icon-color-hover"]=$.itemIconColorHover,L["--n-item-icon-color-active"]=$.itemIconColorActive,L["--n-item-icon-color-active-hover"]=$.itemIconColorActiveHover,L["--n-item-icon-color-child-active"]=$.itemIconColorChildActive,L["--n-item-icon-color-child-active-hover"]=$.itemIconColorChildActiveHover,L["--n-item-icon-color-collapsed"]=$.itemIconColorCollapsed,L["--n-item-text-color-horizontal"]=$.itemTextColorHorizontal,L["--n-item-text-color-hover-horizontal"]=$.itemTextColorHoverHorizontal,L["--n-item-text-color-active-horizontal"]=$.itemTextColorActiveHorizontal,L["--n-item-text-color-child-active-horizontal"]=$.itemTextColorChildActiveHorizontal,L["--n-item-text-color-child-active-hover-horizontal"]=$.itemTextColorChildActiveHoverHorizontal,L["--n-item-text-color-active-hover-horizontal"]=$.itemTextColorActiveHoverHorizontal,L["--n-item-icon-color-horizontal"]=$.itemIconColorHorizontal,L["--n-item-icon-color-hover-horizontal"]=$.itemIconColorHoverHorizontal,L["--n-item-icon-color-active-horizontal"]=$.itemIconColorActiveHorizontal,L["--n-item-icon-color-active-hover-horizontal"]=$.itemIconColorActiveHoverHorizontal,L["--n-item-icon-color-child-active-horizontal"]=$.itemIconColorChildActiveHorizontal,L["--n-item-icon-color-child-active-hover-horizontal"]=$.itemIconColorChildActiveHoverHorizontal,L["--n-arrow-color"]=$.arrowColor,L["--n-arrow-color-hover"]=$.arrowColorHover,L["--n-arrow-color-active"]=$.arrowColorActive,L["--n-arrow-color-active-hover"]=$.arrowColorActiveHover,L["--n-arrow-color-child-active"]=$.arrowColorChildActive,L["--n-arrow-color-child-active-hover"]=$.arrowColorChildActiveHover,L["--n-item-color-hover"]=$.itemColorHover,L["--n-item-color-active"]=$.itemColorActive,L["--n-item-color-active-hover"]=$.itemColorActiveHover,L["--n-item-color-active-collapsed"]=$.itemColorActiveCollapsed),L}),x=o?ut("menu",M(()=>e.inverted?"a":"b"),P,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:f,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:u,activePath:g,tmNodes:v,mergedTheme:r,mergedCollapsed:i,cssVars:o?void 0:P,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,showOption:C}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:r}=this;return r==null||r(),m("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(n=>Ad(n,this.$props)))}}),Hv={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Nv="n-message-api",jv="n-message-provider",Lk=E([R("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[kg({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),R("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[k("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),k("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>N(`${e}-type`,[E("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),E("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Qr()])]),k("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[E("&:hover",` + color: var(--n-close-icon-color-hover); + `),E("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),R("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[N("top",` + top: 12px; + left: 0; + right: 0; + `),N("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),N("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),N("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),N("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),N("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),Dk={info:()=>m(Ul,null),success:()=>m(pd,null),warning:()=>m(md,null),error:()=>m(hd,null),default:()=>null},Fk=le({name:"Message",props:Object.assign(Object.assign({},Hv),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Ye(e),{props:r,mergedClsPrefixRef:n}=ge(jv),i=Zo("Message",o,n),l=Pe("Message","-message",Lk,wz,r,n),a=M(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:p,iconMargin:h,closeMargin:b,closeSize:v,iconSize:g,fontSize:S,lineHeight:I,borderRadius:w,iconColorInfo:C,iconColorSuccess:P,iconColorWarning:x,iconColorError:y,iconColorLoading:T,closeIconSize:$,closeBorderRadius:B,[ce("textColor",c)]:O,[ce("boxShadow",c)]:X,[ce("color",c)]:j,[ce("closeColorHover",c)]:G,[ce("closeColorPressed",c)]:L,[ce("closeIconColor",c)]:K,[ce("closeIconColorPressed",c)]:re,[ce("closeIconColorHover",c)]:me}}=l.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":p,"--n-font-size":S,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":$,"--n-close-border-radius":B,"--n-close-size":v,"--n-close-margin":b,"--n-text-color":O,"--n-color":j,"--n-box-shadow":X,"--n-icon-color-info":C,"--n-icon-color-success":P,"--n-icon-color-warning":x,"--n-icon-color-error":y,"--n-icon-color-loading":T,"--n-close-color-hover":G,"--n-close-color-pressed":L,"--n-close-icon-color":K,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":me,"--n-line-height":I,"--n-border-radius":w}}),s=t?ut("message",M(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:l,onRender:a,icon:s,handleClose:c,showIcon:d}=this;a==null||a();let u;return m("div",{class:[`${n}-message-wrapper`,l],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(u=Hk(s,t,n))&&d?m("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},m(Zi,null,{default:()=>u})):null,m("div",{class:`${n}-message__content`},st(r)),o?m(Un,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function Hk(e,t,o){if(typeof e=="function")return e();{const r=t==="loading"?m(ga,{clsPrefix:o,strokeWidth:24,scale:.85}):Dk[t]();return r?m(ko,{clsPrefix:o,key:t},{default:()=>r}):null}}const Nk=le({name:"MessageEnvironment",props:Object.assign(Object.assign({},Hv),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=U(!0);Bt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(l,d))}function n(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function l(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function a(){const{onClose:d}=e;d&&d(),l()}function s(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:p}=e;d&&d(),u&&u(p),f&&f()}function c(){l()}return{show:o,hide:l,handleClose:a,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return m(gd,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(Fk,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),jk=Object.assign(Object.assign({},Pe.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),Wv=le({name:"MessageProvider",props:jk,setup(e){const{mergedClsPrefixRef:t}=Ye(e),o=U([]),r=U({}),n={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:a};Re(jv,{props:e,mergedClsPrefixRef:t}),Re(Nv,n);function i(s,c){const d=ca(),u=io(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var p;(p=r.value[d])===null||p===void 0||p.hide()}})),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function l(s){o.value.splice(o.value.findIndex(c=>c.key===s),1),delete r.value[s]}function a(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:l},n)},render(){var e,t,o;return m(Ze,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(ia,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>m(Nk,Object.assign({ref:n=>{n&&(this.messageRefs[r.key]=n)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Nc(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Wk(){const e=ge(Nv,null);return e===null&&Nn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const wa="n-notification-provider",Vk=le({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=ge(wa),r=U(null);return Nt(()=>{var n,i;o.value>0?(n=r==null?void 0:r.value)===null||n===void 0||n.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return m("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`]},t?m(yr,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Uk={info:()=>m(Ul,null),success:()=>m(pd,null),warning:()=>m(md,null),error:()=>m(hd,null),default:()=>null},Md={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Kk=en(Md),Gk=le({name:"Notification",props:Md,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=ge(wa),{inlineThemeDisabled:n,mergedRtlRef:i}=Ye(),l=Zo("Notification",i,t),a=M(()=>{const{type:c}=e,{self:{color:d,textColor:u,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:b,descriptionTextColor:v,actionTextColor:g,borderRadius:S,headerFontWeight:I,boxShadow:w,lineHeight:C,fontSize:P,closeMargin:x,closeSize:y,width:T,padding:$,closeIconSize:B,closeBorderRadius:O,closeColorHover:X,closeColorPressed:j,titleFontSize:G,metaFontSize:L,descriptionFontSize:K,[ce("iconColor",c)]:re},common:{cubicBezierEaseOut:me,cubicBezierEaseIn:we,cubicBezierEaseInOut:Se}}=o.value,{left:Ee,right:De,top:Xe,bottom:Y}=Bc($);return{"--n-color":d,"--n-font-size":P,"--n-text-color":u,"--n-description-text-color":v,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":I,"--n-bezier":Se,"--n-bezier-ease-out":me,"--n-bezier-ease-in":we,"--n-border-radius":S,"--n-box-shadow":w,"--n-close-border-radius":O,"--n-close-color-hover":X,"--n-close-color-pressed":j,"--n-close-icon-color":f,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":C,"--n-icon-color":re,"--n-close-margin":x,"--n-close-size":y,"--n-close-icon-size":B,"--n-width":T,"--n-padding-left":Ee,"--n-padding-right":De,"--n-padding-top":Xe,"--n-padding-bottom":Y,"--n-title-font-size":G,"--n-meta-font-size":L,"--n-description-font-size":K}}),s=n?ut("notification",M(()=>e.type[0]),a,r):void 0;return{mergedClsPrefix:t,showAvatar:M(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:l,cssVars:n?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},m("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?m("div",{class:`${t}-notification__avatar`},this.avatar?st(this.avatar):this.type!=="default"?m(ko,{clsPrefix:t},{default:()=>Uk[this.type]()}):null):null,this.closable?m(Un,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,m("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?m("div",{class:`${t}-notification-main__header`},st(this.title)):null,this.description?m("div",{class:`${t}-notification-main__description`},st(this.description)):null,this.content?m("pre",{class:`${t}-notification-main__content`},st(this.content)):null,this.meta||this.action?m("div",{class:`${t}-notification-main-footer`},this.meta?m("div",{class:`${t}-notification-main-footer__meta`},st(this.meta)):null,this.action?m("div",{class:`${t}-notification-main-footer__action`},st(this.action)):null):null)))}}),qk=Object.assign(Object.assign({},Md),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Yk=le({name:"NotificationEnvironment",props:Object.assign(Object.assign({},qk),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=ge(wa),o=U(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function i(h){t.value++,zt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function l(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:b,onAfterShow:v}=e;b&&b(),v&&v()}function a(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function s(h){const{onHide:b}=e;b&&b(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:b,onAfterHide:v,internalKey:g}=e;h&&h(),b(g),v&&v()}function d(){const{duration:h}=e;h&&(r=window.setTimeout(n,h))}function u(h){h.currentTarget===h.target&&r!==null&&(window.clearTimeout(r),r=null)}function f(h){h.currentTarget===h.target&&d()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(b=>{b!==!1&&n()}):n()}return Bt(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:a,handleAfterEnter:l,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return m(Ot,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?m(Gk,Object.assign({},So(this.$props,Kk),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Xk=E([R("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[E(">",[R("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[E(">",[R("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[R("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),N("top, top-right, top-left",` + top: 12px; + `,[E("&.transitioning >",[R("scrollbar",[E(">",[R("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),N("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[E(">",[R("scrollbar",[E(">",[R("scrollbar-container",[R("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),R("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),N("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[R("notification-wrapper",[E("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),E("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),N("top",[R("notification-wrapper",` + transform-origin: top center; + `)]),N("bottom",[R("notification-wrapper",` + transform-origin: bottom center; + `)]),N("top-right, bottom-right",[R("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),N("top-left, bottom-left",[R("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),N("top-right",` + right: 0; + `,[Pl("top-right")]),N("top-left",` + left: 0; + `,[Pl("top-left")]),N("bottom-right",` + right: 0; + `,[Pl("bottom-right")]),N("bottom-left",` + left: 0; + `,[Pl("bottom-left")]),N("scrollable",[N("top-right",` + top: 0; + `),N("top-left",` + top: 0; + `),N("bottom-right",` + bottom: 0; + `),N("bottom-left",` + bottom: 0; + `)]),R("notification-wrapper",` + margin-bottom: 12px; + `,[E("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),E("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),E("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),E("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),R("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[k("avatar",[R("icon",{color:"var(--n-icon-color)"}),R("base-icon",{color:"var(--n-icon-color)"})]),N("show-avatar",[R("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),N("closable",[R("notification-main",[E("> *:first-child",{paddingRight:"20px"})]),k("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),k("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[R("icon","transition: color .3s var(--n-bezier);")]),R("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[R("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[k("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),k("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),k("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),k("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),k("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[E("&:first-child",{margin:0})])])])])]);function Pl(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return R("notification-wrapper",[E("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${o}, 0); + `),E("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(${r}, 0); + `)])}const Vv="n-notification-api",Zk=Object.assign(Object.assign({},Pe.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Uv=le({name:"NotificationProvider",props:Zk,setup(e){const{mergedClsPrefixRef:t}=Ye(e),o=U([]),r={},n=new Set;function i(p){const h=ca(),b=()=>{n.add(h),r[h]&&r[h].hide()},v=io(Object.assign(Object.assign({},p),{key:h,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&o.value.length-n.size>=g){let S=!1,I=0;for(const w of o.value){if(!n.has(w.key)){r[w.key]&&(w.destroy(),S=!0);break}I++}S||o.value.splice(I,1)}return o.value.push(v),v}const l=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function a(p){n.delete(p),o.value.splice(o.value.findIndex(h=>h.key===p),1)}const s=Pe("Notification","-notification",Xk,vz,e,t),c={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},d=U(0);Re(Vv,c),Re(wa,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function u(p){return i(p)}function f(){Object.values(o.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},c)},render(){var e,t,o;const{placement:r}=this;return m(Ze,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?m(ia,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m(Vk,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(n=>m(Yk,Object.assign({ref:i=>{const l=n.key;i===null?delete this.notificationRefs[l]:this.notificationRefs[l]=i}},Nc(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function Jk(){const e=ge(Vv,null);return e===null&&Nn("use-notification","No outer `n-notification-provider` found."),e}const Qk=Object.assign(Object.assign({},Pe.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),eE=le({name:"Scrollbar",props:Qk,setup(){const e=U(null);return Object.assign(Object.assign({},{scrollTo:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(o[0],o[1])}}),{scrollbarInstRef:e})},render(){return m(yr,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),tE=eE,oE={name:"Skeleton",common:de,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},rE=R("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[k("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),k("rail-placeholder",` + display: flex; + flex-wrap: none; + `),k("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),R("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[Qr({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),k("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),k("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),k("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),E("&:focus",[k("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),N("round",[k("rail","border-radius: calc(var(--n-rail-height) / 2);",[k("button","border-radius: calc(var(--n-button-height) / 2);")])]),Je("disabled",[Je("icon",[N("rubber-band",[N("pressed",[k("rail",[k("button","max-width: var(--n-button-width-pressed);")])]),k("rail",[E("&:active",[k("button","max-width: var(--n-button-width-pressed);")])]),N("active",[N("pressed",[k("rail",[k("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),k("rail",[E("&:active",[k("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),N("active",[k("rail",[k("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),k("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[k("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[Qr()]),k("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),N("active",[k("rail","background-color: var(--n-rail-color-active);")]),N("loading",[k("rail",` + cursor: wait; + `)]),N("disabled",[k("rail",` + cursor: not-allowed; + opacity: .5; + `)])]),nE=Object.assign(Object.assign({},Pe.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let ri;const qf=le({name:"Switch",props:nE,setup(e){ri===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ri=CSS.supports("width","max(1px)"):ri=!1:ri=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ye(e),r=Pe("Switch","-switch",rE,TT,e,t),n=fa(e),{mergedSizeRef:i,mergedDisabledRef:l}=n,a=U(e.defaultValue),s=Be(e,"value"),c=po(s,a),d=M(()=>c.value===e.checkedValue),u=U(!1),f=U(!1),p=M(()=>{const{railStyle:y}=e;if(!!y)return y({focused:f.value,checked:d.value})});function h(y){const{"onUpdate:value":T,onChange:$,onUpdateValue:B}=e,{nTriggerFormInput:O,nTriggerFormChange:X}=n;T&&$e(T,y),B&&$e(B,y),$&&$e($,y),a.value=y,O(),X()}function b(){const{nTriggerFormFocus:y}=n;y()}function v(){const{nTriggerFormBlur:y}=n;y()}function g(){e.loading||l.value||(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function S(){f.value=!0,b()}function I(){f.value=!1,v(),u.value=!1}function w(y){e.loading||l.value||y.key===" "&&(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),u.value=!1)}function C(y){e.loading||l.value||y.key===" "&&(y.preventDefault(),u.value=!0)}const P=M(()=>{const{value:y}=i,{self:{opacityDisabled:T,railColor:$,railColorActive:B,buttonBoxShadow:O,buttonColor:X,boxShadowFocus:j,loadingColor:G,textColor:L,iconColor:K,[ce("buttonHeight",y)]:re,[ce("buttonWidth",y)]:me,[ce("buttonWidthPressed",y)]:we,[ce("railHeight",y)]:Se,[ce("railWidth",y)]:Ee,[ce("railBorderRadius",y)]:De,[ce("buttonBorderRadius",y)]:Xe},common:{cubicBezierEaseInOut:Y}}=r.value;let Q,Z,ue;return ri?(Q=`calc((${Se} - ${re}) / 2)`,Z=`max(${Se}, ${re})`,ue=`max(${Ee}, calc(${Ee} + ${re} - ${Se}))`):(Q=La((co(Se)-co(re))/2),Z=La(Math.max(co(Se),co(re))),ue=co(Se)>co(re)?Ee:La(co(Ee)+co(re)-co(Se))),{"--n-bezier":Y,"--n-button-border-radius":Xe,"--n-button-box-shadow":O,"--n-button-color":X,"--n-button-width":me,"--n-button-width-pressed":we,"--n-button-height":re,"--n-height":Z,"--n-offset":Q,"--n-opacity-disabled":T,"--n-rail-border-radius":De,"--n-rail-color":$,"--n-rail-color-active":B,"--n-rail-height":Se,"--n-rail-width":Ee,"--n-width":ue,"--n-box-shadow-focus":j,"--n-loading-color":G,"--n-text-color":L,"--n-icon-color":K}}),x=o?ut("switch",M(()=>i.value[0]),P,e):void 0;return{handleClick:g,handleBlur:I,handleFocus:S,handleKeyup:w,handleKeydown:C,mergedRailStyle:p,pressed:u,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:l,cssVars:o?void 0:P,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:r,onRender:n,$slots:i}=this;n==null||n();const{checked:l,unchecked:a,icon:s,"checked-icon":c,"unchecked-icon":d}=i,u=!(Tn(s)&&Tn(c)&&Tn(d));return m("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,u&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},m("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},ot(l,f=>ot(a,p=>f||p?m("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),f),m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),p)):null)),m("div",{class:`${e}-switch__button`},ot(s,f=>ot(c,p=>ot(d,h=>m(Zi,null,{default:()=>this.loading?m(ga,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||f)?m("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||f):!this.checked&&(h||f)?m("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||f):null})))),ot(l,f=>f&&m("div",{key:"checked",class:`${e}-switch__checked`},f)),ot(a,f=>f&&m("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),iE=le({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),lE={message:Wk,notification:Jk,loadingBar:_k,dialog:vP};function aE({providersAndProps:e,configProviderProps:t}){let r=Mc(()=>m(Wg,Fo(t),{default:()=>e.map(({type:a,Provider:s,props:c})=>m(s,Fo(c),{default:()=>m(iE,{onSetup:()=>n[a]=lE[a]()})}))}));const n={app:r};let i;return tn&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var a;if(r===null||i===null){gr("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,r=null}},n)}function sE(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:i}={}){const l=[];return e.forEach(s=>{switch(s){case"message":l.push({type:s,Provider:Wv,props:o});break;case"notification":l.push({type:s,Provider:Uv,props:n});break;case"dialog":l.push({type:s,Provider:mv,props:r});break;case"loadingBar":l.push({type:s,Provider:Av,props:i});break}}),aE({providersAndProps:l,configProviderProps:t})}const cE=()=>({}),dE={name:"Equation",common:de,self:cE},uE=dE,fE={name:"dark",common:de,Alert:e$,Anchor:l$,AutoComplete:w$,Avatar:Mg,AvatarGroup:z$,BackTop:E$,Badge:R$,Breadcrumb:B$,Button:Wt,ButtonGroup:Pz,Calendar:G$,Card:Ng,Carousel:O8,Cascader:F8,Checkbox:Kn,Code:jg,Collapse:W8,CollapseTransition:K8,ColorPicker:Z$,DataTable:p_,DatePicker:N_,Descriptions:K_,Dialog:cv,Divider:yP,Drawer:zP,Dropdown:_d,DynamicInput:qP,DynamicTags:oz,Element:nz,Empty:sn,Ellipsis:qg,Equation:uE,Form:sz,GradientText:uz,Icon:w_,IconWrapper:pz,Image:ak,Input:so,InputNumber:Tz,LegacyTransfer:yk,Layout:Ez,List:Mz,LoadingBar:Lz,Log:jz,Menu:Yz,Mention:Vz,Message:$z,Modal:sP,Notification:xz,PageHeader:Jz,Pagination:Kg,Popconfirm:oT,Popover:cn,Popselect:Vg,Progress:$v,Radio:Yg,Rate:lT,Result:dT,Row:lk,Scrollbar:jt,Select:Ug,Skeleton:oE,Slider:hT,Space:xv,Spin:gT,Statistic:xT,Steps:ST,Switch:_T,Table:RT,Tabs:BT,Tag:Tg,Thing:FT,TimePicker:nv,Timeline:jT,Tooltip:xa,Transfer:UT,Tree:Tv,TreeSelect:YT,Typography:QT,Upload:ok,Watermark:nk};var hE=!1;/*! + * pinia v2.0.17 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */let Kv;const Sa=e=>Kv=e,Gv=Symbol();function Xs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var xi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(xi||(xi={}));function pE(){const e=xc(!0),t=e.run(()=>U({}));let o=[],r=[];const n=hr({install(i){Sa(n),n._a=i,i.provide(Gv,n),i.config.globalProperties.$pinia=n,r.forEach(l=>o.push(l)),r=[]},use(i){return!this._a&&!hE?r.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return n}const qv=()=>{};function Yf(e,t,o,r=qv){e.push(t);const n=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!o&&lo()&&Ui(n),n}function vn(e,...t){e.slice().forEach(o=>{o(...t)})}function Zs(e,t){for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],n=e[o];Xs(n)&&Xs(r)&&e.hasOwnProperty(o)&&!ct(r)&&!Do(r)?e[o]=Zs(n,r):e[o]=r}return e}const mE=Symbol();function gE(e){return!Xs(e)||!e.hasOwnProperty(mE)}const{assign:Bo}=Object;function vE(e){return!!(ct(e)&&e.effect)}function bE(e,t,o,r){const{state:n,actions:i,getters:l}=t,a=o.state.value[e];let s;function c(){a||(o.state.value[e]=n?n():{});const d=zc(o.state.value[e]);return Bo(d,i,Object.keys(l||{}).reduce((u,f)=>(u[f]=hr(M(()=>{Sa(o);const p=o._s.get(e);return l[f].call(p,p)})),u),{}))}return s=Yv(e,c,t,o,r,!0),s.$reset=function(){const u=n?n():{};this.$patch(f=>{Bo(f,u)})},s}function Yv(e,t,o={},r,n,i){let l;const a=Bo({actions:{}},o),s={deep:!0};let c,d,u=hr([]),f=hr([]),p;const h=r.state.value[e];!i&&!h&&(r.state.value[e]={}),U({});let b;function v(x){let y;c=d=!1,typeof x=="function"?(x(r.state.value[e]),y={type:xi.patchFunction,storeId:e,events:p}):(Zs(r.state.value[e],x),y={type:xi.patchObject,payload:x,storeId:e,events:p});const T=b=Symbol();zt().then(()=>{b===T&&(c=!0)}),d=!0,vn(u,y,r.state.value[e])}const g=qv;function S(){l.stop(),u=[],f=[],r._s.delete(e)}function I(x,y){return function(){Sa(r);const T=Array.from(arguments),$=[],B=[];function O(G){$.push(G)}function X(G){B.push(G)}vn(f,{args:T,name:x,store:C,after:O,onError:X});let j;try{j=y.apply(this&&this.$id===e?this:C,T)}catch(G){throw vn(B,G),G}return j instanceof Promise?j.then(G=>(vn($,G),G)).catch(G=>(vn(B,G),Promise.reject(G))):(vn($,j),j)}}const w={_p:r,$id:e,$onAction:Yf.bind(null,f),$patch:v,$reset:g,$subscribe(x,y={}){const T=Yf(u,x,y.detached,()=>$()),$=l.run(()=>Ke(()=>r.state.value[e],B=>{(y.flush==="sync"?d:c)&&x({storeId:e,type:xi.direct,events:p},B)},Bo({},s,y)));return T},$dispose:S},C=io(Bo({},w));r._s.set(e,C);const P=r._e.run(()=>(l=xc(),l.run(()=>t())));for(const x in P){const y=P[x];if(ct(y)&&!vE(y)||Do(y))i||(h&&gE(y)&&(ct(y)?y.value=h[x]:Zs(y,h[x])),r.state.value[e][x]=y);else if(typeof y=="function"){const T=I(x,y);P[x]=T,a.actions[x]=y}}return Bo(C,P),Bo(Ne(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:x=>{v(y=>{Bo(y,x)})}}),r._p.forEach(x=>{Bo(C,l.run(()=>x({store:C,app:r._a,pinia:r,options:a})))}),h&&i&&o.hydrate&&o.hydrate(C.$state,h),c=!0,d=!0,C}function Xv(e,t,o){let r,n;const i=typeof t=="function";typeof e=="string"?(r=e,n=i?o:t):(n=e,r=e.id);function l(a,s){const c=lo();return a=a||c&&ge(Gv),a&&Sa(a),a=Kv,a._s.has(r)||(i?Yv(r,t,n,a):bE(r,n,a)),a._s.get(r)}return l.$id=r,l}function Zv(e){{e=Ne(e);const t={};for(const o in e){const r=e[o];(ct(r)||Do(r))&&(t[o]=Be(e,o))}return t}}var xE=Object.defineProperty,Xf=Object.getOwnPropertySymbols,CE=Object.prototype.hasOwnProperty,yE=Object.prototype.propertyIsEnumerable,Zf=(e,t,o)=>t in e?xE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Jf=(e,t)=>{for(var o in t||(t={}))CE.call(t,o)&&Zf(e,o,t[o]);if(Xf)for(var o of Xf(t))yE.call(t,o)&&Zf(e,o,t[o]);return e};function wE(e){return typeof e=="object"&&e!==null}function SE(e){return e}function Qf(e,t){return e=wE(e)?e:Object.create(null),new Proxy(e,{get(o,r,n){var i;return r==="key"?((i=t.key)!=null?i:SE)(Reflect.get(o,r,n)):Reflect.get(o,r,n)||Reflect.get(t,r,n)}})}function eh(e){return e!==null&&typeof e=="object"}function Js(e,t){const o=Array.isArray(e)&&Array.isArray(t),r=eh(e)&&eh(t);if(!o&&!r)throw new Error("Can only merge object with object or array with array");const n=o?[]:{};return[...Object.keys(e),...Object.keys(t)].forEach(l=>{Array.isArray(e[l])&&Array.isArray(t[l])?n[l]=[...Object.values(Js(e[l],t[l]))]:t[l]!==null&&typeof t[l]=="object"&&typeof e[l]=="object"?n[l]=Js(e[l],t[l]):e[l]!==void 0&&t[l]===void 0?n[l]=e[l]:e[l]===void 0&&t[l]!==void 0&&(n[l]=t[l])}),n}function th(e,t){return t.reduce((o,r)=>r==="[]"&&Array.isArray(o)?o:o==null?void 0:o[r],e)}function oh(e,t,o){const r=t.slice(0,-1).reduce((n,i)=>/^(__proto__)$/.test(i)?{}:n[i]=n[i]||{},e);if(Array.isArray(r[t[t.length-1]])&&Array.isArray(o)){const n=r[t[t.length-1]].map((i,l)=>Array.isArray(i)&&typeof i!="object"?[...i,...o[l]]:typeof i=="object"&&i!==null&&Object.keys(i).some(a=>Array.isArray(i[a]))?Js(i,o[l]):Jf(Jf({},i),o[l]));r[t[t.length-1]]=n}else t[t.length-1]===void 0&&Array.isArray(r)&&Array.isArray(o)?r.push(...o):r[t[t.length-1]]=o;return e}function Jv(e,t){return t.reduce((o,r)=>{const n=r.split(".");if(!n.includes("[]"))return oh(o,n,th(e,n));const i=n.indexOf("[]"),l=n.slice(0,i),a=n.slice(0,i+1),s=n.slice(i+1),c=th(e,a),d=[];for(const u of c)s.length!==0&&(Array.isArray(u)||typeof u=="object")?d.push(Jv(u,[s.join(".")])):d.push(u);return oh(o,l,d)},Array.isArray(e)?[]:{})}function rh(e,t,o,r,n){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(o==null?void 0:o.deserialize(i))}catch(i){n&&console.error(i)}}function $E(e={}){return t=>{const{options:{persist:o},store:r}=t;if(!o)return;const n=(Array.isArray(o)?o.map(i=>Qf(i,e)):[Qf(o,e)]).map(({storage:i=localStorage,beforeRestore:l=null,afterRestore:a=null,serializer:s={serialize:JSON.stringify,deserialize:JSON.parse},key:c=r.$id,paths:d=null,debug:u=!1})=>({storage:i,beforeRestore:l,afterRestore:a,serializer:s,key:c,paths:d,debug:u}));n.forEach(i=>{const{storage:l,serializer:a,key:s,paths:c,beforeRestore:d,afterRestore:u,debug:f}=i;d==null||d(t),rh(r,l,a,s,f),u==null||u(t),r.$subscribe((p,h)=>{try{const b=Array.isArray(c)?Jv(h,c):h;l.setItem(s,a.serialize(b))}catch(b){f&&console.error(b)}},{detached:!0})}),r.$hydrate=({runHooks:i=!0}={})=>{n.forEach(l=>{const{beforeRestore:a,afterRestore:s,storage:c,serializer:d,key:u,debug:f}=l;i&&(a==null||a(t)),rh(r,c,d,u,f),i&&(s==null||s(t))})}}}var _E=$E();/*! + * shared v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const Qs=typeof window<"u",PE=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",wr=e=>PE?Symbol(e):e,zE=(e,t,o)=>TE({l:e,k:t,s:o}),TE=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yt=e=>typeof e=="number"&&isFinite(e),kE=e=>Dd(e)==="[object Date]",Gl=e=>Dd(e)==="[object RegExp]",$a=e=>Ve(e)&&Object.keys(e).length===0;function EE(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Mt=Object.assign;let nh;const Bd=()=>nh||(nh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ih(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const IE=Object.prototype.hasOwnProperty;function Ld(e,t){return IE.call(e,t)}const vt=Array.isArray,Pt=e=>typeof e=="function",be=e=>typeof e=="string",mt=e=>typeof e=="boolean",rt=e=>e!==null&&typeof e=="object",Qv=Object.prototype.toString,Dd=e=>Qv.call(e),Ve=e=>Dd(e)==="[object Object]",RE=e=>e==null?"":vt(e)||Ve(e)&&e.toString===Qv?JSON.stringify(e,null,2):String(e);/*! + * message-compiler v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const eb={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function tb(e,t,o={}){const{domain:r,messages:n,args:i}=o,l=e,a=new SyntaxError(String(l));return a.code=e,t&&(a.location=t),a.domain=r,a}/*! + * devtools-if v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const ob={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! + * core-base v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const Sr=[];Sr[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Sr[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Sr[2]={w:[2],i:[3,0],[0]:[3,0]};Sr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Sr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Sr[5]={["'"]:[4,0],o:8,l:[5,0]};Sr[6]={['"']:[4,0],o:8,l:[6,0]};const OE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function AE(e){return OE.test(e)}function ME(e){const t=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return t===o&&(t===34||t===39)?e.slice(1,-1):e}function BE(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function LE(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:AE(t)?ME(t):"*"+t}function DE(e){const t=[];let o=-1,r=0,n=0,i,l,a,s,c,d,u;const f=[];f[0]=()=>{l===void 0?l=a:l+=a},f[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},f[2]=()=>{f[0](),n++},f[3]=()=>{if(n>0)n--,r=4,f[0]();else{if(n=0,l===void 0||(l=LE(l),l===!1))return!1;f[1]()}};function p(){const h=e[o+1];if(r===5&&h==="'"||r===6&&h==='"')return o++,a="\\"+h,f[0](),!0}for(;r!==null;)if(o++,i=e[o],!(i==="\\"&&p())){if(s=BE(i),u=Sr[r],c=u[s]||u.l||8,c===8||(r=c[0],c[1]!==void 0&&(d=f[c[1]],d&&(a=i,d()===!1))))return;if(r===7)return t}}const lh=new Map;function FE(e,t){return rt(e)?e[t]:null}function HE(e,t){if(!rt(e))return null;let o=lh.get(t);if(o||(o=DE(t),o&&lh.set(t,o)),!o)return null;const r=o.length;let n=e,i=0;for(;ie,jE=e=>"",WE="text",VE=e=>e.length===0?"":e.join(""),UE=RE;function ah(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function KE(e){const t=yt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(yt(e.named.count)||yt(e.named.n))?yt(e.named.count)?e.named.count:yt(e.named.n)?e.named.n:t:t}function GE(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qE(e={}){const t=e.locale,o=KE(e),r=rt(e.pluralRules)&&be(t)&&Pt(e.pluralRules[t])?e.pluralRules[t]:ah,n=rt(e.pluralRules)&&be(t)&&Pt(e.pluralRules[t])?ah:void 0,i=g=>g[r(o,g.length,n)],l=e.list||[],a=g=>l[g],s=e.named||{};yt(e.pluralIndex)&&GE(o,s);const c=g=>s[g];function d(g){const S=Pt(e.messages)?e.messages(g):rt(e.messages)?e.messages[g]:!1;return S||(e.parent?e.parent.message(g):jE)}const u=g=>e.modifiers?e.modifiers[g]:NE,f=Ve(e.processor)&&Pt(e.processor.normalize)?e.processor.normalize:VE,p=Ve(e.processor)&&Pt(e.processor.interpolate)?e.processor.interpolate:UE,h=Ve(e.processor)&&be(e.processor.type)?e.processor.type:WE,v={list:a,named:c,plural:i,linked:(g,...S)=>{const[I,w]=S;let C="text",P="";S.length===1?rt(I)?(P=I.modifier||P,C=I.type||C):be(I)&&(P=I||P):S.length===2&&(be(I)&&(P=I||P),be(w)&&(C=w||C));let x=d(g)(v);return C==="vnode"&&vt(x)&&P&&(x=x[0]),P?u(P)(x,C):x},message:d,type:h,interpolate:p,normalize:f};return v}let ji=null;function YE(e){ji=e}function XE(e,t,o){ji&&ji.emit(ob.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:o})}const ZE=JE(ob.FunctionTranslate);function JE(e){return t=>ji&&ji.emit(e,t)}const QE={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function eI(e,t,o){return[...new Set([o,...vt(t)?t:rt(t)?Object.keys(t):be(t)?[t]:[o]])]}function rb(e,t,o){const r=be(o)?o:Fd,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let i=n.__localeChainCache.get(r);if(!i){i=[];let l=[o];for(;vt(l);)l=sh(i,l,t);const a=vt(t)||!Ve(t)?t:t.default?t.default:null;l=be(a)?[a]:a,vt(l)&&sh(i,l,!1),n.__localeChainCache.set(r,i)}return i}function sh(e,t,o){let r=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function nI(){return{upper:(e,t)=>t==="text"&&be(e)?e.toUpperCase():t==="vnode"&&rt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&be(e)?e.toLowerCase():t==="vnode"&&rt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&be(e)?dh(e):t==="vnode"&&rt(e)&&"__v_isVNode"in e?dh(e.children):e}}let iI,nb;function lI(e){nb=e}let ib;function aI(e){ib=e}let lb=null;const uh=e=>{lb=e},sI=()=>lb;let ab=null;const fh=e=>{ab=e},cI=()=>ab;let hh=0;function dI(e={}){const t=be(e.version)?e.version:rI,o=be(e.locale)?e.locale:Fd,r=vt(e.fallbackLocale)||Ve(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,n=Ve(e.messages)?e.messages:{[o]:{}},i=Ve(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Ve(e.numberFormats)?e.numberFormats:{[o]:{}},a=Mt({},e.modifiers||{},nI()),s=e.pluralRules||{},c=Pt(e.missing)?e.missing:null,d=mt(e.missingWarn)||Gl(e.missingWarn)?e.missingWarn:!0,u=mt(e.fallbackWarn)||Gl(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,p=!!e.unresolving,h=Pt(e.postTranslation)?e.postTranslation:null,b=Ve(e.processor)?e.processor:null,v=mt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,S=Pt(e.messageCompiler)?e.messageCompiler:iI,I=Pt(e.messageResolver)?e.messageResolver:nb||FE,w=Pt(e.localeFallbacker)?e.localeFallbacker:ib||eI,C=rt(e.fallbackContext)?e.fallbackContext:void 0,P=Pt(e.onWarn)?e.onWarn:EE,x=e,y=rt(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,T=rt(x.__numberFormatters)?x.__numberFormatters:new Map,$=rt(x.__meta)?x.__meta:{};hh++;const B={version:t,cid:hh,locale:o,fallbackLocale:r,messages:n,modifiers:a,pluralRules:s,missing:c,missingWarn:d,fallbackWarn:u,fallbackFormat:f,unresolving:p,postTranslation:h,processor:b,warnHtmlMessage:v,escapeParameter:g,messageCompiler:S,messageResolver:I,localeFallbacker:w,fallbackContext:C,onWarn:P,__meta:$};return B.datetimeFormats=i,B.numberFormats=l,B.__datetimeFormatters=y,B.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&XE(B,t,$),B}function Hd(e,t,o,r,n){const{missing:i,onWarn:l}=e;if(i!==null){const a=i(e,o,t,n);return be(a)?a:t}else return t}function ni(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}let sb=eb.__EXTEND_POINT__;const os=()=>++sb,$n={INVALID_ARGUMENT:sb,INVALID_DATE_ARGUMENT:os(),INVALID_ISO_DATE_ARGUMENT:os(),__EXTEND_POINT__:os()};function _n(e){return tb(e,null,void 0)}const ph=()=>"",yo=e=>Pt(e);function mh(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:n,messageCompiler:i,fallbackLocale:l,messages:a}=e,[s,c]=ec(...t),d=mt(c.missingWarn)?c.missingWarn:e.missingWarn,u=mt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=mt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=be(c.default)||mt(c.default)?mt(c.default)?i?s:()=>s:c.default:o?i?s:()=>s:"",b=o||h!=="",v=be(c.locale)?c.locale:e.locale;f&&uI(c);let[g,S,I]=p?[s,v,a[v]||{}]:cb(e,s,v,l,u,d),w=g,C=s;if(!p&&!(be(w)||yo(w))&&b&&(w=h,C=w),!p&&(!(be(w)||yo(w))||!be(S)))return n?_a:s;let P=!1;const x=()=>{P=!0},y=yo(w)?w:db(e,s,S,w,C,x);if(P)return w;const T=pI(e,S,I,c),$=qE(T),B=fI(e,y,$),O=r?r(B,s):B;if(__INTLIFY_PROD_DEVTOOLS__){const X={timestamp:Date.now(),key:be(s)?s:yo(w)?w.key:"",locale:S||(yo(w)?w.locale:""),format:be(w)?w:yo(w)?w.source:"",message:O};X.meta=Mt({},e.__meta,sI()||{}),ZE(X)}return O}function uI(e){vt(e.list)?e.list=e.list.map(t=>be(t)?ih(t):t):rt(e.named)&&Object.keys(e.named).forEach(t=>{be(e.named[t])&&(e.named[t]=ih(e.named[t]))})}function cb(e,t,o,r,n,i){const{messages:l,onWarn:a,messageResolver:s,localeFallbacker:c}=e,d=c(e,r,o);let u={},f,p=null;const h="translate";for(let b=0;br;return c.locale=o,c.key=t,c}const s=l(r,hI(e,o,n,r,a,i));return s.locale=o,s.key=t,s.source=r,s}function fI(e,t,o){return t(o)}function ec(...e){const[t,o,r]=e,n={};if(!be(t)&&!yt(t)&&!yo(t))throw _n($n.INVALID_ARGUMENT);const i=yt(t)?String(t):(yo(t),t);return yt(o)?n.plural=o:be(o)?n.default=o:Ve(o)&&!$a(o)?n.named=o:vt(o)&&(n.list=o),yt(r)?n.plural=r:be(r)?n.default=r:Ve(r)&&Mt(n,r),[i,n]}function hI(e,t,o,r,n,i){return{warnHtmlMessage:n,onError:l=>{throw i&&i(l),l},onCacheKey:l=>zE(t,o,l)}}function pI(e,t,o,r){const{modifiers:n,pluralRules:i,messageResolver:l,fallbackLocale:a,fallbackWarn:s,missingWarn:c,fallbackContext:d}=e,f={locale:t,modifiers:n,pluralRules:i,messages:p=>{let h=l(o,p);if(h==null&&d){const[,,b]=cb(d,p,t,a,s,c);h=l(b,p)}if(be(h)){let b=!1;const g=db(e,p,t,h,p,()=>{b=!0});return b?ph:g}else return yo(h)?h:ph}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),yt(r.plural)&&(f.pluralIndex=r.plural),f}function gh(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:a}=e,[s,c,d,u]=tc(...t),f=mt(d.missingWarn)?d.missingWarn:e.missingWarn;mt(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=be(d.locale)?d.locale:e.locale,b=l(e,n,h);if(!be(s)||s==="")return new Intl.DateTimeFormat(h,u).format(c);let v={},g,S=null;const I="datetime format";for(let P=0;P{ub.includes(s)?l[s]=o[s]:i[s]=o[s]}),be(r)?i.locale=r:Ve(r)&&(l=r),Ve(n)&&(l=n),[i.key||"",a,i,l]}function vh(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function bh(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:a}=e,[s,c,d,u]=oc(...t),f=mt(d.missingWarn)?d.missingWarn:e.missingWarn;mt(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=be(d.locale)?d.locale:e.locale,b=l(e,n,h);if(!be(s)||s==="")return new Intl.NumberFormat(h,u).format(c);let v={},g,S=null;const I="number format";for(let P=0;P{fb.includes(s)?l[s]=o[s]:i[s]=o[s]}),be(r)?i.locale=r:Ve(r)&&(l=r),Ve(n)&&(l=n),[i.key||"",a,i,l]}function xh(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bd().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + * vue-i18n v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const mI="9.2.2";function gI(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bd().__INTLIFY_PROD_DEVTOOLS__=!1)}QE.__EXTEND_POINT__;let hb=eb.__EXTEND_POINT__;const Ft=()=>++hb,Zt={UNEXPECTED_RETURN_TYPE:hb,INVALID_ARGUMENT:Ft(),MUST_BE_CALL_SETUP_TOP:Ft(),NOT_INSLALLED:Ft(),NOT_AVAILABLE_IN_LEGACY_MODE:Ft(),REQUIRED_VALUE:Ft(),INVALID_VALUE:Ft(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ft(),NOT_INSLALLED_WITH_PROVIDE:Ft(),UNEXPECTED_ERROR:Ft(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ft(),BRIDGE_SUPPORT_VUE_2_ONLY:Ft(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ft(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ft(),__EXTEND_POINT__:Ft()};function no(e,...t){return tb(e,null,void 0)}const rc=wr("__transrateVNode"),nc=wr("__datetimeParts"),ic=wr("__numberParts"),vI=wr("__setPluralRules");wr("__intlifyMeta");const bI=wr("__injectWithOption");function lc(e){if(!rt(e))return e;for(const t in e)if(!!Ld(e,t))if(!t.includes("."))rt(e[t])&&lc(e[t]);else{const o=t.split("."),r=o.length-1;let n=e;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:s,resource:c}=a;s?(l[s]=l[s]||{},Ci(c,l[s])):Ci(c,l)}else be(a)&&Ci(JSON.parse(a),l)}),n==null&&i)for(const a in l)Ld(l,a)&&lc(l[a]);return l}const zl=e=>!rt(e)||vt(e);function Ci(e,t){if(zl(e)||zl(t))throw no(Zt.INVALID_VALUE);for(const o in e)Ld(e,o)&&(zl(e[o])||zl(t[o])?t[o]=e[o]:Ci(e[o],t[o]))}function mb(e){return e.type}function xI(e,t,o){let r=rt(t.messages)?t.messages:{};"__i18nGlobal"in o&&(r=pb(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const n=Object.keys(r);n.length&&n.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(rt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(rt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Ch(e){return ve(la,null,e,0)}const yh="__INTLIFY_META__";let wh=0;function Sh(e){return(t,o,r,n)=>e(o,r,lo()||void 0,n)}const CI=()=>{const e=lo();let t=null;return e&&(t=mb(e)[yh])?{[yh]:t}:null};function gb(e={},t){const{__root:o}=e,r=o===void 0;let n=mt(e.inheritLocale)?e.inheritLocale:!0;const i=U(o&&n?o.locale.value:be(e.locale)?e.locale:Fd),l=U(o&&n?o.fallbackLocale.value:be(e.fallbackLocale)||vt(e.fallbackLocale)||Ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),a=U(pb(i.value,e)),s=U(Ve(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),c=U(Ve(e.numberFormats)?e.numberFormats:{[i.value]:{}});let d=o?o.missingWarn:mt(e.missingWarn)||Gl(e.missingWarn)?e.missingWarn:!0,u=o?o.fallbackWarn:mt(e.fallbackWarn)||Gl(e.fallbackWarn)?e.fallbackWarn:!0,f=o?o.fallbackRoot:mt(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,h=Pt(e.missing)?e.missing:null,b=Pt(e.missing)?Sh(e.missing):null,v=Pt(e.postTranslation)?e.postTranslation:null,g=o?o.warnHtmlMessage:mt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const I=o?o.modifiers:Ve(e.modifiers)?e.modifiers:{};let w=e.pluralRules||o&&o.pluralRules,C;C=(()=>{r&&fh(null);const z={version:mI,locale:i.value,fallbackLocale:l.value,messages:a.value,modifiers:I,pluralRules:w,missing:b===null?void 0:b,missingWarn:d,fallbackWarn:u,fallbackFormat:p,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:g,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};z.datetimeFormats=s.value,z.numberFormats=c.value,z.__datetimeFormatters=Ve(C)?C.__datetimeFormatters:void 0,z.__numberFormatters=Ve(C)?C.__numberFormatters:void 0;const H=dI(z);return r&&fh(H),H})(),ni(C,i.value,l.value);function x(){return[i.value,l.value,a.value,s.value,c.value]}const y=M({get:()=>i.value,set:z=>{i.value=z,C.locale=i.value}}),T=M({get:()=>l.value,set:z=>{l.value=z,C.fallbackLocale=l.value,ni(C,i.value,z)}}),$=M(()=>a.value),B=M(()=>s.value),O=M(()=>c.value);function X(){return Pt(v)?v:null}function j(z){v=z,C.postTranslation=z}function G(){return h}function L(z){z!==null&&(b=Sh(z)),h=z,C.missing=b}const K=(z,H,ie,se,xe,Ie)=>{x();let Me;if(__INTLIFY_PROD_DEVTOOLS__)try{uh(CI()),r||(C.fallbackContext=o?cI():void 0),Me=z(C)}finally{uh(null),r||(C.fallbackContext=void 0)}else Me=z(C);if(yt(Me)&&Me===_a){const[je,Ue]=H();return o&&f?se(o):xe(je)}else{if(Ie(Me))return Me;throw no(Zt.UNEXPECTED_RETURN_TYPE)}};function re(...z){return K(H=>Reflect.apply(mh,null,[H,...z]),()=>ec(...z),"translate",H=>Reflect.apply(H.t,H,[...z]),H=>H,H=>be(H))}function me(...z){const[H,ie,se]=z;if(se&&!rt(se))throw no(Zt.INVALID_ARGUMENT);return re(H,ie,Mt({resolvedMessage:!0},se||{}))}function we(...z){return K(H=>Reflect.apply(gh,null,[H,...z]),()=>tc(...z),"datetime format",H=>Reflect.apply(H.d,H,[...z]),()=>ch,H=>be(H))}function Se(...z){return K(H=>Reflect.apply(bh,null,[H,...z]),()=>oc(...z),"number format",H=>Reflect.apply(H.n,H,[...z]),()=>ch,H=>be(H))}function Ee(z){return z.map(H=>be(H)||yt(H)||mt(H)?Ch(String(H)):H)}const Xe={normalize:Ee,interpolate:z=>z,type:"vnode"};function Y(...z){return K(H=>{let ie;const se=H;try{se.processor=Xe,ie=Reflect.apply(mh,null,[se,...z])}finally{se.processor=null}return ie},()=>ec(...z),"translate",H=>H[rc](...z),H=>[Ch(H)],H=>vt(H))}function Q(...z){return K(H=>Reflect.apply(bh,null,[H,...z]),()=>oc(...z),"number format",H=>H[ic](...z),()=>[],H=>be(H)||vt(H))}function Z(...z){return K(H=>Reflect.apply(gh,null,[H,...z]),()=>tc(...z),"datetime format",H=>H[nc](...z),()=>[],H=>be(H)||vt(H))}function ue(z){w=z,C.pluralRules=w}function pe(z,H){const ie=be(H)?H:i.value,se=ye(ie);return C.messageResolver(se,z)!==null}function Ae(z){let H=null;const ie=rb(C,l.value,i.value);for(let se=0;se{n&&(i.value=z,C.locale=z,ni(C,i.value,l.value))}),Ke(o.fallbackLocale,z=>{n&&(l.value=z,C.fallbackLocale=z,ni(C,i.value,l.value))}));const V={id:wh,locale:y,fallbackLocale:T,get inheritLocale(){return n},set inheritLocale(z){n=z,z&&o&&(i.value=o.locale.value,l.value=o.fallbackLocale.value,ni(C,i.value,l.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:$,get modifiers(){return I},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(z){d=z,C.missingWarn=d},get fallbackWarn(){return u},set fallbackWarn(z){u=z,C.fallbackWarn=u},get fallbackRoot(){return f},set fallbackRoot(z){f=z},get fallbackFormat(){return p},set fallbackFormat(z){p=z,C.fallbackFormat=p},get warnHtmlMessage(){return g},set warnHtmlMessage(z){g=z,C.warnHtmlMessage=z},get escapeParameter(){return S},set escapeParameter(z){S=z,C.escapeParameter=z},t:re,getLocaleMessage:ye,setLocaleMessage:_,mergeLocaleMessage:A,getPostTranslationHandler:X,setPostTranslationHandler:j,getMissingHandler:G,setMissingHandler:L,[vI]:ue};return V.datetimeFormats=B,V.numberFormats=O,V.rt=me,V.te=pe,V.tm=ze,V.d=we,V.n=Se,V.getDateTimeFormat=W,V.setDateTimeFormat=J,V.mergeDateTimeFormat=ee,V.getNumberFormat=D,V.setNumberFormat=te,V.mergeNumberFormat=q,V[bI]=e.__injectWithOption,V[rc]=Y,V[nc]=Z,V[ic]=Q,V}const Nd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yI({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,n)=>r=[...r,...vt(n.children)?n.children:[n]],[]):t.reduce((o,r)=>{const n=e[r];return n&&(o[r]=n()),o},{})}function vb(e){return Ze}const $h={name:"i18n-t",props:Mt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>yt(e)||!isNaN(e)}},Nd),setup(e,t){const{slots:o,attrs:r}=t,n=e.i18n||dn({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(u=>u!=="_"),l={};e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=be(e.plural)?+e.plural:e.plural);const a=yI(t,i),s=n[rc](e.keypath,a,l),c=Mt({},r),d=be(e.tag)||rt(e.tag)?e.tag:vb();return m(d,c,s)}}};function wI(e){return vt(e)&&!be(e[0])}function bb(e,t,o,r){const{slots:n,attrs:i}=t;return()=>{const l={part:!0};let a={};e.locale&&(l.locale=e.locale),be(e.format)?l.key=e.format:rt(e.format)&&(be(e.format.key)&&(l.key=e.format.key),a=Object.keys(e.format).reduce((f,p)=>o.includes(p)?Mt({},f,{[p]:e.format[p]}):f,{}));const s=r(e.value,l,a);let c=[l.key];vt(s)?c=s.map((f,p)=>{const h=n[f.type],b=h?h({[f.type]:f.value,index:p,parts:s}):[f.value];return wI(b)&&(b[0].key=`${f.type}-${p}`),b}):be(s)&&(c=[s]);const d=Mt({},i),u=be(e.tag)||rt(e.tag)?e.tag:vb();return m(u,d,c)}}const _h={name:"i18n-n",props:Mt({value:{type:Number,required:!0},format:{type:[String,Object]}},Nd),setup(e,t){const o=e.i18n||dn({useScope:"parent",__useComponent:!0});return bb(e,t,fb,(...r)=>o[ic](...r))}},Ph={name:"i18n-d",props:Mt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Nd),setup(e,t){const o=e.i18n||dn({useScope:"parent",__useComponent:!0});return bb(e,t,ub,(...r)=>o[nc](...r))}};function SI(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function $I(e){const t=l=>{const{instance:a,modifiers:s,value:c}=l;if(!a||!a.$)throw no(Zt.UNEXPECTED_ERROR);const d=SI(e,a.$),u=zh(c);return[Reflect.apply(d.t,d,[...Th(u)]),d]};return{created:(l,a)=>{const[s,c]=t(a);Qs&&e.global===c&&(l.__i18nWatcher=Ke(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=c,l.textContent=s},unmounted:l=>{Qs&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const s=l.__composer,c=zh(a);l.textContent=Reflect.apply(s.t,s,[...Th(c)])}},getSSRProps:l=>{const[a]=t(l);return{textContent:a}}}}function zh(e){if(be(e))return{path:e};if(Ve(e)){if(!("path"in e))throw no(Zt.REQUIRED_VALUE,"path");return e}else throw no(Zt.INVALID_VALUE)}function Th(e){const{path:t,locale:o,args:r,choice:n,plural:i}=e,l={},a=r||{};return be(o)&&(l.locale=o),yt(n)&&(l.plural=n),yt(i)&&(l.plural=i),[t,a,l]}function _I(e,t,...o){const r=Ve(o[0])?o[0]:{},n=!!r.useI18nComponentName;(mt(r.globalInstall)?r.globalInstall:!0)&&(e.component(n?"i18n":$h.name,$h),e.component(_h.name,_h),e.component(Ph.name,Ph)),e.directive("t",$I(t))}const PI=wr("global-vue-i18n");function zI(e={},t){const o=mt(e.globalInjection)?e.globalInjection:!0,r=!0,n=new Map,[i,l]=TI(e),a=wr("");function s(u){return n.get(u)||null}function c(u,f){n.set(u,f)}function d(u){n.delete(u)}{const u={get mode(){return"composition"},get allowComposition(){return r},async install(f,...p){f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,u),o&&BI(f,u.global),_I(f,u,...p);const h=f.unmount;f.unmount=()=>{u.dispose(),h()}},get global(){return l},dispose(){i.stop()},__instances:n,__getInstance:s,__setInstance:c,__deleteInstance:d};return u}}function dn(e={}){const t=lo();if(t==null)throw no(Zt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Zt.NOT_INSLALLED);const o=kI(t),r=II(o),n=mb(t),i=EI(e,n);if(i==="global")return xI(r,e,n),r;if(i==="parent"){let s=RI(o,t,e.__useComponent);return s==null&&(s=r),s}const l=o;let a=l.__getInstance(t);if(a==null){const s=Mt({},e);"__i18n"in n&&(s.__i18n=n.__i18n),r&&(s.__root=r),a=gb(s),OI(l,t),l.__setInstance(t,a)}return a}function TI(e,t,o){const r=xc();{const n=r.run(()=>gb(e));if(n==null)throw no(Zt.UNEXPECTED_ERROR);return[r,n]}}function kI(e){{const t=ge(e.isCE?PI:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Zt.NOT_INSLALLED_WITH_PROVIDE:Zt.UNEXPECTED_ERROR);return t}}function EI(e,t){return $a(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function II(e){return e.mode==="composition"?e.global:e.global.__composer}function RI(e,t,o=!1){let r=null;const n=t.root;let i=t.parent;for(;i!=null;){const l=e;if(e.mode==="composition"&&(r=l.__getInstance(i)),r!=null||n===i)break;i=i.parent}return r}function OI(e,t,o){Bt(()=>{},t),Ui(()=>{e.__deleteInstance(t)},t)}const AI=["locale","fallbackLocale","availableLocales"],MI=["t","rt","d","n","tm"];function BI(e,t){const o=Object.create(null);AI.forEach(r=>{const n=Object.getOwnPropertyDescriptor(t,r);if(!n)throw no(Zt.UNEXPECTED_ERROR);const i=ct(n.value)?{get(){return n.value.value},set(l){n.value.value=l}}:{get(){return n.get&&n.get()}};Object.defineProperty(o,r,i)}),e.config.globalProperties.$i18n=o,MI.forEach(r=>{const n=Object.getOwnPropertyDescriptor(t,r);if(!n||!n.value)throw no(Zt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,n)})}lI(HE);aI(rb);gI();if(__INTLIFY_PROD_DEVTOOLS__){const e=Bd();e.__INTLIFY__=!0,YE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Pa=Xv("setting",()=>{const e=io({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:"#18A058"}},themeValue:!1,reloadRouteLog:!0,menuTagLog:!0}),{locale:t}=dn(),o=i=>{t.value=i},r=i=>{e.primaryColorOverride.common.primaryColor=i},n=(i,l)=>{e[l]=i};return{...zc(e),updateLocale:o,changePrimaryColor:r,changeSwitcher:n}},{persist:{key:"piniaSettingStore"}});/*! + * vue-router v4.1.3 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const yn=typeof window<"u";function LI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function rs(e,t){const o={};for(const r in t){const n=t[r];o[r]=mo(n)?n.map(e):e(n)}return o}const yi=()=>{},mo=Array.isArray,DI=/\/$/,FI=e=>e.replace(DI,"");function ns(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,a>-1?a:t.length),n=e(i)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=WI(r!=null?r:t,o),{fullPath:r+(i&&"?")+i+l,path:r,query:n,hash:l}}function HI(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function kh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function NI(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Mn(t.matched[r],o.matched[n])&&xb(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!jI(e[o],t[o]))return!1;return!0}function jI(e,t){return mo(e)?Eh(e,t):mo(t)?Eh(t,e):e===t}function Eh(e,t){return mo(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function WI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/");let n=o.length-1,i,l;for(i=0;i1&&n--;else break;return o.slice(0,n).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Wi;(function(e){e.pop="pop",e.push="push"})(Wi||(Wi={}));var wi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wi||(wi={}));function VI(e){if(!e)if(yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),FI(e)}const UI=/^[^#]+#/;function KI(e,t){return e.replace(UI,"#")+t}function GI(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const za=()=>({left:window.pageXOffset,top:window.pageYOffset});function qI(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=GI(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ih(e,t){return(history.state?history.state.position-t:-1)+e}const ac=new Map;function YI(e,t){ac.set(e,t)}function XI(e){const t=ac.get(e);return ac.delete(e),t}let ZI=()=>location.protocol+"//"+location.host;function Cb(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,s=n.slice(a);return s[0]!=="/"&&(s="/"+s),kh(s,"")}return kh(o,e)+r+n}function JI(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const p=Cb(e,location),h=o.value,b=t.value;let v=0;if(f){if(o.value=p,t.value=f,l&&l===h){l=null;return}v=b?f.position-b.position:0}else r(p);n.forEach(g=>{g(o.value,h,{delta:v,type:Wi.pop,direction:v?v>0?wi.forward:wi.back:wi.unknown})})};function s(){l=o.value}function c(f){n.push(f);const p=()=>{const h=n.indexOf(f);h>-1&&n.splice(h,1)};return i.push(p),p}function d(){const{history:f}=window;!f.state||f.replaceState(et({},f.state,{scroll:za()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:s,listen:c,destroy:u}}function Rh(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?za():null}}function QI(e){const{history:t,location:o}=window,r={value:Cb(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:ZI()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),n.value=c}catch(p){console.error(p),o[d?"replace":"assign"](f)}}function l(s,c){const d=et({},t.state,Rh(n.value.back,s,n.value.forward,!0),c,{position:n.value.position});i(s,d,!0),r.value=s}function a(s,c){const d=et({},n.value,t.state,{forward:s,scroll:za()});i(d.current,d,!0);const u=et({},Rh(r.value,s,null),{position:d.position+1},c);i(s,u,!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function eR(e){e=VI(e);const t=QI(e),o=JI(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=et({location:"",base:e,go:r,createHref:KI.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function tR(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),eR(e)}function oR(e){return typeof e=="string"||e&&typeof e=="object"}function yb(e){return typeof e=="string"||typeof e=="symbol"}const or={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wb=Symbol("");var Oh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Oh||(Oh={}));function Bn(e,t){return et(new Error,{type:e,[wb]:!0},t)}function Ao(e,t){return e instanceof Error&&wb in e&&(t==null||!!(e.type&t))}const Ah="[^/]+?",rR={sensitive:!1,strict:!1,start:!0,end:!0},nR=/[.+*?^${}()[\]/\\]/g;function iR(e,t){const o=et({},rR,t),r=[];let n=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(n+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function aR(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const sR={type:0,value:""},cR=/[a-zA-Z0-9_]/;function dR(e){if(!e)return[[]];if(e==="/")return[[sR]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=0,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",d="";function u(){!c||(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{l(S)}:yi}function l(d){if(yb(d)){const u=r.get(d);u&&(r.delete(d),o.splice(o.indexOf(u),1),u.children.forEach(l),u.alias.forEach(l))}else{const u=o.indexOf(d);u>-1&&(o.splice(u,1),d.record.name&&r.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return o}function s(d){let u=0;for(;u=0&&(d.record.path!==o[u].record.path||!Sb(d,o[u]));)u++;o.splice(u,0,d),d.record.name&&!Bh(d)&&r.set(d.record.name,d)}function c(d,u){let f,p={},h,b;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Bn(1,{location:d});b=f.record.name,p=et(hR(u.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),d.params),h=f.stringify(p)}else if("path"in d)h=d.path,f=o.find(S=>S.re.test(h)),f&&(p=f.parse(h),b=f.record.name);else{if(f=u.name?r.get(u.name):o.find(S=>S.re.test(u.path)),!f)throw Bn(1,{location:d,currentLocation:u});b=f.record.name,p=et({},u.params,d.params),h=f.stringify(p)}const v=[];let g=f;for(;g;)v.unshift(g.record),g=g.parent;return{name:b,path:h,params:p,matched:v,meta:gR(v)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:c,removeRoute:l,getRoutes:a,getRecordMatcher:n}}function hR(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function pR(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mR(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="boolean"?o:o[r];return t}function Bh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gR(e){return e.reduce((t,o)=>et(t,o.meta),{})}function Lh(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}function Sb(e,t){return t.children.some(o=>o===e||Sb(e,o))}const $b=/#/g,vR=/&/g,bR=/\//g,xR=/=/g,CR=/\?/g,_b=/\+/g,yR=/%5B/g,wR=/%5D/g,Pb=/%5E/g,SR=/%60/g,zb=/%7B/g,$R=/%7C/g,Tb=/%7D/g,_R=/%20/g;function jd(e){return encodeURI(""+e).replace($R,"|").replace(yR,"[").replace(wR,"]")}function PR(e){return jd(e).replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function sc(e){return jd(e).replace(_b,"%2B").replace(_R,"+").replace($b,"%23").replace(vR,"%26").replace(SR,"`").replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function zR(e){return sc(e).replace(xR,"%3D")}function TR(e){return jd(e).replace($b,"%23").replace(CR,"%3F")}function kR(e){return e==null?"":TR(e).replace(bR,"%2F")}function ql(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ER(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&sc(i)):[r&&sc(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function IR(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=mo(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const RR=Symbol(""),Fh=Symbol(""),Ta=Symbol(""),Wd=Symbol(""),cc=Symbol("");function ii(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e,reset:o}}function lr(e,t,o,r,n){const i=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((l,a)=>{const s=u=>{u===!1?a(Bn(4,{from:o,to:t})):u instanceof Error?a(u):oR(u)?a(Bn(2,{from:t,to:u})):(i&&r.enterCallbacks[n]===i&&typeof u=="function"&&i.push(u),l())},c=e.call(r&&r.instances[n],t,o,s);let d=Promise.resolve(c);e.length<3&&(d=d.then(s)),d.catch(u=>a(u))})}function is(e,t,o,r){const n=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(OR(a)){const c=(a.__vccOpts||a)[t];c&&n.push(lr(c,o,r,i,l))}else{let s=a();n.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=LI(c)?c.default:c;i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&lr(f,o,r,i,l)()}))}}return n}function OR(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hh(e){const t=ge(Ta),o=ge(Wd),r=M(()=>t.resolve(Fo(e.to))),n=M(()=>{const{matched:s}=r.value,{length:c}=s,d=s[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(Mn.bind(null,d));if(f>-1)return f;const p=Nh(s[c-2]);return c>1&&Nh(d)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,s[c-2])):f}),i=M(()=>n.value>-1&&LR(o.params,r.value.params)),l=M(()=>n.value>-1&&n.value===o.matched.length-1&&xb(o.params,r.value.params));function a(s={}){return BR(s)?t[Fo(e.replace)?"replace":"push"](Fo(e.to)).catch(yi):Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}const AR=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hh,setup(e,{slots:t}){const o=io(Hh(e)),{options:r}=ge(Ta),n=M(()=>({[jh(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[jh(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),MR=AR;function BR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function LR(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!mo(n)||n.length!==r.length||r.some((i,l)=>i!==n[l]))return!1}return!0}function Nh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const jh=(e,t,o)=>e!=null?e:t!=null?t:o,DR=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=ge(cc),n=M(()=>e.route||r.value),i=ge(Fh,0),l=M(()=>{let c=Fo(i);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=M(()=>n.value.matched[l.value]);Re(Fh,M(()=>l.value+1)),Re(RR,a),Re(cc,n);const s=U();return Ke(()=>[s.value,a.value,e.name],([c,d,u],[f,p,h])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!Mn(d,p)||!f)&&(d.enterCallbacks[u]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=n.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Wh(o.default,{Component:f,route:c});const p=u.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=m(f,et({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return Wh(o.default,{Component:v,route:c})||v}}});function Wh(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const kb=DR;function FR(e){const t=fR(e.routes,e),o=e.parseQuery||ER,r=e.stringifyQuery||Dh,n=e.history,i=ii(),l=ii(),a=ii(),s=p1(or);let c=or;yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=rs.bind(null,Y=>""+Y),u=rs.bind(null,kR),f=rs.bind(null,ql);function p(Y,Q){let Z,ue;return yb(Y)?(Z=t.getRecordMatcher(Y),ue=Q):ue=Y,t.addRoute(ue,Z)}function h(Y){const Q=t.getRecordMatcher(Y);Q&&t.removeRoute(Q)}function b(){return t.getRoutes().map(Y=>Y.record)}function v(Y){return!!t.getRecordMatcher(Y)}function g(Y,Q){if(Q=et({},Q||s.value),typeof Y=="string"){const ye=ns(o,Y,Q.path),_=t.resolve({path:ye.path},Q),A=n.createHref(ye.fullPath);return et(ye,_,{params:f(_.params),hash:ql(ye.hash),redirectedFrom:void 0,href:A})}let Z;if("path"in Y)Z=et({},Y,{path:ns(o,Y.path,Q.path).path});else{const ye=et({},Y.params);for(const _ in ye)ye[_]==null&&delete ye[_];Z=et({},Y,{params:u(Y.params)}),Q.params=u(Q.params)}const ue=t.resolve(Z,Q),pe=Y.hash||"";ue.params=d(f(ue.params));const Ae=HI(r,et({},Y,{hash:PR(pe),path:ue.path})),ze=n.createHref(Ae);return et({fullPath:Ae,hash:pe,query:r===Dh?IR(Y.query):Y.query||{}},ue,{redirectedFrom:void 0,href:ze})}function S(Y){return typeof Y=="string"?ns(o,Y,s.value.path):et({},Y)}function I(Y,Q){if(c!==Y)return Bn(8,{from:Q,to:Y})}function w(Y){return x(Y)}function C(Y){return w(et(S(Y),{replace:!0}))}function P(Y){const Q=Y.matched[Y.matched.length-1];if(Q&&Q.redirect){const{redirect:Z}=Q;let ue=typeof Z=="function"?Z(Y):Z;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=S(ue):{path:ue},ue.params={}),et({query:Y.query,hash:Y.hash,params:"path"in ue?{}:Y.params},ue)}}function x(Y,Q){const Z=c=g(Y),ue=s.value,pe=Y.state,Ae=Y.force,ze=Y.replace===!0,ye=P(Z);if(ye)return x(et(S(ye),{state:pe,force:Ae,replace:ze}),Q||Z);const _=Z;_.redirectedFrom=Q;let A;return!Ae&&NI(r,ue,Z)&&(A=Bn(16,{to:_,from:ue}),we(ue,ue,!0,!1)),(A?Promise.resolve(A):T(_,ue)).catch(W=>Ao(W)?Ao(W,2)?W:me(W):K(W,_,ue)).then(W=>{if(W){if(Ao(W,2))return x(et({replace:ze},S(W.to),{state:pe,force:Ae}),Q||_)}else W=B(_,ue,!0,ze,pe);return $(_,ue,W),W})}function y(Y,Q){const Z=I(Y,Q);return Z?Promise.reject(Z):Promise.resolve()}function T(Y,Q){let Z;const[ue,pe,Ae]=HR(Y,Q);Z=is(ue.reverse(),"beforeRouteLeave",Y,Q);for(const ye of ue)ye.leaveGuards.forEach(_=>{Z.push(lr(_,Y,Q))});const ze=y.bind(null,Y,Q);return Z.push(ze),bn(Z).then(()=>{Z=[];for(const ye of i.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).then(()=>{Z=is(pe,"beforeRouteUpdate",Y,Q);for(const ye of pe)ye.updateGuards.forEach(_=>{Z.push(lr(_,Y,Q))});return Z.push(ze),bn(Z)}).then(()=>{Z=[];for(const ye of Y.matched)if(ye.beforeEnter&&!Q.matched.includes(ye))if(mo(ye.beforeEnter))for(const _ of ye.beforeEnter)Z.push(lr(_,Y,Q));else Z.push(lr(ye.beforeEnter,Y,Q));return Z.push(ze),bn(Z)}).then(()=>(Y.matched.forEach(ye=>ye.enterCallbacks={}),Z=is(Ae,"beforeRouteEnter",Y,Q),Z.push(ze),bn(Z))).then(()=>{Z=[];for(const ye of l.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).catch(ye=>Ao(ye,8)?ye:Promise.reject(ye))}function $(Y,Q,Z){for(const ue of a.list())ue(Y,Q,Z)}function B(Y,Q,Z,ue,pe){const Ae=I(Y,Q);if(Ae)return Ae;const ze=Q===or,ye=yn?history.state:{};Z&&(ue||ze?n.replace(Y.fullPath,et({scroll:ze&&ye&&ye.scroll},pe)):n.push(Y.fullPath,pe)),s.value=Y,we(Y,Q,Z,ze),me()}let O;function X(){O||(O=n.listen((Y,Q,Z)=>{if(!Xe.listening)return;const ue=g(Y),pe=P(ue);if(pe){x(et(pe,{replace:!0}),ue).catch(yi);return}c=ue;const Ae=s.value;yn&&YI(Ih(Ae.fullPath,Z.delta),za()),T(ue,Ae).catch(ze=>Ao(ze,12)?ze:Ao(ze,2)?(x(ze.to,ue).then(ye=>{Ao(ye,20)&&!Z.delta&&Z.type===Wi.pop&&n.go(-1,!1)}).catch(yi),Promise.reject()):(Z.delta&&n.go(-Z.delta,!1),K(ze,ue,Ae))).then(ze=>{ze=ze||B(ue,Ae,!1),ze&&(Z.delta&&!Ao(ze,8)?n.go(-Z.delta,!1):Z.type===Wi.pop&&Ao(ze,20)&&n.go(-1,!1)),$(ue,Ae,ze)}).catch(yi)}))}let j=ii(),G=ii(),L;function K(Y,Q,Z){me(Y);const ue=G.list();return ue.length?ue.forEach(pe=>pe(Y,Q,Z)):console.error(Y),Promise.reject(Y)}function re(){return L&&s.value!==or?Promise.resolve():new Promise((Y,Q)=>{j.add([Y,Q])})}function me(Y){return L||(L=!Y,X(),j.list().forEach(([Q,Z])=>Y?Z(Y):Q()),j.reset()),Y}function we(Y,Q,Z,ue){const{scrollBehavior:pe}=e;if(!yn||!pe)return Promise.resolve();const Ae=!Z&&XI(Ih(Y.fullPath,0))||(ue||!Z)&&history.state&&history.state.scroll||null;return zt().then(()=>pe(Y,Q,Ae)).then(ze=>ze&&qI(ze)).catch(ze=>K(ze,Y,Q))}const Se=Y=>n.go(Y);let Ee;const De=new Set,Xe={currentRoute:s,listening:!0,addRoute:p,removeRoute:h,hasRoute:v,getRoutes:b,resolve:g,options:e,push:w,replace:C,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:G.add,isReady:re,install(Y){const Q=this;Y.component("RouterLink",MR),Y.component("RouterView",kb),Y.config.globalProperties.$router=Q,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Fo(s)}),yn&&!Ee&&s.value===or&&(Ee=!0,w(n.location).catch(pe=>{}));const Z={};for(const pe in or)Z[pe]=M(()=>s.value[pe]);Y.provide(Ta,Q),Y.provide(Wd,io(Z)),Y.provide(cc,s);const ue=Y.unmount;De.add(Y),Y.unmount=function(){De.delete(Y),De.size<1&&(c=or,O&&O(),O=null,s.value=or,Ee=!1,L=!1),ue()}}};return Xe}function bn(e){return e.reduce((t,o)=>t.then(()=>o()),Promise.resolve())}function HR(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lMn(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Mn(c,s))||n.push(s))}return[o,r,n]}function NR(){return ge(Ta)}function jR(){return ge(Wd)}const WR=(e,t,o="sessionStorage")=>{const r=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(e,r):window.sessionStorage.setItem(e,r)},Ln=(e,t="sessionStorage")=>{const o=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return Object.is(o,null)?"no":JSON.parse(o)},VR=(e,t="sessionStorage")=>{e==="all"?(window.window.localStorage.clear(),window.sessionStorage.clear()):e==="all-sessionStorage"?window.sessionStorage.clear():e==="all-localStorage"?window.localStorage.clear():t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)},Vi=le({name:"RayIcon",props:{color:{type:String,default:""},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:""}},setup(e){const t=M(()=>e.color),o=M(()=>`#${e.prefix}-${e.name}`);return{modelColor:t,symbolId:o}},render(){return ve("svg",{ariaHidden:!0,class:`ray-icon ${this.customClassName}`,style:{width:`${this.width?this.width:this.size}px`,height:`${this.height?this.height:this.size}px`}},[ve("use",{"xlink:href":this.symbolId,fill:this.modelColor},null)])}}),Eb=Xv("menu",()=>{const e=NR(),t=jR(),{t:o}=dn(),r=Ln("menuKey")==="no"?"/dashboard":Ln("menuKey"),n=io({menuKey:r,options:[],collapsed:!1,menuTagOptions:[]}),i=u=>{u.path!==n.menuKey&&(n.menuTagOptions.find(p=>p.path===u.path)||n.menuTagOptions.push(u))},l=(u,f)=>{i(f),n.menuKey=u,e.push(`${f.path}`),WR("menuKey",u)},a=u=>{const f=p=>{var h;for(const b of p)if((h=b==null?void 0:b.children)!=null&&h.length&&f(b.children),u===b.path){l(b.path,b);break}};f(n.options)},s=()=>{const u=e.getRoutes().find(p=>p.name==="layout"),f=(p,h)=>p.map(b=>{var I,w;(I=b.children)!=null&&I.length&&(b.children=f(b.children));const v={...b,key:b.path,label:()=>m(b_,null,{default:()=>o(`GlobalMenuOptions.${b.meta.i18nKey}`)})},g={icon:()=>{var C;return m(Vi,{name:(C=b==null?void 0:b.meta)==null?void 0:C.icon,size:20},{})}},S=(w=b.meta)!=null&&w.icon?Object.assign(v,g):v;return b.path===r&&n.menuTagOptions.push(S),S});n.options=f(u==null?void 0:u.children)},c=u=>n.collapsed=u,d=u=>n.menuTagOptions.splice(u,1);return Ke(()=>t.fullPath,u=>{a(u)}),{...zc(n),menuModelValueChange:l,setupAppRoutes:s,collapsedMenu:c,spliceMenTagOptions:d}}),Vh=pE(),Ib=e=>{e.use(Vh),Vh.use(_E)},UR=le({name:"GlobalProvider",setup(){const e=Pa(),t=M(()=>e.primaryColorOverride),o=M(()=>e.themeValue?fE:null),{message:r,notification:n,dialog:i,loadingBar:l}=sE(["message","dialog","notification","loadingBar"],{configProviderProps:M(()=>({theme:o.value}))});return window.$dialog=i,window.$message=r,window.$loadingBar=l,window.$notification=n,{modelPrimaryColorOverride:t,modelThemeValue:o}},render(){return ve(Wg,{themeOverrides:this.modelPrimaryColorOverride,theme:this.modelThemeValue},{default:()=>[ve(Av,null,{default:()=>[ve(Wv,null,{default:()=>[ve(mv,null,{default:()=>[ve(Uv,null,{default:()=>{var e,t;return[ve(cz,null,null),(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})]})]})]})]})}}),Rb=le({name:"App",render(){return ve(UR,null,{default:()=>[ve(kb,null,null)]})}}),KR="modulepreload",GR=function(e){return"/"+e},Uh={},xr=function(t,o,r){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(i=>{if(i=GR(i),i in Uh)return;Uh[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let d=n.length-1;d>=0;d--){const u=n[d];if(u.href===i&&(!l||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":KR,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((d,u)=>{c.addEventListener("load",d),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var Kh;const tl=typeof window<"u",qR=e=>typeof e=="string",ls=()=>{};tl&&((Kh=window==null?void 0:window.navigator)==null?void 0:Kh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function YR(e){return typeof e=="function"?e():Fo(e)}function XR(e){return e}function ZR(e){return H0()?(N0(e),!0):!1}function JR(e,t=!0){lo()?Bt(e):t?e():zt(e)}function QR(e){var t;const o=YR(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Ob=tl?window:void 0;tl&&window.document;tl&&window.navigator;tl&&window.location;function Gh(...e){let t,o,r,n;if(qR(e[0])?([o,r,n]=e,t=Ob):[t,o,r,n]=e,!t)return ls;let i=ls;const l=Ke(()=>QR(t),s=>{i(),s&&(s.addEventListener(o,r,n),i=()=>{s.removeEventListener(o,r,n),i=ls})},{immediate:!0,flush:"post"}),a=()=>{l(),i()};return ZR(a),a}const dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uc="__vueuse_ssr_handlers__";dc[uc]=dc[uc]||{};dc[uc];var qh;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(qh||(qh={}));var e9=Object.defineProperty,Yh=Object.getOwnPropertySymbols,t9=Object.prototype.hasOwnProperty,o9=Object.prototype.propertyIsEnumerable,Xh=(e,t,o)=>t in e?e9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r9=(e,t)=>{for(var o in t||(t={}))t9.call(t,o)&&Xh(e,o,t[o]);if(Yh)for(var o of Yh(t))o9.call(t,o)&&Xh(e,o,t[o]);return e};const n9={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};r9({linear:XR},n9);function i9(e={}){const{window:t=Ob,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:n=!0}=e,i=U(o),l=U(r),a=()=>{t&&(i.value=t.innerWidth,l.value=t.innerHeight)};return a(),JR(a),Gh("resize",a,{passive:!0}),n&&Gh("orientationchange",a,{passive:!0}),{width:i,height:l}}const l9=le({__name:"index",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){return(t,o)=>{const r=H1("router-view");return ws(),Ss(r,null,{default:ms(({Component:n,route:i})=>[ve(Ot,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:ms(()=>[(ws(),Ss(N1(n),{key:i.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),a9=le({name:"LayoutMenu",setup(){const e=Eb(),{menuModelValueChange:t,setupAppRoutes:o,collapsedMenu:r}=e,n=M({get:()=>e.menuKey,set:()=>{}}),i=M(()=>e.options),l=M(()=>e.collapsed);return o(),{modelMenuKey:n,menuModelValueChange:t,modelMenuOptions:i,modelCollapsed:l,collapsedMenu:r}},render(){return ve(bk,{bordered:!0,showTrigger:!0,collapseMode:"width",collapsedWidth:64,onUpdateCollapsed:this.collapsedMenu.bind(this)},{default:()=>[ve(Bk,{value:this.modelMenuKey,"onUpdate:value":e=>this.modelMenuKey=e,options:this.modelMenuOptions,indent:24,collapsed:this.modelCollapsed,collapsedIconSize:22,collapsedWidth:64,onUpdateValue:this.menuModelValueChange.bind(this)},null)]})}});const s9={"en-US":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["Home"])},Rely:e=>{const{normalize:t}=e;return t(["Rely"])},RelyAbout:e=>{const{normalize:t}=e;return t(["Rely About"])},Error:e=>{const{normalize:t}=e;return t(["Error Page"])},Echart:e=>{const{normalize:t}=e;return t(["Chart"])},scrollReveal:e=>{const{normalize:t}=e;return t(["Scroll Reveal"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["Reload Current Page"])},Lock:e=>{const{normalize:t}=e;return t(["Lock"])},Setting:e=>{const{normalize:t}=e;return t(["Setting"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["Full Screen"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["Cancel Full Screen"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["Theme"])},Dark:e=>{const{normalize:t}=e;return t(["Dark"])},Light:e=>{const{normalize:t}=e;return t(["Light"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["Primary Color"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["Register"])},Signin:e=>{const{normalize:t}=e;return t(["Signin"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["please enter password"])},Login:e=>{const{normalize:t}=e;return t(["Login"])},Name:e=>{const{normalize:t}=e;return t(["User Name"])},Password:e=>{const{normalize:t}=e;return t(["User Password"])}}},"zh-CN":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["\u9996\u9875"])},Rely:e=>{const{normalize:t}=e;return t(["\u4F9D\u8D56\u9879"])},RelyAbout:e=>{const{normalize:t}=e;return t(["\u5173\u4E8E"])},Error:e=>{const{normalize:t}=e;return t(["\u9519\u8BEF\u9875"])},Echart:e=>{const{normalize:t}=e;return t(["\u53EF\u89C6\u5316"])},scrollReveal:e=>{const{normalize:t}=e;return t(["\u6EDA\u52A8\u52A8\u753B"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["\u5237\u65B0\u5F53\u524D\u9875\u9762"])},Lock:e=>{const{normalize:t}=e;return t(["\u9501\u5C4F"])},Setting:e=>{const{normalize:t}=e;return t(["\u8BBE\u7F6E"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["\u5168\u5C4F"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["\u9000\u51FA\u5168\u5C4F"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["\u9879\u76EE\u914D\u7F6E"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898"])},Dark:e=>{const{normalize:t}=e;return t(["\u6697\u8272"])},Light:e=>{const{normalize:t}=e;return t(["\u660E\u4EAE"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898\u8272"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["\u6CE8\u518C"])},Signin:e=>{const{normalize:t}=e;return t(["\u767B\u9646"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u7528\u6237\u540D"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u5BC6\u7801"])},Login:e=>{const{normalize:t}=e;return t(["\u767B \u9646"])},Name:e=>{const{normalize:t}=e;return t(["\u7528\u6237\u540D"])},Password:e=>{const{normalize:t}=e;return t(["\u5BC6\u7801"])}}}},Ab=e=>{const t=Ln("localeLanguage","localStorage")!=="no"?Ln("localeLanguage","localStorage"):"zh-CN",o=zI({locale:t,allowComposition:!0,messages:s9});e.use(o)},c9=()=>[{key:"zh-CN",label:"\u4E2D\u6587(\u7B80\u4F53)"},{key:"en-US",label:"English(US)"}];const d9=()=>["#FFFFFF","#18A058","#2080F0","#F0A020","rgba(208, 48, 80, 1)"];function Zh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const u9=le({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{t:o}=dn(),r=Pa(),{changePrimaryColor:n,changeSwitcher:i}=r,{themeValue:l,primaryColorOverride:a,menuTagLog:s}=Zv(r);return{modelShow:M({get:()=>e.show,set:u=>{t("update:show",u)}}),ray:o,handleRailStyle:()=>({backgroundColor:"#000000"}),changePrimaryColor:n,themeValue:l,primaryColorOverride:a,menuTagLog:s,changeSwitcher:i}},render(){let e,t;return ve(WP,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,placement:this.placement,width:this.width},{default:()=>[ve(UP,{title:this.ray("LayoutHeaderSettingOptions.Title")},{default:()=>[ve(In,{class:"setting-drawer__space",vertical:!0},{default:()=>[ve(Qa,{titlePlacement:"center"},Zh(e=this.ray("LayoutHeaderSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),ve(In,{justify:"center"},{default:()=>[ve(Ni,null,{trigger:()=>ve(qf,{value:this.themeValue,"onUpdate:value":o=>this.themeValue=o,railStyle:this.handleRailStyle.bind(this),onUpdateValue:o=>this.changeSwitcher(o,"themeValue")},{"checked-icon":()=>m(Vi,{name:"dark"},{}),"unchecked-icon":()=>m(Vi,{name:"light"},{})}),default:()=>this.themeValue?this.ray("LayoutHeaderSettingOptions.ThemeOptions.Dark"):this.ray("LayoutHeaderSettingOptions.ThemeOptions.Light")})]}),ve(Qa,{titlePlacement:"center"},Zh(t=this.ray("LayoutHeaderSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),ve(S8,{swatches:d9(),value:this.primaryColorOverride.common.primaryColor,"onUpdate:value":o=>this.primaryColorOverride.common.primaryColor=o,onUpdateValue:this.changePrimaryColor.bind(this)},null),ve(Qa,{titlePlacement:"center"},{default:()=>[Zr("\u754C\u9762\u663E\u793A")]}),ve(X_,{labelPlacement:"left",column:1},{default:()=>[ve(J_,{label:"\u663E\u793A\u591A\u6807\u7B7E"},{default:()=>[ve(qf,{value:this.menuTagLog,"onUpdate:value":o=>this.menuTagLog=o,onUpdateValue:o=>this.changeSwitcher(o,"menuTagLog")},null)]})]})]})]})]})}}),f9=()=>[{key:"person",label:"\u4E2A\u4EBA\u4FE1\u606F"},{type:"divider",key:"d1"},{key:"logout",label:"\u9000\u51FA\u767B\u9646"}],Jh=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],jo=(()=>{if(typeof document>"u")return!1;const e=Jh[0],t={};for(const o of Jh)if((o==null?void 0:o[1])in document){for(const[n,i]of o.entries())t[e[n]]=i;return t}return!1})(),Qh={change:jo.fullscreenchange,error:jo.fullscreenerror};let Ut={request(e=document.documentElement,t){return new Promise((o,r)=>{const n=()=>{Ut.off("change",n),o()};Ut.on("change",n);const i=e[jo.requestFullscreen](t);i instanceof Promise&&i.then(n).catch(r)})},exit(){return new Promise((e,t)=>{if(!Ut.isFullscreen){e();return}const o=()=>{Ut.off("change",o),e()};Ut.on("change",o);const r=document[jo.exitFullscreen]();r instanceof Promise&&r.then(o).catch(t)})},toggle(e,t){return Ut.isFullscreen?Ut.exit():Ut.request(e,t)},onchange(e){Ut.on("change",e)},onerror(e){Ut.on("error",e)},on(e,t){const o=Qh[e];o&&document.addEventListener(o,t,!1)},off(e,t){const o=Qh[e];o&&document.removeEventListener(o,t,!1)},raw:jo};Object.defineProperties(Ut,{isFullscreen:{get:()=>Boolean(document[jo.fullscreenElement])},element:{enumerable:!0,get:()=>{var e;return(e=document[jo.fullscreenElement])!=null?e:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[jo.fullscreenEnabled])}});jo||(Ut={isEnabled:!1});const ep=Ut;function as(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const h9=le({name:"SiderBar",setup(){const e=Pa(),{t}=dn(),{updateLocale:o,changeSwitcher:r}=e,n=U(e.drawerPlacement),i=U(!1),l=[{name:"reload",size:18,tooltip:"LayoutHeaderTooltipOptions.Reload"}],a=[{name:"fullscreen",size:18,tooltip:"",eventKey:"screen"},{name:"language",size:18,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:c9(),handleSelect:f=>o(String(f))}},{name:"github",size:18,tooltip:"LayoutHeaderTooltipOptions.Github",eventKey:"github"},{name:"setting",size:18,tooltip:"LayoutHeaderTooltipOptions.Setting",eventKey:"setting"},{name:"ray",size:22,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:f9(),handleSelect:f=>{f==="logout"?window.$dialog.warning({title:"\u63D0\u793A",content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.$message.info("\u8D26\u53F7\u9000\u51FA\u4E2D..."),VR("all-sessionStorage"),setTimeout(()=>window.location.reload(),2*1e3)}}):window.$message.info("\u8FD9\u4E2A\u4EBA\u5F88\u61D2, \u6CA1\u505A\u8FD9\u4E2A\u529F\u80FD~")}}}],s={reload:()=>{r(!1,"reloadRouteLog"),setTimeout(()=>r(!0,"reloadRouteLog"))},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},screen:()=>{ep.isEnabled?ep.toggle():window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F~")}},c=f=>{var p;(p=s[f])==null||p.call(s)},d=f=>{var p;return ve(Vi,{customClassName:"layout-header__method--icon",name:f.name,size:f.size,onClick:c.bind(this,(p=f.eventKey)!=null?p:"")},null)};return{leftIconOptions:l,rightIconOptions:a,t,handleIconClick:c,modelDrawerPlacement:n,showSettings:i,TooltipIcon:f=>f.tooltip?ve(Ni,null,{trigger:()=>d(f),default:()=>{var p;return t((p=f.tooltip)!=null?p:"")}}):d(f),Icon:d}},render(){let e,t;return ve(hk,{class:"layout-header",bordered:!0},{default:()=>[ve(In,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[ve(In,{align:"center"},as(e=this.leftIconOptions.map(o=>ve(Ni,null,{trigger:()=>ve(Vi,{customClassName:"layout-header__method--icon",name:o.name,size:o.size,onClick:this.handleIconClick.bind(this,o.name)},null),default:()=>this.t(o.tooltip)})))?e:{default:()=>[e]}),ve(In,{align:"center"},as(t=this.rightIconOptions.map(o=>{var n,i;let r;return(n=o.dropdown)!=null&&n.switch?ve(rv,{options:o.dropdown.options,onSelect:o.dropdown[(i=o.dropdown.eventKey)!=null?i:"handleSelect"]},as(r=this.Icon(o))?r:{default:()=>[r]}):this.TooltipIcon(o)}))?t:{default:()=>[t]})]}),ve(u9,{show:this.showSettings,"onUpdate:show":o=>this.showSettings=o,placement:this.modelDrawerPlacement},null)]})}});function p9(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const m9=le({name:"MenuTag",setup(){const e=Eb(),{menuTagOptions:t,menuKey:o}=Zv(e),{menuModelValueChange:r,spliceMenTagOptions:n}=e;return{menuTagOptions:t,menuModelValueChange:r,handleCloseTag:a=>{if(n(a),o.value!=="/dashboard"){const s=t.value,c=s.length,d=s[c-1];r(d.key,d)}},menuKey:o,handleTagClick:a=>{r(a.key,a)}}},render(){let e;return ve(tE,{class:"menu-tag",xScrollable:!0},{default:()=>[ve(In,{class:"menu-tag-sapce",wrap:!1,align:"center"},p9(e=this.menuTagOptions.map((t,o)=>ve(K6,{closable:t.key!=="/dashboard"&&this.menuTagOptions.length>1,onClose:()=>this.handleCloseTag(o),type:t.key===this.menuKey?"success":"default",onClick:this.handleTagClick.bind(this,t)},{default:()=>[typeof t.label=="function"?t.label():t.label]})))?e:{default:()=>[e]})]})}}),g9=le({name:"Layout",props:{},setup(){const e=Pa(),{height:t}=i9(),o=M(()=>e.reloadRouteLog),r=M(()=>e.menuTagLog),n=M(()=>{let i={};return e.menuTagLog?i={"--layout-content-height":"calc(100% - 110px)"}:i={"--layout-content-height":"calc(100% - 64px)"},i});return{windowHeight:t,modelReloadRoute:o,modelMenuTagLog:r,cssVarsRef:n}},render(){return ve("div",{class:"layout",style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[ve(Uf,{class:"layout-full",hasSider:!0},{default:()=>[ve(a9,null,null),ve(Uf,null,{default:()=>[ve(h9,null,null),this.modelMenuTagLog?ve(m9,null,null):"",ve(dk,{class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[this.modelReloadRoute?ve(l9,null,null):""]})]})]})])}}),v9={path:"/dashboard",name:"dashboard",component:()=>xr(()=>import("./index.daf1209c.js"),["assets/index.daf1209c.js","assets/index.ae5dbf7a.js","assets/index.dc50c796.css"]),meta:{i18nKey:"Dashboard",icon:"dashboard"}},b9={path:"/rely",name:"rely",component:()=>xr(()=>import("./index.43129635.js"),[]),meta:{i18nKey:"Rely",icon:"rely"},children:[{path:"/rely-about",name:"rely-about",component:()=>xr(()=>import("./index.f0f1f76c.js"),["assets/index.f0f1f76c.js","assets/index.184de73a.css"]),meta:{i18nKey:"RelyAbout"}}]},x9={path:"/error",name:"error",component:()=>xr(()=>import("./index.e24e9a37.js"),["assets/index.e24e9a37.js","assets/Result.08eef20a.js","assets/index.fa813b60.css"]),meta:{i18nKey:"Error",icon:"error"}},C9={path:"/echart",name:"echart",component:()=>xr(()=>import("./index.ffef6b45.js"),["assets/index.ffef6b45.js","assets/index.3f9db04e.css"]),meta:{i18nKey:"Echart",icon:"echart"}},y9={path:"/scroll-reveal",name:"scroll-reveal",component:()=>xr(()=>import("./index.90c2c2db.js"),["assets/index.90c2c2db.js","assets/index.0d9096a4.css"]),meta:{i18nKey:"scrollReveal",icon:"scroll_reveal"}},w9=[v9,C9,y9,x9,b9],S9=[{path:"/",name:"login",component:()=>xr(()=>import("./index.d3847385.js"),["assets/index.d3847385.js","assets/Result.08eef20a.js","assets/index.ae5dbf7a.js","assets/index.6a9d9035.css"])},{path:"/",name:"layout",redirect:"/dashboard",component:g9,children:w9},{path:"/:catchAll(.*)",name:"error-page",component:()=>xr(()=>import("./index.e24e9a37.js"),["assets/index.e24e9a37.js","assets/Result.08eef20a.js","assets/index.fa813b60.css"])}],Si=FR({history:tR(),routes:S9,scrollBehavior:()=>({left:0,top:0})}),Mb=e=>{e.use(Si)},Bb=()=>{Si.beforeEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.start()}),Si.afterEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.finish()}),Si.onError(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.error()})},Lb=()=>{Si.beforeEach((e,t,o)=>{const r=Ln("token"),n=Ln("menuKey");r!=="no"?e.path==="/"||t.path==="/login"?o(n):o():e.path==="/"||t.path==="/login"?o():o("/")})},$9=()=>{const e=Mc(Rb);Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},_9=()=>{let e;window.__WUJIE_MOUNT=()=>{e=Mc(Rb),Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?_9():$9();export{$e as $,ao as A,k as B,Be as C,ca as D,af as E,Bt as F,ut as G,ot as H,ce as I,gr as J,qe as K,ae as L,Nn as M,qo as N,Ze as O,ko as P,st as Q,Un as R,Nc as S,Ot as T,Je as U,Uc as V,Ri as W,po as X,HC as Y,Nt as Z,Ds as _,tn as a,Sf as a$,zt as a0,oo as a1,Kx as a2,zo as a3,I9 as a4,On as a5,dn as a6,ve as a7,WR as a8,g$ as a9,X_ as aA,J_ as aB,Uf as aC,K6 as aD,kb as aE,Go as aF,D2 as aG,cd as aH,Um as aI,b3 as aJ,p3 as aK,SS as aL,Ym as aM,x3 as aN,E3 as aO,vr as aP,I3 as aQ,br as aR,kf as aS,vf as aT,_w as aU,ro as aV,w2 as aW,jl as aX,f3 as aY,R3 as aZ,$o as a_,Sn as aa,pr as ab,NR as ac,io as ad,i9 as ae,Pa as af,zc as ag,In as ah,Zr as ai,rv as aj,c9 as ak,Vi as al,E8 as am,Qa as an,jc as ao,hm as ap,U6 as aq,qr as ar,T9 as as,Fl as at,Ni as au,Ul as av,pd as aw,md as ax,hd as ay,E9 as az,pl as b,L2 as b0,Zv as b1,qf as b2,cy as c,le as d,td as e,Cr as f,lo as g,m as h,ge as i,Ro as j,R as k,N as l,E as m,P9 as n,$t as o,Ye as p,Pe as q,U as r,Re as s,k9 as t,Yi as u,en as v,Ke as w,M as x,No as y,wS as z}; diff --git a/assets/index.f7ae9ef9.js.gz b/assets/index.f7ae9ef9.js.gz new file mode 100644 index 00000000..6961d424 Binary files /dev/null and b/assets/index.f7ae9ef9.js.gz differ diff --git a/assets/index.fa813b60.css b/assets/index.fa813b60.css new file mode 100644 index 00000000..73feb50c --- /dev/null +++ b/assets/index.fa813b60.css @@ -0,0 +1 @@ +.error-page{width:100%;height:100vh;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center} diff --git a/assets/index.ffef6b45.js b/assets/index.ffef6b45.js new file mode 100644 index 00000000..22134b71 --- /dev/null +++ b/assets/index.ffef6b45.js @@ -0,0 +1,71 @@ +import{aG as Js,aH as nm,aI as Gh,aJ as im,aK as Vx,aL as Gx,aM as Hx,aN as Wx,aO as am,aP as hc,aQ as $x,aR as om,aS as Hh,aT as _s,aU as sm,f as Ux,aV as Yx,aW as Xx,aX as Zx,aY as qx,aZ as Kx,a_ as jx,a$ as Qx,b0 as Jx,d as um,af as tb,b1 as eb,r as va,x as rb,w as nb,aF as ib,F as ab,a0 as ob,o as sb,a7 as Pt,am as zn,ai as ub,b2 as vc}from"./index.f7ae9ef9.js";function lb(r,t){for(var e=-1,n=r==null?0:r.length;++e"u"&&typeof self<"u"?yn.worker=!0:typeof navigator>"u"?(yn.node=!0,yn.svgSupported=!0):Iw(navigator.userAgent,yn);function Iw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const nt=yn;var Wh=12,cm="sans-serif",Fr=Wh+"px "+cm,Lw=20,Pw=100,Rw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ew(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function nT(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?Sc(s,o):Sc(o,s))}function Sm(r){return r.nodeName.toUpperCase()==="CANVAS"}var iT=/([&<>"'])/g,aT={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(r){return r==null?"":(r+"").replace(iT,function(t,e){return aT[e]})}var oT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gu=[],sT=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function Tf(r,t,e,n){return e=e||{},n?bc(r,t,e):sT&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):bc(r,t,e),e}function bc(r,t,e){if(nt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Sm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(wf(Gu,r,n,i)){e.zrX=Gu[0],e.zrY=Gu[1];return}}e.zrX=e.zrY=0}function Zh(r){return r||window.event}function pe(r,t,e){if(t=Zh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Tf(r,o,t,e)}else{Tf(r,t,t,e);var a=uT(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&oT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function uT(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Cf(r,t,e,n){r.addEventListener(t,e,n)}function lT(r,t,e,n){r.removeEventListener(t,e,n)}var xm=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},fT=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=wc(n)/wc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=hT(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function La(){return[1,0,0,1,0,0]}function qh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function vT(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function pi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Mf(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Kh(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*l,r[1]=-n*l+o*f,r[2]=i*f+s*l,r[3]=-i*l+f*s,r[4]=f*a+l*u,r[5]=f*u-l*a,r}function cT(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function nu(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}var dT=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const X=dT;var fo=Math.min,ho=Math.max,Ur=new X,Yr=new X,Xr=new X,Zr=new X,ki=new X,Bi=new X,pT=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=fo(t.x,this.x),n=fo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ho(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ho(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=La();return Mf(a,a,[-e.x,-e.y]),cT(a,a,[n,i]),Mf(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,gd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ur.x=Xr.x=e.x,Ur.y=Zr.y=e.y,Yr.x=Zr.x=e.x+e.width,Yr.y=Xr.y=e.y+e.height,Ur.transform(n),Zr.transform(n),Yr.transform(n),Xr.transform(n),t.x=fo(Ur.x,Yr.x,Xr.x,Zr.x),t.y=fo(Ur.y,Yr.y,Xr.y,Zr.y);var u=ho(Ur.x,Yr.x,Xr.x,Zr.x),l=ho(Ur.y,Yr.y,Xr.y,Zr.y);t.width=u-t.x,t.height=l-t.y},r}();const ot=pT;var bm="silent";function gT(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:yT}}function yT(){xm(this.event)}var mT=function(r){yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fe),Ni=function(){function r(t,e){this.x=t,this.y=e}return r}(),_T=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wu=new ot(0,0,0,0),wm=function(r){yt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ni(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Qw(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(_T,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Tm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ni(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ni(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=gT(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Ni(e,n);if(Tc(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ot(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Wu.copy(c.getBoundingRect()),c.transform&&Wu.applyTransform(c.transform),Wu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function ST(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?bm:!0}return!1}function Tc(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=ST(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==bm)){t.target=o;break}}}function Tm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const xT=wm;var Cm=32,Fi=7;function bT(r){for(var t=0;r>=Cm;)t|=r&1,r>>=1;return r+t}function Cc(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function wT(r,t,e){for(e--;t>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function $u(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Uu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function TT(r,t){var e=Fi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Fi||w>=Fi);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--p===1){M=!0;break}if(C=p-$u(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,x=S+1,b=_+1,y=0;y=Fi||C>=Fi);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),p===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;ys&&(u=s),Mc(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ue=1,ia=2,ni=4,Ac=!1;function Yu(){Ac||(Ac=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CT=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dc}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Yu(),f.z=0),isNaN(f.z2)&&(Yu(),f.z2=0),isNaN(f.zlevel)&&(Yu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const MT=CT;var Mm;Mm=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Af=Mm;var is={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-is.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?is.bounceIn(r*2)*.5:is.bounceOut(r*2-1)*.5+.5}};const Am=is;var vo=Math.pow,kr=Math.sqrt,bs=1e-8,Dm=1e-4,Ic=kr(3),co=1/3,Ye=Li(),me=Li(),gi=Li();function Pr(r){return r>-bs&&rbs||r<-bs}function Ot(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Lc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ws(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Pr(f)&&Pr(h))if(Pr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Pr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=kr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-vo(-_,co):_=vo(_,co),S<0?S=-vo(-S,co):S=vo(S,co);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*kr(f*f*f)),x=Math.acos(b)/3,w=kr(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Ic*Math.sin(x)))/(3*o),C=(-s+w*(T-Ic*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function Lm(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Pr(o)){if(Im(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var h=kr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Vr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Pm(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;Ye[0]=u,Ye[1]=l;for(var m=0;m<1;m+=.05)me[0]=Ot(r,e,i,o,m),me[1]=Ot(t,n,a,s,m),p=di(Ye,me),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Pr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=kr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Rm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ts(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Em(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){me[0]=$t(r,e,i,c),me[1]=$t(t,n,a,c);var v=di(Ye,me);v=0&&v=1?1:ws(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var PT=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:Am[t]||jh(t)},r}();const RT=PT;var Om=function(){function r(t){this.value=t}return r}(),ET=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Om(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),OT=function(){function r(t){this._list=new ET,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new Om(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ka=OT;var Rc={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(r){return r=Math.round(r),r<0?0:r>255?255:r}function Df(r){return r<0?0:r>1?1:r}function Xu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function pa(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Df(parseFloat(t)/100):Df(parseFloat(t))}function Zu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function po(r,t,e){return r+(t-r)*e}function de(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function If(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var km=new Ka(20),go=null;function Gn(r,t){go&&If(go,t),go=km.put(r,go||t.slice())}function Qe(r,t){if(!!r){t=t||[];var e=km.get(r);if(e)return If(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Rc)return If(t,Rc[n]),Gn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){de(t,0,0,0,1);return}return de(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Gn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){de(t,0,0,0,1);return}return de(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Gn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?de(t,+l[0],+l[1],+l[2],1):de(t,0,0,0,1);f=pa(l.pop());case"rgb":if(l.length>=3)return de(t,Xu(l[0]),Xu(l[1]),Xu(l[2]),l.length===3?f:pa(l[3])),Gn(r,t),t;de(t,0,0,0,1);return;case"hsla":if(l.length!==4){de(t,0,0,0,1);return}return l[3]=pa(l[3]),Ec(l,t),Gn(r,t),t;case"hsl":if(l.length!==3){de(t,0,0,0,1);return}return Ec(l,t),Gn(r,t),t;default:return}}de(t,0,0,0,1)}}function Ec(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=pa(r[1]),i=pa(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],de(t,Br(Zu(o,a,e+1/3)*255),Br(Zu(o,a,e)*255),Br(Zu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Oc(r,t){var e=Qe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return iu(e,e.length===4?"rgba":"rgb")}}function kT(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Qe(t[i]),s=Qe(t[a]),u=n-i,l=iu([Br(po(o[0],s[0],u)),Br(po(o[1],s[1],u)),Br(po(o[2],s[2],u)),Df(po(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function iu(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Cs(r,t){var e=Qe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Ms=Math.round;function xi(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Qe(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var kc=1e-4;function Rr(r){return r-kc}function yo(r){return Ms(r*1e3)/1e3}function Lf(r){return Ms(r*1e4)/1e4}function BT(r){return"matrix("+yo(r[0])+","+yo(r[1])+","+yo(r[2])+","+yo(r[3])+","+Lf(r[4])+","+Lf(r[5])+")"}var NT={left:"start",right:"end",center:"middle",middle:"middle"};function FT(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function zT(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function VT(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Bm(r){return r&&!!r.image}function GT(r){return r&&!!r.svgElement}function HT(r){return Bm(r)||GT(r)}function Nm(r){return r.type==="linear"}function Fm(r){return r.type==="radial"}function WT(r){return r&&(r.type==="linear"||r.type==="radial")}function au(r){return"url(#"+r+")"}function zm(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function Vm(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*es,i=j(r.scaleX,1),a=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,u=[];return(t||e)&&u.push("translate("+t+"px,"+e+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+Ms(o*es)+"deg, "+Ms(s*es)+"deg)"),u.join(" ")}var $T=function(){return nt.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Pf=Array.prototype.slice;function lr(r,t,e){return(t-r)*e+r}function qu(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Nc,u=e;if(jt(e)){var l=ZT(e);s=l,(l===1&&!ht(e[0])||l===2&&!ht(e[0][0]))&&(o=!0)}else if(ht(e)&&!Ss(e))s=_o;else if(H(e))if(!isNaN(+e))s=_o;else{var f=Qe(e);f&&(u=f,s=aa)}else if(eu(e)){var h=B({},u);h.colorStops=N(e.colorStops,function(v){return{offset:v.offset,color:Qe(v.color)}}),Nm(e)?s=Rf:Fm(e)&&(s=Ef),u=h}a===0?this.valType=s:(s!==this.valType||s===Nc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:Am[n]||jh(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=So(i),l=Fc(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?zi:t[u];if((So(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(So(a))a===ss?qu(m,v[i],d[i],y):UT(m,v[i],d[i],y);else if(Fc(a)){var _=v[i],S=d[i],b=a===Rf;t[u]={type:b?"linear":"radial",x:lr(_.x,S.x,y),y:lr(_.y,S.y,y),colorStops:N(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:lr(w.offset,C.offset,y),color:os(qu([],w.color,C.color,y))}}),global:S.global},b?(t[u].x2=lr(_.x2,S.x2,y),t[u].y2=lr(_.y2,S.y2,y)):t[u].r=lr(_.r,S.r,y)}else if(l)qu(m,v[i],d[i],y),n||(t[u]=os(m));else{var x=lr(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===_o?t[n]=t[n]+i:e===aa?(Qe(t[n],zi),mo(zi,zi,i,1),t[n]=os(zi)):e===ss?mo(t[n],t[n],i,1):e===Gm&&Bc(t[n],t[n],i,1)},r}(),KT=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Yh("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ut(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,as(l),i),this._trackKeys.push(s)}u.addKeyframe(t,as(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Qh=KT;function li(){return new Date().getTime()}var jT=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=li()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Af(n),!e._paused&&e.update())}Af(n)},t.prototype.start=function(){this._running||(this._time=li(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=li(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=li()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Qh(e,n.loop);return this.addAnimator(i),i},t}(Fe);const QT=jT;var JT=300,Ku=nt.domSupported,ju=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=N(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),zc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vc=!1;function Of(r){var t=r.pointerType;return t==="pen"||t==="touch"}function tC(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Qu(r){r&&(r.zrByTouch=!0)}function eC(r,t){return pe(r.dom,new rC(r,t),!0)}function Hm(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var rC=function(){function r(t,e){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Re={mousedown:function(r){r=pe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pe(this.dom,r);var t=r.toElement||r.relatedTarget;Hm(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Vc=!0,r=pe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Vc||(r=pe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pe(this.dom,r),Qu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Re.mousemove.call(this,r),Re.mousedown.call(this,r)},touchmove:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"change"),Re.mousemove.call(this,r)},touchend:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"end"),Re.mouseup.call(this,r),+new Date-+this.__lastTouchMomentWc||r<-Wc}var Kr=[],Hn=[],tl=La(),el=Math.abs,uC=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return qr(this.rotation)||qr(this.x)||qr(this.y)||qr(this.scaleX-1)||qr(this.scaleY-1)||qr(this.skewX)||qr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Hc(n);return}n=n||La(),e?this.getLocalTransform(n):Hc(n),t&&(e?pi(n,t,n):vT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Kr);var n=Kr[0]<0?-1:1,i=Kr[1]<0?-1:1,a=((Kr[0]-n)*e+n)/Kr[0]||0,o=((Kr[1]-i)*e+i)/Kr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||La(),nu(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(pi(Hn,t.invTransform,e),e=Hn);var n=this.originX,i=this.originY;(n||i)&&(tl[4]=n,tl[5]=i,pi(Hn,e,tl),Hn[4]-=n,Hn[5]-=i,e=Hn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Se(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Se(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&el(t[0]-1)>1e-10&&el(t[3]-1)>1e-10?Math.sqrt(el(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){$m(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Kh(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Pa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $m(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Ds(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=Gr(n[0],e.width),l+=Gr(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var rl="__zr_normal__",nl=Pa.concat(["ignore"]),lC=zr(Pa,function(r,t){return r[t]=!0,r},{ignore:!1}),Wn={},fC=new ot(0,0,0,0),Jh=function(){function r(t){this.id=gm(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=fC;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wn,n,f):Ds(Wn,n,f),a.x=Wn.x,a.y=Wn.y,o=Wn.align,s=Wn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Gr(h[0],f.width),v=Gr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ue,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ff:Nf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Qe(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,iu(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var n=t,i=ut(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(rl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===rl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(at(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Yh("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c0||i.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=g[S];M[y]=as(e[y]),vC(e,n,y)}}var b=new Qh(e,!1,!1,h?Lt(d,function(I){return I.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&T&&b.whenWithKeys(0,T,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(l==null?500:l,s?C:n,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}const Ym=Jh;var Xm=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=at(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=at(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function pt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?_C(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),qm),r=(+r).toFixed(t),e?r:+r}function SC(r){return r.sort(function(t,e){return t-e}),r}function fr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return xC(r)}function xC(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Km(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function bC(r,t){var e=zr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=N(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=N(i,function(v){return Math.floor(v)}),s=zr(o,function(v,d){return v+d},0),u=N(i,function(v,d){return v-o[d]});sl&&(l=u[h],f=h);++o[f],u[f]=0,++s}return N(o,function(v){return v/n})}function wC(r,t){var e=Math.max(fr(r),fr(t)),n=r+t;return e>qm?n:Rt(n,e)}function jm(r){var t=Math.PI*2;return(r%t+t)%t}function Is(r){return r>-Xc&&r=10&&t++,t}function Qm(r,t){var e=tv(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Hr(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function MC(r){return!isNaN(Hr(r))}function Jm(){return Math.round(Math.random()*9)}function t0(r,t){return t===0?r:t0(t,r%t)}function Zc(r,t){return r==null?t:t==null?r:r*t/t0(r,t)}function st(r){throw new Error(r)}function qc(r,t,e){return(t-r)*e+r}var e0="series\0",r0="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function zf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n=0||a&&at(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var KC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jC=Ea(KC),QC=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return jC(this,t,e)},r}(),Vf=new Ka(50);function JC(r){if(typeof r=="string"){var t=Vf.get(r);return t&&t.image}else return r}function iv(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Vf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!lu(t)&&a.pending.push(o)):(t=kn.loadImage(r,jc,jc),t.__zrImageSrc=r,Vf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function jc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=fe(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function l0(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=fe(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?eM(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=fe(r,n)}return r===""&&(r=t.placeholder),r}function eM(r,t,e,n){for(var i=0,a=0,o=r.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=u0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&sl(e,r.substring(s,l),t,o),sl(e,u[2],t,o,u[1]),s=ol.lastIndex}si){b>0?(m.tokens=m.tokens.slice(0,b),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=fe(x.text,M);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=JC(R),lu(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=d&&n!=null?n-S:null;E!=null&&E0&&d+n.accumWidth>n.width&&(f=t.split(` +`),l=!0),n.accumWidth=d}else{var g=f0(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(` +`);for(var p=0;p=33&&t<=383}var sM=zr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function uM(r){return oM(r)?!!sM[r]:!0}function f0(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Gf="__zr_style_"+Math.round(Math.random()*10),Cn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cn[Gf]=!0;var Jc=["z","z2","invisible"],lM=["invisible"],fM=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=ut(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(xo[0]=hl(i)*e+r,xo[1]=fl(i)*n+t,bo[0]=hl(a)*e+r,bo[1]=fl(a)*n+t,l(s,xo,bo),f(u,xo,bo),i=i%Qr,i<0&&(i=i+Qr),a=a%Qr,a<0&&(a=a+Qr),i>a&&!o?a+=Qr:ii&&(wo[0]=hl(v)*e+r,wo[1]=fl(v)*n+t,l(s,wo,s),f(u,wo,u))}var ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jr=[],tn=[],Ve=[],_r=[],Ge=[],He=[],vl=Math.min,cl=Math.max,en=Math.cos,rn=Math.sin,or=Math.abs,Hf=Math.PI,Ar=Hf*2,dl=typeof Float32Array<"u",Vi=[];function pl(r){var t=Math.round(r/Hf*1e8)/1e8;return t%2*Hf}function pM(r,t){var e=pl(r[0]);e<0&&(e+=Ar);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Ar?i=e+Ar:t&&e-i>=Ar?i=e-Ar:!t&&e>i?i=e+(Ar-pl(e-i)):t&&e0&&(this._ux=or(n/As/t)||0,this._uy=or(n/As/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=or(t-this._xi),i=or(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ct.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(ct.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ct.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Vi[0]=i,Vi[1]=a,pM(Vi,o),i=Vi[0],a=Vi[1];var s=a-i;return this.addData(ct.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=en(a)*n+t,this._yi=rn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ct.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ct.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&dl&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ve[0]=Ve[1]=Ge[0]=Ge[1]=Number.MAX_VALUE,_r[0]=_r[1]=He[0]=He[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||or(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case ct.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],x=t[c++],w=t[c++];g=AT(a,o,S,b,p,y,x,w,10),a=x,o=w;break}case ct.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=IT(a,o,S,b,p,y,10),a=p,o=y;break}case ct.A:var T=t[c++],C=t[c++],M=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,t[c++],d&&(s=en(I)*M+T,u=rn(I)*D+C),g=cl(M,D)*vl(Ar,Math.abs(L)),a=en(P)*M+T,o=rn(P)*D+C;break;case ct.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case ct.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m))return;t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case ct.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case ct.L:{h=n[x++],c=n[x++];var C=or(h-l),M=or(c-f);if(C>i||M>a){if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}p+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+M*M;L>_&&(S=h,b=c,_=L)}break}case ct.C:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++],O=n[x++],k=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Vr(l,P,E,O,I,Jr),Vr(f,R,V,k,I,tn),t.bezierCurveTo(Jr[1],tn[1],Jr[2],tn[2],Jr[3],tn[3]);break t}p+=D}t.bezierCurveTo(P,R,E,V,O,k),l=O,f=k;break}case ct.Q:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Ts(l,P,E,I,Jr),Ts(f,R,V,I,tn),t.quadraticCurveTo(Jr[1],tn[1],Jr[2],tn[2]);break t}p+=D}t.quadraticCurveTo(P,R,E,V),l=E,f=V;break}case ct.A:var z=n[x++],W=n[x++],$=n[x++],Z=n[x++],it=n[x++],wt=n[x++],vt=n[x++],Nt=!n[x++],Dt=$>Z?$:Z,xt=or($-Z)>.001,mt=it+wt,Y=!1;if(v){var D=d[y++];p+D>m&&(mt=it+wt*(m-p)/D,Y=!0),p+=D}if(xt&&t.ellipse?t.ellipse(z,W,$,Z,vt,it,mt,Nt):t.arc(z,W,Dt,it,mt,Nt),Y)break t;T&&(s=en(it)*$+z,u=rn(it)*Z+W),l=en(mt)*$+z,f=rn(mt)*Z+W;break;case ct.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var rt=n[x++],Jt=n[x++];if(v){var D=d[y++];if(p+D>m){var Tt=m-p;t.moveTo(h,c),t.lineTo(h+vl(Tt,rt),c),Tt-=rt,Tt>0&&t.lineTo(h+rt,c+vl(Tt,Jt)),Tt-=Jt,Tt>0&&t.lineTo(h+cl(rt-Tt,0),c+Jt),Tt-=rt,Tt>0&&t.lineTo(h,c+cl(Jt-Tt,0));break t}p+=D}t.rect(h,c,rt,Jt);break;case ct.Z:if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}p+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ct,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const er=gM;function $n(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&l>e+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ur+l&&s>e+l&&s>i+l||se||f+li&&(i+=Gi);var c=Math.atan2(u,s);return c<0&&(c+=Gi),c>=n&&c<=i||c+Gi>=n&&c+Gi<=i}function nn(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Sr=er.CMD,an=Math.PI*2,SM=1e-4;function xM(r,t){return Math.abs(r-t)t&&l>n&&l>a&&l>s||l1&&bM(),v=Ot(t,n,a,s,ye[0]),c>1&&(d=Ot(t,n,a,s,ye[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=$t(t,n,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Xt[0]=-u,Xt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=an-1e-4){n=0,i=an;var f=a?1:-1;return o>=Xt[0]+r&&o<=Xt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=an,i+=an);for(var c=0,v=0;v<2;v++){var d=Xt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=an+g),(g>=n&&g<=i||g+an>=n&&g+an<=i)&&(g>Math.PI/2&&g1&&(e||(s+=nn(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case Sr.M:f=a[d++],h=a[d++],u=f,l=h;break;case Sr.L:if(e){if($n(u,l,a[d],a[d+1],t,n,i))return!0}else s+=nn(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.C:if(e){if(yM(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=wM(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.Q:if(e){if(mM(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=TM(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],x=a[d++];d+=1;var w=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=nn(u,l,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(_M(y,m,S,b,b+x,w,t,T,i))return!0}else s+=CM(y,m,S,b,b+x,w,T,i);u=Math.cos(b+x)*_+y,l=Math.sin(b+x)*S+m;break;case Sr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],M=a[d++];if(c=f+C,v=h+M,e){if($n(f,h,c,h,t,n,i)||$n(c,h,c,v,t,n,i)||$n(c,v,f,v,t,n,i)||$n(f,v,f,h,t,n,i))return!0}else s+=nn(c,h,c,v,n,i),s+=nn(f,v,f,h,n,i);break;case Sr.Z:if(e){if($n(u,l,f,h,t,n,i))return!0}else s+=nn(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!xM(l,h)&&(s+=nn(u,l,f,h,n,i)||0),s!==0}function MM(r,t,e){return v0(r,0,!1,t,e)}function AM(r,t,e,n){return v0(r,t,!0,e,n)}var Ls=J({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cn),DM={style:J({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fu.style)},gl=Pa.concat(["invisible","culling","z","z2","zlevel","parent"]),IM=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Nf:n>.2?sC:Ff}else if(e)return Ff}return Nf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(H(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Cs(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ni)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),AM(s,u/l,e,n)))return!0}if(this.hasFill())return MM(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ni,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ni)},t.prototype.createStyle=function(e){return ru(Ls,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=ut(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ru(LM,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ou(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Pi);c0.prototype.type="tspan";const Ps=c0;var PM=J({x:0,y:0},Cn),RM={style:J({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fu.style)};function EM(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var d0=function(r){yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ru(PM,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=EM(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return RM},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Pi);d0.prototype.type="image";const pr=d0;function OM(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var fi=Math.round;function p0(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(fi(n*2)===fi(i*2)&&(r.x1=r.x2=bn(n,s,!0)),fi(a*2)===fi(o*2)&&(r.y1=r.y2=bn(a,s,!0))),r}}function g0(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=bn(n,s,!0),r.y=bn(i,s,!0),r.width=Math.max(bn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(bn(i+o,s,!1)-r.y,o===0?0:1)),r}}function bn(r,t,e){if(!t)return r;var n=fi(r*2);return(n+fi(t))%2===0?n/2:(n+(e?1:-1))/2}var kM=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BM={},y0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kM},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=g0(BM,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?OM(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(et);y0.prototype.type="rect";const At=y0;var id={fill:"#000"},ad=2,NM={style:J({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fu.style)},m0=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=id,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(a-(D-p)-(m-I)-C)/2;M<=L;)P=x[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&yl(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=hd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ps),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=fd("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=ld("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=ad,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Fr,p.opacity=ca(l.opacity,n.opacity,1),sd(p,l),b&&(p.lineWidth=ca(l.lineWidth,n.lineWidth,_),p.lineDash=j(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var w=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ot(oa(p.x,w,p.textAlign),ii(p.y,T,p.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||l&&f){g=this._getOrCreateChild(At),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=j(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(pr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=j(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=ca(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return S0(e)&&(n=[e.fontStyle,e.fontWeight,_0(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ze(n)||e.textFont||e.font},t}(Pi),FM={left:!0,right:1,center:1},zM={top:1,bottom:1,middle:1},od=["fontStyle","fontWeight","fontSize","fontFamily"];function _0(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Wh+"px":r+"px"}function sd(r,t){for(var e=0;e=0,a=!1;if(r instanceof et){var o=x0(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Un(s)||Un(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Un(l.fill)&&Un(s)?(a=!0,n=B({},n),l=B({},l),l.fill=gd(s)):!Un(l.stroke)&&Un(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=gd(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:HM)}return n}function ZM(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:WM)}return e}function qM(r,t,e){var n=at(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:YM(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function ml(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return XM(this,r,t,e);if(r==="blur")return qM(this,r,e);if(r==="select")return ZM(this,r,e)}return e}function KM(r){r.stateProxy=ml;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ml),e&&(e.stateProxy=ml)}function _d(r,t){!D0(r,t)&&!r.__highByOuter&&gr(r,b0)}function Sd(r,t){!D0(r,t)&&!r.__highByOuter&&gr(r,w0)}function bi(r,t){r.__highByOuter|=1<<(t||0),gr(r,b0)}function wi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&gr(r,w0)}function jM(r){gr(r,sv)}function C0(r){gr(r,T0)}function M0(r){gr(r,$M)}function A0(r){gr(r,UM)}function D0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function I0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=av(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){T0(l)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Wf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Uf(r,t,e){L0(r,!0),gr(r,KM),iA(r,t,e)}function nA(r){L0(r,!1)}function Oa(r,t,e,n){n?nA(r):Uf(r,t,e)}function iA(r,t,e){var n=ft(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var bd=["emphasis","blur","select"],aA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ka(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=_l(d),s*=_l(d));var g=(i===a?-1:1)*_l((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+Co(h)*p-To(h)*y,_=(t+n)/2+To(h)*p+Co(h)*y,S=Md([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],x=[(-1*c-p)/o,(-1*v-y)/s],w=Md(b,x);if(Zf(b,x)<=-1&&(w=Hi),Zf(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Hi*1e6)/1e6;w=Hi*2+T%2*Hi}f.addData(l,m,_,o,s,S,w,h,a)}var fA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vA(r){var t=new er;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=er.CMD,u=r.match(fA);if(!u)return t;for(var l=0;lP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/b-1),y1:C*(i/b-1)}}function SA(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function xA(r,t){var e,n=sa(t.r,0),i=sa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Dd(l-u),d=v>Sl&&v%Sl;if(d>Pe&&(v=d),!(n>Pe))r.moveTo(f,h);else if(v>Sl-Pe)r.moveTo(f+n*Xn(u),h+n*on(u)),r.arc(f,h,n,u,l,!c),i>Pe&&(r.moveTo(f+i*Xn(l),h+i*on(l)),r.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*Xn(u),E=n*on(u),V=i*Xn(l),O=i*on(l),k=v>Pe;if(k){var z=t.cornerRadius;z&&(e=SA(z),g=e[0],p=e[1],y=e[2],m=e[3]);var W=Dd(n-i)/2;if(_=We(W,y),S=We(W,m),b=We(W,g),x=We(W,p),C=w=sa(_,S),M=T=sa(b,x),(w>Pe||T>Pe)&&(D=n*Xn(l),I=n*on(l),L=i*Xn(u),P=i*on(u),vPe){var xt=We(y,C),mt=We(m,C),Y=Mo(L,P,R,E,n,xt,c),rt=Mo(D,I,V,O,n,mt,c);r.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C0&&r.arc(f+Y.cx,h+Y.cy,xt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,n,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),!c),mt>0&&r.arc(f+rt.cx,h+rt.cy,mt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,u,l,!c);if(!(i>Pe)||!k)r.lineTo(f+V,h+O);else if(M>Pe){var xt=We(g,M),mt=We(p,M),Y=Mo(V,O,D,I,i,-mt,c),rt=Mo(R,E,L,P,i,-xt,c);r.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),M0&&r.arc(f+Y.cx,h+Y.cy,mt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,i,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),c),xt>0&&r.arc(f+rt.cx,h+rt.cy,xt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.lineTo(f+V,h+O),r.arc(f,h,i,l,u,c)}r.closePath()}}}var bA=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),z0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bA},t.prototype.buildPath=function(e,n){xA(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(et);z0.prototype.type="sector";const dr=z0;var wA=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),V0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new wA},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(et);V0.prototype.type="ring";const G0=V0;function TA(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=TA(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sun[1]){if(s=!1,a)return s;var f=Math.abs(un[0]-sn[1]),h=Math.abs(sn[0]-un[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Bt(r,t,e,n,i,a){vv("update",r,t,e,n,i,a)}function Gt(r,t,e,n,i,a){vv("enter",r,t,e,n,i,a)}function yi(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Pd(r){return!r.isGroup}function XA(r){return r.shape!=null}function n_(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){Pd(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return XA(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Pd(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Bt(o,u,e,ft(o).dataIndex)}}})}function i_(r,t){return N(r,function(e){var n=e[0];n=Bs(n,t.x),n=Ns(n,t.x+t.width);var i=e[1];return i=Bs(i,t.y),i=Ns(i,t.y+t.height),[n,i]})}function ZA(r,t){var e=Bs(r.x,t.x),n=Ns(r.x+r.width,t.x+t.width),i=Bs(r.y,t.y),a=Ns(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function yu(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),J(i,e),new pr(n)):cv(r.replace("path://",""),n,e,"center")}function qA(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=xl(v,d,f,h)/c;return!(p<0||p>1)}function xl(r,t,e,n){return r*n-e*t}function KA(r){return r<=1e-6&&r>=-1e-6}function mu(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=H(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&A(ut(u),function(f){vr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ft(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:J({content:n,formatterParams:s},i)}}function Rd(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function eo(r,t){if(r)if(F(r))for(var e=0;e=0&&s.push(u)}),s}}function l_(r,t){return tt(tt({},r,!0),t,!0)}const cD={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dD={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fs="ZH",gv="EN",Na=gv,cs={},yv={},f_=nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fs)>-1?Fs:Na}():Na;function h_(r,t){r=r.toUpperCase(),yv[r]=new Vt(t),cs[r]=t}function pD(r){if(H(r)){var t=cs[r.toUpperCase()]||{};return r===Fs||r===gv?Q(t):tt(Q(t),Q(cs[Na]),!1)}else return tt(Q(r),Q(cs[Na]),!1)}function gD(r){return yv[r]}function yD(){return yv[Na]}h_(gv,cD);h_(Fs,dD);var mv=1e3,_v=mv*60,xa=_v*60,_e=xa*24,Fd=_e*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Io="{yyyy}-{MM}-{dd}",zd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Io,hour:Io+" "+ua.hour,minute:Io+" "+ua.minute,second:Io+" "+ua.second,millisecond:ua.none},Tl=["year","month","day","hour","minute","second","millisecond"],v_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ln(r,t){return r+="","0000".substr(0,t-r.length)+r}function mi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function mD(r){return r===mi(r)}function _D(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Su(r,t,e,n){var i=cr(r),a=i[Sv(e)](),o=i[_i(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[xu(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[Fa(e)](),h=(f-1)%12+1,c=i[bu(e)](),v=i[wu(e)](),d=i[Tu(e)](),g=n instanceof Vt?n:gD(n||f_)||yD(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ln(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ln(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,ln(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ln(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ln(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ln(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ln(d,3)).replace(/{S}/g,d+"")}function SD(r,t,e,n,i){var a=null;if(H(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},ua);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Su(new Date(r.value),a,i,n)}function c_(r,t){var e=cr(r),n=e[_i(t)]()+1,i=e[xu(t)](),a=e[Fa(t)](),o=e[bu(t)](),s=e[wu(t)](),u=e[Tu(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Vd(r,t,e){var n=ht(r)?cr(r):r;switch(t=t||c_(r,e),t){case"year":return n[Sv(e)]();case"half-year":return n[_i(e)]()>=6?1:0;case"quarter":return Math.floor((n[_i(e)]()+1)/4);case"month":return n[_i(e)]();case"day":return n[xu(e)]();case"half-day":return n[Fa(e)]()/24;case"hour":return n[Fa(e)]();case"minute":return n[bu(e)]();case"second":return n[wu(e)]();case"millisecond":return n[Tu(e)]()}}function Sv(r){return r?"getUTCFullYear":"getFullYear"}function _i(r){return r?"getUTCMonth":"getMonth"}function xu(r){return r?"getUTCDate":"getDate"}function Fa(r){return r?"getUTCHours":"getHours"}function bu(r){return r?"getUTCMinutes":"getMinutes"}function wu(r){return r?"getUTCSeconds":"getSeconds"}function Tu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xD(r){return r?"setUTCFullYear":"setFullYear"}function d_(r){return r?"setUTCMonth":"setMonth"}function p_(r){return r?"setUTCDate":"setDate"}function g_(r){return r?"setUTCHours":"setHours"}function y_(r){return r?"setUTCMinutes":"setMinutes"}function m_(r){return r?"setUTCSeconds":"setSeconds"}function __(r){return r?"setUTCMilliseconds":"setMilliseconds"}function S_(r){if(!MC(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function x_(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Cu=ym;function jf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?cr(r):r;if(isNaN(+u)){if(s)return"-"}else return Su(u,n,e)}if(t==="ordinal")return mf(r)?i(r):ht(r)&&a(r)?r+"":"-";var l=Hr(r);return a(l)?S_(l):mf(r)?i(r):typeof r=="boolean"?r+"":"-"}var Gd=["a","b","c","d","e","f","g"],Cl=function(r,t){return"{"+r+(t==null?"":t)+"}"};function b_(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Pn(r,t){return t=t||"transparent",H(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Hd(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ds=A,wD=["left","right","top","bottom","width","height"],Lo=[["width","left","right"],["height","top","bottom"]];function xv(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Si=xv;lt(xv,"vertical");lt(xv,"horizontal");function $r(r,t,e){e=Cu(e||0);var n=t.width,i=t.height,a=pt(r.left,n),o=pt(r.top,i),s=pt(r.right,n),u=pt(r.bottom,i),l=pt(r.width,n),f=pt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new ot(a+e[3],o+e[0],l,f);return d.margin=e,d}function TD(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var l;if(u==="raw")l=r.type==="group"?new ot(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=$r(J({width:l.width,height:l.height},t),e,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function za(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function Ti(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(Lo[0],0),a=o(Lo[1],1);l(Lo[0],r,i),l(Lo[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(ds(f,function(_){d[_]=r[_]}),ds(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y=0;u--)s=tt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ja(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Vt);s0(Ei,Vt);uu(Ei);hD(Ei);vD(Ei,AD);function AD(r){var t=[];return A(Ei.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return qe(e).main}),r!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const _t=Ei;var w_="";typeof navigator<"u"&&(w_=navigator.platform||"");var Zn="rgba(0, 0, 0, 0.2)";const DD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:w_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var T_=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ce="original",Qt="arrayRows",Me="objectRows",nr="keyedColumns",Nr="typedArray",C_="unknown",tr="column",Oi="row",zt={Must:1,Might:2,Not:3},M_=bt();function ID(r){M_(r).datasetMap=K()}function A_(r,t,e){var n={},i=bv(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=M_(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(g,p){var y=U(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});A(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;mt)return r[n];return r[e-1]}function L_(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:kD(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function BD(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Po,Wi,Ud,Yd="\0_ec_inner",ND=1,P_=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=qd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,qd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Ud(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&A(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=n&&n.replaceMergeMainTypeMap;ID(this),A(e,function(h,c){h!=null&&(_t.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?Q(h):tt(i[c],h,!0))}),l&&l.each(function(h,c){_t.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),f,this);function f(h){var c=ED(this,h,Mt(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=DC(v,c,d);BC(g,h,_t),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;A(g,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=_t.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=B({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),B(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&Po(this)}this._seriesIndices||Po(this)},t.prototype.getOption=function(){var e=Q(this.option);return A(e,function(n,i){if(_t.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Ra(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Yd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function ZD(r,t){return r.join(",")===t.join(",")}const qD=$D;var Ie=A,Va=U,Kd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Al(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Kd.length;e=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=wC(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Au=function(){function r(t){this.data=t.data||(t.sourceFormat===nr?{}:[]),this.sourceFormat=t.sourceFormat||C_,this.seriesLayoutBy=t.seriesLayoutBy||tr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};np=(t={},t[Qt+"_"+tr]={pure:!0,appendData:a},t[Qt+"_"+Oi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Me]={pure:!0,appendData:a},t[nr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Ce]={appendData:a},t[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Ci(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function sp(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ba(r){return new cI(r)}var cI=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=r?null:ut},gte:function(r,t){return r>=t}},pI=function(){function r(t,e){if(!ht(e)){var n="";st(n)}this._opFn=W_[t],this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){return ht(t)?this._opFn(t,this._rvalFloat):this._opFn(Hr(t),this._rvalFloat)},r}(),$_=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ht(t)?t:Hr(t),i=ht(e)?e:Hr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=H(t),u=H(e);s&&(n=u?t:0),u&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),gI=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Hr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function yI(r,t){return r==="eq"||r==="ne"?new gI(r==="eq",t):vr(W_,r)?new pI(r,t):null}var mI=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ps(t,e)},r}();function _I(r,t){var e=new mI,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==tr&&st(o);var s=[],u={},l=r.dimensionsDefine;if(l)A(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";vr(u,y)&&st(_),u[y]=m}});else for(var f=0;f65535?AI:DI}function qn(){return[1/0,-1/0]}function II(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function fp(r,t,e,n,i){var a=X_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=N(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(Ui(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}D>0&&Df-d&&(u=f-d,s.length=u);for(var g=0;gh[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ps(e[a],this._dimensions[a])}Ll={arrayRows:t,objectRows:function(e,n,i,a){return ps(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ps(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),Z_=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Ro(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=he(s)?Nr:Ce,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),g=j(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[Jf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Jf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&vp(a)}var o,s=[],u=[];return A(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&vp(h),s.push(f),u.push(l._getVersionSign())}),n?o=CI(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[aI(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=Q_(i);a>=t&&(t=a+ +(n&&(!a||eh(i)&&!i.noHeader)))}),t}return 0}function RI(r,t,e,n){var i=t.noHeader,a=OI(Q_(t)),o=[],s=t.blocks||[];be(!s||F(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(vr(l,u)){var f=new $_(l[u],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,y=j_(d)(p?B(B({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):rh(o.join(""),i?e:a.html);if(i)return h;var c=jf(t.header,"ordinal",r.useUTC),v=K_(n,r.renderMode).nameStyle;return r.renderMode==="richText"?J_(r,c,v)+a.richText+h:rh('
'+se(c)+"
"+h,e)}function EI(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],N(S,function(b,x){return jf(b,F(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":jf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=K_(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":J_(r,c,m))+(o?"":NI(r,d,g,p,_)):rh((s?"":h)+(a?"":kI(c,!s,m))+(o?"":BI(d,g,p,_)),e)}}function cp(r,t,e,n,i,a){if(!!r){var o=j_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function OI(r){return{html:LI[r],richText:PI[r]}}function rh(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function kI(r,t,e){var n=t?"margin-left:2px":"";return''+se(r)+""}function BI(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],''+N(r,function(o){return se(o)}).join("  ")+""}function J_(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function NI(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function FI(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Pn(n)}function t1(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Pl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Jm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=bD({color:e,type:t,renderMode:n,markerId:i});return H(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?A(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function zI(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=F(s),l=FI(t,e),f,h,c,v;if(o>1||u&&!o){var d=VI(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Ci(i,e,a[0]),h=g.type}else v=f=u?s[0]:s;var p=ev(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return Ga("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[Ga("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ze(_),value:f,valueType:h})].concat(c||[])})}function VI(r,t,e,n,i){var a=t.getData(),o=zr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?A(n,function(h){f(Ci(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Ga("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var xr=bt();function Eo(r,t){return r.getName(t)||r.getId(t)}var gs="__universalTransitionEnabled",Iu=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ba({count:HI,reset:WI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=xr(this).sourceManager=new Z_(this);a.prepareSource();var o=this.getInitialData(e,i);pp(o,this),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,dp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=za(this),a=i?Mu(e):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),tt(e,n.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),zf(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ti(e,a,i)},t.prototype.mergeOption=function(e,n){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=za(this);i&&Ti(this.option,e,i);var a=xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);pp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,dp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!he(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=wv.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Eo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return _t.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(_t);Ne(Iu,vI);Ne(Iu,wv);s0(Iu,_t);function dp(r){var t=r.name;ev(r)||(r.name=GI(r)||t)}function GI(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HI(r){return r.model.getRawData().count()}function WI(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),$I}function $I(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function pp(r,t){A($w(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,lt(UI,t))})}function UI(r,t){var e=nh(r);return e&&e.setOutputEnd((t||this).count()),t}function nh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const rr=Iu;var Iv=function(){function r(){this.group=new Et,this.uid=io("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();nv(Iv);uu(Iv);const Te=Iv;function ao(){var r=bt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var e1=bt(),YI=ao(),Lv=function(){function r(){this.group=new Et,this.uid=io("viewChart"),this.renderTask=ba({plan:XI,reset:ZI}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||yp(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||yp(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){eo(this.group,t)},r.markUpdateMethod=function(t,e){e1(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function gp(r,t,e){r&&Yf(r)&&(t==="emphasis"?bi:wi)(r,e)}function yp(r,t,e){var n=In(r,t),i=t&&t.highlightKey!=null?oA(t.highlightKey):null;n!=null?A(Mt(n),function(a){gp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){gp(a,e,i)})}nv(Lv);uu(Lv);function XI(r){return YI(r.model)}function ZI(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&e1(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),qI[u]}var qI={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const xe=Lv;var zs="\0__throttleOriginMethod",mp="\0__throttleRate",_p="\0__throttleType";function Pv(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function r1(r,t,e,n){var i=r[t];if(!!i){var a=i[zs]||i,o=i[_p],s=i[mp];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Pv(a,e,n==="debounce"),i[zs]=a,i[_p]=n,i[mp]=e}return i}}function ih(r,t){var e=r[t];e&&e[zs]&&(e.clear&&e.clear(),r[t]=e[zs])}var Sp=bt(),xp={itemStyle:Ea(u_,!0),lineStyle:Ea(s_,!0)},KI={lineStyle:"stroke",itemStyle:"fill"};function n1(r,t){var e=r.visualStyleMapper||xp[t];return e||(console.warn("Unkown style type '"+t+"'."),xp.itemStyle)}function i1(r,t){var e=r.visualDrawType||KI[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var jI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=n1(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=i1(r,n),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=B({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Yi=new Vt,QI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=n1(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Yi.option=u[n];var l=i(Yi),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Yi.option.decal&&(o.setItemVisual(s,"decal",Yi.option.decal),Yi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JI={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Sp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Sp(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=i1(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Oo=Math.PI;function tL(r,t){t=t||{},J(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Et,n=new At({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new At({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new hv({shape:{startAngle:-Oo/2,endAngle:-Oo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Oo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Oo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var eL=function(){function r(t,e,n,i){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=K();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";be(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;A(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ba({plan:oL,reset:sL,count:lL}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ba({reset:rL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";be(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,ba({reset:nL,onDirty:aL})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:fL(t)}),t.uid=io("stageHandler"),e&&(t.visualType=e),t},r}();function rL(r){r.overallReset(r.ecModel,r.api,r.payload)}function nL(r){return r.overallProgress&&iL}function iL(){this.agent.dirty(),this.getDownstream().dirty()}function aL(){this.agent&&this.agent.dirty()}function oL(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function sL(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,n){return a1(n)}):uL}var uL=a1(0);function a1(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ah=["symbol","symbolSize","symbolRotate","symbolOffset"],Cp=ah.concat(["symbolKeepAspect"]),dL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&wn(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function sh(r,t,e){for(var n=t.type==="radial"?OL(r,t,e):EL(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ht(r)?[r]:F(r)?r:null}function Rv(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&BL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=N(e,function(a){return a/i}),n/=i)}return[e,n]}var NL=new er(!0);function Gs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Mp(r){return typeof r=="string"&&r!=="none"}function Hs(r){var t=r.fill;return t!=null&&t!=="none"}function Ap(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Dp(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function uh(r,t,e){var n=iv(t.image,t.__image,e);if(lu(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*es),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function FL(r,t,e,n){var i,a=Gs(e),o=Hs(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||NL,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(m=h?sh(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?sh(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?uh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?uh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=Rv(t),T=i[0],C=i[1]);var M=!0;(l||h&ni)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&Dp(r,e),o&&Ap(r,e)):(o&&Ap(r,e),a&&Dp(r,e))),T&&r.setLineDash([])}function zL(r,t,e){var n=t.__image=iv(e.image,t.__image,t,t.onload);if(!(!n||!lu(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function VL(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Fr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=Rv(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Gs(e)&&r.strokeText(i,e.x,e.y),Hs(e)&&r.fillText(i,e.x,e.y)):(Hs(e)&&r.fillText(i,e.x,e.y),Gs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Ip=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h1(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ae(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Cn.opacity:o}(n||t.blend!==e.blend)&&(a||(ae(r,i),a=!0),r.globalCompositeOperation=t.blend||Cn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Wt]){if(this._disposed){this.id;return}var a,o,s;if(U(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wt]=!0,!this._model||n){var u=new qD(this._api),l=this._theme,f=this._model=new R_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},hh);var h={seriesTransition:s,optionChanged:!0};if(i)this[re]={silent:a,updateParams:h},this[Wt]=!1,this.getZr().wakeUp();else{try{jn(this),br.update.call(this,null,h)}catch(c){throw this[re]=null,this[Wt]=!1,c}this._ssr||this._zr.flush(),this[re]=null,this[Wt]=!1,Xi.call(this,a),Zi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||QL&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!nt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Up[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A(Ta,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=kn.createCanvas(),y=Yc(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return A(c,function(_){var S=_.left-u,b=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new At({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new pr({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Bl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Bl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=ya(i,e);return A(o,function(s,u){u.indexOf("Models")>=0&&A(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=ya(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?gL(s,u,n):yL(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(c2,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&fa(s,function(d){var g=ft(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType)||{},!0}else if(g.eventData)return u=B({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(wa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),_L(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&i0(this.getDom(),kv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ta[n.id]},t.prototype.resize=function(e){if(!this[Wt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[re]&&(a==null&&(a=this[re].silent),i=!0,this[re]=null),this[Wt]=!0;try{i&&jn(this),br.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Wt]=!1,o}this[Wt]=!1,Xi.call(this,a),Zi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(U(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!vh[e]){var i=vh[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=wa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(U(n)||(n={silent:!!n}),!!Ws[e.type]&&!!this._model){if(this[Wt]){this._pendingActions.push(e);return}var i=n.silent;Fl.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&nt.browser.weChat&&this._throttledZrFlush(),Xi.call(this,i),Zi.call(this,i)}},t.prototype.updateLabelLayout=function(){Ee.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),kl(h,!0),kl(h,!1),c.plan()},kl=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!nt.node&&!nt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(yi(y))return;if(y instanceof et&&sA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}Wp=function(h){return new(function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){bi(d,g),ve(h)},v.prototype.leaveEmphasis=function(d,g){wi(d,g),ve(h)},v.prototype.enterBlur=function(d){jM(d),ve(h)},v.prototype.leaveBlur=function(d){C0(d),ve(h)},v.prototype.enterSelect=function(d){M0(d),ve(h)},v.prototype.leaveSelect=function(d){A0(d),ve(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(E_))(h)},M1=function(h){function c(v,d){for(var g=0;g=0)){Yp.push(e);var a=u1.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function R1(r,t){vh[r]=t}function x2(r,t,e){var n=jL("registerMap");n&&n(r,t,e)}var b2=TI;Nn(Ev,jI);Nn(Lu,QI);Nn(Lu,JI);Nn(Ev,dL);Nn(Lu,pL);Nn(S1,ZL);L1(k_);P1(e2,nI);R1("default",tL);ir({type:Mn,event:Mn,update:Mn},Kt);ir({type:fs,event:fs,update:fs},Kt);ir({type:ma,event:ma,update:ma},Kt);ir({type:hs,event:hs,update:hs},Kt);ir({type:_a,event:_a,update:_a},Kt);I1("light",hL);I1("dark",vL);function qi(r){return r==null?0:r.length||1}function Xp(r){return r}var w2=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Xp,this._newKeyGetter=i||Xp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Ki=U,wr=N,L2=typeof Int32Array>"u"?Array:Int32Array,P2="e\0\0",Zp=-1,R2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E2=["_approximateExtent"],qp,zo,ji,Qi,Gl,Vo,Hl,O2=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;O1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Ce;if(u&&!i.pure)for(var l=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():Ki(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ki(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ki(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;GM(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Gl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!q(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Xh(arguments)))})},r.internalField=function(){qp=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new L2(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[e]=u}}}(),r}();const F1=O2;function z1(r,t){Cv(r)||(r=Mv(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=K(),a=[],o=B2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&N1(o),u=n===r.dimensionsDefine,l=u?B1(r):k1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=K(f),c=new Y_(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function B2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function N2(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var i=0;n.hasOwnProperty(r+i);)i++;r+=i}return t.set(r,!0),r}var F2=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function z2(r){var t=r.get("coordinateSystem"),e=new F2(t),n=V2[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var V2={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",qt).models[0],a=r.getReferringComponents("yAxis",qt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Qn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Qn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",qt).models[0];t.coordSysDims=["single"],e.set("single",i),Qn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",qt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Qn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Qn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Qn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Qn(r){return r.get("type")==="category"}function G2(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;H2(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(A(a,function(m,_){H(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;A(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function H2(r){return!O1(r.schema)}function Mi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function W2(r,t){return Mi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $2(r,t){var e=r.get("coordinateSystem"),n=Tv.get(e),i;return t&&t.coordSysDims&&(i=N(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=ch(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function U2(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Pu(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Mv(r)):(i=n.getSource(),a=i.sourceFormat===Ce);var o=z2(t),s=$2(t,o),u=e.useEncodeDefaulter,l=q(u)?u:u?lt(A_,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=z1(i,f),c=U2(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=G2(t,{schema:h,store:v}),g=new F1(h,t);g.setCalculationInfo(d);var p=c!=null&&Y2(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function Y2(r){if(r.sourceFormat===Ce){var t=X2(r.data||[]);return!F(Qa(t))}}function X2(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();uu(V1);const yr=V1;var Z2=0,q2=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Z2}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&N(n,K2);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!H(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function K2(r){return U(r)&&r.value!=null?r.value:r+""}const dh=q2;function ph(r){return r.type==="interval"||r.type==="log"}function j2(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Qm(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=G1(o),u=i.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return Q2(u,r),i}function Wl(r){var t=Math.pow(10,tv(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function G1(r){return fr(r)+2}function Kp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Q2(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Kp(r,0,t),Kp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ru(r,t){return r>=t[0]&&r<=t[1]}function Eu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ou(r,t){return r*(t[1]-t[0])+t[0]}var H1=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dh({})),F(i)&&(i=new dh({categories:N(i,function(a){return U(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ru(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ou(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yr);yr.registerClass(H1);const W1=H1;var cn=Rt,$1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ru(e,this._extent)},t.prototype.normalize=function(e){return Eu(e,this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=G1(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:cn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function X1(r){var t=eP(r),e=[];return A(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),g=pt(n.get("barMaxWidth"),s),p=pt(n.get("barMinWidth")||(q1(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:zv(a),stackId:Fv(n)})}),rP(e)}function rP(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=ut(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function nP(r,t,e){if(r&&t){var n=r[zv(t)];return n!=null&&e!=null?n[Fv(e)]:n}}function iP(r,t){var e=Y1(r,t),n=X1(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=Fv(i),l=n[zv(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function aP(r){return{seriesType:r,plan:ao(),reset:function(t){if(!!Z1(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Mi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=oP(i,a),d=q1(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Ke(b*3),w=d&&u&&Ke(b*3),T=d&&Ke(b),C=n.master.getRect(),M=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?p:o,D),R=I.get(s,D),E=v,V=void 0;h&&(V=+P-I.get(o,D));var O=void 0,k=void 0,z=void 0,W=void 0;if(c){var $=n.dataToPoint([P,R]);if(h){var Z=n.dataToPoint([V,R]);E=Z[0]}O=E,k=$[1]+m,z=$[0]-E,W=y,Math.abs(z)>>1;r[i][1]i&&(this._approxInterval=i);var s=Go.length,u=Math.min(sP(Go,this._approxInterval,0,s),s-1);this._interval=Go[u][1],this._minLevelUnit=Go[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return ht(e)?e:+cr(e)},t.prototype.contain=function(e){return Ru(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Eu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.type="time",t}(oo),Go=[["second",mv],["minute",_v],["hour",xa],["quarter-day",xa*6],["half-day",xa*12],["day",_e*1.2],["half-week",_e*3.5],["week",_e*7],["month",_e*31],["quarter",_e*95],["half-year",Fd/2],["year",Fd]];function uP(r,t,e,n){var i=cr(t),a=cr(e),o=function(d){return Vd(i,d,n)===Vd(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function lP(r,t){return r/=_e,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fP(r){var t=30*_e;return r/=t,r>6?6:r>3?3:r>2?2:1}function hP(r){return r/=xa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function jp(r,t){return r/=t?_v:mv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vP(r){return Qm(r,!0)}function cP(r,t,e){var n=new Date(r);switch(mi(t)){case"year":case"month":n[d_(e)](0);case"day":n[p_(e)](1);case"hour":n[g_(e)](0);case"minute":n[y_(e)](0);case"second":n[m_(e)](0),n[__(e)](0)}return n.getTime()}function dP(r,t,e,n){var i=1e4,a=v_,o=0;function s(M,D,I,L,P,R,E){for(var V=new Date(D),O=D,k=V[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=Lt(N(l,function(M){return Lt(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)a*=10;var s=[Rt(mP(n[0]/a)*a),Rt(yP(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ca.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Le(e)/Le(this.base),Ru(e,this._extent)},t.prototype.normalize=function(e){return e=Le(e)/Le(this.base),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Ou(e,this._extent),Ho(this.base,e)},t.type="log",t}(yr),j1=Vv.prototype;j1.getMinorTicks=Ca.getMinorTicks;j1.getLabel=Ca.getLabel;function Wo(r,t){return gP(r,fr(t))}yr.registerClass(Vv);const _P=Vv;var SP=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[bP[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=xP[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),xP={min:"_determinedMin",max:"_determinedMax"},bP={min:"_dataMin",max:"_dataMax"};function Q1(r,t,e){var n=r.rawExtentInfo;return n||(n=new SP(r,t,e),r.rawExtentInfo=n,n)}function $o(r,t){return t==null?null:Ss(t)?NaN:r.parse(t)}function J1(r,t){var e=r.type,n=Q1(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=Y1("bar",o),u=!1;if(A(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=X1(s),f=wP(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function wP(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=nP(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;A(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function Jp(r,t){var e=t,n=J1(r,e),i=n.extent,a=e.get("splitNumber");r instanceof _P&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function TP(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new W1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new pP({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(yr.getClass(t)||oo)}}function CP(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function so(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):H(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):q(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Gv(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Gv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function MP(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof W1?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=so(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var IP=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tg=[],LP={registerPreprocessor:L1,registerProcessor:P1,registerPostInit:y2,registerPostUpdate:m2,registerUpdateLifecycle:Bv,registerAction:ir,registerCoordinateSystem:_2,registerLayout:S2,registerVisual:Nn,registerTransform:b2,registerLoading:R1,registerMap:x2,registerImpl:KL,PRIORITY:f2,ComponentModel:_t,ComponentView:Te,SeriesModel:rr,ChartView:xe,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Te.registerClass(r)},registerSeriesModel:function(r){rr.registerClass(r)},registerChartView:function(r){xe.registerClass(r)},registerSubTypeDefaulter:function(r,t){_t.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){mC(r,t)}};function le(r){if(F(r)){A(r,function(t){le(t)});return}at(tg,r)>=0||(tg.push(r),q(r)&&(r={install:r}),r.install(LP))}var Ua=bt();function PP(r){return r.type==="category"?EP(r):kP(r)}function RP(r,t){return r.type==="category"?OP(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function EP(r){var t=r.getLabelModel(),e=rS(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function rS(r,t){var e=nS(r,"labels"),n=Hv(t),i=iS(e,n);if(i)return i;var a,o;return q(n)?a=sS(r,n):(o=n==="auto"?BP(r):n,a=oS(r,o)),aS(e,n,{labels:a,labelCategoryInterval:o})}function OP(r,t){var e=nS(r,"ticks"),n=Hv(t),i=iS(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(n))a=sS(r,n,!0);else if(n==="auto"){var s=rS(r,r.getLabelModel());o=s.labelCategoryInterval,a=N(s.labels,function(u){return u.tickValue})}else o=n,a=oS(r,o,!0);return aS(e,n,{ticks:a,tickCategoryInterval:o})}function kP(r){var t=r.scale.getTicks(),e=so(r);return{labels:N(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function nS(r,t){return Ua(r)[t]||(Ua(r)[t]=[])}function iS(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=ou(e({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Ua(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function FP(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function oS(r,t,e){var n=so(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=tS(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function sS(r,t,e){var n=r.scale,i=so(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var eg=[0,1],zP=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Km(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),rg(n,i.count())),Lr(t,eg,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),rg(n,i.count()));var a=Lr(t,n,eg,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=RP(this,e),i=n.ticks,a=N(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return VP(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=N(n,function(a){return N(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return PP(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return NP(this)},r}();function rg(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function VP(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;A(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Rt(v),d=Rt(d),h?v>d:vi&&(i+=Ji);var v=Math.atan2(s,o);if(v<0&&(v+=Ji),v>=n&&v<=i||v+Ji>=n&&v+Ji<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function Us(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function uS(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Oe=[];function UP(r,t,e){var n=uS(t.x,t.y,t.width,t.height,r.x,r.y,Oe);return e.set(Oe[0],Oe[1]),n}function YP(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),Ct.fromArray(r[2]),X.sub(je,Be,dt),X.sub(Xe,Ct,dt);var e=je.len(),n=Xe.len();if(!(e<.001||n<.001)){je.scale(1/e),Xe.scale(1/n);var i=je.dot(Xe),a=Math.cos(t);if(a1&&X.copy(Zt,Ct),Zt.toArray(r[1])}}}}function XP(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),Ct.fromArray(r[2]),X.sub(je,dt,Be),X.sub(Xe,Ct,dt);var n=je.len(),i=Xe.len();if(!(n<.001||i<.001)){je.scale(1/n),Xe.scale(1/i);var a=je.dot(t),o=Math.cos(e);if(a=u)X.copy(Zt,Ct);else{Zt.scaleAndAdd(Xe,s/Math.tan(Math.PI/2-f));var h=Ct.x!==dt.x?(Zt.x-dt.x)/(Ct.x-dt.x):(Zt.y-dt.y)/(Ct.y-dt.y);if(isNaN(h))return;h<0?X.copy(Zt,dt):h>1&&X.copy(Zt,Ct)}Zt.toArray(r[1])}}}}function ig(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function ZP(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=rs([],n[1],n[0],o/i),u=rs([],n[1],n[2],o/a),l=rs([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&b(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,C,M){T!==0&&(l=!0);for(var D=C;D0)for(var I=0;I0;I--){var E=M[I-1]*R;b(-E,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return l}function qP(r,t,e,n){return cS(r,"x","width",t,e,n)}function dS(r,t,e,n){return cS(r,"y","height",t,e,n)}function pS(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ot(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),at(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Bt(n,l,e,u)}else if(n.attr(l),!Ri(n).valueAnimation){var h=j(n.style.opacity,1);n.style.opacity=0,Gt(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};Uo(v,l,Yo),Uo(v,n.states.select,Yo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Uo(d,l,Yo),Uo(d,n.states.emphasis,Yo)}rD(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=QP(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Bt(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Gt(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}();const tR=JP;var Ul=bt();function eR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Ul(e).labelManager;i||(i=Ul(e).labelManager=new tR),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Ul(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var rR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(_t);const nR=rR;var gh=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qt).models[0]},t.type="cartesian2dAxis",t}(_t);Ne(gh,IP);var gS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},iR=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gS),Wv=tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},gS),aR=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Wv),oR=J({logBase:10},Wv);const sR={category:iR,value:Wv,time:aR,log:oR};var uR={value:1,category:1,time:1,log:1};function og(r,t,e,n){A(uR,function(i,a){var o=tt(tt({},sR[a],!0),n,!0),s=function(u){G(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=za(this),v=c?Mu(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=sg(f),c&&Ti(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dh.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",sg)}function sg(r){return r.type||(r.data?"category":"value")}var lR=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Lt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const fR=lR;var yh=["x","y"];function ug(r){return r.type==="interval"||r.type==="time"}var hR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ug(e)||!ug(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=nu([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Se(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Se(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new ot(i,a,o,s)},t}(fR),vR=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(GP);const cR=vR;function mh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ia(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function lg(r){return r.get("coordinateSystem")==="cartesian2d"}function fg(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,qt).models[0];t[n]=a}),t}var Yl=Math.log;function dR(r,t,e){var n=oo.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=J1(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=Yl(r.base);l=[Yl(l[0])/c,Yl(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(g)&&isFinite(l[0]);)d=Wl(d),g=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Wl(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Rt(p-m),g<0&&l[0]>=0?(g=0,p=Rt(m)):p>0&&l[1]<=0&&(p=0,g=-Rt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d)}var pR=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yh,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=ut(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;ph(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Jp(g,d),ph(g)&&(s=v))}f.length&&(s||(s=f.pop(),Jp(s.scale,s.model)),A(f,function(p){dR(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){hg(n,"y",o,a)}),A(n.y,function(o){hg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=$r(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(A(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=MP(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),A(this._coordsList,function(l){l.calcAffineTransform()});function u(){A(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),gR(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Is(i-Or)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),cg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(Se(s,s,o),Se(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ln({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ba(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||ht(v))&&(v=[v,v]);var d=f1(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Rn(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,b=l?u:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=SR(e,n,t,r),a=bR(e,n,t,r);if(_R(t,a,i),xR(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=vS(N(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));pS(o)}},axisName:function(r,t,e,n){var i=Ia(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,pg(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Or/180);var d;pg(a)?c=An.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=mR(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Ia(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ft({x:h[0],y:h[1],rotation:c.rotation,silent:An.isLabelSilent(t),style:Wr(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(mu({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=An.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ft(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function mR(r,t,e,n){var i=jm(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Is(i-Or/2)?(o=u?"bottom":"top",a="center"):Is(i-Or*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",iOr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _R(r,t,e){if(!tS(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(ce(a),ce(l)):dg(a,o)&&(n?(ce(o),ce(f)):(ce(a),ce(l))),i===!1?(ce(s),ce(h)):dg(u,s)&&(i?(ce(u),ce(c)):(ce(s),ce(h)))}}function ce(r){r&&(r.ignore=!0)}function dg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=qh([]);return Kh(i,i,-r.rotation),e.applyTransform(pi([],i,r.getLocalTransform())),n.applyTransform(pi([],i,t.getLocalTransform())),e.intersect(n)}}function pg(r){return r==="middle"||r==="center"}function yS(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u=0||r===t}function DR(r){var t=$v(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=_h(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),os)return!0;if(o){var u=$v(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Sn(t).pointerEl=new jA[a.type](mg(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Sn(t).labelEl=new Ft(mg(e.label));t.add(a),Sg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Sn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Sn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Sg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=yu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){xm(l.event)},onmousedown:ql(this._onHandleDragMove,this,0,0),drift:ql(this._onHandleDragMove,this),ondragend:ql(this._onHandleDragEnd,this)}),n.add(i)),xg(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,r1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){_g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Kl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Kl(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Kl(i)),Sn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ih(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function _g(r,t,e,n){wS(Sn(e).lastProp,n)||(Sn(e).lastProp=n,t?Bt(e,n,r):(e.stopAnimation(),e.attr(n)))}function wS(r,t){if(U(r)&&U(t)){var e=!0;return A(t,function(n,i){e=e&&wS(r[i],n)}),!!e}else return r===t}function Sg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Kl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xg(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const zR=FR;function VR(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function GR(r,t,e,n,i){var a=e.get("value"),o=TS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Cu(s.get("padding")||0),l=s.getFont(),f=ou(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),HR(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Wr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function HR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function TS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Gv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function CS(r,t,e){var n=La();return Kh(n,n,e.rotation),Mf(n,n,e.position),pv([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function WR(r,t,e,n,i,a){var o=mS.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),GR(t,n,i,a,{position:CS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $R(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function UR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var YR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=bg(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=VR(a),v=XR[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=mh(u.model,i);WR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=mh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=CS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=bg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(zR);function bg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var XR={line:function(r,t,e){var n=$R([t,e[0]],[t,e[1]],wg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:UR([t-n/2,e[0]],[n,i],wg(r))}}};function wg(r){return r.dim==="x"?0:1}const ZR=YR;var qR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(_t);const KR=qR;var hr=bt(),jR=A;function MS(r,t,e){if(!nt.node){var n=t.getZr();hr(n).records||(hr(n).records={}),QR(n,t);var i=hr(n).records[r]||(hr(n).records[r]={});i.handler=e}}function QR(r,t){if(hr(r).initialized)return;hr(r).initialized=!0,e("click",lt(Tg,"click")),e("mousemove",lt(Tg,"mousemove")),e("globalout",tE);function e(n,i){r.on(n,function(a){var o=eE(t);jR(hr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),JR(o.pendings,t)})}}function JR(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function tE(r,t,e){r.handler("leave",null,e)}function Tg(r,t,e,n){t.handler(r,e,n)}function eE(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xh(r,t){if(!nt.node){var e=t.getZr(),n=(hr(e).records||{})[r];n&&(hr(e).records[r]=null)}}var rE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";MS("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){xh("axisPointer",n)},t.prototype.dispose=function(e,n){xh("axisPointer",n)},t.type="axisPointer",t}(Te);const nE=rE;function AS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=In(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(g)||[]}else e=u.dataToPoint(a.getValues(N(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Cg=bt();function iE(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||gt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ms(i)&&(i=AS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=ms(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||ms(i),c={},v={},d={list:[],map:{}},g={showPointer:lt(oE,v),showTooltip:lt(sE,d)};A(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=hE(l,S);if(!h&&_&&(!l||w)){var T=w&&w.value;T==null&&!u&&(T=x.pointToData(i)),T!=null&&Mg(S,T,g,!1,c)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Ag(S),Ag(y)))),p[y.key]=w}})}),A(p,function(y,m){Mg(f[m],y,g,!0,c)}),uE(v,f,c),lE(d,i,r,o),fE(f,o,e),c}}function Mg(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=aE(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function aE(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),A(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function oE(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function sE(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ya(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function uE(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function lE(r,t,e,n){if(ms(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function fE(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Cg(n)[i]||{},o=Cg(n)[i]={};A(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];A(a,function(l,f){!o[f]&&u.push(l)}),A(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function hE(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Ag(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ms(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function DS(r){_S.registerAxisPointerClass("CartesianAxisPointer",ZR),r.registerComponentModel(KR),r.registerComponentView(nE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wR(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iE)}function vE(r){le(bS),le(DS)}var Dg="\0_ec_interaction_mutex";function cE(r,t,e){var n=IS(r);n[t]=e}function dE(r,t,e){var n=IS(r),i=n[t];i===e&&(n[t]=null)}function IS(r){return r[Dg]||(r[Dg]={})}ir({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Kt);var pE={axisPointer:1,tooltip:1,brush:1};function gE(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!pE.hasOwnProperty(n.mainType)&&i&&i.model!==e}function LS(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Jn(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Jn(s,[0,o]),i=a=Jn(s,[i,a]),n=0}t[0]=Jn(t[0],e),t[1]=Jn(t[1],e);var u=jl(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Jn(t[n],f);var h;return h=jl(t,n),i!=null&&(h.sign!==u.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function jl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Jn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var En=!0,Xa=Math.min,Ai=Math.max,yE=Math.pow,mE=1e4,_E=6,SE=6,Ig="globalPan",xE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Lg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},wE=0,TE=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Et,n._uid="brushController_"+wE++,A(PE,function(i,a){this._handlers[a]=gt(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||cE(n,Ig,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=tt(Q(Lg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;dE(e,Ig,this._uid),A(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};A(e,function(i){n[i.panelId]=Q(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=N(e,function(c){return tt(Q(Lg),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new $a(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var g=a[c]=v!=null?(i[v].__brushOption=d,i[v]):RS(o,PS(o,d));Uv(o,g)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),bh(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Fe);function PS(r,t){var e=ku[t.brushType].createCover(r,t);return e.__brushOption=t,OS(e,t),r.group.add(e),e}function RS(r,t){var e=Yv(t);return e.endCreating&&(e.endCreating(r,t),OS(t,t.__brushOption)),t}function ES(r,t){var e=t.__brushOption;Yv(t).updateCoverShape(r,t,e.range,e)}function OS(r,t){var e=t.z;e==null&&(e=mE),r.traverse(function(n){n.z=e,n.z2=e})}function Uv(r,t){Yv(t).updateCommon(r,t),ES(r,t)}function Yv(r){return ku[r.__brushOption.brushType]}function Xv(r,t,e){var n=r._panels;if(!n)return En;var i,a=r._transform;return A(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function kS(r,t){var e=r._panels;if(!e)return En;var n=t.__brushOption.panelId;return n!=null?e[n]:En}function bh(r){var t=r._covers,e=t.length;return A(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function On(r,t){var e=N(r._covers,function(n){var i=n.__brushOption,a=Q(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function CE(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=yE(i*i+a*a,.5);return o>_E}function BS(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function NS(r,t,e,n){var i=new Et;return i.add(new At({name:"main",style:Zv(e),silent:!0,draggable:!0,cursor:"move",drift:lt(Pg,r,t,i,["n","s","w","e"]),ondragend:lt(On,t,{isEnd:!0})})),A(n,function(a){i.add(new At({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lt(Pg,r,t,i,a),ondragend:lt(On,t,{isEnd:!0})}))}),i}function FS(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ai(i,SE),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,g=h-s,p=d+i,y=g+i;ur(r,t,"main",o,s,d,g),n.transformable&&(ur(r,t,"w",u,l,a,y),ur(r,t,"e",c,l,a,y),ur(r,t,"n",u,l,p,a),ur(r,t,"s",u,v,p,a),ur(r,t,"nw",u,l,a,a),ur(r,t,"ne",c,l,a,a),ur(r,t,"sw",u,v,a,a),ur(r,t,"se",c,v,a,a))}function wh(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Zv(e)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Th(r,a[0]):AE(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?bE[s]+"-resize":null})})}function ur(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(IE(qv(r,t,[[n,i],[n+a,i+o]])))}function Zv(r){return J({strokeNoScale:!0},r.brushStyle)}function zS(r,t,e,n){var i=[Xa(r,e),Xa(t,n)],a=[Ai(r,e),Ai(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function ME(r){return dv(r.group)}function Th(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=r_(e[t],ME(r));return n[i]}function AE(r,t){var e=[Th(r,t[0]),Th(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Pg(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=VS(t,i,a);A(n,function(l){var f=xE[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(zS(s[0][0],s[1][0],s[0][1],s[1][1])),Uv(t,e),On(t,{isEnd:!1})}function DE(r,t,e,n){var i=t.__brushOption.range,a=VS(r,e,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Uv(r,t),On(r,{isEnd:!1})}function VS(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qv(r,t,e){var n=kS(r,t);return n&&n!==En?n.clipPath(e,r._transform):Q(e)}function IE(r){var t=Xa(r[0][0],r[1][0]),e=Xa(r[0][1],r[1][1]),n=Ai(r[0][0],r[1][0]),i=Ai(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function LE(r,t,e){if(!(!r._brushType||RE(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Xv(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ku={lineX:Og(0),lineY:Og(1),rect:{createCover:function(r,t){function e(n){return n}return NS({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=BS(r);return zS(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){FS(r,t,e,n)},updateCommon:wh,contain:Mh},polygon:{createCover:function(r,t){var e=new Et;return e.add(new to({name:"main",style:Zv(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new du({name:"main",draggable:!0,drift:lt(DE,r,t),ondragend:lt(On,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:qv(r,t,e)})},updateCommon:wh,contain:Mh}};function Og(r){return{createCover:function(t,e){return NS({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=BS(t),n=Xa(e[0][r],e[1][r]),i=Ai(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=kS(t,e);if(o!==En&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),FS(t,e,u,i)},updateCommon:wh,contain:Mh}}const EE=TE;function OE(r){return r=Kv(r),function(t){return i_(t,r)}}function kE(r,t){return r=Kv(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function BE(r,t,e){var n=Kv(r);return function(i,a){return n.contain(a[0],a[1])&&!gE(i,t,e)}}function Kv(r){return ot.create(r)}var kg=["x","y","radius","angle","single"],NE=["cartesian2d","polar","singleAxis"];function FE(r){var t=r.get("coordinateSystem");return at(NE,t)>=0}function vi(r){return r+"Axis"}function zE(r,t){var e=K(),n=[],i=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}var Ql=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),VE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Bg(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Bg(e);tt(this.option,e,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=K(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return A(kg,function(i){var a=this.getReferringComponents(vi(i),zC);if(!!a.specified){n=!0;var o=new Ql;A(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(!!h){var c=new Ql;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",qt).models[0];v&&A(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",qt).models[0]&&c.add(d.componentIndex)})}}}a&&A(kg,function(l){if(!!a){var f=i.findComponents({mainType:vi(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Ql;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(vi(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){A(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(vi(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;A(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!b)return!0;_&&(p=!0),S&&(d=!0),b&&(g=!0)}return p&&d&&g})}else ai(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});ai(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ai(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Lr(n[0]+o,n,[0,100],!0):a!=null&&(o=Lr(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=Km(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function qE(r,t,e){var n=[1/0,-1/0];ai(e,function(o){DP(n,o.getData(),t)});var i=r.getAxisModel(),a=Q1(i.axis.scale,i,n).calculate();return[a.min,a.max]}const KE=ZE;var jE={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(vi(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new KE(i,a,s,r),e.push(o.__dzAxisProxy))});var n=K();return A(e,function(i){A(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const QE=jE;function JE(r){r.registerAction("dataZoom",function(t,e){var n=zE(e,t);A(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Fg=!1;function tO(r){Fg||(Fg=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,QE),JE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function eO(r){r.registerComponentModel(WE),r.registerComponentView(XE),tO(r)}var ke=function(){function r(){}return r}(),HS={};function ta(r,t){HS[r]=t}function WS(r){return HS[r]}var rO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(n,i){var a=WS(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(_t);const nO=rO;function iO(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=$r(n,a,i);Si(t.get("orient"),r,t.get("itemGap"),o.width,o.height),TD(r,n,a,i)}function $S(r,t){var e=Cu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new At({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var aO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];A(l,function(d,g){h.push(g)}),new $a(this._featureNames||[],h).add(c).update(c).remove(lt(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],y=h[g],m=l[p],_=new Vt(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===p&&(m.title=a.newTitle),p&&!y){if(oO(p))S={onclick:_.option.onclick,featureName:p};else{var b=WS(p);if(!b)return;S=new b}f[p]=S}else if(S=f[y],!S)return;S.uid=io("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof ke;if(!p&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,p),_.setIconStatus=function(w,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,M[w]&&(T==="emphasis"?bi:wi)(M[w])},S instanceof ke&&S.render&&S.render(_,n,i,a)}function v(d,g,p){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=g instanceof ke&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},b,x;H(_)?(b={},b[p]=_):b=_,H(S)?(x={},x[p]=S):x=S;var w=d.iconPaths={};A(b,function(T,C){var M=yu(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var I=new Ft({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),mu({el:M,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var L=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?bi:wi)(M),o.add(M),M.on("click",gt(g.onclick,g,n,i,C)),w[C]=M})}iO(o,e,i),o.add($S(o.getBoundingRect(),e)),u||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),y=p.textConfig||(p.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&g){var S=_.style||(_.style={}),b=ou(g,Ft.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){A(this._features,function(o){o instanceof ke&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){A(this._features,function(i){i instanceof ke&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){A(this._features,function(i){i instanceof ke&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Te);function oO(r){return r.indexOf("my")===0}const sO=aO;var uO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=nt.browser;if(q(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,y=new Uint8Array(p);p--;)y[p]=d.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=i.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ke);const lO=uO;var zg="__ec_magicType_stack__",fO=[["line","bar"],["stack"]],hO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return A(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Vg[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=Vg[i](c,v,h,a);d&&(J(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var y=p.dim,m=y+"Axis",_=h.getReferringComponents(m,qt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};A(fO,function(h){at(h,i)>=0&&A(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:l,featureName:"magicType"})}},t}(ke),Vg={line:function(r,t,e,n){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===zg;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":zg},n.get(["option","stack"])||{},!0)}};ir({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const vO=hO;var Bu=new Array(60).join("-"),Di=" ";function cO(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function dO(r){var t=[];return A(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(N(e.series,function(v){return v.name})),u=[i.model.getCategories()];A(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var l=[s.join(Di)],f=0;f=0)return!0}var Ah=new RegExp("["+Di+"]+","g");function mO(r){for(var t=r.split(/\n+/g),e=Xs(t.shift()).split(Ah),n=[],i=N(e,function(u){return{name:u,data:[]}}),a=0;a=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function CO(r){var t=jv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return US(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function MO(r){YS(r).snapshots=null}function AO(r){return jv(r).length}function jv(r){var t=YS(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){MO(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ke);ir({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const IO=DO;var LO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],PO=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=Gg(e,t);A(RO,function(o,s){(!n||!n.include||at(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Jl[n.brushType](0,a,i);n.__rangeOffset={offset:Ug[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){A(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&A(a.coordSyses,function(o){var s=Jl[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Jl[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Ug[n.brushType](a.values,o.offset,EO(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:OE(i),isTargetByCursor:BE(i,t,n.coordSysModel),getLinearBrushOtherExtent:kE(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&at(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Gg(e,t),a=0;ar[1]&&r.reverse(),r}function Gg(r,t){return ya(r,t,{includeMainTypes:LO})}var RO={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=K(),o={},s={};!e&&!n&&!i||(A(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),A(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),A(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];A(l.getCartesians(),function(h,c){(at(e,h.getAxis("x").model)>=0||at(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:Wg.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Wg.geo})})}},Hg=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Wg={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(dv(r)),t}},Jl={lineX:lt($g,0),lineY:lt($g,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Dh([i[0],a[0]]),Dh([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=N(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function $g(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Dh(N([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Ug={lineX:lt(Yg,0),lineY:lt(Yg,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return N(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Yg(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function EO(r,t){var e=Xg(r),n=Xg(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Xg(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const XS=PO;var Ih=A,OO=kC("toolbox-dataZoom_"),kO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new EE(i.getZr()),this._brushController.on("brush",gt(this._onBrush,this)).mount()),FO(e,n,this,a,i),NO(e,n)},t.prototype.onclick=function(e,n,i){BO[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new XS(Qv(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),TO(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=LS(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ih(e,function(i,a){n.push(Q(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ke),BO={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(CO(this.ecModel))}};function Qv(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function NO(r,t){r.setIconStatus("back",AO(t)>1?"emphasis":"normal")}function FO(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new XS(Qv(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}RD("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=Qv(n),o=ya(r,a);Ih(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Ih(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:OO+l+h};c[f]=h,i.push(c)}return i});const zO=kO;function VO(r){r.registerComponentModel(nO),r.registerComponentView(sO),ta("saveAsImage",lO),ta("magicType",vO),ta("dataView",wO),ta("dataZoom",zO),ta("restore",IO),le(eO)}var GO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(_t);const HO=GO;function ZS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function qS(r){if(!!nt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function qO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=nt.transformSupported?","+Jv+n:",left"+n+",top"+n),UO+":"+i}function Zg(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!nt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=nt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Jv+":"+o+";":[["top",0],["left",0],[KS,o]]}function KO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function jO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=t1(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(qO(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=x_(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(KO(f)),h!=null&&n.push("padding:"+Cu(h).join("px ")+"px"),n.join(";")+";"}function qg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&eT(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var QO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;qg(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler,f=a.painter.getViewportRoot();pe(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=$O(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=YO+jO(t,!this._firstShow,this._longHide)+Zg(a[0],a[1],!0)+("border-color:"+Pn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(a)&&n.get("trigger")==="item"&&!ZS(n)&&(s=ZO(n,i,a)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||nt.node||!i.getDom())){var o=Qg(a,i);this._ticket="";var s=a.dataByCoordSys,u=sk(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=rk;f.x=a.x,f.y=a.y,f.update(),ft(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=AS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Qg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=ea([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,u;fa(i,function(l){if(ft(l).dataIndex!=null)return s=l,!0;if(ft(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(e,s,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ea([n.tooltipOption],a),u=this._renderMode,l=[],f=Ga("section",{blocks:[],noHeader:!0}),h=[],c=new Pl;A(e,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=TS(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ga("section",{header:x,noHeader:!Ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Gv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",Pn(D.color),u);var I=sp(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=ea([C],a).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=cp(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?` + +`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ft(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=ea([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new Pl;y.marker=m.makeTooltipMarker("item",Pn(y.color),v);var _=sp(l.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),x=_.frag,w=x?cp(b?B({valueFormatter:b},x):x,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ft(n),o=a.tooltipConfig,s=o.option||{};if(H(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=e.positionDefault,c=ea(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new Pl;this._showOrMove(c,function(){var p=Q(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Su(y.axisValue,v,p)),v=b_(v,i,!0)}else if(q(c)){var _=gt(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(n))i=pt(n[0],l),a=pt(n[1],f);else if(U(n)){var g=n;g.width=h[0],g.height=h[1];var p=$r(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(H(n)&&u){var y=ok(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=ik(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=Jg(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Jg(v)?h[1]/2:v==="bottom"?h[1]:0),ZS(e)){var y=ak(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&A(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){nt.node||!n.getDom()||(ih(this,"_updatePosition"),this._tooltipContent.dispose(),xh("itemTooltip",n))},t.type="tooltip",t}(Te);function ea(r,t,e){var n=t.ecModel,i;e?(i=new Vt(e,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function Qg(r,t){return r.dispatchAction||gt(t.dispatchAction,t)}function ik(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function ak(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ok(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Jg(r){return r==="center"||r==="middle"}function sk(r,t,e){var n=rv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ja(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ft(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}const uk=nk;function lk(r){le(DS),r.registerComponentModel(HO),r.registerComponentView(uk),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Kt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Kt)}var fk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(_t),hk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=j(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:Wr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Ft({style:Wr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Hd(d,"_"+e.get("target"))}),g&&v.on("click",function(){Hd(g,"_"+e.get("subtarget"))}),ft(f).eventData=ft(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=$r(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new At({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Te);function vk(r){r.registerComponentModel(fk),r.registerComponentView(hk)}function tc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ci(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var ck=function(r){G(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=Rn(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=dk,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){bi(this.childAt(0))},t.prototype.downplay=function(){wi(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):Bt(c,v,s,n),gu(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Gt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,g,p,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=no(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=f1(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof pr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;ro(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):tc(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Oa(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ft(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Os(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Os(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return RL(e.getItemVisual(n,"symbolSize"))},t}(Et);function dk(r,t){this.parent.drift(r,t)}const ec=ck;function tf(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ty(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function ey(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:no(t),cursorStyle:t.get("cursor")}}var pk=function(){function r(t){this.group=new Et,this._SymbolCtor=t||ec}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ty(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=ey(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(tf(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!tf(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):Bt(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ey(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ty(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(_t);const Lh=yk;var ti=lt,Ph=A,Xo=Et,mk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xo),this.group.add(this._selectorGroup=new Xo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=$r(f,h,c),d=this.layoutInner(e,o,v,a,u,l),g=$r(J({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$S(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=K(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Ph(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var p=new Xo;p.newline=!0,l.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,g,d,v,n,e,_,b,S,h,a);x.on("click",ti(ry,g,null,a,c)).on("mouseover",ti(Rh,y.name,null,a,c)).on("mouseout",ti(Eh,y.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(w){if(!f.get(g)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),I=Qe(M.fill);I&&I[3]===0&&(I[3]=.2,M=B(B({},M),{fill:iu(I,"rgba")}));var L=this._createItem(w,g,d,v,n,e,{},M,D,h,a);L.on("click",ti(ry,null,g,a,c)).on("mouseover",ti(Rh,null,g,a,c)).on("mouseout",ti(Eh,null,g,a,c)),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Ph(e,function(l){var f=l.type,h=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);ro(h,{normal:c,emphasis:v},{defaultText:l.title}),Uf(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=_k(f,a,u,l,v,p,c),b=new Xo,x=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(Sk({itemWidth:d,itemHeight:g,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=n;H(M)&&M?D=M.replace("{name}",n!=null?n:""):q(M)&&(D=M(n));var I=a.get("inactiveColor");b.add(new Ft({style:Wr(x,{text:D,x:T,y:g/2,fill:p?x.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new At({shape:b.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&mu({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),Uf(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Si(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Si("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Te);function _k(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Ph(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:lh(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function Sk(r){var t=r.icon||"roundRect",e=Rn(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ry(r,t,e,n){Eh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Rh(r,t,e,n)}function tx(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new At({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Bt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",H(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ef[o],u=rf[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(ex);const Mk=Ck;function Ak(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Dk(r){le(rx),r.registerComponentModel(Tk),r.registerComponentView(Mk),Ak(r)}function Ik(r){le(rx),le(Dk)}var Lk={label:{enabled:!0},decal:{show:!1}},ay=bt(),Pk={};function Rk(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Q(Lk);tt(n.label,r.getLocaleModel().get("aria"),!1),tt(e.option,n,!1),i(),a();function i(){var l=e.getModel("decal"),f=l.get("show");if(f){var h=K();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),ay(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(q(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=$d(c.ecModel,c.name,Pk,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=c.getRawData(),g={},p=ay(c).scope;v.each(function(b){var x=v.getRawIndex(b);g[x]=b});var y=d.count();d.each(function(b){var x=g[b],w=d.getName(b)||b+"",T=$d(c.ecModel,w,p,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function a(){var l=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=J(f.option,l),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(c,d),p;if(!(c<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);p=o(m,{title:y})}else p=f.get(["general","withoutTitle"]);var _=[],S=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",I]):f.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),V=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kk=function(){function r(t){var e=this._condVal=H(t)?new RegExp(t):Hw(t)?t:null;if(e==null){var n="";st(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):ht(e)?this._condVal.test(t+""):!1},r}(),Bk=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Nk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(rr);const Qk=jk;function ix(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=Jk(i,e),o=n.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=N(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Mi(t,h[0])&&(c=!0,h[0]=v),Mi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Jk(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ht(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function ax(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function tB(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function eB(r,t,e,n,i,a,o,s){for(var u=tB(r,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],p=ix(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||g<0)break;if(Dn(y,m)){if(u){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,x=t[b*2],w=t[b*2+1];x===y&&w===m&&p=n||Dn(x,w))v=y,d=m;else{M=x-l,D=w-f;var P=y-l,R=x-y,E=m-f,V=w-m,O=void 0,k=void 0;if(s==="x"){O=Math.abs(P),k=Math.abs(R);var z=M>0?1:-1;v=y-z*O*o,d=m,I=y+z*k*o,L=m}else if(s==="y"){O=Math.abs(E),k=Math.abs(V);var W=D>0?1:-1;v=y,d=m-W*O*o,I=y,L=m+W*k*o}else O=Math.sqrt(P*P+E*E),k=Math.sqrt(R*R+V*V),C=k/(k+O),v=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=Tr(I,Cr(x,y)),L=Tr(L,Cr(w,m)),I=Cr(I,Tr(x,y)),L=Cr(L,Tr(w,m)),M=I-y,D=L-m,v=y-M*O/k,d=m-D*O/k,v=Tr(v,Cr(l,y)),d=Tr(d,Cr(f,m)),v=Cr(v,Tr(l,y)),d=Cr(d,Tr(f,m)),M=y-v,D=m-d,I=y+M*k/O,L=m+D*k/O}r.bezierCurveTo(h,c,v,d,y,m),h=I,c=L}else r.lineTo(y,m)}l=y,f=m,g+=a}return p}var ox=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),rB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ox},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Dn(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var b=l?ws(s,v,g,y,e,f):ws(u,d,p,m,e,f);if(b>0)for(var x=0;x=0){var S=l?Ot(u,d,p,m,w):Ot(s,v,g,y,w);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t}(et),nB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ox),iB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new nB},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Dn(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function sB(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var u=t.getAxis(i),l=N(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=oB(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new j0(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}}function uB(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&lB(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function lB(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function fB(r,t){return isNaN(r)||isNaN(t)}function hB(r){for(var t=r.length/2;t>0&&fB(r[t*2-2],r[t*2-1]);t--);return t-1}function vy(r,t){return[r[t*2],r[t*2+1]]}function vB(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function fx(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=g.getState("emphasis").style;z.lineWidth=+g.style.lineWidth+1}ft(g).seriesIndex=e.seriesIndex,Oa(g,V,O,k);var W=hy(e.get("smooth")),$=e.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:$,connectNulls:T}),p){var Z=u.getCalculationInfo("stackedOnSeries"),it=0;p.useStyle(J(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),Z&&(it=hy(Z.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:it,smoothMonotone:$,connectNulls:T}),ka(p,e,"areaStyle"),ft(p).seriesIndex=e.seriesIndex,Oa(p,V,O,k)}var wt=function(vt){a._changePolyState(vt)};u.eachItemGraphicEl(function(vt){vt&&(vt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=u,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ft(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=In(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new ec(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else xe.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=In(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else xe.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;md(this._polyline,e),n&&md(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new rB({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new iB({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");q(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);u&&(w=1-w);var T=q(h)?h(d):f*w+c,C=g.getSymbolPath(),M=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(fx(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Ft({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hB(u);f>=0&&(ro(s,no(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?QS(o,v):tc(o,h)},enableTextSetter:!0},cB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=u.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),x=(y?0:-g)*(m?-1:1),w=y?"x":"y",T=vB(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!v){var I=vy(h,C[0]);l.attr({x:I[0]+b,y:I[1]+x}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&l.attr({x:I[0]+b,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=a0(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var R=e===1||a.lastFrameIndex>0?C[0]:0,I=vy(h,R);o&&(D=c.getRawValue(R)),l.attr({x:I[0]+b,y:I[1]+x})}o&&Ri(l).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=eB(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=Mr(c.current,i,o,u),d=Mr(c.stackedOnCurrent,i,o,u),g=Mr(c.next,i,o,u),p=Mr(c.stackedOnNext,i,o,u)),fy(v,g)>3e3||f&&fy(d,p)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),Bt(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Bt(f,{shape:{stackedOnPoints:p}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var w=l.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v));var d=void 0;H(a)?d=gB[a]:q(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,yB))}}}}}function mB(r){r.registerChartView(pB),r.registerSeriesModel(Qk),r.registerLayout(ic("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hx("line"))}var vx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;return i[u]+=o+s/2,i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(rr);rr.registerClass(vx);const cy=vx;var _B=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Pu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=l_(cy.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(cy);const SB=_B;var xB=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),bB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xB},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ks(a,e,ft(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xe),py={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=af(t.x,r.x),s=of(t.x+t.width,i),u=af(t.y,r.y),l=of(t.y+t.height,a),f=si?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=of(t.r,r.r),a=af(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},gy={cartesian2d:function(r,t,e,n,i,a,o,s,u){var l=new At({shape:B({},n),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(r,t,e,n,i,a,o,s,u){var l=!i&&u?dy:dr,f=new l({shape:n,z2:1});f.name="item";var h=cx(i);if(f.calculateTextPosition=wB(h,{isRoundCap:l===dy}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?0:n.startAngle,d[v]=n[v],(s?Bt:Gt)(f,{shape:d},a)}return f}};function AB(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yy(r,t,e,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?Bt:Gt)(e,{shape:u},t,i,null);var f=t?r.baseAxis.model:null;(o?Bt:Gt)(e,{shape:l},f,i)}function my(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function LB(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function cx(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Sy(r,t,e,n,i,a,o,s){var u=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(u);var l=n.getShallow("cursor");l&&r.attr("cursor",l);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=no(n);ro(r,h,{labelFetcher:a,labelDataIndex:e,defaultText:tc(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,TB(r,v==="outside"?f:v,cx(o),n.get(["label","rotate"]))}eD(c,h,a.getRawValue(e),function(g){return QS(t,g)});var d=n.getModel(["emphasis"]);Oa(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),ka(r,n),LB(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(g){g.style&&(g.style.fill=g.style.stroke="none")}))}function PB(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var RB=function(){function r(){}return r}(),xy=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new RB},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f=0?e:null},30,!1);function EB(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function dx(r,t,e){if(rc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function OB(r,t,e){var n=r.type==="polar"?dr:At;return new n({shape:dx(t,e,r),silent:!0,z2:0})}const kB=MB;function BB(r){r.registerChartView(kB),r.registerSeriesModel(SB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,lt(iP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hx("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var jo=Math.PI*2,Ty=Math.PI/180;function px(r,t){return $r(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function gx(r,t){var e=px(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]),F(n)||(n=[n,n]);var a=pt(e.width,t.getWidth()),o=pt(e.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else f=pt(n[0],a)+e.x,h=pt(n[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function NB(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=px(n,e),s=gx(n,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Ty,v=n.get("minAngle")*Ty,d=0;i.each(a,function(M){!isNaN(M)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=jo,x=0,w=c,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,D){var I;if(isNaN(M)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:l,r0:h,r:m?NaN:f});return}m!=="area"?I=g===0&&_?p:M*p:I=jo/d,Ie?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function sf(r){return r.position==="center"}function GB(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*zB,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=pt(I.get("edgeDistance"),l),V=I.get("bleedMargin"),O=D.getModel("labelLine"),k=O.get("length");k=pt(k,l);var z=O.get("length2");if(z=pt(z,l),Math.abs(T.endAngle-T.startAngle)0?"right":"left":$>0?"left":"right"}var Ae=Math.PI,te=0,ar=I.get("rotate");if(ht(ar))te=ar*(Ae/180);else if(L==="center")te=0;else if(ar==="radial"||ar===!0){var Fn=$<0?-W+Ae:-W;te=Fn}else if(ar==="tangential"&&L!=="outside"&&L!=="outer"){var De=Math.atan2($,Z);De<0&&(De=Ae*2+De);var uo=Z>0;uo&&(De=Ae+De),te=De-Ae}if(a=!!te,C.x=it,C.y=wt,C.rotation=te,C.setStyle({verticalAlign:"middle"}),Dt){C.setStyle({align:Nt});var Fu=C.states.select;Fu&&(Fu.x+=C.x,Fu.y+=C.y)}else{var mr=C.getBoundingRect().clone();mr.applyTransform(C.getComputedTransform());var fc=(C.style.margin||0)+2.1;mr.y-=fc/2,mr.height+=fc,e.push({label:C,labelLine:M,position:L,len:k,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new X($,Z),linePoints:vt,textAlign:Nt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:V,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Dt})}}),!a&&r.get("avoidLabelOverlap")&&VB(e,n,i,u,l,c,f,h);for(var g=0;g0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}(xe);const $B=WB;function mx(r,t,e){t=F(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=z1(n,t).dimensions,a=new F1(i,r);return a.initData(n,e),a}var UB=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const YB=UB;var XB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new YB(gt(this.getData,this),gt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=mx(this,{coordDimensions:["value"],encodeDefaulter:lt(LD,this)}),n=[];return e.each(e.mapDimension("value"),function(i){n.push(i)}),this.seats=bC(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){zf(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(rr);const ZB=XB;function qB(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ht(o)&&!isNaN(o)&&o<0)})}}}function KB(r){r.registerChartView($B),r.registerSeriesModel(ZB),mL("pie",r.registerAction),r.registerLayout(lt(NB,"pie")),r.registerProcessor(FB("pie")),r.registerProcessor(qB("pie"))}var jB=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(rr);const QB=jB;var _x=4,JB=function(){function r(){}return r}(),tN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new JB},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,u=e.getContext?e.getContext():e,l=u&&a[0]<_x,f=this.softClipShape,h;if(l){this._ctx=u;return}for(this._ctx=null,h=this._off;h=0;l--){var f=l*2,h=a[f]-s/2,c=a[f+1]-u/2;if(e>=h&&n>=c&&e<=h+s&&n<=c+u)return l}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],u=1/0,l=1/0,f=-1/0,h=-1/0,c=0;c=0&&(l.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const rN=eN;var nN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=ic("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new rN:new JS,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xe);const iN=nN;function aN(r){le(bS),r.registerSeriesModel(QB),r.registerChartView(iN),r.registerLayout(ic("scatter"))}var oN=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),u;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),u=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),u=!0):t.layout=t.layout||"horizontal";var l=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=l[f],c=l[1-f],v=[i,a],d=v[f].get("type"),g=v[1-f].get("type"),p=t.data;if(p&&u){var y=[];A(p,function(S,b){var x;F(S)?(x=S.slice(),S.unshift(b)):F(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:ch(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ch(g),dimsDef:m.slice()}];return mx(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:lt(A_,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sN=["color","borderColor"],uN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){eo(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var h=n.getItemLayout(f);if(s&&My(l,h))return;var c=uf(h,f,!0);Gt(c,{shape:{points:h.ends}},e,f),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}}).update(function(f,h){var c=i.getItemGraphicEl(h);if(!n.hasValue(f)){a.remove(c);return}var v=n.getItemLayout(f);if(s&&My(l,v)){a.remove(c);return}c?(Bt(c,{shape:{points:v.ends}},e,f),gu(c)):c=uf(v),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&a.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Dy(e,this.group);var n=e.get("clip",!0)?lx(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),u=uf(s);lf(u,i,o,a),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,n){Dy(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xe),lN=function(){function r(){}return r}(),fN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new lN},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(et);function uf(r,t,e){var n=r.ends;return new fN({shape:{points:e?hN(n,r):n},z2:100})}function My(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),a=e.getModel("itemStyle").getItemStyle(sN);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const cN=uN;var Sx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(rr);Ne(Sx,oN,!0);const dN=Sx;function pN(r){!r||!F(r.series)||A(r.series,function(t){U(t)&&t.type==="k"&&(t.type="candlestick")})}var gN=["itemStyle","borderColor"],yN=["itemStyle","borderColor0"],mN=["itemStyle","color"],_N=["itemStyle","color0"],SN={seriesType:"candlestick",plan:ao(),performRawSeries:!0,reset:function(r,t){function e(a,o){return o.get(a>0?mN:_N)}function n(a,o){return o.get(a>0?gN:yN)}if(!t.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var u=o.getItemModel(s),l=o.getItemLayout(s).sign,f=u.getItemStyle();f.fill=e(l,u),f.stroke=n(l,u)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}};const xN=SN;var bN={seriesType:"candlestick",plan:ao(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wN(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),u=N(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),l=u[0],f=u[1],h=u[2],c=u[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(g,p){for(var y,m=p.getStore();(y=g.next())!=null;){var _=m.get(s,y),S=m.get(l,y),b=m.get(f,y),x=m.get(h,y),w=m.get(c,y),T=Math.min(S,b),C=Math.max(S,b),M=R(T,_),D=R(C,_),I=R(x,_),L=R(w,_),P=[];E(P,D,0),E(P,M,1),P.push(O(L),O(D),O(I),O(M)),p.setItemLayout(y,{sign:Ly(m,y,S,b,f),initBaseline:S>b?D[a]:M[a],ends:P,brushRect:V(x,w,_)})}function R(k,z){var W=[];return W[i]=z,W[a]=k,isNaN(z)||isNaN(k)?[NaN,NaN]:t.dataToPoint(W)}function E(k,z,W){var $=z.slice(),Z=z.slice();$[i]=vs($[i]+n/2,1,!1),Z[i]=vs(Z[i]-n/2,1,!0),W?k.push($,Z):k.push(Z,$)}function V(k,z,W){var $=R(k,W),Z=R(z,W);return $[i]-=n/2,Z[i]-=n/2,{x:$[0],y:$[1],width:n,height:Z[1]-$[1]}}function O(k){return k[i]=vs(k[i],1),k}}function d(g,p){for(var y=Ke(g.count*4),m=0,_,S=[],b=[],x,w=p.getStore();(x=g.next())!=null;){var T=w.get(s,x),C=w.get(l,x),M=w.get(f,x),D=w.get(h,x),I=w.get(c,x);if(isNaN(T)||isNaN(D)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Ly(w,x,C,M,f),S[i]=T,S[a]=D,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}p.setLayout("largePoints",y)}}};function Ly(r,t,e,n,i){var a;return e>n?a=-1:e0?r.get(i,t-1)<=n?1:-1:1,a}function wN(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=pt(j(r.get("barMaxWidth"),i),i),o=pt(j(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?pt(s,i):Math.max(Math.min(i/2,a),o)}const TN=bN;function CN(r){r.registerChartView(cN),r.registerSeriesModel(dN),r.registerPreprocessor(pN),r.registerVisual(xN),r.registerLayout(TN)}var $e=er.CMD;function ci(r,t){return Math.abs(r-t)<1e-5}function kh(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,u=0;function l(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,R,E){ci(L,R)&&ci(P,E)||i.push(L,P,R,E,R,E)}function h(L,P,R,E,V,O){var k=Math.abs(P-L),z=Math.tan(k/4)*4/3,W=PT:D2&&n.push(i),n}function Bh(r,t,e,n,i,a,o,s,u,l){if(ci(r,e)&&ci(t,n)&&ci(i,o)&&ci(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,S=y*y+m*m;if(_=0&&T=0){u.push(o,s);return}var C=[],M=[];Vr(r,e,i,o,.5,C),Vr(t,n,a,s,.5,M),Bh(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],u,l),Bh(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],u,l)}function MN(r,t){var e=kh(r),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=xx([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=xx([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new X(g*u+r,g*l+t)}function IN(r,t,e){var n=new X;X.sub(n,e,t),n.normalize();var i=new X;X.sub(i,r,t);var a=i.dot(n);return a}function ei(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LN(r,t,e){for(var n=r.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),LN(t,l,f)}function Zs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Zs(r,a[0],i,n),Zs(r,a[1],e-i,n)}return n}function PN(r,t){for(var e=[],n=0;n0)for(var b=n/e,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function js(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=N(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=N(a,function(s,u){return{cp:s,z:VN(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function Cx(r){return ON(r.path,r.count)}function Nh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GN(r,t,e){var n=[];function i(b){for(var x=0;x=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var WN={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Ny(r)&&(l=r,f=t),Ny(t)&&(l=t,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(qs(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?J({delay:s(_,S)},u):u;ac(T,C,M),a(T,C,T,C,M)}}else for(var D=J({dividePath:WN[e],individualDelay:s&&function(V,O,k,z){return s(V+_,S)}},u),I=m?GN(x,w,D):HN(w,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Et.length,v=l?Fy(f,l):Fy(c?t:r,[c?r:t]),d=0,g=0;gMx))for(var i=n.getIndices(),a=UN(n),o=0;o0&&S.group.traverse(function(x){x instanceof et&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Vy(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Gy(r){return F(r)?r.sort().join(","):r}function Ir(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ZN(r,t){var e=K(),n=K(),i=K();return A(r.oldSeries,function(a,o){var s=r.oldData[o],u=Vy(a),l=Gy(u);n.set(l,s),F(u)&&A(u,function(f){i.set(f,{data:s,key:l})})}),A(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.getData(),s=Vy(a),u=Gy(s),l=n.get(u);if(l)e.set(u,{oldSeries:[{divide:Ir(l),data:l}],newSeries:[{divide:Ir(o),data:o}]});else if(F(s)){var f=[];A(s,function(v){var d=n.get(v);d&&f.push({divide:Ir(d),data:d})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{data:o,divide:Ir(o)}]})}else{var h=i.get(s);if(h){var c=e.get(h.key);c||(c={oldSeries:[{data:h.data,divide:Ir(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({data:o,divide:Ir(o)})}}}}),e}function Hy(r,t){for(var e=0;e=0&&i.push({data:t.oldData[s],divide:Ir(t.oldData[s]),dim:o.dimension})}),A(Mt(r.to),function(o){var s=Hy(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({data:u,divide:Ir(u),dim:o.dimension})}}),i.length>0&&a.length>0&&Ax(i,a,n)}function KN(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){A(Mt(n.seriesTransition),function(i){A(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=pn:-l>=pn),v=l>0?l%pn:l%pn+pn,d=!1;c?d=!0:Rr(h)?d=!1:d=v>=Dx==!!f;var g=t+n*df(o),p=e+i*cf(o);this._start&&this._add("M",g,p);var y=Math.round(a*jN);if(c){var m=1/this._p,_=(f?1:-1)*(pn-m);this._add("A",n,i,y,1,+f,t+n*df(o+_),e+i*cf(o+_)),m>.01&&this._add("A",n,i,y,0,+f,g,p)}else{var S=t+n*df(s),b=e+i*cf(s);this._add("A",n,i,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,u,l){for(var f=[],h=this._p,c=1;c"}function s5(r){return""}function oc(r,t){t=t||{};var e=t.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs;return o5(o,s)+se(i.text)+(a?""+e+N(a,function(u){return n(u)}).join(e)+e:"")+s5(o)}return n(r)}function u5(r,t,e){e=e||{};var n=e.newline?` +`:"",i=" {"+n,a=n+"}",o=N(ut(r),function(u){return u+i+N(ut(r[u]),function(l){return l+":"+r[u][l]+";"}).join(n)+a}).join(n),s=N(ut(t),function(u){return"@keyframes "+u+i+N(ut(t[u]),function(l){return l+i+N(ut(t[u][l]),function(f){var h=t[u][l][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function zh(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Wy(r,t,e,n){return kt("svg","root",{width:r,height:t,xmlns:Lx,"xmlns:xlink":Px,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var $y={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},_n="transform-origin";function l5(r,t,e){var n=B({},r.shape);B(n,t),r.buildPath(e,n);var i=new Ix;return i.reset(zm(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function f5(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[_n]=e+"px "+n+"px")}var h5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ex(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function v5(r,t,e){var n=r.shape.paths,i={},a,o;if(A(n,function(u){var l=zh(e.zrId);l.animation=!0,Nu(u,{},l,!0);var f=l.cssAnims,h=l.cssNodes,c=ut(f),v=c.length;if(!!v){o=c[v-1];var d=f[o];for(var g in d){var p=d[g];i[g]=i[g]||{d:""},i[g].d+=p.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=Ex(i,e);return a.replace(o,s)}}function Uy(r){return H(r)?$y[r]?"cubic-bezier("+$y[r]+")":jh(r)?r:"":""}function Nu(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof q0){var s=v5(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l0}).length){var Nt=Ex(w,e);return Nt+" "+m[0]+" both"}}for(var p in u){var s=g(u[p]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var Za=Math.round;function Ox(r){return r&&H(r.src)}function kx(r){return r&&q(r.toDataURL)}function sc(r,t,e,n){n5(function(i,a){var o=i==="fill"||i==="stroke";o&&WT(a)?S5(t,r,i,n):o&&HT(a)?x5(e,r,i,n):r[i]=a},t,e,!1),_5(e,r,n)}function Yy(r){return Rr(r[0]-1)&&Rr(r[1])&&Rr(r[2])&&Rr(r[3]-1)}function c5(r){return Rr(r[4])&&Rr(r[5])}function uc(r,t,e){if(t&&!(c5(t)&&Yy(t))){var n=e?10:1e4;r.transform=Yy(t)?"translate("+Za(t[4]*n)/n+" "+Za(t[5]*n)/n+")":BT(t)}}function Xy(r,t,e){for(var n=r.points,i=[],a=0;a"u"){var h="Image width/height must been given explictly in svg-ssr renderer.";be(s,h),be(u,h)}else if(s==null||u==null){var c=function(m,_){if(m){var S=m.elm,b=m.attrs.width=s||_.width,x=m.attrs.height=u||_.height;S&&(S.setAttribute("width",b),S.setAttribute("height",x))}},v=iv(l,null,r,function(m){c(d,m),c(o,m)});v&&v.width&&v.height&&(s=s||v.width,u=u||v.height)}o=kt("image","img",{href:l,width:s,height:u}),a.width=s,a.height=u}else i.svgElement&&(o=Q(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(!!o){a.patternTransform=Vm(i);var d=kt("pattern","",a,[o]),g=oc(d),p=n.patternCache,y=p[g];y||(y=n.zrId+"-p"+n.patternIdx++,p[g]=y,a.id=y,d=n.defs[y]=kt("pattern",y,a,[o])),t[e]=au(y)}}function b5(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=kt("clipPath",a,o,[Bx(r,e)])}t["clip-path"]=au(a)}function Ky(r){return document.createTextNode(r)}function xn(r,t,e){r.insertBefore(t,e)}function jy(r,t){r.removeChild(t)}function Qy(r,t){r.appendChild(t)}function Nx(r){return r.parentNode}function Fx(r){return r.nextSibling}function pf(r,t){r.textContent=t}var Jy=58,w5=120,T5=kt("","");function Vh(r){return r===void 0}function Ue(r){return r!==void 0}function C5(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function ha(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function qa(r){var t,e=r.children,n=r.tag;if(Ue(n)){var i=r.elm=Rx(n);if(lc(T5,r),F(e))for(t=0;ta?(d=e[u+1]==null?null:e[u+1].elm,zx(r,d,e,i,u)):Qs(r,t,n,a))}function oi(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(lc(r,t),Vh(t.text)?Ue(n)&&Ue(i)?n!==i&&M5(e,n,i):Ue(i)?(Ue(r.text)&&pf(e,""),zx(e,null,i,0,i.length-1)):Ue(n)?Qs(e,n,0,n.length-1):Ue(r.text)&&pf(e,""):r.text!==t.text&&(Ue(n)&&Qs(e,n,0,n.length-1),pf(e,t.text)))}function A5(r,t){if(ha(r,t))oi(r,t);else{var e=r.elm,n=Nx(e);qa(t),n!==null&&(xn(n,t.elm,Fx(e)),Qs(n,[r],0,0))}return t}var D5=0,I5=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=tm(),this.configLayer=tm(),this.storage=e,this._opts=n=B({},n),this.root=t,this._id="zr"+D5++,this._oldVNode=Wy(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Rx("svg");lc(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",A5(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return qy(t,zh(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,a=this._height,o=zh(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(n&&n!=="none"){var u=xi(n),l=u.color,f=u.opacity;this._bgVNode=kt("rect","bg",{width:i,height:a,x:"0",y:"0",id:"0",fill:l,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=kt("g","main",{},[]);this._paintList(e,o,h?h.children:s),h&&s.push(h);var c=N(ut(o.defs),function(g){return o.defs[g]});if(c.length&&s.push(kt("defs","defs",{},c)),t.animation){var v=u5(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=kt("style","stl",{},[],v);s.push(d)}}return Wy(i,a,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},oc(this.renderToVNode({animation:j(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:j(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=xi(t),i=n.color,a=n.opacity;e.elm.setAttribute("fill",i),a<1&&e.elm.setAttribute("fill-opacity",a)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,u,l=0,f=0;f=0&&!(c&&u&&c[g]===u[g]);g--);for(var p=d-1;p>g;p--)o--,s=a[o-1];for(var y=g+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=v.dpr,D=0;D0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Jo:0),this._needsManuallyCompositing),f.__builtin__||Yh("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tt(n[t],e,!0):n[t]=e;for(var i=0;i({})},renderSuccess:{type:Function,default:()=>({})},theme:{type:[String,Object],default:""},autoChangeTheme:{type:Boolean,default:!1}},setup(r){const t=tb(),{themeValue:e}=eb(t),n=va(),i=va(),a=rb(()=>({"--ray-chart-width":r.width,"--ray-chart-height":r.height})),o=async()=>{le([vk,lk,vE,Kk,Xk,Ik,VO,Ok]),le([BB,mB,KB,CN,aN]),le([eR,KN]),le([r.canvasRender?F5:P5])},s=()=>{let h=Mw(r.options);const c=v=>Object.assign(h,v);return r.showAria&&(h=c({aria:{enabled:!0,decal:{show:!0}}})),h},u=h=>{const c=n.value,v=s();i.value=p2(c,h),v&&i.value.setOption(v)},l=h=>{if(r.autoChangeTheme){u(h?"dark":"");return}r.theme||u("")},f=()=>{i.value&&(i.value.clear(),i.value.dispose())};return nb(()=>[e.value,r.showAria],([h])=>{r.autoChangeTheme&&(f(),l(h))}),ib(async()=>{await o()}),ab(()=>{ob(()=>{r.autoChangeTheme?l(e.value):r.theme?u("dark"):u("")})}),sb(()=>{f()}),{rayChartRef:n,cssVarsRef:a,echartInstance:i}},render(){return Pt("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartRef"},null)}}),V5=um({name:"Echart",setup(){const r=va(),t=va(!1),e=va(!1);return{baseOptions:{legend:{data:["\u65E5\u671F"]},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"\u65E5\u671F",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},baseChartRef:r,chartLoading:t,handleLoadingShow:o=>{if(r.value){const{echartInstance:s}=r.value;o?s.showLoading():s.hideLoading()}},chartAria:e,handleAriaShow:o=>{e.value=o}}},render(){return Pt("div",{class:"echart"},[Pt(zn,{title:"RayChart\u7EC4\u4EF6\u4F7F\u7528"},{default:()=>[ub("\u5728\u4F7F\u7528\u8BE5\u7EC4\u4EF6\u65F6, \u4E00\u5B9A\u8981\u6CE8\u610F\u6839\u7EC4\u4EF6\u7684\u9AD8\u5EA6\u521D\u59CB\u5316\u95EE\u9898, \u5982\u679C\u9700\u8981\u4F7F\u7528\u5176\u4F59\u7684\u56FE\u5229, \u9700\u8981\u81EA\u5DF1\u624B\u52A8\u53BB\u6CE8\u518C. \u8BE5\u7EC4\u4EF6\u5B9E\u73B0\u4E86\u81EA\u52A8\u8DDF\u968F\u6A21\u677F\u4E3B\u9898\u5207\u6362\u529F\u80FD, \u4F46\u662F\u52A8\u6001\u5207\u6362\u635F\u8017\u8F83\u5927, \u6240\u4EE5\u9ED8\u8BA4\u4E0D\u542F\u7528")]}),Pt(zn,{title:"\u57FA\u7840\u4F7F\u7528"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{options:this.baseOptions},null)])]}),Pt(zn,{title:"\u80FD\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{autoChangeTheme:!0,options:this.baseOptions},null)])]}),Pt(zn,{title:"\u4E0D\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u6697\u8272\u4E3B\u9898\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{theme:"dark",options:this.baseOptions},null)])]}),Pt(zn,{title:"\u52A0\u8F7D\u52A8\u753B"},{default:()=>[Pt(vc,{value:this.chartLoading,"onUpdate:value":r=>this.chartLoading=r,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u52A0\u8F7D\u52A8\u753B",unchecked:()=>"\u663E\u793A\u52A0\u8F7D\u52A8\u753B"}),Pt("div",{class:"chart--container"},[Pt(na,{ref:"baseChartRef",options:this.baseOptions},null)])]}),Pt(zn,{title:"\u8D34\u753B\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt(vc,{value:this.chartAria,"onUpdate:value":r=>this.chartAria=r,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u8D34\u82B1",unchecked:()=>"\u663E\u793A\u8D34\u82B1"}),Pt("div",{class:"chart--container"},[Pt(na,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{V5 as default}; diff --git a/assets/index.ffef6b45.js.gz b/assets/index.ffef6b45.js.gz new file mode 100644 index 00000000..56a73225 Binary files /dev/null and b/assets/index.ffef6b45.js.gz differ