@weapp-vite/dashboard 6.15.13 → 6.15.14

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.
@@ -5,7 +5,7 @@ import{i as e,n as t,r as n,t as r}from"./rolldown-runtime.js";function i(e,t){i
5
5
  `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=hn(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)gn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Zt(l),S=0;S<_.length;S++)w=Math.max(en(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}function yn(e,t,n,r,i){var a=new Mn,o=Tn(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=kn.lastIndex=0,h;(h=kn.exec(o))!=null;){var g=h.index;g>m&&bn(a,o.substring(m,g),t,p),bn(a,h[2],t,p,h[1]),m=kn.lastIndex}m<o.length&&bn(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=on(ee);var N=H(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=le(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var te=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<te;break outer}var P=A.width,F=P==null||P===`auto`;if(typeof P==`string`&&P.charAt(P.length-1)===`%`)k.percentWidth=P,_.push(k),k.contentWidth=en(Zt(ee),k.text);else{if(F){var I=A.backgroundColor,L=I&&I.image;L&&(L=ht(L),vt(L)&&(k.width=Math.max(k.width,L.width*N/L.height)))}var ne=b&&u!=null?u-D:null;ne!=null&&ne<k.width?!F||ne<M?(k.text=``,k.width=k.contentWidth=0):(mn(S,k.text,ne-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=en(Zt(ee),k.text)):k.contentWidth=en(Zt(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=H(u,y),a.outerHeight=a.height=H(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],R=k.percentWidth;k.width=parseInt(R,10)/100*a.width}return a}function bn(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=sn(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
6
6
  `),l=!0),r.accumWidth=m}else{var h=Cn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
7
7
  `);for(var g=Zt(c),_=0;_<u.length;_++){var v=u[_],y=new An;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:en(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new jn)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new jn([y]))}}function xn(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function Sn(e){return xn(e)?!!Nn[e]:!0}function Cn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Zt(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
8
- `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=$t(d,p.charCodeAt(0)),h=r?!1:!Sn(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function wn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(Pn,rn(n,o,i),an(r,s,a),o,s),J.intersect(t,Pn,null,Fn);var c=Fn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=rn(c.x,c.width,i,!0),e.baseY=an(c.y,c.height,a,!0)}}function Tn(e){return e==null?e=``:e+=``}function En(e){var t=Tn(e.text),n=e.font;return Dn(e,en(Zt(n),t),on(n),null)}function Dn(e,t,n,r){var i=new J(rn(e.x||0,t,e.textAlign),an(e.y||0,n,e.textBaseline),t,n),a=r??(On(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function On(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var kn,An,jn,Mn,Nn,Pn,Fn,In=t((()=>{bt(),G(),fn(),Xt(),kn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,An=function(){function e(){}return e}(),jn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Mn=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}(),Nn=j(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),Pn=new J(0,0,0,0),Fn={outIntersectRect:{},clamp:!0}})),Ln=n({add:()=>Hn,applyTransform:()=>nr,clone:()=>Bn,copy:()=>zn,create:()=>Rn,dist:()=>sr,distSquare:()=>cr,distance:()=>Qn,distanceSquare:()=>$n,div:()=>Jn,dot:()=>Yn,len:()=>Gn,lenSquare:()=>Kn,length:()=>ar,lengthSquare:()=>or,lerp:()=>tr,max:()=>ir,min:()=>rr,mul:()=>qn,negate:()=>er,normalize:()=>Zn,scale:()=>Xn,scaleAndAdd:()=>Un,set:()=>Vn,sub:()=>Wn});function Rn(e,t){return e??=0,t??=0,[e,t]}function zn(e,t){return e[0]=t[0],e[1]=t[1],e}function Bn(e){return[e[0],e[1]]}function Vn(e,t,n){return e[0]=t,e[1]=n,e}function Hn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Un(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Wn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Gn(e){return Math.sqrt(Kn(e))}function Kn(e){return e[0]*e[0]+e[1]*e[1]}function qn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Jn(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Yn(e,t){return e[0]*t[0]+e[1]*t[1]}function Xn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Zn(e,t){var n=Gn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Qn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function $n(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function er(e,t){return e[0]=-t[0],e[1]=-t[1],e}function tr(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function nr(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function rr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ir(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ar,or,sr,cr,lr=t((()=>{ar=Gn,or=Kn,sr=Qn,cr=$n}));function ur(e){return e>pr||e<-pr}function dr(e,t){for(var n=0;n<yr.length;n++){var r=yr[n];e[r]=t[r]}}var fr,pr,mr,hr,gr,_r,vr,yr,br=t((()=>{jt(),lr(),fr=Ct,pr=5e-5,mr=[],hr=[],gr=St(),_r=Math.abs,vr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ur(this.rotation)||ur(this.x)||ur(this.y)||ur(this.scaleX-1)||ur(this.scaleY-1)||ur(this.skewX)||ur(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(fr(n),this.invTransform=null);return}n||=St(),t?this.getLocalTransform(n):fr(n),e&&(t?Tt(n,e,n):wt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,r=mr[1]<0?-1:1,i=((mr[0]-n)*t+n)/mr[0]||0,a=((mr[1]-r)*t+r)/mr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||St(),kt(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||St(),Tt(hr,e.invTransform,t),t=hr);var n=this.originX,r=this.originY;(n||r)&&(gr[4]=n,gr[5]=r,Tt(hr,t,gr),hr[4]-=n,hr[5]-=r,t=hr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return 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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&nr(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&nr(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&_r(e[0]-1)>1e-10&&_r(e[3]-1)>1e-10?Math.sqrt(_r(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){dr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Dt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),yr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`]})),xr,Sr=t((()=>{xr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xr.bounceIn(e*2)*.5:xr.bounceOut(e*2-1)*.5+.5}}}));function Cr(e){return e>-Vr&&e<Vr}function wr(e){return e>Vr||e<-Vr}function Tr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Er(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Dr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Cr(u)&&Cr(d))if(Cr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(Cr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Br(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-zr(-y,Wr):zr(y,Wr),b=b<0?-zr(-b,Wr):zr(b,Wr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Br(u*u*u)),S=Math.acos(x)/3,C=Br(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Ur*Math.sin(S)))/(3*o),T=(-s+C*(w-Ur*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Or(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Cr(o)){if(wr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Cr(u))i[0]=-a/(2*o);else if(u>0){var d=Br(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function kr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Ar(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Gr[0]=c,Gr[1]=l;for(var v=0;v<1;v+=.05)Kr[0]=Tr(e,n,i,o,v),Kr[1]=Tr(t,r,a,s,v),g=cr(Gr,Kr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Hr);y++)m=d-f,h=d+f,Kr[0]=Tr(e,n,i,o,m),Kr[1]=Tr(t,r,a,s,m),g=cr(Kr,Gr),m>=0&&g<p?(d=m,p=g):(qr[0]=Tr(e,n,i,o,h),qr[1]=Tr(t,r,a,s,h),_=cr(qr,Gr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Tr(e,n,i,o,d),u[1]=Tr(t,r,a,s,d)),Br(p)}function jr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Tr(e,n,i,o,m),g=Tr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Mr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Nr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Pr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Cr(a)){if(wr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Cr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Br(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Fr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Ir(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Lr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Gr[0]=o,Gr[1]=s;for(var f=0;f<1;f+=.05){Kr[0]=Mr(e,n,i,f),Kr[1]=Mr(t,r,a,f);var p=cr(Gr,Kr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Hr);m++){var h=l-u,g=l+u;Kr[0]=Mr(e,n,i,h),Kr[1]=Mr(t,r,a,h);var p=cr(Kr,Gr);if(h>=0&&p<d)l=h,d=p;else{qr[0]=Mr(e,n,i,g),qr[1]=Mr(t,r,a,g);var _=cr(qr,Gr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Mr(e,n,i,l),c[1]=Mr(t,r,a,l)),Br(d)}function Rr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Mr(e,n,i,f),m=Mr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr=t((()=>{lr(),zr=Math.pow,Br=Math.sqrt,Vr=1e-8,Hr=1e-4,Ur=Br(3),Wr=1/3,Gr=Rn(),Kr=Rn(),qr=Rn()}));function Yr(e){var t=e&&Xr.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Dr(0,r,a,1,e,s)&&Tr(0,i,o,1,s[0])}}}var Xr,Zr=t((()=>{Jr(),G(),Xr=/cubic-bezier\(([0-9,\.e ]+)\)/})),Qr,$r=t((()=>{Sr(),G(),Zr(),Qr=function(){function e(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||xe,this.ondestroy=e.ondestroy||xe,this.onrestart=e.onrestart||xe,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=I(e)?e:xr[e]||Yr(e)},e}()})),ei=n({fastLerp:()=>gi,fastMapToColor:()=>Di,lerp:()=>_i,lift:()=>mi,liftColor:()=>Ci,lum:()=>xi,mapToColor:()=>Oi,modifyAlpha:()=>yi,modifyHSL:()=>vi,parse:()=>di,parseCssFloat:()=>ai,parseCssInt:()=>ii,random:()=>Si,stringify:()=>bi,toHex:()=>hi});function ti(e){return e=Math.round(e),e<0?0:e>255?255:e}function ni(e){return e=Math.round(e),e<0?0:e>360?360:e}function ri(e){return e<0?0:e>1?1:e}function ii(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ti(parseFloat(t)/100*255):ti(parseInt(t,10))}function ai(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ri(parseFloat(t)/100):ri(parseFloat(t))}function oi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function si(e,t,n){return e+(t-e)*n}function ci(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function li(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function ui(e,t){Ei&&li(Ei,t),Ei=Ti.put(e,Ei||t.slice())}function di(e,t){if(e){t||=[];var n=Ti.get(e);if(n)return li(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in wi)return li(t,wi[r]),ui(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ci(t,0,0,0,1);return}return ci(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),ui(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ci(t,0,0,0,1);return}return ci(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),ui(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ci(t,+l[0],+l[1],+l[2],1):ci(t,0,0,0,1);u=ai(l.pop());case`rgb`:if(l.length>=3)return ci(t,ii(l[0]),ii(l[1]),ii(l[2]),l.length===3?u:ai(l[3])),ui(e,t),t;ci(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ci(t,0,0,0,1);return}return l[3]=ai(l[3]),fi(l,t),ui(e,t),t;case`hsl`:if(l.length!==3){ci(t,0,0,0,1);return}return fi(l,t),ui(e,t),t;default:return}}ci(t,0,0,0,1)}}function fi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ai(e[1]),i=ai(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ci(t,ti(oi(o,a,n+1/3)*255),ti(oi(o,a,n)*255),ti(oi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function pi(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function mi(e,t){var n=di(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return bi(n,n.length===4?`rgba`:`rgb`)}}function hi(e){var t=di(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function gi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=ti(si(o[0],s[0],c)),n[1]=ti(si(o[1],s[1],c)),n[2]=ti(si(o[2],s[2],c)),n[3]=ri(si(o[3],s[3],c)),n}}function _i(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=di(t[i]),s=di(t[a]),c=r-i,l=bi([ti(si(o[0],s[0],c)),ti(si(o[1],s[1],c)),ti(si(o[2],s[2],c)),ri(si(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function vi(e,t,n,r){var i=di(e);if(e)return i=pi(i),t!=null&&(i[0]=ni(I(t)?t(i[0]):t)),n!=null&&(i[1]=ai(I(n)?n(i[1]):n)),r!=null&&(i[2]=ai(I(r)?r(i[2]):r)),bi(fi(i),`rgba`)}function yi(e,t){var n=di(e);if(n&&t!=null)return n[3]=ri(t),bi(n,`rgba`)}function bi(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function xi(e,t){var n=di(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Si(){return bi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function Ci(e){if(L(e)){var t=ki.get(e);return t||(t=mi(e,-.1),ki.put(e,t)),t}else if(B(e)){var n=C({},e);return n.colorStops=A(e.colorStops,function(e){return{offset:e.offset,color:mi(e.color,-.1)}}),n}return e}var wi,Ti,Ei,Di,Oi,ki,Ai=t((()=>{mt(),G(),wi={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]},Ti=new pt(20),Ei=null,Di=gi,Oi=_i,ki=new pt(100)}));function ji(e){return e.type===`linear`}function Mi(e){return e.type===`radial`}var Ni=t((()=>{G(),Ue(),(function(){return K.hasGlobalWindow&&I(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})()}));function Pi(e,t,n){return(t-e)*n+e}function Fi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Pi(t[a],n[a],r);return e}function Ii(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Pi(t[o][s],n[o][s],r)}return e}function Li(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Ri(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function zi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Bi(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ki.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Vi(e){if(O(e)){var t=e.length;if(O(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ki.call(e[r]));return n}return Ki.call(e)}return e}function Hi(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Ui(e){return O(e&&e[0])?2:1}function Wi(e){return e===Zi||e===Qi}function Gi(e){return e===Ji||e===Yi}var Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra=t((()=>{$r(),Ai(),G(),Sr(),Zr(),Ni(),Ki=Array.prototype.slice,qi=0,Ji=1,Yi=2,Xi=3,Zi=4,Qi=5,$i=6,ea=[0,0,0,0],ta=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=$i,s=t;if(O(t)){var c=Ui(t);o=c,(c===1&&!R(t[0])||c===2&&!R(t[0][0]))&&(a=!0)}else if(R(t)&&!se(t))o=qi;else if(L(t))if(!isNaN(+t))o=qi;else{var l=di(t);l&&(s=l,o=Xi)}else if(B(t)){var u=C({},s);u.colorStops=A(t.colorStops,function(e){return{offset:e.offset,color:di(e.color)}}),ji(t)?o=Zi:Mi(t)&&(o=Qi),s=u}i===0?this.valType=o:(o!==this.valType||o===$i)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=I(n)?n:xr[n]||Yr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Gi(r),c=Wi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Bi(d,f,r):c&&zi(d.colorStops,f.colorStops))}if(!o&&r!==Qi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===qi?n[l].additiveValue=n[l].value-p:r===Xi?n[l].additiveValue=Li([],n[l].value,p,-1):Gi(r)&&(n[l].additiveValue=r===Ji?Li([],n[l].value,p,-1):Ri([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Xi,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?ea:e[s];if((Gi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Gi(i))i===Ji?Fi(g,f[r],p[r],h):Ii(g,f[r],p[r],h);else if(Wi(i)){var _=f[r],v=p[r],y=i===Zi;e[s]={type:y?`linear`:`radial`,x:Pi(_.x,v.x,h),y:Pi(_.y,v.y,h),colorStops:A(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Pi(e.offset,n.offset,h),color:Hi(Fi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Pi(_.x2,v.x2,h),e[s].y2=Pi(_.y2,v.y2,h)):e[s].r=Pi(_.r,v.r,h)}else if(c)Fi(g,f[r],p[r],h),n||(e[s]=Hi(g));else{var b=Pi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===qi?e[n]=e[n]+r:t===Xi?(di(e[n],ea),Li(ea,ea,r,1),e[n]=Hi(ea)):t===Ji?Li(e[n],e[n],r,1):t===Yi&&Ri(e[n],e[n],r,1)},e}(),na=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){y(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,N(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ta(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Xi&&c&&(c=Hi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Vi(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Vi(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new Qr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return A(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Vi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=N(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}()})),ia,aa=t((()=>{ia=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}()})),oa,sa,ca,la,ua,da,fa=t((()=>{Ue(),oa=1,K.hasGlobalWindow&&(oa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1)),sa=oa,ca=.4,la=`#333`,ua=`#ccc`,da=`#eee`})),pa=t((()=>{}));function ma(e,t,n,r,i){n||={};var a=[];ba(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ha(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ga(e){return O(e[0])}function _a(e,t,n){if(O(t[n]))if(O(e[n])||(e[n]=[]),ie(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ha(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ga(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ha(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ha(a,i,o);a.length=i.length}else e[n]=t[n]}function va(e,t){return e===t||O(e)&&O(t)&&ya(e,t)}function ya(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ba(e,t,n,r,i,a,o,s){for(var c=N(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!z(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(z(v)&&!O(v)&&!B(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ba(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=T(m,x);m.splice(S,1)}}if(i.force||(h=M(h,function(e){return!va(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,E=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){E={};for(var b=0;b<y;b++){var _=h[b];E[_]=Vi(n[_]),_a(n,r,_)}}var x=new na(n,!1,!1,d?M(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),E&&x.whenWithKeys(0,E,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var xa,Sa,Ca,wa,Ta,Ea,Da,Oa=t((()=>{br(),ra(),Xt(),aa(),fn(),G(),fa(),Ai(),pa(),jt(),xa=`__zr_normal__`,Sa=yr.concat([`ignore`]),Ca=j(yr,function(e,t){return e[t]=!0,e},{ignore:!1}),wa={},Ta=new J(0,0,0,0),Ea=[],Da=function(){function e(e){this.id=v(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ta,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(wa,n,d):cn(wa,n,d),i.x=wa.x,i.y=wa.y,a=wa.align,o=wa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=sn(f[0],d.width),m=sn(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(Ea),kt(Ea,Ea),J.copy(_,d),_.applyTransform(Ea)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ua:la},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&di(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,bi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},C(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(z(e))for(var n=N(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Sa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(xa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===xa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(T(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){y(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.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},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=T(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=T(r,e),a=T(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];C(t,i),i.textConfig&&(n||={},C(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=C({},r?this.textConfig:n.textConfig),C(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Sa.length;l++){var u=Sa[l],d=i&&Ca[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.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}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new vr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},C(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new na(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=T(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ma(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ma(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ma(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}(),D(Da,ia),D(Da,vr)}));function ka(e,t,n){return Ia.copy(e.getBoundingRect()),e.transform&&Ia.applyTransform(e.transform),La.width=t,La.height=n,!Ia.intersect(La)}var Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra=t((()=>{o(),Oa(),Xt(),G(),pa(),Aa=`__zr_style_`+Math.round(Math.random()*10),ja={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ma={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},ja[Aa]=!0,Na=[`z`,`z2`,`invisible`],Pa=[`invisible`],Fa=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=N(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ka(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new J(0,0,0,0),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:C(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ve(ja,e)},t.prototype.useStyle=function(e){e[Aa]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Aa]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Na)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=N(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=N(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Pa:Na,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return C(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ma},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Da),Ia=new J(0,0,0,0),La=new J(0,0,0,0)}));function za(e,t,n,r,i,a){i[0]=Ua(e,n),i[1]=Ua(t,r),a[0]=Wa(e,n),a[1]=Wa(t,r)}function Ba(e,t,n,r,i,a,o,s,c,l){var u=Or,d=Tr,f=u(e,n,i,o,Za);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Za[p]);c[0]=Ua(m,c[0]),l[0]=Wa(m,l[0])}f=u(t,r,a,s,Qa);for(var p=0;p<f;p++){var h=d(t,r,a,s,Qa[p]);c[1]=Ua(h,c[1]),l[1]=Wa(h,l[1])}c[0]=Ua(e,c[0]),l[0]=Wa(e,l[0]),c[0]=Ua(o,c[0]),l[0]=Wa(o,l[0]),c[1]=Ua(t,c[1]),l[1]=Wa(t,l[1]),c[1]=Ua(s,c[1]),l[1]=Wa(s,l[1])}function Va(e,t,n,r,i,a,o,s){var c=Fr,l=Mr,u=Wa(Ua(c(e,n,i),1),0),d=Wa(Ua(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Ua(e,i,f),o[1]=Ua(t,a,p),s[0]=Wa(e,i,f),s[1]=Wa(t,a,p)}function Ha(e,t,n,r,i,a,o,s,c){var l=rr,u=ir,d=Math.abs(i-a);if(d%qa<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ja[0]=Ka(i)*n+e,Ja[1]=Ga(i)*r+t,Ya[0]=Ka(a)*n+e,Ya[1]=Ga(a)*r+t,l(s,Ja,Ya),u(c,Ja,Ya),i%=qa,i<0&&(i+=qa),a%=qa,a<0&&(a+=qa),i>a&&!o?a+=qa:i<a&&o&&(i+=qa),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Xa[0]=Ka(p)*n+e,Xa[1]=Ga(p)*r+t,l(s,Xa,s),u(c,Xa,c))}var Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a=t((()=>{lr(),Jr(),Ua=Math.min,Wa=Math.max,Ga=Math.sin,Ka=Math.cos,qa=Math.PI*2,Ja=Rn(),Ya=Rn(),Xa=Rn(),Za=[],Qa=[]}));function eo(e){return Math.round(e/ho*1e8)/1e8%2*ho}function to(e,t){var n=eo(e[0]);n<0&&(n+=go);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=go?i=n+go:t&&n-i>=go?i=n-go:!t&&n>i?i=n+(go-eo(n-i)):t&&n<i&&(i=n-(go-eo(i-n))),e[0]=n,e[1]=i}var no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo=t((()=>{lr(),Xt(),fa(),$a(),Jr(),no={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ro=[],io=[],ao=[],oo=[],so=[],co=[],lo=Math.min,uo=Math.max,fo=Math.cos,po=Math.sin,mo=Math.abs,ho=Math.PI,go=ho*2,_o=typeof Float32Array<`u`,vo=[],yo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=mo(n/sa/e)||0,this._uy=mo(n/sa/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(no.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=mo(e-this._xi),r=mo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(no.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(no.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(no.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),vo[0]=r,vo[1]=i,to(vo,a),r=vo[0],i=vo[1];var o=i-r;return this.addData(no.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=fo(i)*n+e,this._yi=po(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(no.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(no.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&_o&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(_o&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_o&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ao[0]=ao[1]=so[0]=so[1]=Number.MAX_VALUE,oo[0]=oo[1]=co[0]=co[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case no.M:t=r=e[a++],n=i=e[a++],so[0]=r,so[1]=i,co[0]=r,co[1]=i;break;case no.L:za(t,n,e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.C:Ba(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.Q:Va(t,n,e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=fo(f)*u+c,i=po(f)*d+l),Ha(c,l,u,d,f,p,m,so,co),t=fo(p)*u+c,n=po(p)*d+l;break;case no.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];za(r,i,r+h,i+g,so,co);break;case no.Z:t=r,n=i;break}rr(ao,ao,so),ir(oo,oo,co)}return a===0&&(ao[0]=ao[1]=oo[0]=oo[1]=0),new J(ao[0],ao[1],oo[0]-ao[0],oo[1]-ao[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case no.M:i=o=e[d++],a=s=e[d++];break;case no.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(mo(_)>n||mo(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case no.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=jr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case no.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Rr(i,a,y,b,h,g,10),i=h,a=g;break;case no.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=fo(D)*T+C,s=po(D)*E+w),m=uo(T,E)*lo(go,Math.abs(O)),i=fo(k)*T+C,a=po(k)*E+w;break;case no.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case no.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==no.L&&v>0&&(e.lineTo(y,b),v=0),S){case no.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case no.L:u=n[x++],d=n[x++];var w=mo(u-c),T=mo(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case no.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;kr(c,k,j,ee,D,ro),kr(l,A,M,N,D,io),e.bezierCurveTo(ro[1],io[1],ro[2],io[2],ro[3],io[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case no.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Ir(c,k,j,D,ro),Ir(l,A,M,D,io),e.quadraticCurveTo(ro[1],io[1],ro[2],io[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case no.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],L=n[x++],ne=n[x++],R=n[x++],z=!n[x++],re=F>I?F:I,ie=mo(F-I)>.001,ae=L+ne,B=!1;if(f){var E=p[g++];h+E>_&&(ae=L+ne*(_-h)/E,B=!0),h+=E}if(ie&&e.ellipse?e.ellipse(te,P,F,I,R,L,ae,z):e.arc(te,P,re,L,ae,z),B)break lo;C&&(o=fo(L)*F+te,s=po(L)*I+P),c=fo(ae)*F+te,l=po(ae)*I+P;break;case no.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var V=n[x++],oe=n[x++];if(f){var E=p[g++];if(h+E>_){var se=_-h;e.moveTo(u,d),e.lineTo(u+lo(se,V),d),se-=V,se>0&&e.lineTo(u+V,d+lo(se,oe)),se-=oe,se>0&&e.lineTo(u+uo(V-se,0),d+oe),se-=V,se>0&&e.lineTo(u,d+uo(oe-se,0));break lo}h+=E}e.rect(u,d,V,oe);break;case no.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=no,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}()}));function xo(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}var So=t((()=>{}));function Co(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Ar(e,t,n,r,i,a,o,s,l,u,null)<=d/2}var wo=t((()=>{Jr()}));function To(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:Lr(e,t,n,r,i,a,s,c,null)<=l/2}var Eo=t((()=>{Jr()}));function Do(e){return e%=Oo,e<0&&(e+=Oo),e}var Oo,ko=t((()=>{Oo=Math.PI*2}));function Ao(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%jo<1e-4)return!0;if(a){var d=r;r=Do(i),i=Do(d)}else r=Do(r),i=Do(i);r>i&&(i+=jo);var f=Math.atan2(c,s);return f<0&&(f+=jo),f>=r&&f<=i||f+jo>=r&&f+jo<=i}var jo,Mo=t((()=>{ko(),jo=Math.PI*2}));function No(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Po=t((()=>{}));function Fo(e,t){return Math.abs(e-t)<Go}function Io(){var e=qo[0];qo[0]=qo[1],qo[1]=e}function Lo(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Dr(t,r,a,s,l,Ko);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ko[h],_=g===0||g===1?.5:1;Tr(e,n,i,o,g)<c||(f<0&&(f=Or(t,r,a,s,qo),qo[1]<qo[0]&&f>1&&Io(),p=Tr(t,r,a,s,qo[0]),f>1&&(m=Tr(t,r,a,s,qo[1]))),f===2?g<qo[0]?d+=p<t?_:-_:g<qo[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<qo[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ro(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Pr(t,r,a,s,Ko);if(c===0)return 0;var l=Fr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Mr(t,r,a,l),f=0;f<c;f++){var p=Ko[f]===0||Ko[f]===1?.5:1,m=Mr(e,n,i,Ko[f]);m<o||(Ko[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Ko[0]===0||Ko[0]===1?.5:1,m=Mr(e,n,i,Ko[0]);return m<o?0:a<t?p:-p}}function zo(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Ko[0]=-c,Ko[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Wo-1e-4){r=0,i=Wo;var u=a?1:-1;return o>=Ko[0]+e&&o<=Ko[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Wo,i+=Wo);for(var f=0,p=0;p<2;p++){var m=Ko[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Wo+h),(h>=r&&h<=i||h+Wo>=r&&h+Wo<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Bo(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Uo.M&&m>1&&(n||(s+=No(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Uo.M:u=a[m++],d=a[m++],c=u,l=d;break;case Uo.L:if(n){if(xo(c,l,a[m],a[m+1],t,r,i))return!0}else s+=No(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.C:if(n){if(Co(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Lo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.Q:if(n){if(To(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ro(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=No(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Ao(_,v,b,x,x+S,C,t,w,i))return!0}else s+=zo(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Uo.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(xo(u,d,f,d,t,r,i)||xo(f,d,f,p,t,r,i)||xo(f,p,u,p,t,r,i)||xo(u,p,u,d,t,r,i))return!0}else s+=No(f,d,f,p,r,i),s+=No(u,p,u,d,r,i);break;case Uo.Z:if(n){if(xo(c,l,u,d,t,r,i))return!0}else s+=No(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Fo(l,d)&&(s+=No(c,l,u,d,r,i)||0),s!==0}function Vo(e,t,n){return Bo(e,0,!1,t,n)}function Ho(e,t,n,r){return Bo(e,t,!0,n,r)}var Uo,Wo,Go,Ko,qo,Jo=t((()=>{bo(),So(),wo(),Eo(),Mo(),Jr(),Po(),Uo=yo.CMD,Wo=Math.PI*2,Go=1e-4,Ko=[-1,-1,-1],qo=[-1,-1]})),Yo,Xo,Zo,Qo,$o=t((()=>{o(),Ra(),bo(),Jo(),G(),Ai(),fa(),pa(),br(),Yo=w({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ja),Xo={style:w({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ma.style)},Zo=yr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Qo=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Zo.length;++s)i[Zo[s]]=this[Zo[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=N(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?C(this.style,o):this.useStyle(o):a===`shape`?C(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(L(e)){var t=xi(e,0);return t>.5?la:t>.2?da:ua}else if(e)return ua}return la},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(L(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==xi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new yo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Ho(a,o/s,e,t)))return!0}if(this.hasFill())return Vo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:C(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ve(Yo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=C({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=C({},r.shape),C(c,n.shape)):(c=C({},i?this.shape:r.shape),C(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=C({},this.shape);for(var l={},u=N(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Xo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){i(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return b(e.style)},n.prototype.getDefaultShape=function(){return b(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Fa)})),es,ts,ns=t((()=>{o(),Ra(),$o(),G(),g(),In(),es=w({strokeFirst:!0,font:u,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Yo),ts=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return On(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return ve(es,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=En(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Fa),ts.prototype.type=`tspan`}));function rs(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var is,as,os,ss=t((()=>{o(),Ra(),Xt(),G(),is=w({x:0,y:0},ja),as={style:w({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ma.style)},os=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ve(is,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=rs(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return as},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Fa),os.prototype.type=`image`}));function cs(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ls=t((()=>{}));function us(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(ps(r*2)===ps(i*2)&&(e.x1=e.x2=fs(r,s,!0)),ps(a*2)===ps(o*2)&&(e.y1=e.y2=fs(a,s,!0)),e):e}}function ds(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=fs(r,s,!0),e.y=fs(i,s,!0),e.width=Math.max(fs(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(fs(i+o,s,!1)-e.y,o===0?0:1),e):e}}function fs(e,t,n){if(!t)return e;var r=ps(e*2);return(r+ps(t))%2==0?r/2:(r+(n?1:-1))/2}var ps,ms=t((()=>{ps=Math.round})),hs,gs,_s,vs=t((()=>{o(),$o(),ls(),ms(),hs=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),gs={},_s=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hs},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ds(gs,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?cs(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Qo),_s.prototype.type=`rect`}));function ys(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function bs(e,t){for(var n=0;n<Is.length;n++){var r=Is[n],i=t[r];i!=null&&(e[r]=i)}}function xs(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ss(e){return Cs(e),k(e.rich,Cs),e}function Cs(e){if(e){e.font=Ns.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Ps[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Fs[n]?n:`top`,e.padding&&=de(e.padding)}}function ws(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ts(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Es(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Ds(e){var t=e.text;return t!=null&&(t+=``),t}function Os(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ks,As,js,Ms,Ns,Ps,Fs,Is,Ls=t((()=>{o(),In(),ns(),G(),fn(),ss(),vs(),Xt(),Ra(),g(),ks={fill:`#000`},As=2,js={},Ms={style:w({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ma.style)},Ns=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ks,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ss(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ks},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return C(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=N(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},C(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Ms},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;wn(js,r.overflowRect,i,a,o,s),i=js.baseX,a=js.baseY;var c=vn(Ds(e),e,js.outerWidth,js.outerHeight),l=Os(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=an(a,c.contentHeight,s);if(l||n){var _=rn(i,f,o),v=an(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Es(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Ts(`fill`in e?e.fill:(x=!0,r.fill)),C=ws(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=As,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ts),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,bs(D,e),g+=m,E.setBoundingRect(Dn(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;wn(js,t.overflowRect,i,a,n,r),i=js.baseX,a=js.baseY;var o=yn(Ds(e),e,js.outerWidth,js.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=rn(i,c,n),f=an(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Os(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Os(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Es(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ts),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Ts(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=ws(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=As,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=le(s.opacity,t.opacity,1),bs(p,s),y&&(p.lineWidth=le(s.lineWidth,t.lineWidth,g),p.lineDash=H(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Dn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(_s),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=H(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(os),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=H(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=le(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return xs(e)&&(t=[e.fontStyle,e.fontWeight,ys(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&pe(t)||e.textFont||e.font},t}(Fa),Ps={left:!0,right:1,center:1},Fs={top:1,bottom:1,middle:1},Is=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`]}));function Rs(e){return e.replace(/^\s+|\s+$/g,``)}function zs(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Bs(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Vs(e,t,n)}function Vs(e,t,n){return L(e)?Rs(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Hs(e,t,n){return t??=10,t=Math.min(Math.max(0,t),uc),e=(+e).toFixed(t),n?e:+e}function Us(e){return e.sort(function(e,t){return e-t}),e}function Ws(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Gs(e)}function Gs(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ks(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(pc(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function qs(e,t,n){return e[t]&&Js(e,n)[t]||0}function Js(e,t){var n=j(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=A(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=A(i,function(e){return Math.floor(e)}),s=j(o,function(e,t){return e+t},0),c=A(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return A(o,function(e){return e/r})}function Ys(e,t){var n=Math.max(Ws(e),Ws(t)),r=e+t;return n>uc?r:Hs(r,n)}function Xs(e){var t=Math.PI*2;return(e%t+t)%t}function Zs(e){return e>-lc&&e<lc}function Qs(e){if(e instanceof Date)return e;if(L(e)){var t=gc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function $s(e){return 10**ec(e)}function ec(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function tc(e,t){var n=ec(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function nc(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function rc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ic(e){var t=parseFloat(e);return t==e&&(t!==0||!L(e)||e.indexOf(`x`)<=0)?t:NaN}function ac(e){return!isNaN(ic(e))}function oc(){return Math.round(Math.random()*9)}function sc(e,t){return t===0?e:sc(t,e%t)}function cc(e,t){return e==null?t:t==null?e:e*t/sc(e,t)}var lc,uc,dc,fc,pc,mc,hc,gc,_c=t((()=>{G(),lc=1e-4,uc=20,dc=Math.min,fc=Math.max,pc=Math.abs,mc=Bs,hc=9007199254740991,gc=/^(?:(\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 vc(e,t,n){if(Cc){if(n){if(Sc[t])return;Sc[t]=!0}console[e](xc+t)}}function yc(e,t){vc(`error`,e,t)}function bc(e){throw Error(e)}var xc,Sc,Cc,wc=t((()=>{xc=`[ECharts] `,Sc={},Cc=typeof console<`u`&&console.warn&&console.log}));function Tc(e,t,n){return(t-e)*n+e}function Ec(e){return e instanceof Array?e:e==null?[]:[e]}function Dc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function Oc(e){return z(e)&&!F(e)&&!(e instanceof Date)?e.value:e}function kc(e){return z(e)&&!(e instanceof Array)}function Ac(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=U();k(t,function(e,n){if(!z(e)){t[n]=null;return}});var s=jc(e,o,n);return(r||i)&&Mc(s,e,o,t),r&&Nc(s,t),r||i?Pc(s,t,i):a&&Fc(s,t),Ic(s),s}function jc(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Vc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Mc(e,t,n,r){k(r,function(i,a){if(!(!i||i.id==null)){var o=Rc(i.id),s=n.get(o);if(s!=null){var c=e[s];fe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Nc(e,t){k(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Vc(n)&&!Vc(a)&&Lc(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Pc(e,t,n){k(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Vc(r.existing)||r.existing&&t.id!=null&&!Lc(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Fc(e,t){k(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ic(e){var t=U();k(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),k(e,function(e){var n=e.newOption;fe(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),k(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(z(i)){if(a.name=i.name==null?r?r.name:el+n:Rc(i.name),r)a.id=Rc(r.id);else if(i.id!=null)a.id=Rc(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function Lc(e,t,n){var r=zc(t[e],null),i=zc(n[e],null);return r!=null&&i!=null&&r===i}function Rc(e){return zc(e,``)}function zc(e,t){return e==null?t:L(e)?e:R(e)||ne(e)?e+``:t}function Bc(e){var t=e.name;return!!(t&&t.indexOf(el))}function Vc(e){return e&&e.id!=null&&Rc(e.id).indexOf(tl)===0}function Hc(e,t,n){k(e,function(e){var r=e.newOption;z(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Uc(t,r,e.existing,n))})}function Uc(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Wc(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=zc(e[r].seriesId,null);if(a==null)return;for(var o=Ec(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Gc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?A(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?A(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Kc(){var e=`__ec_inner_`+ rl++;return function(t){return t[e]||(t[e]={})}}function qc(e,t,n){var r=Jc(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Yc(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Jc(e,t){var n;if(L(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=U(),a={},o=!1;return k(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&T(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function Yc(e,t,n,r){r||=il;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Xc(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Zc(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Qc(e){return e===`auto`?K.domSupported?`html`:`richText`:e||`html`}function $c(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(R(r)){var o=Tc(n||0,r,i);return Hs(o,a?Math.max(Ws(n||0),Ws(r)):t)}else if(L(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Tc(p,m,i);s[d]=Hs(o,a?Math.max(Ws(p),Ws(m)):t)}}return s}}var el,tl,nl,rl,il,Y=t((()=>{G(),Ue(),_c(),el=`series\0`,tl=`\0_ec_\0`,nl=`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`.split(`.`),rl=oc(),il={useDefault:!0,enableAll:!1,enableNone:!1},function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.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._step,!0):!1},e}()})),X,al,ol=t((()=>{Y(),X=Kc(),al=function(e,t,n,r){if(r){var i=X(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=X(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}}}));function sl(e){return e!=null&&e!==`none`}function cl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ll(e){cl(e,`emphasis`,2)}function ul(e){e.hoverState===2&&cl(e,`normal`,0)}function dl(e){cl(e,`blur`,1)}function fl(e){e.hoverState===1&&cl(e,`normal`,0)}function pl(e){e.selected=!0}function ml(e){e.selected=!1}function hl(e,t,n){t(e,n)}function gl(e,t,n){hl(e,t,n),e.isGroup&&e.traverse(function(e){hl(e,t,n)})}function _l(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function vl(e,t,n,r){var i=n&&T(n,`select`)>=0,a=!1;if(e instanceof Qo){var o=eu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(sl(s)||sl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=C({},r),l=C({},l),l.fill=s):!sl(l.fill)&&sl(s)?(a=!0,r=C({},r),l=C({},l),l.fill=Ci(s)):!sl(l.stroke)&&sl(c)&&(a||(r=C({},r),l=C({},l)),l.stroke=Ci(c)),r.style=l}}if(r&&r.z2==null){a||(r=C({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function yl(e,t,n){if(n&&n.z2==null){n=C({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function bl(e,t,n){var r=T(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:_l(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=C({},n),o=C({opacity:r?i:a.opacity*.1},o),n.style=o),n}function xl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return vl(this,e,t,n);if(e===`blur`)return bl(this,e,n);if(e===`select`)return yl(this,e,n)}return n}function Sl(e){e.stateProxy=xl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=xl),n&&(n.stateProxy=xl)}function Cl(e,t){!jl(e,t)&&!e.__highByOuter&&gl(e,ll)}function wl(e,t){!jl(e,t)&&!e.__highByOuter&&gl(e,ul)}function Tl(e,t){e.__highByOuter|=1<<(t||0),gl(e,ll)}function El(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gl(e,ul)}function Dl(e){gl(e,dl)}function Ol(e){gl(e,fl)}function kl(e){gl(e,pl)}function Al(e){gl(e,ml)}function jl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ml(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=tu(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){fl(e)}),o&&n.push(i)),a.isBlured=!1}),k(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Nl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Ol(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||dl(e)}),O(t))a(e.getData(),t);else if(z(t))for(var u=N(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),tu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Pl(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){tu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){dl(e)})}}}function Fl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Gc(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=X(o);Nl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Nl(r,u,d,n)}}}function Il(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(X(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Ll(e,t,n){var r=X(e),i=Il(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Pl(r.componentMainType,r.componentIndex,n),k(a,function(e){return Cl(e,t)})):(Nl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Pl(r.componentMainType,r.componentIndex,n),Cl(e,t))}function Rl(e,t,n){Ml(n);var r=X(e),i=Il(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?k(i,function(e){return wl(e,t)}):wl(e,t)}function zl(e,t,n){if(Yl(t)){var r=t.dataType,i=Gc(e.getData(r),t);F(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Bl(e){k(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?kl(t):Al(t)})})}function Vl(e){var t=[];return e.eachSeries(function(e){k(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Hl(e,t,n){Kl(e,!0),gl(e,Sl),Gl(e,t,n)}function Ul(e){Kl(e,!1)}function Wl(e,t,n,r){r?Ul(e):Hl(e,t,n)}function Gl(e,t,n){var r=X(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function Kl(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ql(e){return!!(e&&e.__highDownDispatcher)}function Jl(e){var t=$l[e];return t==null&&Ql<=32&&(t=$l[e]=Ql++),t}function Yl(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Xl(e){var t=e.type;return t===`highlight`||t===`downplay`}function Zl(e){var t=eu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu=t((()=>{G(),ol(),Ai(),Y(),$o(),Ql=1,$l={},eu=Kc(),tu=Kc(),nu=[`emphasis`,`blur`,`select`],ru=[`normal`,`emphasis`,`blur`,`select`],iu=`highlight`,au=`downplay`,ou=`select`,su=`unselect`,cu=`toggleSelect`,lu=`selectchanged`}));function du(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=fu.M,d=fu.C,f=fu.L,p=fu.R,m=fu.A,h=fu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=mu(t[0]*t[0]+t[1]*t[1]),y=mu(t[2]*t[2]+t[3]*t[3]),b=hu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],nr(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],nr(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=pu[c];x[0]=n[o++],x[1]=n[o++],nr(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var fu,pu,mu,hu,gu=t((()=>{bo(),lr(),fu=yo.CMD,pu=[[],[],[]],mu=Math.sqrt,hu=Math.atan2}));function _u(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function vu(e,t){return(e[0]*t[0]+e[1]*t[1])/(_u(e)*_u(t))}function yu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(vu(e,t))}function bu(e,t,n,r,i,a,o,s,c,l,u){var d=Au/180*c,f=ku(d)*(e-n)/2+Ou(d)*(t-r)/2,p=-1*Ou(d)*(e-n)/2+ku(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Du(m),s*=Du(m));var h=(i===a?-1:1)*Du((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+ku(d)*g-Ou(d)*_,y=(t+r)/2+Ou(d)*g+ku(d)*_,b=yu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=yu(x,S);if(vu(x,S)<=-1&&(C=Au),vu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Au*1e6)/1e6;C=Au*2+w%2*Au}u.addData(l,v,y,o,s,b,C,d,a)}function xu(e){var t=new yo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=yo.CMD,c=e.match(ju);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Mu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,bu(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,bu(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}function Su(e){return e.setData!=null}function Cu(e,t){var n=xu(e),r=C({},t);return r.buildPath=function(e){var t=Su(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){du(n,e),this.dirtyShape()},r}function wu(e,t){return new Nu(Cu(e,t))}function Tu(e,t){var n=Cu(e,t);return function(e){i(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Nu)}function Eu(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Qo(t);return o.createPathProxy(),o.buildPath=function(e){if(Su(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Du,Ou,ku,Au,ju,Mu,Nu,Pu=t((()=>{o(),$o(),bo(),gu(),G(),Du=Math.sqrt,Ou=Math.sin,ku=Math.cos,Au=Math.PI,ju=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Mu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Nu=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Qo)})),Fu,Iu=t((()=>{o(),G(),Oa(),Xt(),Fu=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=T(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=T(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Da),Fu.prototype.type=`group`})),Lu,Ru,zu=t((()=>{o(),$o(),Lu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Ru=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Lu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Qo),Ru.prototype.type=`circle`})),Bu,Vu,Hu=t((()=>{o(),$o(),Bu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Vu=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Bu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Qo),Vu.prototype.type=`ellipse`}));function Uu(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<rd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Wu(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/ed(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*ed(td(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Gu(e){var t;if(F(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Ku(e,t){var n,r=td(t.r,0),i=td(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=$u(c-s),p=f>Ju&&f%Ju;if(p>rd&&(f=p),!(r>rd))e.moveTo(l,u);else if(f>Ju-rd)e.moveTo(l+r*Xu(s),u+r*Yu(s)),e.arc(l,u,r,s,c,!d),i>rd&&(e.moveTo(l+i*Xu(c),u+i*Yu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Xu(s),j=r*Yu(s),M=i*Xu(c),ee=i*Yu(c),N=f>rd;if(N){var te=t.cornerRadius;te&&(n=Gu(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=$u(r-i)/2;if(v=nd(P,g),y=nd(P,_),b=nd(P,m),x=nd(P,h),w=S=td(v,y),T=C=td(b,x),(S>rd||C>rd)&&(E=r*Xu(c),D=r*Yu(c),O=i*Xu(s),k=i*Yu(s),f<qu)){var F=Uu(A,j,O,k,E,D,M,ee);if(F){var I=A-F[0],L=j-F[1],ne=E-F[0],R=D-F[1],z=1/Yu(Zu((I*ne+L*R)/(ed(I*I+L*L)*ed(ne*ne+R*R)))/2),re=ed(F[0]*F[0]+F[1]*F[1]);w=nd(S,(r-re)/(z+1)),T=nd(C,(i-re)/(z-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>rd){var ie=nd(g,w),ae=nd(_,w),B=Wu(O,k,A,j,r,ie,d),V=Wu(E,D,M,ee,r,ae,d);e.moveTo(l+B.cx+B.x0,u+B.cy+B.y0),w<S&&ie===ae?e.arc(l+B.cx,u+B.cy,w,Qu(B.y0,B.x0),Qu(V.y0,V.x0),!d):(ie>0&&e.arc(l+B.cx,u+B.cy,ie,Qu(B.y0,B.x0),Qu(B.y1,B.x1),!d),e.arc(l,u,r,Qu(B.cy+B.y1,B.cx+B.x1),Qu(V.cy+V.y1,V.cx+V.x1),!d),ae>0&&e.arc(l+V.cx,u+V.cy,ae,Qu(V.y1,V.x1),Qu(V.y0,V.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>rd)||!N)e.lineTo(l+M,u+ee);else if(T>rd){var ie=nd(m,T),ae=nd(h,T),B=Wu(M,ee,E,D,i,-ae,d),V=Wu(A,j,O,k,i,-ie,d);e.lineTo(l+B.cx+B.x0,u+B.cy+B.y0),T<C&&ie===ae?e.arc(l+B.cx,u+B.cy,T,Qu(B.y0,B.x0),Qu(V.y0,V.x0),!d):(ae>0&&e.arc(l+B.cx,u+B.cy,ae,Qu(B.y0,B.x0),Qu(B.y1,B.x1),!d),e.arc(l,u,i,Qu(B.cy+B.y1,B.cx+B.x1),Qu(V.cy+V.y1,V.cx+V.x1),d),ie>0&&e.arc(l+V.cx,u+V.cy,ie,Qu(V.y1,V.x1),Qu(V.y0,V.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id=t((()=>{G(),qu=Math.PI,Ju=qu*2,Yu=Math.sin,Xu=Math.cos,Zu=Math.acos,Qu=Math.atan2,$u=Math.abs,ed=Math.sqrt,td=Math.max,nd=Math.min,rd=1e-4})),ad,od,sd=t((()=>{o(),$o(),id(),ad=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),od=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){Ku(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Qo),od.prototype.type=`sector`})),cd,ld,ud=t((()=>{o(),$o(),cd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),ld=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new cd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Qo),ld.prototype.type=`ring`}));function dd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)rr(u,u,e[f]),ir(d,d,e[f]);rr(u,u,r[0]),ir(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Bn(e[f]));continue}else c=e[f-1],l=e[f+1];Wn(a,l,c),Xn(a,a,t);var h=Qn(m,c),g=Qn(m,l),_=h+g;_!==0&&(h/=_,g/=_),Xn(o,a,-h),Xn(s,a,g);var v=Hn([],m,o),y=Hn([],m,s);r&&(ir(v,v,u),rr(v,v,d),ir(y,y,u),rr(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}var fd=t((()=>{lr()}));function pd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=dd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var md=t((()=>{fd()})),hd,gd,_d=t((()=>{o(),$o(),md(),hd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),gd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){pd(e,t,!0)},t}(Qo),gd.prototype.type=`polygon`})),vd,yd,bd=t((()=>{o(),$o(),md(),vd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),yd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new vd},t.prototype.buildPath=function(e,t){pd(e,t,!1)},t}(Qo),yd.prototype.type=`polyline`})),xd,Sd,Cd,wd=t((()=>{o(),$o(),ms(),xd={},Sd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Cd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=us(xd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Qo),Cd.prototype.type=`line`}));function Td(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Er:Tr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Er:Tr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Nr:Mr)(e.x1,e.cpx1,e.x2,t),(n?Nr:Mr)(e.y1,e.cpy1,e.y2,t)]}var Ed,Dd,Od,kd=t((()=>{o(),$o(),lr(),Jr(),Ed=[],Dd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}(),Od=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Dd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Ir(n,o,i,u,Ed),o=Ed[1],i=Ed[2],Ir(r,s,a,u,Ed),s=Ed[1],a=Ed[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(kr(n,o,c,i,u,Ed),o=Ed[1],c=Ed[2],i=Ed[3],kr(r,s,l,a,u,Ed),s=Ed[1],l=Ed[2],a=Ed[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Td(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Td(this.shape,e,!0);return Zn(t,t)},t}(Qo),Od.prototype.type=`bezier-curve`})),Ad,jd,Md=t((()=>{o(),$o(),Ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Qo),jd.prototype.type=`arc`})),Nd,Pd=t((()=>{o(),$o(),Nd=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Qo.prototype.getBoundingRect.call(this)},t}(Qo)})),Fd,Id=t((()=>{Fd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()})),Ld,Rd=t((()=>{o(),Id(),Ld=function(e){i(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Fd)})),zd,Bd=t((()=>{o(),Id(),zd=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Fd)})),Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd=t((()=>{Mt(),Xt(),Vd=Math.min,Hd=Math.max,Ud=Math.abs,Wd=[0,0],Gd=[0,0],Kd=Pt(),qd=Kd.minTv,Jd=Kd.maxTv,Yd=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);q.sub(r[0],n[1],n[0]),q.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&q.set(t,0,0),Kd.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Kd.negativeSize&&q.copy(t,r?Kd.useDir?Kd.dirMinTv:qd:Jd),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Wd),e._getProjMinMaxOnAxis(a,t._corners,Gd),Kd.negativeSize||Wd[1]<Gd[0]||Wd[0]>Gd[1]){if(i=!1,Kd.negativeSize||n)return i;var s=Ud(Gd[0]-Wd[1]),c=Ud(Wd[0]-Gd[1]);Vd(s,c)>Jd.len()&&(s<c?q.scale(Jd,o,-s*r):q.scale(Jd,o,c*r))}else if(!n){var s=Ud(Gd[0]-Wd[1]),c=Ud(Wd[0]-Gd[1]);(Kd.useDir||Vd(s,c)<qd.len())&&((s<c||!Kd.bidirectional)&&(q.scale(qd,o,s*r),Kd.useDir&&Kd.calcDirMTV()),(s>=c||!Kd.bidirectional)&&(q.scale(qd,o,-c*r),Kd.useDir&&Kd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Vd(l,o),s=Hd(l,s)}n[0]=o+Kd.touchThreshold,n[1]=s-Kd.touchThreshold,Kd.negativeSize=n[1]<n[0]},e}()})),Zd,Qd,$d=t((()=>{o(),Ra(),Xt(),Zd=[],Qd=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Zd)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Fa)}));function ef(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=H(r.duration,200),u=H(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),I(d)&&(d=d(n,i)),I(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function tf(e,t,n,r,i,a,o){var s=!1,c;I(i)?(o=a,a=i,i=null):z(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=ef(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function nf(e,t,n,r,i,a){tf(`update`,e,t,n,r,i,a)}function rf(e,t,n,r,i,a){tf(`enter`,e,t,n,r,i,a)}function af(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function of(e,t,n,r,i,a){af(e)||tf(`leave`,e,t,n,r,i,a)}function sf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),of(e,{style:{opacity:0}},t,n,r)}function cf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||sf(e,t,n,r)}):sf(e,t,n,r)}var lf=t((()=>{G(),Y(),Kc()})),uf=n({Arc:()=>jd,BezierCurve:()=>Od,BoundingRect:()=>J,Circle:()=>Ru,CompoundPath:()=>Nd,Ellipse:()=>Vu,Group:()=>Fu,Image:()=>os,IncrementalDisplayable:()=>Qd,Line:()=>Cd,LinearGradient:()=>Ld,OrientedBoundingRect:()=>Yd,Path:()=>Qo,Point:()=>q,Polygon:()=>gd,Polyline:()=>yd,RadialGradient:()=>zd,Rect:()=>_s,Ring:()=>ld,Sector:()=>od,Text:()=>Ns,WH:()=>Jf,XY:()=>qf,applyTransform:()=>Sf,calcZ2Range:()=>Uf,clipPointsByRect:()=>Df,clipRectByRect:()=>Of,createIcon:()=>kf,ensureCopyRect:()=>Bf,ensureCopyTransform:()=>Vf,expandOrShrinkRect:()=>Pf,extendPath:()=>ff,extendShape:()=>df,getShapeClass:()=>mf,getTransform:()=>xf,groupTransition:()=>Ef,initProps:()=>rf,isBoundingRectAxisAligned:()=>zf,isElementRemoved:()=>af,lineLineIntersect:()=>jf,linePolygonIntersect:()=>Af,makeImage:()=>gf,makePath:()=>hf,mergePath:()=>Xf,registerShape:()=>pf,removeElement:()=>of,removeElementWithFadeOut:()=>cf,resizePath:()=>vf,retrieveZInfo:()=>Hf,setTooltipConfig:()=>If,subPixelOptimize:()=>Zf,subPixelOptimizeLine:()=>yf,subPixelOptimizeRect:()=>bf,transformDirection:()=>Cf,traverseElements:()=>Rf,traverseUpdateZ:()=>Wf,updateProps:()=>nf});function df(e){return Qo.extend(e)}function ff(e,t){return Yf(e,t)}function pf(e,t){Kf[e]=t}function mf(e){if(Kf.hasOwnProperty(e))return Kf[e]}function hf(e,t,n,r){var i=wu(e,t);return n&&(r===`center`&&(n=_f(n,i.getBoundingRect())),vf(i,n)),i}function gf(e,t,n){var r=new os({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_f(t,i))}}});return r}function _f(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}function vf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function yf(e,t){return us(e,e,{lineWidth:t}),e}function bf(e,t){return ds(e,e,t),e}function xf(e,t){for(var n=Ct([]);e&&e!==t;)Tt(n,e.getLocalTransform(),n),e=e.parent;return n}function Sf(e,t,n){return t&&!O(t)&&(t=vr.getLocalTransform(t)),n&&(t=kt([],t)),nr([],e,t)}function Cf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:pc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:pc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Sf(a,t,n),pc(a[0])>pc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function wf(e){return!e.isGroup}function Tf(e){return e.shape!=null}function Ef(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){wf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Tf(e)&&(t.shape=b(e.shape)),t}var a=r(e);t.traverse(function(e){if(wf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),nf(e,r,n,X(e).dataIndex)}}})}function Df(e,t){return A(e,function(e){var n=e[0];n=fc(n,t.x),n=dc(n,t.x+t.width);var r=e[1];return r=fc(r,t.y),r=dc(r,t.y+t.height),[n,r]})}function Of(e,t){var n=fc(e.x,t.x),r=dc(e.x+e.width,t.x+t.width),i=fc(e.y,t.y),a=dc(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function kf(e,t,n){var r=C({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),w(i,n),new os(r)):hf(e.replace(`path://`,``),r,n,`center`)}function Af(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(jf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function jf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Mf(u,d,c,l);if(Nf(f))return!1;var p=e-i,m=t-a,h=Mf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Mf(p,m,u,d)/f;return!(g<0||g>1)}function Mf(e,t,n,r){return e*r-n*t}function Nf(e){return e<=1e-6&&e>=-1e-6}function Pf(e,t,n,r,i){return t==null?e:(R(t)?Qf[0]=Qf[1]=Qf[2]=Qf[3]=t:(Qf[0]=t[0],Qf[1]=t[1],Qf[2]=t[2],Qf[3]=t[3]),r&&(Qf[0]=fc(0,Qf[0]),Qf[1]=fc(0,Qf[1]),Qf[2]=fc(0,Qf[2]),Qf[3]=fc(0,Qf[3])),n&&(Qf[0]=-Qf[0],Qf[1]=-Qf[1],Qf[2]=-Qf[2],Qf[3]=-Qf[3]),Ff(e,Qf,`x`,`width`,3,1,i&&i[0]||0),Ff(e,Qf,`y`,`height`,0,2,i&&i[1]||0),e)}function Ff(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fc(0,dc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:pc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function If(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=L(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&k(N(c),function(e){be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=X(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:w({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Lf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Rf(e,t){if(e)if(F(e))for(var n=0;n<e.length;n++)Lf(e[n],t);else Lf(e,t)}function zf(e){return!e||pc(e[1])<$f&&pc(e[2])<$f||pc(e[0])<$f&&pc(e[3])<$f}function Bf(e,t){return e?J.copy(e,t):t.clone()}function Vf(e,t){return t?wt(e||St(),t):void 0}function Hf(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Uf(e){var t=-1/0,n=1/0;Lf(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Wf(e,t,n){Gf(e,t,n,-1/0)}function Gf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=fc(Gf(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=fc(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}var Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep=t((()=>{Pu(),jt(),lr(),$o(),br(),ss(),Iu(),Ls(),zu(),Hu(),sd(),ud(),_d(),bd(),vs(),wd(),kd(),Md(),Pd(),Rd(),Bd(),Xt(),Xd(),Mt(),$d(),ms(),G(),ol(),lf(),_c(),Kf={},qf=[`x`,`y`],Jf=[`width`,`height`],Yf=Tu,Xf=Eu,Zf=fs,Qf=[0,0,0,0],$f=1e-5,pf(`circle`,Ru),pf(`ellipse`,Vu),pf(`sector`,od),pf(`ring`,ld),pf(`polygon`,gd),pf(`polyline`,yd),pf(`rect`,_s),pf(`line`,Cd),pf(`bezierCurve`,Od),pf(`arc`,jd)}));function tp(e,t){for(var n=0;n<nu.length;n++){var r=nu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function np(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=I(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<nu.length;l++){var u=nu[l],d=t[u];c[u]=H(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function rp(e,t,n,r){n||=fp;for(var i=e instanceof Ns,a=!1,o=0;o<ru.length;o++){var s=t[ru[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Ns,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=np(n,t),u=t.normal,d=!!u.getShallow(`show`),f=ap(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(op(u,n,!1));for(var o=0;o<nu.length;o++){var p=nu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!H(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=ap(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=op(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(gp(c).setLabelText=function(e){var r=np(n,t,e);tp(c,r)})}else c&&(c.ignore=!0);e.dirty()}function ip(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<nu.length;r++){var i=nu[r];n[i]=e.getModel([i,t])}return n}function ap(e,t,n,r,i){var a={};return sp(a,e,n,r,i),t&&C(a,t),a}function op(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=H(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function sp(e,t,n,r,i){n||=fp;var a=t.ecModel,o=a&&a.option.textStyle,s=cp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=H(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);lp(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=R(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=_p.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=de(_),h.__marginType=_p.textMargin)}lp(e,t,o,null,null,n,r,i,!0,!1)}function cp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||fp).rich;if(n){t||={};for(var r=N(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}function lp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||fp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=H(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=H(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=H(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=H(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<pp.length;_++){var v=pp[_],y=i!==!1&&r?le(t.getShallow(v),r.getShallow(v),n[v]):H(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<mp.length;_++){var v=mp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<hp.length;_++){var v=hp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function up(e,t){var n=t&&t.getModel(`textStyle`);return pe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}function dp(e,t,n,r,i){var a=gp(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=H(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=$c(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,tp(e,np({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?rf:nf)(e,{percent:1},r,t,null,l)}var fp,pp,mp,hp,gp,_p,vp=t((()=>{Ls(),G(),uu(),Y(),ep(),fp={},pp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],mp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],hp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],gp=Kc(),_p={minMargin:1,textMargin:2}})),yp,bp,xp,Sp,Cp=t((()=>{vp(),Ls(),yp=[`textStyle`,`color`],bp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],xp=new Ns,Sp=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(yp):null)},e.prototype.getFont=function(){return up({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<bp.length;n++)t[bp[n]]=this.getShallow(bp[n]);return xp.useStyle(t),xp.update(),xp.getBoundingRect()},e}()})),wp,Tp,Ep,Dp=t((()=>{ot(),wp=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Tp=at(wp),Ep=function(){function e(){}return e.prototype.getLineStyle=function(e){return Tp(this,e)},e}()})),Op,kp,Ap,jp=t((()=>{ot(),Op=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],kp=at(Op),Ap=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return kp(this,e,t)},e}()})),Mp,Np=t((()=>{Ue(),it(),ut(),Cp(),Dp(),jp(),G(),Mp=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){x(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(b(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!K.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}(),qe(Mp),Xe(Mp),D(Mp,Ep),D(Mp,Ap),D(Mp,lt),D(Mp,Sp)}));function Pp(e){return e==null?0:e.length||1}function Fp(e){return e}var Ip,Lp=t((()=>{Ip=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Fp,this._newKeyGetter=r||Fp,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Pp(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Pp(c),d=Pp(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Pp(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Pp(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}()})),Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp=t((()=>{G(),Rp=U([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),zp=`original`,Bp=`arrayRows`,Vp=`objectRows`,Hp=`keyedColumns`,Up=`typedArray`,Wp=`unknown`,Gp=`column`}));function qp(e){em(e).datasetMap=U()}function Jp(e,t,n){var r={},i=Yp(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=em(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),k(e,function(t,n){var i=z(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});k(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Yp(e){if(!e.get(`data`,!0))return Yc(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},il).models[0]}function Xp(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Yc(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},il).models}function Zp(e,t){return Qp(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Qp(e,t,n,r,i,a){var o,s=5;if(ie(e))return $p.Not;var c,l;if(r){var u=r[a];z(u)?(c=u.name,l=u.type):L(u)&&(c=u)}if(l!=null)return l===`ordinal`?$p.Must:$p.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return $p.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return $p.Not;var f=_[c];if(!f||ie(f))return $p.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Oc(g);if(!F(y))return $p.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=L(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?$p.Might:$p.Not;if(t&&e!==`-`)return $p.Must}return $p.Not}var $p,em,tm=t((()=>{Y(),G(),Kp(),$p={Must:1,Might:2,Not:3},em=Kc()}));function nm(e){return e instanceof fm}function rm(e,t,n){n||=om(e);var r=t.seriesLayoutBy,i=sm(e,n,r,t.sourceHeader,t.dimensions);return new fm({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:b(t)})}function im(e){return new fm({data:e,sourceFormat:ie(e)?Up:zp})}function am(e){return new fm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:b(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function om(e){var t=Wp;if(ie(e))t=Up;else if(F(e)){e.length===0&&(t=Bp);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(F(i)||ie(i)){t=Bp;break}else if(z(i)){t=Vp;break}}}}else if(z(e)){for(var a in e)if(be(e,a)&&O(e[a])){t=Hp;break}}return t}function sm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:lm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?um(function(e){e!=null&&e!==`-`&&(L(e)?o??=1:o=0)},n,s,10):o=R(r)?r:+!!r,!i&&o===1&&(i=[],um(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=cm(e);else if(t===`keyedColumns`)i||(i=[],k(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Oc(e[0]);a=F(c)&&c.length||1}return{startIndex:o,dimensionsDefine:lm(i),dimensionsDetectedCount:a}}function cm(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return N(n)}function lm(e){if(e){var t=U();return A(e,function(e,n){e=z(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function um(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function dm(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var fm,pm=t((()=>{G(),Kp(),Y(),tm(),fm=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Zp(this,n)===$p.Must&&(r.type=`ordinal`)}}return e}()}));function mm(e,t){return Om[_m(e,t)]}function hm(e,t){return Am[_m(e,t)]}function gm(e){return Mm[e]}function _m(e,t){return e===`arrayRows`?e+`_`+t:e}function vm(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return gm(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Oc(r)),c}}}}var ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm=t((()=>{G(),Y(),pm(),Kp(),wc(),Tm=function(){function e(e,t){var n=nm(e)?e:im(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),wm(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;wm=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Cm[_m(o,s)];C(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=W(mm(o,s),null,i,c,l),e.count=W(hm(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Cm=(e={},e[Bp+`_`+Gp]={pure:!0,appendData:i},e[Bp+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Vp]={pure:!0,appendData:i},e[Hp]={pure:!0,appendData:function(e){var t=this._data;k(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[zp]={appendData:i},e[Up]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Em=function(e){F(e)||yc(`series.data or dataset.source must be an array.`)},ym={},ym[Bp+`_`+Gp]=Em,ym[Bp+`_row`]=Em,ym[Vp]=Em,ym[Hp]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??yc(`dimension name must not be null/undefined.`)},ym[zp]=Em,Dm=function(e,t,n,r){return e[r]},Om=(bm={},bm[Bp+`_`+Gp]=function(e,t,n,r){return e[r+t]},bm[Bp+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},bm[Vp]=Dm,bm[Hp]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},bm[zp]=Dm,bm),km=function(e,t,n){return e.length},Am=(xm={},xm[Bp+`_`+Gp]=function(e,t,n){return Math.max(0,e.length-t)},xm[Bp+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},xm[Vp]=km,xm[Hp]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},xm[zp]=km,xm),jm=function(e,t,n){return e[t]},Mm=(Sm={},Sm[Bp]=jm,Sm[Vp]=function(e,t,n){return e[n]},Sm[Hp]=jm,Sm[zp]=function(e,t,n){var r=Oc(e);return r instanceof Array?r[t]:r},Sm[Up]=jm,Sm)}));function Pm(e,t){var n={},r=n.encode={},i=U(),a=[],o=[],s={};k(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;Fm(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Lm(n.type)&&(a[0]=t),Fm(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Rp.each(function(e,t){var i=Fm(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=A(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Rm(s,t),n}function Fm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Im(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Lm(e){return!(e===`ordinal`||e===`time`)}var Rm,zm=t((()=>{G(),Kp(),Rm=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}()})),Bm,Vm=t((()=>{G(),Bm=function(){function e(e){this.otherDims={},e!=null&&C(this,e)}return e}()}));function Hm(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!R(e)&&e!=null&&e!==`-`&&(e=+Qs(e)),e==null||e===``?NaN:Number(e))}var Um,Wm,Gm=t((()=>{_c(),G(),wc(),U({number:function(e){return parseFloat(e)},time:function(e){return+Qs(e)},trim:function(e){return L(e)?pe(e):e}}),Um={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},function(){function e(e,t){R(t)||bc(``),this._opFn=Um[e],this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){return R(e)?this._opFn(e,this._rvalFloat):this._opFn(ic(e),this._rvalFloat)},e}(),Wm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=R(e)?e:ic(e),r=R(t)?t:ic(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=L(e),s=L(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ic(e)===this._rvalFloat)}return this._isEQ?t:!t},e}()}));function Km(e){return e>65535?Zm:Qm}function qm(){return[1/0,-1/0]}function Jm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ym(e,t,n,r,i){var a=th[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Xm,Zm,Qm,$m,eh,th,nh,rh,ih=t((()=>{G(),Gm(),pm(),Xm=`undefined`,Zm=typeof Uint32Array===Xm?Array:Uint32Array,Qm=typeof Uint16Array===Xm?Array:Uint16Array,$m=typeof Int32Array===Xm?Array:Int32Array,eh=typeof Float64Array===Xm?Array:Float64Array,th={float:eh,int:$m,ordinal:Array,number:Array,time:eh},rh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=nh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],dm(r),this._dimensions=A(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new th[t||`float`](this._rawCount),this._rawExtent[i]=qm(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=qm());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Ym(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=nh.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=A(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=qm()),Ym(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Km(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Km(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=N(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Km(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=qm();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Km(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Km(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=qm(),d=new(Km(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=qm();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&j(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Jm(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=b(this._extent),e._rawExtent=b(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Hm(e[r],this._dimensions[r])}nh={arrayRows:e,objectRows:function(e,t,n,r){return Hm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Hm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}()}));function ah(e){return e instanceof dh}function oh(e){for(var t=U(),n=0;n<(e||[]).length;n++){var r=e[n],i=z(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function sh(e){var t=lh(e);return t.dimNameMap||=oh(e.dimensionsDefine)}function ch(e){return e>30}var lh,uh,dh,fh=t((()=>{G(),Y(),pm(),lh=Kc(),uh={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},dh=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=sh(this.source))},e.prototype.getSourceDimensionIndex=function(e){return H(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=dm(this.source),n=!ch(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=uh[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}()})),ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh=t((()=>{G(),Np(),Lp(),Nm(),zm(),Vm(),Kp(),Y(),ol(),pm(),ih(),fh(),ph=z,mh=A,hh=typeof Int32Array>`u`?Array:Int32Array,gh=`e\0\0`,_h=-1,vh=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],yh=[`_approximateExtent`],Dh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;ah(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=L(u)?new Bm({name:u}):u instanceof Bm?u:new Bm(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;R(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=U();k(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(R(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof rh&&(i=e),!i){var a=this.dimensions,o=nm(e)||O(e)?new Tm(e,a.length):e;i=new rh;var s=mh(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Pm(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Eh(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&kc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=zc(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=zc(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Eh(this,o);bh(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){ph(e)?C(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Sh(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return xh(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return F(e)?r.getValues(mh(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?_h:r},e.prototype.each=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=mh(Ch(e),this._getStoreDimIndex,this);this._store.each(i,r?W(t,r):t)},e.prototype.filterSelf=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=mh(Ch(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=N(e),i=[];return k(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){I(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=mh(Ch(e),this._getStoreDimIndex,this),o=Th(this);return o._store=this._store.map(a,i?W(t,i):t),o},e.prototype.modify=function(e,t,n,r){this;var i=n||r||this,a=mh(Ch(e),this._getStoreDimIndex,this);this._store.modify(a,i?W(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Th(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Th(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Th(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Mp(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Ip(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return xh(e,t)},function(e){return xh(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},ph(e)?C(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),F(i)?i=i.slice():ph(i)&&(i=C({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,ph(t)?C(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){ph(e)?C(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?C(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){al(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){k(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:mh(this.dimensions,this._getDimInfo,this),this.hostModel),wh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];I(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ue(arguments)))})},e.internalField=function(){bh=function(e){var t=e._invertedIndicesMap;k(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new hh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=_h;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Sh=function(e,t,n){return zc(e._getCategory(t,n),null)},xh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Sh(e,e._idDimIdx,t)),n??=gh+t,n},Ch=function(e){return F(e)||(e=e==null?[]:[e]),e},Th=function(t){var n=new e(t._schema?t._schema:mh(t.dimensions,t._getDimInfo,t),t.hostModel);return wh(n,t),n},wh=function(e,t){k(vh.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,k(yh,function(n){e[n]=b(t[n])}),e._calculationInfo=C({},t._calculationInfo)},Eh=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=Sh(e,i,t)),s==null&&a!=null&&(r[t]=s=Sh(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}()}));function kh(e,t){return Ah(e,t).dimensions}function Ah(e,t){nm(e)||(e=im(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=U(),a=[],o=Mh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ch(o),c=r===e.dimensionsDefine,l=c?sh(e):oh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=U(u),f=new $m(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=z(n)?n:{name:n},o=new Bm,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Ec(e).slice();if(n.length===1&&!L(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);k(n,function(e,n){var i=L(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;k(n,function(e){var t,n,r,i;if(L(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=C({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Ec(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}k(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(w(o,i),t,a),o.name==null&&n){var s=n[a];!z(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&w(o.otherDims,r)})}});function g(e,t,n){Rp.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)k(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var T=m(S);T.coordDim??(T.coordDim=Nh(b,i,y),T.coordDimIndex=0,(!_||v<=0)&&(T.isExtraCoord=!0),v--),x(T),T.type==null&&(Zp(e,S)===$p.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type=`ordinal`)}return jh(a),new dh({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jh(e){for(var t=U(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function Mh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return k(t,function(e){var t;z(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Nh(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ph=t((()=>{Kp(),Vm(),G(),pm(),ih(),Y(),tm(),fh()}));function Fh(e){var t=e.getShallow(`coord`,!0),n=zh.coord;if(t==null){var r=Bh.get(e.type);r&&r.getCoord2&&(n=zh.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Ih,Lh,Rh,zh,Bh,Vh=t((()=>{G(),Ih={},Lh={},Rh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ih,!0),this._normalMasterList=n(Lh,!1);function n(n,r){var i=[];return k(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){k(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ih[e]=t;return}Lh[e]=t},e.get=function(e){return Lh[e]||Ih[e]},e}(),zh={coord:1,coord2:2},Bh=U()}));function Hh(e){var t=e.get(`coordinateSystem`),n=new Wh(t),r=Gh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}function Uh(e){return e.get(`type`)===`category`}var Wh,Gh,Kh=t((()=>{G(),Y(),Wh=function(){function e(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return e}(),Gh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,il).models[0],a=e.getReferringComponents(`yAxis`,il).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Uh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Uh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,il).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Uh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,il).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Uh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Uh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();k(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Uh(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,il).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}}}));function qh(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Jh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(k(a,function(e,t){L(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;k(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Jh(e){return!ah(e.schema)}function Yh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Xh(e,t){return Yh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}var Zh=t((()=>{G(),fh()}));function Qh(e,t){var n=e.get(`coordinateSystem`),r=Rh.get(n),i;return t&&t.coordSysDims&&(i=A(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Im(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function $h(e,t,n){var r,i;return n&&k(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function eg(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=im(e)):(i=r.getSource(),a=i.sourceFormat===zp);var o=Hh(t),s=Qh(t,o),c=n.useEncodeDefaulter,l=I(c)?c:c?P(Jp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Ah(i,u),f=$h(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=qh(t,{schema:d,store:p}),h=new Dh(d,t);h.setCalculationInfo(m);var g=f!=null&&tg(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function tg(e){if(e.sourceFormat===`original`)return!F(Oc(ng(e.data||[])))}function ng(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var rg=t((()=>{G(),Oh(),Ph(),zm(),Y(),Vh(),Kh(),pm(),Zh(),tm(),Kp()}));function ig(e){return[e||``,cg++].join(`_`)}function ag(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=We(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=We(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function og(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(k(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),k(u.successor,d?p:f)}k(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return k(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),k(c,function(e){T(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);T(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return k(e,function(e){T(t,e)>=0&&n.push(e)}),n}}function sg(e,t){return x(x({},e,!0),t,!0)}var cg,lg=t((()=>{G(),it(),cg=Math.round(Math.random()*10)}));function ug(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/fg);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*ug(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function dg(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ug(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*ug(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var fg,pg=t((()=>{fg=Math.log(2)}));function mg(e,t,n,r,i){return gg(Sg,t,r,i,!0)&&gg(e,n,Sg[0],Sg[1])}function hg(e,t){e&&n(e),t&&n(t);function n(e){var t=e[xg];t&&(t.clearMarkers&&t.clearMarkers(),delete e[xg])}}function gg(e,t,n,r,i){if(t.getBoundingClientRect&&K.domSupported&&!yg(t)){var a=t[xg]||(t[xg]={}),o=vg(_g(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function _g(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){k(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function vg(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?dg(s,o):dg(o,s))}function yg(e){return e.nodeName.toUpperCase()===`CANVAS`}function bg(e){return e==null?``:(e+``).replace(Cg,function(e,t){return wg[t]})}var xg,Sg,Cg,wg,Tg=t((()=>{Ue(),pg(),G(),xg=`___zrEVENTSAVED`,Sg=[],Cg=/([&<>"'])/g,wg={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`}})),Eg,Dg=t((()=>{Eg={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}}})),Og,kg=t((()=>{Og={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}}}));function Ag(e,t){e=e.toUpperCase(),Rg[e]=new Mp(t),Lg[e]=t}function jg(e){if(L(e)){var t=Lg[e.toUpperCase()]||{};return e===Pg||e===Fg?b(t):x(b(t),b(Lg[Ig]),!1)}else return x(b(e),b(Lg[Ig]),!1)}function Mg(e){return Rg[e]}function Ng(){return Rg[Ig]}var Pg,Fg,Ig,Lg,Rg,zg,Bg=t((()=>{Np(),Ue(),Dg(),kg(),G(),Pg=`ZH`,Fg=`EN`,Ig=Fg,Lg={},Rg={},zg=K.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ig).toUpperCase().indexOf(Pg)>-1?Pg:Ig}():Ig,Ag(Fg,Eg),Ag(Pg,Og)}));function Vg(){return Hg}var Hg,Ug=t((()=>{Hg=null}));function Wg(e){return!L(e)&&!I(e)?Gg(e):e}function Gg(e){e||={};var t={},n=!0;return k(w_,function(t){n&&=e[t]==null}),k(w_,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=w_[s],l=z(a)&&!F(a)?a[c]:a,u=void 0;F(l)?(u=l.slice(),o=u[0]||``):L(l)?(o=l,u=[o]):(o==null?o=b_[r]:y_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Kg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function qg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Jg(e){return e===qg(e)}function Yg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Xg(e,t,n,r){var i=Qs(e),a=i[e_(n)](),o=i[t_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[n_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[r_(n)](),d=(u-1)%12+1,f=i[i_(n)](),p=i[a_(n)](),m=i[o_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Mp?r:Mg(r||zg)||Ng()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Kg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Kg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Kg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Kg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Kg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Kg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Kg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Kg(m,3)).replace(/{S}/g,m+``)}function Zg(e,t,n,r,i){var a=null;if(L(n))a=n;else if(I(n)){var o={time:e.time,level:e.time.level},s=Vg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Qg(e.value,i);a=n[u][u][0]}}return Xg(new Date(e.value),a,i,r)}function Qg(e,t){var n=Qs(e),r=n[t_(t)]()+1,i=n[n_(t)](),a=n[r_(t)](),o=n[i_(t)](),s=n[a_(t)](),c=n[o_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function $g(e,t,n){switch(t){case`year`:e[c_(n)](0);case`month`:e[l_(n)](1);case`day`:e[u_(n)](0);case`hour`:e[d_(n)](0);case`minute`:e[f_(n)](0);case`second`:e[p_(n)](0)}return e}function e_(e){return e?`getUTCFullYear`:`getFullYear`}function t_(e){return e?`getUTCMonth`:`getMonth`}function n_(e){return e?`getUTCDate`:`getDate`}function r_(e){return e?`getUTCHours`:`getHours`}function i_(e){return e?`getUTCMinutes`:`getMinutes`}function a_(e){return e?`getUTCSeconds`:`getSeconds`}function o_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function s_(e){return e?`setUTCFullYear`:`setFullYear`}function c_(e){return e?`setUTCMonth`:`setMonth`}function l_(e){return e?`setUTCDate`:`setDate`}function u_(e){return e?`setUTCHours`:`setHours`}function d_(e){return e?`setUTCMinutes`:`setMinutes`}function f_(e){return e?`setUTCSeconds`:`setSeconds`}function p_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}var m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_=t((()=>{G(),_c(),Bg(),Np(),Ug(),m_=1e3,h_=m_*60,g_=h_*60,__=g_*24,v_=__*365,y_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},b_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},x_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,S_=`{yyyy}-{MM}-{dd}`,C_={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:S_,hour:S_+` `+b_.hour,minute:S_+` `+b_.minute,second:S_+` `+b_.second,millisecond:x_},w_=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],T_=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`]}));function D_(e,t,n,r,i,a,o,s){return new Ns({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}var O_=t((()=>{ep()}));function k_(e){if(!ac(e))return L(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function A_(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function j_(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&pe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Qs(e):e;if(!isNaN(+c))return Xg(c,r,n);if(s)return`-`}if(t===`ordinal`)return ne(e)?i(e):R(e)&&a(e)?e+``:`-`;var l=ic(e);return a(l)?k_(l):ne(e)?i(e):typeof e==`boolean`?e+``:`-`}function M_(e,t,n){F(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=z_[a];e=e.replace(B_(o),B_(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(B_(z_[c],s),n?bg(l):l)}return e}function N_(e,t){var n=L(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+bg(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+bg(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function P_(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
8
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=$t(d,p.charCodeAt(0)),h=r?!1:!Sn(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function wn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(Pn,rn(n,o,i),an(r,s,a),o,s),J.intersect(t,Pn,null,Fn);var c=Fn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=rn(c.x,c.width,i,!0),e.baseY=an(c.y,c.height,a,!0)}}function Tn(e){return e==null?e=``:e+=``}function En(e){var t=Tn(e.text),n=e.font;return Dn(e,en(Zt(n),t),on(n),null)}function Dn(e,t,n,r){var i=new J(rn(e.x||0,t,e.textAlign),an(e.y||0,n,e.textBaseline),t,n),a=r??(On(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function On(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var kn,An,jn,Mn,Nn,Pn,Fn,In=t((()=>{bt(),G(),fn(),Xt(),kn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,An=function(){function e(){}return e}(),jn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Mn=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}(),Nn=j(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),Pn=new J(0,0,0,0),Fn={outIntersectRect:{},clamp:!0}})),Ln=n({add:()=>Hn,applyTransform:()=>nr,clone:()=>Bn,copy:()=>zn,create:()=>Rn,dist:()=>sr,distSquare:()=>cr,distance:()=>Qn,distanceSquare:()=>$n,div:()=>Jn,dot:()=>Yn,len:()=>Gn,lenSquare:()=>Kn,length:()=>ar,lengthSquare:()=>or,lerp:()=>tr,max:()=>ir,min:()=>rr,mul:()=>qn,negate:()=>er,normalize:()=>Zn,scale:()=>Xn,scaleAndAdd:()=>Un,set:()=>Vn,sub:()=>Wn});function Rn(e,t){return e??=0,t??=0,[e,t]}function zn(e,t){return e[0]=t[0],e[1]=t[1],e}function Bn(e){return[e[0],e[1]]}function Vn(e,t,n){return e[0]=t,e[1]=n,e}function Hn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Un(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Wn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Gn(e){return Math.sqrt(Kn(e))}function Kn(e){return e[0]*e[0]+e[1]*e[1]}function qn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Jn(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Yn(e,t){return e[0]*t[0]+e[1]*t[1]}function Xn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Zn(e,t){var n=Gn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Qn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function $n(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function er(e,t){return e[0]=-t[0],e[1]=-t[1],e}function tr(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function nr(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function rr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ir(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ar,or,sr,cr,lr=t((()=>{ar=Gn,or=Kn,sr=Qn,cr=$n}));function ur(e){return e>pr||e<-pr}function dr(e,t){for(var n=0;n<yr.length;n++){var r=yr[n];e[r]=t[r]}}var fr,pr,mr,hr,gr,_r,vr,yr,br=t((()=>{jt(),lr(),fr=Ct,pr=5e-5,mr=[],hr=[],gr=St(),_r=Math.abs,vr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ur(this.rotation)||ur(this.x)||ur(this.y)||ur(this.scaleX-1)||ur(this.scaleY-1)||ur(this.skewX)||ur(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(fr(n),this.invTransform=null);return}n||=St(),t?this.getLocalTransform(n):fr(n),e&&(t?Tt(n,e,n):wt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(mr);var n=mr[0]<0?-1:1,r=mr[1]<0?-1:1,i=((mr[0]-n)*t+n)/mr[0]||0,a=((mr[1]-r)*t+r)/mr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||St(),kt(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||St(),Tt(hr,e.invTransform,t),t=hr);var n=this.originX,r=this.originY;(n||r)&&(gr[4]=n,gr[5]=r,Tt(hr,t,gr),hr[4]-=n,hr[5]-=r,t=hr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return 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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&nr(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&nr(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&_r(e[0]-1)>1e-10&&_r(e[3]-1)>1e-10?Math.sqrt(_r(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){dr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Dt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),yr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`]})),xr,Sr=t((()=>{xr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xr.bounceIn(e*2)*.5:xr.bounceOut(e*2-1)*.5+.5}}}));function Cr(e){return e>-Vr&&e<Vr}function wr(e){return e>Vr||e<-Vr}function Tr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Er(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Dr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Cr(u)&&Cr(d))if(Cr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(Cr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Br(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-zr(-y,Wr):zr(y,Wr),b=b<0?-zr(-b,Wr):zr(b,Wr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Br(u*u*u)),S=Math.acos(x)/3,C=Br(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Ur*Math.sin(S)))/(3*o),T=(-s+C*(w-Ur*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Or(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Cr(o)){if(wr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Cr(u))i[0]=-a/(2*o);else if(u>0){var d=Br(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function kr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Ar(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Gr[0]=c,Gr[1]=l;for(var v=0;v<1;v+=.05)Kr[0]=Tr(e,n,i,o,v),Kr[1]=Tr(t,r,a,s,v),g=cr(Gr,Kr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Hr);y++)m=d-f,h=d+f,Kr[0]=Tr(e,n,i,o,m),Kr[1]=Tr(t,r,a,s,m),g=cr(Kr,Gr),m>=0&&g<p?(d=m,p=g):(qr[0]=Tr(e,n,i,o,h),qr[1]=Tr(t,r,a,s,h),_=cr(qr,Gr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Tr(e,n,i,o,d),u[1]=Tr(t,r,a,s,d)),Br(p)}function jr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Tr(e,n,i,o,m),g=Tr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Mr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Nr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Pr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Cr(a)){if(wr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Cr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Br(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Fr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Ir(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Lr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Gr[0]=o,Gr[1]=s;for(var f=0;f<1;f+=.05){Kr[0]=Mr(e,n,i,f),Kr[1]=Mr(t,r,a,f);var p=cr(Gr,Kr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Hr);m++){var h=l-u,g=l+u;Kr[0]=Mr(e,n,i,h),Kr[1]=Mr(t,r,a,h);var p=cr(Kr,Gr);if(h>=0&&p<d)l=h,d=p;else{qr[0]=Mr(e,n,i,g),qr[1]=Mr(t,r,a,g);var _=cr(qr,Gr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Mr(e,n,i,l),c[1]=Mr(t,r,a,l)),Br(d)}function Rr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Mr(e,n,i,f),m=Mr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr=t((()=>{lr(),zr=Math.pow,Br=Math.sqrt,Vr=1e-8,Hr=1e-4,Ur=Br(3),Wr=1/3,Gr=Rn(),Kr=Rn(),qr=Rn()}));function Yr(e){var t=e&&Xr.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Dr(0,r,a,1,e,s)&&Tr(0,i,o,1,s[0])}}}var Xr,Zr=t((()=>{Jr(),G(),Xr=/cubic-bezier\(([0-9,\.e ]+)\)/})),Qr,$r=t((()=>{Sr(),G(),Zr(),Qr=function(){function e(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||xe,this.ondestroy=e.ondestroy||xe,this.onrestart=e.onrestart||xe,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=I(e)?e:xr[e]||Yr(e)},e}()})),ei=n({fastLerp:()=>gi,fastMapToColor:()=>Di,lerp:()=>_i,lift:()=>mi,liftColor:()=>Ci,lum:()=>xi,mapToColor:()=>Oi,modifyAlpha:()=>yi,modifyHSL:()=>vi,parse:()=>di,parseCssFloat:()=>ai,parseCssInt:()=>ii,random:()=>Si,stringify:()=>bi,toHex:()=>hi});function ti(e){return e=Math.round(e),e<0?0:e>255?255:e}function ni(e){return e=Math.round(e),e<0?0:e>360?360:e}function ri(e){return e<0?0:e>1?1:e}function ii(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ti(parseFloat(t)/100*255):ti(parseInt(t,10))}function ai(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ri(parseFloat(t)/100):ri(parseFloat(t))}function oi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function si(e,t,n){return e+(t-e)*n}function ci(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function li(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function ui(e,t){Ei&&li(Ei,t),Ei=Ti.put(e,Ei||t.slice())}function di(e,t){if(e){t||=[];var n=Ti.get(e);if(n)return li(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in wi)return li(t,wi[r]),ui(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ci(t,0,0,0,1);return}return ci(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),ui(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ci(t,0,0,0,1);return}return ci(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),ui(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ci(t,+l[0],+l[1],+l[2],1):ci(t,0,0,0,1);u=ai(l.pop());case`rgb`:if(l.length>=3)return ci(t,ii(l[0]),ii(l[1]),ii(l[2]),l.length===3?u:ai(l[3])),ui(e,t),t;ci(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ci(t,0,0,0,1);return}return l[3]=ai(l[3]),fi(l,t),ui(e,t),t;case`hsl`:if(l.length!==3){ci(t,0,0,0,1);return}return fi(l,t),ui(e,t),t;default:return}}ci(t,0,0,0,1)}}function fi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ai(e[1]),i=ai(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ci(t,ti(oi(o,a,n+1/3)*255),ti(oi(o,a,n)*255),ti(oi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function pi(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function mi(e,t){var n=di(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return bi(n,n.length===4?`rgba`:`rgb`)}}function hi(e){var t=di(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function gi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=ti(si(o[0],s[0],c)),n[1]=ti(si(o[1],s[1],c)),n[2]=ti(si(o[2],s[2],c)),n[3]=ri(si(o[3],s[3],c)),n}}function _i(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=di(t[i]),s=di(t[a]),c=r-i,l=bi([ti(si(o[0],s[0],c)),ti(si(o[1],s[1],c)),ti(si(o[2],s[2],c)),ri(si(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function vi(e,t,n,r){var i=di(e);if(e)return i=pi(i),t!=null&&(i[0]=ni(I(t)?t(i[0]):t)),n!=null&&(i[1]=ai(I(n)?n(i[1]):n)),r!=null&&(i[2]=ai(I(r)?r(i[2]):r)),bi(fi(i),`rgba`)}function yi(e,t){var n=di(e);if(n&&t!=null)return n[3]=ri(t),bi(n,`rgba`)}function bi(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function xi(e,t){var n=di(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Si(){return bi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function Ci(e){if(L(e)){var t=ki.get(e);return t||(t=mi(e,-.1),ki.put(e,t)),t}else if(B(e)){var n=C({},e);return n.colorStops=A(e.colorStops,function(e){return{offset:e.offset,color:mi(e.color,-.1)}}),n}return e}var wi,Ti,Ei,Di,Oi,ki,Ai=t((()=>{mt(),G(),wi={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]},Ti=new pt(20),Ei=null,Di=gi,Oi=_i,ki=new pt(100)}));function ji(e){return e.type===`linear`}function Mi(e){return e.type===`radial`}var Ni=t((()=>{G(),Ue(),(function(){return K.hasGlobalWindow&&I(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})()}));function Pi(e,t,n){return(t-e)*n+e}function Fi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Pi(t[a],n[a],r);return e}function Ii(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Pi(t[o][s],n[o][s],r)}return e}function Li(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Ri(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function zi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Bi(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ki.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Vi(e){if(O(e)){var t=e.length;if(O(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ki.call(e[r]));return n}return Ki.call(e)}return e}function Hi(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Ui(e){return O(e&&e[0])?2:1}function Wi(e){return e===Zi||e===Qi}function Gi(e){return e===Ji||e===Yi}var Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra=t((()=>{$r(),Ai(),G(),Sr(),Zr(),Ni(),Ki=Array.prototype.slice,qi=0,Ji=1,Yi=2,Xi=3,Zi=4,Qi=5,$i=6,ea=[0,0,0,0],ta=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=$i,s=t;if(O(t)){var c=Ui(t);o=c,(c===1&&!R(t[0])||c===2&&!R(t[0][0]))&&(a=!0)}else if(R(t)&&!se(t))o=qi;else if(L(t))if(!isNaN(+t))o=qi;else{var l=di(t);l&&(s=l,o=Xi)}else if(B(t)){var u=C({},s);u.colorStops=A(t.colorStops,function(e){return{offset:e.offset,color:di(e.color)}}),ji(t)?o=Zi:Mi(t)&&(o=Qi),s=u}i===0?this.valType=o:(o!==this.valType||o===$i)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=I(n)?n:xr[n]||Yr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Gi(r),c=Wi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Bi(d,f,r):c&&zi(d.colorStops,f.colorStops))}if(!o&&r!==Qi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===qi?n[l].additiveValue=n[l].value-p:r===Xi?n[l].additiveValue=Li([],n[l].value,p,-1):Gi(r)&&(n[l].additiveValue=r===Ji?Li([],n[l].value,p,-1):Ri([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Xi,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?ea:e[s];if((Gi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Gi(i))i===Ji?Fi(g,f[r],p[r],h):Ii(g,f[r],p[r],h);else if(Wi(i)){var _=f[r],v=p[r],y=i===Zi;e[s]={type:y?`linear`:`radial`,x:Pi(_.x,v.x,h),y:Pi(_.y,v.y,h),colorStops:A(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Pi(e.offset,n.offset,h),color:Hi(Fi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Pi(_.x2,v.x2,h),e[s].y2=Pi(_.y2,v.y2,h)):e[s].r=Pi(_.r,v.r,h)}else if(c)Fi(g,f[r],p[r],h),n||(e[s]=Hi(g));else{var b=Pi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===qi?e[n]=e[n]+r:t===Xi?(di(e[n],ea),Li(ea,ea,r,1),e[n]=Hi(ea)):t===Ji?Li(e[n],e[n],r,1):t===Yi&&Ri(e[n],e[n],r,1)},e}(),na=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){y(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,N(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ta(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Xi&&c&&(c=Hi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Vi(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Vi(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new Qr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return A(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Vi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=N(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}()})),ia,aa=t((()=>{ia=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}()})),oa,sa,ca,la,ua,da,fa=t((()=>{Ue(),oa=1,K.hasGlobalWindow&&(oa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1)),sa=oa,ca=.4,la=`#333`,ua=`#ccc`,da=`#eee`})),pa=t((()=>{}));function ma(e,t,n,r,i){n||={};var a=[];ba(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ha(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ga(e){return O(e[0])}function _a(e,t,n){if(O(t[n]))if(O(e[n])||(e[n]=[]),ie(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ha(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ga(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ha(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ha(a,i,o);a.length=i.length}else e[n]=t[n]}function va(e,t){return e===t||O(e)&&O(t)&&ya(e,t)}function ya(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ba(e,t,n,r,i,a,o,s){for(var c=N(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!z(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(z(v)&&!O(v)&&!B(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ba(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=T(m,x);m.splice(S,1)}}if(i.force||(h=M(h,function(e){return!va(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,E=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){E={};for(var b=0;b<y;b++){var _=h[b];E[_]=Vi(n[_]),_a(n,r,_)}}var x=new na(n,!1,!1,d?M(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),E&&x.whenWithKeys(0,E,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var xa,Sa,Ca,wa,Ta,Ea,Da,Oa=t((()=>{br(),ra(),Xt(),aa(),fn(),G(),fa(),Ai(),pa(),jt(),xa=`__zr_normal__`,Sa=yr.concat([`ignore`]),Ca=j(yr,function(e,t){return e[t]=!0,e},{ignore:!1}),wa={},Ta=new J(0,0,0,0),Ea=[],Da=function(){function e(e){this.id=v(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ta,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(wa,n,d):cn(wa,n,d),i.x=wa.x,i.y=wa.y,a=wa.align,o=wa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=sn(f[0],d.width),m=sn(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(Ea),kt(Ea,Ea),J.copy(_,d),_.applyTransform(Ea)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ua:la},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&di(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,bi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},C(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(z(e))for(var n=N(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Sa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(xa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===xa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(T(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){y(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.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},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=T(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=T(r,e),a=T(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];C(t,i),i.textConfig&&(n||={},C(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=C({},r?this.textConfig:n.textConfig),C(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Sa.length;l++){var u=Sa[l],d=i&&Ca[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.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}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new vr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},C(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new na(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=T(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ma(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ma(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ma(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}(),D(Da,ia),D(Da,vr)}));function ka(e,t,n){return Ia.copy(e.getBoundingRect()),e.transform&&Ia.applyTransform(e.transform),La.width=t,La.height=n,!Ia.intersect(La)}var Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra=t((()=>{o(),Oa(),Xt(),G(),pa(),Aa=`__zr_style_`+Math.round(Math.random()*10),ja={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ma={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},ja[Aa]=!0,Na=[`z`,`z2`,`invisible`],Pa=[`invisible`],Fa=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=N(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ka(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new J(0,0,0,0),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:C(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ve(ja,e)},t.prototype.useStyle=function(e){e[Aa]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Aa]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Na)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=N(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=N(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Pa:Na,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return C(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ma},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Da),Ia=new J(0,0,0,0),La=new J(0,0,0,0)}));function za(e,t,n,r,i,a){i[0]=Ua(e,n),i[1]=Ua(t,r),a[0]=Wa(e,n),a[1]=Wa(t,r)}function Ba(e,t,n,r,i,a,o,s,c,l){var u=Or,d=Tr,f=u(e,n,i,o,Za);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Za[p]);c[0]=Ua(m,c[0]),l[0]=Wa(m,l[0])}f=u(t,r,a,s,Qa);for(var p=0;p<f;p++){var h=d(t,r,a,s,Qa[p]);c[1]=Ua(h,c[1]),l[1]=Wa(h,l[1])}c[0]=Ua(e,c[0]),l[0]=Wa(e,l[0]),c[0]=Ua(o,c[0]),l[0]=Wa(o,l[0]),c[1]=Ua(t,c[1]),l[1]=Wa(t,l[1]),c[1]=Ua(s,c[1]),l[1]=Wa(s,l[1])}function Va(e,t,n,r,i,a,o,s){var c=Fr,l=Mr,u=Wa(Ua(c(e,n,i),1),0),d=Wa(Ua(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Ua(e,i,f),o[1]=Ua(t,a,p),s[0]=Wa(e,i,f),s[1]=Wa(t,a,p)}function Ha(e,t,n,r,i,a,o,s,c){var l=rr,u=ir,d=Math.abs(i-a);if(d%qa<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ja[0]=Ka(i)*n+e,Ja[1]=Ga(i)*r+t,Ya[0]=Ka(a)*n+e,Ya[1]=Ga(a)*r+t,l(s,Ja,Ya),u(c,Ja,Ya),i%=qa,i<0&&(i+=qa),a%=qa,a<0&&(a+=qa),i>a&&!o?a+=qa:i<a&&o&&(i+=qa),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Xa[0]=Ka(p)*n+e,Xa[1]=Ga(p)*r+t,l(s,Xa,s),u(c,Xa,c))}var Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a=t((()=>{lr(),Jr(),Ua=Math.min,Wa=Math.max,Ga=Math.sin,Ka=Math.cos,qa=Math.PI*2,Ja=Rn(),Ya=Rn(),Xa=Rn(),Za=[],Qa=[]}));function eo(e){return Math.round(e/ho*1e8)/1e8%2*ho}function to(e,t){var n=eo(e[0]);n<0&&(n+=go);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=go?i=n+go:t&&n-i>=go?i=n-go:!t&&n>i?i=n+(go-eo(n-i)):t&&n<i&&(i=n-(go-eo(i-n))),e[0]=n,e[1]=i}var no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo=t((()=>{lr(),Xt(),fa(),$a(),Jr(),no={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ro=[],io=[],ao=[],oo=[],so=[],co=[],lo=Math.min,uo=Math.max,fo=Math.cos,po=Math.sin,mo=Math.abs,ho=Math.PI,go=ho*2,_o=typeof Float32Array<`u`,vo=[],yo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=mo(n/sa/e)||0,this._uy=mo(n/sa/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(no.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=mo(e-this._xi),r=mo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(no.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(no.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(no.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),vo[0]=r,vo[1]=i,to(vo,a),r=vo[0],i=vo[1];var o=i-r;return this.addData(no.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=fo(i)*n+e,this._yi=po(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(no.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(no.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&_o&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(_o&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_o&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ao[0]=ao[1]=so[0]=so[1]=Number.MAX_VALUE,oo[0]=oo[1]=co[0]=co[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case no.M:t=r=e[a++],n=i=e[a++],so[0]=r,so[1]=i,co[0]=r,co[1]=i;break;case no.L:za(t,n,e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.C:Ba(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.Q:Va(t,n,e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=fo(f)*u+c,i=po(f)*d+l),Ha(c,l,u,d,f,p,m,so,co),t=fo(p)*u+c,n=po(p)*d+l;break;case no.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];za(r,i,r+h,i+g,so,co);break;case no.Z:t=r,n=i;break}rr(ao,ao,so),ir(oo,oo,co)}return a===0&&(ao[0]=ao[1]=oo[0]=oo[1]=0),new J(ao[0],ao[1],oo[0]-ao[0],oo[1]-ao[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case no.M:i=o=e[d++],a=s=e[d++];break;case no.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(mo(_)>n||mo(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case no.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=jr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case no.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Rr(i,a,y,b,h,g,10),i=h,a=g;break;case no.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=fo(D)*T+C,s=po(D)*E+w),m=uo(T,E)*lo(go,Math.abs(O)),i=fo(k)*T+C,a=po(k)*E+w;break;case no.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case no.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==no.L&&v>0&&(e.lineTo(y,b),v=0),S){case no.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case no.L:u=n[x++],d=n[x++];var w=mo(u-c),T=mo(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case no.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;kr(c,k,j,ee,D,ro),kr(l,A,M,N,D,io),e.bezierCurveTo(ro[1],io[1],ro[2],io[2],ro[3],io[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case no.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Ir(c,k,j,D,ro),Ir(l,A,M,D,io),e.quadraticCurveTo(ro[1],io[1],ro[2],io[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case no.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],L=n[x++],ne=n[x++],R=n[x++],z=!n[x++],re=F>I?F:I,ie=mo(F-I)>.001,ae=L+ne,B=!1;if(f){var E=p[g++];h+E>_&&(ae=L+ne*(_-h)/E,B=!0),h+=E}if(ie&&e.ellipse?e.ellipse(te,P,F,I,R,L,ae,z):e.arc(te,P,re,L,ae,z),B)break lo;C&&(o=fo(L)*F+te,s=po(L)*I+P),c=fo(ae)*F+te,l=po(ae)*I+P;break;case no.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var V=n[x++],oe=n[x++];if(f){var E=p[g++];if(h+E>_){var se=_-h;e.moveTo(u,d),e.lineTo(u+lo(se,V),d),se-=V,se>0&&e.lineTo(u+V,d+lo(se,oe)),se-=oe,se>0&&e.lineTo(u+uo(V-se,0),d+oe),se-=V,se>0&&e.lineTo(u,d+uo(oe-se,0));break lo}h+=E}e.rect(u,d,V,oe);break;case no.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=no,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}()}));function xo(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}var So=t((()=>{}));function Co(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Ar(e,t,n,r,i,a,o,s,l,u,null)<=d/2}var wo=t((()=>{Jr()}));function To(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:Lr(e,t,n,r,i,a,s,c,null)<=l/2}var Eo=t((()=>{Jr()}));function Do(e){return e%=Oo,e<0&&(e+=Oo),e}var Oo,ko=t((()=>{Oo=Math.PI*2}));function Ao(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%jo<1e-4)return!0;if(a){var d=r;r=Do(i),i=Do(d)}else r=Do(r),i=Do(i);r>i&&(i+=jo);var f=Math.atan2(c,s);return f<0&&(f+=jo),f>=r&&f<=i||f+jo>=r&&f+jo<=i}var jo,Mo=t((()=>{ko(),jo=Math.PI*2}));function No(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Po=t((()=>{}));function Fo(e,t){return Math.abs(e-t)<Go}function Io(){var e=qo[0];qo[0]=qo[1],qo[1]=e}function Lo(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Dr(t,r,a,s,l,Ko);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ko[h],_=g===0||g===1?.5:1;Tr(e,n,i,o,g)<c||(f<0&&(f=Or(t,r,a,s,qo),qo[1]<qo[0]&&f>1&&Io(),p=Tr(t,r,a,s,qo[0]),f>1&&(m=Tr(t,r,a,s,qo[1]))),f===2?g<qo[0]?d+=p<t?_:-_:g<qo[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<qo[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ro(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Pr(t,r,a,s,Ko);if(c===0)return 0;var l=Fr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Mr(t,r,a,l),f=0;f<c;f++){var p=Ko[f]===0||Ko[f]===1?.5:1,m=Mr(e,n,i,Ko[f]);m<o||(Ko[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Ko[0]===0||Ko[0]===1?.5:1,m=Mr(e,n,i,Ko[0]);return m<o?0:a<t?p:-p}}function zo(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Ko[0]=-c,Ko[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Wo-1e-4){r=0,i=Wo;var u=a?1:-1;return o>=Ko[0]+e&&o<=Ko[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Wo,i+=Wo);for(var f=0,p=0;p<2;p++){var m=Ko[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Wo+h),(h>=r&&h<=i||h+Wo>=r&&h+Wo<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Bo(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Uo.M&&m>1&&(n||(s+=No(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Uo.M:u=a[m++],d=a[m++],c=u,l=d;break;case Uo.L:if(n){if(xo(c,l,a[m],a[m+1],t,r,i))return!0}else s+=No(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.C:if(n){if(Co(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Lo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.Q:if(n){if(To(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ro(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Uo.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=No(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Ao(_,v,b,x,x+S,C,t,w,i))return!0}else s+=zo(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Uo.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(xo(u,d,f,d,t,r,i)||xo(f,d,f,p,t,r,i)||xo(f,p,u,p,t,r,i)||xo(u,p,u,d,t,r,i))return!0}else s+=No(f,d,f,p,r,i),s+=No(u,p,u,d,r,i);break;case Uo.Z:if(n){if(xo(c,l,u,d,t,r,i))return!0}else s+=No(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Fo(l,d)&&(s+=No(c,l,u,d,r,i)||0),s!==0}function Vo(e,t,n){return Bo(e,0,!1,t,n)}function Ho(e,t,n,r){return Bo(e,t,!0,n,r)}var Uo,Wo,Go,Ko,qo,Jo=t((()=>{bo(),So(),wo(),Eo(),Mo(),Jr(),Po(),Uo=yo.CMD,Wo=Math.PI*2,Go=1e-4,Ko=[-1,-1,-1],qo=[-1,-1]})),Yo,Xo,Zo,Qo,$o=t((()=>{o(),Ra(),bo(),Jo(),G(),Ai(),fa(),pa(),br(),Yo=w({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ja),Xo={style:w({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ma.style)},Zo=yr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Qo=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Zo.length;++s)i[Zo[s]]=this[Zo[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=N(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?C(this.style,o):this.useStyle(o):a===`shape`?C(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(L(e)){var t=xi(e,0);return t>.5?la:t>.2?da:ua}else if(e)return ua}return la},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(L(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==xi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new yo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Ho(a,o/s,e,t)))return!0}if(this.hasFill())return Vo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:C(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ve(Yo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=C({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=C({},r.shape),C(c,n.shape)):(c=C({},i?this.shape:r.shape),C(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=C({},this.shape);for(var l={},u=N(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Xo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){i(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return b(e.style)},n.prototype.getDefaultShape=function(){return b(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Fa)})),es,ts,ns=t((()=>{o(),Ra(),$o(),G(),g(),In(),es=w({strokeFirst:!0,font:u,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Yo),ts=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return On(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return ve(es,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=En(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Fa),ts.prototype.type=`tspan`}));function rs(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var is,as,os,ss=t((()=>{o(),Ra(),Xt(),G(),is=w({x:0,y:0},ja),as={style:w({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ma.style)},os=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ve(is,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=rs(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return as},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Fa),os.prototype.type=`image`}));function cs(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ls=t((()=>{}));function us(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(ps(r*2)===ps(i*2)&&(e.x1=e.x2=fs(r,s,!0)),ps(a*2)===ps(o*2)&&(e.y1=e.y2=fs(a,s,!0)),e):e}}function ds(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=fs(r,s,!0),e.y=fs(i,s,!0),e.width=Math.max(fs(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(fs(i+o,s,!1)-e.y,o===0?0:1),e):e}}function fs(e,t,n){if(!t)return e;var r=ps(e*2);return(r+ps(t))%2==0?r/2:(r+(n?1:-1))/2}var ps,ms=t((()=>{ps=Math.round})),hs,gs,_s,vs=t((()=>{o(),$o(),ls(),ms(),hs=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),gs={},_s=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hs},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ds(gs,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?cs(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Qo),_s.prototype.type=`rect`}));function ys(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function bs(e,t){for(var n=0;n<Is.length;n++){var r=Is[n],i=t[r];i!=null&&(e[r]=i)}}function xs(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ss(e){return Cs(e),k(e.rich,Cs),e}function Cs(e){if(e){e.font=Ns.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Ps[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Fs[n]?n:`top`,e.padding&&=de(e.padding)}}function ws(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ts(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Es(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Ds(e){var t=e.text;return t!=null&&(t+=``),t}function Os(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ks,As,js,Ms,Ns,Ps,Fs,Is,Ls=t((()=>{o(),In(),ns(),G(),fn(),ss(),vs(),Xt(),Ra(),g(),ks={fill:`#000`},As=2,js={},Ms={style:w({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ma.style)},Ns=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ks,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ss(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ks},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return C(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=N(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},C(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Ms},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;wn(js,r.overflowRect,i,a,o,s),i=js.baseX,a=js.baseY;var c=vn(Ds(e),e,js.outerWidth,js.outerHeight),l=Os(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=an(a,c.contentHeight,s);if(l||n){var _=rn(i,f,o),v=an(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Es(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Ts(`fill`in e?e.fill:(x=!0,r.fill)),C=ws(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=As,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ts),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,bs(D,e),g+=m,E.setBoundingRect(Dn(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;wn(js,t.overflowRect,i,a,n,r),i=js.baseX,a=js.baseY;var o=yn(Ds(e),e,js.outerWidth,js.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=rn(i,c,n),f=an(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Os(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Os(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Es(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ts),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Ts(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=ws(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=As,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=le(s.opacity,t.opacity,1),bs(p,s),y&&(p.lineWidth=le(s.lineWidth,t.lineWidth,g),p.lineDash=H(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Dn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(_s),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=H(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(os),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=H(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=le(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return xs(e)&&(t=[e.fontStyle,e.fontWeight,ys(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&pe(t)||e.textFont||e.font},t}(Fa),Ps={left:!0,right:1,center:1},Fs={top:1,bottom:1,middle:1},Is=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`]}));function Rs(e){return e.replace(/^\s+|\s+$/g,``)}function zs(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Bs(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Vs(e,t,n)}function Vs(e,t,n){return L(e)?Rs(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Hs(e,t,n){return t??=10,t=Math.min(Math.max(0,t),uc),e=(+e).toFixed(t),n?e:+e}function Us(e){return e.sort(function(e,t){return e-t}),e}function Ws(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Gs(e)}function Gs(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ks(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(pc(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function qs(e,t,n){return e[t]&&Js(e,n)[t]||0}function Js(e,t){var n=j(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=A(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=A(i,function(e){return Math.floor(e)}),s=j(o,function(e,t){return e+t},0),c=A(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return A(o,function(e){return e/r})}function Ys(e,t){var n=Math.max(Ws(e),Ws(t)),r=e+t;return n>uc?r:Hs(r,n)}function Xs(e){var t=Math.PI*2;return(e%t+t)%t}function Zs(e){return e>-lc&&e<lc}function Qs(e){if(e instanceof Date)return e;if(L(e)){var t=gc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function $s(e){return 10**ec(e)}function ec(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function tc(e,t){var n=ec(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function nc(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function rc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ic(e){var t=parseFloat(e);return t==e&&(t!==0||!L(e)||e.indexOf(`x`)<=0)?t:NaN}function ac(e){return!isNaN(ic(e))}function oc(){return Math.round(Math.random()*9)}function sc(e,t){return t===0?e:sc(t,e%t)}function cc(e,t){return e==null?t:t==null?e:e*t/sc(e,t)}var lc,uc,dc,fc,pc,mc,hc,gc,_c=t((()=>{G(),lc=1e-4,uc=20,dc=Math.min,fc=Math.max,pc=Math.abs,mc=Bs,hc=9007199254740991,gc=/^(?:(\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 vc(e,t,n){if(Cc){if(n){if(Sc[t])return;Sc[t]=!0}console[e](xc+t)}}function yc(e,t){vc(`error`,e,t)}function bc(e){throw Error(e)}var xc,Sc,Cc,wc=t((()=>{xc=`[ECharts] `,Sc={},Cc=typeof console<`u`&&console.warn&&console.log}));function Tc(e,t,n){return(t-e)*n+e}function Ec(e){return e instanceof Array?e:e==null?[]:[e]}function Dc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function Oc(e){return z(e)&&!F(e)&&!(e instanceof Date)?e.value:e}function kc(e){return z(e)&&!(e instanceof Array)}function Ac(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=U();k(t,function(e,n){if(!z(e)){t[n]=null;return}});var s=jc(e,o,n);return(r||i)&&Mc(s,e,o,t),r&&Nc(s,t),r||i?Pc(s,t,i):a&&Fc(s,t),Ic(s),s}function jc(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Vc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Mc(e,t,n,r){k(r,function(i,a){if(!(!i||i.id==null)){var o=Rc(i.id),s=n.get(o);if(s!=null){var c=e[s];fe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Nc(e,t){k(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Vc(n)&&!Vc(a)&&Lc(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Pc(e,t,n){k(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Vc(r.existing)||r.existing&&t.id!=null&&!Lc(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Fc(e,t){k(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ic(e){var t=U();k(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),k(e,function(e){var n=e.newOption;fe(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),k(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(z(i)){if(a.name=i.name==null?r?r.name:el+n:Rc(i.name),r)a.id=Rc(r.id);else if(i.id!=null)a.id=Rc(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function Lc(e,t,n){var r=zc(t[e],null),i=zc(n[e],null);return r!=null&&i!=null&&r===i}function Rc(e){return zc(e,``)}function zc(e,t){return e==null?t:L(e)?e:R(e)||ne(e)?e+``:t}function Bc(e){var t=e.name;return!!(t&&t.indexOf(el))}function Vc(e){return e&&e.id!=null&&Rc(e.id).indexOf(tl)===0}function Hc(e,t,n){k(e,function(e){var r=e.newOption;z(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Uc(t,r,e.existing,n))})}function Uc(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Wc(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=zc(e[r].seriesId,null);if(a==null)return;for(var o=Ec(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Gc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?A(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?A(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Kc(){var e=`__ec_inner_`+ rl++;return function(t){return t[e]||(t[e]={})}}function qc(e,t,n){var r=Jc(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Yc(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Jc(e,t){var n;if(L(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=U(),a={},o=!1;return k(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&T(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function Yc(e,t,n,r){r||=il;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Xc(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Zc(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Qc(e){return e===`auto`?K.domSupported?`html`:`richText`:e||`html`}function $c(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(R(r)){var o=Tc(n||0,r,i);return Hs(o,a?Math.max(Ws(n||0),Ws(r)):t)}else if(L(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Tc(p,m,i);s[d]=Hs(o,a?Math.max(Ws(p),Ws(m)):t)}}return s}}var el,tl,nl,rl,il,Y=t((()=>{G(),Ue(),_c(),el=`series\0`,tl=`\0_ec_\0`,nl=`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`.split(`.`),rl=oc(),il={useDefault:!0,enableAll:!1,enableNone:!1},function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.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._step,!0):!1},e}()})),X,al,ol=t((()=>{Y(),X=Kc(),al=function(e,t,n,r){if(r){var i=X(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=X(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}}}));function sl(e){return e!=null&&e!==`none`}function cl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ll(e){cl(e,`emphasis`,2)}function ul(e){e.hoverState===2&&cl(e,`normal`,0)}function dl(e){cl(e,`blur`,1)}function fl(e){e.hoverState===1&&cl(e,`normal`,0)}function pl(e){e.selected=!0}function ml(e){e.selected=!1}function hl(e,t,n){t(e,n)}function gl(e,t,n){hl(e,t,n),e.isGroup&&e.traverse(function(e){hl(e,t,n)})}function _l(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function vl(e,t,n,r){var i=n&&T(n,`select`)>=0,a=!1;if(e instanceof Qo){var o=eu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(sl(s)||sl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=C({},r),l=C({},l),l.fill=s):!sl(l.fill)&&sl(s)?(a=!0,r=C({},r),l=C({},l),l.fill=Ci(s)):!sl(l.stroke)&&sl(c)&&(a||(r=C({},r),l=C({},l)),l.stroke=Ci(c)),r.style=l}}if(r&&r.z2==null){a||(r=C({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function yl(e,t,n){if(n&&n.z2==null){n=C({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function bl(e,t,n){var r=T(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:_l(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=C({},n),o=C({opacity:r?i:a.opacity*.1},o),n.style=o),n}function xl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return vl(this,e,t,n);if(e===`blur`)return bl(this,e,n);if(e===`select`)return yl(this,e,n)}return n}function Sl(e){e.stateProxy=xl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=xl),n&&(n.stateProxy=xl)}function Cl(e,t){!jl(e,t)&&!e.__highByOuter&&gl(e,ll)}function wl(e,t){!jl(e,t)&&!e.__highByOuter&&gl(e,ul)}function Tl(e,t){e.__highByOuter|=1<<(t||0),gl(e,ll)}function El(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gl(e,ul)}function Dl(e){gl(e,dl)}function Ol(e){gl(e,fl)}function kl(e){gl(e,pl)}function Al(e){gl(e,ml)}function jl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ml(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=tu(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){fl(e)}),o&&n.push(i)),a.isBlured=!1}),k(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Nl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Ol(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||dl(e)}),O(t))a(e.getData(),t);else if(z(t))for(var u=N(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),tu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Pl(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){tu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){dl(e)})}}}function Fl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Gc(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=X(o);Nl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Nl(r,u,d,n)}}}function Il(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(X(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Ll(e,t,n){var r=X(e),i=Il(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Pl(r.componentMainType,r.componentIndex,n),k(a,function(e){return Cl(e,t)})):(Nl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Pl(r.componentMainType,r.componentIndex,n),Cl(e,t))}function Rl(e,t,n){Ml(n);var r=X(e),i=Il(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?k(i,function(e){return wl(e,t)}):wl(e,t)}function zl(e,t,n){if(Yl(t)){var r=t.dataType,i=Gc(e.getData(r),t);F(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Bl(e){k(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?kl(t):Al(t)})})}function Vl(e){var t=[];return e.eachSeries(function(e){k(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Hl(e,t,n){Kl(e,!0),gl(e,Sl),Gl(e,t,n)}function Ul(e){Kl(e,!1)}function Wl(e,t,n,r){r?Ul(e):Hl(e,t,n)}function Gl(e,t,n){var r=X(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function Kl(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ql(e){return!!(e&&e.__highDownDispatcher)}function Jl(e){var t=$l[e];return t==null&&Ql<=32&&(t=$l[e]=Ql++),t}function Yl(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Xl(e){var t=e.type;return t===`highlight`||t===`downplay`}function Zl(e){var t=eu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu=t((()=>{G(),ol(),Ai(),Y(),$o(),Ql=1,$l={},eu=Kc(),tu=Kc(),nu=[`emphasis`,`blur`,`select`],ru=[`normal`,`emphasis`,`blur`,`select`],iu=`highlight`,au=`downplay`,ou=`select`,su=`unselect`,cu=`toggleSelect`,lu=`selectchanged`}));function du(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=fu.M,d=fu.C,f=fu.L,p=fu.R,m=fu.A,h=fu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=mu(t[0]*t[0]+t[1]*t[1]),y=mu(t[2]*t[2]+t[3]*t[3]),b=hu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],nr(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],nr(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=pu[c];x[0]=n[o++],x[1]=n[o++],nr(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var fu,pu,mu,hu,gu=t((()=>{bo(),lr(),fu=yo.CMD,pu=[[],[],[]],mu=Math.sqrt,hu=Math.atan2}));function _u(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function vu(e,t){return(e[0]*t[0]+e[1]*t[1])/(_u(e)*_u(t))}function yu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(vu(e,t))}function bu(e,t,n,r,i,a,o,s,c,l,u){var d=Au/180*c,f=ku(d)*(e-n)/2+Ou(d)*(t-r)/2,p=-1*Ou(d)*(e-n)/2+ku(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Du(m),s*=Du(m));var h=(i===a?-1:1)*Du((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+ku(d)*g-Ou(d)*_,y=(t+r)/2+Ou(d)*g+ku(d)*_,b=yu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=yu(x,S);if(vu(x,S)<=-1&&(C=Au),vu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Au*1e6)/1e6;C=Au*2+w%2*Au}u.addData(l,v,y,o,s,b,C,d,a)}function xu(e){var t=new yo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=yo.CMD,c=e.match(ju);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Mu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,bu(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,bu(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}function Su(e){return e.setData!=null}function Cu(e,t){var n=xu(e),r=C({},t);return r.buildPath=function(e){var t=Su(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){du(n,e),this.dirtyShape()},r}function wu(e,t){return new Nu(Cu(e,t))}function Tu(e,t){var n=Cu(e,t);return function(e){i(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Nu)}function Eu(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Qo(t);return o.createPathProxy(),o.buildPath=function(e){if(Su(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Du,Ou,ku,Au,ju,Mu,Nu,Pu=t((()=>{o(),$o(),bo(),gu(),G(),Du=Math.sqrt,Ou=Math.sin,ku=Math.cos,Au=Math.PI,ju=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Mu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Nu=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Qo)})),Fu,Iu=t((()=>{o(),G(),Oa(),Xt(),Fu=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=T(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=T(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Da),Fu.prototype.type=`group`})),Lu,Ru,zu=t((()=>{o(),$o(),Lu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Ru=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Lu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Qo),Ru.prototype.type=`circle`})),Bu,Vu,Hu=t((()=>{o(),$o(),Bu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Vu=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Bu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Qo),Vu.prototype.type=`ellipse`}));function Uu(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<rd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Wu(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/ed(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*ed(td(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Gu(e){var t;if(F(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Ku(e,t){var n,r=td(t.r,0),i=td(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=$u(c-s),p=f>Ju&&f%Ju;if(p>rd&&(f=p),!(r>rd))e.moveTo(l,u);else if(f>Ju-rd)e.moveTo(l+r*Xu(s),u+r*Yu(s)),e.arc(l,u,r,s,c,!d),i>rd&&(e.moveTo(l+i*Xu(c),u+i*Yu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Xu(s),j=r*Yu(s),M=i*Xu(c),ee=i*Yu(c),N=f>rd;if(N){var te=t.cornerRadius;te&&(n=Gu(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=$u(r-i)/2;if(v=nd(P,g),y=nd(P,_),b=nd(P,m),x=nd(P,h),w=S=td(v,y),T=C=td(b,x),(S>rd||C>rd)&&(E=r*Xu(c),D=r*Yu(c),O=i*Xu(s),k=i*Yu(s),f<qu)){var F=Uu(A,j,O,k,E,D,M,ee);if(F){var I=A-F[0],L=j-F[1],ne=E-F[0],R=D-F[1],z=1/Yu(Zu((I*ne+L*R)/(ed(I*I+L*L)*ed(ne*ne+R*R)))/2),re=ed(F[0]*F[0]+F[1]*F[1]);w=nd(S,(r-re)/(z+1)),T=nd(C,(i-re)/(z-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>rd){var ie=nd(g,w),ae=nd(_,w),B=Wu(O,k,A,j,r,ie,d),V=Wu(E,D,M,ee,r,ae,d);e.moveTo(l+B.cx+B.x0,u+B.cy+B.y0),w<S&&ie===ae?e.arc(l+B.cx,u+B.cy,w,Qu(B.y0,B.x0),Qu(V.y0,V.x0),!d):(ie>0&&e.arc(l+B.cx,u+B.cy,ie,Qu(B.y0,B.x0),Qu(B.y1,B.x1),!d),e.arc(l,u,r,Qu(B.cy+B.y1,B.cx+B.x1),Qu(V.cy+V.y1,V.cx+V.x1),!d),ae>0&&e.arc(l+V.cx,u+V.cy,ae,Qu(V.y1,V.x1),Qu(V.y0,V.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>rd)||!N)e.lineTo(l+M,u+ee);else if(T>rd){var ie=nd(m,T),ae=nd(h,T),B=Wu(M,ee,E,D,i,-ae,d),V=Wu(A,j,O,k,i,-ie,d);e.lineTo(l+B.cx+B.x0,u+B.cy+B.y0),T<C&&ie===ae?e.arc(l+B.cx,u+B.cy,T,Qu(B.y0,B.x0),Qu(V.y0,V.x0),!d):(ae>0&&e.arc(l+B.cx,u+B.cy,ae,Qu(B.y0,B.x0),Qu(B.y1,B.x1),!d),e.arc(l,u,i,Qu(B.cy+B.y1,B.cx+B.x1),Qu(V.cy+V.y1,V.cx+V.x1),d),ie>0&&e.arc(l+V.cx,u+V.cy,ie,Qu(V.y1,V.x1),Qu(V.y0,V.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id=t((()=>{G(),qu=Math.PI,Ju=qu*2,Yu=Math.sin,Xu=Math.cos,Zu=Math.acos,Qu=Math.atan2,$u=Math.abs,ed=Math.sqrt,td=Math.max,nd=Math.min,rd=1e-4})),ad,od,sd=t((()=>{o(),$o(),id(),ad=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),od=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){Ku(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Qo),od.prototype.type=`sector`})),cd,ld,ud=t((()=>{o(),$o(),cd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),ld=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new cd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Qo),ld.prototype.type=`ring`}));function dd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)rr(u,u,e[f]),ir(d,d,e[f]);rr(u,u,r[0]),ir(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Bn(e[f]));continue}else c=e[f-1],l=e[f+1];Wn(a,l,c),Xn(a,a,t);var h=Qn(m,c),g=Qn(m,l),_=h+g;_!==0&&(h/=_,g/=_),Xn(o,a,-h),Xn(s,a,g);var v=Hn([],m,o),y=Hn([],m,s);r&&(ir(v,v,u),rr(v,v,d),ir(y,y,u),rr(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}var fd=t((()=>{lr()}));function pd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=dd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var md=t((()=>{fd()})),hd,gd,_d=t((()=>{o(),$o(),md(),hd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),gd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){pd(e,t,!0)},t}(Qo),gd.prototype.type=`polygon`})),vd,yd,bd=t((()=>{o(),$o(),md(),vd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),yd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new vd},t.prototype.buildPath=function(e,t){pd(e,t,!1)},t}(Qo),yd.prototype.type=`polyline`})),xd,Sd,Cd,wd=t((()=>{o(),$o(),ms(),xd={},Sd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Cd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=us(xd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Qo),Cd.prototype.type=`line`}));function Td(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Er:Tr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Er:Tr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Nr:Mr)(e.x1,e.cpx1,e.x2,t),(n?Nr:Mr)(e.y1,e.cpy1,e.y2,t)]}var Ed,Dd,Od,kd=t((()=>{o(),$o(),lr(),Jr(),Ed=[],Dd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}(),Od=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Dd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Ir(n,o,i,u,Ed),o=Ed[1],i=Ed[2],Ir(r,s,a,u,Ed),s=Ed[1],a=Ed[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(kr(n,o,c,i,u,Ed),o=Ed[1],c=Ed[2],i=Ed[3],kr(r,s,l,a,u,Ed),s=Ed[1],l=Ed[2],a=Ed[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Td(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Td(this.shape,e,!0);return Zn(t,t)},t}(Qo),Od.prototype.type=`bezier-curve`})),Ad,jd,Md=t((()=>{o(),$o(),Ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Qo),jd.prototype.type=`arc`})),Nd,Pd=t((()=>{o(),$o(),Nd=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Qo.prototype.getBoundingRect.call(this)},t}(Qo)})),Fd,Id=t((()=>{Fd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()})),Ld,Rd=t((()=>{o(),Id(),Ld=function(e){i(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Fd)})),zd,Bd=t((()=>{o(),Id(),zd=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Fd)})),Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd=t((()=>{Mt(),Xt(),Vd=Math.min,Hd=Math.max,Ud=Math.abs,Wd=[0,0],Gd=[0,0],Kd=Pt(),qd=Kd.minTv,Jd=Kd.maxTv,Yd=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);q.sub(r[0],n[1],n[0]),q.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&q.set(t,0,0),Kd.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Kd.negativeSize&&q.copy(t,r?Kd.useDir?Kd.dirMinTv:qd:Jd),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Wd),e._getProjMinMaxOnAxis(a,t._corners,Gd),Kd.negativeSize||Wd[1]<Gd[0]||Wd[0]>Gd[1]){if(i=!1,Kd.negativeSize||n)return i;var s=Ud(Gd[0]-Wd[1]),c=Ud(Wd[0]-Gd[1]);Vd(s,c)>Jd.len()&&(s<c?q.scale(Jd,o,-s*r):q.scale(Jd,o,c*r))}else if(!n){var s=Ud(Gd[0]-Wd[1]),c=Ud(Wd[0]-Gd[1]);(Kd.useDir||Vd(s,c)<qd.len())&&((s<c||!Kd.bidirectional)&&(q.scale(qd,o,s*r),Kd.useDir&&Kd.calcDirMTV()),(s>=c||!Kd.bidirectional)&&(q.scale(qd,o,-c*r),Kd.useDir&&Kd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Vd(l,o),s=Hd(l,s)}n[0]=o+Kd.touchThreshold,n[1]=s-Kd.touchThreshold,Kd.negativeSize=n[1]<n[0]},e}()})),Zd,Qd,$d=t((()=>{o(),Ra(),Xt(),Zd=[],Qd=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Zd)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Fa)}));function ef(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=H(r.duration,200),u=H(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),I(d)&&(d=d(n,i)),I(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function tf(e,t,n,r,i,a,o){var s=!1,c;I(i)?(o=a,a=i,i=null):z(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=ef(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function nf(e,t,n,r,i,a){tf(`update`,e,t,n,r,i,a)}function rf(e,t,n,r,i,a){tf(`enter`,e,t,n,r,i,a)}function af(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function of(e,t,n,r,i,a){af(e)||tf(`leave`,e,t,n,r,i,a)}function sf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),of(e,{style:{opacity:0}},t,n,r)}function cf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||sf(e,t,n,r)}):sf(e,t,n,r)}var lf=t((()=>{G(),Y(),Kc()})),uf=n({Arc:()=>jd,BezierCurve:()=>Od,BoundingRect:()=>J,Circle:()=>Ru,CompoundPath:()=>Nd,Ellipse:()=>Vu,Group:()=>Fu,Image:()=>os,IncrementalDisplayable:()=>Qd,Line:()=>Cd,LinearGradient:()=>Ld,OrientedBoundingRect:()=>Yd,Path:()=>Qo,Point:()=>q,Polygon:()=>gd,Polyline:()=>yd,RadialGradient:()=>zd,Rect:()=>_s,Ring:()=>ld,Sector:()=>od,Text:()=>Ns,WH:()=>Jf,XY:()=>qf,applyTransform:()=>Sf,calcZ2Range:()=>Uf,clipPointsByRect:()=>Df,clipRectByRect:()=>Of,createIcon:()=>kf,ensureCopyRect:()=>Bf,ensureCopyTransform:()=>Vf,expandOrShrinkRect:()=>Pf,extendPath:()=>ff,extendShape:()=>df,getShapeClass:()=>mf,getTransform:()=>xf,groupTransition:()=>Ef,initProps:()=>rf,isBoundingRectAxisAligned:()=>zf,isElementRemoved:()=>af,lineLineIntersect:()=>jf,linePolygonIntersect:()=>Af,makeImage:()=>gf,makePath:()=>hf,mergePath:()=>Xf,registerShape:()=>pf,removeElement:()=>of,removeElementWithFadeOut:()=>cf,resizePath:()=>vf,retrieveZInfo:()=>Hf,setTooltipConfig:()=>If,subPixelOptimize:()=>Zf,subPixelOptimizeLine:()=>yf,subPixelOptimizeRect:()=>bf,transformDirection:()=>Cf,traverseElements:()=>Rf,traverseUpdateZ:()=>Wf,updateProps:()=>nf});function df(e){return Qo.extend(e)}function ff(e,t){return Yf(e,t)}function pf(e,t){Kf[e]=t}function mf(e){if(Kf.hasOwnProperty(e))return Kf[e]}function hf(e,t,n,r){var i=wu(e,t);return n&&(r===`center`&&(n=_f(n,i.getBoundingRect())),vf(i,n)),i}function gf(e,t,n){var r=new os({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_f(t,i))}}});return r}function _f(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}function vf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function yf(e,t){return us(e,e,{lineWidth:t}),e}function bf(e,t){return ds(e,e,t),e}function xf(e,t){for(var n=Ct([]);e&&e!==t;)Tt(n,e.getLocalTransform(),n),e=e.parent;return n}function Sf(e,t,n){return t&&!O(t)&&(t=vr.getLocalTransform(t)),n&&(t=kt([],t)),nr([],e,t)}function Cf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:pc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:pc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Sf(a,t,n),pc(a[0])>pc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function wf(e){return!e.isGroup}function Tf(e){return e.shape!=null}function Ef(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){wf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Tf(e)&&(t.shape=b(e.shape)),t}var a=r(e);t.traverse(function(e){if(wf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),nf(e,r,n,X(e).dataIndex)}}})}function Df(e,t){return A(e,function(e){var n=e[0];n=fc(n,t.x),n=dc(n,t.x+t.width);var r=e[1];return r=fc(r,t.y),r=dc(r,t.y+t.height),[n,r]})}function Of(e,t){var n=fc(e.x,t.x),r=dc(e.x+e.width,t.x+t.width),i=fc(e.y,t.y),a=dc(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function kf(e,t,n){var r=C({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),w(i,n),new os(r)):hf(e.replace(`path://`,``),r,n,`center`)}function Af(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(jf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function jf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Mf(u,d,c,l);if(Nf(f))return!1;var p=e-i,m=t-a,h=Mf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Mf(p,m,u,d)/f;return!(g<0||g>1)}function Mf(e,t,n,r){return e*r-n*t}function Nf(e){return e<=1e-6&&e>=-1e-6}function Pf(e,t,n,r,i){return t==null?e:(R(t)?Qf[0]=Qf[1]=Qf[2]=Qf[3]=t:(Qf[0]=t[0],Qf[1]=t[1],Qf[2]=t[2],Qf[3]=t[3]),r&&(Qf[0]=fc(0,Qf[0]),Qf[1]=fc(0,Qf[1]),Qf[2]=fc(0,Qf[2]),Qf[3]=fc(0,Qf[3])),n&&(Qf[0]=-Qf[0],Qf[1]=-Qf[1],Qf[2]=-Qf[2],Qf[3]=-Qf[3]),Ff(e,Qf,`x`,`width`,3,1,i&&i[0]||0),Ff(e,Qf,`y`,`height`,0,2,i&&i[1]||0),e)}function Ff(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fc(0,dc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:pc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function If(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=L(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&k(N(c),function(e){be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=X(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:w({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Lf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Rf(e,t){if(e)if(F(e))for(var n=0;n<e.length;n++)Lf(e[n],t);else Lf(e,t)}function zf(e){return!e||pc(e[1])<$f&&pc(e[2])<$f||pc(e[0])<$f&&pc(e[3])<$f}function Bf(e,t){return e?J.copy(e,t):t.clone()}function Vf(e,t){return t?wt(e||St(),t):void 0}function Hf(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Uf(e){var t=-1/0,n=1/0;Lf(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Wf(e,t,n){Gf(e,t,n,-1/0)}function Gf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=fc(Gf(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=fc(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}var Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep=t((()=>{Pu(),jt(),lr(),$o(),br(),ss(),Iu(),Ls(),zu(),Hu(),sd(),ud(),_d(),bd(),vs(),wd(),kd(),Md(),Pd(),Rd(),Bd(),Xt(),Xd(),Mt(),$d(),ms(),G(),ol(),lf(),_c(),Kf={},qf=[`x`,`y`],Jf=[`width`,`height`],Yf=Tu,Xf=Eu,Zf=fs,Qf=[0,0,0,0],$f=1e-5,pf(`circle`,Ru),pf(`ellipse`,Vu),pf(`sector`,od),pf(`ring`,ld),pf(`polygon`,gd),pf(`polyline`,yd),pf(`rect`,_s),pf(`line`,Cd),pf(`bezierCurve`,Od),pf(`arc`,jd)}));function tp(e,t){for(var n=0;n<nu.length;n++){var r=nu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function np(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=I(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<nu.length;l++){var u=nu[l],d=t[u];c[u]=H(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function rp(e,t,n,r){n||=fp;for(var i=e instanceof Ns,a=!1,o=0;o<ru.length;o++){var s=t[ru[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Ns,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=np(n,t),u=t.normal,d=!!u.getShallow(`show`),f=ap(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(op(u,n,!1));for(var o=0;o<nu.length;o++){var p=nu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!H(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=ap(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=op(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(gp(c).setLabelText=function(e){var r=np(n,t,e);tp(c,r)})}else c&&(c.ignore=!0);e.dirty()}function ip(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<nu.length;r++){var i=nu[r];n[i]=e.getModel([i,t])}return n}function ap(e,t,n,r,i){var a={};return sp(a,e,n,r,i),t&&C(a,t),a}function op(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=H(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function sp(e,t,n,r,i){n||=fp;var a=t.ecModel,o=a&&a.option.textStyle,s=cp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=H(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);lp(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=R(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=_p.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=de(_),h.__marginType=_p.textMargin)}lp(e,t,o,null,null,n,r,i,!0,!1)}function cp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||fp).rich;if(n){t||={};for(var r=N(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}function lp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||fp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=H(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=H(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=H(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=H(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<pp.length;_++){var v=pp[_],y=i!==!1&&r?le(t.getShallow(v),r.getShallow(v),n[v]):H(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<mp.length;_++){var v=mp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<hp.length;_++){var v=hp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function up(e,t){var n=t&&t.getModel(`textStyle`);return pe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}function dp(e,t,n,r,i){var a=gp(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=H(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=$c(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,tp(e,np({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?rf:nf)(e,{percent:1},r,t,null,l)}var fp,pp,mp,hp,gp,_p,vp=t((()=>{Ls(),G(),uu(),Y(),ep(),fp={},pp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],mp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],hp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],gp=Kc(),_p={minMargin:1,textMargin:2}})),yp,bp,xp,Sp,Cp=t((()=>{vp(),Ls(),yp=[`textStyle`,`color`],bp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],xp=new Ns,Sp=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(yp):null)},e.prototype.getFont=function(){return up({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<bp.length;n++)t[bp[n]]=this.getShallow(bp[n]);return xp.useStyle(t),xp.update(),xp.getBoundingRect()},e}()})),wp,Tp,Ep,Dp=t((()=>{ot(),wp=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Tp=at(wp),Ep=function(){function e(){}return e.prototype.getLineStyle=function(e){return Tp(this,e)},e}()})),Op,kp,Ap,jp=t((()=>{ot(),Op=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],kp=at(Op),Ap=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return kp(this,e,t)},e}()})),Mp,Np=t((()=>{Ue(),it(),ut(),Cp(),Dp(),jp(),G(),Mp=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){x(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(b(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!K.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}(),qe(Mp),Xe(Mp),D(Mp,Ep),D(Mp,Ap),D(Mp,lt),D(Mp,Sp)}));function Pp(e){return e==null?0:e.length||1}function Fp(e){return e}var Ip,Lp=t((()=>{Ip=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Fp,this._newKeyGetter=r||Fp,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Pp(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Pp(c),d=Pp(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Pp(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Pp(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}()})),Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp=t((()=>{G(),Rp=U([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),zp=`original`,Bp=`arrayRows`,Vp=`objectRows`,Hp=`keyedColumns`,Up=`typedArray`,Wp=`unknown`,Gp=`column`}));function qp(e){em(e).datasetMap=U()}function Jp(e,t,n){var r={},i=Yp(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=em(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),k(e,function(t,n){var i=z(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});k(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Yp(e){if(!e.get(`data`,!0))return Yc(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},il).models[0]}function Xp(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Yc(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},il).models}function Zp(e,t){return Qp(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Qp(e,t,n,r,i,a){var o,s=5;if(ie(e))return $p.Not;var c,l;if(r){var u=r[a];z(u)?(c=u.name,l=u.type):L(u)&&(c=u)}if(l!=null)return l===`ordinal`?$p.Must:$p.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return $p.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return $p.Not;var f=_[c];if(!f||ie(f))return $p.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Oc(g);if(!F(y))return $p.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=L(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?$p.Might:$p.Not;if(t&&e!==`-`)return $p.Must}return $p.Not}var $p,em,tm=t((()=>{Y(),G(),Kp(),$p={Must:1,Might:2,Not:3},em=Kc()}));function nm(e){return e instanceof fm}function rm(e,t,n){n||=om(e);var r=t.seriesLayoutBy,i=sm(e,n,r,t.sourceHeader,t.dimensions);return new fm({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:b(t)})}function im(e){return new fm({data:e,sourceFormat:ie(e)?Up:zp})}function am(e){return new fm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:b(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function om(e){var t=Wp;if(ie(e))t=Up;else if(F(e)){e.length===0&&(t=Bp);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(F(i)||ie(i)){t=Bp;break}else if(z(i)){t=Vp;break}}}}else if(z(e)){for(var a in e)if(be(e,a)&&O(e[a])){t=Hp;break}}return t}function sm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:lm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?um(function(e){e!=null&&e!==`-`&&(L(e)?o??=1:o=0)},n,s,10):o=R(r)?r:+!!r,!i&&o===1&&(i=[],um(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=cm(e);else if(t===`keyedColumns`)i||(i=[],k(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Oc(e[0]);a=F(c)&&c.length||1}return{startIndex:o,dimensionsDefine:lm(i),dimensionsDetectedCount:a}}function cm(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return N(n)}function lm(e){if(e){var t=U();return A(e,function(e,n){e=z(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function um(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function dm(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var fm,pm=t((()=>{G(),Kp(),Y(),tm(),fm=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Zp(this,n)===$p.Must&&(r.type=`ordinal`)}}return e}()}));function mm(e,t){return Om[_m(e,t)]}function hm(e,t){return Am[_m(e,t)]}function gm(e){return Mm[e]}function _m(e,t){return e===`arrayRows`?e+`_`+t:e}function vm(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return gm(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Oc(r)),c}}}}var ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm=t((()=>{G(),Y(),pm(),Kp(),wc(),Tm=function(){function e(e,t){var n=nm(e)?e:im(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),wm(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;wm=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Cm[_m(o,s)];C(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=W(mm(o,s),null,i,c,l),e.count=W(hm(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Cm=(e={},e[Bp+`_`+Gp]={pure:!0,appendData:i},e[Bp+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Vp]={pure:!0,appendData:i},e[Hp]={pure:!0,appendData:function(e){var t=this._data;k(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[zp]={appendData:i},e[Up]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Em=function(e){F(e)||yc(`series.data or dataset.source must be an array.`)},ym={},ym[Bp+`_`+Gp]=Em,ym[Bp+`_row`]=Em,ym[Vp]=Em,ym[Hp]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??yc(`dimension name must not be null/undefined.`)},ym[zp]=Em,Dm=function(e,t,n,r){return e[r]},Om=(bm={},bm[Bp+`_`+Gp]=function(e,t,n,r){return e[r+t]},bm[Bp+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},bm[Vp]=Dm,bm[Hp]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},bm[zp]=Dm,bm),km=function(e,t,n){return e.length},Am=(xm={},xm[Bp+`_`+Gp]=function(e,t,n){return Math.max(0,e.length-t)},xm[Bp+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},xm[Vp]=km,xm[Hp]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},xm[zp]=km,xm),jm=function(e,t,n){return e[t]},Mm=(Sm={},Sm[Bp]=jm,Sm[Vp]=function(e,t,n){return e[n]},Sm[Hp]=jm,Sm[zp]=function(e,t,n){var r=Oc(e);return r instanceof Array?r[t]:r},Sm[Up]=jm,Sm)}));function Pm(e,t){var n={},r=n.encode={},i=U(),a=[],o=[],s={};k(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;Fm(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Lm(n.type)&&(a[0]=t),Fm(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Rp.each(function(e,t){var i=Fm(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=A(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Rm(s,t),n}function Fm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Im(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Lm(e){return!(e===`ordinal`||e===`time`)}var Rm,zm=t((()=>{G(),Kp(),Rm=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}()})),Bm,Vm=t((()=>{G(),Bm=function(){function e(e){this.otherDims={},e!=null&&C(this,e)}return e}()}));function Hm(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!R(e)&&e!=null&&e!==`-`&&(e=+Qs(e)),e==null||e===``?NaN:Number(e))}var Um,Wm,Gm=t((()=>{_c(),G(),wc(),U({number:function(e){return parseFloat(e)},time:function(e){return+Qs(e)},trim:function(e){return L(e)?pe(e):e}}),Um={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},function(){function e(e,t){R(t)||bc(``),this._opFn=Um[e],this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){return R(e)?this._opFn(e,this._rvalFloat):this._opFn(ic(e),this._rvalFloat)},e}(),Wm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=R(e)?e:ic(e),r=R(t)?t:ic(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=L(e),s=L(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ic(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ic(e)===this._rvalFloat)}return this._isEQ?t:!t},e}()}));function Km(e){return e>65535?Zm:Qm}function qm(){return[1/0,-1/0]}function Jm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ym(e,t,n,r,i){var a=th[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Xm,Zm,Qm,$m,eh,th,nh,rh,ih=t((()=>{G(),Gm(),pm(),Xm=`undefined`,Zm=typeof Uint32Array===Xm?Array:Uint32Array,Qm=typeof Uint16Array===Xm?Array:Uint16Array,$m=typeof Int32Array===Xm?Array:Int32Array,eh=typeof Float64Array===Xm?Array:Float64Array,th={float:eh,int:$m,ordinal:Array,number:Array,time:eh},rh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=nh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],dm(r),this._dimensions=A(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new th[t||`float`](this._rawCount),this._rawExtent[i]=qm(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=qm());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Ym(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=nh.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=A(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=qm()),Ym(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Km(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Km(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=N(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Km(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=qm();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Km(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Km(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=qm(),d=new(Km(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=qm();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&j(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Jm(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=b(this._extent),e._rawExtent=b(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Hm(e[r],this._dimensions[r])}nh={arrayRows:e,objectRows:function(e,t,n,r){return Hm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Hm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}()}));function ah(e){return e instanceof dh}function oh(e){for(var t=U(),n=0;n<(e||[]).length;n++){var r=e[n],i=z(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function sh(e){var t=lh(e);return t.dimNameMap||=oh(e.dimensionsDefine)}function ch(e){return e>30}var lh,uh,dh,fh=t((()=>{G(),Y(),pm(),lh=Kc(),uh={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},dh=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=sh(this.source))},e.prototype.getSourceDimensionIndex=function(e){return H(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=dm(this.source),n=!ch(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=uh[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}()})),ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh=t((()=>{G(),Np(),Lp(),Nm(),zm(),Vm(),Kp(),Y(),ol(),pm(),ih(),fh(),ph=z,mh=A,hh=typeof Int32Array>`u`?Array:Int32Array,gh=`e\0\0`,_h=-1,vh=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],yh=[`_approximateExtent`],Dh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;ah(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=L(u)?new Bm({name:u}):u instanceof Bm?u:new Bm(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;R(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=U();k(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(R(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof rh&&(i=e),!i){var a=this.dimensions,o=nm(e)||O(e)?new Tm(e,a.length):e;i=new rh;var s=mh(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Pm(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Eh(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&kc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=zc(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=zc(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Eh(this,o);bh(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){ph(e)?C(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Sh(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return xh(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return F(e)?r.getValues(mh(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?_h:r},e.prototype.each=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=mh(Ch(e),this._getStoreDimIndex,this);this._store.each(i,r?W(t,r):t)},e.prototype.filterSelf=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=mh(Ch(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=N(e),i=[];return k(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){I(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=mh(Ch(e),this._getStoreDimIndex,this),o=Th(this);return o._store=this._store.map(a,i?W(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=mh(Ch(e),this._getStoreDimIndex,this);this._store.modify(a,i?W(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Th(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Th(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Th(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Mp(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Ip(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return xh(e,t)},function(e){return xh(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},ph(e)?C(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),F(i)?i=i.slice():ph(i)&&(i=C({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,ph(t)?C(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){ph(e)?C(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?C(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){al(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){k(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:mh(this.dimensions,this._getDimInfo,this),this.hostModel),wh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];I(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ue(arguments)))})},e.internalField=function(){bh=function(e){var t=e._invertedIndicesMap;k(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new hh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=_h;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Sh=function(e,t,n){return zc(e._getCategory(t,n),null)},xh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Sh(e,e._idDimIdx,t)),n??=gh+t,n},Ch=function(e){return F(e)||(e=e==null?[]:[e]),e},Th=function(t){var n=new e(t._schema?t._schema:mh(t.dimensions,t._getDimInfo,t),t.hostModel);return wh(n,t),n},wh=function(e,t){k(vh.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,k(yh,function(n){e[n]=b(t[n])}),e._calculationInfo=C({},t._calculationInfo)},Eh=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=Sh(e,i,t)),s==null&&a!=null&&(r[t]=s=Sh(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}()}));function kh(e,t){return Ah(e,t).dimensions}function Ah(e,t){nm(e)||(e=im(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=U(),a=[],o=Mh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ch(o),c=r===e.dimensionsDefine,l=c?sh(e):oh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=U(u),f=new $m(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=z(n)?n:{name:n},o=new Bm,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Ec(e).slice();if(n.length===1&&!L(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);k(n,function(e,n){var i=L(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;k(n,function(e){var t,n,r,i;if(L(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=C({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Ec(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}k(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(w(o,i),t,a),o.name==null&&n){var s=n[a];!z(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&w(o.otherDims,r)})}});function g(e,t,n){Rp.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)k(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var T=m(S);T.coordDim??(T.coordDim=Nh(b,i,y),T.coordDimIndex=0,(!_||v<=0)&&(T.isExtraCoord=!0),v--),x(T),T.type==null&&(Zp(e,S)===$p.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type=`ordinal`)}return jh(a),new dh({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jh(e){for(var t=U(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function Mh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return k(t,function(e){var t;z(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Nh(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ph=t((()=>{Kp(),Vm(),G(),pm(),ih(),Y(),tm(),fh()}));function Fh(e){var t=e.getShallow(`coord`,!0),n=zh.coord;if(t==null){var r=Bh.get(e.type);r&&r.getCoord2&&(n=zh.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Ih,Lh,Rh,zh,Bh,Vh=t((()=>{G(),Ih={},Lh={},Rh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ih,!0),this._normalMasterList=n(Lh,!1);function n(n,r){var i=[];return k(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){k(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ih[e]=t;return}Lh[e]=t},e.get=function(e){return Lh[e]||Ih[e]},e}(),zh={coord:1,coord2:2},Bh=U()}));function Hh(e){var t=e.get(`coordinateSystem`),n=new Wh(t),r=Gh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}function Uh(e){return e.get(`type`)===`category`}var Wh,Gh,Kh=t((()=>{G(),Y(),Wh=function(){function e(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return e}(),Gh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,il).models[0],a=e.getReferringComponents(`yAxis`,il).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Uh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Uh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,il).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Uh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,il).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Uh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Uh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();k(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Uh(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,il).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}}}));function qh(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Jh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(k(a,function(e,t){L(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;k(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Jh(e){return!ah(e.schema)}function Yh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Xh(e,t){return Yh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}var Zh=t((()=>{G(),fh()}));function Qh(e,t){var n=e.get(`coordinateSystem`),r=Rh.get(n),i;return t&&t.coordSysDims&&(i=A(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Im(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function $h(e,t,n){var r,i;return n&&k(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function eg(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=im(e)):(i=r.getSource(),a=i.sourceFormat===zp);var o=Hh(t),s=Qh(t,o),c=n.useEncodeDefaulter,l=I(c)?c:c?P(Jp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Ah(i,u),f=$h(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=qh(t,{schema:d,store:p}),h=new Dh(d,t);h.setCalculationInfo(m);var g=f!=null&&tg(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function tg(e){if(e.sourceFormat===`original`)return!F(Oc(ng(e.data||[])))}function ng(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var rg=t((()=>{G(),Oh(),Ph(),zm(),Y(),Vh(),Kh(),pm(),Zh(),tm(),Kp()}));function ig(e){return[e||``,cg++].join(`_`)}function ag(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=We(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=We(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function og(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(k(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),k(u.successor,d?p:f)}k(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return k(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),k(c,function(e){T(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);T(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return k(e,function(e){T(t,e)>=0&&n.push(e)}),n}}function sg(e,t){return x(x({},e,!0),t,!0)}var cg,lg=t((()=>{G(),it(),cg=Math.round(Math.random()*10)}));function ug(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/fg);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*ug(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function dg(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ug(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*ug(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var fg,pg=t((()=>{fg=Math.log(2)}));function mg(e,t,n,r,i){return gg(Sg,t,r,i,!0)&&gg(e,n,Sg[0],Sg[1])}function hg(e,t){e&&n(e),t&&n(t);function n(e){var t=e[xg];t&&(t.clearMarkers&&t.clearMarkers(),delete e[xg])}}function gg(e,t,n,r,i){if(t.getBoundingClientRect&&K.domSupported&&!yg(t)){var a=t[xg]||(t[xg]={}),o=vg(_g(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function _g(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){k(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function vg(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?dg(s,o):dg(o,s))}function yg(e){return e.nodeName.toUpperCase()===`CANVAS`}function bg(e){return e==null?``:(e+``).replace(Cg,function(e,t){return wg[t]})}var xg,Sg,Cg,wg,Tg=t((()=>{Ue(),pg(),G(),xg=`___zrEVENTSAVED`,Sg=[],Cg=/([&<>"'])/g,wg={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`}})),Eg,Dg=t((()=>{Eg={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}}})),Og,kg=t((()=>{Og={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}}}));function Ag(e,t){e=e.toUpperCase(),Rg[e]=new Mp(t),Lg[e]=t}function jg(e){if(L(e)){var t=Lg[e.toUpperCase()]||{};return e===Pg||e===Fg?b(t):x(b(t),b(Lg[Ig]),!1)}else return x(b(e),b(Lg[Ig]),!1)}function Mg(e){return Rg[e]}function Ng(){return Rg[Ig]}var Pg,Fg,Ig,Lg,Rg,zg,Bg=t((()=>{Np(),Ue(),Dg(),kg(),G(),Pg=`ZH`,Fg=`EN`,Ig=Fg,Lg={},Rg={},zg=K.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ig).toUpperCase().indexOf(Pg)>-1?Pg:Ig}():Ig,Ag(Fg,Eg),Ag(Pg,Og)}));function Vg(){return Hg}var Hg,Ug=t((()=>{Hg=null}));function Wg(e){return!L(e)&&!I(e)?Gg(e):e}function Gg(e){e||={};var t={},n=!0;return k(w_,function(t){n&&=e[t]==null}),k(w_,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=w_[s],l=z(a)&&!F(a)?a[c]:a,u=void 0;F(l)?(u=l.slice(),o=u[0]||``):L(l)?(o=l,u=[o]):(o==null?o=b_[r]:y_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Kg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function qg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Jg(e){return e===qg(e)}function Yg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Xg(e,t,n,r){var i=Qs(e),a=i[e_(n)](),o=i[t_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[n_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[r_(n)](),d=(u-1)%12+1,f=i[i_(n)](),p=i[a_(n)](),m=i[o_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Mp?r:Mg(r||zg)||Ng()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Kg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Kg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Kg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Kg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Kg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Kg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Kg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Kg(m,3)).replace(/{S}/g,m+``)}function Zg(e,t,n,r,i){var a=null;if(L(n))a=n;else if(I(n)){var o={time:e.time,level:e.time.level},s=Vg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Qg(e.value,i);a=n[u][u][0]}}return Xg(new Date(e.value),a,i,r)}function Qg(e,t){var n=Qs(e),r=n[t_(t)]()+1,i=n[n_(t)](),a=n[r_(t)](),o=n[i_(t)](),s=n[a_(t)](),c=n[o_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function $g(e,t,n){switch(t){case`year`:e[c_(n)](0);case`month`:e[l_(n)](1);case`day`:e[u_(n)](0);case`hour`:e[d_(n)](0);case`minute`:e[f_(n)](0);case`second`:e[p_(n)](0)}return e}function e_(e){return e?`getUTCFullYear`:`getFullYear`}function t_(e){return e?`getUTCMonth`:`getMonth`}function n_(e){return e?`getUTCDate`:`getDate`}function r_(e){return e?`getUTCHours`:`getHours`}function i_(e){return e?`getUTCMinutes`:`getMinutes`}function a_(e){return e?`getUTCSeconds`:`getSeconds`}function o_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function s_(e){return e?`setUTCFullYear`:`setFullYear`}function c_(e){return e?`setUTCMonth`:`setMonth`}function l_(e){return e?`setUTCDate`:`setDate`}function u_(e){return e?`setUTCHours`:`setHours`}function d_(e){return e?`setUTCMinutes`:`setMinutes`}function f_(e){return e?`setUTCSeconds`:`setSeconds`}function p_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}var m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_=t((()=>{G(),_c(),Bg(),Np(),Ug(),m_=1e3,h_=m_*60,g_=h_*60,__=g_*24,v_=__*365,y_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},b_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},x_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,S_=`{yyyy}-{MM}-{dd}`,C_={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:S_,hour:S_+` `+b_.hour,minute:S_+` `+b_.minute,second:S_+` `+b_.second,millisecond:x_},w_=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],T_=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`]}));function D_(e,t,n,r,i,a,o,s){return new Ns({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}var O_=t((()=>{ep()}));function k_(e){if(!ac(e))return L(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function A_(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function j_(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&pe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Qs(e):e;if(!isNaN(+c))return Xg(c,r,n);if(s)return`-`}if(t===`ordinal`)return ne(e)?i(e):R(e)&&a(e)?e+``:`-`;var l=ic(e);return a(l)?k_(l):ne(e)?i(e):typeof e==`boolean`?e+``:`-`}function M_(e,t,n){F(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=z_[a];e=e.replace(B_(o),B_(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(B_(z_[c],s),n?bg(l):l)}return e}function N_(e,t){var n=L(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+bg(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+bg(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function P_(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
9
9
  yyyy`);var r=Qs(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,Kg(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,Kg(a%100+``,2)).replace(`dd`,Kg(s,2)).replace(`d`,s).replace(`hh`,Kg(c,2)).replace(`h`,c).replace(`mm`,Kg(l,2)).replace(`m`,l).replace(`ss`,Kg(u,2)).replace(`s`,u).replace(`SSS`,Kg(d,3)),e}function F_(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function I_(e,t){return t||=`transparent`,L(e)?e:z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function L_(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var R_,z_,B_,V_=t((()=>{G(),Tg(),_c(),E_(),In(),O_(),R_=de,z_=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],B_=function(e,t){return`{`+e+(t??``)+`}`}}));function H_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}function U_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function W_(e,t,n){n=R_(n||0);var r=t.width,i=t.height,a=mc(e.left,r),o=mc(e.top,i),s=mc(e.right,r),c=mc(e.bottom,i),l=mc(e.width,r),u=mc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function G_(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Fh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=tv.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=tv.point,s=u,i=o.dataToPoint(l))}return a??=tv.rect,a===tv.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function K_(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=W_(w({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function q_(e){var t=e.layoutMode||e.constructor.layoutMode;return z(t)?t:t?{type:t}:null}function J_(e,t,n){var r=n&&n.ignoreSize;!F(r)&&(r=[r,r]);var i=o($_[0],0),a=o($_[1],1);c($_[0],e,i),c($_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Z_(n,function(t){c[t]=e[t]}),Z_(n,function(e){be(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!be(a,f)&&be(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){Z_(e,function(e){t[e]=n[e]})}}function Y_(e){return X_({},e)}function X_(e,t){return t&&e&&Z_(Q_,function(n){be(t,n)&&(e[n]=t[n])}),e}var Z_,Q_,$_,ev,tv,nv=t((()=>{G(),Xt(),_c(),V_(),Vh(),Z_=k,Q_=[`left`,`right`,`top`,`bottom`,`width`,`height`],$_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]],ev=H_,P(H_,`vertical`),P(H_,`horizontal`),tv={rect:1,point:2}}));function rv(e){var t=[];return k(Z.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=A(t,function(e){return We(e).main}),e!==`dataset`&&T(t,`dataset`)<=0&&t.unshift(`dataset`),t}var iv,Z,av=t((()=>{o(),G(),Np(),lg(),it(),Y(),nv(),iv=Kc(),Z=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=ig(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=q_(this),r=n?Y_(e):{};x(e,t.getTheme().get(this.mainType)),x(e,this.getDefaultOption()),n&&J_(e,r,n)},t.prototype.mergeOption=function(e,t){x(this.option,e,!0);var n=q_(this);n&&J_(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ke(e))return e.defaultOption;var t=iv(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=x(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Yc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return U_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Mp),Ye(Z,Mp),$e(Z),ag(Z),og(Z,rv)}));function ov(e,t,n,r){return cv(e,dv,Ec(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function sv(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function cv(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:sv(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function lv(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var uv,dv,fv,pv=t((()=>{Y(),uv=Kc(),dv=Kc(),fv=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Ec(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return cv(this,uv,r,i,e,t,n)},e.prototype.clearColorPalette=function(){lv(this,uv)},e}()}));function mv(e){var t,n;return z(e)?e.type&&(n=e):t=e,{text:t,frag:n}}var hv,gv,_v=t((()=>{G(),Nm(),V_(),hv=/\{@(.+?)\}/g,gv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&F(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),I(i))return s.status=t,s.dimensionIndex=r,i(s);if(L(i))return M_(i,s).replace(hv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=vm(o,e,i);if(a&&F(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return vm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}()}));function vv(e){return new yv(e)}var yv,bv,xv=t((()=>{G(),yv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(F(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){bv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:bv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),F(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),bv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}()}));function Sv(e,t){var n=new jv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&bc(``);var o=[],s={},c=e.dimensionsDefine;if(c)k(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(be(s,n)&&bc(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=mm(i,Gp);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=W(Cv,null,e)),n.cloneRawData=W(wv,null,e),n.count=W(hm(i,Gp),null,r,a,o);var d=gm(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=W(Tv,null,o,s),n.cloneAllDimensionInfo=W(Ev,null,o),n}function Cv(e){var t=e.sourceFormat;return Av(t)||bc(``),e.data}function wv(e){var t=e.sourceFormat,n=e.data;if(Av(t)||bc(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(C({},n[i]));return r}}function Tv(e,t,n){if(n!=null){if(R(n)||!isNaN(n)&&!be(t,n))return e[n];if(be(t,n))return t[n]}}function Ev(e){return b(e)}function Dv(e){e=b(e);var t=e.type,n=``;t||bc(n);var r=t.split(`:`);r.length!==2&&bc(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Mv.set(t,e)}function Ov(e,t,n){var r=Ec(e),i=r.length;i||bc(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=kv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function kv(e,t,n,r){var i=``;t.length||bc(i),z(e)||bc(i);var a=e.type,o=Mv.get(a);o||bc(i);var s=A(t,function(e){return Sv(e,o)});return A(Ec(o.transform({upstream:s[0],upstreamList:s,config:b(e.config)})),function(e,n){var r=``;z(e)||bc(r),e.data||bc(r),Av(om(e.data))||bc(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Gp,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Gp,sourceHeader:0,dimensions:e.dimensions};return rm(e.data,i,null)})}function Av(e){return e===`arrayRows`||e===`objectRows`}var jv,Mv,Nv=t((()=>{Kp(),Y(),G(),Nm(),Gm(),wc(),pm(),jv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Hm(e,t)},e}(),Mv=U()}));function Pv(e){e.option.transform&&me(e.option.transform)}function Fv(e){return e.mainType===`series`}function Iv(e){throw Error(e)}var Lv,Rv=t((()=>{G(),pm(),Kp(),tm(),Nv(),ih(),Nm(),Lv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Fv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ie(o)?Up:zp,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=H(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=H(u.sourceHeader,d.sourceHeader),m=H(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[rm(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[rm(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Iv(``);var i,a=[],o=[];return k(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Iv(``),a.push(t),o.push(e._getVersionSign())}),n?i=Ov(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[am(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Fv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new rh,o.initData(new Tm(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Fv(e)){var t=Yp(e);return t?[t.getSourceManager()]:[]}else return A(Xp(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Fv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}()})),Q,zv,Bv,Vv=t((()=>{for(var e in G(),Ai(),Q={color:{},darkColor:{},size:{}},zv=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`},C(zv,{primary:zv.neutral80,secondary:zv.neutral70,tertiary:zv.neutral60,quaternary:zv.neutral50,disabled:zv.neutral20,border:zv.neutral30,borderTint:zv.neutral20,borderShade:zv.neutral40,background:zv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:zv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:zv.neutral70,axisLineTint:zv.neutral40,axisTick:zv.neutral70,axisTickMinor:zv.neutral60,axisLabel:zv.neutral70,axisSplitLine:zv.neutral15,axisMinorSplitLine:zv.neutral05}),zv)zv.hasOwnProperty(e)&&(Bv=zv[e],e===`theme`?Q.darkColor.theme=zv.theme.slice():e===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:e.indexOf(`accent`)===0?Q.darkColor[e]=vi(Bv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[e]=vi(Bv,null,function(e){return e*.9},function(e){return 1-e**1.5}));Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50}}));function Hv(e){var t=e.lineHeight;return t==null?ay:`line-height:`+bg(t+``)+`px`}function Uv(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+bg(r+``)+`px;color:`+bg(n)+`;font-weight:`+bg(i+``),valueStyle:`font-size:`+bg(o+``)+`px;color:`+bg(a)+`;font-weight:`+bg(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function Wv(e,t){return t.type=e,t}function Gv(e){return e.type===`section`}function Kv(e){return Gv(e)?Jv:Yv}function qv(e){if(Gv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return k(e.blocks,function(e){var n=qv(e);n>=t&&(t=n+ +(r&&(!n||Gv(e)&&!e.noHeader)))}),t}return 0}function Jv(e,t,n,r){var i=t.noHeader,a=Zv(qv(t)),o=[],s=t.blocks||[];fe(!s||F(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(be(l,c)){var u=new Wm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}k(s,function(n,i){var s=t.valueFormatter,c=Kv(n)(s?C(C({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Qv(r,o.join(``),i?n:a.html);if(i)return d;var f=j_(t.header,`ordinal`,e.useUTC),p=Uv(r,e.renderMode).nameStyle,m=Hv(r);return e.renderMode===`richText`?ty(e,f,p)+a.richText+d:Qv(r,`<div style="`+p+`;`+m+`;">`+bg(f)+`</div>`+d,n)}function Yv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=F(e)?e:[e],A(e,function(e,t){return j_(e,F(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:j_(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=Uv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ty(e,f,v))+(o?``:ny(e,m,h,g,y)):Qv(r,(s?``:d)+(a?``:$v(f,!s,v))+(o?``:ey(m,h,g,y)),n)}}function Xv(e,t,n,r,i,a){if(e)return Kv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Zv(e){return{html:oy[e],richText:sy[e]}}function Qv(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Hv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function $v(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+bg(e)+`</span>`}function ey(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=F(e)?e:[e],`<span style="`+i+`;`+r+`">`+A(e,function(e){return bg(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function ty(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ny(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(` `):t,a)}function ry(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return I_(n)}function iy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ay,oy,sy,cy,ly=t((()=>{V_(),G(),Gm(),_c(),Vv(),ay=`line-height:1`,oy=[0,10,20,30],sy=[``,`
10
10
  `,`
11
11