/*! ***************************************************************************** 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 _h=function(n,e){return _h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},_h(n,e)};function z(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_h(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var r2=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),a2=function(){function n(){this.browser=new r2,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 n}(),Oi=new a2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Oi.wxa=!0,Oi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Oi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Oi.node=!0,Oi.svgSupported=!0):s2(navigator.userAgent,Oi);function s2(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),o=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),r=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),o&&(t.ie=!0,t.version=o[1]),r&&(t.edge=!0,t.version=r[1],t.newEdge=+r[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ct=Oi;var bh=12,qg="sans-serif",oi=bh+"px "+qg,l2=20,u2=100,h2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c2(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=a*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function N2(n,e,t){for(var i=t?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=n[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&r&&d===r[c]&&p===r[c+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=t?hv(s,a):hv(a,s))}function pv(n){return n.nodeName.toUpperCase()==="CANVAS"}var z2=/([&<>"'])/g,B2={"&":"&","<":"<",">":">",'"':""","'":"'"};function le(n){return n==null?"":(n+"").replace(z2,function(e,t){return B2[t]})}var E2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vh=[],V2=ct.browser.firefox&&+ct.browser.version.split(".")[0]<39;function Fh(n,e,t,i){return t=t||{},i?dv(n,e,t):V2&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):dv(n,e,t),t}function dv(n,e,t){if(ct.domSupported&&n.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(pv(n)){var r=n.getBoundingClientRect();t.zrX=i-r.left,t.zrY=o-r.top;return}else if(Eh(Vh,n,i,o)){t.zrX=Vh[0],t.zrY=Vh[1];return}}t.zrX=t.zrY=0}function Wh(n){return n||window.event}function Pe(n,e,t){if(e=Wh(e),e.zrX!=null)return e;var i=e.type,o=i&&i.indexOf("touch")>=0;if(o){var r=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];r&&Fh(n,r,e,t)}else{Fh(n,e,e,t);var a=F2(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&E2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function F2(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var o=Math.abs(i!==0?i:t),r=i>0?-1:i<0?1:t>0?-1:1;return 3*o*r}function Gh(n,e,t,i){n.addEventListener(e,t,i)}function W2(n,e,t,i){n.removeEventListener(e,t,i)}var Hn=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function fv(n){return n.which===2||n.which===3}var G2=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a1&&i&&i.length>1){var r=gv(i)/gv(o);!isFinite(r)&&(r=1),e.pinchScale=r;var a=H2(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function me(){return[1,0,0,1,0,0]}function Xr(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Bs(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function gn(n,e,t){var i=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],r=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=i,n[1]=o,n[2]=r,n[3]=a,n[4]=s,n[5]=l,n}function vn(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function si(n,e,t,i){i===void 0&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(t),c=Math.cos(t);return n[0]=o*c+s*h,n[1]=-o*h+s*c,n[2]=r*c+l*h,n[3]=-r*h+c*l,n[4]=c*(a-i[0])+h*(u-i[1])+i[0],n[5]=c*(u-i[1])-h*(a-i[0])+i[1],n}function Es(n,e,t){var i=t[0],o=t[1];return n[0]=e[0]*i,n[1]=e[1]*o,n[2]=e[2]*i,n[3]=e[3]*o,n[4]=e[4]*i,n[5]=e[5]*o,n}function zi(n,e){var t=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=t*a-r*i;return l?(l=1/l,n[0]=a*l,n[1]=-r*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-a*o)*l,n[5]=(r*o-t*s)*l,n):null}function vv(n){var e=me();return Bs(e,n),e}const Y2=Object.freeze(Object.defineProperty({__proto__:null,clone:vv,copy:Bs,create:me,identity:Xr,invert:zi,mul:gn,rotate:si,scale:Es,translate:vn},Symbol.toStringTag,{value:"Module"}));var U2=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,o){e.x=t.x+i.x*o,e.y=t.y+i.y*o},n.lerp=function(e,t,i,o){var r=1-o;e.x=r*t.x+o*i.x,e.y=r*t.y+o*i.y},n}();const nt=U2;var Vs=Math.min,Fs=Math.max,Bi=new nt,Ei=new nt,Vi=new nt,Fi=new nt,Zr=new nt,jr=new nt,X2=function(){function n(e,t,i,o){i<0&&(e=e+i,i=-i),o<0&&(t=t+o,o=-o),this.x=e,this.y=t,this.width=i,this.height=o}return n.prototype.union=function(e){var t=Vs(e.x,this.x),i=Vs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fs(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fs(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,o=e.height/t.height,r=me();return vn(r,r,[-t.x,-t.y]),Es(r,r,[i,o]),vn(r,r,[e.x,e.y]),r},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(rf&&(f=x,gf&&(f=_,y=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];e.x=t.x*o+a,e.y=t.y*r+s,e.width=t.width*o,e.height=t.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bi.x=Vi.x=t.x,Bi.y=Fi.y=t.y,Ei.x=Fi.x=t.x+t.width,Ei.y=Vi.y=t.y+t.height,Bi.transform(i),Fi.transform(i),Ei.transform(i),Vi.transform(i),e.x=Vs(Bi.x,Ei.x,Vi.x,Fi.x),e.y=Vs(Bi.y,Ei.y,Vi.y,Fi.y);var l=Fs(Bi.x,Ei.x,Vi.x,Fi.x),u=Fs(Bi.y,Ei.y,Vi.y,Fi.y);e.width=l-e.x,e.height=u-e.y},n}();const ut=X2;var yv="silent";function Z2(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:j2}}function j2(){Hn(this.event)}var q2=function(n){Mt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ke),qr=function(){function n(e,t){this.x=e,this.y=t}return n}(),K2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yh=new ut(0,0,0,0),mv=function(n){Mt(e,n);function e(t,i,o,r,a){var s=n.call(this)||this;return s._hovered=new qr(0,0),s.storage=t,s.painter=i,s.painterRoot=r,s._pointerSize=a,o=o||new q2,s.proxy=null,s.setHandlerProxy(o),s._draggingMgr=new k2(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(K2,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,o=t.zrY,r=_v(this,i,o),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=r?new qr(i,o):this.findHover(i,o),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new qr(0,0)},e.prototype.dispatch=function(t,i){var o=this[t];o&&o.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,o){t=t||{};var r=t.target;if(!(r&&r.silent)){for(var a="on"+i,s=Z2(i,t,o);r&&(r[a]&&(s.cancelBubble=!!r[a].call(r,s)),r.trigger(i,s),r=r.__hostTarget?r.__hostTarget:r.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,o){var r=this.storage.getDisplayList(),a=new qr(t,i);if(xv(r,a,t,i,o),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new ut(t-u,i-u,l,l),c=r.length-1;c>=0;c--){var d=r[c];d!==o&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Yh.copy(d.getBoundingRect()),d.transform&&Yh.applyTransform(d.transform),Yh.intersect(h)&&s.push(d))}if(s.length)for(var p=4,f=Math.PI/12,g=Math.PI*2,v=0;v4)return;this._downPoint=null}this.dispatchToElement(r,n,e)}});function $2(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,t))return!1}i.silent&&(o=!0);var s=i.__hostTarget;i=s||i.parent}return o?yv:!0}return!1}function xv(n,e,t,i,o){for(var r=n.length-1;r>=0;r--){var a=n[r],s=void 0;if(a!==o&&!a.ignore&&(s=$2(a,t,i))&&(!e.topTarget&&(e.topTarget=a),s!==yv)){e.target=a;break}}}function _v(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}const Q2=mv;var bv=32,Kr=7;function J2(n){for(var e=0;n>=bv;)e|=n&1,n>>=1;return n+e}function wv(n,e,t,i){var o=e+1;if(o===t)return 1;if(i(n[o++],n[e])<0){for(;o=0;)o++;return o-e}function tC(n,e,t){for(t--;e>>1,o(r,n[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=r}}function Uh(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])>0){for(s=i-o;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;ls&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a>>1);r(n,e[t+h])>0?a=h+1:l=h}return l}function Xh(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])<0){for(s=o+1;ls&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a>>1);r(n,e[t+h])<0?l=h:a=h+1}return l}function eC(n,e){var t=Kr,i,o,r=0,a=[];i=[],o=[];function s(p,f){i[r]=p,o[r]=f,r+=1}function l(){for(;r>1;){var p=r-2;if(p>=1&&o[p-1]<=o[p]+o[p+1]||p>=2&&o[p-2]<=o[p]+o[p-1])o[p-1]o[p+1])break;h(p)}}function u(){for(;r>1;){var p=r-2;p>0&&o[p-1]=Kr||S>=Kr);if(T)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),f===1){for(y=0;y=0;y--)n[b+y]=n[w+y];n[_]=a[x];return}for(var S=t;;){var T=0,I=0,C=!1;do if(e(a[x],n[m])<0){if(n[_--]=n[m--],T++,I=0,--f===0){C=!0;break}}else if(n[_--]=a[x--],I++,T=0,--v===1){C=!0;break}while((T|I)=0;y--)n[b+y]=n[w+y];if(f===0){C=!0;break}}if(n[_--]=a[x--],--v===1){C=!0;break}if(I=v-Uh(n[m],a,0,v,v-1,e),I!==0){for(_-=I,x-=I,v-=I,b=_+1,w=x+1,y=0;y=Kr||I>=Kr);if(C)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x]}else{if(v===0)throw new Error;for(w=_-(v-1),y=0;ys&&(l=s),Sv(n,t,t+l,t+r,e),r=l}a.pushRun(t,r),a.mergeRuns(),o-=r,t+=r}while(o!==0);a.forceMergeRuns()}}var $e=1,$r=2,Yo=4,Mv=!1;function Zh(){Mv||(Mv=!0)}function Tv(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var nC=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Tv}return n.prototype.traverse=function(e,t){for(var i=0;i0&&(h.__clipPaths=[]),isNaN(h.z)&&(Zh(),h.z=0),isNaN(h.z2)&&(Zh(),h.z2=0),isNaN(h.zlevel)&&(Zh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,i);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,i);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t=0&&this._roots.splice(o,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const iC=nC;var Cv;Cv=ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const jh=Cv;var Gs={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-Gs.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Gs.bounceIn(n*2)*.5:Gs.bounceOut(n*2-1)*.5+.5}};const Iv=Gs;var Hs=Math.pow,li=Math.sqrt,Ys=1e-8,Av=1e-4,Dv=li(3),Us=1/3,yn=ri(),Le=ri(),Uo=ri();function ui(n){return n>-Ys&&nYs||n<-Ys}function Vt(n,e,t,i,o){var r=1-o;return r*r*(r*n+3*o*e)+o*o*(o*i+3*r*t)}function Pv(n,e,t,i,o){var r=1-o;return 3*(((e-n)*r+2*(t-e)*o)*r+(i-t)*o*o)}function Xs(n,e,t,i,o,r){var a=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-o,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(ui(h)&&ui(c))if(ui(s))r[0]=0;else{var f=-l/s;f>=0&&f<=1&&(r[p++]=f)}else{var g=c*c-4*h*d;if(ui(g)){var v=c/h,f=-s/a+v,y=-v/2;f>=0&&f<=1&&(r[p++]=f),y>=0&&y<=1&&(r[p++]=y)}else if(g>0){var m=li(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m);x<0?x=-Hs(-x,Us):x=Hs(x,Us),_<0?_=-Hs(-_,Us):_=Hs(_,Us);var f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(r[p++]=f)}else{var w=(2*h*s-3*a*c)/(2*li(h*h*h)),b=Math.acos(w)/3,S=li(h),T=Math.cos(b),f=(-s-2*S*T)/(3*a),y=(-s+S*(T+Dv*Math.sin(b)))/(3*a),I=(-s+S*(T-Dv*Math.sin(b)))/(3*a);f>=0&&f<=1&&(r[p++]=f),y>=0&&y<=1&&(r[p++]=y),I>=0&&I<=1&&(r[p++]=I)}}return p}function Lv(n,e,t,i,o){var r=6*t-12*e+6*n,a=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(ui(a)){if(kv(r)){var u=-s/r;u>=0&&u<=1&&(o[l++]=u)}}else{var h=r*r-4*a*s;if(ui(h))o[0]=-r/(2*a);else if(h>0){var c=li(h),u=(-r+c)/(2*a),d=(-r-c)/(2*a);u>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function Qr(n,e,t,i,o,r){var a=(e-n)*o+n,s=(t-e)*o+e,l=(i-t)*o+t,u=(s-a)*o+a,h=(l-s)*o+s,c=(h-u)*o+u;r[0]=n,r[1]=a,r[2]=u,r[3]=c,r[4]=c,r[5]=h,r[6]=l,r[7]=i}function Ov(n,e,t,i,o,r,a,s,l,u,h){var c,d=.005,p=1/0,f,g,v,y;yn[0]=l,yn[1]=u;for(var m=0;m<1;m+=.05)Le[0]=Vt(n,t,o,a,m),Le[1]=Vt(e,i,r,s,m),v=ai(yn,Le),v=0&&v=0&&u<=1&&(o[l++]=u)}}else{var h=a*a-4*r*s;if(ui(h)){var u=-a/(2*r);u>=0&&u<=1&&(o[l++]=u)}else if(h>0){var c=li(h),u=(-a+c)/(2*r),d=(-a-c)/(2*r);u>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function Rv(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Jr(n,e,t,i,o){var r=(e-n)*i+n,a=(t-e)*i+e,s=(a-r)*i+r;o[0]=n,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=t}function Nv(n,e,t,i,o,r,a,s,l){var u,h=.005,c=1/0;yn[0]=a,yn[1]=s;for(var d=0;d<1;d+=.05){Le[0]=Zt(n,t,o,d),Le[1]=Zt(e,i,r,d);var p=ai(yn,Le);p=0&&p=1?1:Xs(0,i,r,1,l,s)&&Vt(0,o,a,1,s[0])}}}var lC=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Et,this.ondestroy=e.ondestroy||Et,this.onrestart=e.onrestart||Et,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,o=e-this._startTime-this._pausedTime,r=o/i;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,s=a?a(r):r;if(this.onframe(s),r===1)if(this.loop){var l=o%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:Iv[e]||Kh(e)},n}();const uC=lC;var zv=function(){function n(e){this.value=e}return n}(),hC=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new zv(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),cC=function(){function n(e){this._list=new hC,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,o=this._map,r=null;if(o[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new zv(t),s.key=e,i.insertEntry(s),o[e]=s}return r},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const ta=cC;var Bv={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 Qe(n){return n=Math.round(n),n<0?0:n>255?255:n}function pC(n){return n=Math.round(n),n<0?0:n>360?360:n}function ea(n){return n<0?0:n>1?1:n}function $h(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qe(parseFloat(e)/100*255):Qe(parseInt(e,10))}function Wi(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ea(parseFloat(e)/100):ea(parseFloat(e))}function Qh(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function hi(n,e,t){return n+(e-n)*t}function Oe(n,e,t,i,o){return n[0]=e,n[1]=t,n[2]=i,n[3]=o,n}function Jh(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var Ev=new ta(20),Zs=null;function Xo(n,e){Zs&&Jh(Zs,e),Zs=Ev.put(n,Zs||e.slice())}function ue(n,e){if(n){e=e||[];var t=Ev.get(n);if(t)return Jh(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in Bv)return Jh(e,Bv[i]),Xo(n,e),e;var o=i.length;if(i.charAt(0)==="#"){if(o===4||o===5){var r=parseInt(i.slice(1,4),16);if(!(r>=0&&r<=4095)){Oe(e,0,0,0,1);return}return Oe(e,(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,o===5?parseInt(i.slice(4),16)/15:1),Xo(n,e),e}else if(o===7||o===9){var r=parseInt(i.slice(1,7),16);if(!(r>=0&&r<=16777215)){Oe(e,0,0,0,1);return}return Oe(e,(r&16711680)>>16,(r&65280)>>8,r&255,o===9?parseInt(i.slice(7),16)/255:1),Xo(n,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Oe(e,+u[0],+u[1],+u[2],1):Oe(e,0,0,0,1);h=Wi(u.pop());case"rgb":if(u.length>=3)return Oe(e,$h(u[0]),$h(u[1]),$h(u[2]),u.length===3?h:Wi(u[3])),Xo(n,e),e;Oe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Oe(e,0,0,0,1);return}return u[3]=Wi(u[3]),tc(u,e),Xo(n,e),e;case"hsl":if(u.length!==3){Oe(e,0,0,0,1);return}return tc(u,e),Xo(n,e),e;default:return}}Oe(e,0,0,0,1)}}function tc(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=Wi(n[1]),o=Wi(n[2]),r=o<=.5?o*(i+1):o+i-o*i,a=o*2-r;return e=e||[],Oe(e,Qe(Qh(a,r,t+1/3)*255),Qe(Qh(a,r,t)*255),Qe(Qh(a,r,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function dC(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,o=Math.min(e,t,i),r=Math.max(e,t,i),a=r-o,s=(r+o)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(r+o):u=a/(2-r-o);var h=((r-e)/6+a/2)/a,c=((r-t)/6+a/2)/a,d=((r-i)/6+a/2)/a;e===r?l=d-c:t===r?l=1/3+h-d:i===r&&(l=2/3+c-h),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return n[3]!=null&&p.push(n[3]),p}}function js(n,e){var t=ue(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Je(t,t.length===4?"rgba":"rgb")}}function fC(n){var e=ue(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function na(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=e[o],s=e[r],l=i-o;return t[0]=Qe(hi(a[0],s[0],l)),t[1]=Qe(hi(a[1],s[1],l)),t[2]=Qe(hi(a[2],s[2],l)),t[3]=ea(hi(a[3],s[3],l)),t}}var gC=na;function ec(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=ue(e[o]),s=ue(e[r]),l=i-o,u=Je([Qe(hi(a[0],s[0],l)),Qe(hi(a[1],s[1],l)),Qe(hi(a[2],s[2],l)),ea(hi(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:o,rightIndex:r,value:i}:u}}var vC=ec;function ia(n,e,t,i){var o=ue(n);if(n)return o=dC(o),e!=null&&(o[0]=pC(e)),t!=null&&(o[1]=Wi(t)),i!=null&&(o[2]=Wi(i)),Je(tc(o),"rgba")}function nc(n,e){var t=ue(n);if(t&&e!=null)return t[3]=ea(e),Je(t,"rgba")}function Je(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function oa(n,e){var t=ue(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function yC(){return Je([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Vv=new ta(100);function qs(n){if(G(n)){var e=Vv.get(n);return e||(e=js(n,-.1),Vv.put(n,e)),e}else if(Vr(n)){var t=N({},n);return t.colorStops=F(n.colorStops,function(i){return{offset:i.offset,color:js(i.color,-.1)}}),t}return n}const mC=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:na,fastMapToColor:gC,lerp:ec,lift:js,liftColor:qs,lum:oa,mapToColor:vC,modifyAlpha:nc,modifyHSL:ia,parse:ue,random:yC,stringify:Je,toHex:fC},Symbol.toStringTag,{value:"Module"}));var Ks=Math.round;function ra(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ue(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e!=null?e:1}}var Fv=1e-4;function ci(n){return n-Fv}function $s(n){return Ks(n*1e3)/1e3}function ic(n){return Ks(n*1e4)/1e4}function xC(n){return"matrix("+$s(n[0])+","+$s(n[1])+","+$s(n[2])+","+$s(n[3])+","+ic(n[4])+","+ic(n[5])+")"}var _C={left:"start",right:"end",center:"middle",middle:"middle"};function bC(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function wC(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function SC(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Wv(n){return n&&!!n.image}function MC(n){return n&&!!n.svgElement}function oc(n){return Wv(n)||MC(n)}function Gv(n){return n.type==="linear"}function Hv(n){return n.type==="radial"}function Yv(n){return n&&(n.type==="linear"||n.type==="radial")}function Qs(n){return"url(#"+n+")"}function Uv(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Xv(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*Gr,o=J(n.scaleX,1),r=J(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(o!==1||r!==1)&&l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+Ks(a*Gr)+"deg, "+Ks(s*Gr)+"deg)"),l.join(" ")}var TC=function(){return ct.hasGlobalWindow&&$(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),rc=Array.prototype.slice;function Yn(n,e,t){return(e-n)*t+n}function ac(n,e,t,i){for(var o=e.length,r=0;ri?e:n,r=Math.min(t,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;sa;if(s)i.length=a;else for(var l=r;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var o=this.keyframes,r=o.length,a=!1,s=qv,l=t;if(Xt(t)){var u=DC(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(a=!0)}else if(vt(t)&&!Wo(t))s=el;else if(G(t))if(!isNaN(+t))s=el;else{var h=ue(t);h&&(l=h,s=sa)}else if(Vr(t)){var c=N({},l);c.colorStops=F(t.colorStops,function(p){return{offset:p.offset,color:ue(p.color)}}),Gv(t)?s=sc:Hv(t)&&(s=lc),l=c}r===0?this.valType=s:(s!==this.valType||s===qv)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:t,percent:0};return i&&(d.easing=i,d.easingFunc=$(i)?i:Iv[i]||Kh(i)),o.push(d),d},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var o=this.valType,r=i.length,a=i[r-1],s=this.discrete,l=il(o),u=Kv(o),h=0;h=0&&!(a[h].percent<=t);h--);h=d(h,s-2)}else{for(h=c;ht);h++);h=d(h-1,s-2)}f=a[h+1],p=a[h]}if(p&&f){this._lastFr=h,this._lastFrP=t;var v=f.percent-p.percent,y=v===0?1:d((t-p.percent)/v,1);f.easingFunc&&(y=f.easingFunc(y));var m=i?this._additiveValue:u?la:e[l];if((il(r)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:f.rawValue;else if(il(r))r===nl?ac(m,p[o],f[o],y):CC(m,p[o],f[o],y);else if(Kv(r)){var x=p[o],_=f[o],w=r===sc;e[l]={type:w?"linear":"radial",x:Yn(x.x,_.x,y),y:Yn(x.y,_.y,y),colorStops:F(x.colorStops,function(S,T){var I=_.colorStops[T];return{offset:Yn(S.offset,I.offset,y),color:tl(ac([],S.color,I.color,y))}}),global:_.global},w?(e[l].x2=Yn(x.x2,_.x2,y),e[l].y2=Yn(x.y2,_.y2,y)):e[l].r=Yn(x.r,_.r,y)}else if(u)ac(m,p[o],f[o],y),i||(e[l]=tl(m));else{var b=Yn(p[o],f[o],y);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,o=this._additiveValue;t===el?e[i]=e[i]+o:t===sa?(ue(e[i],la),Js(la,la,o,1),e[i]=tl(la)):t===nl?Js(e[i],e[i],o,1):t===jv&&Zv(e[i],e[i],o,1)},n}(),PC=function(){function n(e,t,i,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&o){Ps("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,at(t),i)},n.prototype.whenWithKeys=function(e,t,i,o){for(var r=this._tracks,a=0;a0&&l.addKeyframe(0,aa(u),o),this._trackKeys.push(s)}l.addKeyframe(e,aa(t[s]),o)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i0)){this._started=1;for(var t=this,i=[],o=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,e[o]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},n}();const uc=PC;function Zo(){return new Date().getTime()}var LC=function(n){Mt(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,o=t.next;i?i.next=o:this._head=o,o?o.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Zo()-this._pausedTime,o=i-this._time,r=this._head;r;){var a=r.next,s=r.step(i,o);s&&(r.ondestroy(),this.removeClip(r)),r=a}this._time=i,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(jh(i),!t._paused&&t.update())}jh(i)},e.prototype.start=function(){this._running||(this._time=Zo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var o=new uc(t,i.loop);return this.addAnimator(o),o},e}(ke);const OC=LC;var RC=300,hc=ct.domSupported,cc=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=F(n,function(o){var r=o.replace("mouse","pointer");return t.hasOwnProperty(r)?r:o});return{mouse:n,touch:e,pointer:i}}(),$v={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qv=!1;function pc(n){var e=n.pointerType;return e==="pen"||e==="touch"}function NC(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function dc(n){n&&(n.zrByTouch=!0)}function zC(n,e){return Pe(n.dom,new BC(n,e),!0)}function Jv(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var BC=function(){function n(e,t){this.stopPropagation=Et,this.stopImmediatePropagation=Et,this.preventDefault=Et,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),tn={mousedown:function(n){n=Pe(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Pe(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Pe(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Pe(this.dom,n);var e=n.toElement||n.relatedTarget;Jv(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){Qv=!0,n=Pe(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){Qv||(n=Pe(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Pe(this.dom,n),dc(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),tn.mousemove.call(this,n),tn.mousedown.call(this,n)},touchmove:function(n){n=Pe(this.dom,n),dc(n),this.handler.processGesture(n,"change"),tn.mousemove.call(this,n)},touchend:function(n){n=Pe(this.dom,n),dc(n),this.handler.processGesture(n,"end"),tn.mouseup.call(this,n),+new Date-+this.__lastTouchMomentiy||n<-iy}var Hi=[],jo=[],_c=me(),bc=Math.abs,HC=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Gi(this.rotation)||Gi(this.x)||Gi(this.y)||Gi(this.scaleX-1)||Gi(this.scaleY-1)||Gi(this.skewX)||Gi(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(ny(i),this.invTransform=null);return}i=i||me(),t?this.getLocalTransform(i):ny(i),e&&(t?gn(i,e,i):Bs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Hi);var i=Hi[0]<0?-1:1,o=Hi[1]<0?-1:1,r=((Hi[0]-i)*t+i)/Hi[0]||0,a=((Hi[1]-o)*t+o)/Hi[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||me(),zi(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),r=Math.PI/2+o-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||me(),gn(jo,e.invTransform,t),t=jo);var i=this.originX,o=this.originY;(i||o)&&(_c[4]=i,_c[5]=o,gn(jo,t,_c),jo[4]-=i,jo[5]-=o,t=jo),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],o=this.invTransform;return o&&Ht(i,i,o),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],o=this.transform;return o&&Ht(i,i,o),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&bc(e[0]-1)>1e-10&&bc(e[3]-1)>1e-10?Math.sqrt(bc(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){oy(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,o=e.originY||0,r=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(i||o||s||l){var f=i+s,g=o+l;t[4]=-f*r-d*g*a,t[5]=-g*a-p*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=a,t[1]=p*r,t[2]=d*a,u&&si(t,t,u),t[4]+=i+h,t[5]+=o+c,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),mn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oy(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function al(n,e,t){var i=e.position||"inside",o=e.distance!=null?e.distance:5,r=t.height,a=t.width,s=r/2,l=t.x,u=t.y,h="left",c="top";if(i instanceof Array)l+=en(i[0],t.width),u+=en(i[1],t.height),h=null,c=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var wc="__zr_normal__",Sc=mn.concat(["ignore"]),YC=Ae(mn,function(n,e){return n[e]=!0,n},{ignore:!1}),Ko={},UC=new ut(0,0,0,0),Mc=function(){function n(e){this.id=Mh(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,o=i.local,r=t.innerTransformable,a=void 0,s=void 0,l=!1;r.parent=o?this:null;var u=!1;if(r.copyTransform(t),i.position!=null){var h=UC;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ko,i,h):al(Ko,i,h),r.x=Ko.x,r.y=Ko.y,a=Ko.align,s=Ko.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,p=void 0;c==="center"?(d=h.width*.5,p=h.height*.5):(d=en(c[0],h.width),p=en(c[1],h.height)),u=!0,r.originX=-r.x+d+(o?0:h.x),r.originY=-r.y+p+(o?0:h.y)}}i.rotation!=null&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==v.fill||m!==v.stroke||x!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=m,v.autoStroke=x,v.align=a,v.verticalAlign=s,t.setDefaultTextStyle(v)),t.__dirty|=$e,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xc:mc},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&ue(t);i||(i=[255,255,255,1]);for(var o=i[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*o+(r?0:255)*(1-o);return i[3]=1,Je(i,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var i=e,o=at(i),r=0;r0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(wc,!1,e)},n.prototype.useState=function(e,t,i,o){var r=e===wc,a=this.hasState();if(!(!a&&r)){var s=this.currentStates,l=this.stateTransition;if(!(lt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!r){Ps("State "+e+" not exists.");return}r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,i,h),d&&d.useState(e,t,i,h),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var o=[],r=this.currentStates,a=e.length,s=a===r.length;if(s){for(var l=0;l0,f);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,d),v&&v.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e)}},n.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var o=this.currentStates.slice(),r=lt(o,e),a=lt(o,t)>=0;r>=0?a?o.splice(r,1):o[r]=t:i&&!a&&o.push(t),this.useStates(o)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,o=0;o=0&&r.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,o=i.length,r=[],a=0;a0&&t.during&&r[0].during(function(f,g){t.during(g)});for(var d=0;d0||o.force&&!a.length){var T=void 0,I=void 0,C=void 0;if(s){I={},d&&(T={});for(var _=0;_=0&&(o.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var o=lt(this._children,t);return o>=0&&this.replaceAt(i,o),this},e.prototype.replaceAt=function(t,i){var o=this._children,r=o[i];if(t&&t!==this&&t.parent!==this&&t!==r){o[i]=t,r.parent=null;var a=this.__zr;a&&r.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,o=this._children,r=lt(o,t);return r<0?this:(o.splice(r,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},n.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},n.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(n<=o)return a;if(n>=r)return s}else{if(n>=o)return a;if(n<=r)return s}else{if(n===o)return a;if(n===r)return s}return(n-o)/l*u+a}function U(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return G(n)?oI(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function kt(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),fy),n=(+n).toFixed(e),t?n:+n}function xn(n){return n.sort(function(e,t){return e-t}),n}function _n(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return gy(n)}function gy(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,o=t>0?t:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function Dc(n,e){var t=Math.log,i=Math.LN10,o=Math.floor(t(n[1]-n[0])/i),r=Math.round(t(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function rI(n,e,t){if(!n[e])return 0;var i=vy(n,t);return i[e]||0}function vy(n,e){var t=Ae(n,function(p,f){return p+(isNaN(f)?0:f)},0);if(t===0)return[];for(var i=Math.pow(10,e),o=F(n,function(p){return(isNaN(p)?0:p)/t*i*100}),r=i*100,a=F(o,function(p){return Math.floor(p)}),s=Ae(a,function(p,f){return p+f},0),l=F(o,function(p,f){return p-a[f]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return F(a,function(p){return p/i})}function aI(n,e){var t=Math.max(_n(n),_n(e)),i=n+e;return t>fy?i:kt(i,t)}var sI=9007199254740991;function kc(n){var e=Math.PI*2;return(n%e+e)%e}function ca(n){return n>-dy&&n=10&&e++,e}function Pc(n,e){var t=ll(n),i=Math.pow(10,t),o=n/i,r;return e?o<1.5?r=1:o<2.5?r=2:o<4?r=3:o<7?r=5:r=10:o<1?r=1:o<2?r=2:o<3?r=3:o<5?r=5:r=10,n=r*i,t>=-20?+n.toFixed(t<0?-t:0):n}function uI(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),o=+n[i-1],r=t-i;return r?o+r*(n[i]-o):o}function Lc(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i=0||r&<(r,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var RI=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],NI=Zi(RI),zI=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return NI(this,e,t)},n}(),Bc=new ta(50);function BI(n){if(typeof n=="string"){var e=Bc.get(n);return e&&e.image}else return n}function Ec(n,e,t,i,o){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var r=Bc.get(n),a={hostEl:t,cb:i,cbPayload:o};return r?(e=r.image,!hl(e)&&r.pending.push(a)):(e=Fn.loadImage(n,Py,Py),e.__zrImageSrc=n,Bc.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function Py(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Me(t,e);return u>s&&(t="",u=0),s=n-u,o.ellipsis=t,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=n,o}function Ry(n,e){var t=e.containerWidth,i=e.font,o=e.contentWidth;if(!t)return"";var r=Me(n,i);if(r<=t)return n;for(var a=0;;a++){if(r<=o||a>=e.maxIterations){n+=e.ellipsis;break}var s=a===0?EI(n,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(n.length*o/r):0;n=n.substr(0,s),r=Me(n,i)}return n===""&&(n=e.placeholder),n}function EI(n,e,t,i){for(var o=0,r=0,a=n.length;rp&&u){var f=Math.floor(p/s);c=c.slice(0,f)}if(n&&r&&h!=null)for(var g=Oy(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vs&&Fc(t,n.substring(s,u),e,a),Fc(t,l[2],e,a,l[1]),s=Vc.lastIndex}so){w>0?(m.tokens=m.tokens.slice(0,w),v(m,_,x),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var D=S.width,k=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")b.percentWidth=D,h.push(b),b.contentWidth=Me(b.text,C);else{if(k){var P=S.backgroundColor,L=P&&P.image;L&&(L=BI(L),hl(L)&&(b.width=Math.max(b.width,L.width*A/L.height)))}var O=f&&i!=null?i-_:null;O!=null&&O0&&f+i.accumWidth>i.width&&(h=e.split(` `),u=!0),i.accumWidth=f}else{var g=zy(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,c=g.linesWidths,h=g.lines}}else h=e.split(` `);for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var YI=Ae(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function UI(n){return HI(n)?!!YI[n]:!0}function zy(n,e,t,i,o){for(var r=[],a=[],s="",l="",u=0,h=0,c=0;ct:o+h+p>t){h?(s||l)&&(f?(s||(s=l,l="",u=0,h=u),r.push(s),a.push(h-u),l+=d,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),r.push(s),a.push(h),s=d,h=p)):f?(r.push(l),a.push(u),l=d,u=p):(r.push(d),a.push(p));continue}h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!r.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(h)),r.length===1&&(h+=o),{accumWidth:h,lines:r,linesWidths:a}}var Wc="__zr_style_"+Math.round(Math.random()*10),ji={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ji[Wc]=!0;var By=["z","z2","invisible"],XI=["invisible"],ZI=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=at(t),o=0;o1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(pl[0]=Uc(o)*t+n,pl[1]=Yc(o)*i+e,dl[0]=Uc(r)*t+n,dl[1]=Yc(r)*i+e,u(s,pl,dl),h(l,pl,dl),o=o%qi,o<0&&(o=o+qi),r=r%qi,r<0&&(r=r+qi),o>r&&!a?r+=qi:oo&&(fl[0]=Uc(p)*t+n,fl[1]=Yc(p)*i+e,u(s,fl,s),h(l,fl,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ki=[],$i=[],Sn=[],di=[],Mn=[],Tn=[],Xc=Math.min,Zc=Math.max,Qi=Math.cos,Ji=Math.sin,Xn=Math.abs,jc=Math.PI,fi=jc*2,qc=typeof Float32Array<"u",ya=[];function Kc(n){var e=Math.round(n/jc*1e8)/1e8;return e%2*jc}function $c(n,e){var t=Kc(n[0]);t<0&&(t+=fi);var i=t-n[0],o=n[1];o+=i,!e&&o-t>=fi?o=t+fi:e&&t-o>=fi?o=t-fi:!e&&t>o?o=t+(fi-Kc(t-o)):e&&t0&&(this._ux=Xn(i/vc/e)||0,this._uy=Xn(i/vc/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(bt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=Xn(e-this._xi),o=Xn(t-this._yi),r=i>this._ux||o>this._uy;if(this.addData(bt.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=i*i+o*o;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){return this._drawPendingPt(),this.addData(bt.C,e,t,i,o,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,i,o,r,a),this._xi=r,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,i,o){return this._drawPendingPt(),this.addData(bt.Q,e,t,i,o),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,o),this._xi=i,this._yi=o,this},n.prototype.arc=function(e,t,i,o,r,a){this._drawPendingPt(),ya[0]=o,ya[1]=r,$c(ya,a),o=ya[0],r=ya[1];var s=r-o;return this.addData(bt.A,e,t,i,i,o,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,i,o,r,a),this._xi=Qi(r)*i+e,this._yi=Ji(r)*i+t,this},n.prototype.arcTo=function(e,t,i,o,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,o,r),this},n.prototype.rect=function(e,t,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,o),this.addData(bt.R,e,t,i,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(bt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&qc&&(this.data=new Float32Array(t));for(var i=0;ih.length&&(this._expandData(),h=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Sn[0]=Sn[1]=Mn[0]=Mn[1]=Number.MAX_VALUE,di[0]=di[1]=Tn[0]=Tn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,o=0,r=0,a;for(a=0;ai||Xn(x)>o||d===t-1)&&(g=Math.sqrt(m*m+x*x),r=v,a=y);break}case bt.C:{var _=e[d++],w=e[d++],v=e[d++],y=e[d++],b=e[d++],S=e[d++];g=oC(r,a,_,w,v,y,b,S,10),r=b,a=S;break}case bt.Q:{var _=e[d++],w=e[d++],v=e[d++],y=e[d++];g=aC(r,a,_,w,v,y,10),r=v,a=y;break}case bt.A:var T=e[d++],I=e[d++],C=e[d++],A=e[d++],D=e[d++],k=e[d++],P=k+D;d+=1,f&&(s=Qi(D)*C+T,l=Ji(D)*A+I),g=Zc(C,A)*Xc(fi,Math.abs(k)),r=Qi(P)*C+T,a=Ji(P)*A+I;break;case bt.R:{s=r=e[d++],l=a=e[d++];var L=e[d++],O=e[d++];g=L*2+O*2;break}case bt.Z:{var m=s-r,x=l-a;g=Math.sqrt(m*m+x*x),r=s,a=l;break}}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,t){var i=this.data,o=this._ux,r=this._uy,a=this._len,s,l,u,h,c,d,p=t<1,f,g,v=0,y=0,m,x=0,_,w;if(!(p&&(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,g=this._pathLen,m=t*g,!m)))t:for(var b=0;b0&&(e.lineTo(_,w),x=0),S){case bt.M:s=u=i[b++],l=h=i[b++],e.moveTo(u,h);break;case bt.L:{c=i[b++],d=i[b++];var I=Xn(c-u),C=Xn(d-h);if(I>o||C>r){if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;e.lineTo(u*(1-D)+c*D,h*(1-D)+d*D);break t}v+=A}e.lineTo(c,d),u=c,h=d,x=0}else{var k=I*I+C*C;k>x&&(_=c,w=d,x=k)}break}case bt.C:{var P=i[b++],L=i[b++],O=i[b++],E=i[b++],R=i[b++],B=i[b++];if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;Qr(u,P,O,R,D,Ki),Qr(h,L,E,B,D,$i),e.bezierCurveTo(Ki[1],$i[1],Ki[2],$i[2],Ki[3],$i[3]);break t}v+=A}e.bezierCurveTo(P,L,O,E,R,B),u=R,h=B;break}case bt.Q:{var P=i[b++],L=i[b++],O=i[b++],E=i[b++];if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;Jr(u,P,O,D,Ki),Jr(h,L,E,D,$i),e.quadraticCurveTo(Ki[1],$i[1],Ki[2],$i[2]);break t}v+=A}e.quadraticCurveTo(P,L,O,E),u=O,h=E;break}case bt.A:var W=i[b++],Z=i[b++],Q=i[b++],ot=i[b++],st=i[b++],St=i[b++],mt=i[b++],Qt=!i[b++],Gt=Q>ot?Q:ot,Pt=Xn(Q-ot)>.001,It=st+St,tt=!1;if(p){var A=f[y++];v+A>m&&(It=st+St*(m-v)/A,tt=!0),v+=A}if(Pt&&e.ellipse?e.ellipse(W,Z,Q,ot,mt,st,It,Qt):e.arc(W,Z,Gt,st,It,Qt),tt)break t;T&&(s=Qi(st)*Q+W,l=Ji(st)*ot+Z),u=Qi(It)*Q+W,h=Ji(It)*ot+Z;break;case bt.R:s=u=i[b],l=h=i[b+1],c=i[b++],d=i[b++];var ht=i[b++],ve=i[b++];if(p){var A=f[y++];if(v+A>m){var Lt=m-v;e.moveTo(c,d),e.lineTo(c+Xc(Lt,ht),d),Lt-=ht,Lt>0&&e.lineTo(c+ht,d+Xc(Lt,ve)),Lt-=ve,Lt>0&&e.lineTo(c+Zc(ht-Lt,0),d+ve),Lt-=ht,Lt>0&&e.lineTo(c,d+Zc(ve-Lt,0));break t}v+=A}e.rect(c,d,ht,ve);break;case bt.Z:if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;e.lineTo(u*(1-D)+s*D,h*(1-D)+l*D);break t}v+=A}e.closePath(),u=s,h=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=bt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const Cn=JI;function to(n,e,t,i,o,r,a){if(o===0)return!1;var s=o,l=0,u=n;if(a>e+s&&a>i+s||an+s&&r>t+s||re+c&&h>i+c&&h>r+c&&h>s+c||hn+c&&u>t+c&&u>o+c&&u>a+c||ue+u&&l>i+u&&l>r+u||ln+u&&s>t+u&&s>o+u||st||h+uo&&(o+=ma);var d=Math.atan2(l,s);return d<0&&(d+=ma),d>=i&&d<=o||d+ma>=i&&d+ma<=o}function jn(n,e,t,i,o,r){if(r>e&&r>i||ro?s:0}var gi=Cn.CMD,eo=Math.PI*2,nA=1e-4;function iA(n,e){return Math.abs(n-e)e&&u>i&&u>r&&u>s||u1&&oA(),p=Vt(e,i,r,s,Ne[0]),d>1&&(f=Vt(e,i,r,s,Ne[1]))),d===2?ve&&s>i&&s>r||s=0&&u<=1){for(var h=0,c=Zt(e,i,r,u),d=0;dt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);he[0]=-l,he[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u>=eo-1e-4){i=0,o=eo;var h=r?1:-1;return a>=he[0]+n&&a<=he[1]+n?h:0}if(i>o){var c=i;i=o,o=c}i<0&&(i+=eo,o+=eo);for(var d=0,p=0;p<2;p++){var f=he[p];if(f+n>a){var g=Math.atan2(s,f),h=r?1:-1;g<0&&(g=eo+g),(g>=i&&g<=o||g+eo>=i&&g+eo<=o)&&(g>Math.PI/2&&g1&&(t||(s+=jn(l,u,h,c,i,o))),v&&(l=r[f],u=r[f+1],h=l,c=u),g){case gi.M:h=r[f++],c=r[f++],l=h,u=c;break;case gi.L:if(t){if(to(l,u,r[f],r[f+1],e,i,o))return!0}else s+=jn(l,u,r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.C:if(t){if(tA(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=rA(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.Q:if(t){if(Wy(l,u,r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=aA(l,u,r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.A:var y=r[f++],m=r[f++],x=r[f++],_=r[f++],w=r[f++],b=r[f++];f+=1;var S=!!(1-r[f++]);d=Math.cos(w)*x+y,p=Math.sin(w)*_+m,v?(h=d,c=p):s+=jn(l,u,d,p,i,o);var T=(i-y)*_/x+y;if(t){if(eA(y,m,_,w,w+b,S,e,T,o))return!0}else s+=sA(y,m,_,w,w+b,S,T,o);l=Math.cos(w+b)*x+y,u=Math.sin(w+b)*_+m;break;case gi.R:h=l=r[f++],c=u=r[f++];var I=r[f++],C=r[f++];if(d=h+I,p=c+C,t){if(to(h,c,d,c,e,i,o)||to(d,c,d,p,e,i,o)||to(d,p,h,p,e,i,o)||to(h,p,h,c,e,i,o))return!0}else s+=jn(d,c,d,p,i,o),s+=jn(h,p,h,c,i,o);break;case gi.Z:if(t){if(to(l,u,h,c,e,i,o))return!0}else s+=jn(l,u,h,c,i,o);l=h,u=c;break}}return!t&&!iA(u,c)&&(s+=jn(l,u,h,c,i,o)||0),s!==0}function lA(n,e,t){return Hy(n,0,!1,e,t)}function uA(n,e,t,i){return Hy(n,e,!0,t,i)}var gl=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ji),hA={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cl.style)},Qc=mn.concat(["invisible","culling","z","z2","zlevel","parent"]),cA=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(l){t.buildPath(l,t.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s.5?mc:i>.2?GC:xc}else if(t)return xc}return mc},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(G(i)){var o=this.__zr,r=!!(o&&o.isDarkMode()),a=oa(t,0)0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,o=!t;if(o){var r=!1;this.path||(r=!0,this.createPathProxy());var a=this.path;(r||this.__dirty&Yo)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h!=null?h:4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect(),a=this.style;if(t=o[0],i=o[1],r.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uA(s,l/u,t,i)))return!0}if(this.hasFill())return lA(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var o=this.shape;return o||(o=this.shape={}),typeof t=="string"?o[t]=i:N(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yo)},e.prototype.createStyle=function(t){return Wr(gl,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.shape?a?r?u=i.shape:(u=N({},o.shape),N(u,i.shape)):(u=N({},r?this.shape:o.shape),N(u,i.shape)):l&&(u=o.shape),u)if(a){this.shape=N({},this.shape);for(var h={},c=at(u),d=0;d0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Wr(pA,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var o=ua(i,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;o.x-=r/2,o.y-=r/2,o.width+=r,o.height+=r}this._rect=o}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(wn);Yy.prototype.type="tspan";const xa=Yy;var dA=K({x:0,y:0},ji),fA={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cl.style)};function gA(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var Uy=function(n){Mt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wr(dA,t)},e.prototype._getSize=function(t){var i=this.style,o=i[t];if(o!=null)return o;var r=gA(i.image)?i.image:this.__image;if(!r)return 0;var a=t==="width"?"height":"width",s=i[a];return s==null?r[t]:r[t]/r[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fA},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ut(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(wn);Uy.prototype.type="image";const ee=Uy;function vA(n,e){var t=e.x,i=e.y,o=e.width,r=e.height,a=e.r,s,l,u,h;o<0&&(t=t+o,o=-o),r<0&&(i=i+r,r=-r),typeof a=="number"?s=l=u=h=a:a instanceof Array?a.length===1?s=l=u=h=a[0]:a.length===2?(s=u=a[0],l=h=a[1]):a.length===3?(s=a[0],l=h=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],h=a[3]):s=l=u=h=0;var c;s+l>o&&(c=s+l,s*=o/c,l*=o/c),u+h>o&&(c=u+h,u*=o/c,h*=o/c),l+u>r&&(c=l+u,l*=r/c,u*=r/c),s+h>r&&(c=s+h,s*=r/c,h*=r/c),n.moveTo(t+s,i),n.lineTo(t+o-l,i),l!==0&&n.arc(t+o-l,i+l,l,-Math.PI/2,0),n.lineTo(t+o,i+r-u),u!==0&&n.arc(t+o-u,i+r-u,u,0,Math.PI/2),n.lineTo(t+h,i+r),h!==0&&n.arc(t+h,i+r-h,h,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Qo=Math.round;function Xy(n,e,t){if(e){var i=e.x1,o=e.x2,r=e.y1,a=e.y2;n.x1=i,n.x2=o,n.y1=r,n.y2=a;var s=t&&t.lineWidth;return s&&(Qo(i*2)===Qo(o*2)&&(n.x1=n.x2=no(i,s,!0)),Qo(r*2)===Qo(a*2)&&(n.y1=n.y2=no(r,s,!0))),n}}function Zy(n,e,t){if(e){var i=e.x,o=e.y,r=e.width,a=e.height;n.x=i,n.y=o,n.width=r,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=no(i,s,!0),n.y=no(o,s,!0),n.width=Math.max(no(i+r,s,!1)-n.x,r===0?0:1),n.height=Math.max(no(o+a,s,!1)-n.y,a===0?0:1)),n}}function no(n,e,t){if(!e)return n;var i=Qo(n*2);return(i+Qo(e))%2===0?i/2:(i+(t?1:-1))/2}var yA=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),mA={},jy=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yA},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=Zy(mA,i,this.style);o=l.x,r=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else o=i.x,r=i.y,a=i.width,s=i.height;i.r?vA(t,i):t.rect(o,r,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(gt);jy.prototype.type="rect";const yt=jy;var qy={fill:"#000"},Ky=2,xA={style:K({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},cl.style)},$y=function(n){Mt(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=qy,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=a.calculatedLineHeight,P=0;P=0&&(P=b[k],P.align==="right");)this._placeToken(P,t,T,y,D,"right",x),I-=P.width,D-=P.width,k--;for(A+=(r-(A-v)-(m-D)-I)/2;C<=k;)P=b[C],this._placeToken(P,t,T,y,A+P.width/2,"center",x),A+=P.width,C++;y+=T}},e.prototype._placeToken=function(t,i,o,r,a,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,c=r+o/2;h==="top"?c=r+t.height/2:h==="bottom"&&(c=r+o-t.height/2);var d=!t.isLineHolder&&Jc(u);d&&this._renderBackground(u,i,s==="right"?a-t.width:s==="center"?a-t.width/2:a,c-t.height/2,t.width,t.height);var p=!!u.backgroundColor,f=t.textPadding;f&&(a=rm(a,s,f),c-=t.height/2-f[0]-t.innerHeight/2);var g=this._getOrCreateChild(xa),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,m=!1,x=0,_=om("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=im("stroke"in u?u.stroke:"stroke"in i?i.stroke:!p&&!l&&(!y.autoStroke||m)?(x=Ky,y.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;v.text=t.text,v.x=a,v.y=c,b&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=t.font||oi,v.opacity=Ni(u.opacity,i.opacity,1),tm(v,u),w&&(v.lineWidth=Ni(u.lineWidth,i.lineWidth,x),v.lineDash=J(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),_&&(v.fill=_);var S=t.contentWidth,T=t.contentHeight;g.setBoundingRect(new ut(ha(v.x,S,v.textAlign),qo(v.y,T,v.textBaseline),S,T))},e.prototype._renderBackground=function(t,i,o,r,a,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,d=l&&!c,p=t.borderRadius,f=this,g,v;if(d||t.lineHeight||u&&h){g=this._getOrCreateChild(yt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=o,y.y=r,y.width=a,y.height=s,y.r=p,g.dirtyShape()}if(d){var m=g.style;m.fill=l||null,m.fillOpacity=J(t.fillOpacity,1)}else if(c){v=this._getOrCreateChild(ee),v.onload=function(){f.dirtyStyle()};var x=v.style;x.image=l.image,x.x=o,x.y=r,x.width=a,x.height=s}if(u&&h){var m=g.style;m.lineWidth=u,m.stroke=h,m.strokeOpacity=J(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(g||v).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Ni(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return em(t)&&(i=[t.fontStyle,t.fontWeight,Jy(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&De(i)||t.textFont||t.font},e}(wn),_A={left:!0,right:1,center:1},bA={top:1,bottom:1,middle:1},Qy=["fontStyle","fontWeight","fontSize","fontFamily"];function Jy(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?bh+"px":n+"px"}function tm(n,e){for(var t=0;t=0,r=!1;if(n instanceof gt){var a=um(n),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(Jo(s)||Jo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(r=!0,i=N({},i),u=N({},u),u.fill=s):!Jo(u.fill)&&Jo(s)?(r=!0,i=N({},i),u=N({},u),u.fill=qs(s)):!Jo(u.stroke)&&Jo(l)&&(r||(i=N({},i),u=N({},u)),u.stroke=qs(l)),i.style=u}}if(i&&i.z2==null){r||(i=N({},i));var h=n.z2EmphasisLift;i.z2=n.z2+(h!=null?h:ip)}return i}function AA(n,e,t){if(t&&t.z2==null){t=N({},t);var i=n.z2SelectLift;t.z2=n.z2+(i!=null?i:SA)}return t}function DA(n,e,t){var i=lt(n.currentStates,e)>=0,o=n.style.opacity,r=i?null:CA(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=N({},t),a=N({opacity:i?o:r.opacity*.1},a),t.style=a),t}function rp(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return IA(this,n,e,t);if(n==="blur")return DA(this,n,t);if(n==="select")return AA(this,n,t)}return t}function bl(n){n.stateProxy=rp;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=rp),t&&(t.stateProxy=rp)}function fm(n,e){!xm(n,e)&&!n.__highByOuter&&qn(n,hm)}function gm(n,e){!xm(n,e)&&!n.__highByOuter&&qn(n,cm)}function oo(n,e){n.__highByOuter|=1<<(e||0),qn(n,hm)}function ro(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&qn(n,cm)}function vm(n){qn(n,op)}function ap(n){qn(n,pm)}function ym(n){qn(n,MA)}function mm(n){qn(n,TA)}function xm(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function _m(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(o,r){var a=ep(r),s=o==="series",l=s?n.getViewOfSeriesModel(r):n.getViewOfComponentModel(r);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){pm(u)}),s&&t.push(r)),a.isBlured=!1}),M(i,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(t,!1,e)})}function sp(n,e,t,i){var o=i.getModel();t=t||"coordinateSystem";function r(u,h){for(var c=0;c0){var s={dataIndex:a,seriesIndex:t.seriesIndex};r!=null&&(s.dataType=r),e.push(s)}})}),e}function vi(n,e,t){wl(n,!0),qn(n,bl),wm(n,e,t)}function NA(n){wl(n,!1)}function nn(n,e,t,i){i?NA(n):vi(n,e,t)}function wm(n,e,t){var i=rt(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var Sm=["emphasis","blur","select"],zA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kn(n,e,t,i){t=t||"itemStyle";for(var o=0;o1&&(a*=cp(f),s*=cp(f));var g=(o===r?-1:1)*cp((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(n+t)/2+Tl(c)*v-Ml(c)*y,x=(e+i)/2+Ml(c)*v+Tl(c)*y,_=Am([1,0],[(d-v)/a,(p-y)/s]),w=[(d-v)/a,(p-y)/s],b=[(-1*d-v)/a,(-1*p-y)/s],S=Am(w,b);if(pp(w,b)<=-1&&(S=Ma),pp(w,b)>=1&&(S=0),S<0){var T=Math.round(S/Ma*1e6)/1e6;S=Ma*2+T%2*Ma}h.addData(u,m,x,a,s,_,S,c,r)}var GA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YA(n){var e=new Cn;if(!n)return e;var t=0,i=0,o=t,r=i,a,s=Cn.CMD,l=n.match(GA);if(!l)return e;for(var u=0;uP*P+L*L&&(T=C,I=A),{cx:T,cy:I,x0:-h,y0:-c,x1:T*(o/w-1),y1:I*(o/w-1)}}function QA(n){var e;if(V(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function JA(n,e){var t,i=Ca(e.r,0),o=Ca(e.r0||0,0),r=i>0,a=o>0;if(!(!r&&!a)){if(r||(i=o,o=0),o>i){var s=i;i=o,o=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,d=!!e.clockwise,p=Bm(u-l),f=p>dp&&p%dp;if(f>on&&(p=f),!(i>on))n.moveTo(h,c);else if(p>dp-on)n.moveTo(h+i*er(l),c+i*ao(l)),n.arc(h,c,i,l,u,!d),o>on&&(n.moveTo(h+o*er(u),c+o*ao(u)),n.arc(h,c,o,u,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,T=void 0,I=void 0,C=void 0,A=void 0,D=void 0,k=void 0,P=void 0,L=i*er(l),O=i*ao(l),E=o*er(u),R=o*ao(u),B=p>on;if(B){var W=e.cornerRadius;W&&(t=QA(W),g=t[0],v=t[1],y=t[2],m=t[3]);var Z=Bm(i-o)/2;if(x=In(Z,y),_=In(Z,m),w=In(Z,g),b=In(Z,v),I=S=Ca(x,_),C=T=Ca(w,b),(S>on||T>on)&&(A=i*er(u),D=i*ao(u),k=o*er(l),P=o*ao(l),pon){var Pt=In(y,I),It=In(m,I),tt=Il(k,P,L,O,i,Pt,d),ht=Il(A,D,E,R,i,It,d);n.moveTo(h+tt.cx+tt.x0,c+tt.cy+tt.y0),I0&&n.arc(h+tt.cx,c+tt.cy,Pt,ne(tt.y0,tt.x0),ne(tt.y1,tt.x1),!d),n.arc(h,c,i,ne(tt.cy+tt.y1,tt.cx+tt.x1),ne(ht.cy+ht.y1,ht.cx+ht.x1),!d),It>0&&n.arc(h+ht.cx,c+ht.cy,It,ne(ht.y1,ht.x1),ne(ht.y0,ht.x0),!d))}else n.moveTo(h+L,c+O),n.arc(h,c,i,l,u,!d);if(!(o>on)||!B)n.lineTo(h+E,c+R);else if(C>on){var Pt=In(g,C),It=In(v,C),tt=Il(E,R,A,D,o,-It,d),ht=Il(L,O,k,P,o,-Pt,d);n.lineTo(h+tt.cx+tt.x0,c+tt.cy+tt.y0),C0&&n.arc(h+tt.cx,c+tt.cy,It,ne(tt.y0,tt.x0),ne(tt.y1,tt.x1),!d),n.arc(h,c,o,ne(tt.cy+tt.y1,tt.cx+tt.x1),ne(ht.cy+ht.y1,ht.cx+ht.x1),d),Pt>0&&n.arc(h+ht.cx,c+ht.cy,Pt,ne(ht.y1,ht.x1),ne(ht.y0,ht.x0),!d))}else n.lineTo(h+E,c+R),n.arc(h,c,o,u,l,d)}n.closePath()}}}var tD=function(){function n(){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 n}(),Em=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tD},e.prototype.buildPath=function(t,i){JA(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gt);Em.prototype.type="sector";const ze=Em;var eD=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),Vm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new eD},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.PI*2;t.moveTo(o+i.r,r),t.arc(o,r,i.r,0,a,!1),t.moveTo(o+i.r0,r),t.arc(o,r,i.r0,0,a,!0)},e}(gt);Vm.prototype.type="ring";const Ia=Vm;function nD(n,e,t,i){var o=[],r=[],a=[],s=[],l,u,h,c;if(i){h=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,p=n.length;d=2){if(i){var r=nD(o,i,t,e.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(t?a:a-1);s++){var l=r[s*2],u=r[s*2+1],h=o[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;slo[1]){if(s=!1,r)return s;var h=Math.abs(lo[0]-so[1]),c=Math.abs(so[0]-lo[1]);Math.min(h,c)>o.len()&&(h0){var c=h.duration,d=h.delay,p=h.easing,f={duration:c,delay:d||0,easing:p,done:r,force:!!r||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,f):e.animateTo(t,f)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),r&&r()}function Tt(n,e,t,i,o,r){vp("update",n,e,t,i,o,r)}function Yt(n,e,t,i,o,r){vp("enter",n,e,t,i,o,r)}function nr(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function e0(n){return!n.isGroup}function xD(n){return n.shape!=null}function ka(n,e,t){if(!n||!e)return;function i(a){var s={};return a.traverse(function(l){e0(l)&&l.anid&&(s[l.anid]=l)}),s}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return xD(a)&&(s.shape=N({},a.shape)),s}var r=i(n);e.traverse(function(a){if(e0(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Tt(a,l,t,rt(a).dataIndex)}}})}function bp(n,e){return F(n,function(t){var i=t[0];i=Rl(i,e.x),i=Nl(i,e.x+e.width);var o=t[1];return o=Rl(o,e.y),o=Nl(o,e.y+e.height),[i,o]})}function n0(n,e){var t=Rl(n.x,e.x),i=Nl(n.x+n.width,e.x+e.width),o=Rl(n.y,e.y),r=Nl(n.y+n.height,e.y+e.height);if(i>=t&&r>=o)return{x:t,y:o,width:i-t,height:r-o}}function ar(n,e,t){var i=N({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(o.image=n.slice(8),K(o,t),new ee(i)):zl(n.replace("path://",""),i,t,"center")}function i0(n,e,t,i,o){for(var r=0,a=o[o.length-1];r1)return!1;var v=wp(p,f,h,c)/d;return!(v<0||v>1)}function wp(n,e,t,i){return n*i-t*e}function _D(n){return n<=1e-6&&n>=-1e-6}function sr(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,o=G(e)?{formatter:e}:e,r=t.mainType,a=t.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=n.formatterParamsExtra;l&&M(at(l),function(h){H(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=rt(n.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:K({content:i,formatterParams:s},o)}}function r0(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Pa(n,e){if(n)if(V(n))for(var t=0;t=0&&s.push(l)}),s}}function mi(n,e){return et(et({},n,!0),e,!0)}const OD={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:". "}}}},RD={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 Vl="ZH",Ap="EN",hr=Ap,Fl={},Dp={},g0=ct.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||hr).toUpperCase();return n.indexOf(Vl)>-1?Vl:hr}():hr;function kp(n,e){n=n.toUpperCase(),Dp[n]=new Ot(e),Fl[n]=e}function ND(n){if(G(n)){var e=Fl[n.toUpperCase()]||{};return n===Vl||n===Ap?q(e):et(q(e),q(Fl[hr]),!1)}else return et(q(n),q(Fl[hr]),!1)}function Pp(n){return Dp[n]}function zD(){return Dp[hr]}kp(Ap,OD),kp(Vl,RD);var Lp=1e3,Op=Lp*60,La=Op*60,Fe=La*24,v0=Fe*365,Oa={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}"},Wl="{yyyy}-{MM}-{dd}",y0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wl,hour:Wl+" "+Oa.hour,minute:Wl+" "+Oa.minute,second:Wl+" "+Oa.second,millisecond:Oa.none},Rp=["year","month","day","hour","minute","second","millisecond"],m0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ce(n,e){return n+="","0000".substr(0,e-n.length)+n}function cr(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function BD(n){return n===cr(n)}function ED(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ra(n,e,t,i){var o=Re(n),r=o[Np(t)](),a=o[pr(t)]()+1,s=Math.floor((a-1)/3)+1,l=o[Gl(t)](),u=o["get"+(t?"UTC":"")+"Day"](),h=o[Na(t)](),c=(h-1)%12+1,d=o[Hl(t)](),p=o[Yl(t)](),f=o[Ul(t)](),g=i instanceof Ot?i:Pp(i||g0)||zD(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,ce(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ce(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ce(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ce(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ce(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ce(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ce(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ce(f,3)).replace(/{S}/g,f+"")}function VD(n,e,t,i,o){var r=null;if(G(t))r=t;else if($(t))r=t(n.value,e,{level:n.level});else{var a=N({},Oa);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(V(r)){var c=n.level==null?0:n.level>=0?n.level:r.length+n.level;c=Math.min(c,r.length-1),r=r[c]}}return Ra(new Date(n.value),r,o,i)}function x0(n,e){var t=Re(n),i=t[pr(e)]()+1,o=t[Gl(e)](),r=t[Na(e)](),a=t[Hl(e)](),s=t[Yl(e)](),l=t[Ul(e)](),u=l===0,h=u&&s===0,c=h&&a===0,d=c&&r===0,p=d&&o===1,f=p&&i===1;return f?"year":p?"month":d?"day":c?"hour":h?"minute":u?"second":"millisecond"}function _0(n,e,t){var i=vt(n)?Re(n):n;switch(e=e||x0(n,t),e){case"year":return i[Np(t)]();case"half-year":return i[pr(t)]()>=6?1:0;case"quarter":return Math.floor((i[pr(t)]()+1)/4);case"month":return i[pr(t)]();case"day":return i[Gl(t)]();case"half-day":return i[Na(t)]()/24;case"hour":return i[Na(t)]();case"minute":return i[Hl(t)]();case"second":return i[Yl(t)]();case"millisecond":return i[Ul(t)]()}}function Np(n){return n?"getUTCFullYear":"getFullYear"}function pr(n){return n?"getUTCMonth":"getMonth"}function Gl(n){return n?"getUTCDate":"getDate"}function Na(n){return n?"getUTCHours":"getHours"}function Hl(n){return n?"getUTCMinutes":"getMinutes"}function Yl(n){return n?"getUTCSeconds":"getSeconds"}function Ul(n){return n?"getUTCMilliseconds":"getMilliseconds"}function FD(n){return n?"setUTCFullYear":"setFullYear"}function b0(n){return n?"setUTCMonth":"setMonth"}function w0(n){return n?"setUTCDate":"setDate"}function S0(n){return n?"setUTCHours":"setHours"}function M0(n){return n?"setUTCMinutes":"setMinutes"}function T0(n){return n?"setUTCSeconds":"setSeconds"}function C0(n){return n?"setUTCMilliseconds":"setMilliseconds"}function zp(n){if(!Oc(n))return G(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bp(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var co=Rs;function Ep(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&De(h)?h:"-"}function r(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?Re(n):n;if(isNaN(+l)){if(s)return"-"}else return Ra(l,i,t)}if(e==="ordinal")return Ls(n)?o(n):vt(n)&&r(n)?n+"":"-";var u=Un(n);return r(u)?zp(u):Ls(n)?o(n):typeof n=="boolean"?n+"":"-"}var I0=["a","b","c","d","e","f","g"],Vp=function(n,e){return"{"+n+(e!=null?e:"")+"}"};function Fp(n,e,t){V(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r':'';var a=t.markerId||"markerX";return{renderMode:r,content:"{"+a+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function GD(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd yyyy`);var i=Re(e),o=t?"getUTC":"get",r=i[o+"FullYear"](),a=i[o+"Month"]()+1,s=i[o+"Date"](),l=i[o+"Hours"](),u=i[o+"Minutes"](),h=i[o+"Seconds"](),c=i[o+"Milliseconds"]();return n=n.replace("MM",ce(a,2)).replace("M",a).replace("yyyy",r).replace("yy",ce(r%100+"",2)).replace("dd",ce(s,2)).replace("d",s).replace("hh",ce(l,2)).replace("h",l).replace("mm",ce(u,2)).replace("m",u).replace("ss",ce(h,2)).replace("s",h).replace("SSS",ce(c,3)),n}function HD(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function po(n,e){return e=e||"transparent",G(n)?n:j(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function Wp(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var Xl=M,D0=["left","right","top","bottom","width","height"],fo=[["width","left","right"],["height","top","bottom"]];function Gp(n,e,t,i,o){var r=0,a=0;i==null&&(i=1/0),o==null&&(o=1/0);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),c=e.childAt(u+1),d=c&&c.getBoundingRect(),p,f;if(n==="horizontal"){var g=h.width+(d?-d.x+h.x:0);p=r+g,p>i||l.newline?(r=0,p=g,a+=s+t,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(d?-d.y+h.y:0);f=a+v,f>o||l.newline?(r+=s+t,a=0,f=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),n==="horizontal"?r=p+t:a=f+t)})}var go=Gp;pt(Gp,"vertical"),pt(Gp,"horizontal");function YD(n,e,t){var i=e.width,o=e.height,r=U(n.left,i),a=U(n.top,o),s=U(n.right,i),l=U(n.bottom,o);return(isNaN(r)||isNaN(parseFloat(n.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=o),t=co(t||0),{width:Math.max(s-r-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function pe(n,e,t){t=co(t||0);var i=e.width,o=e.height,r=U(n.left,i),a=U(n.top,o),s=U(n.right,i),l=U(n.bottom,o),u=U(n.width,i),h=U(n.height,o),c=t[2]+t[0],d=t[1]+t[3],p=n.aspect;switch(isNaN(u)&&(u=i-s-d-r),isNaN(h)&&(h=o-l-c-a),p!=null&&(isNaN(u)&&isNaN(h)&&(p>i/o?u=i*.8:h=o*.8),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(r)&&(r=i-s-u-d),isNaN(a)&&(a=o-l-h-c),n.left||n.right){case"center":r=i/2-u/2-t[3];break;case"right":r=i-u-d;break}switch(n.top||n.bottom){case"middle":case"center":a=o/2-h/2-t[0];break;case"bottom":a=o-h-c;break}r=r||0,a=a||0,isNaN(u)&&(u=i-d-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));var f=new ut(r+t[3],a+t[0],u,h);return f.margin=t,f}function Zl(n,e,t,i,o,r){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(r=r||n,r.x=n.x,r.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new ut(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();u=u.clone(),u.applyTransform(h)}var c=pe(K({width:u.width,height:u.height},e),t,i),d=a?c.x-u.x:0,p=s?c.y-u.y:0;return l==="raw"?(r.x=d,r.y=p):(r.x+=d,r.y+=p),r===n&&n.markRedraw(),!0}function UD(n,e){return n[fo[e][0]]!=null||n[fo[e][1]]!=null&&n[fo[e][2]]!=null}function za(n){var e=n.layoutMode||n.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function xi(n,e,t){var i=t&&t.ignoreSize;!V(i)&&(i=[i,i]);var o=a(fo[0],0),r=a(fo[1],1);u(fo[0],n,o),u(fo[1],n,r);function a(h,c){var d={},p=0,f={},g=0,v=2;if(Xl(h,function(x){f[x]=n[x]}),Xl(h,function(x){s(e,x)&&(d[x]=f[x]=e[x]),l(d,x)&&p++,l(f,x)&&g++}),i[c])return l(e,h[1])?f[h[2]]=null:l(e,h[2])&&(f[h[1]]=null),f;if(g===v||!p)return f;if(p>=v)return d;for(var y=0;y=0;l--)s=et(s,o[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var o=t+"Index",r=t+"Id";return va(this.ecModel,t,{index:this.get(o,!0),id:this.get(r,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ot);ky(fr,Ot),ul(fr),PD(fr),LD(fr,ZD);function ZD(n){var e=[];return M(fr.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=F(e,function(t){return bn(t).main}),n!=="dataset"&<(e,"dataset")<=0&&e.unshift("dataset"),e}const ft=fr;var P0="";typeof navigator<"u"&&(P0=navigator.platform||"");var gr="rgba(0, 0, 0, 0.2)";const jD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:P0.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 L0=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),We="original",de="arrayRows",Ge="objectRows",Pn="keyedColumns",_i="typedArray",O0="unknown",Ln="column",vr="row",Kt={Must:1,Might:2,Not:3},R0=_t();function qD(n){R0(n).datasetMap=X()}function N0(n,e,t){var i={},o=Yp(e);if(!o||!n)return i;var r=[],a=[],s=e.ecModel,l=R0(s).datasetMap,u=o.uid+"_"+t.seriesLayoutBy,h,c;n=n.slice(),M(n,function(g,v){var y=j(g)?g:n[v]={name:g};y.type==="ordinal"&&h==null&&(h=v,c=f(y)),i[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(n,function(g,v){var y=g.name,m=f(g);if(h==null){var x=d.valueWayDim;p(i[y],x,m),p(a,x,m),d.valueWayDim+=m}else if(h===v)p(i[y],0,m),p(r,0,m);else{var x=d.categoryWayDim;p(i[y],x,m),p(a,x,m),d.categoryWayDim+=m}});function p(g,v,y){for(var m=0;me)return n[i];return n[t-1]}function V0(n,e,t,i,o,r,a){r=r||n;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var h=a==null||!i?t:tk(i,a);if(h=h||t,!(!h||!h.length)){var c=h[l];return o&&(u[o]=c),s.paletteIdx=(l+1)%h.length,c}}function ek(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var jl,Ba,F0,W0="\0_ec_inner",nk=1,G0=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,o,r,a,s){r=r||{},this.option=null,this._theme=new Ot(r),this._locale=new Ot(a),this._optionManager=s},e.prototype.setOption=function(t,i,o){var r=U0(i);this._optionManager.setOption(t,o,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,i){return this._resetOption(t,U0(i))},e.prototype._resetOption=function(t,i){var o=!1,r=this._optionManager;if(!t||t==="recreate"){var a=r.mountOption(t==="recreate");!this.option||t==="recreate"?F0(this,a):(this.restoreData(),this._mergeOption(a,i)),o=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=r.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=r.getMediaOption(this);l.length&&M(l,function(u){o=!0,this._mergeOption(u,i)},this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var o=this.option,r=this._componentsMap,a=this._componentsCount,s=[],l=X(),u=i&&i.replaceMergeMainTypeMap;qD(this),M(t,function(c,d){c!=null&&(ft.hasClass(d)?d&&(s.push(d),l.set(d,!0)):o[d]=o[d]==null?q(c):et(o[d],c,!0))}),u&&u.each(function(c,d){ft.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),h,this);function h(c){var d=QD(this,c,Dt(t[c])),p=r.get(c),f=p?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=Ty(p,d,f);mI(g,c,ft),o[c]=null,r.set(c,null),a.set(c,0);var v=[],y=[],m=0,x;M(g,function(_,w){var b=_.existing,S=_.newOption;if(!S)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",I=ft.getClass(c,_.keyInfo.subType,!T);if(!I)return;if(c==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===I)b.name=_.keyInfo.name,b.mergeOption(S,this),b.optionUpdated(S,!1);else{var C=N({componentIndex:w},_.keyInfo);b=new I(S,this,this,C),N(b,C),_.brandNew&&(b.__requireNewView=!0),b.init(S,this,this),b.optionUpdated(null,!0)}}b?(v.push(b.option),y.push(b),m++):(v.push(void 0),y.push(void 0))},this),o[c]=v,r.set(c,y),a.set(c,m),c==="series"&&jl(this)}this._seriesIndices||jl(this)},e.prototype.getOption=function(){var t=q(this.option);return M(t,function(i,o){if(ft.hasClass(o)){for(var r=Dt(i),a=r.length,s=!1,l=a-1;l>=0;l--)r[l]&&!fa(r[l])?s=!0:(r[l]=null,!s&&a--);r.length=a,t[o]=r}}),delete t[W0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var o=this._componentsMap.get(t);if(o){var r=o[i||0];if(r)return r;if(i==null){for(var a=0;a=e:t==="max"?n<=e:n===e}function dk(n,e){return n.join(",")===e.join(",")}const fk=uk;var an=M,Va=j,j0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qp(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=j0.length;t=0;v--){var y=n[v];if(s||(f=y.data.rawIndexOf(y.stackedByDimension,p)),f>=0){var m=y.data.getByRawIndex(y.stackResultDimension,f);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=aI(d,m),g=m;break}}}return i[0]=d,i[1]=g,i})})}var ql=function(){function n(e){this.data=e.data||(e.sourceFormat===Pn?{}:[]),this.sourceFormat=e.sourceFormat||O0,this.seriesLayoutBy=e.seriesLayoutBy||Ln,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;ig&&(g=x)}p[0]=f,p[1]=g}},o=function(){return this._data?this._data.length/this._dimSize:0};r1=(e={},e[de+"_"+Ln]={pure:!0,appendData:r},e[de+"_"+vr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ge]={pure:!0,appendData:r},e[Pn]={pure:!0,appendData:function(a){var s=this._data;M(a,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},e[We]={appendData:r},e[_i]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function r(a){for(var s=0;s=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return yr(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function d1(n){var e,t;return j(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function Ga(n){return new Pk(n)}var Pk=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var o=this.context;o.data=o.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!i&&(r=this._plan(this.context));var a=h(this._modBy),s=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(r="reset");function h(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||r==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(c||p1&&i>0?s:a}};return r;function a(){return e=n?null:le},gte:function(n,e){return n>=e}},Rk=function(){function n(e,t){if(!vt(t)){var i="";te(i)}this._opFn=g1[e],this._rvalFloat=Un(t)}return n.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(Un(e),this._rvalFloat)},n}(),v1=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=vt(e)?e:Un(e),o=vt(t)?t:Un(t),r=isNaN(i),a=isNaN(o);if(r&&(i=this._incomparable),a&&(o=this._incomparable),r&&a){var s=G(e),l=G(t);s&&(i=l?e:0),l&&(o=s?t:0)}return io?-this._resultLT:0},n}(),Nk=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Un(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=Un(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function zk(n,e){return n==="eq"||n==="ne"?new Nk(n==="eq",e):H(g1,n)?new Rk(n,e):null}var Bk=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return Ha(e,t)},n}();function Ek(n,e){var t=new Bk,i=n.data,o=t.sourceFormat=n.sourceFormat,r=n.startIndex,a="";n.seriesLayoutBy!==Ln&&te(a);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,v){var y=g.name,m={index:v,name:y,displayName:g.displayName};if(s.push(m),y!=null){var x="";H(l,y)&&te(x),l[y]=m}});else for(var h=0;h65535?Xk:Zk}function mr(){return[1/0,-1/0]}function jk(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function b1(n,e,t,i,o){var r=_1[t||"float"];if(o){var a=n[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;uv[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var o=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=F(a,function(m){return m.property}),h=0;hy[1]&&(y[1]=v)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)r=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,i){var o=this._chunks,r=o[e],a=[];if(!r)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,h=0,c=this.count();h=0&&l<0)&&(s=f,l=p,u=0),p===l&&(a[u++]=h))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,o=this._count;if(i===Array){e=new i(o);for(var r=0;r=c&&m<=d||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(r===2){for(var v=p[o[0]],x=p[o[1]],_=e[o[1]][0],w=e[o[1]][1],y=0;y=c&&m<=d||isNaN(m))&&(b>=_&&b<=w||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(r===1)for(var y=0;y=c&&m<=d||isNaN(m))&&(l[u++]=S)}else for(var y=0;ye[C][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=v)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),o=i._chunks,r=o[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),h,c,d,p=new(Ya(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var f=1;fh&&(h=c,d=_)}A>0&&Ah-f&&(l=h-f,s.length=l);for(var g=0;gc[1]&&(c[1]=y),d[p++]=m}return r._count=p,r._indices=d,r._updateGetRawIdx(),r},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,o=this._chunks,r=0,a=this.count();rl&&(l=c)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],o=this._chunks,r=0;r=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,o,r){return Ha(t[r],this._dimensions[r])}od={arrayRows:e,objectRows:function(t,i,o,r){return Ha(t[i],this._dimensions[r])},keyedColumns:e,original:function(t,i,o,r){var a=t&&(t.value==null?t:t.value);return Ha(a instanceof Array?a[r]:a,this._dimensions[r])},typedArray:function(t,i,o,r){return t[r]}}}(),n}();const rd=qk;var w1=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,o,r;if($l(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,r=[h._getVersionSign()]}else s=a.get("data",!0),l=se(s)?_i:We,r=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=J(c.seriesLayoutBy,d.seriesLayoutBy)||null,f=J(c.sourceHeader,d.sourceHeader),g=J(c.dimensions,d.dimensions),v=p!==d.seriesLayoutBy||!!f!=!!d.sourceHeader||g;o=v?[Qp(s,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var y=e;if(i){var m=this._applyTransform(t);o=m.sourceList,r=m.upstreamSignList}else{var x=y.get("source",!0);o=[Qp(x,this._getSourceMetaRawOption(),null)],r=[]}}this._setLocalSource(o,r)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),o=t.get("fromTransformResult",!0);if(o!=null){var r="";e.length!==1&&S1(r)}var a,s=[],l=[];return M(e,function(u){u.prepareSource();var h=u.getSource(o||0),c="";o!=null&&!h&&S1(c),s.push(h),l.push(u._getVersionSign())}),i?a=Yk(i,s,{datasetIndex:t.componentIndex}):o!=null&&(a=[Mk(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(o){var r=I1(o);r>=e&&(e=r+ +(i&&(!r||ad(o)&&!o.noHeader)))}),e}return 0}function Jk(n,e,t,i){var o=e.noHeader,r=eP(I1(e)),a=[],s=e.blocks||[];Jt(!s||V(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(H(u,l)){var h=new v1(u[l],null);s.sort(function(f,g){return h.evaluate(f.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(f,g){var v=e.valueFormatter,y=C1(f)(v?N(N({},n),{valueFormatter:v}):n,f,g>0?r.html:0,i);y!=null&&a.push(y)});var c=n.renderMode==="richText"?a.join(r.richText):sd(a.join(""),o?t:r.html);if(o)return c;var d=Ep(e.header,"ordinal",n.useUTC),p=T1(i,n.renderMode).nameStyle;return n.renderMode==="richText"?D1(n,d,p)+r.richText+c:sd('
'+le(d)+"
"+c,t)}function tP(n,e,t,i){var o=n.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,h=e.valueFormatter||n.valueFormatter||function(_){return _=V(_)?_:[_],F(_,function(w,b){return Ep(w,V(p)?p[b]:p,u)})};if(!(r&&a)){var c=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),d=r?"":Ep(l,"ordinal",u),p=e.valueType,f=a?[]:h(e.value,e.dataIndex),g=!s||!r,v=!s&&r,y=T1(i,o),m=y.nameStyle,x=y.valueStyle;return o==="richText"?(s?"":c)+(r?"":D1(n,d,m))+(a?"":oP(n,f,g,v,x)):sd((s?"":c)+(r?"":nP(d,!s,m))+(a?"":iP(f,g,v,x)),t)}}function A1(n,e,t,i,o,r){if(n){var a=C1(n),s={useUTC:o,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,r)}}function eP(n){return{html:$k[n],richText:Qk[n]}}function sd(n,e){var t='
',i="margin: "+e+"px 0 0";return'
'+n+t+"
"}function nP(n,e,t){var i=e?"margin-left:2px":"";return''+le(n)+""}function iP(n,e,t,i){var o=t?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return n=V(n)?n:[n],''+F(n,function(a){return le(a)}).join("  ")+""}function D1(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function oP(n,e,t,i,o){var r=[o],a=i?10:20;return t&&r.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,r)}function k1(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return po(i)}function P1(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var ld=function(){function n(){this.richTextStyles={},this._nextStyleNameId=my()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var o=i==="richText"?this._generateStyleName():null,r=A0({color:t,type:e,renderMode:i,markerId:o});return G(r)?r:(this.richTextStyles[o]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};V(t)?M(t,function(r){return N(i,r)}):N(i,t);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+e+"}"},n}();function L1(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,o=e.getData(),r=o.mapDimensionsAll("defaultedTooltip"),a=r.length,s=e.getRawValue(t),l=V(s),u=k1(e,t),h,c,d,p;if(a>1||l&&!a){var f=rP(s,e,t,r,u);h=f.inlineValues,c=f.inlineValueTypes,d=f.blocks,p=f.inlineValues[0]}else if(a){var g=o.getDimensionInfo(r[0]);p=h=yr(o,t,r[0]),c=g.type}else p=h=l?s[0]:s;var v=Rc(e),y=v&&e.name||"",m=o.getName(t),x=i?y:m;return sn("section",{header:y,noHeader:i||!v,sortParam:p,blocks:[sn("nameValue",{markerType:"item",markerColor:u,name:x,noName:!De(x),value:h,valueType:c,dataIndex:t})].concat(d||[])})}function rP(n,e,t,i,o){var r=e.getData(),a=Ae(n,function(c,d,p){var f=r.getDimensionInfo(p);return c=c||f&&f.tooltip!==!1&&f.displayName!=null},!1),s=[],l=[],u=[];i.length?M(i,function(c){h(yr(r,t,c),c)}):M(n,h);function h(c,d){var p=r.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(sn("nameValue",{markerType:"subItem",markerColor:o,name:p.displayName,value:c,valueType:p.type})):(s.push(c),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var bi=_t();function Ql(n,e){return n.getName(e)||n.getId(e)}var O1="__universalTransitionEnabled",Jl=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,o){this.seriesIndex=this.componentIndex,this.dataTask=Ga({count:sP,reset:lP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o);var r=bi(this).sourceManager=new w1(this);r.prepareSource();var a=this.getInitialData(t,o);N1(a,this),this.dataTask.context.data=a,bi(this).dataBeforeProcessed=a,R1(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=za(this),r=o?dr(t):{},a=this.subType;ft.hasClass(a)&&(a+="Series"),et(t,i.getTheme().get(this.subType)),et(t,this.getDefaultOption()),pa(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&xi(t,r,o)},e.prototype.mergeOption=function(t,i){t=et(this.option,t,!0),this.fillDataTextStyle(t.data);var o=za(this);o&&xi(this.option,t,o);var r=bi(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(t,i);N1(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,bi(this).dataBeforeProcessed=a,R1(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!se(t))for(var i=["show"],o=0;othis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,o){var r=this.ecModel,a=Xp.prototype.getColorFromPalette.call(this,t,i,o);return a||(a=r.getColorFromPalette(t,i,o)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var o=this.option.selectedMap;if(o){var r=this.option.selectedMode,a=this.getData(i);if(r==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&o.push(a)}return o},e.prototype.isSelected=function(t,i){var o=this.option.selectedMap;if(!o)return!1;var r=this.getData(i);return(o==="all"||o[Ql(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[O1])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var o,r,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){j(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h0&&this._innerSelect(t,i)}},e.registerClass=function(t){return ft.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ft);Ut(Jl,nd),Ut(Jl,Xp),ky(Jl,ft);function R1(n){var e=n.name;Rc(n)||(n.name=aP(n)||e)}function aP(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return M(t,function(o){var r=e.getDimensionInfo(o);r.displayName&&i.push(r.displayName)}),i.join(" ")}function sP(n){return n.model.getRawData().count()}function lP(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),uP}function uP(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function N1(n,e){M(Ah(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,pt(hP,e))})}function hP(n,e){var t=ud(n);return t&&t.setOutputEnd((e||this).count()),e}function ud(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(n.uid))}return i}}const Ce=Jl;var hd=function(){function n(){this.group=new it,this.uid=ur("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){},n.prototype.updateLayout=function(e,t,i,o){},n.prototype.updateVisual=function(e,t,i,o){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();zc(hd),ul(hd);const zt=hd;function tu(){var n=_t();return function(e){var t=n(e),i=e.pipelineContext,o=!!t.large,r=!!t.progressiveRender,a=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(o!==a||r!==s)&&"reset"}}var z1=_t(),cP=tu(),cd=function(){function n(){this.group=new it,this.uid=ur("viewChart"),this.renderTask=Ga({plan:pP,reset:dP}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.highlight=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&E1(r,o,"emphasis")},n.prototype.downplay=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&E1(r,o,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateLayout=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateVisual=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.eachRendered=function(e){Pa(this.group,e)},n.markUpdateMethod=function(e,t){z1(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function B1(n,e,t){n&&Sl(n)&&(e==="emphasis"?oo:ro)(n,t)}function E1(n,e,t){var i=Ui(n,e),o=e&&e.highlightKey!=null?EA(e.highlightKey):null;i!=null?M(Dt(i),function(r){B1(n.getItemGraphicEl(r),t,o)}):n.eachItemGraphicEl(function(r){B1(r,t,o)})}zc(cd),ul(cd);function pP(n){return cP(n.model)}function dP(n){var e=n.model,t=n.ecModel,i=n.api,o=n.payload,r=e.pipelineContext.progressiveRender,a=n.view,s=o&&z1(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,i,o),fP[l]}var fP={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const oe=cd;var eu="\0__throttleOriginMethod",V1="\0__throttleRate",F1="\0__throttleType";function nu(n,e,t){var i,o=0,r=0,a=null,s,l,u,h;e=e||0;function c(){r=new Date().getTime(),a=null,n.apply(l,u||[])}var d=function(){for(var p=[],f=0;f=0?c():a=setTimeout(c,-s),o=i};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){h=p},d}function xr(n,e,t,i){var o=n[e];if(o){var r=o[eu]||o,a=o[F1],s=o[V1];if(s!==t||a!==i){if(t==null||!i)return n[e]=r;o=n[e]=nu(r,t,i==="debounce"),o[eu]=r,o[F1]=i,o[V1]=t}return o}}function Ua(n,e){var t=n[e];t&&t[eu]&&(t.clear&&t.clear(),n[e]=t[eu])}var W1=_t(),G1={itemStyle:Zi(f0,!0),lineStyle:Zi(d0,!0)},gP={lineStyle:"stroke",itemStyle:"fill"};function H1(n,e){var t=n.visualStyleMapper||G1[e];return t||G1.itemStyle}function Y1(n,e){var t=n.visualDrawType||gP[e];return t||"fill"}var vP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=n.getModel(i),r=H1(n,i),a=r(o),s=o.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Y1(n,i),u=a[l],h=$(u)?u:null,c=a.fill==="auto"||a.stroke==="auto";if(!a[l]||h||c){var d=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=d,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||$(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||$(a.stroke)?d:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,f){var g=n.getDataParams(f),v=N({},a);v[l]=h(g),p.setItemVisual(f,"style",v)}}}},Xa=new Ot,yP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=H1(n,i),r=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Xa.option=l[i];var u=o(Xa),h=a.ensureUniqueItemVisual(s,"style");N(h,u),Xa.option.decal&&(a.setItemVisual(s,"decal",Xa.option.decal),Xa.option.decal.dirty=!0),r in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},mP={performRawSeries:!0,overallReset:function(n){var e=X();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var o=t.type+"-"+i,r=e.get(o);r||(r={},e.set(o,r)),W1(t).scope=r}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),o={},r=t.getData(),a=W1(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Y1(t,s);r.each(function(u){var h=r.getRawIndex(u);o[h]=u}),i.each(function(u){var h=o[u],c=r.getItemVisual(h,"colorFromPalette");if(c){var d=r.ensureUniqueItemVisual(h,"style"),p=i.getName(u)||u+"",f=i.count();d[l]=t.getColorFromPalette(p,a,f)}})}})}},iu=Math.PI;function xP(n,e){e=e||{},K(e,{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 t=new it,i=new yt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var o=new dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),r=new yt({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(r);var a;return e.showSpinner&&(a=new Al({shape:{startAngle:-iu/2,endAngle:-iu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:iu*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:iu*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=o.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:h}),r.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var _P=function(){function n(e,t,i,o){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=i.concat(o)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var o=i.overallTask;o&&o.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),o=i.context,r=!t&&i.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=r?i.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),o=e.getData(),r=o.count(),a=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=X();e.eachSeries(function(o){var r=o.getProgressive(),a=o.uid;i.set(a,{id:a,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:r&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;M(this._allHandlers,function(o){var r=e.get(o.uid)||e.set(o.uid,{}),a="";Jt(!(o.reset&&o.overallReset),a),o.reset&&this._createSeriesStageTask(o,r,t,i),o.overallReset&&this._createOverallStageTask(o,r,t,i)},this)},n.prototype.prepareView=function(e,t,i,o){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=i,a.api=o,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,o){o=o||{};var r=!1,a=this;M(e,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,d=h.overallTask;if(d){var p,f=d.agentStubMap;f.each(function(v){s(o,v)&&(v.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,i);var g=a.getPerformArgs(d,o.block);f.each(function(v){v.perform(g)}),d.perform(g)&&(r=!0)}else c&&c.each(function(v,y){s(o,v)&&v.dirty();var m=a.getPerformArgs(v,o.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(r=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=r||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,o).each(h);function h(c){var d=c.uid,p=s.set(d,a&&a.get(d)||Ga({plan:TP,reset:CP,count:AP}));p.context={model:c,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(c,p)}},n.prototype._createOverallStageTask=function(e,t,i,o){var r=this,a=t.overallTask=t.overallTask||Ga({reset:bP});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=X(),u=e.seriesType,h=e.getTargetSeries,c=!0,d=!1,p="";Jt(!e.createOnAllSeries,p),u?i.eachRawSeriesByType(u,f):h?h(i,o).each(f):(c=!1,M(i.getSeries(),f));function f(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(d=!0,Ga({reset:wP,onDirty:MP})));y.context={model:g,overallProgress:c},y.agent=a,y.__block=c,r._pipe(g,y)}d&&a.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,o=this._pipelineMap.get(i);!o.head&&(o.head=t),o.tail&&o.tail.pipe(t),o.tail=t,t.__idxInPipeline=o.count++,t.__pipeline=o},n.wrapStageHandler=function(e,t){return $(e)&&(e={overallReset:e,seriesType:DP(e)}),e.uid=ur("stageHandler"),t&&(e.visualType=t),e},n}();function bP(n){n.overallReset(n.ecModel,n.api,n.payload)}function wP(n){return n.overallProgress&&SP}function SP(){this.agent.dirty(),this.getDownstream().dirty()}function MP(){this.agent&&this.agent.dirty()}function TP(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function CP(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Dt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?F(e,function(t,i){return U1(i)}):IP}var IP=U1(0);function U1(n){return function(e,t){var i=t.data,o=t.resetDefines[n];if(o&&o.dataEach)for(var r=e.start;r0&&p===u.length-d.length){var f=u.slice(0,p);f!=="data"&&(t.mainType=f,t[d.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(o[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:o}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,r,"name")&&h(u,r,"dataIndex")&&h(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function h(c,d,p,f){return c[p]==null||d[f||p]===c[p]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),pd=["symbol","symbolSize","symbolRotate","symbolOffset"],J1=pd.concat(["symbolKeepAspect"]),OP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},o={},r=!1,a=0;a=0&&_o(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function gd(n,e,t){for(var i=e.type==="radial"?qP(n,e,t):jP(n,e,t),o=e.colorStops,r=0;r0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:vt(n)?[n]:V(n)?n:null}function yd(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&$P(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var o=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;o&&o!==1&&(t=F(t,function(r){return r/o}),i/=o)}return[t,i]}var QP=new Cn(!0);function uu(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function nx(n){return typeof n=="string"&&n!=="none"}function hu(n){var e=n.fill;return e!=null&&e!=="none"}function ix(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function ox(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function md(n,e,t){var i=Ec(e.image,e.__image,t);if(hl(i)){var o=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Gr),r.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(r)}return o}}function JP(n,e,t,i){var o,r=uu(t),a=hu(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var h=e.path||QP,c=e.__dirty;if(!i){var d=t.fill,p=t.stroke,f=a&&!!d.colorStops,g=r&&!!p.colorStops,v=a&&!!d.image,y=r&&!!p.image,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=c?gd(n,d,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=c?gd(n,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=c||!e.__canvasFillPattern?md(n,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(w=c||!e.__canvasStrokePattern?md(n,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?n.fillStyle=m:v&&(_?n.fillStyle=_:a=!1),g?n.strokeStyle=x:y&&(w?n.strokeStyle=w:r=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var T,I;n.setLineDash&&t.lineDash&&(o=yd(e),T=o[0],I=o[1]);var C=!0;(u||c&Yo)&&(h.setDPR(n.dpr),l?h.setContext(null):(h.setContext(n),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(n,l?s:1),T&&(n.setLineDash(T),n.lineDashOffset=I),i||(t.strokeFirst?(r&&ox(n,t),a&&ix(n,t)):(a&&ix(n,t),r&&ox(n,t))),T&&n.setLineDash([])}function tL(n,e,t){var i=e.__image=Ec(t.image,e.__image,e,e.onload);if(!(!i||!hl(i))){var o=t.x||0,r=t.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,h=t.sy||0;n.drawImage(i,u,h,t.sWidth,t.sHeight,o,r,a,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,c=a-u,d=s-h;n.drawImage(i,u,h,c,d,o,r,a,s)}else n.drawImage(i,o,r,a,s)}}function eL(n,e,t){var i,o=t.text;if(o!=null&&(o+=""),o){n.font=t.font||oi,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var r=void 0,a=void 0;n.setLineDash&&t.lineDash&&(i=yd(e),r=i[0],a=i[1]),r&&(n.setLineDash(r),n.lineDashOffset=a),t.strokeFirst?(uu(t)&&n.strokeText(o,t.x,t.y),hu(t)&&n.fillText(o,t.x,t.y)):(hu(t)&&n.fillText(o,t.x,t.y),uu(t)&&n.strokeText(o,t.x,t.y)),r&&n.setLineDash([])}}var rx=["shadowBlur","shadowOffsetX","shadowOffsetY"],ax=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sx(n,e,t,i,o){var r=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){we(n,o),r=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?ji.opacity:a}(i||e.blend!==t.blend)&&(r||(we(n,o),r=!0),n.globalCompositeOperation=e.blend||ji.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,o){if(!this[re]){if(this._disposed){this.id;return}var r,a,s;if(j(i)&&(o=i.lazyUpdate,r=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[re]=!0,!this._model||i){var l=new fk(this._api),u=this._theme,h=this._model=new X0;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},kd);var c={seriesTransition:s,optionChanged:!0};if(o)this[Se]={silent:r,updateParams:c},this[re]=!1,this.getZr().wakeUp();else{try{br(this),wi.update.call(this,null,c)}catch(d){throw this[Se]=null,this[re]=!1,d}this._ssr||this._zr.flush(),this[Se]=null,this[re]=!1,$a.call(this,r),Qa.call(this,r)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ct.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return M(i,function(o){o.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,o=this._model,r=[],a=this;M(i,function(l){o.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(r.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(r,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",o=this.group,r=Math.min,a=Math.max,s=1/0;if(mu[o]){var l=s,u=s,h=-s,c=-s,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();M(bo,function(x,_){if(x.group===o){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(q(t)),b=x.getDom().getBoundingClientRect();l=r(b.left,l),u=r(b.top,u),h=a(b.right,h),c=a(b.bottom,c),d.push({dom:w,left:b.left,top:b.top})}}),l*=p,u*=p,h*=p,c*=p;var f=h-l,g=c-u,v=Fn.createCanvas(),y=Ic(v,{renderer:i?"svg":"canvas"});if(y.resize({width:f,height:g}),i){var m="";return M(d,function(x){var _=x.left-l,w=x.top-u;m+=''+x.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new yt({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),M(d,function(x){var _=new ee({style:{x:x.left*p-l,y:x.top*p-u,image:x.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Md(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Md(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var o=this._model,r,a=ga(o,t);return M(a,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)r=r||!!h.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(r=r||c.containPoint(i,u))}},this)},this),!!r},e.prototype.getVisual=function(t,i){var o=this._model,r=ga(o,t,{defaultMainType:"series"}),a=r.seriesModel,s=a.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?s.indexOfRawIndex(r.dataIndex):null;return l!=null?dd(s,l,i):fd(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(IL,function(i){var o=function(r){var a=t.getModel(),s=r.target,l,u=i==="globalout";if(u?l={}:s&&xo(s,function(f){var g=rt(f);if(g&&g.dataIndex!=null){var v=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=v&&v.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=N({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var d=h&&c!=null&&a.getComponent(h,c),p=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=r,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},t.trigger(i,l)}};o.zrEventfulCallAtLast=!0,t._zr.on(i,o,t)}),M(Ja,function(i,o){t._messageCenter.on(o,function(r){this.trigger(o,r)},t)}),M(["selectchanged"],function(i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),NP(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Iy(this.getDom(),Ld,"");var i=this,o=i._api,r=i._model;M(i._componentsViews,function(a){a.dispose(r,o)}),M(i._chartsViews,function(a){a.dispose(r,o)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete bo[i.id]},e.prototype.resize=function(t){if(!this[re]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var o=i.resetOption("media"),r=t&&t.silent;this[Se]&&(r==null&&(r=this[Se].silent),o=!0,this[Se]=null),this[re]=!0;try{o&&br(this),wi.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(a){throw this[re]=!1,a}this[re]=!1,$a.call(this,r),Qa.call(this,r)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(j(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Pd[t]){var o=Pd[t](this._api,i),r=this._zr;this._loadingFX=o,r.add(o)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=N({},t);return i.type=Ja[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(j(i)||(i={silent:!!i}),!!vu[t.type]&&this._model){if(this[re]){this._pendingActions.push(t);return}var o=i.silent;Cd.call(this,t,o);var r=i.flush;r?this._zr.flush():r!==!1&&ct.browser.weChat&&this._throttledZrFlush(),$a.call(this,o),Qa.call(this,o)}},e.prototype.updateLabelLayout=function(){ln.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,o=this.getModel(),r=o.getSeriesByIndex(i);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){br=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Sd(c,!0),Sd(c,!1),d.plan()},Sd=function(c,d){for(var p=c._model,f=c._scheduler,g=d?c._componentsViews:c._chartsViews,v=d?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,x=0;xd.get("hoverLayerThreshold")&&!ct.node&&!ct.worker&&d.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=c._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function a(c,d){var p=c.get("blendMode")||null;d.eachRendered(function(f){f.isGroup||(f.style.blend=p)})}function s(c,d){if(!c.preventAutoZ){var p=c.get("z")||0,f=c.get("zlevel")||0;d.eachRendered(function(g){return l(g,p,f,-1/0),!0})}}function l(c,d,p,f){var g=c.getTextContent(),v=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),x=0;x0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(nr(y))return;if(y instanceof gt&&VA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(f){y.stateTransition=v;var x=y.getTextContent(),_=y.getTextGuideLine();x&&(x.stateTransition=v),_&&(_.stateTransition=v)}y.__dirty&&o(y)}})}Bx=function(c){return new(function(d){z(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(f){for(;f;){var g=f.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);f=f.parent}},p.prototype.enterEmphasis=function(f,g){oo(f,g),Ye(c)},p.prototype.leaveEmphasis=function(f,g){ro(f,g),Ye(c)},p.prototype.enterBlur=function(f){vm(f),Ye(c)},p.prototype.leaveBlur=function(f){ap(f),Ye(c)},p.prototype.enterSelect=function(f){ym(f),Ye(c)},p.prototype.leaveSelect=function(f){mm(f),Ye(c)},p.prototype.getModel=function(){return c.getModel()},p.prototype.getViewOfComponentModel=function(f){return c.getViewOfComponentModel(f)},p.prototype.getViewOfSeriesModel=function(f){return c.getViewOfSeriesModel(f)},p}(Z0))(c)},Ex=function(c){function d(p,f){for(var g=0;g=0)){Xx.push(t);var r=j1.wrapStageHandler(t,o);r.__prio=e,r.__raw=t,n.push(r)}}function Ed(n,e){Pd[n]=e}function zL(n){Kg({createCanvas:n})}function Zx(n,e,t){var i=bx("registerMap");i&&i(n,e,t)}function BL(n){var e=bx("getMap");return e&&e(n)}var jx=Hk;Si(_d,vP),Si(pu,yP),Si(pu,mP),Si(_d,OP),Si(pu,RP),Si(Tx,uL),Nd(t1),zd(vL,wk),Ed("default",xP),un({type:io,event:io,update:io},Et),un({type:yl,event:yl,update:yl},Et),un({type:wa,event:wa,update:wa},Et),un({type:ml,event:ml,update:ml},Et),un({type:Sa,event:Sa,update:Sa},Et),Rd("light",kP),Rd("dark",PP);var EL={};function ts(n){return n==null?0:n.length||1}function qx(n){return n}var VL=function(){function n(e,t,i,o,r,a){this._old=e,this._new=t,this._oldKeyGetter=i||qx,this._newKeyGetter=o||qx,this.context=r,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},o=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(r,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},o={},r=[],a=[];this._initIndexMap(e,i,r,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(h,u),o[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(h,u),o[l]=null;else if(c===1&&d===1)this._update&&this._update(h,u),o[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(h,u),o[l]=null;else if(c>1)for(var p=0;p1)for(var s=0;s30}var es=j,Mi=F,XL=typeof Int32Array>"u"?Array:Int32Array,ZL="e\0\0",n_=-1,jL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qL=["_approximateExtent"],i_,wu,ns,is,Fd,Su,Wd,KL=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,o=!1;Qx(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,i=e),i=i||["x","y"];for(var r={},a=[],s={},l=!1,u={},h=0;h=t)){var i=this._store,o=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,s=o.getSource().sourceFormat,l=s===We;if(l&&!o.pure)for(var u=[],h=e;h0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,o=i[e];o||(o=i[e]={});var r=o[t];return r==null&&(r=this.getVisual(t),V(r)?r=r.slice():es(r)&&(r=N({},r)),o[t]=r),r},n.prototype.setItemVisual=function(e,t,i){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,es(t)?N(o,t):o[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){es(e)?N(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;tp(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(i,o){i&&e&&e.call(t,i,o)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Mi(this.dimensions,this._getDimInfo,this),this.hostModel)),Fd(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];$(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=i.apply(this,arguments);return t.apply(this,[o].concat(Os(arguments)))})},n.internalField=function(){i_=function(e){var t=e._invertedIndicesMap;M(t,function(i,o){var r=e._dimInfos[o],a=r.ordinalMeta,s=e._store;if(a){i=t[o]=new XL(a.categories.length);for(var l=0;l1&&(l+="__ec__"+h),o[t]=l}}}(),n}();const Mu=KL;function $L(n,e){return Tu(n,e).dimensions}function Tu(n,e){$p(n)||(n=Jp(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],o=X(),r=[],a=JL(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&e_(a),l=i===n.dimensionsDefine,u=l?t_(n):Jx(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(n,a));for(var c=X(h),d=new m1(a),p=0;p0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function JL(n,e,t,i){var o=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return M(e,function(r){var a;j(r)&&(a=r.dimsDef)&&(o=Math.max(o,a.length))}),o}function tO(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var eO=function(){function n(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return n}();function nO(n){var e=n.get("coordinateSystem"),t=new eO(e),i=iO[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var iO={cartesian2d:function(n,e,t,i){var o=n.getReferringComponents("xAxis",Bt).models[0],r=n.getReferringComponents("yAxis",Bt).models[0];e.coordSysDims=["x","y"],t.set("x",o),t.set("y",r),wr(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),wr(r)&&(i.set("y",r),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var o=n.getReferringComponents("singleAxis",Bt).models[0];e.coordSysDims=["single"],t.set("single",o),wr(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var o=n.getReferringComponents("polar",Bt).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",r),t.set("angle",a),wr(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),wr(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var o=n.ecModel,r=o.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();M(r.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),h=a[l];t.set(h,u),wr(u)&&(i.set(h,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function wr(n){return n.get("type")==="category"}function o_(n,e,t){t=t||{};var i=t.byIndex,o=t.stackedCoordDimension,r,a,s;oO(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,h,c,d;if(M(r,function(m,x){G(m)&&(r[x]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!h&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(h=m))}),h&&!i&&!u&&(i=!0),h){c="__\0ecstackresult_"+n.id,d="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var p=h.coordDim,f=h.type,g=0;M(r,function(m){m.coordDim===p&&g++});var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(d,f),y.storeDimIndex=s.ensureCalculationDimension(c,f)),a.appendCalculationDimension(v),a.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:d,stackResultDimension:c}}function oO(n){return!Qx(n.schema)}function Ti(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function r_(n,e){return Ti(n,e)?n.getCalculationInfo("stackResultDimension"):e}function rO(n,e){var t=n.get("coordinateSystem"),i=Ea.get(t),o;return e&&e.coordSysDims&&(o=F(e.coordSysDims,function(r){var a={name:r},s=e.axisMap.get(r);if(s){var l=s.get("type");a.type=Kx(l)}return a})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}function aO(n,e,t){var i,o;return t&&M(n,function(r,a){var s=r.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=a),r.ordinalMeta=l.getOrdinalMeta(),e&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(o=!0)}),!o&&i!=null&&(n[i].otherDims.itemName=0),i}function os(n,e,t){t=t||{};var i=e.getSourceManager(),o,r=!1;n?(r=!0,o=Jp(n)):(o=i.getSource(),r=o.sourceFormat===We);var a=nO(e),s=rO(e,a),l=t.useEncodeDefaulter,u=$(l)?l:l?pt(N0,s,e):null,h={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r},c=Tu(o,h),d=aO(c.dimensions,t.createInvertedIndices,a),p=r?null:i.getSharedDataStore(c),f=o_(e,{schema:c,store:p}),g=new Mu(c,e);g.setCalculationInfo(f);var v=d!=null&&sO(o)?function(y,m,x,_){return _===d?x:this.defaultDimValueGetter(y,m,x,_)}:null;return g.hasItemOption=!1,g.initData(r?o:p,null,v),g}function sO(n){if(n.sourceFormat===We){var e=lO(n.data||[]);return!V($o(e))}}function lO(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();ul(a_);const Jn=a_;var uO=0,hO=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++uO}return n.createByAxisModel=function(e){var t=e.option,i=t.data,o=i&&F(i,cO);return new n({categories:o,needCollect:!o,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!G(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return t=o.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},n}();function cO(n){return j(n)&&n.value!=null?n.value:n+""}const Gd=hO;function Hd(n){return n.type==="interval"||n.type==="log"}function pO(n,e,t,i){var o={},r=n[1]-n[0],a=o.interval=Pc(r/e,!0);t!=null&&ai&&(a=o.interval=i);var s=o.intervalPrecision=s_(a),l=o.niceTickExtent=[kt(Math.ceil(n[0]/a)*a,s),kt(Math.floor(n[1]/a)*a,s)];return dO(l,n),o}function Yd(n){var e=Math.pow(10,ll(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,kt(t*e)}function s_(n){return _n(n)+2}function l_(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function dO(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),l_(n,0,e),l_(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Cu(n,e){return n>=e[0]&&n<=e[1]}function Iu(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Au(n,e){return n*(e[1]-e[0])+e[0]}var u_=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var o=i.getSetting("ordinalMeta");return o||(o=new Gd({})),V(o)&&(o=new Gd({categories:F(o,function(r){return j(r)?r.value:r})})),i._ordinalMeta=o,i._extent=i.getSetting("extent")||[0,o.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Cu(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Iu(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Au(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,o=i[0];o<=i[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Jn);Jn.registerClass(u_);const Ud=u_;var wo=kt,h_=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Cu(t,this._extent)},e.prototype.normalize=function(t){return Iu(t,this._extent)},e.prototype.scale=function(t){return Au(t,this._extent)},e.prototype.setExtent=function(t,i){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(i)||(o[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s_(t)},e.prototype.getTicks=function(t){var i=this._interval,o=this._extent,r=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;o[0]l)return[];var h=s.length?s[s.length-1].value:r[1];return o[1]>h&&(t?s.push({value:wo(h+i,a)}):s.push({value:o[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),o=[],r=this.getExtent(),a=1;ar[0]&&p0&&(r=r===null?s:Math.min(r,s))}t[i]=r}}return t}function d_(n){var e=vO(n),t=[];return M(n,function(i){var o=i.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent(),s;if(r.type==="category")s=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,u=e[l],h=Math.abs(a[1]-a[0]),c=r.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?h/d*u:h}else{var p=i.getData();s=Math.abs(a[1]-a[0])/p.count()}var f=U(i.get("barWidth"),s),g=U(i.get("barMaxWidth"),s),v=U(i.get("barMinWidth")||(m_(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:f,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:m,axisKey:jd(r),stackId:Zd(i)})}),f_(t)}function f_(n){var e={};M(n,function(i,o){var r=i.axisKey,a=i.bandWidth,s=e[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[r]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=i.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var c=i.barMaxWidth;c&&(l[u].maxWidth=c);var d=i.barMinWidth;d&&(l[u].minWidth=d);var p=i.barGap;p!=null&&(s.gap=p);var f=i.barCategoryGap;f!=null&&(s.categoryGap=f)});var t={};return M(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=at(r).length;s=Math.max(35-l*4,15)+"%"}var u=U(s,a),h=U(i.gap,1),c=i.remainedWidth,d=i.autoWidthCount,p=(c-u)/(d+(d-1)*h);p=Math.max(p,0),M(r,function(y){var m=y.maxWidth,x=y.minWidth;if(y.width){var _=y.width;m&&(_=Math.min(_,m)),x&&(_=Math.max(_,x)),y.width=_,c-=_+h*_,d--}else{var _=p;m&&m<_&&(_=Math.min(m,c)),x&&x>_&&(_=x),_!==p&&(y.width=_,c-=_+h*_,d--)}}),p=(c-u)/(d+(d-1)*h),p=Math.max(p,0);var f=0,g;M(r,function(y,m){y.width||(y.width=p),g=y,f+=y.width*(1+h)}),g&&(f-=g.width*h);var v=-f/2;M(r,function(y,m){t[o][m]=t[o][m]||{bandWidth:a,offset:v,width:y.width},v+=y.width*(1+h)})}),t}function yO(n,e,t){if(n&&e){var i=n[jd(e)];return i!=null&&t!=null?i[Zd(t)]:i}}function g_(n,e){var t=p_(n,e),i=d_(t);M(t,function(o){var r=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=Zd(o),u=i[jd(s)][l],h=u.offset,c=u.width;r.setLayout({bandWidth:u.bandWidth,offset:h,size:c})})}function v_(n){return{seriesType:n,plan:tu(),reset:function(e){if(y_(e)){var t=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),r=i.getOtherAxis(o),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=t.getDimensionIndex(t.mapDimension(o.dim)),l=e.get("showBackground",!0),u=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),c=Ti(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),p=mO(o,r),f=m_(e),g=e.get("barMinHeight")||0,v=h&&t.getDimensionIndex(h),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(x,_){for(var w=x.count,b=f&&On(w*3),S=f&&l&&On(w*3),T=f&&On(w),I=i.master.getRect(),C=d?I.width:I.height,A,D=_.getStore(),k=0;(A=x.next())!=null;){var P=D.get(c?v:a,A),L=D.get(s,A),O=p,E=void 0;c&&(E=+P-D.get(a,A));var R=void 0,B=void 0,W=void 0,Z=void 0;if(d){var Q=i.dataToPoint([P,L]);if(c){var ot=i.dataToPoint([E,L]);O=ot[0]}R=O,B=Q[1]+m,W=Q[0]-O,Z=y,Math.abs(W)>>1;n[o][1]o&&(this._approxInterval=o);var s=Du.length,l=Math.min(xO(Du,this._approxInterval,0,s),s-1);this._interval=Du[l][1],this._minLevelUnit=Du[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+Re(t)},e.prototype.contain=function(t){return Cu(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Iu(this.parse(t),this._extent)},e.prototype.scale=function(t){return Au(t,this._extent)},e.type="time",e}(Ci),Du=[["second",Lp],["minute",Op],["hour",La],["quarter-day",La*6],["half-day",La*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",v0/2],["year",v0]];function _O(n,e,t,i){var o=Re(e),r=Re(t),a=function(f){return _0(o,f,i)===_0(r,f,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},d=function(){return c()&&a("second")},p=function(){return d()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return d();case"millisecond":return p()}}function bO(n,e){return n/=Fe,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function wO(n){var e=30*Fe;return n/=e,n>6?6:n>3?3:n>2?2:1}function SO(n){return n/=La,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function __(n,e){return n/=e?Op:Lp,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function MO(n){return Pc(n,!0)}function TO(n,e,t){var i=new Date(n);switch(cr(e)){case"year":case"month":i[b0(t)](0);case"day":i[w0(t)](1);case"hour":i[S0(t)](0);case"minute":i[M0(t)](0);case"second":i[T0(t)](0),i[C0(t)](0)}return i.getTime()}function CO(n,e,t,i){var o=1e4,r=m0,a=0;function s(C,A,D,k,P,L,O){for(var E=new Date(A),R=A,B=E[k]();R1&&L===0&&D.unshift({value:D[0].value-R})}}for(var L=0;L=i[0]&&m<=i[1]&&c++)}var x=(i[1]-i[0])/e;if(c>x*1.5&&d>x/1.5||(u.push(v),c>x||n===r[p]))break}h=[]}}}for(var _=At(F(u,function(A){return At(A,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],b=_.length-1,p=0;p<_.length;++p)for(var S=_[p],T=0;T0;)r*=10;var s=[kt(DO(i[0]/r)*r),kt(AO(i[1]/r)*r)];this._interval=r,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){rs.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=hn(t)/hn(this.base),Cu(t,this._extent)},e.prototype.normalize=function(t){return t=hn(t)/hn(this.base),Iu(t,this._extent)},e.prototype.scale=function(t){return t=Au(t,this._extent),ku(this.base,t)},e.type="log",e}(Jn),S_=qd.prototype;S_.getMinorTicks=rs.getMinorTicks,S_.getLabel=rs.getLabel;function Pu(n,e){return IO(n,_n(e))}Jn.registerClass(qd);const kO=qd;var PO=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(e,t){this[OO[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=LO[e];this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),LO={min:"_determinedMin",max:"_determinedMax"},OO={min:"_dataMin",max:"_dataMax"};function M_(n,e,t){var i=n.rawExtentInfo;return i||(i=new PO(n,e,t),n.rawExtentInfo=i,i)}function Lu(n,e){return e==null?null:Wo(e)?NaN:n.parse(e)}function T_(n,e){var t=n.type,i=M_(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&t==="time"){var s=p_("bar",a),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=d_(s),h=RO(o,r,e,u);o=h.min,r=h.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function RO(n,e,t,i){var o=t.axis.getExtent(),r=o[1]-o[0],a=yO(i,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;M(a,function(p){s=Math.min(p.offset,s)});var l=-1/0;M(a,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-n,c=1-(s+l)/r,d=h/c-h;return e+=d*(l/u),n-=d*(s/u),{min:n,max:e}}function Sr(n,e){var t=e,i=T_(n,t),o=i.extent,r=t.get("splitNumber");n instanceof kO&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(o[0],o[1]),n.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Ou(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Ud({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Jn.getClass(e)||Ci)}}function NO(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function as(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(o,r){return n.scale.getFormattedLabel(o,r,i)}}(e):G(e)?function(i){return function(o){var r=n.scale.getLabel(o),a=i.replace("{value}",r!=null?r:"");return a}}(e):$(e)?function(i){return function(o,r){return t!=null&&(r=o.value-t),i(Kd(n,o),r,o.level!=null?{level:o.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function Kd(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function zO(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,o,r=t.getExtent();t instanceof Ud?o=t.count():(i=t.getTicks(),o=i.length);var a=n.getLabelModel(),s=as(n),l,u=1;o>40&&(u=Math.ceil(o/40));for(var h=0;hn[1]&&(n[1]=o[1])})}var ss=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),I_=[],VO={registerPreprocessor:Nd,registerProcessor:zd,registerPostInit:Gx,registerPostUpdate:Hx,registerUpdateLifecycle:xu,registerAction:un,registerCoordinateSystem:Yx,registerLayout:Ux,registerVisual:Si,registerTransform:jx,registerLoading:Ed,registerMap:Zx,registerImpl:cL,PRIORITY:Cx,ComponentModel:ft,ComponentView:zt,SeriesModel:Ce,ChartView:oe,registerComponentModel:function(n){ft.registerClass(n)},registerComponentView:function(n){zt.registerClass(n)},registerSeriesModel:function(n){Ce.registerClass(n)},registerChartView:function(n){oe.registerClass(n)},registerSubTypeDefaulter:function(n,e){ft.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){hy(n,e)}};function $t(n){if(V(n)){M(n,function(e){$t(e)});return}lt(I_,n)>=0||(I_.push(n),$(n)&&(n={install:n}),n.install(VO))}var FO=1e-8;function A_(n,e){return Math.abs(n-e)o&&(i=a,o=l)}if(i)return GO(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var o=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return M(a,function(s){s.type==="polygon"?D_(s.exterior,o,r,t):M(s.points,function(l){D_(l,o,r,t)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(r[0])&&isFinite(r[1])||(o[0]=o[1]=r[0]=r[1]=0),i=new ut(o[0],o[1],r[0]-o[0],r[1]-o[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),o=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var r=0,a=o.length;r>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=r,o=s,r=l,i.push([s/t,l/t])}return i}function N_(n,e){return n=YO(n),F(At(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,o=t.geometry,r=[];switch(o.type){case"Polygon":var a=o.coordinates;r.push(new P_(a[0],a.slice(1)));break;case"MultiPolygon":M(o.coordinates,function(l){l[0]&&r.push(new P_(l[0],l.slice(1)))});break;case"LineString":r.push(new L_([o.coordinates]));break;case"MultiLineString":r.push(new L_(o.coordinates))}var s=new O_(i[e||"name"],r,i.cp);return s.properties=i,s})}var ls=_t();function UO(n){return n.type==="category"?ZO(n):qO(n)}function XO(n,e){return n.type==="category"?jO(n,e):{ticks:F(n.scale.getTicks(),function(t){return t.value})}}function ZO(n){var e=n.getLabelModel(),t=z_(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function z_(n,e){var t=B_(n,"labels"),i=$d(e),o=E_(t,i);if(o)return o;var r,a;return $(i)?r=W_(n,i):(a=i==="auto"?KO(n):i,r=F_(n,a)),V_(t,i,{labels:r,labelCategoryInterval:a})}function jO(n,e){var t=B_(n,"ticks"),i=$d(e),o=E_(t,i);if(o)return o;var r,a;if((!e.get("show")||n.scale.isBlank())&&(r=[]),$(i))r=W_(n,i,!0);else if(i==="auto"){var s=z_(n,n.getLabelModel());a=s.labelCategoryInterval,r=F(s.labels,function(l){return l.tickValue})}else a=i,r=F_(n,a,!0);return V_(t,i,{ticks:r,tickCategoryInterval:a})}function qO(n){var e=n.scale.getTicks(),t=as(n);return{labels:F(e,function(i,o){return{level:i.level,formattedLabel:t(i,o),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function B_(n,e){return ls(n)[e]||(ls(n)[e]=[])}function E_(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,p=0;l<=r[1];l+=s){var f=0,g=0,v=ua(t({value:l}),e.font,"center","top");f=v.width*1.3,g=v.height*1.3,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/h,m=p/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=ls(n.model),w=n.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return b!=null&&S!=null&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function QO(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function F_(n,e,t){var i=as(n),o=n.scale,r=o.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],h=o.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=C_(n),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);p&&f-l!==r[1]&&g(r[1]);function g(v){var y={value:v};s.push(t?v:{formattedLabel:i(y),rawLabel:o.getLabel(y),tickValue:v})}return s}function W_(n,e,t){var i=n.scale,o=as(n),r=[];return M(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;e(a.value,s)&&r.push(t?l:{formattedLabel:o(a),rawLabel:s,tickValue:l})}),r}var G_=[0,1],JO=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return e>=i&&e<=o},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return Dc(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&o.type==="ordinal"&&(i=i.slice(),H_(i,o.count())),xt(e,G_,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(i=i.slice(),H_(i,o.count()));var r=xt(e,i,G_,t);return this.scale.scale(r)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=XO(this,t),o=i.ticks,r=F(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return tR(this,r,a,e.clamp),r},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),o=F(i,function(r){return F(r,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return o},n.prototype.getViewLabels=function(){return UO(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var o=Math.abs(e[1]-e[0]);return Math.abs(o)/i},n.prototype.calculateCategoryInterval=function(){return $O(this)},n}();function H_(n,e){var t=n[1]-n[0],i=e,o=t/i/2;n[0]+=o,n[1]-=o}function tR(n,e,t,i){var o=e.length;if(!n.onBand||t||!o)return;var r=n.getExtent(),a,s;if(o===1)e[0].coord=r[0],a=e[1]={coord:r[1]};else{var l=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/l;M(e,function(p){p.coord-=u/2});var h=n.scale.getExtent();s=1+h[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var c=r[0]>r[1];d(e[0].coord,r[0])&&(i?e[0].coord=r[0]:e.shift()),i&&d(r[0],e[0].coord)&&e.unshift({coord:r[0]}),d(r[1],a.coord)&&(i?a.coord=r[1]:e.pop()),i&&d(a.coord,r[1])&&e.push({coord:r[1]});function d(p,f){return p=kt(p),f=kt(f),c?p>f:po&&(o+=us);var p=Math.atan2(s,a);if(p<0&&(p+=us),p>=i&&p<=o||p+us>=i&&p+us<=o)return l[0]=h,l[1]=c,u-t;var f=t*Math.cos(i)+n,g=t*Math.sin(i)+e,v=t*Math.cos(o)+n,y=t*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,dn.fromArray(n[0]),wt.fromArray(n[1]),Rt.fromArray(n[2]),nt.sub(Rn,dn,wt),nt.sub(Nn,Rt,wt);var t=Rn.len(),i=Nn.len();if(!(t<.001||i<.001)){Rn.scale(1/t),Nn.scale(1/i);var o=Rn.dot(Nn),r=Math.cos(e);if(r1&&nt.copy(ge,Rt),ge.toArray(n[1])}}}}function sR(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dn.fromArray(n[0]),wt.fromArray(n[1]),Rt.fromArray(n[2]),nt.sub(Rn,wt,dn),nt.sub(Nn,Rt,wt);var i=Rn.len(),o=Nn.len();if(!(i<.001||o<.001)){Rn.scale(1/i),Nn.scale(1/o);var r=Rn.dot(e),a=Math.cos(t);if(r=l)nt.copy(ge,Rt);else{ge.scaleAndAdd(Nn,s/Math.tan(Math.PI/2-h));var c=Rt.x!==wt.x?(ge.x-wt.x)/(Rt.x-wt.x):(ge.y-wt.y)/(Rt.y-wt.y);if(isNaN(c))return;c<0?nt.copy(ge,wt):c>1&&nt.copy(ge,Rt)}ge.toArray(n[1])}}}}function ef(n,e,t,i){var o=t==="normal",r=o?n:n.ensureState(t);r.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?n.useStyle(s):r.style=s}function lR(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var o=Yr(i[0],i[1]),r=Yr(i[1],i[2]);if(!o||!r){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*t,s=Ur([],i[1],i[0],a/o),l=Ur([],i[1],i[2],a/r),u=Ur([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&r&&w(-h/a,0,a);var g=n[0],v=n[a-1],y,m;x(),y<0&&b(-y,.8),m<0&&b(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m);function x(){y=g.rect[e]-i,m=o-v.rect[e]-v.rect[t]}function _(T,I,C){if(T<0){var A=Math.min(I,-T);if(A>0){w(A*C,0,a);var D=A+T;D<0&&b(-D*C,1)}else b(-T*C,1)}}function w(T,I,C){T!==0&&(u=!0);for(var A=I;A0)for(var D=0;D0;D--){var O=C[D-1]*L;w(-O,D,a)}}}function S(T){var I=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(a-1)),A=0;A0?w(C,0,A+1):w(-C,a-A-1,a),T-=C,T<=0)return}return u}function uR(n,e,t,i){return q_(n,"x","width",e,t,i)}function K_(n,e,t,i){return q_(n,"y","height",e,t,i)}function $_(n){var e=[];n.sort(function(g,v){return v.priority-g.priority});var t=new ut(0,0,0,0);function i(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var o=0;o-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ce);const cR=hR;function hs(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var o=yr(n,e,t[0]);return o!=null?o+"":null}else if(i){for(var r=[],a=0;a=0&&i.push(e[r])}return i.join(" ")}var pR=function(n){z(e,n);function e(t,i,o,r){var a=n.call(this)||this;return a.updateData(t,i,o,r),a}return e.prototype._createSymbol=function(t,i,o,r,a){this.removeAll();var s=Ft(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),s.drift=dR,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){oo(this.childAt(0))},e.prototype.downplay=function(){ro(this.childAt(0))},e.prototype.setZ=function(t,i){var o=this.childAt(0);o.zlevel=t,o.z=i},e.prototype.setDraggable=function(t,i){var o=this.childAt(0);o.draggable=t,o.cursor=!i&&t?"move":o.cursor},e.prototype.updateData=function(t,i,o,r){this.silent=!1;var a=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=a!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,t,i,l,c)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(p):Tt(d,p,s,i),or(d)}if(this._updateCommon(t,i,l,o,r),u){var d=this.childAt(0);if(!h){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Yt(d,p,s,i)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,o,r,a){var s=this.childAt(0),l=t.hostModel,u,h,c,d,p,f,g,v,y;if(r&&(u=r.emphasisItemStyle,h=r.blurItemStyle,c=r.selectItemStyle,d=r.focus,p=r.blurScope,g=r.labelStatesModels,v=r.hoverScale,y=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(i),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),h=m.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),p=x.get("blurScope"),f=x.get("disabled"),g=kn(m),v=x.getShallow("scale"),y=m.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var w=ja(t.getItemVisual(i,"symbolOffset"),o);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(i,"style"),S=b.fill;if(s instanceof ee){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=t.getItemVisual(i,"liftZ"),C=this._z2;I!=null?C==null&&(this._z2=s.z2,s.z2+=I):C!=null&&(s.z2=C,this._z2=null);var A=a&&a.useNameLabel;Dn(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:D,inheritColor:S,defaultOpacity:b.opacity});function D(L){return A?t.getName(L):hs(t,L)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=h;var P=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P,this.setSymbolScale(1),nn(this,d,p,f)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,o){var r=this.childAt(0),a=rt(this).dataIndex,s=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var l=r.getTextContent();l&&ir(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ir(r,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return su(t.getItemVisual(i,"symbolSize"))},e}(it);function dR(n,e){this.parent.drift(n,e)}const Bu=pR;function nf(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function J_(n){return n!=null&&!j(n)&&(n={isIgnore:n}),n||{}}function tb(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:kn(e),cursorStyle:e.get("cursor")}}var fR=function(){function n(e){this.group=new it,this._SymbolCtor=e||Bu}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=J_(t);var i=this.group,o=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=tb(e),u={disableAnimation:s},h=t.getSymbolPoint||function(c){return e.getItemLayout(c)};r||i.removeAll(),e.diff(r).add(function(c){var d=h(c);if(nf(e,d,c,t)){var p=new a(e,c,l,u);p.setPosition(d),e.setItemGraphicEl(c,p),i.add(p)}}).update(function(c,d){var p=r.getItemGraphicEl(d),f=h(c);if(!nf(e,f,c,t)){i.remove(p);return}var g=e.getItemVisual(c,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)i.remove(p),p=new a(e,c,l,u),p.setPosition(f);else{p.updateData(e,c,l,u);var y={x:f[0],y:f[1]};s?p.attr(y):Tt(p,y,o)}i.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var d=r.getItemGraphicEl(c);d&&d.fadeOut(function(){i.remove(d)},o)}).execute(),this._getSymbolPoint=h,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,o){var r=e._getSymbolPoint(o);i.setPosition(r),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tb(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=J_(i);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r0?t=i[0]:i[1]<0&&(t=i[1]),t}function nb(n,e,t,i){var o=NaN;n.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=n.valueStart);var r=n.baseDataOffset,a=[];return a[r]=t.get(n.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function vR(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,o){t.push({cmd:"=",idx:o,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function yR(n,e,t,i,o,r,a,s){for(var l=vR(n,e),u=[],h=[],c=[],d=[],p=[],f=[],g=[],v=eb(o,e,a),y=n.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x=o||g<0)break;if(Mo(y,m)){if(l){g+=r;continue}break}if(g===t)n[r>0?"moveTo":"lineTo"](y,m),c=y,d=m;else{var x=y-u,_=m-h;if(x*x+_*_<.5){g+=r;continue}if(a>0){for(var w=g+r,b=e[w*2],S=e[w*2+1];b===y&&S===m&&v=i||Mo(b,S))p=y,f=m;else{C=b-u,A=S-h;var P=y-u,L=b-y,O=m-h,E=S-m,R=void 0,B=void 0;if(s==="x"){R=Math.abs(P),B=Math.abs(L);var W=C>0?1:-1;p=y-W*R*a,f=m,D=y+W*B*a,k=m}else if(s==="y"){R=Math.abs(O),B=Math.abs(E);var Z=A>0?1:-1;p=y,f=m-Z*R*a,D=y,k=m+Z*B*a}else R=Math.sqrt(P*P+O*O),B=Math.sqrt(L*L+E*E),I=B/(B+R),p=y-C*a*(1-I),f=m-A*a*(1-I),D=y+C*a*I,k=m+A*a*I,D=Ii(D,Ai(b,y)),k=Ii(k,Ai(S,m)),D=Ai(D,Ii(b,y)),k=Ai(k,Ii(S,m)),C=D-y,A=k-m,p=y-C*R/B,f=m-A*R/B,p=Ii(p,Ai(u,y)),f=Ii(f,Ai(h,m)),p=Ai(p,Ii(u,y)),f=Ai(f,Ii(h,m)),C=y-p,A=m-f,D=y+C*B/R,k=m+A*B/R}n.bezierCurveTo(c,d,p,f,y,m),c=D,d=k}else n.lineTo(y,m)}u=y,h=m,g+=r}return v}var ib=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),mR=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ib},e.prototype.buildPath=function(t,i){var o=i.points,r=0,a=o.length/2;if(i.connectNulls){for(;a>0&&Mo(o[a*2-2],o[a*2-1]);a--);for(;r=0){var _=u?(f-l)*x+l:(p-s)*x+s;return u?[t,_]:[_,t]}s=p,l=f;break;case a.C:p=r[c++],f=r[c++],g=r[c++],v=r[c++],y=r[c++],m=r[c++];var w=u?Xs(s,p,g,y,t,h):Xs(l,f,v,m,t,h);if(w>0)for(var b=0;b=0){var _=u?Vt(l,f,v,m,S):Vt(s,p,g,y,S);return u?[t,_]:[_,t]}}s=y,l=m;break}}},e}(gt),xR=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(ib),ob=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new xR},e.prototype.buildPath=function(t,i){var o=i.points,r=i.stackedOnPoints,a=0,s=o.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Mo(o[s*2-2],o[s*2-1]);s--);for(;ae){r?t.push(a(r,l,e)):o&&t.push(a(o,l,0),a(o,l,e));break}else o&&(t.push(a(o,l,0)),o=null),t.push(l),r=l}return t}function wR(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())&&e.type==="cartesian2d"){for(var o,r,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){r=i[a];break}}if(r){var l=e.getAxis(o),u=F(r.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=bR(u,o==="x"?t.getWidth():t.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,y=v-g;if(y<.001)return"transparent";M(d,function(x){x.offset=(x.coord-g)/y}),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var m=new Aa(0,0,0,0,d,!0);return m[o]=g,m[o+"2"]=v,m}}}function SR(n,e,t){var i=n.get("showAllSymbol"),o=i==="auto";if(!(i&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&MR(r,e))){var a=e.mapDimension(r.dim),s={};return M(r.getViewLabels(),function(l){var u=r.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function MR(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;ai)return!1;return!0}function TR(n,e){return isNaN(n)||isNaN(e)}function CR(n){for(var e=n.length/2;e>0&&TR(n[e*2-2],n[e*2-1]);e--);return e-1}function cb(n,e){return[n[e*2],n[e*2+1]]}function IR(n,e,t){for(var i=n.length/2,o=t==="x"?0:1,r,a,s=0,l=-1,u=0;u=e||r>=e&&a<=e){l=u;break}s=u,r=a}return{range:[s,l],t:(e-r)/(a-r)}}function pb(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var W=g.getState("emphasis").style;W.lineWidth=+g.style.lineWidth+1}rt(g).seriesIndex=t.seriesIndex,nn(g,E,R,B);var Z=hb(t.get("smooth")),Q=t.get("smoothMonotone");if(g.setShape({smooth:Z,smoothMonotone:Q,connectNulls:T}),v){var ot=l.getCalculationInfo("stackedOnSeries"),st=0;v.useStyle(K(h.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ot&&(st=hb(ot.get("smooth"))),v.setShape({smooth:Z,stackedOnSmooth:st,smoothMonotone:Q,connectNulls:T}),Kn(v,t,"areaStyle"),rt(v).seriesIndex=t.seriesIndex,nn(v,E,R,B)}var St=function(mt){r._changePolyState(mt)};l.eachItemGraphicEl(function(mt){mt&&(mt.onHoverStateChange=St)}),this._polyline.onHoverStateChange=St,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),v&&this.packEventData(t,v))},e.prototype.packEventData=function(t,i){rt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,o,r){var a=t.getData(),s=Ui(a,r);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[s*2],c=l[s*2+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var d=t.get("zlevel")||0,p=t.get("z")||0;u=new Bu(a,s),u.x=h,u.y=c,u.setZ(d,p);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=d,f.z=p,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else oe.prototype.highlight.call(this,t,i,o,r)},e.prototype.downplay=function(t,i,o,r){var a=t.getData(),s=Ui(a,r);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else oe.prototype.downplay.call(this,t,i,o,r)},e.prototype._changePolyState=function(t){var i=this._polygon;_l(this._polyline,t),i&&_l(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new mR({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new ob({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,i,o){var r,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(r=s.isHorizontal(),a=!1):i.type==="polar"&&(r=s.dim==="angle",a=!0);var u=t.hostModel,h=u.get("animationDuration");$(h)&&(h=h(null));var c=u.get("animationDelay")||0,d=$(c)?c(null):c;t.eachItemGraphicEl(function(p,f){var g=p;if(g){var v=[p.x,p.y],y=void 0,m=void 0,x=void 0;if(o)if(a){var _=o,w=i.pointToCoord(v);r?(y=_.startAngle,m=_.endAngle,x=-w[1]/180*Math.PI):(y=_.r0,m=_.r,x=w[0])}else{var b=o;r?(y=b.x,m=b.x+b.width,x=p.x):(y=b.y+b.height,m=b.y,x=p.y)}var S=m===y?0:(x-y)/(m-y);l&&(S=1-S);var T=$(c)?c(f):h*S+d,I=g.getSymbolPath(),C=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,o){var r=t.getModel("endLabel");if(pb(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=CR(l);h>=0&&(Dn(s,kn(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:h,defaultText:function(c,d,p){return p!=null?Q_(a,p):hs(a,c)},enableTextSetter:!0},AR(r,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,o,r,a,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&r.originalX==null&&(r.originalX=u.x,r.originalY=u.y);var c=o.getLayout("points"),d=o.hostModel,p=d.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,x=i.shape,_=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,w=(y?g:0)*(m?-1:1),b=(y?0:-g)*(m?-1:1),S=y?"x":"y",T=IR(c,_,S),I=T.range,C=I[1]-I[0],A=void 0;if(C>=1){if(C>1&&!p){var D=cb(c,I[0]);u.attr({x:D[0]+w,y:D[1]+b}),a&&(A=d.getRawValue(I[0]))}else{var D=h.getPointOn(_,S);D&&u.attr({x:D[0]+w,y:D[1]+b});var k=d.getRawValue(I[0]),P=d.getRawValue(I[1]);a&&(A=Ay(o,f,k,P,T.t))}r.lastFrameIndex=I[0]}else{var L=t===1||r.lastFrameIndex>0?I[0]:0,D=cb(c,L);a&&(A=d.getRawValue(L)),u.attr({x:D[0]+w,y:D[1]+b})}if(a){var O=lr(u);typeof O.setLabelText=="function"&&O.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,i,o,r,a,s,l){var u=this._polyline,h=this._polygon,c=t.hostModel,d=yR(this._data,t,this._stackedOnPoints,i,this._coordSys,o,this._valueOrigin),p=d.current,f=d.stackedOnCurrent,g=d.next,v=d.stackedOnNext;if(a&&(p=Di(d.current,o,a,l),f=Di(d.stackedOnCurrent,o,a,l),g=Di(d.next,o,a,l),v=Di(d.stackedOnNext,o,a,l)),ub(p,g)>3e3||h&&ub(f,v)>3e3){u.stopAnimation(),u.setShape({points:g}),h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:g}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),Tt(u,y,c),h&&(h.setShape({points:p,stackedOnPoints:f}),h.stopAnimation(),Tt(h,{shape:{stackedOnPoints:v}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=d.status,_=0;_e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;te&&(e=r,t=o)}return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},LR=function(n){return Math.round(n.length/2)};function db(n){return{seriesType:n,reset:function(e,t,i){var o=e.getData(),r=e.get("sampling"),a=e.coordinateSystem,s=o.count();if(s>10&&a.type==="cartesian2d"&&r){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),d=Math.abs(h[1]-h[0])*(c||1),p=Math.round(s/d);if(isFinite(p)&&p>1){r==="lttb"&&e.setData(o.lttbDownSample(o.mapDimension(u.dim),1/p));var f=void 0;G(r)?f=PR[r]:$(r)&&(f=r),f&&e.setData(o.downSample(o.mapDimension(u.dim),1/p,f,LR))}}}}}function OR(n){n.registerChartView(kR),n.registerSeriesModel(cR),n.registerLayout(Vu("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,db("line"))}var fb=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return os(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,o){var r=this.coordinateSystem;if(r&&r.clampData){var a=r.clampData(t),s=r.dataToPoint(a);if(o)M(r.getAxes(),function(d,p){if(d.type==="category"&&i!=null){var f=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),v=a[p],y=i[p]==="x1"||i[p]==="y1";if(y&&!g&&(v+=1),f.length<2)return;if(f.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var m=void 0,x=void 0,_=1,w=0;wv){x=(b+m)/2;break}w===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[p]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ce);Ce.registerClass(fb);const Fu=fb;var RR=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return os(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,o){return o.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mi(Fu.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Fu);const NR=RR;var zR=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),BR=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new zR},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,h=i.startAngle,c=i.endAngle,d=i.clockwise,p=Math.PI*2,f=d?c-hMath.PI/2&&hs)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var o=i.scale,r=o.getExtent(),a=Math.max(0,r[0]),s=Math.min(r[1],o.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==o.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,i,o,r){if(this._isOrderChangedWithinSameData(t,i,o)){var a=this._dataSort(t,o,i);this._isOrderDifferentInView(a,o)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,i,o){var r=i.baseAxis,a=this._dataSort(t,r,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:a})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(r){Da(r,t,rt(r).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(oe),gb={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=n.x+n.width,r=n.y+n.height,a=lf(e.x,n.x),s=uf(e.x+e.width,o),l=lf(e.y,n.y),u=uf(e.y+e.height,r),h=so?s:a,e.y=c&&l>r?u:l,e.width=h?0:s-a,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var o=uf(e.r,n.r),r=lf(e.r0,n.r0);e.r=o,e.r0=r;var a=o-r<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},vb={cartesian2d:function(n,e,t,i,o,r,a,s,l){var u=new yt({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",r){var h=u.shape,c=o?"height":"width";h[c]=0}return u},polar:function(n,e,t,i,o,r,a,s,l){var u=!o&&l?Wu:ze,h=new u({shape:i,z2:1});h.name="item";var c=_b(o);if(h.calculateTextPosition=ER(c,{isRoundCap:u===Wu}),r){var d=h.shape,p=o?"r":"endAngle",f={};d[p]=o?i.r0:i.startAngle,f[p]=i[p],(s?Tt:Yt)(h,{shape:f},r)}return h}};function GR(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function yb(n,e,t,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Tt:Yt)(t,{shape:l},e,o,null);var h=e?n.baseAxis.model:null;(a?Tt:Yt)(t,{shape:u},h,o)}function mb(n,e){for(var t=0;t0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function UR(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _b(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function bb(n,e,t,i,o,r,a,s){var l=e.getItemVisual(t,"style");if(s){if(!r.get("roundCap")){var u=n.shape,h=Mr(i.getModel("itemStyle"),u,!0);N(u,h),n.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",c)}n.useStyle(l);var d=i.getShallow("cursor");d&&n.attr("cursor",d);var p=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=kn(i);Dn(n,f,{labelFetcher:r,labelDataIndex:t,defaultText:hs(r.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=n.getTextContent();if(s&&g){var v=i.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,VR(n,v==="outside"?p:v,_b(a),i.get(["label","rotate"]))}c0(g,f,r.getRawValue(t),function(m){return Q_(e,m)});var y=i.getModel(["emphasis"]);nn(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kn(n,i),UR(o)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function XR(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var ZR=function(){function n(){}return n}(),wb=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new ZR},e.prototype.buildPath=function(t,i){for(var o=i.points,r=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?t:null},30,!1);function jR(n,e,t){for(var i=n.baseDimIdx,o=1-i,r=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,h=0,c=r.length/3;h=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[h]}return-1}function Tb(n,e,t){if(Eu(t,"cartesian2d")){var i=e,o=t.getArea();return{x:n?i.x:o.x,y:n?o.y:i.y,width:n?i.width:o.width,height:n?o.height:i.height}}else{var o=t.getArea(),r=e;return{cx:o.cx,cy:o.cy,r0:n?o.r0:r.r0,r:n?o.r:r.r,startAngle:n?r.startAngle:0,endAngle:n?r.endAngle:Math.PI*2}}}function qR(n,e,t){var i=n.type==="polar"?ze:yt;return new i({shape:Tb(e,t,n),silent:!0,z2:0})}const KR=WR;function $R(n){n.registerChartView(KR),n.registerSeriesModel(NR),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,pt(g_,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,v_("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,db("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(o){e.sortInfo&&o.axis.setCategorySortInfo(e.sortInfo)})})}var Cb=Math.PI*2,Uu=Math.PI/180;function Ib(n,e){return pe(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ab(n,e){var t=Ib(n,e),i=n.get("center"),o=n.get("radius");V(o)||(o=[0,o]);var r=U(t.width,e.getWidth()),a=U(t.height,e.getHeight()),s=Math.min(r,a),l=U(o[0],s/2),u=U(o[1],s/2),h,c,d=n.coordinateSystem;if(d){var p=d.dataToPoint(i);h=p[0]||0,c=p[1]||0}else V(i)||(i=[i,i]),h=U(i[0],r)+t.x,c=U(i[1],a)+t.y;return{cx:h,cy:c,r0:l,r:u}}function QR(n,e,t){e.eachSeriesByType(n,function(i){var o=i.getData(),r=o.mapDimension("value"),a=Ib(i,t),s=Ab(i,t),l=s.cx,u=s.cy,h=s.r,c=s.r0,d=-i.get("startAngle")*Uu,p=i.get("endAngle"),f=i.get("padAngle")*Uu;p=p==="auto"?d-Cb:-p*Uu;var g=i.get("minAngle")*Uu,v=g+f,y=0;o.each(r,function(O){!isNaN(O)&&y++});var m=o.getSum(r),x=Math.PI/(m||y)*2,_=i.get("clockwise"),w=i.get("roseType"),b=i.get("stillShowZeroSum"),S=o.getDataExtent(r);S[0]=0;var T=_?1:-1,I=[d,p],C=T*f/2;$c(I,!_),d=I[0],p=I[1];var A=Math.abs(p-d),D=A,k=0,P=d;if(o.setLayout({viewRect:a,r:h}),o.each(r,function(O,E){var R;if(isNaN(O)){o.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:c,r:w?NaN:h});return}w!=="area"?R=m===0&&b?x:O*x:R=A/y,RR?(W=P+T*R/2,Z=W):(W=P+C,Z=B-C),o.setItemLayout(E,{angle:R,startAngle:W,endAngle:Z,clockwise:_,cx:l,cy:u,r0:c,r:w?xt(O,S,[c,h]):h}),P=B}),Dt?y:v,w=Math.abs(x.label.y-t);if(w>=_.maxY){var b=x.label.x-e-x.len2*o,S=i+x.len,T=Math.abs(b)n.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var v=(i.style.margin||0)+2.1;r.height=g.height+v,r.y-=(r.height-c)/2}}}function cf(n){return n.position==="center"}function e5(n){var e=n.getData(),t=[],i,o,r=!1,a=(n.get("minShowLabelAngle")||0)*JR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,c=s.y,d=s.height;function p(b){b.ignore=!0}function f(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}e.each(function(b){var S=e.getItemGraphicEl(b),T=S.shape,I=S.getTextContent(),C=S.getTextGuideLine(),A=e.getItemModel(b),D=A.getModel("label"),k=D.get("position")||A.get(["emphasis","label","position"]),P=D.get("distanceToLabelLine"),L=D.get("alignTo"),O=U(D.get("edgeDistance"),u),E=D.get("bleedMargin"),R=A.getModel("labelLine"),B=R.get("length");B=U(B,u);var W=R.get("length2");if(W=U(W,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Q>0?"left":"right"}var qe=Math.PI,ye=0,Vn=D.get("rotate");if(vt(Vn))ye=Vn*(qe/180);else if(k==="center")ye=0;else if(Vn==="radial"||Vn===!0){var Eo=Q<0?-Z+qe:-Z;ye=Eo}else if(Vn==="tangential"&&k!=="outside"&&k!=="outer"){var Ke=Math.atan2(Q,ot);Ke<0&&(Ke=qe*2+Ke);var As=ot>0;As&&(Ke=qe+Ke),ye=Ke-qe}if(r=!!ye,I.x=st,I.y=St,I.rotation=ye,I.setStyle({verticalAlign:"middle"}),Gt){I.setStyle({align:Qt});var Vo=I.states.select;Vo&&(Vo.x+=I.x,Vo.y+=I.y)}else{var Er=I.getBoundingRect().clone();Er.applyTransform(I.getComputedTransform());var jg=(I.style.margin||0)+2.1;Er.y-=jg/2,Er.height+=jg,t.push({label:I,labelLine:C,position:k,len:B,len2:W,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new nt(Q,ot),linePoints:mt,textAlign:Qt,labelDistance:P,labelAlignTo:L,edgeDistance:O,bleedMargin:E,rect:Er,unconstrainedWidth:Er.width,labelStyleWidth:I.style.width})}S.setTextConfig({inside:Gt})}}),!r&&n.get("avoidLabelOverlap")&&t5(t,i,o,l,u,d,h,c);for(var g=0;g0){for(var h=a.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c=r.r0}},e.type="pie",e}(oe);const o5=i5;function cs(n,e,t){e=V(e)&&{coordDimensions:e}||N({encodeDefine:n.getEncode()},e);var i=n.getSource(),o=Tu(i,e).dimensions,r=new Mu(o,n);return r.initData(i,t),r}var r5=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const pf=r5;var a5=_t(),s5=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new pf(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return cs(this,{coordDimensions:["value"],encodeDefaulter:pt(Hp,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),o=a5(i),r=o.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),r=o.seats=vy(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){pa(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ce);const l5=s5;function u5(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(o){var r=i.mapDimension("value"),a=i.get(r,o);return!(vt(a)&&!isNaN(a)&&a<0)})}}}function h5(n){n.registerChartView(o5),n.registerSeriesModel(l5),ex("pie",n.registerAction),n.registerLayout(pt(QR,"pie")),n.registerProcessor(hf("pie")),n.registerProcessor(u5("pie"))}var c5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return os(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t!=null?t:this.option.large?5e3:this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t!=null?t:this.option.large?1e4:this.get("progressiveThreshold")},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ce);const p5=c5;var Pb=4,d5=function(){function n(){}return n}(),f5=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new d5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var o=i.points,r=i.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&r[0]=0;u--){var h=u*2,c=r[h]-s/2,d=r[h+1]-l/2;if(t>=c&&i>=d&&t<=c+s&&i<=d+l)return u}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.points,r=i.size,a=r[0],s=r[1],l=1/0,u=1/0,h=-1/0,c=-1/0,d=0;d=0&&(u.dataIndex=c+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const v5=g5;var y5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,o){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var a=Vu("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var o=this._symbolDraw,r=i.pipelineContext,a=r.large;return(!o||a!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=a?new v5:new of,this._isLargeDraw=a,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(oe);const m5=y5;var x5=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ft);const _5=x5;var df=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bt).models[0]},e.type="cartesian2dAxis",e}(ft);Ut(df,ss);var Lb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},b5=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Lb),ff=et({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Lb),w5=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ff),S5=K({logBase:10},ff);const Ob={category:b5,value:ff,time:w5,log:S5};var M5={value:1,category:1,time:1,log:1};function Tr(n,e,t,i){M(M5,function(o,r){var a=et(et({},Ob[r],!0),i,!0),s=function(l){z(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+r,h}return u.prototype.mergeDefaultAndTheme=function(h,c){var d=za(this),p=d?dr(h):{},f=c.getTheme();et(h,f.get(r+"Axis")),et(h,this.getDefaultOption()),h.type=Rb(h),d&&xi(h,p,d)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Gd.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+r,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",Rb)}function Rb(n){return n.type||(n.data?"category":"value")}var T5=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return F(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),At(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const C5=T5;var gf=["x","y"];function Nb(n){return n.type==="interval"||n.type==="time"}var I5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=gf,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Nb(t)||!Nb(i))){var o=t.getExtent(),r=i.getExtent(),a=this.dataToPoint([o[0],r[0]]),s=this.dataToPoint([o[1],r[1]]),l=o[1]-o[0],u=r[1]-r[0];if(!(!l||!u)){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,d=a[0]-o[0]*h,p=a[1]-r[0]*c,f=this._transform=[h,0,0,c,d,p];this._invTransform=zi([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),o=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var o=this.dataToPoint(t),r=this.dataToPoint(i),a=this.getArea(),s=new ut(o[0],o[1],r[0]-o[0],r[1]-o[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,i,o){o=o||[];var r=t[0],a=t[1];if(this._transform&&r!=null&&isFinite(r)&&a!=null&&isFinite(a))return Ht(o,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(r,i)),o[1]=l.toGlobalCoord(l.dataToCoord(a,i)),o},e.prototype.clampData=function(t,i){var o=this.getAxis("x").scale,r=this.getAxis("y").scale,a=o.getExtent(),s=r.getExtent(),l=o.parse(t[0]),u=r.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var o=[];if(this._invTransform)return Ht(o,t,this._invTransform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.coordToData(r.toLocalCoord(t[0]),i),o[1]=a.coordToData(a.toLocalCoord(t[1]),i),o},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),r=Math.min(i[0],i[1])-t,a=Math.min(o[0],o[1])-t,s=Math.max(i[0],i[1])-r+t,l=Math.max(o[0],o[1])-a+t;return new ut(r,a,s,l)},e}(C5),A5=function(n){z(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.index=0,s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cn);const D5=A5;function vf(n,e,t){t=t||{};var i=n.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f=u==="x"?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=[u==="y"?f[d[l]]:c[0],u==="x"?f[d[l]]:c[3]],r.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[s],r.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),fn(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var y=e.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-y:y,r.z2=1,r}function zb(n){return n.get("coordinateSystem")==="cartesian2d"}function Bb(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,i){var o=i.replace(/Model$/,""),r=n.getReferringComponents(o,Bt).models[0];e[i]=r}),e}var yf=Math.log;function Eb(n,e,t){var i=Ci.prototype,o=i.getTicks.call(t),r=i.getTicks.call(t,!0),a=o.length-1,s=i.getInterval.call(t),l=T_(n,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var d=yf(n.base);u=[yf(u[0])/d,yf(u[1])/d]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(n);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var f=i.getInterval.call(n),g=u[0],v=u[1];if(h&&c)f=(v-g)/a;else if(h)for(v=u[0]+f*a;vu[0]&&isFinite(g)&&isFinite(u[0]);)f=Yd(f),g=u[1]-f*a;else{var y=n.getTicks().length-1;y>a&&(f=Yd(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=kt(v-m),g<0&&u[0]>=0?(g=0,v=kt(m)):v>0&&u[1]<=0&&(v=0,g=-kt(m))}var x=(o[0].value-r[0].value)/s,_=(o[a].value-r[a].value)/s;i.setExtent.call(n,g+f*x,v+f*_),i.setInterval.call(n,f),(x||_)&&i.setNiceExtent.call(n,g+f,v-f)}var k5=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gf,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function o(a){var s,l=at(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var d=+l[c],p=a[d],f=p.model,g=p.scale;Hd(g)&&f.get("alignTicks")&&f.get("interval")==null?h.push(p):(Sr(g,f),Hd(g)&&(s=p))}h.length&&(s||(s=h.pop(),Sr(s.scale,s.model)),M(h,function(v){Eb(v.scale,v.model,s.scale)}))}}o(i.x),o(i.y);var r={};M(i.x,function(a){Vb(i,"y",a,r)}),M(i.y,function(a){Vb(i,"x",a,r)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var o=e.getBoxLayoutParams(),r=!i&&e.get("containLabel"),a=pe(o,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),r&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=zO(u);if(h){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[c]-=h[c]+d,u.position==="top"?a.y+=h.height+d:u.position==="left"&&(a.x+=h.width+d)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),P5(u,h?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var o=0,r=this._coordsList;o0?"top":"bottom",r="center"):ca(o-ki)?(a=i>0?"bottom":"top",r="center"):(a="middle",o>0&&o0?"right":"left":r=i>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Wb={axisLine:function(n,e,t,i){var o=e.get(["axisLine","show"]);if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisLine")),!!o){var r=e.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(Ht(s,s,a),Ht(l,l,a));var h=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new qt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});rr(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);G(d)&&(d=[d,d]),(G(p)||vt(p))&&(p=[p,p]);var f=ja(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];M([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var x=Ft(d[m],-g/2,-v/2,g,v,h.stroke,!0),_=y.r+y.offset,w=u?l:s;x.attr({rotation:y.rotate,x:w[0]+_*Math.cos(n.rotation),y:w[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var o=N5(t,i,e,n),r=B5(t,i,e,n);if(R5(e,r,o),z5(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=j_(F(r,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));$_(a)}},axisName:function(n,e,t,i){var o=fn(n.axisName,e.get("name"));if(o){var r=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,c=[r==="start"?u[0]-h*l:r==="end"?u[1]+h*l:(u[0]+u[1])/2,Hb(r)?n.labelOffset+a*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*ki/180);var f;Hb(r)?d=To.innerTextLayout(n.rotation,p!=null?p:n.rotation,a):(d=O5(n.rotation,r,p||0,u),f=n.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(d.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=fn(n.nameTruncateMaxWidth,v.maxWidth,f),x=new dt({x:c[0],y:c[1],rotation:d.rotation,silent:To.isLabelSilent(e),style:Ct(s,{text:o,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(sr({el:x,componentModel:e,itemName:o}),x.__fullText=o,x.anid="name",e.get("triggerEvent")){var _=To.makeAxisEventDataBase(e);_.targetType="axisName",_.name=o,rt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function O5(n,e,t,i){var o=kc(t-n),r,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ca(o-ki/2)?(a=l?"bottom":"top",r="center"):ca(o-ki*1.5)?(a=l?"top":"bottom",r="center"):(a="middle",oki/2?r=l?"left":"right":r=l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function R5(n,e,t){if(!C_(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),o=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],c=t[t.length-1],d=t[t.length-2];i===!1?(Ue(r),Ue(u)):Gb(r,a)&&(i?(Ue(a),Ue(h)):(Ue(r),Ue(u))),o===!1?(Ue(s),Ue(c)):Gb(l,s)&&(o?(Ue(l),Ue(d)):(Ue(s),Ue(c)))}}function Ue(n){n&&(n.ignore=!0)}function Gb(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var o=Xr([]);return si(o,o,-n.rotation),t.applyTransform(gn([],o,n.getLocalTransform())),i.applyTransform(gn([],o,e.getLocalTransform())),t.intersect(i)}}function Hb(n){return n==="middle"||n==="center"}function Yb(n,e,t,i,o){for(var r=[],a=[],s=[],l=0;l=0||n===e}function H5(n){var e=_f(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,o=t.option,r=t.get("status"),a=t.get("value");a!=null&&(a=i.parse(a));var s=bf(t);r==null&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=K({color:f.color},l));var v=et(q(f),{boundaryGap:t,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:d},!1);if(G(h)){var y=v.name;v.name=h.replace("{value}",y!=null?y:"")}else $(h)&&(v.name=h(v.name,v));var m=new Ot(v,null,this.ecModel);return Ut(m,ss.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:et({lineStyle:{color:"#bbb"}},ds.axisLine),axisLabel:Xu(ds.axisLabel,!1),axisTick:Xu(ds.axisTick,!1),splitLine:Xu(ds.splitLine,!0),splitArea:Xu(ds.splitArea,!0),indicator:[]},e}(ft);const rN=oN;var aN=["axisLine","axisTickLabel","axisName"],sN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),r=F(o,function(a){var s=a.model.get("showName")?a.name:"",l=new ti(a.model,{axisName:s,position:[i.cx,i.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(r,function(a){M(aN,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes();if(!o.length)return;var r=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color"),f=V(d)?d:[d],g=V(p)?p:[p],v=[],y=[];function m(L,O,E){var R=E%O.length;return L[R]=L[R]||[],R}if(r==="circle")for(var x=o[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b3?1.4:a>1?1.2:1.1,h=r>0?u:1/u;Mf(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(o){var c=Math.abs(r),d=(r>0?1:-1)*(c>3?.4:c>1?.15:.05);Mf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!nw(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;Mf(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ke);function Mf(n,e,t,i,o){n.pointerChecker&&n.pointerChecker(i,o.originX,o.originY)&&(Hn(i.event),iw(n,e,t,i,o))}function iw(n,e,t,i,o){o.isAvailableBehavior=Y(Zu,null,t,i),n.trigger(e,o)}function Zu(n,e,t){var i=t[n];return!n||i&&(!G(i)||e.event[i+"Key"])}const Tf=vN;function ow(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function rw(n,e,t,i){var o=n.target,r=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,o.x-=(t-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var yN={axisPointer:1,tooltip:1,brush:1};function Cf(n,e,t){var i=e.getComponentByElement(n.topTarget),o=i&&i.coordinateSystem;return i&&i!==t&&!yN.hasOwnProperty(i.mainType)&&o&&o.model!==t}function aw(n){if(G(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var If,ju={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},sw=at(ju),qu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lw=at(qu),mN=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=aw(e);this._defsUsePending=[];var o=new it;this._root=o;var r=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ie(i,o,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;bN(this._defs,this._defsUsePending),this._defsUsePending=[];var h,c;if(a){var d=Ku(a);d.length>=4&&(h={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(h&&s!=null&&l!=null&&(c=vw(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=o;o=new it,o.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new yt({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:h,viewBoxTransform:c,named:r}},n.prototype._parseNode=function(e,t,i,o,r,a){var s=e.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(r=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!r){var h=If[s];if(h&&H(If,s)){l=h.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:l};i.push(d),s==="g"&&(u=d)}else o&&i.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});t.add(l)}}var p=uw[s];if(p&&H(uw,s)){var f=p.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(l&&l.isGroup)for(var v=e.firstChild;v;)v.nodeType===1?this._parseNode(v,l,i,u,r,a):v.nodeType===3&&a&&this._parseText(v,l),v=v.nextSibling},n.prototype._parseText=function(e,t){var i=new xa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),xN(i,t);var o=i.style,r=o.fontSize;r&&r<9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var a=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=a;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){If={g:function(e,t){var i=new it;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new yt;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new $n;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new qt;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Cl;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),o;i&&(o=pw(i));var r=new An({shape:{points:o||[]},silent:!0});return Xe(t,r),Ie(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var i=e.getAttribute("points"),o;i&&(o=pw(i));var r=new Be({shape:{points:o||[]},silent:!0});return Xe(t,r),Ie(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var i=new ee;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",o=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new it;return Xe(t,s),Ie(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),o!=null&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new it;return Xe(t,s),Ie(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),s},path:function(e,t){var i=e.getAttribute("d")||"",o=Om(i);return Xe(t,o),Ie(e,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),n}(),uw={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),o=parseInt(n.getAttribute("y2")||"0",10),r=new Aa(e,t,i,o);return hw(n,r),cw(n,r),r},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),o=new gp(e,t,i);return hw(n,o),cw(n,o),o}};function hw(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function cw(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),o=void 0;i&&i.indexOf("%")>0?o=parseInt(i,10)/100:i?o=parseFloat(i):o=0;var r={};gw(t,r,r);var a=r.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:a})}t=t.nextSibling}}function Xe(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),K(e.__inheritedStyle,n.__inheritedStyle))}function pw(n){for(var e=Ku(n),t=[],i=0;i0;r-=2){var a=i[r],s=i[r-1],l=Ku(a);switch(o=o||me(),s){case"translate":vn(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Es(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":si(o,o,-parseFloat(l[0])*Af,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Af);gn(o,[1,0,u,1,0,0],o);break;case"skewY":var h=Math.tan(parseFloat(l[0])*Af);gn(o,[1,h,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var fw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function gw(n,e,t){var i=n.getAttribute("style");if(i){fw.lastIndex=0;for(var o;(o=fw.exec(i))!=null;){var r=o[1],a=H(ju,r)?ju[r]:null;a&&(e[a]=o[2]);var s=H(qu,r)?qu[r]:null;s&&(t[s]=o[2])}}}function TN(n,e,t){for(var i=0;i0,v={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,o)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),i=X(),o=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(p,f){return f&&(p=f(p)),p&&[p[0]*r.scaleX+r.x,p[1]*r.scaleY+r.y]}function c(p){for(var f=[],g=!u&&l&&l.project,v=0;v=0)&&(d=o);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Dn(e,kn(i),{labelFetcher:d,labelDataIndex:c,defaultText:t},p);var f=e.getTextContent();if(f&&(mw(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function ww(n,e,t,i,o,r){n.data?n.data.setItemGraphicEl(r,e):rt(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:t,region:i&&i.option||{}}}function Sw(n,e,t,i,o){n.data||sr({el:e,componentModel:o,itemName:t,itemTooltipOption:i.get("tooltip")})}function Mw(n,e,t,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return nn(e,a,r.get("blurScope"),r.get("disabled")),n.isGeo&&BA(e,o,t),a}function Tw(n,e,t){var i=[],o;function r(){o=[]}function a(){o.length&&(i.push(o),o=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ce);const ZN=XN;function jN(n,e){var t={};return M(n,function(i){i.each(i.mapDimension("value"),function(o,r){var a="ec-"+i.getName(r);t[a]=t[a]||[],isNaN(o)||t[a].push(o)})}),n[0].map(n[0].mapDimension("value"),function(i,o){for(var r="ec-"+n[0].getName(o),a=0,s=1/0,l=-1/0,u=t[r].length,h=0;h1?(_.width=x,_.height=x/v):(_.height=x,_.width=x*v),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var w=n.getBoxLayoutParams();w.aspect=v,_=pe(w,{width:f,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function JN(n,e){M(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var tz=function(){function n(){this.dimensions=Dw}return n.prototype.create=function(e,t){var i=[];function o(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new Lw(l+s,l,N({nameMap:a.get("nameMap")},o(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=Ow,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=i[l]}});var r={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();r[s]=r[s]||[],r[s].push(a)}}),M(r,function(a,s){var l=F(a,function(h){return h.get("nameMap")}),u=new Lw(s,s,N({nameMap:Th(l)},o(a[0])));u.zoomLimit=fn.apply(null,F(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=Ow,u.resize(a[0],t),M(a,function(h){h.coordinateSystem=u,JN(u,h)})}),i},n.prototype.getFilledRegions=function(e,t,i,o){for(var r=(e||[]).slice(),a=X(),s=0;s=0;r--)i[r]==null&&(delete t[e[r]],e.pop())}function Of(n,e){var t=n.visual,i=[];j(t)?gs(t,function(r){i.push(r)}):t!=null&&i.push(t);var o={color:1,symbol:1};!e&&i.length===1&&!o.hasOwnProperty(n.type)&&(i[1]=i[0]),Vw(n,i)}function Ju(n){return{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("color",n(t("color"),o))},_normalizedToVisual:Rf([0,1])}}function Ew(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function vs(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function ys(n){var e=this.option.visual;return e[this.option.loop&&n!==Qu?n%e.length:n]}function Ao(){return this.option.visual[0]}function Rf(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:ys,piecewise:function(e,t){var i=Nf.call(this,t);return i==null&&(i=xt(e,n,this.option.visual,!0)),i},fixed:Ao}}function Nf(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=Lf.findPieceIndex(n,t),o=t[i];if(o&&o.visual)return o.visual[this.type]}}function Vw(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=F(e,function(t){var i=ue(t);return i||[0,0,0,1]})),e}var cz={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Lf.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e!=null?e:Qu},fixed:Et};function th(n,e,t){return n?e<=t:e=a/3?1:2),h=i.y-r(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(i.x+o(l)*s,i.y+r(l)*s),t.lineTo(i.x+o(i.angle)*a,i.y+r(i.angle)*a),t.lineTo(i.x-o(l)*s,i.y-r(l)*s),t.lineTo(u,h)},e}(gt);const fz=dz;function gz(n,e){var t=n.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=U(t[0],e.getWidth()),s=U(t[1],e.getHeight()),l=U(n.get("radius"),r/2);return{cx:a,cy:s,r:l}}function eh(n,e){var t=n==null?"":n+"";return e&&(G(e)?t=e.replace("{value}",t):$(e)&&(t=e(n))),t}var vz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),a=gz(t,o);this._renderMain(t,i,o,r,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,o,r,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),d=c.get("roundCap"),p=d?Wu:ze,f=c.get("show"),g=c.getModel("lineStyle"),v=g.get("width"),y=[u,h];$c(y,!l),u=y[0],h=y[1];for(var m=h-u,x=u,_=[],w=0;f&&w=I&&(C===0?0:r[C-1][0])Math.PI/2&&(st+=Math.PI)):ot==="tangential"?st=-T-Math.PI/2:vt(ot)&&(st=ot*Math.PI/180),st===0?c.add(new dt({style:Ct(x,{text:B,x:Z,y:Q,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:W}),silent:!0})):c.add(new dt({style:Ct(x,{text:B,x:Z,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:W}),silent:!0,originX:Z,originY:Q,rotation:st}))}if(m.get("show")&&O!==_){var E=m.get("distance");E=E?E+h:h;for(var St=0;St<=w;St++){P=Math.cos(T),L=Math.sin(T);var mt=new qt({shape:{x1:P*(f-E)+d,y1:L*(f-E)+p,x2:P*(f-S-E)+d,y2:L*(f-S-E)+p},silent:!0,style:D});D.stroke==="auto"&&mt.setStyle({stroke:r((O+St/w)/_)}),c.add(mt),T+=C}T-=C}else T+=I}},e.prototype._renderPointer=function(t,i,o,r,a,s,l,u,h){var c=this.group,d=this._data,p=this._progressEls,f=[],g=t.get(["pointer","show"]),v=t.getModel("progress"),y=v.get("show"),m=t.getData(),x=m.mapDimension("value"),_=+t.get("min"),w=+t.get("max"),b=[_,w],S=[s,l];function T(C,A){var D=m.getItemModel(C),k=D.getModel("pointer"),P=U(k.get("width"),a.r),L=U(k.get("length"),a.r),O=t.get(["pointer","icon"]),E=k.get("offsetCenter"),R=U(E[0],a.r),B=U(E[1],a.r),W=k.get("keepAspect"),Z;return O?Z=Ft(O,R-P/2,B-L,P,L,null,W):Z=new fz({shape:{angle:-Math.PI/2,width:P,r:L,x:R,y:B}}),Z.rotation=-(A+Math.PI/2),Z.x=a.cx,Z.y=a.cy,Z}function I(C,A){var D=v.get("roundCap"),k=D?Wu:ze,P=v.get("overlap"),L=P?v.get("width"):h/m.count(),O=P?a.r-L:a.r-(C+1)*L,E=P?a.r:a.r-C*L,R=new k({shape:{startAngle:s,endAngle:A,cx:a.cx,cy:a.cy,clockwise:u,r0:O,r:E}});return P&&(R.z2=w-m.get(x,C)%w),R}(y||g)&&(m.diff(d).add(function(C){var A=m.get(x,C);if(g){var D=T(C,s);Yt(D,{rotation:-((isNaN(+A)?S[0]:xt(A,b,S,!0))+Math.PI/2)},t),c.add(D),m.setItemGraphicEl(C,D)}if(y){var k=I(C,s),P=v.get("clip");Yt(k,{shape:{endAngle:xt(A,b,S,P)}},t),c.add(k),tp(t.seriesIndex,m.dataType,C,k),f[C]=k}}).update(function(C,A){var D=m.get(x,C);if(g){var k=d.getItemGraphicEl(A),P=k?k.rotation:s,L=T(C,P);L.rotation=P,Tt(L,{rotation:-((isNaN(+D)?S[0]:xt(D,b,S,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(C,L)}if(y){var O=p[A],E=O?O.shape.endAngle:s,R=I(C,E),B=v.get("clip");Tt(R,{shape:{endAngle:xt(D,b,S,B)}},t),c.add(R),tp(t.seriesIndex,m.dataType,C,R),f[C]=R}}).execute(),m.each(function(C){var A=m.getItemModel(C),D=A.getModel("emphasis"),k=D.get("focus"),P=D.get("blurScope"),L=D.get("disabled");if(g){var O=m.getItemGraphicEl(C),E=m.getItemVisual(C,"style"),R=E.fill;if(O instanceof ee){var B=O.style;O.useStyle(N({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},E))}else O.useStyle(E),O.type!=="pointer"&&O.setColor(R);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",r(xt(m.get(x,C),b,[0,1],!0))),O.z2EmphasisLift=0,Kn(O,A),nn(O,k,P,L)}if(y){var W=f[C];W.useStyle(m.getItemVisual(C,"style")),W.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),W.z2EmphasisLift=0,Kn(W,A),nn(W,k,P,L)}}),this._progressEls=f)},e.prototype._renderAnchor=function(t,i){var o=t.getModel("anchor"),r=o.get("show");if(r){var a=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),h=Ft(s,i.cx-a/2+U(l[0],i.r),i.cy-a/2+U(l[1],i.r),a,a,null,u);h.z2=o.get("showAbove")?1:0,h.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,i,o,r,a){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),c=+t.get("max"),d=new it,p=[],f=[],g=t.isAnimationEnabled(),v=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new dt({silent:!0}),f[y]=new dt({silent:!0})}).update(function(y,m){p[y]=s._titleEls[m],f[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),_=new it,w=r(xt(x,[h,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),T=a.cx+U(S[0],a.r),I=a.cy+U(S[1],a.r),C=p[y];C.attr({z2:v?0:2,style:Ct(b,{x:T,y:I,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),_.add(C)}var A=m.getModel("detail");if(A.get("show")){var D=A.get("offsetCenter"),k=a.cx+U(D[0],a.r),P=a.cy+U(D[1],a.r),L=U(A.get("width"),a.r),O=U(A.get("height"),a.r),E=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,C=f[y],R=A.get("formatter");C.attr({z2:v?0:2,style:Ct(A,{x:k,y:P,text:eh(x,R),width:isNaN(L)?null:L,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:E})}),c0(C,{normal:A},x,function(W){return eh(W,R)}),g&&p0(C,y,l,t,{getFormattedLabel:function(W,Z,Q,ot,st,St){return eh(St?St.interpolatedValue:x,R)}}),_.add(C)}d.add(_)}),this.group.add(d),this._titleEls=p,this._detailEls=f},e.type="gauge",e}(oe);const yz=vz;var mz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return cs(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ce);const xz=mz;function _z(n){n.registerChartView(yz),n.registerSeriesModel(xz)}function bz(n){wz(n),Sz(n)}function wz(n){if(!n.parallel){var e=!1;M(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function Sz(n){var e=Dt(n.parallelAxis);M(e,function(t){if(j(t)){var i=t.parallelIndex||0,o=Dt(n.parallel)[i];o&&o.parallelAxisDefault&&et(t,o.parallelAxisDefault,!1)}})}var Mz=5,Tz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this._model=t,this._api=o,this._handlers||(this._handlers={},M(Cz,function(r,a){o.getZr().on(a,this._handlers[a]=Y(r,this))},this)),xr(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Ua(this,"_throttledDispatchExpand"),M(this._handlers,function(o,r){i.getZr().off(r,o)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(N({type:"parallelAxisExpand"},t))},e.type="parallel",e}(zt),Cz={mousedown:function(n){zf(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(zf(this,"click")&&e){var t=[n.offsetX,n.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>Mz)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!zf(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function zf(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const Iz=Tz;var Az=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&et(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var o=t.get("parallelIndex");return o!=null&&i.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],o=At(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this);M(o,function(r){t.push("dim"+r.get("dim")),i.push(r.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ft);const Dz=Az;var kz=function(n){z(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cn);const Pz=kz;function Do(n,e,t,i,o,r){n=n||0;var a=t[1]-t[0];if(o!=null&&(o=Ar(o,[0,a])),r!=null&&(r=Math.max(r,o!=null?o:0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Ar(s,[0,a]),o=r=Ar(s,[o,r]),i=0}e[0]=Ar(e[0],t),e[1]=Ar(e[1],t);var l=Bf(e,i);e[i]+=n;var u=o||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[i]=Ar(e[i],h);var c;return c=Bf(e,i),o!=null&&(c.sign!==l.sign||c.spanr&&(e[1-i]=e[i]+c.sign*r),e}function Bf(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ar(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Ef=M,Fw=Math.min,Ww=Math.max,Gw=Math.floor,Lz=Math.ceil,Hw=kt,Oz=Math.PI,Rz=function(){function n(e,t,i){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=e.dimensions,r=e.parallelAxisIndex;Ef(o,function(a,s){var l=r[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(a,new Pz(a,Ou(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,o=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],s=e[r];return a>=i&&a<=i+t.axisLength&&s>=o&&s<=o+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var o=i.getData();Ef(this.dimensions,function(r){var a=this._axesMap.get(r);a.scale.unionExtentFromData(o,o.mapDimension(r)),Sr(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=pe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a=r==="horizontal"?0:1,s=t[o[a]],l=[0,s],u=this.dimensions.length,h=nh(e.get("axisExpandWidth"),l),c=nh(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,p=e.get("axisExpandWindow"),f;if(p)f=nh(p[1]-p[0],l),p[1]=p[0]+f;else{f=nh(h*(c-1),l);var g=e.get("axisExpandCenter")||Gw(u/2);p=[h*g-f/2],p[1]=p[0]+f}var v=(s-f)/(u-c);v<3&&(v=0);var y=[Gw(Hw(p[0]/h,1))+1,Lz(Hw(p[1]/h,1))-1],m=v/h*p[0];return{layout:r,pixelDimIndex:a,layoutBase:t[i[a]],layoutLength:s,axisBase:t[i[1-a]],axisLength:t[o[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:v,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,o=this._makeLayoutInfo(),r=o.layout;t.each(function(a){var s=[0,o.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Ef(i,function(a,s){var l=(o.axisExpandable?zz:Nz)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},h={horizontal:Oz/2,vertical:0},c=[u[r].x+e.x,u[r].y+e.y],d=h[r],p=me();si(p,p,d),vn(p,p,c),this._axesLayout[a]={position:c,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,o){i==null&&(i=0),o==null&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];M(a,function(v){s.push(e.mapDimension(v)),l.push(r.get(v).model)});for(var u=this.hasAxisBrushed(),h=i;hr*(1-c[0])?(u="jump",l=s-r*(1-c[2])):(l=s-r*c[1])>=0&&(l=s-r*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?Do(l,o,a,"all"):u="none";else{var p=o[1]-o[0],f=a[1]*s/p;o=[Ww(0,f-p/2)],o[1]=Fw(a[1],o[0]+p),o[0]=o[1]-p}return{axisExpandWindow:o,behavior:u}},n}();function nh(n,e){return Fw(Ww(n,e[0]),e[1])}function Nz(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function zz(n,e){var t=e.layoutLength,i=e.axisExpandWidth,o=e.axisCount,r=e.axisCollapseWidth,a=e.winInnerIndices,s,l=r,u=!1,h;return n=0;o--)xn(i[o])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var o=i[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var r=0,a=i.length;rHz}function Jw(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function tS(n,e,t,i){var o=new it;return o.add(new yt({name:"main",style:Yf(t),silent:!0,draggable:!0,cursor:"move",drift:pt(iS,n,e,o,["n","s","w","e"]),ondragend:pt(Po,e,{isEnd:!0})})),M(i,function(r){o.add(new yt({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:pt(iS,n,e,o,r),ondragend:pt(Po,e,{isEnd:!0})}))}),o}function eS(n,e,t,i){var o=i.brushStyle.lineWidth||0,r=Dr(o,Yz),a=t[0][0],s=t[1][0],l=a-o/2,u=s-o/2,h=t[0][1],c=t[1][1],d=h-r+o/2,p=c-r+o/2,f=h-a,g=c-s,v=f+o,y=g+o;ni(n,e,"main",a,s,f,g),i.transformable&&(ni(n,e,"w",l,u,r,y),ni(n,e,"e",d,u,r,y),ni(n,e,"n",l,u,v,r),ni(n,e,"s",l,p,v,r),ni(n,e,"nw",l,u,r,r),ni(n,e,"ne",d,u,r,r),ni(n,e,"sw",l,p,r,r),ni(n,e,"se",d,p,r,r))}function Hf(n,e){var t=e.__brushOption,i=t.transformable,o=e.childAt(0);o.useStyle(Yf(t)),o.attr({silent:!i,cursor:i?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(r){var a=e.childOfName(r.join("")),s=r.length===1?Uf(n,r[0]):$z(n,r);a&&a.attr({silent:!i,invisible:!i,cursor:i?Xz[s]+"-resize":null})})}function ni(n,e,t,i,o,r,a){var s=e.childOfName(t);s&&s.setShape(Jz(Xf(n,e,[[i,o],[i+r,o+a]])))}function Yf(n){return K({strokeNoScale:!0},n.brushStyle)}function nS(n,e,t,i){var o=[ms(n,t),ms(e,i)],r=[Dr(n,t),Dr(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function Kz(n){return yi(n.group)}function Uf(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Bl(t[e],Kz(n));return i[o]}function $z(n,e){var t=[Uf(n,e[0]),Uf(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function iS(n,e,t,i,o,r){var a=t.__brushOption,s=n.toRectRange(a.range),l=oS(e,o,r);M(i,function(u){var h=Uz[u];s[h[0]][h[1]]+=l[h[0]]}),a.range=n.fromRectRange(nS(s[0][0],s[1][0],s[0][1],s[1][1])),Vf(e,t),Po(e,{isEnd:!1})}function Qz(n,e,t,i){var o=e.__brushOption.range,r=oS(n,t,i);M(o,function(a){a[0]+=r[0],a[1]+=r[1]}),Vf(n,e),Po(n,{isEnd:!1})}function oS(n,e,t){var i=n.group,o=i.transformCoordToLocal(e,t),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function Xf(n,e,t){var i=Qw(n,e);return i&&i!==ko?i.clipPath(t,n._transform):q(t)}function Jz(n){var e=ms(n[0][0],n[1][0]),t=ms(n[0][1],n[1][1]),i=Dr(n[0][0],n[1][0]),o=Dr(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:o-t}}function tB(n,e,t){if(!(!n._brushType||nB(n,e.offsetX,e.offsetY))){var i=n._zr,o=n._covers,r=Wf(n,e,t);if(!n._dragging)for(var a=0;ai.getWidth()||t<0||t>i.getHeight()}var ih={lineX:lS(0),lineY:lS(1),rect:{createCover:function(n,e){function t(i){return i}return tS({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Jw(n);return nS(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){eS(n,e,t,i)},updateCommon:Hf,contain:jf},polygon:{createCover:function(n,e){var t=new it;return t.add(new Be({name:"main",style:Yf(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new An({name:"main",draggable:!0,drift:pt(Qz,n,e),ondragend:pt(Po,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:Xf(n,e,t)})},updateCommon:Hf,contain:jf}};function lS(n){return{createCover:function(e,t){return tS({toRectRange:function(i){var o=[i,[0,100]];return n&&o.reverse(),o},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Jw(e),i=ms(t[0][n],t[1][n]),o=Dr(t[0][n],t[1][n]);return[i,o]},updateCoverShape:function(e,t,i,o){var r,a=Qw(e,t);if(a!==ko&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(n);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,r];n&&l.reverse(),eS(e,t,l,o)},updateCommon:Hf,contain:jf}}const qf=jz;function uS(n){return n=Kf(n),function(e){return bp(e,n)}}function hS(n,e){return n=Kf(n),function(t){var i=e!=null?e:t,o=i?n.width:n.height,r=i?n.x:n.y;return[r,r+(o||0)]}}function cS(n,e,t){var i=Kf(n);return function(o,r){return i.contain(r[0],r[1])&&!Cf(o,e,t)}}function Kf(n){return ut.create(n)}var iB=["axisLine","axisTickLabel","axisName"],oB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new qf(i.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,i,o,r){if(!rB(t,i,r)){this.axisModel=t,this.api=o,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=sB(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,c=t.axis.dim,d=l.getAxisLayout(c),p=N({strokeContainThreshold:h},d),f=new ti(t,p);M(iB,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(p,u,t,s,h,o),ka(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,o,r,a,s){var l=o.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),c=ut.create({x:l[0],y:-a/2,width:u,height:a});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:uS(c),isTargetByCursor:cS(c,s,r),getLinearBrushOtherExtent:hS(c,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(aB(o))},e.prototype._onBrush=function(t){var i=t.areas,o=this.axisModel,r=o.axis,a=F(i,function(s){return[r.coordToData(s.range[0],!0),r.coordToData(s.range[1],!0)]});(!o.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(zt);function rB(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function aB(n){var e=n.axis;return F(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function sB(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const lB=oB;var uB={type:"axisAreaSelect",event:"axisAreaSelected"};function hB(n){n.registerAction(uB,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var cB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pB(n){n.registerComponentView(Iz),n.registerComponentModel(Dz),n.registerCoordinateSystem("parallel",Fz),n.registerPreprocessor(bz),n.registerComponentModel(Uw),n.registerComponentView(lB),Tr(n,"parallel",Uw,cB),hB(n)}var dB=["itemStyle","borderWidth"],pS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$f=new $n,fB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),c=l.master.getRect(),d={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:h,valueDim:pS[+h],categoryDim:pS[1-+h]};a.diff(s).add(function(f){if(a.hasValue(f)){var g=xS(a,f),v=dS(a,f,g,d),y=_S(a,d,v);a.setItemGraphicEl(f,y),r.add(y),SS(y,d,v)}}).update(function(f,g){var v=s.getItemGraphicEl(g);if(!a.hasValue(f)){r.remove(v);return}var y=xS(a,f),m=dS(a,f,y,d),x=wS(a,m);v&&x!==v.__pictorialShapeStr&&(r.remove(v),a.setItemGraphicEl(f,null),v=null),v?bB(v,d,m):v=_S(a,d,m,!0),a.setItemGraphicEl(f,v),v.__pictorialSymbolMeta=m,r.add(v),SS(v,d,m)}).remove(function(f){var g=s.getItemGraphicEl(f);g&&bS(s,f,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=t.get("clip",!0)?af(t.coordinateSystem,!1,t):null;return p?r.setClipPath(p):r.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(t,i){var o=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(a){bS(r,rt(a).dataIndex,t,a)}):o.removeAll()},e.type="pictorialBar",e}(oe);function dS(n,e,t,i){var o=n.getItemLayout(e),r=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};gB(t,r,o,i,d),vB(n,e,o,r,a,d.boundingLength,d.pxSign,h,i,d),yB(t,d.symbolScale,u,i,d);var p=d.symbolSize,f=ja(t.get("symbolOffset"),p);return mB(t,p,o,r,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function gB(n,e,t,i,o){var r=i.valueDim,a=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[r.wh]<=0),h;if(V(a)){var c=[Qf(s,a[0])-l,Qf(s,a[1])-l];c[1]0?1:-1}function Qf(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function vB(n,e,t,i,o,r,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(t[c.wh]),p=n.getItemVisual(e,"symbolSize"),f;V(p)?f=p.slice():p==null?f=["100%","100%"]:f=[p,p],f[c.index]=U(f[c.index],d),f[h.index]=U(f[h.index],i?d:Math.abs(r)),u.symbolSize=f;var g=u.symbolScale=[f[0]/s,f[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function yB(n,e,t,i,o){var r=n.get(dB)||0;r&&($f.attr({scaleX:e[0],scaleY:e[1],rotation:t}),$f.updateTransform(),r/=$f.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function mB(n,e,t,i,o,r,a,s,l,u,h,c){var d=h.categoryDim,p=h.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(i){var y=Math.abs(l),m=fn(n.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=U(m,e[p.index]),w=Math.max(g+_*2,0),b=x?0:_*2,S=Oc(i),T=S?i:MS((y+b)/w),I=y-T*g;_=I/2/(x?T:Math.max(T-1,1)),w=g+_*2,b=x?0:_*2,!S&&i!=="fixed"&&(T=u?MS((Math.abs(u)+b)/w):0),v=T*w-b,c.repeatTimes=T,c.symbolMargin=_}var C=f*(v/2),A=c.pathPosition=[];A[d.index]=t[d.wh]/2,A[p.index]=a==="start"?C:a==="end"?l-C:l/2,r&&(A[0]+=r[0],A[1]+=r[1]);var D=c.bundlePosition=[];D[d.index]=t[d.xy],D[p.index]=t[p.xy];var k=c.barRectShape=N({},t);k[p.wh]=f*Math.max(Math.abs(t[p.wh]),Math.abs(A[p.index]+C)),k[d.wh]=t[d.wh];var P=c.clipShape={};P[d.xy]=-t[d.xy],P[d.wh]=h.ecSize[d.wh],P[p.xy]=0,P[p.wh]=t[p.wh]}function fS(n){var e=n.symbolPatternSize,t=Ft(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function gS(n,e,t,i){var o=n.__pictorialBundle,r=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+t.symbolMargin*2;for(Jf(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h0:y<0)&&(m=u-1-g),v[l.index]=c*(m-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function vS(n,e,t,i){var o=n.__pictorialBundle,r=n.__pictorialMainPath;r?kr(r,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(r=n.__pictorialMainPath=fS(t),o.add(r),kr(r,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function yS(n,e,t){var i=N({},e.barRectShape),o=n.__pictorialBarRect;o?kr(o,null,{shape:i},e,t):(o=n.__pictorialBarRect=new yt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,n.add(o))}function mS(n,e,t,i){if(t.symbolClip){var o=n.__pictorialClipPath,r=N({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(o)Tt(o,{shape:r},s,l);else{r[a.wh]=0,o=new yt({shape:r}),n.__pictorialBundle.setClipPath(o),n.__pictorialClipPath=o;var u={};u[a.wh]=t.clipShape[a.wh],uo[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function xS(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=xB,t.isAnimationEnabled=_B,t}function xB(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function _B(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _S(n,e,t,i){var o=new it,r=new it;return o.add(r),o.__pictorialBundle=r,r.x=t.bundlePosition[0],r.y=t.bundlePosition[1],t.symbolRepeat?gS(o,e,t):vS(o,e,t),yS(o,t,i),mS(o,e,t,i),o.__pictorialShapeStr=wS(n,t),o.__pictorialSymbolMeta=t,o}function bB(n,e,t){var i=t.animationModel,o=t.dataIndex,r=n.__pictorialBundle;Tt(r,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,o),t.symbolRepeat?gS(n,e,t,!0):vS(n,e,t,!0),yS(n,t,!0),mS(n,e,t,!0)}function bS(n,e,t,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];Jf(i,function(a){r.push(a)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),M(r,function(a){ir(a,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function wS(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Jf(n,e,t){M(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function kr(n,e,t,i,o,r){e&&n.attr(e),i.symbolClip&&!o?t&&n.attr(t):t&&uo[o?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,r)}function SS(n,e,t){var i=t.dataIndex,o=t.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),h=r.get("focus"),c=r.get("blurScope"),d=r.get("scale");Jf(n,function(g){if(g instanceof ee){var v=g.style;g.useStyle(N({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=a,d&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var p=e.valueDim.posDesc[+(t.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,Dn(f,kn(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:hs(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),nn(n,h,c,r.get("disabled"))}function MS(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const wB=fB;var SB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=mi(Fu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fu);const MB=SB;function TB(n){n.registerChartView(wB),n.registerSeriesModel(MB),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,pt(g_,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,v_("pictorialBar"))}function TS(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||H(n,"text")))}function CS(n,e,t){var i=n,o,r,a;if(e==="text")a=i;else{a={},H(i,"text")&&(a.text=i.text),H(i,"rich")&&(a.rich=i.rich),H(i,"textFill")&&(a.fill=i.textFill),H(i,"textStroke")&&(a.stroke=i.textStroke),H(i,"fontFamily")&&(a.fontFamily=i.fontFamily),H(i,"fontSize")&&(a.fontSize=i.fontSize),H(i,"fontStyle")&&(a.fontStyle=i.fontStyle),H(i,"fontWeight")&&(a.fontWeight=i.fontWeight),r={type:"text",style:a,silent:!0},o={};var s=H(i,"textPosition");t?o.position=s?i.textPosition:"inside":s&&(o.position=i.textPosition),H(i,"textPosition")&&(o.position=i.textPosition),H(i,"textOffset")&&(o.offset=i.textOffset),H(i,"textRotation")&&(o.rotation=i.textRotation),H(i,"textDistance")&&(o.distance=i.textDistance)}return IS(a,n),M(a.rich,function(l){IS(l,l)}),{textConfig:o,textContent:r}}function IS(n,e){e&&(e.font=e.textFont||e.font,H(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),H(e,"textAlign")&&(n.align=e.textAlign),H(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),H(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),H(e,"textWidth")&&(n.width=e.textWidth),H(e,"textHeight")&&(n.height=e.textHeight),H(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),H(e,"textPadding")&&(n.padding=e.textPadding),H(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),H(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),H(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),H(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),H(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),H(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),H(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function CB(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var o=i.textPosition.indexOf("inside")>=0,r=n.fill||"#000";AS(i,e);var a=i.textFill==null;return o?a&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=r),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,M(e.rich,function(s){AS(s,s)}),i}function AS(n,e){e&&(H(e,"fill")&&(n.textFill=e.fill),H(e,"stroke")&&(n.textStroke=e.fill),H(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),H(e,"font")&&(n.font=e.font),H(e,"fontStyle")&&(n.fontStyle=e.fontStyle),H(e,"fontWeight")&&(n.fontWeight=e.fontWeight),H(e,"fontSize")&&(n.fontSize=e.fontSize),H(e,"fontFamily")&&(n.fontFamily=e.fontFamily),H(e,"align")&&(n.textAlign=e.align),H(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),H(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),H(e,"width")&&(n.textWidth=e.width),H(e,"height")&&(n.textHeight=e.height),H(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),H(e,"padding")&&(n.textPadding=e.padding),H(e,"borderColor")&&(n.textBorderColor=e.borderColor),H(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),H(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),H(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),H(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),H(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),H(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),H(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),H(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),H(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),H(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var DS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kS=at(DS);Ae(mn,function(n,e){return n[e]=1,n},{}),mn.join(", ");var oh=["","style","shape","extra"],Pr=_t();function tg(n,e,t,i,o){var r=n+"Animation",a=Ol(n,i,o)||{},s=Pr(e).userDuring;return a.duration>0&&(a.during=s?Y(PB,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),N(a,t[r]),a}function rh(n,e,t,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,s=t.isAnimationEnabled(),l=Pr(n),u=e.style;l.userDuring=e.during;var h={},c={};if(OB(n,e,c),RS("shape",e,c),RS("extra",e,c),!r&&s&&(LB(n,e,h),OS("shape",n,e,h),OS("extra",n,e,h),RB(n,e,u,h)),c.style=u,IB(n,c,a),DB(n,e),s)if(r){var d={};M(oh,function(f){var g=f?e[f]:e;g&&g.enterFrom&&(f&&(d[f]=d[f]||{}),N(f?d[f]:d,g.enterFrom))});var p=tg("enter",n,e,t,o);p.duration>0&&n.animateFrom(d,p)}else AB(n,e,o||0,t,h);PS(n,e),u?n.dirty():n.markRedraw()}function PS(n,e){for(var t=Pr(n).leaveToProps,i=0;i0&&n.animateFrom(o,r)}}function DB(n,e){H(e,"silent")&&(n.silent=e.silent),H(e,"ignore")&&(n.ignore=e.ignore),n instanceof wn&&H(e,"invisible")&&(n.invisible=e.invisible),n instanceof gt&&H(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var zn={},kB={setTransform:function(n,e){return zn.el[n]=e,this},getTransform:function(n){return zn.el[n]},setShape:function(n,e){var t=zn.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=zn.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=zn.el,i=t.style;return i&&(i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=zn.el.style;if(e)return e[n]},setExtra:function(n,e){var t=zn.el.extra||(zn.el.extra={});return t[n]=e,this},getExtra:function(n){var e=zn.el.extra;if(e)return e[n]}};function PB(){var n=this,e=n.el;if(e){var t=Pr(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}zn.el=e,i(kB)}}function OS(n,e,t,i){var o=t[n];if(o){var r=e[n],a;if(r){var s=t.transition,l=o.transition;if(l)if(!a&&(a=i[n]={}),Lo(l))N(a,r);else for(var u=Dt(l),h=0;h=0){!a&&(a=i[n]={});for(var p=at(r),h=0;h=0)){var d=n.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});for(var f=at(t),u=0;us)return!0;if(a){var l=_f(e).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,o,r){},n.prototype.createPointerEl=function(e,t,i,o){var r=t.pointer;if(r){var a=Oo(e).pointerEl=new uo[r.type](BS(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,i,o){if(t.label){var r=Oo(e).labelEl=new dt(BS(t.label));e.add(r),FS(r,o)}},n.prototype.updatePointerEl=function(e,t,i){var o=Oo(e).pointerEl;o&&t.pointer&&(o.setStyle(t.pointer.style),i(o,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,o){var r=Oo(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{x:t.label.x,y:t.label.y}),FS(r,o))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide"){o&&i.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=ar(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hn(u.event)},onmousedown:eg(this._onHandleDragMove,this,0,0),drift:eg(this._onHandleDragMove,this),ondragend:eg(this._onHandleDragEnd,this)}),i.add(o)),WS(o,t,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");V(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,xr(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){ES(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ng(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var o=this.updateHandleTransform(ng(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=o,i.stopAnimation(),i.attr(ng(o)),Oo(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,o=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),o&&t.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Ua(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function ES(n,e,t,i){VS(Oo(t).lastProp,i)||(Oo(t).lastProp=i,e?Tt(t,i,n):(t.stopAnimation(),t.attr(i)))}function VS(n,e){if(j(n)&&j(e)){var t=!0;return M(e,function(i,o){t=t&&VS(n[o],i)}),!!t}else return n===e}function FS(n,e){n[e.get(["label","show"])?"show":"hide"]()}function ng(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function WS(n,e,t){var i=e.get("z"),o=e.get("zlevel");n&&n.traverse(function(r){r.type!=="group"&&(i!=null&&(r.z=i),o!=null&&(r.zlevel=o),r.silent=t)})}const ig=BB;function og(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function GS(n,e,t,i,o){var r=t.get("value"),a=HS(r,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=co(s.get("padding")||0),u=s.getFont(),h=ua(a,u),c=o.position,d=h.width+l[1]+l[3],p=h.height+l[0]+l[2],f=o.align;f==="right"&&(c[0]-=d),f==="center"&&(c[0]-=d/2);var g=o.verticalAlign;g==="bottom"&&(c[1]-=p),g==="middle"&&(c[1]-=p/2),EB(c,d,p,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),n.label={x:c[0],y:c[1],style:Ct(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function EB(n,e,t,i){var o=i.getWidth(),r=i.getHeight();n[0]=Math.min(n[0]+e,o)-e,n[1]=Math.min(n[1]+t,r)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function HS(n,e,t,i,o){n=e.scale.parse(n);var r=e.scale.getLabel({value:n},{precision:o.precision}),a=o.formatter;if(a){var s={value:Kd(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),G(a)?r=a.replace("{value}",r):$(a)&&(r=a(s))}return r}function rg(n,e,t){var i=me();return si(i,i,t.rotation),vn(i,i,t.position),rn([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function YS(n,e,t,i,o,r){var a=ti.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=o.get(["label","margin"]),GS(e,i,o,r,{position:rg(i.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function ag(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function US(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function XS(n,e,t,i,o,r){return{cx:n,cy:e,r0:t,r:i,startAngle:o,endAngle:r,clockwise:!0}}var VB=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.grid,u=r.get("type"),h=ZS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var d=og(r),p=FB[u](s,c,h);p.style=d,t.graphicKey=p.type,t.pointer=p}var f=vf(l.model,o);YS(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=vf(i.axis.grid.model,i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=rg(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.grid,l=a.getGlobalExtent(!0),u=ZS(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[t.x,t.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var d=(u[1]+u[0])/2,p=[d,d];p[h]=c[h];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:p,tooltipOption:f[h]}},e}(ig);function ZS(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var FB={line:function(n,e,t){var i=ag([e,t[0]],[e,t[1]],jS(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),o=t[1]-t[0];return{type:"Rect",shape:US([e-i/2,t[0]],[i,o],jS(n))}}};function jS(n){return n.dim==="x"?0:1}const WB=VB;var GB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ft);const HB=GB;var ii=_t(),YB=M;function qS(n,e,t){if(!ct.node){var i=e.getZr();ii(i).records||(ii(i).records={}),UB(i,e);var o=ii(i).records[n]||(ii(i).records[n]={});o.handler=t}}function UB(n,e){if(ii(n).initialized)return;ii(n).initialized=!0,t("click",pt(KS,"click")),t("mousemove",pt(KS,"mousemove")),t("globalout",ZB);function t(i,o){n.on(i,function(r){var a=jB(e);YB(ii(n).records,function(s){s&&o(s,r,a.dispatchAction)}),XB(a.pendings,e)})}}function XB(n,e){var t=n.showTip.length,i=n.hideTip.length,o;t?o=n.showTip[t-1]:i&&(o=n.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function ZB(n,e,t){n.handler("leave",null,t)}function KS(n,e,t,i){e.handler(n,t,i)}function jB(n){var e={showTip:[],hideTip:[]},t=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function sg(n,e){if(!ct.node){var t=e.getZr(),i=(ii(t).records||{})[n];i&&(ii(t).records[n]=null)}}var qB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=i.getComponent("tooltip"),a=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";qS("axisPointer",o,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){sg("axisPointer",i)},e.prototype.dispose=function(t,i){sg("axisPointer",i)},e.type="axisPointer",e}(zt);const KB=qB;function $S(n,e){var t=[],i=n.seriesIndex,o;if(i==null||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=Ui(r,n);if(a==null||a<0||V(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)t=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,d=u.dim,p=c==="x"||c==="radius"?1:0,f=r.mapDimension(d),g=[];g[p]=r.get(f,a),g[1-p]=r.get(r.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(r.getValues(F(l.dimensions,function(y){return r.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),t=[v.x+v.width/2,v.y+v.height/2]}return{point:t,el:s}}var QS=_t();function $B(n,e,t){var i=n.currTrigger,o=[n.x,n.y],r=n,a=n.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){sh(o)&&(o=$S({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=sh(o),u=r.axesInfo,h=s.axesInfo,c=i==="leave"||sh(o),d={},p={},f={list:[],map:{}},g={showPointer:pt(JB,p),showTooltip:pt(tE,f)};M(s.coordSysMap,function(y,m){var x=l||y.containPoint(o);M(s.coordSysAxesInfo[m],function(_,w){var b=_.axis,S=oE(u,_);if(!c&&x&&(!u||S)){var T=S&&S.value;T==null&&!l&&(T=b.pointToData(o)),T!=null&&JS(_,T,g,!1,d)}})});var v={};return M(h,function(y,m){var x=y.linkGroup;x&&!p[m]&&M(x.axesInfo,function(_,w){var b=p[w];if(_!==y&&b){var S=b.value;x.mapper&&(S=y.axis.scale.parse(x.mapper(S,tM(_),tM(y)))),v[y.key]=S}})}),M(v,function(y,m){JS(h[m],y,g,!0,d)}),eE(p,h,d),nE(f,o,n,a),iE(h,a,t),d}}function JS(n,e,t,i,o){var r=n.axis;if(!(r.scale.isBlank()||!r.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=QB(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&o.seriesIndex==null&&N(o,s[0]),!i&&n.snap&&r.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function QB(n,e){var t=e.axis,i=t.dim,o=n,r=[],a=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(i),c,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(h,n,t);d=p.dataIndices,c=p.nestestValue}else{if(d=l.getData().indicesOfNearest(h[0],n,t.type==="category"?.5:null),!d.length)return;c=l.getData().get(h[0],d[0])}if(!(c==null||!isFinite(c))){var f=n-c,g=Math.abs(f);g<=a&&((g=0&&s<0)&&(a=g,s=f,o=c,r.length=0),M(d,function(v){r.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:r,snapToValue:o}}function JB(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function tE(n,e,t,i){var o=t.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var l=e.coordSys.model,u=ps(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function eE(n,e,t){var i=t.axesInfo=[];M(e,function(o,r){var a=o.axisPointerModel.option,s=n[r];s?(!o.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:a.value})})}function nE(n,e,t,i){if(sh(e)||!n.list.length){i({type:"hideTip"});return}var o=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:n.list})}function iE(n,e,t){var i=t.getZr(),o="axisPointerLastHighlights",r=QS(i)[o]||{},a=QS(i)[o]={};M(n,function(u,h){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&M(c.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;a[p]=d})});var s=[],l=[];M(r,function(u,h){!a[h]&&l.push(u)}),M(a,function(u,h){!r[h]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oE(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function tM(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function sh(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function lh(n){Cr.registerAxisPointerClass("CartesianAxisPointer",WB),n.registerComponentModel(HB),n.registerComponentView(KB),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=E5(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$B)}function rE(n){$t($b),$t(lh)}var aE=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),c=s.dataToCoord(i),d=r.get("type");if(d&&d!=="none"){var p=og(r),f=lE[d](s,l,c,h);f.style=p,t.graphicKey=f.type,t.pointer=f}var g=r.get(["label","margin"]),v=sE(i,o,r,l,g);GS(t,o,r,a,v)},e}(ig);function sE(n,e,t,i,o){var r=e.axis,a=r.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,h,c;if(r.dim==="radius"){var d=me();si(d,d,s),vn(d,d,[i.cx,i.cy]),u=rn([a,-o],d);var p=e.getModel("axisLabel").get("rotate")||0,f=ti.innerTextLayout(s,p*Math.PI/180,-1);h=f.textAlign,c=f.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+o,a]);var v=i.cx,y=i.cy;h=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",c=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:h,verticalAlign:c}}var lE={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:ag(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var o=Math.max(1,n.getBandWidth()),r=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:XS(e.cx,e.cy,i[0],i[1],(-t-o/2)*r,(-t+o/2)*r)}:{type:"Sector",shape:XS(e.cx,e.cy,t-o/2,t+o/2,0,Math.PI*2)}}};const uE=aE;var hE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,o=this.ecModel;return o.eachComponent(t,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ft);const cE=hE;var lg=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bt).models[0]},e.type="polarAxis",e}(ft);Ut(lg,ss);var pE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(lg),dE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(lg),ug=function(n){z(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(cn);ug.prototype.dataToRadius=cn.prototype.dataToCoord,ug.prototype.radiusToData=cn.prototype.coordToData;const fE=ug;var gE=_t(),hg=function(n){z(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=r[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=ua(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7),d=c/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),f=gE(t.model),g=f.lastAutoInterval,v=f.lastTickCount;return g!=null&&v!=null&&Math.abs(g-p)<=1&&Math.abs(v-a)<=1&&g>p?p=g:(f.lastTickCount=a,f.lastAutoInterval=p),p},e}(cn);hg.prototype.dataToAngle=cn.prototype.dataToCoord,hg.prototype.angleToData=cn.prototype.coordToData;const vE=hg;var eM=["radius","angle"],yE=function(){function n(e){this.dimensions=eM,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fE,this._angleAxis=new vE,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,o=this._radiusAxis;return i.scale.type===e&&t.push(i),o.scale.type===e&&t.push(o),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);o.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,h=us;)u+=h*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,o=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[o,r]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var o=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-o[0]*r,endAngle:-o[1]*r,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,h=l*l+u*u-1e-4,c=this.r,d=this.r0;return h<=c*c&&h>=d*d}}},n.prototype.convertToPixel=function(e,t,i){var o=nM(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=nM(t);return o===this?this.pointToData(i):null},n}();function nM(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const mE=yE;function xE(n,e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight();n.cx=U(i[0],o),n.cy=U(i[1],r);var a=n.getRadiusAxis(),s=Math.min(o,r)/2,l=e.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[U(l[0],s),U(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function _E(n,e){var t=this,i=t.getAngleAxis(),o=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(Ru(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),M(Ru(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Sr(i.scale,i.model),Sr(o.scale,o.model),i.type==="category"&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function bE(n){return n.mainType==="angleAxis"}function iM(n,e){var t;if(n.type=e.get("type"),n.scale=Ou(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),bE(e)){n.inverse=n.inverse!==e.get("clockwise");var i=e.get("startAngle"),o=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(n.inverse?-360:360);n.setExtent(i,o)}e.axis=n,n.model=e}var wE={dimensions:eM,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,o){var r=new mE(o+"");r.update=_E;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");iM(a,l),iM(s,u),xE(r,i,e),t.push(r),i.coordinateSystem=r,r.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var o=i.getReferringComponents("polar",Bt).models[0];i.coordinateSystem=o.coordinateSystem}}),t}};const SE=wE;var ME=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function uh(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),o=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function hh(n){var e=n.getRadiusAxis();return e.inverse?0:1}function oM(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var TE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=t.axis,r=o.polar,a=r.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=F(o.getViewLabels(),function(h){h=q(h);var c=o.scale,d=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=o.dataToCoord(d),h});oM(u),oM(s),M(ME,function(h){t.get([h,"show"])&&(!o.scale.isBlank()||h==="axisLine")&&CE[h](this.group,t,r,s,l,a,u)},this)}},e.type="angleAxis",e}(Cr),CE={axisLine:function(n,e,t,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),h=hh(t),c=h?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";r[c]===0?d=new uo[p]({shape:{cx:t.cx,cy:t.cy,r:r[h],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new Ia({shape:{cx:t.cx,cy:t.cy,r:r[h],r0:r[c]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,n.add(d)},axisTick:function(n,e,t,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[hh(t)],u=F(i,function(h){return new qt({shape:uh(t,[l,l+s],h.coord)})});n.add(Ve(u,{style:K(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[hh(t)],h=[],c=0;cy?"left":"right",_=Math.abs(v[1]-m)/g<.3?"middle":v[1]>m?"top":"bottom";if(s&&s[f]){var w=s[f];j(w)&&w.textStyle&&(p=new Ot(w.textStyle,l,l.ecModel))}var b=new dt({silent:ti.isLabelSilent(e),style:Ct(p,{x:v[0],y:v[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(b),h){var S=ti.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=c.rawLabel,rt(b).eventData=S}},this)},splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;c=0?"p":"n",k=S;w&&(i[h][A]||(i[h][A]={p:S,n:S}),k=i[h][A][D]);var P=void 0,L=void 0,O=void 0,E=void 0;if(f.dim==="radius"){var R=f.dataToCoord(C)-S,B=l.dataToCoord(A);Math.abs(R)=E})}}})}function NE(n){var e={};M(n,function(i,o){var r=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=aM(a,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),c=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=c.stacks;e[l]=c;var p=rM(i);d[p]||c.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=U(i.get("barWidth"),h),g=U(i.get("barMaxWidth"),h),v=i.get("barGap"),y=i.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(c.remainedWidth,f),d[p].width=f,c.remainedWidth-=f),g&&(d[p].maxWidth=g),v!=null&&(c.gap=v),y!=null&&(c.categoryGap=y)});var t={};return M(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=U(i.categoryGap,a),l=U(i.gap,1),u=i.remainedWidth,h=i.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),M(r,function(g,v){var y=g.maxWidth;y&&y+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),v={start:i.start.y,end:i.end.y,nameMap:f},y=this._formatterLabel(g,v),m=new dt({z2:30,style:Ct(a,{text:y})});m.attr(this._yearTextPositionControl(m,p[l],o,l,s)),r.add(m)}},e.prototype._monthTextPositionControl=function(t,i,o,r,a){var s="left",l="top",u=t[0],h=t[1];return o==="horizontal"?(h=h+a,i&&(s="center"),r==="start"&&(l="bottom")):(u=u+a,i&&(l="middle"),r==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,o,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(i=Pp(s)||i),s=i.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=h==="center",g=0;g=o.start.time&&i.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var o=Math.floor(t[1].time/cg)-Math.floor(t[0].time/cg)+1,r=new Date(t[0].time),a=r.getDate(),s=t[1].date.getDate();r.setDate(a+o-1);var l=r.getDate();if(l!==s)for(var u=r.getTime()-t[1].time>0?1:-1;(l=r.getDate())!==s&&(r.getTime()-t[1].time)*u>0;)o-=u,r.setDate(l-u);var h=Math.floor((o+t[0].day+6)/7),c=i?-h+1:h-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:o,weeks:h,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var o=this._getRangeInfo(i);if(e>o.weeks||e===0&&to.lweek)return null;var r=(e-1)*7-o.fweek+t,a=new Date(o.start.time);return a.setDate(+o.start.d+r),this.getDateInfo(a)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(o){var r=new n(o);i.push(r),o.coordinateSystem=r}),e.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=i[o.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function lM(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}const UE=YE;function XE(n){n.registerComponentModel(WE),n.registerComponentView(HE),n.registerCoordinateSystem("calendar",UE)}function ZE(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function uM(n,e){var t;return M(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function jE(n,e,t){var i=N({},t),o=n[e],r=t.$action||"merge";r==="merge"?o?(et(o,i,!0),xi(o,i,{ignoreSize:!0}),k0(t,o),ch(t,o),ch(t,o,"shape"),ch(t,o,"style"),ch(t,o,"extra"),t.clipPath=o.clipPath):n[e]=i:r==="replace"?n[e]=i:r==="remove"&&o&&(n[e]=null)}var hM=["transition","enterFrom","leaveTo"],qE=hM.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ch(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?hM:qE,o=0;o=0;h--){var c=o[h],d=jt(c.id,null),p=d!=null?a.get(d):null;if(p){var f=p.parent,y=Ze(f),m=f===r?{width:s,height:l}:{width:y.width,height:y.height},x={},_=Zl(p,c,m,null,{hv:c.hv,boundingMode:c.bounding},x);if(!Ze(p).isNew&&_){for(var w=c.transition,b={},S=0;S=0)?b[T]=I:p[T]=I}Tt(p,b,t,0)}else p.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(o){ph(o,Ze(o).option,i,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(zt);function pg(n){var e=H(cM,n)?cM[n]:mp(n),t=new e({});return Ze(t).type=n,t}function pM(n,e,t,i){var o=pg(t);return e.add(o),i.set(n,o),Ze(o).id=n,Ze(o).isNew=!0,o}function ph(n,e,t,i){var o=n&&n.parent;o&&(n.type==="group"&&n.traverse(function(r){ph(r,e,t,i)}),LS(n,e,i),t.removeKey(Ze(n).id))}function dM(n,e,t,i){n.isGroup||M([["cursor",wn.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(o){var r=o[0];H(e,r)?n[r]=J(e[r],o[1]):n[r]==null&&(n[r]=o[1])}),M(at(e),function(o){if(o.indexOf("on")===0){var r=e[o];n[o]=$(r)?r:null}}),H(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function JE(n){return n=N({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(D0),function(e){delete n[e]}),n}function t3(n,e,t){var i=rt(n).eventData;!n.silent&&!n.ignore&&!i&&(i=rt(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function e3(n){n.registerComponentModel($E),n.registerComponentView(QE),n.registerPreprocessor(function(e){var t=e.graphic;V(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var fM=["x","y","radius","angle","single"],n3=["cartesian2d","polar","singleAxis"];function i3(n){var e=n.get("coordinateSystem");return lt(n3,e)>=0}function Pi(n){return n+"Axis"}function o3(n,e){var t=X(),i=[],o=X();n.eachComponent({mainType:"dataZoom",query:e},function(h){o.get(h.uid)||s(h)});var r;do r=!1,n.eachComponent("dataZoom",a);while(r);function a(h){!o.get(h.uid)&&l(h)&&(s(h),r=!0)}function s(h){o.set(h.uid,!0),i.push(h),u(h)}function l(h){var c=!1;return h.eachTargetAxis(function(d,p){var f=t.get(d);f&&f[p]&&(c=!0)}),c}function u(h){h.eachTargetAxis(function(c,d){(t.get(c)||t.set(c,[]))[d]=!0})}return i}function gM(n){var e=n.ecModel,t={infoList:[],infoMap:X()};return n.eachTargetAxis(function(i,o){var r=e.getComponent(Pi(i),o);if(r){var a=r.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(r)}}}),t}var dg=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),r3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,o){var r=vM(t);this.settledOption=r,this.mergeDefaultAndTheme(t,o),this._doInit(r)},e.prototype.mergeOption=function(t){var i=vM(t);et(this.option,t,!0),et(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;M([["start","startValue"],["end","endValue"]],function(r,a){this._rangePropMode[a]==="value"&&(i[r[0]]=o[r[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=X(),o=this._fillSpecifiedTargetAxis(i);o?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return M(fM,function(o){var r=this.getReferringComponents(Pi(o),wI);if(r.specified){i=!0;var a=new dg;M(r.models,function(s){a.add(s.componentIndex)}),t.set(o,a)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var o=this.ecModel,r=!0;if(r){var a=i==="vertical"?"y":"x",s=o.findComponents({mainType:a+"Axis"});l(s,a)}if(r){var s=o.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===i}});l(s,"single")}function l(u,h){var c=u[0];if(c){var d=new dg;if(d.add(c.componentIndex),t.set(h,d),r=!1,h==="x"||h==="y"){var p=c.getReferringComponents("grid",Bt).models[0];p&&M(u,function(f){c.componentIndex!==f.componentIndex&&p===f.getReferringComponents("grid",Bt).models[0]&&d.add(f.componentIndex)})}}}r&&M(fM,function(u){if(r){var h=o.findComponents({mainType:Pi(u),filter:function(d){return d.get("type",!0)==="category"}});if(h[0]){var c=new dg;c.add(h[0].componentIndex),t.set(u,c),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,o=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(r,a){var s=t[r[0]]!=null,l=t[r[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":o?i[a]=o[a]:s&&(i[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,o){t==null&&(t=this.ecModel.getComponent(Pi(i),o))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(o,r){M(o.indexList,function(a){t.call(i,r,a)})})},e.prototype.getAxisProxy=function(t,i){var o=this.getAxisModel(t,i);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[i])return this.ecModel.getComponent(Pi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,o=this.settledOption;M([["start","startValue"],["end","endValue"]],function(r){(t[r[0]]!=null||t[r[1]]!=null)&&(i[r[0]]=o[r[0]]=t[r[0]],i[r[1]]=o[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;M(["start","startValue","end","endValue"],function(o){i[o]=t[o]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,o=this._targetAxisInfoMap.keys(),r=0;ra[1];if(x&&!_&&!w)return!0;x&&(v=!0),_&&(f=!0),w&&(g=!0)}return v&&f&&g})}else Lr(h,function(p){if(r==="empty")l.setData(u=u.map(p,function(g){return s(g)?g:NaN}));else{var f={};f[p]=a,u.selectRange(f)}});Lr(h,function(p){u.setApproximateExtent(a,p)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Lr(["min","max"],function(o){var r=t.get(o+"Span"),a=t.get(o+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?r=xt(i[0]+a,i,[0,100],!0):r!=null&&(a=xt(r,[0,100],i,!0)-i[0]),e[o+"Span"]=r,e[o+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var o=Dc(i,[0,500]);o=Math.min(o,20);var r=e.axis.scale.rawExtentInfo;t[0]!==0&&r.setDeterminedMinMax("min",+i[0].toFixed(o)),t[1]!==100&&r.setDeterminedMinMax("max",+i[1].toFixed(o)),r.freeze()}},n}();function p3(n,e,t){var i=[1/0,-1/0];Lr(t,function(a){EO(i,a.getData(),e)});var o=n.getAxisModel(),r=M_(o.axis.scale,o,i).calculate();return[r.min,r.max]}const d3=c3;var f3={getTargetSeries:function(n){function e(o){n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(a,s){var l=n.getComponent(Pi(a),s);o(a,s,l,r)})})}e(function(o,r,a,s){a.__dzAxisProxy=null});var t=[];e(function(o,r,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new d3(o,r,s,n),t.push(a.__dzAxisProxy))});var i=X();return M(t,function(o){M(o.getTargetSeriesModels(),function(r){i.set(r.uid,r)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).reset(t)}),t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var o=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})}})}};const g3=f3;function v3(n){n.registerAction("dataZoom",function(e,t){var i=o3(t,e);M(i,function(o){o.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var mM=!1;function gg(n){mM||(mM=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,g3),v3(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function y3(n){n.registerComponentModel(s3),n.registerComponentView(h3),gg(n)}var je=function(){function n(){}return n}(),xM={};function Or(n,e){xM[n]=e}function _M(n){return xM[n]}var m3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(i,o){var r=_M(o);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),et(i,r.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ft);const x3=m3;function _3(n,e,t){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:t.getWidth(),height:t.getHeight()},a=pe(i,r,o);go(e.get("orient"),n,e.get("itemGap"),a.width,a.height),Zl(n,i,r,o)}function bM(n,e){var t=co(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new yt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var b3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},h=this._features||(this._features={}),c=[];M(u,function(f,g){c.push(g)}),new _u(this._featureNames||[],c).add(d).update(d).remove(pt(d,null)).execute(),this._featureNames=c;function d(f,g){var v=c[f],y=c[g],m=u[v],x=new Ot(m,t,t.ecModel),_;if(r&&r.newTitle!=null&&r.featureName===v&&(m.title=r.newTitle),v&&!y){if(w3(v))_={onclick:x.option.onclick,featureName:v};else{var w=_M(v);if(!w)return;_=new w}h[v]=_}else if(_=h[y],!_)return;_.uid=ur("toolbox-feature"),_.model=x,_.ecModel=i,_.api=o;var b=_ instanceof je;if(!v&&y){b&&_.dispose&&_.dispose(i,o);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(i,o);return}p(x,_,v),x.setIconStatus=function(S,T){var I=this.option,C=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[S]=T,C[S]&&(T==="emphasis"?oo:ro)(C[S])},_ instanceof je&&_.render&&_.render(x,i,o,r)}function p(f,g,v){var y=f.getModel("iconStyle"),m=f.getModel(["emphasis","iconStyle"]),x=g instanceof je&&g.getIcons?g.getIcons():f.get("icon"),_=f.get("title")||{},w,b;G(x)?(w={},w[v]=x):w=x,G(_)?(b={},b[v]=_):b=_;var S=f.iconPaths={};M(w,function(T,I){var C=ar(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var A=C.ensureState("emphasis");A.style=m.getItemStyle();var D=new dt({style:{text:b[I],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:Tp({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});C.setTextContent(D),sr({el:C,componentModel:t,itemName:I,formatterParamsExtra:{title:b[I]}}),C.__title=b[I],C.on("mouseover",function(){var k=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:m.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),D.ignore=!t.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){f.get(["iconStatus",I])!=="emphasis"&&o.leaveEmphasis(this),D.hide()}),(f.get(["iconStatus",I])==="emphasis"?oo:ro)(C),a.add(C),C.on("click",Y(g.onclick,g,i,o,I)),S[I]=C})}_3(a,t,o),a.add(bM(a.getBoundingRect(),t)),l||a.eachChild(function(f){var g=f.__title,v=f.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),m=f.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!$(x)&&g){var _=x.style||(x.style={}),w=ua(g,dt.makeFont(_)),b=f.x+a.x,S=f.y+a.y+s,T=!1;S+w.height>o.getHeight()&&(y.position="top",T=!0);var I=T?-5-w.height:s+10;b+w.width/2>o.getWidth()?(y.position=["100%",I],_.align="right"):b-w.width/2<0&&(y.position=[0,I],_.align="left")}})},e.prototype.updateView=function(t,i,o,r){M(this._features,function(a){a instanceof je&&a.updateView&&a.updateView(a.model,i,o,r)})},e.prototype.remove=function(t,i){M(this._features,function(o){o instanceof je&&o.remove&&o.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){M(this._features,function(o){o instanceof je&&o.dispose&&o.dispose(t,i)})},e.type="toolbox",e}(zt);function w3(n){return n.indexOf("my")===0}const S3=b3;var M3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var o=this.model,r=o.get("name")||t.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":o.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=ct.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=r+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),p=d[0].indexOf("base64")>-1,f=a?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=f.length,y=new Uint8Array(v);v--;)y[v]=f.charCodeAt(v);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),_.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=o.get("lang"),S='',T=window.open();T.document.write(S),T.document.title=r}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(je);const T3=M3;var wM="__ec_magicType_stack__",C3=[["line","bar"],["stack"]],I3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),o={};return M(t.get("type"),function(r){i[r]&&(o[r]=i[r])}),o},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,o){var r=this.model,a=r.get(["seriesIndex",o]);if(SM[o]){var s={series:[]},l=function(c){var d=c.subType,p=c.id,f=SM[o](d,p,c,r);f&&(K(f,c.option),s.series.push(f));var g=c.coordinateSystem;if(g&&g.type==="cartesian2d"&&(o==="line"||o==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var y=v.dim,m=y+"Axis",x=c.getReferringComponents(m,Bt).models[0],_=x.componentIndex;s[m]=s[m]||[];for(var w=0;w<=_;w++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=o==="bar"}}};M(C3,function(c){lt(c,o)>=0&&M(c,function(d){r.setIconStatus(d,"normal")})}),r.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,h=o;o==="stack"&&(u=et({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get(["iconStatus",o])!=="emphasis"&&(h="tiled")),i.dispatchAction({type:"changeMagicType",currentType:h,newOption:s,newTitle:u,featureName:"magicType"})}},e}(je),SM={line:function(n,e,t,i){if(n==="bar")return et({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return et({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var o=t.get("stack")===wM;if(n==="line"||n==="bar")return i.setIconStatus("stack",o?"normal":"emphasis"),et({id:e,stack:o?"":wM},i.get(["option","stack"])||{},!0)}};un({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const A3=I3;var dh=new Array(60).join("-"),Rr=" ";function D3(n){var e={},t=[],i=[];return n.eachRawSeries(function(o){var r=o.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="polar")){var a=r.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(o)}else t.push(o)}else t.push(o)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function k3(n){var e=[];return M(n,function(t,i){var o=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(F(t.series,function(p){return p.name})),l=[o.model.getCategories()];M(t.series,function(p){var f=p.getRawData();l.push(p.getRawData().mapArray(f.mapDimension(a),function(g){return g}))});for(var u=[s.join(Rr)],h=0;h=0)return!0}var vg=new RegExp("["+Rr+"]+","g");function R3(n){for(var e=n.split(/\n+/g),t=fh(e.shift()).split(vg),i=[],o=F(t,function(l){return{name:l,data:[]}}),r=0;r=0;r--){var a=t[r];if(a[o])break}if(r<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();t[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),t.push(e)}function W3(n){var e=yg(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return MM(t,function(o,r){for(var a=e.length-1;a>=0;a--)if(o=e[a][r],o){i[r]=o;break}}),i}function G3(n){TM(n).snapshots=null}function H3(n){return yg(n).length}function yg(n){var e=TM(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Y3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){G3(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(je);un({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const U3=Y3;var X3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Z3=function(){function n(e,t,i){var o=this;this._targetInfoList=[];var r=CM(t,e);M(j3,function(a,s){(!i||!i.include||lt(i.include,s)>=0)&&a(r,o._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,o,r){if((i.coordRanges||(i.coordRanges=[])).push(o),!i.coordRange){i.coordRange=o;var a=xg[i.brushType](0,r,o);i.__rangeOffset={offset:kM[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){M(e,function(o){var r=this.findTargetInfo(o,t);r&&r!==!0&&M(r.coordSyses,function(a){var s=xg[o.brushType](1,a,o.range,!0);i(o,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(i){var o=this.findTargetInfo(i,t);if(i.range=i.range||[],o&&o!==!0){i.panelId=o.panelId;var r=xg[i.brushType](0,o.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?kM[i.brushType](r.values,a.offset,q3(r.xyMinMax,a.xyMinMax)):r.values}},this)},n.prototype.makePanelOpts=function(e,t){return F(this._targetInfoList,function(i){var o=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:uS(o),isTargetByCursor:cS(o,e,i.coordSysModel),getLinearBrushOtherExtent:hS(o)}})},n.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return o===!0||o&<(o.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,o=CM(t,e),r=0;rn[1]&&n.reverse(),n}function CM(n,e){return ga(n,e,{includeMainTypes:X3})}var j3={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,o=n.gridModels,r=X(),a={},s={};!t&&!i&&!o||(M(t,function(l){var u=l.axis.grid.model;r.set(u.id,u),a[u.id]=!0}),M(i,function(l){var u=l.axis.grid.model;r.set(u.id,u),s[u.id]=!0}),M(o,function(l){r.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),r.each(function(l){var u=l.coordinateSystem,h=[];M(u.getCartesians(),function(c,d){(lt(t,c.getAxis("x").model)>=0||lt(i,c.getAxis("y").model)>=0)&&h.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:AM.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:AM.geo})})}},IM=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,o=n.gridModel;return!o&&t&&(o=t.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],AM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(yi(n)),e}},xg={lineX:pt(DM,0),lineY:pt(DM,1),rect:function(n,e,t,i){var o=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),r=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),a=[mg([o[0],r[0]]),mg([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=F(t,function(a){var s=n?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:r,xyMinMax:o}}};function DM(n,e,t,i){var o=t.getAxis(["x","y"][n]),r=mg(F([0,1],function(s){return e?o.coordToData(o.toLocalCoord(i[s]),!0):o.toGlobalCoord(o.dataToCoord(i[s]))})),a=[];return a[n]=r,a[1-n]=[NaN,NaN],{values:r,xyMinMax:a}}var kM={lineX:pt(PM,0),lineY:pt(PM,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return F(n,function(i,o){return[i[0]-t[0]*e[o][0],i[1]-t[1]*e[o][1]]})}};function PM(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function q3(n,e){var t=LM(n),i=LM(e),o=[t[0]/i[0],t[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function LM(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const _g=Z3;var bg=M,K3=yI("toolbox-dataZoom_"),$3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){this._brushController||(this._brushController=new qf(o.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),tV(t,i,this,r,o),J3(t,i)},e.prototype.onclick=function(t,i,o){Q3[o].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var o={},r=this.ecModel;this._brushController.updateCovers([]);var a=new _g(wg(this.model),r,{include:["grid"]});a.matchOutputRanges(i,r,function(u,h,c){if(c.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",c,h[0]),s("y",c,h[1])):s({lineX:"x",lineY:"y"}[d],c,h)}}),F3(r,o),this._dispatchZoomAction(o);function s(u,h,c){var d=h.getAxis(u),p=d.model,f=l(u,p,r),g=f.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(c=Do(0,c.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),f&&(o[f.id]={dataZoomId:f.id,startValue:c[0],endValue:c[1]})}function l(u,h,c){var d;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var f=p.getAxisModel(u,h.componentIndex);f&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(t){var i=[];bg(t,function(o,r){i.push(q(o))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(je),Q3={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(W3(this.ecModel))}};function wg(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function J3(n,e){n.setIconStatus("back",H3(e)>1?"emphasis":"normal")}function tV(n,e,t,i,o){var r=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(r=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=r,n.setIconStatus("zoom",r?"emphasis":"normal");var a=new _g(wg(n),e,{include:["grid"]}),s=a.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(r&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$D("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),o=[],r=wg(i),a=ga(n,r);bg(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),bg(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,h){var c=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:K3+u+c};d[h]=c,o.push(d)}return o});const eV=$3;function nV(n){n.registerComponentModel(x3),n.registerComponentView(S3),Or("saveAsImage",T3),Or("magicType",A3),Or("dataView",V3),Or("dataZoom",eV),Or("restore",U3),$t(y3)}var iV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ft);const oV=iV;function OM(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function RM(n){if(ct.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=r==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=r==="top"?225:45)+"deg)");var h=u*Math.PI/180,c=a+o,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),p=Math.round(((d-Math.SQRT2*o)/2+Math.SQRT2*o-(d-c)/2)*100)/100;s+=";"+r+":-"+p+"px";var f=e+" solid "+o+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function cV(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,o="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,o+=ct.transformSupported?","+Sg+i:",left"+i+",top"+i),sV+":"+o}function BM(n,e,t){var i=n.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!ct.transformSupported)return t?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=ct.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return t?"top:0;left:0;"+Sg+":"+a+";":[["top",0],["left",0],[NM,a]]}function pV(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var o=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,a=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function dV(n,e,t){var i=[],o=n.get("transitionDuration"),r=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=P1(n,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),e&&o&&i.push(cV(o,t)),r&&i.push("background-color:"+r),M(["width","color","radius"],function(p){var f="border-"+p,g=Bp(f),v=n.get(g);v!=null&&i.push(f+":"+v+(p==="color"?"":"px"))}),i.push(pV(h)),c!=null&&i.push("padding:"+co(c).join("px ")+"px"),i.join(";")+";"}function EM(n,e,t,i,o){var r=e&&e.painter;if(t){var a=r&&r.getViewportRoot();a&&O2(n,a,t,i,o)}else{n[0]=i,n[1]=o;var s=r&&r.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var fV=function(){function n(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ct.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),r=t.appendTo,a=r&&(G(r)?document.querySelector(r):Ri(r)?r:$(r)&&r(e.getDom()));EM(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(i),this._api=e,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=o.handler,h=o.painter.getViewportRoot();Pe(h,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=aV(t,"position"),o=t.style;o.position!=="absolute"&&i!=="absolute"&&(o.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,r=this._styleCoord;i.innerHTML?o.cssText=lV+dV(e,!this._firstShow,this._longHide)+BM(r[0],r[1],!0)+("border-color:"+po(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,o,r){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(G(r)&&i.get("trigger")==="item"&&!OM(i)&&(s=hV(i,o,r)),G(e))a.innerHTML=e+s;else if(e){a.innerHTML="",V(e)||(e=[e]);for(var l=0;l=0?this._tryShow(r,a):o==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,o=this._api,r=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&a.manuallyShowTip(t,i,o,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,o,r){if(!(r.from===this.uid||ct.node||!o.getDom())){var a=WM(r,o);this._ticket="";var s=r.dataByCoordSys,l=SV(r,i,o);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&r.x!=null&&r.y!=null){var h=mV;h.x=r.x,h.y=r.y,h.update(),rt(h).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:h},a)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},a);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,o,r))return;var c=$S(r,i),d=c.point[0],p=c.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:c.el,position:r.position,positionDefault:"bottom"},a)}else r.x!=null&&r.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:o.getZr().findHover(r.x,r.y).target},a))}},e.prototype.manuallyHideTip=function(t,i,o,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(WM(r,o))},e.prototype._manuallyAxisShowTip=function(t,i,o,r){var a=r.seriesIndex,s=r.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var h=u.getData(),c=_s([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:r.position}),!0}}},e.prototype._tryShow=function(t,i){var o=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(o){var s=rt(o);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xo(o,function(h){if(rt(h).dataIndex!=null)return l=h,!0;if(rt(h).tooltipConfig!=null)return u=h,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var o=t.get("showDelay");i=Y(i,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(i,o):i()},e.prototype._showAxisTooltip=function(t,i){var o=this._ecModel,r=this._tooltipModel,a=[i.offsetX,i.offsetY],s=_s([i.tooltipOption],r),l=this._renderMode,u=[],h=sn("section",{blocks:[],noHeader:!0}),c=[],d=new ld;M(t,function(m){M(m.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!_||w==null)){var b=HS(w,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),S=sn("section",{header:b,noHeader:!De(b),sortBlocks:!0,blocks:[]});h.blocks.push(S),M(x.seriesDataIndices,function(T){var I=o.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,A=I.getDataParams(C);if(!(A.dataIndex<0)){A.axisDim=x.axisDim,A.axisIndex=x.axisIndex,A.axisType=x.axisType,A.axisId=x.axisId,A.axisValue=Kd(_.axis,{value:w}),A.axisValueLabel=b,A.marker=d.makeTooltipMarker("item",po(A.color),l);var D=d1(I.formatTooltip(C,!0,null)),k=D.frag;if(k){var P=_s([I],r).get("valueFormatter");S.blocks.push(P?N({valueFormatter:P},k):k)}D.text&&c.push(D.text),u.push(A)}})}})}),h.blocks.reverse(),c.reverse();var p=i.position,f=s.get("order"),g=A1(h,d,l,f,o.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var v=l==="richText"?` `:"
",y=c.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(t,i,o){var r=this._ecModel,a=rt(i),s=a.seriesIndex,l=r.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,d=u.getData(c),p=this._renderMode,f=t.positionDefault,g=_s([d.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(h,c),m=new ld;y.marker=m.makeTooltipMarker("item",po(y.color),p);var x=d1(u.formatTooltip(h,!1,c)),_=g.get("order"),w=g.get("valueFormatter"),b=x.frag,S=b?A1(w?N({valueFormatter:w},b):b,m,p,_,r.get("useUTC"),g.get("textStyle")):x.text,T="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),o({type:"showTip",dataIndexInside:h,dataIndex:d.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,o){var r=rt(i),a=r.tooltipConfig,s=a.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&u.push(h),u.push({formatter:s.content});var c=t.positionDefault,d=_s(u,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",g=new ld;this._showOrMove(d,function(){var v=q(d.get("formatterParams")||{});this._showTooltipContent(d,p,v,f,t.offsetX,t.offsetY,t.position,i,g)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,o,r,a,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var p=i,f=this._getNearestPoint([a,s],o,t.get("trigger"),t.get("borderColor")),g=f.color;if(d)if(G(d)){var v=t.ecModel.get("useUTC"),y=V(o)?o[0]:o,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,m&&(p=Ra(y.axisValue,p,v)),p=Fp(p,o,!0)}else if($(d)){var x=Y(function(_,w){_===this._ticket&&(c.setContent(w,h,t,g,l),this._updatePosition(t,l,a,s,c,o,u))},this);this._ticket=r,p=d(o,r,x)}else p=d;c.setContent(p,h,t,g,l),c.show(t,g),this._updatePosition(t,l,a,s,c,o,u)}},e.prototype._getNearestPoint=function(t,i,o,r){if(o==="axis"||V(i))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!V(i))return{color:r||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,o,r,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||t.get("position");var c=a.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),$(i)&&(i=i([o,r],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),V(i))o=U(i[0],u),r=U(i[1],h);else if(j(i)){var g=i;g.width=c[0],g.height=c[1];var v=pe(g,{width:u,height:h});o=v.x,r=v.y,d=null,p=null}else if(G(i)&&l){var y=wV(i,f,c,t.get("borderWidth"));o=y[0],r=y[1]}else{var y=_V(o,r,a,u,h,d?null:20,p?null:20);o=y[0],r=y[1]}if(d&&(o-=GM(d)?c[0]/2:d==="right"?c[0]:0),p&&(r-=GM(p)?c[1]/2:p==="bottom"?c[1]:0),OM(t)){var y=bV(o,r,a,u,h);o=y[0],r=y[1]}a.moveTo(o,r)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var o=this._lastDataByCoordSys,r=this._cbParamsList,a=!!o&&o.length===t.length;return a&&M(o,function(s,l){var u=s.dataByAxis||[],h=t[l]||{},c=h.dataByAxis||[];a=a&&u.length===c.length,a&&M(u,function(d,p){var f=c[p]||{},g=d.seriesDataIndices||[],v=f.seriesDataIndices||[];a=a&&d.value===f.value&&d.axisType===f.axisType&&d.axisId===f.axisId&&g.length===v.length,a&&M(g,function(y,m){var x=v[m];a=a&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),r&&M(d.seriesDataIndices,function(y){var m=y.seriesIndex,x=i[m],_=r[m];x&&_&&_.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){ct.node||!i.getDom()||(Ua(this,"_updatePosition"),this._tooltipContent.dispose(),sg("itemTooltip",i))},e.type="tooltip",e}(zt);function _s(n,e,t){var i=e.ecModel,o;t?(o=new Ot(t,i,i),o=new Ot(e.option,o,i)):o=e;for(var r=n.length-1;r>=0;r--){var a=n[r];a&&(a instanceof Ot&&(a=a.get("tooltip",!0)),G(a)&&(a={formatter:a}),a&&(o=new Ot(a,o,i)))}return o}function WM(n,e){return n.dispatchAction||Y(e.dispatchAction,e)}function _V(n,e,t,i,o,r,a){var s=t.getSize(),l=s[0],u=s[1];return r!=null&&(n+l+r+2>i?n-=l+r:n+=r),a!=null&&(e+u+a>o?e-=u+a:e+=a),[n,e]}function bV(n,e,t,i,o){var r=t.getSize(),a=r[0],s=r[1];return n=Math.min(n+a,i)-a,e=Math.min(e+s,o)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function wV(n,e,t,i){var o=t[0],r=t[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(n){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}function GM(n){return n==="center"||n==="middle"}function SV(n,e,t){var i=Nc(n).queryOptionMap,o=i.keys()[0];if(!(!o||o==="series")){var r=va(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var h=rt(u).tooltipConfig;if(h&&h.name===n.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}}}const MV=xV;function TV(n){$t(lh),n.registerComponentModel(oV),n.registerComponentView(MV),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Et),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Et)}var HM=M;function YM(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function Mg(n,e,t){var i={};return HM(e,function(r){var a=i[r]=o();HM(n[r],function(s,l){if(ae.isValidType(l)){var u={type:l,visual:s};t&&t(u,r),a[l]=new ae(u),l==="opacity"&&(u=q(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new ae(u))}})}),i;function o(){var r=function(){};r.prototype.__hidden=r.prototype;var a=new r;return a}}function UM(n,e,t){var i;M(t,function(o){e.hasOwnProperty(o)&&YM(e[o])&&(i=!0)}),i&&M(t,function(o){e.hasOwnProperty(o)&&YM(e[o])?n[o]=q(e[o]):delete n[o]})}function CV(n,e,t,i,o,r){var a={};M(n,function(c){var d=ae.prepareVisualTypes(e[c]);a[c]=d});var s;function l(c){return dd(t,s,c)}function u(c,d){tx(t,s,c,d)}r==null?t.each(h):t.each([r],h);function h(c,d){s=r==null?c:d;var p=t.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var f=i.call(o,c),g=e[f],v=a[f],y=0,m=v.length;y=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],o=t.axisType,r=this._names=[],a;o==="category"?(a=[],M(i,function(u,h){var c=jt($o(u),""),d;j(u)?(d=q(u),d.value=h):d=h,a.push(d),r.push(c)})):a=i;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new Mu([{name:"value",type:s}],this);l.initData(a,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ft);const XM=PV;var ZM=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=mi(XM.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(XM);Ut(ZM,nd.prototype);const LV=ZM;var OV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(zt);const RV=OV;var NV=function(n){z(e,n);function e(t,i,o,r){var a=n.call(this,t,i,o)||this;return a.type=r||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cn);const zV=NV;var Tg=Math.PI,jM=_t(),BV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,o){if(this.model=t,this.api=o,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,o),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(r,t);t.formatTooltip=function(u){var h=l.scale.getLabel({value:u});return sn("nameValue",{noName:!0,value:h})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](r,a,l,t)},this),this._renderAxisLabel(r,s,l,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var o=t.get(["label","position"]),r=t.get("orient"),a=VV(t,i),s;o==null||o==="auto"?s=r==="horizontal"?a.y+a.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:Tg/2},c=r==="vertical"?a.height:a.width,d=t.getModel("controlStyle"),p=d.get("show",!0),f=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,v=f+g,y=t.get(["label","rotate"])||0;y=y*Tg/180;var m,x,_,w=d.get("position",!0),b=p&&d.get("showPlayBtn",!0),S=p&&d.get("showPrevBtn",!0),T=p&&d.get("showNextBtn",!0),I=0,C=c;w==="left"||w==="bottom"?(b&&(m=[0,0],I+=v),S&&(x=[I,0],I+=v),T&&(_=[C-f,0],C-=v)):(b&&(m=[C-f,0],C-=v),S&&(x=[0,0],I+=v),T&&(_=[C-f,0],C-=v));var A=[I,C];return t.get("inverse")&&A.reverse(),{viewRect:a,mainLength:c,orient:r,rotation:h[r],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[r],playPosition:m,prevBtnPosition:x,nextBtnPosition:_,axisExtent:A,controlSize:f,controlGap:g}},e.prototype._position=function(t,i){var o=this._mainGroup,r=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=me(),l=a.x,u=a.y+a.height;vn(s,s,[-l,-u]),si(s,s,-Tg/2),vn(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=m(a),c=m(o.getBoundingRect()),d=m(r.getBoundingRect()),p=[o.x,o.y],f=[r.x,r.y];f[0]=p[0]=h[0][0];var g=t.labelPosOpt;if(g==null||G(g)){var v=g==="+"?0:1;x(p,c,h,1,v),x(f,d,h,1,1-v)}else{var v=g>=0?0:1;x(p,c,h,1,v),f[1]=p[1]+g}o.setPosition(p),r.setPosition(f),o.rotation=r.rotation=t.rotation,y(o),y(r);function y(_){_.originX=h[0][0]-_.x,_.originY=h[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,w,b,S,T){_[S]+=b[S][T]-w[S][T]}},e.prototype._createAxis=function(t,i){var o=i.getData(),r=i.get("axisType"),a=EV(i,r);a.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new zV("value",a,t.axisExtent,r);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new it;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,o,r){var a=o.getExtent();if(r.get(["lineStyle","show"])){var s=new qt({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:N({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new qt({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,o,r){var a=this,s=r.getData(),l=o.scale.getTicks();this._tickSymbols=[],M(l,function(u){var h=o.dataToCoord(u.value),c=s.getItemModel(u.value),d=c.getModel("itemStyle"),p=c.getModel(["emphasis","itemStyle"]),f=c.getModel(["progress","itemStyle"]),g={x:h,y:0,onclick:Y(a._changeTimeline,a,u.value)},v=qM(c,d,i,g);v.ensureState("emphasis").style=p.getItemStyle(),v.ensureState("progress").style=f.getItemStyle(),vi(v);var y=rt(v);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=r):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},e.prototype._renderAxisLabel=function(t,i,o,r){var a=this,s=o.getLabelModel();if(s.get("show")){var l=r.getData(),u=o.getViewLabels();this._tickLabels=[],M(u,function(h){var c=h.tickValue,d=l.getItemModel(c),p=d.getModel("label"),f=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),v=o.dataToCoord(h.tickValue),y=new dt({x:v,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(a._changeTimeline,a,c),silent:!1,style:Ct(p,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ct(f),y.ensureState("progress").style=Ct(g),i.add(y),vi(y),jM(y).dataIndex=c,a._tickLabels.push(y)})}},e.prototype._renderControl=function(t,i,o,r){var a=t.controlSize,s=t.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),h=r.getPlayState(),c=r.get("inverse",!0);d(t.nextBtnPosition,"next",Y(this._changeTimeline,this,c?"-":"+")),d(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,c?"+":"-")),d(t.playPosition,h?"stop":"play",Y(this._handlePlayClick,this,!h),!0);function d(p,f,g,v){if(p){var y=en(J(r.get(["controlStyle",f+"BtnSize"]),a),a),m=[0,-y/2,y,y],x=FV(r,f+"Icon",m,{x:p[0],y:p[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),vi(x)}}},e.prototype._renderCurrentPointer=function(t,i,o,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(c){c.draggable=!0,c.drift=Y(u._handlePointerDrag,u),c.ondragend=Y(u._handlePointerDragend,u),KM(c,u._progressLine,s,o,r,!0)},onUpdate:function(c){KM(c,u._progressLine,s,o,r)}};this._currentPointer=qM(l,l,this._mainGroup,{},this._currentPointer,h)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var o=this._toAxisCoord(t)[0],r=this._axis,a=xn(r.getExtent().slice());o>a[1]&&(o=a[1]),o=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ft);const Cg=ZV;var Nr=pt,Ig=M,gh=it,jV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new gh),this.group.add(this._selectorGroup=new gh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,o){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,t,i,o,l,s,u);var h=t.getBoxLayoutParams(),c={width:o.getWidth(),height:o.getHeight()},d=t.get("padding"),p=pe(h,c,d),f=this.layoutInner(t,a,p,r,l,u),g=pe(K({width:f.width,height:f.height},h),c,d);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bM(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this.getContentGroup(),h=X(),c=i.get("selectedMode"),d=[];o.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),Ig(i.getData(),function(p,f){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var v=new gh;v.newline=!0,u.add(v);return}var y=o.getSeriesByName(g)[0];if(!h.get(g))if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,g,f,p,i,t,x,w,_,c,r);b.on("click",Nr(QM,g,null,r,d)).on("mouseover",Nr(Ag,y.name,null,r,d)).on("mouseout",Nr(Dg,y.name,null,r,d)),o.ssr&&b.eachChild(function(S){var T=rt(S);T.seriesIndex=y.seriesIndex,T.dataIndex=f,T.ssrType="legend"}),h.set(g,!0)}else o.eachRawSeries(function(S){if(!h.get(g)&&S.legendVisualProvider){var T=S.legendVisualProvider;if(!T.containName(g))return;var I=T.indexOfName(g),C=T.getItemVisual(I,"style"),A=T.getItemVisual(I,"legendIcon"),D=ue(C.fill);D&&D[3]===0&&(D[3]=.2,C=N(N({},C),{fill:Je(D,"rgba")}));var k=this._createItem(S,g,f,p,i,t,{},C,A,c,r);k.on("click",Nr(QM,null,g,r,d)).on("mouseover",Nr(Ag,null,g,r,d)).on("mouseout",Nr(Dg,null,g,r,d)),o.ssr&&k.eachChild(function(P){var L=rt(P);L.seriesIndex=S.seriesIndex,L.dataIndex=f,L.ssrType="legend"}),h.set(g,!0)}},this)},this),a&&this._createSelector(a,i,r,s,l)},e.prototype._createSelector=function(t,i,o,r,a){var s=this.getSelectorGroup();Ig(t,function(l){var u=l.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),d=i.getModel(["emphasis","selectorLabel"]);Dn(h,{normal:c,emphasis:d},{defaultText:l.title}),vi(h)})},e.prototype._createItem=function(t,i,o,r,a,s,l,u,h,c,d){var p=t.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),x=r.get("icon");h=x||h||"roundRect";var _=qV(h,r,l,u,p,v,d),w=new gh,b=r.getModel("textStyle");if($(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var S=x==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(KV({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?f+5:-5,I=s,C=a.get("formatter"),A=i;G(C)&&C?A=C.replace("{name}",i!=null?i:""):$(C)&&(A=C(i));var D=v?b.getTextColor():r.get("inactiveColor");w.add(new dt({style:Ct(b,{text:A,x:T,y:g/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var k=new yt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=r.getModel("tooltip");return P.get("show")&&sr({el:k,componentModel:a,itemName:i,itemTooltipOption:P.option}),w.add(k),w.eachChild(function(L){L.silent=!0}),k.silent=!c,this.getContentGroup().add(w),vi(w),w.__legendDataIndex=o,w},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(t.get("orient"),l,t.get("itemGap"),o.width,o.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){go("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],f=t.get("selectorButtonGap",!0),g=t.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?p[g]+=h[v]+f:c[g]+=d[v]+f,p[1-g]+=h[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[v]=h[v]+f+d[v],x[y]=Math.max(h[y],d[y]),x[m]=Math.min(0,d[m]+p[1-g]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(zt);function qV(n,e,t,i,o,r,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),Ig(v,function(m,x){v[x]==="inherit"&&(v[x]=y[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=n.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Ka(c,a),u.fill==="inherit"&&(u.fill=i[o]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?i:t).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),p.stroke==="auto"&&(p.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth=f==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function KV(n){var e=n.icon||"roundRect",t=Ft(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function QM(n,e,t,i){Dg(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),Ag(n,e,t,i)}function JM(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,o=e.length;io[a],v=[-p.x,-p.y];i||(v[r]=h[u]);var y=[0,0],m=[-f.x,-f.y],x=J(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);_==="end"?m[r]+=o[a]-f[a]:y[r]+=f[a]+x}m[1-r]+=p[s]/2-f[s]/2,h.setPosition(v),c.setPosition(y),d.setPosition(m);var w={x:0,y:0};if(w[a]=g?o[a]:p[a],w[s]=Math.max(p[s],f[s]),w[l]=Math.min(0,f[l]+m[1-r]),c.__rectSize=o[a],g){var b={x:0,y:0};b[a]=Math.max(o[a]-f[a]-x,0),b[s]=w[s],c.setClipPath(new yt({shape:b})),c.__rectSize=b[a]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&Tt(h,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,i,o){var r=this._getPageInfo(i)[t];r!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var o=this._controllerGroup;M(["pagePrev","pageNext"],function(h){var c=h+"DataIndex",d=i[c]!=null,p=o.childOfName(h);p&&(p.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var r=o.childOfName("pageText"),a=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;r&&a&&r.setStyle("text",G(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,a=t.getOrient().index,s=kg[a],l=Pg[a],u=this._findTargetItemIndex(i),h=o.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:[o.x,o.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;v<=d;++v)x=_(h[v]),(!x&&m.e>y.s+r||x&&!w(x,y.s))&&(m.i>y.i?y=m:y=x,y&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=x;for(var v=u-1,y=g,m=g,x=null;v>=-1;--v)x=_(h[v]),(!x||!w(m,x.s))&&y.i=S&&b.s<=S+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,o=this.getContentGroup(),r;return o.eachChild(function(a,s){var l=a.__legendDataIndex;r==null&&l!=null&&(r=s),l===t&&(i=s)}),i!=null?i:r},e.type="legend.scroll",e}(tT);const nF=eF;function iF(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(i)})})}function oF(n){$t(eT),n.registerComponentModel(tF),n.registerComponentView(nF),iF(n)}function rF(n){$t(eT),$t(oF)}var aF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=mi(xs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(xs);const sF=aF;var Lg=_t();function lF(n,e,t){Lg(n).coordSysRecordMap.each(function(i){var o=i.dataZoomInfoMap.get(e.uid);o&&(o.getRange=t)})}function uF(n,e){for(var t=Lg(n).coordSysRecordMap,i=t.keys(),o=0;oi[t+e]&&(e=s),o=o&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function fF(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=Lg(t),o=i.coordSysRecordMap||(i.coordSysRecordMap=X());o.each(function(r){r.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){var a=gM(r);M(a.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,hF(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());h.set(r.uid,{dzReferCoordSysInfo:s,model:r,getRange:null})})}),o.each(function(r){var a=r.controller,s,l=r.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){oT(o,r);return}var h=dF(l);a.enable(h.controlType,h.opt),a.setPointerChecker(r.containsPoint),xr(r,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var gF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,o){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),lF(o,t,{pan:Y(Og.pan,this),zoom:Y(Og.zoom,this),scrollMove:Y(Og.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uF(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(fg),Og={zoom:function(n,e,t,i){var o=this.range,r=o.slice(),a=n.axisModels[0];if(a){var s=Rg[e](null,[i.originX,i.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Do(0,r,[0,100],0,h.minSpan,h.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:rT(function(n,e,t,i,o,r){var a=Rg[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:rT(function(n,e,t,i,o,r){var a=Rg[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,t);return a.signal*(n[1]-n[0])*r.scrollDelta})};function rT(n){return function(e,t,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,i,o);if(Do(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var Rg={grid:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem.getRect();return n=n||[0,0],r.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(n,e,t,i,o){var r=t.axis,a=o.model.coordinateSystem.getRect(),s={};return n=n||[0,0],r.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const vF=gF;function aT(n){gg(n),n.registerComponentModel(sF),n.registerComponentView(vF),fF(n)}var yF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=mi(xs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(xs);const mF=yF;var ws=yt,sT=7,xF=1,Ng=30,_F=7,Ss="horizontal",lT="vertical",bF=5,wF=["line","bar","candlestick","scatter"],SF={easing:"cubicOut",duration:100,delay:0},MF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,i,o,r){if(n.prototype.render.apply(this,arguments),xr(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!r||r.type!=="dataZoom"||r.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ua(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,o=t.get("brushSelect"),r=o?_F:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Ss?{right:s.width-a.x-a.width,top:s.height-Ng-sT-r,width:a.width,height:Ng}:{right:sT,top:a.y,width:Ng,height:a.height},u=dr(t.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var h=pe(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===lT&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,o=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Ss&&!a?{scaleY:l?1:-1,scaleX:1}:o===Ss&&a?{scaleY:l?1:-1,scaleX:-1}:o===lT&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,o=this._displayables.sliderGroup,r=t.get("brushSelect");o.add(new ws({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new ws({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();r?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,o=this._shadowSize||[],r=t.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),l=s&&a.getDimensionInfo(s)?r.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==o[0]||i[1]!==o[1]){var c=a.getDataExtent(l),d=(c[1]-c[0])*.3;c=[c[0]-d,c[1]+d];var p=[0,i[1]],f=[0,i[0]],g=[[i[0],0],[0,0]],v=[],y=f[1]/(a.count()-1),m=0,x=Math.round(a.count()/i[0]),_;a.each([l],function(I,C){if(x>0&&C%x){m+=y;return}var A=I==null||isNaN(I)||I==="",D=A?0:xt(I,c,p,!0);A&&!_&&C?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!A&&_&&(g.push([m,0]),v.push([m,0])),g.push([m,D]),v.push([m,D]),m+=y,_=A}),u=this._shadowPolygonPts=g,h=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function b(I){var C=w.getModel(I?"selectedDataBackground":"dataBackground"),A=new it,D=new An({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Be({shape:{points:h},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(D),A.add(k),A}for(var S=0;S<3;S++){var T=b(S===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var o,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();M(l,function(u){if(!o&&!(i!==!0&<(wF,u.get("type"))<0)){var h=r.getComponent(Pi(a),s).axis,c=TF(a),d,p=u.coordinateSystem;c!=null&&p.getOtherAxis&&(d=p.getOtherAxis(h).inverse),c=u.getData().mapDimension(c),o={thisAxis:h,series:u,thisDim:a,otherDim:c,otherAxisInverse:d}}},this)},this),o}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),d=i.filler=new ws({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new ws({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:xF,fill:"rgba(0,0,0,0)"}})),M([0,1],function(x){var _=l.get("handleIcon");!au[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var w=Ft(_,-1,0,2,2,null,!0);w.attr({cursor:uT(this._orient),draggable:!0,drift:Y(this._onDragMove,this,x),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=U(S,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),vi(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),a.add(o[x]=w);var I=l.getModel("textStyle");t.add(r[x]=new dt({silent:!0,invisible:!0,style:Ct(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var p=d;if(c){var f=U(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new yt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),v=f*.8,y=i.moveHandleIcon=Ft(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));p=i.moveZone=new yt({invisible:!0,shape:{y:s[1]-m,height:f+m}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:uT(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],i,!0),xt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var o=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Do(i,r,a,o.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,a,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=xn([xt(r[0],a,l,!0),xt(r[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,r=xn(o.slice()),a=this._size;M([0,1],function(p){var f=i.handles[p],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:o[p]+(p?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var s={x:r[0],width:r[1]-r[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,r[0],r[1],a[0]],h=0;hi[0]||o[1]<0||o[1]>i[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,s=this._updateInterval("all",o[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,o=t.offsetY;this._brushStart=new nt(i,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var o=i.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(o.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=xn([xt(o.x,a,s,!0),xt(o.x+o.width,a,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Hn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var o=this._displayables,r=this.dataZoomModel,a=o.brushRect;a||(a=o.brushRect=new ws({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?SF:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=gM(this.dataZoomModel).infoList;if(!t&&i.length){var o=i[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var r=this.api.getWidth(),a=this.api.getHeight();t={x:r*.2,y:a*.2,width:r*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(fg);function TF(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function uT(n){return n==="vertical"?"ns-resize":"ew-resize"}const CF=MF;function hT(n){n.registerComponentModel(mF),n.registerComponentView(CF),gg(n)}function IF(n){$t(aT),$t(hT)}var AF={get:function(n,e,t){var i=q((DF[n]||{})[e]);return t&&V(i)?i[i.length-1]:i}},DF={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const cT=AF;var pT=ae.mapVisual,kF=ae.eachVisual,PF=V,dT=M,LF=xn,OF=xt,RF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&UM(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=Y(t,this),this.controllerVisuals=Mg(this.option.controller,i,t),this.targetVisuals=Mg(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,r){i.push(r)}):i=Dt(t),i},e.prototype.eachTargetSeries=function(t,i){M(this.getTargetSeriesIndices(),function(o){var r=this.ecModel.getSeriesByIndex(o);r&&t.call(i,r)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(o){o===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,o){var r=this.option,a=r.precision,s=this.dataBound,l=r.formatter,u;o=o||["<",">"],V(t)&&(t=t.slice(),u=!0);var h=i?t:u?[c(t[0]),c(t[1])]:c(t);if(G(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if($(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?o[0]+" "+h[1]:t[1]===s[1]?o[1]+" "+h[0]:h[0]+" - "+h[1];return h;function c(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,i=LF([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var o=t.dimensions,r=o.length-1;r>=0;r--){var a=o[r],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),a=i.controller||(i.controller={});et(r,o),et(a,o);var s=this.isCategory();l.call(this,r),l.call(this,a),u.call(this,r,"inRange","outOfRange"),h.call(this,a);function l(c){PF(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,d,p){var f=c[d],g=c[p];f&&!g&&(g=c[p]={},dT(f,function(v,y){if(ae.isValidType(y)){var m=cT.get(y,"inactive",s);m!=null&&(g[y]=m,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function h(c){var d=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,p=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";dT(this.stateList,function(y){var m=this.itemSize,x=c[y];x||(x=c[y]={color:s?f:[f]}),x.symbol==null&&(x.symbol=d&&q(d)||(s?v:[v])),x.symbolSize==null&&(x.symbolSize=p&&q(p)||(s?m[0]:[m[0],m[0]])),x.symbol=pT(x.symbol,function(b){return b==="none"?v:b});var _=x.symbolSize;if(_!=null){var w=-1/0;kF(_,function(b){b>w&&(w=b)}),x.symbolSize=pT(_,function(b){return OF(b,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ft);const vh=RF;var fT=[20,140],NF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=fT[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=fT[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):V(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=xn((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]=o[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(o){var r=[],a=o.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&r.push(l)},this),i.push({seriesId:o.id,dataIndex:r})},this),i},e.prototype.getVisualMeta=function(t){var i=gT(this,"outOfRange",this.getExtent()),o=gT(this,"inRange",this.option.range.slice()),r=[];function a(p,f){r.push({value:p,color:t(p,f)})}for(var s=0,l=0,u=o.length,h=i.length;lt[1])break;r.push({color:this.getControllerVisual(l,"color",i),offset:s/o})}return r.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),r},e.prototype._createBarPoints=function(t,i){var o=this.visualMapModel.itemSize;return[[o[0]-i[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,o=this.visualMapModel.get("inverse");return new it(i==="horizontal"&&!o?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&o?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!o?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,a=o.handleThumbs,s=o.handleLabels,l=r.itemSize,u=r.getExtent();EF([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=t[h];var d=Bn(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=p/l[0],c.x=l[0]-p/2;var f=rn(o.handleLabelPoints[h],yi(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,o,r){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",d),f=this.getControllerVisual(t,"symbolSize"),g=Bn(t,s,u,!0),v=l[0]-f/2,y={x:c.x,y:c.y};c.y=g,c.x=v;var m=rn(h.indicatorLabelPoint,yi(c,this.group)),x=h.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",h.mainGroup),w=this._orient,b=w==="horizontal";x.setStyle({text:(o||"")+a.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var S={x:v,y:g,style:{fill:p}},T={style:{x:m[0],y:m[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(S,I),x.animateTo(T,I)}else c.attr(S),x.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;Aa[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var d=this._hoverLinkDataIndices,p=[];(i||bT(o))&&(p=this._hoverLinkDataIndices=o.findTargetDataIndices(c));var f=_I(d,p);this._dispatchHighDown("downplay",yh(f[0],o)),this._dispatchHighDown("highlight",yh(f[1],o))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(xo(t.target,function(l){var u=rt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var o=this.ecModel.getSeriesByIndex(i.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(o)){var a=o.getData(i.dataType),s=a.getStore().get(r.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var o=0;o=0&&(r.dimension=a,i.push(r))}}),n.getData().setVisual("visualMeta",i)}}];function ZF(n,e,t,i){for(var o=e.targetVisuals[i],r=ae.prepareVisualTypes(o),a={color:fd(n.getData(),"color")},s=0,l=r.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(YF,UF),M(XF,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(jF))}function CT(n){n.registerComponentModel(zF),n.registerComponentView(HF),TT(n)}var qF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],KF[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var r=this.option.categories;this.resetVisual(function(a,s){o==="categories"?(a.mappingMethod="category",a.categories=q(r)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=F(this._pieceList,function(l){return l=q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},o=ae.listVisualTypes(),r=this.isCategory();M(t.pieces,function(s){M(o,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),M(i,function(s,l){var u=!1;M(this.stateList,function(h){u=u||a(t,h,l)||a(t.target,h,l)},this),!u&&M(this.stateList,function(h){(t[h]||(t[h]={}))[l]=cT.get(l,h==="inRange"?"active":"inactive",r)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var o=this.option,r=this._pieceList,a=(i?o:t).selected||{};if(o.selected=a,M(r,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),o.selectedMode==="single"){var s=!1;M(r,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=q(t)},e.prototype.getValueState=function(t){var i=ae.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],o=this._pieceList;return this.eachTargetSeries(function(r){var a=[],s=r.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var h=ae.findPieceIndex(l,o);h===t&&a.push(u)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var o=t.interval||[];i=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],o=["",""],r=this;function a(h,c){var d=r.getRepresentValue({interval:h});c||(c=r.getValueState(d));var p=t(d,c);h[0]===-1/0?o[0]=p:h[1]===1/0?o[1]=p:i.push({value:h[0],color:p},{value:h[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(h){var c=h.interval;c&&(c[0]>u&&a([u,c[0]],"outOfRange"),a(c.slice()),u=c[1])},this),{stops:i,outerColors:o}},e.type="visualMap.piecewise",e.defaultOption=mi(vh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(vh),KF={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(t)!==r&&t<5;)t++;e.precision=t,r=+r.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,o)},this)}};function IT(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const $F=qF;var QF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),r=i.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,d=fn(i.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,d,l),M(h.viewPieceList,function(p){var f=p.piece,g=new it;g.onclick=Y(this._onItemClick,this,f),this._enableHoverLink(g,p.indexInModelPieceList);var v=i.getRepresentValue(f);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(v);g.add(new dt({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,d,l),go(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var o=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(a){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:a,batch:yh(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return mT(t,this.api,t.itemSize);var o=i.align;return(!o||o==="auto")&&(o="left"),o},e.prototype._renderEndsText=function(t,i,o,r,a){if(i){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Ct(l,{x:r?a==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:r?a:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=F(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=t.get("text"),r=t.get("orient"),a=t.get("inverse");return(r==="horizontal"?a:!a)?i.reverse():o&&(o=o.slice().reverse()),{viewPieceList:i,endsText:o}},e.prototype._createItemSymbol=function(t,i,o){t.add(Ft(this.getControllerVisual(i,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,o=i.option,r=o.selectedMode;if(r){var a=q(o.selected),s=i.getSelectedMapKey(t);r==="single"||r===!0?(a[s]=!0,M(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(vT);const JF=QF;function AT(n){n.registerComponentModel($F),n.registerComponentView(JF),TT(n)}function t4(n){$t(CT),$t(AT)}var e4={label:{enabled:!0},decal:{show:!1}},DT=_t(),n4={};function i4(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=q(e4);et(i.label,n.getLocaleModel().get("aria"),!1),et(t.option,i,!1),o(),r();function o(){var u=t.getModel("decal"),h=u.get("show");if(h){var c=X();n.eachSeries(function(d){if(!d.isColorBySeries()){var p=c.get(d.type);p||(p={},c.set(d.type,p)),DT(d).scope=p}}),n.eachRawSeries(function(d){if(n.isSeriesFiltered(d))return;if($(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var f=Zp(d.ecModel,d.name,n4,n.getSeriesCount()),g=p.getVisual("decal");p.setVisual("decal",_(g,f))}else{var v=d.getRawData(),y={},m=DT(d).scope;p.each(function(w){var b=p.getRawIndex(w);y[b]=w});var x=v.count();v.each(function(w){var b=y[w],S=v.getName(w)||w+"",T=Zp(d.ecModel,S,m,x),I=p.getItemVisual(b,"decal");p.setItemVisual(b,"decal",_(I,T))})}function _(w,b){var S=w?N(N({},b),w):b;return S.dirty=!0,S}})}}function r(){var u=n.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=K(h.option,u),!!h.get("enabled")){var c=e.getZr().dom;if(h.get("description")){c.setAttribute("aria-label",h.get("description"));return}var d=n.getSeriesCount(),p=h.get(["data","maxCount"])||10,f=h.get(["series","maxCount"])||10,g=Math.min(d,f),v;if(!(d<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);v=a(m,{title:y})}else v=h.get(["general","withoutTitle"]);var x=[],_=d>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);v+=a(_,{seriesCount:d}),n.eachSeries(function(T,I){if(I1?h.get(["series","multiple",D]):h.get(["series","single",D]),C=a(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var k=T.getData();if(k.count()>p){var P=h.get(["data","partialData"]);C+=a(P,{displayCnt:p})}else C+=h.get(["data","allData"]);for(var L=h.get(["data","separator","middle"]),O=h.get(["data","separator","end"]),E=[],R=0;R=No:-u>=No),p=u>0?u%No:u%No+No,f=!1;d?f=!0:ci(c)?f=!1:f=p>=kT==!!h;var g=e+i*Eg(a),v=t+o*Bg(a);this._start&&this._add("M",g,v);var y=Math.round(r*a4);if(d){var m=1/this._p,x=(h?1:-1)*(No-m);this._add("A",i,o,y,1,+h,e+i*Eg(a+x),t+o*Bg(a+x)),m>.01&&this._add("A",i,o,y,0,+h,g,v)}else{var _=e+i*Eg(s),w=t+o*Bg(s);this._add("A",i,o,y,+f,+h,_,w)}},n.prototype.rect=function(e,t,i,o){this._add("M",e,t),this._add("l",i,0),this._add("l",0,o),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,o,r,a,s,l,u){for(var h=[],c=this._p,d=1;d"}function v4(n){return""}function Fg(n,e){e=e||{};var t=e.newline?` `:"";function i(o){var r=o.children,a=o.tag,s=o.attrs,l=o.text;return g4(a,s)+(a!=="style"?le(l):l||"")+(r?""+t+F(r,function(u){return i(u)}).join(t)+t:"")+v4(a)}return i(n)}function y4(n,e,t){t=t||{};var i=t.newline?` `:"",o=" {"+i,r=i+"}",a=F(at(n),function(l){return l+o+F(at(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+r}).join(i),s=F(at(e),function(l){return"@keyframes "+l+o+F(at(e[l]),function(u){return u+o+F(at(e[l][u]),function(h){var c=e[l][u][h];return h==="d"&&(c='path("'+c+'")'),h+":"+c+";"}).join(i)+r}).join(i)+r}).join(i);return!a&&!s?"":[""].join(i)}function Wg(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zT(n,e,t,i){return Wt("svg","root",{width:n,height:e,xmlns:LT,"xmlns:xlink":OT,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var m4=0;function BT(){return m4++}var ET={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},zo="transform-origin";function x4(n,e,t){var i=N({},n.shape);N(i,e),n.buildPath(t,i);var o=new PT;return o.reset(Uv(n)),t.rebuildPath(o,1),o.generateStr(),o.getStr()}function _4(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[zo]=t+"px "+i+"px")}var b4={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function VT(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function w4(n,e,t){var i=n.shape.paths,o={},r,a;if(M(i,function(l){var u=Wg(t.zrId);u.animation=!0,mh(l,{},u,!0);var h=u.cssAnims,c=u.cssNodes,d=at(h),p=d.length;if(p){a=d[p-1];var f=h[a];for(var g in f){var v=f[g];o[g]=o[g]||{d:""},o[g].d+=v.d||""}for(var y in c){var m=c[y].animation;m.indexOf(a)>=0&&(r=m)}}}),!!r){e.d=!1;var s=VT(o,t);return r.replace(a,s)}}function FT(n){return G(n)?ET[n]?"cubic-bezier("+ET[n]+")":Kh(n)?n:"":""}function mh(n,e,t,i){var o=n.animators,r=o.length,a=[];if(n instanceof Dl){var s=w4(n,e,t);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u0}).length){var Qt=VT(S,t);return Qt+" "+m[0]+" both"}}for(var v in l){var s=g(l[v]);s&&a.push(s)}if(a.length){var y=t.zrId+"-cls-"+BT();t.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function S4(n,e,t){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};WT(i,e,t,!0)}else{var o=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},r=o.fill;if(!r){var a=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||a;l&&(r=qs(l))}var u=o.lineWidth;if(u){var h=!o.strokeNoScale&&n.transform?n.transform[0]:1;u=u/h}var i={cursor:"pointer"};r&&(i.fill=r),o.stroke&&(i.stroke=o.stroke),u&&(i["stroke-width"]=u),WT(i,e,t,!0)}}function WT(n,e,t,i){var o=JSON.stringify(n),r=t.cssStyleCache[o];r||(r=t.zrId+"-cls-"+BT(),t.cssStyleCache[o]=r,t.cssNodes["."+r+(i?":hover":"")]=n),e.class=e.class?e.class+" "+r:r}var Ts=Math.round;function GT(n){return n&&G(n.src)}function HT(n){return n&&$(n.toDataURL)}function Gg(n,e,t,i){p4(function(o,r){var a=o==="fill"||o==="stroke";a&&Yv(r)?qT(e,n,o,i):a&&oc(r)?KT(t,n,o,i):a&&r==="none"?n[o]="transparent":n[o]=r},e,t,!1),k4(t,n,i)}function Hg(n,e){var t=cy(e);t&&(t.each(function(i,o){i!=null&&(n[(RT+o).toLowerCase()]=i+"")}),e.isSilent()&&(n[RT+"silent"]="true"))}function YT(n){return ci(n[0]-1)&&ci(n[1])&&ci(n[2])&&ci(n[3]-1)}function M4(n){return ci(n[4])&&ci(n[5])}function Yg(n,e,t){if(e&&!(M4(e)&&YT(e))){var i=t?10:1e4;n.transform=YT(e)?"translate("+Ts(e[4]*i)/i+" "+Ts(e[5]*i)/i+")":xC(e)}}function UT(n,e,t){for(var i=n.points,o=[],r=0;r"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";Jt(d,v),Jt(p,v)}else if(d==null||p==null){var y=function(C,A){if(C){var D=C.elm,k=d||A.width,P=p||A.height;C.tag==="pattern"&&(u?(P=1,k/=r.width):h&&(k=1,P/=r.height)),C.attrs.width=k,C.attrs.height=P,D&&(D.setAttribute("width",k),D.setAttribute("height",P))}},m=Ec(f,null,n,function(C){l||y(b,C),y(c,C)});m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}c=Wt("image","img",{href:f,width:d,height:p}),a.width=d,a.height=p}else o.svgElement&&(c=q(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=a.width/r.width):h?(x=1,_=a.height/r.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),_!=null&&!isNaN(_)&&(a.height=_);var w=Xv(o);w&&(a.patternTransform=w);var b=Wt("pattern","",a,[c]),S=Fg(b),T=i.patternCache,I=T[S];I||(I=i.zrId+"-p"+i.patternIdx++,T[S]=I,a.id=I,b=i.defs[I]=Wt("pattern",I,a,[c])),e[t]=Qs(I)}}function P4(n,e,t){var i=t.clipPathCache,o=t.defs,r=i[n.id];if(!r){r=t.zrId+"-c"+t.clipPathIdx++;var a={id:r};i[n.id]=r,o[r]=Wt("clipPath",r,a,[ZT(n,t)])}e["clip-path"]=Qs(r)}function $T(n){return document.createTextNode(n)}function Bo(n,e,t){n.insertBefore(e,t)}function QT(n,e){n.removeChild(e)}function JT(n,e){n.appendChild(e)}function t2(n){return n.parentNode}function e2(n){return n.nextSibling}function Ug(n,e){n.textContent=e}var n2=58,L4=120,O4=Wt("","");function Xg(n){return n===void 0}function En(n){return n!==void 0}function R4(n,e,t){for(var i={},o=e;o<=t;++o){var r=n[o].key;r!==void 0&&(i[r]=o)}return i}function Cs(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function Is(n){var e,t=n.children,i=n.tag;if(En(i)){var o=n.elm=NT(i);if(Zg(O4,n),V(t))for(e=0;er?(f=t[l+1]==null?null:t[l+1].elm,i2(n,f,t,o,l)):xh(n,e,i,r))}function Br(n,e){var t=e.elm=n.elm,i=n.children,o=e.children;n!==e&&(Zg(n,e),Xg(e.text)?En(i)&&En(o)?i!==o&&N4(t,i,o):En(o)?(En(n.text)&&Ug(t,""),i2(t,null,o,0,o.length-1)):En(i)?xh(t,i,0,i.length-1):En(n.text)&&Ug(t,""):n.text!==e.text&&(En(i)&&xh(t,i,0,i.length-1),Ug(t,e.text)))}function z4(n,e){if(Cs(n,e))Br(n,e);else{var t=n.elm,i=t2(t);Is(e),i!==null&&(Bo(i,e.elm,e2(t)),xh(i,[n],0,0))}return e}var B4=0,E4=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=o2(),this.configLayer=o2(),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+B4++,this._oldVNode=zT(i.width,i.height),e&&!i.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=NT("svg");Zg(null,this._oldVNode),o.appendChild(r),e.appendChild(o)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",z4(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return jT(e,Wg(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,o=this._height,r=Wg(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var a=[],s=this._bgVNode=V4(i,o,this._backgroundColor,r);s&&a.push(s);var l=e.compress?null:this._mainVNode=Wt("g","main",{},[]);this._paintList(t,r,l?l.children:a),l&&a.push(l);var u=F(at(r.defs),function(d){return r.defs[d]});if(u.length&&a.push(Wt("defs","defs",{},u)),e.animation){var h=y4(r.cssNodes,r.cssAnims,{newline:!0});if(h){var c=Wt("style","stl",{},[],h);a.push(c)}}return zT(i,o,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},Fg(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var o=e.length,r=[],a=0,s,l,u=0,h=0;h=0&&!(d&&l&&d[g]===l[g]);g--);for(var v=f-1;v>g;v--)a--,s=r[a-1];for(var y=g+1;y