!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function w(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}var b=new function(){this.browser=new w,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?b.worker=!0:"undefined"==typeof navigator?(b.node=!0,b.svgSupported=!0):(J=navigator.userAgent,se=(Gt=b).browser,rt=J.match(/Firefox\/([\d.]+)/),q=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(se.firefox=!0,se.version=rt[1]),q&&(se.ie=!0,se.version=q[1]),Q&&(se.edge=!0,se.version=Q[1],se.newEdge=18<+Q[1].split(".")[0]),J&&(se.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!se.ie&&!se.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(se.edge||se.ie&&11<=+se.version),Gt.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Gt.transform3dSupported=(se.ie&&"transition"in rt||se.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Gt.transformSupported=Gt.transform3dSupported||se.ie&&9<=+se.version);var j="12px sans-serif";var C,I,D=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,o),o,r);if(e)return e(t,n,i),1}}function me(t){return"CANVAS"===t.nodeName.toUpperCase()}var ve=/([&<>"'])/g,_e={"&":"&","<":"<",">":">",'"':""","'":"'"};function xe(t){return null==t?"":(t+"").replace(ve,function(t,e){return _e[e]})}var we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=[],Se=b.browser.firefox&&+b.browser.version.split(".")[0]<39;function Me(t,e,n,i){return n=n||{},i?Te(t,e,n):Se&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Te(t,e,n),n}function Te(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,n.zrY=e-i.top;if(ye(be,t,r,e))return n.zrX=be[0],n.zrY=be[1]}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function ke(t,e,n){var i;return null==(e=Ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Me(t,i,e,n):(Me(t,e,e,n),t=(t=(i=e).wheelDelta)||(n=i.deltaX,i=i.deltaY,null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Ke.prototype.clone=function(){return new Ke(this.x,this.y,this.width,this.height)},Ke.prototype.copy=function(t){Ke.copy(this,t)},Ke.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ke.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ke.prototype.isZero=function(){return 0===this.width||0===this.height},Ke.create=function(t){return new Ke(t.x,t.y,t.width,t.height)},Ke.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ke.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){an.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=hn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=o:s=1+o;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function mn(t,e,n,i){var f,g,o,a,y,s,m,r=(i=i||t.length)-(n=n||0);if(!(r<2)){var l=0;if(ra[t+1])break;p(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(r);do{}while((l=dn(t,n,i,e))=this._maxSize&&0>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),fi(t,e),e):void hi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(hi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),fi(t,e),e):void hi(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?hi(e,+a[0],+a[1],+a[2],1):hi(e,0,0,0,1);s=si(a.pop());case"rgb":return 3<=a.length?(hi(e,ai(a[0]),ai(a[1]),ai(a[2]),3===a.length?s:si(a[3])),fi(t,e),e):void hi(e,0,0,0,1);case"hsla":return 4!==a.length?void hi(e,0,0,0,1):(a[3]=si(a[3]),yi(a,e),fi(t,e),e);case"hsl":return 3!==a.length?void hi(e,0,0,0,1):(yi(a,e),fi(t,e),e);default:return}}hi(e,0,0,0,1)}}function yi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=si(t[1]),r=si(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return hi(e=e||[],ri(255*li(r,i,n+1/3)),ri(255*li(r,i,n)),ri(255*li(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function mi(t,e){var n=gi(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255e);n++);n=g(n-1,c-2)}r=h[n+1],i=h[n]}i&&r&&(this._lastFr=n,this._lastFrP=e,f=r.percent-i.percent,o=0==f?1:g((e-i.percent)/f,1),r.easingFunc&&(o=r.easingFunc(o)),g=s?this._additiveValue:d?Li:t[p],(Pi(u)||d)&&(g=g||(this._additiveValue=[])),this.discrete?t[p]=(o<1?i:r).rawValue:Pi(u)?(1===u?Ti:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},o.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},o.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},o.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},o.prototype.off=function(t,e){this.handler.off(t,e)},o.prototype.trigger=function(t,e){this.handler.trigger(t,e)},o.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;oo){0i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=aa(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;pthis._ux||i>this._uy;return this.addData(G.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},s.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(G.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},s.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(G.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},s.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Va[0]=i,Va[1]=r,s=o,(l=Ha((a=Va)[0]))<0&&(l+=za),h=l-a[0],u=a[1],u+=h,!s&&za<=u-l?u=l+za:s&&za<=l-u?u=l-za:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Na(y)>i||c===e-1)&&(f=Math.sqrt(k*k+y*y),r=g,o=_);break;case G.C:var m=t[c++],v=t[c++],_=(g=t[c++],t[c++]),x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Bn(t,n,r,a,f),f=Bn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,w,10),r=x,o=w;break;case G.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Gn(t,n,r,p),p=Gn(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case G.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,t[c++],d&&(a=Ra(M)*b+x,s=Ea(M)*S+w),f=Oa(b,S)*La(za,Math.abs(T)),r=Ra(C)*b+x,o=Ea(C)*S+w;break;case G.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case G.Z:var k=a-r,y=s-o;f=Math.sqrt(k*k+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},s.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,N=this._ux,B=this._uy,z=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;gs){var b=(s-p)/y;t.lineTo(r*(1-b)+v*b,o*(1-b)+_*b);break t}p+=y}t.lineTo(v,_),r=v,o=_,f=0}else{x=x*x+w*w;fs){Hn(r,S,T,w,b=(s-p)/y,Ca),Hn(o,M,C,x,b,ka),t.bezierCurveTo(Ca[1],ka[1],Ca[2],ka[2],Ca[3],ka[3]);break t}p+=y}t.bezierCurveTo(S,M,T,C,w,x),r=w,o=x;break;case G.Q:if(S=h[g++],M=h[g++],T=h[g++],C=h[g++],c){if(p+(y=a[d++])>s){qn(r,S,T,b=(s-p)/y,Ca),qn(o,M,C,b,ka),t.quadraticCurveTo(Ca[1],ka[1],Ca[2],ka[2]);break t}p+=y}t.quadraticCurveTo(S,M,T,C),r=T,o=C;break;case G.A:var k=h[g++],I=h[g++],D=h[g++],A=h[g++],P=h[g++],L=h[g++],O=h[g++],V=!h[g++],H=As&&(E=P+L*(s-p)/y,W=!0),p+=y),R&&t.ellipse?t.ellipse(k,I,D,A,O,P,E,V):t.arc(k,I,H,P,E,V),W)break t;F&&(n=Ra(P)*D+k,i=Ea(P)*A+I),r=Ra(E)*D+k,o=Ea(E)*A+I;break;case G.R:n=r=h[g],i=o=h[g+1],v=h[g++],_=h[g++];L=h[g++],R=h[g++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,_),t.lineTo(v+La(O,L),_),0<(O-=L)&&t.lineTo(v+L,_+La(O,R)),0<(O-=R)&&t.lineTo(v+Oa(L-O,0),_+R),0<(O-=L)&&t.lineTo(v,_+Oa(R-O,0));break t}p+=y}t.rect(v,_,L,R);break;case G.Z:if(c){if(p+(y=a[d++])>s){t.lineTo(r*(1-(b=(s-p)/y))+n*b,o*(1-b)+i*b);break t}p+=y}t.closePath(),r=n,o=i}}},s.prototype.clone=function(){var t=new s,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},s.CMD=G,s.initDefaultProps=((uu=s.prototype)._saveData=!0,uu._ux=0,uu._uy=0,uu._pendingPtDist=0,void(uu._version=0));var Wa=s;function s(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Ga(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)n||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if($a[0]=-e,$a[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(ja-1e-4<=n)return r=ja,h=o?1:-1,a>=$a[i=0]+t&&a<=$a[1]+t?h:0;rMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Za.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],M=p+a[d++],n){if(Ga(c,p,S,p,e,i,r)||Ga(S,p,S,M,e,i,r)||Ga(S,M,c,M,e,i,r)||Ga(c,M,c,p,e,i,r))return!0}else l=(l+=Ya(S,p,S,M,i,r))+Ya(c,M,c,p,i,r);break;case Za.Z:if(n){if(Ga(u,h,c,p,e,i,r))return!0}else l+=Ya(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)i.len()&&(uMath.abs(i[1])?0u||t.newline?(c=0,n=r,p+=d+l,o.height):Math.max(d,o.height)):(r=o.height+(e?-e.y+o.y:0),(i=p+r)>h||t.newline?(c+=d+l,p=0,i=r,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}function xp(t,e,n){n=pp(n||0);var i=e.width,r=e.height,o=f(t.left,i),a=f(t.top,r),e=f(t.right,i),s=f(t.bottom,r),l=f(t.width,i),u=f(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/re)return t[i];return t[n-1]}(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},jp.prototype.clearColorPalette=function(){var t,e;(e=Yp)(t=this).paletteIdx=0,e(t).paletteNameMap={}},jp);function jp(){}var Kp,$p,Qp,Jp,td="\0_ec_inner",ed=(u(h,Jp=Cc),h.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Cc(i),this._locale=new Cc(r),this._optionManager=o},h.prototype.setOption=function(t,e,n){e=rd(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},h.prototype.resetOption=function(t,e){return this._resetOption(t,rd(e))},h.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Qp(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&O(n,function(t){i=!0,this._mergeOption(t,e)},this),i},h.prototype.mergeOption=function(t){this._mergeOption(t,null)},h.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=N(),p=t&&t.replaceMergeMainTypeMap;Wp(this).datasetMap=N(),O(i,function(t,e){null!=t&&(y.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?S(t):d(r[e],t,!0))}),p&&p.each(function(t,e){y.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),y.topologicalTravel(n,y.getAllClassMainTypes(),function(o){t=this,n=po(i[e=o]);var t=(e=(e=qp.get(e))&&e(t))?n.concat(e):n,e=h.get(o),n=mo(e,t,e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll");So(n,o,y),r[o]=null,h.set(o,null),c.set(o,0);var a,s=[],l=[],u=0;O(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=y.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=L({componentIndex:e},t.keyInfo),L(n=new r(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&Kp(this)},this),this._seriesIndices||Kp(this)},h.prototype.getOption=function(){var a=S(this.option);return O(a,function(t,e){if(y.hasClass(e)){for(var n=po(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!bo(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[td],a},h.prototype.getTheme=function(){return this._theme},h.prototype.getLocaleModel=function(){return this._locale},h.prototype.setUpdatePayload=function(t){this._payload=t},h.prototype.getUpdatePayload=function(){return this._payload},h.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},c.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=F(o,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},c.prototype.count=function(){return this._count},c.prototype.get=function(t,e){return 0<=e&&e=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}}return-1},c.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=u&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f=u&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;ft[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}},c.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Xf(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;hx&&(x=n,w=M)}0h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},c.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();rthis.getShallow("animationThreshold")?!1:t)},p.prototype.restoreData=function(){this.dataTask.dirty()},p.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Zp.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},p.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},p.prototype.getProgressive=function(){return this.get("progressive")},p.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},p.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},p.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pg(e,n){O(Bt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(dg,n))})}function dg(t,e){t=fg(t);return t&&t.setOutputEnd((e||this).count()),e}function fg(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}at(sg,Sc),at(sg,Zp),Bo(sg,y);yg.prototype.init=function(t,e){},yg.prototype.render=function(t,e,n,i){},yg.prototype.dispose=function(t,e){},yg.prototype.updateView=function(t,e,n,i){},yg.prototype.updateLayout=function(t,e,n,i){},yg.prototype.updateVisual=function(t,e,n,i){},yg.prototype.toggleBlurSeries=function(t,e,n){},yg.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var gg=yg;function yg(){this.group=new Fr,this.uid=Dc("viewComponent")}No(gg),Ho(gg);var mg,vg=To(),_g=(mg=To(),function(t){var e=mg(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}),xg=(wg.prototype.init=function(t,e){},wg.prototype.render=function(t,e,n,i){},wg.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Sg(t,i,"emphasis")},wg.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Sg(t,i,"normal")},wg.prototype.remove=function(t,e){this.group.removeAll()},wg.prototype.dispose=function(t,e){},wg.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.eachRendered=function(t){tc(this.group,t)},wg.markUpdateMethod=function(t,e){vg(t).updateMethod=e},wg.protoInitialize=void(wg.prototype.type="chart"),wg);function wg(){this.group=new Fr,this.uid=Dc("viewChart"),this.renderTask=uf({plan:Mg,reset:Tg}),this.renderTask.context={view:this}}function bg(t,e,n){t&&El(t)&&("emphasis"===e?vl:_l)(t,n)}function Sg(e,t,n){var i,r=Mo(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ws[t])&&Hs<=32?Ws[t]=Hs++:i):null;null!=r?O(po(r),function(t){bg(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){bg(t,n,o)})}function Mg(t){return _g(t.model)}function Tg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&vg(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Cg[o]}No(xg),Ho(xg);var Cg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},kg="\0__throttleOriginMethod",Ig="\0__throttleRate",Dg="\0__throttleType";function Ag(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Fg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Fg.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Fg.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Fg.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;O(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});kt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Fg.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Fg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Fg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Fg.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}O(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Fg.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Fg.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Fg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Fg.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||uf({plan:Ug,reset:Xg,count:Zg}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},Fg.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||uf({reset:Vg}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=N(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,uf({reset:Hg,onDirty:Gg})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}kt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,O(n.getSeries(),c)),h&&o.dirty()},Fg.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Fg.wrapStageHandler=function(t,e){return(t=M(t)?{overallReset:t,seriesType:function(t){jg=null;try{t(Kg,$g)}catch(t){}return jg}(t)}:t).uid=Dc("stageHandler"),e&&(t.visualType=e),t};var zg=Fg;function Fg(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Vg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Hg(t){return t.overallProgress&&Wg}function Wg(){this.agent.dirty(),this.getDownstream().dirty()}function Gg(){this.agent&&this.agent.dirty()}function Ug(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Xg(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=po(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new Ss({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),O(p,function(t){t=new fs({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},m.prototype.convertToPixel=function(t,e){return h0(this,"convertToPixel",t,e)},m.prototype.convertFromPixel=function(t,e){return h0(this,"convertFromPixel",t,e)},m.prototype.containPixel=function(t,i){var r;if(!this._disposed)return O(ko(this._model,t),function(t,n){0<=n.indexOf("Models")&&O(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},m.prototype.getVisual=function(t,e){var t=ko(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},m.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},m.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},m.prototype._initEvents=function(){var t,n,i,s=this;O(R0,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&ay(o,function(t){var e,t=Vs(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=L({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),O(N0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),O(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(oy("map","selectchanged",n,e,t),oy("pie","selectchanged",n,e,t)):"select"===t.fromAction?(oy("map","selected",n,e,t),oy("pie","selected",n,e,t)):"unselect"===t.fromAction&&(oy("map","unselected",n,e,t),oy("pie","unselected",n,e,t))})},m.prototype.isDisposed=function(){return this._disposed},m.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},m.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Po(this.getDom(),q0,""),e=(t=this)._api,n=t._model,O(t._componentsViews,function(t){t.dispose(n,e)}),O(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete W0[t.id])},m.prototype.resize=function(t){if(!this[Qy])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Jy]&&(null==n&&(n=this[Jy].silent),e=!0,this[Jy]=null),this[Qy]=!0;try{e&&a0(this),u0.update.call(this,{type:"resize",animation:L({duration:0},t&&t.animation)})}catch(t){throw this[Qy]=!1,t}this[Qy]=!1,d0.call(this,n),f0.call(this,n)}}},m.prototype.showLoading=function(t,e){this._disposed?this.id:(R(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),H0[t]&&(t=H0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},m.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},m.prototype.makeActionFromEvent=function(t){var e=L({},t);return e.type=N0[t.type],e},m.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(R(e)||(e={silent:!!e}),E0[t.type]&&this._model&&(this[Qy]?this._pendingActions.push(t):(n=e.silent,p0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),d0.call(this,n),f0.call(this,n))))},m.prototype.updateLabelLayout=function(){Ky.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},m.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},m.internalField=(a0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),s0(t,!0),s0(t,!1),e.plan()},s0=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!b.node&&!b.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Ky.trigger("series:afterupdate",t,e,n)},b0=function(t){t[t0]=!0,t.getZr().wakeUp()},S0=function(t){t[t0]&&(t.getZr().storage.traverse(function(t){Th(t)||A0(t)}),t[t0]=!1)},x0=function(n){return u(t,e=od),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){vl(t,e),b0(n)},t.prototype.leaveEmphasis=function(t,e){_l(t,e),b0(n)},t.prototype.enterBlur=function(t){pl(t,sl),b0(n)},t.prototype.leaveBlur=function(t){xl(t),b0(n)},t.prototype.enterSelect=function(t){wl(t),b0(n)},t.prototype.leaveSelect=function(t){bl(t),b0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(w0=function(i){function r(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},Zm.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Zm.prototype.getExtent=function(){return this._extent.slice()},Zm.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Zm.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Zm.prototype.isBlank=function(){return this._isBlank},Zm.prototype.setBlank=function(t){this._isBlank=t};var Ym=Zm;function Zm(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ho(Ym);var jm=0,Km=($m.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&F(e,Qm);return new $m({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$m.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$m.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return H(t)||i?(i&&!this._deduplication?(e=this.categories.length,this.categories[e]=t):null==(e=(n=this._getOrCreateMap()).get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e):t},$m.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},$m);function $m(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jm}function Qm(t){return R(t)&&null!=t.value?t.value:t+""}function Jm(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=oo(o/e,!0),e=(null!=n&&on[1]&&(n[0]=n[1]),r}function tv(t){var e=Math.pow(10,ro(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,jr(t*e)}function ev(t){return Kr(t)+2}function nv(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function iv(t,e){return t>=e[0]&&t<=e[1]}function rv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ov(t,e){return t*(e[1]-e[0])+e[0]}u(lv,av=Ym),lv.prototype.parse=function(t){return null==t?NaN:H(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lv.prototype.contain=function(t){return iv(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lv.prototype.normalize=function(t){return rv(t=this._getTickNumber(this.parse(t)),this._extent)},lv.prototype.scale=function(t){return t=Math.round(ov(t,this._extent)),this.getRawOrdinalNumber(t)},lv.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},lv.prototype.getMinorTicks=function(t){},lv.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=t},lv.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lv.prototype.calcNiceTicks=function(){},lv.prototype.calcNiceExtent=function(){},lv.type="ordinal";var av,sv=lv;function lv(t){var t=av.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new Km({}))&&(e=new Km({categories:F(e,function(t){return R(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Ym.registerClass(sv);var uv,hv=jr,cv=(u(pv,uv=Ym),pv.prototype.parse=function(t){return t},pv.prototype.contain=function(t){return iv(t,this._extent)},pv.prototype.normalize=function(t){return rv(t,this._extent)},pv.prototype.scale=function(t){return ov(t,this._extent)},pv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},pv.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},pv.prototype.getInterval=function(){return this._interval},pv.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ev(t)},pv.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]s&&o.push(t?{value:hv(s+e,r)}:{value:n[1]})}return o},pv.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h=M[0]&&p<=M[1]&&a++)}u=(M[1]-M[0])/b;if(1.5*u=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),_v.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l),r=s+=r,o=l+=o;i.push([s/n,l/n])}return i}function d_(t,o){return F(ut((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),O(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=p_(i,n,r);break;case"Polygon":case"MultiLineString":c_(i,n,r);break;case"MultiPolygon":O(i,function(t,e){return c_(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return F(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Qr,getPrecision:Kr,getPrecisionSafe:$r,isNumeric:so,isRadianAroundZero:to,linearMap:Zr,nice:oo,numericToNumber:ao,parseDate:no,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:io,quantityExponent:ro,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]':'':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""},normalizeCssArray:pp,toCamelCase:function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t},truncateText:$o}),mc=Object.freeze({__proto__:null,bind:pt,clone:S,curry:dt,defaults:z,each:O,extend:L,filter:ut,indexOf:k,inherits:ot,isArray:V,isFunction:M,isObject:R,isString:H,map:F,merge:d,reduce:lt}),f_=To();function g_(t){return"category"===t.type?(r=(e=t).getLabelModel(),o=m_(e,r),!r.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(n=t).scale.getTicks(),i=Hv(n),{labels:F(r,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,r,o}function y_(t,e){var n,i,r,o,a,s;return"category"===t.type?(e=e,o=v_(n=t,"ticks"),a=Gv(e),(s=__(o,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=M(a)?b_(n,a,!0):"auto"===a?(s=m_(n,n.getLabelModel()),r=s.labelCategoryInterval,F(s.labels,function(t){return t.tickValue})):w_(n,r=a,!0),x_(o,a,{ticks:i,tickCategoryInterval:r}))):{ticks:F(t.scale.getTicks(),function(t){return t.value})}}function m_(t,e){var n,i=v_(t,"labels"),e=Gv(e);return __(i,e)||x_(i,e,{labels:M(e)?b_(t,e):w_(t,n="auto"===e?null!=(t=f_(i=t).autoInterval)?t:f_(i).autoInterval=i.calculateCategoryInterval():e),labelCategoryInterval:n})}function v_(t,e){return f_(t)[e]||(f_(t)[e]=[])}function __(t,e){for(var n=0;no[1],h(l[0].coord,o[0])&&(t?l[0].coord=o[0]:l.shift()),t&&h(o[0],l[0].coord)&&l.unshift({coord:o[0]}),h(o[1],e.coord)&&(t?e.coord=o[1]:l.pop()),t)&&h(e.coord,o[1])&&l.push({coord:o[1]}),a},M_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),F(this.scale.getMinorTicks(t=0=u}}for(var a,s=this.__startIndex;sr[0]){for(l=0;lt);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},_.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ih[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,F1(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*O1/180),F1(l)?r=R1.innerTextLayout(t.rotation,null!=u?u:t.rotation,s):(s=t.rotation,l=l,h=h,u=Jr((u=u||0)-s),s=h[0]>h[1],h="start"===l&&!s||"start"!==l&&s,l=to(u-O1/2)?(c=h?"bottom":"top","center"):to(u-1.5*O1)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*O1&&O1/2l[0]&&isFinite(p)&&isFinite(l[0]);)c=tv(c),p=l[1]-c*s;else{h=(c=n.getTicks().length-1>s?tv(c):c)*s;(p=jr((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=jr(h)):0u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n||!!e&&(o=tx(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},hx.prototype.makeElOption=function(t,e,n,i,r){},hx.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=sx(t).pointerEl=new ec[r.type](lx(e.pointer)),t.add(r))},hx.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=sx(t).labelEl=new Is(lx(e.label)),t.add(e),px(e,i))},hx.prototype.updatePointerEl=function(t,e,n){t=sx(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},hx.prototype.updateLabelEl=function(t,e,n,i){t=sx(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),px(t,i))},hx.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(e=!0,r=this._handle=Kh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ie(t.event)},onmousedown:ux(this._onHandleDragMove,this,0,0),drift:ux(this._onHandleDragMove,this),ondragend:ux(this._onHandleDragEnd,this)}),i.add(r)),fx(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=o.get("size"))||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,function(t,e,n,i){var r=t[e];if(r){var o=r[kg]||r,a=r[Dg];if(r[Ig]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Ag(o,n,"debounce"===i))[kg]=o,r[Dg]=i,r[Ig]=n}}}(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(r&&i.remove(r),this._handle=null))},hx.prototype._moveHandleToValue=function(t,e){cx(this._axisPointerModel,!e&&this._moveAnimation,this._handle,dx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},hx.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(dx(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(dx(t)),sx(n).lastProp=null,this._doDispatchAxisPointer())},hx.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},hx.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},hx.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),(n=(e=this)[t="_doDispatchAxisPointer"])&&n[kg]&&(n.clear&&n.clear(),e[t]=n[kg])},hx.prototype.doClear=function(){},hx.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},hx);function hx(){this._dragging=!1,this.animationThreshold=15}function cx(t,e,n,i){!function n(i,t){{var r;if(R(i)&&R(t))return r=!0,O(t,function(t,e){r=r&&n(i[e],t)}),!!r}return i===t}(sx(n).lastProp,i)&&(sx(n).lastProp=i,e?Sh(n,i,t):(n.stopAnimation(),n.attr(i)))}function px(t,e){t[e.get(["label","show"])?"show":"hide"]()}function dx(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fx(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function gx(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function yx(t,e,n,i,r){var o=function(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;{var a;r&&(a={value:Wv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},O(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&a.seriesData.push(e)}),H(r)?o=r.replace("{value}",o):M(r)&&(o=r(a)))}return o}(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=pp(n.get("padding")||0),s=n.getFont(),l=wr(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:oc(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function mx(t,e,n){var i=Oe();return ze(i,i,n.rotation),Be(i,i,n.position),Xh([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function vx(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function _x(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}u(Sx,xx=Ku),Sx.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),h=i.get("type"),a=(h&&"none"!==h&&(o=gx(i),(h=Mx[h](a,s,u,l)).style=o,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));yx(t,n,i,r,function(t,e,n,i){var r=e.axis,t=r.dataToCoord(t);l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI;var o,a,s=n.getRadiusAxis().getExtent();{var l;s="radius"===r.dim?(r=Oe(),ze(r,r,l),Be(r,r,[n.cx,n.cy]),o=Xh([t,-i],r),r=e.getModel("axisLabel").get("rotate")||0,e=R1.innerTextLayout(l,r*Math.PI/180,-1),a=e.textAlign,e.textVerticalAlign):(l=s[1],o=n.coordToPoint([l+i,t]),r=n.cx,e=n.cy,a=Math.abs(o[0]-r)/l<.3?"center":o[0]>r?"left":"right",Math.abs(o[1]-e)/l<.3?"middle":o[1]>e?"top":"bottom")}return{position:o,align:a,verticalAlign:s}}(e,n,s,a))};var xx,bx=Sx;function Sx(){return null!==xx&&xx.apply(this,arguments)||this}var Mx={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:vx(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_x(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:_x(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};function Tx(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),St(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}u(Ix,Cx=Ku),Ix.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=a.grid,l=i.get("type"),u=Dx(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(o=gx(i),(l=Ax[l](a,h,u)).style=o,t.graphicKey=l.type,t.pointer=l),Tx(s.model,n));h=e,u=t,o=a,l=n,s=i,e=r,t=R1.innerTextLayout(o.rotation,0,o.labelDirection),o.labelMargin=s.get(["label","margin"]),yx(u,l,s,e,{position:mx(l.axis,h,o),align:t.textAlign,verticalAlign:t.textVerticalAlign})},Ix.prototype.getHandleTransform=function(t,e,n){var i=Tx(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),mx(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Ix.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Dx(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var Cx,kx=Ix;function Ix(){return null!==Cx&&Cx.apply(this,arguments)||this}function Dx(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ax={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:vx([e,n[0]],[e,n[1]],Px(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Px(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function Px(t){return"x"===t.dim?0:1}u(Rx,Lx=y),Rx.type="axisPointer",Rx.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}};var Lx,Ox=Rx;function Rx(){var t=null!==Lx&&Lx.apply(this,arguments)||this;return t.type=Rx.type,t}var Ex=To(),Nx=O;function Bx(t,e,n){var i,c,p;function r(t,h){c.on(t,function(e){n=p;var n,i,t,r,o,a,s,l={dispatchAction:u,pendings:i={showTip:[],hideTip:[]}};function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}Nx(Ex(c).records,function(t){t&&h(t,e,l.dispatchAction)}),r=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?o=t.showTip[a-1]:s&&(o=t.hideTip[s-1]),o&&(o.dispatchAction=null,r.dispatchAction(o))})}b.node||(i=e.getZr(),Ex(i).records||(Ex(i).records={}),p=e,Ex(c=i).initialized||(Ex(c).initialized=!0,r("click",dt(Fx,"click")),r("mousemove",dt(Fx,"mousemove")),r("globalout",zx)),(Ex(i).records[t]||(Ex(i).records[t]={})).handler=n)}function zx(t,e,n){t.handler("leave",null,n)}function Fx(t,e,n,i){e.handler(t,n,i)}function Vx(t,e){b.node||(e=e.getZr(),(Ex(e).records||{})[t]&&(Ex(e).records[t]=null))}u(Gx,Hx=gg),Gx.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Bx("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Gx.prototype.remove=function(t,e){Vx("axisPointer",e)},Gx.prototype.dispose=function(t,e){Vx("axisPointer",e)},Gx.type="axisPointer";var Hx,Wx=Gx;function Gx(){var t=null!==Hx&&Hx.apply(this,arguments)||this;return t.type=Gx.type,t}var Ux=To();function Xx(t,e,n){var o,a,i,s,l,r,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M=t.currTrigger,T=[t.x,t.y],C=t,k=t.dispatchAction||pt(n.dispatchAction,n),I=e.getComponent("axisPointer").coordSysAxesInfo;if(I)return Kx(T)&&(m={seriesIndex:C.seriesIndex,dataIndex:C.dataIndex},e=e,b=[],S=m.seriesIndex,T=(null==S||!(e=e.getSeriesByIndex(S))||null==(S=Mo(v=e.getData(),m))||S<0||V(S)?{point:[]}:(_=v.getItemGraphicEl(S),x=e.coordinateSystem,e.getTooltipPosition?b=e.getTooltipPosition(S)||[]:x&&x.dataToPoint?b=m.isStacked?(e=x.getBaseAxis(),m=x.getOtherAxis(e).dim,e=e.dim,m="x"===m||"radius"===m?1:0,e=v.mapDimension(e),(w=[])[m]=v.get(e,S),w[1-m]=v.get(v.getCalculationInfo("stackResultDimension"),S),x.dataToPoint(w)||[]):x.dataToPoint(v.getValues(F(x.dimensions,function(t){return v.mapDimension(t)}),S))||[]:_&&((e=_.getBoundingRect().clone()).applyTransform(_.transform),b=[e.x+e.width/2,e.y+e.height/2]),{point:b,el:_})).point),o=Kx(T),a=C.axesInfo,i=I.axesInfo,s="leave"===M||Kx(T),l={},m={list:[],map:{}},u={showPointer:dt(Yx,r={}),showTooltip:dt(Zx,m)},O(I.coordSysMap,function(t,e){var r=o||t.containPoint(T);O(I.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!r||a&&!i||null!=(i=null!=(i=i&&i.value)||o?i:n.pointToData(T))&&qx(t,i,u,!1,l)})}),h={},O(i,function(n,t){var i=n.linkGroup;i&&!r[t]&&O(i.axesInfo,function(t,e){var e=r[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,jx(t),jx(n)))),h[n.key]=e)})}),O(h,function(t,e){qx(i[e],t,u,!0,l)}),g=r,w=i,y=l.axesInfo=[],O(w,function(t,e){var n=t.axisPointerModel.option,e=g[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&y.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),x=m,S=t,e=k,!Kx(b=T)&&x.list.length?(_=((x.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:x.list})):e({type:"hideTip"}),C=i,t=(M=n).getZr(),k="axisPointerLastHighlights",c=Ux(t)[k]||{},p=Ux(t)[k]={},O(C,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&O(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],f=[],O(c,function(t,e){p[e]||f.push(t)}),O(p,function(t,e){c[e]||d.push(t)}),f.length&&M.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),d.length&&M.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function qx(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,O(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var r=e.getAxisTooltipData(i,l,u),o=r.dataIndices,r=r.nestestValue;else{if(!(o=e.getData().indicesOfNearest(i[0],l,"category"===u.type?.5:null)).length)return;r=e.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=l-r,(n=Math.abs(i))<=d)&&((ne[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var t=t-this.cx,e=e-this.cy,t=t*t+e*e-1e-4,e=this.r,n=this.r0;return t<=e*e&&n*n<=t}}},ww.prototype.convertToPixel=function(t,e,n){return bw(e)===this?this.dataToPoint(n):null},ww.prototype.convertFromPixel=function(t,e,n){return bw(e)===this?this.pointToData(n):null},ww);function ww(t){this.dimensions=_w,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new dw,this._angleAxis=new mw,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function bw(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Sw(t,e){var n,i=this,r=i.getAngleAxis(),o=i.getRadiusAxis();r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(O(Xv(e=t.getData(),"radius"),function(t){o.scale.unionExtentFromData(e,t)}),O(Xv(e,"angle"),function(t){r.scale.unionExtentFromData(e,t)}))}),Fv(r.scale,r.model),Fv(o.scale,o.model),"category"!==r.type||r.onBand||(t=r.getExtent(),n=360/r.scale.count(),r.inverse?t[1]+=n:t[1]-=n,r.setExtent(t[0],t[1]))}function Mw(t,e){var n;t.type=e.get("type"),t.scale=Vv(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var Tw={dimensions:_w,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new xw(e+""),i=(e.update=Sw,e.getRadiusAxis()),r=e.getAngleAxis(),o=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");Mw(i,o),Mw(r,a),i=e,o=s,a=(r=t).get("center"),n=o.getWidth(),o=o.getHeight(),i.cx=f(a[0],n),i.cy=f(a[1],o),a=i.getRadiusAxis(),i=Math.min(n,o)/2,null==(n=r.get("radius"))?n=[0,"100%"]:V(n)||(n=[0,n]),o=[f(n[0],i),f(n[1],i)],a.inverse?a.setExtent(o[1],o[0]):a.setExtent(o[0],o[1]),l.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",Do).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},Cw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function kw(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function Iw(t){return t.getRadiusAxis().inverse?0:1}function Dw(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}u(Ow,Aw=ox),Ow.prototype.render=function(e,t){var n,i,r,o,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),Dw(s=F(n.getViewLabels(),function(t){t=S(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),Dw(o),O(Cw,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Lw[t](this.group,e,i,o,a,r,s)},this))},Ow.type="angleAxis";var Aw,Pw=Ow,Lw={axisLine:function(t,e,n,i,r,o){var e=e.getModel(["axisLine","lineStyle"]),a=Iw(n),s=a?0:1;(n=0===o[s]?new ou({shape:{cx:n.cx,cy:n.cy,r:o[a]},style:e.getLineStyle(),z2:1,silent:!0}):new Au({shape:{cx:n.cx,cy:n.cy,r:o[a],r0:o[s]},style:e.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(n)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Iw(n)],o=F(i,function(t){return new Uu({shape:kw(n,[l,l+s],t.coord)})});t.add(Vh(o,{style:z(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Iw(n)],h=[],c=0;ca?"left":"right",r=Math.abs(o[1]-s)/r<.3?"middle":o[1]>s?"top":"bottom",i=(p&&p[i]&&R(s=p[i])&&s.textStyle&&(n=new Cc(s.textStyle,d,d.ecModel)),new Is({silent:R1.isLabelSilent(u),style:oc(n,{x:o[0],y:o[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:r})}));l.add(i),g&&((s=R1.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,Vs(i).eventData=s)},this)},splitLine:function(t,e,n,i,r,o){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eb=(pb.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):!!gt(e)&&this._condVal.test(t+"")},pb),nb=(cb.prototype.evaluate=function(){return this.value},cb),ib=(hb.prototype.evaluate=function(){for(var t=this.children,e=0;e