@nikoyo-spa/app-monitor 0.0.0-patch.3 → 0.0.0-patch.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{business-logic-CsUgQnbN.js → business-logic-BiopEV9K.js} +1 -1
- package/dist/assets/business-logic-BiopEV9K.js.br +0 -0
- package/dist/assets/business-logic-BiopEV9K.js.gz +0 -0
- package/dist/assets/{data-summary-Ds9kOYG5.js → data-summary-DCbqcN8o.js} +1 -1
- package/dist/assets/data-summary-DCbqcN8o.js.br +0 -0
- package/dist/assets/data-summary-DCbqcN8o.js.gz +0 -0
- package/dist/assets/index-CPDhRsqi.js +1 -0
- package/dist/assets/index-CPDhRsqi.js.br +0 -0
- package/dist/assets/index-CPDhRsqi.js.gz +0 -0
- package/dist/assets/{index-ELnadNM_.js → index-Cke6Hrj3.js} +1 -1
- package/dist/assets/index-Cke6Hrj3.js.br +0 -0
- package/dist/assets/index-Cke6Hrj3.js.gz +0 -0
- package/dist/assets/{index-DMPooeiL.js → index-DgWO1vD6.js} +1 -1
- package/dist/assets/index-DgWO1vD6.js.br +0 -0
- package/dist/assets/index-DgWO1vD6.js.gz +0 -0
- package/dist/assets/{main-ctqCe6Vq.js → main-C_XJSqfJ.js} +2 -2
- package/dist/assets/main-C_XJSqfJ.js.br +0 -0
- package/dist/assets/main-C_XJSqfJ.js.gz +0 -0
- package/dist/assets/vpss(monitor)data-summary-CGVw-9fy.css +1 -0
- package/dist/assets/vpss(monitor)data-summary-CGVw-9fy.css.br +0 -0
- package/dist/assets/vpss(monitor)data-summary-CGVw-9fy.css.gz +0 -0
- package/dist/assets/vpss(monitor)index-CVsh8k7Q.css +1 -0
- package/dist/assets/vpss(monitor)index-CVsh8k7Q.css.br +0 -0
- package/dist/assets/vpss(monitor)index-CVsh8k7Q.css.gz +0 -0
- package/dist/main.js +1 -1
- package/dist/main.js.br +0 -0
- package/dist/main.js.gz +0 -0
- package/package.json +8 -8
- package/dist/assets/business-logic-CsUgQnbN.js.br +0 -0
- package/dist/assets/business-logic-CsUgQnbN.js.gz +0 -0
- package/dist/assets/data-summary-Ds9kOYG5.js.br +0 -0
- package/dist/assets/data-summary-Ds9kOYG5.js.gz +0 -0
- package/dist/assets/index-B8u4w97s.js +0 -1
- package/dist/assets/index-B8u4w97s.js.br +0 -0
- package/dist/assets/index-B8u4w97s.js.gz +0 -0
- package/dist/assets/index-DMPooeiL.js.br +0 -0
- package/dist/assets/index-DMPooeiL.js.gz +0 -0
- package/dist/assets/index-ELnadNM_.js.br +0 -0
- package/dist/assets/index-ELnadNM_.js.gz +0 -0
- package/dist/assets/main-ctqCe6Vq.js.br +0 -0
- package/dist/assets/main-ctqCe6Vq.js.gz +0 -0
- package/dist/assets/vpss(monitor)data-summary-8gdPW3Zh.css +0 -1
- package/dist/assets/vpss(monitor)data-summary-8gdPW3Zh.css.br +0 -0
- package/dist/assets/vpss(monitor)data-summary-8gdPW3Zh.css.gz +0 -0
- package/dist/assets/vpss(monitor)index-yqpGLQSq.css +0 -1
- package/dist/assets/vpss(monitor)index-yqpGLQSq.css.br +0 -0
- package/dist/assets/vpss(monitor)index-yqpGLQSq.css.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{inject as sa,ref as Me,getCurrentInstance as Po,computed as Te,onMounted as tf,watch as cr,toRef as Gg,onUnmounted as Gk,unref as Ye,shallowRef as FM,nextTick as Or,defineComponent as ca,onBeforeUnmount as n0,createBlock as er,openBlock as Ne,Transition as HM,withCtx as Dt,withDirectives as Is,createElementVNode as lt,withModifiers as Hn,normalizeClass as ke,normalizeStyle as ln,vShow as mh,createElementBlock as nt,Fragment as gs,createVNode as _r,provide as i0,reactive as Bs,onActivated as Fk,onUpdated as Hk,createCommentVNode as Gt,resolveDynamicComponent as Hv,renderSlot as Ot,isVNode as Wv,toRaw as Wk,toDisplayString as en,toRefs as o0,watchEffect as Uk,resolveComponent as An,resolveDirective as Yk,toHandlerKey as $k,renderList as Af,mergeProps as Y1,normalizeProps as Zk,createTextVNode as $1,vModelText as Xk}from"vue";import{ap as qk,o as Fg,u as WM,t as Kk,aq as UM,x as jk,ar as YM,H as $M,a7 as ra,as as Jk,C as Qk,at as eO,L as _h,R as s0,au as ZM,av as l0,aw as tO,ai as Ps,a4 as ao,ax as rO,Z as el,_ as hi,Y as ii,N as xs,P as XM,$ as jr,ay as Z1,aj as an,W as Ia,a1 as u0,U as xr,az as aO,a8 as qM,E as Hg,aA as X1,ag as nO,X as no,aB as iO,aC as oO,aD as sO,T as Mf,aE as q1,aF as lO,aG as uO,ac as K1,ad as qr,aH as fO,M as vO,aI as cO,a9 as j1,aJ as hO,ab as dO,aK as J1,aL as pO,Q as gO,aM as yO,a5 as mO,a2 as KM,aN as Sh}from"./main-ctqCe6Vq.js";import{useI18n as jM}from"vue-i18n";var _O=/\s/;function SO(r){for(var e=r.length;e--&&_O.test(r.charAt(e)););return e}var bO=/^\s+/;function xO(r){return r&&r.slice(0,SO(r)+1).replace(bO,"")}var Q1=NaN,wO=/^[-+]0x[0-9a-f]+$/i,TO=/^0b[01]+$/i,CO=/^0o[0-7]+$/i,AO=parseInt;function fd(r){if(typeof r=="number")return r;if(qk(r))return Q1;if(Fg(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Fg(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=xO(r);var t=TO.test(r);return t||CO.test(r)?AO(r.slice(2),t?2:8):wO.test(r)?Q1:+r}function MO(r,e,t,a){r.length;for(var n=t+1;n--;)if(e(r[n],n,r))return n;return-1}function Fn(){if(!arguments.length)return[];var r=arguments[0];return WM(r)?r:[r]}function DO(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}function LO(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=fd(t),t=t===t?t:0),e!==void 0&&(e=fd(e),e=e===e?e:0),DO(fd(r),e,t)}var IO=1,PO=2;function RO(r,e,t,a){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var o=t[n];if(o[2]?o[1]!==r[o[0]]:!(o[0]in r))return!1}for(;++n<i;){o=t[n];var s=o[0],l=r[s],u=o[1];if(o[2]){if(l===void 0&&!(s in r))return!1}else{var f=new Kk,v;if(!(v===void 0?UM(u,l,IO|PO,a,f):v))return!1}}return!0}function JM(r){return r===r&&!Fg(r)}function EO(r){for(var e=jk(r),t=e.length;t--;){var a=e[t],n=r[a];e[t]=[a,n,JM(n)]}return e}function QM(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function kO(r){var e=EO(r);return e.length==1&&e[0][2]?QM(e[0][0],e[0][1]):function(t){return t===r||RO(t,r,e)}}var OO=1,NO=2;function BO(r,e){return YM(r)&&JM(e)?QM($M(r),e):function(t){var a=ra(t,r);return a===void 0&&a===e?Jk(t,r):UM(e,a,OO|NO)}}function zO(r){return function(e){return e?.[r]}}function VO(r){return function(e){return Qk(e,r)}}function GO(r){return YM(r)?zO($M(r)):VO(r)}function FO(r){return typeof r=="function"?r:r==null?eO:typeof r=="object"?WM(r)?BO(r[0],r[1]):kO(r):GO(r)}function HO(r,e,t){var a=r==null?0:r.length;if(!a)return-1;var n=a-1;return MO(r,FO(e),n)}class WO extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function eD(r,e){throw new WO(`[${r}] ${e}`)}function EQ(r,e){}const ys="update:modelValue",tD="change";function UO(r,e){if(!_h)return;if(!e){r.scrollTop=0;return}const t=[];let a=e.offsetParent;for(;a!==null&&r!==a&&r.contains(a);)t.push(a),a=a.offsetParent;const n=e.offsetTop+t.reduce((l,u)=>l+u.offsetTop,0),i=n+e.offsetHeight,o=r.scrollTop,s=o+r.clientHeight;n<o?r.scrollTop=n:i>s&&(r.scrollTop=i-r.clientHeight)}const YO=()=>{const r=sa(s0,void 0),e=sa(ZM,void 0);return{form:r,formItem:e}},$O=(r,{formItemContext:e,disableIdGeneration:t,disableIdManagement:a})=>{t||(t=Me(!1)),a||(a=Me(!1));const n=Po(),i=()=>{let u=n?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},o=Me();let s;const l=Te(()=>{var u;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((u=e.inputIds)==null?void 0:u.length)<=1)});return tf(()=>{s=cr([Gg(r,"id"),t],([u,f])=>{const v=u??(f?void 0:l0().value);v!==o.value&&(e?.removeInputId&&!i()&&(o.value&&e.removeInputId(o.value),!a?.value&&!f&&v&&e.addInputId(v)),o.value=v)},{immediate:!0})}),Gk(()=>{s&&s(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},rD=r=>{const e=Po();return Te(()=>{var t,a;return(a=(t=e?.proxy)==null?void 0:t.$props)==null?void 0:a[r]})},aD=(r,e={})=>{const t=Me(void 0),a=e.prop?t:rD("size"),n=e.global?t:tO(),i=e.form?{size:void 0}:sa(s0,void 0),o=e.formItem?{size:void 0}:sa(ZM,void 0);return Te(()=>a.value||Ye(r)||o?.size||i?.size||n.value||"")},ZO=r=>{const e=rD("disabled"),t=sa(s0,void 0);return Te(()=>{var a,n,i;return(i=(n=(a=e.value)!=null?a:Ye(r))!=null?n:t?.disabled)!=null?i:!1})};function XO(r,{disabled:e,beforeFocus:t,afterFocus:a,beforeBlur:n,afterBlur:i}={}){const o=Po(),{emit:s}=o,l=FM(),u=Me(!1),f=h=>{const d=ao(t)?t(h):!1;Ye(e)||u.value||d||(u.value=!0,s("focus",h),a?.())},v=h=>{var d;const p=ao(n)?n(h):!1;Ye(e)||h.relatedTarget&&((d=l.value)!=null&&d.contains(h.relatedTarget))||p||(u.value=!1,s("blur",h),i?.())},c=h=>{var d,p;Ye(e)||rO(h.target)||(d=l.value)!=null&&d.contains(document.activeElement)&&l.value!==document.activeElement||(p=r.value)==null||p.focus()};return cr([l,()=>Ye(e)],([h,d])=>{h&&(d?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Ps(l,"focus",f,!0),Ps(l,"blur",v,!0),Ps(l,"click",c,!0),{isFocused:u,wrapperRef:l,handleFocus:f,handleBlur:v}}const qO=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r);function KO({afterComposition:r,emit:e}){const t=Me(!1),a=s=>{e?.("compositionstart",s),t.value=!0},n=s=>{var l;e?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,f=u[u.length-1]||"";t.value=!qO(f)},i=s=>{e?.("compositionend",s),t.value&&(t.value=!1,Or(()=>r(s)))};return{isComposing:t,handleComposition:s=>{s.type==="compositionend"?i(s):n(s)},handleCompositionStart:a,handleCompositionUpdate:n,handleCompositionEnd:i}}const Wo=4,jO={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},JO=({move:r,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${r}%)`}),f0=Symbol("scrollbarContextKey"),QO=el({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),eN="Thumb",tN=ca({__name:"thumb",props:QO,setup(r){const e=r,t=sa(f0),a=ii("scrollbar");t||eD(eN,"can not inject scrollbar context");const n=Me(),i=Me(),o=Me({}),s=Me(!1);let l=!1,u=!1,f=0,v=0,c=_h?document.onselectstart:null;const h=Te(()=>jO[e.vertical?"vertical":"horizontal"]),d=Te(()=>JO({size:e.size,move:e.move,bar:h.value})),p=Te(()=>n.value[h.value.offset]**2/t.wrapElement[h.value.scrollSize]/e.ratio/i.value[h.value.offset]),g=T=>{var M;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(M=window.getSelection())==null||M.removeAllRanges(),m(T);const C=T.currentTarget;C&&(o.value[h.value.axis]=C[h.value.offset]-(T[h.value.client]-C.getBoundingClientRect()[h.value.direction]))},y=T=>{if(!i.value||!n.value||!t.wrapElement)return;const M=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),C=i.value[h.value.offset]/2,A=(M-C)*100*p.value/n.value[h.value.offset];t.wrapElement[h.value.scroll]=A*t.wrapElement[h.value.scrollSize]/100},m=T=>{T.stopImmediatePropagation(),l=!0,f=t.wrapElement.scrollHeight,v=t.wrapElement.scrollWidth,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S),c=document.onselectstart,document.onselectstart=()=>!1},_=T=>{if(!n.value||!i.value||l===!1)return;const M=o.value[h.value.axis];if(!M)return;const C=(n.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,A=i.value[h.value.offset]-M,I=(C-A)*100*p.value/n.value[h.value.offset];h.value.scroll==="scrollLeft"?t.wrapElement[h.value.scroll]=I*v/100:t.wrapElement[h.value.scroll]=I*f/100},S=()=>{l=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),w(),u&&(s.value=!1)},x=()=>{u=!1,s.value=!!e.size},b=()=>{u=!0,s.value=l};n0(()=>{w(),document.removeEventListener("mouseup",S)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Ps(Gg(t,"scrollbarElement"),"mousemove",x),Ps(Gg(t,"scrollbarElement"),"mouseleave",b),(T,M)=>(Ne(),er(HM,{name:Ye(a).b("fade"),persisted:""},{default:Dt(()=>[Is(lt("div",{ref_key:"instance",ref:n,class:ke([Ye(a).e("bar"),Ye(a).is(Ye(h).key)]),onMousedown:y,onClick:Hn(()=>{},["stop"])},[lt("div",{ref_key:"thumb",ref:i,class:ke(Ye(a).e("thumb")),style:ln(Ye(d)),onMousedown:g},null,38)],42,["onClick"]),[[mh,T.always||s.value]])]),_:1},8,["name"]))}});var eS=hi(tN,[["__file","thumb.vue"]]);const rN=el({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),aN=ca({__name:"bar",props:rN,setup(r,{expose:e}){const t=r,a=sa(f0),n=Me(0),i=Me(0),o=Me(""),s=Me(""),l=Me(1),u=Me(1);return e({handleScroll:c=>{if(c){const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo;i.value=c.scrollTop*100/h*l.value,n.value=c.scrollLeft*100/d*u.value}},update:()=>{const c=a?.wrapElement;if(!c)return;const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo,p=h**2/c.scrollHeight,g=d**2/c.scrollWidth,y=Math.max(p,t.minSize),m=Math.max(g,t.minSize);l.value=p/(h-p)/(y/(h-y)),u.value=g/(d-g)/(m/(d-m)),s.value=y+Wo<h?`${y}px`:"",o.value=m+Wo<d?`${m}px`:""}}),(c,h)=>(Ne(),nt(gs,null,[_r(eS,{move:n.value,ratio:u.value,size:o.value,always:c.always},null,8,["move","ratio","size","always"]),_r(eS,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:c.always},null,8,["move","ratio","size","always"])],64))}});var nN=hi(aN,[["__file","bar.vue"]]);const iN=el({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:jr([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...XM(["ariaLabel","ariaOrientation"])}),nD={"end-reached":r=>["left","right","top","bottom"].includes(r),scroll:({scrollTop:r,scrollLeft:e})=>[r,e].every(xs)},oN="ElScrollbar",sN=ca({name:oN}),lN=ca({...sN,props:iN,emits:nD,setup(r,{expose:e,emit:t}){const a=r,n=ii("scrollbar");let i,o,s,l=0,u=0,f="";const v={bottom:!1,top:!1,right:!1,left:!1},c=Me(),h=Me(),d=Me(),p=Me(),g=Te(()=>{const A={},I=Z1(a.height),L=Z1(a.maxHeight);return I&&(A.height=I),L&&(A.maxHeight=L),[a.wrapStyle,A]}),y=Te(()=>[a.wrapClass,n.e("wrap"),{[n.em("wrap","hidden-default")]:!a.native}]),m=Te(()=>[n.e("view"),a.viewClass]),_=A=>{var I;return(I=v[A])!=null?I:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=A=>{const I=S[f];if(!I)return;const L=A[f],P=A[I];L&&!v[f]&&(v[f]=!0),!P&&v[I]&&(v[I]=!1)},b=()=>{var A;if(h.value){(A=p.value)==null||A.handleScroll(h.value);const I=l,L=u;l=h.value.scrollTop,u=h.value.scrollLeft;const P={bottom:l+h.value.clientHeight>=h.value.scrollHeight-a.distance,top:l<=a.distance&&I!==0,right:u+h.value.clientWidth>=h.value.scrollWidth-a.distance&&L!==u,left:u<=a.distance&&L!==0};if(t("scroll",{scrollTop:l,scrollLeft:u}),I!==l&&(f=l>I?"bottom":"top"),L!==u&&(f=u>L?"right":"left"),a.distance>0){if(_(f))return;x(P)}P[f]&&t("end-reached",f)}};function w(A,I){Ia(A)?h.value.scrollTo(A):xs(A)&&xs(I)&&h.value.scrollTo(A,I)}const T=A=>{xs(A)&&(h.value.scrollTop=A)},M=A=>{xs(A)&&(h.value.scrollLeft=A)},C=()=>{var A;(A=p.value)==null||A.update(),v[f]=!1};return cr(()=>a.noresize,A=>{A?(i?.(),o?.(),s?.()):({stop:i}=an(d,C),{stop:o}=an(h,C),s=Ps("resize",C))},{immediate:!0}),cr(()=>[a.maxHeight,a.height],()=>{a.native||Or(()=>{var A;C(),h.value&&((A=p.value)==null||A.handleScroll(h.value))})}),i0(f0,Bs({scrollbarElement:c,wrapElement:h})),Fk(()=>{h.value&&(h.value.scrollTop=l,h.value.scrollLeft=u)}),tf(()=>{a.native||Or(()=>{C()})}),Hk(()=>C()),e({wrapRef:h,update:C,scrollTo:w,setScrollTop:T,setScrollLeft:M,handleScroll:b}),(A,I)=>(Ne(),nt("div",{ref_key:"scrollbarRef",ref:c,class:ke(Ye(n).b())},[lt("div",{ref_key:"wrapRef",ref:h,class:ke(Ye(y)),style:ln(Ye(g)),tabindex:A.tabindex,onScroll:b},[(Ne(),er(Hv(A.tag),{id:A.id,ref_key:"resizeRef",ref:d,class:ke(Ye(m)),style:ln(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:Dt(()=>[Ot(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?Gt("v-if",!0):(Ne(),er(nN,{key:0,ref_key:"barRef",ref:p,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var uN=hi(lN,[["__file","scrollbar.vue"]]);const fN=u0(uN),jl=r=>{const e=xr(r)?r:[r],t=[];return e.forEach(a=>{var n;xr(a)?t.push(...jl(a)):Wv(a)&&((n=a.component)!=null&&n.subTree)?t.push(a,...jl(a.component.subTree)):Wv(a)&&xr(a.children)?t.push(...jl(a.children)):Wv(a)&&a.shapeFlag===2?t.push(...jl(a.type())):t.push(a)}),t},Wg=el({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:aO},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),vN={close:r=>r instanceof MouseEvent,click:r=>r instanceof MouseEvent},cN=ca({name:"ElTag"}),hN=ca({...cN,props:Wg,emits:vN,setup(r,{emit:e}){const t=r,a=aD(),{t:n}=qM(),i=ii("tag"),o=Te(()=>{const{type:f,hit:v,effect:c,closable:h,round:d}=t;return[i.b(),i.is("closable",h),i.m(f||"primary"),i.m(a.value),i.m(c),i.is("hit",v),i.is("round",d)]}),s=f=>{e("close",f)},l=f=>{e("click",f)},u=f=>{var v,c,h;(h=(c=(v=f?.component)==null?void 0:v.subTree)==null?void 0:c.component)!=null&&h.bum&&(f.component.subTree.component.bum=null)};return(f,v)=>f.disableTransitions?(Ne(),nt("span",{key:0,class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)):(Ne(),er(HM,{key:1,name:`${Ye(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:Dt(()=>[lt("span",{class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)]),_:3},8,["name"]))}});var dN=hi(hN,[["__file","tag.vue"]]);const pN=u0(dN),Nn=new Map;if(_h){let r;document.addEventListener("mousedown",e=>r=e),document.addEventListener("mouseup",e=>{if(r){for(const t of Nn.values())for(const{documentHandler:a}of t)a(e,r);r=void 0}})}function tS(r,e){let t=[];return xr(e.arg)?t=e.arg:nO(e.arg)&&t.push(e.arg),function(a,n){const i=e.instance.popperRef,o=a.target,s=n?.target,l=!e||!e.instance,u=!o||!s,f=r.contains(o)||r.contains(s),v=r===o,c=t.length&&t.some(d=>d?.contains(o))||t.length&&t.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||f||v||c||h||e.value(a,n)}}const gN={beforeMount(r,e){Nn.has(r)||Nn.set(r,[]),Nn.get(r).push({documentHandler:tS(r,e),bindingFn:e.value})},updated(r,e){Nn.has(r)||Nn.set(r,[]);const t=Nn.get(r),a=t.findIndex(i=>i.bindingFn===e.oldValue),n={documentHandler:tS(r,e),bindingFn:e.value};a>=0?t.splice(a,1,n):t.push(n)},unmounted(r){Nn.delete(r)}},iD=11,yN=2;function mN(){const r=FM(),e=Me(0),t=Te(()=>({minWidth:`${Math.max(e.value,iD)}px`}));return an(r,()=>{var n,i;e.value=(i=(n=r.value)==null?void 0:n.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:r,calculatorWidth:e,inputStyle:t}}const Ug={label:"label",value:"value",disabled:"disabled",options:"options"};function _N(r){const e=Me({...Ug,...r.props});let t={...r.props};return cr(()=>r.props,s=>{no(s,t)||(e.value={...Ug,...s},t={...s})},{deep:!0}),{aliasProps:e,getLabel:s=>ra(s,e.value.label),getValue:s=>ra(s,e.value.value),getDisabled:s=>ra(s,e.value.disabled),getOptions:s=>ra(s,e.value.options)}}const oD=Symbol("ElSelectGroup"),bh=Symbol("ElSelect"),Yg="ElOption",SN=el({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),bN=(r="")=>r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function xN(r,e){const t=sa(bh);t||eD(Yg,"usage: <el-select><el-option /></el-select/>");const a=sa(oD,{disabled:!1}),n=Te(()=>f(Fn(t.props.modelValue),r.value)),i=Te(()=>{var h;if(t.props.multiple){const d=Fn((h=t.props.modelValue)!=null?h:[]);return!n.value&&d.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),o=Te(()=>{var h;return(h=r.label)!=null?h:Ia(r.value)?"":r.value}),s=Te(()=>r.value||r.label||""),l=Te(()=>r.disabled||e.groupDisabled||i.value),u=Po(),f=(h=[],d)=>{if(Ia(r.value)){const p=t.props.valueKey;return h&&h.some(g=>Wk(ra(g,p))===ra(d,p))}else return h&&h.includes(d)},v=()=>{l.value||(t.states.hoveringIndex=t.optionsArray.indexOf(u.proxy))},c=h=>{const d=new RegExp(bN(h),"i");e.visible=d.test(String(o.value))||r.created};return cr(()=>o.value,()=>{!r.created&&!t.props.remote&&t.setSelected()}),cr(()=>r.value,(h,d)=>{const{remote:p,valueKey:g}=t.props;if((p?h!==d:!no(h,d))&&(t.onOptionDestroy(d,u.proxy),t.onOptionCreate(u.proxy)),!r.created&&!p){if(g&&Ia(h)&&Ia(d)&&h[g]===d[g])return;t.setSelected()}}),cr(()=>a.disabled,()=>{e.groupDisabled=a.disabled},{immediate:!0}),{select:t,currentLabel:o,currentValue:s,itemSelected:n,isDisabled:l,hoverItem:v,updateOption:c}}const wN=ca({name:Yg,componentName:Yg,props:SN,setup(r){const e=ii("select"),t=l0(),a=Te(()=>[e.be("dropdown","item"),e.is("disabled",Ye(s)),e.is("selected",Ye(o)),e.is("hovering",Ye(c))]),n=Bs({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:f}=xN(r,n),{visible:v,hover:c}=o0(n),h=Po().proxy;l.onOptionCreate(h),n0(()=>{const p=h.value;Or(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===h.value);l.states.cachedOptions.get(p)===h&&!y&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,h)});function d(){s.value||l.handleOptionSelect(h)}return{ns:e,id:t,containerKls:a,currentLabel:i,itemSelected:o,isDisabled:s,select:l,visible:v,hover:c,states:n,hoverItem:u,updateOption:f,selectOptionClick:d}}});function TN(r,e){return Is((Ne(),nt("li",{id:r.id,class:ke(r.containerKls),role:"option","aria-disabled":r.isDisabled||void 0,"aria-selected":r.itemSelected,onMousemove:r.hoverItem,onClick:Hn(r.selectOptionClick,["stop"])},[Ot(r.$slots,"default",{},()=>[lt("span",null,en(r.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[mh,r.visible]])}var v0=hi(wN,[["render",TN],["__file","option.vue"]]);const CN=ca({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const r=sa(bh),e=ii("select"),t=Te(()=>r.props.popperClass),a=Te(()=>r.props.multiple),n=Te(()=>r.props.fitInputWidth),i=Me("");function o(){var s;const l=(s=r.selectRef)==null?void 0:s.offsetWidth;l?i.value=`${l-yN}px`:i.value=""}return tf(()=>{o(),an(r.selectRef,o)}),{ns:e,minWidth:i,popperClass:t,isMultiple:a,isFitInputWidth:n}}});function AN(r,e,t,a,n,i){return Ne(),nt("div",{class:ke([r.ns.b("dropdown"),r.ns.is("multiple",r.isMultiple),r.popperClass]),style:ln({[r.isFitInputWidth?"width":"minWidth"]:r.minWidth})},[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.ns.be("dropdown","header"))},[Ot(r.$slots,"header")],2)):Gt("v-if",!0),Ot(r.$slots,"default"),r.$slots.footer?(Ne(),nt("div",{key:1,class:ke(r.ns.be("dropdown","footer"))},[Ot(r.$slots,"footer")],2)):Gt("v-if",!0)],6)}var MN=hi(CN,[["render",AN],["__file","select-dropdown.vue"]]);const DN=(r,e)=>{const{t}=qM(),a=l0(),n=ii("select"),i=ii("input"),o=Bs({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Me(),l=Me(),u=Me(),f=Me(),v=Me(),c=Me(),h=Me(),d=Me(),p=Me(),g=Me(),y=Me(),m=Me(!1),_=Me(),S=Me(!1),{form:x,formItem:b}=YO(),{inputId:w}=$O(r,{formItemContext:b}),{valueOnClear:T,isEmptyValue:M}=iO(r),{isComposing:C,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L}=KO({afterComposition:G=>O1(G)}),P=ZO(),{wrapperRef:R,isFocused:E,handleBlur:O}=XO(v,{disabled:P,afterFocus(){r.automaticDropdown&&!m.value&&(m.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(G){var Q,Se;return((Q=u.value)==null?void 0:Q.isFocusInsideContent(G))||((Se=f.value)==null?void 0:Se.isFocusInsideContent(G))},afterBlur(){var G;m.value=!1,o.menuVisibleOnFocus=!1,r.validateEvent&&((G=b?.validate)==null||G.call(b,"blur").catch(Q=>void 0))}}),k=Te(()=>xr(r.modelValue)?r.modelValue.length>0:!M(r.modelValue)),B=Te(()=>{var G;return(G=x?.statusIcon)!=null?G:!1}),V=Te(()=>r.clearable&&!P.value&&k.value&&(E.value||o.inputHovering)),H=Te(()=>r.remote&&r.filterable&&!r.remoteShowSuffix?"":r.suffixIcon),W=Te(()=>n.is("reverse",!!(H.value&&m.value))),$=Te(()=>b?.validateState||""),j=Te(()=>$.value&&oO[$.value]),ce=Te(()=>r.remote?r.debounce:0),Re=Te(()=>r.remote&&!o.inputValue&&o.options.size===0),He=Te(()=>r.loading?r.loadingText||t("el.select.loading"):r.filterable&&o.inputValue&&o.options.size>0&&le.value===0?r.noMatchText||t("el.select.noMatch"):o.options.size===0?r.noDataText||t("el.select.noData"):null),le=Te(()=>K.value.filter(G=>G.visible).length),K=Te(()=>{const G=Array.from(o.options.values()),Q=[];return o.optionValues.forEach(Se=>{const Je=G.findIndex(it=>it.value===Se);Je>-1&&Q.push(G[Je])}),Q.length>=G.length?Q:G}),ge=Te(()=>Array.from(o.cachedOptions.values())),ee=Te(()=>{const G=K.value.filter(Q=>!Q.created).some(Q=>Q.currentLabel===o.inputValue);return r.filterable&&r.allowCreate&&o.inputValue!==""&&!G}),he=()=>{r.filterable&&ao(r.filterMethod)||r.filterable&&r.remote&&ao(r.remoteMethod)||K.value.forEach(G=>{var Q;(Q=G.updateOption)==null||Q.call(G,o.inputValue)})},We=aD(),Pe=Te(()=>["small"].includes(We.value)?"small":"default"),ze=Te({get(){return m.value&&(r.loading||!Re.value)&&(!S.value||!sO(o.previousQuery))},set(G){m.value=G}}),Ue=Te(()=>{if(r.multiple&&!Mf(r.modelValue))return Fn(r.modelValue).length===0&&!o.inputValue;const G=xr(r.modelValue)?r.modelValue[0]:r.modelValue;return r.filterable||Mf(G)?!o.inputValue:!0}),ht=Te(()=>{var G;const Q=(G=r.placeholder)!=null?G:t("el.select.placeholder");return r.multiple||!k.value?Q:o.selectedLabel}),Jt=Te(()=>q1?null:"mouseenter");cr(()=>r.modelValue,(G,Q)=>{r.multiple&&r.filterable&&!r.reserveKeyword&&(o.inputValue="",Mt("")),Xr(),!no(G,Q)&&r.validateEvent&&b?.validate("change").catch(Se=>void 0)},{flush:"post",deep:!0}),cr(()=>m.value,G=>{G?Mt(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0)}),cr(()=>o.options.entries(),()=>{_h&&(Xr(),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value&&ga())},{flush:"post"}),cr([()=>o.hoveringIndex,K],([G])=>{xs(G)&&G>-1?_.value=K.value[G]||{}:_.value={},K.value.forEach(Q=>{Q.hover=_.value===Q})}),Uk(()=>{o.isBeforeHide||he()});const Mt=G=>{o.previousQuery===G||C.value||(o.previousQuery=G,r.filterable&&ao(r.filterMethod)?r.filterMethod(G):r.filterable&&r.remote&&ao(r.remoteMethod)&&r.remoteMethod(G),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value?Or(ga):Or(_k))},ga=()=>{const G=K.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),Q=G.find(it=>it.created),Se=G[0],Je=K.value.map(it=>it.value);o.hoveringIndex=G1(Je,Q||Se)},Xr=()=>{if(r.multiple)o.selectedLabel="";else{const Q=xr(r.modelValue)?r.modelValue[0]:r.modelValue,Se=mi(Q);o.selectedLabel=Se.currentLabel,o.selected=[Se];return}const G=[];Mf(r.modelValue)||Fn(r.modelValue).forEach(Q=>{G.push(mi(Q))}),o.selected=G},mi=G=>{let Q;const Se=lO(G);for(let lr=o.cachedOptions.size-1;lr>=0;lr--){const gr=ge.value[lr];if(Se?ra(gr.value,r.valueKey)===ra(G,r.valueKey):gr.value===G){Q={index:K.value.filter(Si=>!Si.created).indexOf(gr),value:G,currentLabel:gr.currentLabel,get isDisabled(){return gr.isDisabled}};break}}if(Q)return Q;const Je=Se?G.label:G??"";return{index:-1,value:G,currentLabel:Je}},_k=()=>{const G=o.selected.length;if(G>0){const Q=o.selected[G-1];o.hoveringIndex=K.value.findIndex(Se=>xf(Q)===xf(Se))}else o.hoveringIndex=-1},Sk=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},bk=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width},ud=()=>{var G,Q;(Q=(G=u.value)==null?void 0:G.updatePopper)==null||Q.call(G)},E1=()=>{var G,Q;(Q=(G=f.value)==null?void 0:G.updatePopper)==null||Q.call(G)},k1=()=>{o.inputValue.length>0&&!m.value&&(m.value=!0),Mt(o.inputValue)},O1=G=>{if(o.inputValue=G.target.value,r.remote)S.value=!0,N1();else return k1()},N1=uO(()=>{k1(),S.value=!1},ce),yl=G=>{no(r.modelValue,G)||e(tD,G)},xk=G=>HO(G,Q=>{const Se=o.cachedOptions.get(Q);return!Se?.disabled&&!Se?.states.groupDisabled}),B1=G=>{const Q=K1(G);if(r.multiple&&Q!==qr.delete&&G.target.value.length<=0){const Se=Fn(r.modelValue).slice(),Je=xk(Se);if(Je<0)return;const it=Se[Je];Se.splice(Je,1),e(ys,Se),yl(Se),e("remove-tag",it)}},wk=(G,Q)=>{const Se=o.selected.indexOf(Q);if(Se>-1&&!P.value){const Je=Fn(r.modelValue).slice();Je.splice(Se,1),e(ys,Je),yl(Je),e("remove-tag",Q.value)}G.stopPropagation(),bf()},z1=G=>{G.stopPropagation();const Q=r.multiple?[]:T.value;if(r.multiple)for(const Se of o.selected)Se.isDisabled&&Q.push(Se.value);e(ys,Q),yl(Q),o.hoveringIndex=-1,m.value=!1,e("clear"),bf()},V1=G=>{var Q;if(r.multiple){const Se=Fn((Q=r.modelValue)!=null?Q:[]).slice(),Je=G1(Se,G);Je>-1?Se.splice(Je,1):(r.multipleLimit<=0||Se.length<r.multipleLimit)&&Se.push(G.value),e(ys,Se),yl(Se),G.created&&Mt(""),r.filterable&&!r.reserveKeyword&&(o.inputValue="")}else!no(r.modelValue,G.value)&&e(ys,G.value),yl(G.value),m.value=!1;bf(),!m.value&&Or(()=>{ml(G)})},G1=(G,Q)=>Mf(Q)?-1:Ia(Q.value)?G.findIndex(Se=>no(ra(Se,r.valueKey),xf(Q))):G.indexOf(Q.value),ml=G=>{var Q,Se,Je,it,lr;const gr=xr(G)?G[G.length-1]:G;let _i=null;if(!fO(gr?.value)){const Si=K.value.filter(Vk=>Vk.value===gr.value);Si.length>0&&(_i=Si[0].$el)}if(u.value&&_i){const Si=(it=(Je=(Se=(Q=u.value)==null?void 0:Q.popperRef)==null?void 0:Se.contentRef)==null?void 0:Je.querySelector)==null?void 0:it.call(Je,`.${n.be("dropdown","wrap")}`);Si&&UO(Si,_i)}(lr=y.value)==null||lr.handleScroll()},Tk=G=>{o.options.set(G.value,G),o.cachedOptions.set(G.value,G)},Ck=(G,Q)=>{o.options.get(G)===Q&&o.options.delete(G)},Ak=Te(()=>{var G,Q;return(Q=(G=u.value)==null?void 0:G.popperRef)==null?void 0:Q.contentRef}),Mk=()=>{o.isBeforeHide=!1,Or(()=>{var G;(G=y.value)==null||G.update(),ml(o.selected)})},bf=()=>{var G;(G=v.value)==null||G.focus()},Dk=()=>{var G;if(m.value){m.value=!1,Or(()=>{var Q;return(Q=v.value)==null?void 0:Q.blur()});return}(G=v.value)==null||G.blur()},Lk=G=>{z1(G)},Ik=G=>{if(m.value=!1,E.value){const Q=new FocusEvent("blur",G);Or(()=>O(Q))}},F1=()=>{o.inputValue.length>0?o.inputValue="":m.value=!1},H1=G=>{var Q;P.value||r.filterable&&m.value&&G&&!((Q=h.value)!=null&&Q.contains(G.target))||(q1&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:m.value=!m.value)},W1=()=>{if(!m.value)H1();else{const G=K.value[o.hoveringIndex];G&&!G.isDisabled&&V1(G)}},xf=G=>Ia(G.value)?ra(G.value,r.valueKey):G.value,Pk=Te(()=>K.value.filter(G=>G.visible).every(G=>G.isDisabled)),Rk=Te(()=>r.multiple?r.collapseTags?o.selected.slice(0,r.maxCollapseTags):o.selected:[]),Ek=Te(()=>r.multiple?r.collapseTags?o.selected.slice(r.maxCollapseTags):[]:[]),wf=G=>{if(!m.value){m.value=!0;return}if(!(o.options.size===0||le.value===0||C.value)&&!Pk.value){G==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):G==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Q=K.value[o.hoveringIndex];(Q.isDisabled||!Q.visible)&&wf(G),Or(()=>ml(_.value))}},U1=(G,Q,Se,Je)=>{for(let it=Q;it>=0&&it<Je;it+=Se){const lr=G[it];if(!lr?.isDisabled&&lr?.visible)return it}return null},Tf=(G,Q)=>{var Se;const Je=o.options.size;if(Je===0)return;const it=LO(G,0,Je-1),lr=K.value,gr=Q==="up"?-1:1,_i=(Se=U1(lr,it,gr,Je))!=null?Se:U1(lr,it-gr,-gr,Je);_i!=null&&(o.hoveringIndex=_i,Or(()=>ml(_.value)))},kk=G=>{const Q=K1(G);let Se=!0;switch(Q){case qr.up:wf("prev");break;case qr.down:wf("next");break;case qr.enter:case qr.numpadEnter:C.value||W1();break;case qr.esc:F1();break;case qr.backspace:Se=!1,B1(G);return;case qr.home:if(!m.value)return;Tf(0,"down");break;case qr.end:if(!m.value)return;Tf(o.options.size-1,"up");break;case qr.pageUp:if(!m.value)return;Tf(o.hoveringIndex-10,"up");break;case qr.pageDown:if(!m.value)return;Tf(o.hoveringIndex+10,"down");break;default:Se=!1;break}Se&&(G.preventDefault(),G.stopPropagation())},Ok=()=>{if(!l.value)return 0;const G=window.getComputedStyle(l.value);return Number.parseFloat(G.gap||"6px")},Nk=Te(()=>{const G=Ok(),Q=r.filterable?G+iD:0;return{maxWidth:`${g.value&&r.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-G-Q:o.selectionWidth-Q}px`}}),Bk=Te(()=>({maxWidth:`${o.selectionWidth}px`})),zk=G=>{e("popup-scroll",G)};an(l,Sk),an(R,ud),an(p,E1),an(g,bk);let Cf;return cr(()=>ze.value,G=>{G?Cf=an(d,ud).stop:(Cf?.(),Cf=void 0),e("visible-change",G)}),tf(()=>{Xr()}),{inputId:w,contentId:a,nsSelect:n,nsInput:i,states:o,isFocused:E,expanded:m,optionsArray:K,hoverOption:_,selectSize:We,filteredOptionsCount:le,updateTooltip:ud,updateTagTooltip:E1,debouncedOnInputChange:N1,onInput:O1,deletePrevTag:B1,deleteTag:wk,deleteSelected:z1,handleOptionSelect:V1,scrollToOption:ml,hasModelValue:k,shouldShowPlaceholder:Ue,currentPlaceholder:ht,mouseEnterEventName:Jt,needStatusIcon:B,showClearBtn:V,iconComponent:H,iconReverse:W,validateState:$,validateIcon:j,showNewOption:ee,updateOptions:he,collapseTagSize:Pe,setSelected:Xr,selectDisabled:P,emptyText:He,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L,handleKeydown:kk,onOptionCreate:Tk,onOptionDestroy:Ck,handleMenuEnter:Mk,focus:bf,blur:Dk,handleClearClick:Lk,handleClickOutside:Ik,handleEsc:F1,toggleMenu:H1,selectOption:W1,getValueKey:xf,navigateOptions:wf,dropdownMenuVisible:ze,showTagList:Rk,collapseTagList:Ek,popupScroll:zk,getOption:mi,tagStyle:Nk,collapseTagStyle:Bk,popperRef:Ak,inputRef:v,tooltipRef:u,tagTooltipRef:f,prefixRef:c,suffixRef:h,selectRef:s,wrapperRef:R,selectionRef:l,scrollbarRef:y,menuRef:d,tagMenuRef:p,collapseItemRef:g}};var LN=ca({name:"ElOptions",setup(r,{slots:e}){const t=sa(bh);let a=[];return()=>{var n,i;const o=(n=e.default)==null?void 0:n.call(e),s=[];function l(u){xr(u)&&u.forEach(f=>{var v,c,h,d;const p=(v=f?.type||{})==null?void 0:v.name;p==="ElOptionGroup"?l(!vO(f.children)&&!xr(f.children)&&ao((c=f.children)==null?void 0:c.default)?(h=f.children)==null?void 0:h.default():f.children):p==="ElOption"?s.push((d=f.props)==null?void 0:d.value):xr(f.children)&&l(f.children)})}return o.length&&l((i=o[0])==null?void 0:i.children),no(s,a)||(a=s,t&&(t.states.optionValues=s)),o}}});const IN=el({name:String,id:String,modelValue:{type:jr([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:gO,effect:{type:jr(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:jr([String,Object])},popperOptions:{type:jr(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:jr(Function)},filterMethod:{type:jr(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:j1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:J1,default:pO},fitInputWidth:Boolean,suffixIcon:{type:J1,default:dO},tagType:{...Wg.type,default:"info"},tagEffect:{...Wg.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:jr(String),values:hO,default:"bottom-start"},fallbackPlacements:{type:jr(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:j1.appendTo,options:{type:jr(Array)},props:{type:jr(Object),default:()=>Ug},...cO,...XM(["ariaLabel"])});nD.scroll;const PN=ca({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(r){const e=ii("select"),t=Me(),a=Po(),n=Me([]);i0(oD,Bs({...o0(r)}));const i=Te(()=>n.value.some(u=>u.visible===!0)),o=u=>{var f;return u.type.name==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},s=u=>{const f=Fn(u),v=[];return f.forEach(c=>{var h;Wv(c)&&(o(c)?v.push(c.component.proxy):xr(c.children)&&c.children.length?v.push(...s(c.children)):(h=c.component)!=null&&h.subTree&&v.push(...s(c.component.subTree)))}),v},l=()=>{n.value=s(a.subTree)};return tf(()=>{l()}),yO(t,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:i,ns:e}}});function RN(r,e,t,a,n,i){return Is((Ne(),nt("ul",{ref:"groupRef",class:ke(r.ns.be("group","wrap"))},[lt("li",{class:ke(r.ns.be("group","title"))},en(r.label),3),lt("li",null,[lt("ul",{class:ke(r.ns.b("group"))},[Ot(r.$slots,"default")],2)])],2)),[[mh,r.visible]])}var c0=hi(PN,[["render",RN],["__file","option-group.vue"]]);const rS="ElSelect",Tu=new WeakMap,EN=r=>(...e)=>{var t,a;const n=e[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((t=e[2])!=null&&t.includes("ElTreeSelect")))return;const i=(a=Tu.get(r))==null?void 0:a.originalWarnHandler;if(i){i(...e);return}console.warn(...e)},kN=r=>{let e=Tu.get(r);return e||(e={originalWarnHandler:r.config.warnHandler,handler:EN(r),count:0},Tu.set(r,e)),e},ON=ca({name:rS,componentName:rS,components:{ElSelectMenu:MN,ElOption:v0,ElOptions:LN,ElOptionGroup:c0,ElTag:pN,ElScrollbar:fN,ElTooltip:mO,ElIcon:Hg},directives:{ClickOutside:gN},props:IN,emits:[ys,tD,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(r,{emit:e,slots:t}){const a=Po(),n=kN(a.appContext);n.count+=1,a.appContext.config.warnHandler=n.handler;const i=Te(()=>{const{modelValue:m,multiple:_}=r,S=_?[]:void 0;return xr(m)?_?m:S:_?S:m}),o=Bs({...o0(r),modelValue:i}),s=DN(o,e),{calculatorRef:l,inputStyle:u}=mN(),{getLabel:f,getValue:v,getOptions:c,getDisabled:h}=_N(r),d=m=>({label:f(m),value:v(m),disabled:h(m)}),p=m=>m.reduce((_,S)=>(_.push(S),S.children&&S.children.length>0&&_.push(...p(S.children)),_),[]),g=m=>{jl(m||[]).forEach(S=>{var x;if(Ia(S)&&(S.type.name==="ElOption"||S.type.name==="ElTree")){const b=S.type.name;if(b==="ElTree"){const w=((x=S.props)==null?void 0:x.data)||[];p(w).forEach(M=>{M.currentLabel=M.label||(Ia(M.value)?"":M.value),s.onOptionCreate(M)})}else if(b==="ElOption"){const w={...S.props};w.currentLabel=w.label||(Ia(w.value)?"":w.value),s.onOptionCreate(w)}}})};cr(()=>{var m;return[(m=t.default)==null?void 0:m.call(t),i.value]},()=>{var m;r.persistent||s.expanded.value||(s.states.options.clear(),g((m=t.default)==null?void 0:m.call(t)))},{immediate:!0}),i0(bh,Bs({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=Te(()=>r.multiple?s.states.selected.map(m=>m.currentLabel):s.states.selectedLabel);return n0(()=>{const m=Tu.get(a.appContext);m&&(m.count-=1,m.count<=0&&(a.appContext.config.warnHandler=m.originalWarnHandler,Tu.delete(a.appContext)))}),{...s,modelValue:i,selectedLabel:y,calculatorRef:l,inputStyle:u,getLabel:f,getValue:v,getOptions:c,getDisabled:h,getOptionProps:d}}});function NN(r,e){const t=An("el-tag"),a=An("el-tooltip"),n=An("el-icon"),i=An("el-option"),o=An("el-option-group"),s=An("el-options"),l=An("el-scrollbar"),u=An("el-select-menu"),f=Yk("click-outside");return Is((Ne(),nt("div",{ref:"selectRef",class:ke([r.nsSelect.b(),r.nsSelect.m(r.selectSize)]),[$k(r.mouseEnterEventName)]:v=>r.states.inputHovering=!0,onMouseleave:v=>r.states.inputHovering=!1},[_r(a,{ref:"tooltipRef",visible:r.dropdownMenuVisible,placement:r.placement,teleported:r.teleported,"popper-class":[r.nsSelect.e("popper"),r.popperClass],"popper-style":r.popperStyle,"popper-options":r.popperOptions,"fallback-placements":r.fallbackPlacements,effect:r.effect,pure:"",trigger:"click",transition:`${r.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:r.persistent,"append-to":r.appendTo,"show-arrow":r.showArrow,offset:r.offset,onBeforeShow:r.handleMenuEnter,onHide:v=>r.states.isBeforeHide=!1},{default:Dt(()=>{var v;return[lt("div",{ref:"wrapperRef",class:ke([r.nsSelect.e("wrapper"),r.nsSelect.is("focused",r.isFocused),r.nsSelect.is("hovering",r.states.inputHovering),r.nsSelect.is("filterable",r.filterable),r.nsSelect.is("disabled",r.selectDisabled)]),onClick:Hn(r.toggleMenu,["prevent"])},[r.$slots.prefix?(Ne(),nt("div",{key:0,ref:"prefixRef",class:ke(r.nsSelect.e("prefix"))},[Ot(r.$slots,"prefix")],2)):Gt("v-if",!0),lt("div",{ref:"selectionRef",class:ke([r.nsSelect.e("selection"),r.nsSelect.is("near",r.multiple&&!r.$slots.prefix&&!!r.states.selected.length)])},[r.multiple?Ot(r.$slots,"tag",{key:0,data:r.states.selected,deleteTag:r.deleteTag,selectDisabled:r.selectDisabled},()=>[(Ne(!0),nt(gs,null,Af(r.showTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.tagStyle),onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),r.collapseTags&&r.states.selected.length>r.maxCollapseTags?(Ne(),er(a,{key:0,ref:"tagTooltipRef",disabled:r.dropdownMenuVisible||!r.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:r.effect,placement:"bottom","popper-class":r.popperClass,"popper-style":r.popperStyle,teleported:r.teleported},{default:Dt(()=>[lt("div",{ref:"collapseItemRef",class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!1,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.collapseTagStyle)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))}," + "+en(r.states.selected.length-r.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Dt(()=>[lt("div",{ref:"tagMenuRef",class:ke(r.nsSelect.e("selection"))},[(Ne(!0),nt(gs,null,Af(r.collapseTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{class:"in-tooltip",closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):Gt("v-if",!0)]):Gt("v-if",!0),lt("div",{class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("input-wrapper"),r.nsSelect.is("hidden",!r.filterable||r.selectDisabled)])},[Is(lt("input",{id:r.inputId,ref:"inputRef","onUpdate:modelValue":c=>r.states.inputValue=c,type:"text",name:r.name,class:ke([r.nsSelect.e("input"),r.nsSelect.is(r.selectSize)]),disabled:r.selectDisabled,autocomplete:r.autocomplete,style:ln(r.inputStyle),tabindex:r.tabindex,role:"combobox",readonly:!r.filterable,spellcheck:"false","aria-activedescendant":((v=r.hoverOption)==null?void 0:v.id)||"","aria-controls":r.contentId,"aria-expanded":r.dropdownMenuVisible,"aria-label":r.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:r.handleKeydown,onCompositionstart:r.handleCompositionStart,onCompositionupdate:r.handleCompositionUpdate,onCompositionend:r.handleCompositionEnd,onInput:r.onInput,onClick:Hn(r.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Xk,r.states.inputValue]]),r.filterable?(Ne(),nt("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ke(r.nsSelect.e("input-calculator")),textContent:en(r.states.inputValue)},null,10,["textContent"])):Gt("v-if",!0)],2),r.shouldShowPlaceholder?(Ne(),nt("div",{key:1,class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("placeholder"),r.nsSelect.is("transparent",!r.hasModelValue||r.expanded&&!r.states.inputValue)])},[r.hasModelValue?Ot(r.$slots,"label",{key:0,index:r.getOption(r.modelValue).index,label:r.currentPlaceholder,value:r.modelValue},()=>[lt("span",null,en(r.currentPlaceholder),1)]):(Ne(),nt("span",{key:1},en(r.currentPlaceholder),1))],2)):Gt("v-if",!0)],2),lt("div",{ref:"suffixRef",class:ke(r.nsSelect.e("suffix"))},[r.iconComponent&&!r.showClearBtn?(Ne(),er(n,{key:0,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.iconReverse])},{default:Dt(()=>[(Ne(),er(Hv(r.iconComponent)))]),_:1},8,["class"])):Gt("v-if",!0),r.showClearBtn&&r.clearIcon?(Ne(),er(n,{key:1,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.nsSelect.e("clear")]),onClick:r.handleClearClick},{default:Dt(()=>[(Ne(),er(Hv(r.clearIcon)))]),_:1},8,["class","onClick"])):Gt("v-if",!0),r.validateState&&r.validateIcon&&r.needStatusIcon?(Ne(),er(n,{key:2,class:ke([r.nsInput.e("icon"),r.nsInput.e("validateIcon"),r.nsInput.is("loading",r.validateState==="validating")])},{default:Dt(()=>[(Ne(),er(Hv(r.validateIcon)))]),_:1},8,["class"])):Gt("v-if",!0)],2)],10,["onClick"])]}),content:Dt(()=>[_r(u,{ref:"menuRef"},{default:Dt(()=>[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.nsSelect.be("dropdown","header")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"header")],10,["onClick"])):Gt("v-if",!0),Is(_r(l,{id:r.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":r.nsSelect.be("dropdown","wrap"),"view-class":r.nsSelect.be("dropdown","list"),class:ke([r.nsSelect.is("empty",r.filteredOptionsCount===0)]),role:"listbox","aria-label":r.ariaLabel,"aria-orientation":"vertical",onScroll:r.popupScroll},{default:Dt(()=>[r.showNewOption?(Ne(),er(i,{key:0,value:r.states.inputValue,created:!0},null,8,["value"])):Gt("v-if",!0),_r(s,null,{default:Dt(()=>[Ot(r.$slots,"default",{},()=>[(Ne(!0),nt(gs,null,Af(r.options,(v,c)=>{var h;return Ne(),nt(gs,{key:c},[(h=r.getOptions(v))!=null&&h.length?(Ne(),er(o,{key:0,label:r.getLabel(v),disabled:r.getDisabled(v)},{default:Dt(()=>[(Ne(!0),nt(gs,null,Af(r.getOptions(v),d=>(Ne(),er(i,Y1({key:r.getValue(d)},r.getOptionProps(d)),null,16))),128))]),_:2},1032,["label","disabled"])):(Ne(),er(i,Zk(Y1({key:1},r.getOptionProps(v))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[mh,r.states.options.size>0&&!r.loading]]),r.$slots.loading&&r.loading?(Ne(),nt("div",{key:1,class:ke(r.nsSelect.be("dropdown","loading"))},[Ot(r.$slots,"loading")],2)):r.loading||r.filteredOptionsCount===0?(Ne(),nt("div",{key:2,class:ke(r.nsSelect.be("dropdown","empty"))},[Ot(r.$slots,"empty",{},()=>[lt("span",null,en(r.emptyText),1)])],2)):Gt("v-if",!0),r.$slots.footer?(Ne(),nt("div",{key:3,class:ke(r.nsSelect.be("dropdown","footer")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"footer")],10,["onClick"])):Gt("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,r.handleClickOutside,r.popperRef]])}var BN=hi(ON,[["render",NN],["__file","select.vue"]]);const kQ=u0(BN,{Option:v0,OptionGroup:c0}),OQ=KM(v0);KM(c0);function NQ(){const{t:r}=jM();return{timeOptions:[{label:r("buttons.today"),value:"today"},{label:r("buttons.week"),value:"week"},{label:r("buttons.month"),value:"month"},{label:r("buttons.custom"),value:"custom"}]}}const aS=["#249EFF","#846BCE","#21CCFF","#0E42D2","#86DF6C","#F6693D","#FF6B9D","#FFA940","#9254DE","#36CFC9","#5CDBD3","#B37FEB"];function zN(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}function VN(r){return r<aS.length?aS[r]:zN()}const GN={title:{left:"center",top:"90%",textStyle:{fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"",type:"pie",radius:["50%","80%"],center:["50%","45%"],avoidLabelOverlap:!1,itemStyle:{borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:[]}],graphic:{elements:[{type:"text",left:"center",top:"40%",style:{text:"",fontSize:14,fontWeight:"bold",textAlign:"center"}}]}},FN={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:[]},series:[{name:"",type:"bar",barWidth:"10",data:[],itemStyle:{color:"#4086FF",borderRadius:[5,5,5,5]}}]},nS={"#F6693D":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"#FFA07A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"rgba(246, 105, 61, 0)"}]}},"#622BDF":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"#9370DB"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"rgba(98, 43, 223, 0)"}]}},"#47C86B":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"#66FF99"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"rgba(71, 200, 107, 0)"}]}},default:{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"#67C23A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"rgba(64, 158, 255, 0)"}]}}},HN={tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},yAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},series:[{name:"",type:"line",data:[],smooth:!1,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.3}}]},BQ=(r,e)=>{const t=r.__vccOpts||r;for(const[a,n]of e)t[a]=n;return t};function WN(){return Sh.get("/svc/monitor/summary",{params:{_dc:Date.now()}})}function zQ(r){return Sh.get(`/svc/monitor/nodes/${r}`)}function VQ(r,e){return Sh.get(`/svc/monitor/nodes/${r}/usages`,{params:e})}async function GQ(){return Sh.get("/svc/types")}var $g=function(r,e){return $g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},$g(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$g(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var UN=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),YN=(function(){function r(){this.browser=new UN,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),De=new YN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(De.wxa=!0,De.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?De.worker=!0:!De.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(De.node=!0,De.svgSupported=!0):$N(navigator.userAgent,De);function $N(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var h0=12,sD="sans-serif",dn=h0+"px "+sD,ZN=20,XN=100,qN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KN(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-ZN)/XN;e[a]=n}return e}var jN=KN(qN),la={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=la.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||dn),r.measureText(t);t=t||"",a=a||dn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||h0,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jN[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},lD=Fa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),uD=Fa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),tl=Object.prototype.toString,xh=Array.prototype,JN=xh.forEach,QN=xh.filter,d0=xh.slice,eB=xh.map,iS=(function(){}).constructor,Df=iS?iS.prototype:null,p0="__proto__",tB=2311;function fD(){return tB++}function g0(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=tl.call(r);if(t==="[object Array]"){if(!vu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ie(r[a])}}else if(uD[t]){if(!vu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!lD[t]&&!vu(r)&&!zs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==p0&&(e[o]=ie(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ie(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==p0){var n=r[a],i=e[a];fe(i)&&fe(n)&&!U(i)&&!U(n)&&!zs(i)&&!zs(n)&&!oS(i)&&!oS(n)&&!vu(i)&&!vu(n)?_e(n,i,t):(t||!(a in r))&&(r[a]=ie(e[a]))}return r}function y0(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=_e(t,r[a],e);return t}function F(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==p0&&(r[t]=e[t]);return r}function ue(r,e,t){for(var a=Ie(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function me(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function rB(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function bt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ue(r,e,t)}function Xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===JN)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.map&&r.map===eB)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Fa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.filter&&r.filter===QN)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Ro(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Ie(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function aB(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(d0.call(arguments)))}}var q=Df&&ae(Df.bind)?Df.call.bind(Df.bind):aB;function ye(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(d0.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):tl.call(r)==="[object Array]"}function ae(r){return typeof r=="function"}function X(r){return typeof r=="string"}function Zg(r){return tl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function oS(r){return!!lD[tl.call(r)]}function pr(r){return!!uD[tl.call(r)]}function zs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wh(r){return r.colorStops!=null}function nB(r){return r.image!=null}function iB(r){return tl.call(r)==="[object RegExp]"}function Zt(r){return r!==r}function Wt(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function re(r,e){return r??e}function Cr(r,e,t){return r??e??t}function m0(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return d0.apply(r,e)}function Th(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function qt(r,e){if(!r)throw new Error(e)}function Hr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vD="__ec_primitive__";function cc(r){r[vD]=!0}function vu(r){return r[vD]}var oB=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ie(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),cD=typeof Map=="function";function sB(){return cD?new Map:new oB}var lB=(function(){function r(e){var t=U(e);this.data=sB();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return cD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function te(r){return new lB(r)}function Cu(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&F(t,e),t}function hD(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function vt(){}var Uv=180/Math.PI;function Eo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function tr(r,e){return r[0]=e[0],r[1]=e[1],r}function un(r){return[r[0],r[1]]}function _0(r,e,t){return r[0]=e,r[1]=t,r}function sS(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Xg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function io(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function qg(r){return Math.sqrt(uB(r))}function uB(r){return r[0]*r[0]+r[1]*r[1]}function Yv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function rl(r,e){var t=qg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Kg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Wn=Kg;function fB(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var co=fB;function $v(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ct(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Un(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Yn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Uo=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),vB=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Uo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Uo(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Uo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Uo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Uo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Uo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Zr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),cB=Math.log(2);function jg(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/cB);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[t][c]*jg(r,e-1,f,u,n|d,i),h++)}return i[o]=v,v}function lS(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=jg(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*jg(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var hc="___zrEVENTSAVED",vd=[];function hB(r,e,t,a,n){return Jg(vd,e,a,n,!0)&&Jg(r,t,vd[0],vd[1])}function dB(r,e){r&&t(r),e&&t(e);function t(a){var n=a[hc];n&&(n.clearMarkers&&n.clearMarkers(),delete a[hc])}}function Jg(r,e,t,a,n){if(e.getBoundingClientRect&&De.domSupported&&!dD(e)){var i=e[hc]||(e[hc]={}),o=pB(e,i),s=gB(o,i,n);if(s)return s(r,t,a),!0}return!1}function pB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){D(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function gB(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?lS(s,o):lS(o,s))}function dD(r){return r.nodeName.toUpperCase()==="CANVAS"}var yB=/([&<>"'])/g,mB={"&":"&","<":"<",">":">",'"':""","'":"'"};function nr(r){return r==null?"":(r+"").replace(yB,function(e,t){return mB[t]})}var _B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cd=[],SB=De.browser.firefox&&+De.browser.version.split(".")[0]<39;function Qg(r,e,t,a){return t=t||{},a?uS(r,e,t):SB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):uS(r,e,t),t}function uS(r,e,t){if(De.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dD(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Jg(cd,r,a,n)){t.zrX=cd[0],t.zrY=cd[1];return}}t.zrX=t.zrY=0}function S0(r){return r||window.event}function Er(r,e,t){if(e=S0(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qg(r,o,e,t)}else{Qg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_B.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function ey(r,e,t,a){r.addEventListener(e,t,a)}function xB(r,e,t,a){r.removeEventListener(e,t,a)}var pn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fS(r){return r.which===2||r.which===3}var wB=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Qg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hd)if(hd.hasOwnProperty(t)){var a=hd[t](this._track,e);if(a)return a}},r})();function vS(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function TB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hd={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=vS(a)/vS(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=TB(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Bt(){return[1,0,0,1,0,0]}function Ah(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Mh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ba(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ha(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function di(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function b0(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ua(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function CB(r){var e=Bt();return Mh(e,r),e}var se=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),oo=Math.min,ws=Math.max,ty=Math.abs,cS=["x","y"],AB=["width","height"],bi=new se,xi=new se,wi=new se,Ti=new se,Sr=pD(),Jl=Sr.minTv,ry=Sr.maxTv,cu=[0,0],ve=(function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=oo(e.x,this.x),a=oo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ws(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ws(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Bt();return Ha(i,i,[-t.x,-t.y]),b0(i,i,[a,n]),Ha(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&se.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(MB,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(DB,t.x,t.y,t.width,t.height));var s=!!a;Sr.reset(n,s);var l=Sr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(cu[0]=1/0,cu[1]=0,hS(u,f,h,d,0,s,i,o),hS(v,c,p,g,1,s,i,o),s&&se.copy(a,y?Sr.useDir?Sr.dirMinTv:Jl:ry)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bi.x=wi.x=t.x,bi.y=Ti.y=t.y,xi.x=Ti.x=t.x+t.width,xi.y=wi.y=t.y+t.height,bi.transform(a),Ti.transform(a),xi.transform(a),wi.transform(a),e.x=oo(bi.x,xi.x,wi.x,Ti.x),e.y=oo(bi.y,xi.y,wi.y,Ti.y);var l=ws(bi.x,xi.x,wi.x,Ti.x),u=ws(bi.y,xi.y,wi.y,Ti.y);e.width=l-e.x,e.height=u-e.y},r})(),MB=new ve(0,0,0,0),DB=new ve(0,0,0,0);function hS(r,e,t,a,n,i,o,s){var l=ty(e-t),u=ty(a-r),f=oo(l,u),v=cS[n],c=cS[1-n],h=AB[n];e<t||a<r?l<u?(i&&(ry[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(ry[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=ws(r,t),o[h]=oo(e,a)-o[v]),i&&(f<cu[0]||Sr.useDir)&&(cu[0]=oo(f,cu[0]),(l<u||!Sr.bidirectional)&&(Jl[v]=l,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(Jl[v]=-u,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV())))}function pD(){var r=0,e=new se,t=new se,a={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ws(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return ty(i)<1e-10}return a}var gD="silent";function LB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:IB}}function IB(){pn(this.event)}var PB=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Zr),_l=(function(){function r(e,t){this.x=e,this.y=t}return r})(),RB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dd=new ve(0,0,0,0),yD=(function(r){N(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new _l(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new PB,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(RB,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=mD(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new _l(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _l(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=LB(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new _l(t,a);if(dS(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ve(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(dd.copy(c.getBoundingRect()),c.transform&&dd.applyTransform(c.transform),dd.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(dS(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new wB);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new _l;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Zr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){yD.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=mD(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function EB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?gD:!0}return!1}function dS(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=EB(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==gD)){e.target=o;break}}}function mD(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var _D=32,Sl=7;function kB(r){for(var e=0;r>=_D;)e|=r&1,r>>=1;return r+e}function pS(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;OB(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function OB(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function gS(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){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(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function pd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function gd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function NB(r,e){var t=Sl,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=gd(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=pd(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=gd(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=pd(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Sl||w>=Sl);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,M=0,C=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],M++,T=0,--g===1){C=!0;break}while((T|M)<w);if(C)break;do{if(T=d-gd(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(M=g-pd(r[m],o,0,g,g-1,e),M!==0){for(S-=M,_-=M,g-=M,b=S+1,x=_+1,y=0;y<M;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=Sl||M>=Sl);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<_D){i=pS(r,t,a,e),gS(r,t,a,t+i,e);return}var o=NB(r,e),s=kB(n);do{if(i=pS(r,t,a,e),i<s){var l=n;l>s&&(l=s),gS(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var br=1,Ql=2,ms=4,yS=!1;function yd(){yS||(yS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var BB=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mS}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Zv(a,mS)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=br),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yd(),d.z=0),isNaN(d.z2)&&(yd(),d.z2=0),isNaN(d.zlevel)&&(yd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=me(this._roots,e);n>=0&&this._roots.splice(n,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})(),dc;dc=De.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var hu={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 e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-hu.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?hu.bounceIn(r*2)*.5:hu.bounceOut(r*2-1)*.5+.5}},Lf=Math.pow,Jn=Math.sqrt,pc=1e-8,SD=1e-4,_S=Jn(3),If=1/3,Ma=Eo(),zr=Eo(),Rs=Eo();function $n(r){return r>-pc&&r<pc}function bD(r){return r>pc||r<-pc}function Lt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function SS(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if($n(f)&&$n(v))if($n(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if($n(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Jn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Lf(-_,If):_=Lf(_,If),S<0?S=-Lf(-S,If):S=Lf(S,If);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Jn(f*f*f)),b=Math.acos(x)/3,w=Jn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+_S*Math.sin(b)))/(3*o),M=(-s+w*(T-_S*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function xD(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($n(o)){if(bD(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($n(f))n[0]=-i/(2*o);else if(f>0){var v=Jn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function oi(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function wD(r,e,t,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;Ma[0]=l,Ma[1]=u;for(var m=0;m<1;m+=.05)zr[0]=Lt(r,t,n,o,m),zr[1]=Lt(e,a,i,s,m),g=co(Ma,zr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<SD);_++)d=v-c,p=v+c,zr[0]=Lt(r,t,n,o,d),zr[1]=Lt(e,a,i,s,d),g=co(zr,Ma),d>=0&&g<h?(v=d,h=g):(Rs[0]=Lt(r,t,n,o,p),Rs[1]=Lt(e,a,i,s,p),y=co(Rs,Ma),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Lt(r,t,n,o,v),f[1]=Lt(e,a,i,s,v)),Jn(h)}function zB(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Lt(r,t,n,o,d),g=Lt(e,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Nt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ay(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function VB(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($n(i)){if(bD(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($n(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Jn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function TD(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Au(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function CD(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;Ma[0]=o,Ma[1]=s;for(var c=0;c<1;c+=.05){zr[0]=Nt(r,t,n,c),zr[1]=Nt(e,a,i,c);var h=co(Ma,zr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<SD);d++){var p=u-f,g=u+f;zr[0]=Nt(r,t,n,p),zr[1]=Nt(e,a,i,p);var h=co(zr,Ma);if(p>=0&&h<v)u=p,v=h;else{Rs[0]=Nt(r,t,n,g),Rs[1]=Nt(e,a,i,g);var y=co(Rs,Ma);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Nt(r,t,n,u),l[1]=Nt(e,a,i,u)),Jn(v)}function GB(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Nt(r,t,n,c),d=Nt(e,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var FB=/cubic-bezier\(([0-9,\.e ]+)\)/;function x0(r){var e=r&&FB.exec(r);if(e){var t=e[1].split(","),a=+Hr(t[0]),n=+Hr(t[1]),i=+Hr(t[2]),o=+Hr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:gc(0,a,i,1,l,s)&&Lt(0,n,o,1,s[0])}}}var HB=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||vt,this.ondestroy=e.ondestroy||vt,this.onrestart=e.onrestart||vt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,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(e){this.easing=e,this.easingFunc=ae(e)?e:hu[e]||x0(e)},r})(),AD=(function(){function r(e){this.value=e}return r})(),WB=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new AD(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Vs=(function(){function r(e){this._list=new WB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new AD(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bS={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 na(r){return r=Math.round(r),r<0?0:r>255?255:r}function UB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Mu(r){return r<0?0:r>1?1:r}function md(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?na(parseFloat(e)/100*255):na(parseInt(e,10))}function Qn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mu(parseFloat(e)/100):Mu(parseFloat(e))}function _d(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Zn(r,e,t){return r+(e-r)*t}function Rr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ny(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MD=new Vs(20),Pf=null;function Yo(r,e){Pf&&ny(Pf,e),Pf=MD.put(r,Pf||e.slice())}function dr(r,e){if(r){e=e||[];var t=MD.get(r);if(t)return ny(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in bS)return ny(e,bS[a]),Yo(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Rr(e,0,0,0,1);return}return Rr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Yo(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Rr(e,0,0,0,1);return}return Rr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Yo(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Rr(e,+u[0],+u[1],+u[2],1):Rr(e,0,0,0,1);f=Qn(u.pop());case"rgb":if(u.length>=3)return Rr(e,md(u[0]),md(u[1]),md(u[2]),u.length===3?f:Qn(u[3])),Yo(r,e),e;Rr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Rr(e,0,0,0,1);return}return u[3]=Qn(u[3]),iy(u,e),Yo(r,e),e;case"hsl":if(u.length!==3){Rr(e,0,0,0,1);return}return iy(u,e),Yo(r,e),e;default:return}}Rr(e,0,0,0,1)}}function iy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Qn(r[1]),n=Qn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Rr(e,na(_d(o,i,t+1/3)*255),na(_d(o,i,t)*255),na(_d(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function YB(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function oy(r,e){var t=dr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return za(t,t.length===4?"rgba":"rgb")}}function Sd(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=na(Zn(o[0],s[0],l)),t[1]=na(Zn(o[1],s[1],l)),t[2]=na(Zn(o[2],s[2],l)),t[3]=Mu(Zn(o[3],s[3],l)),t}}function $B(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=dr(e[n]),s=dr(e[i]),l=a-n,u=za([na(Zn(o[0],s[0],l)),na(Zn(o[1],s[1],l)),na(Zn(o[2],s[2],l)),Mu(Zn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ei(r,e,t,a){var n=dr(r);if(r)return n=YB(n),e!=null&&(n[0]=UB(ae(e)?e(n[0]):e)),t!=null&&(n[1]=Qn(ae(t)?t(n[1]):t)),a!=null&&(n[2]=Qn(ae(a)?a(n[2]):a)),za(iy(n),"rgba")}function yc(r,e){var t=dr(r);if(t&&e!=null)return t[3]=Mu(e),za(t,"rgba")}function za(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function mc(r,e){var t=dr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var xS=new Vs(100);function sy(r){if(X(r)){var e=xS.get(r);return e||(e=oy(r,-.1),xS.put(r,e)),e}else if(wh(r)){var t=F({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:oy(a.color,-.1)}}),t}return r}var _c=Math.round;function Du(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=dr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var wS=1e-4;function Xn(r){return r<wS&&r>-wS}function Rf(r){return _c(r*1e3)/1e3}function ly(r){return _c(r*1e4)/1e4}function ZB(r){return"matrix("+Rf(r[0])+","+Rf(r[1])+","+Rf(r[2])+","+Rf(r[3])+","+ly(r[4])+","+ly(r[5])+")"}var XB={left:"start",right:"end",center:"middle",middle:"middle"};function qB(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function KB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function jB(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function DD(r){return r&&!!r.image}function JB(r){return r&&!!r.svgElement}function w0(r){return DD(r)||JB(r)}function LD(r){return r.type==="linear"}function ID(r){return r.type==="radial"}function PD(r){return r&&(r.type==="linear"||r.type==="radial")}function Dh(r){return"url(#"+r+")"}function RD(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ED(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Uv,n=re(r.scaleX,1),i=re(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_c(o*Uv)+"deg, "+_c(s*Uv)+"deg)"),l.join(" ")}var QB=(function(){return De.hasGlobalWindow&&ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),uy=Array.prototype.slice;function tn(r,e,t){return(e-r)*t+r}function bd(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=tn(e[i],t[i],a);return r}function ez(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=tn(e[o][s],t[o][s],a)}return r}function Ef(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function TS(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function tz(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function rz(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:uy.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function du(r){if(Xt(r)){var e=r.length;if(Xt(r[0])){for(var t=[],a=0;a<e;a++)t.push(uy.call(r[a]));return t}return uy.call(r)}return r}function Xv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function az(r){return Xt(r&&r[0])?2:1}var kf=0,qv=1,kD=2,eu=3,fy=4,vy=5,CS=6;function AS(r){return r===fy||r===vy}function Of(r){return r===qv||r===kD}var bl=[0,0,0,0],nz=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=CS,l=t;if(Xt(t)){var u=az(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!Zt(t))s=kf;else if(X(t))if(!isNaN(+t))s=kf;else{var f=dr(t);f&&(l=f,s=eu)}else if(wh(t)){var v=F({},l);v.colorStops=Y(t.colorStops,function(h){return{offset:h.offset,color:dr(h.color)}}),LD(t)?s=fy:ID(t)&&(s=vy),l=v}i===0?this.valType=s:(s!==this.valType||s===CS)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=ae(a)?a:hu[a]||x0(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Of(n),u=AS(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?rz(c,h,n):u&&tz(c.colorStops,h.colorStops))}if(!s&&n!==vy&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===kf?a[f].additiveValue=a[f].value-d:n===eu?a[f].additiveValue=Ef([],a[f].value,d,-1):Of(n)&&(a[f].additiveValue=n===qv?Ef([],a[f].value,d,-1):TS([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===eu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?bl:e[l];if((Of(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(Of(i))i===qv?bd(m,h[n],d[n],y):ez(m,h[n],d[n],y);else if(AS(i)){var _=h[n],S=d[n],x=i===fy;e[l]={type:x?"linear":"radial",x:tn(_.x,S.x,y),y:tn(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var M=S.colorStops[T];return{offset:tn(w.offset,M.offset,y),color:Xv(bd([],w.color,M.color,y))}}),global:S.global},x?(e[l].x2=tn(_.x2,S.x2,y),e[l].y2=tn(_.y2,S.y2,y)):e[l].r=tn(_.r,S.r,y)}else if(u)bd(m,h[n],d[n],y),a||(e[l]=Xv(m));else{var b=tn(h[n],d[n],y);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===kf?e[a]=e[a]+n:t===eu?(dr(e[a],bl),Ef(bl,bl,n,1),e[a]=Xv(bl)):t===qv?Ef(e[a],e[a],n,1):t===kD&&TS(e[a],e[a],n,1)},r})(),T0=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){g0("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Ie(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new nz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===eu&&u&&(u=Xv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,du(u),n),this._trackKeys.push(s)}l.addKeyframe(e,du(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new HB({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=du(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ie(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Ts(){return new Date().getTime()}var iz=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ts()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(dc(a),!t._paused&&t.update())}dc(a)},e.prototype.start=function(){this._running||(this._time=Ts(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ts(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ts()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new T0(t,a.loop);return this.addAnimator(n),n},e})(Zr),oz=300,xd=De.domSupported,wd=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),MS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},DS=!1;function cy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function sz(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 Td(r){r&&(r.zrByTouch=!0)}function lz(r,e){return Er(r.dom,new uz(r,e),!0)}function OD(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var uz=(function(){function r(e,t){this.stopPropagation=vt,this.stopImmediatePropagation=vt,this.preventDefault=vt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Qr={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;OD(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){DS=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){DS||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Td(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oz&&Qr.click.call(this,r)},pointerdown:function(r){Qr.mousedown.call(this,r)},pointermove:function(r){cy(r)||Qr.mousemove.call(this,r)},pointerup:function(r){Qr.mouseup.call(this,r)},pointerout:function(r){cy(r)||Qr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Qr[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var hy={pointermove:function(r){cy(r)||hy.mousemove.call(this,r)},pointerup:function(r){hy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function fz(r,e){var t=e.domHandlers;De.pointerEventsSupported?D(wd.pointer,function(a){Kv(e,a,function(n){t[a].call(r,n)})}):(De.touchEventsSupported&&D(wd.touch,function(a){Kv(e,a,function(n){t[a].call(r,n),sz(e)})}),D(wd.mouse,function(a){Kv(e,a,function(n){n=S0(n),e.touching||t[a].call(r,n)})}))}function vz(r,e){De.pointerEventsSupported?D(MS.pointer,t):De.touchEventsSupported||D(MS.mouse,t);function t(a){function n(i){i=S0(i),OD(r,i.target)||(i=lz(r,i),e.domHandlers[a].call(r,i))}Kv(e,a,n,{capture:!0})}}function Kv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,ey(r.domTarget,e,t,a)}function Cd(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&xB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var LS=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),cz=(function(r){N(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new LS(t,Qr),xd&&(n._globalHandlerScope=new LS(document,hy)),fz(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Cd(this._localHandlerScope),xd&&Cd(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,xd&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?vz(this,a):Cd(a)}},e})(Zr),ND=1;De.hasGlobalWindow&&(ND=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sc=ND,dy=.4,py="#333",gy="#ccc",hz="#eee",IS=Ah,PS=5e-5;function Ci(r){return r>PS||r<-PS}var Ai=[],$o=[],Ad=Bt(),Md=Math.abs,on=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ci(this.rotation)||Ci(this.x)||Ci(this.y)||Ci(this.scaleX-1)||Ci(this.scaleY-1)||Ci(this.skewX)||Ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(IS(a),this.invTransform=null);return}a=a||Bt(),t?this.getLocalTransform(a):IS(a),e&&(t?Ba(a,e,a):Mh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ai);var a=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,i=((Ai[0]-a)*t+a)/Ai[0]||0,o=((Ai[1]-n)*t+n)/Ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Bt(),ua(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Bt(),Ba($o,e.invTransform,t),t=$o);var a=this.originX,n=this.originY;(a||n)&&(Ad[4]=a,Ad[5]=n,Ba($o,t,Ad),$o[4]-=a,$o[5]-=n,t=$o),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ct(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ct(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Md(e[0]-1)>1e-10&&Md(e[3]-1)>1e-10?Math.sqrt(Md(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bc(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&di(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bc(r,e){for(var t=0;t<Wa.length;t++){var a=Wa[t];r[a]=e[a]}}function Va(r){Nf||(Nf=new Vs(100)),r=r||dn;var e=Nf.get(r);return e||(e={font:r,strWidthCache:new Vs(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:la.measureText("国",r).width,asciiCharWidth:la.measureText("a",r).width},Nf.put(r,e)),e}var Nf;function dz(r){if(!(Dd>=RS)){r=r||dn;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=la.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Dd=RS:n>2&&Dd++,e}}var Dd=0,RS=5;function BD(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=dz(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ga(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=la.measureText(e,r.font).width,t.put(e,a)),a}function ES(r,e,t,a){var n=Ga(Va(e),r),i=rf(e),o=Gs(0,n,t),s=ho(0,i,a),l=new ve(o,s,n,i);return l}function Lh(r,e,t,a){var n=((r||"")+"").split(`
|
|
1
|
+
import{inject as sa,ref as Me,getCurrentInstance as Po,computed as Te,onMounted as tf,watch as cr,toRef as Gg,onUnmounted as Gk,unref as Ye,shallowRef as FM,nextTick as Or,defineComponent as ca,onBeforeUnmount as n0,createBlock as er,openBlock as Ne,Transition as HM,withCtx as Dt,withDirectives as Is,createElementVNode as lt,withModifiers as Hn,normalizeClass as ke,normalizeStyle as ln,vShow as mh,createElementBlock as nt,Fragment as gs,createVNode as _r,provide as i0,reactive as Bs,onActivated as Fk,onUpdated as Hk,createCommentVNode as Gt,resolveDynamicComponent as Hv,renderSlot as Ot,isVNode as Wv,toRaw as Wk,toDisplayString as en,toRefs as o0,watchEffect as Uk,resolveComponent as An,resolveDirective as Yk,toHandlerKey as $k,renderList as Af,mergeProps as Y1,normalizeProps as Zk,createTextVNode as $1,vModelText as Xk}from"vue";import{ap as qk,o as Fg,u as WM,t as Kk,aq as UM,x as jk,ar as YM,H as $M,a7 as ra,as as Jk,C as Qk,at as eO,L as _h,R as s0,au as ZM,av as l0,aw as tO,ai as Ps,a4 as ao,ax as rO,Z as el,_ as hi,Y as ii,N as xs,P as XM,$ as jr,ay as Z1,aj as an,W as Ia,a1 as u0,U as xr,az as aO,a8 as qM,E as Hg,aA as X1,ag as nO,X as no,aB as iO,aC as oO,aD as sO,T as Mf,aE as q1,aF as lO,aG as uO,ac as K1,ad as qr,aH as fO,M as vO,aI as cO,a9 as j1,aJ as hO,ab as dO,aK as J1,aL as pO,Q as gO,aM as yO,a5 as mO,a2 as KM,aN as Sh}from"./main-C_XJSqfJ.js";import{useI18n as jM}from"vue-i18n";var _O=/\s/;function SO(r){for(var e=r.length;e--&&_O.test(r.charAt(e)););return e}var bO=/^\s+/;function xO(r){return r&&r.slice(0,SO(r)+1).replace(bO,"")}var Q1=NaN,wO=/^[-+]0x[0-9a-f]+$/i,TO=/^0b[01]+$/i,CO=/^0o[0-7]+$/i,AO=parseInt;function fd(r){if(typeof r=="number")return r;if(qk(r))return Q1;if(Fg(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Fg(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=xO(r);var t=TO.test(r);return t||CO.test(r)?AO(r.slice(2),t?2:8):wO.test(r)?Q1:+r}function MO(r,e,t,a){r.length;for(var n=t+1;n--;)if(e(r[n],n,r))return n;return-1}function Fn(){if(!arguments.length)return[];var r=arguments[0];return WM(r)?r:[r]}function DO(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}function LO(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=fd(t),t=t===t?t:0),e!==void 0&&(e=fd(e),e=e===e?e:0),DO(fd(r),e,t)}var IO=1,PO=2;function RO(r,e,t,a){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var o=t[n];if(o[2]?o[1]!==r[o[0]]:!(o[0]in r))return!1}for(;++n<i;){o=t[n];var s=o[0],l=r[s],u=o[1];if(o[2]){if(l===void 0&&!(s in r))return!1}else{var f=new Kk,v;if(!(v===void 0?UM(u,l,IO|PO,a,f):v))return!1}}return!0}function JM(r){return r===r&&!Fg(r)}function EO(r){for(var e=jk(r),t=e.length;t--;){var a=e[t],n=r[a];e[t]=[a,n,JM(n)]}return e}function QM(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function kO(r){var e=EO(r);return e.length==1&&e[0][2]?QM(e[0][0],e[0][1]):function(t){return t===r||RO(t,r,e)}}var OO=1,NO=2;function BO(r,e){return YM(r)&&JM(e)?QM($M(r),e):function(t){var a=ra(t,r);return a===void 0&&a===e?Jk(t,r):UM(e,a,OO|NO)}}function zO(r){return function(e){return e?.[r]}}function VO(r){return function(e){return Qk(e,r)}}function GO(r){return YM(r)?zO($M(r)):VO(r)}function FO(r){return typeof r=="function"?r:r==null?eO:typeof r=="object"?WM(r)?BO(r[0],r[1]):kO(r):GO(r)}function HO(r,e,t){var a=r==null?0:r.length;if(!a)return-1;var n=a-1;return MO(r,FO(e),n)}class WO extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function eD(r,e){throw new WO(`[${r}] ${e}`)}function EQ(r,e){}const ys="update:modelValue",tD="change";function UO(r,e){if(!_h)return;if(!e){r.scrollTop=0;return}const t=[];let a=e.offsetParent;for(;a!==null&&r!==a&&r.contains(a);)t.push(a),a=a.offsetParent;const n=e.offsetTop+t.reduce((l,u)=>l+u.offsetTop,0),i=n+e.offsetHeight,o=r.scrollTop,s=o+r.clientHeight;n<o?r.scrollTop=n:i>s&&(r.scrollTop=i-r.clientHeight)}const YO=()=>{const r=sa(s0,void 0),e=sa(ZM,void 0);return{form:r,formItem:e}},$O=(r,{formItemContext:e,disableIdGeneration:t,disableIdManagement:a})=>{t||(t=Me(!1)),a||(a=Me(!1));const n=Po(),i=()=>{let u=n?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},o=Me();let s;const l=Te(()=>{var u;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((u=e.inputIds)==null?void 0:u.length)<=1)});return tf(()=>{s=cr([Gg(r,"id"),t],([u,f])=>{const v=u??(f?void 0:l0().value);v!==o.value&&(e?.removeInputId&&!i()&&(o.value&&e.removeInputId(o.value),!a?.value&&!f&&v&&e.addInputId(v)),o.value=v)},{immediate:!0})}),Gk(()=>{s&&s(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},rD=r=>{const e=Po();return Te(()=>{var t,a;return(a=(t=e?.proxy)==null?void 0:t.$props)==null?void 0:a[r]})},aD=(r,e={})=>{const t=Me(void 0),a=e.prop?t:rD("size"),n=e.global?t:tO(),i=e.form?{size:void 0}:sa(s0,void 0),o=e.formItem?{size:void 0}:sa(ZM,void 0);return Te(()=>a.value||Ye(r)||o?.size||i?.size||n.value||"")},ZO=r=>{const e=rD("disabled"),t=sa(s0,void 0);return Te(()=>{var a,n,i;return(i=(n=(a=e.value)!=null?a:Ye(r))!=null?n:t?.disabled)!=null?i:!1})};function XO(r,{disabled:e,beforeFocus:t,afterFocus:a,beforeBlur:n,afterBlur:i}={}){const o=Po(),{emit:s}=o,l=FM(),u=Me(!1),f=h=>{const d=ao(t)?t(h):!1;Ye(e)||u.value||d||(u.value=!0,s("focus",h),a?.())},v=h=>{var d;const p=ao(n)?n(h):!1;Ye(e)||h.relatedTarget&&((d=l.value)!=null&&d.contains(h.relatedTarget))||p||(u.value=!1,s("blur",h),i?.())},c=h=>{var d,p;Ye(e)||rO(h.target)||(d=l.value)!=null&&d.contains(document.activeElement)&&l.value!==document.activeElement||(p=r.value)==null||p.focus()};return cr([l,()=>Ye(e)],([h,d])=>{h&&(d?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Ps(l,"focus",f,!0),Ps(l,"blur",v,!0),Ps(l,"click",c,!0),{isFocused:u,wrapperRef:l,handleFocus:f,handleBlur:v}}const qO=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r);function KO({afterComposition:r,emit:e}){const t=Me(!1),a=s=>{e?.("compositionstart",s),t.value=!0},n=s=>{var l;e?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,f=u[u.length-1]||"";t.value=!qO(f)},i=s=>{e?.("compositionend",s),t.value&&(t.value=!1,Or(()=>r(s)))};return{isComposing:t,handleComposition:s=>{s.type==="compositionend"?i(s):n(s)},handleCompositionStart:a,handleCompositionUpdate:n,handleCompositionEnd:i}}const Wo=4,jO={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},JO=({move:r,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${r}%)`}),f0=Symbol("scrollbarContextKey"),QO=el({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),eN="Thumb",tN=ca({__name:"thumb",props:QO,setup(r){const e=r,t=sa(f0),a=ii("scrollbar");t||eD(eN,"can not inject scrollbar context");const n=Me(),i=Me(),o=Me({}),s=Me(!1);let l=!1,u=!1,f=0,v=0,c=_h?document.onselectstart:null;const h=Te(()=>jO[e.vertical?"vertical":"horizontal"]),d=Te(()=>JO({size:e.size,move:e.move,bar:h.value})),p=Te(()=>n.value[h.value.offset]**2/t.wrapElement[h.value.scrollSize]/e.ratio/i.value[h.value.offset]),g=T=>{var M;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(M=window.getSelection())==null||M.removeAllRanges(),m(T);const C=T.currentTarget;C&&(o.value[h.value.axis]=C[h.value.offset]-(T[h.value.client]-C.getBoundingClientRect()[h.value.direction]))},y=T=>{if(!i.value||!n.value||!t.wrapElement)return;const M=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),C=i.value[h.value.offset]/2,A=(M-C)*100*p.value/n.value[h.value.offset];t.wrapElement[h.value.scroll]=A*t.wrapElement[h.value.scrollSize]/100},m=T=>{T.stopImmediatePropagation(),l=!0,f=t.wrapElement.scrollHeight,v=t.wrapElement.scrollWidth,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S),c=document.onselectstart,document.onselectstart=()=>!1},_=T=>{if(!n.value||!i.value||l===!1)return;const M=o.value[h.value.axis];if(!M)return;const C=(n.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,A=i.value[h.value.offset]-M,I=(C-A)*100*p.value/n.value[h.value.offset];h.value.scroll==="scrollLeft"?t.wrapElement[h.value.scroll]=I*v/100:t.wrapElement[h.value.scroll]=I*f/100},S=()=>{l=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),w(),u&&(s.value=!1)},x=()=>{u=!1,s.value=!!e.size},b=()=>{u=!0,s.value=l};n0(()=>{w(),document.removeEventListener("mouseup",S)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Ps(Gg(t,"scrollbarElement"),"mousemove",x),Ps(Gg(t,"scrollbarElement"),"mouseleave",b),(T,M)=>(Ne(),er(HM,{name:Ye(a).b("fade"),persisted:""},{default:Dt(()=>[Is(lt("div",{ref_key:"instance",ref:n,class:ke([Ye(a).e("bar"),Ye(a).is(Ye(h).key)]),onMousedown:y,onClick:Hn(()=>{},["stop"])},[lt("div",{ref_key:"thumb",ref:i,class:ke(Ye(a).e("thumb")),style:ln(Ye(d)),onMousedown:g},null,38)],42,["onClick"]),[[mh,T.always||s.value]])]),_:1},8,["name"]))}});var eS=hi(tN,[["__file","thumb.vue"]]);const rN=el({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),aN=ca({__name:"bar",props:rN,setup(r,{expose:e}){const t=r,a=sa(f0),n=Me(0),i=Me(0),o=Me(""),s=Me(""),l=Me(1),u=Me(1);return e({handleScroll:c=>{if(c){const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo;i.value=c.scrollTop*100/h*l.value,n.value=c.scrollLeft*100/d*u.value}},update:()=>{const c=a?.wrapElement;if(!c)return;const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo,p=h**2/c.scrollHeight,g=d**2/c.scrollWidth,y=Math.max(p,t.minSize),m=Math.max(g,t.minSize);l.value=p/(h-p)/(y/(h-y)),u.value=g/(d-g)/(m/(d-m)),s.value=y+Wo<h?`${y}px`:"",o.value=m+Wo<d?`${m}px`:""}}),(c,h)=>(Ne(),nt(gs,null,[_r(eS,{move:n.value,ratio:u.value,size:o.value,always:c.always},null,8,["move","ratio","size","always"]),_r(eS,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:c.always},null,8,["move","ratio","size","always"])],64))}});var nN=hi(aN,[["__file","bar.vue"]]);const iN=el({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:jr([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...XM(["ariaLabel","ariaOrientation"])}),nD={"end-reached":r=>["left","right","top","bottom"].includes(r),scroll:({scrollTop:r,scrollLeft:e})=>[r,e].every(xs)},oN="ElScrollbar",sN=ca({name:oN}),lN=ca({...sN,props:iN,emits:nD,setup(r,{expose:e,emit:t}){const a=r,n=ii("scrollbar");let i,o,s,l=0,u=0,f="";const v={bottom:!1,top:!1,right:!1,left:!1},c=Me(),h=Me(),d=Me(),p=Me(),g=Te(()=>{const A={},I=Z1(a.height),L=Z1(a.maxHeight);return I&&(A.height=I),L&&(A.maxHeight=L),[a.wrapStyle,A]}),y=Te(()=>[a.wrapClass,n.e("wrap"),{[n.em("wrap","hidden-default")]:!a.native}]),m=Te(()=>[n.e("view"),a.viewClass]),_=A=>{var I;return(I=v[A])!=null?I:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=A=>{const I=S[f];if(!I)return;const L=A[f],P=A[I];L&&!v[f]&&(v[f]=!0),!P&&v[I]&&(v[I]=!1)},b=()=>{var A;if(h.value){(A=p.value)==null||A.handleScroll(h.value);const I=l,L=u;l=h.value.scrollTop,u=h.value.scrollLeft;const P={bottom:l+h.value.clientHeight>=h.value.scrollHeight-a.distance,top:l<=a.distance&&I!==0,right:u+h.value.clientWidth>=h.value.scrollWidth-a.distance&&L!==u,left:u<=a.distance&&L!==0};if(t("scroll",{scrollTop:l,scrollLeft:u}),I!==l&&(f=l>I?"bottom":"top"),L!==u&&(f=u>L?"right":"left"),a.distance>0){if(_(f))return;x(P)}P[f]&&t("end-reached",f)}};function w(A,I){Ia(A)?h.value.scrollTo(A):xs(A)&&xs(I)&&h.value.scrollTo(A,I)}const T=A=>{xs(A)&&(h.value.scrollTop=A)},M=A=>{xs(A)&&(h.value.scrollLeft=A)},C=()=>{var A;(A=p.value)==null||A.update(),v[f]=!1};return cr(()=>a.noresize,A=>{A?(i?.(),o?.(),s?.()):({stop:i}=an(d,C),{stop:o}=an(h,C),s=Ps("resize",C))},{immediate:!0}),cr(()=>[a.maxHeight,a.height],()=>{a.native||Or(()=>{var A;C(),h.value&&((A=p.value)==null||A.handleScroll(h.value))})}),i0(f0,Bs({scrollbarElement:c,wrapElement:h})),Fk(()=>{h.value&&(h.value.scrollTop=l,h.value.scrollLeft=u)}),tf(()=>{a.native||Or(()=>{C()})}),Hk(()=>C()),e({wrapRef:h,update:C,scrollTo:w,setScrollTop:T,setScrollLeft:M,handleScroll:b}),(A,I)=>(Ne(),nt("div",{ref_key:"scrollbarRef",ref:c,class:ke(Ye(n).b())},[lt("div",{ref_key:"wrapRef",ref:h,class:ke(Ye(y)),style:ln(Ye(g)),tabindex:A.tabindex,onScroll:b},[(Ne(),er(Hv(A.tag),{id:A.id,ref_key:"resizeRef",ref:d,class:ke(Ye(m)),style:ln(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:Dt(()=>[Ot(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?Gt("v-if",!0):(Ne(),er(nN,{key:0,ref_key:"barRef",ref:p,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var uN=hi(lN,[["__file","scrollbar.vue"]]);const fN=u0(uN),jl=r=>{const e=xr(r)?r:[r],t=[];return e.forEach(a=>{var n;xr(a)?t.push(...jl(a)):Wv(a)&&((n=a.component)!=null&&n.subTree)?t.push(a,...jl(a.component.subTree)):Wv(a)&&xr(a.children)?t.push(...jl(a.children)):Wv(a)&&a.shapeFlag===2?t.push(...jl(a.type())):t.push(a)}),t},Wg=el({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:aO},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),vN={close:r=>r instanceof MouseEvent,click:r=>r instanceof MouseEvent},cN=ca({name:"ElTag"}),hN=ca({...cN,props:Wg,emits:vN,setup(r,{emit:e}){const t=r,a=aD(),{t:n}=qM(),i=ii("tag"),o=Te(()=>{const{type:f,hit:v,effect:c,closable:h,round:d}=t;return[i.b(),i.is("closable",h),i.m(f||"primary"),i.m(a.value),i.m(c),i.is("hit",v),i.is("round",d)]}),s=f=>{e("close",f)},l=f=>{e("click",f)},u=f=>{var v,c,h;(h=(c=(v=f?.component)==null?void 0:v.subTree)==null?void 0:c.component)!=null&&h.bum&&(f.component.subTree.component.bum=null)};return(f,v)=>f.disableTransitions?(Ne(),nt("span",{key:0,class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)):(Ne(),er(HM,{key:1,name:`${Ye(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:Dt(()=>[lt("span",{class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)]),_:3},8,["name"]))}});var dN=hi(hN,[["__file","tag.vue"]]);const pN=u0(dN),Nn=new Map;if(_h){let r;document.addEventListener("mousedown",e=>r=e),document.addEventListener("mouseup",e=>{if(r){for(const t of Nn.values())for(const{documentHandler:a}of t)a(e,r);r=void 0}})}function tS(r,e){let t=[];return xr(e.arg)?t=e.arg:nO(e.arg)&&t.push(e.arg),function(a,n){const i=e.instance.popperRef,o=a.target,s=n?.target,l=!e||!e.instance,u=!o||!s,f=r.contains(o)||r.contains(s),v=r===o,c=t.length&&t.some(d=>d?.contains(o))||t.length&&t.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||f||v||c||h||e.value(a,n)}}const gN={beforeMount(r,e){Nn.has(r)||Nn.set(r,[]),Nn.get(r).push({documentHandler:tS(r,e),bindingFn:e.value})},updated(r,e){Nn.has(r)||Nn.set(r,[]);const t=Nn.get(r),a=t.findIndex(i=>i.bindingFn===e.oldValue),n={documentHandler:tS(r,e),bindingFn:e.value};a>=0?t.splice(a,1,n):t.push(n)},unmounted(r){Nn.delete(r)}},iD=11,yN=2;function mN(){const r=FM(),e=Me(0),t=Te(()=>({minWidth:`${Math.max(e.value,iD)}px`}));return an(r,()=>{var n,i;e.value=(i=(n=r.value)==null?void 0:n.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:r,calculatorWidth:e,inputStyle:t}}const Ug={label:"label",value:"value",disabled:"disabled",options:"options"};function _N(r){const e=Me({...Ug,...r.props});let t={...r.props};return cr(()=>r.props,s=>{no(s,t)||(e.value={...Ug,...s},t={...s})},{deep:!0}),{aliasProps:e,getLabel:s=>ra(s,e.value.label),getValue:s=>ra(s,e.value.value),getDisabled:s=>ra(s,e.value.disabled),getOptions:s=>ra(s,e.value.options)}}const oD=Symbol("ElSelectGroup"),bh=Symbol("ElSelect"),Yg="ElOption",SN=el({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),bN=(r="")=>r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function xN(r,e){const t=sa(bh);t||eD(Yg,"usage: <el-select><el-option /></el-select/>");const a=sa(oD,{disabled:!1}),n=Te(()=>f(Fn(t.props.modelValue),r.value)),i=Te(()=>{var h;if(t.props.multiple){const d=Fn((h=t.props.modelValue)!=null?h:[]);return!n.value&&d.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),o=Te(()=>{var h;return(h=r.label)!=null?h:Ia(r.value)?"":r.value}),s=Te(()=>r.value||r.label||""),l=Te(()=>r.disabled||e.groupDisabled||i.value),u=Po(),f=(h=[],d)=>{if(Ia(r.value)){const p=t.props.valueKey;return h&&h.some(g=>Wk(ra(g,p))===ra(d,p))}else return h&&h.includes(d)},v=()=>{l.value||(t.states.hoveringIndex=t.optionsArray.indexOf(u.proxy))},c=h=>{const d=new RegExp(bN(h),"i");e.visible=d.test(String(o.value))||r.created};return cr(()=>o.value,()=>{!r.created&&!t.props.remote&&t.setSelected()}),cr(()=>r.value,(h,d)=>{const{remote:p,valueKey:g}=t.props;if((p?h!==d:!no(h,d))&&(t.onOptionDestroy(d,u.proxy),t.onOptionCreate(u.proxy)),!r.created&&!p){if(g&&Ia(h)&&Ia(d)&&h[g]===d[g])return;t.setSelected()}}),cr(()=>a.disabled,()=>{e.groupDisabled=a.disabled},{immediate:!0}),{select:t,currentLabel:o,currentValue:s,itemSelected:n,isDisabled:l,hoverItem:v,updateOption:c}}const wN=ca({name:Yg,componentName:Yg,props:SN,setup(r){const e=ii("select"),t=l0(),a=Te(()=>[e.be("dropdown","item"),e.is("disabled",Ye(s)),e.is("selected",Ye(o)),e.is("hovering",Ye(c))]),n=Bs({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:f}=xN(r,n),{visible:v,hover:c}=o0(n),h=Po().proxy;l.onOptionCreate(h),n0(()=>{const p=h.value;Or(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===h.value);l.states.cachedOptions.get(p)===h&&!y&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,h)});function d(){s.value||l.handleOptionSelect(h)}return{ns:e,id:t,containerKls:a,currentLabel:i,itemSelected:o,isDisabled:s,select:l,visible:v,hover:c,states:n,hoverItem:u,updateOption:f,selectOptionClick:d}}});function TN(r,e){return Is((Ne(),nt("li",{id:r.id,class:ke(r.containerKls),role:"option","aria-disabled":r.isDisabled||void 0,"aria-selected":r.itemSelected,onMousemove:r.hoverItem,onClick:Hn(r.selectOptionClick,["stop"])},[Ot(r.$slots,"default",{},()=>[lt("span",null,en(r.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[mh,r.visible]])}var v0=hi(wN,[["render",TN],["__file","option.vue"]]);const CN=ca({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const r=sa(bh),e=ii("select"),t=Te(()=>r.props.popperClass),a=Te(()=>r.props.multiple),n=Te(()=>r.props.fitInputWidth),i=Me("");function o(){var s;const l=(s=r.selectRef)==null?void 0:s.offsetWidth;l?i.value=`${l-yN}px`:i.value=""}return tf(()=>{o(),an(r.selectRef,o)}),{ns:e,minWidth:i,popperClass:t,isMultiple:a,isFitInputWidth:n}}});function AN(r,e,t,a,n,i){return Ne(),nt("div",{class:ke([r.ns.b("dropdown"),r.ns.is("multiple",r.isMultiple),r.popperClass]),style:ln({[r.isFitInputWidth?"width":"minWidth"]:r.minWidth})},[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.ns.be("dropdown","header"))},[Ot(r.$slots,"header")],2)):Gt("v-if",!0),Ot(r.$slots,"default"),r.$slots.footer?(Ne(),nt("div",{key:1,class:ke(r.ns.be("dropdown","footer"))},[Ot(r.$slots,"footer")],2)):Gt("v-if",!0)],6)}var MN=hi(CN,[["render",AN],["__file","select-dropdown.vue"]]);const DN=(r,e)=>{const{t}=qM(),a=l0(),n=ii("select"),i=ii("input"),o=Bs({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Me(),l=Me(),u=Me(),f=Me(),v=Me(),c=Me(),h=Me(),d=Me(),p=Me(),g=Me(),y=Me(),m=Me(!1),_=Me(),S=Me(!1),{form:x,formItem:b}=YO(),{inputId:w}=$O(r,{formItemContext:b}),{valueOnClear:T,isEmptyValue:M}=iO(r),{isComposing:C,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L}=KO({afterComposition:G=>O1(G)}),P=ZO(),{wrapperRef:R,isFocused:E,handleBlur:O}=XO(v,{disabled:P,afterFocus(){r.automaticDropdown&&!m.value&&(m.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(G){var Q,Se;return((Q=u.value)==null?void 0:Q.isFocusInsideContent(G))||((Se=f.value)==null?void 0:Se.isFocusInsideContent(G))},afterBlur(){var G;m.value=!1,o.menuVisibleOnFocus=!1,r.validateEvent&&((G=b?.validate)==null||G.call(b,"blur").catch(Q=>void 0))}}),k=Te(()=>xr(r.modelValue)?r.modelValue.length>0:!M(r.modelValue)),B=Te(()=>{var G;return(G=x?.statusIcon)!=null?G:!1}),V=Te(()=>r.clearable&&!P.value&&k.value&&(E.value||o.inputHovering)),H=Te(()=>r.remote&&r.filterable&&!r.remoteShowSuffix?"":r.suffixIcon),W=Te(()=>n.is("reverse",!!(H.value&&m.value))),$=Te(()=>b?.validateState||""),j=Te(()=>$.value&&oO[$.value]),ce=Te(()=>r.remote?r.debounce:0),Re=Te(()=>r.remote&&!o.inputValue&&o.options.size===0),He=Te(()=>r.loading?r.loadingText||t("el.select.loading"):r.filterable&&o.inputValue&&o.options.size>0&&le.value===0?r.noMatchText||t("el.select.noMatch"):o.options.size===0?r.noDataText||t("el.select.noData"):null),le=Te(()=>K.value.filter(G=>G.visible).length),K=Te(()=>{const G=Array.from(o.options.values()),Q=[];return o.optionValues.forEach(Se=>{const Je=G.findIndex(it=>it.value===Se);Je>-1&&Q.push(G[Je])}),Q.length>=G.length?Q:G}),ge=Te(()=>Array.from(o.cachedOptions.values())),ee=Te(()=>{const G=K.value.filter(Q=>!Q.created).some(Q=>Q.currentLabel===o.inputValue);return r.filterable&&r.allowCreate&&o.inputValue!==""&&!G}),he=()=>{r.filterable&&ao(r.filterMethod)||r.filterable&&r.remote&&ao(r.remoteMethod)||K.value.forEach(G=>{var Q;(Q=G.updateOption)==null||Q.call(G,o.inputValue)})},We=aD(),Pe=Te(()=>["small"].includes(We.value)?"small":"default"),ze=Te({get(){return m.value&&(r.loading||!Re.value)&&(!S.value||!sO(o.previousQuery))},set(G){m.value=G}}),Ue=Te(()=>{if(r.multiple&&!Mf(r.modelValue))return Fn(r.modelValue).length===0&&!o.inputValue;const G=xr(r.modelValue)?r.modelValue[0]:r.modelValue;return r.filterable||Mf(G)?!o.inputValue:!0}),ht=Te(()=>{var G;const Q=(G=r.placeholder)!=null?G:t("el.select.placeholder");return r.multiple||!k.value?Q:o.selectedLabel}),Jt=Te(()=>q1?null:"mouseenter");cr(()=>r.modelValue,(G,Q)=>{r.multiple&&r.filterable&&!r.reserveKeyword&&(o.inputValue="",Mt("")),Xr(),!no(G,Q)&&r.validateEvent&&b?.validate("change").catch(Se=>void 0)},{flush:"post",deep:!0}),cr(()=>m.value,G=>{G?Mt(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0)}),cr(()=>o.options.entries(),()=>{_h&&(Xr(),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value&&ga())},{flush:"post"}),cr([()=>o.hoveringIndex,K],([G])=>{xs(G)&&G>-1?_.value=K.value[G]||{}:_.value={},K.value.forEach(Q=>{Q.hover=_.value===Q})}),Uk(()=>{o.isBeforeHide||he()});const Mt=G=>{o.previousQuery===G||C.value||(o.previousQuery=G,r.filterable&&ao(r.filterMethod)?r.filterMethod(G):r.filterable&&r.remote&&ao(r.remoteMethod)&&r.remoteMethod(G),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value?Or(ga):Or(_k))},ga=()=>{const G=K.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),Q=G.find(it=>it.created),Se=G[0],Je=K.value.map(it=>it.value);o.hoveringIndex=G1(Je,Q||Se)},Xr=()=>{if(r.multiple)o.selectedLabel="";else{const Q=xr(r.modelValue)?r.modelValue[0]:r.modelValue,Se=mi(Q);o.selectedLabel=Se.currentLabel,o.selected=[Se];return}const G=[];Mf(r.modelValue)||Fn(r.modelValue).forEach(Q=>{G.push(mi(Q))}),o.selected=G},mi=G=>{let Q;const Se=lO(G);for(let lr=o.cachedOptions.size-1;lr>=0;lr--){const gr=ge.value[lr];if(Se?ra(gr.value,r.valueKey)===ra(G,r.valueKey):gr.value===G){Q={index:K.value.filter(Si=>!Si.created).indexOf(gr),value:G,currentLabel:gr.currentLabel,get isDisabled(){return gr.isDisabled}};break}}if(Q)return Q;const Je=Se?G.label:G??"";return{index:-1,value:G,currentLabel:Je}},_k=()=>{const G=o.selected.length;if(G>0){const Q=o.selected[G-1];o.hoveringIndex=K.value.findIndex(Se=>xf(Q)===xf(Se))}else o.hoveringIndex=-1},Sk=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},bk=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width},ud=()=>{var G,Q;(Q=(G=u.value)==null?void 0:G.updatePopper)==null||Q.call(G)},E1=()=>{var G,Q;(Q=(G=f.value)==null?void 0:G.updatePopper)==null||Q.call(G)},k1=()=>{o.inputValue.length>0&&!m.value&&(m.value=!0),Mt(o.inputValue)},O1=G=>{if(o.inputValue=G.target.value,r.remote)S.value=!0,N1();else return k1()},N1=uO(()=>{k1(),S.value=!1},ce),yl=G=>{no(r.modelValue,G)||e(tD,G)},xk=G=>HO(G,Q=>{const Se=o.cachedOptions.get(Q);return!Se?.disabled&&!Se?.states.groupDisabled}),B1=G=>{const Q=K1(G);if(r.multiple&&Q!==qr.delete&&G.target.value.length<=0){const Se=Fn(r.modelValue).slice(),Je=xk(Se);if(Je<0)return;const it=Se[Je];Se.splice(Je,1),e(ys,Se),yl(Se),e("remove-tag",it)}},wk=(G,Q)=>{const Se=o.selected.indexOf(Q);if(Se>-1&&!P.value){const Je=Fn(r.modelValue).slice();Je.splice(Se,1),e(ys,Je),yl(Je),e("remove-tag",Q.value)}G.stopPropagation(),bf()},z1=G=>{G.stopPropagation();const Q=r.multiple?[]:T.value;if(r.multiple)for(const Se of o.selected)Se.isDisabled&&Q.push(Se.value);e(ys,Q),yl(Q),o.hoveringIndex=-1,m.value=!1,e("clear"),bf()},V1=G=>{var Q;if(r.multiple){const Se=Fn((Q=r.modelValue)!=null?Q:[]).slice(),Je=G1(Se,G);Je>-1?Se.splice(Je,1):(r.multipleLimit<=0||Se.length<r.multipleLimit)&&Se.push(G.value),e(ys,Se),yl(Se),G.created&&Mt(""),r.filterable&&!r.reserveKeyword&&(o.inputValue="")}else!no(r.modelValue,G.value)&&e(ys,G.value),yl(G.value),m.value=!1;bf(),!m.value&&Or(()=>{ml(G)})},G1=(G,Q)=>Mf(Q)?-1:Ia(Q.value)?G.findIndex(Se=>no(ra(Se,r.valueKey),xf(Q))):G.indexOf(Q.value),ml=G=>{var Q,Se,Je,it,lr;const gr=xr(G)?G[G.length-1]:G;let _i=null;if(!fO(gr?.value)){const Si=K.value.filter(Vk=>Vk.value===gr.value);Si.length>0&&(_i=Si[0].$el)}if(u.value&&_i){const Si=(it=(Je=(Se=(Q=u.value)==null?void 0:Q.popperRef)==null?void 0:Se.contentRef)==null?void 0:Je.querySelector)==null?void 0:it.call(Je,`.${n.be("dropdown","wrap")}`);Si&&UO(Si,_i)}(lr=y.value)==null||lr.handleScroll()},Tk=G=>{o.options.set(G.value,G),o.cachedOptions.set(G.value,G)},Ck=(G,Q)=>{o.options.get(G)===Q&&o.options.delete(G)},Ak=Te(()=>{var G,Q;return(Q=(G=u.value)==null?void 0:G.popperRef)==null?void 0:Q.contentRef}),Mk=()=>{o.isBeforeHide=!1,Or(()=>{var G;(G=y.value)==null||G.update(),ml(o.selected)})},bf=()=>{var G;(G=v.value)==null||G.focus()},Dk=()=>{var G;if(m.value){m.value=!1,Or(()=>{var Q;return(Q=v.value)==null?void 0:Q.blur()});return}(G=v.value)==null||G.blur()},Lk=G=>{z1(G)},Ik=G=>{if(m.value=!1,E.value){const Q=new FocusEvent("blur",G);Or(()=>O(Q))}},F1=()=>{o.inputValue.length>0?o.inputValue="":m.value=!1},H1=G=>{var Q;P.value||r.filterable&&m.value&&G&&!((Q=h.value)!=null&&Q.contains(G.target))||(q1&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:m.value=!m.value)},W1=()=>{if(!m.value)H1();else{const G=K.value[o.hoveringIndex];G&&!G.isDisabled&&V1(G)}},xf=G=>Ia(G.value)?ra(G.value,r.valueKey):G.value,Pk=Te(()=>K.value.filter(G=>G.visible).every(G=>G.isDisabled)),Rk=Te(()=>r.multiple?r.collapseTags?o.selected.slice(0,r.maxCollapseTags):o.selected:[]),Ek=Te(()=>r.multiple?r.collapseTags?o.selected.slice(r.maxCollapseTags):[]:[]),wf=G=>{if(!m.value){m.value=!0;return}if(!(o.options.size===0||le.value===0||C.value)&&!Pk.value){G==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):G==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Q=K.value[o.hoveringIndex];(Q.isDisabled||!Q.visible)&&wf(G),Or(()=>ml(_.value))}},U1=(G,Q,Se,Je)=>{for(let it=Q;it>=0&&it<Je;it+=Se){const lr=G[it];if(!lr?.isDisabled&&lr?.visible)return it}return null},Tf=(G,Q)=>{var Se;const Je=o.options.size;if(Je===0)return;const it=LO(G,0,Je-1),lr=K.value,gr=Q==="up"?-1:1,_i=(Se=U1(lr,it,gr,Je))!=null?Se:U1(lr,it-gr,-gr,Je);_i!=null&&(o.hoveringIndex=_i,Or(()=>ml(_.value)))},kk=G=>{const Q=K1(G);let Se=!0;switch(Q){case qr.up:wf("prev");break;case qr.down:wf("next");break;case qr.enter:case qr.numpadEnter:C.value||W1();break;case qr.esc:F1();break;case qr.backspace:Se=!1,B1(G);return;case qr.home:if(!m.value)return;Tf(0,"down");break;case qr.end:if(!m.value)return;Tf(o.options.size-1,"up");break;case qr.pageUp:if(!m.value)return;Tf(o.hoveringIndex-10,"up");break;case qr.pageDown:if(!m.value)return;Tf(o.hoveringIndex+10,"down");break;default:Se=!1;break}Se&&(G.preventDefault(),G.stopPropagation())},Ok=()=>{if(!l.value)return 0;const G=window.getComputedStyle(l.value);return Number.parseFloat(G.gap||"6px")},Nk=Te(()=>{const G=Ok(),Q=r.filterable?G+iD:0;return{maxWidth:`${g.value&&r.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-G-Q:o.selectionWidth-Q}px`}}),Bk=Te(()=>({maxWidth:`${o.selectionWidth}px`})),zk=G=>{e("popup-scroll",G)};an(l,Sk),an(R,ud),an(p,E1),an(g,bk);let Cf;return cr(()=>ze.value,G=>{G?Cf=an(d,ud).stop:(Cf?.(),Cf=void 0),e("visible-change",G)}),tf(()=>{Xr()}),{inputId:w,contentId:a,nsSelect:n,nsInput:i,states:o,isFocused:E,expanded:m,optionsArray:K,hoverOption:_,selectSize:We,filteredOptionsCount:le,updateTooltip:ud,updateTagTooltip:E1,debouncedOnInputChange:N1,onInput:O1,deletePrevTag:B1,deleteTag:wk,deleteSelected:z1,handleOptionSelect:V1,scrollToOption:ml,hasModelValue:k,shouldShowPlaceholder:Ue,currentPlaceholder:ht,mouseEnterEventName:Jt,needStatusIcon:B,showClearBtn:V,iconComponent:H,iconReverse:W,validateState:$,validateIcon:j,showNewOption:ee,updateOptions:he,collapseTagSize:Pe,setSelected:Xr,selectDisabled:P,emptyText:He,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L,handleKeydown:kk,onOptionCreate:Tk,onOptionDestroy:Ck,handleMenuEnter:Mk,focus:bf,blur:Dk,handleClearClick:Lk,handleClickOutside:Ik,handleEsc:F1,toggleMenu:H1,selectOption:W1,getValueKey:xf,navigateOptions:wf,dropdownMenuVisible:ze,showTagList:Rk,collapseTagList:Ek,popupScroll:zk,getOption:mi,tagStyle:Nk,collapseTagStyle:Bk,popperRef:Ak,inputRef:v,tooltipRef:u,tagTooltipRef:f,prefixRef:c,suffixRef:h,selectRef:s,wrapperRef:R,selectionRef:l,scrollbarRef:y,menuRef:d,tagMenuRef:p,collapseItemRef:g}};var LN=ca({name:"ElOptions",setup(r,{slots:e}){const t=sa(bh);let a=[];return()=>{var n,i;const o=(n=e.default)==null?void 0:n.call(e),s=[];function l(u){xr(u)&&u.forEach(f=>{var v,c,h,d;const p=(v=f?.type||{})==null?void 0:v.name;p==="ElOptionGroup"?l(!vO(f.children)&&!xr(f.children)&&ao((c=f.children)==null?void 0:c.default)?(h=f.children)==null?void 0:h.default():f.children):p==="ElOption"?s.push((d=f.props)==null?void 0:d.value):xr(f.children)&&l(f.children)})}return o.length&&l((i=o[0])==null?void 0:i.children),no(s,a)||(a=s,t&&(t.states.optionValues=s)),o}}});const IN=el({name:String,id:String,modelValue:{type:jr([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:gO,effect:{type:jr(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:jr([String,Object])},popperOptions:{type:jr(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:jr(Function)},filterMethod:{type:jr(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:j1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:J1,default:pO},fitInputWidth:Boolean,suffixIcon:{type:J1,default:dO},tagType:{...Wg.type,default:"info"},tagEffect:{...Wg.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:jr(String),values:hO,default:"bottom-start"},fallbackPlacements:{type:jr(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:j1.appendTo,options:{type:jr(Array)},props:{type:jr(Object),default:()=>Ug},...cO,...XM(["ariaLabel"])});nD.scroll;const PN=ca({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(r){const e=ii("select"),t=Me(),a=Po(),n=Me([]);i0(oD,Bs({...o0(r)}));const i=Te(()=>n.value.some(u=>u.visible===!0)),o=u=>{var f;return u.type.name==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},s=u=>{const f=Fn(u),v=[];return f.forEach(c=>{var h;Wv(c)&&(o(c)?v.push(c.component.proxy):xr(c.children)&&c.children.length?v.push(...s(c.children)):(h=c.component)!=null&&h.subTree&&v.push(...s(c.component.subTree)))}),v},l=()=>{n.value=s(a.subTree)};return tf(()=>{l()}),yO(t,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:i,ns:e}}});function RN(r,e,t,a,n,i){return Is((Ne(),nt("ul",{ref:"groupRef",class:ke(r.ns.be("group","wrap"))},[lt("li",{class:ke(r.ns.be("group","title"))},en(r.label),3),lt("li",null,[lt("ul",{class:ke(r.ns.b("group"))},[Ot(r.$slots,"default")],2)])],2)),[[mh,r.visible]])}var c0=hi(PN,[["render",RN],["__file","option-group.vue"]]);const rS="ElSelect",Tu=new WeakMap,EN=r=>(...e)=>{var t,a;const n=e[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((t=e[2])!=null&&t.includes("ElTreeSelect")))return;const i=(a=Tu.get(r))==null?void 0:a.originalWarnHandler;if(i){i(...e);return}console.warn(...e)},kN=r=>{let e=Tu.get(r);return e||(e={originalWarnHandler:r.config.warnHandler,handler:EN(r),count:0},Tu.set(r,e)),e},ON=ca({name:rS,componentName:rS,components:{ElSelectMenu:MN,ElOption:v0,ElOptions:LN,ElOptionGroup:c0,ElTag:pN,ElScrollbar:fN,ElTooltip:mO,ElIcon:Hg},directives:{ClickOutside:gN},props:IN,emits:[ys,tD,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(r,{emit:e,slots:t}){const a=Po(),n=kN(a.appContext);n.count+=1,a.appContext.config.warnHandler=n.handler;const i=Te(()=>{const{modelValue:m,multiple:_}=r,S=_?[]:void 0;return xr(m)?_?m:S:_?S:m}),o=Bs({...o0(r),modelValue:i}),s=DN(o,e),{calculatorRef:l,inputStyle:u}=mN(),{getLabel:f,getValue:v,getOptions:c,getDisabled:h}=_N(r),d=m=>({label:f(m),value:v(m),disabled:h(m)}),p=m=>m.reduce((_,S)=>(_.push(S),S.children&&S.children.length>0&&_.push(...p(S.children)),_),[]),g=m=>{jl(m||[]).forEach(S=>{var x;if(Ia(S)&&(S.type.name==="ElOption"||S.type.name==="ElTree")){const b=S.type.name;if(b==="ElTree"){const w=((x=S.props)==null?void 0:x.data)||[];p(w).forEach(M=>{M.currentLabel=M.label||(Ia(M.value)?"":M.value),s.onOptionCreate(M)})}else if(b==="ElOption"){const w={...S.props};w.currentLabel=w.label||(Ia(w.value)?"":w.value),s.onOptionCreate(w)}}})};cr(()=>{var m;return[(m=t.default)==null?void 0:m.call(t),i.value]},()=>{var m;r.persistent||s.expanded.value||(s.states.options.clear(),g((m=t.default)==null?void 0:m.call(t)))},{immediate:!0}),i0(bh,Bs({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=Te(()=>r.multiple?s.states.selected.map(m=>m.currentLabel):s.states.selectedLabel);return n0(()=>{const m=Tu.get(a.appContext);m&&(m.count-=1,m.count<=0&&(a.appContext.config.warnHandler=m.originalWarnHandler,Tu.delete(a.appContext)))}),{...s,modelValue:i,selectedLabel:y,calculatorRef:l,inputStyle:u,getLabel:f,getValue:v,getOptions:c,getDisabled:h,getOptionProps:d}}});function NN(r,e){const t=An("el-tag"),a=An("el-tooltip"),n=An("el-icon"),i=An("el-option"),o=An("el-option-group"),s=An("el-options"),l=An("el-scrollbar"),u=An("el-select-menu"),f=Yk("click-outside");return Is((Ne(),nt("div",{ref:"selectRef",class:ke([r.nsSelect.b(),r.nsSelect.m(r.selectSize)]),[$k(r.mouseEnterEventName)]:v=>r.states.inputHovering=!0,onMouseleave:v=>r.states.inputHovering=!1},[_r(a,{ref:"tooltipRef",visible:r.dropdownMenuVisible,placement:r.placement,teleported:r.teleported,"popper-class":[r.nsSelect.e("popper"),r.popperClass],"popper-style":r.popperStyle,"popper-options":r.popperOptions,"fallback-placements":r.fallbackPlacements,effect:r.effect,pure:"",trigger:"click",transition:`${r.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:r.persistent,"append-to":r.appendTo,"show-arrow":r.showArrow,offset:r.offset,onBeforeShow:r.handleMenuEnter,onHide:v=>r.states.isBeforeHide=!1},{default:Dt(()=>{var v;return[lt("div",{ref:"wrapperRef",class:ke([r.nsSelect.e("wrapper"),r.nsSelect.is("focused",r.isFocused),r.nsSelect.is("hovering",r.states.inputHovering),r.nsSelect.is("filterable",r.filterable),r.nsSelect.is("disabled",r.selectDisabled)]),onClick:Hn(r.toggleMenu,["prevent"])},[r.$slots.prefix?(Ne(),nt("div",{key:0,ref:"prefixRef",class:ke(r.nsSelect.e("prefix"))},[Ot(r.$slots,"prefix")],2)):Gt("v-if",!0),lt("div",{ref:"selectionRef",class:ke([r.nsSelect.e("selection"),r.nsSelect.is("near",r.multiple&&!r.$slots.prefix&&!!r.states.selected.length)])},[r.multiple?Ot(r.$slots,"tag",{key:0,data:r.states.selected,deleteTag:r.deleteTag,selectDisabled:r.selectDisabled},()=>[(Ne(!0),nt(gs,null,Af(r.showTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.tagStyle),onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),r.collapseTags&&r.states.selected.length>r.maxCollapseTags?(Ne(),er(a,{key:0,ref:"tagTooltipRef",disabled:r.dropdownMenuVisible||!r.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:r.effect,placement:"bottom","popper-class":r.popperClass,"popper-style":r.popperStyle,teleported:r.teleported},{default:Dt(()=>[lt("div",{ref:"collapseItemRef",class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!1,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.collapseTagStyle)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))}," + "+en(r.states.selected.length-r.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Dt(()=>[lt("div",{ref:"tagMenuRef",class:ke(r.nsSelect.e("selection"))},[(Ne(!0),nt(gs,null,Af(r.collapseTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{class:"in-tooltip",closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):Gt("v-if",!0)]):Gt("v-if",!0),lt("div",{class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("input-wrapper"),r.nsSelect.is("hidden",!r.filterable||r.selectDisabled)])},[Is(lt("input",{id:r.inputId,ref:"inputRef","onUpdate:modelValue":c=>r.states.inputValue=c,type:"text",name:r.name,class:ke([r.nsSelect.e("input"),r.nsSelect.is(r.selectSize)]),disabled:r.selectDisabled,autocomplete:r.autocomplete,style:ln(r.inputStyle),tabindex:r.tabindex,role:"combobox",readonly:!r.filterable,spellcheck:"false","aria-activedescendant":((v=r.hoverOption)==null?void 0:v.id)||"","aria-controls":r.contentId,"aria-expanded":r.dropdownMenuVisible,"aria-label":r.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:r.handleKeydown,onCompositionstart:r.handleCompositionStart,onCompositionupdate:r.handleCompositionUpdate,onCompositionend:r.handleCompositionEnd,onInput:r.onInput,onClick:Hn(r.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Xk,r.states.inputValue]]),r.filterable?(Ne(),nt("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ke(r.nsSelect.e("input-calculator")),textContent:en(r.states.inputValue)},null,10,["textContent"])):Gt("v-if",!0)],2),r.shouldShowPlaceholder?(Ne(),nt("div",{key:1,class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("placeholder"),r.nsSelect.is("transparent",!r.hasModelValue||r.expanded&&!r.states.inputValue)])},[r.hasModelValue?Ot(r.$slots,"label",{key:0,index:r.getOption(r.modelValue).index,label:r.currentPlaceholder,value:r.modelValue},()=>[lt("span",null,en(r.currentPlaceholder),1)]):(Ne(),nt("span",{key:1},en(r.currentPlaceholder),1))],2)):Gt("v-if",!0)],2),lt("div",{ref:"suffixRef",class:ke(r.nsSelect.e("suffix"))},[r.iconComponent&&!r.showClearBtn?(Ne(),er(n,{key:0,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.iconReverse])},{default:Dt(()=>[(Ne(),er(Hv(r.iconComponent)))]),_:1},8,["class"])):Gt("v-if",!0),r.showClearBtn&&r.clearIcon?(Ne(),er(n,{key:1,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.nsSelect.e("clear")]),onClick:r.handleClearClick},{default:Dt(()=>[(Ne(),er(Hv(r.clearIcon)))]),_:1},8,["class","onClick"])):Gt("v-if",!0),r.validateState&&r.validateIcon&&r.needStatusIcon?(Ne(),er(n,{key:2,class:ke([r.nsInput.e("icon"),r.nsInput.e("validateIcon"),r.nsInput.is("loading",r.validateState==="validating")])},{default:Dt(()=>[(Ne(),er(Hv(r.validateIcon)))]),_:1},8,["class"])):Gt("v-if",!0)],2)],10,["onClick"])]}),content:Dt(()=>[_r(u,{ref:"menuRef"},{default:Dt(()=>[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.nsSelect.be("dropdown","header")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"header")],10,["onClick"])):Gt("v-if",!0),Is(_r(l,{id:r.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":r.nsSelect.be("dropdown","wrap"),"view-class":r.nsSelect.be("dropdown","list"),class:ke([r.nsSelect.is("empty",r.filteredOptionsCount===0)]),role:"listbox","aria-label":r.ariaLabel,"aria-orientation":"vertical",onScroll:r.popupScroll},{default:Dt(()=>[r.showNewOption?(Ne(),er(i,{key:0,value:r.states.inputValue,created:!0},null,8,["value"])):Gt("v-if",!0),_r(s,null,{default:Dt(()=>[Ot(r.$slots,"default",{},()=>[(Ne(!0),nt(gs,null,Af(r.options,(v,c)=>{var h;return Ne(),nt(gs,{key:c},[(h=r.getOptions(v))!=null&&h.length?(Ne(),er(o,{key:0,label:r.getLabel(v),disabled:r.getDisabled(v)},{default:Dt(()=>[(Ne(!0),nt(gs,null,Af(r.getOptions(v),d=>(Ne(),er(i,Y1({key:r.getValue(d)},r.getOptionProps(d)),null,16))),128))]),_:2},1032,["label","disabled"])):(Ne(),er(i,Zk(Y1({key:1},r.getOptionProps(v))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[mh,r.states.options.size>0&&!r.loading]]),r.$slots.loading&&r.loading?(Ne(),nt("div",{key:1,class:ke(r.nsSelect.be("dropdown","loading"))},[Ot(r.$slots,"loading")],2)):r.loading||r.filteredOptionsCount===0?(Ne(),nt("div",{key:2,class:ke(r.nsSelect.be("dropdown","empty"))},[Ot(r.$slots,"empty",{},()=>[lt("span",null,en(r.emptyText),1)])],2)):Gt("v-if",!0),r.$slots.footer?(Ne(),nt("div",{key:3,class:ke(r.nsSelect.be("dropdown","footer")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"footer")],10,["onClick"])):Gt("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,r.handleClickOutside,r.popperRef]])}var BN=hi(ON,[["render",NN],["__file","select.vue"]]);const kQ=u0(BN,{Option:v0,OptionGroup:c0}),OQ=KM(v0);KM(c0);function NQ(){const{t:r}=jM();return{timeOptions:[{label:r("buttons.today"),value:"today"},{label:r("buttons.week"),value:"week"},{label:r("buttons.month"),value:"month"},{label:r("buttons.custom"),value:"custom"}]}}const aS=["#249EFF","#846BCE","#21CCFF","#0E42D2","#86DF6C","#F6693D","#FF6B9D","#FFA940","#9254DE","#36CFC9","#5CDBD3","#B37FEB"];function zN(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}function VN(r){return r<aS.length?aS[r]:zN()}const GN={title:{left:"center",top:"90%",textStyle:{fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"",type:"pie",radius:["50%","80%"],center:["50%","45%"],avoidLabelOverlap:!1,itemStyle:{borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:[]}],graphic:{elements:[{type:"text",left:"center",top:"40%",style:{text:"",fontSize:14,fontWeight:"bold",textAlign:"center"}}]}},FN={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:[]},series:[{name:"",type:"bar",barWidth:"10",data:[],itemStyle:{color:"#4086FF",borderRadius:[5,5,5,5]}}]},nS={"#F6693D":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"#FFA07A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"rgba(246, 105, 61, 0)"}]}},"#622BDF":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"#9370DB"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"rgba(98, 43, 223, 0)"}]}},"#47C86B":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"#66FF99"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"rgba(71, 200, 107, 0)"}]}},default:{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"#67C23A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"rgba(64, 158, 255, 0)"}]}}},HN={tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},yAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},series:[{name:"",type:"line",data:[],smooth:!1,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.3}}]},BQ=(r,e)=>{const t=r.__vccOpts||r;for(const[a,n]of e)t[a]=n;return t};function WN(){return Sh.get("/svc/monitor/summary",{params:{_dc:Date.now()}})}function zQ(r){return Sh.get(`/svc/monitor/nodes/${r}`)}function VQ(r,e){return Sh.get(`/svc/monitor/nodes/${r}/usages`,{params:e})}async function GQ(){return Sh.get("/svc/types")}var $g=function(r,e){return $g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},$g(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$g(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var UN=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),YN=(function(){function r(){this.browser=new UN,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),De=new YN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(De.wxa=!0,De.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?De.worker=!0:!De.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(De.node=!0,De.svgSupported=!0):$N(navigator.userAgent,De);function $N(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var h0=12,sD="sans-serif",dn=h0+"px "+sD,ZN=20,XN=100,qN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KN(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-ZN)/XN;e[a]=n}return e}var jN=KN(qN),la={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=la.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||dn),r.measureText(t);t=t||"",a=a||dn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||h0,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jN[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},lD=Fa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),uD=Fa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),tl=Object.prototype.toString,xh=Array.prototype,JN=xh.forEach,QN=xh.filter,d0=xh.slice,eB=xh.map,iS=(function(){}).constructor,Df=iS?iS.prototype:null,p0="__proto__",tB=2311;function fD(){return tB++}function g0(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=tl.call(r);if(t==="[object Array]"){if(!vu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ie(r[a])}}else if(uD[t]){if(!vu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!lD[t]&&!vu(r)&&!zs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==p0&&(e[o]=ie(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ie(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==p0){var n=r[a],i=e[a];fe(i)&&fe(n)&&!U(i)&&!U(n)&&!zs(i)&&!zs(n)&&!oS(i)&&!oS(n)&&!vu(i)&&!vu(n)?_e(n,i,t):(t||!(a in r))&&(r[a]=ie(e[a]))}return r}function y0(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=_e(t,r[a],e);return t}function F(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==p0&&(r[t]=e[t]);return r}function ue(r,e,t){for(var a=Ie(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function me(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function rB(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function bt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ue(r,e,t)}function Xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===JN)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.map&&r.map===eB)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Fa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.filter&&r.filter===QN)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Ro(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Ie(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function aB(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(d0.call(arguments)))}}var q=Df&&ae(Df.bind)?Df.call.bind(Df.bind):aB;function ye(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(d0.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):tl.call(r)==="[object Array]"}function ae(r){return typeof r=="function"}function X(r){return typeof r=="string"}function Zg(r){return tl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function oS(r){return!!lD[tl.call(r)]}function pr(r){return!!uD[tl.call(r)]}function zs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wh(r){return r.colorStops!=null}function nB(r){return r.image!=null}function iB(r){return tl.call(r)==="[object RegExp]"}function Zt(r){return r!==r}function Wt(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function re(r,e){return r??e}function Cr(r,e,t){return r??e??t}function m0(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return d0.apply(r,e)}function Th(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function qt(r,e){if(!r)throw new Error(e)}function Hr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vD="__ec_primitive__";function cc(r){r[vD]=!0}function vu(r){return r[vD]}var oB=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ie(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),cD=typeof Map=="function";function sB(){return cD?new Map:new oB}var lB=(function(){function r(e){var t=U(e);this.data=sB();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return cD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function te(r){return new lB(r)}function Cu(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&F(t,e),t}function hD(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function vt(){}var Uv=180/Math.PI;function Eo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function tr(r,e){return r[0]=e[0],r[1]=e[1],r}function un(r){return[r[0],r[1]]}function _0(r,e,t){return r[0]=e,r[1]=t,r}function sS(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Xg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function io(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function qg(r){return Math.sqrt(uB(r))}function uB(r){return r[0]*r[0]+r[1]*r[1]}function Yv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function rl(r,e){var t=qg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Kg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Wn=Kg;function fB(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var co=fB;function $v(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ct(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Un(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Yn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Uo=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),vB=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Uo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Uo(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Uo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Uo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Uo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Uo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Zr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),cB=Math.log(2);function jg(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/cB);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[t][c]*jg(r,e-1,f,u,n|d,i),h++)}return i[o]=v,v}function lS(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=jg(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*jg(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var hc="___zrEVENTSAVED",vd=[];function hB(r,e,t,a,n){return Jg(vd,e,a,n,!0)&&Jg(r,t,vd[0],vd[1])}function dB(r,e){r&&t(r),e&&t(e);function t(a){var n=a[hc];n&&(n.clearMarkers&&n.clearMarkers(),delete a[hc])}}function Jg(r,e,t,a,n){if(e.getBoundingClientRect&&De.domSupported&&!dD(e)){var i=e[hc]||(e[hc]={}),o=pB(e,i),s=gB(o,i,n);if(s)return s(r,t,a),!0}return!1}function pB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){D(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function gB(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?lS(s,o):lS(o,s))}function dD(r){return r.nodeName.toUpperCase()==="CANVAS"}var yB=/([&<>"'])/g,mB={"&":"&","<":"<",">":">",'"':""","'":"'"};function nr(r){return r==null?"":(r+"").replace(yB,function(e,t){return mB[t]})}var _B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cd=[],SB=De.browser.firefox&&+De.browser.version.split(".")[0]<39;function Qg(r,e,t,a){return t=t||{},a?uS(r,e,t):SB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):uS(r,e,t),t}function uS(r,e,t){if(De.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dD(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Jg(cd,r,a,n)){t.zrX=cd[0],t.zrY=cd[1];return}}t.zrX=t.zrY=0}function S0(r){return r||window.event}function Er(r,e,t){if(e=S0(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qg(r,o,e,t)}else{Qg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_B.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function ey(r,e,t,a){r.addEventListener(e,t,a)}function xB(r,e,t,a){r.removeEventListener(e,t,a)}var pn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fS(r){return r.which===2||r.which===3}var wB=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Qg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hd)if(hd.hasOwnProperty(t)){var a=hd[t](this._track,e);if(a)return a}},r})();function vS(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function TB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hd={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=vS(a)/vS(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=TB(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Bt(){return[1,0,0,1,0,0]}function Ah(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Mh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ba(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ha(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function di(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function b0(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ua(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function CB(r){var e=Bt();return Mh(e,r),e}var se=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),oo=Math.min,ws=Math.max,ty=Math.abs,cS=["x","y"],AB=["width","height"],bi=new se,xi=new se,wi=new se,Ti=new se,Sr=pD(),Jl=Sr.minTv,ry=Sr.maxTv,cu=[0,0],ve=(function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=oo(e.x,this.x),a=oo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ws(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ws(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Bt();return Ha(i,i,[-t.x,-t.y]),b0(i,i,[a,n]),Ha(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&se.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(MB,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(DB,t.x,t.y,t.width,t.height));var s=!!a;Sr.reset(n,s);var l=Sr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(cu[0]=1/0,cu[1]=0,hS(u,f,h,d,0,s,i,o),hS(v,c,p,g,1,s,i,o),s&&se.copy(a,y?Sr.useDir?Sr.dirMinTv:Jl:ry)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bi.x=wi.x=t.x,bi.y=Ti.y=t.y,xi.x=Ti.x=t.x+t.width,xi.y=wi.y=t.y+t.height,bi.transform(a),Ti.transform(a),xi.transform(a),wi.transform(a),e.x=oo(bi.x,xi.x,wi.x,Ti.x),e.y=oo(bi.y,xi.y,wi.y,Ti.y);var l=ws(bi.x,xi.x,wi.x,Ti.x),u=ws(bi.y,xi.y,wi.y,Ti.y);e.width=l-e.x,e.height=u-e.y},r})(),MB=new ve(0,0,0,0),DB=new ve(0,0,0,0);function hS(r,e,t,a,n,i,o,s){var l=ty(e-t),u=ty(a-r),f=oo(l,u),v=cS[n],c=cS[1-n],h=AB[n];e<t||a<r?l<u?(i&&(ry[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(ry[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=ws(r,t),o[h]=oo(e,a)-o[v]),i&&(f<cu[0]||Sr.useDir)&&(cu[0]=oo(f,cu[0]),(l<u||!Sr.bidirectional)&&(Jl[v]=l,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(Jl[v]=-u,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV())))}function pD(){var r=0,e=new se,t=new se,a={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ws(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return ty(i)<1e-10}return a}var gD="silent";function LB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:IB}}function IB(){pn(this.event)}var PB=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Zr),_l=(function(){function r(e,t){this.x=e,this.y=t}return r})(),RB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dd=new ve(0,0,0,0),yD=(function(r){N(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new _l(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new PB,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(RB,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=mD(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new _l(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _l(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=LB(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new _l(t,a);if(dS(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ve(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(dd.copy(c.getBoundingRect()),c.transform&&dd.applyTransform(c.transform),dd.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(dS(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new wB);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new _l;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Zr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){yD.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=mD(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function EB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?gD:!0}return!1}function dS(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=EB(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==gD)){e.target=o;break}}}function mD(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var _D=32,Sl=7;function kB(r){for(var e=0;r>=_D;)e|=r&1,r>>=1;return r+e}function pS(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;OB(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function OB(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function gS(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){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(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function pd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function gd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function NB(r,e){var t=Sl,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=gd(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=pd(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=gd(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=pd(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Sl||w>=Sl);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,M=0,C=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],M++,T=0,--g===1){C=!0;break}while((T|M)<w);if(C)break;do{if(T=d-gd(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(M=g-pd(r[m],o,0,g,g-1,e),M!==0){for(S-=M,_-=M,g-=M,b=S+1,x=_+1,y=0;y<M;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=Sl||M>=Sl);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<_D){i=pS(r,t,a,e),gS(r,t,a,t+i,e);return}var o=NB(r,e),s=kB(n);do{if(i=pS(r,t,a,e),i<s){var l=n;l>s&&(l=s),gS(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var br=1,Ql=2,ms=4,yS=!1;function yd(){yS||(yS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var BB=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mS}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Zv(a,mS)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=br),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yd(),d.z=0),isNaN(d.z2)&&(yd(),d.z2=0),isNaN(d.zlevel)&&(yd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=me(this._roots,e);n>=0&&this._roots.splice(n,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})(),dc;dc=De.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var hu={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 e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-hu.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?hu.bounceIn(r*2)*.5:hu.bounceOut(r*2-1)*.5+.5}},Lf=Math.pow,Jn=Math.sqrt,pc=1e-8,SD=1e-4,_S=Jn(3),If=1/3,Ma=Eo(),zr=Eo(),Rs=Eo();function $n(r){return r>-pc&&r<pc}function bD(r){return r>pc||r<-pc}function Lt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function SS(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if($n(f)&&$n(v))if($n(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if($n(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Jn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Lf(-_,If):_=Lf(_,If),S<0?S=-Lf(-S,If):S=Lf(S,If);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Jn(f*f*f)),b=Math.acos(x)/3,w=Jn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+_S*Math.sin(b)))/(3*o),M=(-s+w*(T-_S*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function xD(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($n(o)){if(bD(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($n(f))n[0]=-i/(2*o);else if(f>0){var v=Jn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function oi(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function wD(r,e,t,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;Ma[0]=l,Ma[1]=u;for(var m=0;m<1;m+=.05)zr[0]=Lt(r,t,n,o,m),zr[1]=Lt(e,a,i,s,m),g=co(Ma,zr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<SD);_++)d=v-c,p=v+c,zr[0]=Lt(r,t,n,o,d),zr[1]=Lt(e,a,i,s,d),g=co(zr,Ma),d>=0&&g<h?(v=d,h=g):(Rs[0]=Lt(r,t,n,o,p),Rs[1]=Lt(e,a,i,s,p),y=co(Rs,Ma),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Lt(r,t,n,o,v),f[1]=Lt(e,a,i,s,v)),Jn(h)}function zB(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Lt(r,t,n,o,d),g=Lt(e,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Nt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ay(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function VB(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($n(i)){if(bD(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($n(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Jn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function TD(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Au(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function CD(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;Ma[0]=o,Ma[1]=s;for(var c=0;c<1;c+=.05){zr[0]=Nt(r,t,n,c),zr[1]=Nt(e,a,i,c);var h=co(Ma,zr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<SD);d++){var p=u-f,g=u+f;zr[0]=Nt(r,t,n,p),zr[1]=Nt(e,a,i,p);var h=co(zr,Ma);if(p>=0&&h<v)u=p,v=h;else{Rs[0]=Nt(r,t,n,g),Rs[1]=Nt(e,a,i,g);var y=co(Rs,Ma);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Nt(r,t,n,u),l[1]=Nt(e,a,i,u)),Jn(v)}function GB(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Nt(r,t,n,c),d=Nt(e,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var FB=/cubic-bezier\(([0-9,\.e ]+)\)/;function x0(r){var e=r&&FB.exec(r);if(e){var t=e[1].split(","),a=+Hr(t[0]),n=+Hr(t[1]),i=+Hr(t[2]),o=+Hr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:gc(0,a,i,1,l,s)&&Lt(0,n,o,1,s[0])}}}var HB=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||vt,this.ondestroy=e.ondestroy||vt,this.onrestart=e.onrestart||vt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,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(e){this.easing=e,this.easingFunc=ae(e)?e:hu[e]||x0(e)},r})(),AD=(function(){function r(e){this.value=e}return r})(),WB=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new AD(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Vs=(function(){function r(e){this._list=new WB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new AD(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bS={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 na(r){return r=Math.round(r),r<0?0:r>255?255:r}function UB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Mu(r){return r<0?0:r>1?1:r}function md(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?na(parseFloat(e)/100*255):na(parseInt(e,10))}function Qn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mu(parseFloat(e)/100):Mu(parseFloat(e))}function _d(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Zn(r,e,t){return r+(e-r)*t}function Rr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ny(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MD=new Vs(20),Pf=null;function Yo(r,e){Pf&&ny(Pf,e),Pf=MD.put(r,Pf||e.slice())}function dr(r,e){if(r){e=e||[];var t=MD.get(r);if(t)return ny(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in bS)return ny(e,bS[a]),Yo(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Rr(e,0,0,0,1);return}return Rr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Yo(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Rr(e,0,0,0,1);return}return Rr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Yo(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Rr(e,+u[0],+u[1],+u[2],1):Rr(e,0,0,0,1);f=Qn(u.pop());case"rgb":if(u.length>=3)return Rr(e,md(u[0]),md(u[1]),md(u[2]),u.length===3?f:Qn(u[3])),Yo(r,e),e;Rr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Rr(e,0,0,0,1);return}return u[3]=Qn(u[3]),iy(u,e),Yo(r,e),e;case"hsl":if(u.length!==3){Rr(e,0,0,0,1);return}return iy(u,e),Yo(r,e),e;default:return}}Rr(e,0,0,0,1)}}function iy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Qn(r[1]),n=Qn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Rr(e,na(_d(o,i,t+1/3)*255),na(_d(o,i,t)*255),na(_d(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function YB(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function oy(r,e){var t=dr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return za(t,t.length===4?"rgba":"rgb")}}function Sd(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=na(Zn(o[0],s[0],l)),t[1]=na(Zn(o[1],s[1],l)),t[2]=na(Zn(o[2],s[2],l)),t[3]=Mu(Zn(o[3],s[3],l)),t}}function $B(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=dr(e[n]),s=dr(e[i]),l=a-n,u=za([na(Zn(o[0],s[0],l)),na(Zn(o[1],s[1],l)),na(Zn(o[2],s[2],l)),Mu(Zn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ei(r,e,t,a){var n=dr(r);if(r)return n=YB(n),e!=null&&(n[0]=UB(ae(e)?e(n[0]):e)),t!=null&&(n[1]=Qn(ae(t)?t(n[1]):t)),a!=null&&(n[2]=Qn(ae(a)?a(n[2]):a)),za(iy(n),"rgba")}function yc(r,e){var t=dr(r);if(t&&e!=null)return t[3]=Mu(e),za(t,"rgba")}function za(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function mc(r,e){var t=dr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var xS=new Vs(100);function sy(r){if(X(r)){var e=xS.get(r);return e||(e=oy(r,-.1),xS.put(r,e)),e}else if(wh(r)){var t=F({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:oy(a.color,-.1)}}),t}return r}var _c=Math.round;function Du(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=dr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var wS=1e-4;function Xn(r){return r<wS&&r>-wS}function Rf(r){return _c(r*1e3)/1e3}function ly(r){return _c(r*1e4)/1e4}function ZB(r){return"matrix("+Rf(r[0])+","+Rf(r[1])+","+Rf(r[2])+","+Rf(r[3])+","+ly(r[4])+","+ly(r[5])+")"}var XB={left:"start",right:"end",center:"middle",middle:"middle"};function qB(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function KB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function jB(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function DD(r){return r&&!!r.image}function JB(r){return r&&!!r.svgElement}function w0(r){return DD(r)||JB(r)}function LD(r){return r.type==="linear"}function ID(r){return r.type==="radial"}function PD(r){return r&&(r.type==="linear"||r.type==="radial")}function Dh(r){return"url(#"+r+")"}function RD(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ED(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Uv,n=re(r.scaleX,1),i=re(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_c(o*Uv)+"deg, "+_c(s*Uv)+"deg)"),l.join(" ")}var QB=(function(){return De.hasGlobalWindow&&ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),uy=Array.prototype.slice;function tn(r,e,t){return(e-r)*t+r}function bd(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=tn(e[i],t[i],a);return r}function ez(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=tn(e[o][s],t[o][s],a)}return r}function Ef(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function TS(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function tz(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function rz(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:uy.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function du(r){if(Xt(r)){var e=r.length;if(Xt(r[0])){for(var t=[],a=0;a<e;a++)t.push(uy.call(r[a]));return t}return uy.call(r)}return r}function Xv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function az(r){return Xt(r&&r[0])?2:1}var kf=0,qv=1,kD=2,eu=3,fy=4,vy=5,CS=6;function AS(r){return r===fy||r===vy}function Of(r){return r===qv||r===kD}var bl=[0,0,0,0],nz=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=CS,l=t;if(Xt(t)){var u=az(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!Zt(t))s=kf;else if(X(t))if(!isNaN(+t))s=kf;else{var f=dr(t);f&&(l=f,s=eu)}else if(wh(t)){var v=F({},l);v.colorStops=Y(t.colorStops,function(h){return{offset:h.offset,color:dr(h.color)}}),LD(t)?s=fy:ID(t)&&(s=vy),l=v}i===0?this.valType=s:(s!==this.valType||s===CS)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=ae(a)?a:hu[a]||x0(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Of(n),u=AS(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?rz(c,h,n):u&&tz(c.colorStops,h.colorStops))}if(!s&&n!==vy&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===kf?a[f].additiveValue=a[f].value-d:n===eu?a[f].additiveValue=Ef([],a[f].value,d,-1):Of(n)&&(a[f].additiveValue=n===qv?Ef([],a[f].value,d,-1):TS([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===eu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?bl:e[l];if((Of(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(Of(i))i===qv?bd(m,h[n],d[n],y):ez(m,h[n],d[n],y);else if(AS(i)){var _=h[n],S=d[n],x=i===fy;e[l]={type:x?"linear":"radial",x:tn(_.x,S.x,y),y:tn(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var M=S.colorStops[T];return{offset:tn(w.offset,M.offset,y),color:Xv(bd([],w.color,M.color,y))}}),global:S.global},x?(e[l].x2=tn(_.x2,S.x2,y),e[l].y2=tn(_.y2,S.y2,y)):e[l].r=tn(_.r,S.r,y)}else if(u)bd(m,h[n],d[n],y),a||(e[l]=Xv(m));else{var b=tn(h[n],d[n],y);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===kf?e[a]=e[a]+n:t===eu?(dr(e[a],bl),Ef(bl,bl,n,1),e[a]=Xv(bl)):t===qv?Ef(e[a],e[a],n,1):t===kD&&TS(e[a],e[a],n,1)},r})(),T0=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){g0("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Ie(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new nz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===eu&&u&&(u=Xv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,du(u),n),this._trackKeys.push(s)}l.addKeyframe(e,du(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new HB({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=du(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ie(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Ts(){return new Date().getTime()}var iz=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ts()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(dc(a),!t._paused&&t.update())}dc(a)},e.prototype.start=function(){this._running||(this._time=Ts(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ts(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ts()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new T0(t,a.loop);return this.addAnimator(n),n},e})(Zr),oz=300,xd=De.domSupported,wd=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),MS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},DS=!1;function cy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function sz(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 Td(r){r&&(r.zrByTouch=!0)}function lz(r,e){return Er(r.dom,new uz(r,e),!0)}function OD(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var uz=(function(){function r(e,t){this.stopPropagation=vt,this.stopImmediatePropagation=vt,this.preventDefault=vt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Qr={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;OD(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){DS=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){DS||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Td(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oz&&Qr.click.call(this,r)},pointerdown:function(r){Qr.mousedown.call(this,r)},pointermove:function(r){cy(r)||Qr.mousemove.call(this,r)},pointerup:function(r){Qr.mouseup.call(this,r)},pointerout:function(r){cy(r)||Qr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Qr[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var hy={pointermove:function(r){cy(r)||hy.mousemove.call(this,r)},pointerup:function(r){hy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function fz(r,e){var t=e.domHandlers;De.pointerEventsSupported?D(wd.pointer,function(a){Kv(e,a,function(n){t[a].call(r,n)})}):(De.touchEventsSupported&&D(wd.touch,function(a){Kv(e,a,function(n){t[a].call(r,n),sz(e)})}),D(wd.mouse,function(a){Kv(e,a,function(n){n=S0(n),e.touching||t[a].call(r,n)})}))}function vz(r,e){De.pointerEventsSupported?D(MS.pointer,t):De.touchEventsSupported||D(MS.mouse,t);function t(a){function n(i){i=S0(i),OD(r,i.target)||(i=lz(r,i),e.domHandlers[a].call(r,i))}Kv(e,a,n,{capture:!0})}}function Kv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,ey(r.domTarget,e,t,a)}function Cd(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&xB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var LS=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),cz=(function(r){N(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new LS(t,Qr),xd&&(n._globalHandlerScope=new LS(document,hy)),fz(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Cd(this._localHandlerScope),xd&&Cd(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,xd&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?vz(this,a):Cd(a)}},e})(Zr),ND=1;De.hasGlobalWindow&&(ND=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sc=ND,dy=.4,py="#333",gy="#ccc",hz="#eee",IS=Ah,PS=5e-5;function Ci(r){return r>PS||r<-PS}var Ai=[],$o=[],Ad=Bt(),Md=Math.abs,on=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ci(this.rotation)||Ci(this.x)||Ci(this.y)||Ci(this.scaleX-1)||Ci(this.scaleY-1)||Ci(this.skewX)||Ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(IS(a),this.invTransform=null);return}a=a||Bt(),t?this.getLocalTransform(a):IS(a),e&&(t?Ba(a,e,a):Mh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ai);var a=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,i=((Ai[0]-a)*t+a)/Ai[0]||0,o=((Ai[1]-n)*t+n)/Ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Bt(),ua(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Bt(),Ba($o,e.invTransform,t),t=$o);var a=this.originX,n=this.originY;(a||n)&&(Ad[4]=a,Ad[5]=n,Ba($o,t,Ad),$o[4]-=a,$o[5]-=n,t=$o),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ct(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ct(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Md(e[0]-1)>1e-10&&Md(e[3]-1)>1e-10?Math.sqrt(Md(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bc(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&di(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bc(r,e){for(var t=0;t<Wa.length;t++){var a=Wa[t];r[a]=e[a]}}function Va(r){Nf||(Nf=new Vs(100)),r=r||dn;var e=Nf.get(r);return e||(e={font:r,strWidthCache:new Vs(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:la.measureText("国",r).width,asciiCharWidth:la.measureText("a",r).width},Nf.put(r,e)),e}var Nf;function dz(r){if(!(Dd>=RS)){r=r||dn;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=la.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Dd=RS:n>2&&Dd++,e}}var Dd=0,RS=5;function BD(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=dz(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ga(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=la.measureText(e,r.font).width,t.put(e,a)),a}function ES(r,e,t,a){var n=Ga(Va(e),r),i=rf(e),o=Gs(0,n,t),s=ho(0,i,a),l=new ve(o,s,n,i);return l}function Lh(r,e,t,a){var n=((r||"")+"").split(`
|
|
2
2
|
`),i=n.length;if(i===1)return ES(n[0],e,t,a);for(var o=new ve(0,0,0,0),s=0;s<n.length;s++){var l=ES(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Gs(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function ho(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function rf(r){return Va(r).stWideCharWidth}function fa(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function xc(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(a instanceof Array)l+=fa(a[0],t.width),u+=fa(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Ld="__zr_normal__",Id=Wa.concat(["ignore"]),pz=Fa(Wa,function(r,e){return r[e]=!0,r},{ignore:!1}),Zo={},gz=new ve(0,0,0,0),Bf=[],Ih=(function(){function r(e){this.id=fD(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var f=a.position!=null,v=a.autoOverflowArea,c=void 0;if((v||f)&&(c=gz,a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Zo,a,c):xc(Zo,a,c),i.x=Zo.x,i.y=Zo.y,o=Zo.align,s=Zo.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=fa(h[0],c.width),p=fa(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new ve(0,0,0,0);i.getLocalTransform(Bf),ua(Bf,Bf),ve.copy(m,c),m.applyTransform(Bf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=br,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?gy:py},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&dr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,za(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(fe(e))for(var a=e,n=Ie(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Ld)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Id)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ld,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Ld,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(me(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){g0("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,c=this._textGuide;return v&&v.useState(e,t,a,f),c&&c.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var v=n[o-1],c=!!(v&&v.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=me(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=me(n,e),o=me(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];F(t,i),i.textConfig&&(a=a||{},F(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=F({},n?this.textConfig:a.textConfig),F(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Id.length;f++){var v=Id[f],c=i&&pz[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&a[v]!=null&&(c?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new on,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),F(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=br;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new T0(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=me(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Pd(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Pd(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Pd(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=br;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();bt(Ih,Zr);bt(Ih,on);function Pd(r,e,t,a,n){t=t||{};var i=[];zD(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Rd(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function yz(r){return Xt(r[0])}function mz(r,e,t){if(Xt(e[t]))if(Xt(r[t])||(r[t]=[]),pr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Rd(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(yz(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Rd(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Rd(i,n,o);i.length=n.length}else r[t]=e[t]}function _z(r,e){return r===e||Xt(r)&&Xt(e)&&Sz(r,e)}function Sz(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function zD(r,e,t,a,n,i,o,s){for(var l=Ie(a),u=n.duration,f=n.delay,v=n.additive,c=n.setToFinal,h=!fe(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(h||i[y]))if(fe(m)&&!Xt(m)&&!wh(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}zD(r,y,t[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var b=x.stopTracks(p);if(b){var w=me(d,x);d.splice(w,1)}}}if(n.force||(p=Fe(p,function(A){return!_z(a[A],t[A])}),_=p.length),_>0||n.force&&!o.length){var T=void 0,M=void 0,C=void 0;if(s){M={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];M[y]=t[y],c?T[y]=a[y]:t[y]=a[y]}}else if(c){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=du(t[y]),mz(t,a,y)}}var x=new T0(t,!1,!1,v?Fe(d,function(I){return I.targetName===e}):null);x.targetName=e,n.scope&&(x.scope=n.scope),c&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u??500,s?M:a,p).delay(f||0),r.addAnimator(x,e),o.push(x)}}var ne=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=me(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=me(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new ve(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ve.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Ih);ne.prototype.type="group";var jv={},VD={};function bz(r){delete VD[r]}function xz(r){if(!r)return!1;if(typeof r=="string")return mc(r,1)<dy;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=mc(e[n].color,1);return t/=a,t<dy}return!1}var wz=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new BB,o=a.renderer||"canvas";jv[o]||(o=Ie(jv)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new jv[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!De.node&&!De.worker&&!l?new cz(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?De.touchEventsSupported:!!f,c=44,h;v&&(h=re(a.pointerSize,c)),this.handler=new yD(i,s,u,s.root,h),this.animation=new iz({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=xz(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Ts();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Ts();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ne&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,bz(this.id))},r})();function kS(r,e){var t=new wz(fD(),r,e);return VD[t.id]=t,t}function Tz(r,e){jv[r]=e}var yy;function Cz(r){if(typeof yy=="function")return yy(r)}function Az(r){yy=r}var OS=1e-4,GD=20;function Mz(r){return r.replace(/^\s+|\s+$/g,"")}var Ar=Math.min,ft=Math.max,Pa=Math.abs;function Ge(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var Z=Dz;function Dz(r,e,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 wc(r,e,t)}function wc(r,e,t){return X(r)?Mz(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function pt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),GD),r=(+r).toFixed(e),t?r:+r}function Wr(r){return r.sort(function(e,t){return e-t}),r}function Ra(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Lz(r)}function Lz(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function FD(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Pa(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Iz(r,e){var t=Fa(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=Y(r,function(h){return(isNaN(h)?0:h)/t*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Fa(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function Pz(r,e){var t=Math.max(Ra(r),Ra(e)),a=r+e;return t>GD?a:pt(a,t)}var NS=9007199254740991;function HD(r){var e=Math.PI*2;return(r%e+e)%e}function Lu(r){return r>-OS&&r<OS}var Rz=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ko(r){if(r instanceof Date)return r;if(X(r)){var e=Rz.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Ez(r){return Math.pow(10,C0(r))}function C0(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function WD(r,e){var t=C0(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Ed(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function BS(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function gn(r){var e=parseFloat(r);return e==r&&(e!==0||!X(r)||r.indexOf("x")<=0)?e:NaN}function UD(r){return!isNaN(gn(r))}function YD(){return Math.round(Math.random()*9)}function $D(r,e){return e===0?r:$D(e,r%e)}function zS(r,e){return r==null?e:e==null?r:r*e/$D(r,e)}var kz="[ECharts] ",Oz=typeof console<"u"&&console.warn&&console.log;function Nz(r,e,t){Oz&&console[r](kz+e)}function ZD(r,e){Nz("error",r)}function Ve(r){throw new Error(r)}function VS(r,e,t){return(e-r)*t+r}var XD="series\0",qD="\0_ec_\0";function Ze(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var GS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function al(r){return fe(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function Bz(r){return fe(r)&&!(r instanceof Array)}function KD(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=te();D(e,function(l,u){if(!fe(l)){e[u]=null;return}});var s=zz(r,o,t);return(a||n)&&Vz(s,r,o,e),a&&Gz(s,e),a||n?Fz(s,e,n):i&&Hz(s,e),Wz(s),s}function zz(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||Iu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Vz(r,e,t,a){D(a,function(n,i){if(!(!n||n.id==null)){var o=pu(n.id),s=t.get(o);if(s!=null){var l=r[s];qt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function Gz(r,e){D(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!Iu(t)&&!Iu(i)&&jD("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function Fz(r,e,t){D(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Iu(n.existing)||n.existing&&a.id!=null&&!jD("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function Hz(r,e){D(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Wz(r){var e=te();D(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),D(r,function(t){var a=t.newOption;qt(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),D(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(fe(i)){if(o.name=i.name!=null?pu(i.name):n?n.name:XD+a,n)o.id=pu(n.id);else if(i.id!=null)o.id=pu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function jD(r,e,t){var a=wt(e[r],null),n=wt(t[r],null);return a!=null&&n!=null&&a===n}function pu(r){return wt(r,"")}function wt(r,e){return r==null?e:X(r)?r:Ee(r)||Zg(r)?r+"":e}function A0(r){var e=r.name;return!!(e&&e.indexOf(XD))}function Iu(r){return r&&r.id!=null&&pu(r.id).indexOf(qD)===0}function Uz(r){return qD+r}function Yz(r,e,t){D(r,function(a){var n=a.newOption;fe(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=$z(e,n,a.existing,t))})}function $z(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function Zz(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=wt(o[u].seriesId,null);if(v==null)return;for(var c=Ze(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function wo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?Y(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?Y(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function we(){var r="__ec_inner_"+Xz++;return function(e){return e[r]||(e[r]={})}}var Xz=YD();function Es(r,e,t){var a=M0(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=nl(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function M0(r,e){var t;if(X(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=te(),i={},o=!1;return D(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&me(e.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var ot={useDefault:!0,enableAll:!1,enableNone:!1},qz={useDefault:!1,enableAll:!0,enableNone:!0};function nl(r,e,t,a){a=a||ot;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function JD(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Kz(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function jz(r){return r==="auto"?De.domSupported?"html":"richText":r||"html"}function my(r,e){var t=te(),a=[];return D(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function QD(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Ee(a)){var o=VS(t||0,a,n);return pt(o,i?Math.max(Ra(t||0),Ra(a)):e)}else{if(X(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=VS(h,d,n);s[v]=pt(o,i?Math.max(Ra(h),Ra(d)):e)}}return s}}var ti=(function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function kd(r){r.option=r.parentModel=r.ecModel=null}var Jz=".",Mi="___EC__COMPONENT__CONTAINER___",eL="___EC__EXTENDED_CLASS___";function Ea(r){var e={main:"",sub:""};if(r){var t=r.split(Jz);e.main=t[0]||"",e.sub=t[1]||""}return e}function Qz(r){qt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function eV(r){return!!(r&&r[eL])}function D0(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return tV(a)?n=(function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},rB(n,this)),F(n.prototype,t),n[eL]=!0,n.extend=this.extend,n.superCall=nV,n.superApply=iV,n.superClass=a,n}}function tV(r){return ae(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function tL(r,e){r.extend=e.extend}var rV=Math.round(Math.random()*10);function aV(r){var e=["__\0is_clz",rV++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function nV(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function iV(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ph(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){Qz(n),a.prototype.type=n;var i=Ea(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Mi){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Mi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Ea(a),i=[],o=e[n.main];return o&&o[Mi]?D(o,function(s,l){l!==Mi&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Ea(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return D(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Ea(a),i=e[n.main];return i&&i[Mi]};function t(a){var n=e[a.main];return(!n||!n[Mi])&&(n=e[a.main]={},n[Mi]=!0),n}}function To(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&me(n,l)>=0||i&&me(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var oV=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sV=To(oV),lV=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return sV(this,e,t)},r})(),_y=new Vs(50);function uV(r){if(typeof r=="string"){var e=_y.get(r);return e&&e.image}else return r}function L0(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=_y.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Rh(e)&&i.pending.push(o)):(e=la.loadImage(r,FS,FS),e.__zrImageSrc=r,_y.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function FS(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Rh(r){return r&&r.width&&r.height}var Od=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function fV(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
3
|
`);i=rL(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)aL(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
4
4
|
`),r.isTruncated=s}function rL(r,e,t,a){a=a||{};var n=F({},a);t=re(t,"..."),n.maxIterations=re(a.maxIterations,2);var i=n.minChar=re(a.minChar,0),o=n.fontMeasureInfo=Va(e),s=o.asciiCharWidth;n.placeholder=re(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Ga(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function aL(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ga(i,e);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?vV(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ga(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function vV(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=BD(t,r.charCodeAt(n));return n}function cV(r,e,t,a){var n=I0(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=rf(u),c=re(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?nL(n,e.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
|