/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var zs=function(e,t){return zs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},zs(e,t)};function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zs(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _g=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),mg=function(){function e(){this.browser=new _g,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),xr=new mg;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xr.wxa=!0,xr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xr.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(xr.node=!0,xr.svgSupported=!0):Sg(navigator.userAgent,xr);function Sg(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const rt=xr;var Ou=12,wg="sans-serif",zr=Ou+"px "+wg,Tg=20,bg=100,Mg="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Cg(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Zg(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?El(s,o):El(o,s))}function Av(e){return e.nodeName.toUpperCase()==="CANVAS"}var Kg=/([&<>"'])/g,Qg={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(e){return e==null?"":(e+"").replace(Kg,function(t,r){return Qg[r]})}var Jg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ro=[],jg=rt.browser.firefox&&+rt.browser.version.split(".")[0]<39;function $s(e,t,r,n){return r=r||{},n?Ol(e,t,r):jg&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Ol(e,t,r),r}function Ol(e,t,r){if(rt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Av(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ys(Ro,e,n,i)){r.zrX=Ro[0],r.zrY=Ro[1];return}}r.zrX=r.zrY=0}function zu(e){return e||window.event}function ae(e,t,r){if(t=zu(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$s(e,o,t,r)}else{$s(e,t,t,r);var a=t0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Jg.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function t0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function e0(e,t,r,n){e.addEventListener(t,r,n)}function r0(e,t,r,n){e.removeEventListener(t,r,n)}var n0=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function FM(e){return e.which===2||e.which===3}var i0=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=kl(n)/kl(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=a0(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function vn(){return[1,0,0,1,0,0]}function Hu(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ov(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Qn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Fl(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function o0(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function s0(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function to(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}function BM(e){var t=vn();return Ov(t,e),t}var u0=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const H=u0;var xi=Math.min,Di=Math.max,ir=new H,ar=new H,or=new H,sr=new H,Cn=new H,xn=new H,l0=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=xi(t.x,this.x),n=xi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Di(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Di(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=vn();return Fl(a,a,[-r.x,-r.y]),s0(a,a,[n,i]),Fl(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=m,yd&&(d=S,g<_?H.set(xn,0,-g):H.set(xn,0,_)):m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ir.x=or.x=r.x,ir.y=sr.y=r.y,ar.x=sr.x=r.x+r.width,ar.y=or.y=r.y+r.height,ir.transform(n),sr.transform(n),ar.transform(n),or.transform(n),t.x=xi(ir.x,ar.x,or.x,sr.x),t.y=xi(ir.y,ar.y,or.y,sr.y);var u=Di(ir.x,ar.x,or.x,sr.x),l=Di(ir.y,ar.y,or.y,sr.y);t.width=u-t.x,t.height=l-t.y},e}();const q=l0;var kv="silent";function f0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:h0}}function h0(){n0(this.event)}var v0=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Le),Dn=function(){function e(t,r){this.x=t,this.y=r}return e}(),c0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Eo=new q(0,0,0,0),Fv=function(e){G(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Dn(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new v0,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Yg(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(c0,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Bv(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Dn(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Dn(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=f0(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Dn(r,n);if(Bl(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new q(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Eo.copy(c.getBoundingRect()),c.transform&&Eo.applyTransform(c.transform),Eo.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function d0(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?kv:!0}return!1}function Bl(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=d0(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==kv)){t.target=o;break}}}function Bv(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const p0=Fv;var Nv=32,Ln=7;function g0(e){for(var t=0;e>=Nv;)t|=e&1,e>>=1;return e+t}function Nl(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function y0(e,t,r){for(r--;t>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Ao(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function Oo(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function _0(e,t){var r=Ln,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Ln||x>=Ln);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(g=0;g=0;g--)e[w+g]=e[T+g];e[S]=o[m];return}for(var x=r;;){var M=0,C=0,L=!1;do if(t(o[m],e[_])<0){if(e[S--]=e[_--],M++,C=0,--d===0){L=!0;break}}else if(e[S--]=o[m--],C++,M=0,--p===1){L=!0;break}while((M|C)=0;g--)e[w+g]=e[T+g];if(d===0){L=!0;break}}if(e[S--]=o[m--],--p===1){L=!0;break}if(C=p-Ao(e[_],o,0,p,p-1,t),C!==0){for(S-=C,m-=C,p-=C,w=S+1,T=m+1,g=0;g=Ln||C>=Ln);if(L)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,_-=d,w=S+1,T=_+1,g=d-1;g>=0;g--)e[w+g]=e[T+g];e[S]=o[m]}else{if(p===0)throw new Error;for(T=S-(p-1),g=0;gs&&(u=s),zl(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Wt=1,Un=2,sn=4,Hl=!1;function ko(){Hl||(Hl=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Gl(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var m0=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Gl}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(ko(),f.z=0),isNaN(f.z2)&&(ko(),f.z2=0),isNaN(f.zlevel)&&(ko(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const S0=m0;var zv;zv=rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Xs=zv;var va={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:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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=2.5949095;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-va.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?va.bounceIn(e*2)*.5:va.bounceOut(e*2-1)*.5+.5}};const Hv=va;var Li=Math.pow,Qe=Math.sqrt,xa=1e-8,Gv=1e-4,Vl=Qe(3),Ii=1/3,we=Sn(),Qt=Sn(),cn=Sn();function qe(e){return e>-xa&&exa||e<-xa}function yt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Wl(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Wv(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(qe(f)&&qe(h))if(qe(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(qe(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var _=Qe(y),m=f*s+1.5*o*(-h+_),S=f*s+1.5*o*(-h-_);m<0?m=-Li(-m,Ii):m=Li(m,Ii),S<0?S=-Li(-S,Ii):S=Li(S,Ii);var d=(-s-(m+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*Qe(f*f*f)),w=Math.acos(T)/3,x=Qe(f),M=Math.cos(w),d=(-s-2*x*M)/(3*o),g=(-s+x*(M+Vl*Math.sin(w)))/(3*o),C=(-s+x*(M-Vl*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function Uv(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(qe(o)){if(Vv(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(qe(f))i[0]=-a/(2*o);else if(f>0){var h=Qe(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Da(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Yv(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,p,g;we[0]=u,we[1]=l;for(var _=0;_<1;_+=.05)Qt[0]=yt(e,r,i,o,_),Qt[1]=yt(t,n,a,s,_),p=hn(we,Qt),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(qe(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Qe(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function $v(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function La(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Xv(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;we[0]=o,we[1]=s;for(var c=0;c<1;c+=.05){Qt[0]=bt(e,r,i,c),Qt[1]=bt(t,n,a,c);var v=hn(we,Qt);v=0&&v=1?1:Wv(0,n,a,1,u,s)&&yt(0,i,o,1,s[0])}}}var C0=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||jt,this.ondestroy=t.ondestroy||jt,this.onrestart=t.onrestart||jt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:Hv[t]||qv(t)},e}();const x0=C0;var Zv=function(){function e(t){this.value=t}return e}(),D0=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Zv(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),L0=function(){function e(t){this._list=new D0,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Zv(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const mi=L0;var Yl={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fe(e){return e=Math.round(e),e<0?0:e>255?255:e}function I0(e){return e=Math.round(e),e<0?0:e>360?360:e}function ui(e){return e<0?0:e>1?1:e}function Fo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fe(parseFloat(t)/100*255):fe(parseInt(t,10))}function Fr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ui(parseFloat(t)/100):ui(parseFloat(t))}function Bo(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ze(e,t,r){return e+(t-e)*r}function qt(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function qs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Kv=new mi(20),Ri=null;function Xr(e,t){Ri&&qs(Ri,t),Ri=Kv.put(e,Ri||t.slice())}function he(e,t){if(!!e){t=t||[];var r=Kv.get(e);if(r)return qs(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Yl)return qs(t,Yl[n]),Xr(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){qt(t,0,0,0,1);return}return qt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Xr(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){qt(t,0,0,0,1);return}return qt(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xr(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?qt(t,+l[0],+l[1],+l[2],1):qt(t,0,0,0,1);f=Fr(l.pop());case"rgb":if(l.length>=3)return qt(t,Fo(l[0]),Fo(l[1]),Fo(l[2]),l.length===3?f:Fr(l[3])),Xr(e,t),t;qt(t,0,0,0,1);return;case"hsla":if(l.length!==4){qt(t,0,0,0,1);return}return l[3]=Fr(l[3]),Zs(l,t),Xr(e,t),t;case"hsl":if(l.length!==3){qt(t,0,0,0,1);return}return Zs(l,t),Xr(e,t),t;default:return}}qt(t,0,0,0,1)}}function Zs(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Fr(e[1]),i=Fr(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],qt(t,fe(Bo(o,a,r+1/3)*255),fe(Bo(o,a,r)*255),fe(Bo(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function R0(e){if(!!e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function $l(e,t){var r=he(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Si(r,r.length===4?"rgba":"rgb")}}function NM(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return r[0]=fe(Ze(o[0],s[0],u)),r[1]=fe(Ze(o[1],s[1],u)),r[2]=fe(Ze(o[2],s[2],u)),r[3]=ui(Ze(o[3],s[3],u)),r}}function zM(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=he(t[i]),s=he(t[a]),u=n-i,l=Si([fe(Ze(o[0],s[0],u)),fe(Ze(o[1],s[1],u)),fe(Ze(o[2],s[2],u)),ui(Ze(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function HM(e,t,r,n){var i=he(e);if(e)return i=R0(i),t!=null&&(i[0]=I0(t)),r!=null&&(i[1]=Fr(r)),n!=null&&(i[2]=Fr(n)),Si(Zs(i),"rgba")}function GM(e,t){var r=he(e);if(r&&t!=null)return r[3]=ui(t),Si(r,"rgba")}function Si(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ia(e,t){var r=he(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Xl=new mi(100);function ql(e){if(U(e)){var t=Xl.get(e);return t||(t=$l(e,-.1),Xl.put(e,t)),t}else if(Ja(e)){var r=O({},e);return r.colorStops=B(e.colorStops,function(n){return{offset:n.offset,color:$l(n.color,-.1)}}),r}return e}var Ra=Math.round;function VM(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=he(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t==null?1:t}}var Zl=1e-4;function WM(e){return e-Zl}function Pi(e){return Ra(e*1e3)/1e3}function Kl(e){return Ra(e*1e4)/1e4}function UM(e){return"matrix("+Pi(e[0])+","+Pi(e[1])+","+Pi(e[2])+","+Pi(e[3])+","+Kl(e[4])+","+Kl(e[5])+")"}var YM={left:"start",right:"end",center:"middle",middle:"middle"};function $M(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function XM(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function qM(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function P0(e){return e&&!!e.image}function E0(e){return e&&!!e.svgElement}function ZM(e){return P0(e)||E0(e)}function A0(e){return e.type==="linear"}function O0(e){return e.type==="radial"}function KM(e){return e&&(e.type==="linear"||e.type==="radial")}function QM(e){return"url(#"+e+")"}function JM(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function jM(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*fa,i=$(e.scaleX,1),a=$(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+Ra(o*fa)+"deg, "+Ra(s*fa)+"deg)"),u.join(" ")}var tC=function(){return rt.hasGlobalWindow&&K(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}}(),Ks=Array.prototype.slice;function Ee(e,t,r){return(t-e)*r+e}function No(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Jl,u=r;if(Nt(r)){var l=N0(r);s=l,(l===1&&!at(r[0])||l===2&&!at(r[0][0]))&&(o=!0)}else if(at(r)&&!Ma(r))s=Ai;else if(U(r))if(!isNaN(+r))s=Ai;else{var f=he(r);f&&(u=f,s=Yn)}else if(Ja(r)){var h=O({},u);h.colorStops=B(r.colorStops,function(v){return{offset:v.offset,color:he(v.color)}}),A0(r)?s=Qs:O0(r)&&(s=Js),u=h}a===0?this.valType=s:(s!==this.valType||s===Jl)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=K(n)?n:Hv[n]||qv(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,p){return y.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Oi(i),l=jl(i),f=0;f=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;fr);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var _=n?this._additiveValue:l?In:t[u];if((Oi(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(Oi(a))a===pa?No(_,v[i],d[i],g):k0(_,v[i],d[i],g);else if(jl(a)){var m=v[i],S=d[i],T=a===Qs;t[u]={type:T?"linear":"radial",x:Ee(m.x,S.x,g),y:Ee(m.y,S.y,g),colorStops:B(m.colorStops,function(x,M){var C=S.colorStops[M];return{offset:Ee(x.offset,C.offset,g),color:da(No([],x.color,C.color,g))}}),global:S.global},T?(t[u].x2=Ee(m.x2,S.x2,g),t[u].y2=Ee(m.y2,S.y2,g)):t[u].r=Ee(m.r,S.r,g)}else if(l)No(_,v[i],d[i],g),n||(t[u]=da(_));else{var w=Ee(v[i],d[i],g);n?this._additiveValue=w:t[u]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ai?t[n]=t[n]+i:r===Yn?(he(t[n],In),Ei(In,In,i,1),t[n]=da(In)):r===pa?Ei(t[n],t[n],i,1):r===Qv&&Ql(t[n],t[n],i,1)},e}(),H0=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Bu("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,nt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,ca(l),i),this._trackKeys.push(s)}u.addKeyframe(t,ca(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Gu=H0;function ln(){return new Date().getTime()}var G0=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=ln()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Xs(n),!r._paused&&r.update())}Xs(n)},t.prototype.start=function(){this._running||(this._time=ln(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ln(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ln()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Gu(r,n.loop);return this.addAnimator(i),i},t}(Le);const V0=G0;var W0=300,zo=rt.domSupported,Ho=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=B(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),tf={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ef=!1;function js(e){var t=e.pointerType;return t==="pen"||t==="touch"}function U0(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Go(e){e&&(e.zrByTouch=!0)}function Y0(e,t){return ae(e.dom,new $0(e,t),!0)}function Jv(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var $0=function(){function e(t,r){this.stopPropagation=jt,this.stopImmediatePropagation=jt,this.preventDefault=jt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),oe={mousedown:function(e){e=ae(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ae(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ae(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ae(this.dom,e);var t=e.toElement||e.relatedTarget;Jv(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ef=!0,e=ae(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ef||(e=ae(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ae(this.dom,e),Go(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),oe.mousemove.call(this,e),oe.mousedown.call(this,e)},touchmove:function(e){e=ae(this.dom,e),Go(e),this.handler.processGesture(e,"change"),oe.mousemove.call(this,e)},touchend:function(e){e=ae(this.dom,e),Go(e),this.handler.processGesture(e,"end"),oe.mouseup.call(this,e),+new Date-+this.__lastTouchMomentaf||e<-af}var lr=[],qr=[],Wo=vn(),Uo=Math.abs,eo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[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 t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(nf(n),this.invTransform=null);return}n=n||vn(),r?this.getLocalTransform(n):nf(n),t&&(r?Qn(n,t,n):Ov(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(lr);var n=lr[0]<0?-1:1,i=lr[1]<0?-1:1,a=((lr[0]-n)*r+n)/lr[0]||0,o=((lr[1]-i)*r+i)/lr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||vn(),to(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||vn(),Qn(qr,t.invTransform,r),r=qr);var n=this.originX,i=this.originY;(n||i)&&(Wo[4]=n,Wo[5]=i,Qn(qr,r,Wo),qr[4]-=n,qr[5]-=i,r=qr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Ke(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ke(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Uo(t[0]-1)>1e-10&&Uo(t[3]-1)>1e-10?Math.sqrt(Uo(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){J0(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,y=i+u;r[4]=-d*a-c*y*o,r[5]=-y*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&o0(r,r,l),r[4]+=n+f,r[5]+=i+h,r},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}(),li=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function J0(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function ec(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=Gr(n[0],r.width),l+=Gr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var Yo="__zr_normal__",$o=li.concat(["ignore"]),j0=je(li,function(e,t){return e[t]=!0,e},{ignore:!1}),Zr={},ty=new q(0,0,0,0),Wu=function(){function e(t){this.id=Lv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(r),n.position!=null){var f=ty;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Zr,n,f):ec(Zr,n,f),a.x=Zr.x,a.y=Zr.y,o=Zr.align,s=Zr.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Gr(h[0],f.width),v=Gr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,_=void 0,m=void 0;y&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||_!==p.stroke||m!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=g,p.stroke=_,p.autoStroke=m,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Wt,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nu:ru},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&he(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Si(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(N(t))for(var n=t,i=nt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Yo,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Yo,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Bu("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wt),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wt)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=it(i,t),o=it(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var c=0;c0||i.force&&!o.length){var M=void 0,C=void 0,L=void 0;if(s){C={},c&&(M={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=it(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=it(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}function vt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return U(e)?fy(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Yt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),oc),e=(+e).toFixed(t),r?e:+e}function rC(e){return e.sort(function(t,r){return t-r}),e}function ke(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return hy(e)}function hy(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function vy(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function nC(e,t){var r=je(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=B(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=B(i,function(v){return Math.floor(v)}),s=je(o,function(v,d){return v+d},0),u=B(i,function(v,d){return v-o[d]});sl&&(l=u[h],f=h);++o[f],u[f]=0,++s}return B(o,function(v){return v/n})}function cy(e,t){var r=Math.max(ke(e),ke(t)),n=e+t;return r>oc?n:Yt(n,r)}var iC=9007199254740991;function aC(e){var t=Math.PI*2;return(e%t+t)%t}function oC(e){return e>-lf&&e=10&&t++,t}function sc(e,t){var r=Uu(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function sC(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function uC(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&it(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var Gy=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Vy=hi(Gy),Wy=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Vy(this,t,r)},e}(),au=new mi(50);function Uy(e){if(typeof e=="string"){var t=au.get(e);return t&&t.image}else return e}function _c(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=au.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!ao(t)&&a.pending.push(o)):(t=_n.loadImage(e,gf,gf),t.__zrImageSrc=e,au.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function gf(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=Ut(r,t);return l>s&&(r="",l=0),s=e-l,i.ellipsis=r,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Sc(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ut(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?$y(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ut(e,n)}return e===""&&(e=t.placeholder),e}function $y(e,t,r,n){for(var i=0,a=0,o=e.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(e&&a&&f!=null)for(var y=mc(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&Qo(r,e.substring(s,l),t,o),Qo(r,u[2],t,o,u[1]),s=Ko.lastIndex}si){T>0?(_.tokens=_.tokens.slice(0,T),p(_,S,m),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break t}var I=x.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")w.percentWidth=I,f.push(w),w.contentWidth=Ut(w.text,L);else{if(R){var P=x.backgroundColor,A=P&&P.image;A&&(A=Uy(A),ao(A)&&(w.width=Math.max(w.width,A.width*D/A.height)))}var E=d&&n!=null?n-S:null;E!=null&&E0&&d+n.accumWidth>n.width&&(f=t.split(` `),l=!0),n.accumWidth=d}else{var y=wc(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}else f=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Jy=je(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function jy(e){return Qy(e)?!!Jy[e]:!0}function wc(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;hr:i+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var ou="__zr_style_"+Math.round(Math.random()*10),Br={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Br[ou]=!0;var _f=["z","z2","invisible"],t_=["invisible"],e_=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=nt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(ki[0]=es(i)*r+e,ki[1]=ts(i)*n+t,Fi[0]=es(a)*r+e,Fi[1]=ts(a)*n+t,l(s,ki,Fi),f(u,ki,Fi),i=i%hr,i<0&&(i=i+hr),a=a%hr,a<0&&(a=a+hr),i>a&&!o?a+=hr:ii&&(Bi[0]=es(v)*r+e,Bi[1]=ts(v)*n+t,l(s,Bi,s),f(u,Bi,u))}var Q={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vr=[],cr=[],ye=[],Ve=[],_e=[],me=[],rs=Math.min,ns=Math.max,dr=Math.cos,pr=Math.sin,Re=Math.abs,su=Math.PI,Xe=su*2,is=typeof Float32Array<"u",Rn=[];function as(e){var t=Math.round(e/su*1e8)/1e8;return t%2*su}function o_(e,t){var r=as(e[0]);r<0&&(r+=Xe);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Xe?i=r+Xe:t&&r-i>=Xe?i=r-Xe:!t&&r>i?i=r+(Xe-as(r-i)):t&&r0&&(this._ux=Re(n/Pa/t)||0,this._uy=Re(n/Pa/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,r){return this._drawPendingPt(),this.addData(Q.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Re(t-this._xi),i=Re(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Q.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Q.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Q.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Rn[0]=i,Rn[1]=a,o_(Rn,o),i=Rn[0],a=Rn[1];var s=a-i;return this.addData(Q.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=dr(a)*n+t,this._yi=pr(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Q.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Q.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&is&&(this.data=new Float32Array(r));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ye[0]=ye[1]=_e[0]=_e[1]=Number.MAX_VALUE,Ve[0]=Ve[1]=me[0]=me[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Re(m)>i||c===r-1)&&(y=Math.sqrt(_*_+m*m),a=p,o=g);break}case Q.C:{var S=t[c++],T=t[c++],p=t[c++],g=t[c++],w=t[c++],x=t[c++];y=w0(a,o,S,T,p,g,w,x,10),a=w,o=x;break}case Q.Q:{var S=t[c++],T=t[c++],p=t[c++],g=t[c++];y=b0(a,o,S,T,p,g,10),a=p,o=g;break}case Q.A:var M=t[c++],C=t[c++],L=t[c++],D=t[c++],I=t[c++],R=t[c++],P=R+I;c+=1,d&&(s=dr(I)*L+M,u=pr(I)*D+C),y=ns(L,D)*rs(Xe,Math.abs(R)),a=dr(P)*L+M,o=pr(P)*D+C;break;case Q.R:{s=a=t[c++],u=o=t[c++];var A=t[c++],E=t[c++];y=A*2+E*2;break}case Q.Z:{var _=s-a,m=u-o;y=Math.sqrt(_*_+m*m),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,y,p=0,g=0,_,m=0,S,T;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,_=r*y,!_))return;t:for(var w=0;w0&&(t.lineTo(S,T),m=0),x){case Q.M:s=l=n[w++],u=f=n[w++],t.moveTo(l,f);break;case Q.L:{h=n[w++],c=n[w++];var C=Re(h-l),L=Re(c-f);if(C>i||L>a){if(v){var D=d[g++];if(p+D>_){var I=(_-p)/D;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}p+=D}t.lineTo(h,c),l=h,f=c,m=0}else{var R=C*C+L*L;R>m&&(S=h,T=c,m=R)}break}case Q.C:{var P=n[w++],A=n[w++],E=n[w++],Z=n[w++],z=n[w++],F=n[w++];if(v){var D=d[g++];if(p+D>_){var I=(_-p)/D;Da(l,P,E,z,I,vr),Da(f,A,Z,F,I,cr),t.bezierCurveTo(vr[1],cr[1],vr[2],cr[2],vr[3],cr[3]);break t}p+=D}t.bezierCurveTo(P,A,E,Z,z,F),l=z,f=F;break}case Q.Q:{var P=n[w++],A=n[w++],E=n[w++],Z=n[w++];if(v){var D=d[g++];if(p+D>_){var I=(_-p)/D;La(l,P,E,I,vr),La(f,A,Z,I,cr),t.quadraticCurveTo(vr[1],cr[1],vr[2],cr[2]);break t}p+=D}t.quadraticCurveTo(P,A,E,Z),l=E,f=Z;break}case Q.A:var Y=n[w++],ot=n[w++],et=n[w++],St=n[w++],$t=n[w++],Ge=n[w++],er=n[w++],rr=!n[w++],Yr=et>St?et:St,Gt=Re(et-St)>.001,pt=$t+Ge,V=!1;if(v){var D=d[g++];p+D>_&&(pt=$t+Ge*(_-p)/D,V=!0),p+=D}if(Gt&&t.ellipse?t.ellipse(Y,ot,et,St,er,$t,pt,rr):t.arc(Y,ot,Yr,$t,pt,rr),V)break t;M&&(s=dr($t)*et+Y,u=pr($t)*St+ot),l=dr(pt)*et+Y,f=pr(pt)*St+ot;break;case Q.R:s=l=n[w],u=f=n[w+1],h=n[w++],c=n[w++];var X=n[w++],nr=n[w++];if(v){var D=d[g++];if(p+D>_){var Ct=_-p;t.moveTo(h,c),t.lineTo(h+rs(Ct,X),c),Ct-=X,Ct>0&&t.lineTo(h+X,c+rs(Ct,nr)),Ct-=nr,Ct>0&&t.lineTo(h+ns(X-Ct,0),c+nr),Ct-=X,Ct>0&&t.lineTo(h,c+ns(nr-Ct,0));break t}p+=D}t.rect(h,c,X,nr);break;case Q.Z:if(v){var D=d[g++];if(p+D>_){var I=(_-p)/D;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}p+=D}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Q,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Vr=s_;function Kr(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+h&&f>n+h&&f>a+h&&f>s+h||fe+h&&l>r+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ue+l&&s>r+l&&s>i+l||sr||f+li&&(i+=Pn);var c=Math.atan2(u,s);return c<0&&(c+=Pn),c>=n&&c<=i||c+Pn>=n&&c+Pn<=i}function Ae(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var We=Vr.CMD,gr=Math.PI*2,h_=1e-4;function v_(e,t){return Math.abs(e-t)t&&l>n&&l>a&&l>s||l1&&c_(),v=yt(t,n,a,s,Kt[0]),c>1&&(d=yt(t,n,a,s,Kt[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=bt(t,n,a,l),c=0;cr||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Lt[0]=-u,Lt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=gr-1e-4){n=0,i=gr;var f=a?1:-1;return o>=Lt[0]+e&&o<=Lt[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=gr,i+=gr);for(var c=0,v=0;v<2;v++){var d=Lt[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=gr+y),(y>=n&&y<=i||y+gr>=n&&y+gr<=i)&&(y>Math.PI/2&&y1&&(r||(s+=Ae(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),y){case We.M:f=a[d++],h=a[d++],u=f,l=h;break;case We.L:if(r){if(Kr(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Ae(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case We.C:if(r){if(u_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=d_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case We.Q:if(r){if(l_(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=p_(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case We.A:var g=a[d++],_=a[d++],m=a[d++],S=a[d++],T=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(T)*m+g,v=Math.sin(T)*S+_,p?(f=c,h=v):s+=Ae(u,l,c,v,n,i);var M=(n-g)*S/m+g;if(r){if(f_(g,_,S,T,T+w,x,t,M,i))return!0}else s+=g_(g,_,S,T,T+w,x,M,i);u=Math.cos(T+w)*m+g,l=Math.sin(T+w)*S+_;break;case We.R:f=u=a[d++],h=l=a[d++];var C=a[d++],L=a[d++];if(c=f+C,v=h+L,r){if(Kr(f,h,c,h,t,n,i)||Kr(c,h,c,v,t,n,i)||Kr(c,v,f,v,t,n,i)||Kr(f,v,f,h,t,n,i))return!0}else s+=Ae(c,h,c,v,n,i),s+=Ae(f,v,f,h,n,i);break;case We.Z:if(r){if(Kr(u,l,f,h,t,n,i))return!0}else s+=Ae(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!v_(l,h)&&(s+=Ae(u,l,f,h,n,i)||0),s!==0}function y_(e,t,r){return Tc(e,0,!1,t,r)}function __(e,t,r,n){return Tc(e,t,!0,r,n)}var bc=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Br),m_={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oo.style)},os=li.concat(["invisible","culling","z","z2","zlevel","parent"]),S_=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ru:n>.2?Q0:nu}else if(r)return nu}return ru},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(U(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ia(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&sn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),__(s,u/l,r,n)))return!0}if(this.hasFill())return y_(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=sn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:O(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&sn)},t.prototype.createStyle=function(r){return ja(bc,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=O({},i.shape),O(l,n.shape)):(l=O({},a?this.shape:i.shape),O(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=O({},this.shape);for(var f={},h=nt(l),c=0;c0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ja(w_,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=tc(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(bi);Mc.prototype.type="tspan";const uu=Mc;var T_=ft({x:0,y:0},Br),b_={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oo.style)};function M_(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Cc=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ja(T_,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=M_(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return b_},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new q(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(bi);Cc.prototype.type="image";const wn=Cc;function C_(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var fn=Math.round;function xc(e,t,r){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(fn(n*2)===fn(i*2)&&(e.x1=e.x2=Pr(n,s,!0)),fn(a*2)===fn(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function Dc(e,t,r){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(n,s,!0),e.y=Pr(i,s,!0),e.width=Math.max(Pr(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(i+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var n=fn(e*2);return(n+fn(t))%2===0?n/2:(n+(r?1:-1))/2}var x_=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),D_={},Lc=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new x_},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Dc(D_,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?C_(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(tt);Lc.prototype.type="rect";const Be=Lc;var bf={fill:"#000"},Mf=2,L_={style:ft({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},oo.style)},Ic=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=bf,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),R=o.calculatedLineHeight,P=0;P=0&&(P=w[R],P.align==="right");)this._placeToken(P,r,M,g,I,"right",m),C-=P.width,I-=P.width,R--;for(D+=(a-(D-p)-(_-I)-C)/2;L<=R;)P=w[L],this._placeToken(P,r,M,g,D+P.width/2,"center",m),D+=P.width,L++;g+=M}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&ss(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Rf(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(uu),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,_=!1,m=0,S=If("fill"in l?l.fill:"fill"in n?n.fill:(_=!0,g.fill)),T=Lf("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!g.autoStroke||_)?(m=Mf,g.stroke):null),w=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,w&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||zr,p.opacity=la(l.opacity,n.opacity,1),xf(p,l),T&&(p.lineWidth=la(l.lineWidth,n.lineWidth,m),p.lineDash=$(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=T),S&&(p.fill=S);var x=r.contentWidth,M=r.contentHeight;y.setBoundingRect(new q($n(p.x,x,p.textAlign),un(p.y,M,p.textBaseline),x,M))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,y,p;if(c||r.lineHeight||l&&f){y=this._getOrCreateChild(Be),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(c){var _=y.style;_.fill=u||null,_.fillOpacity=$(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(wn),p.onload=function(){d.dirtyStyle()};var m=p.style;m.image=u.image,m.x=i,m.y=a,m.width=o,m.height=s}if(l&&f){var _=y.style;_.lineWidth=l,_.stroke=f,_.strokeOpacity=$(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=la(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return E_(r)&&(n=[r.fontStyle,r.fontWeight,P_(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Oe(n)||r.textFont||r.font},t}(bi),I_={left:!0,right:1,center:1},R_={top:1,bottom:1,middle:1},Cf=["fontStyle","fontWeight","fontSize","fontFamily"];function P_(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Ou+"px":e+"px"}function xf(e,t){for(var r=0;r=0,a=!1;if(e instanceof tt){var o=Rc(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Qr(s)||Qr(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=O({},n),l=O({},l),l.fill=s):!Qr(l.fill)&&Qr(s)?(a=!0,n=O({},n),l=O({},l),l.fill=ql(s)):!Qr(l.stroke)&&Qr(u)&&(a||(n=O({},n),l=O({},l)),l.stroke=ql(u)),n.style=l}}if(n&&n.z2==null){a||(n=O({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:k_)}return n}function G_(e,t,r){if(r&&r.z2==null){r=O({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:F_)}return r}function V_(e,t,r){var n=it(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:z_(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=O({},r),o=O({opacity:n?i:a.opacity*.1},o),r.style=o),r}function us(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return H_(this,e,t,r);if(e==="blur")return V_(this,e,r);if(e==="select")return G_(this,e,r)}return r}function W_(e){e.stateProxy=us;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=us),r&&(r.stateProxy=us)}function kf(e,t){!Bc(e,t)&&!e.__highByOuter&&ze(e,Pc)}function Ff(e,t){!Bc(e,t)&&!e.__highByOuter&&ze(e,Ec)}function lu(e,t){e.__highByOuter|=1<<(t||0),ze(e,Pc)}function fu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ze(e,Ec)}function U_(e){ze(e,qu)}function Oc(e){ze(e,Ac)}function kc(e){ze(e,B_)}function Fc(e){ze(e,N_)}function Bc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Nc(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=$u(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Ac(l)}),s&&r.push(a)),o.isBlured=!1}),b(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function hu(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function K_(e,t,r){zc(e,!0),ze(e,W_),J_(e,t,r)}function Q_(e){zc(e,!1)}function yC(e,t,r,n){n?Q_(e):K_(e,t,r)}function J_(e,t,r){var n=_t(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Nf=["emphasis","blur","select"],j_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _C(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=ls(d),s*=ls(d));var y=(i===a?-1:1)*ls((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=y*o*v/s,g=y*-s*c/o,_=(e+r)/2+zi(h)*p-Ni(h)*g,m=(t+n)/2+Ni(h)*p+zi(h)*g,S=Vf([1,0],[(c-p)/o,(v-g)/s]),T=[(c-p)/o,(v-g)/s],w=[(-1*c-p)/o,(-1*v-g)/s],x=Vf(T,w);if(pu(T,w)<=-1&&(x=En),pu(T,w)>=1&&(x=0),x<0){var M=Math.round(x/En*1e6)/1e6;x=En*2+M%2*En}f.addData(l,_,m,o,s,S,x,h,a)}var im=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,am=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function om(e){var t=new Vr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Vr.CMD,u=e.match(im);if(!u)return t;for(var l=0;lP*P+A*A&&(M=L,C=D),{cx:M,cy:C,x0:-f,y0:-h,x1:M*(i/T-1),y1:C*(i/T-1)}}function dm(e){var t;if(k(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function pm(e,t){var r,n=Xn(t.r,0),i=Xn(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Uf(l-u),d=v>fs&&v%fs;if(d>ie&&(v=d),!(n>ie))e.moveTo(f,h);else if(v>fs-ie)e.moveTo(f+n*jr(u),h+n*yr(u)),e.arc(f,h,n,u,l,!c),i>ie&&(e.moveTo(f+i*jr(l),h+i*yr(l)),e.arc(f,h,i,l,u,c));else{var y=void 0,p=void 0,g=void 0,_=void 0,m=void 0,S=void 0,T=void 0,w=void 0,x=void 0,M=void 0,C=void 0,L=void 0,D=void 0,I=void 0,R=void 0,P=void 0,A=n*jr(u),E=n*yr(u),Z=i*jr(l),z=i*yr(l),F=v>ie;if(F){var Y=t.cornerRadius;Y&&(r=dm(Y),y=r[0],p=r[1],g=r[2],_=r[3]);var ot=Uf(n-i)/2;if(m=Se(ot,g),S=Se(ot,_),T=Se(ot,y),w=Se(ot,p),C=x=Xn(m,S),L=M=Xn(T,w),(x>ie||M>ie)&&(D=n*jr(l),I=n*yr(l),R=i*jr(u),P=i*yr(u),vie){var Gt=Se(g,C),pt=Se(_,C),V=Hi(R,P,A,E,n,Gt,c),X=Hi(D,I,Z,z,n,pt,c);e.moveTo(f+V.cx+V.x0,h+V.cy+V.y0),C0&&e.arc(f+V.cx,h+V.cy,Gt,wt(V.y0,V.x0),wt(V.y1,V.x1),!c),e.arc(f,h,n,wt(V.cy+V.y1,V.cx+V.x1),wt(X.cy+X.y1,X.cx+X.x1),!c),pt>0&&e.arc(f+X.cx,h+X.cy,pt,wt(X.y1,X.x1),wt(X.y0,X.x0),!c))}else e.moveTo(f+A,h+E),e.arc(f,h,n,u,l,!c);if(!(i>ie)||!F)e.lineTo(f+Z,h+z);else if(L>ie){var Gt=Se(y,L),pt=Se(p,L),V=Hi(Z,z,D,I,i,-pt,c),X=Hi(A,E,R,P,i,-Gt,c);e.lineTo(f+V.cx+V.x0,h+V.cy+V.y0),L0&&e.arc(f+V.cx,h+V.cy,pt,wt(V.y0,V.x0),wt(V.y1,V.x1),!c),e.arc(f,h,i,wt(V.cy+V.y1,V.cx+V.x1),wt(X.cy+X.y1,X.cx+X.x1),c),Gt>0&&e.arc(f+X.cx,h+X.cy,Gt,wt(X.y1,X.x1),wt(X.y0,X.x0),!c))}else e.lineTo(f+Z,h+z),e.arc(f,h,i,l,u,c)}e.closePath()}}}var gm=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}(),qc=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gm},t.prototype.buildPath=function(r,n){pm(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(tt);qc.prototype.type="sector";const Zc=qc;var ym=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Kc=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ym},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(tt);Kc.prototype.type="ring";const Qc=Kc;function _m(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c=2){if(n){var a=_m(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;smr[1]){if(s=!1,a)return s;var f=Math.abs(mr[0]-_r[1]),h=Math.abs(_r[0]-mr[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function ci(e,t,r,n,i,a){tl("update",e,t,r,n,i,a)}function Oa(e,t,r,n,i,a){tl("enter",e,t,r,n,i,a)}function dn(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Xf(e){return!e.isGroup}function qm(e){return e.shape!=null}function Zm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Xf(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qm(o)&&(s.shape=O({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Xf(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),ci(o,u,r,_t(o).dataIndex)}}})}function Km(e,t){return B(e,function(r){var n=r[0];n=ka(n,t.x),n=Fa(n,t.x+t.width);var i=r[1];return i=ka(i,t.y),i=Fa(i,t.y+t.height),[n,i]})}function Qm(e,t){var r=ka(e.x,t.x),n=Fa(e.x+e.width,t.x+t.width),i=ka(e.y,t.y),a=Fa(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Jm(e,t,r){var n=O({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new wn(n)):el(e.replace("path://",""),n,r,"center")}function jm(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=hs(v,d,f,h)/c;return!(p<0||p>1)}function hs(e,t,r,n){return e*n-r*t}function t1(e){return e<=1e-6&&e>=-1e-6}function e1(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=U(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&b(nt(u),function(f){Hr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=_t(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ft({content:n,formatterParams:s},i)}}function qf(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function dd(e,t){if(e)if(k(e))for(var r=0;r=0&&s.push(u)}),s}}function DC(e,t){return st(st({},e,!0),t,!0)}const g1={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:". "}}}},y1={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ba="ZH",rl="EN",pn=rl,Sa={},nl={},_d=rt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||pn).toUpperCase();return e.indexOf(Ba)>-1?Ba:pn}():pn;function md(e,t){e=e.toUpperCase(),nl[e]=new Ne(t),Sa[e]=t}function _1(e){if(U(e)){var t=Sa[e.toUpperCase()]||{};return e===Ba||e===rl?j(t):st(j(t),j(Sa[pn]),!1)}else return st(j(e),j(Sa[pn]),!1)}function m1(e){return nl[e]}function S1(){return nl[pn]}md(rl,g1);md(Ba,y1);var il=1e3,al=il*60,ri=al*60,Jt=ri*24,eh=Jt*365,qn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wi="{yyyy}-{MM}-{dd}",rh={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wi,hour:Wi+" "+qn.hour,minute:Wi+" "+qn.minute,second:Wi+" "+qn.second,millisecond:qn.none},ds=["year","month","day","hour","minute","second","millisecond"],Sd=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function It(e,t){return e+="","0000".substr(0,t-e.length)+e}function gn(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 w1(e){return e===gn(e)}function T1(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ol(e,t,r,n){var i=xe(e),a=i[sl(r)](),o=i[yn(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[co(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[di(r)](),h=(f-1)%12+1,c=i[po(r)](),v=i[go(r)](),d=i[yo(r)](),y=n instanceof Ne?n:m1(n||_d)||S1(),p=y.getModel("time"),g=p.get("month"),_=p.get("monthAbbr"),m=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,It(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,It(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,It(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,m[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,It(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,It(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,It(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,It(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,It(d,3)).replace(/{S}/g,d+"")}function b1(e,t,r,n,i){var a=null;if(U(r))a=r;else if(K(r))a=r(e.value,t,{level:e.level});else{var o=O({},qn);if(e.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(k(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return ol(new Date(e.value),a,i,n)}function wd(e,t){var r=xe(e),n=r[yn(t)]()+1,i=r[co(t)](),a=r[di(t)](),o=r[po(t)](),s=r[go(t)](),u=r[yo(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function nh(e,t,r){var n=at(e)?xe(e):e;switch(t=t||wd(e,r),t){case"year":return n[sl(r)]();case"half-year":return n[yn(r)]()>=6?1:0;case"quarter":return Math.floor((n[yn(r)]()+1)/4);case"month":return n[yn(r)]();case"day":return n[co(r)]();case"half-day":return n[di(r)]()/24;case"hour":return n[di(r)]();case"minute":return n[po(r)]();case"second":return n[go(r)]();case"millisecond":return n[yo(r)]()}}function sl(e){return e?"getUTCFullYear":"getFullYear"}function yn(e){return e?"getUTCMonth":"getMonth"}function co(e){return e?"getUTCDate":"getDate"}function di(e){return e?"getUTCHours":"getHours"}function po(e){return e?"getUTCMinutes":"getMinutes"}function go(e){return e?"getUTCSeconds":"getSeconds"}function yo(e){return e?"getUTCMilliseconds":"getMilliseconds"}function M1(e){return e?"setUTCFullYear":"setFullYear"}function Td(e){return e?"setUTCMonth":"setMonth"}function bd(e){return e?"setUTCDate":"setDate"}function Md(e){return e?"setUTCHours":"setHours"}function Cd(e){return e?"setUTCMinutes":"setMinutes"}function xd(e){return e?"setUTCSeconds":"setSeconds"}function Dd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ld(e){if(!gy(e))return U(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function LC(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Id=Iv;function _u(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Oe(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?xe(e):e;if(isNaN(+u)){if(s)return"-"}else return ol(u,n,r)}if(t==="ordinal")return Hs(e)?i(e):at(e)&&a(e)?e+"":"-";var l=tr(e);return a(l)?Ld(l):Hs(e)?i(e):typeof e=="boolean"?e+"":"-"}var ih=["a","b","c","d","e","f","g"],ps=function(e,t){return"{"+e+(t==null?"":t)+"}"};function C1(e,t,r){k(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function RC(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd yyyy`);var n=xe(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return e=e.replace("MM",It(o,2)).replace("M",o).replace("yyyy",a).replace("yy",It(a%100+"",2)).replace("dd",It(s,2)).replace("d",s).replace("hh",It(u,2)).replace("h",u).replace("mm",It(l,2)).replace("m",l).replace("ss",It(f,2)).replace("s",f).replace("SSS",It(h,3)),e}function D1(e,t){return t=t||"transparent",U(e)?e:N(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function PC(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wa=b,L1=["left","right","top","bottom","width","height"],Er=[["width","left","right"],["height","top","bottom"]];function ul(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>n||u.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var EC=ul;kr(ul,"vertical");kr(ul,"horizontal");function AC(e,t,r){var n=t.width,i=t.height,a=vt(e.left,n),o=vt(e.top,i),s=vt(e.right,n),u=vt(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=i),r=Id(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(u-o-r[0]-r[2],0)}}function I1(e,t,r){r=Id(r||0);var n=t.width,i=t.height,a=vt(e.left,n),o=vt(e.top,i),s=vt(e.right,n),u=vt(e.bottom,i),l=vt(e.width,n),f=vt(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new q(a+r[3],o+r[0],l,f);return d.margin=r,d}function OC(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new q(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=I1(ft({width:l.width,height:l.height},t),r,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===e&&e.markRedraw(),!0}function kC(e,t){return e[Er[t][0]]!=null||e[Er[t][1]]!=null&&e[Er[t][2]]!=null}function Na(e){var t=e.layoutMode||e.constructor.layoutMode;return N(t)?t:t?{type:t}:null}function za(e,t,r){var n=r&&r.ignoreSize;!k(n)&&(n=[n,n]);var i=o(Er[0],0),a=o(Er[1],1);l(Er[0],e,i),l(Er[1],e,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(wa(f,function(m){d[m]=e[m]}),wa(f,function(m){s(t,m)&&(c[m]=d[m]=t[m]),u(c,m)&&v++,u(d,m)&&y++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return c;for(var g=0;g=0;u--)s=st(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return no(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ne);yc(Tn,Ne);io(Tn);d1(Tn);p1(Tn,E1);function E1(e){var t=[];return b(Tn.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=B(t,function(r){return be(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}const ht=Tn;var Pd="";typeof navigator<"u"&&(Pd=navigator.platform||"");var tn="rgba(0, 0, 0, 0.2)";const A1={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Pd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Ed=W(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ee="original",Ht="arrayRows",ge="objectRows",Ie="keyedColumns",Je="typedArray",Ad="unknown",Ce="column",bn="row",gt={Must:1,Might:2,Not:3},Od=ct();function O1(e){Od(e).datasetMap=W()}function k1(e,t,r){var n={},i=ll(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=Od(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),b(e,function(y,p){var g=N(y)?y:e[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});b(e,function(y,p){var g=y.name,_=d(y);if(f==null){var m=c.valueWayDim;v(n[g],m,_),v(o,m,_),c.valueWayDim+=_}else if(f===p)v(n[g],0,_),v(a,0,_);else{var m=c.categoryWayDim;v(n[g],m,_),v(o,m,_),c.categoryWayDim+=_}});function v(y,p,g){for(var _=0;_t)return e[n];return e[r-1]}function Bd(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:z1(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function H1(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ui,An,oh,sh="\0_ec_inner",G1=1,Nd=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ne(a),this._locale=new Ne(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=fh(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,fh(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?oh(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&b(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=W(),l=n&&n.replaceMergeMainTypeMap;O1(this),b(r,function(h,c){h!=null&&(ht.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?j(h):st(i[c],h,!0))}),l&&l.each(function(h,c){ht.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var c=B1(this,h,mt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=wy(v,c,d);Ly(y,h,ht),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],_=0,m;b(y,function(S,T){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var M=h==="series",C=ht.getClass(h,S.keyInfo.subType,!M);if(!C)return;if(h==="tooltip"){if(m)return;m=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var L=O({componentIndex:T},S.keyInfo);w=new C(x,this,this,L),O(w,L),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),_++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,_),h==="series"&&Ui(this)}this._seriesIndices||Ui(this)},t.prototype.getOption=function(){var r=j(this.option);return b(r,function(n,i){if(ht.hasClass(i)){for(var a=mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!fi(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[sh],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function J1(e,t){return e.join(",")===t.join(",")}const j1=q1;var re=b,pi=N,hh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ys(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=hh.length;r=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var _=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&_>0||u==="negative"&&_<0||u==="samesign"&&c>=0&&_>0||u==="samesign"&&c<=0&&_<0){c=cy(c,_),y=_;break}}}return n[0]=c,n[1]=y,n})})}var mo=function(){function e(t){this.data=t.data||(t.sourceFormat===Ie?{}:[]),this.sourceFormat=t.sourceFormat||Ad,this.seriesLayoutBy=t.seriesLayoutBy||Ce,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ny&&(y=m)}v[0]=d,v[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};_h=(t={},t[Ht+"_"+Ce]={pure:!0,appendData:a},t[Ht+"_"+bn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ge]={pure:!0,appendData:a},t[Ie]={pure:!0,appendData:function(o){var s=this._data;b(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ee]={appendData:a},t[Je]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return Ha(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function zC(e){var t,r;return N(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ni(e){return new yS(e)}var yS=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=e?null:ut},gte:function(e,t){return e>=t}},mS=function(){function e(t,r){if(!at(r)){var n="";At(n)}this._opFn=Zd[t],this._rvalFloat=tr(r)}return e.prototype.evaluate=function(t){return at(t)?this._opFn(t,this._rvalFloat):this._opFn(tr(t),this._rvalFloat)},e}(),SS=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=at(t)?t:tr(t),i=at(r)?r:tr(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=U(t),u=U(r);s&&(n=u?t:0),u&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),wS=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=tr(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=tr(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function GC(e,t){return e==="eq"||e==="ne"?new wS(e==="eq",t):Hr(Zd,e)?new mS(e,t):null}var TS=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ta(t,r)},e}();function bS(e,t){var r=new TS,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ce&&At(o);var s=[],u={},l=e.dimensionsDefine;if(l)b(l,function(y,p){var g=y.name,_={index:p,name:g,displayName:y.displayName};if(s.push(_),g!=null){var m="";Hr(u,g)&&At(m),u[g]=_}});else for(var f=0;f65535?PS:ES}function en(){return[1/0,-1/0]}function AS(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Mh(e,t,r,n,i){var a=Jd[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=B(o,function(_){return _.property}),f=0;fg[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&_<=c||isNaN(_))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var p=v[i[0]],m=v[i[1]],S=t[i[1]][0],T=t[i[1]][1],g=0;g=h&&_<=c||isNaN(_))&&(w>=S&&w<=T||isNaN(w))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g=h&&_<=c||isNaN(_))&&(u[l++]=x)}else for(var g=0;gt[L][1])&&(M=!1)}M&&(u[l++]=r.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(kn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}D>0&&Df-d&&(u=f-d,s.length=u);for(var y=0;yh[1]&&(h[1]=g),c[v++]=_}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ta(r[a],this._dimensions[a])}Ss={arrayRows:t,objectRows:function(r,n,i,a){return Ta(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ta(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),jd=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,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 t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Yi(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=zt(s)?Je:ee,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=$(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=$(h.sourceHeader,c.sourceHeader),y=$(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;i=p?[Su(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var g=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var m=g.get("source",!0);i=[Su(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&xh(a)}var o,s=[],u=[];return b(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&xh(h),s.push(f),u.push(l._getVersionSign())}),n?o=IS(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[lS(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return b(e.blocks,function(i){var a=np(i);a>=t&&(t=a+ +(n&&(!a||bu(i)&&!i.noHeader)))}),t}return 0}function FS(e,t,r,n){var i=t.noHeader,a=NS(np(t)),o=[],s=t.blocks||[];ce(!s||k(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Hr(l,u)){var f=new SS(l[u],null);s.sort(function(d,y){return f.evaluate(d.sortParam,y.sortParam)})}else u==="seriesDesc"&&s.reverse()}b(s,function(d,y){var p=t.valueFormatter,g=rp(d)(p?O(O({},e),{valueFormatter:p}):e,d,y>0?a.html:0,n);g!=null&&o.push(g)});var h=e.renderMode==="richText"?o.join(a.richText):Mu(o.join(""),i?r:a.html);if(i)return h;var c=_u(t.header,"ordinal",e.useUTC),v=ep(n,e.renderMode).nameStyle;return e.renderMode==="richText"?ip(e,c,v)+a.richText+h:Mu('
'+Vt(c)+"
"+h,r)}function BS(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=k(S)?S:[S],B(S,function(T,w){return _u(T,k(v)?v[w]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":_u(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,p=!s&&a,g=ep(n,i),_=g.nameStyle,m=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":ip(e,c,_))+(o?"":GS(e,d,y,p,m)):Mu((s?"":h)+(a?"":zS(c,!s,_))+(o?"":HS(d,y,p,m)),r)}}function VC(e,t,r,n,i,a){if(!!e){var o=rp(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function NS(e){return{html:OS[e],richText:kS[e]}}function Mu(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function zS(e,t,r){var n=t?"margin-left:2px":"";return''+Vt(e)+""}function HS(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=k(e)?e:[e],''+B(e,function(o){return Vt(o)}).join("  ")+""}function ip(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function GS(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,a)}function VS(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return D1(n)}function WC(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var UC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=uc()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=x1({color:r,type:t,renderMode:n,markerId:i});return U(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};k(r)?b(r,function(a){return O(n,a)}):O(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function WS(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=k(s),l=VS(t,r),f,h,c,v;if(o>1||u&&!o){var d=US(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);v=f=Ha(i,r,a[0]),h=y.type}else v=f=u?s[0]:s;var p=cc(t),g=p&&t.name||"",_=i.getName(r),m=n?g:_;return Tu("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Tu("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Oe(m),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function US(e,t,r,n,i){var a=t.getData(),o=je(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?b(n,function(h){f(Ha(a,r,h),h)}):b(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Tu("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Ue=ct();function $i(e,t){return e.getName(t)||e.getId(t)}var YS="__universalTransitionEnabled",wo=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ni({count:XS,reset:qS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ue(this).sourceManager=new jd(this);a.prepareSource();var o=this.getInitialData(r,i);Lh(o,this),this.dataTask.context.data=o,Ue(this).dataBeforeProcessed=o,Dh(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Na(this),a=i?Rd(r):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),df(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&za(r,a,i)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Na(this);i&&za(this.option,r,i);var a=Ue(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Lh(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ue(this).dataBeforeProcessed=o,Dh(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!zt(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=fl.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[$i(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[YS])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){N(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},t.registerClass=function(r){return ht.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(ht);de(wo,gS);de(wo,fl);yc(wo,ht);function Dh(e){var t=e.name;cc(e)||(e.name=$S(e)||t)}function $S(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return b(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function XS(e){return e.model.getRawData().count()}function qS(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ZS}function ZS(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Lh(e,t){b(Bg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,kr(KS,t))})}function KS(e,t){var r=Cu(e);return r&&r.setOutputEnd((t||this).count()),t}function Cu(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Ga=wo;var pl=function(){function e(){this.group=new wi,this.uid=vo("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Yu(pl);io(pl);const Va=pl;function ap(){var e=ct();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var op=ct(),QS=ap(),gl=function(){function e(){this.group=new wi,this.uid=vo("viewChart"),this.renderTask=ni({plan:JS,reset:jS}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);!a||Rh(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);!a||Rh(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){dd(this.group,t)},e.markUpdateMethod=function(t,r){op(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ih(e,t,r){e&&cu(e)&&(t==="emphasis"?lu:fu)(e,r)}function Rh(e,t,r){var n=ro(e,t),i=t&&t.highlightKey!=null?tm(t.highlightKey):null;n!=null?b(mt(n),function(a){Ih(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Ih(a,r,i)})}Yu(gl);io(gl);function JS(e){return QS(e.model)}function jS(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&op(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),tw[u]}var tw={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ii=gl;var Wa="\0__throttleOriginMethod",Ph="\0__throttleRate",Eh="\0__throttleType";function sp(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function YC(e,t,r,n){var i=e[t];if(!!i){var a=i[Wa]||i,o=i[Eh],s=i[Ph];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=sp(a,r,n==="debounce"),i[Wa]=a,i[Eh]=n,i[Ph]=r}return i}}function $C(e,t){var r=e[t];r&&r[Wa]&&(r.clear&&r.clear(),e[t]=r[Wa])}var Ah=ct(),Oh={itemStyle:hi(yd,!0),lineStyle:hi(gd,!0)},ew={lineStyle:"stroke",itemStyle:"fill"};function up(e,t){var r=e.visualStyleMapper||Oh[t];return r||(console.warn("Unknown style type '"+t+"'."),Oh.itemStyle)}function lp(e,t){var r=e.visualDrawType||ew[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var rw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=up(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=lp(e,n),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),p=O({},o);p[u]=f(y),v.setItemVisual(d,"style",p)}}}},Fn=new Ne,nw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=up(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Fn.option=u[n];var l=i(Fn),f=o.ensureUniqueItemVisual(s,"style");O(f,l),Fn.option.decal&&(o.setItemVisual(s,"decal",Fn.option.decal),Fn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iw={performRawSeries:!0,overallReset:function(e){var t=W();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Ah(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ah(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=lp(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},Xi=Math.PI;function aw(e,t){t=t||{},ft(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new wi,n=new Be({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new vi({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Be({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ju({shape:{startAngle:-Xi/2,endAngle:-Xi/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xi*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xi*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var ow=function(){function e(t,r,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=W();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;b(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ce(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;b(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var y=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var _=o.getPerformArgs(p,i.block);_.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(_)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=W(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ni({plan:hw,reset:vw,count:dw}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ni({reset:sw});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=W(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";ce(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,b(n.getSeries(),d));function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(c=!0,ni({reset:uw,onDirty:fw})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return K(t)&&(t={overallReset:t,seriesType:pw(t)}),t.uid=vo("stageHandler"),r&&(t.visualType=r),t},e}();function sw(e){e.overallReset(e.ecModel,e.api,e.payload)}function uw(e){return e.overallProgress&&lw}function lw(){this.agent.dirty(),this.getDownstream().dirty()}function fw(){this.agent&&this.agent.dirty()}function hw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=mt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,function(r,n){return fp(n)}):cw}var cw=fp(0);function fp(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),xu=["symbol","symbolSize","symbolRotate","symbolOffset"],Nh=xu.concat(["symbolKeepAspect"]),mw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Ar(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Lu(e,t,r){for(var n=t.type==="radial"?Nw(e,t,r):Bw(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:at(e)?[e]:k(e)?e:null}function pp(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Hw(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=B(r,function(a){return a/i}),n/=i)}return[r,n]}var Gw=new Vr(!0);function Ya(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function zh(e){return typeof e=="string"&&e!=="none"}function $a(e){var t=e.fill;return t!=null&&t!=="none"}function Hh(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gh(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Iu(e,t,r){var n=_c(t.image,t.__image,r);if(ao(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*fa),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Vw(e,t,r,n){var i,a=Ya(r),o=$a(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||Gw,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,_=void 0,m=void 0,S=void 0,T=void 0,w=void 0;(d||y)&&(w=t.getBoundingRect()),d&&(_=h?Lu(e,c,w):t.__canvasFillGradient,t.__canvasFillGradient=_),y&&(m=h?Lu(e,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(S=h||!t.__canvasFillPattern?Iu(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),g&&(T=h||!t.__canvasStrokePattern?Iu(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?e.fillStyle=_:p&&(S?e.fillStyle=S:o=!1),y?e.strokeStyle=m:g&&(T?e.strokeStyle=T:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var M,C;e.setLineDash&&r.lineDash&&(i=pp(t),M=i[0],C=i[1]);var L=!0;(l||h&sn)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),L=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),L&&f.rebuildPath(e,u?s:1),M&&(e.setLineDash(M),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Gh(e,r),o&&Hh(e,r)):(o&&Hh(e,r),a&&Gh(e,r))),M&&e.setLineDash([])}function Ww(e,t,r){var n=t.__image=_c(r.image,t.__image,t,t.onload);if(!(!n||!ao(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Uw(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||zr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=pp(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ya(r)&&e.strokeText(i,r.x,r.y),$a(r)&&e.fillText(i,r.x,r.y)):($a(r)&&e.fillText(i,r.x,r.y),Ya(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Vh=["shadowBlur","shadowOffsetX","shadowOffsetY"],Wh=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gp(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Bt(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Br.opacity:o}(n||t.blend!==r.blend)&&(a||(Bt(e,i),a=!0),e.globalCompositeOperation=t.blend||Br.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Tt]){if(this._disposed){this.id;return}var a,o,s;if(N(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Tt]=!0,!this._model||n){var u=new j1(this._api),l=this._theme,f=this._model=new zd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Pu);var h={seriesTransition:s,optionChanged:!0};if(i)this[Et]={silent:a,updateParams:h},this[Tt]=!1,this.getZr().wakeUp();else{try{nn(this),Ye.update.call(this,null,h)}catch(c){throw this[Et]=null,this[Tt]=!1,c}this._ssr||this._zr.flush(),this[Et]=null,this[Tt]=!1,Bn.call(this,a),Nn.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||rt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!rt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return b(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;b(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(av[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();b(oi,function(m,S){if(m.group===i){var T=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(j(r)),w=m.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:T,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,p=_n.createCanvas(),g=uf(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var _="";return b(c,function(m){var S=m.left-u,T=m.top-l;_+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Be({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),b(c,function(m){var S=new wn({style:{x:m.left*v-u,y:m.top*v-l,image:m.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Cs(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Cs(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Zo(i,r);return b(o,function(s,u){u.indexOf("Models")>=0&&b(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Zo(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?ww(s,u,n):Tw(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;b(pT,function(n){var i=function(a){var o=r.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Zi(s,function(d){var y=_t(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return u=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return u=O({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),b(ai,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),b(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),bw(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&pc(this.getDom(),ml,"");var n=this,i=n._api,a=n._model;b(n._componentsViews,function(o){o.dispose(a,i)}),b(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete oi[n.id]},t.prototype.resize=function(r){if(!this[Tt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Et]&&(a==null&&(a=this[Et].silent),i=!0,this[Et]=null),this[Tt]=!0;try{i&&nn(this),Ye.update.call(this,{type:"resize",animation:O({duration:0},r&&r.animation)})}catch(o){throw this[Tt]=!1,o}this[Tt]=!1,Bn.call(this,a),Nn.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(N(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Eu[r]){var i=Eu[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=O({},r);return n.type=ai[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(N(n)||(n={silent:!!n}),!!Xa[r.type]&&!!this._model){if(this[Tt]){this._pendingActions.push(r);return}var i=n.silent;Ds.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&rt.browser.weChat&&this._throttledZrFlush(),Bn.call(this,i),Nn.call(this,i)}},t.prototype.updateLabelLayout=function(){se.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){nn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Ms(h,!0),Ms(h,!1),c.plan()},Ms=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,_=h._api,m=0;mc.get("hoverLayerThreshold")&&!rt.node&&!rt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(y){return u(y,v,d,-1/0),!0})}}function u(h,c,v,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var _=h.childrenRef(),m=0;m<_.length;m++)d=Math.max(u(_[m],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(y&&(y.z=c,y.zlevel=v,isFinite(d)&&(y.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!dn(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),p=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(dn(g))return;if(g instanceof tt&&em(g),g.__dirty){var _=g.prevStates;_&&g.useStates(_)}if(d){g.stateTransition=p;var m=g.getTextContent(),S=g.getTextGuideLine();m&&(m.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&i(g)}})}nv=function(h){return new(function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){lu(d,y),Xt(h)},v.prototype.leaveEmphasis=function(d,y){fu(d,y),Xt(h)},v.prototype.enterBlur=function(d){U_(d),Xt(h)},v.prototype.leaveBlur=function(d){Oc(d),Xt(h)},v.prototype.enterSelect=function(d){kc(d),Xt(h)},v.prototype.leaveSelect=function(d){Fc(d),Xt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Hd))(h)},Ep=function(h){function c(v,d){for(var y=0;y=0)){ov.push(r);var a=cp.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Np(e,t){Eu[e]=t}function TT(e,t,r){var n=bp("registerMap");n&&n(e,t,r)}function jC(e){var t=bp("getMap");return t&&t(e)}var bT=LS;Ur(yl,rw);Ur(To,nw);Ur(To,iw);Ur(yl,mw);Ur(To,Sw);Ur(xp,Jw);Fp(Vd);Bp(nT,sS);Np("default",aw);Mn({type:Nr,event:Nr,update:Nr},jt);Mn({type:_a,event:_a,update:_a},jt);Mn({type:jn,event:jn,update:jn},jt);Mn({type:ma,event:ma,update:ma},jt);Mn({type:ti,event:ti,update:ti},jt);kp("light",gw);kp("dark",yw);function zn(e){return e==null?0:e.length||1}function sv(e){return e}var MT=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||sv,this._newKeyGetter=i||sv,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Hn=N,$e=B,AT=typeof Int32Array>"u"?Array:Int32Array,OT="e\0\0",uv=-1,kT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],FT=["_approximateExtent"],lv,ta,Gn,Vn,Rs,ea,Ps,BT=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;Hp(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ee;if(u&&!i.pure)for(var l=[],f=t;f0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Hn(a)&&(a=O({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Hn(r)?O(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Hn(t)?O(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;O_(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){b(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:$e(this.dimensions,this._getDimInfo,this),this.hostModel)),Rs(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!K(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Nu(arguments)))})},e.internalField=function(){lv=function(t){var r=t._invertedIndicesMap;b(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new AT(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[r]=u}}}(),e}();const NT=BT;function tx(e,t){return Up(e,t).dimensions}function Up(e,t){hl(e)||(e=vl(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=W(),a=[],o=HT(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Wp(o),u=n===e.dimensionsDefine,l=u?Vp(e):Gp(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=W(f),c=new Qd(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function HT(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return b(t,function(a){var o;N(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function GT(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var VT=function(){function e(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return e}();function WT(e){var t=e.get("coordinateSystem"),r=new VT(t),n=UT[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var UT={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Rr).models[0],a=e.getReferringComponents("yAxis",Rr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),an(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),an(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Rr).models[0];t.coordSysDims=["single"],r.set("single",i),an(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Rr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),an(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),an(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),an(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function an(e){return e.get("type")==="category"}function YT(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;$T(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(b(a,function(_,m){U(_)&&(a[m]=_={name:_}),u&&!_.isExtraCoord&&(!n&&!l&&_.ordinalMeta&&(l=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;b(a,function(_){_.coordDim===v&&y++});var p={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function $T(e){return!Hp(e.schema)}function Yp(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function XT(e,t){return Yp(e,t)?e.getCalculationInfo("stackResultDimension"):t}function qT(e,t){var r=e.get("coordinateSystem"),n=_o.get(r),i;return t&&t.coordSysDims&&(i=B(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=LT(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function ZT(e,t,r){var n,i;return r&&b(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ex(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=vl(e)):(i=n.getSource(),a=i.sourceFormat===ee);var o=WT(t),s=qT(t,o),u=r.useEncodeDefaulter,l=K(u)?u:u?kr(k1,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=Up(i,f),c=ZT(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=YT(t,{schema:h,store:v}),y=new NT(h,t);y.setCalculationInfo(d);var p=c!=null&&KT(i)?function(g,_,m,S){return S===c?m:this.defaultDimValueGetter(g,_,m,S)}:null;return y.hasItemOption=!1,y.initData(a?i:v,null,p),y}function KT(e){if(e.sourceFormat===ee){var t=QT(e.data||[]);return!k(Ti(t))}}function QT(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();io($p);const He=$p;var JT=0,jT=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++JT}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&B(n,tb);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!U(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},e}();function tb(e){return N(e)&&e.value!=null?e.value:e+""}const fv=jT;function rx(e){return e.type==="interval"||e.type==="log"}function eb(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=sc(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Xp(o),u=i.niceTickExtent=[Yt(Math.ceil(e[0]/o)*o,s),Yt(Math.floor(e[1]/o)*o,s)];return rb(u,e),i}function nx(e){var t=Math.pow(10,Uu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yt(r*t)}function Xp(e){return ke(e)+2}function hv(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function rb(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),hv(e,0,t),hv(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bo(e,t){return e>=t[0]&&e<=t[1]}function Mo(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Co(e,t){return e*(t[1]-t[0])+t[0]}var qp=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new fv({})),k(i)&&(i=new fv({categories:B(i,function(a){return N(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:U(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),bo(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Mo(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Co(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(He);He.registerClass(qp);const Zp=qp;var br=Yt,Kp=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return bo(r,this._extent)},t.prototype.normalize=function(r){return Mo(r,this._extent)},t.prototype.scale=function(r){return Co(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xp(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:br(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function jp(e){var t=ib(e),r=[];return b(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=vt(n.get("barWidth"),s),y=vt(n.get("barMaxWidth"),s),p=vt(n.get("barMinWidth")||(rg(n)?.5:1),s),g=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:_,axisKey:bl(a),stackId:Tl(n)})}),tg(r)}function tg(e){var t={};b(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return b(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=nt(a).length;s=Math.max(35-u*4,15)+"%"}var l=vt(s,o),f=vt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),b(a,function(g){var _=g.maxWidth,m=g.minWidth;if(g.width){var S=g.width;_&&(S=Math.min(S,_)),m&&(S=Math.max(S,m)),g.width=S,h-=S+f*S,c--}else{var S=v;_&&_S&&(S=m),S!==v&&(g.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;b(a,function(g,_){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;b(a,function(g,_){r[i][_]=r[i][_]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function ab(e,t,r){if(e&&t){var n=e[bl(t)];return n!=null&&r!=null?n[Tl(r)]:n}}function ax(e,t){var r=Jp(e,t),n=jp(r);b(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=Tl(i),l=n[bl(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function ox(e){return{seriesType:e,plan:ap(),reset:function(t){if(!!eg(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Yp(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=ob(i,a),d=rg(t),y=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(m,S){for(var T=m.count,w=d&&Es(T*3),x=d&&u&&Es(T*3),M=d&&Es(T),C=n.master.getRect(),L=c?C.width:C.height,D,I=S.getStore(),R=0;(D=m.next())!=null;){var P=I.get(h?p:o,D),A=I.get(s,D),E=v,Z=void 0;h&&(Z=+P-I.get(o,D));var z=void 0,F=void 0,Y=void 0,ot=void 0;if(c){var et=n.dataToPoint([P,A]);if(h){var St=n.dataToPoint([Z,A]);E=St[0]}z=E,F=et[1]+_,Y=et[0]-E,ot=g,Math.abs(Y)>>1;e[i][1]i&&(this._approxInterval=i);var s=ra.length,u=Math.min(sb(ra,this._approxInterval,0,s),s-1);this._interval=ra[u][1],this._minLevelUnit=ra[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return at(r)?r:+xe(r)},t.prototype.contain=function(r){return bo(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Mo(this.parse(r),this._extent)},t.prototype.scale=function(r){return Co(r,this._extent)},t.type="time",t}(xo),ra=[["second",il],["minute",al],["hour",ri],["quarter-day",ri*6],["half-day",ri*12],["day",Jt*1.2],["half-week",Jt*3.5],["week",Jt*7],["month",Jt*31],["quarter",Jt*95],["half-year",eh/2],["year",eh]];function ub(e,t,r,n){var i=xe(t),a=xe(r),o=function(d){return nh(i,d,n)===nh(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function lb(e,t){return e/=Jt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fb(e){var t=30*Jt;return e/=t,e>6?6:e>3?3:e>2?2:1}function hb(e){return e/=ri,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function vv(e,t){return e/=t?al:il,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function vb(e){return sc(e,!0)}function cb(e,t,r){var n=new Date(e);switch(gn(t)){case"year":case"month":n[Td(r)](0);case"day":n[bd(r)](1);case"hour":n[Md(r)](0);case"minute":n[Cd(r)](0);case"second":n[xd(r)](0),n[Dd(r)](0)}return n.getTime()}function db(e,t,r,n){var i=1e4,a=Sd,o=0;function s(L,D,I,R,P,A,E){for(var Z=new Date(D),z=D,F=Z[R]();z1&&A===0&&I.unshift({value:I[0].value-z})}}for(var A=0;A=n[0]&&_<=n[1]&&h++)}var m=(n[1]-n[0])/t;if(h>m*1.5&&c>m/1.5||(l.push(p),h>m||e===a[v]))break}f=[]}}}for(var S=dt(B(l,function(L){return dt(L,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(L){return L.length>0}),T=[],w=S.length-1,v=0;v0;)a*=10;var s=[Yt(_b(n[0]/a)*a),Yt(yb(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){si.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ne(r)/ne(this.base),bo(r,this._extent)},t.prototype.normalize=function(r){return r=ne(r)/ne(this.base),Mo(r,this._extent)},t.prototype.scale=function(r){return r=Co(r,this._extent),na(this.base,r)},t.type="log",t}(He),ig=Ml.prototype;ig.getMinorTicks=si.getMinorTicks;ig.getLabel=si.getLabel;function ia(e,t){return gb(e,ke(t))}He.registerClass(Ml);const mb=Ml;var Sb=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[Tb[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=wb[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),wb={min:"_determinedMin",max:"_determinedMax"},Tb={min:"_dataMin",max:"_dataMax"};function bb(e,t,r){var n=e.rawExtentInfo;return n||(n=new Sb(e,t,r),e.rawExtentInfo=n,n)}function aa(e,t){return t==null?null:Ma(t)?NaN:e.parse(t)}function Mb(e,t){var r=e.type,n=bb(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Jp("bar",o),u=!1;if(b(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=jp(s),f=Cb(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Cb(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=ab(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;b(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;b(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function sx(e,t){var r=t,n=Mb(e,r),i=n.extent,a=r.get("splitNumber");e instanceof mb&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function ux(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Zp({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new pb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(He.getClass(t)||xo)}}function lx(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mi(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):U(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):K(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(xb(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function xb(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function fx(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Zp?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Mi(e),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fe[1]&&(e[1]=i[1])})}var vx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),dv=[],Rb={registerPreprocessor:Fp,registerProcessor:Bp,registerPostInit:_T,registerPostUpdate:mT,registerUpdateLifecycle:Sl,registerAction:Mn,registerCoordinateSystem:ST,registerLayout:wT,registerVisual:Ur,registerTransform:bT,registerLoading:Np,registerMap:TT,registerImpl:tT,PRIORITY:vT,ComponentModel:ht,ComponentView:Va,SeriesModel:Ga,ChartView:ii,registerComponentModel:function(e){ht.registerClass(e)},registerComponentView:function(e){Va.registerClass(e)},registerSeriesModel:function(e){Ga.registerClass(e)},registerChartView:function(e){ii.registerClass(e)},registerSubTypeDefaulter:function(e,t){ht.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){uy(e,t)}};function Pb(e){if(k(e)){b(e,function(t){Pb(t)});return}it(dv,e)>=0||(dv.push(e),K(e)&&(e={install:e}),e.install(Rb))}var Eb=1e-8;function pv(e,t){return Math.abs(e-t)i&&(n=o,i=u)}if(n)return Ob(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?yv(s.exterior,i,a,r):b(s.points,function(u){yv(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new q(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function dx(e,t){return e=Fb(e),B(dt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new _v(o[0],o.slice(1)));break;case"MultiPolygon":b(i.coordinates,function(u){u[0]&&a.push(new _v(u[0],u.slice(1)))});break;case"LineString":a.push(new mv([i.coordinates]));break;case"MultiLineString":a.push(new mv(i.coordinates))}var s=new kb(n[t||"name"],a,n.cp);return s.properties=n,s})}var _i=ct();function Bb(e){return e.type==="category"?zb(e):Gb(e)}function Nb(e,t){return e.type==="category"?Hb(e,t):{ticks:B(e.scale.getTicks(),function(r){return r.value})}}function zb(e){var t=e.getLabelModel(),r=sg(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function sg(e,t){var r=ug(e,"labels"),n=Cl(t),i=lg(r,n);if(i)return i;var a,o;return K(n)?a=vg(e,n):(o=n==="auto"?Vb(e):n,a=hg(e,o)),fg(r,n,{labels:a,labelCategoryInterval:o})}function Hb(e,t){var r=ug(e,"ticks"),n=Cl(t),i=lg(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),K(n))a=vg(e,n,!0);else if(n==="auto"){var s=sg(e,e.getLabelModel());o=s.labelCategoryInterval,a=B(s.labels,function(u){return u.tickValue})}else o=n,a=hg(e,o,!0);return fg(r,n,{ticks:a,tickCategoryInterval:o})}function Gb(e){var t=e.scale.getTicks(),r=Mi(e);return{labels:B(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function ug(e,t){return _i(e)[t]||(_i(e)[t]=[])}function lg(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,y=0,p=tc(r({value:u}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,y,7)}var g=c/f,_=v/h;isNaN(g)&&(g=1/0),isNaN(_)&&(_=1/0);var m=Math.max(0,Math.floor(Math.min(g,_))),S=_i(e.model),T=e.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-m)<=1&&Math.abs(x-o)<=1&&w>m&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?m=w:(S.lastTickCount=o,S.lastAutoInterval=m,S.axisExtent0=T[0],S.axisExtent1=T[1]),m}function Ub(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function hg(e,t,r){var n=Mi(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=Lb(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&y(a[0]);for(var d=l;d<=a[1];d+=u)y(d);v&&d-u!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p})}return s}function vg(e,t,r){var n=e.scale,i=Mi(e),a=[];return b(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var Sv=[0,1],Yb=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return vy(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),wv(n,i.count())),ff(t,Sv,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),wv(n,i.count()));var a=ff(t,n,Sv,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Nb(this,r),i=n.ticks,a=B(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return $b(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=B(n,function(a){return B(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Bb(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Wb(this)},e}();function wv(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function $b(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;b(t,function(v){v.coord-=l/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Yt(v),d=Yt(d),h?v>d:vi&&(i+=Wn);var v=Math.atan2(s,o);if(v<0&&(v+=Wn),v>=n&&v<=i||v+Wn>=n&&v+Wn<=i)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,y=r*Math.sin(n)+t,p=r*Math.cos(i)+e,g=r*Math.sin(i)+t,_=(d-o)*(d-o)+(y-s)*(y-s),m=(p-o)*(p-o)+(g-s)*(g-s);return _0){t=t/180*Math.PI,le.fromArray(e[0]),J.fromArray(e[1]),ut.fromArray(e[2]),H.sub(Me,le,J),H.sub(Te,ut,J);var r=Me.len(),n=Te.len();if(!(r<.001||n<.001)){Me.scale(1/r),Te.scale(1/n);var i=Me.dot(Te),a=Math.cos(t);if(a1&&H.copy(Rt,ut),Rt.toArray(e[1])}}}}function gx(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,le.fromArray(e[0]),J.fromArray(e[1]),ut.fromArray(e[2]),H.sub(Me,J,le),H.sub(Te,ut,J);var n=Me.len(),i=Te.len();if(!(n<.001||i<.001)){Me.scale(1/n),Te.scale(1/i);var a=Me.dot(t),o=Math.cos(r);if(a=u)H.copy(Rt,ut);else{Rt.scaleAndAdd(Te,s/Math.tan(Math.PI/2-f));var h=ut.x!==J.x?(Rt.x-J.x)/(ut.x-J.x):(Rt.y-J.y)/(ut.y-J.y);if(isNaN(h))return;h<0?H.copy(Rt,J):h>1&&H.copy(Rt,ut)}Rt.toArray(e[1])}}}}function ks(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function jb(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Ws(n[0],n[1]),a=Ws(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Lo([],n[1],n[0],o/i),u=Lo([],n[1],n[2],o/a),l=Lo([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&T(-f/o,0,o);var y=e[0],p=e[o-1],g,_;m(),g<0&&w(-g,.8),_<0&&w(_,.8),m(),S(g,_,1),S(_,g,-1),m(),g<0&&x(-g),_<0&&x(_);function m(){g=y.rect[t]-n,_=i-p.rect[t]-p.rect[r]}function S(M,C,L){if(M<0){var D=Math.min(C,-M);if(D>0){T(D*L,0,o);var I=D+M;I<0&&w(-I*L,1)}else w(-M*L,1)}}function T(M,C,L){M!==0&&(l=!0);for(var D=C;D0)for(var I=0;I0;I--){var E=L[I-1]*A;T(-E,I,o)}}}function x(M){var C=M<0?-1:1;M=Math.abs(M);for(var L=Math.ceil(M/(o-1)),D=0;D0?T(L,0,D+1):T(-L,o-D-1,o),M-=L,M<=0)return}return l}function nM(e,t,r,n){return dg(e,"x","width",t,r,n)}function iM(e,t,r,n){return dg(e,"y","height",t,r,n)}function aM(e){var t=[];e.sort(function(y,p){return p.priority-y.priority});var r=new q(0,0,0,0);function n(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),it(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),ci(n,l,r,u)}else if(n.attr(l),!ho(n).valueAnimation){var h=$(n.style.opacity,1);n.style.opacity=0,Oa(n,{style:{opacity:h}},r,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};oa(v,l,sa),oa(v,n.states.select,sa)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};oa(d,l,sa),oa(d,n.states.emphasis,sa)}a1(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=uM(i),o=a.oldLayout,y={points:i.shape.points};o?(i.attr({shape:o}),ci(i,{shape:y},r)):(i.setShape(y),i.style.strokePercent=0,Oa(i,{style:{strokePercent:1}},r)),a.oldLayout=y}},e}();const fM=lM;var Bs=ct();function yx(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Bs(r).labelManager;i||(i=Bs(r).labelManager=new fM),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Bs(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function Mv(e,t,r){var n=_n.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var hM=function(e){G(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Pa,typeof r=="string"?o=Mv(r,n,i):N(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ev(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Mv("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new q(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var m=new q(0,0,0,0);m.copy(_),o.push(m)}else{for(var S=!1,T=1/0,w=0,x=0;x=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&g.restore()};if(_)if(_.length===0)M=p.__endIndex;else for(var L=v.dpr,D=0;D<_.length;++D){var I=_[D];g.save(),g.beginPath(),g.rect(I.x*L,I.y*L,I.width*L,I.height*L),g.clip(),C(I),g.restore()}else g.save(),C(),g.restore();p.__drawIndex=M,p.__drawIndex0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?ua:0),this._needsManuallyCompositing),f.__builtin__||Bu("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&Wt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,b(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var i=0;i=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Dr||(r=this._nodesMap[on(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&u.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}de(Dr,gg("hostGraph","data"));de(pg,gg("hostGraph","edgeData"));const bx=wM;var te=ct();function Mx(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,yg(t,r,e),b(r,function(n){b(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,kr(TM,e))})}),t.wrapMethod("cloneShallow",kr(MM,e)),b(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,kr(bM,e))}),ce(r[t.dataType]===t)}function TM(e,t){if(DM(this)){var r=O({},te(this).datas);r[this.dataType]=t,yg(t,r,e)}else xl(t,this.dataType,te(this).mainData,e);return t}function bM(e,t){return e.struct&&e.struct.update(),t}function MM(e,t){return b(te(t).datas,function(r,n){r!==t&&xl(r.cloneShallow(),n,t,e)}),t}function CM(e){var t=te(this).mainData;return e==null||t==null?t:te(t).datas[e]}function xM(){var e=te(this).mainData;return e==null?[{data:e}]:B(nt(te(e).datas),function(t){return{type:t,data:te(e).datas[t]}})}function DM(e){return te(e).mainData===e}function yg(e,t,r){te(e).datas={},b(t,function(n,i){xl(n,i,e,r)})}function xl(e,t,r,n){te(r).datas[t]=e,te(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=CM,e.getLinkedDataAll=xM}export{Vt as $,vx as A,vi as B,ht as C,Zf as D,Va as E,hy as F,Sx as G,Pg as H,px as I,I1 as J,j as K,mi as L,Ne as M,kr as N,fv as O,jC as P,tx as Q,Be as R,NT as S,$l as T,q as U,Tx as V,dx as W,je as X,xe as Y,wn as Z,C1 as _,ux as a,wi as a$,Ld as a0,N as a1,x1 as a2,RC as a3,JC as a4,Ga as a5,ii as a6,Kr as a7,Fw as a8,Yt as a9,uu as aA,A0 as aB,O0 as aC,$ as aD,Kl as aE,QM as aF,P0 as aG,ce as aH,_c as aI,K as aJ,zr as aK,$M as aL,Vu as aM,YM as aN,E_ as aO,P_ as aP,wg as aQ,KM as aR,ZM as aS,eC as aT,UM as aU,XM as aV,qM as aW,Qi as aX,tC as aY,jt as aZ,G as a_,vn as aa,to as ab,Ke as ac,bx as ad,Mx as ae,ff as af,O as ag,Bg as ah,QC as ai,Im as aj,WM as ak,VM as al,pp as am,bc as an,nt as ao,xm as ap,U as aq,qv as ar,J0 as as,jM as at,Vr as au,dt as av,JM as aw,at as ax,ql as ay,tt as az,_x as b,Ju as b$,Ha as b0,lu as b1,fu as b2,ci as b3,wC as b4,Oa as b5,CC as b6,KC as b7,MC as b8,yC as b9,H as bA,Jb as bB,gx as bC,iM as bD,Qu as bE,tM as bF,la as bG,eM as bH,Up as bI,Ft as bJ,FC as bK,nC as bL,df as bM,ct as bN,qC as bO,Rr as bP,Na as bQ,Rd as bR,za as bS,PM as bT,xo as bU,Mb as bV,nx as bW,fx as bX,Ib as bY,lx as bZ,rx as b_,ud as ba,ZC as bb,dd as bc,Es as bd,Wv as be,yt as bf,Zc as bg,D1 as bh,_C as bi,ro as bj,gC as bk,Ey as bl,ho as bm,De as bn,zM as bo,ap as bp,DC as bq,ec as br,Gr as bs,Bm as bt,xC as bu,sp as bv,ox as bw,ax as bx,o_ as by,vt as bz,ex as c,lC as c$,Wm as c0,rM as c1,aM as c2,e1 as c3,Lb as c4,Hu as c5,o0 as c6,Qn as c7,aC as c8,oC as c9,Qh as cA,mC as cB,k_ as cC,eo as cD,Ov as cE,EM as cF,LM as cG,Lr as cH,Ir as cI,Zi as cJ,pC as cK,so as cL,id as cM,ve as cN,NC as cO,mt as cP,OC as cQ,AC as cR,hi as cS,CT as cT,PC as cU,cu as cV,zc as cW,J_ as cX,Iv as cY,NM as cZ,Si as c_,W as ca,Zm as cb,IM as cc,td as cd,bC as ce,VS as cf,Tu as cg,Ku as ch,Qc as ci,Vm as cj,Mn as ck,FM as cl,n0 as cm,Le as cn,Hr as co,$c as cp,sm as cq,Pm as cr,Oe as cs,s0 as ct,Fl as cu,cx as cv,kb as cw,vo as cx,bi as cy,W_ as cz,mx as d,vC as d$,HM as d0,GM as d1,iC as d2,Ng as d3,Vg as d4,Do as d5,Sn as d6,zg as d7,Hg as d8,AM as d9,Ws as dA,Ul as dB,l_ as dC,_n as dD,gy as dE,Fe as dF,Ea as dG,li as dH,ca as dI,Nt as dJ,Fm as dK,Kf as dL,ix as dM,i1 as dN,el as dO,Gm as dP,Jm as dQ,Id as dR,tc as dS,xb as dT,rt as dU,kC as dV,IC as dW,m1 as dX,wy as dY,R1 as dZ,L1 as d_,OM as da,La as db,bt as dc,hn as dd,_o as de,WS as df,O_ as dg,a1 as dh,tr as di,Ma as dj,YC as dk,$C as dl,vd as dm,rC as dn,Xm as dp,$m as dq,Km as dr,dC as ds,LT as dt,k1 as du,sC as dv,Ht as dw,At as dx,Ym as dy,BM as dz,YT as e,vy as e0,hx as e1,bb as e2,EC as e3,Gs as e4,e0 as e5,Zo as e6,BC as e7,fC as e8,LC as e9,hC as eA,uC as eB,HC as eC,GC as eD,RM as eE,SS as eF,ge as eG,Da as eH,SC as eI,Lo as eJ,YS as eK,TC as eL,ae as ea,WC as eb,kM as ec,cC as ed,UC as ee,zC as ef,VC as eg,ol as eh,dc as ei,no as ej,ww as ek,XC as el,gv as em,jm as en,Ti as eo,gS as ep,K_ as eq,pb as er,Zp as es,ke as et,Ta as eu,U_ as ev,Oc as ew,Tw as ex,cc as ey,Du as ez,yx as f,XT as g,k as h,Yp as i,B as j,Gu as k,_t as l,de as m,sx as n,b as o,he as p,it as q,Xs as r,_T as s,mT as t,Pb as u,Fp as v,st as w,ft as x,uf as y,_p as z};