!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).zrender={})}(this,function(t){"use strict";var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},h=new function(){this.browser=new e,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(h.wxa=!0,h.canvasSupported=!0,h.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(h.worker=!0,h.canvasSupported=!0):"undefined"==typeof navigator?(h.node=!0,h.canvasSupported=!0,h.svgSupported=!0):function(t,e){var i=e.browser,r=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(i.firefox=!0,i.version=r[1]);n&&(i.ie=!0,i.version=n[1]);o&&(i.edge=!0,i.version=o[1],i.newEdge=18<+o[1].split(".")[0]);a&&(i.weChat=!0);e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&11<=+i.version),e.domSupported="undefined"!=typeof document}(navigator.userAgent,h);var s={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},l={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},u=Object.prototype.toString,i=Array.prototype,a=i.forEach,p=i.filter,n=i.slice,c=i.map,r=function(){}.constructor,o=r?r.prototype:null,f={};var d=2311;function y(){return d++}function g(){for(var t=[],e=0;e>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[h]+":0",n[l]+":0",r[1-h]+":auto",n[1-l]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}(e,o),o,n);if(a)return a(t,i,r),1}}function At(t){return"CANVAS"===t.nodeName.toUpperCase()}var Pt="undefined"!=typeof window&&!!window.addEventListener,Dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mt=[];function Lt(t,e,i,r){return i=i||{},r||!h.canvasSupported?Rt(t,e,i):h.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Rt(t,e,i),i}function Rt(t,e,i){if(h.domSupported&&t.getBoundingClientRect){var r=e.clientX,n=e.clientY;if(At(t)){var o=t.getBoundingClientRect();return i.zrX=r-o.left,void(i.zrY=n-o.top)}if(Ct(Mt,t,r,n))return i.zrX=Mt[0],void(i.zrY=Mt[1])}i.zrX=i.zrY=0}function zt(t){return t||window.event}function It(t,e,i){if(null!=(e=zt(e)).zrX)return e;var r,n,o=e.type;o&&0<=o.indexOf("touch")?(r="touchend"!==o?e.targetTouches[0]:e.changedTouches[0])&&Lt(t,r,e,i):(Lt(t,e,e,i),n=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,r=t.deltaY;return null!=i&&null!=r?3*(0!==r?Math.abs(r):Math.abs(i))*(0r.getWidth()||i<0||i>r.getHeight()}function Qt(){return[1,0,0,1,0,0]}function $t(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function te(t,e,i){var r=e[0]*i[0]+e[2]*i[1],n=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],h=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=r,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=h,t}function ee(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function ie(t,e,i){var r=e[0],n=e[2],o=e[4],a=e[1],s=e[3],h=e[5],l=Math.sin(i),u=Math.cos(i);return t[0]=r*u+a*l,t[1]=-r*l+a*u,t[2]=n*u+s*l,t[3]=-n*l+u*s,t[4]=u*o+l*h,t[5]=u*h-l*o,t}function re(t,e,i){var r=i[0],n=i[1];return t[0]=e[0]*r,t[1]=e[1]*n,t[2]=e[2]*r,t[3]=e[3]*n,t[4]=e[4]*r,t[5]=e[5]*n,t}function ne(t,e){var i=e[0],r=e[2],n=e[4],o=e[1],a=e[3],s=e[5],h=i*a-o*r;return h?(h=1/h,t[0]=a*h,t[1]=-o*h,t[2]=-r*h,t[3]=i*h,t[4]=(r*s-a*n)*h,t[5]=(o*n-i*s)*h,t):null}k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){Vt.prototype[a]=function(t){var e,i,r=t.zrX,n=t.zrY,o=Kt(this,r,n);if("mouseup"===a&&o||(i=(e=this.findHover(r,n)).target),"mousedown"===a)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===a)this._upEl=i;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4=this._maxSize&&0>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,5===o?parseInt(r.slice(4),16)/15:1),Ie(t,e),e):void Me(e,0,0,0,1):7===o||9===o?0<=(n=parseInt(r.slice(1,7),16))&&n<=16777215?(Me(e,(16711680&n)>>16,(65280&n)>>8,255&n,9===o?parseInt(r.slice(7),16)/255:1),Ie(t,e),e):void Me(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var h=r.substr(0,a),l=r.substr(a+1,s-(a+1)).split(","),u=1;switch(h){case"rgba":if(4!==l.length)return 3===l.length?Me(e,+l[0],+l[1],+l[2],1):Me(e,0,0,0,1);u=Ae(l.pop());case"rgb":return 3!==l.length?void Me(e,0,0,0,1):(Me(e,Ce(l[0]),Ce(l[1]),Ce(l[2]),u),Ie(t,e),e);case"hsla":return 4!==l.length?void Me(e,0,0,0,1):(l[3]=Ae(l[3]),Be(l,e),Ie(t,e),e);case"hsl":return 3!==l.length?void Me(e,0,0,0,1):(Be(l,e),Ie(t,e),e);default:return}}Me(e,0,0,0,1)}}function Be(t,e){var i=(parseFloat(t[0])%360+360)%360/360,r=Ae(t[1]),n=Ae(t[2]),o=n<=.5?n*(r+1):n+r-n*r,a=2*n-o;return Me(e=e||[],Se(255*Pe(a,o,i+1/3)),Se(255*Pe(a,o,i)),Se(255*Pe(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ee(t){var e=Oe(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Fe(t,e,i){if(e&&e.length&&0<=t&&t<=1){i=i||[];var r=t*(e.length-1),n=Math.floor(r),o=Math.ceil(r),a=e[n],s=e[o],h=r-n;return i[0]=Se(De(a[0],s[0],h)),i[1]=Se(De(a[1],s[1],h)),i[2]=Se(De(a[2],s[2],h)),i[3]=Te(De(a[3],s[3],h)),i}}function He(t,e,i){if(e&&e.length&&0<=t&&t<=1){var r=t*(e.length-1),n=Math.floor(r),o=Math.ceil(r),a=Oe(e[n]),s=Oe(e[o]),h=r-n,l=Ne([Se(De(a[0],s[0],h)),Se(De(a[1],s[1],h)),Se(De(a[2],s[2],h)),Te(De(a[3],s[3],h))],"rgba");return i?{color:l,leftIndex:n,rightIndex:o,value:r}:l}}function Ne(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function We(t,e){var i=Oe(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}var Xe=Object.freeze({__proto__:null,parse:Oe,lift:function(t,e){var i=Oe(t);if(i){for(var r=0;r<3;r++)i[r]=e<0?i[r]*(1-e)|0:(255-i[r])*e+i[r]|0,255=this.maxTime?this.maxTime=t:this._needsSort=!0;var i,r=this.keyframes,n=r.length;if(this.interpolable)if(M(e)){var o,a=M((i=e)&&i[0])?2:1;if(0e);l++);l=Math.min(l-1,o-2)}var u,p,c,f,d,y,g,v,_,m,x=n[l+1],w=n[l];w&&x&&(this._lastFrame=l,this._lastFramePercent=e,0!=(u=x.percent-w.percent)&&(p=(e-w.percent)/u,c=i?this._additiveValue:h?Je:t[a],(0=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},yi.prototype.clone=function(){return new yi(this.x,this.y,this.width,this.height)},yi.prototype.copy=function(t){yi.copy(this,t)},yi.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},yi.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},yi.prototype.isZero=function(){return 0===this.width||0===this.height},yi.create=function(t){return new yi(t.x,t.y,t.width,t.height)},yi.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},yi.applyTransform=function(t,e,i){if(i){if(i[1]<1e-5&&-1e-5>>1])<0?h=o:s=1+o;var l=r-s;switch(l){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[i+u])<0?h=u:a=u+1}return h}function Ui(d,y){var a,s,g=Xi,h=0,v=(d.length,[]);function e(t){var e=a[t],i=s[t],r=a[t+1],n=s[t+1];s[t]=i+n,t===h-3&&(a[t+1]=a[t+2],s[t+1]=s[t+2]),h--;var o=qi(d[r],d,e,i,0,y);e+=o,0!=(i-=o)&&0!==(n=Gi(d[e+i-1],d,r,n,n-1,y))&&(i<=n?function(t,e,i,r){var n=0;for(n=0;ns[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(n);do{(o=ji(t,i,r,e))this._sleepAfterStill&&this.animation.stop())},Rr.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Rr.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Rr.prototype.addHover=function(t){},Rr.prototype.removeHover=function(t){},Rr.prototype.clearHover=function(){},Rr.prototype.refreshHover=function(){this._needsRefreshHover=!0},Rr.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Rr.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},Rr.prototype.clearAnimation=function(){this.animation.clear()},Rr.prototype.getWidth=function(){return this.painter.getWidth()},Rr.prototype.getHeight=function(){return this.painter.getHeight()},Rr.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},Rr.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Rr.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Rr.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},Rr.prototype.off=function(t,e){this.handler.off(t,e)},Rr.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Rr.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;ethis._ux||zn(e-this._yi)>this._uy||this._len<5;return this.addData(wn.L,t,e),this._ctx&&i&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},Xn.prototype.bezierCurveTo=function(t,e,i,r,n,o){return this.addData(wn.C,t,e,i,r,n,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,i,r,n,o):this._ctx.bezierCurveTo(t,e,i,r,n,o)),this._xi=n,this._yi=o,this},Xn.prototype.quadraticCurveTo=function(t,e,i,r){return this.addData(wn.Q,t,e,i,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,i,r):this._ctx.quadraticCurveTo(t,e,i,r)),this._xi=i,this._yi=r,this},Xn.prototype.arc=function(t,e,i,r,n,o){En[0]=r,En[1]=n,Hn(En,o),r=En[0];var a=(n=En[1])-r;return this.addData(wn.A,t,e,i,i,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,r,n,o),this._xi=Mn(n)*i+t,this._yi=Ln(n)*i+e,this},Xn.prototype.arcTo=function(t,e,i,r,n){return this._ctx&&this._ctx.arcTo(t,e,i,r,n),this},Xn.prototype.rect=function(t,e,i,r){return this._ctx&&this._ctx.rect(t,e,i,r),this.addData(wn.R,t,e,i,r),this},Xn.prototype.closePath=function(){this.addData(wn.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},Xn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Xn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Xn.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,i=0;il.length&&(this._expandData(),l=this.data);for(var u=0;ui||zn(g)>r||p===e-1)&&(d=Math.sqrt(D*D+g*g),n=y,o=m);break;case wn.C:var v=t[p++],_=t[p++],y=t[p++],m=t[p++],x=t[p++],w=t[p++],d=function(t,e,i,r,n,o,a,s,h){for(var l=t,u=e,p=0,c=1/h,f=1;f<=h;f++){var d=f*c,y=en(t,i,n,a,d),g=en(e,r,o,s,d),v=y-l,_=g-u;p+=Math.sqrt(v*v+_*_),l=y,u=g}return p}(n,o,v,_,y,m,x,w,10),n=x,o=w;break;case wn.Q:d=function(t,e,i,r,n,o,a){for(var s=t,h=e,l=0,u=1/a,p=1;p<=a;p++){var c=p*u,f=an(t,i,n,c),d=an(e,r,o,c),y=f-s,g=d-h;l+=Math.sqrt(y*y+g*g),s=f,h=d}return l}(n,o,v=t[p++],_=t[p++],y=t[p++],m=t[p++],10),n=y,o=m;break;case wn.A:var b=t[p++],k=t[p++],S=t[p++],T=t[p++],C=t[p++],A=t[p++],P=A+C;p+=1,t[p++],f&&(a=Mn(C)*S+b,s=Ln(C)*T+k),d=Dn(S,T)*Pn(On,Math.abs(A)),n=Mn(P)*S+b,o=Ln(P)*T+k;break;case wn.R:a=n=t[p++],s=o=t[p++],d=2*t[p++]+2*t[p++];break;case wn.Z:var D=a-n,g=s-o;d=Math.sqrt(D*D+g*g),n=a,o=s}0<=d&&(l+=h[u++]=d)}return this._pathLen=l},Xn.prototype.rebuildPath=function(t,e){var i,r,n,o,a,s,h,l,u=this.data,p=this._ux,c=this._uy,f=this._len,d=e<1,y=0,g=0;if(!d||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,l=e*this._pathLen))t:for(var v=0;vp||zn(s-o)>c||v===f-1){if(d){if(l=Jn[r=0]+t&&a<=Jn[1]+t?p:0}nMath.PI/2&&d<1.5*Math.PI&&(p=-p),c+=p))}return c}(v,_,x,w,w+b,k,C,n);u=Math.cos(w+b)*m+v,p=Math.sin(w+b)*x+_;break;case Kn.R:c=u=s[d++],f=p=s[d++];if(S=c+s[d++],T=f+s[d++],i){if(jn(c,f,S,f,e,r,n)||jn(S,f,S,T,e,r,n)||jn(S,T,c,T,e,r,n)||jn(c,T,c,f,e,r,n))return!0}else l+=Zn(S,f,S,T,r,n),l+=Zn(c,T,c,f,r,n);break;case Kn.Z:if(i){if(jn(u,p,c,f,e,r,n))return!0}else l+=Zn(u,p,c,f,r,n);u=c,p=f}}return i||(o=p,a=f,Math.abs(o-a)<$n)||(l+=Zn(u,p,c,f,r,n)||0),0!==l}var no,oo,ao=x({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Or),so={style:x({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Br.style)},ho=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],lo=(J(uo,no=Nr),uo.prototype.update=function(){var e=this;no.prototype.update.call(this);var t=this.style;if(t.decal){var i=this._decalEl=this._decalEl||new uo;i.buildPath===uo.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var r=i.style;for(var n in t)r[n]!==t[n]&&(r[n]=t[n]);r.fill=t.fill?t.decal:null,r.decal=null,r.shadowColor=null,t.strokeFirst&&(r.stroke=null);for(var o=0;o=e.maxIterations){t+=e.ellipsis;break}var a=0===o?function(t,e,i,r){for(var n=0,o=0,a=t.length;oo){0r.width&&(o=e.split("\n"),y=!0),r.accumWidth=l):(u=Ms(e,d,r.width,r.breakAll,r.accumWidth),r.accumWidth=u.accumWidth+h,a=u.linesWidths,o=u.lines)):o=e.split("\n");for(var g=0;gr.len()&&(l=c}}for(var o,a=this.__startIndex;an[0]){for(h=0;ht);h++);s=r[n[h]]}n.splice(h+1,0,t),(r[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else g("Layer of zlevel "+t+" is not valid")},Tl.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r=p&&c<=e+1){for(var i=[],r=0;r=p&&c<=o+1)return function(t){for(var e=0,i=t.length,r=0,n=0;e\n\r<"))},Su);function Su(t,e,i,r){this.type="svg",this.refreshHover=Tu("refreshHover"),this.pathToImage=Tu("pathToImage"),this.configLayer=Tu("configLayer"),this.root=t,this.storage=e,this._opts=i=m({},i||{});var n=Cl("svg");n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=Cl("g");n.appendChild(o);var a=Cl("g");n.appendChild(a),this._gradientManager=new eu(r,a),this._patternManager=new hu(r,a),this._clipPathManager=new cu(r,a),this._shadowManager=new yu(r,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=n,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]}function Tu(t){return function(){g('In SVG mode painter not support method "'+t+'"')}}zr("canvas",Sl),zr("svg",ku),t.Arc=Gs,t.BezierCurve=Qs,t.BoundingRect=di,t.Circle=No,t.CompoundPath=ps,t.Droplet=eh,t.Element=Bi,t.Ellipse=Qo,t.Group=Cr,t.Heart=oh,t.Image=Bo,t.IncrementalDisplayable=ys,t.Isogon=ch,t.Line=ia,t.LinearGradient=va,t.OrientedBoundingRect=qh,t.Path=lo,t.Pattern=Wh,t.Point=ni,t.Polygon=ha,t.Polyline=ca,t.RadialGradient=Hh,t.Rect=Uo,t.Ring=gh,t.Rose=kh,t.Sector=Qa,t.Star=Mh,t.TSpan=wa,t.Text=Is,t.Trochoid=Bh,t.color=Xe,t.dispose=function(t){t.dispose()},t.disposeAll=function(){for(var t in Mr)Mr.hasOwnProperty(t)&&Mr[t].dispose();Mr={}},t.getInstance=function(t){return Mr[t]},t.init=function(t,e){var i=new Lr(y(),t,e);return Mr[i.id]=i},t.matrix=oe,t.morphPath=function(t,e,i){var r,n;if(!t||!e)return e;t.path||t.createPathProxy(),(r=t.path).beginPath(),t.buildPath(r,t.shape),e.path||e.createPathProxy(),(n=e.path)===r&&(n=new Wn(!1)),n.beginPath(),ls(e)?e.__oldBuildPath(n,e.shape):e.buildPath(n,e.shape);var o=ns(is(r),is(n)),a=as(o[0],o[1],10,Math.PI);!function(t,e,i){if(ls(t))return hs(t,e,i);var r=t;r.__oldBuildPath=r.buildPath,r.buildPath=ss,hs(r,e,i)}(e,a,0);var s=i&&i.done,h=i&&i.aborted,l=i&&i.during;return e.animateTo({__morphT:1},x({during:function(t){e.dirtyShape(),l&&l(t)},done:function(){var t;ls(t=e)&&(t.buildPath=t.__oldBuildPath,t.__oldBuildPath=t.__morphingData=null),e.createPathProxy(),e.dirtyShape(),s&&s()},aborted:function(){h&&h()}},i)),e},t.parseSVG=function(t,e){return(new Ta).parse(t,e)},t.path=Ro,t.registerPainter=zr,t.showDebugDirtyRect=function(t,n){n=n||{};var e=t.painter;if(!e.getLayers)throw new Error("Debug dirty rect can only been used on canvas renderer.");if(e.isSingleCanvas())throw new Error("Debug dirty rect can only been used on zrender inited with container.");var o=document.createElement("div");o.style.cssText="\nposition:absolute;\nleft:0;\ntop:0;\nright:0;\nbottom:0;\npointer-events:none;\n",o.className="ec-debug-dirty-rect-container";var a=[],i=t.dom;i.appendChild(o),"static"===getComputedStyle(i).position&&(i.style.position="relative"),t.on("rendered",function(){if(e.getLayers){var r=0;e.eachBuiltinLayer(function(t){if(t.debugGetPaintRects)for(var e=t.debugGetPaintRects(),i=0;i